From c8f10a3654cd98cbb3a03c9e028b322b7aeda402 Mon Sep 17 00:00:00 2001 From: Jacky <jacky@Jackys-mini.local> Date: Mon, 31 Jul 2023 03:25:22 +0800 Subject: [PATCH] remove debug config --- assets/ccip-b3745bba.js | 1 + assets/index-0b6b5a8e.js | 290 ++++++++++++++++++++++++++++++++++++ assets/index-23526dab.js | 1 + assets/index-8cce0a79.js | 1 + assets/index-efe0fbcc.js | 1 + assets/index.es-cfd0772e.js | 27 ++++ index.html | 2 +- web3/src/main.ts | 2 +- web3/vite.config.ts | 8 + 9 files changed, 331 insertions(+), 2 deletions(-) create mode 100644 assets/ccip-b3745bba.js create mode 100644 assets/index-0b6b5a8e.js create mode 100644 assets/index-23526dab.js create mode 100644 assets/index-8cce0a79.js create mode 100644 assets/index-efe0fbcc.js create mode 100644 assets/index.es-cfd0772e.js diff --git a/assets/ccip-b3745bba.js b/assets/ccip-b3745bba.js new file mode 100644 index 0000000..fd4f7a1 --- /dev/null +++ b/assets/ccip-b3745bba.js @@ -0,0 +1 @@ +import{az as l,aA as w,aB as y,aC as p,aD as h,aE as g,aF as k,aG as O,aH as E,aI as m,aJ as L}from"./index-0b6b5a8e.js";class x extends l{constructor({callbackSelector:e,cause:a,data:o,extraData:c,sender:s,urls:n}){super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],a.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&[" Gateway URL(s):",...n.map(d=>` ${w(d)}`)],` Sender: ${s}`,` Data: ${o}`,` Callback selector: ${e}`,` Extra data: ${c}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class M extends l{constructor({result:e,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${w(a)}`,`Response: ${y(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class R extends l{constructor({sender:e,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}function $(t,e){if(!p(t))throw new h({address:t});if(!p(e))throw new h({address:e});return t.toLowerCase()===e.toLowerCase()}const v="0x556f1830",A={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function D(t,{blockNumber:e,blockTag:a,data:o,to:c}){const{args:s}=g({data:o,abi:[A]}),[n,d,r,i,f]=s;try{if(!$(c,n))throw new R({sender:n,to:c});const u=await S({data:r,sender:n,urls:d}),{data:b}=await k(t,{blockNumber:e,blockTag:a,data:O([i,E([{type:"bytes"},{type:"bytes"}],[u,f])]),to:c});return b}catch(u){throw new x({callbackSelector:i,cause:u,data:o,extraData:f,sender:n,urls:d})}}async function S({data:t,sender:e,urls:a}){let o=new Error("An unknown error occurred.");for(let c=0;c<a.length;c++){const s=a[c],n=s.includes("{sender}")||s.includes("{data}")?"GET":"POST",d=n==="POST"?{data:t,sender:e}:void 0;try{const r=await fetch(s.replace("{sender}",e).replace("{data}",t),{body:JSON.stringify(d),method:n});let i;if(r.headers.get("Content-Type")?.startsWith("application/json")?i=(await r.json()).data:i=await r.text(),!r.ok){o=new m({body:d,details:y(i.error)||r.statusText,headers:r.headers,status:r.status,url:s});continue}if(!L(i)){o=new M({result:i,url:s});continue}return i}catch(r){o=new m({body:d,details:r.message,url:s})}}throw o}export{S as ccipFetch,D as offchainLookup,A as offchainLookupAbiItem,v as offchainLookupSignature}; diff --git a/assets/index-0b6b5a8e.js b/assets/index-0b6b5a8e.js new file mode 100644 index 0000000..5449a22 --- /dev/null +++ b/assets/index-0b6b5a8e.js @@ -0,0 +1,290 @@ +(function(){const m=document.createElement("link").relList;if(m&&m.supports&&m.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))_(h);new MutationObserver(h=>{for(const r of h)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&_(s)}).observe(document,{childList:!0,subtree:!0});function w(h){const r={};return h.integrity&&(r.integrity=h.integrity),h.referrerPolicy&&(r.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?r.credentials="include":h.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function _(h){if(h.ep)return;h.ep=!0;const r=w(h);fetch(h.href,r)}})();var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function sc(a){if(a.__esModule)return a;var m=a.default;if(typeof m=="function"){var w=function _(){return this instanceof _?Reflect.construct(m,arguments,this.constructor):m.apply(this,arguments)};w.prototype=m.prototype}else w={};return Object.defineProperty(w,"__esModule",{value:!0}),Object.keys(a).forEach(function(_){var h=Object.getOwnPropertyDescriptor(a,_);Object.defineProperty(w,_,h.get?h:{enumerable:!0,get:function(){return a[_]}})}),w}var P2={},Ss={};Ss.byteLength=Zm;Ss.toByteArray=t8;Ss.fromByteArray=i8;var Er=[],rr=[],Ym=typeof Uint8Array<"u"?Uint8Array:Array,hu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Qn=0,Xm=hu.length;Qn<Xm;++Qn)Er[Qn]=hu[Qn],rr[hu.charCodeAt(Qn)]=Qn;rr["-".charCodeAt(0)]=62;rr["_".charCodeAt(0)]=63;function T2(a){var m=a.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=a.indexOf("=");w===-1&&(w=m);var _=w===m?0:4-w%4;return[w,_]}function Zm(a){var m=T2(a),w=m[0],_=m[1];return(w+_)*3/4-_}function e8(a,m,w){return(m+w)*3/4-w}function t8(a){var m,w=T2(a),_=w[0],h=w[1],r=new Ym(e8(a,_,h)),s=0,i=h>0?_-4:_,f;for(f=0;f<i;f+=4)m=rr[a.charCodeAt(f)]<<18|rr[a.charCodeAt(f+1)]<<12|rr[a.charCodeAt(f+2)]<<6|rr[a.charCodeAt(f+3)],r[s++]=m>>16&255,r[s++]=m>>8&255,r[s++]=m&255;return h===2&&(m=rr[a.charCodeAt(f)]<<2|rr[a.charCodeAt(f+1)]>>4,r[s++]=m&255),h===1&&(m=rr[a.charCodeAt(f)]<<10|rr[a.charCodeAt(f+1)]<<4|rr[a.charCodeAt(f+2)]>>2,r[s++]=m>>8&255,r[s++]=m&255),r}function r8(a){return Er[a>>18&63]+Er[a>>12&63]+Er[a>>6&63]+Er[a&63]}function n8(a,m,w){for(var _,h=[],r=m;r<w;r+=3)_=(a[r]<<16&16711680)+(a[r+1]<<8&65280)+(a[r+2]&255),h.push(r8(_));return h.join("")}function i8(a){for(var m,w=a.length,_=w%3,h=[],r=16383,s=0,i=w-_;s<i;s+=r)h.push(n8(a,s,s+r>i?i:s+r));return _===1?(m=a[w-1],h.push(Er[m>>2]+Er[m<<4&63]+"==")):_===2&&(m=(a[w-2]<<8)+a[w-1],h.push(Er[m>>10]+Er[m>>4&63]+Er[m<<2&63]+"=")),h.join("")}var uc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */uc.read=function(a,m,w,_,h){var r,s,i=h*8-_-1,f=(1<<i)-1,e=f>>1,l=-7,n=w?h-1:0,t=w?-1:1,o=a[m+n];for(n+=t,r=o&(1<<-l)-1,o>>=-l,l+=i;l>0;r=r*256+a[m+n],n+=t,l-=8);for(s=r&(1<<-l)-1,r>>=-l,l+=_;l>0;s=s*256+a[m+n],n+=t,l-=8);if(r===0)r=1-e;else{if(r===f)return s?NaN:(o?-1:1)*(1/0);s=s+Math.pow(2,_),r=r-e}return(o?-1:1)*s*Math.pow(2,r-_)};uc.write=function(a,m,w,_,h,r){var s,i,f,e=r*8-h-1,l=(1<<e)-1,n=l>>1,t=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,o=_?0:r-1,d=_?1:-1,u=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(i=isNaN(m)?1:0,s=l):(s=Math.floor(Math.log(m)/Math.LN2),m*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+n>=1?m+=t/f:m+=t*Math.pow(2,1-n),m*f>=2&&(s++,f/=2),s+n>=l?(i=0,s=l):s+n>=1?(i=(m*f-1)*Math.pow(2,h),s=s+n):(i=m*Math.pow(2,n-1)*Math.pow(2,h),s=0));h>=8;a[w+o]=i&255,o+=d,i/=256,h-=8);for(s=s<<h|i,e+=h;e>0;a[w+o]=s&255,o+=d,s/=256,e-=8);a[w+o-d]|=u*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh <https://feross.org> + * @license MIT + */(function(a){const m=Ss,w=uc,_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;a.Buffer=i,a.SlowBuffer=p,a.INSPECT_MAX_BYTES=50;const h=2147483647;a.kMaxLength=h,i.TYPED_ARRAY_SUPPORT=r(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function r(){try{const le=new Uint8Array(1),ae={foo:function(){return 42}};return Object.setPrototypeOf(ae,Uint8Array.prototype),Object.setPrototypeOf(le,ae),le.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function s(le){if(le>h)throw new RangeError('The value "'+le+'" is invalid for option "size"');const ae=new Uint8Array(le);return Object.setPrototypeOf(ae,i.prototype),ae}function i(le,ae,ue){if(typeof le=="number"){if(typeof ae=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return n(le)}return f(le,ae,ue)}i.poolSize=8192;function f(le,ae,ue){if(typeof le=="string")return t(le,ae);if(ArrayBuffer.isView(le))return d(le);if(le==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le);if(V(le,ArrayBuffer)||le&&V(le.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(V(le,SharedArrayBuffer)||le&&V(le.buffer,SharedArrayBuffer)))return u(le,ae,ue);if(typeof le=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const de=le.valueOf&&le.valueOf();if(de!=null&&de!==le)return i.from(de,ae,ue);const ve=c(le);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof le[Symbol.toPrimitive]=="function")return i.from(le[Symbol.toPrimitive]("string"),ae,ue);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le)}i.from=function(le,ae,ue){return f(le,ae,ue)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array);function e(le){if(typeof le!="number")throw new TypeError('"size" argument must be of type number');if(le<0)throw new RangeError('The value "'+le+'" is invalid for option "size"')}function l(le,ae,ue){return e(le),le<=0?s(le):ae!==void 0?typeof ue=="string"?s(le).fill(ae,ue):s(le).fill(ae):s(le)}i.alloc=function(le,ae,ue){return l(le,ae,ue)};function n(le){return e(le),s(le<0?0:g(le)|0)}i.allocUnsafe=function(le){return n(le)},i.allocUnsafeSlow=function(le){return n(le)};function t(le,ae){if((typeof ae!="string"||ae==="")&&(ae="utf8"),!i.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae);const ue=v(le,ae)|0;let de=s(ue);const ve=de.write(le,ae);return ve!==ue&&(de=de.slice(0,ve)),de}function o(le){const ae=le.length<0?0:g(le.length)|0,ue=s(ae);for(let de=0;de<ae;de+=1)ue[de]=le[de]&255;return ue}function d(le){if(V(le,Uint8Array)){const ae=new Uint8Array(le);return u(ae.buffer,ae.byteOffset,ae.byteLength)}return o(le)}function u(le,ae,ue){if(ae<0||le.byteLength<ae)throw new RangeError('"offset" is outside of buffer bounds');if(le.byteLength<ae+(ue||0))throw new RangeError('"length" is outside of buffer bounds');let de;return ae===void 0&&ue===void 0?de=new Uint8Array(le):ue===void 0?de=new Uint8Array(le,ae):de=new Uint8Array(le,ae,ue),Object.setPrototypeOf(de,i.prototype),de}function c(le){if(i.isBuffer(le)){const ae=g(le.length)|0,ue=s(ae);return ue.length===0||le.copy(ue,0,0,ae),ue}if(le.length!==void 0)return typeof le.length!="number"||oe(le.length)?s(0):o(le);if(le.type==="Buffer"&&Array.isArray(le.data))return o(le.data)}function g(le){if(le>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return le|0}function p(le){return+le!=le&&(le=0),i.alloc(+le)}i.isBuffer=function(ae){return ae!=null&&ae._isBuffer===!0&&ae!==i.prototype},i.compare=function(ae,ue){if(V(ae,Uint8Array)&&(ae=i.from(ae,ae.offset,ae.byteLength)),V(ue,Uint8Array)&&(ue=i.from(ue,ue.offset,ue.byteLength)),!i.isBuffer(ae)||!i.isBuffer(ue))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ae===ue)return 0;let de=ae.length,ve=ue.length;for(let me=0,ge=Math.min(de,ve);me<ge;++me)if(ae[me]!==ue[me]){de=ae[me],ve=ue[me];break}return de<ve?-1:ve<de?1:0},i.isEncoding=function(ae){switch(String(ae).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}},i.concat=function(ae,ue){if(!Array.isArray(ae))throw new TypeError('"list" argument must be an Array of Buffers');if(ae.length===0)return i.alloc(0);let de;if(ue===void 0)for(ue=0,de=0;de<ae.length;++de)ue+=ae[de].length;const ve=i.allocUnsafe(ue);let me=0;for(de=0;de<ae.length;++de){let ge=ae[de];if(V(ge,Uint8Array))me+ge.length>ve.length?(i.isBuffer(ge)||(ge=i.from(ge)),ge.copy(ve,me)):Uint8Array.prototype.set.call(ve,ge,me);else if(i.isBuffer(ge))ge.copy(ve,me);else throw new TypeError('"list" argument must be an Array of Buffers');me+=ge.length}return ve};function v(le,ae){if(i.isBuffer(le))return le.length;if(ArrayBuffer.isView(le)||V(le,ArrayBuffer))return le.byteLength;if(typeof le!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof le);const ue=le.length,de=arguments.length>2&&arguments[2]===!0;if(!de&&ue===0)return 0;let ve=!1;for(;;)switch(ae){case"ascii":case"latin1":case"binary":return ue;case"utf8":case"utf-8":return ie(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue*2;case"hex":return ue>>>1;case"base64":return re(le).length;default:if(ve)return de?-1:ie(le).length;ae=(""+ae).toLowerCase(),ve=!0}}i.byteLength=v;function y(le,ae,ue){let de=!1;if((ae===void 0||ae<0)&&(ae=0),ae>this.length||((ue===void 0||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0,ae>>>=0,ue<=ae))return"";for(le||(le="utf8");;)switch(le){case"hex":return O(this,ae,ue);case"utf8":case"utf-8":return P(this,ae,ue);case"ascii":return q(this,ae,ue);case"latin1":case"binary":return z(this,ae,ue);case"base64":return M(this,ae,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,ae,ue);default:if(de)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),de=!0}}i.prototype._isBuffer=!0;function b(le,ae,ue){const de=le[ae];le[ae]=le[ue],le[ue]=de}i.prototype.swap16=function(){const ae=this.length;if(ae%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ue=0;ue<ae;ue+=2)b(this,ue,ue+1);return this},i.prototype.swap32=function(){const ae=this.length;if(ae%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ue=0;ue<ae;ue+=4)b(this,ue,ue+3),b(this,ue+1,ue+2);return this},i.prototype.swap64=function(){const ae=this.length;if(ae%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ue=0;ue<ae;ue+=8)b(this,ue,ue+7),b(this,ue+1,ue+6),b(this,ue+2,ue+5),b(this,ue+3,ue+4);return this},i.prototype.toString=function(){const ae=this.length;return ae===0?"":arguments.length===0?P(this,0,ae):y.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(ae){if(!i.isBuffer(ae))throw new TypeError("Argument must be a Buffer");return this===ae?!0:i.compare(this,ae)===0},i.prototype.inspect=function(){let ae="";const ue=a.INSPECT_MAX_BYTES;return ae=this.toString("hex",0,ue).replace(/(.{2})/g,"$1 ").trim(),this.length>ue&&(ae+=" ... "),"<Buffer "+ae+">"},_&&(i.prototype[_]=i.prototype.inspect),i.prototype.compare=function(ae,ue,de,ve,me){if(V(ae,Uint8Array)&&(ae=i.from(ae,ae.offset,ae.byteLength)),!i.isBuffer(ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ae);if(ue===void 0&&(ue=0),de===void 0&&(de=ae?ae.length:0),ve===void 0&&(ve=0),me===void 0&&(me=this.length),ue<0||de>ae.length||ve<0||me>this.length)throw new RangeError("out of range index");if(ve>=me&&ue>=de)return 0;if(ve>=me)return-1;if(ue>=de)return 1;if(ue>>>=0,de>>>=0,ve>>>=0,me>>>=0,this===ae)return 0;let ge=me-ve,xe=de-ue;const Ae=Math.min(ge,xe),Te=this.slice(ve,me),ke=ae.slice(ue,de);for(let Pe=0;Pe<Ae;++Pe)if(Te[Pe]!==ke[Pe]){ge=Te[Pe],xe=ke[Pe];break}return ge<xe?-1:xe<ge?1:0};function A(le,ae,ue,de,ve){if(le.length===0)return-1;if(typeof ue=="string"?(de=ue,ue=0):ue>2147483647?ue=2147483647:ue<-2147483648&&(ue=-2147483648),ue=+ue,oe(ue)&&(ue=ve?0:le.length-1),ue<0&&(ue=le.length+ue),ue>=le.length){if(ve)return-1;ue=le.length-1}else if(ue<0)if(ve)ue=0;else return-1;if(typeof ae=="string"&&(ae=i.from(ae,de)),i.isBuffer(ae))return ae.length===0?-1:x(le,ae,ue,de,ve);if(typeof ae=="number")return ae=ae&255,typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(le,ae,ue):Uint8Array.prototype.lastIndexOf.call(le,ae,ue):x(le,[ae],ue,de,ve);throw new TypeError("val must be string, number or Buffer")}function x(le,ae,ue,de,ve){let me=1,ge=le.length,xe=ae.length;if(de!==void 0&&(de=String(de).toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(le.length<2||ae.length<2)return-1;me=2,ge/=2,xe/=2,ue/=2}function Ae(ke,Pe){return me===1?ke[Pe]:ke.readUInt16BE(Pe*me)}let Te;if(ve){let ke=-1;for(Te=ue;Te<ge;Te++)if(Ae(le,Te)===Ae(ae,ke===-1?0:Te-ke)){if(ke===-1&&(ke=Te),Te-ke+1===xe)return ke*me}else ke!==-1&&(Te-=Te-ke),ke=-1}else for(ue+xe>ge&&(ue=ge-xe),Te=ue;Te>=0;Te--){let ke=!0;for(let Pe=0;Pe<xe;Pe++)if(Ae(le,Te+Pe)!==Ae(ae,Pe)){ke=!1;break}if(ke)return Te}return-1}i.prototype.includes=function(ae,ue,de){return this.indexOf(ae,ue,de)!==-1},i.prototype.indexOf=function(ae,ue,de){return A(this,ae,ue,de,!0)},i.prototype.lastIndexOf=function(ae,ue,de){return A(this,ae,ue,de,!1)};function E(le,ae,ue,de){ue=Number(ue)||0;const ve=le.length-ue;de?(de=Number(de),de>ve&&(de=ve)):de=ve;const me=ae.length;de>me/2&&(de=me/2);let ge;for(ge=0;ge<de;++ge){const xe=parseInt(ae.substr(ge*2,2),16);if(oe(xe))return ge;le[ue+ge]=xe}return ge}function S(le,ae,ue,de){return Y(ie(ae,le.length-ue),le,ue,de)}function C(le,ae,ue,de){return Y(se(ae),le,ue,de)}function T(le,ae,ue,de){return Y(re(ae),le,ue,de)}function k(le,ae,ue,de){return Y(ne(ae,le.length-ue),le,ue,de)}i.prototype.write=function(ae,ue,de,ve){if(ue===void 0)ve="utf8",de=this.length,ue=0;else if(de===void 0&&typeof ue=="string")ve=ue,de=this.length,ue=0;else if(isFinite(ue))ue=ue>>>0,isFinite(de)?(de=de>>>0,ve===void 0&&(ve="utf8")):(ve=de,de=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const me=this.length-ue;if((de===void 0||de>me)&&(de=me),ae.length>0&&(de<0||ue<0)||ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");let ge=!1;for(;;)switch(ve){case"hex":return E(this,ae,ue,de);case"utf8":case"utf-8":return S(this,ae,ue,de);case"ascii":case"latin1":case"binary":return C(this,ae,ue,de);case"base64":return T(this,ae,ue,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,ae,ue,de);default:if(ge)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),ge=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(le,ae,ue){return ae===0&&ue===le.length?m.fromByteArray(le):m.fromByteArray(le.slice(ae,ue))}function P(le,ae,ue){ue=Math.min(le.length,ue);const de=[];let ve=ae;for(;ve<ue;){const me=le[ve];let ge=null,xe=me>239?4:me>223?3:me>191?2:1;if(ve+xe<=ue){let Ae,Te,ke,Pe;switch(xe){case 1:me<128&&(ge=me);break;case 2:Ae=le[ve+1],(Ae&192)===128&&(Pe=(me&31)<<6|Ae&63,Pe>127&&(ge=Pe));break;case 3:Ae=le[ve+1],Te=le[ve+2],(Ae&192)===128&&(Te&192)===128&&(Pe=(me&15)<<12|(Ae&63)<<6|Te&63,Pe>2047&&(Pe<55296||Pe>57343)&&(ge=Pe));break;case 4:Ae=le[ve+1],Te=le[ve+2],ke=le[ve+3],(Ae&192)===128&&(Te&192)===128&&(ke&192)===128&&(Pe=(me&15)<<18|(Ae&63)<<12|(Te&63)<<6|ke&63,Pe>65535&&Pe<1114112&&(ge=Pe))}}ge===null?(ge=65533,xe=1):ge>65535&&(ge-=65536,de.push(ge>>>10&1023|55296),ge=56320|ge&1023),de.push(ge),ve+=xe}return F(de)}const N=4096;function F(le){const ae=le.length;if(ae<=N)return String.fromCharCode.apply(String,le);let ue="",de=0;for(;de<ae;)ue+=String.fromCharCode.apply(String,le.slice(de,de+=N));return ue}function q(le,ae,ue){let de="";ue=Math.min(le.length,ue);for(let ve=ae;ve<ue;++ve)de+=String.fromCharCode(le[ve]&127);return de}function z(le,ae,ue){let de="";ue=Math.min(le.length,ue);for(let ve=ae;ve<ue;++ve)de+=String.fromCharCode(le[ve]);return de}function O(le,ae,ue){const de=le.length;(!ae||ae<0)&&(ae=0),(!ue||ue<0||ue>de)&&(ue=de);let ve="";for(let me=ae;me<ue;++me)ve+=fe[le[me]];return ve}function R(le,ae,ue){const de=le.slice(ae,ue);let ve="";for(let me=0;me<de.length-1;me+=2)ve+=String.fromCharCode(de[me]+de[me+1]*256);return ve}i.prototype.slice=function(ae,ue){const de=this.length;ae=~~ae,ue=ue===void 0?de:~~ue,ae<0?(ae+=de,ae<0&&(ae=0)):ae>de&&(ae=de),ue<0?(ue+=de,ue<0&&(ue=0)):ue>de&&(ue=de),ue<ae&&(ue=ae);const ve=this.subarray(ae,ue);return Object.setPrototypeOf(ve,i.prototype),ve};function I(le,ae,ue){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+ae>ue)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(ae,ue,de){ae=ae>>>0,ue=ue>>>0,de||I(ae,ue,this.length);let ve=this[ae],me=1,ge=0;for(;++ge<ue&&(me*=256);)ve+=this[ae+ge]*me;return ve},i.prototype.readUintBE=i.prototype.readUIntBE=function(ae,ue,de){ae=ae>>>0,ue=ue>>>0,de||I(ae,ue,this.length);let ve=this[ae+--ue],me=1;for(;ue>0&&(me*=256);)ve+=this[ae+--ue]*me;return ve},i.prototype.readUint8=i.prototype.readUInt8=function(ae,ue){return ae=ae>>>0,ue||I(ae,1,this.length),this[ae]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(ae,ue){return ae=ae>>>0,ue||I(ae,2,this.length),this[ae]|this[ae+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(ae,ue){return ae=ae>>>0,ue||I(ae,2,this.length),this[ae]<<8|this[ae+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(ae,ue){return ae=ae>>>0,ue||I(ae,4,this.length),(this[ae]|this[ae+1]<<8|this[ae+2]<<16)+this[ae+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(ae,ue){return ae=ae>>>0,ue||I(ae,4,this.length),this[ae]*16777216+(this[ae+1]<<16|this[ae+2]<<8|this[ae+3])},i.prototype.readBigUInt64LE=ce(function(ae){ae=ae>>>0,U(ae,"offset");const ue=this[ae],de=this[ae+7];(ue===void 0||de===void 0)&&K(ae,this.length-8);const ve=ue+this[++ae]*2**8+this[++ae]*2**16+this[++ae]*2**24,me=this[++ae]+this[++ae]*2**8+this[++ae]*2**16+de*2**24;return BigInt(ve)+(BigInt(me)<<BigInt(32))}),i.prototype.readBigUInt64BE=ce(function(ae){ae=ae>>>0,U(ae,"offset");const ue=this[ae],de=this[ae+7];(ue===void 0||de===void 0)&&K(ae,this.length-8);const ve=ue*2**24+this[++ae]*2**16+this[++ae]*2**8+this[++ae],me=this[++ae]*2**24+this[++ae]*2**16+this[++ae]*2**8+de;return(BigInt(ve)<<BigInt(32))+BigInt(me)}),i.prototype.readIntLE=function(ae,ue,de){ae=ae>>>0,ue=ue>>>0,de||I(ae,ue,this.length);let ve=this[ae],me=1,ge=0;for(;++ge<ue&&(me*=256);)ve+=this[ae+ge]*me;return me*=128,ve>=me&&(ve-=Math.pow(2,8*ue)),ve},i.prototype.readIntBE=function(ae,ue,de){ae=ae>>>0,ue=ue>>>0,de||I(ae,ue,this.length);let ve=ue,me=1,ge=this[ae+--ve];for(;ve>0&&(me*=256);)ge+=this[ae+--ve]*me;return me*=128,ge>=me&&(ge-=Math.pow(2,8*ue)),ge},i.prototype.readInt8=function(ae,ue){return ae=ae>>>0,ue||I(ae,1,this.length),this[ae]&128?(255-this[ae]+1)*-1:this[ae]},i.prototype.readInt16LE=function(ae,ue){ae=ae>>>0,ue||I(ae,2,this.length);const de=this[ae]|this[ae+1]<<8;return de&32768?de|4294901760:de},i.prototype.readInt16BE=function(ae,ue){ae=ae>>>0,ue||I(ae,2,this.length);const de=this[ae+1]|this[ae]<<8;return de&32768?de|4294901760:de},i.prototype.readInt32LE=function(ae,ue){return ae=ae>>>0,ue||I(ae,4,this.length),this[ae]|this[ae+1]<<8|this[ae+2]<<16|this[ae+3]<<24},i.prototype.readInt32BE=function(ae,ue){return ae=ae>>>0,ue||I(ae,4,this.length),this[ae]<<24|this[ae+1]<<16|this[ae+2]<<8|this[ae+3]},i.prototype.readBigInt64LE=ce(function(ae){ae=ae>>>0,U(ae,"offset");const ue=this[ae],de=this[ae+7];(ue===void 0||de===void 0)&&K(ae,this.length-8);const ve=this[ae+4]+this[ae+5]*2**8+this[ae+6]*2**16+(de<<24);return(BigInt(ve)<<BigInt(32))+BigInt(ue+this[++ae]*2**8+this[++ae]*2**16+this[++ae]*2**24)}),i.prototype.readBigInt64BE=ce(function(ae){ae=ae>>>0,U(ae,"offset");const ue=this[ae],de=this[ae+7];(ue===void 0||de===void 0)&&K(ae,this.length-8);const ve=(ue<<24)+this[++ae]*2**16+this[++ae]*2**8+this[++ae];return(BigInt(ve)<<BigInt(32))+BigInt(this[++ae]*2**24+this[++ae]*2**16+this[++ae]*2**8+de)}),i.prototype.readFloatLE=function(ae,ue){return ae=ae>>>0,ue||I(ae,4,this.length),w.read(this,ae,!0,23,4)},i.prototype.readFloatBE=function(ae,ue){return ae=ae>>>0,ue||I(ae,4,this.length),w.read(this,ae,!1,23,4)},i.prototype.readDoubleLE=function(ae,ue){return ae=ae>>>0,ue||I(ae,8,this.length),w.read(this,ae,!0,52,8)},i.prototype.readDoubleBE=function(ae,ue){return ae=ae>>>0,ue||I(ae,8,this.length),w.read(this,ae,!1,52,8)};function D(le,ae,ue,de,ve,me){if(!i.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if(ae>ve||ae<me)throw new RangeError('"value" argument is out of bounds');if(ue+de>le.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(ae,ue,de,ve){if(ae=+ae,ue=ue>>>0,de=de>>>0,!ve){const xe=Math.pow(2,8*de)-1;D(this,ae,ue,de,xe,0)}let me=1,ge=0;for(this[ue]=ae&255;++ge<de&&(me*=256);)this[ue+ge]=ae/me&255;return ue+de},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(ae,ue,de,ve){if(ae=+ae,ue=ue>>>0,de=de>>>0,!ve){const xe=Math.pow(2,8*de)-1;D(this,ae,ue,de,xe,0)}let me=de-1,ge=1;for(this[ue+me]=ae&255;--me>=0&&(ge*=256);)this[ue+me]=ae/ge&255;return ue+de},i.prototype.writeUint8=i.prototype.writeUInt8=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,1,255,0),this[ue]=ae&255,ue+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,2,65535,0),this[ue]=ae&255,this[ue+1]=ae>>>8,ue+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,2,65535,0),this[ue]=ae>>>8,this[ue+1]=ae&255,ue+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,4,4294967295,0),this[ue+3]=ae>>>24,this[ue+2]=ae>>>16,this[ue+1]=ae>>>8,this[ue]=ae&255,ue+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,4,4294967295,0),this[ue]=ae>>>24,this[ue+1]=ae>>>16,this[ue+2]=ae>>>8,this[ue+3]=ae&255,ue+4};function B(le,ae,ue,de,ve){H(ae,de,ve,le,ue,7);let me=Number(ae&BigInt(4294967295));le[ue++]=me,me=me>>8,le[ue++]=me,me=me>>8,le[ue++]=me,me=me>>8,le[ue++]=me;let ge=Number(ae>>BigInt(32)&BigInt(4294967295));return le[ue++]=ge,ge=ge>>8,le[ue++]=ge,ge=ge>>8,le[ue++]=ge,ge=ge>>8,le[ue++]=ge,ue}function j(le,ae,ue,de,ve){H(ae,de,ve,le,ue,7);let me=Number(ae&BigInt(4294967295));le[ue+7]=me,me=me>>8,le[ue+6]=me,me=me>>8,le[ue+5]=me,me=me>>8,le[ue+4]=me;let ge=Number(ae>>BigInt(32)&BigInt(4294967295));return le[ue+3]=ge,ge=ge>>8,le[ue+2]=ge,ge=ge>>8,le[ue+1]=ge,ge=ge>>8,le[ue]=ge,ue+8}i.prototype.writeBigUInt64LE=ce(function(ae,ue=0){return B(this,ae,ue,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=ce(function(ae,ue=0){return j(this,ae,ue,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(ae,ue,de,ve){if(ae=+ae,ue=ue>>>0,!ve){const Ae=Math.pow(2,8*de-1);D(this,ae,ue,de,Ae-1,-Ae)}let me=0,ge=1,xe=0;for(this[ue]=ae&255;++me<de&&(ge*=256);)ae<0&&xe===0&&this[ue+me-1]!==0&&(xe=1),this[ue+me]=(ae/ge>>0)-xe&255;return ue+de},i.prototype.writeIntBE=function(ae,ue,de,ve){if(ae=+ae,ue=ue>>>0,!ve){const Ae=Math.pow(2,8*de-1);D(this,ae,ue,de,Ae-1,-Ae)}let me=de-1,ge=1,xe=0;for(this[ue+me]=ae&255;--me>=0&&(ge*=256);)ae<0&&xe===0&&this[ue+me+1]!==0&&(xe=1),this[ue+me]=(ae/ge>>0)-xe&255;return ue+de},i.prototype.writeInt8=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,1,127,-128),ae<0&&(ae=255+ae+1),this[ue]=ae&255,ue+1},i.prototype.writeInt16LE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,2,32767,-32768),this[ue]=ae&255,this[ue+1]=ae>>>8,ue+2},i.prototype.writeInt16BE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,2,32767,-32768),this[ue]=ae>>>8,this[ue+1]=ae&255,ue+2},i.prototype.writeInt32LE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,4,2147483647,-2147483648),this[ue]=ae&255,this[ue+1]=ae>>>8,this[ue+2]=ae>>>16,this[ue+3]=ae>>>24,ue+4},i.prototype.writeInt32BE=function(ae,ue,de){return ae=+ae,ue=ue>>>0,de||D(this,ae,ue,4,2147483647,-2147483648),ae<0&&(ae=4294967295+ae+1),this[ue]=ae>>>24,this[ue+1]=ae>>>16,this[ue+2]=ae>>>8,this[ue+3]=ae&255,ue+4},i.prototype.writeBigInt64LE=ce(function(ae,ue=0){return B(this,ae,ue,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=ce(function(ae,ue=0){return j(this,ae,ue,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(le,ae,ue,de,ve,me){if(ue+de>le.length)throw new RangeError("Index out of range");if(ue<0)throw new RangeError("Index out of range")}function X(le,ae,ue,de,ve){return ae=+ae,ue=ue>>>0,ve||Q(le,ae,ue,4),w.write(le,ae,ue,de,23,4),ue+4}i.prototype.writeFloatLE=function(ae,ue,de){return X(this,ae,ue,!0,de)},i.prototype.writeFloatBE=function(ae,ue,de){return X(this,ae,ue,!1,de)};function Z(le,ae,ue,de,ve){return ae=+ae,ue=ue>>>0,ve||Q(le,ae,ue,8),w.write(le,ae,ue,de,52,8),ue+8}i.prototype.writeDoubleLE=function(ae,ue,de){return Z(this,ae,ue,!0,de)},i.prototype.writeDoubleBE=function(ae,ue,de){return Z(this,ae,ue,!1,de)},i.prototype.copy=function(ae,ue,de,ve){if(!i.isBuffer(ae))throw new TypeError("argument should be a Buffer");if(de||(de=0),!ve&&ve!==0&&(ve=this.length),ue>=ae.length&&(ue=ae.length),ue||(ue=0),ve>0&&ve<de&&(ve=de),ve===de||ae.length===0||this.length===0)return 0;if(ue<0)throw new RangeError("targetStart out of bounds");if(de<0||de>=this.length)throw new RangeError("Index out of range");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),ae.length-ue<ve-de&&(ve=ae.length-ue+de);const me=ve-de;return this===ae&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ue,de,ve):Uint8Array.prototype.set.call(ae,this.subarray(de,ve),ue),me},i.prototype.fill=function(ae,ue,de,ve){if(typeof ae=="string"){if(typeof ue=="string"?(ve=ue,ue=0,de=this.length):typeof de=="string"&&(ve=de,de=this.length),ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!i.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve);if(ae.length===1){const ge=ae.charCodeAt(0);(ve==="utf8"&&ge<128||ve==="latin1")&&(ae=ge)}}else typeof ae=="number"?ae=ae&255:typeof ae=="boolean"&&(ae=Number(ae));if(ue<0||this.length<ue||this.length<de)throw new RangeError("Out of range index");if(de<=ue)return this;ue=ue>>>0,de=de===void 0?this.length:de>>>0,ae||(ae=0);let me;if(typeof ae=="number")for(me=ue;me<de;++me)this[me]=ae;else{const ge=i.isBuffer(ae)?ae:i.from(ae,ve),xe=ge.length;if(xe===0)throw new TypeError('The value "'+ae+'" is invalid for argument "value"');for(me=0;me<de-ue;++me)this[me+ue]=ge[me%xe]}return this};const L={};function W(le,ae,ue){L[le]=class extends ue{constructor(){super(),Object.defineProperty(this,"message",{value:ae.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${le}]`,this.stack,delete this.name}get code(){return le}set code(ve){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ve,writable:!0})}toString(){return`${this.name} [${le}]: ${this.message}`}}}W("ERR_BUFFER_OUT_OF_BOUNDS",function(le){return le?`${le} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),W("ERR_INVALID_ARG_TYPE",function(le,ae){return`The "${le}" argument must be of type number. Received type ${typeof ae}`},TypeError),W("ERR_OUT_OF_RANGE",function(le,ae,ue){let de=`The value of "${le}" is out of range.`,ve=ue;return Number.isInteger(ue)&&Math.abs(ue)>2**32?ve=G(String(ue)):typeof ue=="bigint"&&(ve=String(ue),(ue>BigInt(2)**BigInt(32)||ue<-(BigInt(2)**BigInt(32)))&&(ve=G(ve)),ve+="n"),de+=` It must be ${ae}. Received ${ve}`,de},RangeError);function G(le){let ae="",ue=le.length;const de=le[0]==="-"?1:0;for(;ue>=de+4;ue-=3)ae=`_${le.slice(ue-3,ue)}${ae}`;return`${le.slice(0,ue)}${ae}`}function J(le,ae,ue){U(ae,"offset"),(le[ae]===void 0||le[ae+ue]===void 0)&&K(ae,le.length-(ue+1))}function H(le,ae,ue,de,ve,me){if(le>ue||le<ae){const ge=typeof ae=="bigint"?"n":"";let xe;throw me>3?ae===0||ae===BigInt(0)?xe=`>= 0${ge} and < 2${ge} ** ${(me+1)*8}${ge}`:xe=`>= -(2${ge} ** ${(me+1)*8-1}${ge}) and < 2 ** ${(me+1)*8-1}${ge}`:xe=`>= ${ae}${ge} and <= ${ue}${ge}`,new L.ERR_OUT_OF_RANGE("value",xe,le)}J(de,ve,me)}function U(le,ae){if(typeof le!="number")throw new L.ERR_INVALID_ARG_TYPE(ae,"number",le)}function K(le,ae,ue){throw Math.floor(le)!==le?(U(le,ue),new L.ERR_OUT_OF_RANGE(ue||"offset","an integer",le)):ae<0?new L.ERR_BUFFER_OUT_OF_BOUNDS:new L.ERR_OUT_OF_RANGE(ue||"offset",`>= ${ue?1:0} and <= ${ae}`,le)}const te=/[^+/0-9A-Za-z-_]/g;function ee(le){if(le=le.split("=")[0],le=le.trim().replace(te,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function ie(le,ae){ae=ae||1/0;let ue;const de=le.length;let ve=null;const me=[];for(let ge=0;ge<de;++ge){if(ue=le.charCodeAt(ge),ue>55295&&ue<57344){if(!ve){if(ue>56319){(ae-=3)>-1&&me.push(239,191,189);continue}else if(ge+1===de){(ae-=3)>-1&&me.push(239,191,189);continue}ve=ue;continue}if(ue<56320){(ae-=3)>-1&&me.push(239,191,189),ve=ue;continue}ue=(ve-55296<<10|ue-56320)+65536}else ve&&(ae-=3)>-1&&me.push(239,191,189);if(ve=null,ue<128){if((ae-=1)<0)break;me.push(ue)}else if(ue<2048){if((ae-=2)<0)break;me.push(ue>>6|192,ue&63|128)}else if(ue<65536){if((ae-=3)<0)break;me.push(ue>>12|224,ue>>6&63|128,ue&63|128)}else if(ue<1114112){if((ae-=4)<0)break;me.push(ue>>18|240,ue>>12&63|128,ue>>6&63|128,ue&63|128)}else throw new Error("Invalid code point")}return me}function se(le){const ae=[];for(let ue=0;ue<le.length;++ue)ae.push(le.charCodeAt(ue)&255);return ae}function ne(le,ae){let ue,de,ve;const me=[];for(let ge=0;ge<le.length&&!((ae-=2)<0);++ge)ue=le.charCodeAt(ge),de=ue>>8,ve=ue%256,me.push(ve),me.push(de);return me}function re(le){return m.toByteArray(ee(le))}function Y(le,ae,ue,de){let ve;for(ve=0;ve<de&&!(ve+ue>=ae.length||ve>=le.length);++ve)ae[ve+ue]=le[ve];return ve}function V(le,ae){return le instanceof ae||le!=null&&le.constructor!=null&&le.constructor.name!=null&&le.constructor.name===ae.name}function oe(le){return le!==le}const fe=function(){const le="0123456789abcdef",ae=new Array(256);for(let ue=0;ue<16;++ue){const de=ue*16;for(let ve=0;ve<16;++ve)ae[de+ve]=le[ue]+le[ve]}return ae}();function ce(le){return typeof BigInt>"u"?he:le}function he(){throw new Error("BigInt not supported")}})(P2);window.Buffer=P2.Buffer;(()=>{const a=()=>{const _=new Error("not implemented");return _.code="ENOSYS",_};if(!globalThis.fs){let _="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(h,r){_+=w.decode(r);const s=_.lastIndexOf(` +`);return s!=-1&&(console.log(_.substr(0,s)),_=_.substr(s+1)),r.length},write(h,r,s,i,f,e){if(s!==0||i!==r.length||f!==null){e(a());return}const l=this.writeSync(h,r);e(null,l)},chmod(h,r,s){s(a())},chown(h,r,s,i){i(a())},close(h,r){r(a())},fchmod(h,r,s){s(a())},fchown(h,r,s,i){i(a())},fstat(h,r){r(a())},fsync(h,r){r(null)},ftruncate(h,r,s){s(a())},lchown(h,r,s,i){i(a())},link(h,r,s){s(a())},lstat(h,r){r(a())},mkdir(h,r,s){s(a())},open(h,r,s,i){i(a())},read(h,r,s,i,f,e){e(a())},readdir(h,r){r(a())},readlink(h,r){r(a())},rename(h,r,s){s(a())},rmdir(h,r){r(a())},stat(h,r){r(a())},symlink(h,r,s){s(a())},truncate(h,r,s){s(a())},unlink(h,r){r(a())},utimes(h,r,s,i){i(a())}}}if(globalThis.process||(globalThis.process={getuid(){return-1},getgid(){return-1},geteuid(){return-1},getegid(){return-1},getgroups(){throw a()},pid:-1,ppid:-1,umask(){throw a()},cwd(){throw a()},chdir(){throw a()}}),!globalThis.crypto)throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw new Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw new Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw new Error("globalThis.TextDecoder is not available, polyfill required");const m=new TextEncoder("utf-8"),w=new TextDecoder("utf-8");globalThis.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=n=>{n!==0&&console.warn("exit code:",n)},this._exitPromise=new Promise(n=>{this._resolveExitPromise=n}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;const _=(n,t)=>{this.mem.setUint32(n+0,t,!0),this.mem.setUint32(n+4,Math.floor(t/4294967296),!0)},h=n=>{const t=this.mem.getUint32(n+0,!0),o=this.mem.getInt32(n+4,!0);return t+o*4294967296},r=n=>{const t=this.mem.getFloat64(n,!0);if(t===0)return;if(!isNaN(t))return t;const o=this.mem.getUint32(n,!0);return this._values[o]},s=(n,t)=>{if(typeof t=="number"&&t!==0){if(isNaN(t)){this.mem.setUint32(n+4,2146959360,!0),this.mem.setUint32(n,0,!0);return}this.mem.setFloat64(n,t,!0);return}if(t===void 0){this.mem.setFloat64(n,0,!0);return}let d=this._ids.get(t);d===void 0&&(d=this._idPool.pop(),d===void 0&&(d=this._values.length),this._values[d]=t,this._goRefCounts[d]=0,this._ids.set(t,d)),this._goRefCounts[d]++;let u=0;switch(typeof t){case"object":t!==null&&(u=1);break;case"string":u=2;break;case"symbol":u=3;break;case"function":u=4;break}this.mem.setUint32(n+4,2146959360|u,!0),this.mem.setUint32(n,d,!0)},i=n=>{const t=h(n+0),o=h(n+8);return new Uint8Array(this._inst.exports.mem.buffer,t,o)},f=n=>{const t=h(n+0),o=h(n+8),d=new Array(o);for(let u=0;u<o;u++)d[u]=r(t+u*8);return d},e=n=>{const t=h(n+0),o=h(n+8);return w.decode(new DataView(this._inst.exports.mem.buffer,t,o))},l=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":n=>{n>>>=0;const t=this.mem.getInt32(n+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":n=>{n>>>=0;const t=h(n+8),o=h(n+16),d=this.mem.getInt32(n+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,o,d))},"runtime.resetMemoryDataView":n=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":n=>{n>>>=0,_(n+8,(l+performance.now())*1e6)},"runtime.walltime":n=>{n>>>=0;const t=new Date().getTime();_(n+8,t/1e3),this.mem.setInt32(n+16,t%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":n=>{n>>>=0;const t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},h(n+8)+1)),this.mem.setInt32(n+16,t,!0)},"runtime.clearTimeoutEvent":n=>{n>>>=0;const t=this.mem.getInt32(n+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":n=>{n>>>=0,crypto.getRandomValues(i(n+8))},"syscall/js.finalizeRef":n=>{n>>>=0;const t=this.mem.getUint32(n+8,!0);if(this._goRefCounts[t]--,this._goRefCounts[t]===0){const o=this._values[t];this._values[t]=null,this._ids.delete(o),this._idPool.push(t)}},"syscall/js.stringVal":n=>{n>>>=0,s(n+24,e(n+8))},"syscall/js.valueGet":n=>{n>>>=0;const t=Reflect.get(r(n+8),e(n+16));n=this._inst.exports.getsp()>>>0,s(n+32,t)},"syscall/js.valueSet":n=>{n>>>=0,Reflect.set(r(n+8),e(n+16),r(n+32))},"syscall/js.valueDelete":n=>{n>>>=0,Reflect.deleteProperty(r(n+8),e(n+16))},"syscall/js.valueIndex":n=>{n>>>=0,s(n+24,Reflect.get(r(n+8),h(n+16)))},"syscall/js.valueSetIndex":n=>{n>>>=0,Reflect.set(r(n+8),h(n+16),r(n+24))},"syscall/js.valueCall":n=>{n>>>=0;try{const t=r(n+8),o=Reflect.get(t,e(n+16)),d=f(n+32),u=Reflect.apply(o,t,d);n=this._inst.exports.getsp()>>>0,s(n+56,u),this.mem.setUint8(n+64,1)}catch(t){n=this._inst.exports.getsp()>>>0,s(n+56,t),this.mem.setUint8(n+64,0)}},"syscall/js.valueInvoke":n=>{n>>>=0;try{const t=r(n+8),o=f(n+16),d=Reflect.apply(t,void 0,o);n=this._inst.exports.getsp()>>>0,s(n+40,d),this.mem.setUint8(n+48,1)}catch(t){n=this._inst.exports.getsp()>>>0,s(n+40,t),this.mem.setUint8(n+48,0)}},"syscall/js.valueNew":n=>{n>>>=0;try{const t=r(n+8),o=f(n+16),d=Reflect.construct(t,o);n=this._inst.exports.getsp()>>>0,s(n+40,d),this.mem.setUint8(n+48,1)}catch(t){n=this._inst.exports.getsp()>>>0,s(n+40,t),this.mem.setUint8(n+48,0)}},"syscall/js.valueLength":n=>{n>>>=0,_(n+16,parseInt(r(n+8).length))},"syscall/js.valuePrepareString":n=>{n>>>=0;const t=m.encode(String(r(n+8)));s(n+16,t),_(n+24,t.length)},"syscall/js.valueLoadString":n=>{n>>>=0;const t=r(n+8);i(n+16).set(t)},"syscall/js.valueInstanceOf":n=>{n>>>=0,this.mem.setUint8(n+24,r(n+8)instanceof r(n+16)?1:0)},"syscall/js.copyBytesToGo":n=>{n>>>=0;const t=i(n+8),o=r(n+32);if(!(o instanceof Uint8Array||o instanceof Uint8ClampedArray)){this.mem.setUint8(n+48,0);return}const d=o.subarray(0,t.length);t.set(d),_(n+40,d.length),this.mem.setUint8(n+48,1)},"syscall/js.copyBytesToJS":n=>{n>>>=0;const t=r(n+8),o=i(n+16);if(!(t instanceof Uint8Array||t instanceof Uint8ClampedArray)){this.mem.setUint8(n+48,0);return}const d=o.subarray(0,t.length);t.set(d),_(n+40,d.length),this.mem.setUint8(n+48,1)},debug:n=>{console.log(n)}}}}async run(_){if(!(_ instanceof WebAssembly.Instance))throw new Error("Go.run: WebAssembly.Instance expected");this._inst=_,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=new Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let h=4096;const r=n=>{const t=h,o=m.encode(n+"\0");return new Uint8Array(this.mem.buffer,h,o.length).set(o),h+=o.length,h%8!==0&&(h+=8-h%8),t},s=this.argv.length,i=[];this.argv.forEach(n=>{i.push(r(n))}),i.push(0),Object.keys(this.env).sort().forEach(n=>{i.push(r(`${n}=${this.env[n]}`))}),i.push(0);const e=h;i.forEach(n=>{this.mem.setUint32(h,n,!0),this.mem.setUint32(h+4,0,!0),h+=8});const l=4096+8192;if(h>=l)throw new Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(s,e),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw new Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(_){const h=this;return function(){const r={id:_,this:this,args:arguments};return h._pendingEvent=r,h._resume(),r.result}}}})();/*! + * Vue.js v2.7.14 + * (c) 2014-2022 Evan You + * Released under the MIT License. + */var Lt=Object.freeze({}),tt=Array.isArray;function Ze(a){return a==null}function Se(a){return a!=null}function gt(a){return a===!0}function a8(a){return a===!1}function qa(a){return typeof a=="string"||typeof a=="number"||typeof a=="symbol"||typeof a=="boolean"}function lt(a){return typeof a=="function"}function Ut(a){return a!==null&&typeof a=="object"}var lc=Object.prototype.toString;function zt(a){return lc.call(a)==="[object Object]"}function o8(a){return lc.call(a)==="[object RegExp]"}function M2(a){var m=parseFloat(String(a));return m>=0&&Math.floor(m)===m&&isFinite(a)}function jl(a){return Se(a)&&typeof a.then=="function"&&typeof a.catch=="function"}function s8(a){return a==null?"":Array.isArray(a)||zt(a)&&a.toString===lc?JSON.stringify(a,null,2):String(a)}function sa(a){var m=parseFloat(a);return isNaN(m)?a:m}function vr(a,m){for(var w=Object.create(null),_=a.split(","),h=0;h<_.length;h++)w[_[h]]=!0;return m?function(r){return w[r.toLowerCase()]}:function(r){return w[r]}}vr("slot,component",!0);var u8=vr("key,ref,slot,slot-scope,is");function yn(a,m){var w=a.length;if(w){if(m===a[w-1]){a.length=w-1;return}var _=a.indexOf(m);if(_>-1)return a.splice(_,1)}}var l8=Object.prototype.hasOwnProperty;function Ft(a,m){return l8.call(a,m)}function qn(a){var m=Object.create(null);return function(_){var h=m[_];return h||(m[_]=a(_))}}var f8=/-(\w)/g,Nn=qn(function(a){return a.replace(f8,function(m,w){return w?w.toUpperCase():""})}),c8=qn(function(a){return a.charAt(0).toUpperCase()+a.slice(1)}),d8=/\B([A-Z])/g,$a=qn(function(a){return a.replace(d8,"-$1").toLowerCase()});function h8(a,m){function w(_){var h=arguments.length;return h?h>1?a.apply(m,arguments):a.call(m,_):a.call(m)}return w._length=a.length,w}function p8(a,m){return a.bind(m)}var I2=Function.prototype.bind?p8:h8;function Hl(a,m){m=m||0;for(var w=a.length-m,_=new Array(w);w--;)_[w]=a[w+m];return _}function vt(a,m){for(var w in m)a[w]=m[w];return a}function D2(a){for(var m={},w=0;w<a.length;w++)a[w]&&vt(m,a[w]);return m}function yt(a,m,w){}var io=function(a,m,w){return!1},B2=function(a){return a};function Ln(a,m){if(a===m)return!0;var w=Ut(a),_=Ut(m);if(w&&_)try{var h=Array.isArray(a),r=Array.isArray(m);if(h&&r)return a.length===m.length&&a.every(function(f,e){return Ln(f,m[e])});if(a instanceof Date&&m instanceof Date)return a.getTime()===m.getTime();if(!h&&!r){var s=Object.keys(a),i=Object.keys(m);return s.length===i.length&&s.every(function(f){return Ln(a[f],m[f])})}else return!1}catch{return!1}else return!w&&!_?String(a)===String(m):!1}function R2(a,m){for(var w=0;w<a.length;w++)if(Ln(a[w],m))return w;return-1}function Fo(a){var m=!1;return function(){m||(m=!0,a.apply(this,arguments))}}function zl(a,m){return a===m?a===0&&1/a!==1/m:a===a||m===m}var Vd="data-server-rendered",Cs=["component","directive","filter"],N2=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],nr={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:io,isReservedAttr:io,isUnknownElement:io,getTagNamespace:yt,parsePlatformTagName:B2,mustUseProp:io,async:!0,_lifecycleHooks:N2},v8=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function L2(a){var m=(a+"").charCodeAt(0);return m===36||m===95}function At(a,m,w,_){Object.defineProperty(a,m,{value:w,enumerable:!!_,writable:!0,configurable:!0})}var m8=new RegExp("[^".concat(v8.source,".$_\\d]"));function y8(a){if(!m8.test(a)){var m=a.split(".");return function(w){for(var _=0;_<m.length;_++){if(!w)return;w=w[m[_]]}return w}}}var g8="__proto__"in{},Vt=typeof window<"u",ir=Vt&&window.navigator.userAgent.toLowerCase(),Ai=ir&&/msie|trident/.test(ir),Ei=ir&&ir.indexOf("msie 9.0")>0,U2=ir&&ir.indexOf("edge/")>0;ir&&ir.indexOf("android")>0;var b8=ir&&/iphone|ipad|ipod|ios/.test(ir),Kd=ir&&ir.match(/firefox\/(\d+)/),ql={}.watch,F2=!1;if(Vt)try{var Gd={};Object.defineProperty(Gd,"passive",{get:function(){F2=!0}}),window.addEventListener("test-passive",null,Gd)}catch{}var ao,gn=function(){return ao===void 0&&(!Vt&&typeof global<"u"?ao=global.process&&global.process.env.VUE_ENV==="server":ao=!1),ao},jo=Vt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ci(a){return typeof a=="function"&&/native code/.test(a.toString())}var Wa=typeof Symbol<"u"&&ci(Symbol)&&typeof Reflect<"u"&&ci(Reflect.ownKeys),ua;typeof Set<"u"&&ci(Set)?ua=Set:ua=function(){function a(){this.set=Object.create(null)}return a.prototype.has=function(m){return this.set[m]===!0},a.prototype.add=function(m){this.set[m]=!0},a.prototype.clear=function(){this.set=Object.create(null)},a}();var Et=null;function _8(){return Et&&{proxy:Et}}function cn(a){a===void 0&&(a=null),a||Et&&Et._scope.off(),Et=a,a&&a._scope.on()}var Qt=function(){function a(m,w,_,h,r,s,i,f){this.tag=m,this.data=w,this.children=_,this.text=h,this.elm=r,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=w&&w.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=f,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(a.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),a}(),Tn=function(a){a===void 0&&(a="");var m=new Qt;return m.text=a,m.isComment=!0,m};function si(a){return new Qt(void 0,void 0,void 0,String(a))}function $l(a){var m=new Qt(a.tag,a.data,a.children&&a.children.slice(),a.text,a.elm,a.context,a.componentOptions,a.asyncFactory);return m.ns=a.ns,m.isStatic=a.isStatic,m.key=a.key,m.isComment=a.isComment,m.fnContext=a.fnContext,m.fnOptions=a.fnOptions,m.fnScopeId=a.fnScopeId,m.asyncMeta=a.asyncMeta,m.isCloned=!0,m}var w8=0,xo=[],x8=function(){for(var a=0;a<xo.length;a++){var m=xo[a];m.subs=m.subs.filter(function(w){return w}),m._pending=!1}xo.length=0},Or=function(){function a(){this._pending=!1,this.id=w8++,this.subs=[]}return a.prototype.addSub=function(m){this.subs.push(m)},a.prototype.removeSub=function(m){this.subs[this.subs.indexOf(m)]=null,this._pending||(this._pending=!0,xo.push(this))},a.prototype.depend=function(m){a.target&&a.target.addDep(this)},a.prototype.notify=function(m){for(var w=this.subs.filter(function(s){return s}),_=0,h=w.length;_<h;_++){var r=w[_];r.update()}},a}();Or.target=null;var Ao=[];function Si(a){Ao.push(a),Or.target=a}function Ci(){Ao.pop(),Or.target=Ao[Ao.length-1]}var j2=Array.prototype,Ho=Object.create(j2),A8=["push","pop","shift","unshift","splice","sort","reverse"];A8.forEach(function(a){var m=j2[a];At(Ho,a,function(){for(var _=[],h=0;h<arguments.length;h++)_[h]=arguments[h];var r=m.apply(this,_),s=this.__ob__,i;switch(a){case"push":case"unshift":i=_;break;case"splice":i=_.slice(2);break}return i&&s.observeArray(i),s.dep.notify(),r})});var Jd=Object.getOwnPropertyNames(Ho),H2={},fc=!0;function dn(a){fc=a}var E8={notify:yt,depend:yt,addSub:yt,removeSub:yt},Qd=function(){function a(m,w,_){if(w===void 0&&(w=!1),_===void 0&&(_=!1),this.value=m,this.shallow=w,this.mock=_,this.dep=_?E8:new Or,this.vmCount=0,At(m,"__ob__",this),tt(m)){if(!_)if(g8)m.__proto__=Ho;else for(var h=0,r=Jd.length;h<r;h++){var s=Jd[h];At(m,s,Ho[s])}w||this.observeArray(m)}else for(var i=Object.keys(m),h=0;h<i.length;h++){var s=i[h];hn(m,s,H2,void 0,w,_)}}return a.prototype.observeArray=function(m){for(var w=0,_=m.length;w<_;w++)qr(m[w],!1,this.mock)},a}();function qr(a,m,w){if(a&&Ft(a,"__ob__")&&a.__ob__ instanceof Qd)return a.__ob__;if(fc&&(w||!gn())&&(tt(a)||zt(a))&&Object.isExtensible(a)&&!a.__v_skip&&!Tt(a)&&!(a instanceof Qt))return new Qd(a,m,w)}function hn(a,m,w,_,h,r){var s=new Or,i=Object.getOwnPropertyDescriptor(a,m);if(!(i&&i.configurable===!1)){var f=i&&i.get,e=i&&i.set;(!f||e)&&(w===H2||arguments.length===2)&&(w=a[m]);var l=!h&&qr(w,!1,r);return Object.defineProperty(a,m,{enumerable:!0,configurable:!0,get:function(){var t=f?f.call(a):w;return Or.target&&(s.depend(),l&&(l.dep.depend(),tt(t)&&z2(t))),Tt(t)&&!h?t.value:t},set:function(t){var o=f?f.call(a):w;if(zl(o,t)){if(e)e.call(a,t);else{if(f)return;if(!h&&Tt(o)&&!Tt(t)){o.value=t;return}else w=t}l=!h&&qr(t,!1,r),s.notify()}}}),s}}function ks(a,m,w){if(!$n(a)){var _=a.__ob__;return tt(a)&&M2(m)?(a.length=Math.max(a.length,m),a.splice(m,1,w),_&&!_.shallow&&_.mock&&qr(w,!1,!0),w):m in a&&!(m in Object.prototype)?(a[m]=w,w):a._isVue||_&&_.vmCount?w:_?(hn(_.value,m,w,void 0,_.shallow,_.mock),_.dep.notify(),w):(a[m]=w,w)}}function cc(a,m){if(tt(a)&&M2(m)){a.splice(m,1);return}var w=a.__ob__;a._isVue||w&&w.vmCount||$n(a)||Ft(a,m)&&(delete a[m],w&&w.dep.notify())}function z2(a){for(var m=void 0,w=0,_=a.length;w<_;w++)m=a[w],m&&m.__ob__&&m.__ob__.dep.depend(),tt(m)&&z2(m)}function S8(a){return q2(a,!1),a}function dc(a){return q2(a,!0),At(a,"__v_isShallow",!0),a}function q2(a,m){$n(a)||qr(a,m,gn())}function Mn(a){return $n(a)?Mn(a.__v_raw):!!(a&&a.__ob__)}function zo(a){return!!(a&&a.__v_isShallow)}function $n(a){return!!(a&&a.__v_isReadonly)}function C8(a){return Mn(a)||$n(a)}function $2(a){var m=a&&a.__v_raw;return m?$2(m):a}function k8(a){return Object.isExtensible(a)&&At(a,"__v_skip",!0),a}var Va="__v_isRef";function Tt(a){return!!(a&&a.__v_isRef===!0)}function O8(a){return W2(a,!1)}function P8(a){return W2(a,!0)}function W2(a,m){if(Tt(a))return a;var w={};return At(w,Va,!0),At(w,"__v_isShallow",m),At(w,"dep",hn(w,"value",a,null,m,gn())),w}function T8(a){a.dep&&a.dep.notify()}function M8(a){return Tt(a)?a.value:a}function I8(a){if(Mn(a))return a;for(var m={},w=Object.keys(a),_=0;_<w.length;_++)qo(m,a,w[_]);return m}function qo(a,m,w){Object.defineProperty(a,w,{enumerable:!0,configurable:!0,get:function(){var _=m[w];if(Tt(_))return _.value;var h=_&&_.__ob__;return h&&h.dep.depend(),_},set:function(_){var h=m[w];Tt(h)&&!Tt(_)?h.value=_:m[w]=_}})}function D8(a){var m=new Or,w=a(function(){m.depend()},function(){m.notify()}),_=w.get,h=w.set,r={get value(){return _()},set value(s){h(s)}};return At(r,Va,!0),r}function B8(a){var m=tt(a)?new Array(a.length):{};for(var w in a)m[w]=V2(a,w);return m}function V2(a,m,w){var _=a[m];if(Tt(_))return _;var h={get value(){var r=a[m];return r===void 0?w:r},set value(r){a[m]=r}};return At(h,Va,!0),h}var R8="__v_rawToReadonly",N8="__v_rawToShallowReadonly";function K2(a){return G2(a,!1)}function G2(a,m){if(!zt(a)||$n(a))return a;var w=m?N8:R8,_=a[w];if(_)return _;var h=Object.create(Object.getPrototypeOf(a));At(a,w,h),At(h,"__v_isReadonly",!0),At(h,"__v_raw",a),Tt(a)&&At(h,Va,!0),(m||zo(a))&&At(h,"__v_isShallow",!0);for(var r=Object.keys(a),s=0;s<r.length;s++)L8(h,a,r[s],m);return h}function L8(a,m,w,_){Object.defineProperty(a,w,{enumerable:!0,configurable:!0,get:function(){var h=m[w];return _||!zt(h)?h:K2(h)},set:function(){}})}function U8(a){return G2(a,!0)}function F8(a,m){var w,_,h=lt(a);h?(w=a,_=yt):(w=a.get,_=a.set);var r=gn()?null:new Ka(Et,w,yt,{lazy:!0}),s={effect:r,get value(){return r?(r.dirty&&r.evaluate(),Or.target&&r.depend(),r.value):w()},set value(i){_(i)}};return At(s,Va,!0),At(s,"__v_isReadonly",h),s}var Os="watcher",Yd="".concat(Os," callback"),Xd="".concat(Os," getter"),j8="".concat(Os," cleanup");function H8(a,m){return Ps(a,null,m)}function J2(a,m){return Ps(a,null,{flush:"post"})}function z8(a,m){return Ps(a,null,{flush:"sync"})}var Zd={};function q8(a,m,w){return Ps(a,m,w)}function Ps(a,m,w){var _=w===void 0?Lt:w,h=_.immediate,r=_.deep,s=_.flush,i=s===void 0?"pre":s;_.onTrack,_.onTrigger;var f=Et,e=function(p,v,y){return y===void 0&&(y=null),$r(p,null,y,f,v)},l,n=!1,t=!1;if(Tt(a)?(l=function(){return a.value},n=zo(a)):Mn(a)?(l=function(){return a.__ob__.dep.depend(),a},r=!0):tt(a)?(t=!0,n=a.some(function(p){return Mn(p)||zo(p)}),l=function(){return a.map(function(p){if(Tt(p))return p.value;if(Mn(p))return vi(p);if(lt(p))return e(p,Xd)})}):lt(a)?m?l=function(){return e(a,Xd)}:l=function(){if(!(f&&f._isDestroyed))return d&&d(),e(a,Os,[u])}:l=yt,m&&r){var o=l;l=function(){return vi(o())}}var d,u=function(p){d=c.onStop=function(){e(p,j8)}};if(gn())return u=yt,m?h&&e(m,Yd,[l(),t?[]:void 0,u]):l(),yt;var c=new Ka(Et,l,yt,{lazy:!0});c.noRecurse=!m;var g=t?[]:Zd;return c.run=function(){if(c.active)if(m){var p=c.get();(r||n||(t?p.some(function(v,y){return zl(v,g[y])}):zl(p,g)))&&(d&&d(),e(m,Yd,[p,g===Zd?void 0:g,u]),g=p)}else c.get()},i==="sync"?c.update=c.run:i==="post"?(c.post=!0,c.update=function(){return Xl(c)}):c.update=function(){if(f&&f===Et&&!f._isMounted){var p=f._preWatchers||(f._preWatchers=[]);p.indexOf(c)<0&&p.push(c)}else Xl(c)},m?h?c.run():g=c.get():i==="post"&&f?f.$once("hook:mounted",function(){return c.get()}):c.get(),function(){c.teardown()}}var Nt,hc=function(){function a(m){m===void 0&&(m=!1),this.detached=m,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Nt,!m&&Nt&&(this.index=(Nt.scopes||(Nt.scopes=[])).push(this)-1)}return a.prototype.run=function(m){if(this.active){var w=Nt;try{return Nt=this,m()}finally{Nt=w}}},a.prototype.on=function(){Nt=this},a.prototype.off=function(){Nt=this.parent},a.prototype.stop=function(m){if(this.active){var w=void 0,_=void 0;for(w=0,_=this.effects.length;w<_;w++)this.effects[w].teardown();for(w=0,_=this.cleanups.length;w<_;w++)this.cleanups[w]();if(this.scopes)for(w=0,_=this.scopes.length;w<_;w++)this.scopes[w].stop(!0);if(!this.detached&&this.parent&&!m){var h=this.parent.scopes.pop();h&&h!==this&&(this.parent.scopes[this.index]=h,h.index=this.index)}this.parent=void 0,this.active=!1}},a}();function $8(a){return new hc(a)}function W8(a,m){m===void 0&&(m=Nt),m&&m.active&&m.effects.push(a)}function V8(){return Nt}function K8(a){Nt&&Nt.cleanups.push(a)}function G8(a,m){Et&&(Q2(Et)[a]=m)}function Q2(a){var m=a._provided,w=a.$parent&&a.$parent._provided;return w===m?a._provided=Object.create(w):m}function J8(a,m,w){w===void 0&&(w=!1);var _=Et;if(_){var h=_.$parent&&_.$parent._provided;if(h&&a in h)return h[a];if(arguments.length>1)return w&<(m)?m.call(_):m}}var eh=qn(function(a){var m=a.charAt(0)==="&";a=m?a.slice(1):a;var w=a.charAt(0)==="~";a=w?a.slice(1):a;var _=a.charAt(0)==="!";return a=_?a.slice(1):a,{name:a,once:w,capture:_,passive:m}});function Wl(a,m){function w(){var _=w.fns;if(tt(_))for(var h=_.slice(),r=0;r<h.length;r++)$r(h[r],null,arguments,m,"v-on handler");else return $r(_,null,arguments,m,"v-on handler")}return w.fns=a,w}function Y2(a,m,w,_,h,r){var s,i,f,e;for(s in a)i=a[s],f=m[s],e=eh(s),Ze(i)||(Ze(f)?(Ze(i.fns)&&(i=a[s]=Wl(i,r)),gt(e.once)&&(i=a[s]=h(e.name,i,e.capture)),w(e.name,i,e.capture,e.passive,e.params)):i!==f&&(f.fns=i,a[s]=f));for(s in m)Ze(a[s])&&(e=eh(s),_(e.name,m[s],e.capture))}function tn(a,m,w){a instanceof Qt&&(a=a.data.hook||(a.data.hook={}));var _,h=a[m];function r(){w.apply(this,arguments),yn(_.fns,r)}Ze(h)?_=Wl([r]):Se(h.fns)&>(h.merged)?(_=h,_.fns.push(r)):_=Wl([h,r]),_.merged=!0,a[m]=_}function Q8(a,m,w){var _=m.options.props;if(!Ze(_)){var h={},r=a.attrs,s=a.props;if(Se(r)||Se(s))for(var i in _){var f=$a(i);th(h,s,i,f,!0)||th(h,r,i,f,!1)}return h}}function th(a,m,w,_,h){if(Se(m)){if(Ft(m,w))return a[w]=m[w],h||delete m[w],!0;if(Ft(m,_))return a[w]=m[_],h||delete m[_],!0}return!1}function Y8(a){for(var m=0;m<a.length;m++)if(tt(a[m]))return Array.prototype.concat.apply([],a);return a}function pc(a){return qa(a)?[si(a)]:tt(a)?X2(a):void 0}function $i(a){return Se(a)&&Se(a.text)&&a8(a.isComment)}function X2(a,m){var w=[],_,h,r,s;for(_=0;_<a.length;_++)h=a[_],!(Ze(h)||typeof h=="boolean")&&(r=w.length-1,s=w[r],tt(h)?h.length>0&&(h=X2(h,"".concat(m||"","_").concat(_)),$i(h[0])&&$i(s)&&(w[r]=si(s.text+h[0].text),h.shift()),w.push.apply(w,h)):qa(h)?$i(s)?w[r]=si(s.text+h):h!==""&&w.push(si(h)):$i(h)&&$i(s)?w[r]=si(s.text+h.text):(gt(a._isVList)&&Se(h.tag)&&Ze(h.key)&&Se(m)&&(h.key="__vlist".concat(m,"_").concat(_,"__")),w.push(h)));return w}function X8(a,m){var w=null,_,h,r,s;if(tt(a)||typeof a=="string")for(w=new Array(a.length),_=0,h=a.length;_<h;_++)w[_]=m(a[_],_);else if(typeof a=="number")for(w=new Array(a),_=0;_<a;_++)w[_]=m(_+1,_);else if(Ut(a))if(Wa&&a[Symbol.iterator]){w=[];for(var i=a[Symbol.iterator](),f=i.next();!f.done;)w.push(m(f.value,w.length)),f=i.next()}else for(r=Object.keys(a),w=new Array(r.length),_=0,h=r.length;_<h;_++)s=r[_],w[_]=m(a[s],s,_);return Se(w)||(w=[]),w._isVList=!0,w}function Z8(a,m,w,_){var h=this.$scopedSlots[a],r;h?(w=w||{},_&&(w=vt(vt({},_),w)),r=h(w)||(lt(m)?m():m)):r=this.$slots[a]||(lt(m)?m():m);var s=w&&w.slot;return s?this.$createElement("template",{slot:s},r):r}function e3(a){return Ko(this.$options,"filters",a)||B2}function rh(a,m){return tt(a)?a.indexOf(m)===-1:a!==m}function t3(a,m,w,_,h){var r=nr.keyCodes[m]||w;return h&&_&&!nr.keyCodes[m]?rh(h,_):r?rh(r,a):_?$a(_)!==m:a===void 0}function r3(a,m,w,_,h){if(w&&Ut(w)){tt(w)&&(w=D2(w));var r=void 0,s=function(f){if(f==="class"||f==="style"||u8(f))r=a;else{var e=a.attrs&&a.attrs.type;r=_||nr.mustUseProp(m,e,f)?a.domProps||(a.domProps={}):a.attrs||(a.attrs={})}var l=Nn(f),n=$a(f);if(!(l in r)&&!(n in r)&&(r[f]=w[f],h)){var t=a.on||(a.on={});t["update:".concat(f)]=function(o){w[f]=o}}};for(var i in w)s(i)}return a}function n3(a,m){var w=this._staticTrees||(this._staticTrees=[]),_=w[a];return _&&!m||(_=w[a]=this.$options.staticRenderFns[a].call(this._renderProxy,this._c,this),Z2(_,"__static__".concat(a),!1)),_}function i3(a,m,w){return Z2(a,"__once__".concat(m).concat(w?"_".concat(w):""),!0),a}function Z2(a,m,w){if(tt(a))for(var _=0;_<a.length;_++)a[_]&&typeof a[_]!="string"&&nh(a[_],"".concat(m,"_").concat(_),w);else nh(a,m,w)}function nh(a,m,w){a.isStatic=!0,a.key=m,a.isOnce=w}function a3(a,m){if(m&&zt(m)){var w=a.on=a.on?vt({},a.on):{};for(var _ in m){var h=w[_],r=m[_];w[_]=h?[].concat(h,r):r}}return a}function ep(a,m,w,_){m=m||{$stable:!w};for(var h=0;h<a.length;h++){var r=a[h];tt(r)?ep(r,m,w):r&&(r.proxy&&(r.fn.proxy=!0),m[r.key]=r.fn)}return _&&(m.$key=_),m}function o3(a,m){for(var w=0;w<m.length;w+=2){var _=m[w];typeof _=="string"&&_&&(a[m[w]]=m[w+1])}return a}function s3(a,m){return typeof a=="string"?m+a:a}function tp(a){a._o=i3,a._n=sa,a._s=s8,a._l=X8,a._t=Z8,a._q=Ln,a._i=R2,a._m=n3,a._f=e3,a._k=t3,a._b=r3,a._v=si,a._e=Tn,a._u=ep,a._g=a3,a._d=o3,a._p=s3}function vc(a,m){if(!a||!a.length)return{};for(var w={},_=0,h=a.length;_<h;_++){var r=a[_],s=r.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,(r.context===m||r.fnContext===m)&&s&&s.slot!=null){var i=s.slot,f=w[i]||(w[i]=[]);r.tag==="template"?f.push.apply(f,r.children||[]):f.push(r)}else(w.default||(w.default=[])).push(r)}for(var e in w)w[e].every(u3)&&delete w[e];return w}function u3(a){return a.isComment&&!a.asyncFactory||a.text===" "}function la(a){return a.isComment&&a.asyncFactory}function na(a,m,w,_){var h,r=Object.keys(w).length>0,s=m?!!m.$stable:!r,i=m&&m.$key;if(!m)h={};else{if(m._normalized)return m._normalized;if(s&&_&&_!==Lt&&i===_.$key&&!r&&!_.$hasNormal)return _;h={};for(var f in m)m[f]&&f[0]!=="$"&&(h[f]=l3(a,w,f,m[f]))}for(var e in w)e in h||(h[e]=f3(w,e));return m&&Object.isExtensible(m)&&(m._normalized=h),At(h,"$stable",s),At(h,"$key",i),At(h,"$hasNormal",r),h}function l3(a,m,w,_){var h=function(){var r=Et;cn(a);var s=arguments.length?_.apply(null,arguments):_({});s=s&&typeof s=="object"&&!tt(s)?[s]:pc(s);var i=s&&s[0];return cn(r),s&&(!i||s.length===1&&i.isComment&&!la(i))?void 0:s};return _.proxy&&Object.defineProperty(m,w,{get:h,enumerable:!0,configurable:!0}),h}function f3(a,m){return function(){return a[m]}}function c3(a){var m=a.$options,w=m.setup;if(w){var _=a._setupContext=rp(a);cn(a),Si();var h=$r(w,null,[a._props||dc({}),_],a,"setup");if(Ci(),cn(),lt(h))m.render=h;else if(Ut(h))if(a._setupState=h,h.__sfc){var s=a._setupProxy={};for(var r in h)r!=="__sfc"&&qo(s,h,r)}else for(var r in h)L2(r)||qo(a,h,r)}}function rp(a){return{get attrs(){if(!a._attrsProxy){var m=a._attrsProxy={};At(m,"_v_attr_proxy",!0),$o(m,a.$attrs,Lt,a,"$attrs")}return a._attrsProxy},get listeners(){if(!a._listenersProxy){var m=a._listenersProxy={};$o(m,a.$listeners,Lt,a,"$listeners")}return a._listenersProxy},get slots(){return h3(a)},emit:I2(a.$emit,a),expose:function(m){m&&Object.keys(m).forEach(function(w){return qo(a,m,w)})}}}function $o(a,m,w,_,h){var r=!1;for(var s in m)s in a?m[s]!==w[s]&&(r=!0):(r=!0,d3(a,s,_,h));for(var s in a)s in m||(r=!0,delete a[s]);return r}function d3(a,m,w,_){Object.defineProperty(a,m,{enumerable:!0,configurable:!0,get:function(){return w[_][m]}})}function h3(a){return a._slotsProxy||np(a._slotsProxy={},a.$scopedSlots),a._slotsProxy}function np(a,m){for(var w in m)a[w]=m[w];for(var w in a)w in m||delete a[w]}function p3(){return mc().slots}function v3(){return mc().attrs}function m3(){return mc().listeners}function mc(){var a=Et;return a._setupContext||(a._setupContext=rp(a))}function y3(a,m){var w=tt(a)?a.reduce(function(r,s){return r[s]={},r},{}):a;for(var _ in m){var h=w[_];h?tt(h)||lt(h)?w[_]={type:h,default:m[_]}:h.default=m[_]:h===null&&(w[_]={default:m[_]})}return w}function g3(a){a._vnode=null,a._staticTrees=null;var m=a.$options,w=a.$vnode=m._parentVnode,_=w&&w.context;a.$slots=vc(m._renderChildren,_),a.$scopedSlots=w?na(a.$parent,w.data.scopedSlots,a.$slots):Lt,a._c=function(r,s,i,f){return fa(a,r,s,i,f,!1)},a.$createElement=function(r,s,i,f){return fa(a,r,s,i,f,!0)};var h=w&&w.data;hn(a,"$attrs",h&&h.attrs||Lt,null,!0),hn(a,"$listeners",m._parentListeners||Lt,null,!0)}var Vl=null;function b3(a){tp(a.prototype),a.prototype.$nextTick=function(m){return Ts(m,this)},a.prototype._render=function(){var m=this,w=m.$options,_=w.render,h=w._parentVnode;h&&m._isMounted&&(m.$scopedSlots=na(m.$parent,h.data.scopedSlots,m.$slots,m.$scopedSlots),m._slotsProxy&&np(m._slotsProxy,m.$scopedSlots)),m.$vnode=h;var r;try{cn(m),Vl=m,r=_.call(m._renderProxy,m.$createElement)}catch(s){Un(s,m,"render"),r=m._vnode}finally{Vl=null,cn()}return tt(r)&&r.length===1&&(r=r[0]),r instanceof Qt||(r=Tn()),r.parent=h,r}}function pu(a,m){return(a.__esModule||Wa&&a[Symbol.toStringTag]==="Module")&&(a=a.default),Ut(a)?m.extend(a):a}function _3(a,m,w,_,h){var r=Tn();return r.asyncFactory=a,r.asyncMeta={data:m,context:w,children:_,tag:h},r}function w3(a,m){if(gt(a.error)&&Se(a.errorComp))return a.errorComp;if(Se(a.resolved))return a.resolved;var w=Vl;if(w&&Se(a.owners)&&a.owners.indexOf(w)===-1&&a.owners.push(w),gt(a.loading)&&Se(a.loadingComp))return a.loadingComp;if(w&&!Se(a.owners)){var _=a.owners=[w],h=!0,r=null,s=null;w.$on("hook:destroyed",function(){return yn(_,w)});var i=function(n){for(var t=0,o=_.length;t<o;t++)_[t].$forceUpdate();n&&(_.length=0,r!==null&&(clearTimeout(r),r=null),s!==null&&(clearTimeout(s),s=null))},f=Fo(function(n){a.resolved=pu(n,m),h?_.length=0:i(!0)}),e=Fo(function(n){Se(a.errorComp)&&(a.error=!0,i(!0))}),l=a(f,e);return Ut(l)&&(jl(l)?Ze(a.resolved)&&l.then(f,e):jl(l.component)&&(l.component.then(f,e),Se(l.error)&&(a.errorComp=pu(l.error,m)),Se(l.loading)&&(a.loadingComp=pu(l.loading,m),l.delay===0?a.loading=!0:r=setTimeout(function(){r=null,Ze(a.resolved)&&Ze(a.error)&&(a.loading=!0,i(!1))},l.delay||200)),Se(l.timeout)&&(s=setTimeout(function(){s=null,Ze(a.resolved)&&e(null)},l.timeout)))),h=!1,a.loading?a.loadingComp:a.resolved}}function ip(a){if(tt(a))for(var m=0;m<a.length;m++){var w=a[m];if(Se(w)&&(Se(w.componentOptions)||la(w)))return w}}var x3=1,ap=2;function fa(a,m,w,_,h,r){return(tt(w)||qa(w))&&(h=_,_=w,w=void 0),gt(r)&&(h=ap),A3(a,m,w,_,h)}function A3(a,m,w,_,h){if(Se(w)&&Se(w.__ob__)||(Se(w)&&Se(w.is)&&(m=w.is),!m))return Tn();tt(_)&<(_[0])&&(w=w||{},w.scopedSlots={default:_[0]},_.length=0),h===ap?_=pc(_):h===x3&&(_=Y8(_));var r,s;if(typeof m=="string"){var i=void 0;s=a.$vnode&&a.$vnode.ns||nr.getTagNamespace(m),nr.isReservedTag(m)?r=new Qt(nr.parsePlatformTagName(m),w,_,void 0,void 0,a):(!w||!w.pre)&&Se(i=Ko(a.$options,"components",m))?r=ch(i,w,a,_,m):r=new Qt(m,w,_,void 0,void 0,a)}else r=ch(m,w,a,_);return tt(r)?r:Se(r)?(Se(s)&&op(r,s),Se(w)&&E3(w),r):Tn()}function op(a,m,w){if(a.ns=m,a.tag==="foreignObject"&&(m=void 0,w=!0),Se(a.children))for(var _=0,h=a.children.length;_<h;_++){var r=a.children[_];Se(r.tag)&&(Ze(r.ns)||gt(w)&&r.tag!=="svg")&&op(r,m,w)}}function E3(a){Ut(a.style)&&vi(a.style),Ut(a.class)&&vi(a.class)}function S3(a,m,w){return fa(Et,a,m,w,2,!0)}function Un(a,m,w){Si();try{if(m)for(var _=m;_=_.$parent;){var h=_.$options.errorCaptured;if(h)for(var r=0;r<h.length;r++)try{var s=h[r].call(_,a,m,w)===!1;if(s)return}catch(i){ih(i,_,"errorCaptured hook")}}ih(a,m,w)}finally{Ci()}}function $r(a,m,w,_,h){var r;try{r=w?a.apply(m,w):a.call(m),r&&!r._isVue&&jl(r)&&!r._handled&&(r.catch(function(s){return Un(s,_,h+" (Promise/async)")}),r._handled=!0)}catch(s){Un(s,_,h)}return r}function ih(a,m,w){if(nr.errorHandler)try{return nr.errorHandler.call(null,a,m,w)}catch(_){_!==a&&ah(_)}ah(a)}function ah(a,m,w){if(Vt&&typeof console<"u")console.error(a);else throw a}var Kl=!1,Gl=[],Jl=!1;function oo(){Jl=!1;var a=Gl.slice(0);Gl.length=0;for(var m=0;m<a.length;m++)a[m]()}var Xi;if(typeof Promise<"u"&&ci(Promise)){var C3=Promise.resolve();Xi=function(){C3.then(oo),b8&&setTimeout(yt)},Kl=!0}else if(!Ai&&typeof MutationObserver<"u"&&(ci(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var so=1,k3=new MutationObserver(oo),oh=document.createTextNode(String(so));k3.observe(oh,{characterData:!0}),Xi=function(){so=(so+1)%2,oh.data=String(so)},Kl=!0}else typeof setImmediate<"u"&&ci(setImmediate)?Xi=function(){setImmediate(oo)}:Xi=function(){setTimeout(oo,0)};function Ts(a,m){var w;if(Gl.push(function(){if(a)try{a.call(m)}catch(_){Un(_,m,"nextTick")}else w&&w(m)}),Jl||(Jl=!0,Xi()),!a&&typeof Promise<"u")return new Promise(function(_){w=_})}function O3(a){a===void 0&&(a="$style");{if(!Et)return Lt;var m=Et[a];return m||Lt}}function P3(a){if(Vt){var m=Et;m&&J2(function(){var w=m.$el,_=a(m,m._setupProxy);if(w&&w.nodeType===1){var h=w.style;for(var r in _)h.setProperty("--".concat(r),_[r])}})}}function T3(a){lt(a)&&(a={loader:a});var m=a.loader,w=a.loadingComponent,_=a.errorComponent,h=a.delay,r=h===void 0?200:h,s=a.timeout;a.suspensible;var i=a.onError,f=null,e=0,l=function(){return e++,f=null,n()},n=function(){var t;return f||(t=f=m().catch(function(o){if(o=o instanceof Error?o:new Error(String(o)),i)return new Promise(function(d,u){var c=function(){return d(l())},g=function(){return u(o)};i(o,c,g,e+1)});throw o}).then(function(o){return t!==f&&f?f:(o&&(o.__esModule||o[Symbol.toStringTag]==="Module")&&(o=o.default),o)}))};return function(){var t=n();return{component:t,delay:r,timeout:s,error:_,loading:w}}}function ar(a){return function(m,w){if(w===void 0&&(w=Et),!!w)return M3(w,a,m)}}function M3(a,m,w){var _=a.$options;_[m]=pp(_[m],w)}var I3=ar("beforeMount"),D3=ar("mounted"),B3=ar("beforeUpdate"),R3=ar("updated"),N3=ar("beforeDestroy"),L3=ar("destroyed"),U3=ar("activated"),F3=ar("deactivated"),j3=ar("serverPrefetch"),H3=ar("renderTracked"),z3=ar("renderTriggered"),q3=ar("errorCaptured");function $3(a,m){m===void 0&&(m=Et),q3(a,m)}var sp="2.7.14";function W3(a){return a}var sh=new ua;function vi(a){return Eo(a,sh),sh.clear(),a}function Eo(a,m){var w,_,h=tt(a);if(!(!h&&!Ut(a)||a.__v_skip||Object.isFrozen(a)||a instanceof Qt)){if(a.__ob__){var r=a.__ob__.dep.id;if(m.has(r))return;m.add(r)}if(h)for(w=a.length;w--;)Eo(a[w],m);else if(Tt(a))Eo(a.value,m);else for(_=Object.keys(a),w=_.length;w--;)Eo(a[_[w]],m)}}var V3=0,Ka=function(){function a(m,w,_,h,r){W8(this,Nt&&!Nt._vm?Nt:m?m._scope:void 0),(this.vm=m)&&r&&(m._watcher=this),h?(this.deep=!!h.deep,this.user=!!h.user,this.lazy=!!h.lazy,this.sync=!!h.sync,this.before=h.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=_,this.id=++V3,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ua,this.newDepIds=new ua,this.expression="",lt(w)?this.getter=w:(this.getter=y8(w),this.getter||(this.getter=yt)),this.value=this.lazy?void 0:this.get()}return a.prototype.get=function(){Si(this);var m,w=this.vm;try{m=this.getter.call(w,w)}catch(_){if(this.user)Un(_,w,'getter for watcher "'.concat(this.expression,'"'));else throw _}finally{this.deep&&vi(m),Ci(),this.cleanupDeps()}return m},a.prototype.addDep=function(m){var w=m.id;this.newDepIds.has(w)||(this.newDepIds.add(w),this.newDeps.push(m),this.depIds.has(w)||m.addSub(this))},a.prototype.cleanupDeps=function(){for(var m=this.deps.length;m--;){var w=this.deps[m];this.newDepIds.has(w.id)||w.removeSub(this)}var _=this.depIds;this.depIds=this.newDepIds,this.newDepIds=_,this.newDepIds.clear(),_=this.deps,this.deps=this.newDeps,this.newDeps=_,this.newDeps.length=0},a.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Xl(this)},a.prototype.run=function(){if(this.active){var m=this.get();if(m!==this.value||Ut(m)||this.deep){var w=this.value;if(this.value=m,this.user){var _='callback for watcher "'.concat(this.expression,'"');$r(this.cb,this.vm,[m,w],this.vm,_)}else this.cb.call(this.vm,m,w)}}},a.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},a.prototype.depend=function(){for(var m=this.deps.length;m--;)this.deps[m].depend()},a.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&yn(this.vm._scope.effects,this),this.active){for(var m=this.deps.length;m--;)this.deps[m].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},a}();function K3(a){a._events=Object.create(null),a._hasHookEvent=!1;var m=a.$options._parentListeners;m&&up(a,m)}var ca;function G3(a,m){ca.$on(a,m)}function J3(a,m){ca.$off(a,m)}function Q3(a,m){var w=ca;return function _(){var h=m.apply(null,arguments);h!==null&&w.$off(a,_)}}function up(a,m,w){ca=a,Y2(m,w||{},G3,J3,Q3,a),ca=void 0}function Y3(a){var m=/^hook:/;a.prototype.$on=function(w,_){var h=this;if(tt(w))for(var r=0,s=w.length;r<s;r++)h.$on(w[r],_);else(h._events[w]||(h._events[w]=[])).push(_),m.test(w)&&(h._hasHookEvent=!0);return h},a.prototype.$once=function(w,_){var h=this;function r(){h.$off(w,r),_.apply(h,arguments)}return r.fn=_,h.$on(w,r),h},a.prototype.$off=function(w,_){var h=this;if(!arguments.length)return h._events=Object.create(null),h;if(tt(w)){for(var r=0,s=w.length;r<s;r++)h.$off(w[r],_);return h}var i=h._events[w];if(!i)return h;if(!_)return h._events[w]=null,h;for(var f,e=i.length;e--;)if(f=i[e],f===_||f.fn===_){i.splice(e,1);break}return h},a.prototype.$emit=function(w){var _=this,h=_._events[w];if(h){h=h.length>1?Hl(h):h;for(var r=Hl(arguments,1),s='event handler for "'.concat(w,'"'),i=0,f=h.length;i<f;i++)$r(h[i],_,r,_,s)}return _}}var In=null;function lp(a){var m=In;return In=a,function(){In=m}}function X3(a){var m=a.$options,w=m.parent;if(w&&!m.abstract){for(;w.$options.abstract&&w.$parent;)w=w.$parent;w.$children.push(a)}a.$parent=w,a.$root=w?w.$root:a,a.$children=[],a.$refs={},a._provided=w?w._provided:Object.create(null),a._watcher=null,a._inactive=null,a._directInactive=!1,a._isMounted=!1,a._isDestroyed=!1,a._isBeingDestroyed=!1}function Z3(a){a.prototype._update=function(m,w){var _=this,h=_.$el,r=_._vnode,s=lp(_);_._vnode=m,r?_.$el=_.__patch__(r,m):_.$el=_.__patch__(_.$el,m,w,!1),s(),h&&(h.__vue__=null),_.$el&&(_.$el.__vue__=_);for(var i=_;i&&i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode;)i.$parent.$el=i.$el,i=i.$parent},a.prototype.$forceUpdate=function(){var m=this;m._watcher&&m._watcher.update()},a.prototype.$destroy=function(){var m=this;if(!m._isBeingDestroyed){dr(m,"beforeDestroy"),m._isBeingDestroyed=!0;var w=m.$parent;w&&!w._isBeingDestroyed&&!m.$options.abstract&&yn(w.$children,m),m._scope.stop(),m._data.__ob__&&m._data.__ob__.vmCount--,m._isDestroyed=!0,m.__patch__(m._vnode,null),dr(m,"destroyed"),m.$off(),m.$el&&(m.$el.__vue__=null),m.$vnode&&(m.$vnode.parent=null)}}}function ey(a,m,w){a.$el=m,a.$options.render||(a.$options.render=Tn),dr(a,"beforeMount");var _;_=function(){a._update(a._render(),w)};var h={before:function(){a._isMounted&&!a._isDestroyed&&dr(a,"beforeUpdate")}};new Ka(a,_,yt,h,!0),w=!1;var r=a._preWatchers;if(r)for(var s=0;s<r.length;s++)r[s].run();return a.$vnode==null&&(a._isMounted=!0,dr(a,"mounted")),a}function ty(a,m,w,_,h){var r=_.data.scopedSlots,s=a.$scopedSlots,i=!!(r&&!r.$stable||s!==Lt&&!s.$stable||r&&a.$scopedSlots.$key!==r.$key||!r&&a.$scopedSlots.$key),f=!!(h||a.$options._renderChildren||i),e=a.$vnode;a.$options._parentVnode=_,a.$vnode=_,a._vnode&&(a._vnode.parent=_),a.$options._renderChildren=h;var l=_.data.attrs||Lt;a._attrsProxy&&$o(a._attrsProxy,l,e.data&&e.data.attrs||Lt,a,"$attrs")&&(f=!0),a.$attrs=l,w=w||Lt;var n=a.$options._parentListeners;if(a._listenersProxy&&$o(a._listenersProxy,w,n||Lt,a,"$listeners"),a.$listeners=a.$options._parentListeners=w,up(a,w,n),m&&a.$options.props){dn(!1);for(var t=a._props,o=a.$options._propKeys||[],d=0;d<o.length;d++){var u=o[d],c=a.$options.props;t[u]=xc(u,c,m,a)}dn(!0),a.$options.propsData=m}f&&(a.$slots=vc(h,_.context),a.$forceUpdate())}function fp(a){for(;a&&(a=a.$parent);)if(a._inactive)return!0;return!1}function yc(a,m){if(m){if(a._directInactive=!1,fp(a))return}else if(a._directInactive)return;if(a._inactive||a._inactive===null){a._inactive=!1;for(var w=0;w<a.$children.length;w++)yc(a.$children[w]);dr(a,"activated")}}function cp(a,m){if(!(m&&(a._directInactive=!0,fp(a)))&&!a._inactive){a._inactive=!0;for(var w=0;w<a.$children.length;w++)cp(a.$children[w]);dr(a,"deactivated")}}function dr(a,m,w,_){_===void 0&&(_=!0),Si();var h=Et;_&&cn(a);var r=a.$options[m],s="".concat(m," hook");if(r)for(var i=0,f=r.length;i<f;i++)$r(r[i],a,w||null,a,s);a._hasHookEvent&&a.$emit("hook:"+m),_&&cn(h),Ci()}var jr=[],gc=[],Wo={},Ql=!1,bc=!1,ui=0;function ry(){ui=jr.length=gc.length=0,Wo={},Ql=bc=!1}var dp=0,Yl=Date.now;if(Vt&&!Ai){var vu=window.performance;vu&&typeof vu.now=="function"&&Yl()>document.createEvent("Event").timeStamp&&(Yl=function(){return vu.now()})}var ny=function(a,m){if(a.post){if(!m.post)return 1}else if(m.post)return-1;return a.id-m.id};function iy(){dp=Yl(),bc=!0;var a,m;for(jr.sort(ny),ui=0;ui<jr.length;ui++)a=jr[ui],a.before&&a.before(),m=a.id,Wo[m]=null,a.run();var w=gc.slice(),_=jr.slice();ry(),sy(w),ay(_),x8(),jo&&nr.devtools&&jo.emit("flush")}function ay(a){for(var m=a.length;m--;){var w=a[m],_=w.vm;_&&_._watcher===w&&_._isMounted&&!_._isDestroyed&&dr(_,"updated")}}function oy(a){a._inactive=!1,gc.push(a)}function sy(a){for(var m=0;m<a.length;m++)a[m]._inactive=!0,yc(a[m],!0)}function Xl(a){var m=a.id;if(Wo[m]==null&&!(a===Or.target&&a.noRecurse)){if(Wo[m]=!0,!bc)jr.push(a);else{for(var w=jr.length-1;w>ui&&jr[w].id>a.id;)w--;jr.splice(w+1,0,a)}Ql||(Ql=!0,Ts(iy))}}function uy(a){var m=a.$options.provide;if(m){var w=lt(m)?m.call(a):m;if(!Ut(w))return;for(var _=Q2(a),h=Wa?Reflect.ownKeys(w):Object.keys(w),r=0;r<h.length;r++){var s=h[r];Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(w,s))}}}function ly(a){var m=hp(a.$options.inject,a);m&&(dn(!1),Object.keys(m).forEach(function(w){hn(a,w,m[w])}),dn(!0))}function hp(a,m){if(a){for(var w=Object.create(null),_=Wa?Reflect.ownKeys(a):Object.keys(a),h=0;h<_.length;h++){var r=_[h];if(r!=="__ob__"){var s=a[r].from;if(s in m._provided)w[r]=m._provided[s];else if("default"in a[r]){var i=a[r].default;w[r]=lt(i)?i.call(m):i}}}return w}}function _c(a,m,w,_,h){var r=this,s=h.options,i;Ft(_,"_uid")?(i=Object.create(_),i._original=_):(i=_,_=_._original);var f=gt(s._compiled),e=!f;this.data=a,this.props=m,this.children=w,this.parent=_,this.listeners=a.on||Lt,this.injections=hp(s.inject,_),this.slots=function(){return r.$slots||na(_,a.scopedSlots,r.$slots=vc(w,_)),r.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return na(_,a.scopedSlots,this.slots())}}),f&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=na(_,a.scopedSlots,this.$slots)),s._scopeId?this._c=function(l,n,t,o){var d=fa(i,l,n,t,o,e);return d&&!tt(d)&&(d.fnScopeId=s._scopeId,d.fnContext=_),d}:this._c=function(l,n,t,o){return fa(i,l,n,t,o,e)}}tp(_c.prototype);function fy(a,m,w,_,h){var r=a.options,s={},i=r.props;if(Se(i))for(var f in i)s[f]=xc(f,i,m||Lt);else Se(w.attrs)&&lh(s,w.attrs),Se(w.props)&&lh(s,w.props);var e=new _c(w,s,h,_,a),l=r.render.call(null,e._c,e);if(l instanceof Qt)return uh(l,w,e.parent,r);if(tt(l)){for(var n=pc(l)||[],t=new Array(n.length),o=0;o<n.length;o++)t[o]=uh(n[o],w,e.parent,r);return t}}function uh(a,m,w,_,h){var r=$l(a);return r.fnContext=w,r.fnOptions=_,m.slot&&((r.data||(r.data={})).slot=m.slot),r}function lh(a,m){for(var w in m)a[Nn(w)]=m[w]}function Vo(a){return a.name||a.__name||a._componentTag}var wc={init:function(a,m){if(a.componentInstance&&!a.componentInstance._isDestroyed&&a.data.keepAlive){var w=a;wc.prepatch(w,w)}else{var _=a.componentInstance=cy(a,In);_.$mount(m?a.elm:void 0,m)}},prepatch:function(a,m){var w=m.componentOptions,_=m.componentInstance=a.componentInstance;ty(_,w.propsData,w.listeners,m,w.children)},insert:function(a){var m=a.context,w=a.componentInstance;w._isMounted||(w._isMounted=!0,dr(w,"mounted")),a.data.keepAlive&&(m._isMounted?oy(w):yc(w,!0))},destroy:function(a){var m=a.componentInstance;m._isDestroyed||(a.data.keepAlive?cp(m,!0):m.$destroy())}},fh=Object.keys(wc);function ch(a,m,w,_,h){if(!Ze(a)){var r=w.$options._base;if(Ut(a)&&(a=r.extend(a)),typeof a=="function"){var s;if(Ze(a.cid)&&(s=a,a=w3(s,r),a===void 0))return _3(s,m,w,_,h);m=m||{},Ec(a),Se(m.model)&&py(a.options,m);var i=Q8(m,a);if(gt(a.options.functional))return fy(a,i,m,w,_);var f=m.on;if(m.on=m.nativeOn,gt(a.options.abstract)){var e=m.slot;m={},e&&(m.slot=e)}dy(m);var l=Vo(a.options)||h,n=new Qt("vue-component-".concat(a.cid).concat(l?"-".concat(l):""),m,void 0,void 0,void 0,w,{Ctor:a,propsData:i,listeners:f,tag:h,children:_},s);return n}}}function cy(a,m){var w={_isComponent:!0,_parentVnode:a,parent:m},_=a.data.inlineTemplate;return Se(_)&&(w.render=_.render,w.staticRenderFns=_.staticRenderFns),new a.componentOptions.Ctor(w)}function dy(a){for(var m=a.hook||(a.hook={}),w=0;w<fh.length;w++){var _=fh[w],h=m[_],r=wc[_];h!==r&&!(h&&h._merged)&&(m[_]=h?hy(r,h):r)}}function hy(a,m){var w=function(_,h){a(_,h),m(_,h)};return w._merged=!0,w}function py(a,m){var w=a.model&&a.model.prop||"value",_=a.model&&a.model.event||"input";(m.attrs||(m.attrs={}))[w]=m.model.value;var h=m.on||(m.on={}),r=h[_],s=m.model.callback;Se(r)?(tt(r)?r.indexOf(s)===-1:r!==s)&&(h[_]=[s].concat(r)):h[_]=s}var vy=yt,kr=nr.optionMergeStrategies;function da(a,m,w){if(w===void 0&&(w=!0),!m)return a;for(var _,h,r,s=Wa?Reflect.ownKeys(m):Object.keys(m),i=0;i<s.length;i++)_=s[i],_!=="__ob__"&&(h=a[_],r=m[_],!w||!Ft(a,_)?ks(a,_,r):h!==r&&zt(h)&&zt(r)&&da(h,r));return a}function dh(a,m,w){return w?function(){var h=lt(m)?m.call(w,w):m,r=lt(a)?a.call(w,w):a;return h?da(h,r):r}:m?a?function(){return da(lt(m)?m.call(this,this):m,lt(a)?a.call(this,this):a)}:m:a}kr.data=function(a,m,w){return w?dh(a,m,w):m&&typeof m!="function"?a:dh(a,m)};function pp(a,m){var w=m?a?a.concat(m):tt(m)?m:[m]:a;return w&&my(w)}function my(a){for(var m=[],w=0;w<a.length;w++)m.indexOf(a[w])===-1&&m.push(a[w]);return m}N2.forEach(function(a){kr[a]=pp});function yy(a,m,w,_){var h=Object.create(a||null);return m?vt(h,m):h}Cs.forEach(function(a){kr[a+"s"]=yy});kr.watch=function(a,m,w,_){if(a===ql&&(a=void 0),m===ql&&(m=void 0),!m)return Object.create(a||null);if(!a)return m;var h={};vt(h,a);for(var r in m){var s=h[r],i=m[r];s&&!tt(s)&&(s=[s]),h[r]=s?s.concat(i):tt(i)?i:[i]}return h};kr.props=kr.methods=kr.inject=kr.computed=function(a,m,w,_){if(!a)return m;var h=Object.create(null);return vt(h,a),m&&vt(h,m),h};kr.provide=function(a,m){return a?function(){var w=Object.create(null);return da(w,lt(a)?a.call(this):a),m&&da(w,lt(m)?m.call(this):m,!1),w}:m};var gy=function(a,m){return m===void 0?a:m};function by(a,m){var w=a.props;if(w){var _={},h,r,s;if(tt(w))for(h=w.length;h--;)r=w[h],typeof r=="string"&&(s=Nn(r),_[s]={type:null});else if(zt(w))for(var i in w)r=w[i],s=Nn(i),_[s]=zt(r)?r:{type:r};a.props=_}}function _y(a,m){var w=a.inject;if(w){var _=a.inject={};if(tt(w))for(var h=0;h<w.length;h++)_[w[h]]={from:w[h]};else if(zt(w))for(var r in w){var s=w[r];_[r]=zt(s)?vt({from:r},s):{from:s}}}}function wy(a){var m=a.directives;if(m)for(var w in m){var _=m[w];lt(_)&&(m[w]={bind:_,update:_})}}function Fn(a,m,w){if(lt(m)&&(m=m.options),by(m),_y(m),wy(m),!m._base&&(m.extends&&(a=Fn(a,m.extends,w)),m.mixins))for(var _=0,h=m.mixins.length;_<h;_++)a=Fn(a,m.mixins[_],w);var r={},s;for(s in a)i(s);for(s in m)Ft(a,s)||i(s);function i(f){var e=kr[f]||gy;r[f]=e(a[f],m[f],w,f)}return r}function Ko(a,m,w,_){if(typeof w=="string"){var h=a[m];if(Ft(h,w))return h[w];var r=Nn(w);if(Ft(h,r))return h[r];var s=c8(r);if(Ft(h,s))return h[s];var i=h[w]||h[r]||h[s];return i}}function xc(a,m,w,_){var h=m[a],r=!Ft(w,a),s=w[a],i=ph(Boolean,h.type);if(i>-1){if(r&&!Ft(h,"default"))s=!1;else if(s===""||s===$a(a)){var f=ph(String,h.type);(f<0||i<f)&&(s=!0)}}if(s===void 0){s=xy(_,h,a);var e=fc;dn(!0),qr(s),dn(e)}return s}function xy(a,m,w){if(Ft(m,"default")){var _=m.default;return a&&a.$options.propsData&&a.$options.propsData[w]===void 0&&a._props[w]!==void 0?a._props[w]:lt(_)&&Zl(m.type)!=="Function"?_.call(a):_}}var Ay=/^\s*function (\w+)/;function Zl(a){var m=a&&a.toString().match(Ay);return m?m[1]:""}function hh(a,m){return Zl(a)===Zl(m)}function ph(a,m){if(!tt(m))return hh(m,a)?0:-1;for(var w=0,_=m.length;w<_;w++)if(hh(m[w],a))return w;return-1}var Zr={enumerable:!0,configurable:!0,get:yt,set:yt};function Ac(a,m,w){Zr.get=function(){return this[m][w]},Zr.set=function(h){this[m][w]=h},Object.defineProperty(a,w,Zr)}function Ey(a){var m=a.$options;if(m.props&&Sy(a,m.props),c3(a),m.methods&&Ty(a,m.methods),m.data)Cy(a);else{var w=qr(a._data={});w&&w.vmCount++}m.computed&&Py(a,m.computed),m.watch&&m.watch!==ql&&My(a,m.watch)}function Sy(a,m){var w=a.$options.propsData||{},_=a._props=dc({}),h=a.$options._propKeys=[],r=!a.$parent;r||dn(!1);var s=function(f){h.push(f);var e=xc(f,m,w,a);hn(_,f,e),f in a||Ac(a,"_props",f)};for(var i in m)s(i);dn(!0)}function Cy(a){var m=a.$options.data;m=a._data=lt(m)?ky(m,a):m||{},zt(m)||(m={});var w=Object.keys(m),_=a.$options.props;a.$options.methods;for(var h=w.length;h--;){var r=w[h];_&&Ft(_,r)||L2(r)||Ac(a,"_data",r)}var s=qr(m);s&&s.vmCount++}function ky(a,m){Si();try{return a.call(m,m)}catch(w){return Un(w,m,"data()"),{}}finally{Ci()}}var Oy={lazy:!0};function Py(a,m){var w=a._computedWatchers=Object.create(null),_=gn();for(var h in m){var r=m[h],s=lt(r)?r:r.get;_||(w[h]=new Ka(a,s||yt,yt,Oy)),h in a||vp(a,h,r)}}function vp(a,m,w){var _=!gn();lt(w)?(Zr.get=_?vh(m):mh(w),Zr.set=yt):(Zr.get=w.get?_&&w.cache!==!1?vh(m):mh(w.get):yt,Zr.set=w.set||yt),Object.defineProperty(a,m,Zr)}function vh(a){return function(){var w=this._computedWatchers&&this._computedWatchers[a];if(w)return w.dirty&&w.evaluate(),Or.target&&w.depend(),w.value}}function mh(a){return function(){return a.call(this,this)}}function Ty(a,m){a.$options.props;for(var w in m)a[w]=typeof m[w]!="function"?yt:I2(m[w],a)}function My(a,m){for(var w in m){var _=m[w];if(tt(_))for(var h=0;h<_.length;h++)ef(a,w,_[h]);else ef(a,w,_)}}function ef(a,m,w,_){return zt(w)&&(_=w,w=w.handler),typeof w=="string"&&(w=a[w]),a.$watch(m,w,_)}function Iy(a){var m={};m.get=function(){return this._data};var w={};w.get=function(){return this._props},Object.defineProperty(a.prototype,"$data",m),Object.defineProperty(a.prototype,"$props",w),a.prototype.$set=ks,a.prototype.$delete=cc,a.prototype.$watch=function(_,h,r){var s=this;if(zt(h))return ef(s,_,h,r);r=r||{},r.user=!0;var i=new Ka(s,_,h,r);if(r.immediate){var f='callback for immediate watcher "'.concat(i.expression,'"');Si(),$r(h,s,[i.value],s,f),Ci()}return function(){i.teardown()}}}var Dy=0;function By(a){a.prototype._init=function(m){var w=this;w._uid=Dy++,w._isVue=!0,w.__v_skip=!0,w._scope=new hc(!0),w._scope._vm=!0,m&&m._isComponent?Ry(w,m):w.$options=Fn(Ec(w.constructor),m||{},w),w._renderProxy=w,w._self=w,X3(w),K3(w),g3(w),dr(w,"beforeCreate",void 0,!1),ly(w),Ey(w),uy(w),dr(w,"created"),w.$options.el&&w.$mount(w.$options.el)}}function Ry(a,m){var w=a.$options=Object.create(a.constructor.options),_=m._parentVnode;w.parent=m.parent,w._parentVnode=_;var h=_.componentOptions;w.propsData=h.propsData,w._parentListeners=h.listeners,w._renderChildren=h.children,w._componentTag=h.tag,m.render&&(w.render=m.render,w.staticRenderFns=m.staticRenderFns)}function Ec(a){var m=a.options;if(a.super){var w=Ec(a.super),_=a.superOptions;if(w!==_){a.superOptions=w;var h=Ny(a);h&&vt(a.extendOptions,h),m=a.options=Fn(w,a.extendOptions),m.name&&(m.components[m.name]=a)}}return m}function Ny(a){var m,w=a.options,_=a.sealedOptions;for(var h in w)w[h]!==_[h]&&(m||(m={}),m[h]=w[h]);return m}function ht(a){this._init(a)}By(ht);Iy(ht);Y3(ht);Z3(ht);b3(ht);function Ly(a){a.use=function(m){var w=this._installedPlugins||(this._installedPlugins=[]);if(w.indexOf(m)>-1)return this;var _=Hl(arguments,1);return _.unshift(this),lt(m.install)?m.install.apply(m,_):lt(m)&&m.apply(null,_),w.push(m),this}}function Uy(a){a.mixin=function(m){return this.options=Fn(this.options,m),this}}function Fy(a){a.cid=0;var m=1;a.extend=function(w){w=w||{};var _=this,h=_.cid,r=w._Ctor||(w._Ctor={});if(r[h])return r[h];var s=Vo(w)||Vo(_.options),i=function(e){this._init(e)};return i.prototype=Object.create(_.prototype),i.prototype.constructor=i,i.cid=m++,i.options=Fn(_.options,w),i.super=_,i.options.props&&jy(i),i.options.computed&&Hy(i),i.extend=_.extend,i.mixin=_.mixin,i.use=_.use,Cs.forEach(function(f){i[f]=_[f]}),s&&(i.options.components[s]=i),i.superOptions=_.options,i.extendOptions=w,i.sealedOptions=vt({},i.options),r[h]=i,i}}function jy(a){var m=a.options.props;for(var w in m)Ac(a.prototype,"_props",w)}function Hy(a){var m=a.options.computed;for(var w in m)vp(a.prototype,w,m[w])}function zy(a){Cs.forEach(function(m){a[m]=function(w,_){return _?(m==="component"&&zt(_)&&(_.name=_.name||w,_=this.options._base.extend(_)),m==="directive"&<(_)&&(_={bind:_,update:_}),this.options[m+"s"][w]=_,_):this.options[m+"s"][w]}})}function yh(a){return a&&(Vo(a.Ctor.options)||a.tag)}function uo(a,m){return tt(a)?a.indexOf(m)>-1:typeof a=="string"?a.split(",").indexOf(m)>-1:o8(a)?a.test(m):!1}function gh(a,m){var w=a.cache,_=a.keys,h=a._vnode;for(var r in w){var s=w[r];if(s){var i=s.name;i&&!m(i)&&tf(w,r,_,h)}}}function tf(a,m,w,_){var h=a[m];h&&(!_||h.tag!==_.tag)&&h.componentInstance.$destroy(),a[m]=null,yn(w,m)}var bh=[String,RegExp,Array],qy={name:"keep-alive",abstract:!0,props:{include:bh,exclude:bh,max:[String,Number]},methods:{cacheVNode:function(){var a=this,m=a.cache,w=a.keys,_=a.vnodeToCache,h=a.keyToCache;if(_){var r=_.tag,s=_.componentInstance,i=_.componentOptions;m[h]={name:yh(i),tag:r,componentInstance:s},w.push(h),this.max&&w.length>parseInt(this.max)&&tf(m,w[0],w,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var a in this.cache)tf(this.cache,a,this.keys)},mounted:function(){var a=this;this.cacheVNode(),this.$watch("include",function(m){gh(a,function(w){return uo(m,w)})}),this.$watch("exclude",function(m){gh(a,function(w){return!uo(m,w)})})},updated:function(){this.cacheVNode()},render:function(){var a=this.$slots.default,m=ip(a),w=m&&m.componentOptions;if(w){var _=yh(w),h=this,r=h.include,s=h.exclude;if(r&&(!_||!uo(r,_))||s&&_&&uo(s,_))return m;var i=this,f=i.cache,e=i.keys,l=m.key==null?w.Ctor.cid+(w.tag?"::".concat(w.tag):""):m.key;f[l]?(m.componentInstance=f[l].componentInstance,yn(e,l),e.push(l)):(this.vnodeToCache=m,this.keyToCache=l),m.data.keepAlive=!0}return m||a&&a[0]}},$y={KeepAlive:qy};function Wy(a){var m={};m.get=function(){return nr},Object.defineProperty(a,"config",m),a.util={warn:vy,extend:vt,mergeOptions:Fn,defineReactive:hn},a.set=ks,a.delete=cc,a.nextTick=Ts,a.observable=function(w){return qr(w),w},a.options=Object.create(null),Cs.forEach(function(w){a.options[w+"s"]=Object.create(null)}),a.options._base=a,vt(a.options.components,$y),Ly(a),Uy(a),Fy(a),zy(a)}Wy(ht);Object.defineProperty(ht.prototype,"$isServer",{get:gn});Object.defineProperty(ht.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(ht,"FunctionalRenderContext",{value:_c});ht.version=sp;var Vy=vr("style,class"),Ky=vr("input,textarea,option,select,progress"),Gy=function(a,m,w){return w==="value"&&Ky(a)&&m!=="button"||w==="selected"&&a==="option"||w==="checked"&&a==="input"||w==="muted"&&a==="video"},mp=vr("contenteditable,draggable,spellcheck"),Jy=vr("events,caret,typing,plaintext-only"),Qy=function(a,m){return Jo(m)||m==="false"?"false":a==="contenteditable"&&Jy(m)?m:"true"},Yy=vr("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),rf="http://www.w3.org/1999/xlink",Sc=function(a){return a.charAt(5)===":"&&a.slice(0,5)==="xlink"},yp=function(a){return Sc(a)?a.slice(6,a.length):""},Jo=function(a){return a==null||a===!1};function Xy(a){for(var m=a.data,w=a,_=a;Se(_.componentInstance);)_=_.componentInstance._vnode,_&&_.data&&(m=_h(_.data,m));for(;Se(w=w.parent);)w&&w.data&&(m=_h(m,w.data));return Zy(m.staticClass,m.class)}function _h(a,m){return{staticClass:Cc(a.staticClass,m.staticClass),class:Se(a.class)?[a.class,m.class]:m.class}}function Zy(a,m){return Se(a)||Se(m)?Cc(a,kc(m)):""}function Cc(a,m){return a?m?a+" "+m:a:m||""}function kc(a){return Array.isArray(a)?eg(a):Ut(a)?tg(a):typeof a=="string"?a:""}function eg(a){for(var m="",w,_=0,h=a.length;_<h;_++)Se(w=kc(a[_]))&&w!==""&&(m&&(m+=" "),m+=w);return m}function tg(a){var m="";for(var w in a)a[w]&&(m&&(m+=" "),m+=w);return m}var rg={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ng=vr("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Oc=vr("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),gp=function(a){return ng(a)||Oc(a)};function ig(a){if(Oc(a))return"svg";if(a==="math")return"math"}var lo=Object.create(null);function ag(a){if(!Vt)return!0;if(gp(a))return!1;if(a=a.toLowerCase(),lo[a]!=null)return lo[a];var m=document.createElement(a);return a.indexOf("-")>-1?lo[a]=m.constructor===window.HTMLUnknownElement||m.constructor===window.HTMLElement:lo[a]=/HTMLUnknownElement/.test(m.toString())}var nf=vr("text,number,password,search,email,tel,url");function og(a){if(typeof a=="string"){var m=document.querySelector(a);return m||document.createElement("div")}else return a}function sg(a,m){var w=document.createElement(a);return a!=="select"||m.data&&m.data.attrs&&m.data.attrs.multiple!==void 0&&w.setAttribute("multiple","multiple"),w}function ug(a,m){return document.createElementNS(rg[a],m)}function lg(a){return document.createTextNode(a)}function fg(a){return document.createComment(a)}function cg(a,m,w){a.insertBefore(m,w)}function dg(a,m){a.removeChild(m)}function hg(a,m){a.appendChild(m)}function pg(a){return a.parentNode}function vg(a){return a.nextSibling}function mg(a){return a.tagName}function yg(a,m){a.textContent=m}function gg(a,m){a.setAttribute(m,"")}var bg=Object.freeze({__proto__:null,createElement:sg,createElementNS:ug,createTextNode:lg,createComment:fg,insertBefore:cg,removeChild:dg,appendChild:hg,parentNode:pg,nextSibling:vg,tagName:mg,setTextContent:yg,setStyleScope:gg}),_g={create:function(a,m){li(m)},update:function(a,m){a.data.ref!==m.data.ref&&(li(a,!0),li(m))},destroy:function(a){li(a,!0)}};function li(a,m){var w=a.data.ref;if(Se(w)){var _=a.context,h=a.componentInstance||a.elm,r=m?null:h,s=m?void 0:h;if(lt(w)){$r(w,_,[r],_,"template ref function");return}var i=a.data.refInFor,f=typeof w=="string"||typeof w=="number",e=Tt(w),l=_.$refs;if(f||e){if(i){var n=f?l[w]:w.value;m?tt(n)&&yn(n,h):tt(n)?n.includes(h)||n.push(h):f?(l[w]=[h],wh(_,w,l[w])):w.value=[h]}else if(f){if(m&&l[w]!==h)return;l[w]=s,wh(_,w,r)}else if(e){if(m&&w.value!==h)return;w.value=r}}}}function wh(a,m,w){var _=a._setupState;_&&Ft(_,m)&&(Tt(_[m])?_[m].value=w:_[m]=w)}var rn=new Qt("",{},[]),Wi=["create","activate","update","remove","destroy"];function En(a,m){return a.key===m.key&&a.asyncFactory===m.asyncFactory&&(a.tag===m.tag&&a.isComment===m.isComment&&Se(a.data)===Se(m.data)&&wg(a,m)||gt(a.isAsyncPlaceholder)&&Ze(m.asyncFactory.error))}function wg(a,m){if(a.tag!=="input")return!0;var w,_=Se(w=a.data)&&Se(w=w.attrs)&&w.type,h=Se(w=m.data)&&Se(w=w.attrs)&&w.type;return _===h||nf(_)&&nf(h)}function xg(a,m,w){var _,h,r={};for(_=m;_<=w;++_)h=a[_].key,Se(h)&&(r[h]=_);return r}function Ag(a){var m,w,_={},h=a.modules,r=a.nodeOps;for(m=0;m<Wi.length;++m)for(_[Wi[m]]=[],w=0;w<h.length;++w)Se(h[w][Wi[m]])&&_[Wi[m]].push(h[w][Wi[m]]);function s(k){return new Qt(r.tagName(k).toLowerCase(),{},[],void 0,k)}function i(k,M){function P(){--P.listeners===0&&f(k)}return P.listeners=M,P}function f(k){var M=r.parentNode(k);Se(M)&&r.removeChild(M,k)}function e(k,M,P,N,F,q,z){if(Se(k.elm)&&Se(q)&&(k=q[z]=$l(k)),k.isRootInsert=!F,!l(k,M,P,N)){var O=k.data,R=k.children,I=k.tag;Se(I)?(k.elm=k.ns?r.createElementNS(k.ns,I):r.createElement(I,k),g(k),d(k,R,M),Se(O)&&c(k,M),o(P,k.elm,N)):gt(k.isComment)?(k.elm=r.createComment(k.text),o(P,k.elm,N)):(k.elm=r.createTextNode(k.text),o(P,k.elm,N))}}function l(k,M,P,N){var F=k.data;if(Se(F)){var q=Se(k.componentInstance)&&F.keepAlive;if(Se(F=F.hook)&&Se(F=F.init)&&F(k,!1),Se(k.componentInstance))return n(k,M),o(P,k.elm,N),gt(q)&&t(k,M,P,N),!0}}function n(k,M){Se(k.data.pendingInsert)&&(M.push.apply(M,k.data.pendingInsert),k.data.pendingInsert=null),k.elm=k.componentInstance.$el,u(k)?(c(k,M),g(k)):(li(k),M.push(k))}function t(k,M,P,N){for(var F,q=k;q.componentInstance;)if(q=q.componentInstance._vnode,Se(F=q.data)&&Se(F=F.transition)){for(F=0;F<_.activate.length;++F)_.activate[F](rn,q);M.push(q);break}o(P,k.elm,N)}function o(k,M,P){Se(k)&&(Se(P)?r.parentNode(P)===k&&r.insertBefore(k,M,P):r.appendChild(k,M))}function d(k,M,P){if(tt(M))for(var N=0;N<M.length;++N)e(M[N],P,k.elm,null,!0,M,N);else qa(k.text)&&r.appendChild(k.elm,r.createTextNode(String(k.text)))}function u(k){for(;k.componentInstance;)k=k.componentInstance._vnode;return Se(k.tag)}function c(k,M){for(var P=0;P<_.create.length;++P)_.create[P](rn,k);m=k.data.hook,Se(m)&&(Se(m.create)&&m.create(rn,k),Se(m.insert)&&M.push(k))}function g(k){var M;if(Se(M=k.fnScopeId))r.setStyleScope(k.elm,M);else for(var P=k;P;)Se(M=P.context)&&Se(M=M.$options._scopeId)&&r.setStyleScope(k.elm,M),P=P.parent;Se(M=In)&&M!==k.context&&M!==k.fnContext&&Se(M=M.$options._scopeId)&&r.setStyleScope(k.elm,M)}function p(k,M,P,N,F,q){for(;N<=F;++N)e(P[N],q,k,M,!1,P,N)}function v(k){var M,P,N=k.data;if(Se(N))for(Se(M=N.hook)&&Se(M=M.destroy)&&M(k),M=0;M<_.destroy.length;++M)_.destroy[M](k);if(Se(M=k.children))for(P=0;P<k.children.length;++P)v(k.children[P])}function y(k,M,P){for(;M<=P;++M){var N=k[M];Se(N)&&(Se(N.tag)?(b(N),v(N)):f(N.elm))}}function b(k,M){if(Se(M)||Se(k.data)){var P,N=_.remove.length+1;for(Se(M)?M.listeners+=N:M=i(k.elm,N),Se(P=k.componentInstance)&&Se(P=P._vnode)&&Se(P.data)&&b(P,M),P=0;P<_.remove.length;++P)_.remove[P](k,M);Se(P=k.data.hook)&&Se(P=P.remove)?P(k,M):M()}else f(k.elm)}function A(k,M,P,N,F){for(var q=0,z=0,O=M.length-1,R=M[0],I=M[O],D=P.length-1,B=P[0],j=P[D],Q,X,Z,L,W=!F;q<=O&&z<=D;)Ze(R)?R=M[++q]:Ze(I)?I=M[--O]:En(R,B)?(E(R,B,N,P,z),R=M[++q],B=P[++z]):En(I,j)?(E(I,j,N,P,D),I=M[--O],j=P[--D]):En(R,j)?(E(R,j,N,P,D),W&&r.insertBefore(k,R.elm,r.nextSibling(I.elm)),R=M[++q],j=P[--D]):En(I,B)?(E(I,B,N,P,z),W&&r.insertBefore(k,I.elm,R.elm),I=M[--O],B=P[++z]):(Ze(Q)&&(Q=xg(M,q,O)),X=Se(B.key)?Q[B.key]:x(B,M,q,O),Ze(X)?e(B,N,k,R.elm,!1,P,z):(Z=M[X],En(Z,B)?(E(Z,B,N,P,z),M[X]=void 0,W&&r.insertBefore(k,Z.elm,R.elm)):e(B,N,k,R.elm,!1,P,z)),B=P[++z]);q>O?(L=Ze(P[D+1])?null:P[D+1].elm,p(k,L,P,z,D,N)):z>D&&y(M,q,O)}function x(k,M,P,N){for(var F=P;F<N;F++){var q=M[F];if(Se(q)&&En(k,q))return F}}function E(k,M,P,N,F,q){if(k!==M){Se(M.elm)&&Se(N)&&(M=N[F]=$l(M));var z=M.elm=k.elm;if(gt(k.isAsyncPlaceholder)){Se(M.asyncFactory.resolved)?T(k.elm,M,P):M.isAsyncPlaceholder=!0;return}if(gt(M.isStatic)&>(k.isStatic)&&M.key===k.key&&(gt(M.isCloned)||gt(M.isOnce))){M.componentInstance=k.componentInstance;return}var O,R=M.data;Se(R)&&Se(O=R.hook)&&Se(O=O.prepatch)&&O(k,M);var I=k.children,D=M.children;if(Se(R)&&u(M)){for(O=0;O<_.update.length;++O)_.update[O](k,M);Se(O=R.hook)&&Se(O=O.update)&&O(k,M)}Ze(M.text)?Se(I)&&Se(D)?I!==D&&A(z,I,D,P,q):Se(D)?(Se(k.text)&&r.setTextContent(z,""),p(z,null,D,0,D.length-1,P)):Se(I)?y(I,0,I.length-1):Se(k.text)&&r.setTextContent(z,""):k.text!==M.text&&r.setTextContent(z,M.text),Se(R)&&Se(O=R.hook)&&Se(O=O.postpatch)&&O(k,M)}}function S(k,M,P){if(gt(P)&&Se(k.parent))k.parent.data.pendingInsert=M;else for(var N=0;N<M.length;++N)M[N].data.hook.insert(M[N])}var C=vr("attrs,class,staticClass,staticStyle,key");function T(k,M,P,N){var F,q=M.tag,z=M.data,O=M.children;if(N=N||z&&z.pre,M.elm=k,gt(M.isComment)&&Se(M.asyncFactory))return M.isAsyncPlaceholder=!0,!0;if(Se(z)&&(Se(F=z.hook)&&Se(F=F.init)&&F(M,!0),Se(F=M.componentInstance)))return n(M,P),!0;if(Se(q)){if(Se(O))if(!k.hasChildNodes())d(M,O,P);else if(Se(F=z)&&Se(F=F.domProps)&&Se(F=F.innerHTML)){if(F!==k.innerHTML)return!1}else{for(var R=!0,I=k.firstChild,D=0;D<O.length;D++){if(!I||!T(I,O[D],P,N)){R=!1;break}I=I.nextSibling}if(!R||I)return!1}if(Se(z)){var B=!1;for(var j in z)if(!C(j)){B=!0,c(M,P);break}!B&&z.class&&vi(z.class)}}else k.data!==M.text&&(k.data=M.text);return!0}return function(M,P,N,F){if(Ze(P)){Se(M)&&v(M);return}var q=!1,z=[];if(Ze(M))q=!0,e(P,z);else{var O=Se(M.nodeType);if(!O&&En(M,P))E(M,P,z,null,null,F);else{if(O){if(M.nodeType===1&&M.hasAttribute(Vd)&&(M.removeAttribute(Vd),N=!0),gt(N)&&T(M,P,z))return S(P,z,!0),M;M=s(M)}var R=M.elm,I=r.parentNode(R);if(e(P,z,R._leaveCb?null:I,r.nextSibling(R)),Se(P.parent))for(var D=P.parent,B=u(P);D;){for(var j=0;j<_.destroy.length;++j)_.destroy[j](D);if(D.elm=P.elm,B){for(var Q=0;Q<_.create.length;++Q)_.create[Q](rn,D);var X=D.data.hook.insert;if(X.merged)for(var Z=1;Z<X.fns.length;Z++)X.fns[Z]()}else li(D);D=D.parent}Se(I)?y([M],0,0):Se(M.tag)&&v(M)}}return S(P,z,q),P.elm}}var Eg={create:mu,update:mu,destroy:function(m){mu(m,rn)}};function mu(a,m){(a.data.directives||m.data.directives)&&Sg(a,m)}function Sg(a,m){var w=a===rn,_=m===rn,h=xh(a.data.directives,a.context),r=xh(m.data.directives,m.context),s=[],i=[],f,e,l;for(f in r)e=h[f],l=r[f],e?(l.oldValue=e.value,l.oldArg=e.arg,Vi(l,"update",m,a),l.def&&l.def.componentUpdated&&i.push(l)):(Vi(l,"bind",m,a),l.def&&l.def.inserted&&s.push(l));if(s.length){var n=function(){for(var t=0;t<s.length;t++)Vi(s[t],"inserted",m,a)};w?tn(m,"insert",n):n()}if(i.length&&tn(m,"postpatch",function(){for(var t=0;t<i.length;t++)Vi(i[t],"componentUpdated",m,a)}),!w)for(f in h)r[f]||Vi(h[f],"unbind",a,a,_)}var Cg=Object.create(null);function xh(a,m){var w=Object.create(null);if(!a)return w;var _,h;for(_=0;_<a.length;_++){if(h=a[_],h.modifiers||(h.modifiers=Cg),w[kg(h)]=h,m._setupState&&m._setupState.__sfc){var r=h.def||Ko(m,"_setupState","v-"+h.name);typeof r=="function"?h.def={bind:r,update:r}:h.def=r}h.def=h.def||Ko(m.$options,"directives",h.name)}return w}function kg(a){return a.rawName||"".concat(a.name,".").concat(Object.keys(a.modifiers||{}).join("."))}function Vi(a,m,w,_,h){var r=a.def&&a.def[m];if(r)try{r(w.elm,a,w,_,h)}catch(s){Un(s,w.context,"directive ".concat(a.name," ").concat(m," hook"))}}var Og=[_g,Eg];function Ah(a,m){var w=m.componentOptions;if(!(Se(w)&&w.Ctor.options.inheritAttrs===!1)&&!(Ze(a.data.attrs)&&Ze(m.data.attrs))){var _,h,r,s=m.elm,i=a.data.attrs||{},f=m.data.attrs||{};(Se(f.__ob__)||gt(f._v_attr_proxy))&&(f=m.data.attrs=vt({},f));for(_ in f)h=f[_],r=i[_],r!==h&&Eh(s,_,h,m.data.pre);(Ai||U2)&&f.value!==i.value&&Eh(s,"value",f.value);for(_ in i)Ze(f[_])&&(Sc(_)?s.removeAttributeNS(rf,yp(_)):mp(_)||s.removeAttribute(_))}}function Eh(a,m,w,_){_||a.tagName.indexOf("-")>-1?Sh(a,m,w):Yy(m)?Jo(w)?a.removeAttribute(m):(w=m==="allowfullscreen"&&a.tagName==="EMBED"?"true":m,a.setAttribute(m,w)):mp(m)?a.setAttribute(m,Qy(m,w)):Sc(m)?Jo(w)?a.removeAttributeNS(rf,yp(m)):a.setAttributeNS(rf,m,w):Sh(a,m,w)}function Sh(a,m,w){if(Jo(w))a.removeAttribute(m);else{if(Ai&&!Ei&&a.tagName==="TEXTAREA"&&m==="placeholder"&&w!==""&&!a.__ieph){var _=function(h){h.stopImmediatePropagation(),a.removeEventListener("input",_)};a.addEventListener("input",_),a.__ieph=!0}a.setAttribute(m,w)}}var Pg={create:Ah,update:Ah};function Ch(a,m){var w=m.elm,_=m.data,h=a.data;if(!(Ze(_.staticClass)&&Ze(_.class)&&(Ze(h)||Ze(h.staticClass)&&Ze(h.class)))){var r=Xy(m),s=w._transitionClasses;Se(s)&&(r=Cc(r,kc(s))),r!==w._prevClass&&(w.setAttribute("class",r),w._prevClass=r)}}var Tg={create:Ch,update:Ch},yu="__r",gu="__c";function Mg(a){if(Se(a[yu])){var m=Ai?"change":"input";a[m]=[].concat(a[yu],a[m]||[]),delete a[yu]}Se(a[gu])&&(a.change=[].concat(a[gu],a.change||[]),delete a[gu])}var ha;function Ig(a,m,w){var _=ha;return function h(){var r=m.apply(null,arguments);r!==null&&bp(a,h,w,_)}}var Dg=Kl&&!(Kd&&Number(Kd[1])<=53);function Bg(a,m,w,_){if(Dg){var h=dp,r=m;m=r._wrapper=function(s){if(s.target===s.currentTarget||s.timeStamp>=h||s.timeStamp<=0||s.target.ownerDocument!==document)return r.apply(this,arguments)}}ha.addEventListener(a,m,F2?{capture:w,passive:_}:w)}function bp(a,m,w,_){(_||ha).removeEventListener(a,m._wrapper||m,w)}function bu(a,m){if(!(Ze(a.data.on)&&Ze(m.data.on))){var w=m.data.on||{},_=a.data.on||{};ha=m.elm||a.elm,Mg(w),Y2(w,_,Bg,bp,Ig,m.context),ha=void 0}}var Rg={create:bu,update:bu,destroy:function(a){return bu(a,rn)}},fo;function kh(a,m){if(!(Ze(a.data.domProps)&&Ze(m.data.domProps))){var w,_,h=m.elm,r=a.data.domProps||{},s=m.data.domProps||{};(Se(s.__ob__)||gt(s._v_attr_proxy))&&(s=m.data.domProps=vt({},s));for(w in r)w in s||(h[w]="");for(w in s){if(_=s[w],w==="textContent"||w==="innerHTML"){if(m.children&&(m.children.length=0),_===r[w])continue;h.childNodes.length===1&&h.removeChild(h.childNodes[0])}if(w==="value"&&h.tagName!=="PROGRESS"){h._value=_;var i=Ze(_)?"":String(_);Ng(h,i)&&(h.value=i)}else if(w==="innerHTML"&&Oc(h.tagName)&&Ze(h.innerHTML)){fo=fo||document.createElement("div"),fo.innerHTML="<svg>".concat(_,"</svg>");for(var f=fo.firstChild;h.firstChild;)h.removeChild(h.firstChild);for(;f.firstChild;)h.appendChild(f.firstChild)}else if(_!==r[w])try{h[w]=_}catch{}}}}function Ng(a,m){return!a.composing&&(a.tagName==="OPTION"||Lg(a,m)||Ug(a,m))}function Lg(a,m){var w=!0;try{w=document.activeElement!==a}catch{}return w&&a.value!==m}function Ug(a,m){var w=a.value,_=a._vModifiers;if(Se(_)){if(_.number)return sa(w)!==sa(m);if(_.trim)return w.trim()!==m.trim()}return w!==m}var Fg={create:kh,update:kh},jg=qn(function(a){var m={},w=/;(?![^(]*\))/g,_=/:(.+)/;return a.split(w).forEach(function(h){if(h){var r=h.split(_);r.length>1&&(m[r[0].trim()]=r[1].trim())}}),m});function _u(a){var m=_p(a.style);return a.staticStyle?vt(a.staticStyle,m):m}function _p(a){return Array.isArray(a)?D2(a):typeof a=="string"?jg(a):a}function Hg(a,m){var w={},_;if(m)for(var h=a;h.componentInstance;)h=h.componentInstance._vnode,h&&h.data&&(_=_u(h.data))&&vt(w,_);(_=_u(a.data))&&vt(w,_);for(var r=a;r=r.parent;)r.data&&(_=_u(r.data))&&vt(w,_);return w}var zg=/^--/,Oh=/\s*!important$/,Ph=function(a,m,w){if(zg.test(m))a.style.setProperty(m,w);else if(Oh.test(w))a.style.setProperty($a(m),w.replace(Oh,""),"important");else{var _=qg(m);if(Array.isArray(w))for(var h=0,r=w.length;h<r;h++)a.style[_]=w[h];else a.style[_]=w}},Th=["Webkit","Moz","ms"],co,qg=qn(function(a){if(co=co||document.createElement("div").style,a=Nn(a),a!=="filter"&&a in co)return a;for(var m=a.charAt(0).toUpperCase()+a.slice(1),w=0;w<Th.length;w++){var _=Th[w]+m;if(_ in co)return _}});function Mh(a,m){var w=m.data,_=a.data;if(!(Ze(w.staticStyle)&&Ze(w.style)&&Ze(_.staticStyle)&&Ze(_.style))){var h,r,s=m.elm,i=_.staticStyle,f=_.normalizedStyle||_.style||{},e=i||f,l=_p(m.data.style)||{};m.data.normalizedStyle=Se(l.__ob__)?vt({},l):l;var n=Hg(m,!0);for(r in e)Ze(n[r])&&Ph(s,r,"");for(r in n)h=n[r],h!==e[r]&&Ph(s,r,h??"")}}var $g={create:Mh,update:Mh},wp=/\s+/;function xp(a,m){if(!(!m||!(m=m.trim())))if(a.classList)m.indexOf(" ")>-1?m.split(wp).forEach(function(_){return a.classList.add(_)}):a.classList.add(m);else{var w=" ".concat(a.getAttribute("class")||""," ");w.indexOf(" "+m+" ")<0&&a.setAttribute("class",(w+m).trim())}}function Ap(a,m){if(!(!m||!(m=m.trim())))if(a.classList)m.indexOf(" ")>-1?m.split(wp).forEach(function(h){return a.classList.remove(h)}):a.classList.remove(m),a.classList.length||a.removeAttribute("class");else{for(var w=" ".concat(a.getAttribute("class")||""," "),_=" "+m+" ";w.indexOf(_)>=0;)w=w.replace(_," ");w=w.trim(),w?a.setAttribute("class",w):a.removeAttribute("class")}}function Ep(a){if(a){if(typeof a=="object"){var m={};return a.css!==!1&&vt(m,Ih(a.name||"v")),vt(m,a),m}else if(typeof a=="string")return Ih(a)}}var Ih=qn(function(a){return{enterClass:"".concat(a,"-enter"),enterToClass:"".concat(a,"-enter-to"),enterActiveClass:"".concat(a,"-enter-active"),leaveClass:"".concat(a,"-leave"),leaveToClass:"".concat(a,"-leave-to"),leaveActiveClass:"".concat(a,"-leave-active")}}),Sp=Vt&&!Ei,ii="transition",wu="animation",So="transition",Qo="transitionend",af="animation",Cp="animationend";Sp&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(So="WebkitTransition",Qo="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(af="WebkitAnimation",Cp="webkitAnimationEnd"));var Dh=Vt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(a){return a()};function kp(a){Dh(function(){Dh(a)})}function Dn(a,m){var w=a._transitionClasses||(a._transitionClasses=[]);w.indexOf(m)<0&&(w.push(m),xp(a,m))}function Hr(a,m){a._transitionClasses&&yn(a._transitionClasses,m),Ap(a,m)}function Op(a,m,w){var _=Pp(a,m),h=_.type,r=_.timeout,s=_.propCount;if(!h)return w();var i=h===ii?Qo:Cp,f=0,e=function(){a.removeEventListener(i,l),w()},l=function(n){n.target===a&&++f>=s&&e()};setTimeout(function(){f<s&&e()},r+1),a.addEventListener(i,l)}var Wg=/\b(transform|all)(,|$)/;function Pp(a,m){var w=window.getComputedStyle(a),_=(w[So+"Delay"]||"").split(", "),h=(w[So+"Duration"]||"").split(", "),r=Bh(_,h),s=(w[af+"Delay"]||"").split(", "),i=(w[af+"Duration"]||"").split(", "),f=Bh(s,i),e,l=0,n=0;m===ii?r>0&&(e=ii,l=r,n=h.length):m===wu?f>0&&(e=wu,l=f,n=i.length):(l=Math.max(r,f),e=l>0?r>f?ii:wu:null,n=e?e===ii?h.length:i.length:0);var t=e===ii&&Wg.test(w[So+"Property"]);return{type:e,timeout:l,propCount:n,hasTransform:t}}function Bh(a,m){for(;a.length<m.length;)a=a.concat(a);return Math.max.apply(null,m.map(function(w,_){return Rh(w)+Rh(a[_])}))}function Rh(a){return Number(a.slice(0,-1).replace(",","."))*1e3}function of(a,m){var w=a.elm;Se(w._leaveCb)&&(w._leaveCb.cancelled=!0,w._leaveCb());var _=Ep(a.data.transition);if(!Ze(_)&&!(Se(w._enterCb)||w.nodeType!==1)){for(var h=_.css,r=_.type,s=_.enterClass,i=_.enterToClass,f=_.enterActiveClass,e=_.appearClass,l=_.appearToClass,n=_.appearActiveClass,t=_.beforeEnter,o=_.enter,d=_.afterEnter,u=_.enterCancelled,c=_.beforeAppear,g=_.appear,p=_.afterAppear,v=_.appearCancelled,y=_.duration,b=In,A=In.$vnode;A&&A.parent;)b=A.context,A=A.parent;var x=!b._isMounted||!a.isRootInsert;if(!(x&&!g&&g!=="")){var E=x&&e?e:s,S=x&&n?n:f,C=x&&l?l:i,T=x&&c||t,k=x&<(g)?g:o,M=x&&p||d,P=x&&v||u,N=sa(Ut(y)?y.enter:y),F=h!==!1&&!Ei,q=Pc(k),z=w._enterCb=Fo(function(){F&&(Hr(w,C),Hr(w,S)),z.cancelled?(F&&Hr(w,E),P&&P(w)):M&&M(w),w._enterCb=null});a.data.show||tn(a,"insert",function(){var O=w.parentNode,R=O&&O._pending&&O._pending[a.key];R&&R.tag===a.tag&&R.elm._leaveCb&&R.elm._leaveCb(),k&&k(w,z)}),T&&T(w),F&&(Dn(w,E),Dn(w,S),kp(function(){Hr(w,E),z.cancelled||(Dn(w,C),q||(Mp(N)?setTimeout(z,N):Op(w,r,z)))})),a.data.show&&(m&&m(),k&&k(w,z)),!F&&!q&&z()}}}function Tp(a,m){var w=a.elm;Se(w._enterCb)&&(w._enterCb.cancelled=!0,w._enterCb());var _=Ep(a.data.transition);if(Ze(_)||w.nodeType!==1)return m();if(Se(w._leaveCb))return;var h=_.css,r=_.type,s=_.leaveClass,i=_.leaveToClass,f=_.leaveActiveClass,e=_.beforeLeave,l=_.leave,n=_.afterLeave,t=_.leaveCancelled,o=_.delayLeave,d=_.duration,u=h!==!1&&!Ei,c=Pc(l),g=sa(Ut(d)?d.leave:d),p=w._leaveCb=Fo(function(){w.parentNode&&w.parentNode._pending&&(w.parentNode._pending[a.key]=null),u&&(Hr(w,i),Hr(w,f)),p.cancelled?(u&&Hr(w,s),t&&t(w)):(m(),n&&n(w)),w._leaveCb=null});o?o(v):v();function v(){p.cancelled||(!a.data.show&&w.parentNode&&((w.parentNode._pending||(w.parentNode._pending={}))[a.key]=a),e&&e(w),u&&(Dn(w,s),Dn(w,f),kp(function(){Hr(w,s),p.cancelled||(Dn(w,i),c||(Mp(g)?setTimeout(p,g):Op(w,r,p)))})),l&&l(w,p),!u&&!c&&p())}}function Mp(a){return typeof a=="number"&&!isNaN(a)}function Pc(a){if(Ze(a))return!1;var m=a.fns;return Se(m)?Pc(Array.isArray(m)?m[0]:m):(a._length||a.length)>1}function Nh(a,m){m.data.show!==!0&&of(m)}var Vg=Vt?{create:Nh,activate:Nh,remove:function(a,m){a.data.show!==!0?Tp(a,m):m()}}:{},Kg=[Pg,Tg,Rg,Fg,$g,Vg],Gg=Kg.concat(Og),Jg=Ag({nodeOps:bg,modules:Gg});Ei&&document.addEventListener("selectionchange",function(){var a=document.activeElement;a&&a.vmodel&&Tc(a,"input")});var Ip={inserted:function(a,m,w,_){w.tag==="select"?(_.elm&&!_.elm._vOptions?tn(w,"postpatch",function(){Ip.componentUpdated(a,m,w)}):Lh(a,m,w.context),a._vOptions=[].map.call(a.options,Yo)):(w.tag==="textarea"||nf(a.type))&&(a._vModifiers=m.modifiers,m.modifiers.lazy||(a.addEventListener("compositionstart",Qg),a.addEventListener("compositionend",jh),a.addEventListener("change",jh),Ei&&(a.vmodel=!0)))},componentUpdated:function(a,m,w){if(w.tag==="select"){Lh(a,m,w.context);var _=a._vOptions,h=a._vOptions=[].map.call(a.options,Yo);if(h.some(function(s,i){return!Ln(s,_[i])})){var r=a.multiple?m.value.some(function(s){return Fh(s,h)}):m.value!==m.oldValue&&Fh(m.value,h);r&&Tc(a,"change")}}}};function Lh(a,m,w){Uh(a,m),(Ai||U2)&&setTimeout(function(){Uh(a,m)},0)}function Uh(a,m,w){var _=m.value,h=a.multiple;if(!(h&&!Array.isArray(_))){for(var r,s,i=0,f=a.options.length;i<f;i++)if(s=a.options[i],h)r=R2(_,Yo(s))>-1,s.selected!==r&&(s.selected=r);else if(Ln(Yo(s),_)){a.selectedIndex!==i&&(a.selectedIndex=i);return}h||(a.selectedIndex=-1)}}function Fh(a,m){return m.every(function(w){return!Ln(w,a)})}function Yo(a){return"_value"in a?a._value:a.value}function Qg(a){a.target.composing=!0}function jh(a){a.target.composing&&(a.target.composing=!1,Tc(a.target,"input"))}function Tc(a,m){var w=document.createEvent("HTMLEvents");w.initEvent(m,!0,!0),a.dispatchEvent(w)}function sf(a){return a.componentInstance&&(!a.data||!a.data.transition)?sf(a.componentInstance._vnode):a}var Yg={bind:function(a,m,w){var _=m.value;w=sf(w);var h=w.data&&w.data.transition,r=a.__vOriginalDisplay=a.style.display==="none"?"":a.style.display;_&&h?(w.data.show=!0,of(w,function(){a.style.display=r})):a.style.display=_?r:"none"},update:function(a,m,w){var _=m.value,h=m.oldValue;if(!_!=!h){w=sf(w);var r=w.data&&w.data.transition;r?(w.data.show=!0,_?of(w,function(){a.style.display=a.__vOriginalDisplay}):Tp(w,function(){a.style.display="none"})):a.style.display=_?a.__vOriginalDisplay:"none"}},unbind:function(a,m,w,_,h){h||(a.style.display=a.__vOriginalDisplay)}},Xg={model:Ip,show:Yg},Dp={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function uf(a){var m=a&&a.componentOptions;return m&&m.Ctor.options.abstract?uf(ip(m.children)):a}function Bp(a){var m={},w=a.$options;for(var _ in w.propsData)m[_]=a[_];var h=w._parentListeners;for(var _ in h)m[Nn(_)]=h[_];return m}function Hh(a,m){if(/\d-keep-alive$/.test(m.tag))return a("keep-alive",{props:m.componentOptions.propsData})}function Zg(a){for(;a=a.parent;)if(a.data.transition)return!0}function eb(a,m){return m.key===a.key&&m.tag===a.tag}var tb=function(a){return a.tag||la(a)},rb=function(a){return a.name==="show"},nb={name:"transition",props:Dp,abstract:!0,render:function(a){var m=this,w=this.$slots.default;if(w&&(w=w.filter(tb),!!w.length)){var _=this.mode,h=w[0];if(Zg(this.$vnode))return h;var r=uf(h);if(!r)return h;if(this._leaving)return Hh(a,h);var s="__transition-".concat(this._uid,"-");r.key=r.key==null?r.isComment?s+"comment":s+r.tag:qa(r.key)?String(r.key).indexOf(s)===0?r.key:s+r.key:r.key;var i=(r.data||(r.data={})).transition=Bp(this),f=this._vnode,e=uf(f);if(r.data.directives&&r.data.directives.some(rb)&&(r.data.show=!0),e&&e.data&&!eb(r,e)&&!la(e)&&!(e.componentInstance&&e.componentInstance._vnode.isComment)){var l=e.data.transition=vt({},i);if(_==="out-in")return this._leaving=!0,tn(l,"afterLeave",function(){m._leaving=!1,m.$forceUpdate()}),Hh(a,h);if(_==="in-out"){if(la(r))return f;var n,t=function(){n()};tn(i,"afterEnter",t),tn(i,"enterCancelled",t),tn(l,"delayLeave",function(o){n=o})}}return h}}},Rp=vt({tag:String,moveClass:String},Dp);delete Rp.mode;var ib={props:Rp,beforeMount:function(){var a=this,m=this._update;this._update=function(w,_){var h=lp(a);a.__patch__(a._vnode,a.kept,!1,!0),a._vnode=a.kept,h(),m.call(a,w,_)}},render:function(a){for(var m=this.tag||this.$vnode.data.tag||"span",w=Object.create(null),_=this.prevChildren=this.children,h=this.$slots.default||[],r=this.children=[],s=Bp(this),i=0;i<h.length;i++){var f=h[i];f.tag&&f.key!=null&&String(f.key).indexOf("__vlist")!==0&&(r.push(f),w[f.key]=f,(f.data||(f.data={})).transition=s)}if(_){for(var e=[],l=[],i=0;i<_.length;i++){var f=_[i];f.data.transition=s,f.data.pos=f.elm.getBoundingClientRect(),w[f.key]?e.push(f):l.push(f)}this.kept=a(m,null,e),this.removed=l}return a(m,null,r)},updated:function(){var a=this.prevChildren,m=this.moveClass||(this.name||"v")+"-move";!a.length||!this.hasMove(a[0].elm,m)||(a.forEach(ab),a.forEach(ob),a.forEach(sb),this._reflow=document.body.offsetHeight,a.forEach(function(w){if(w.data.moved){var _=w.elm,h=_.style;Dn(_,m),h.transform=h.WebkitTransform=h.transitionDuration="",_.addEventListener(Qo,_._moveCb=function r(s){s&&s.target!==_||(!s||/transform$/.test(s.propertyName))&&(_.removeEventListener(Qo,r),_._moveCb=null,Hr(_,m))})}}))},methods:{hasMove:function(a,m){if(!Sp)return!1;if(this._hasMove)return this._hasMove;var w=a.cloneNode();a._transitionClasses&&a._transitionClasses.forEach(function(h){Ap(w,h)}),xp(w,m),w.style.display="none",this.$el.appendChild(w);var _=Pp(w);return this.$el.removeChild(w),this._hasMove=_.hasTransform}}};function ab(a){a.elm._moveCb&&a.elm._moveCb(),a.elm._enterCb&&a.elm._enterCb()}function ob(a){a.data.newPos=a.elm.getBoundingClientRect()}function sb(a){var m=a.data.pos,w=a.data.newPos,_=m.left-w.left,h=m.top-w.top;if(_||h){a.data.moved=!0;var r=a.elm.style;r.transform=r.WebkitTransform="translate(".concat(_,"px,").concat(h,"px)"),r.transitionDuration="0s"}}var ub={Transition:nb,TransitionGroup:ib};ht.config.mustUseProp=Gy;ht.config.isReservedTag=gp;ht.config.isReservedAttr=Vy;ht.config.getTagNamespace=ig;ht.config.isUnknownElement=ag;vt(ht.options.directives,Xg);vt(ht.options.components,ub);ht.prototype.__patch__=Vt?Jg:yt;ht.prototype.$mount=function(a,m){return a=a&&Vt?og(a):void 0,ey(this,a,m)};Vt&&setTimeout(function(){nr.devtools&&jo&&jo.emit("init",ht)},0);const lb=Object.freeze(Object.defineProperty({__proto__:null,EffectScope:hc,computed:F8,customRef:D8,default:ht,defineAsyncComponent:T3,defineComponent:W3,del:cc,effectScope:$8,getCurrentInstance:_8,getCurrentScope:V8,h:S3,inject:J8,isProxy:C8,isReactive:Mn,isReadonly:$n,isRef:Tt,isShallow:zo,markRaw:k8,mergeDefaults:y3,nextTick:Ts,onActivated:U3,onBeforeMount:I3,onBeforeUnmount:N3,onBeforeUpdate:B3,onDeactivated:F3,onErrorCaptured:$3,onMounted:D3,onRenderTracked:H3,onRenderTriggered:z3,onScopeDispose:K8,onServerPrefetch:j3,onUnmounted:L3,onUpdated:R3,provide:G8,proxyRefs:I8,reactive:S8,readonly:K2,ref:O8,set:ks,shallowReactive:dc,shallowReadonly:U8,shallowRef:P8,toRaw:$2,toRef:V2,toRefs:B8,triggerRef:T8,unref:M8,useAttrs:v3,useCssModule:O3,useCssVars:P3,useListeners:m3,useSlots:p3,version:sp,watch:q8,watchEffect:H8,watchPostEffect:J2,watchSyncEffect:z8},Symbol.toStringTag,{value:"Module"}));var Np={exports:{}};const fb=sc(lb);(function(a,m){(function(_,h){a.exports=h(fb)})(typeof self<"u"?self:rt,function(w){return function(_){var h={};function r(s){if(h[s])return h[s].exports;var i=h[s]={i:s,l:!1,exports:{}};return _[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=_,r.c=h,r.d=function(s,i,f){r.o(s,i)||Object.defineProperty(s,i,{configurable:!1,enumerable:!0,get:f})},r.n=function(s){var i=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(i,"a",i),i},r.o=function(s,i){return Object.prototype.hasOwnProperty.call(s,i)},r.p="/dist/",r(r.s=259)}([function(_,h,r){h.a=s;function s(i,f,e,l,n,t,o,d){i=i||{};var u=typeof i.default;(u==="object"||u==="function")&&(i=i.default);var c=typeof i=="function"?i.options:i;f&&(c.render=f,c.staticRenderFns=e,c._compiled=!0),l&&(c.functional=!0),t&&(c._scopeId=t);var g;if(o?(g=function(y){y=y||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!y&&typeof __VUE_SSR_CONTEXT__<"u"&&(y=__VUE_SSR_CONTEXT__),n&&n.call(this,y),y&&y._registeredComponents&&y._registeredComponents.add(o)},c._ssrRegister=g):n&&(g=d?function(){n.call(this,this.$root.$options.shadowRoot)}:n),g)if(c.functional){c._injectStyles=g;var p=c.render;c.render=function(b,A){return g.call(A),p(b,A)}}else{var v=c.beforeCreate;c.beforeCreate=v?[].concat(v,g):[g]}return{exports:i,options:c}}},function(_,h,r){h.__esModule=!0,h.default=function(s,i){if(s!==i)throw new TypeError("Cannot instantiate an arrow function")}},function(_,h,r){h.__esModule=!0;var s=r(269),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=function(e,l,n){return l in e?(0,i.default)(e,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[l]=n,e}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.sharpMatcherRegx=h.dimensionMap=h.findComponentUpward=h.deepCopy=h.firstUpperCase=h.MutationObserver=void 0;var s=r(45),i=t(s),f=r(1),e=t(f);h.oneOf=d,h.camelcaseToHyphen=u,h.getScrollBarSize=g,h.getStyle=b,h.warnProp=x,h.scrollTop=C,h.findComponentDownward=k,h.findComponentsDownward=M,h.findComponentsUpward=P,h.findBrothersComponents=N,h.hasClass=q,h.addClass=z,h.removeClass=O,h.setMatchMedia=R;var l=r(16),n=t(l);function t(I){return I&&I.__esModule?I:{default:I}}var o=n.default.prototype.$isServer;function d(I,D){for(var B=0;B<D.length;B++)if(I===D[B])return!0;return!1}function u(I){return I.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var c=void 0;function g(I){if(o)return 0;if(I||c===void 0){var D=document.createElement("div");D.style.width="100%",D.style.height="200px";var B=document.createElement("div"),j=B.style;j.position="absolute",j.top=0,j.left=0,j.pointerEvents="none",j.visibility="hidden",j.width="200px",j.height="150px",j.overflow="hidden",B.appendChild(D),document.body.appendChild(B);var Q=D.offsetWidth;B.style.overflow="scroll";var X=D.offsetWidth;Q===X&&(X=B.clientWidth),document.body.removeChild(B),c=Q-X}return c}h.MutationObserver=o?!1:window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver||!1;var p=/([\:\-\_]+(.))/g,v=/^moz([A-Z])/;function y(I){return I.replace(p,function(D,B,j,Q){return Q?j.toUpperCase():j}).replace(v,"Moz$1")}function b(I,D){if(!I||!D)return null;D=y(D),D==="float"&&(D="cssFloat");try{var B=document.defaultView.getComputedStyle(I,"");return I.style[D]||B?B[D]:null}catch{return I.style[D]}}function A(I){return I.toString()[0].toUpperCase()+I.toString().slice(1)}h.firstUpperCase=A;function x(I,D,B,j){B=A(B),j=A(j),console.error("[iView warn]: Invalid prop: type check failed for prop "+String(D)+". Expected "+String(B)+", got "+String(j)+". (found in component: "+String(I)+")")}function E(I){var D=Object.prototype.toString,B={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return B[D.call(I)]}function S(I){var D=E(I),B=void 0;if(D==="array")B=[];else if(D==="object")B={};else return I;if(D==="array")for(var j=0;j<I.length;j++)B.push(S(I[j]));else if(D==="object")for(var Q in I)B[Q]=S(I[Q]);return B}h.deepCopy=S;function C(I){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=arguments[2],j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:500,Q=arguments[4];window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(W){return window.setTimeout(W,1e3/60)});var X=Math.abs(D-B),Z=Math.ceil(X/j*50);function L(W,G,J){var H=this;if(W===G){Q&&Q();return}var U=W+J>G?G:W+J;W>G&&(U=W-J<G?G:W-J),I===window?window.scrollTo(U,U):I.scrollTop=U,window.requestAnimationFrame(function(){return(0,e.default)(this,H),L(U,G,J)}.bind(this))}L(D,B,Z)}function T(I,D,B){typeof D=="string"?B=[D]:B=D;for(var j=I.$parent,Q=j.$options.name;j&&(!Q||B.indexOf(Q)<0);)j=j.$parent,j&&(Q=j.$options.name);return j}h.findComponentUpward=T;function k(I,D){var B=I.$children,j=null;if(B.length){var Q=!0,X=!1,Z=void 0;try{for(var L=(0,i.default)(B),W;!(Q=(W=L.next()).done);Q=!0){var G=W.value,J=G.$options.name;if(J===D){j=G;break}else if(j=k(G,D),j)break}}catch(H){X=!0,Z=H}finally{try{!Q&&L.return&&L.return()}finally{if(X)throw Z}}}return j}function M(I,D){var B=this;return I.$children.reduce(function(j,Q){(0,e.default)(this,B),Q.$options.name===D&&j.push(Q);var X=M(Q,D);return j.concat(X)}.bind(this),[])}function P(I,D){var B=[],j=I.$parent;return j?(j.$options.name===D&&B.push(j),B.concat(P(j,D))):[]}function N(I,D){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Q=I.$parent.$children.filter(function(Z){return(0,e.default)(this,B),Z.$options.name===D}.bind(this)),X=Q.findIndex(function(Z){return(0,e.default)(this,B),Z._uid===I._uid}.bind(this));return j&&Q.splice(X,1),Q}var F=function(D){return(D||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function q(I,D){if(!I||!D)return!1;if(D.indexOf(" ")!==-1)throw new Error("className should not contain space.");return I.classList?I.classList.contains(D):(" "+I.className+" ").indexOf(" "+D+" ")>-1}function z(I,D){if(I){for(var B=I.className,j=(D||"").split(" "),Q=0,X=j.length;Q<X;Q++){var Z=j[Q];Z&&(I.classList?I.classList.add(Z):q(I,Z)||(B+=" "+Z))}I.classList||(I.className=B)}}function O(I,D){if(!(!I||!D)){for(var B=D.split(" "),j=" "+I.className+" ",Q=0,X=B.length;Q<X;Q++){var Z=B[Q];Z&&(I.classList?I.classList.remove(Z):q(I,Z)&&(j=j.replace(" "+Z+" "," ")))}I.classList||(I.className=F(j))}}h.dimensionMap={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px"};function R(){var I=this;if(typeof window<"u"){var D=function(B){return(0,e.default)(this,I),{media:B,matches:!1,on:function(){},off:function(){}}}.bind(this);window.matchMedia=window.matchMedia||D}}h.sharpMatcherRegx=/#([^#]+)$/},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}function e(l,n,t){var o=this;this.$children.forEach(function(d){(0,i.default)(this,o);var u=d.$options.name;u===l?d.$emit.apply(d,[n].concat(t)):e.apply(d,[l,n].concat([t]))}.bind(this))}h.default={methods:{dispatch:function(n,t,o){for(var d=this.$parent||this.$root,u=d.$options.name;d&&(!u||u!==n);)d=d.$parent,d&&(u=d.$options.name);d&&d.$emit.apply(d,[t].concat(o))},broadcast:function(n,t,o){e.call(this,n,t,o)}}}},function(_,h){var r=_.exports={version:"2.6.9"};typeof __e=="number"&&(__e=r)},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(120);h.default={methods:{t:function(){for(var f=arguments.length,e=Array(f),l=0;l<f;l++)e[l]=arguments[l];return s.t.apply(this,e)}}}},function(_,h,r){var s=r(9),i=r(5),f=r(24),e=r(25),l=r(30),n="prototype",t=function(o,d,u){var c=o&t.F,g=o&t.G,p=o&t.S,v=o&t.P,y=o&t.B,b=o&t.W,A=g?i:i[d]||(i[d]={}),x=A[n],E=g?s:p?s[d]:(s[d]||{})[n],S,C,T;g&&(u=d);for(S in u)C=!c&&E&&E[S]!==void 0,!(C&&l(A,S))&&(T=C?E[S]:u[S],A[S]=g&&typeof E[S]!="function"?u[S]:y&&C?f(T,s):b&&E[S]==T?function(k){var M=function(P,N,F){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k(P);case 2:return new k(P,N)}return new k(P,N,F)}return k.apply(this,arguments)};return M[n]=k[n],M}(T):v&&typeof T=="function"?f(Function.call,T):T,v&&((A.virtual||(A.virtual={}))[S]=T,o&t.R&&x&&!x[S]&&e(x,S,T)))};t.F=1,t.G=2,t.S=4,t.P=8,t.B=16,t.W=32,t.U=64,t.R=128,_.exports=t},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(101),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(275);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h){var r=_.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(_,h,r){var s=r(67)("wks"),i=r(53),f=r(9).Symbol,e=typeof f=="function",l=_.exports=function(n){return s[n]||(s[n]=e&&f[n]||(e?f:i)("Symbol."+n))};l.store=s},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={inject:{FormInstance:{default:""}},computed:{itemDisabled:function(){var i=this.disabled;return!i&&this.FormInstance&&(i=this.FormInstance.disabled),i}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.off=h.on=void 0;var s=r(16),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e=i.default.prototype.$isServer;h.on=function(){return!e&&document.addEventListener?function(l,n,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;l&&n&&t&&l.addEventListener(n,t,o)}:function(l,n,t){l&&n&&t&&l.attachEvent("on"+n,t)}}(),h.off=function(){return!e&&document.removeEventListener?function(l,n,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;l&&n&&l.removeEventListener(n,t,o)}:function(l,n,t){l&&n&&l.detachEvent("on"+n,t)}}()},function(_,h,r){_.exports=!r(31)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(_,h,r){var s=r(22),i=r(98),f=r(70),e=Object.defineProperty;h.f=r(13)?Object.defineProperty:function(n,t,o){if(s(n),t=f(t,!0),s(o),i)try{return e(n,t,o)}catch{}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(n[t]=o.value),n}},function(_,h,r){_.exports={default:r(264),__esModule:!0}},function(_,h){_.exports=w},function(_,h,r){h.__esModule=!0;var s=r(111),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=function(e){if(Array.isArray(e)){for(var l=0,n=Array(e.length);l<e.length;l++)n[l]=e[l];return n}else return(0,i.default)(e)}},function(_,h){_.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(8),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.TYPE_VALUE_RESOLVER_MAP=h.DEFAULT_FORMATS=h.formatDateLabels=h.initTimeDate=h.nextMonth=h.prevMonth=h.siblingMonth=h.getFirstDayOfMonth=h.getDayCountOfMonth=h.parseDate=h.formatDate=h.isInRange=h.clearHours=h.toDate=void 0;var s=r(26),i=d(s),f=r(1),e=d(f),l=r(17),n=d(l),t=r(407),o=d(t);function d(E){return E&&E.__esModule?E:{default:E}}var u=h.toDate=function(S){var C=new Date(S);return isNaN(C.getTime())&&typeof S=="string"&&(C=S.split("-").map(Number),C[1]+=1,C=new(Function.prototype.bind.apply(Date,[null].concat((0,n.default)(C))))),isNaN(C.getTime())?null:C};h.clearHours=function(S){var C=new Date(S);return C.setHours(0,0,0,0),C.getTime()},h.isInRange=function(E,S,C){if((0,e.default)(void 0,void 0),!S||!C)return!1;var T=[S,C].sort(),k=(0,i.default)(T,2),M=k[0],P=k[1];return E>=M&&E<=P}.bind(void 0);var c=h.formatDate=function(S,C){return S=u(S),S?o.default.format(S,C||"yyyy-MM-dd"):""},g=h.parseDate=function(S,C){return o.default.parse(S,C||"yyyy-MM-dd")},p=h.getDayCountOfMonth=function(S,C){return new Date(S,C+1,0).getDate()};h.getFirstDayOfMonth=function(S){var C=new Date(S.getTime());return C.setDate(1),C.getDay()};var v=h.siblingMonth=function(S,C){var T=new Date(S),k=T.getMonth()+C,M=p(T.getFullYear(),k);return M<T.getDate()&&T.setDate(M),T.setMonth(k),T};h.prevMonth=function(S){return v(S,-1)},h.nextMonth=function(S){return v(S,1)},h.initTimeDate=function(){var S=new Date;return S.setHours(0),S.setMinutes(0),S.setSeconds(0),S},h.formatDateLabels=function(){var E=this,S={yyyy:function(k){return(0,e.default)(this,E),k.getFullYear()}.bind(this),m:function(k){return(0,e.default)(this,E),k.getMonth()+1}.bind(this),mm:function(k){return(0,e.default)(this,E),("0"+(k.getMonth()+1)).slice(-2)}.bind(this),mmm:function(k,M){(0,e.default)(this,E);var P=k.toLocaleDateString(M,{month:"long"});return P.slice(0,3)}.bind(this),Mmm:function(k,M){(0,e.default)(this,E);var P=k.toLocaleDateString(M,{month:"long"});return(P[0].toUpperCase()+P.slice(1).toLowerCase()).slice(0,3)}.bind(this),mmmm:function(k,M){return(0,e.default)(this,E),k.toLocaleDateString(M,{month:"long"})}.bind(this),Mmmm:function(k,M){(0,e.default)(this,E);var P=k.toLocaleDateString(M,{month:"long"});return P[0].toUpperCase()+P.slice(1).toLowerCase()}.bind(this)},C=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g");return function(T,k,M){var P=this,N=/(\[[^\]]+\])([^\[\]]+)(\[[^\]]+\])/,F=k.match(N).slice(1),q=F[1],z=[F[0],F[2]].map(function(O){(0,e.default)(this,P);var R=O.replace(/\[[^\]]+\]/,function(I){return(0,e.default)(this,P),I.slice(1,-1).replace(C,function(D){return(0,e.default)(this,P),S[D](M,T)}.bind(this))}.bind(this));return{label:R,type:O.indexOf("yy")!=-1?"year":"month"}}.bind(this));return{separator:q,labels:z}}}(),h.DEFAULT_FORMATS={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"};var y=function(S,C){return c(S,C)},b=function(S,C){return g(S,C)},A=function(S,C,T){if(Array.isArray(S)&&S.length===2){var k=S[0],M=S[1];if(k&&M)return c(k,C)+T+c(M,C)}else if(!Array.isArray(S)&&S instanceof Date)return c(S,C);return""},x=function(S,C,T){var k=Array.isArray(S)?S:S.split(T);if(k.length===2){var M=k[0],P=k[1];return[M instanceof Date?M:g(M,C),P instanceof Date?P:g(P,C)]}return[]};h.TYPE_VALUE_RESOLVER_MAP={default:{formatter:function(S){return S?""+S:""},parser:function(S){return S===void 0||S===""?null:S}},date:{formatter:y,parser:b},datetime:{formatter:y,parser:b},daterange:{formatter:A,parser:x},datetimerange:{formatter:A,parser:x},timerange:{formatter:A,parser:x},time:{formatter:y,parser:b},month:{formatter:y,parser:b},year:{formatter:y,parser:b},multiple:{formatter:function(S,C){return(0,e.default)(void 0,void 0),S.filter(Boolean).map(function(T){return(0,e.default)(void 0,void 0),c(T,C)}.bind(void 0)).join(",")}.bind(void 0),parser:function(S,C){(0,e.default)(void 0,void 0);var T=typeof S=="string"?S.split(","):S;return T.map(function(k){return(0,e.default)(void 0,void 0),k instanceof Date?k:(typeof k=="string"?k=k.trim():typeof k!="number"&&!k&&(k=""),g(k,C))}.bind(void 0))}.bind(void 0)},number:{formatter:function(S){return S?""+S:""},parser:function(S){var C=Number(S);return isNaN(S)?null:C}}}},function(_,h,r){_.exports={default:r(260),__esModule:!0}},function(_,h,r){var s=r(18);_.exports=function(i){if(!s(i))throw TypeError(i+" is not an object!");return i}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(15),i=f(s);function f(n){return n&&n.__esModule?n:{default:n}}function e(n){return n===void 0&&(n=document.body),n===!0?document.body:n instanceof window.Node?n:document.querySelector(n)}var l={inserted:function(t,o,d){var u=o.value;if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className?t.className+" v-transfer-dom":"v-transfer-dom";var c=t.parentNode;if(c){var g=document.createComment(""),p=!1;u!==!1&&(c.replaceChild(g,t),e(u).appendChild(t),p=!0),t.__transferDomData||(t.__transferDomData={parentNode:c,home:g,target:e(u),hasMovedOut:p})}},componentUpdated:function(t,o){var d=o.value;if(t.dataset&&t.dataset.transfer!=="true")return!1;var u=t.__transferDomData;if(u){var c=u.parentNode,g=u.home,p=u.hasMovedOut;!p&&d?(c.replaceChild(g,t),e(d).appendChild(t),t.__transferDomData=(0,i.default)({},t.__transferDomData,{hasMovedOut:!0,target:e(d)})):p&&d===!1?(c.replaceChild(t,g),t.__transferDomData=(0,i.default)({},t.__transferDomData,{hasMovedOut:!1,target:e(d)})):d&&e(d).appendChild(t)}},unbind:function(t){if(t.dataset&&t.dataset.transfer!=="true")return!1;t.className=t.className.replace("v-transfer-dom","");var o=t.__transferDomData;o&&(t.__transferDomData.hasMovedOut===!0&&t.__transferDomData.parentNode&&t.__transferDomData.parentNode.appendChild(t),t.__transferDomData=null)}};h.default=l},function(_,h,r){var s=r(43);_.exports=function(i,f,e){if(s(i),f===void 0)return i;switch(e){case 1:return function(l){return i.call(f,l)};case 2:return function(l,n){return i.call(f,l,n)};case 3:return function(l,n,t){return i.call(f,l,n,t)}}return function(){return i.apply(f,arguments)}}},function(_,h,r){var s=r(14),i=r(44);_.exports=r(13)?function(f,e,l){return s.f(f,e,i(1,l))}:function(f,e,l){return f[e]=l,f}},function(_,h,r){h.__esModule=!0;var s=r(291),i=l(s),f=r(45),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}h.default=function(){function n(t,o){var d=[],u=!0,c=!1,g=void 0;try{for(var p=(0,e.default)(t),v;!(u=(v=p.next()).done)&&(d.push(v.value),!(o&&d.length===o));u=!0);}catch(y){c=!0,g=y}finally{try{!u&&p.return&&p.return()}finally{if(c)throw g}}return d}return function(t,o){if(Array.isArray(t))return t;if((0,i.default)(Object(t)))return n(t,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(_,h,r){h.__esModule=!0;var s=r(301),i=n(s),f=r(303),e=n(f),l=typeof e.default=="function"&&typeof i.default=="symbol"?function(t){return typeof t}:function(t){return t&&typeof e.default=="function"&&t.constructor===e.default&&t!==e.default.prototype?"symbol":typeof t};function n(t){return t&&t.__esModule?t:{default:t}}h.default=typeof e.default=="function"&&l(i.default)==="symbol"?function(t){return typeof t>"u"?"undefined":l(t)}:function(t){return t&&typeof e.default=="function"&&t.constructor===e.default&&t!==e.default.prototype?"symbol":typeof t>"u"?"undefined":l(t)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(131),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(355);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){var s=r(63);_.exports=function(i){return Object(s(i))}},function(_,h){var r={}.hasOwnProperty;_.exports=function(s,i){return r.call(s,i)}},function(_,h){_.exports=function(r){try{return!!r()}catch{return!0}}},function(_,h,r){h.__esModule=!0;var s=r(15),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default||function(e){for(var l=1;l<arguments.length;l++){var n=arguments[l];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}},function(_,h,r){var s=r(64),i=r(63);_.exports=function(f){return s(i(f))}},function(_,h){_.exports={}},function(_,h,r){var s=r(280)(!0);r(72)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,f=this._i,e;return f>=i.length?{value:void 0,done:!0}:(e=s(i,f),this._i+=e.length,{value:e,done:!1})})},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(115),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(300);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=0,i=0;function f(){h.transferIndex=s+=1}function e(){h.lastVisibleIndex=i+=1}h.transferIndex=s,h.transferIncrease=f,h.lastVisibleIndex=i,h.lastVisibleIncrease=e},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(124),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(339);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(75),i=n(s);h.changeColor=d,h.clamp=u,h.getIncrement=c,h.getTouches=g,h.toRGBAString=p,h.isValidHex=v,h.simpleCheckForValidColor=A;var f=r(149),e=n(f),l=r(3);function n(x){return x&&x.__esModule?x:{default:x}}function t(x,E){var S=(0,e.default)(x),C=S._a;return C==null&&S.setAlpha(E||1),S}function o(x,E){var S=E&&E.a;if(E){if(E.hsl)return t(E.hsl,S);if(E.hex&&E.hex.length>0)return t(E.hex,S)}return t(E,S)}function d(x,E){var S=x===""?"#2d8cf0":x,C=o(x,S),T=C.toHsl(),k=C.toHsv();return T.s===0&&(T.h=S.h||S.hsl&&S.hsl.h||E||0,k.h=T.h),k.v<.0164&&(k.h=S.h||S.hsv&&S.hsv.h||0,k.s=S.s||S.hsv&&S.hsv.s||0),T.l<.01&&(T.h=S.h||S.hsl&&S.hsl.h||0,T.s=S.s||S.hsl&&S.hsl.s||0),{hsl:T,hex:C.toHexString().toUpperCase(),rgba:C.toRgb(),hsv:k,oldHue:S.h||E||T.h,source:S.source,a:S.a||C.getAlpha()}}function u(x,E,S){return x<E?E:x>S?S:x}function c(x,E,S){return(0,l.oneOf)(x,E)?S:0}function g(x,E){return x.touches?x.touches[0][E]:0}function p(x){var E=x.r,S=x.g,C=x.b,T=x.a;return"rgba("+String([E,S,C,T].join(","))+")"}function v(x){return(0,e.default)(x).isValid()}function y(x,E,S){var C=E.checked,T=E.passed,k=x[S];return k&&(C+=1,(0,i.default)(k)&&(T+=1)),{checked:C,passed:T}}var b=["r","g","b","a","h","s","l","v"];function A(x){var E=b.reduce(y.bind(null,x),{checked:0,passed:0});return E.checked===E.passed?x:void 0}},function(_,h,r){var s=r(96),i=r(68);_.exports=Object.keys||function(e){return s(e,i)}},function(_,h){var r={}.toString;_.exports=function(s){return r.call(s).slice(8,-1)}},function(_,h){_.exports=!0},function(_,h){_.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(_,h){_.exports=function(r,s){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:s}}},function(_,h,r){_.exports={default:r(276),__esModule:!0}},function(_,h,r){r(277);for(var s=r(9),i=r(25),f=r(34),e=r(10)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),n=0;n<l.length;n++){var t=l[n],o=s[t],d=o&&o.prototype;d&&!d[e]&&i(d,e,t),f[t]=f.Array}},function(_,h,r){var s=r(14).f,i=r(30),f=r(10)("toStringTag");_.exports=function(e,l,n){e&&!i(e=n?e:e.prototype,f)&&s(e,f,{configurable:!0,value:l})}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=n(s),f=r(27),e=n(f),l=r(3);function n(t){return t&&t.__esModule?t:{default:t}}h.default={props:{to:{type:[Object,String]},replace:{type:Boolean,default:!1},target:{type:String,validator:function(o){return(0,l.oneOf)(o,["_blank","_self","_parent","_top"])},default:"_self"},append:{type:Boolean,required:!1,default:!1}},computed:{linkUrl:function(){var o=(0,e.default)(this.to);if(o!=="string")return null;if(this.to.includes("//"))return this.to;var d=this.$router;if(d){var u=this.$route,c=d.resolve(this.to,u,this.append);return c?c.href:this.to}return this.to}},methods:{handleOpenTo:function(){var o=this.$router,d=this.to;if(o){var u=this.$route,c=o.resolve(this.to,u,this.append);d=c?c.href:this.to}typeof this.to!="string"&&window.open(d)},handleClick:function(){var o=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=this.$router;d?this.handleOpenTo():u?typeof this.to=="string"&&this.to.includes("//")?window.location.href=this.to:this.replace?this.$router.replace(this.to,function(){(0,i.default)(this,o)}.bind(this)):this.$router.push(this.to,function(){(0,i.default)(this,o)}.bind(this)):window.location.href=this.to},handleCheckClick:function(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.to){if(this.target==="_blank")return this.handleOpenTo(),!1;o.preventDefault(),this.handleClick(d)}}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(142),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(381);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={data:function(){return{prefixCls:"ivu-color-picker",inputPrefixCls:"ivu-input",iconPrefixCls:"ivu-icon",transferPrefixCls:"ivu-transfer"}}}},function(_,d,r){var s=r(24),i=r(112),f=r(113),e=r(22),l=r(52),n=r(73),t={},o={},d=_.exports=function(u,c,g,p,v){var y=v?function(){return u}:n(u),b=s(g,p,c?2:1),A=0,x,E,S,C;if(typeof y!="function")throw TypeError(u+" is not iterable!");if(f(y)){for(x=l(u.length);x>A;A++)if(C=c?b(e(E=u[A])[0],E[1]):b(u[A]),C===t||C===o)return C}else for(S=y.call(u);!(E=S.next()).done;)if(C=i(S,b,E.value,c),C===t||C===o)return C};d.BREAK=t,d.RETURN=o},function(_,h,r){var s=r(65),i=Math.min;_.exports=function(f){return f>0?i(s(f),9007199254740991):0}},function(_,h){var r=0,s=Math.random();_.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+s).toString(36))}},function(_,h){h.f={}.propertyIsEnumerable},function(_,h,r){var s=r(22),i=r(104),f=r(68),e=r(66)("IE_PROTO"),l=function(){},n="prototype",t=function(){var o=r(69)("iframe"),d=f.length,u="<",c=">",g;for(o.style.display="none",r(105).appendChild(o),o.src="javascript:",g=o.contentWindow.document,g.open(),g.write(u+"script"+c+"document.F=Object"+u+"/script"+c),g.close(),t=g.F;d--;)delete t[n][f[d]];return t()};_.exports=Object.create||function(d,u){var c;return d!==null?(l[n]=s(d),c=new l,l[n]=null,c[e]=d):c=t(),u===void 0?c:i(c,u)}},function(_,h,r){var s=r(41),i=r(10)("toStringTag"),f=s(function(){return arguments}())=="Arguments",e=function(l,n){try{return l[n]}catch{}};_.exports=function(l){var n,t,o;return l===void 0?"Undefined":l===null?"Null":typeof(t=e(n=Object(l),i))=="string"?t:f?s(n):(o=s(n))=="Object"&&typeof n.callee=="function"?"Arguments":o}},function(_,h,r){_.exports={default:r(296),__esModule:!0}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={props:{disabledHours:{type:Array,default:function(){return[]}},disabledMinutes:{type:Array,default:function(){return[]}},disabledSeconds:{type:Array,default:function(){return[]}},hideDisabledOptions:{type:Boolean,default:!1}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(170),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(418);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(n){return n&&n.__esModule?n:{default:n}}var e="ivu-picker-panel",l="ivu-date-picker";h.default={props:{confirm:{type:Boolean,default:!1}},methods:{iconBtnCls:function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return[e+"-icon-btn",l+"-"+String(t)+"-btn",l+"-"+String(t)+"-btn-arrow"+String(o)]},handleShortcutClick:function(t){t.value&&this.$emit("on-pick",t.value()),t.onClick&&t.onClick(this)},handlePickClear:function(){this.resetView(),this.$emit("on-pick-clear")},handlePickSuccess:function(){this.resetView(),this.$emit("on-pick-success")},handlePickClick:function(){this.$emit("on-pick-click")},resetView:function(){var t=this;setTimeout(function(){return(0,i.default)(this,t),this.currentView=this.selectionMode}.bind(this),500)},handleClear:function(){var t=this;this.dates=this.dates.map(function(){return(0,i.default)(this,t),null}.bind(this)),this.rangeState={},this.$emit("on-pick",this.dates),this.handleConfirm()},handleConfirm:function(t,o){this.$emit("on-pick",this.dates,t,o||this.type)},onToggleVisibility:function(t){var o=this.$refs,d=o.timeSpinner,u=o.timeSpinnerEnd;t&&d&&d.updateScroll(),t&&u&&u.updateScroll()}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(179),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(432);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(180),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(433);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h){_.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},function(_,h,r){var s=r(41);_.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return s(i)=="String"?i.split(""):Object(i)}},function(_,h){var r=Math.ceil,s=Math.floor;_.exports=function(i){return isNaN(i=+i)?0:(i>0?s:r)(i)}},function(_,h,r){var s=r(67)("keys"),i=r(53);_.exports=function(f){return s[f]||(s[f]=i(f))}},function(_,h,r){var s=r(5),i=r(9),f="__core-js_shared__",e=i[f]||(i[f]={});(_.exports=function(l,n){return e[l]||(e[l]=n!==void 0?n:{})})("versions",[]).push({version:s.version,mode:r(42)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(_,h){_.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(_,h,r){var s=r(18),i=r(9).document,f=s(i)&&s(i.createElement);_.exports=function(e){return f?i.createElement(e):{}}},function(_,h,r){var s=r(18);_.exports=function(i,f){if(!s(i))return i;var e,l;if(f&&typeof(e=i.toString)=="function"&&!s(l=e.call(i))||typeof(e=i.valueOf)=="function"&&!s(l=e.call(i))||!f&&typeof(e=i.toString)=="function"&&!s(l=e.call(i)))return l;throw TypeError("Can't convert object to primitive value")}},function(_,h){h.f=Object.getOwnPropertySymbols},function(_,h,r){var s=r(42),i=r(7),f=r(103),e=r(25),l=r(34),n=r(279),t=r(47),o=r(106),d=r(10)("iterator"),u=!([].keys&&"next"in[].keys()),c="@@iterator",g="keys",p="values",v=function(){return this};_.exports=function(y,b,A,x,E,S,C){n(A,b,x);var T=function(B){if(!u&&B in N)return N[B];switch(B){case g:return function(){return new A(this,B)};case p:return function(){return new A(this,B)}}return function(){return new A(this,B)}},k=b+" Iterator",M=E==p,P=!1,N=y.prototype,F=N[d]||N[c]||E&&N[E],q=F||T(E),z=E?M?T("entries"):q:void 0,O=b=="Array"&&N.entries||F,R,I,D;if(O&&(D=o(O.call(new y)),D!==Object.prototype&&D.next&&(t(D,k,!0),!s&&typeof D[d]!="function"&&e(D,d,v))),M&&F&&F.name!==p&&(P=!0,q=function(){return F.call(this)}),(!s||C)&&(u||P||!N[d])&&e(N,d,q),l[b]=q,l[k]=v,E)if(R={values:M?q:T(p),keys:S?q:T(g),entries:z},C)for(I in R)I in N||f(N,I,R[I]);else i(i.P+i.F*(u||P),b,R);return R}},function(_,h,r){var s=r(56),i=r(10)("iterator"),f=r(34);_.exports=r(5).getIteratorMethod=function(e){if(e!=null)return e[i]||e["@@iterator"]||f[s(e)]}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(110),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(327);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){_.exports={default:r(294),__esModule:!0}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.directive=void 0;var s=r(27),i=c(s),f=r(32),e=c(f),l=r(311),n=c(l),t=r(21),o=c(t),d=r(314),u=c(d);h.install=C;function c(T){return T&&T.__esModule?T:{default:T}}var g="click",p=(0,u.default)(null),v=(0,u.default)(null),y=[p,v],b=function(k,M,P){var N=P.target,F=function(O){var R=O.el;if(R!==N&&!R.contains(N)){var I=O.binding;I.modifiers.stop&&P.stopPropagation(),I.modifiers.prevent&&P.preventDefault(),I.value.call(k,P)}},q=function(O){return M[O].forEach(F)};(0,o.default)(M).forEach(q)},A=function(k){b(this,p,k)},x=function(k){b(this,v,k)},E=function(k){return k?A:x},S=h.directive=(0,n.default)({},{$_captureInstances:{value:p},$_nonCaptureInstances:{value:v},$_onCaptureEvent:{value:A},$_onNonCaptureEvent:{value:x},bind:{value:function(k,M){if(typeof M.value!="function")throw new TypeError("Binding value must be a function.");var P=void 0,N=M.modifiers;N.click?P="click":N.mousedown?P="mousedown":N.touchstart?P="touchstart":P=g;var F=M.arg,q=(0,e.default)({},M,{modifiers:(0,e.default)({capture:!1,prevent:!1,stop:!1},M.modifiers)}),z=F?p:v;Array.isArray(z[P])||(z[P]=[]),z[P].push({el:k,binding:q})===1&&(typeof document>"u"?"undefined":(0,i.default)(document))==="object"&&document&&document.addEventListener(P,E(F),F)}},unbind:{value:function(k){var M=function(F){return F.el!==k},P=function(F){var q=(0,o.default)(F);if(q.length){var z=F===p,O=function(I){var D=F[I].filter(M);D.length?F[I]=D:((typeof document>"u"?"undefined":(0,i.default)(document))==="object"&&document&&document.removeEventListener(I,E(z),z),delete F[I])};q.forEach(O)}};y.forEach(P)}},version:{enumerable:!0,value:"3.7.1"}});function C(T){T.directive("click-outside",S)}},function(_,h,r){h.f=r(10)},function(_,h,r){var s=r(53)("meta"),i=r(18),f=r(30),e=r(14).f,l=0,n=Object.isExtensible||function(){return!0},t=!r(31)(function(){return n(Object.preventExtensions({}))}),o=function(p){e(p,s,{value:{i:"O"+ ++l,w:{}}})},d=function(p,v){if(!i(p))return typeof p=="symbol"?p:(typeof p=="string"?"S":"P")+p;if(!f(p,s)){if(!n(p))return"F";if(!v)return"E";o(p)}return p[s].i},u=function(p,v){if(!f(p,s)){if(!n(p))return!0;if(!v)return!1;o(p)}return p[s].w},c=function(p){return t&&g.NEED&&n(p)&&!f(p,s)&&o(p),p},g=_.exports={KEY:s,NEED:!1,fastKey:d,getWeak:u,onFreeze:c}},function(_,h,r){var s=r(9),i=r(5),f=r(42),e=r(77),l=r(14).f;_.exports=function(n){var t=i.Symbol||(i.Symbol=f?{}:s.Symbol||{});n.charAt(0)!="_"&&!(n in t)&&l(t,n,{value:e.f(n)})}},function(_,h){},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(123),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(328);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={bind:function(i,f,e){function l(n){if(i.contains(n.target))return!1;f.expression&&f.value(n)}i.__vueClickOutside__=l,document.addEventListener("click",l)},update:function(){},unbind:function(i,f){document.removeEventListener("click",i.__vueClickOutside__),delete i.__vueClickOutside__}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(3),i={beforeEnter:function(e){(0,s.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},enter:function(e){e.dataset.oldOverflow=e.style.overflow,e.scrollHeight!==0?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){(0,s.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},leave:function(e){e.scrollHeight!==0&&((0,s.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave:function(e){(0,s.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};h.default={name:"CollapseTransition",functional:!0,props:{appear:Boolean},render:function(e,l){var n=l.children,t=l.props,o={on:i,props:{appear:t.appear}};return e("transition",o,n)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=d(s),f=r(4),e=d(f),l=r(151),n=d(l),t=r(39),o=r(12);function d(u){return u&&u.__esModule?u:{default:u}}h.default={mixins:[e.default,n.default],props:{focused:{type:Boolean,default:!1},value:{type:Object,default:void 0}},beforeDestroy:function(){this.unbindEventListeners()},created:function(){var c=this;this.focused&&setTimeout(function(){return(0,i.default)(this,c),this.$el.focus()}.bind(this),1)},methods:{handleLeft:function(c){this.handleSlide(c,this.left,"left")},handleRight:function(c){this.handleSlide(c,this.right,"right")},handleUp:function(c){this.handleSlide(c,this.up,"up")},handleDown:function(c){this.handleSlide(c,this.down,"down")},handleMouseDown:function(c){this.dispatch("ColorPicker","on-dragging",!0),this.handleChange(c,!0),(0,o.on)(window,"mousemove",this.handleChange),(0,o.on)(window,"mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){var c=this;(0,o.off)(window,"mousemove",this.handleChange),(0,o.off)(window,"mouseup",this.handleMouseUp),setTimeout(function(){return(0,i.default)(this,c),this.dispatch("ColorPicker","on-dragging",!1)}.bind(this),1)},getLeft:function(c){var g=this.$refs.container,p=g.getBoundingClientRect().left+window.pageXOffset,v=c.pageX||(0,t.getTouches)(c,"PageX");return v-p},getTop:function(c){var g=this.$refs.container,p=g.getBoundingClientRect().top+window.pageYOffset,v=c.pageY||(0,t.getTouches)(c,"PageY");return v-p}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=e(s),f=r(20);function e(l){return l&&l.__esModule?l:{default:l}}h.default={name:"PanelTable",props:{tableDate:{type:Date,required:!0},disabledDate:{type:Function},selectionMode:{type:String,required:!0},value:{type:Array,required:!0},rangeState:{type:Object,default:function(){return(0,i.default)(void 0,void 0),{from:null,to:null,selecting:!1}}.bind(void 0)},focusedDate:{type:Date,required:!0}},computed:{dates:function(){var n=this.selectionMode,t=this.value,o=this.rangeState,d=n==="range"&&o.selecting;return d?[o.from]:t}},methods:{handleClick:function(n,t){if(t.stopPropagation(),!(n.disabled||n.type==="weekLabel")){var o=new Date((0,f.clearHours)(n.date));this.$emit("on-pick",o),this.$emit("on-pick-click")}},handleMouseMove:function(n){if(this.rangeState.selecting&&!n.disabled){var t=n.date;this.$emit("on-change-range",t)}}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default="ivu-date-picker-cells"},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=n(s),f=r(111),e=n(f),l=r(3);function n(t){return t&&t.__esModule?t:{default:t}}h.default={props:{lockScroll:{type:Boolean,default:!0}},methods:{checkScrollBar:function(){var o=window.innerWidth;if(!o){var d=document.documentElement.getBoundingClientRect();o=d.right-Math.abs(d.left)}this.bodyIsOverflowing=document.body.clientWidth<o,this.bodyIsOverflowing&&(this.scrollBarWidth=(0,l.getScrollBarSize)())},checkMaskInVisible:function(){var o=this,d=document.getElementsByClassName("ivu-modal-mask")||[];return(0,e.default)(d).every(function(u){return(0,i.default)(this,o),u.style.display==="none"||u.classList.contains("fade-leave-to")}.bind(this))},setScrollBar:function(){this.bodyIsOverflowing&&this.scrollBarWidth!==void 0&&(document.body.style.paddingRight=String(this.scrollBarWidth)+"px")},resetScrollBar:function(){document.body.style.paddingRight=""},addScrollEffect:function(){this.lockScroll&&(this.checkScrollBar(),this.setScrollBar(),document.body.style.overflow="hidden")},removeScrollEffect:function(){this.lockScroll&&this.checkMaskInVisible()&&(document.body.style.overflow="",this.resetScrollBar())}}}},function(_,h){_.exports=function(r,s,i,f){if(!(r instanceof s)||f!==void 0&&f in r)throw TypeError(i+": incorrect invocation!");return r}},function(_,h,r){var s=r(43);function i(f){var e,l;this.promise=new f(function(n,t){if(e!==void 0||l!==void 0)throw TypeError("Bad Promise constructor");e=n,l=t}),this.resolve=s(e),this.reject=s(l)}_.exports.f=function(f){return new i(f)}},function(_,h,r){var s=r(25);_.exports=function(i,f,e){for(var l in f)e&&i[l]?i[l]=f[l]:s(i,l,f[l]);return i}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(198),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(465);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(3);h.default={data:function(){return{menu:(0,s.findComponentUpward)(this,"Menu")}},computed:{hasParentSubmenu:function(){return!!(0,s.findComponentUpward)(this,"Submenu")},parentSubmenuNum:function(){return(0,s.findComponentsUpward)(this,"Submenu").length},mode:function(){return this.menu.mode}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(228),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(527);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){var s=r(229).forEach,i=r(529),f=r(530),e=r(531),l=r(532),n=r(533),t=r(230),o=r(534),d=r(536),u=r(537),c=r(538);function g(b){return Array.isArray(b)||b.length!==void 0}function p(b){if(Array.isArray(b))return b;var A=[];return s(b,function(x){A.push(x)}),A}function v(b){return b&&b.nodeType===1}_.exports=function(b){b=b||{};var A;if(b.idHandler)A={get:function(B){return b.idHandler.get(B,!0)},set:b.idHandler.set};else{var x=e(),E=l({idGenerator:x,stateHandler:d});A=E}var S=b.reporter;if(!S){var C=S===!1;S=n(C)}var T=y(b,"batchProcessor",o({reporter:S})),k={};k.callOnAdd=!!y(b,"callOnAdd",!0),k.debug=!!y(b,"debug",!1);var M=f(A),P=i({stateHandler:d}),N,F=y(b,"strategy","object"),q=y(b,"important",!1),z={reporter:S,batchProcessor:T,stateHandler:d,idHandler:A,important:q};if(F==="scroll"&&(t.isLegacyOpera()?(S.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),F="object"):t.isIE(9)&&(S.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),F="object")),F==="scroll")N=c(z);else if(F==="object")N=u(z);else throw new Error("Invalid strategy name: "+F);var O={};function R(B,j,Q){function X(H){var U=M.get(H);s(U,function(te){te(H)})}function Z(H,U,K){M.add(U,K),H&&K(U)}if(Q||(Q=j,j=B,B={}),!j)throw new Error("At least one element required.");if(!Q)throw new Error("Listener required.");if(v(j))j=[j];else if(g(j))j=p(j);else return S.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var L=0,W=y(B,"callOnAdd",k.callOnAdd),G=y(B,"onReady",function(){}),J=y(B,"debug",k.debug);s(j,function(U){d.getState(U)||(d.initState(U),A.set(U));var K=A.get(U);if(J&&S.log("Attaching listener to element",K,U),!P.isDetectable(U)){if(J&&S.log(K,"Not detectable."),P.isBusy(U)){J&&S.log(K,"System busy making it detectable"),Z(W,U,Q),O[K]=O[K]||[],O[K].push(function(){L++,L===j.length&&G()});return}return J&&S.log(K,"Making detectable..."),P.markBusy(U,!0),N.makeDetectable({debug:J,important:q},U,function(ee){if(J&&S.log(K,"onElementDetectable"),d.getState(ee)){P.markAsDetectable(ee),P.markBusy(ee,!1),N.addListener(ee,X),Z(W,ee,Q);var ie=d.getState(ee);if(ie&&ie.startSize){var se=ee.offsetWidth,ne=ee.offsetHeight;(ie.startSize.width!==se||ie.startSize.height!==ne)&&X(ee)}O[K]&&s(O[K],function(re){re()})}else J&&S.log(K,"Element uninstalled before being detectable.");delete O[K],L++,L===j.length&&G()})}J&&S.log(K,"Already detecable, adding listener."),Z(W,U,Q),L++}),L===j.length&&G()}function I(B){if(!B)return S.error("At least one element is required.");if(v(B))B=[B];else if(g(B))B=p(B);else return S.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");s(B,function(j){M.removeAllListeners(j),N.uninstall(j),d.cleanState(j)})}function D(B){N.initDocument&&N.initDocument(B)}return{listenTo:R,removeListener:M.removeListener,removeAllListeners:M.removeAllListeners,uninstall:I,initDocument:D}};function y(b,A,x){var E=b[A];return E==null&&x!==void 0?x:E}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={methods:{alignCls:function(l){var n,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="";return t.cellClassName&&l.key&&t.cellClassName[l.key]&&(o=t.cellClassName[l.key]),[String(this.prefixCls)+"-column-"+String(l.__id),(n={},(0,i.default)(n,""+String(o),o),(0,i.default)(n,""+String(l.className),l.className),(0,i.default)(n,String(this.prefixCls)+"-column-"+String(l.align),l.align),(0,i.default)(n,String(this.prefixCls)+"-hidden",this.fixed==="left"&&l.fixed!=="left"||this.fixed==="right"&&l.fixed!=="right"||!this.fixed&&l.fixed&&(l.fixed==="left"||l.fixed==="right")),n)]},isPopperShow:function(l){return l.filters&&(!this.fixed&&!l.fixed||this.fixed==="left"&&l.fixed==="left"||this.fixed==="right"&&l.fixed==="right")},setCellWidth:function(l){var n="";return l.width?n=l.width:this.columnsWidth[l._index]&&(n=this.columnsWidth[l._index].width),n==="0"&&(n=""),n}}}},function(_,h,r){var s=r(30),i=r(33),f=r(262)(!1),e=r(66)("IE_PROTO");_.exports=function(l,n){var t=i(l),o=0,d=[],u;for(u in t)u!=e&&s(t,u)&&d.push(u);for(;n.length>o;)s(t,u=n[o++])&&(~f(d,u)||d.push(u));return d}},function(_,h,r){var s=r(7),i=r(5),f=r(31);_.exports=function(e,l){var n=(i.Object||{})[e]||Object[e],t={};t[e]=l(n),s(s.S+s.F*f(function(){n(1)}),"Object",t)}},function(_,h,r){_.exports=!r(13)&&!r(31)(function(){return Object.defineProperty(r(69)("div"),"a",{get:function(){return 7}}).a!=7})},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=n(s),f=r(2),e=n(f),l=r(12);function n(u){return u&&u.__esModule?u:{default:u}}var t="ivu-affix";function o(u,c){var g=c?"pageYOffset":"pageXOffset",p=c?"scrollTop":"scrollLeft",v=u[g];return typeof v!="number"&&(v=window.document.documentElement[p]),v}function d(u){var c=u.getBoundingClientRect(),g=o(window,!0),p=o(window),v=window.document.body,y=v.clientTop||0,b=v.clientLeft||0;return{top:c.top+g-y,left:c.left+p-b}}h.default={name:"Affix",props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},useCapture:{type:Boolean,default:!1}},data:function(){return{affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType:function(){var c="top";return this.offsetBottom>=0&&(c="bottom"),c},classes:function(){return[(0,e.default)({},""+t,this.affix)]}},mounted:function(){var c=this;(0,l.on)(window,"scroll",this.handleScroll,this.useCapture),(0,l.on)(window,"resize",this.handleScroll,this.useCapture),this.$nextTick(function(){(0,i.default)(this,c),this.handleScroll()}.bind(this))},beforeDestroy:function(){(0,l.off)(window,"scroll",this.handleScroll,this.useCapture),(0,l.off)(window,"resize",this.handleScroll,this.useCapture)},methods:{handleScroll:function(){var c=this.affix,g=o(window,!0),p=d(this.$el),v=window.innerHeight,y=this.$el.getElementsByTagName("div")[0].offsetHeight;p.top-this.offsetTop<g&&this.offsetType=="top"&&!c?(this.affix=!0,this.slotStyle={width:this.$refs.point.clientWidth+"px",height:this.$refs.point.clientHeight+"px"},this.slot=!0,this.styles={top:String(this.offsetTop)+"px",left:String(p.left)+"px",width:String(this.$el.offsetWidth)+"px"},this.$emit("on-change",!0)):p.top-this.offsetTop>g&&this.offsetType=="top"&&c&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),p.top+this.offsetBottom+y>g+v&&this.offsetType=="bottom"&&!c?(this.affix=!0,this.styles={bottom:String(this.offsetBottom)+"px",left:String(p.left)+"px",width:String(this.$el.offsetWidth)+"px"},this.$emit("on-change",!0)):p.top+this.offsetBottom+y<g+v&&this.offsetType=="bottom"&&c&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=n(s),f=r(19),e=n(f),l=r(3);function n(o){return o&&o.__esModule?o:{default:o}}var t="ivu-alert";h.default={name:"Alert",components:{Icon:e.default},props:{type:{validator:function(d){return(0,l.oneOf)(d,["success","info","warning","error"])},default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},banner:{type:Boolean,default:!1},fade:{type:Boolean,default:!0}},data:function(){return{closed:!1,desc:!1}},computed:{wrapClasses:function(){var d;return[""+t,t+"-"+String(this.type),(d={},(0,i.default)(d,t+"-with-icon",this.showIcon),(0,i.default)(d,t+"-with-desc",this.desc),(0,i.default)(d,t+"-with-banner",this.banner),d)]},messageClasses:function(){return t+"-message"},descClasses:function(){return t+"-desc"},closeClasses:function(){return t+"-close"},iconClasses:function(){return t+"-icon"},iconType:function(){var d="";switch(this.type){case"success":d="ios-checkmark-circle";break;case"info":d="ios-information-circle";break;case"warning":d="ios-alert";break;case"error":d="ios-close-circle";break}return this.desc&&(d+="-outline"),d}},methods:{close:function(d){this.closed=!0,this.$emit("on-close",d)}},mounted:function(){this.desc=this.$slots.desc!==void 0}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-icon";h.default={name:"Icon",props:{type:{type:String,default:""},size:[Number,String],color:String,custom:{type:String,default:""}},computed:{classes:function(){var n;return[""+e,(n={},(0,i.default)(n,e+"-"+String(this.type),this.type!==""),(0,i.default)(n,""+String(this.custom),this.custom!==""),n)]},styles:function(){var n={};return this.size&&(n["font-size"]=String(this.size)+"px"),this.color&&(n.color=this.color),n}},methods:{handleClick:function(n){this.$emit("click",n)}}}},function(_,h){_.exports=function(r,s){return{value:s,done:!!r}}},function(_,h,r){_.exports=r(25)},function(_,h,r){var s=r(14),i=r(22),f=r(40);_.exports=r(13)?Object.defineProperties:function(l,n){i(l);for(var t=f(n),o=t.length,d=0,u;o>d;)s.f(l,u=t[d++],n[u]);return l}},function(_,h,r){var s=r(9).document;_.exports=s&&s.documentElement},function(_,h,r){var s=r(30),i=r(29),f=r(66)("IE_PROTO"),e=Object.prototype;_.exports=Object.getPrototypeOf||function(l){return l=i(l),s(l,f)?l[f]:typeof l.constructor=="function"&&l instanceof l.constructor?l.constructor.prototype:l instanceof Object?e:null}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(3),e=r(12);function l(n){return n&&n.__esModule?n:{default:n}}h.default={name:"Anchor",provide:function(){return{anchorCom:this}},data:function(){return{prefix:"ivu-anchor",isAffixed:!1,inkTop:0,animating:!1,currentLink:"",currentId:"",scrollContainer:null,scrollElement:null,titlesOffsetArr:[],wrapperTop:0,upperFirstTitle:!0}},props:{affix:{type:Boolean,default:!0},offsetTop:{type:Number,default:0},offsetBottom:Number,bounds:{type:Number,default:5},container:null,showInk:{type:Boolean,default:!1},scrollOffset:{type:Number,default:0}},computed:{wrapperComponent:function(){return this.affix?"Affix":"div"},wrapperStyle:function(){return{maxHeight:this.offsetTop?"calc(100vh - "+String(this.offsetTop)+"px)":"100vh"}},containerIsWindow:function(){return this.scrollContainer===window}},methods:{handleAffixStateChange:function(t){this.isAffixed=this.affix&&t},handleScroll:function(t){if(this.upperFirstTitle=t.target.scrollTop<this.titlesOffsetArr[0].offset,!this.animating){this.updateTitleOffset();var o=document.documentElement.scrollTop||document.body.scrollTop||t.target.scrollTop;this.getCurrentScrollAtTitleId(o)}},handleHashChange:function(){var t=window.location.href,o=f.sharpMatcherRegx.exec(t);o&&(this.currentLink=o[0],this.currentId=o[1])},handleScrollTo:function(){var t=this,o=document.getElementById(this.currentId),d=document.querySelector('a[data-href="'+String(this.currentLink)+'"]'),u=this.scrollOffset;if(d&&(u=parseFloat(d.getAttribute("data-scroll-offset"))),!!o){var c=o.offsetTop-this.wrapperTop-u;this.animating=!0,(0,f.scrollTop)(this.scrollContainer,this.scrollElement.scrollTop,c,600,function(){(0,i.default)(this,t),this.animating=!1}.bind(this)),this.handleSetInkTop()}},handleSetInkTop:function(){var t=document.querySelector('a[data-href="'+String(this.currentLink)+'"]');if(t){var o=t.offsetTop,d=o<0?this.offsetTop:o;this.inkTop=d}},updateTitleOffset:function(){var t=this,o=(0,f.findComponentsDownward)(this,"AnchorLink").map(function(c){return(0,i.default)(this,t),c.href}.bind(this)),d=o.map(function(c){return(0,i.default)(this,t),c.split("#")[1]}.bind(this)),u=[];d.forEach(function(c){(0,i.default)(this,t);var g=document.getElementById(c);g&&u.push({link:"#"+String(c),offset:g.offsetTop-this.scrollElement.offsetTop})}.bind(this)),this.titlesOffsetArr=u},getCurrentScrollAtTitleId:function(t){var o=-1,d=this.titlesOffsetArr.length,u={link:"#",offset:0};for(t+=this.bounds;++o<d;){var c=this.titlesOffsetArr[o],g=this.titlesOffsetArr[o+1];if(t>=c.offset&&t<(g&&g.offset||1/0)){u=this.titlesOffsetArr[o];break}}this.currentLink=u.link,this.handleSetInkTop()},getContainer:function(){this.scrollContainer=this.container?typeof this.container=="string"?document.querySelector(this.container):this.container:window,this.scrollElement=this.container?this.scrollContainer:document.documentElement||document.body},removeListener:function(){(0,e.off)(this.scrollContainer,"scroll",this.handleScroll),(0,e.off)(window,"hashchange",this.handleHashChange)},init:function(){var t=this;this.handleHashChange(),this.$nextTick(function(){(0,i.default)(this,t),this.removeListener(),this.getContainer(),this.wrapperTop=this.containerIsWindow?0:this.scrollElement.offsetTop,this.handleScrollTo(),this.handleSetInkTop(),this.updateTitleOffset(),this.titlesOffsetArr[0]&&(this.upperFirstTitle=this.scrollElement.scrollTop<this.titlesOffsetArr[0].offset),(0,e.on)(this.scrollContainer,"scroll",this.handleScroll),(0,e.on)(window,"hashchange",this.handleHashChange)}.bind(this))}},watch:{$route:function(){var t=this;this.handleHashChange(),this.$nextTick(function(){(0,i.default)(this,t),this.handleScrollTo()}.bind(this))},container:function(){this.init()},currentLink:function(t,o){this.$emit("on-change",t,o)}},mounted:function(){this.init()},beforeDestroy:function(){this.removeListener()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"AnchorLink",inject:["anchorCom"],props:{href:String,title:String,scrollOffset:{type:Number,default:function(){return this.anchorCom.scrollOffset}}},data:function(){return{prefix:"ivu-anchor-link"}},computed:{anchorLinkClasses:function(){return[this.prefix,this.anchorCom.currentLink===this.href?String(this.prefix)+"-active":""]},linkTitleClasses:function(){return[String(this.prefix)+"-title"]}},methods:{goAnchor:function(){var l=this;this.currentLink=this.href,this.anchorCom.handleHashChange(),this.anchorCom.handleScrollTo(),this.anchorCom.$emit("on-select",this.href);var n=this.$router;n?this.$router.push(this.href,function(){(0,i.default)(this,l)}.bind(this)):window.location.href=this.href}},mounted:function(){var l=this;this.$nextTick(function(){(0,i.default)(this,l),this.anchorCom.init()}.bind(this))}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=v(s),f=r(74),e=v(f),l=r(81),n=v(l),t=r(38),o=v(t),d=r(3),u=r(4),c=v(u),g=r(11),p=v(g);function v(y){return y&&y.__esModule?y:{default:y}}h.default={name:"AutoComplete",mixins:[c.default,p.default],components:{iSelect:e.default,iOption:n.default,iInput:o.default},props:{value:{type:[String,Number],default:""},label:{type:[String,Number],default:""},data:{type:Array,default:function(){return(0,i.default)(void 0,void 0),[]}.bind(void 0)},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},placeholder:{type:String},size:{validator:function(b){return(0,d.oneOf)(b,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},icon:{type:String},filterMethod:{type:[Function,Boolean],default:!1},placement:{validator:function(b){return(0,d.oneOf)(b,["top","bottom","top-start","bottom-start","top-end","bottom-end"])},default:"bottom-start"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String},elementId:{type:String},transferClassName:{type:String},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{currentValue:this.value,disableEmitChange:!1}},computed:{inputIcon:function(){var b="";return this.clearable&&this.currentValue&&!this.disabled?b="ios-close-circle":this.icon&&(b=this.icon),b},filteredData:function(){var b=this;return this.filterMethod?this.data.filter(function(A){return(0,i.default)(this,b),this.filterMethod(this.currentValue,A)}.bind(this)):this.data}},watch:{value:function(b){this.currentValue!==b&&(this.disableEmitChange=!0),this.currentValue=b},currentValue:function(b){if(this.$refs.select.setQuery(b),this.$emit("input",b),this.disableEmitChange){this.disableEmitChange=!1;return}this.$emit("on-change",b),this.dispatch("FormItem","on-form-change",b)}},methods:{remoteMethod:function(b){this.$emit("on-search",b)},handleSelect:function(b){var A=b.value;A!=null&&(this.currentValue=A,this.$refs.input.blur(),this.$emit("on-select",A))},handleFocus:function(b){this.$emit("on-focus",b)},handleBlur:function(b){this.$emit("on-blur",b)},handleClear:function(){this.clearable&&(this.currentValue="",this.$refs.select.reset(),this.$emit("on-clear"))},handleClickOutside:function(){var b=this;this.$nextTick(function(){(0,i.default)(this,b),this.$refs.input.blur()}.bind(this))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(26),i=j(s),f=r(75),e=j(f),l=r(45),n=j(l),t=r(57),o=j(t),d=r(2),u=j(d),c=r(32),g=j(c),p=r(17),v=j(p),y=r(1),b=j(y),A=r(36),x=j(A),E=r(19),S=j(E),C=r(76),T=r(23),k=j(T),M=r(3),P=r(4),N=j(P),F=r(11),q=j(F),z=r(6),O=j(z),R=r(324),I=j(R),D=r(326),B=j(D);function j(ee){return ee&&ee.__esModule?ee:{default:ee}}var Q="ivu-select",X=/^i-option$|^Option$/i,Z=/option-?group/i,L=function(ee,ie){(0,b.default)(void 0,void 0);var se=ie(ee);if(se)return ee;for(var ne=0,re=ee.$children.length;ne<re;ne++){var Y=ee.$children[ne];if(se=L(Y,ie),se)return se}}.bind(void 0),W=function(ee){(0,b.default)(void 0,void 0);var ie=ee.componentOptions;if(ie&&X.test(ie.tag))return[ee];if(!ee.children&&(!ie||!ie.children))return[];var se=[].concat((0,v.default)(ee.children||[]),(0,v.default)(ie&&ie.children||[])),ne=se.reduce(function(re,Y){return(0,b.default)(void 0,void 0),[].concat((0,v.default)(re),(0,v.default)(W(Y)))}.bind(void 0),[]).filter(Boolean);return ne.length>0?ne:[]}.bind(void 0),G=function(ee){return(0,b.default)(void 0,void 0),ee.reduce(function(ie,se){return(0,b.default)(void 0,void 0),ie.concat(W(se))}.bind(void 0),[])}.bind(void 0),J=function(ee,ie,se){return(0,b.default)(void 0,void 0),(0,g.default)({},ee,{componentOptions:(0,g.default)({},ee.componentOptions,{propsData:(0,g.default)({},ee.componentOptions.propsData,(0,u.default)({},ie,se))})})}.bind(void 0),H=function(ee,ie){(0,b.default)(void 0,void 0);var se=ie.split(".");return se.reduce(function(ne,re){return(0,b.default)(void 0,void 0),ne&&ne[re]||null}.bind(void 0),ee)}.bind(void 0),U=function(ee){if((0,b.default)(void 0,void 0),ee.componentOptions.propsData.label)return ee.componentOptions.propsData.label;var ie=(ee.componentOptions.children||[]).reduce(function(ne,re){return(0,b.default)(void 0,void 0),ne+(re.text||"")}.bind(void 0),""),se=H(ee,"data.domProps.innerHTML");return ie||(typeof se=="string"?se:"")}.bind(void 0),K=function(ee,ie,se){(0,b.default)(void 0,void 0);var ne=(0,o.default)(ee),re=(0,o.default)(ie),Y=(0,o.default)(se.map(function(V){return(0,b.default)(void 0,void 0),V.value}.bind(void 0)));return ne!==re||ne!==Y||Y!==re}.bind(void 0),te=300;h.default={name:"iSelect",mixins:[N.default,O.default,q.default],components:{FunctionalOptions:B.default,Drop:x.default,SelectHead:I.default,Icon:S.default},directives:{clickOutside:C.directive,TransferDom:k.default},props:{value:{type:[String,Number,Array],default:""},label:{type:[String,Number,Array],default:""},defaultLabel:{type:[String,Number,Array],default:""},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},placeholder:{type:String},filterable:{type:Boolean,default:!1},filterMethod:{type:Function},remoteMethod:{type:Function},loading:{type:Boolean,default:!1},loadingText:{type:String},size:{validator:function(ie){return(0,M.oneOf)(ie,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},labelInValue:{type:Boolean,default:!1},notFoundText:{type:String},placement:{validator:function(ie){return(0,M.oneOf)(ie,["top","bottom","top-start","bottom-start","top-end","bottom-end"])},default:"bottom-start"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},autoComplete:{type:Boolean,default:!1},name:{type:String},elementId:{type:String},transferClassName:{type:String},prefix:{type:String},maxTagCount:{type:Number},maxTagPlaceholder:{type:Function},allowCreate:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},filterByLabel:{type:Boolean,default:!1},eventsEnabled:{type:Boolean,default:!1}},mounted:function(){var ie=this;if(this.$on("on-select-selected",this.onOptionClick),!this.remote&&this.selectOptions.length>0&&(this.values=this.getInitialValue().map(function(ne){return(0,b.default)(this,ie),typeof ne!="number"&&!ne?null:this.getOptionData(ne)}.bind(this)).filter(Boolean)),this.checkUpdateStatus(),this.remote&&this.value&&this.defaultLabel){if(!this.multiple)this.query=this.defaultLabel;else if(this.multiple&&this.defaultLabel instanceof Array&&this.value.length===this.defaultLabel.length){var se=this.value.map(function(ne,re){return(0,b.default)(this,ie),{value:ne,label:this.defaultLabel[re]}}.bind(this));this.$emit("on-set-default-options",JSON.parse((0,o.default)(se))),setTimeout(function(){(0,b.default)(this,ie),this.values=se}.bind(this))}}},beforeDestroy:function(){this.$off("on-select-selected")},data:function(){return{prefixCls:Q,values:[],dropDownWidth:0,visible:!1,focusIndex:-1,isFocused:!1,query:"",initialLabel:this.label,hasMouseHoverHead:!1,slotOptions:this.$slots.default,caretPosition:-1,lastRemoteQuery:"",unchangedQuery:!0,hasExpectedValue:!1,isTyping:!1,preventRemoteCall:!1,filterQueryChange:!1}},computed:{classes:function(){var ie;return[""+Q,(ie={},(0,u.default)(ie,Q+"-visible",this.visible),(0,u.default)(ie,Q+"-disabled",this.itemDisabled),(0,u.default)(ie,Q+"-multiple",this.multiple),(0,u.default)(ie,Q+"-single",!this.multiple),(0,u.default)(ie,Q+"-show-clear",this.showCloseIcon),(0,u.default)(ie,Q+"-"+String(this.size),!!this.size),ie)]},dropdownCls:function(){var ie;return ie={},(0,u.default)(ie,Q+"-dropdown-transfer",this.transfer),(0,u.default)(ie,Q+"-multiple",this.multiple&&this.transfer),(0,u.default)(ie,"ivu-auto-complete",this.autoComplete),(0,u.default)(ie,this.transferClassName,this.transferClassName),ie},selectionCls:function(){var ie;return ie={},(0,u.default)(ie,Q+"-selection",!this.autoComplete),(0,u.default)(ie,Q+"-selection-focused",this.isFocused),ie},localeNotFoundText:function(){return typeof this.notFoundText>"u"?this.t("i.select.noMatch"):this.notFoundText},localeLoadingText:function(){return typeof this.loadingText>"u"?this.t("i.select.loading"):this.loadingText},showCreateItem:function(){var ie=this,se=!1;if(this.allowCreate&&this.query!==""){se=!0;var ne=(0,M.findComponentsDownward)(this,"iOption");ne&&ne.length&&ne.find(function(re){return(0,b.default)(this,ie),re.optionLabel===this.query}.bind(this))&&(se=!1)}return se},transitionName:function(){return this.placement==="bottom"?"slide-up":"slide-down"},dropVisible:function(){var ie=!0,se=!this.selectOptions||this.selectOptions.length===0;return!this.loading&&this.remote&&this.query===""&&se&&(ie=!1),this.autoComplete&&se&&(ie=!1),this.visible&&ie},showNotFoundLabel:function(){var ie=this.loading,se=this.remote,ne=this.selectOptions;return ne&&ne.length===0&&(!se||se&&!ie)},publicValue:function(){var ie=this;return this.multiple?this.values.map(function(se){return(0,b.default)(this,ie),se.value}.bind(this)):(this.values[0]||{}).value},canBeCleared:function(){var ie=this.hasMouseHoverHead||this.active,se=!this.multiple&&!this.itemDisabled&&this.clearable;return ie&&se&&this.reset},selectOptions:function(){var ie=this,se=[],ne=this.slotOptions||[],re=-1,Y=this.focusIndex,V=this.values.filter(Boolean).map(function(Ae){var Te=Ae.value;return(0,b.default)(this,ie),Te}.bind(this));if(this.autoComplete){var oe=function(Ae,Te){return(0,b.default)(this,ie),(0,g.default)({},Ae,{children:(Ae.children||[]).map(Te).map(function(ke){return(0,b.default)(this,ie),oe(ke,Te)}.bind(this))})}.bind(this),fe=G(ne),ce=fe[Y];return ne.map(function(Ae){return(0,b.default)(this,ie),Ae===ce||H(Ae,"componentOptions.propsData.value")===this.value?J(Ae,"isFocused",!0):oe(Ae,function(Te){return(0,b.default)(this,ie),Te!==ce?Te:J(Te,"isFocused",!0)}.bind(this))}.bind(this))}var he=!0,le=!1,ae=void 0;try{for(var ue=(0,n.default)(ne),de;!(he=(de=ue.next()).done);he=!0){var ve=de.value,me=ve.componentOptions;if(me)if(Z.test(me.tag)){var ge=me.children;this.filterable&&this.isTyping&&(ge=ge.filter(function(Ae){var Te=Ae.componentOptions;return(0,b.default)(this,ie),this.validateOption(Te)}.bind(this))),ge=ge.map(function(Ae){return(0,b.default)(this,ie),re=re+1,this.processOption(Ae,V,re===Y)}.bind(this)),ge.length>0&&se.push((0,g.default)({},ve,{componentOptions:(0,g.default)({},me,{children:ge})}))}else{if(this.filterQueryChange){var xe=this.filterable?this.validateOption(me):ve;if(!xe)continue}re=re+1,se.push(this.processOption(ve,V,re===Y))}}}catch(Ae){le=!0,ae=Ae}finally{try{!he&&ue.return&&ue.return()}finally{if(le)throw ae}}return se},flatOptions:function(){return G(this.selectOptions)},selectTabindex:function(){return this.itemDisabled||this.filterable?-1:0},remote:function(){return typeof this.remoteMethod=="function"}},methods:{setQuery:function(ie){if(ie){this.onQueryChange(ie);return}ie===null&&(this.onQueryChange(""),this.values=[],this.lastRemoteQuery="")},clearSingleSelect:function(){this.multiple||this.$emit("input",""),this.$emit("on-clear"),this.hideMenu(),this.clearable&&this.reset()},getOptionData:function(ie){var se=this,ne=this.flatOptions.find(function(V){var oe=V.componentOptions;return(0,b.default)(this,se),oe.propsData.value===ie}.bind(this));if(!ne)return null;var re=U(ne),Y=ne.componentOptions.propsData.disabled;return{value:ie,label:re,disabled:Y}},getInitialValue:function(){var ie=this,se=this.multiple,ne=this.remote,re=this.value,Y=Array.isArray(re)?re:[re];if(!se&&(typeof Y[0]>"u"||String(Y[0]).trim()===""&&!(0,e.default)(Y[0]))&&(Y=[]),ne&&!se&&re){var V=this.getOptionData(re);this.query=V?V.label:String(re)}return Y.filter(function(oe){return(0,b.default)(this,ie),!!oe||oe===0}.bind(this))},processOption:function(ie,se,ne){if(!ie.componentOptions)return ie;var re=ie.componentOptions.propsData.value,Y=ie.componentOptions.propsData.disabled,V=se.includes(re),oe=(0,g.default)({},ie.componentOptions.propsData,{selected:V,isFocused:ne,disabled:typeof Y>"u"?!1:Y!==!1});return(0,g.default)({},ie,{componentOptions:(0,g.default)({},ie.componentOptions,{propsData:oe})})},validateOption:function(ie){var se=this,ne=ie.children,re=ie.elm,Y=ie.propsData,V=Y.value,oe=Y.label||"",fe=re&&re.textContent||(ne||[]).reduce(function(le,ae){(0,b.default)(this,se);var ue=ae.elm?ae.elm.textContent:ae.text;return String(le)+" "+String(ue)}.bind(this),"")||"",ce=this.filterByLabel?[oe].toString():[V,oe,fe].toString(),he=this.query.toLowerCase().trim();return ce.toLowerCase().includes(he)},toggleMenu:function(ie,se){if(this.itemDisabled)return!1;this.visible=typeof se<"u"?se:!this.visible,this.visible&&(this.dropDownWidth=this.$el.getBoundingClientRect().width,this.broadcast("Drop","on-update-popper"))},hideMenu:function(){var ie=this;this.toggleMenu(null,!1),this.isTyping=!1,setTimeout(function(){return(0,b.default)(this,ie),this.unchangedQuery=!0}.bind(this),te)},onClickOutside:function(ie){var se=this;if(this.visible){if(ie.type==="mousedown"){ie.preventDefault();return}if(this.transfer){var ne=this.$refs.dropdown.$el;if(ne===ie.target||ne.contains(ie.target))return}if(this.filterable){var re=this.$el.querySelector('input[type="text"]');this.caretPosition=re.selectionStart,this.$nextTick(function(){(0,b.default)(this,se);var Y=this.caretPosition===-1?re.value.length:this.caretPosition;re.setSelectionRange(Y,Y)}.bind(this))}this.autoComplete||ie.stopPropagation(),ie.preventDefault(),this.hideMenu(),this.isFocused=!0,this.$emit("on-clickoutside",ie)}else this.caretPosition=-1,this.isFocused=!1},reset:function(){this.query="",this.focusIndex=-1,this.unchangedQuery=!0,this.values=[],this.filterQueryChange=!1},handleKeydown:function(ie){var se=ie.key||ie.code,ne=ie.keyCode||ie.which;if(!(se==="Backspace"||ne===8))if(this.visible){if(ie.preventDefault(),se==="Tab"&&ie.stopPropagation(),se==="Escape"&&(ie.stopPropagation(),this.hideMenu()),se==="ArrowUp"&&this.navigateOptions(-1),se==="ArrowDown"&&this.navigateOptions(1),se==="Enter"){if(this.focusIndex===-1)return this.hideMenu();var re=this.flatOptions[this.focusIndex];if(re){var Y=this.getOptionData(re.componentOptions.propsData.value);this.onOptionClick(Y)}else this.hideMenu()}}else{var V=["ArrowUp","ArrowDown"];V.includes(ie.key)&&this.toggleMenu(null,!0)}},navigateOptions:function(ie){var se=this.flatOptions.length-1;if(!(se<0)){var ne=this.focusIndex+ie;if(ne<0&&(ne=se),ne>se&&(ne=0),ie>0){for(var re=-1,Y=0;Y<this.flatOptions.length;Y++){var V=!this.flatOptions[Y].componentOptions.propsData.disabled;if(V&&(re=Y),re>=ne)break}ne=re}else{for(var oe=this.flatOptions.length,fe=se;fe>=0;fe--){var ce=!this.flatOptions[fe].componentOptions.propsData.disabled;if(ce&&(oe=fe),oe<=ne)break}ne=oe}this.focusIndex=ne}},onOptionClick:function(ie){var se=this;if(this.multiple){this.remote?this.lastRemoteQuery=this.lastRemoteQuery||this.query:this.lastRemoteQuery="";var ne=this.values.find(function(Y){var V=Y.value;return(0,b.default)(this,se),V===ie.value}.bind(this));ne?this.values=this.values.filter(function(Y){var V=Y.value;return(0,b.default)(this,se),V!==ie.value}.bind(this)):this.values=this.values.concat(ie),this.isFocused=!0}else this.query=String(ie.label).trim(),this.values=[ie],this.lastRemoteQuery="",this.hideMenu();if(this.focusIndex=this.flatOptions.findIndex(function(Y){return(0,b.default)(this,se),!Y||!Y.componentOptions?!1:Y.componentOptions.propsData.value===ie.value}.bind(this)),this.filterable){var re=this.$el.querySelector('input[type="text"]');this.autoComplete||this.$nextTick(function(){return(0,b.default)(this,se),re.focus()}.bind(this))}this.$emit("on-select",ie),this.broadcast("Drop","on-update-popper"),setTimeout(function(){(0,b.default)(this,se),this.filterQueryChange=!1}.bind(this),te)},onQueryChange:function(ie){if(this.isTyping=!0,ie.length>0&&ie!==this.query)if(this.autoComplete){var se=document.hasFocus&&document.hasFocus()&&document.activeElement===this.$el.querySelector("input");this.visible=se}else this.visible=!0;this.query=ie,this.unchangedQuery=this.visible,this.filterQueryChange=!0},toggleHeaderFocus:function(ie){var se=ie.type;this.itemDisabled||(this.isFocused=se==="focus")},updateSlotOptions:function(){this.slotOptions=this.$slots.default},checkUpdateStatus:function(){this.getInitialValue().length>0&&this.selectOptions.length===0&&(this.hasExpectedValue=!0)},handleCreateItem:function(){var ie=this;if(this.allowCreate&&this.query!==""&&this.showCreateItem){var se=this.query;this.$emit("on-create",se),this.query="";var ne={value:se,label:se,tag:void 0};this.$nextTick(function(){return(0,b.default)(this,ie),this.onOptionClick(ne)}.bind(this))}}},watch:{value:function(ie){var se=this,ne=this.getInitialValue,re=this.getOptionData,Y=this.publicValue,V=this.values;this.checkUpdateStatus(),ie===""?this.values=[]:K(ie,Y,V)&&(this.$nextTick(function(){return(0,b.default)(this,se),this.values=ne().map(re).filter(Boolean)}.bind(this)),this.multiple||this.dispatch("FormItem","on-form-change",this.publicValue))},values:function(ie,se){var ne=(0,o.default)(ie),re=(0,o.default)(se),Y=this.publicValue,V=ne!==re&&Y!==this.value;if(V){var oe=this.publicValue;this.labelInValue&&(this.multiple?oe=this.values:oe=this.values[0]),(Array.isArray(Y)&&!Y.length&&this.value===null||Y===void 0&&this.value===null)&&(Y=null),this.$emit("input",Y),this.$emit("on-change",oe),this.dispatch("FormItem","on-form-change",oe)}},query:function(ie){var se=this;this.$emit("on-query-change",ie);var ne=this.remoteMethod,re=this.lastRemoteQuery,Y=ie!==""&&(ie!==re||!re),V=ne&&Y&&!this.preventRemoteCall;if(this.preventRemoteCall=!1,V){this.focusIndex=-1;var oe=this.remoteMethod(ie);this.initialLabel="",oe&&oe.then&&oe.then(function(fe){(0,b.default)(this,se),fe&&(this.options=fe)}.bind(this))}ie!==""&&this.remote&&(this.lastRemoteQuery=ie)},loading:function(ie){ie===!1&&this.updateSlotOptions()},isFocused:function(ie){var se=this.filterable?this.$el.querySelector('input[type="text"]'):this.$el;se[this.isFocused?"focus":"blur"]();var ne=(0,i.default)(this.values,1),re=ne[0];if(re&&this.filterable&&!this.multiple&&!ie){var Y=String(re.label||re.value).trim();Y&&this.query!==Y&&(this.preventRemoteCall=!0,this.query=Y)}},focusIndex:function(ie){var se=this;if(!(ie<0||this.autoComplete)){var ne=this.flatOptions[ie].componentOptions.propsData.value,re=L(this,function(oe){var fe=oe.$options;return(0,b.default)(this,se),fe.componentName==="select-item"&&fe.propsData.value===ne}.bind(this)),Y=re.$el.getBoundingClientRect().bottom-this.$refs.dropdown.$el.getBoundingClientRect().bottom,V=re.$el.getBoundingClientRect().top-this.$refs.dropdown.$el.getBoundingClientRect().top;Y>0&&(this.$refs.dropdown.$el.scrollTop+=Y),V<0&&(this.$refs.dropdown.$el.scrollTop+=V)}},dropVisible:function(ie){this.broadcast("Drop",ie?"on-update-popper":"on-destroy-popper")},selectOptions:function(){this.hasExpectedValue&&this.selectOptions.length>0&&(this.values.length===0&&(this.values=this.getInitialValue()),this.values=this.values.map(this.getOptionData).filter(Boolean),this.hasExpectedValue=!1),this.slotOptions&&this.slotOptions.length===0&&(this.query=""),this.broadcast("Drop","on-update-popper")},visible:function(ie){this.$emit("on-open-change",ie)},slotOptions:function(ie,se){if(!this.remote){var ne=this.getInitialValue();this.flatOptions&&this.flatOptions.length&&ne.length&&!this.multiple&&(this.values=ne.map(this.getOptionData).filter(Boolean))}ie&&se&&ie.length!==se.length&&this.broadcast("Drop","on-update-popper")}}}},function(_,h,r){_.exports={default:r(297),__esModule:!0}},function(_,h,r){var s=r(22);_.exports=function(i,f,e,l){try{return l?f(s(e)[0],e[1]):f(e)}catch(t){var n=i.return;throw n!==void 0&&s(n.call(i)),t}}},function(_,h,r){var s=r(34),i=r(10)("iterator"),f=Array.prototype;_.exports=function(e){return e!==void 0&&(s.Array===e||f[i]===e)}},function(_,h,r){var s=r(10)("iterator"),i=!1;try{var f=[7][s]();f.return=function(){i=!0},Array.from(f,function(){throw 2})}catch{}_.exports=function(e,l){if(!l&&!i)return!1;var n=!1;try{var t=[7],o=t[s]();o.next=function(){return{done:n=!0}},t[s]=function(){return o},e(t)}catch{}return n}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=t(s),f=r(16),e=t(f),l=r(3),n=r(37);function t(u){return u&&u.__esModule?u:{default:u}}var o=e.default.prototype.$isServer,d=o?function(){}:r(116);h.default={name:"Drop",props:{placement:{type:String,default:"bottom-start"},className:{type:String},transfer:{type:Boolean},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{popper:null,width:"",popperStatus:!1,tIndex:this.handleGetIndex()}},computed:{styles:function(){var c={};return this.width&&(c.minWidth=String(this.width)+"px"),this.transfer&&(c["z-index"]=1060+this.tIndex),c}},methods:{update:function(){var c=this;o||this.$nextTick(function(){(0,i.default)(this,c),this.popper?(this.popper.update(),this.popperStatus=!0):this.popper=new d(this.$parent.$refs.reference,this.$el,{eventsEnabled:this.eventsEnabled,placement:this.placement,modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:"window"}},onCreate:function(){(0,i.default)(this,c),this.resetTransformOrigin(),this.$nextTick(this.popper.update())}.bind(this),onUpdate:function(){(0,i.default)(this,c),this.resetTransformOrigin()}.bind(this)}),this.$parent.$options.name==="iSelect"&&(this.width=parseInt((0,l.getStyle)(this.$parent.$el,"width"))),this.tIndex=this.handleGetIndex()}.bind(this))},destroy:function(){var c=this;this.popper&&setTimeout(function(){(0,i.default)(this,c),this.popper&&!this.popperStatus&&(this.popper.popper.style.display="none",this.popper.destroy(),this.popper=null),this.popperStatus=!1}.bind(this),300)},resetTransformOrigin:function(){if(this.popper){var c=this.popper.popper.getAttribute("x-placement"),g=c.split("-")[0],p=c.split("-")[1],v=c==="left"||c==="right";v||(this.popper.popper.style.transformOrigin=g==="bottom"||g!=="top"&&p==="start"?"center top":"center bottom")}},handleGetIndex:function(){return(0,n.transferIncrease)(),n.transferIndex}},created:function(){this.$on("on-update-popper",this.update),this.$on("on-destroy-popper",this.destroy)},beforeDestroy:function(){this.$off("on-update-popper",this.update),this.$off("on-destroy-popper",this.destroy),this.popper&&(this.popper.destroy(),this.popper=null)}}},function(_,h,r){(function(s){/**! +* @fileOverview Kickass library to create and place poppers near their reference elements. +* @version 1.15.0 +* @license +* Copyright (c) 2016 Federico Zivolo and contributors +* +* Permission is hereby granted, free of charge, to any person obtaining a copy +* of this software and associated documentation files (the "Software"), to deal +* in the Software without restriction, including without limitation the rights +* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +* copies of the Software, and to permit persons to whom the Software is +* furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in all +* copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +* SOFTWARE. +*/(function(i,f){_.exports=f()})(this,function(){for(var i=typeof window<"u"&&typeof document<"u",f=["Edge","Trident","Firefox"],e=0,l=0;l<f.length;l+=1)if(i&&navigator.userAgent.indexOf(f[l])>=0){e=1;break}function n(pe){var ye=!1;return function(){ye||(ye=!0,window.Promise.resolve().then(function(){ye=!1,pe()}))}}function t(pe){var ye=!1;return function(){ye||(ye=!0,setTimeout(function(){ye=!1,pe()},e))}}var o=i&&window.Promise,d=o?n:t;function u(pe){var ye={};return pe&&ye.toString.call(pe)==="[object Function]"}function c(pe,ye){if(pe.nodeType!==1)return[];var be=pe.ownerDocument.defaultView,_e=be.getComputedStyle(pe,null);return ye?_e[ye]:_e}function g(pe){return pe.nodeName==="HTML"?pe:pe.parentNode||pe.host}function p(pe){if(!pe)return document.body;switch(pe.nodeName){case"HTML":case"BODY":return pe.ownerDocument.body;case"#document":return pe.body}var ye=c(pe),be=ye.overflow,_e=ye.overflowX,we=ye.overflowY;return/(auto|scroll|overlay)/.test(be+we+_e)?pe:p(g(pe))}var v=i&&!!(window.MSInputMethodContext&&document.documentMode),y=i&&/MSIE 10/.test(navigator.userAgent);function b(pe){return pe===11?v:pe===10?y:v||y}function A(pe){if(!pe)return document.documentElement;for(var ye=b(10)?document.body:null,be=pe.offsetParent||null;be===ye&&pe.nextElementSibling;)be=(pe=pe.nextElementSibling).offsetParent;var _e=be&&be.nodeName;return!_e||_e==="BODY"||_e==="HTML"?pe?pe.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(be.nodeName)!==-1&&c(be,"position")==="static"?A(be):be}function x(pe){var ye=pe.nodeName;return ye==="BODY"?!1:ye==="HTML"||A(pe.firstElementChild)===pe}function E(pe){return pe.parentNode!==null?E(pe.parentNode):pe}function S(pe,ye){if(!pe||!pe.nodeType||!ye||!ye.nodeType)return document.documentElement;var be=pe.compareDocumentPosition(ye)&Node.DOCUMENT_POSITION_FOLLOWING,_e=be?pe:ye,we=be?ye:pe,Ee=document.createRange();Ee.setStart(_e,0),Ee.setEnd(we,0);var Ce=Ee.commonAncestorContainer;if(pe!==Ce&&ye!==Ce||_e.contains(we))return x(Ce)?Ce:A(Ce);var Oe=E(pe);return Oe.host?S(Oe.host,ye):S(pe,E(ye).host)}function C(pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",be=ye==="top"?"scrollTop":"scrollLeft",_e=pe.nodeName;if(_e==="BODY"||_e==="HTML"){var we=pe.ownerDocument.documentElement,Ee=pe.ownerDocument.scrollingElement||we;return Ee[be]}return pe[be]}function T(pe,ye){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_e=C(ye,"top"),we=C(ye,"left"),Ee=be?-1:1;return pe.top+=_e*Ee,pe.bottom+=_e*Ee,pe.left+=we*Ee,pe.right+=we*Ee,pe}function k(pe,ye){var be=ye==="x"?"Left":"Top",_e=be==="Left"?"Right":"Bottom";return parseFloat(pe["border"+be+"Width"],10)+parseFloat(pe["border"+_e+"Width"],10)}function M(pe,ye,be,_e){return Math.max(ye["offset"+pe],ye["scroll"+pe],be["client"+pe],be["offset"+pe],be["scroll"+pe],b(10)?parseInt(be["offset"+pe])+parseInt(_e["margin"+(pe==="Height"?"Top":"Left")])+parseInt(_e["margin"+(pe==="Height"?"Bottom":"Right")]):0)}function P(pe){var ye=pe.body,be=pe.documentElement,_e=b(10)&&getComputedStyle(be);return{height:M("Height",ye,be,_e),width:M("Width",ye,be,_e)}}var N=function(pe,ye){if(!(pe instanceof ye))throw new TypeError("Cannot call a class as a function")},F=function(){function pe(ye,be){for(var _e=0;_e<be.length;_e++){var we=be[_e];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ye,we.key,we)}}return function(ye,be,_e){return be&&pe(ye.prototype,be),_e&&pe(ye,_e),ye}}(),q=function(pe,ye,be){return ye in pe?Object.defineProperty(pe,ye,{value:be,enumerable:!0,configurable:!0,writable:!0}):pe[ye]=be,pe},z=Object.assign||function(pe){for(var ye=1;ye<arguments.length;ye++){var be=arguments[ye];for(var _e in be)Object.prototype.hasOwnProperty.call(be,_e)&&(pe[_e]=be[_e])}return pe};function O(pe){return z({},pe,{right:pe.left+pe.width,bottom:pe.top+pe.height})}function R(pe){var ye={};try{if(b(10)){ye=pe.getBoundingClientRect();var be=C(pe,"top"),_e=C(pe,"left");ye.top+=be,ye.left+=_e,ye.bottom+=be,ye.right+=_e}else ye=pe.getBoundingClientRect()}catch{}var we={left:ye.left,top:ye.top,width:ye.right-ye.left,height:ye.bottom-ye.top},Ee=pe.nodeName==="HTML"?P(pe.ownerDocument):{},Ce=Ee.width||pe.clientWidth||we.right-we.left,Oe=Ee.height||pe.clientHeight||we.bottom-we.top,De=pe.offsetWidth-Ce,Be=pe.offsetHeight-Oe;if(De||Be){var Re=c(pe);De-=k(Re,"x"),Be-=k(Re,"y"),we.width-=De,we.height-=Be}return O(we)}function I(pe,ye){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_e=b(10),we=ye.nodeName==="HTML",Ee=R(pe),Ce=R(ye),Oe=p(pe),De=c(ye),Be=parseFloat(De.borderTopWidth,10),Re=parseFloat(De.borderLeftWidth,10);be&&we&&(Ce.top=Math.max(Ce.top,0),Ce.left=Math.max(Ce.left,0));var Le=O({top:Ee.top-Ce.top-Be,left:Ee.left-Ce.left-Re,width:Ee.width,height:Ee.height});if(Le.marginTop=0,Le.marginLeft=0,!_e&&we){var Ue=parseFloat(De.marginTop,10),Ne=parseFloat(De.marginLeft,10);Le.top-=Be-Ue,Le.bottom-=Be-Ue,Le.left-=Re-Ne,Le.right-=Re-Ne,Le.marginTop=Ue,Le.marginLeft=Ne}return(_e&&!be?ye.contains(Oe):ye===Oe&&Oe.nodeName!=="BODY")&&(Le=T(Le,ye)),Le}function D(pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=pe.ownerDocument.documentElement,_e=I(pe,be),we=Math.max(be.clientWidth,window.innerWidth||0),Ee=Math.max(be.clientHeight,window.innerHeight||0),Ce=ye?0:C(be),Oe=ye?0:C(be,"left"),De={top:Ce-_e.top+_e.marginTop,left:Oe-_e.left+_e.marginLeft,width:we,height:Ee};return O(De)}function B(pe){var ye=pe.nodeName;if(ye==="BODY"||ye==="HTML")return!1;if(c(pe,"position")==="fixed")return!0;var be=g(pe);return be?B(be):!1}function j(pe){if(!pe||!pe.parentElement||b())return document.documentElement;for(var ye=pe.parentElement;ye&&c(ye,"transform")==="none";)ye=ye.parentElement;return ye||document.documentElement}function Q(pe,ye,be,_e){var we=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,Ee={top:0,left:0},Ce=we?j(pe):S(pe,ye);if(_e==="viewport")Ee=D(Ce,we);else{var Oe=void 0;_e==="scrollParent"?(Oe=p(g(ye)),Oe.nodeName==="BODY"&&(Oe=pe.ownerDocument.documentElement)):_e==="window"?Oe=pe.ownerDocument.documentElement:Oe=_e;var De=I(Oe,Ce,we);if(Oe.nodeName==="HTML"&&!B(Ce)){var Be=P(pe.ownerDocument),Re=Be.height,Le=Be.width;Ee.top+=De.top-De.marginTop,Ee.bottom=Re+De.top,Ee.left+=De.left-De.marginLeft,Ee.right=Le+De.left}else Ee=De}be=be||0;var Ue=typeof be=="number";return Ee.left+=Ue?be:be.left||0,Ee.top+=Ue?be:be.top||0,Ee.right-=Ue?be:be.right||0,Ee.bottom-=Ue?be:be.bottom||0,Ee}function X(pe){var ye=pe.width,be=pe.height;return ye*be}function Z(pe,ye,be,_e,we){var Ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(pe.indexOf("auto")===-1)return pe;var Ce=Q(be,_e,Ee,we),Oe={top:{width:Ce.width,height:ye.top-Ce.top},right:{width:Ce.right-ye.right,height:Ce.height},bottom:{width:Ce.width,height:Ce.bottom-ye.bottom},left:{width:ye.left-Ce.left,height:Ce.height}},De=Object.keys(Oe).map(function(Ue){return z({key:Ue},Oe[Ue],{area:X(Oe[Ue])})}).sort(function(Ue,Ne){return Ne.area-Ue.area}),Be=De.filter(function(Ue){var Ne=Ue.width,$e=Ue.height;return Ne>=be.clientWidth&&$e>=be.clientHeight}),Re=Be.length>0?Be[0].key:De[0].key,Le=pe.split("-")[1];return Re+(Le?"-"+Le:"")}function L(pe,ye,be){var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,we=_e?j(ye):S(ye,be);return I(be,we,_e)}function W(pe){var ye=pe.ownerDocument.defaultView,be=ye.getComputedStyle(pe),_e=parseFloat(be.marginTop||0)+parseFloat(be.marginBottom||0),we=parseFloat(be.marginLeft||0)+parseFloat(be.marginRight||0),Ee={width:pe.offsetWidth+we,height:pe.offsetHeight+_e};return Ee}function G(pe){var ye={left:"right",right:"left",bottom:"top",top:"bottom"};return pe.replace(/left|right|bottom|top/g,function(be){return ye[be]})}function J(pe,ye,be){be=be.split("-")[0];var _e=W(pe),we={width:_e.width,height:_e.height},Ee=["right","left"].indexOf(be)!==-1,Ce=Ee?"top":"left",Oe=Ee?"left":"top",De=Ee?"height":"width",Be=Ee?"width":"height";return we[Ce]=ye[Ce]+ye[De]/2-_e[De]/2,be===Oe?we[Oe]=ye[Oe]-_e[Be]:we[Oe]=ye[G(Oe)],we}function H(pe,ye){return Array.prototype.find?pe.find(ye):pe.filter(ye)[0]}function U(pe,ye,be){if(Array.prototype.findIndex)return pe.findIndex(function(we){return we[ye]===be});var _e=H(pe,function(we){return we[ye]===be});return pe.indexOf(_e)}function K(pe,ye,be){var _e=be===void 0?pe:pe.slice(0,U(pe,"name",be));return _e.forEach(function(we){we.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var Ee=we.function||we.fn;we.enabled&&u(Ee)&&(ye.offsets.popper=O(ye.offsets.popper),ye.offsets.reference=O(ye.offsets.reference),ye=Ee(ye,we))}),ye}function te(){if(!this.state.isDestroyed){var pe={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};pe.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),pe.placement=Z(this.options.placement,pe.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),pe.originalPlacement=pe.placement,pe.positionFixed=this.options.positionFixed,pe.offsets.popper=J(this.popper,pe.offsets.reference,pe.placement),pe.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",pe=K(this.modifiers,pe),this.state.isCreated?this.options.onUpdate(pe):(this.state.isCreated=!0,this.options.onCreate(pe))}}function ee(pe,ye){return pe.some(function(be){var _e=be.name,we=be.enabled;return we&&_e===ye})}function ie(pe){for(var ye=[!1,"ms","Webkit","Moz","O"],be=pe.charAt(0).toUpperCase()+pe.slice(1),_e=0;_e<ye.length;_e++){var we=ye[_e],Ee=we?""+we+be:pe;if(typeof document.body.style[Ee]<"u")return Ee}return null}function se(){return this.state.isDestroyed=!0,ee(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ie("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ne(pe){var ye=pe.ownerDocument;return ye?ye.defaultView:window}function re(pe,ye,be,_e){var we=pe.nodeName==="BODY",Ee=we?pe.ownerDocument.defaultView:pe;Ee.addEventListener(ye,be,{passive:!0}),we||re(p(Ee.parentNode),ye,be,_e),_e.push(Ee)}function Y(pe,ye,be,_e){be.updateBound=_e,ne(pe).addEventListener("resize",be.updateBound,{passive:!0});var we=p(pe);return re(we,"scroll",be.updateBound,be.scrollParents),be.scrollElement=we,be.eventsEnabled=!0,be}function V(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}function oe(pe,ye){return ne(pe).removeEventListener("resize",ye.updateBound),ye.scrollParents.forEach(function(be){be.removeEventListener("scroll",ye.updateBound)}),ye.updateBound=null,ye.scrollParents=[],ye.scrollElement=null,ye.eventsEnabled=!1,ye}function fe(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=oe(this.reference,this.state))}function ce(pe){return pe!==""&&!isNaN(parseFloat(pe))&&isFinite(pe)}function he(pe,ye){Object.keys(ye).forEach(function(be){var _e="";["width","height","top","right","bottom","left"].indexOf(be)!==-1&&ce(ye[be])&&(_e="px"),pe.style[be]=ye[be]+_e})}function le(pe,ye){Object.keys(ye).forEach(function(be){var _e=ye[be];_e!==!1?pe.setAttribute(be,ye[be]):pe.removeAttribute(be)})}function ae(pe){return he(pe.instance.popper,pe.styles),le(pe.instance.popper,pe.attributes),pe.arrowElement&&Object.keys(pe.arrowStyles).length&&he(pe.arrowElement,pe.arrowStyles),pe}function ue(pe,ye,be,_e,we){var Ee=L(we,ye,pe,be.positionFixed),Ce=Z(be.placement,Ee,ye,pe,be.modifiers.flip.boundariesElement,be.modifiers.flip.padding);return ye.setAttribute("x-placement",Ce),he(ye,{position:be.positionFixed?"fixed":"absolute"}),be}function de(pe,ye){var be=pe.offsets,_e=be.popper,we=be.reference,Ee=Math.round,Ce=Math.floor,Oe=function(ft){return ft},De=Ee(we.width),Be=Ee(_e.width),Re=["left","right"].indexOf(pe.placement)!==-1,Le=pe.placement.indexOf("-")!==-1,Ue=De%2===Be%2,Ne=De%2===1&&Be%2===1,$e=ye?Re||Le||Ue?Ee:Ce:Oe,ze=ye?Ee:Oe;return{left:$e(Ne&&!Le&&ye?_e.left-1:_e.left),top:ze(_e.top),bottom:ze(_e.bottom),right:$e(_e.right)}}var ve=i&&/Firefox/i.test(navigator.userAgent);function me(pe,ye){var be=ye.x,_e=ye.y,we=pe.offsets.popper,Ee=H(pe.instance.modifiers,function(ct){return ct.name==="applyStyle"}).gpuAcceleration;Ee!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var Ce=Ee!==void 0?Ee:ye.gpuAcceleration,Oe=A(pe.instance.popper),De=R(Oe),Be={position:we.position},Re=de(pe,window.devicePixelRatio<2||!ve),Le=be==="bottom"?"top":"bottom",Ue=_e==="right"?"left":"right",Ne=ie("transform"),$e=void 0,ze=void 0;if(Le==="bottom"?Oe.nodeName==="HTML"?ze=-Oe.clientHeight+Re.bottom:ze=-De.height+Re.bottom:ze=Re.top,Ue==="right"?Oe.nodeName==="HTML"?$e=-Oe.clientWidth+Re.right:$e=-De.width+Re.right:$e=Re.left,Ce&&Ne)Be[Ne]="translate3d("+$e+"px, "+ze+"px, 0)",Be[Le]=0,Be[Ue]=0,Be.willChange="transform";else{var Xe=Le==="bottom"?-1:1,ft=Ue==="right"?-1:1;Be[Le]=ze*Xe,Be[Ue]=$e*ft,Be.willChange=Le+", "+Ue}var ut={"x-placement":pe.placement};return pe.attributes=z({},ut,pe.attributes),pe.styles=z({},Be,pe.styles),pe.arrowStyles=z({},pe.offsets.arrow,pe.arrowStyles),pe}function ge(pe,ye,be){var _e=H(pe,function(Oe){var De=Oe.name;return De===ye}),we=!!_e&&pe.some(function(Oe){return Oe.name===be&&Oe.enabled&&Oe.order<_e.order});if(!we){var Ee="`"+ye+"`",Ce="`"+be+"`";console.warn(Ce+" modifier is required by "+Ee+" modifier in order to work, be sure to include it before "+Ee+"!")}return we}function xe(pe,ye){var be;if(!ge(pe.instance.modifiers,"arrow","keepTogether"))return pe;var _e=ye.element;if(typeof _e=="string"){if(_e=pe.instance.popper.querySelector(_e),!_e)return pe}else if(!pe.instance.popper.contains(_e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),pe;var we=pe.placement.split("-")[0],Ee=pe.offsets,Ce=Ee.popper,Oe=Ee.reference,De=["left","right"].indexOf(we)!==-1,Be=De?"height":"width",Re=De?"Top":"Left",Le=Re.toLowerCase(),Ue=De?"left":"top",Ne=De?"bottom":"right",$e=W(_e)[Be];Oe[Ne]-$e<Ce[Le]&&(pe.offsets.popper[Le]-=Ce[Le]-(Oe[Ne]-$e)),Oe[Le]+$e>Ce[Ne]&&(pe.offsets.popper[Le]+=Oe[Le]+$e-Ce[Ne]),pe.offsets.popper=O(pe.offsets.popper);var ze=Oe[Le]+Oe[Be]/2-$e/2,Xe=c(pe.instance.popper),ft=parseFloat(Xe["margin"+Re],10),ut=parseFloat(Xe["border"+Re+"Width"],10),ct=ze-pe.offsets.popper[Le]-ft-ut;return ct=Math.max(Math.min(Ce[Be]-$e,ct),0),pe.arrowElement=_e,pe.offsets.arrow=(be={},q(be,Le,Math.round(ct)),q(be,Ue,""),be),pe}function Ae(pe){return pe==="end"?"start":pe==="start"?"end":pe}var Te=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ke=Te.slice(3);function Pe(pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=ke.indexOf(pe),_e=ke.slice(be+1).concat(ke.slice(0,be));return ye?_e.reverse():_e}var Ie={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function qe(pe,ye){if(ee(pe.instance.modifiers,"inner")||pe.flipped&&pe.placement===pe.originalPlacement)return pe;var be=Q(pe.instance.popper,pe.instance.reference,ye.padding,ye.boundariesElement,pe.positionFixed),_e=pe.placement.split("-")[0],we=G(_e),Ee=pe.placement.split("-")[1]||"",Ce=[];switch(ye.behavior){case Ie.FLIP:Ce=[_e,we];break;case Ie.CLOCKWISE:Ce=Pe(_e);break;case Ie.COUNTERCLOCKWISE:Ce=Pe(_e,!0);break;default:Ce=ye.behavior}return Ce.forEach(function(Oe,De){if(_e!==Oe||Ce.length===De+1)return pe;_e=pe.placement.split("-")[0],we=G(_e);var Be=pe.offsets.popper,Re=pe.offsets.reference,Le=Math.floor,Ue=_e==="left"&&Le(Be.right)>Le(Re.left)||_e==="right"&&Le(Be.left)<Le(Re.right)||_e==="top"&&Le(Be.bottom)>Le(Re.top)||_e==="bottom"&&Le(Be.top)<Le(Re.bottom),Ne=Le(Be.left)<Le(be.left),$e=Le(Be.right)>Le(be.right),ze=Le(Be.top)<Le(be.top),Xe=Le(Be.bottom)>Le(be.bottom),ft=_e==="left"&&Ne||_e==="right"&&$e||_e==="top"&&ze||_e==="bottom"&&Xe,ut=["top","bottom"].indexOf(_e)!==-1,ct=!!ye.flipVariations&&(ut&&Ee==="start"&&Ne||ut&&Ee==="end"&&$e||!ut&&Ee==="start"&&ze||!ut&&Ee==="end"&&Xe),sr=!!ye.flipVariationsByContent&&(ut&&Ee==="start"&&$e||ut&&Ee==="end"&&Ne||!ut&&Ee==="start"&&Xe||!ut&&Ee==="end"&&ze),Gt=ct||sr;(Ue||ft||Gt)&&(pe.flipped=!0,(Ue||ft)&&(_e=Ce[De+1]),Gt&&(Ee=Ae(Ee)),pe.placement=_e+(Ee?"-"+Ee:""),pe.offsets.popper=z({},pe.offsets.popper,J(pe.instance.popper,pe.offsets.reference,pe.placement)),pe=K(pe.instance.modifiers,pe,"flip"))}),pe}function Ve(pe){var ye=pe.offsets,be=ye.popper,_e=ye.reference,we=pe.placement.split("-")[0],Ee=Math.floor,Ce=["top","bottom"].indexOf(we)!==-1,Oe=Ce?"right":"bottom",De=Ce?"left":"top",Be=Ce?"width":"height";return be[Oe]<Ee(_e[De])&&(pe.offsets.popper[De]=Ee(_e[De])-be[Be]),be[De]>Ee(_e[Oe])&&(pe.offsets.popper[De]=Ee(_e[Oe])),pe}function et(pe,ye,be,_e){var we=pe.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),Ee=+we[1],Ce=we[2];if(!Ee)return pe;if(Ce.indexOf("%")===0){var Oe=void 0;switch(Ce){case"%p":Oe=be;break;case"%":case"%r":default:Oe=_e}var De=O(Oe);return De[ye]/100*Ee}else if(Ce==="vh"||Ce==="vw"){var Be=void 0;return Ce==="vh"?Be=Math.max(document.documentElement.clientHeight,window.innerHeight||0):Be=Math.max(document.documentElement.clientWidth,window.innerWidth||0),Be/100*Ee}else return Ee}function je(pe,ye,be,_e){var we=[0,0],Ee=["right","left"].indexOf(_e)!==-1,Ce=pe.split(/(\+|\-)/).map(function(Re){return Re.trim()}),Oe=Ce.indexOf(H(Ce,function(Re){return Re.search(/,|\s/)!==-1}));Ce[Oe]&&Ce[Oe].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var De=/\s*,\s*|\s+/,Be=Oe!==-1?[Ce.slice(0,Oe).concat([Ce[Oe].split(De)[0]]),[Ce[Oe].split(De)[1]].concat(Ce.slice(Oe+1))]:[Ce];return Be=Be.map(function(Re,Le){var Ue=(Le===1?!Ee:Ee)?"height":"width",Ne=!1;return Re.reduce(function($e,ze){return $e[$e.length-1]===""&&["+","-"].indexOf(ze)!==-1?($e[$e.length-1]=ze,Ne=!0,$e):Ne?($e[$e.length-1]+=ze,Ne=!1,$e):$e.concat(ze)},[]).map(function($e){return et($e,Ue,ye,be)})}),Be.forEach(function(Re,Le){Re.forEach(function(Ue,Ne){ce(Ue)&&(we[Le]+=Ue*(Re[Ne-1]==="-"?-1:1))})}),we}function Ke(pe,ye){var be=ye.offset,_e=pe.placement,we=pe.offsets,Ee=we.popper,Ce=we.reference,Oe=_e.split("-")[0],De=void 0;return ce(+be)?De=[+be,0]:De=je(be,Ee,Ce,Oe),Oe==="left"?(Ee.top+=De[0],Ee.left-=De[1]):Oe==="right"?(Ee.top+=De[0],Ee.left+=De[1]):Oe==="top"?(Ee.left+=De[0],Ee.top-=De[1]):Oe==="bottom"&&(Ee.left+=De[0],Ee.top+=De[1]),pe.popper=Ee,pe}function Ge(pe,ye){var be=ye.boundariesElement||A(pe.instance.popper);pe.instance.reference===be&&(be=A(be));var _e=ie("transform"),we=pe.instance.popper.style,Ee=we.top,Ce=we.left,Oe=we[_e];we.top="",we.left="",we[_e]="";var De=Q(pe.instance.popper,pe.instance.reference,ye.padding,be,pe.positionFixed);we.top=Ee,we.left=Ce,we[_e]=Oe,ye.boundaries=De;var Be=ye.priority,Re=pe.offsets.popper,Le={primary:function(Ne){var $e=Re[Ne];return Re[Ne]<De[Ne]&&!ye.escapeWithReference&&($e=Math.max(Re[Ne],De[Ne])),q({},Ne,$e)},secondary:function(Ne){var $e=Ne==="right"?"left":"top",ze=Re[$e];return Re[Ne]>De[Ne]&&!ye.escapeWithReference&&(ze=Math.min(Re[$e],De[Ne]-(Ne==="right"?Re.width:Re.height))),q({},$e,ze)}};return Be.forEach(function(Ue){var Ne=["left","top"].indexOf(Ue)!==-1?"primary":"secondary";Re=z({},Re,Le[Ne](Ue))}),pe.offsets.popper=Re,pe}function We(pe){var ye=pe.placement,be=ye.split("-")[0],_e=ye.split("-")[1];if(_e){var we=pe.offsets,Ee=we.reference,Ce=we.popper,Oe=["bottom","top"].indexOf(be)!==-1,De=Oe?"left":"top",Be=Oe?"width":"height",Re={start:q({},De,Ee[De]),end:q({},De,Ee[De]+Ee[Be]-Ce[Be])};pe.offsets.popper=z({},Ce,Re[_e])}return pe}function Je(pe){if(!ge(pe.instance.modifiers,"hide","preventOverflow"))return pe;var ye=pe.offsets.reference,be=H(pe.instance.modifiers,function(_e){return _e.name==="preventOverflow"}).boundaries;if(ye.bottom<be.top||ye.left>be.right||ye.top>be.bottom||ye.right<be.left){if(pe.hide===!0)return pe;pe.hide=!0,pe.attributes["x-out-of-boundaries"]=""}else{if(pe.hide===!1)return pe;pe.hide=!1,pe.attributes["x-out-of-boundaries"]=!1}return pe}function ot(pe){var ye=pe.placement,be=ye.split("-")[0],_e=pe.offsets,we=_e.popper,Ee=_e.reference,Ce=["left","right"].indexOf(be)!==-1,Oe=["top","left"].indexOf(be)===-1;return we[Ce?"left":"top"]=Ee[be]-(Oe?we[Ce?"width":"height"]:0),pe.placement=G(ye),pe.offsets.popper=O(we),pe}var Qe={shift:{order:100,enabled:!0,fn:We},offset:{order:200,enabled:!0,fn:Ke,offset:0},preventOverflow:{order:300,enabled:!0,fn:Ge,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Ve},arrow:{order:500,enabled:!0,fn:xe,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:qe,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:ot},hide:{order:800,enabled:!0,fn:Je},computeStyle:{order:850,enabled:!0,fn:me,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:ae,onLoad:ue,gpuAcceleration:void 0}},Ye={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Qe},at=function(){function pe(ye,be){var _e=this,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};N(this,pe),this.scheduleUpdate=function(){return requestAnimationFrame(_e.update)},this.update=d(this.update.bind(this)),this.options=z({},pe.Defaults,we),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=ye&&ye.jquery?ye[0]:ye,this.popper=be&&be.jquery?be[0]:be,this.options.modifiers={},Object.keys(z({},pe.Defaults.modifiers,we.modifiers)).forEach(function(Ce){_e.options.modifiers[Ce]=z({},pe.Defaults.modifiers[Ce]||{},we.modifiers?we.modifiers[Ce]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(Ce){return z({name:Ce},_e.options.modifiers[Ce])}).sort(function(Ce,Oe){return Ce.order-Oe.order}),this.modifiers.forEach(function(Ce){Ce.enabled&&u(Ce.onLoad)&&Ce.onLoad(_e.reference,_e.popper,_e.options,Ce,_e.state)}),this.update();var Ee=this.options.eventsEnabled;Ee&&this.enableEventListeners(),this.state.eventsEnabled=Ee}return F(pe,[{key:"update",value:function(){return te.call(this)}},{key:"destroy",value:function(){return se.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return fe.call(this)}}]),pe}();return at.Utils=(typeof window<"u"?window:s).PopperUtils,at.placements=Te,at.Defaults=Ye,at})}).call(h,r(117))},function(_,h){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(r=window)}_.exports=r},function(_,h,r){var s=r(41);_.exports=Array.isArray||function(f){return s(f)=="Array"}},function(_,h,r){var s=r(96),i=r(68).concat("length","prototype");h.f=Object.getOwnPropertyNames||function(e){return s(e,i)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.i18n=h.use=h.t=void 0;var s=r(317),i=c(s),f=r(320),e=c(f),l=r(16),n=c(l),t=r(322),o=c(t),d=r(323),u=c(d);function c(E){return E&&E.__esModule?E:{default:E}}var g=(0,u.default)(n.default),p=e.default,v=!1,y=function(){var S=(0,i.default)(this||n.default).$t;if(typeof S=="function"&&n.default.locale)return v||(v=!0,n.default.locale(n.default.config.lang,(0,o.default)(p,n.default.locale(n.default.config.lang)||{},{clone:!0}))),S.apply(this,arguments)},b=h.t=function(S,C){var T=y.apply(this,arguments);if(T!=null)return T;for(var k=S.split("."),M=p,P=0,N=k.length;P<N;P++){var F=k[P];if(T=M[F],P===N-1)return g(T,C);if(!T)return"";M=T}return""},A=h.use=function(S){p=S||p},x=h.i18n=function(S){y=S||y};h.default={use:A,t:b,i18n:x}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(26),i=p(s),f=r(2),e=p(f),l=r(1),n=p(l),t=r(19),o=p(t),d=r(4),u=p(d),c=r(6),g=p(c);function p(y){return y&&y.__esModule?y:{default:y}}var v="ivu-select";h.default={name:"iSelectHead",mixins:[u.default,g.default],components:{Icon:o.default},props:{disabled:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},initialLabel:{type:[String,Number,Array]},values:{type:Array,default:function(){return(0,n.default)(void 0,void 0),[]}.bind(void 0)},clearable:{type:[Function,Boolean],default:!1},inputElementId:{type:String},placeholder:{type:String},queryProp:{type:String,default:""},prefix:{type:String},maxTagCount:{type:Number},maxTagPlaceholder:{type:Function},allowCreate:{type:Boolean},showCreateItem:{type:Boolean}},data:function(){return{prefixCls:v,query:"",inputLength:20,remoteInitialLabel:this.initialLabel,preventRemoteCall:!1}},computed:{singleDisplayClasses:function(){var b,A=this.filterable,x=this.multiple,E=this.showPlaceholder;return[(b={},(0,e.default)(b,v+"-head-with-prefix",this.$slots.prefix||this.prefix),(0,e.default)(b,v+"-placeholder",E&&!A),(0,e.default)(b,v+"-selected-value",!E&&!x&&!A),b)]},singleDisplayValue:function(){return this.multiple&&this.values.length>0||this.filterable?"":""+String(this.selectedSingle)||this.localePlaceholder},showPlaceholder:function(){var b=!1;if(this.multiple)!this.values.length>0&&(b=!0);else{var A=this.values[0];(typeof A>"u"||String(A).trim()==="")&&(b=!this.remoteInitialLabel)}return b},resetSelect:function(){return!this.showPlaceholder&&this.clearable},inputStyle:function(){var b={};return this.multiple&&(this.showPlaceholder?b.width="100%":b.width=String(this.inputLength)+"px"),b},localePlaceholder:function(){return this.placeholder===void 0?this.t("i.select.placeholder"):this.placeholder},selectedSingle:function(){var b=this.values[0];return b?b.label:this.remoteInitialLabel||""},selectedMultiple:function(){return this.multiple?this.values:[]},headCls:function(){return(0,e.default)({},v+"-head-flex",this.filterable&&(this.$slots.prefix||this.prefix))},arrowType:function(){var b="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.select.customArrow?b="":this.$IVIEW.select.arrow&&(b=this.$IVIEW.select.arrow)),b},customArrowType:function(){var b="";return this.$IVIEW&&this.$IVIEW.select.customArrow&&(b=this.$IVIEW.select.customArrow),b},arrowSize:function(){var b="";return this.$IVIEW&&this.$IVIEW.select.arrowSize&&(b=this.$IVIEW.select.arrowSize),b}},methods:{onInputFocus:function(){this.$emit("on-input-focus")},onInputBlur:function(){this.showCreateItem||(this.values.length||(this.query=""),this.$emit("on-input-blur"))},removeTag:function(b){if(this.disabled)return!1;this.dispatch("iSelect","on-select-selected",b)},resetInputState:function(){this.inputLength=this.$refs.input.value.length*12+20,this.$emit("on-keydown")},handleInputDelete:function(b){var A=b.target.value;this.multiple&&this.selectedMultiple.length&&this.query===""&&A===""&&this.removeTag(this.selectedMultiple[this.selectedMultiple.length-1])},handleInputEnter:function(b){this.$emit("on-enter"),this.showCreateItem&&b.stopPropagation()},onHeaderClick:function(b){this.filterable&&b.target===this.$el&&this.$refs.input.focus()},onClear:function(){this.$emit("on-clear")}},watch:{values:function(b){var A=this,x=(0,i.default)(b,1),E=x[0];if(this.filterable){if(this.preventRemoteCall=!0,this.multiple){this.query="",this.preventRemoteCall=!1;return}typeof E>"u"||E===""||E===null?this.query="":this.query=E.label,this.$nextTick(function(){return(0,n.default)(this,A),this.preventRemoteCall=!1}.bind(this))}},query:function(b){if(this.preventRemoteCall){this.preventRemoteCall=!1;return}this.$emit("on-query-change",b)},queryProp:function(b){b!==this.query&&(this.query=b)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e=function(){return(0,i.default)(void 0,void 0),[]}.bind(void 0);h.default={props:{options:{type:Array,default:e},slotOptions:{type:Array,default:e},slotUpdateHook:{type:Function,default:function(){(0,i.default)(void 0,void 0)}.bind(void 0)}},render:function(n){return this.slotOptions!==this.$parent.$slots.default&&this.slotUpdateHook(),n("ul",[this.$slots.default,this.options])}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=o(s),f=r(4),e=o(f),l=r(11),n=o(l),t=r(3);function o(u){return u&&u.__esModule?u:{default:u}}var d="ivu-select-item";h.default={name:"iOption",componentName:"select-item",mixins:[e.default,n.default],props:{value:{type:[String,Number],required:!0},label:{type:[String,Number]},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isFocused:{type:Boolean,default:!1},tag:{type:[String,Number]}},data:function(){return{searchLabel:"",autoComplete:!1}},computed:{classes:function(){var c;return[""+d,(c={},(0,i.default)(c,d+"-disabled",this.itemDisabled),(0,i.default)(c,d+"-selected",this.selected&&!this.autoComplete),(0,i.default)(c,d+"-focus",this.isFocused),c)]},showLabel:function(){return this.label?this.label:this.value},optionLabel:function(){return this.label||this.$el&&this.$el.textContent}},methods:{select:function(){if(this.itemDisabled)return!1;this.dispatch("iSelect","on-select-selected",{value:this.value,label:this.optionLabel,tag:this.tag}),this.$emit("on-select-selected",{value:this.value,label:this.optionLabel,tag:this.tag})}},mounted:function(){var c=(0,t.findComponentUpward)(this,"iSelect");c&&(this.autoComplete=c.autoComplete)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=v(s),f=r(329),e=v(f),l=r(2),n=v(l),t=r(3),o=r(332),d=v(o),u=r(4),c=v(u),g=r(11),p=v(g);function v(b){return b&&b.__esModule?b:{default:b}}var y="ivu-input";h.default={name:"Input",mixins:[c.default,p.default],props:{type:{validator:function(A){return(0,t.oneOf)(A,["text","textarea","password","url","email","date","number","tel"])},default:"text"},value:{type:[String,Number],default:""},size:{validator:function(A){return(0,t.oneOf)(A,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},placeholder:{type:String,default:""},maxlength:{type:[String,Number]},disabled:{type:Boolean,default:!1},icon:String,autosize:{type:[Boolean,Object],default:!1},rows:{type:Number,default:2},readonly:{type:Boolean,default:!1},name:{type:String},number:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},clearable:{type:Boolean,default:!1},elementId:{type:String},wrap:{validator:function(A){return(0,t.oneOf)(A,["hard","soft"])},default:"soft"},prefix:{type:String,default:""},suffix:{type:String,default:""},search:{type:Boolean,default:!1},enterButton:{type:[Boolean,String],default:!1},showWordLimit:{type:Boolean,default:!1},password:{type:Boolean,default:!1},border:{type:Boolean,default:!0}},data:function(){return{currentValue:this.value,prefixCls:y,slotReady:!1,textareaStyles:{},isOnComposition:!1,showPassword:!1,clearableIconOffset:0}},computed:{currentType:function(){var A=this.type;return A==="password"&&this.password&&this.showPassword&&(A="text"),A},prepend:function(){var A=!1;return this.type!=="textarea"&&(A=this.$slots.prepend!==void 0),A},append:function(){var A=!1;return this.type!=="textarea"&&(A=this.$slots.append!==void 0),A},showPrefix:function(){var A=!1;return this.type!=="textarea"&&(A=this.prefix!==""||this.$slots.prefix!==void 0),A},showSuffix:function(){var A=!1;return this.type!=="textarea"&&(A=this.suffix!==""||this.$slots.suffix!==void 0),A},wrapClasses:function(){var A;return[y+"-wrapper",(A={},(0,n.default)(A,y+"-wrapper-"+String(this.size),!!this.size),(0,n.default)(A,y+"-type-"+String(this.type),this.type),(0,n.default)(A,y+"-group",this.prepend||this.append||this.search&&this.enterButton),(0,n.default)(A,y+"-group-"+String(this.size),(this.prepend||this.append||this.search&&this.enterButton)&&!!this.size),(0,n.default)(A,y+"-group-with-prepend",this.prepend),(0,n.default)(A,y+"-group-with-append",this.append||this.search&&this.enterButton),(0,n.default)(A,y+"-hide-icon",this.append),(0,n.default)(A,y+"-with-search",this.search&&this.enterButton),(0,n.default)(A,y+"-wrapper-disabled",this.itemDisabled),A)]},inputClasses:function(){var A;return[""+y,(A={},(0,n.default)(A,y+"-"+String(this.size),!!this.size),(0,n.default)(A,y+"-disabled",this.itemDisabled),(0,n.default)(A,y+"-no-border",!this.border),(0,n.default)(A,y+"-with-prefix",this.showPrefix),(0,n.default)(A,y+"-with-suffix",this.showSuffix||this.search&&this.enterButton===!1),A)]},textareaClasses:function(){var A;return[""+y,(A={},(0,n.default)(A,y+"-disabled",this.itemDisabled),(0,n.default)(A,y+"-no-border",!this.border),A)]},upperLimit:function(){return this.maxlength},textLength:function(){return typeof this.value=="number"?String(this.value).length:(this.value||"").length},clearableStyles:function(){var A={},x=this.clearableIconOffset;return x&&(A.transform="translateX(-"+String(x)+"px)"),A}},methods:{handleEnter:function(A){this.$emit("on-enter",A),this.search&&this.$emit("on-search",this.currentValue)},handleKeydown:function(A){this.$emit("on-keydown",A)},handleKeypress:function(A){this.$emit("on-keypress",A)},handleKeyup:function(A){this.$emit("on-keyup",A)},handleIconClick:function(A){this.$emit("on-click",A)},handleFocus:function(A){this.$emit("on-focus",A)},handleBlur:function(A){this.$emit("on-blur",A),(0,t.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.currentValue)},handleComposition:function(A){A.type==="compositionstart"&&(this.isOnComposition=!0),A.type==="compositionend"&&(this.isOnComposition=!1,this.handleInput(A))},handleInput:function(A){if(!this.isOnComposition){var x=A.target.value;this.number&&x!==""&&(x=(0,e.default)(Number(x))?x:Number(x)),this.$emit("input",x),this.setCurrentValue(x),this.$emit("on-change",A)}},handleChange:function(A){this.$emit("on-input-change",A)},setCurrentValue:function(A){var x=this;A!==this.currentValue&&(this.$nextTick(function(){(0,i.default)(this,x),this.resizeTextarea()}.bind(this)),this.currentValue=A,(0,t.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-change",A))},resizeTextarea:function(){var A=this.autosize;if(!A||this.type!=="textarea")return!1;var x=A.minRows,E=A.maxRows;this.textareaStyles=(0,d.default)(this.$refs.textarea,x,E)},focus:function(A){var x=this.type==="textarea"?this.$refs.textarea:this.$refs.input;x.focus(A);var E=A||{},S=E.cursor;if(S){var C=x.value.length;switch(S){case"start":x.setSelectionRange(0,0);break;case"end":x.setSelectionRange(C,C);break;default:x.setSelectionRange(0,C)}}},blur:function(){this.type==="textarea"?this.$refs.textarea.blur():this.$refs.input.blur()},handleClear:function(){var A={target:{value:""}};this.$emit("input",""),this.setCurrentValue(""),this.$emit("on-change",A),this.$emit("on-clear")},handleSearch:function(){if(this.itemDisabled)return!1;this.$refs.input.focus(),this.$emit("on-search",this.currentValue)},handleToggleShowPassword:function(){var A=this;if(this.itemDisabled)return!1;this.showPassword=!this.showPassword,this.focus();var x=this.currentValue.length;setTimeout(function(){(0,i.default)(this,A),this.$refs.input.setSelectionRange(x,x)}.bind(this),0)},handleCalcIconOffset:function(){var A=this.$el.querySelectorAll(".ivu-input-group-append")[0];A?this.clearableIconOffset=A.offsetWidth:this.clearableIconOffset=0}},watch:{value:function(A){this.setCurrentValue(A)},type:function(){this.$nextTick(this.handleCalcIconOffset)}},mounted:function(){this.slotReady=!0,this.resizeTextarea(),this.handleCalcIconOffset()},updated:function(){this.$nextTick(this.handleCalcIconOffset)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(126),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(342);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=n(s),f=r(19),e=n(f),l=r(3);function n(d){return d&&d.__esModule?d:{default:d}}var t="ivu-avatar",o=["small","large","default"];h.default={name:"Avatar",components:{Icon:e.default},props:{shape:{validator:function(u){return(0,l.oneOf)(u,["circle","square"])},default:"circle"},size:{type:[String,Number],default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},src:{type:String},icon:{type:String},customIcon:{type:String,default:""}},data:function(){return{prefixCls:t,scale:1,childrenWidth:0,isSlotShow:!1,slotTemp:null}},computed:{classes:function(){var u;return[""+t,t+"-"+String(this.shape),(u={},(0,i.default)(u,t+"-image",!!this.src),(0,i.default)(u,t+"-icon",!!this.icon||!!this.customIcon),(0,i.default)(u,t+"-"+String(this.size),(0,l.oneOf)(this.size,o)),u)]},styles:function(){var u={};return this.size&&!(0,l.oneOf)(this.size,o)&&(u.width=String(this.size)+"px",u.height=String(this.size)+"px",u.lineHeight=String(this.size)+"px",u.fontSize=this.size/2+"px"),u},childrenStyle:function(){var u={};return this.isSlotShow&&(u={msTransform:"scale("+String(this.scale)+")",WebkitTransform:"scale("+String(this.scale)+")",transform:"scale("+String(this.scale)+")",position:"absolute",display:"inline-block",left:"calc(50% - "+String(Math.round(this.childrenWidth/2))+"px)"}),u}},watch:{size:function(u,c){u!==c&&this.setScale()}},methods:{setScale:function(){if(this.isSlotShow=!this.src&&!this.icon,this.$refs.children){this.childrenWidth=this.$refs.children.offsetWidth;var u=this.$el.getBoundingClientRect().width;u-8<this.childrenWidth?this.scale=(u-8)/this.childrenWidth:this.scale=1}},handleError:function(u){this.$emit("on-error",u)}},beforeCreate:function(){this.slotTemp=this.$slots.default},mounted:function(){this.setScale()},updated:function(){this.$slots.default!==this.slotTemp&&(this.slotTemp=this.$slots.default,this.setScale())}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=l(s),f=r(3),e=r(12);function l(t){return t&&t.__esModule?t:{default:t}}var n="ivu-back-top";h.default={props:{height:{type:Number,default:400},bottom:{type:Number,default:30},right:{type:Number,default:30},duration:{type:Number,default:1e3}},data:function(){return{backTop:!1}},mounted:function(){(0,e.on)(window,"scroll",this.handleScroll),(0,e.on)(window,"resize",this.handleScroll)},beforeDestroy:function(){(0,e.off)(window,"scroll",this.handleScroll),(0,e.off)(window,"resize",this.handleScroll)},computed:{classes:function(){return[""+n,(0,i.default)({},n+"-show",this.backTop)]},styles:function(){return{bottom:String(this.bottom)+"px",right:String(this.right)+"px"}},innerClasses:function(){return n+"-inner"}},methods:{handleScroll:function(){this.backTop=window.pageYOffset>=this.height},back:function(){var o=document.documentElement.scrollTop||document.body.scrollTop;(0,f.scrollTop)(window,o,0,this.duration),this.$emit("on-click")}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=e(s),f=r(3);function e(t){return t&&t.__esModule?t:{default:t}}var l=["blue","green","red","yellow","pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"],n="ivu-badge";h.default={name:"Badge",props:{count:Number,dot:{type:Boolean,default:!1},overflowCount:{type:[Number,String],default:99},className:String,showZero:{type:Boolean,default:!1},text:{type:String,default:""},status:{validator:function(o){return(0,f.oneOf)(o,["success","processing","default","error","warning"])}},type:{validator:function(o){return(0,f.oneOf)(o,["success","primary","normal","error","warning","info"])}},offset:{type:Array},color:{type:String}},computed:{classes:function(){return""+n},dotClasses:function(){return n+"-dot"},countClasses:function(){var o;return[n+"-count",(o={},(0,i.default)(o,""+String(this.className),!!this.className),(0,i.default)(o,n+"-count-alone",this.alone),(0,i.default)(o,n+"-count-"+String(this.type),!!this.type),o)]},customCountClasses:function(){return[n+"-count",n+"-count-custom",(0,i.default)({},""+String(this.className),!!this.className)]},statusClasses:function(){var o;return[n+"-status-dot",(o={},(0,i.default)(o,n+"-status-"+String(this.status),!!this.status),(0,i.default)(o,n+"-status-"+String(this.color),!!this.color&&(0,f.oneOf)(this.color,l)),o)]},statusStyles:function(){return(0,f.oneOf)(this.color,l)?{}:{backgroundColor:this.color}},styles:function(){var o={};return this.offset&&this.offset.length===2&&(o["margin-top"]=String(this.offset[0])+"px",o["margin-right"]=String(this.offset[1])+"px"),o},finalCount:function(){return this.text!==""?this.text:parseInt(this.count)>=parseInt(this.overflowCount)?String(this.overflowCount)+"+":this.count},badge:function(){var o=!1;return this.count&&(o=parseInt(this.count)!==0),this.dot&&(o=!0,this.count!==null&&parseInt(this.count)===0&&(o=!1)),this.text!==""&&(o=!0),o||this.showZero},hasCount:function(){return!!(this.count||this.text!==""||this.showZero&&parseInt(this.count)===0)},alone:function(){return this.$slots.default===void 0}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-breadcrumb";h.default={name:"Breadcrumb",props:{separator:{type:String,default:"/"}},computed:{classes:function(){return""+e}},mounted:function(){this.updateChildren()},updated:function(){var n=this;this.$nextTick(function(){(0,i.default)(this,n),this.updateChildren()}.bind(this))},methods:{updateChildren:function(){var n=this;this.$children.forEach(function(t){(0,i.default)(this,n),t.separator=this.separator}.bind(this))}},watch:{separator:function(){this.updateChildren()}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(48),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-breadcrumb-item";h.default={name:"BreadcrumbItem",mixins:[i.default],props:{},data:function(){return{separator:"",showSeparator:!1}},computed:{linkClasses:function(){return e+"-link"},separatorClasses:function(){return e+"-separator"}},mounted:function(){this.showSeparator=this.$slots.separator!==void 0}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=u(s),f=r(19),e=u(f),l=r(3),n=r(48),t=u(n),o=r(11),d=u(o);function u(g){return g&&g.__esModule?g:{default:g}}var c="ivu-btn";h.default={name:"Button",mixins:[t.default,d.default],components:{Icon:e.default},props:{type:{validator:function(p){return(0,l.oneOf)(p,["default","primary","dashed","text","info","success","warning","error"])},default:"default"},shape:{validator:function(p){return(0,l.oneOf)(p,["circle","circle-outline"])}},size:{validator:function(p){return(0,l.oneOf)(p,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},loading:Boolean,disabled:Boolean,htmlType:{default:"button",validator:function(p){return(0,l.oneOf)(p,["button","submit","reset"])}},icon:{type:String,default:""},customIcon:{type:String,default:""},long:{type:Boolean,default:!1},ghost:{type:Boolean,default:!1}},computed:{showSlot:function(){return!!this.$slots.default},classes:function(){var p;return[""+c,c+"-"+String(this.type),(p={},(0,i.default)(p,c+"-long",this.long),(0,i.default)(p,c+"-"+String(this.shape),!!this.shape),(0,i.default)(p,c+"-"+String(this.size),this.size!=="default"),(0,i.default)(p,c+"-loading",this.loading!=null&&this.loading),(0,i.default)(p,c+"-icon-only",!this.showSlot&&(!!this.icon||!!this.customIcon||this.loading)),(0,i.default)(p,c+"-ghost",this.ghost),p)]},isHrefPattern:function(){var p=this.to;return!!p},tagName:function(){var p=this.isHrefPattern;return p?"a":"button"},tagProps:function(){var p=this.isHrefPattern;if(p){var v=this.linkUrl,y=this.target;return{href:v,target:y}}else{var b=this.htmlType;return{type:b}}}},methods:{handleClickLink:function(p){this.$emit("click",p);var v=p.ctrlKey||p.metaKey;this.handleCheckClick(p,v)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=e(s),f=r(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-btn-group";h.default={name:"ButtonGroup",props:{size:{validator:function(t){return(0,f.oneOf)(t,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},shape:{validator:function(t){return(0,f.oneOf)(t,["circle","circle-outline"])}},vertical:{type:Boolean,default:!1}},computed:{classes:function(){var t;return[""+l,(t={},(0,i.default)(t,l+"-"+String(this.size),!!this.size),(0,i.default)(t,l+"-"+String(this.shape),!!this.shape),(0,i.default)(t,l+"-vertical",this.vertical),t)]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=t(s),f=r(8),e=t(f),l=r(48),n=t(l);function t(u){return u&&u.__esModule?u:{default:u}}var o="ivu-card",d=16;h.default={name:"Card",mixins:[n.default],components:{Icon:e.default},props:{bordered:{type:Boolean,default:!0},disHover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},padding:{type:Number,default:d},title:{type:String},icon:{type:String}},data:function(){return{showHead:!0,showExtra:!0}},computed:{classes:function(){var c;return[""+o,(c={},(0,i.default)(c,o+"-bordered",this.bordered&&!this.shadow),(0,i.default)(c,o+"-dis-hover",this.disHover||this.shadow),(0,i.default)(c,o+"-shadow",this.shadow),c)]},headClasses:function(){return o+"-head"},extraClasses:function(){return o+"-extra"},bodyClasses:function(){return o+"-body"},bodyStyles:function(){return this.padding!==d?{padding:String(this.padding)+"px"}:""},isHrefPattern:function(){var c=this.to;return!!c},tagName:function(){var c=this.isHrefPattern;return c?"a":"div"},tagProps:function(){var c=this.isHrefPattern;if(c){var g=this.linkUrl,p=this.target;return{href:g,target:p}}else return{}}},methods:{handleClickLink:function(c){if(this.isHrefPattern){var g=c.ctrlKey||c.metaKey;this.handleCheckClick(c,g)}}},mounted:function(){this.showHead=this.title||this.$slots.title!==void 0,this.showExtra=this.$slots.extra!==void 0}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=t(s),f=r(8),e=t(f),l=r(3),n=r(12);function t(d){return d&&d.__esModule?d:{default:d}}var o="ivu-carousel";h.default={name:"Carousel",components:{Icon:e.default},props:{arrow:{type:String,default:"hover",validator:function(u){return(0,l.oneOf)(u,["hover","always","never"])}},autoplay:{type:Boolean,default:!1},autoplaySpeed:{type:Number,default:2e3},loop:{type:Boolean,default:!1},easing:{type:String,default:"ease"},dots:{type:String,default:"inside",validator:function(u){return(0,l.oneOf)(u,["inside","outside","none"])}},radiusDot:{type:Boolean,default:!1},trigger:{type:String,default:"click",validator:function(u){return(0,l.oneOf)(u,["click","hover"])}},value:{type:Number,default:0},height:{type:[String,Number],default:"auto",validator:function(u){return u==="auto"||Object.prototype.toString.call(u)==="[object Number]"}}},data:function(){return{prefixCls:o,listWidth:0,trackWidth:0,trackOffset:0,trackCopyOffset:0,showCopyTrack:!1,slides:[],slideInstances:[],timer:null,ready:!1,currentIndex:this.value,trackIndex:this.value,copyTrackIndex:this.value,hideTrackPos:-1}},computed:{classes:function(){return[""+o]},trackStyles:function(){var u=this.trackIndex===-1?"hidden":"visible";return{width:String(this.trackWidth)+"px",transform:"translate3d("+-this.trackOffset+"px, 0px, 0px)",transition:"transform 500ms "+String(this.easing),visibility:u}},copyTrackStyles:function(){return{width:String(this.trackWidth)+"px",transform:"translate3d("+-this.trackCopyOffset+"px, 0px, 0px)",transition:"transform 500ms "+String(this.easing),position:"absolute"}},arrowClasses:function(){return[o+"-arrow",o+"-arrow-"+String(this.arrow)]},dotsClasses:function(){return[o+"-dots",o+"-dots-"+String(this.dots)]}},methods:{findChild:function(u){var c=this,g=function p(v){var y=this,b=v.$options.componentName;b?u(v):v.$children.length&&v.$children.forEach(function(A){(0,i.default)(this,y),p(A)}.bind(this))};this.slideInstances.length||!this.$children?this.slideInstances.forEach(function(p){(0,i.default)(this,c),g(p)}.bind(this)):this.$children.forEach(function(p){(0,i.default)(this,c),g(p)}.bind(this))},initCopyTrackDom:function(){var u=this;this.$nextTick(function(){(0,i.default)(this,u),this.$refs.copyTrack.innerHTML=this.$refs.originTrack.innerHTML}.bind(this))},updateSlides:function(u){var c=this,g=[],p=1;this.findChild(function(v){(0,i.default)(this,c),g.push({$el:v.$el}),v.index=p++,u&&this.slideInstances.push(v)}.bind(this)),this.slides=g,this.updatePos()},updatePos:function(){var u=this;this.findChild(function(c){(0,i.default)(this,u),c.width=this.listWidth,c.height=typeof this.height=="number"?String(this.height)+"px":this.height}.bind(this)),this.trackWidth=(this.slides.length||0)*this.listWidth},slotChange:function(){var u=this;this.$nextTick(function(){(0,i.default)(this,u),this.slides=[],this.slideInstances=[],this.updateSlides(!0,!0),this.updatePos(),this.updateOffset()}.bind(this))},handleResize:function(){this.listWidth=parseInt((0,l.getStyle)(this.$el,"width")),this.updatePos(),this.updateOffset()},updateTrackPos:function(u){this.showCopyTrack?this.trackIndex=u:this.copyTrackIndex=u},updateTrackIndex:function(u){this.showCopyTrack?this.copyTrackIndex=u:this.trackIndex=u,this.currentIndex=u},add:function(u){var c=this.slides.length;this.loop&&(u>0?this.hideTrackPos=-1:this.hideTrackPos=c,this.updateTrackPos(this.hideTrackPos));for(var g=this.showCopyTrack?this.copyTrackIndex:this.trackIndex,p=g+u;p<0;)p+=c;(u>0&&p===c||u<0&&p===c-1)&&this.loop?(this.showCopyTrack=!this.showCopyTrack,this.trackIndex+=u,this.copyTrackIndex+=u):(this.loop||(p=p%this.slides.length),this.updateTrackIndex(p)),this.currentIndex=p===this.slides.length?0:p,this.$emit("on-change",g,this.currentIndex),this.$emit("input",this.currentIndex)},arrowEvent:function(u){this.setAutoplay(),this.add(u)},dotsEvent:function(u,c){var g=this.showCopyTrack?this.copyTrackIndex:this.trackIndex,p=this.currentIndex;u===this.trigger&&g!==c&&(this.updateTrackIndex(c),this.$emit("on-change",p,this.currentIndex),this.$emit("input",c),this.setAutoplay())},setAutoplay:function(){var u=this;window.clearInterval(this.timer),this.autoplay&&(this.timer=window.setInterval(function(){(0,i.default)(this,u),this.add(1)}.bind(this),this.autoplaySpeed))},updateOffset:function(){var u=this;this.$nextTick(function(){(0,i.default)(this,u);var c=this.copyTrackIndex>0?-1:1;this.trackOffset=this.trackIndex*this.listWidth,this.trackCopyOffset=this.copyTrackIndex*this.listWidth+c}.bind(this))},handleClick:function(u){this.$emit("on-click",this[u])}},watch:{autoplay:function(){this.setAutoplay()},autoplaySpeed:function(){this.setAutoplay()},trackIndex:function(){this.updateOffset()},copyTrackIndex:function(){this.updateOffset()},height:function(){this.updatePos()},value:function(u){this.updateTrackIndex(u),this.setAutoplay()}},mounted:function(){this.updateSlides(!0),this.handleResize(),this.setAutoplay(),(0,n.on)(window,"resize",this.handleResize)},beforeDestroy:function(){(0,n.off)(window,"resize",this.handleResize)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-carousel-item";h.default={componentName:"carousel-item",name:"CarouselItem",data:function(){return{prefixCls:e,width:0,height:"auto",left:0}},computed:{styles:function(){return{width:String(this.width)+"px",height:""+String(this.height),left:String(this.left)+"px"}}},mounted:function(){this.$parent.slotChange()},watch:{width:function(n){var t=this;n&&this.$parent.loop&&this.$nextTick(function(){(0,i.default)(this,t),this.$parent.initCopyTrackDom()}.bind(this))},height:function(n){var t=this;n&&this.$parent.loop&&this.$nextTick(function(){(0,i.default)(this,t),this.$parent.initCopyTrackDom()}.bind(this))}},beforeDestroy:function(){this.$parent.slotChange()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(15),i=q(s),f=r(57),e=q(f),l=r(1),n=q(l),t=r(2),o=q(t),d=r(38),u=q(d),c=r(36),g=q(c),p=r(8),v=q(p),y=r(368),b=q(y),A=r(82),x=q(A),E=r(23),S=q(E),C=r(3),T=r(4),k=q(T),M=r(6),P=q(M),N=r(11),F=q(N);function q(R){return R&&R.__esModule?R:{default:R}}var z="ivu-cascader",O="ivu-select";h.default={name:"Cascader",mixins:[k.default,P.default,F.default],components:{iInput:u.default,Drop:g.default,Icon:v.default,Caspanel:b.default},directives:{clickOutside:x.default,TransferDom:S.default},props:{data:{type:Array,default:function(){return[]}},value:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},placeholder:{type:String},size:{validator:function(I){return(0,C.oneOf)(I,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},trigger:{validator:function(I){return(0,C.oneOf)(I,["click","hover"])},default:"click"},changeOnSelect:{type:Boolean,default:!1},renderFormat:{type:Function,default:function(I){return I.join(" / ")}},loadData:{type:Function},filterable:{type:Boolean,default:!1},notFoundText:{type:String},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String},elementId:{type:String},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:z,selectPrefixCls:O,visible:!1,selected:[],tmpSelected:[],updatingValue:!1,currentValue:this.value||[],query:"",validDataStr:"",isLoadedChildren:!1,isValueNull:!1}},computed:{classes:function(){var I;return[""+z,(I={},(0,o.default)(I,z+"-show-clear",this.showCloseIcon),(0,o.default)(I,z+"-size-"+String(this.size),!!this.size),(0,o.default)(I,z+"-visible",this.visible),(0,o.default)(I,z+"-disabled",this.itemDisabled),(0,o.default)(I,z+"-not-found",this.filterable&&this.query!==""&&!this.querySelections.length),I)]},showCloseIcon:function(){return this.currentValue&&this.currentValue.length&&this.clearable&&!this.itemDisabled},displayRender:function(){for(var I=[],D=0;D<this.selected.length;D++)I.push(this.selected[D].label);return this.renderFormat(I,this.selected)},displayInputRender:function(){return this.filterable?"":this.displayRender},localePlaceholder:function(){return this.placeholder===void 0?this.t("i.select.placeholder"):this.placeholder},inputPlaceholder:function(){return this.filterable&&this.currentValue.length?null:this.localePlaceholder},localeNotFoundText:function(){return this.notFoundText===void 0?this.t("i.select.noMatch"):this.notFoundText},querySelections:function(){var I=this,D=[];function B(j,Q,X){for(var Z=0;Z<j.length;Z++){var L=j[Z];L.__label=Q?Q+" / "+L.label:L.label,L.__value=X?X+","+L.value:L.value,L.children&&L.children.length?(B(L.children,L.__label,L.__value),delete L.__label,delete L.__value):D.push({label:L.__label,value:L.__value,display:L.__label,item:L,disabled:!!L.disabled})}}return B(this.data),D=D.filter(function(j){return(0,n.default)(this,I),j.label?j.label.indexOf(this.query)>-1:!1}.bind(this)).map(function(j){return(0,n.default)(this,I),j.display=j.display.replace(new RegExp(this.query,"g"),"<span>"+String(this.query)+"</span>"),j}.bind(this)),D},arrowType:function(){var I="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.cascader.customArrow?I="":this.$IVIEW.cascader.arrow&&(I=this.$IVIEW.cascader.arrow)),I},customArrowType:function(){var I="";return this.$IVIEW&&this.$IVIEW.cascader.customArrow&&(I=this.$IVIEW.cascader.customArrow),I},arrowSize:function(){var I="";return this.$IVIEW&&this.$IVIEW.cascader.arrowSize&&(I=this.$IVIEW.cascader.arrowSize),I},dropdownCls:function(){var I;return I={},(0,o.default)(I,z+"-transfer",this.transfer),(0,o.default)(I,this.transferClassName,this.transferClassName),I}},methods:{clearSelect:function(){if(this.itemDisabled)return!1;var I=(0,e.default)(this.currentValue);this.currentValue=this.selected=this.tmpSelected=[],this.handleClose(),this.emitValue(this.currentValue,I),this.broadcast("Caspanel","on-clear")},handleClose:function(){this.visible=!1},toggleOpen:function(){if(this.itemDisabled)return!1;this.visible?this.filterable||this.handleClose():this.onFocus()},onFocus:function(){this.visible=!0,this.currentValue.length||this.broadcast("Caspanel","on-clear")},updateResult:function(I){this.tmpSelected=I},updateSelected:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(!this.changeOnSelect||I||D)&&this.broadcast("Caspanel","on-find-selected",{value:this.currentValue})},emitValue:function(I,D){var B=this;(0,e.default)(I)!==D&&(this.$emit("on-change",this.currentValue,JSON.parse((0,e.default)(this.selected))),this.$nextTick(function(){(0,n.default)(this,B),this.dispatch("FormItem","on-form-change",{value:this.currentValue,selected:JSON.parse((0,e.default)(this.selected))})}.bind(this)))},handleInput:function(I){this.query=I.target.value},handleSelectItem:function(I){var D=this,B=this.querySelections[I];if(B.item.disabled)return!1;this.query="",this.$refs.input.currentValue="";var j=(0,e.default)(this.currentValue);this.currentValue=B.value.split(","),setTimeout(function(){(0,n.default)(this,D),this.emitValue(this.currentValue,j),this.handleClose()}.bind(this),0)},handleFocus:function(){this.$refs.input.focus()},getValidData:function(I){var D=this;function B(j){var Q=this,X=(0,i.default)({},j);return"loading"in X&&delete X.loading,"__value"in X&&delete X.__value,"__label"in X&&delete X.__label,"children"in X&&X.children.length&&(X.children=X.children.map(function(Z){return(0,n.default)(this,Q),B(Z)}.bind(this))),X}return I.map(function(j){return(0,n.default)(this,D),B(j)}.bind(this))}},created:function(){var I=this;this.validDataStr=(0,e.default)(this.getValidData(this.data)),this.$on("on-result-change",function(D){(0,n.default)(this,I);var B=D.lastValue,j=D.changeOnSelect,Q=D.fromInit;if(B||j){var X=(0,e.default)(this.currentValue);this.selected=this.tmpSelected;var Z=[];this.selected.forEach(function(L){(0,n.default)(this,I),Z.push(L.value)}.bind(this)),Q||(this.updatingValue=!0,this.currentValue=Z,this.emitValue(this.currentValue,X))}B&&!Q&&this.handleClose()}.bind(this))},mounted:function(){this.updateSelected(!0)},watch:{visible:function(I){I?(this.currentValue.length&&this.updateSelected(),this.transfer&&this.$refs.drop.update(),this.broadcast("Drop","on-update-popper")):(this.filterable&&(this.query="",this.$refs.input.currentValue=""),this.transfer&&this.$refs.drop.destroy(),this.broadcast("Drop","on-destroy-popper")),this.$emit("on-visible-change",I)},value:function(I){I===null&&(this.isValueNull=!0),this.currentValue=I||[],(I===null||!I.length)&&(this.selected=[])},currentValue:function(){if(this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",this.currentValue),this.updatingValue){this.updatingValue=!1;return}this.updateSelected(!0)},data:{deep:!0,handler:function(){var I=this,D=(0,e.default)(this.getValidData(this.data));D!==this.validDataStr&&(this.validDataStr=D,this.isLoadedChildren||this.$nextTick(function(){return(0,n.default)(this,I),this.updateSelected(!1,this.changeOnSelect)}.bind(this)),this.isLoadedChildren=!1)}}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(17),i=g(s),f=r(15),e=g(f),l=r(1),n=g(l),t=r(369),o=g(t),d=r(4),u=g(d),c=r(3);function g(v){return v&&v.__esModule?v:{default:v}}var p=1;h.default={name:"Caspanel",mixins:[u.default],components:{Casitem:o.default},props:{data:{type:Array,default:function(){return[]}},disabled:Boolean,changeOnSelect:Boolean,trigger:String,prefixCls:String},data:function(){return{tmpItem:{},result:[],sublist:[]}},watch:{data:function(){this.sublist=[]}},methods:{handleClickItem:function(y){this.trigger!=="click"&&y.children&&y.children.length||this.handleTriggerItem(y,!1,!0)},handleHoverItem:function(y){this.trigger!=="hover"||!y.children||!y.children.length||this.handleTriggerItem(y,!1,!0)},handleTriggerItem:function(y){var b=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!y.disabled){var E=(0,c.findComponentUpward)(this,"Cascader");if(y.loading!==void 0&&!y.children.length&&E&&E.loadData){E.loadData(y,function(){(0,n.default)(this,b),x&&(E.isLoadedChildren=!0),y.children.length&&this.handleTriggerItem(y)}.bind(this));return}var S=this.getBaseItem(y);if((this.changeOnSelect||S.label!==this.tmpItem.label||S.value!==this.tmpItem.value||S.label===this.tmpItem.label&&S.value===this.tmpItem.value)&&(this.tmpItem=S,this.emitUpdate([S])),y.children&&y.children.length){if(this.sublist=y.children,this.dispatch("Cascader","on-result-change",{lastValue:!1,changeOnSelect:this.changeOnSelect,fromInit:A}),this.changeOnSelect){var C=(0,c.findComponentDownward)(this,"Caspanel");C&&C.$emit("on-clear",!0)}}else this.sublist=[],this.dispatch("Cascader","on-result-change",{lastValue:!0,changeOnSelect:this.changeOnSelect,fromInit:A});E&&E.$refs.drop.update()}},updateResult:function(y){this.result=[this.tmpItem].concat(y),this.emitUpdate(this.result)},getBaseItem:function(y){var b=(0,e.default)({},y);return b.children&&delete b.children,b},emitUpdate:function(y){this.$parent.$options.name==="Caspanel"?this.$parent.updateResult(y):this.$parent.$parent.updateResult(y)},getKey:function(){return p++}},mounted:function(){var y=this;this.$on("on-find-selected",function(b){(0,n.default)(this,y);for(var A=b.value,x=[].concat((0,i.default)(A)),E=0;E<x.length;E++)for(var S=0;S<this.data.length;S++)if(x[E]===this.data[S].value)return this.handleTriggerItem(this.data[S],!0),x.splice(0,1),this.$nextTick(function(){(0,n.default)(this,y),this.broadcast("Caspanel","on-find-selected",{value:x})}.bind(this)),!1}.bind(this)),this.$on("on-clear",function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if((0,n.default)(this,y),this.sublist=[],this.tmpItem={},b){var A=(0,c.findComponentDownward)(this,"Caspanel");A&&A.$emit("on-clear",!0)}}.bind(this))}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=l(s),f=r(8),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}h.default={name:"Casitem",components:{Icon:e.default},props:{data:Object,prefixCls:String,tmpItem:Object},computed:{classes:function(){var t;return[String(this.prefixCls)+"-menu-item",(t={},(0,i.default)(t,String(this.prefixCls)+"-menu-item-active",this.tmpItem.value===this.data.value),(0,i.default)(t,String(this.prefixCls)+"-menu-item-disabled",this.data.disabled),t)]},showArrow:function(){return this.data.children&&this.data.children.length||"loading"in this.data&&!this.data.loading},showLoading:function(){return"loading"in this.data&&this.data.loading},arrowType:function(){var t="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.cascader.customItemArrow?t="":this.$IVIEW.cascader.itemArrow&&(t=this.$IVIEW.cascader.itemArrow)),t},customArrowType:function(){var t="";return this.$IVIEW&&this.$IVIEW.cascader.customItemArrow&&(t=this.$IVIEW.cascader.customItemArrow),t},arrowSize:function(){var t="";return this.$IVIEW&&this.$IVIEW.cascader.itemArrowSize&&(t=this.$IVIEW.cascader.itemArrowSize),t}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=d(s),f=r(375),e=d(f),l=r(8),n=d(l),t=r(48),o=d(t);function d(c){return c&&c.__esModule?c:{default:c}}var u="ivu-cell";h.default={name:"Cell",inject:["cellGroup"],mixins:[o.default],components:{CellItem:e.default,Icon:n.default},props:{name:{type:[String,Number]},title:{type:String,default:""},label:{type:String,default:""},extra:{type:String,default:""},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1}},data:function(){return{prefixCls:u}},computed:{classes:function(){var g;return[""+u,(g={},(0,i.default)(g,u+"-disabled",this.disabled),(0,i.default)(g,u+"-selected",this.selected),(0,i.default)(g,u+"-with-link",this.to),g)]},arrowType:function(){var g="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.cell.customArrow?g="":this.$IVIEW.cell.arrow&&(g=this.$IVIEW.cell.arrow)),g},customArrowType:function(){var g="";return this.$IVIEW&&this.$IVIEW.cell.customArrow&&(g=this.$IVIEW.cell.customArrow),g},arrowSize:function(){var g="";return this.$IVIEW&&this.$IVIEW.cell.arrowSize&&(g=this.$IVIEW.cell.arrowSize),g}},methods:{handleClickItem:function(g,p){this.cellGroup.handleClick(this.name),this.handleCheckClick(g,p)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={props:{title:{type:String,default:""},label:{type:String,default:""},extra:{type:String,default:""}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={name:"CellGroup",provide:function(){return{cellGroup:this}},methods:{handleClick:function(i){this.$emit("on-click",i)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=o(s),f=r(3),e=r(4),l=o(e),n=r(11),t=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var d="ivu-checkbox";h.default={name:"Checkbox",mixins:[l.default,t.default],props:{disabled:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!1},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},label:{type:[String,Number,Boolean]},indeterminate:{type:Boolean,default:!1},size:{validator:function(c){return(0,f.oneOf)(c,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},name:{type:String},border:{type:Boolean,default:!1}},data:function(){return{model:[],currentValue:this.value,group:!1,showSlot:!0,parent:(0,f.findComponentUpward)(this,"CheckboxGroup"),focusInner:!1}},computed:{wrapClasses:function(){var c;return[d+"-wrapper",(c={},(0,i.default)(c,d+"-group-item",this.group),(0,i.default)(c,d+"-wrapper-checked",this.currentValue),(0,i.default)(c,d+"-wrapper-disabled",this.itemDisabled),(0,i.default)(c,d+"-"+String(this.size),!!this.size),(0,i.default)(c,d+"-border",this.border),c)]},checkboxClasses:function(){var c;return[""+d,(c={},(0,i.default)(c,d+"-checked",this.currentValue),(0,i.default)(c,d+"-disabled",this.itemDisabled),(0,i.default)(c,d+"-indeterminate",this.indeterminate),c)]},innerClasses:function(){return[d+"-inner",(0,i.default)({},d+"-focus",this.focusInner)]},inputClasses:function(){return d+"-input"}},mounted:function(){this.parent=(0,f.findComponentUpward)(this,"CheckboxGroup"),this.parent&&(this.group=!0),this.group?this.parent.updateModel(!0):(this.updateModel(),this.showSlot=this.$slots.default!==void 0)},methods:{change:function(c){if(this.itemDisabled)return!1;var g=c.target.checked;this.currentValue=g;var p=g?this.trueValue:this.falseValue;this.$emit("input",p),this.group?this.parent.change(this.model):(this.$emit("on-change",p),this.dispatch("FormItem","on-form-change",p))},updateModel:function(){this.currentValue=this.value===this.trueValue},onBlur:function(){this.focusInner=!1},onFocus:function(){this.focusInner=!0}},watch:{value:function(c){if(c===this.trueValue||c===this.falseValue)this.updateModel();else throw"Value should be trueValue or falseValue."}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(144),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(382);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=o(s),f=r(2),e=o(f),l=r(3),n=r(4),t=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var d="ivu-checkbox-group";h.default={name:"CheckboxGroup",mixins:[t.default],props:{value:{type:Array,default:function(){return[]}},size:{validator:function(c){return(0,l.oneOf)(c,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}}},data:function(){return{currentValue:this.value||[],children:[]}},computed:{classes:function(){return[""+d,(0,e.default)({},"ivu-checkbox-"+String(this.size),!!this.size)]}},mounted:function(){this.updateModel(!0)},methods:{updateModel:function(c){var g=this;if(this.children=(0,l.findComponentsDownward)(this,"Checkbox"),this.children){var p=this.value||[];this.children.forEach(function(v){(0,i.default)(this,g),v.model=p,c&&(v.currentValue=p.indexOf(v.label)>=0,v.group=!0)}.bind(this))}},change:function(c){this.currentValue=c,this.$emit("input",c),this.$emit("on-change",c),this.dispatch("FormItem","on-form-change",c)}},watch:{value:function(){this.updateModel(!0)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(3),i=r(385),f=e(i);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-chart-circle";h.default={name:"iCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120},strokeWidth:{type:Number,default:6},strokeColor:{type:[String,Array],default:"#2d8cf0"},strokeLinecap:{validator:function(t){return(0,s.oneOf)(t,["square","round"])},default:"round"},trailWidth:{type:Number,default:5},trailColor:{type:String,default:"#eaeef2"},dashboard:{type:Boolean,default:!1}},data:function(){return{id:"ivu-chart-circle-"+String((0,f.default)(3))}},computed:{circleSize:function(){return{width:String(this.size)+"px",height:String(this.size)+"px"}},computedStrokeWidth:function(){return this.percent===0&&this.dashboard?0:this.strokeWidth},radius:function(){return 50-this.strokeWidth/2},pathString:function(){return this.dashboard?"M 50,50 m 0,"+String(this.radius)+` + a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,-"+2*this.radius+` + a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,"+2*this.radius:"M 50,50 m 0,-"+String(this.radius)+` + a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,"+2*this.radius+` + a `+String(this.radius)+","+String(this.radius)+" 0 1 1 0,-"+2*this.radius},len:function(){return Math.PI*2*this.radius},trailStyle:function(){var t={};return this.dashboard&&(t={"stroke-dasharray":this.len-75+"px "+String(this.len)+"px","stroke-dashoffset":"-"+75/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"}),t},pathStyle:function(){var t={};return this.dashboard?t={"stroke-dasharray":this.percent/100*(this.len-75)+"px "+String(this.len)+"px","stroke-dashoffset":"-"+75/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .6s ease 0s, stroke .6s, stroke-width .06s ease .6s"}:t={"stroke-dasharray":String(this.len)+"px "+String(this.len)+"px","stroke-dashoffset":(100-this.percent)/100*this.len+"px",transition:"stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease"},t},wrapClasses:function(){return""+l},innerClasses:function(){return l+"-inner"},strokeValue:function(){var t=this.strokeColor;return typeof this.strokeColor!="string"&&(t="url(#"+String(this.id)+")"),t},showDefs:function(){return typeof this.strokeColor!="string"}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(2),e=l(f);function l(t){return t&&t.__esModule?t:{default:t}}var n="ivu-collapse";h.default={name:"Collapse",props:{accordion:{type:Boolean,default:!1},value:{type:[Array,String]},simple:{type:Boolean,default:!1}},data:function(){return{currentValue:this.value}},computed:{classes:function(){return[""+n,(0,e.default)({},n+"-simple",this.simple)]}},mounted:function(){this.setActive()},methods:{setActive:function(){var o=this,d=this.getActiveKey();this.$children.forEach(function(u,c){(0,i.default)(this,o);var g=u.name||c.toString();u.isActive=d.indexOf(g)>-1,u.index=c}.bind(this))},getActiveKey:function(){var o=this.currentValue||[],d=this.accordion;Array.isArray(o)||(o=[o]),d&&o.length>1&&(o=[o[0]]);for(var u=0;u<o.length;u++)o[u]=o[u].toString();return o},toggle:function(o){var d=o.name.toString(),u=[];if(this.accordion)o.isActive||u.push(d);else{var c=this.getActiveKey(),g=c.indexOf(d);o.isActive?g>-1&&c.splice(g,1):g<0&&c.push(d),u=c}this.currentValue=u,this.$emit("input",u),this.$emit("on-change",u)}},watch:{value:function(o){this.currentValue=o},currentValue:function(){this.setActive()}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=t(s),f=r(8),e=t(f),l=r(83),n=t(l);function t(d){return d&&d.__esModule?d:{default:d}}var o="ivu-collapse";h.default={name:"Panel",components:{Icon:e.default,CollapseTransition:n.default},props:{name:{type:String},hideArrow:{type:Boolean,default:!1}},data:function(){return{index:0,isActive:!1,mounted:!1}},computed:{itemClasses:function(){return[o+"-item",(0,i.default)({},o+"-item-active",this.isActive)]},headerClasses:function(){return o+"-header"},contentClasses:function(){return o+"-content"},boxClasses:function(){return o+"-content-box"}},methods:{toggle:function(){this.$parent.toggle({name:this.name||this.index,isActive:this.isActive})}},mounted:function(){this.mounted=!0,this.$parent.setActive()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=B(s),f=r(149),e=B(f),l=r(76),n=r(23),t=B(n),o=r(36),d=B(o),u=r(394),c=B(u),g=r(396),p=B(g),v=r(398),y=B(v),b=r(400),A=B(b),x=r(38),E=B(x),S=r(28),C=B(S),T=r(8),k=B(T),M=r(6),P=B(M),N=r(3),F=r(4),q=B(F),z=r(11),O=B(z),R=r(50),I=B(R),D=r(39);function B(j){return j&&j.__esModule?j:{default:j}}h.default={name:"ColorPicker",components:{Drop:d.default,RecommendColors:c.default,Saturation:p.default,Hue:y.default,Alpha:A.default,iInput:E.default,iButton:C.default,Icon:k.default},directives:{clickOutside:l.directive,TransferDom:t.default},mixins:[q.default,P.default,I.default,O.default],props:{value:{type:String,default:void 0},hue:{type:Boolean,default:!0},alpha:{type:Boolean,default:!1},recommend:{type:Boolean,default:!1},format:{type:String,validator:function(Q){return(0,N.oneOf)(Q,["hsl","hsv","hex","rgb"])},default:void 0},colors:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},size:{validator:function(Q){return(0,N.oneOf)(Q,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},hideDropDown:{type:Boolean,default:!1},placement:{type:String,validator:function(Q){return(0,N.oneOf)(Q,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String,default:void 0},editable:{type:Boolean,default:!0},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{val:(0,D.changeColor)(this.value||""),currentValue:this.value||"",dragging:!1,visible:!1,recommendedColor:["#2d8cf0","#19be6b","#ff9900","#ed4014","#00b5ff","#19c919","#f9e31c","#ea1a1a","#9b1dea","#00c2b1","#ac7a33","#1d35ea","#8bc34a","#f16b62","#ea4ca3","#0d94aa","#febd79","#5d4037","#00bcd4","#f06292","#cddc39","#607d8b","#000000","#ffffff"]}},computed:{arrowClasses:function(){return[String(this.inputPrefixCls)+"-icon",String(this.inputPrefixCls)+"-icon-normal"]},transition:function(){return(0,N.oneOf)(this.placement,["bottom-start","bottom","bottom-end"])?"slide-up":"fade"},saturationColors:{get:function(){return this.val},set:function(Q){this.val=Q,this.$emit("on-active-change",this.formatColor)}},classes:function(){return[""+String(this.prefixCls),(0,i.default)({},String(this.prefixCls)+"-transfer",this.transfer)]},wrapClasses:function(){return[String(this.prefixCls)+"-rel",String(this.prefixCls)+"-"+String(this.size),String(this.inputPrefixCls)+"-wrapper",String(this.inputPrefixCls)+"-wrapper-"+String(this.size),(0,i.default)({},String(this.prefixCls)+"-disabled",this.itemDisabled)]},inputClasses:function(){var Q;return[String(this.prefixCls)+"-input",""+String(this.inputPrefixCls),String(this.inputPrefixCls)+"-"+String(this.size),(Q={},(0,i.default)(Q,String(this.prefixCls)+"-focused",this.visible),(0,i.default)(Q,String(this.prefixCls)+"-disabled",this.itemDisabled),Q)]},dropClasses:function(){var Q;return[String(this.transferPrefixCls)+"-no-max-height",(Q={},(0,i.default)(Q,String(this.prefixCls)+"-transfer",this.transfer),(0,i.default)(Q,String(this.prefixCls)+"-hide-drop",this.hideDropDown),(0,i.default)(Q,this.transferClassName,this.transferClassName),Q)]},displayedColorStyle:function(){return{backgroundColor:(0,D.toRGBAString)(this.visible?this.saturationColors.rgba:(0,e.default)(this.value).toRgb())}},formatColor:function(){var Q=this.format,X=this.saturationColors;if(Q){if(Q==="hsl")return(0,e.default)(X.hsl).toHslString();if(Q==="hsv")return(0,e.default)(X.hsv).toHsvString();if(Q==="hex")return X.hex;if(Q==="rgb")return(0,D.toRGBAString)(X.rgba)}else if(this.alpha)return(0,D.toRGBAString)(X.rgba);return X.hex},confirmColorClasses:function(){return[String(this.prefixCls)+"-confirm-color",(0,i.default)({},String(this.prefixCls)+"-confirm-color-editable",this.editable)]},arrowType:function(){var Q="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.colorPicker.customArrow?Q="":this.$IVIEW.colorPicker.arrow&&(Q=this.$IVIEW.colorPicker.arrow)),Q},customArrowType:function(){var Q="";return this.$IVIEW&&this.$IVIEW.colorPicker.customArrow&&(Q=this.$IVIEW.colorPicker.customArrow),Q},arrowSize:function(){var Q="";return this.$IVIEW&&this.$IVIEW.colorPicker.arrowSize&&(Q=this.$IVIEW.colorPicker.arrowSize),Q}},watch:{value:function(Q){this.val=(0,D.changeColor)(Q||"")},visible:function(Q){this.val=(0,D.changeColor)(this.value||""),this.$refs.drop[Q?"update":"destroy"](),this.$emit("on-open-change",!!Q)}},mounted:function(){this.$on("on-escape-keydown",this.closer),this.$on("on-dragging",this.setDragging)},methods:{setDragging:function(Q){this.dragging=Q},handleClose:function(Q){if(this.visible){if(this.dragging||Q.type==="mousedown"){this.$refs.editColorInput&&Q.target!==this.$refs.editColorInput.$el.querySelector("input")&&Q.preventDefault();return}if(this.transfer){var X=this.$refs.drop.$el;if(X===Q.target||X.contains(Q.target))return}this.closer(Q);return}this.visible=!1},toggleVisible:function(){this.itemDisabled||(this.visible=!this.visible,this.$refs.input.focus())},childChange:function(Q){this.colorChange(Q)},colorChange:function(Q,X){this.oldHue=this.saturationColors.hsl.h,this.saturationColors=(0,D.changeColor)(Q,X||this.oldHue)},closer:function(Q){Q&&(Q.preventDefault(),Q.stopPropagation()),this.visible=!1,this.$refs.input.focus()},handleButtons:function(Q,X){this.currentValue=X,this.$emit("input",X),this.$emit("on-change",X),this.dispatch("FormItem","on-form-change",X),this.closer(Q)},handleSuccess:function(Q){this.handleButtons(Q,this.formatColor),this.$emit("on-pick-success")},handleClear:function(Q){this.handleButtons(Q,""),this.$emit("on-pick-clear")},handleSelectColor:function(Q){this.val=(0,D.changeColor)(Q),this.$emit("on-active-change",this.formatColor)},handleEditColor:function(Q){var X=Q.target.value;this.handleSelectColor(X)},handleFirstTab:function(Q){Q.shiftKey&&(Q.preventDefault(),Q.stopPropagation(),this.$refs.ok.$el.focus())},handleLastTab:function(Q){Q.shiftKey||(Q.preventDefault(),Q.stopPropagation(),this.$refs.saturation.$el.focus())},onTab:function(Q){this.visible&&Q.preventDefault()},onEscape:function(Q){this.visible&&this.closer(Q)},onArrow:function(Q){this.visible||(Q.preventDefault(),Q.stopPropagation(),this.visible=!0)}}}},function(_,h,r){var s;(function(i){var f=/^\s+/,e=/\s+$/,l=0,n=i.round,t=i.min,o=i.max,d=i.random;function u(ne,re){if(ne=ne||"",re=re||{},ne instanceof u)return ne;if(!(this instanceof u))return new u(ne,re);var Y=c(ne);this._originalInput=ne,this._r=Y.r,this._g=Y.g,this._b=Y.b,this._a=Y.a,this._roundA=n(100*this._a)/100,this._format=re.format||Y.format,this._gradientType=re.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=Y.ok,this._tc_id=l++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ne=this.toRgb();return(ne.r*299+ne.g*587+ne.b*114)/1e3},getLuminance:function(){var ne=this.toRgb(),re,Y,V,oe,fe,ce;return re=ne.r/255,Y=ne.g/255,V=ne.b/255,re<=.03928?oe=re/12.92:oe=i.pow((re+.055)/1.055,2.4),Y<=.03928?fe=Y/12.92:fe=i.pow((Y+.055)/1.055,2.4),V<=.03928?ce=V/12.92:ce=i.pow((V+.055)/1.055,2.4),.2126*oe+.7152*fe+.0722*ce},setAlpha:function(ne){return this._a=Q(ne),this._roundA=n(100*this._a)/100,this},toHsv:function(){var ne=y(this._r,this._g,this._b);return{h:ne.h*360,s:ne.s,v:ne.v,a:this._a}},toHsvString:function(){var ne=y(this._r,this._g,this._b),re=n(ne.h*360),Y=n(ne.s*100),V=n(ne.v*100);return this._a==1?"hsv("+re+", "+Y+"%, "+V+"%)":"hsva("+re+", "+Y+"%, "+V+"%, "+this._roundA+")"},toHsl:function(){var ne=p(this._r,this._g,this._b);return{h:ne.h*360,s:ne.s,l:ne.l,a:this._a}},toHslString:function(){var ne=p(this._r,this._g,this._b),re=n(ne.h*360),Y=n(ne.s*100),V=n(ne.l*100);return this._a==1?"hsl("+re+", "+Y+"%, "+V+"%)":"hsla("+re+", "+Y+"%, "+V+"%, "+this._roundA+")"},toHex:function(ne){return A(this._r,this._g,this._b,ne)},toHexString:function(ne){return"#"+this.toHex(ne)},toHex8:function(ne){return x(this._r,this._g,this._b,this._a,ne)},toHex8String:function(ne){return"#"+this.toHex8(ne)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(X(this._r,255)*100)+"%",g:n(X(this._g,255)*100)+"%",b:n(X(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(X(this._r,255)*100)+"%, "+n(X(this._g,255)*100)+"%, "+n(X(this._b,255)*100)+"%)":"rgba("+n(X(this._r,255)*100)+"%, "+n(X(this._g,255)*100)+"%, "+n(X(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[A(this._r,this._g,this._b,!0)]||!1},toFilter:function(ne){var re="#"+E(this._r,this._g,this._b,this._a),Y=re,V=this._gradientType?"GradientType = 1, ":"";if(ne){var oe=u(ne);Y="#"+E(oe._r,oe._g,oe._b,oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+V+"startColorstr="+re+",endColorstr="+Y+")"},toString:function(ne){var re=!!ne;ne=ne||this._format;var Y=!1,V=this._a<1&&this._a>=0,oe=!re&&V&&(ne==="hex"||ne==="hex6"||ne==="hex3"||ne==="hex4"||ne==="hex8"||ne==="name");return oe?ne==="name"&&this._a===0?this.toName():this.toRgbString():(ne==="rgb"&&(Y=this.toRgbString()),ne==="prgb"&&(Y=this.toPercentageRgbString()),(ne==="hex"||ne==="hex6")&&(Y=this.toHexString()),ne==="hex3"&&(Y=this.toHexString(!0)),ne==="hex4"&&(Y=this.toHex8String(!0)),ne==="hex8"&&(Y=this.toHex8String()),ne==="name"&&(Y=this.toName()),ne==="hsl"&&(Y=this.toHslString()),ne==="hsv"&&(Y=this.toHsvString()),Y||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(ne,re){var Y=ne.apply(null,[this].concat([].slice.call(re)));return this._r=Y._r,this._g=Y._g,this._b=Y._b,this.setAlpha(Y._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(P,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(C,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(N,arguments)},_applyCombination:function(ne,re){return ne.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(R,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(I,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(q,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},u.fromRatio=function(ne,re){if(typeof ne=="object"){var Y={};for(var V in ne)ne.hasOwnProperty(V)&&(V==="a"?Y[V]=ne[V]:Y[V]=H(ne[V]));ne=Y}return u(ne,re)};function c(ne){var re={r:0,g:0,b:0},Y=1,V=null,oe=null,fe=null,ce=!1,he=!1;return typeof ne=="string"&&(ne=ie(ne)),typeof ne=="object"&&(ee(ne.r)&&ee(ne.g)&&ee(ne.b)?(re=g(ne.r,ne.g,ne.b),ce=!0,he=String(ne.r).substr(-1)==="%"?"prgb":"rgb"):ee(ne.h)&&ee(ne.s)&&ee(ne.v)?(V=H(ne.s),oe=H(ne.v),re=b(ne.h,V,oe),ce=!0,he="hsv"):ee(ne.h)&&ee(ne.s)&&ee(ne.l)&&(V=H(ne.s),fe=H(ne.l),re=v(ne.h,V,fe),ce=!0,he="hsl"),ne.hasOwnProperty("a")&&(Y=ne.a)),Y=Q(Y),{ok:ce,format:ne.format||he,r:t(255,o(re.r,0)),g:t(255,o(re.g,0)),b:t(255,o(re.b,0)),a:Y}}function g(ne,re,Y){return{r:X(ne,255)*255,g:X(re,255)*255,b:X(Y,255)*255}}function p(ne,re,Y){ne=X(ne,255),re=X(re,255),Y=X(Y,255);var V=o(ne,re,Y),oe=t(ne,re,Y),fe,ce,he=(V+oe)/2;if(V==oe)fe=ce=0;else{var le=V-oe;switch(ce=he>.5?le/(2-V-oe):le/(V+oe),V){case ne:fe=(re-Y)/le+(re<Y?6:0);break;case re:fe=(Y-ne)/le+2;break;case Y:fe=(ne-re)/le+4;break}fe/=6}return{h:fe,s:ce,l:he}}function v(ne,re,Y){var V,oe,fe;ne=X(ne,360),re=X(re,100),Y=X(Y,100);function ce(ae,ue,de){return de<0&&(de+=1),de>1&&(de-=1),de<1/6?ae+(ue-ae)*6*de:de<1/2?ue:de<2/3?ae+(ue-ae)*(2/3-de)*6:ae}if(re===0)V=oe=fe=Y;else{var he=Y<.5?Y*(1+re):Y+re-Y*re,le=2*Y-he;V=ce(le,he,ne+1/3),oe=ce(le,he,ne),fe=ce(le,he,ne-1/3)}return{r:V*255,g:oe*255,b:fe*255}}function y(ne,re,Y){ne=X(ne,255),re=X(re,255),Y=X(Y,255);var V=o(ne,re,Y),oe=t(ne,re,Y),fe,ce,he=V,le=V-oe;if(ce=V===0?0:le/V,V==oe)fe=0;else{switch(V){case ne:fe=(re-Y)/le+(re<Y?6:0);break;case re:fe=(Y-ne)/le+2;break;case Y:fe=(ne-re)/le+4;break}fe/=6}return{h:fe,s:ce,v:he}}function b(ne,re,Y){ne=X(ne,360)*6,re=X(re,100),Y=X(Y,100);var V=i.floor(ne),oe=ne-V,fe=Y*(1-re),ce=Y*(1-oe*re),he=Y*(1-(1-oe)*re),le=V%6,ae=[Y,ce,fe,fe,he,Y][le],ue=[he,Y,Y,ce,fe,fe][le],de=[fe,fe,he,Y,Y,ce][le];return{r:ae*255,g:ue*255,b:de*255}}function A(ne,re,Y,V){var oe=[J(n(ne).toString(16)),J(n(re).toString(16)),J(n(Y).toString(16))];return V&&oe[0].charAt(0)==oe[0].charAt(1)&&oe[1].charAt(0)==oe[1].charAt(1)&&oe[2].charAt(0)==oe[2].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0):oe.join("")}function x(ne,re,Y,V,oe){var fe=[J(n(ne).toString(16)),J(n(re).toString(16)),J(n(Y).toString(16)),J(U(V))];return oe&&fe[0].charAt(0)==fe[0].charAt(1)&&fe[1].charAt(0)==fe[1].charAt(1)&&fe[2].charAt(0)==fe[2].charAt(1)&&fe[3].charAt(0)==fe[3].charAt(1)?fe[0].charAt(0)+fe[1].charAt(0)+fe[2].charAt(0)+fe[3].charAt(0):fe.join("")}function E(ne,re,Y,V){var oe=[J(U(V)),J(n(ne).toString(16)),J(n(re).toString(16)),J(n(Y).toString(16))];return oe.join("")}u.equals=function(ne,re){return!ne||!re?!1:u(ne).toRgbString()==u(re).toRgbString()},u.random=function(){return u.fromRatio({r:d(),g:d(),b:d()})};function S(ne,re){re=re===0?0:re||10;var Y=u(ne).toHsl();return Y.s-=re/100,Y.s=Z(Y.s),u(Y)}function C(ne,re){re=re===0?0:re||10;var Y=u(ne).toHsl();return Y.s+=re/100,Y.s=Z(Y.s),u(Y)}function T(ne){return u(ne).desaturate(100)}function k(ne,re){re=re===0?0:re||10;var Y=u(ne).toHsl();return Y.l+=re/100,Y.l=Z(Y.l),u(Y)}function M(ne,re){re=re===0?0:re||10;var Y=u(ne).toRgb();return Y.r=o(0,t(255,Y.r-n(255*-(re/100)))),Y.g=o(0,t(255,Y.g-n(255*-(re/100)))),Y.b=o(0,t(255,Y.b-n(255*-(re/100)))),u(Y)}function P(ne,re){re=re===0?0:re||10;var Y=u(ne).toHsl();return Y.l-=re/100,Y.l=Z(Y.l),u(Y)}function N(ne,re){var Y=u(ne).toHsl(),V=(Y.h+re)%360;return Y.h=V<0?360+V:V,u(Y)}function F(ne){var re=u(ne).toHsl();return re.h=(re.h+180)%360,u(re)}function q(ne){var re=u(ne).toHsl(),Y=re.h;return[u(ne),u({h:(Y+120)%360,s:re.s,l:re.l}),u({h:(Y+240)%360,s:re.s,l:re.l})]}function z(ne){var re=u(ne).toHsl(),Y=re.h;return[u(ne),u({h:(Y+90)%360,s:re.s,l:re.l}),u({h:(Y+180)%360,s:re.s,l:re.l}),u({h:(Y+270)%360,s:re.s,l:re.l})]}function O(ne){var re=u(ne).toHsl(),Y=re.h;return[u(ne),u({h:(Y+72)%360,s:re.s,l:re.l}),u({h:(Y+216)%360,s:re.s,l:re.l})]}function R(ne,re,Y){re=re||6,Y=Y||30;var V=u(ne).toHsl(),oe=360/Y,fe=[u(ne)];for(V.h=(V.h-(oe*re>>1)+720)%360;--re;)V.h=(V.h+oe)%360,fe.push(u(V));return fe}function I(ne,re){re=re||6;for(var Y=u(ne).toHsv(),V=Y.h,oe=Y.s,fe=Y.v,ce=[],he=1/re;re--;)ce.push(u({h:V,s:oe,v:fe})),fe=(fe+he)%1;return ce}u.mix=function(ne,re,Y){Y=Y===0?0:Y||50;var V=u(ne).toRgb(),oe=u(re).toRgb(),fe=Y/100,ce={r:(oe.r-V.r)*fe+V.r,g:(oe.g-V.g)*fe+V.g,b:(oe.b-V.b)*fe+V.b,a:(oe.a-V.a)*fe+V.a};return u(ce)},u.readability=function(ne,re){var Y=u(ne),V=u(re);return(i.max(Y.getLuminance(),V.getLuminance())+.05)/(i.min(Y.getLuminance(),V.getLuminance())+.05)},u.isReadable=function(ne,re,Y){var V=u.readability(ne,re),oe,fe;switch(fe=!1,oe=se(Y),oe.level+oe.size){case"AAsmall":case"AAAlarge":fe=V>=4.5;break;case"AAlarge":fe=V>=3;break;case"AAAsmall":fe=V>=7;break}return fe},u.mostReadable=function(ne,re,Y){var V=null,oe=0,fe,ce,he,le;Y=Y||{},ce=Y.includeFallbackColors,he=Y.level,le=Y.size;for(var ae=0;ae<re.length;ae++)fe=u.readability(ne,re[ae]),fe>oe&&(oe=fe,V=u(re[ae]));return u.isReadable(ne,V,{level:he,size:le})||!ce?V:(Y.includeFallbackColors=!1,u.mostReadable(ne,["#fff","#000"],Y))};var D=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=u.hexNames=j(D);function j(ne){var re={};for(var Y in ne)ne.hasOwnProperty(Y)&&(re[ne[Y]]=Y);return re}function Q(ne){return ne=parseFloat(ne),(isNaN(ne)||ne<0||ne>1)&&(ne=1),ne}function X(ne,re){W(ne)&&(ne="100%");var Y=G(ne);return ne=t(re,o(0,parseFloat(ne))),Y&&(ne=parseInt(ne*re,10)/100),i.abs(ne-re)<1e-6?1:ne%re/parseFloat(re)}function Z(ne){return t(1,o(0,ne))}function L(ne){return parseInt(ne,16)}function W(ne){return typeof ne=="string"&&ne.indexOf(".")!=-1&&parseFloat(ne)===1}function G(ne){return typeof ne=="string"&&ne.indexOf("%")!=-1}function J(ne){return ne.length==1?"0"+ne:""+ne}function H(ne){return ne<=1&&(ne=ne*100+"%"),ne}function U(ne){return i.round(parseFloat(ne)*255).toString(16)}function K(ne){return L(ne)/255}var te=function(){var ne="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",Y="(?:"+re+")|(?:"+ne+")",V="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",oe="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?";return{CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+oe),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+oe),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ee(ne){return!!te.CSS_UNIT.exec(ne)}function ie(ne){ne=ne.replace(f,"").replace(e,"").toLowerCase();var re=!1;if(D[ne])ne=D[ne],re=!0;else if(ne=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Y;return(Y=te.rgb.exec(ne))?{r:Y[1],g:Y[2],b:Y[3]}:(Y=te.rgba.exec(ne))?{r:Y[1],g:Y[2],b:Y[3],a:Y[4]}:(Y=te.hsl.exec(ne))?{h:Y[1],s:Y[2],l:Y[3]}:(Y=te.hsla.exec(ne))?{h:Y[1],s:Y[2],l:Y[3],a:Y[4]}:(Y=te.hsv.exec(ne))?{h:Y[1],s:Y[2],v:Y[3]}:(Y=te.hsva.exec(ne))?{h:Y[1],s:Y[2],v:Y[3],a:Y[4]}:(Y=te.hex8.exec(ne))?{r:L(Y[1]),g:L(Y[2]),b:L(Y[3]),a:K(Y[4]),format:re?"name":"hex8"}:(Y=te.hex6.exec(ne))?{r:L(Y[1]),g:L(Y[2]),b:L(Y[3]),format:re?"name":"hex"}:(Y=te.hex4.exec(ne))?{r:L(Y[1]+""+Y[1]),g:L(Y[2]+""+Y[2]),b:L(Y[3]+""+Y[3]),a:K(Y[4]+""+Y[4]),format:re?"name":"hex8"}:(Y=te.hex3.exec(ne))?{r:L(Y[1]+""+Y[1]),g:L(Y[2]+""+Y[2]),b:L(Y[3]+""+Y[3]),format:re?"name":"hex"}:!1}function se(ne){var re,Y;return ne=ne||{level:"AA",size:"small"},re=(ne.level||"AA").toUpperCase(),Y=(ne.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),Y!=="small"&&Y!=="large"&&(Y="small"),{level:re,size:Y}}typeof _<"u"&&_.exports?_.exports=u:(s=function(){return u}.call(h,r,h,_),s!==void 0&&(_.exports=s))})(Math)},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(32),i=u(s),f=r(4),e=u(f),l=r(151),n=u(l),t=r(50),o=u(t),d=r(39);function u(c){return c&&c.__esModule?c:{default:c}}h.default={name:"RecommendedColors",mixins:[e.default,n.default,o.default],props:{list:{type:Array,default:void 0}},data:function(){var g=12,p=Math.ceil(this.list.length/g),v=1;return{left:-v,right:v,up:-v,down:v,powerKey:"shiftKey",grid:{x:1,y:1},rows:p,columns:g}},computed:{hideClass:function(){return String(this.prefixCls)+"-hide"},linearIndex:function(){return this.getLinearIndex(this.grid)},currentCircle:function(){return this.$refs["color-circle-"+String(this.linearIndex)][0]}},methods:{getLinearIndex:function(g){return this.columns*(g.y-1)+g.x-1},getMaxLimit:function(g){return g==="x"?this.columns:this.rows},handleArrow:function(g,p,v){g.preventDefault(),g.stopPropagation(),this.blurColor();var y=(0,i.default)({},this.grid);g[this.powerKey]?v<0?y[p]=1:y[p]=this.getMaxLimit(p):y[p]+=v;var b=this.getLinearIndex(y);b>=0&&b<this.list.length&&(this.grid[p]=(0,d.clamp)(y[p],1,this.getMaxLimit(p))),this.focusColor()},blurColor:function(){this.currentCircle.classList.add(this.hideClass)},focusColor:function(){this.currentCircle.classList.remove(this.hideClass)},handleEnter:function(g){this.handleClick(g,this.currentCircle)},handleClick:function(g,p){g.preventDefault(),g.stopPropagation(),this.$refs.reference.focus();var v=p||g.target,y=v.dataset.colorId||v.parentElement.dataset.colorId;if(y){this.blurColor();var b=Number(y)+1;this.grid.x=b%this.columns||this.columns,this.grid.y=Math.ceil(b/this.columns),this.focusColor(),this.$emit("picker-color",this.list[y]),this.$emit("change",{hex:this.list[y],source:"hex"})}},lineBreak:function(g,p){if(!p)return!1;var v=p+1;return v<g.length&&v%this.columns===0}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={methods:{handleEscape:function(i){this.dispatch("ColorPicker","on-escape-keydown",i)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(84),i=t(s),f=r(50),e=t(f),l=r(39),n=r(12);function t(o){return o&&o.__esModule?o:{default:o}}h.default={name:"Saturation",mixins:[i.default,e.default],data:function(){var d=.01;return{left:-d,right:d,up:d,down:-d,multiplier:10,powerKey:"shiftKey"}},computed:{bgColorStyle:function(){return{background:"hsl("+String(this.value.hsv.h)+", 100%, 50%)"}},pointerStyle:function(){return{top:-(this.value.hsv.v*100)+1+100+"%",left:this.value.hsv.s*100+"%"}}},methods:{change:function(d,u,c,g){this.$emit("change",{h:d,s:u,v:c,a:g,source:"hsva"})},handleSlide:function(d,u,c){d.preventDefault(),d.stopPropagation();var g=d[this.powerKey],p=g?u*this.multiplier:u,v=this.value.hsv,y=v.h,b=v.s,A=v.v,x=v.a,E=(0,l.clamp)(b+(0,l.getIncrement)(c,["left","right"],p),0,1),S=(0,l.clamp)(A+(0,l.getIncrement)(c,["up","down"],p),0,1);this.change(y,E,S,x)},handleChange:function(d){d.preventDefault(),d.stopPropagation();var u=this.$refs.container,c=u.clientWidth,g=u.clientHeight,p=(0,l.clamp)(this.getLeft(d),0,c),v=(0,l.clamp)(this.getTop(d),0,g),y=p/c,b=(0,l.clamp)(1-v/g,0,1);this.change(this.value.hsv.h,y,b,this.value.hsv.a)},handleMouseDown:function(d){i.default.methods.handleMouseDown.call(this,d),(0,n.on)(window,"mouseup",this.handleChange)},unbindEventListeners:function(d){i.default.methods.unbindEventListeners.call(this,d),(0,n.off)(window,"mouseup",this.handleChange)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(84),i=n(s),f=r(50),e=n(f),l=r(39);function n(t){return t&&t.__esModule?t:{default:t}}h.default={name:"Hue",mixins:[i.default,e.default],data:function(){var o=.06944444444444445,d=20*o;return{left:-o,right:o,up:d,down:-d,powerKey:"shiftKey",percent:(0,l.clamp)(this.value.hsl.h*100/360,0,100)}},watch:{value:function(){this.percent=(0,l.clamp)(this.value.hsl.h*100/360,0,100)}},methods:{change:function(o){this.percent=(0,l.clamp)(o,0,100);var d=this.value.hsl,u=d.h,c=d.s,g=d.l,p=d.a,v=(0,l.clamp)(o/100*360,0,360);u!==v&&this.$emit("change",{h:v,s:c,l:g,a:p,source:"hsl"})},handleSlide:function(o,d){if(o.preventDefault(),o.stopPropagation(),o[this.powerKey]){this.change(d<0?0:100);return}this.change(this.percent+d)},handleChange:function(o){o.preventDefault(),o.stopPropagation();var d=this.getLeft(o);if(d<0){this.change(0);return}var u=this.$refs.container.clientWidth;if(d>u){this.change(100);return}this.change(d*100/u)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(84),i=n(s),f=r(50),e=n(f),l=r(39);function n(t){return t&&t.__esModule?t:{default:t}}h.default={name:"Alpha",mixins:[i.default,e.default],data:function(){var o=1,d=10;return{left:-o,right:o,up:d,down:-d,powerKey:"shiftKey"}},computed:{gradientStyle:function(){var o=this.value.rgba,d=o.r,u=o.g,c=o.b,g=(0,l.toRGBAString)({r:d,g:u,b:c,a:0}),p=(0,l.toRGBAString)({r:d,g:u,b:c,a:1});return{background:"linear-gradient(to right, "+String(g)+" 0%, "+String(p)+" 100%)"}}},methods:{change:function(o){var d=this.value.hsl,u=d.h,c=d.s,g=d.l,p=this.value.a;p!==o&&this.$emit("change",{h:u,s:c,l:g,a:o,source:"rgba"})},handleSlide:function(o,d){o.preventDefault(),o.stopPropagation(),this.change((0,l.clamp)(o[this.powerKey]?d:Math.round(this.value.hsl.a*100+d)/100,0,1))},handleChange:function(o){o.preventDefault(),o.stopPropagation();var d=this.getLeft(o);if(d<0){this.change(0);return}var u=this.$refs.container.clientWidth;if(d>u){this.change(1);return}this.change(Math.round(d*100/u)/100)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(156),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(404);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s="ivu-layout";h.default={name:"Content",computed:{wrapClasses:function(){return s+"-content"}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(158),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(408);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(27),i=O(s),f=r(57),e=O(f),l=r(26),n=O(l),t=r(32),o=O(t),d=r(17),u=O(d),c=r(2),g=O(c),p=r(1),v=O(p),y=r(38),b=O(y),A=r(36),x=O(A),E=r(8),S=O(E),C=r(76),T=r(23),k=O(T),M=r(3),P=r(20),N=r(4),F=O(N),q=r(11),z=O(q);function O(Z){return Z&&Z.__esModule?Z:{default:Z}}var R="ivu-date-picker",I="ivu-picker",D=function(Z){return(0,v.default)(void 0,void 0),Z.reduce(function(L,W){return(0,v.default)(void 0,void 0),L&&!W||typeof W=="string"&&W.trim()===""}.bind(void 0),!0)}.bind(void 0),B={40:"up",39:"right",38:"down",37:"left"},j=function(Z,L,W){if((0,v.default)(void 0,void 0),Z==="left")return L*-1;if(Z==="right")return L*1;if(Z==="up")return W*1;if(Z==="down")return W*-1}.bind(void 0),Q=function(Z){(0,v.default)(void 0,void 0);var L="ivu-date-picker-btn-pulse";Z.classList.add(L),setTimeout(function(){return(0,v.default)(void 0,void 0),Z.classList.remove(L)}.bind(void 0),200)}.bind(void 0),X=function(Z){return(0,v.default)(void 0,void 0),Z?[Z.getHours(),Z.getMinutes(),Z.getSeconds()]:[0,0,0]}.bind(void 0);h.default={mixins:[F.default,z.default],components:{iInput:b.default,Drop:x.default,Icon:S.default},directives:{clickOutside:C.directive,TransferDom:k.default},props:{format:{type:String},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},confirm:{type:Boolean,default:!1},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{default:function(){return(0,v.default)(void 0,void 0),{}}.bind(void 0),type:Object},splitPanels:{type:Boolean,default:!1},showWeekNumbers:{type:Boolean,default:!1},startDate:{type:Date},size:{validator:function(L){return(0,M.oneOf)(L,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},placeholder:{type:String,default:""},placement:{validator:function(L){return(0,M.oneOf)(L,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom-start"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},name:{type:String},elementId:{type:String},steps:{type:Array,default:function(){return(0,v.default)(void 0,void 0),[]}.bind(void 0)},value:{type:[Date,String,Array]},options:{type:Object,default:function(){return(0,v.default)(void 0,void 0),{}}.bind(void 0)},separator:{type:String,default:" - "},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},transferClassName:{type:String},eventsEnabled:{type:Boolean,default:!1}},data:function(){var L=this.type.includes("range"),W=L?[null,null]:[null],G=D((L?this.value:[this.value])||[])?W:this.parseDate(this.value),J=G.map(X);return{prefixCls:R,showClose:!1,visible:!1,internalValue:G,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:this.onSelectionModeChange(this.type),forceInputRerender:1,isFocused:!1,focusedDate:G[0]||this.startDate||new Date,focusedTime:{column:0,picker:0,time:J,active:!1},internalFocus:!1,isValueNull:!1}},computed:{wrapperClasses:function(){return[R,(0,g.default)({},R+"-focused",this.isFocused)]},publicVModelValue:function(){var L=this;if(this.multiple)return this.internalValue.slice();var W=this.type.includes("range"),G=this.internalValue.map(function(J){return(0,v.default)(this,L),J instanceof Date?new Date(J):J||""}.bind(this));return this.type.match(/^time/)&&(G=G.map(this.formatDate)),W||this.multiple?G:G[0]},publicStringValue:function(){var L=this.formatDate,W=this.publicVModelValue,G=this.type;return G.match(/^time/)?W:this.multiple?L(W):Array.isArray(W)?W.map(L):L(W)},opened:function(){return this.open===null?this.visible:this.open},transition:function(){var L=this.placement.match(/^bottom/);return L?"slide-up":"slide-down"},visualValue:function(){return this.formatDate(this.internalValue)},isConfirm:function(){return this.confirm||this.type==="datetime"||this.type==="datetimerange"||this.multiple},arrowType:function(){var L="";return this.type==="time"||this.type==="timerange"?(L="ios-time-outline",this.$IVIEW&&(this.$IVIEW.timePicker.customIcon?L="":this.$IVIEW.timePicker.icon&&(L=this.$IVIEW.timePicker.icon))):(L="ios-calendar-outline",this.$IVIEW&&(this.$IVIEW.datePicker.customIcon?L="":this.$IVIEW.datePicker.icon&&(L=this.$IVIEW.datePicker.icon))),this.showClose&&(L="ios-close-circle"),L},customArrowType:function(){var L="";return this.showClose||(this.type==="time"||this.type==="timerange"?this.$IVIEW&&this.$IVIEW.timePicker.customIcon&&(L=this.$IVIEW.timePicker.customIcon):this.$IVIEW&&this.$IVIEW.datePicker.customIcon&&(L=this.$IVIEW.datePicker.customIcon)),L},arrowSize:function(){var L="";return this.showClose||(this.type==="time"||this.type==="timerange"?this.$IVIEW&&this.$IVIEW.timePicker.iconSize&&(L=this.$IVIEW.timePicker.iconSize):this.$IVIEW&&this.$IVIEW.datePicker.iconSize&&(L=this.$IVIEW.datePicker.iconSize)),L},dropdownCls:function(){var L;return L={},(0,g.default)(L,R+"-transfer",this.transfer),(0,g.default)(L,this.transferClassName,this.transferClassName),L}},methods:{onSelectionModeChange:function(L){return L.match(/^date/)&&(L="date"),this.selectionMode=(0,M.oneOf)(L,["year","month","date","time"])&&L,this.selectionMode},handleTransferClick:function(){this.transfer&&(this.disableCloseUnderTransfer=!0)},handleClose:function(L){if(this.disableCloseUnderTransfer)return this.disableCloseUnderTransfer=!1,!1;if(L&&L.type==="mousedown"&&this.visible){L.preventDefault(),L.stopPropagation();return}if(this.visible){var W=this.$refs.pickerPanel&&this.$refs.pickerPanel.$el;if(L&&W&&W.contains(L.target))return;this.visible=!1,L&&L.preventDefault(),L&&L.stopPropagation(),this.$emit("on-clickoutside",L);return}this.isFocused=!1,this.disableClickOutSide=!1},handleFocus:function(L){this.readonly||(this.isFocused=!0,!(L&&L.type==="focus")&&(this.itemDisabled||(this.visible=!0)))},handleBlur:function(L){if(this.internalFocus){this.internalFocus=!1;return}if(this.visible){L.preventDefault();return}this.isFocused=!1,this.onSelectionModeChange(this.type),this.internalValue=this.internalValue.slice(),this.reset(),this.$refs.pickerPanel.onToggleVisibility(!1)},handleKeydown:function(L){var W=this,G=L.keyCode;if(G===9)if(this.visible)if(L.stopPropagation(),L.preventDefault(),this.isConfirm){var J="."+I+"-confirm > *",H=this.$refs.drop.$el.querySelectorAll(J);this.internalFocus=!0;var U=[].concat((0,u.default)(H))[L.shiftKey?"pop":"shift"]();U.focus()}else this.handleClose();else this.focused=!1;var K=[37,38,39,40];if(!this.visible&&K.includes(G)){this.visible=!0;return}if(G===27&&this.visible&&(L.stopPropagation(),this.handleClose()),G===13){var te=(0,M.findComponentsDownward)(this,"TimeSpinner");if(te.length>0){var ee=te[0].showSeconds?3:2,ie=Math.floor(this.focusedTime.column/ee),se=this.focusedTime.time[ie];te[ie].chooseValue(se);return}if(this.type.match(/range/))this.$refs.pickerPanel.handleRangePick(this.focusedDate,"date");else{var ne=(0,M.findComponentsDownward)(this,"PanelTable"),re=function(V){(0,v.default)(this,W);var oe=["year","month","date"].indexOf(this.type)+1;return[V.getFullYear(),V.getMonth(),V.getDate()].slice(0,oe).join("-")}.bind(this),Y=ne.find(function(V){var oe=V.cells;return(0,v.default)(this,W),oe.find(function(fe){var ce=fe.date,he=fe.disabled;return(0,v.default)(this,W),re(ce)===re(this.focusedDate)&&!he}.bind(this))}.bind(this));Y&&this.onPick(this.focusedDate,!1,"date")}}K.includes(G)&&(this.focusedTime.active&&L.preventDefault(),this.navigateDatePanel(B[G],L.shiftKey))},reset:function(){this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()},navigateTimePanel:function(L){var W=this;this.focusedTime.active=!0;var G=L.match(/left|right/),J=L.match(/up|down/),H=(0,M.findComponentsDownward)(this,"TimeSpinner"),U=(H[0].showSeconds?3:2)*H.length,K=function(he){(0,v.default)(this,W);var le=he+(G?L==="left"?-1:1:0);return(le+U)%U}.bind(this)(this.focusedTime.column),te=U/H.length,ee=Math.floor(K/te),ie=K%te;if(G){var se=this.internalValue.map(X);this.focusedTime=(0,o.default)({},this.focusedTime,{column:K,time:se}),H.forEach(function(he,le){(0,v.default)(this,W),le===ee?he.updateFocusedTime(ie,se[ee]):he.updateFocusedTime(-1,he.focusedTime)}.bind(this))}if(J){var ne=L==="up"?1:-1,re=["hours","minutes","seconds"],Y=H[ee][String(re[ie])+"List"],V=Y.findIndex(function(he){var le=he.text;return(0,v.default)(this,W),this.focusedTime.time[ee][ie]===le}.bind(this)),oe=(V+ne+Y.length)%Y.length,fe=Y[oe].text,ce=this.focusedTime.time.map(function(he,le){return(0,v.default)(this,W),le!==ee||(he[ie]=fe),he}.bind(this));this.focusedTime=(0,o.default)({},this.focusedTime,{time:ce}),H.forEach(function(he,le){(0,v.default)(this,W),le===ee?he.updateFocusedTime(ie,ce[le]):he.updateFocusedTime(-1,he.focusedTime)}.bind(this))}},navigateDatePanel:function(L,W){var G=(0,M.findComponentsDownward)(this,"TimeSpinner");if(G.length>0){this.navigateTimePanel(L,W,G);return}if(W){this.type==="year"?this.focusedDate=new Date(this.focusedDate.getFullYear()+j(L,0,10),this.focusedDate.getMonth(),this.focusedDate.getDate()):this.focusedDate=new Date(this.focusedDate.getFullYear()+j(L,0,1),this.focusedDate.getMonth()+j(L,1,0),this.focusedDate.getDate());var J=L.match(/left|down/)?"prev":"next",H=L.match(/up|down/)?"-double":"",U=this.$refs.drop.$el.querySelector(".ivu-date-picker-"+J+"-btn-arrow"+H);U&&Q(U);return}var K=this.focusedDate||this.internalValue&&this.internalValue[0]||new Date,te=new Date(K);if(this.type.match(/^date/)){var ee=(0,P.getDayCountOfMonth)(K.getFullYear(),K.getMonth()),ie=K.getDate(),se=te.getDate()+j(L,1,7);se<1?L.match(/left|right/)?(te.setMonth(te.getMonth()+1),te.setDate(se)):te.setDate(ie+Math.floor((ee-ie)/7)*7):se>ee?L.match(/left|right/)?(te.setMonth(te.getMonth()-1),te.setDate(se)):te.setDate(ie%7):te.setDate(se)}this.type.match(/^month/)&&te.setMonth(te.getMonth()+j(L,1,3)),this.type.match(/^year/)&&te.setFullYear(te.getFullYear()+j(L,1,3)),this.focusedDate=te},handleInputChange:function(L){var W=this,G=this.type.includes("range")||this.multiple,J=this.visualValue,H=L.target.value,U=this.parseDate(H),K=this.options&&typeof this.options.disabledDate=="function"&&this.options.disabledDate,te=G?U:U[0],ee=K&&K(te),ie=U.reduce(function(se,ne){return(0,v.default)(this,W),se&&ne instanceof Date}.bind(this),!0);H!==J&&!ee&&ie?(this.emitChange(this.type),this.internalValue=U):this.forceInputRerender++},handleInputMouseenter:function(){this.readonly||this.itemDisabled||this.visualValue&&this.clearable&&(this.showClose=!0)},handleInputMouseleave:function(){this.showClose=!1},handleIconClick:function(L){this.showClose?(L&&L.stopPropagation(),this.handleClear()):this.itemDisabled||this.handleFocus()},handleClear:function(){var L=this;this.visible=!1,this.internalValue=this.internalValue.map(function(){return(0,v.default)(this,L),null}.bind(this)),this.$emit("on-clear"),this.dispatch("FormItem","on-form-change",""),this.emitChange(this.type),this.reset(),setTimeout(function(){return(0,v.default)(this,L),this.onSelectionModeChange(this.type)}.bind(this),500)},emitChange:function(L){var W=this;this.$nextTick(function(){(0,v.default)(this,W),this.$emit("on-change",this.publicStringValue,L),this.dispatch("FormItem","on-form-change",this.publicStringValue)}.bind(this))},parseDate:function(L){var W=this,G=this.type.includes("range"),J=this.type,H=(P.TYPE_VALUE_RESOLVER_MAP[J]||P.TYPE_VALUE_RESOLVER_MAP.default).parser,U=this.format||P.DEFAULT_FORMATS[J],K=P.TYPE_VALUE_RESOLVER_MAP.multiple.parser;if(L&&J==="time"&&!(L instanceof Date))L=H(L,U,this.separator);else if(this.multiple&&L)L=K(L,U,this.separator);else if(G)if(!L)L=[null,null];else if(typeof L=="string")L=H(L,U,this.separator);else if(J==="timerange")L=H(L,U,this.separator).map(function(ne){return(0,v.default)(this,W),ne||""}.bind(this));else{var te=L,ee=(0,n.default)(te,2),ie=ee[0],se=ee[1];ie instanceof Date&&se instanceof Date?L=L.map(function(ne){return(0,v.default)(this,W),new Date(ne)}.bind(this)):typeof ie=="string"&&typeof se=="string"?L=H(L.join(this.separator),U,this.separator):(!ie||!se)&&(L=[null,null])}else typeof L=="string"&&J.indexOf("time")!==0&&(L=H(L,U)||null);return G||this.multiple?L||[]:[L]},formatDate:function(L){var W=P.DEFAULT_FORMATS[this.type];if(this.multiple){var G=P.TYPE_VALUE_RESOLVER_MAP.multiple.formatter;return G(L,this.format||W,this.separator)}else{var J=P.TYPE_VALUE_RESOLVER_MAP[this.type]||P.TYPE_VALUE_RESOLVER_MAP.default,H=J.formatter;return H(L,this.format||W,this.separator)}},onPick:function(L){var W=this,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,J=arguments[2];if(this.multiple){var H=L.getTime(),U=this.internalValue.findIndex(function(ee){return(0,v.default)(this,W),ee&&ee.getTime()===H}.bind(this)),K=[].concat((0,u.default)(this.internalValue),[L]).filter(Boolean),te=K.map(function(ee){return(0,v.default)(this,W),ee.getTime()}.bind(this)).filter(function(ee,ie,se){return(0,v.default)(this,W),se.indexOf(ee)===ie&&ie!==U}.bind(this));this.internalValue=te.map(function(ee){return(0,v.default)(this,W),new Date(ee)}.bind(this))}else L=this.parseDate(L),this.internalValue=Array.isArray(L)?L:[L];this.internalValue[0]&&(this.focusedDate=this.internalValue[0]),this.focusedTime=(0,o.default)({},this.focusedTime,{time:this.internalValue.map(X)}),this.isConfirm||this.onSelectionModeChange(this.type),this.isConfirm||(this.visible=G),this.emitChange(J)},onPickSuccess:function(){this.visible=!1,this.$emit("on-ok"),this.focus(),this.reset()},focus:function(){this.$refs.input&&this.$refs.input.focus()},updatePopper:function(){this.$refs.drop.update()}},watch:{visible:function(L){L===!1&&this.$refs.drop.destroy(),L&&this.$refs.drop.update(),this.$emit("on-open-change",L)},value:function(L){L===null&&(this.isValueNull=!0),this.internalValue=this.parseDate(L)},open:function(L){this.visible=L===!0},type:function(L){this.onSelectionModeChange(L)},publicVModelValue:function(L,W){var G=(0,e.default)(L),J=(0,e.default)(W),H=G!==J||(typeof L>"u"?"undefined":(0,i.default)(L))!==(typeof W>"u"?"undefined":(0,i.default)(W));H&&(this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",L))}},mounted:function(){var L=this;this.open!==null&&(this.visible=this.open),this.$on("focus-input",function(){return(0,v.default)(this,L),this.focus()}.bind(this)),this.$on("update-popper",function(){return(0,v.default)(this,L),this.updatePopper()}.bind(this))},beforeDestroy:function(){this.$off("focus-input"),this.$off("update-popper")}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=N(s),f=r(2),e=N(f),l=r(8),n=N(l),t=r(160),o=N(t),d=r(162),u=N(d),c=r(164),g=N(c),p=r(166),v=N(p),y=r(59),b=N(y),A=r(171),x=N(A),E=r(60),S=N(E),C=r(173),T=N(C),k=r(6),M=N(k),P=r(20);function N(z){return z&&z.__esModule?z:{default:z}}var F="ivu-picker-panel",q="ivu-date-picker";h.default={name:"DatePickerPanel",mixins:[S.default,M.default,T.default],components:{Icon:n.default,DateTable:o.default,YearTable:u.default,MonthTable:g.default,TimePicker:v.default,Confirm:b.default,datePanelLabel:x.default},props:{multiple:{type:Boolean,default:!1}},data:function(){var O=this.selectionMode,R=this.value,I=R.slice().sort();return{prefixCls:F,datePrefixCls:q,currentView:O||"date",pickerTable:this.getTableType(O),dates:I,panelDate:this.startDate||I[0]||new Date}},computed:{classes:function(){return[F+"-body-wrapper",(0,e.default)({},F+"-with-sidebar",this.shortcuts.length)]},panelPickerHandlers:function(){return this.pickerTable===String(this.currentView)+"-table"?this.handlePick:this.handlePreSelection},datePanelLabel:function(){var O=this,R=this.t("i.locale"),I=this.t("i.datepicker.datePanelLabel"),D=this.panelDate,B=(0,P.formatDateLabels)(R,I,D),j=B.labels,Q=B.separator,X=function(Z){return(0,i.default)(this,O),function(){return(0,i.default)(this,O),this.pickerTable=this.getTableType(Z)}.bind(this)}.bind(this);return{separator:Q,labels:j.map(function(Z){return(0,i.default)(this,O),Z.handler=X(Z.type),Z}.bind(this))}},timeDisabled:function(){return!this.dates[0]}},watch:{value:function(O){this.dates=O;var R=this.multiple?this.dates[this.dates.length-1]:this.startDate||this.dates[0];this.panelDate=R||new Date},currentView:function(O){var R=this;this.$emit("on-selection-mode-change",O),this.currentView==="time"&&this.$nextTick(function(){(0,i.default)(this,R);var I=this.$refs.timePicker.$refs.timeSpinner;I.updateScroll()}.bind(this))},selectionMode:function(O){this.currentView=O,this.pickerTable=this.getTableType(O)},focusedDate:function(O){var R=O.getFullYear()!==this.panelDate.getFullYear(),I=R||O.getMonth()!==this.panelDate.getMonth();(R||I)&&(this.multiple||(this.panelDate=O))}},methods:{reset:function(){this.currentView=this.selectionMode,this.pickerTable=this.getTableType(this.currentView)},changeYear:function(O){this.selectionMode==="year"||this.pickerTable==="year-table"?this.panelDate=new Date(this.panelDate.getFullYear()+O*10,0,1):this.panelDate=(0,P.siblingMonth)(this.panelDate,O*12)},getTableType:function(O){return O.match(/^time/)?"time-picker":String(O)+"-table"},changeMonth:function(O){this.panelDate=(0,P.siblingMonth)(this.panelDate,O)},handlePreSelection:function(O){this.panelDate=O,this.pickerTable==="year-table"?this.pickerTable="month-table":this.pickerTable=this.getTableType(this.currentView)},handlePick:function(O,R){var I=this.selectionMode,D=this.panelDate;I==="year"?O=new Date(O.getFullYear(),0,1):I==="month"?O=new Date(D.getFullYear(),O.getMonth(),1):O=new Date(O),this.dates=[O],this.$emit("on-pick",O,!1,R||I)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(161),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(414);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(32),i=x(s),f=r(26),e=x(f),l=r(1),n=x(l),t=r(2),o=x(t),d=r(20),u=r(6),c=x(u),g=r(410),p=x(g),v=r(85),y=x(v),b=r(86),A=x(b);function x(E){return E&&E.__esModule?E:{default:E}}h.default={mixins:[c.default,y.default],props:{showWeekNumbers:{type:Boolean,default:!1}},data:function(){return{prefixCls:A.default}},computed:{classes:function(){return[""+String(A.default),(0,o.default)({},String(A.default)+"-show-week-numbers",this.showWeekNumbers)]},calendar:function(){var S=Number(this.t("i.datepicker.weekStartDay"));return new p.default.Generator({onlyDays:!this.showWeekNumbers,weekStart:S})},headerDays:function(){var S=this,C=Number(this.t("i.datepicker.weekStartDay")),T=["sun","mon","tue","wed","thu","fri","sat"].map(function(M){return(0,n.default)(this,S),this.t("i.datepicker.weeks."+M)}.bind(this)),k=T.splice(C,7-C).concat(T.splice(0,C));return this.showWeekNumbers?[""].concat(k):k},cells:function(){var S=this,C=this.tableDate.getFullYear(),T=this.tableDate.getMonth(),k=(0,d.clearHours)(new Date),M=this.dates.filter(Boolean).map(d.clearHours),P=this.dates.map(d.clearHours),N=(0,e.default)(P,2),F=N[0],q=N[1],z=this.rangeState.from&&(0,d.clearHours)(this.rangeState.from),O=this.rangeState.to&&(0,d.clearHours)(this.rangeState.to),R=this.selectionMode==="range",I=typeof this.disabledDate=="function"&&this.disabledDate;return this.calendar(C,T,function(D){(0,n.default)(this,S),D.date instanceof Date&&D.date.setTime(D.date.getTime()+D.date.getTimezoneOffset()*6e4+480*60*1e3);var B=D.date&&(0,d.clearHours)(D.date),j=D.date&&T===D.date.getMonth();return(0,i.default)({},D,{type:B===k?"today":D.type,selected:j&&M.includes(B),disabled:D.date&&I&&I(new Date(B)),range:j&&R&&(0,d.isInRange)(B,z,O),start:j&&R&&B===F,end:j&&R&&B===q})}.bind(this)).cells.slice(this.showWeekNumbers?8:0)}},methods:{getCellCls:function(S){var C;return[String(A.default)+"-cell",(C={},(0,o.default)(C,String(A.default)+"-cell-selected",S.selected||S.start||S.end),(0,o.default)(C,String(A.default)+"-cell-disabled",S.disabled),(0,o.default)(C,String(A.default)+"-cell-today",S.type==="today"),(0,o.default)(C,String(A.default)+"-cell-prev-month",S.type==="prevMonth"),(0,o.default)(C,String(A.default)+"-cell-next-month",S.type==="nextMonth"),(0,o.default)(C,String(A.default)+"-cell-week-label",S.type==="weekLabel"),(0,o.default)(C,String(A.default)+"-cell-range",S.range&&!S.start&&!S.end),(0,o.default)(C,String(A.default)+"-focused",(0,d.clearHours)(S.date)===(0,d.clearHours)(this.focusedDate)),C)]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(163),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(415);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=c(s),f=r(1),e=c(f),l=r(20),n=r(3),t=r(85),o=c(t),d=r(86),u=c(d);function c(g){return g&&g.__esModule?g:{default:g}}h.default={mixins:[o.default],props:{},computed:{classes:function(){return[""+String(u.default),String(u.default)+"-year"]},startYear:function(){return Math.floor(this.tableDate.getFullYear()/10)*10},cells:function(){for(var p=this,v=[],y={text:"",selected:!1,disabled:!1},b=this.dates.filter(Boolean).map(function(C){return(0,e.default)(this,p),(0,l.clearHours)(new Date(C.getFullYear(),0,1))}.bind(this)),A=(0,l.clearHours)(new Date(this.focusedDate.getFullYear(),0,1)),x=0;x<10;x++){var E=(0,n.deepCopy)(y);E.date=new Date(this.startYear+x,0,1),E.disabled=typeof this.disabledDate=="function"&&this.disabledDate(E.date)&&this.selectionMode==="year";var S=(0,l.clearHours)(E.date);E.selected=b.includes(S),E.focused=S===A,v.push(E)}return v}},methods:{getCellCls:function(p){var v;return[String(u.default)+"-cell",(v={},(0,i.default)(v,String(u.default)+"-cell-selected",p.selected),(0,i.default)(v,String(u.default)+"-cell-disabled",p.disabled),(0,i.default)(v,String(u.default)+"-cell-focused",p.focused),(0,i.default)(v,String(u.default)+"-cell-range",p.range&&!p.start&&!p.end),v)]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(165),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(416);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=p(s),f=r(1),e=p(f),l=r(20),n=r(3),t=r(6),o=p(t),d=r(85),u=p(d),c=r(86),g=p(c);function p(v){return v&&v.__esModule?v:{default:v}}h.default={mixins:[o.default,u.default],props:{},computed:{classes:function(){return[""+String(g.default),String(g.default)+"-month"]},cells:function(){for(var y=this,b=[],A={text:"",selected:!1,disabled:!1},x=this.tableDate.getFullYear(),E=this.dates.filter(Boolean).map(function(M){return(0,e.default)(this,y),(0,l.clearHours)(new Date(M.getFullYear(),M.getMonth(),1))}.bind(this)),S=(0,l.clearHours)(new Date(this.focusedDate.getFullYear(),this.focusedDate.getMonth(),1)),C=0;C<12;C++){var T=(0,n.deepCopy)(A);T.date=new Date(x,C,1),T.text=this.tCell(C+1);var k=(0,l.clearHours)(T.date);T.disabled=typeof this.disabledDate=="function"&&this.disabledDate(T.date)&&this.selectionMode==="month",T.selected=E.includes(k),T.focused=k===S,b.push(T)}return b}},methods:{getCellCls:function(y){var b;return[String(g.default)+"-cell",(b={},(0,i.default)(b,String(g.default)+"-cell-selected",y.selected),(0,i.default)(b,String(g.default)+"-cell-disabled",y.disabled),(0,i.default)(b,String(g.default)+"-cell-focused",y.focused),(0,i.default)(b,String(g.default)+"-cell-range",y.range&&!y.start&&!y.end),b)]},tCell:function(y){return this.t("i.datepicker.months.m"+String(y))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(167),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(419);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(21),i=x(s),f=r(17),e=x(f),l=r(1),n=x(l),t=r(168),o=x(t),d=r(59),u=x(d),c=r(58),g=x(c),p=r(60),v=x(p),y=r(6),b=x(y),A=r(20);function x(P){return P&&P.__esModule?P:{default:P}}var E="ivu-picker-panel",S="ivu-time-picker",C=function(P){return(0,n.default)(void 0,void 0),P[0].toUpperCase()+P.slice(1)}.bind(void 0),T=function(P,N,F,q){(0,n.default)(void 0,void 0);var z=new Date(P.getTime());return z.setHours(N),z.setMinutes(F),z.setSeconds(q),z}.bind(void 0),k=function(P,N,F){return(0,n.default)(void 0,void 0),F.indexOf(P)===N}.bind(void 0),M=function(){return(0,n.default)(void 0,void 0),!1}.bind(void 0);h.default={name:"TimePickerPanel",mixins:[v.default,b.default,g.default],components:{TimeSpinner:o.default,Confirm:u.default},props:{disabledDate:{type:Function,default:M},steps:{type:Array,default:function(){return(0,n.default)(void 0,void 0),[]}.bind(void 0)},format:{type:String,default:"HH:mm:ss"},value:{type:Array,required:!0}},data:function(){return{prefixCls:E,timePrefixCls:S,date:this.value[0]||(0,A.initTimeDate)(),showDate:!1}},computed:{showSeconds:function(){return!!(this.format||"").match(/ss/)},visibleDate:function(){var N=this.date,F=N.getMonth()+1,q=this.t("i.datepicker.year"),z=this.t("i.datepicker.month"+String(F));return""+String(N.getFullYear())+String(q)+" "+String(z)},timeSlots:function(){var N=this;return this.value[0]?["getHours","getMinutes","getSeconds"].map(function(F){return(0,n.default)(this,N),this.date[F]()}.bind(this)):[]},disabledHMS:function(){var N=this,F=["disabledHours","disabledMinutes","disabledSeconds"];if(this.disabledDate===M||!this.value[0]){var q=F.reduce(function(I,D){return(0,n.default)(this,N),I[D]=this[D],I}.bind(this),{});return q}else{var z=[24,60,60],O=["Hours","Minutes","Seconds"].map(function(I){return(0,n.default)(this,N),this["disabled"+String(I)]}.bind(this)),R=O.map(function(I,D){(0,n.default)(this,N);for(var B=z[D],j=I,Q=function(L){var W=N.timeSlots.map(function(J,H){return(0,n.default)(this,N),H===D?L:J}.bind(N)),G=T.apply(void 0,[N.date].concat((0,e.default)(W)));N.disabledDate(G,!0)&&j.push(L)},X=0;X<B;X+=this.steps[D]||1)Q(X);return j.filter(k)}.bind(this));return F.reduce(function(I,D,B){return(0,n.default)(this,N),I[D]=R[B],I}.bind(this),{})}}},watch:{value:function(N){var F=N[0]||(0,A.initTimeDate)();F=new Date(F),this.date=F}},methods:{handleChange:function(N){var F=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,z=new Date(this.date);(0,i.default)(N).forEach(function(O){return(0,n.default)(this,F),z["set"+String(C(O))](N[O])}.bind(this)),q&&this.$emit("on-pick",z,"time")}},mounted:function(){this.$parent&&this.$parent.$options.name==="DatePicker"&&(this.showDate=!0)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(169),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(417);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(21),i=g(s),f=r(32),e=g(f),l=r(2),n=g(l),t=r(1),o=g(t),d=r(58),u=g(d),c=r(3);function g(y){return y&&y.__esModule?y:{default:y}}var p="ivu-time-picker-cells",v=["hours","minutes","seconds"];h.default={name:"TimeSpinner",mixins:[u.default],props:{hours:{type:[Number,String],default:NaN},minutes:{type:[Number,String],default:NaN},seconds:{type:[Number,String],default:NaN},showSeconds:{type:Boolean,default:!0},steps:{type:Array,default:function(){return(0,o.default)(void 0,void 0),[]}.bind(void 0)}},data:function(){var b=this;return{spinerSteps:[1,1,1].map(function(A,x){return(0,o.default)(this,b),Math.abs(this.steps[x])||A}.bind(this)),prefixCls:p,compiled:!1,focusedColumn:-1,focusedTime:[0,0,0]}},computed:{classes:function(){return[""+p,(0,n.default)({},p+"-with-seconds",this.showSeconds)]},hoursList:function(){for(var b=[],A=this.spinerSteps[0],x=this.focusedColumn===0&&this.focusedTime[0],E={text:0,selected:!1,disabled:!1,hide:!1},S=0;S<24;S+=A){var C=(0,c.deepCopy)(E);C.text=S,C.focused=S===x,this.disabledHours.length&&this.disabledHours.indexOf(S)>-1&&(C.disabled=!0,this.hideDisabledOptions&&(C.hide=!0)),this.hours===S&&(C.selected=!0),b.push(C)}return b},minutesList:function(){for(var b=[],A=this.spinerSteps[1],x=this.focusedColumn===1&&this.focusedTime[1],E={text:0,selected:!1,disabled:!1,hide:!1},S=0;S<60;S+=A){var C=(0,c.deepCopy)(E);C.text=S,C.focused=S===x,this.disabledMinutes.length&&this.disabledMinutes.indexOf(S)>-1&&(C.disabled=!0,this.hideDisabledOptions&&(C.hide=!0)),this.minutes===S&&(C.selected=!0),b.push(C)}return b},secondsList:function(){for(var b=[],A=this.spinerSteps[2],x=this.focusedColumn===2&&this.focusedTime[2],E={text:0,selected:!1,disabled:!1,hide:!1},S=0;S<60;S+=A){var C=(0,c.deepCopy)(E);C.text=S,C.focused=S===x,this.disabledSeconds.length&&this.disabledSeconds.indexOf(S)>-1&&(C.disabled=!0,this.hideDisabledOptions&&(C.hide=!0)),this.seconds===S&&(C.selected=!0),b.push(C)}return b}},methods:{getCellCls:function(b){var A;return[p+"-cell",(A={},(0,n.default)(A,p+"-cell-selected",b.selected),(0,n.default)(A,p+"-cell-focused",b.focused),(0,n.default)(A,p+"-cell-disabled",b.disabled),A)]},chooseValue:function(b){var A=this,x=v.reduce(function(E,S,C){(0,o.default)(this,A);var T=b[C];return this[S]===T?E:(0,e.default)({},E,(0,n.default)({},S,T))}.bind(this),{});(0,i.default)(x).length>0&&this.emitChange(x)},handleClick:function(b,A){if(!A.disabled){var x=(0,n.default)({},b,A.text);this.emitChange(x)}},emitChange:function(b){this.$emit("on-change",b),this.$emit("on-pick-click")},scroll:function(b,A){var x=this.$refs[b].scrollTop,E=24*this.getScrollIndex(b,A);(0,c.scrollTop)(this.$refs[b],x,E,500)},getScrollIndex:function(b,A){var x=this,E=(0,c.firstUpperCase)(b),S=this["disabled"+String(E)];if(S.length&&this.hideDisabledOptions){var C=0;S.forEach(function(T){return(0,o.default)(this,x),T<=A?C++:""}.bind(this)),A-=C}return A},updateScroll:function(){var b=this;this.$nextTick(function(){(0,o.default)(this,b),v.forEach(function(A){(0,o.default)(this,b),this.$refs[A].scrollTop=24*this[String(A)+"List"].findIndex(function(x){return(0,o.default)(this,b),x.text==this[A]}.bind(this))}.bind(this))}.bind(this))},formatTime:function(b){return b<10?"0"+b:b},updateFocusedTime:function(b,A){this.focusedColumn=b,this.focusedTime=A.slice()}},watch:{hours:function(b){var A=this;this.compiled&&this.scroll("hours",this.hoursList.findIndex(function(x){return(0,o.default)(this,A),x.text==b}.bind(this)))},minutes:function(b){var A=this;this.compiled&&this.scroll("minutes",this.minutesList.findIndex(function(x){return(0,o.default)(this,A),x.text==b}.bind(this)))},seconds:function(b){var A=this;this.compiled&&this.scroll("seconds",this.secondsList.findIndex(function(x){return(0,o.default)(this,A),x.text==b}.bind(this)))},focusedTime:function(b,A){var x=this;v.forEach(function(E,S){if((0,o.default)(this,x),!(b[S]===A[S]||typeof b[S]>"u")){var C=this[String(E)+"List"].findIndex(function(T){return(0,o.default)(this,x),T.text===b[S]}.bind(this));this.scroll(E,C)}}.bind(this))}},mounted:function(){var b=this;this.$nextTick(function(){return(0,o.default)(this,b),this.compiled=!0}.bind(this))}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(17),i=c(s),f=r(1),e=c(f),l=r(28),n=c(l),t=r(6),o=c(t),d=r(4),u=c(d);function c(p){return p&&p.__esModule?p:{default:p}}var g="ivu-picker";h.default={mixins:[o.default,u.default],components:{iButton:n.default},props:{showTime:!1,isTime:!1,timeDisabled:!1},data:function(){return{prefixCls:g}},computed:{timeClasses:function(){return g+"-confirm-time"},labels:function(){var v=this,y=["time","clear","ok"],b=[this.isTime?"selectDate":"selectTime","clear","ok"];return y.reduce(function(A,x,E){return(0,e.default)(this,v),A[x]=this.t("i.datepicker."+b[E]),A}.bind(this),{})}},methods:{handleClear:function(){this.$emit("on-pick-clear")},handleSuccess:function(){this.$emit("on-pick-success")},handleToggleTime:function(){this.timeDisabled||(this.$emit("on-pick-toggle-time"),this.dispatch("CalendarPicker","focus-input"),this.dispatch("CalendarPicker","update-popper"))},handleTab:function(v){var y=[].concat((0,i.default)(this.$el.children)),b=y[v.shiftKey?"shift":"pop"]();document.activeElement===b&&(v.preventDefault(),v.stopPropagation(),this.dispatch("CalendarPicker","focus-input"))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(172),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(420);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={props:{datePanelLabel:Object,currentView:String,datePrefixCls:String}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(3),e=r(20);function l(n){return n&&n.__esModule?n:{default:n}}h.default={props:{showTime:{type:Boolean,default:!1},format:{type:String,default:"yyyy-MM-dd"},selectionMode:{type:String,validator:function(t){return(0,f.oneOf)(t,["year","month","date","time"])},default:"date"},shortcuts:{type:Array,default:function(){return(0,i.default)(void 0,void 0),[]}.bind(void 0)},disabledDate:{type:Function,default:function(){return(0,i.default)(void 0,void 0),!1}.bind(void 0)},value:{type:Array,default:function(){return(0,i.default)(void 0,void 0),[(0,e.initTimeDate)(),(0,e.initTimeDate)()]}.bind(void 0)},timePickerOptions:{default:function(){return(0,i.default)(void 0,void 0),{}}.bind(void 0),type:Object},showWeekNumbers:{type:Boolean,default:!1},startDate:{type:Date},pickerType:{type:String,require:!0},focusedDate:{type:Date,required:!0}},computed:{isTime:function(){return this.currentView==="time"}},methods:{handleToggleTime:function(){this.currentView=this.currentView==="time"?"date":"time"}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=q(s),f=r(26),e=q(f),l=r(1),n=q(l),t=r(8),o=q(t),d=r(160),u=q(d),c=r(162),g=q(c),p=r(164),v=q(p),y=r(175),b=q(y),A=r(59),x=q(A),E=r(20),S=r(171),C=q(S),T=r(60),k=q(T),M=r(173),P=q(M),N=r(6),F=q(N);function q(I){return I&&I.__esModule?I:{default:I}}var z="ivu-picker-panel",O="ivu-date-picker",R=function(I,D){return(0,n.default)(void 0,void 0),!I||!D?0:I.getTime()-D.getTime()}.bind(void 0);h.default={name:"RangeDatePickerPanel",mixins:[k.default,F.default,P.default],components:{Icon:o.default,DateTable:u.default,YearTable:g.default,MonthTable:v.default,TimePicker:b.default,Confirm:x.default,datePanelLabel:C.default},props:{splitPanels:{type:Boolean,default:!1}},data:function(){var D=this,B=this.value.map(function(L){return(0,n.default)(this,D),L||(0,E.initTimeDate)()}.bind(this)),j=(0,e.default)(B,2),Q=j[0],X=j[1],Z=this.startDate?this.startDate:Q;return{prefixCls:z,datePrefixCls:O,dates:this.value,rangeState:{from:this.value[0],to:this.value[1],selecting:Q&&!X},currentView:this.selectionMode||"range",leftPickerTable:String(this.selectionMode)+"-table",rightPickerTable:String(this.selectionMode)+"-table",leftPanelDate:Z,rightPanelDate:new Date(Z.getFullYear(),Z.getMonth()+1,1)}},computed:{classes:function(){var D;return[z+"-body-wrapper",O+"-with-range",(D={},(0,i.default)(D,z+"-with-sidebar",this.shortcuts.length),(0,i.default)(D,O+"-with-week-numbers",this.showWeekNumbers),D)]},panelBodyClasses:function(){var D;return[z+"-body",(D={},(0,i.default)(D,z+"-body-time",this.showTime),(0,i.default)(D,z+"-body-date",!this.showTime),D)]},leftDatePanelLabel:function(){return this.panelLabelConfig("left")},rightDatePanelLabel:function(){return this.panelLabelConfig("right")},leftDatePanelView:function(){return this.leftPickerTable.split("-").shift()},rightDatePanelView:function(){return this.rightPickerTable.split("-").shift()},timeDisabled:function(){return!(this.dates[0]&&this.dates[1])},preSelecting:function(){var D=String(this.currentView)+"-table";return{left:this.leftPickerTable!==D,right:this.rightPickerTable!==D}},panelPickerHandlers:function(){return{left:this.preSelecting.left?this.handlePreSelection.bind(this,"left"):this.handleRangePick,right:this.preSelecting.right?this.handlePreSelection.bind(this,"right"):this.handleRangePick}}},watch:{value:function(D){var B=D[0]?(0,E.toDate)(D[0]):null,j=D[1]?(0,E.toDate)(D[1]):null;this.dates=[B,j].sort(R),this.rangeState={from:this.dates[0],to:this.dates[1],selecting:!1},this.setPanelDates(this.startDate||this.dates[0]||new Date)},currentView:function(D){var B=this.leftPanelDate.getMonth(),j=this.rightPanelDate.getMonth(),Q=this.leftPanelDate.getFullYear()===this.rightPanelDate.getFullYear();D==="date"&&Q&&B===j&&this.changePanelDate("right","Month",1),D==="month"&&Q&&this.changePanelDate("right","FullYear",1),D==="year"&&Q&&this.changePanelDate("right","FullYear",10)},selectionMode:function(D){this.currentView=D||"range"},focusedDate:function(D){this.setPanelDates(D||new Date)}},methods:{reset:function(){this.currentView=this.selectionMode,this.leftPickerTable=String(this.currentView)+"-table",this.rightPickerTable=String(this.currentView)+"-table"},setPanelDates:function(D){this.leftPanelDate=D;var B=new Date(D.getFullYear(),D.getMonth()+1,1),j=this.dates[1]?this.dates[1].getTime():this.dates[1];this.rightPanelDate=this.splitPanels?new Date(Math.max(j,B.getTime())):B},panelLabelConfig:function(D){var B=this,j=this.t("i.locale"),Q=this.t("i.datepicker.datePanelLabel"),X=function(J){(0,n.default)(this,B);var H=J=="month"?this.showMonthPicker:this.showYearPicker;return function(){return(0,n.default)(this,B),H(D)}.bind(this)}.bind(this),Z=this[String(D)+"PanelDate"],L=(0,E.formatDateLabels)(j,Q,Z),W=L.labels,G=L.separator;return{separator:G,labels:W.map(function(J){return(0,n.default)(this,B),J.handler=X(J.type),J}.bind(this))}},prevYear:function(D){var B=this.currentView==="year"?-10:-1;this.changePanelDate(D,"FullYear",B)},nextYear:function(D){var B=this.currentView==="year"?10:1;this.changePanelDate(D,"FullYear",B)},prevMonth:function(D){this.changePanelDate(D,"Month",-1)},nextMonth:function(D){this.changePanelDate(D,"Month",1)},changePanelDate:function(D,B,j){var Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,X=new Date(this[String(D)+"PanelDate"]);if(B==="FullYear"?X["set"+B](X["get"+B]()+j):X["set"+B](X["get"+B]()+j,1),this[String(D)+"PanelDate"]=X,!!Q)if(this.splitPanels){var Z=D==="left"?"right":"left";D==="left"&&this.leftPanelDate>=this.rightPanelDate&&this.changePanelDate(Z,B,1),D==="right"&&this.rightPanelDate<=this.leftPanelDate&&this.changePanelDate(Z,B,-1)}else{var L=D==="left"?"right":"left",W=this[L+"PanelDate"],G=new Date(W);if(B==="Month"){var J=new Date(G.getFullYear(),G.getMonth()+j+1,0).getDate();G.setDate(Math.min(J,G.getDate()))}G["set"+String(B)](G["get"+String(B)]()+j),this[L+"PanelDate"]=G}},showYearPicker:function(D){this[String(D)+"PickerTable"]="year-table"},showMonthPicker:function(D){this[String(D)+"PickerTable"]="month-table"},handlePreSelection:function(D,B){this[String(D)+"PanelDate"]=B;var j=this[String(D)+"PickerTable"];if(j==="year-table"?this[String(D)+"PickerTable"]="month-table":this[String(D)+"PickerTable"]=String(this.currentView)+"-table",!this.splitPanels){var Q=D==="left"?"right":"left";this[Q+"PanelDate"]=B;var X=Q==="left"?-1:1;this.changePanelDate(Q,"Month",X,!1)}},handleRangePick:function(D,B){if(this.rangeState.selecting||this.currentView==="time"){if(this.currentView==="time")this.dates=D;else{var j=[this.rangeState.from,D].sort(R),Q=(0,e.default)(j,2),X=Q[0],Z=Q[1];this.dates=[X,Z],this.rangeState={from:X,to:Z,selecting:!1}}this.handleConfirm(!1,B||"date")}else this.rangeState={from:D,to:null,selecting:!0}},handleChangeRange:function(D){this.rangeState.to=D}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(176),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(423);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(21),i=S(s),f=r(2),e=S(f),l=r(26),n=S(l),t=r(1),o=S(t),d=r(168),u=S(d),c=r(59),g=S(c),p=r(58),v=S(p),y=r(60),b=S(y),A=r(6),x=S(A),E=r(20);function S(M){return M&&M.__esModule?M:{default:M}}var C="ivu-picker-panel",T="ivu-time-picker",k=function(M){return(0,o.default)(void 0,void 0),M[0].toUpperCase()+M.slice(1)}.bind(void 0);h.default={name:"RangeTimePickerPanel",mixins:[b.default,x.default,v.default],components:{TimeSpinner:u.default,Confirm:g.default},props:{steps:{type:Array,default:function(){return(0,o.default)(void 0,void 0),[]}.bind(void 0)},format:{type:String,default:"HH:mm:ss"},value:{type:Array,required:!0}},data:function(){var P=this.value.slice(),N=(0,n.default)(P,2),F=N[0],q=N[1];return{prefixCls:C,timePrefixCls:T,showDate:!1,dateStart:F||(0,E.initTimeDate)(),dateEnd:q||(0,E.initTimeDate)()}},computed:{classes:function(){return[C+"-body-wrapper",T+"-with-range",(0,e.default)({},T+"-with-seconds",this.showSeconds)]},showSeconds:function(){return!!(this.format||"").match(/ss/)},leftDatePanelLabel:function(){return this.panelLabelConfig(this.date)},rightDatePanelLabel:function(){return this.panelLabelConfig(this.dateEnd)}},watch:{value:function(P){var N=P.slice(),F=(0,n.default)(N,2),q=F[0],z=F[1];this.dateStart=q||(0,E.initTimeDate)(),this.dateEnd=z||(0,E.initTimeDate)()}},methods:{panelLabelConfig:function(P){var N=this.t("i.locale"),F=this.t("i.datepicker.datePanelLabel"),q=(0,E.formatDateLabels)(N,F,P||(0,E.initTimeDate)()),z=q.labels,O=q.separator;return[z[0].label,O,z[1].label].join("")},handleChange:function(P,N){var F=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,z=new Date(this.dateStart),O=new Date(this.dateEnd);(0,i.default)(P).forEach(function(R){(0,o.default)(this,F),z["set"+String(k(R))](P[R])}.bind(this)),(0,i.default)(N).forEach(function(R){(0,o.default)(this,F),O["set"+String(k(R))](N[R])}.bind(this)),O<z&&(O=z),q&&this.$emit("on-pick",[z,O],"time")},handleStartChange:function(P){this.handleChange(P,{})},handleEndChange:function(P){this.handleChange({},P)},updateScroll:function(){this.$refs.timeSpinner.updateScroll(),this.$refs.timeSpinnerEnd.updateScroll()}},mounted:function(){this.$parent&&this.$parent.$options.name==="DatePicker"&&(this.showDate=!0)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=e(s),f=r(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-divider";h.default={name:"Divider",props:{type:{type:String,default:"horizontal",validator:function(t){return(0,f.oneOf)(t,["horizontal","vertical"])}},orientation:{type:String,default:"center",validator:function(t){return(0,f.oneOf)(t,["left","right","center"])}},dashed:{type:Boolean,default:!1},size:{validator:function(t){return(0,f.oneOf)(t,["small","default"])},default:"default"},plain:{type:Boolean,default:!1}},computed:{hasSlot:function(){return!!this.$slots.default},classes:function(){var t;return[""+l,l+"-"+String(this.type),l+"-"+String(this.size),(t={},(0,i.default)(t,l+"-with-text",this.hasSlot&&this.orientation==="center"),(0,i.default)(t,l+"-with-text-"+String(this.orientation),this.hasSlot),(0,i.default)(t,l+"-dashed",!!this.dashed),(0,i.default)(t,l+"-plain",this.plain),t)]},slotClasses:function(){return[l+"-inner-text"]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=A(s),f=r(15),e=A(f),l=r(2),n=A(l),t=r(19),o=A(t),d=r(3),u=r(23),c=A(u),g=r(4),p=A(g),v=r(87),y=A(v),b=r(12);function A(E){return E&&E.__esModule?E:{default:E}}var x="ivu-drawer";h.default={name:"Drawer",mixins:[p.default,y.default],components:{Icon:o.default},directives:{TransferDom:c.default},props:{value:{type:Boolean,default:!1},title:{type:String},width:{type:[Number,String],default:256},height:{type:[Number,String],default:256},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},mask:{type:Boolean,default:!0},maskStyle:{type:Object},styles:{type:Object},scrollable:{type:Boolean,default:!1},placement:{validator:function(S){return(0,d.oneOf)(S,["left","right","top","bottom"])},default:"right"},zIndex:{type:Number,default:1e3},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!0:this.$IVIEW.transfer}},className:{type:String},inner:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},beforeClose:Function},data:function(){return{prefixCls:x,visible:this.value,wrapShow:!1,showHead:!0,canMove:!1,dragWidth:this.width,dragHeight:this.height,wrapperWidth:this.width,wrapperHeight:this.height,wrapperLeft:0,minWidth:256,minHeight:256}},computed:{wrapClasses:function(){var S;return[x+"-wrap",(S={},(0,n.default)(S,x+"-hidden",!this.wrapShow),(0,n.default)(S,""+String(this.className),!!this.className),(0,n.default)(S,x+"-no-mask",!this.mask),(0,n.default)(S,x+"-wrap-inner",this.inner),(0,n.default)(S,x+"-wrap-dragging",this.canMove),S)]},mainStyles:function(){var S={};if(this.placement==="left"||this.placement==="right"){var C=parseInt(this.dragWidth),T={width:C<=100?String(C)+"%":String(C)+"px"};(0,e.default)(S,T)}else{var k=parseInt(this.dragHeight),M={height:k<=100?String(k)+"%":String(k)+"px"};(0,e.default)(S,M)}return S},contentClasses:function(){return[x+"-content",(0,n.default)({},x+"-content-no-mask",!this.mask)]},classes:function(){var S;return[""+x,x+"-"+String(this.placement),(S={},(0,n.default)(S,x+"-no-header",!this.showHead),(0,n.default)(S,x+"-inner",this.inner),S)]},maskClasses:function(){return[x+"-mask",(0,n.default)({},x+"-mask-inner",this.inner)]},transitionName:function(){return this.placement==="left"||this.placement==="right"?"move-"+String(this.placement):this.placement==="top"?"move-up":"move-down"}},methods:{close:function(){var S=this;if(!this.beforeClose)return this.handleClose();var C=this.beforeClose();C&&C.then?C.then(function(){(0,i.default)(this,S),this.handleClose()}.bind(this)):this.handleClose()},handleClose:function(){this.visible=!1,this.$emit("input",!1),this.$emit("on-close")},handleMask:function(){this.maskClosable&&this.mask&&this.close()},handleWrapClick:function(S){var C=S.target.getAttribute("class");C&&C.indexOf(x+"-wrap")>-1&&this.handleMask()},handleMousemove:function(S){if(!(!this.canMove||!this.draggable)){this.handleSetWrapperWidth();var C=S.pageX-this.wrapperLeft,T=this.placement==="right"?this.wrapperWidth-C:C;T=Math.max(T,parseFloat(this.minWidth)),S.atMin=T===parseFloat(this.minWidth),T<=100&&(T=T/this.wrapperWidth*100),this.dragWidth=T,this.$emit("on-resize-width",parseInt(this.dragWidth))}},handleSetWrapperWidth:function(){var S=this.$el.getBoundingClientRect(),C=S.width,T=S.left;this.wrapperWidth=C,this.wrapperLeft=T},handleMouseup:function(){this.draggable&&(this.canMove=!1)},handleTriggerMousedown:function(){this.canMove=!0,window.getSelection().removeAllRanges()}},mounted:function(){this.visible&&(this.wrapShow=!0);var S=!0;this.$slots.header===void 0&&!this.title&&(S=!1),this.showHead=S,(0,b.on)(document,"mousemove",this.handleMousemove),(0,b.on)(document,"mouseup",this.handleMouseup),this.handleSetWrapperWidth()},beforeDestroy:function(){(0,b.off)(document,"mousemove",this.handleMousemove),(0,b.off)(document,"mouseup",this.handleMouseup),this.removeScrollEffect()},watch:{value:function(S){this.visible=S},visible:function(S){var C=this;S===!1?this.timer=setTimeout(function(){(0,i.default)(this,C),this.wrapShow=!1;var T=(0,d.findBrothersComponents)(this,"Drawer")||[],k=(0,d.findComponentsUpward)(this,"Drawer")||[],M=[].concat(T).concat(k),P=M.some(function(N){return(0,i.default)(this,C),N.visible&&!N.scrollable}.bind(this));P||this.removeScrollEffect()}.bind(this),300):(this.timer&&clearTimeout(this.timer),this.wrapShow=!0,this.scrollable||this.addScrollEffect()),this.broadcast("Table","on-visible-change",S),this.broadcast("Slider","on-visible-change",S),this.$emit("on-visible-change",S)},scrollable:function(S){S?this.removeScrollEffect():this.addScrollEffect()},title:function(S){this.$slots.header===void 0&&(this.showHead=!!S)},width:function(S){this.dragWidth=S},height:function(S){this.dragHeight=S}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=g(s),f=r(2),e=g(f),l=r(36),n=g(l),t=r(82),o=g(t),d=r(23),u=g(d),c=r(3);function g(v){return v&&v.__esModule?v:{default:v}}var p="ivu-dropdown";h.default={name:"Dropdown",directives:{clickOutside:o.default,TransferDom:u.default},components:{Drop:n.default},props:{trigger:{validator:function(y){return(0,c.oneOf)(y,["click","hover","custom","contextMenu"])},default:"hover"},placement:{validator:function(y){return(0,c.oneOf)(y,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},visible:{type:Boolean,default:!1},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},transferClassName:{type:String},stopPropagation:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!0}},eventsEnabled:{type:Boolean,default:!1}},computed:{transition:function(){return["bottom-start","bottom","bottom-end"].indexOf(this.placement)>-1?"slide-up":"fade"},dropdownCls:function(){var y;return y={},(0,e.default)(y,p+"-transfer",this.transfer),(0,e.default)(y,this.transferClassName,this.transferClassName),y},relClasses:function(){return[p+"-rel",(0,e.default)({},p+"-rel-user-select-none",this.trigger==="contextMenu")]}},data:function(){return{prefixCls:p,currentVisible:this.visible}},watch:{visible:function(y){this.currentVisible=y},currentVisible:function(y){y?this.$refs.drop.update():this.$refs.drop.destroy(),this.$emit("on-visible-change",y)}},methods:{handleClick:function(){if(this.trigger==="custom"||this.trigger!=="click")return!1;var y=this.hasParent();y||(this.currentVisible=!this.currentVisible)},handleRightClick:function(){if(this.trigger==="custom"||this.trigger!=="contextMenu")return!1;this.currentVisible=!this.currentVisible},handleMouseenter:function(){var y=this;if(this.trigger==="custom"||this.trigger!=="hover")return!1;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,i.default)(this,y),this.currentVisible=!0}.bind(this),250)},handleMouseleave:function(){var y=this;if(this.trigger==="custom"||this.trigger!=="hover")return!1;this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,i.default)(this,y),this.currentVisible=!1}.bind(this),150))},onClickoutside:function(y){this.handleClose(),this.handleRightClose(),this.currentVisible&&this.$emit("on-clickoutside",y)},handleClose:function(){if(this.trigger==="custom"||this.trigger!=="click")return!1;this.currentVisible=!1},handleRightClose:function(){if(this.trigger==="custom"||this.trigger!=="contextMenu")return!1;this.currentVisible=!1},hasParent:function(){var y=(0,c.findComponentUpward)(this,"Dropdown");return y||!1}},mounted:function(){var y=this;this.$on("on-click",function(b){if((0,i.default)(this,y),!this.stopPropagation){var A=this.hasParent();A&&A.$emit("on-click",b)}}.bind(this)),this.$on("on-hover-click",function(){(0,i.default)(this,y);var b=this.hasParent();b?(this.$nextTick(function(){if((0,i.default)(this,y),this.trigger==="custom")return!1;this.currentVisible=!1}.bind(this)),b.$emit("on-hover-click")):this.$nextTick(function(){if((0,i.default)(this,y),this.trigger==="custom")return!1;this.currentVisible=!1}.bind(this))}.bind(this)),this.$on("on-haschild-click",function(){(0,i.default)(this,y),this.$nextTick(function(){if((0,i.default)(this,y),this.trigger==="custom")return!1;this.currentVisible=!0}.bind(this));var b=this.hasParent();b&&b.$emit("on-haschild-click")}.bind(this))}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={name:"DropdownMenu"}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=e(s),f=r(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-dropdown-item";h.default={name:"DropdownItem",props:{name:{type:[String,Number]},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},divided:{type:Boolean,default:!1}},computed:{classes:function(){var t;return[""+l,(t={},(0,i.default)(t,l+"-disabled",this.disabled),(0,i.default)(t,l+"-selected",this.selected),(0,i.default)(t,l+"-divided",this.divided),t)]}},methods:{handleClick:function(){if(!this.disabled){var t=(0,f.findComponentUpward)(this,"Dropdown"),o=this.$parent&&this.$parent.$options.name==="Dropdown";o?this.$parent.$emit("on-haschild-click"):t&&t.$options.name==="Dropdown"&&t.$emit("on-hover-click"),t.$emit("on-click",this.name)}}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(183),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(437);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s="ivu-layout";h.default={name:"Footer",computed:{wrapClasses:function(){return s+"-footer"}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(185),i=o(s),f=r(1),e=o(f),l=r(2),n=o(l),t=r(3);function o(u){return u&&u.__esModule?u:{default:u}}var d="ivu-form";h.default={name:"iForm",props:{model:{type:Object},rules:{type:Object},labelWidth:{type:Number},labelPosition:{validator:function(c){return(0,t.oneOf)(c,["left","right","top"])},default:"right"},inline:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},autocomplete:{validator:function(c){return(0,t.oneOf)(c,["on","off"])},default:"off"},hideRequiredMark:{type:Boolean,default:!1},labelColon:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1}},provide:function(){return{FormInstance:this}},data:function(){return{fields:[]}},computed:{classes:function(){var c;return[""+d,d+"-label-"+String(this.labelPosition),(c={},(0,n.default)(c,d+"-inline",this.inline),(0,n.default)(c,d+"-hide-required-mark",this.hideRequiredMark),c)]},colon:function(){var c="";return this.labelColon&&(c=typeof this.labelColon=="boolean"?":":this.labelColon),c}},methods:{resetFields:function(){var c=this;this.fields.forEach(function(g){(0,e.default)(this,c),g.resetField()}.bind(this))},validate:function(c){var g=this;return new i.default(function(p){(0,e.default)(this,g);var v=!0,y=0;this.fields.length===0&&(p(v),typeof c=="function"&&c(v)),this.fields.forEach(function(b){(0,e.default)(this,g),b.validate("",function(A){(0,e.default)(this,g),A&&(v=!1),++y===this.fields.length&&(p(v),typeof c=="function"&&c(v))}.bind(this))}.bind(this))}.bind(this))},validateField:function(c,g){var p=this,v=this.fields.filter(function(y){return(0,e.default)(this,p),y.prop===c}.bind(this))[0];if(!v)throw new Error("[iView warn]: must call validateField with valid prop string!");v.validate("",g)}},watch:{rules:function(){this.validate()}},created:function(){var c=this;this.$on("on-form-item-add",function(g){return(0,e.default)(this,c),g&&this.fields.push(g),!1}.bind(this)),this.$on("on-form-item-remove",function(g){return(0,e.default)(this,c),g.prop&&this.fields.splice(this.fields.indexOf(g),1),!1}.bind(this))}}},function(_,h,r){_.exports={default:r(440),__esModule:!0}},function(_,h,r){var s=r(22),i=r(43),f=r(10)("species");_.exports=function(e,l){var n=s(e).constructor,t;return n===void 0||(t=s(n)[f])==null?l:i(t)}},function(_,h,r){var s=r(24),i=r(442),f=r(105),e=r(69),l=r(9),n=l.process,t=l.setImmediate,o=l.clearImmediate,d=l.MessageChannel,u=l.Dispatch,c=0,g={},p="onreadystatechange",v,y,b,A=function(){var E=+this;if(g.hasOwnProperty(E)){var S=g[E];delete g[E],S()}},x=function(E){A.call(E.data)};(!t||!o)&&(t=function(S){for(var C=[],T=1;arguments.length>T;)C.push(arguments[T++]);return g[++c]=function(){i(typeof S=="function"?S:Function(S),C)},v(c),c},o=function(S){delete g[S]},r(41)(n)=="process"?v=function(E){n.nextTick(s(A,E,1))}:u&&u.now?v=function(E){u.now(s(A,E,1))}:d?(y=new d,b=y.port2,y.port1.onmessage=x,v=s(b.postMessage,b,1)):l.addEventListener&&typeof postMessage=="function"&&!l.importScripts?(v=function(E){l.postMessage(E+"","*")},l.addEventListener("message",x,!1)):p in e("script")?v=function(E){f.appendChild(e("script"))[p]=function(){f.removeChild(this),A.call(E)}}:v=function(E){setTimeout(s(A,E,1),0)}),_.exports={set:t,clear:o}},function(_,h){_.exports=function(r){try{return{e:!1,v:r()}}catch(s){return{e:!0,v:s}}}},function(_,h,r){var s=r(22),i=r(18),f=r(89);_.exports=function(e,l){if(s(e),i(l)&&l.constructor===e)return l;var n=f.f(e),t=n.resolve;return t(l),n.promise}},function(_,h,r){var s=r(9),i=r(5),f=r(14),e=r(13),l=r(10)("species");_.exports=function(n){var t=typeof i[n]=="function"?i[n]:s[n];e&&t&&!t[l]&&f.f(t,l,{configurable:!0,get:function(){return this}})}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=d(s),f=r(2),e=d(f),l=r(449),n=d(l),t=r(4),o=d(t);function d(g){return g&&g.__esModule?g:{default:g}}var u="ivu-form-item";function c(g,p){var v=g;p=p.replace(/\[(\w+)\]/g,".$1"),p=p.replace(/^\./,"");for(var y=p.split("."),b=0,A=y.length;b<A-1;++b){var x=y[b];if(x in v)v=v[x];else throw new Error("[iView warn]: please transfer a valid prop path to form item!")}return{o:v,k:y[b],v:v[y[b]]}}h.default={name:"FormItem",mixins:[o.default],props:{label:{type:String,default:""},labelWidth:{type:Number},prop:{type:String},required:{type:Boolean,default:!1},rules:{type:[Object,Array]},error:{type:String},validateStatus:{type:Boolean},showMessage:{type:Boolean,default:!0},labelFor:{type:String}},data:function(){return{prefixCls:u,isRequired:!1,validateState:"",validateMessage:"",validateDisabled:!1,validator:{}}},watch:{error:{handler:function(p){this.validateMessage=p,this.validateState=p?"error":""},immediate:!0},validateStatus:function(p){this.validateState=p},rules:function(){this.setRules()},required:function(p,v){this.isRequired=p,v&&!p&&this.resetField()}},inject:["FormInstance"],computed:{classes:function(){var p;return[""+u,(p={},(0,e.default)(p,u+"-required",this.required||this.isRequired),(0,e.default)(p,u+"-error",this.validateState==="error"),(0,e.default)(p,u+"-validating",this.validateState==="validating"),p)]},fieldValue:function(){var p=this.FormInstance.model;if(!(!p||!this.prop)){var v=this.prop;return v.indexOf(":")!==-1&&(v=v.replace(/:/,".")),c(p,v).v}},labelStyles:function(){var p={},v=this.labelWidth===0||this.labelWidth?this.labelWidth:this.FormInstance.labelWidth;return(v||v===0)&&(p.width=String(v)+"px"),p},contentStyles:function(){var p={},v=this.labelWidth===0||this.labelWidth?this.labelWidth:this.FormInstance.labelWidth;return(v||v===0)&&(p.marginLeft=String(v)+"px"),p}},methods:{setRules:function(){var p=this,v=this.getRules();v.length&&this.required||(v.length?v.every(function(y){(0,i.default)(this,p),this.isRequired=y.required}.bind(this)):this.required&&(this.isRequired=this.required),this.$off("on-form-blur",this.onFieldBlur),this.$off("on-form-change",this.onFieldChange),this.$on("on-form-blur",this.onFieldBlur),this.$on("on-form-change",this.onFieldChange))},getRules:function(){var p=this.FormInstance.rules,v=this.rules;return p=p?p[this.prop]:[],[].concat(v||p||[])},getFilteredRule:function(p){var v=this,y=this.getRules();return y.filter(function(b){return(0,i.default)(this,v),!b.trigger||b.trigger.indexOf(p)!==-1}.bind(this))},validate:function(p){var v=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},b=this.getFilteredRule(p);if(!b||b.length===0)if(this.required)b=[{required:!0}];else return y(),!0;this.validateState="validating";var A={};A[this.prop]=b;var x=new n.default(A),E={};E[this.prop]=this.fieldValue,x.validate(E,{firstFields:!0},function(S){(0,i.default)(this,v),this.validateState=S?"error":"success",this.validateMessage=S?S[0].message:"",y(this.validateMessage),this.FormInstance&&this.FormInstance.$emit("on-validate",this.prop,!S,this.validateMessage||null)}.bind(this)),this.validateDisabled=!1},resetField:function(){this.validateState="",this.validateMessage="";var p=this.FormInstance.model,v=this.fieldValue,y=this.prop;y.indexOf(":")!==-1&&(y=y.replace(/:/,"."));var b=c(p,y);Array.isArray(v)&&this.initialValue!==null?(this.validateDisabled=!0,b.o[b.k]=[].concat(this.initialValue)):(this.validateDisabled=!0,b.o[b.k]=this.initialValue)},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){if(this.validateDisabled){this.validateDisabled=!1;return}this.validate("change")}},mounted:function(){this.prop&&(this.dispatch("iForm","on-form-item-add",this),Object.defineProperty(this,"initialValue",{value:this.fieldValue}),this.setRules())},beforeDestroy:function(){this.dispatch("iForm","on-form-item-remove",this)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(193),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(453);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s="ivu-layout";h.default={name:"Header",computed:{wrapClasses:function(){return s+"-header"}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(195),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(456);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=u(s),f=r(2),e=u(f),l=r(3),n=r(4),t=u(n),o=r(11),d=u(o);function u(v){return v&&v.__esModule?v:{default:v}}var c="ivu-input-number",g="ivu-icon";function p(v,y){var b=void 0,A=void 0,x=void 0;try{b=v.toString().split(".")[1].length}catch{b=0}try{A=y.toString().split(".")[1].length}catch{A=0}return x=Math.pow(10,Math.max(b,A)),(Math.round(v*x)+Math.round(y*x))/x}h.default={name:"InputNumber",mixins:[t.default,d.default],props:{max:{type:Number,default:1/0},min:{type:Number,default:-1/0},step:{type:Number,default:1},activeChange:{type:Boolean,default:!0},value:{type:Number,default:1},size:{validator:function(y){return(0,l.oneOf)(y,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},name:{type:String},precision:{type:Number},elementId:{type:String},formatter:{type:Function},parser:{type:Function},placeholder:{type:String,default:""},controlsOutside:{type:Boolean,default:!1}},data:function(){return{focused:!1,upDisabled:!1,downDisabled:!1,currentValue:this.value}},computed:{wrapClasses:function(){var y;return[""+c,(y={},(0,e.default)(y,c+"-"+String(this.size),!!this.size),(0,e.default)(y,c+"-disabled",this.itemDisabled),(0,e.default)(y,c+"-focused",this.focused),(0,e.default)(y,c+"-controls-outside",this.controlsOutside),y)]},handlerClasses:function(){return c+"-handler-wrap"},upClasses:function(){return[c+"-handler",c+"-handler-up",(0,e.default)({},c+"-handler-up-disabled",this.upDisabled)]},innerUpClasses:function(){return c+"-handler-up-inner "+g+" "+g+"-ios-arrow-up"},downClasses:function(){return[c+"-handler",c+"-handler-down",(0,e.default)({},c+"-handler-down-disabled",this.downDisabled)]},innerDownClasses:function(){return c+"-handler-down-inner "+g+" "+g+"-ios-arrow-down"},inputWrapClasses:function(){return c+"-input-wrap"},inputClasses:function(){return c+"-input"},precisionValue:function(){return this.currentValue?this.precision?this.currentValue.toFixed(this.precision):this.currentValue:this.currentValue},formatterValue:function(){return this.formatter&&this.precisionValue!==null?this.formatter(this.precisionValue):this.precisionValue}},methods:{preventDefault:function(y){y.preventDefault()},up:function(y){var b=Number(y.target.value);if(this.upDisabled&&isNaN(b))return!1;this.changeStep("up",y)},down:function(y){var b=Number(y.target.value);if(this.downDisabled&&isNaN(b))return!1;this.changeStep("down",y)},changeStep:function(y,b){if(this.itemDisabled||this.readonly)return!1;var A=Number(b.target.value),x=Number(this.currentValue),E=Number(this.step);if(isNaN(x))return!1;if(!isNaN(A)){if(y==="up")if(p(A,E)<=this.max)x=A;else return!1;else if(y==="down")if(p(A,-E)>=this.min)x=A;else return!1}y==="up"?x=p(x,E):y==="down"&&(x=p(x,-E)),this.setValue(x)},setValue:function(y){var b=this;y&&!isNaN(this.precision)&&(y=Number(Number(y).toFixed(this.precision)));var A=this.min,x=this.max;y!==null&&(y>x?y=x:y<A&&(y=A)),this.$nextTick(function(){(0,i.default)(this,b),this.currentValue=y,this.$emit("input",y),this.$emit("on-change",y),this.dispatch("FormItem","on-form-change",y)}.bind(this))},focus:function(y){this.focused=!0,this.$emit("on-focus",y)},blur:function(){this.focused=!1,this.$emit("on-blur"),(0,l.findComponentUpward)(this,["DatePicker","TimePicker","Cascader","Search"])||this.dispatch("FormItem","on-form-blur",this.currentValue)},keyDown:function(y){y.keyCode===38?(y.preventDefault(),this.up(y)):y.keyCode===40&&(y.preventDefault(),this.down(y))},change:function(y){if(!(y.type=="change"&&this.activeChange)&&!(y.type=="input"&&!this.activeChange)){var b=y.target.value.trim();this.parser&&(b=this.parser(b));var A=b.length===0;if(A){this.setValue(null);return}y.type=="input"&&b.match(/^\-?\.?$|\.$/)||(b=Number(b),isNaN(b)?y.target.value=this.currentValue:(this.currentValue=b,this.setValue(b)))}},changeVal:function(y){if(y=Number(y),isNaN(y))this.upDisabled=!0,this.downDisabled=!0;else{var b=this.step;this.upDisabled=y+b>this.max,this.downDisabled=y-b<this.min}}},mounted:function(){this.changeVal(this.currentValue)},watch:{value:function(y){this.currentValue=y},currentValue:function(y){this.changeVal(y)},min:function(){this.changeVal(this.currentValue)},max:function(){this.changeVal(this.currentValue)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(459),i=b(s),f=r(2),e=b(f),l=r(185),n=b(l),t=r(1),o=b(t),d=r(463),u=b(d),c=r(464),g=b(c),p=r(12),v=r(6),y=b(v);function b(S){return S&&S.__esModule?S:{default:S}}var A="ivu-scroll",x={sensitivity:10,minimumStartDragOffset:5},E=function(){return(0,o.default)(void 0,void 0),n.default.resolve()}.bind(void 0);h.default={name:"Scroll",mixins:[y.default],components:{loader:g.default},props:{height:{type:[Number,String],default:300},onReachTop:{type:Function},onReachBottom:{type:Function},onReachEdge:{type:Function},loadingText:{type:String},distanceToEdge:[Number,Array],stopSlide:{type:Boolean,default:!1}},data:function(){var C=this,T=this.calculateProximityThreshold();return{showTopLoader:!1,showBottomLoader:!1,showBodyLoader:!1,lastScroll:0,reachedTopScrollLimit:!0,reachedBottomScrollLimit:!1,topRubberPadding:0,bottomRubberPadding:0,rubberRollBackTimeout:!1,isLoading:!1,pointerTouchDown:null,touchScroll:!1,handleScroll:function(){(0,o.default)(this,C)}.bind(this),pointerUpHandler:function(){(0,o.default)(this,C)}.bind(this),pointerMoveHandler:function(){(0,o.default)(this,C)}.bind(this),topProximityThreshold:T[0],bottomProximityThreshold:T[1]}},computed:{wrapClasses:function(){return A+"-wrapper"},scrollContainerClasses:function(){return[A+"-container",(0,e.default)({},A+"-container-loading",this.showBodyLoader&&this.stopSlide)]},slotContainerClasses:function(){return[A+"-content",(0,e.default)({},A+"-content-loading",this.showBodyLoader)]},loaderClasses:function(){return A+"-loader"},wrapperPadding:function(){return{paddingTop:this.topRubberPadding+"px",paddingBottom:this.bottomRubberPadding+"px"}},localeLoadingText:function(){return this.loadingText===void 0?this.t("i.select.loading"):this.loadingText}},methods:{waitOneSecond:function(){var C=this;return new n.default(function(T){(0,o.default)(this,C),setTimeout(T,1e3)}.bind(this))},calculateProximityThreshold:function(){var C=this.distanceToEdge;return typeof C>"u"?[20,20]:Array.isArray(C)?C:[C,C]},onCallback:function(C){var T=this;this.isLoading=!0,this.showBodyLoader=!0,C>0?(this.showTopLoader=!0,this.topRubberPadding=20):function(){T.showBottomLoader=!0,T.bottomRubberPadding=20;for(var P=0,N=T.$refs.scrollContainer,F=N.scrollTop,q=0;q<20;q++)setTimeout(function(){(0,o.default)(this,T),P=Math.max(P,this.$refs.bottomLoader.getBoundingClientRect().height),N.scrollTop=F+P}.bind(T),q*50)}();var k=[this.waitOneSecond(),this.onReachEdge?this.onReachEdge(C):E()];k.push(C>0?this.onReachTop?this.onReachTop():E():this.onReachBottom?this.onReachBottom():E());var M=setTimeout(function(){(0,o.default)(this,T),this.reset()}.bind(this),5e3);n.default.all(k).then(function(){(0,o.default)(this,T),clearTimeout(M),this.reset()}.bind(this))},reset:function(){var C=this;["showTopLoader","showBottomLoader","showBodyLoader","isLoading","reachedTopScrollLimit","reachedBottomScrollLimit"].forEach(function(T){return(0,o.default)(this,C),this[T]=!1}.bind(this)),this.lastScroll=0,this.topRubberPadding=0,this.bottomRubberPadding=0,clearInterval(this.rubberRollBackTimeout),this.touchScroll&&setTimeout(function(){(0,o.default)(this,C),(0,p.off)(window,"touchend",this.pointerUpHandler),this.$refs.scrollContainer.removeEventListener("touchmove",this.pointerMoveHandler),this.touchScroll=!1}.bind(this),500)},onWheel:function(C){if(!this.isLoading){var T=C.wheelDelta?C.wheelDelta:-(C.detail||C.deltaY);this.stretchEdge(T)}},stretchEdge:function(C){var T=this;if(clearTimeout(this.rubberRollBackTimeout),!this.onReachEdge){if(C>0){if(!this.onReachTop)return}else if(!this.onReachBottom)return}this.rubberRollBackTimeout=setTimeout(function(){(0,o.default)(this,T),this.isLoading||this.reset()}.bind(this),250),C>0&&this.reachedTopScrollLimit?(this.topRubberPadding+=5-this.topRubberPadding/5,this.topRubberPadding>this.topProximityThreshold&&this.onCallback(1)):C<0&&this.reachedBottomScrollLimit?(this.bottomRubberPadding+=6-this.bottomRubberPadding/4,this.bottomRubberPadding>this.bottomProximityThreshold&&this.onCallback(-1)):this.onScroll()},onScroll:function(){var C=this.$refs.scrollContainer;if(!(this.isLoading||!C)){var T=(0,i.default)(this.lastScroll-C.scrollTop),k=C.scrollHeight-C.clientHeight-C.scrollTop,M=this.topProximityThreshold<0?this.topProximityThreshold:0,P=this.bottomProximityThreshold<0?this.bottomProximityThreshold:0;T==-1&&k+P<=x.sensitivity?this.reachedBottomScrollLimit=!0:T>=0&&C.scrollTop+M<=0?this.reachedTopScrollLimit=!0:(this.reachedTopScrollLimit=!1,this.reachedBottomScrollLimit=!1,this.lastScroll=C.scrollTop)}},getTouchCoordinates:function(C){return{x:C.touches[0].pageX,y:C.touches[0].pageY}},onPointerDown:function(C){var T=this;if(!this.isLoading){if(C.type=="touchstart"){var k=this.$refs.scrollContainer;this.reachedTopScrollLimit?k.scrollTop=5:this.reachedBottomScrollLimit&&(k.scrollTop-=5)}C.type=="touchstart"&&this.$refs.scrollContainer.scrollTop==0&&(this.$refs.scrollContainer.scrollTop=5),this.pointerTouchDown=this.getTouchCoordinates(C),(0,p.on)(window,"touchend",this.pointerUpHandler),this.$refs.scrollContainer.parentElement.addEventListener("touchmove",function(M){(0,o.default)(this,T),M.stopPropagation(),this.pointerMoveHandler(M)}.bind(this),{passive:!1,useCapture:!0})}},onPointerMove:function(C){if(this.pointerTouchDown&&!this.isLoading){var T=this.getTouchCoordinates(C),k=T.y-this.pointerTouchDown.y;if(this.stretchEdge(k),!this.touchScroll){var M=Math.abs(k)>x.minimumStartDragOffset;M&&(this.touchScroll=!0)}}},onPointerUp:function(){this.pointerTouchDown=null}},created:function(){this.handleScroll=(0,u.default)(this.onScroll,150,{leading:!1}),this.pointerUpHandler=this.onPointerUp.bind(this),this.pointerMoveHandler=(0,u.default)(this.onPointerMove,50,{leading:!1})}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=t(s),f=r(91),e=t(f),l=r(8),n=t(l);function t(d){return d&&d.__esModule?d:{default:d}}var o="ivu-scroll";h.default={props:["text","active","spinnerHeight"],components:{Spin:e.default,Icon:n.default},computed:{wrapperClasses:function(){return[o+"-loader-wrapper",(0,i.default)({},o+"-loader-wrapper-active",this.active)]},spinnerClasses:function(){return o+"-spinner"},iconClasses:function(){return o+"-spinner-icon"},textClasses:function(){return o+"-loader-text"}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=n(s),f=r(3),e=r(87),l=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var t="ivu-spin";h.default={name:"Spin",mixins:[l.default],props:{size:{validator:function(d){return(0,f.oneOf)(d,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},fix:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},data:function(){return{showText:!1,visible:!1}},computed:{classes:function(){var d;return[""+t,(d={},(0,i.default)(d,t+"-"+String(this.size),!!this.size),(0,i.default)(d,t+"-fix",this.fix),(0,i.default)(d,t+"-show-text",this.showText),(0,i.default)(d,t+"-fullscreen",this.fullscreen),d)]},mainClasses:function(){return t+"-main"},dotClasses:function(){return t+"-dot"},textClasses:function(){return t+"-text"},fullscreenVisible:function(){return this.fullscreen?this.visible:!0}},watch:{visible:function(d){d?this.addScrollEffect():this.removeScrollEffect()}},mounted:function(){this.showText=this.$slots.default!==void 0}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=d(s),f=r(2),e=d(f),l=r(3),n=r(12),t=r(470),o=d(t);function d(u){return u&&u.__esModule?u:{default:u}}h.default={name:"Split",components:{Trigger:o.default},props:{value:{type:[Number,String],default:.5},mode:{validator:function(c){return(0,l.oneOf)(c,["horizontal","vertical"])},default:"horizontal"},min:{type:[Number,String],default:"40px"},max:{type:[Number,String],default:"40px"}},data:function(){return{prefix:"ivu-split",offset:0,oldOffset:0,isMoving:!1,computedMin:0,computedMax:0,currentValue:.5}},computed:{wrapperClasses:function(){return[String(this.prefix)+"-wrapper",this.isMoving?"no-select":""]},paneClasses:function(){return[String(this.prefix)+"-pane",(0,e.default)({},String(this.prefix)+"-pane-moving",this.isMoving)]},isHorizontal:function(){return this.mode==="horizontal"},anotherOffset:function(){return 100-this.offset},valueIsPx:function(){return typeof this.value=="string"},offsetSize:function(){return this.isHorizontal?"offsetWidth":"offsetHeight"}},methods:{px2percent:function(c,g){return parseFloat(c)/parseFloat(g)},getComputedThresholdValue:function(c){var g=this.$refs.outerWrapper[this.offsetSize];return this.valueIsPx?typeof this[c]=="string"?this[c]:g*this[c]:typeof this[c]=="string"?this.px2percent(this[c],g):this[c]},getMin:function(c,g){return this.valueIsPx?String(Math.min(parseFloat(c),parseFloat(g)))+"px":Math.min(c,g)},getMax:function(c,g){return this.valueIsPx?String(Math.max(parseFloat(c),parseFloat(g)))+"px":Math.max(c,g)},getAnotherOffset:function(c){var g=0;return this.valueIsPx?g=this.$refs.outerWrapper[this.offsetSize]-parseFloat(c)+"px":g=1-c,g},handleMove:function(c){var g=this.isHorizontal?c.pageX:c.pageY,p=g-this.initOffset,v=this.$refs.outerWrapper[this.offsetSize],y=this.valueIsPx?String(parseFloat(this.oldOffset)+p)+"px":this.px2percent(v*this.oldOffset+p,v),b=this.getAnotherOffset(y);parseFloat(y)<=parseFloat(this.computedMin)&&(y=this.getMax(y,this.computedMin)),parseFloat(b)<=parseFloat(this.computedMax)&&(y=this.getAnotherOffset(this.getMax(b,this.computedMax))),c.atMin=this.value===this.computedMin,c.atMax=this.valueIsPx?this.getAnotherOffset(this.value)===this.computedMax:this.getAnotherOffset(this.value).toFixed(5)===this.computedMax.toFixed(5),this.$emit("input",y),this.$emit("on-moving",c)},handleUp:function(){this.isMoving=!1,(0,n.off)(document,"mousemove",this.handleMove),(0,n.off)(document,"mouseup",this.handleUp),this.$emit("on-move-end")},handleMousedown:function(c){this.initOffset=this.isHorizontal?c.pageX:c.pageY,this.oldOffset=this.value,this.isMoving=!0,(0,n.on)(document,"mousemove",this.handleMove),(0,n.on)(document,"mouseup",this.handleUp),this.$emit("on-move-start")},computeOffset:function(){var c=this;this.$nextTick(function(){(0,i.default)(this,c),this.computedMin=this.getComputedThresholdValue("min"),this.computedMax=this.getComputedThresholdValue("max"),this.offset=(this.valueIsPx?this.px2percent(this.value,this.$refs.outerWrapper[this.offsetSize]):this.value)*1e4/100}.bind(this))}},watch:{value:function(c){c!==this.currentValue&&(this.currentValue=c,this.computeOffset())}},mounted:function(){var c=this;this.$nextTick(function(){(0,i.default)(this,c),this.computeOffset()}.bind(this)),(0,n.on)(window,"resize",this.computeOffset)},beforeDestroy:function(){(0,n.off)(window,"resize",this.computeOffset)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={name:"Trigger",props:{mode:String},data:function(){return{prefix:"ivu-split-trigger",initOffset:0}},computed:{isVertical:function(){return this.mode==="vertical"},classes:function(){return[this.prefix,this.isVertical?String(this.prefix)+"-vertical":String(this.prefix)+"-horizontal"]},barConClasses:function(){return[String(this.prefix)+"-bar-con",this.isVertical?"vertical":"horizontal"]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(2),e=l(f);function l(t){return t&&t.__esModule?t:{default:t}}var n="ivu-layout";h.default={name:"Layout",data:function(){return{hasSider:!1}},computed:{wrapClasses:function(){return[""+n,(0,e.default)({},n+"-has-sider",this.hasSider)]}},methods:{findSider:function(){var o=this;return this.$children.some(function(d){return(0,i.default)(this,o),d.$options.name==="Sider"}.bind(this))}},mounted:function(){this.hasSider=this.findSider()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(203),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(476);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(12),i=r(3),f="ivu-layout-sider";(0,i.setMatchMedia)(),h.default={name:"Sider",props:{value:{type:Boolean,default:!1},width:{type:[Number,String],default:200},collapsedWidth:{type:[Number,String],default:64},hideTrigger:{type:Boolean,default:!1},breakpoint:{type:String,validator:function(l){return(0,i.oneOf)(l,["xs","sm","md","lg","xl","xxl"])}},collapsible:{type:Boolean,default:!1},defaultCollapsed:{type:Boolean,default:!1},reverseArrow:{type:Boolean,default:!1}},data:function(){return{prefixCls:f,mediaMatched:!1}},computed:{wrapClasses:function(){return[""+f,this.siderWidth?"":f+"-zero-width",this.value?f+"-collapsed":""]},wrapStyles:function(){return{width:String(this.siderWidth)+"px",minWidth:String(this.siderWidth)+"px",maxWidth:String(this.siderWidth)+"px",flex:"0 0 "+String(this.siderWidth)+"px"}},triggerClasses:function(){return[f+"-trigger",this.value?f+"-trigger-collapsed":""]},childClasses:function(){return String(this.prefixCls)+"-children"},zeroWidthTriggerClasses:function(){return[f+"-zero-width-trigger",this.reverseArrow?f+"-zero-width-trigger-left":""]},triggerIconClasses:function(){return["ivu-icon","ivu-icon-ios-arrow-"+(this.reverseArrow?"forward":"back"),f+"-trigger-icon"]},siderWidth:function(){return this.collapsible?this.value?this.mediaMatched?0:parseInt(this.collapsedWidth):parseInt(this.width):this.width},showZeroTrigger:function(){return this.collapsible?this.mediaMatched&&!this.hideTrigger||parseInt(this.collapsedWidth)===0&&this.value&&!this.hideTrigger:!1},showBottomTrigger:function(){return this.collapsible?!this.mediaMatched&&!this.hideTrigger:!1}},methods:{toggleCollapse:function(){var l=this.collapsible?!this.value:!1;this.$emit("input",l)},matchMedia:function(){var l=void 0;window.matchMedia&&(l=window.matchMedia);var n=this.mediaMatched;this.mediaMatched=l("(max-width: "+String(i.dimensionMap[this.breakpoint])+")").matches,this.mediaMatched!==n&&this.$emit("input",this.mediaMatched)},onWindowResize:function(){this.matchMedia()}},watch:{value:function(l){this.$emit("on-collapse",l)}},mounted:function(){this.defaultCollapsed&&this.$emit("input",this.defaultCollapsed),this.breakpoint!==void 0&&((0,s.on)(window,"resize",this.onWindowResize),this.matchMedia())},beforeDestroy:function(){this.breakpoint!==void 0&&(0,s.off)(window,"resize",this.onWindowResize)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=e(s),f=r(3);function e(n){return n&&n.__esModule?n:{default:n}}var l="ivu-list";h.default={name:"List",provide:function(){return{ListInstance:this}},props:{border:{type:Boolean,default:!1},itemLayout:{validator:function(t){return(0,f.oneOf)(t,["horizontal","vertical"])},default:"horizontal"},header:{type:String,default:""},footer:{type:String,default:""},loading:{type:Boolean,default:!1},size:{validator:function(t){return(0,f.oneOf)(t,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},split:{type:Boolean,default:!0}},data:function(){return{}},computed:{classes:function(){var t;return[""+l,l+"-"+String(this.size),l+"-"+String(this.itemLayout),(t={},(0,i.default)(t,l+"-bordered",this.border),(0,i.default)(t,l+"-split",this.split),t)]}},methods:{}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"ListItem",inject:["ListInstance"],props:{},computed:{itemLayout:function(){return this.ListInstance.itemLayout},isItemContainsTextNode:function(){var l=this,n=void 0;return this.$slots.default.forEach(function(t){(0,i.default)(this,l),typeof t=="string"&&(n=!0)}.bind(this)),n},isFlexMode:function(){var l=this.$slots.extra;return this.itemLayout==="vertical"?!!l:!this.isItemContainsTextNode},classes:function(){return[{"ivu-list-item-no-flex":!this.isFlexMode}]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(125),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"ListItemMeta",components:{Avatar:i.default},props:{avatar:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-loading-bar";h.default={name:"LoadingBar",props:{color:{type:String,default:"primary"},failedColor:{type:String,default:"error"},height:{type:Number,default:2}},data:function(){return{percent:0,status:"success",show:!1}},computed:{classes:function(){return""+e},innerClasses:function(){var n;return[e+"-inner",(n={},(0,i.default)(n,e+"-inner-color-primary",this.color==="primary"&&this.status==="success"),(0,i.default)(n,e+"-inner-failed-color-error",this.failedColor==="error"&&this.status==="error"),n)]},outerStyles:function(){return{height:String(this.height)+"px"}},styles:function(){var n={width:String(this.percent)+"%",height:String(this.height)+"px"};return this.color!=="primary"&&this.status==="success"&&(n.backgroundColor=this.color),this.failedColor!=="error"&&this.status==="error"&&(n.backgroundColor=this.failedColor),n}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=u(s),f=r(17),e=u(f),l=r(2),n=u(l),t=r(3),o=r(4),d=u(o);function u(g){return g&&g.__esModule?g:{default:g}}var c="ivu-menu";h.default={name:"Menu",mixins:[d.default],props:{mode:{validator:function(p){return(0,t.oneOf)(p,["horizontal","vertical"])},default:"vertical"},theme:{validator:function(p){return(0,t.oneOf)(p,["light","dark","primary"])},default:"light"},activeName:{type:[String,Number]},openNames:{type:Array,default:function(){return[]}},accordion:{type:Boolean,default:!1},width:{type:String,default:"240px"}},data:function(){return{currentActiveName:this.activeName,openedNames:[]}},computed:{classes:function(){var p=this.theme;return this.mode==="vertical"&&this.theme==="primary"&&(p="light"),[""+c,c+"-"+String(p),(0,n.default)({},c+"-"+String(this.mode),this.mode)]},styles:function(){var p={};return this.mode==="vertical"&&(p.width=this.width),p}},methods:{updateActiveName:function(){this.currentActiveName===void 0&&(this.currentActiveName=-1),this.broadcast("Submenu","on-update-active-name",!1),this.broadcast("MenuItem","on-update-active-name",this.currentActiveName)},updateOpenKeys:function(p){var v=this,y=[].concat((0,e.default)(this.openedNames)),b=y.indexOf(p);if(this.accordion&&(0,t.findComponentsDownward)(this,"Submenu").forEach(function(S){(0,i.default)(this,v),S.opened=!1}.bind(this)),b>=0){var A=null;(0,t.findComponentsDownward)(this,"Submenu").forEach(function(S){(0,i.default)(this,v),S.name===p&&(A=S,S.opened=!1)}.bind(this)),(0,t.findComponentsUpward)(A,"Submenu").forEach(function(S){(0,i.default)(this,v),S.opened=!0}.bind(this)),(0,t.findComponentsDownward)(A,"Submenu").forEach(function(S){(0,i.default)(this,v),S.opened=!1}.bind(this))}else if(this.accordion){var x=null;(0,t.findComponentsDownward)(this,"Submenu").forEach(function(S){(0,i.default)(this,v),S.name===p&&(x=S,S.opened=!0)}.bind(this)),(0,t.findComponentsUpward)(x,"Submenu").forEach(function(S){(0,i.default)(this,v),S.opened=!0}.bind(this))}else(0,t.findComponentsDownward)(this,"Submenu").forEach(function(S){(0,i.default)(this,v),S.name===p&&(S.opened=!0)}.bind(this));var E=(0,t.findComponentsDownward)(this,"Submenu").filter(function(S){return(0,i.default)(this,v),S.opened}.bind(this)).map(function(S){return(0,i.default)(this,v),S.name}.bind(this));this.openedNames=[].concat((0,e.default)(E)),this.$emit("on-open-change",E)},updateOpened:function(){var p=this,v=(0,t.findComponentsDownward)(this,"Submenu");v.length&&v.forEach(function(y){(0,i.default)(this,p),this.openedNames.indexOf(y.name)>-1?y.opened=!0:y.opened=!1}.bind(this))},handleEmitSelectEvent:function(p){this.$emit("on-select",p)}},mounted:function(){var p=this;this.openedNames=[].concat((0,e.default)(this.openNames)),this.updateOpened(),this.$nextTick(function(){return(0,i.default)(this,p),this.updateActiveName()}.bind(this)),this.$on("on-menu-item-select",function(v){(0,i.default)(this,p),this.currentActiveName=v,this.$emit("on-select",v)}.bind(this))},watch:{openNames:function(p){this.openedNames=p},activeName:function(p){this.currentActiveName=p},currentActiveName:function(){this.updateActiveName()}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(92),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-menu";h.default={name:"MenuGroup",mixins:[i.default],props:{title:{type:String,default:""}},data:function(){return{prefixCls:e}},computed:{groupStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*28+"px"}:{}}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=g(s),f=r(2),e=g(f),l=r(4),n=g(l),t=r(3),o=r(92),d=g(o),u=r(48),c=g(u);function g(v){return v&&v.__esModule?v:{default:v}}var p="ivu-menu";h.default={name:"MenuItem",mixins:[n.default,d.default,c.default],props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{active:!1}},computed:{classes:function(){var y;return[p+"-item",(y={},(0,e.default)(y,p+"-item-active",this.active),(0,e.default)(y,p+"-item-selected",this.active),(0,e.default)(y,p+"-item-disabled",this.disabled),y)]},itemStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*24+"px"}:{}}},methods:{handleClickItem:function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.disabled)if(b||this.target==="_blank"){this.handleCheckClick(y,b);var A=(0,t.findComponentUpward)(this,"Menu");A&&A.handleEmitSelectEvent(this.name)}else{var x=(0,t.findComponentUpward)(this,"Submenu");x?this.dispatch("Submenu","on-menu-item-select",this.name):this.dispatch("Menu","on-menu-item-select",this.name),this.handleCheckClick(y,b)}}},mounted:function(){var y=this;this.$on("on-update-active-name",function(b){(0,i.default)(this,y),this.name===b?(this.active=!0,this.dispatch("Submenu","on-update-active-name",b)):this.active=!1}.bind(this))}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=b(s),f=r(2),e=b(f),l=r(36),n=b(l),t=r(8),o=b(t),d=r(83),u=b(d),c=r(3),g=r(4),p=b(g),v=r(92),y=b(v);function b(x){return x&&x.__esModule?x:{default:x}}var A="ivu-menu";h.default={name:"Submenu",mixins:[p.default,y.default],components:{Icon:o.default,Drop:n.default,CollapseTransition:u.default},props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:A,active:!1,opened:!1,dropWidth:parseFloat((0,c.getStyle)(this.$el,"width"))}},computed:{classes:function(){var E;return[A+"-submenu",(E={},(0,e.default)(E,A+"-item-active",this.active&&!this.hasParentSubmenu),(0,e.default)(E,A+"-opened",this.opened),(0,e.default)(E,A+"-submenu-disabled",this.disabled),(0,e.default)(E,A+"-submenu-has-parent-submenu",this.hasParentSubmenu),(0,e.default)(E,A+"-child-item-active",this.active),E)]},accordion:function(){return this.menu.accordion},dropStyle:function(){var E={};return this.dropWidth&&(E.minWidth=String(this.dropWidth)+"px"),E},titleStyle:function(){return this.hasParentSubmenu&&this.mode!=="horizontal"?{paddingLeft:43+(this.parentSubmenuNum-1)*24+"px"}:{}},arrowType:function(){var E="ios-arrow-down";return this.$IVIEW&&(this.$IVIEW.menu.customArrow?E="":this.$IVIEW.menu.arrow&&(E=this.$IVIEW.menu.arrow)),E},customArrowType:function(){var E="";return this.$IVIEW&&this.$IVIEW.menu.customArrow&&(E=this.$IVIEW.menu.customArrow),E},arrowSize:function(){var E="";return this.$IVIEW&&this.$IVIEW.menu.arrowSize&&(E=this.$IVIEW.menu.arrowSize),E}},methods:{handleMouseenter:function(){var E=this;this.disabled||this.mode!=="vertical"&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,i.default)(this,E),this.menu.updateOpenKeys(this.name),this.opened=!0}.bind(this),250))},handleMouseleave:function(){var E=this;this.disabled||this.mode!=="vertical"&&(clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,i.default)(this,E),this.menu.updateOpenKeys(this.name),this.opened=!1}.bind(this),150))},handleClick:function(){var E=this;if(!this.disabled&&this.mode!=="horizontal"){var S=this.opened;this.accordion&&this.$parent.$children.forEach(function(C){(0,i.default)(this,E),C.$options.name==="Submenu"&&(C.opened=!1)}.bind(this)),this.opened=!S,this.menu.updateOpenKeys(this.name)}}},watch:{mode:function(E){E==="horizontal"&&this.$refs.drop.update()},opened:function(E){this.mode!=="vertical"&&(E?(this.dropWidth=parseFloat((0,c.getStyle)(this.$el,"width")),this.$refs.drop.update()):this.$refs.drop.destroy())}},mounted:function(){var E=this;this.$on("on-menu-item-select",function(S){return(0,i.default)(this,E),this.mode==="horizontal"&&(this.opened=!1),this.dispatch("Menu","on-menu-item-select",S),!0}.bind(this)),this.$on("on-update-active-name",function(S){(0,i.default)(this,E),(0,c.findComponentUpward)(this,"Submenu")&&this.dispatch("Submenu","on-update-active-name",S),(0,c.findComponentsDownward)(this,"Submenu")&&(0,c.findComponentsDownward)(this,"Submenu").forEach(function(C){(0,i.default)(this,E),C.active=!1}.bind(this)),this.active=S}.bind(this))}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=t(s),f=r(498),e=t(f),l=r(16),n=t(l);function t(o){return o&&o.__esModule?o:{default:o}}e.default.newInstance=function(o){(0,i.default)(void 0,void 0);var d=o||{},u=new n.default({render:function(v){return v(e.default,{props:d})}}),c=u.$mount();document.body.appendChild(c.$el);var g=u.$children[0];return{notice:function(v){g.add(v)},remove:function(v){g.close(v)},component:g,destroy:function(v){g.closeAll(),setTimeout(function(){document.body.removeChild(document.getElementsByClassName(v)[0])},500)}}}.bind(void 0),h.default=e.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(15),i=o(s),f=r(2),e=o(f),l=r(499),n=o(l),t=r(37);function o(p){return p&&p.__esModule?p:{default:p}}var d="ivu-notification",u=0,c=Date.now();function g(){return"ivuNotification_"+c+"_"+u++}h.default={components:{Notice:n.default},props:{prefixCls:{type:String,default:d},styles:{type:Object,default:function(){return{top:"65px",left:"50%"}}},content:{type:String},className:{type:String}},data:function(){return{notices:[],tIndex:this.handleGetIndex()}},computed:{classes:function(){return[""+String(this.prefixCls),(0,e.default)({},""+String(this.className),!!this.className)]},wrapStyles:function(){var v=(0,i.default)({},this.styles);return v["z-index"]=1010+this.tIndex,v}},methods:{add:function(v){var y=v.name||g(),b=(0,i.default)({styles:{right:"50%"},content:"",duration:1.5,closable:!1,name:y},v);this.notices.push(b),this.tIndex=this.handleGetIndex()},close:function(v){for(var y=this.notices,b=0;b<y.length;b++)if(y[b].name===v){this.notices.splice(b,1);break}},closeAll:function(){this.notices=[]},handleGetIndex:function(){return(0,t.transferIncrease)(),t.transferIndex}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=t(s),f=r(2),e=t(f),l=r(215),n=t(l);function t(o){return o&&o.__esModule?o:{default:o}}h.default={components:{RenderCell:n.default},props:{prefixCls:{type:String,default:""},duration:{type:Number,default:1.5},type:{type:String},content:{type:String,default:""},withIcon:Boolean,render:{type:Function},hasTitle:Boolean,styles:{type:Object,default:function(){return{right:"50%"}}},closable:{type:Boolean,default:!1},className:{type:String},name:{type:String,required:!0},onClose:{type:Function},transitionName:{type:String},background:{type:Boolean,default:!1},msgType:{type:String}},data:function(){return{withDesc:!1}},computed:{baseClass:function(){return String(this.prefixCls)+"-notice"},renderFunc:function(){return this.render||function(){}},classes:function(){var d;return[this.baseClass,(d={},(0,e.default)(d,""+String(this.className),!!this.className),(0,e.default)(d,String(this.baseClass)+"-closable",this.closable),(0,e.default)(d,String(this.baseClass)+"-with-desc",this.withDesc),(0,e.default)(d,String(this.baseClass)+"-with-background",this.background),d)]},contentClasses:function(){return[String(this.baseClass)+"-content",this.render!==void 0?String(this.baseClass)+"-content-with-render":""]},messageContentClasses:function(){var d;return[String(this.baseClass)+"-content",(d={},(0,e.default)(d,String(this.baseClass)+"-content-"+String(this.msgType),this.msgType),(0,e.default)(d,String(this.baseClass)+"-content-background",this.background),d)]},contentWithIcon:function(){return[this.withIcon?String(this.prefixCls)+"-content-with-icon":"",!this.hasTitle&&this.withIcon?String(this.prefixCls)+"-content-with-render-notitle":""]},messageClasses:function(){return[String(this.baseClass)+"-content",this.render!==void 0?String(this.baseClass)+"-content-with-render":""]}},methods:{clearCloseTimer:function(){this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=null)},close:function(){this.clearCloseTimer(),this.onClose(),this.$parent.close(this.name)},handleEnter:function(d){this.type==="message"&&(d.style.height=d.scrollHeight+"px")},handleLeave:function(d){this.type==="message"&&document.getElementsByClassName("ivu-message-notice").length!==1&&(d.style.height=0,d.style.paddingTop=0,d.style.paddingBottom=0)}},mounted:function(){var d=this;if(this.clearCloseTimer(),this.duration!==0&&(this.closeTimer=setTimeout(function(){(0,i.default)(this,d),this.close()}.bind(this),this.duration*1e3)),this.prefixCls==="ivu-notice"){var u=this.$refs.content.querySelectorAll("."+String(this.prefixCls)+"-desc")[0];this.withDesc=this.render?!0:u?u.innerHTML!=="":!1}},beforeDestroy:function(){this.clearCloseTimer()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"RenderCell",functional:!0,props:{render:Function},render:function(l,n){return(0,i.default)(void 0,void 0),n.props.render(l)}.bind(void 0)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=T(s),f=r(15),e=T(f),l=r(2),n=T(l),t=r(19),o=T(t),d=r(28),u=T(d),c=r(23),g=T(c),p=r(6),v=T(p),y=r(4),b=T(y),A=r(87),x=T(A),E=r(12),S=r(3),C=r(37);function T(P){return P&&P.__esModule?P:{default:P}}var k="ivu-modal",M={x:null,y:null,dragX:null,dragY:null,dragging:!1,rect:null};h.default={name:"Modal",mixins:[v.default,b.default,x.default],components:{Icon:o.default,iButton:u.default},directives:{TransferDom:g.default},props:{value:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.modal.maskClosable===""?!0:this.$IVIEW.modal.maskClosable}},title:{type:String},width:{type:[Number,String],default:520},okText:{type:String},cancelText:{type:String},loading:{type:Boolean,default:!1},styles:{type:Object,default:function(){return{}}},className:{type:String},footerHide:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},transitionNames:{type:Array,default:function(){return["ease","fade"]}},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!0:this.$IVIEW.transfer}},fullscreen:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1},stickyDistance:{type:Number,default:10},resetDragPosition:{type:Boolean,default:!1},zIndex:{type:Number,default:1e3},beforeClose:Function},data:function(){return{prefixCls:k,wrapShow:!1,showHead:!0,buttonLoading:!1,visible:this.value,dragData:(0,S.deepCopy)(M),modalIndex:this.handleGetModalIndex(),isMouseTriggerIn:!1}},computed:{wrapClasses:function(){var N;return[k+"-wrap",(N={},(0,n.default)(N,k+"-hidden",!this.wrapShow),(0,n.default)(N,""+String(this.className),!!this.className),(0,n.default)(N,k+"-no-mask",!this.showMask),N)]},wrapStyles:function(){return{zIndex:this.modalIndex+this.zIndex}},maskClasses:function(){return k+"-mask"},classes:function(){var N;return[""+k,(N={},(0,n.default)(N,k+"-fullscreen",this.fullscreen),(0,n.default)(N,k+"-fullscreen-no-header",this.fullscreen&&!this.showHead),(0,n.default)(N,k+"-fullscreen-no-footer",this.fullscreen&&this.footerHide),N)]},contentClasses:function(){var N;return[k+"-content",(N={},(0,n.default)(N,k+"-content-no-mask",!this.showMask),(0,n.default)(N,k+"-content-drag",this.draggable&&!this.fullscreen),(0,n.default)(N,k+"-content-dragging",this.draggable&&this.dragData.dragging),N)]},mainStyles:function(){var N={},F=parseInt(this.width),q=this.dragData.x!==null?{top:0}:{width:F<=100?String(F)+"%":String(F)+"px"},z=this.styles?this.styles:{};return(0,e.default)(N,q,z),N},contentStyles:function(){var N={};if(this.draggable&&!this.fullscreen){var F=this.styles.top?parseFloat(this.styles.top):0,q=this.styles.left?parseFloat(this.styles.left):0;this.dragData.x!==null&&(N.left=this.dragData.x-q+"px"),this.dragData.y!==null&&(N.top=String(this.dragData.y)+"px"),this.dragData.y!==null&&(N.top=this.dragData.y-F+"px");var z=parseInt(this.width),O={width:z<=100?String(z)+"%":String(z)+"px"};(0,e.default)(N,O)}return N},localeOkText:function(){return this.okText===void 0?this.t("i.modal.okText"):this.okText},localeCancelText:function(){return this.cancelText===void 0?this.t("i.modal.cancelText"):this.cancelText},showMask:function(){return this.mask}},methods:{close:function(){var N=this;if(!this.beforeClose)return this.handleClose();var F=this.beforeClose();F&&F.then?F.then(function(){(0,i.default)(this,N),this.handleClose()}.bind(this)):this.handleClose()},handleClose:function(){this.visible=!1,this.$emit("input",!1),this.$emit("on-cancel")},handleMask:function(){this.maskClosable&&this.showMask&&this.close()},handleWrapClick:function(N){if(this.isMouseTriggerIn){this.isMouseTriggerIn=!1;return}var F=N.target.getAttribute("class");F&&F.indexOf(k+"-wrap")>-1&&this.handleMask()},handleMousedown:function(){this.isMouseTriggerIn=!0},cancel:function(){this.close()},ok:function(){this.loading?this.buttonLoading=!0:(this.visible=!1,this.$emit("input",!1)),this.$emit("on-ok")},EscClose:function(N){var F=this;if(this.visible&&this.closable&&N.keyCode===27){var q=(0,S.findComponentsDownward)(this.$root,"Modal").filter(function(O){return(0,i.default)(this,F),O.$data.visible&&O.$props.closable}.bind(this)),z=q.sort(function(O,R){return(0,i.default)(this,F),O.$data.modalIndex<R.$data.modalIndex?1:-1}.bind(this))[0];setTimeout(function(){(0,i.default)(this,F),z.close()}.bind(this),0)}},animationFinish:function(){this.$emit("on-hidden")},handleMoveStart:function(N){if(!this.draggable||this.fullscreen)return!1;var F=this.$refs.content,q=F.getBoundingClientRect();this.dragData.rect=q,this.dragData.x=q.x||q.left,this.dragData.y=q.y||q.top;var z={x:N.clientX,y:N.clientY};this.dragData.dragX=z.x,this.dragData.dragY=z.y,this.dragData.dragging=!0,(0,E.on)(window,"mousemove",this.handleMoveMove),(0,E.on)(window,"mouseup",this.handleMoveEnd)},handleMoveMove:function(N){if(!this.dragData.dragging||this.fullscreen)return!1;var F={x:N.clientX,y:N.clientY},q={x:F.x-this.dragData.dragX,y:F.y-this.dragData.dragY};if(this.sticky){var z=document.documentElement.clientWidth,O=document.documentElement.clientHeight;this.dragData.x+q.x<=this.stickyDistance&&q.x<0?this.dragData.x=0:this.dragData.x+this.dragData.rect.width-z>-this.stickyDistance&&q.x>0?this.dragData.x=z-this.dragData.rect.width:this.dragData.x+=q.x,this.dragData.y+q.y<=this.stickyDistance&&q.y<0?this.dragData.y=0:this.dragData.y+this.dragData.rect.height-O>-this.stickyDistance&&q.y>0?this.dragData.y=O-this.dragData.rect.height:this.dragData.y+=q.y}else this.dragData.x+=q.x,this.dragData.y+=q.y;this.dragData.dragX=F.x,this.dragData.dragY=F.y},handleMoveEnd:function(){this.dragData.dragging=!1,(0,E.off)(window,"mousemove",this.handleMoveMove),(0,E.off)(window,"mouseup",this.handleMoveEnd)},handleGetModalIndex:function(){return(0,C.transferIncrease)(),C.transferIndex},handleClickModal:function(){if(this.draggable){if(C.lastVisibleIndex!==this.lastVisibleIndex){this.lastVisibleIndex=C.lastVisibleIndex;return}this.modalIndex=this.handleGetModalIndex()}}},mounted:function(){this.visible&&(this.wrapShow=!0);var N=!0;this.$slots.header===void 0&&!this.title&&(N=!1),this.showHead=N,document.addEventListener("keydown",this.EscClose)},beforeDestroy:function(){document.removeEventListener("keydown",this.EscClose),this.removeScrollEffect()},watch:{value:function(N){this.visible=N},visible:function(N){var F=this;N===!1?(this.buttonLoading=!1,this.timer=setTimeout(function(){(0,i.default)(this,F),this.wrapShow=!1,this.removeScrollEffect()}.bind(this),300)):(this.lastVisible!==N&&(this.modalIndex=this.handleGetModalIndex(),(0,C.lastVisibleIncrease)()),this.timer&&clearTimeout(this.timer),this.wrapShow=!0,this.scrollable||this.addScrollEffect()),this.broadcast("Table","on-visible-change",N),this.broadcast("Slider","on-visible-change",N),this.$emit("on-visible-change",N),this.lastVisible=N,this.lastVisibleIndex=C.lastVisibleIndex,N&&this.resetDragPosition&&(this.dragData=(0,S.deepCopy)(M))},loading:function(N){N||(this.buttonLoading=!1)},scrollable:function(N){N?this.removeScrollEffect():this.addScrollEffect()},title:function(N){this.$slots.header===void 0&&(this.showHead=!!N)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=o(s),f=r(3),e=r(509),l=o(e),n=r(6),t=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var d="ivu-page";h.default={name:"Page",mixins:[t.default],components:{Options:l.default},props:{current:{type:Number,default:1},total:{type:Number,default:0},pageSize:{type:Number,default:10},pageSizeOpts:{type:Array,default:function(){return[10,20,30,40]}},placement:{validator:function(c){return(0,f.oneOf)(c,["top","bottom"])},default:"bottom"},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},size:{validator:function(c){return(0,f.oneOf)(c,["small","default"])}},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showElevator:{type:Boolean,default:!1},showSizer:{type:Boolean,default:!1},className:{type:String},styles:{type:Object},prevText:{type:String,default:""},nextText:{type:String,default:""},disabled:{type:Boolean,default:!1},eventsEnabled:{type:Boolean,default:!1}},data:function(){return{prefixCls:d,currentPage:this.current,currentPageSize:this.pageSize}},watch:{total:function(c){var g=Math.ceil(c/this.currentPageSize);g<this.currentPage&&(this.currentPage=g===0?1:g)},current:function(c){this.currentPage=c},pageSize:function(c){this.currentPageSize=c}},computed:{isSmall:function(){return this.size==="small"},allPages:function(){var c=Math.ceil(this.total/this.currentPageSize);return c===0?1:c},simpleWrapClasses:function(){return[""+d,d+"-simple",(0,i.default)({},""+String(this.className),!!this.className)]},simplePagerClasses:function(){return d+"-simple-pager"},wrapClasses:function(){var c;return[""+d,(c={},(0,i.default)(c,""+String(this.className),!!this.className),(0,i.default)(c,d+"-with-disabled",this.disabled),(0,i.default)(c,"mini",this.size==="small"),c)]},prevClasses:function(){var c;return[d+"-prev",(c={},(0,i.default)(c,d+"-disabled",this.currentPage===1||this.disabled),(0,i.default)(c,d+"-custom-text",this.prevText!==""),c)]},nextClasses:function(){var c;return[d+"-next",(c={},(0,i.default)(c,d+"-disabled",this.currentPage===this.allPages||this.disabled),(0,i.default)(c,d+"-custom-text",this.nextText!==""),c)]},firstPageClasses:function(){return[d+"-item",(0,i.default)({},d+"-item-active",this.currentPage===1)]},lastPageClasses:function(){return[d+"-item",(0,i.default)({},d+"-item-active",this.currentPage===this.allPages)]}},methods:{changePage:function(c){this.disabled||this.currentPage!=c&&(this.currentPage=c,this.$emit("update:current",c),this.$emit("on-change",c))},prev:function(){if(!this.disabled){var c=this.currentPage;if(c<=1)return!1;this.changePage(c-1),this.$emit("on-prev",c-1)}},next:function(){if(!this.disabled){var c=this.currentPage;if(c>=this.allPages)return!1;this.changePage(c+1),this.$emit("on-next",c+1)}},fastPrev:function(){if(!this.disabled){var c=this.currentPage-5;c>0?this.changePage(c):this.changePage(1)}},fastNext:function(){if(!this.disabled){var c=this.currentPage+5;c>this.allPages?this.changePage(this.allPages):this.changePage(c)}},onSize:function(c){this.disabled||(this.currentPageSize=c,this.$emit("on-page-size-change",c),this.changePage(1))},onPage:function(c){this.disabled||this.changePage(c)},keyDown:function(c){var g=c.keyCode,p=g>=48&&g<=57||g>=96&&g<=105||g===8||g===37||g===39;p||c.preventDefault()},keyUp:function(c){var g=c.keyCode,p=parseInt(c.target.value);if(g===38)this.prev();else if(g===40)this.next();else if(g===13){var v=1;p>this.allPages?v=this.allPages:p<=0||!p?v=1:v=p,c.target.value=v,this.changePage(v)}}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(74),i=t(s),f=r(81),e=t(f),l=r(6),n=t(l);function t(u){return u&&u.__esModule?u:{default:u}}var o="ivu-page";function d(u){return/^[1-9][0-9]*$/.test(u+"")}h.default={name:"PageOption",mixins:[n.default],components:{iSelect:i.default,iOption:e.default},props:{pageSizeOpts:Array,showSizer:Boolean,showElevator:Boolean,current:Number,_current:Number,pageSize:Number,allPages:Number,isSmall:Boolean,placement:String,transfer:Boolean,disabled:Boolean,eventsEnabled:Boolean},data:function(){return{currentPageSize:this.pageSize}},watch:{pageSize:function(c){this.currentPageSize=c}},computed:{size:function(){return this.isSmall?"small":"default"},optsClasses:function(){return[o+"-options"]},sizerClasses:function(){return[o+"-options-sizer"]},ElevatorClasses:function(){return[o+"-options-elevator"]}},methods:{changeSize:function(){this.$emit("on-size",this.currentPageSize)},changePage:function(c){var g=c.target.value.trim(),p=0;if(d(g)){if(g=Number(g),g!=this.current){var v=this.allPages;g>v?p=v:p=g}}else p=1;p&&(this.$emit("on-page",p),c.target.value=p)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(220),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(513);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=A(s),f=r(2),e=A(f),l=r(221),n=A(l),t=r(28),o=A(t),d=r(82),u=A(d),c=r(23),g=A(c),p=r(3),v=r(37),y=r(6),b=A(y);function A(E){return E&&E.__esModule?E:{default:E}}var x="ivu-poptip";h.default={name:"Poptip",mixins:[n.default,b.default],directives:{clickOutside:u.default,TransferDom:g.default},components:{iButton:o.default},props:{trigger:{validator:function(S){return(0,p.oneOf)(S,["click","focus","hover"])},default:"click"},placement:{validator:function(S){return(0,p.oneOf)(S,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"top"},title:{type:[String,Number]},content:{type:[String,Number],default:""},width:{type:[String,Number]},confirm:{type:Boolean,default:!1},okText:{type:String},cancelText:{type:String},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},popperClass:{type:String},wordWrap:{type:Boolean,default:!1},padding:{type:String},disabled:{type:Boolean,default:!1},capture:{type:Boolean,default:function(){return this.$IVIEW?this.$IVIEW.capture:!1}},transferClassName:{type:String}},data:function(){return{prefixCls:x,showTitle:!0,isInput:!1,disableCloseUnderTransfer:!1,tIndex:this.handleGetIndex()}},computed:{classes:function(){return[""+x,(0,e.default)({},x+"-confirm",this.confirm)]},popperClasses:function(){var S;return[x+"-popper",(S={},(0,e.default)(S,x+"-confirm",this.transfer&&this.confirm),(0,e.default)(S,""+String(this.popperClass),!!this.popperClass),(0,e.default)(S,x+"-transfer",this.transfer),(0,e.default)(S,this.transferClassName,this.transferClassName),S)]},styles:function(){var S={};return this.width&&(S.width=String(this.width)+"px"),this.transfer&&(S["z-index"]=1060+this.tIndex),S},localeOkText:function(){return this.okText===void 0?this.t("i.poptip.okText"):this.okText},localeCancelText:function(){return this.cancelText===void 0?this.t("i.poptip.cancelText"):this.cancelText},contentClasses:function(){return[x+"-body-content",(0,e.default)({},x+"-body-content-word-wrap",this.wordWrap)]},contentPaddingStyle:function(){var S={};return this.padding!==""&&(S.padding=this.padding),S}},methods:{handleClick:function(){if(!this.disabled){if(this.confirm)return this.visible=!this.visible,!0;if(this.trigger!=="click")return!1;this.visible=!this.visible}},handleTransferClick:function(){this.transfer&&(this.disableCloseUnderTransfer=!0)},handleClose:function(){if(this.disableCloseUnderTransfer)return this.disableCloseUnderTransfer=!1,!1;if(this.confirm)return this.visible=!1,!0;if(this.trigger!=="click")return!1;this.visible=!1},handleFocus:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.disabled){if(this.trigger!=="focus"||this.confirm||this.isInput&&!S)return!1;this.visible=!0}},handleBlur:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.trigger!=="focus"||this.confirm||this.isInput&&!S)return!1;this.visible=!1},handleMouseenter:function(){var S=this;if(!this.disabled){if(this.trigger!=="hover"||this.confirm)return!1;this.enterTimer&&clearTimeout(this.enterTimer),this.enterTimer=setTimeout(function(){(0,i.default)(this,S),this.visible=!0}.bind(this),100)}},handleMouseleave:function(){var S=this;if(this.trigger!=="hover"||this.confirm)return!1;this.enterTimer&&(clearTimeout(this.enterTimer),this.enterTimer=setTimeout(function(){(0,i.default)(this,S),this.visible=!1}.bind(this),100))},cancel:function(){this.visible=!1,this.$emit("on-cancel")},ok:function(){this.visible=!1,this.$emit("on-ok")},getInputChildren:function(){var S=this.$refs.reference.querySelectorAll("input"),C=this.$refs.reference.querySelectorAll("textarea"),T=null;return S.length?T=S[0]:C.length&&(T=C[0]),T},handleGetIndex:function(){return(0,v.transferIncrease)(),v.transferIndex},handleIndexIncrease:function(){this.tIndex=this.handleGetIndex()}},mounted:function(){var S=this;this.confirm||(this.showTitle=this.$slots.title!==void 0||this.title),this.trigger==="focus"&&this.$nextTick(function(){(0,i.default)(this,S);var C=this.getInputChildren();C&&(this.isInput=!0,C.addEventListener("focus",this.handleFocus,!1),C.addEventListener("blur",this.handleBlur,!1))}.bind(this))},beforeDestroy:function(){var S=this.getInputChildren();S&&(S.removeEventListener("focus",this.handleFocus,!1),S.removeEventListener("blur",this.handleBlur,!1))}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(16),e=l(f);function l(o){return o&&o.__esModule?o:{default:o}}var n=e.default.prototype.$isServer,t=n?function(){}:r(116);h.default={props:{eventsEnabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:Object,popper:Object,offset:{default:0},value:{type:Boolean,default:!1},transition:String,options:{type:Object,default:function(){return{modifiers:{computeStyle:{gpuAcceleration:!1},preventOverflow:{boundariesElement:"window"}}}}}},data:function(){return{visible:this.value}},watch:{value:{immediate:!0,handler:function(d){this.visible=d,this.$emit("input",d)}},visible:function(d){d?(this.handleIndexIncrease&&this.handleIndexIncrease(),this.updatePopper(),this.$emit("on-popper-show")):this.$emit("on-popper-hide"),this.$emit("input",d)}},methods:{createPopper:function(){var d=this;if(!n&&/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)){var u=this.options,c=this.popper||this.$refs.popper,g=this.reference||this.$refs.reference;!c||!g||(this.popperJS&&this.popperJS.hasOwnProperty("destroy")&&this.popperJS.destroy(),u.eventsEnabled=this.eventsEnabled,u.placement=this.placement,u.modifiers.offset||(u.modifiers.offset={}),u.modifiers.offset.offset=this.offset,u.onCreate=function(){(0,i.default)(this,d),this.$nextTick(this.updatePopper),this.$emit("created",this)}.bind(this),this.popperJS=new t(g,c,u))}},updatePopper:function(){n||(this.popperJS?this.popperJS.update():this.createPopper())},doDestroy:function(){n||this.visible||(this.popperJS.destroy(),this.popperJS=null)}},updated:function(){var d=this;this.$nextTick(function(){return(0,i.default)(this,d),this.updatePopper()}.bind(this))},beforeDestroy:function(){n||this.popperJS&&this.popperJS.destroy()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(223),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(515);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=n(s),f=r(19),e=n(f),l=r(3);function n(o){return o&&o.__esModule?o:{default:o}}var t="ivu-progress";h.default={name:"Progress",components:{Icon:e.default},props:{percent:{type:Number,default:0},successPercent:{type:Number,default:0},status:{validator:function(d){return(0,l.oneOf)(d,["normal","active","wrong","success"])},default:"normal"},hideInfo:{type:Boolean,default:!1},strokeWidth:{type:Number,default:10},vertical:{type:Boolean,default:!1},strokeColor:{type:[String,Array]},textInside:{type:Boolean,default:!1}},data:function(){return{currentStatus:this.status}},computed:{isStatus:function(){return this.currentStatus=="wrong"||this.currentStatus=="success"},statusIcon:function(){var d="";switch(this.currentStatus){case"wrong":d="ios-close-circle";break;case"success":d="ios-checkmark-circle";break}return d},bgStyle:function(){var d=this.vertical?{height:String(this.percent)+"%",width:String(this.strokeWidth)+"px"}:{width:String(this.percent)+"%",height:String(this.strokeWidth)+"px"};return this.strokeColor&&(typeof this.strokeColor=="string"?d["background-color"]=this.strokeColor:d["background-image"]="linear-gradient(to right, "+String(this.strokeColor[0])+" 0%, "+String(this.strokeColor[1])+" 100%)"),d},successBgStyle:function(){return this.vertical?{height:String(this.successPercent)+"%",width:String(this.strokeWidth)+"px"}:{width:String(this.successPercent)+"%",height:String(this.strokeWidth)+"px"}},wrapClasses:function(){var d;return[""+t,t+"-"+String(this.currentStatus),(d={},(0,i.default)(d,t+"-show-info",!this.hideInfo&&!this.textInside),(0,i.default)(d,t+"-vertical",this.vertical),d)]},textClasses:function(){return t+"-text"},textInnerClasses:function(){return t+"-text-inner"},outerClasses:function(){return t+"-outer"},innerClasses:function(){return t+"-inner"},bgClasses:function(){return t+"-bg"},successBgClasses:function(){return t+"-success-bg"}},created:function(){this.handleStatus()},methods:{handleStatus:function(d){d?(this.currentStatus="normal",this.$emit("on-status-change","normal")):parseInt(this.percent,10)==100&&(this.currentStatus="success",this.$emit("on-status-change","success"))}},watch:{percent:function(d,u){d<u?this.handleStatus(!0):this.handleStatus()},status:function(d){this.currentStatus=d}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=o(s),f=r(3),e=r(4),l=o(e),n=r(11),t=o(n);function o(u){return u&&u.__esModule?u:{default:u}}var d="ivu-radio";h.default={name:"Radio",mixins:[l.default,t.default],props:{value:{type:[String,Number,Boolean],default:!1},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},label:{type:[String,Number]},disabled:{type:Boolean,default:!1},size:{validator:function(c){return(0,f.oneOf)(c,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},name:{type:String},border:{type:Boolean,default:!1}},data:function(){return{currentValue:this.value,group:!1,groupName:this.name,parent:(0,f.findComponentUpward)(this,"RadioGroup"),focusWrapper:!1,focusInner:!1}},computed:{wrapClasses:function(){var c;return[d+"-wrapper",(c={},(0,i.default)(c,d+"-group-item",this.group),(0,i.default)(c,d+"-wrapper-checked",this.currentValue),(0,i.default)(c,d+"-wrapper-disabled",this.itemDisabled),(0,i.default)(c,d+"-"+String(this.size),!!this.size),(0,i.default)(c,d+"-focus",this.focusWrapper),(0,i.default)(c,d+"-border",this.border),c)]},radioClasses:function(){var c;return[""+d,(c={},(0,i.default)(c,d+"-checked",this.currentValue),(0,i.default)(c,d+"-disabled",this.itemDisabled),c)]},innerClasses:function(){return[d+"-inner",(0,i.default)({},d+"-focus",this.focusInner)]},inputClasses:function(){return d+"-input"}},mounted:function(){this.parent&&(this.group=!0,this.name&&this.name!==this.parent.name?console.warn&&console.warn("[iview] Name does not match Radio Group name."):this.groupName=this.parent.name),this.group?this.parent.updateValue():this.updateValue()},methods:{change:function(c){if(this.itemDisabled)return!1;var g=c.target.checked;this.currentValue=g;var p=g?this.trueValue:this.falseValue;this.$emit("input",p),this.group?this.label!==void 0&&this.parent.change({value:this.label,checked:this.value}):(this.$emit("on-change",p),this.dispatch("FormItem","on-form-change",p))},updateValue:function(){this.currentValue=this.value===this.trueValue},onBlur:function(){this.focusWrapper=!1,this.focusInner=!1},onFocus:function(){this.group&&this.parent.type==="button"?this.focusWrapper=!0:this.focusInner=!0}},watch:{value:function(c){if(c===this.trueValue||c===this.falseValue)this.updateValue();else throw"Value should be trueValue or falseValue."}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=o(s),f=r(1),e=o(f),l=r(3),n=r(4),t=o(n);function o(p){return p&&p.__esModule?p:{default:p}}var d="ivu-radio-group",u=0,c=Date.now(),g=function(){return(0,e.default)(void 0,void 0),"ivuRadioGroup_"+String(c)+"_"+u++}.bind(void 0);h.default={name:"RadioGroup",mixins:[t.default],props:{value:{type:[String,Number],default:""},size:{validator:function(v){return(0,l.oneOf)(v,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},type:{validator:function(v){return(0,l.oneOf)(v,["button"])}},vertical:{type:Boolean,default:!1},name:{type:String,default:g},buttonStyle:{validator:function(v){return(0,l.oneOf)(v,["default","solid"])},default:"default"}},data:function(){return{currentValue:this.value,children:[]}},computed:{classes:function(){var v;return[""+d,(v={},(0,i.default)(v,d+"-"+String(this.size),!!this.size),(0,i.default)(v,"ivu-radio-"+String(this.size),!!this.size),(0,i.default)(v,d+"-"+String(this.type),!!this.type),(0,i.default)(v,d+"-button-"+String(this.buttonStyle),this.type==="button"&&this.buttonStyle!=="default"),(0,i.default)(v,d+"-vertical",this.vertical),v)]}},mounted:function(){this.updateValue()},methods:{updateValue:function(){var v=this;this.children=(0,l.findComponentsDownward)(this,"Radio"),this.children&&this.children.forEach(function(y){(0,e.default)(this,v),y.currentValue=this.currentValue===y.label,y.group=!0}.bind(this))},change:function(v){this.currentValue=v.value,this.updateValue(),this.$emit("input",v.value),this.$emit("on-change",v.value),this.dispatch("FormItem","on-form-change",v.value)}},watch:{value:function(){var v=this;this.currentValue!==this.value&&(this.currentValue=this.value,this.$nextTick(function(){(0,e.default)(this,v),this.updateValue()}.bind(this)))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=c(s),f=r(6),e=c(f),l=r(4),n=c(l),t=r(11),o=c(t),d=r(8),u=c(d);function c(p){return p&&p.__esModule?p:{default:p}}var g="ivu-rate";h.default={name:"Rate",mixins:[e.default,n.default,o.default],components:{Icon:u.default},props:{count:{type:Number,default:5},value:{type:Number,default:0},allowHalf:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},name:{type:String},clearable:{type:Boolean,default:!1},character:{type:String,default:""},icon:{type:String,default:""},customIcon:{type:String,default:""}},data:function(){var v=this.value||0;return{prefixCls:g,hoverIndex:-1,isHover:!1,isHalf:this.allowHalf&&v.toString().indexOf(".")>=0,currentValue:v}},computed:{classes:function(){return[""+g,(0,i.default)({},g+"-disabled",this.itemDisabled)]},iconClasses:function(){var v;return["ivu-icon",(v={},(0,i.default)(v,"ivu-icon-"+String(this.icon),this.icon!==""),(0,i.default)(v,""+String(this.customIcon),this.customIcon!==""),v)]},showCharacter:function(){return this.character!==""||this.icon!==""||this.customIcon!==""}},watch:{value:function(v){this.currentValue=v||0},currentValue:function(v){this.setHalf(v)}},methods:{starCls:function(v){var y,b=this.hoverIndex,A=this.isHover?b:this.currentValue,x=!1,E=!1;return A>=v&&(x=!0),this.isHover?E=A===v:E=Math.ceil(this.currentValue)===v,[(y={},(0,i.default)(y,g+"-star",!this.showCharacter),(0,i.default)(y,g+"-star-chart",this.showCharacter),(0,i.default)(y,g+"-star-full",!E&&x||E&&!this.isHalf),(0,i.default)(y,g+"-star-half",E&&this.isHalf),(0,i.default)(y,g+"-star-zero",!x),y)]},handleMousemove:function(v,y){if(!this.itemDisabled){if(this.isHover=!0,this.allowHalf){var b=y.target.getAttribute("type")||!1;this.isHalf=b==="half"}else this.isHalf=!1;this.hoverIndex=v}},handleMouseleave:function(){this.itemDisabled||(this.isHover=!1,this.setHalf(this.currentValue),this.hoverIndex=-1)},setHalf:function(v){this.isHalf=this.allowHalf&&v.toString().indexOf(".")>=0},handleClick:function(v){this.itemDisabled||(this.isHalf&&(v-=.5),this.clearable&&Math.abs(v-this.currentValue)<.01&&(v=0),this.currentValue=v,this.$emit("input",v),this.$emit("on-change",v),this.dispatch("FormItem","on-form-change",v))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(75),i=F(s),f=r(26),e=F(f),l=r(21),n=F(l),t=r(2),o=F(t),d=r(1),u=F(d),c=r(17),g=F(c),p=r(194),v=F(p),y=r(93),b=F(y),A=r(528),x=F(A),E=r(3),S=r(12),C=r(4),T=F(C),k=r(11),M=F(k),P=r(94),N=F(P);function F(z){return z&&z.__esModule?z:{default:z}}var q="ivu-slider";h.default={name:"Slider",mixins:[T.default,M.default],components:{InputNumber:v.default,Tooltip:b.default,SliderMarker:x.default},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},range:{type:Boolean,default:!1},value:{type:[Number,Array],default:0},disabled:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},inputSize:{type:String,default:"default",validator:function(O){return(0,E.oneOf)(O,["small","large","default"])}},showStops:{type:Boolean,default:!1},tipFormat:{type:Function,default:function(O){return O}},showTip:{type:String,default:"hover",validator:function(O){return(0,E.oneOf)(O,["hover","always","never"])}},name:{type:String},activeChange:{type:Boolean,default:!0},marks:{type:Object}},data:function(){var O=this.checkLimits(Array.isArray(this.value)?this.value:[this.value]);return this.range&&this.value===null&&(O=[0,0]),{prefixCls:q,currentValue:O,dragging:!1,pointerDown:"",startX:0,currentX:0,startPos:0,oldValue:[].concat((0,g.default)(O)),valueIndex:{min:0,max:1},sliderWidth:0,isValueNull:!1}},watch:{value:function(O){O===null&&(this.isValueNull=!0),O=this.checkLimits(Array.isArray(O)?O:[O]),!this.dragging&&(O[0]!==this.currentValue[0]||O[1]!==this.currentValue[1])&&(this.isValueNull&&this.range?this.currentValue=[0,0]:this.currentValue=O)},exportValue:function(O){var R=this;this.$nextTick(function(){(0,u.default)(this,R),this.$refs.minTooltip.updatePopper(),this.range&&this.$refs.maxTooltip.updatePopper()}.bind(this));var I=this.range?O:O[0];this.isValueNull?(this.isValueNull=!1,this.$emit("input",null)):this.$emit("input",I),this.$emit("on-input",I)}},computed:{classes:function(){var O;return[""+q,(O={},(0,o.default)(O,q+"-input",this.showInput&&!this.range),(0,o.default)(O,q+"-range",this.range),(0,o.default)(O,q+"-disabled",this.itemDisabled),O)]},minButtonClasses:function(){return[q+"-button",(0,o.default)({},q+"-button-dragging",this.pointerDown==="min")]},maxButtonClasses:function(){return[q+"-button",(0,o.default)({},q+"-button-dragging",this.pointerDown==="max")]},exportValue:function(){var O=this,R=(String(this.step).split(".")[1]||"").length;return this.currentValue.map(function(I){return(0,u.default)(this,O),Number(I.toFixed(R))}.bind(this))},minPosition:function(){var O=this.currentValue;return(O[0]-this.min)/this.valueRange*100},maxPosition:function(){var O=this.currentValue;return(O[1]-this.min)/this.valueRange*100},barStyle:function(){var O={width:(this.currentValue[0]-this.min)/this.valueRange*100+"%"};return this.range&&(O.left=(this.currentValue[0]-this.min)/this.valueRange*100+"%",O.width=(this.currentValue[1]-this.currentValue[0])/this.valueRange*100+"%"),O},stops:function(){for(var O=this.valueRange/this.step,R=[],I=100*this.step/this.valueRange,D=1;D<O;D++)R.push(D*I);return R},markList:function(){var O=this;if(!this.marks)return[];var R=(0,n.default)(this.marks);return R.map(parseFloat).sort(function(I,D){return(0,u.default)(this,O),I-D}.bind(this)).filter(function(I){return(0,u.default)(this,O),I<=this.max&&I>=this.min}.bind(this)).map(function(I){return(0,u.default)(this,O),{point:I,position:(I-this.min)*100/(this.max-this.min),mark:this.marks[I]}}.bind(this))},tipDisabled:function(){return this.tipFormat(this.currentValue[0])===null||this.showTip==="never"},valueRange:function(){return this.max-this.min},firstPosition:function(){return this.currentValue[0]},secondPosition:function(){return this.currentValue[1]}},methods:{getPointerX:function(O){return O.type.indexOf("touch")!==-1?O.touches[0].clientX:O.clientX},checkLimits:function(O){var R=(0,e.default)(O,2),I=R[0],D=R[1];return I=Math.max(this.min,I),I=Math.min(this.max,I),D=Math.max(this.min,I,D),D=Math.min(this.max,D),[I,D]},getCurrentValue:function(O,R){if(!this.itemDisabled){var I=this.valueIndex[R];if(!(typeof I>"u"))return this.currentValue[I]}},onKeyLeft:function(O,R){var I=this.getCurrentValue(O,R);(0,i.default)(I)&&this.changeButtonPosition(I-this.step,R)},onKeyRight:function(O,R){var I=this.getCurrentValue(O,R);(0,i.default)(I)&&this.changeButtonPosition(I+this.step,R)},onPointerDown:function(O,R){this.itemDisabled||(O.preventDefault(),this.pointerDown=R,this.onPointerDragStart(O),(0,S.on)(window,"mousemove",this.onPointerDrag),(0,S.on)(window,"touchmove",this.onPointerDrag),(0,S.on)(window,"mouseup",this.onPointerDragEnd),(0,S.on)(window,"touchend",this.onPointerDragEnd))},onPointerDragStart:function(O){this.dragging=!1,this.startX=this.getPointerX(O),this.startPos=this[String(this.pointerDown)+"Position"]*this.valueRange/100+this.min},onPointerDrag:function(O){this.dragging=!0,this.$refs[String(this.pointerDown)+"Tooltip"].visible=!0,this.currentX=this.getPointerX(O);var R=(this.currentX-this.startX)/this.sliderWidth*this.valueRange;this.changeButtonPosition(this.startPos+R)},onPointerDragEnd:function(){this.dragging&&(this.dragging=!1,this.$refs[String(this.pointerDown)+"Tooltip"].visible=!1,this.emitChange()),this.pointerDown="",(0,S.off)(window,"mousemove",this.onPointerDrag),(0,S.off)(window,"touchmove",this.onPointerDrag),(0,S.off)(window,"mouseup",this.onPointerDragEnd),(0,S.off)(window,"touchend",this.onPointerDragEnd)},changeButtonPosition:function(O,R){var I=R||this.pointerDown,D=I==="min"?0:1;I==="min"?O=this.checkLimits([O,this.max])[0]:O=this.checkLimits([this.min,O])[1];var B=this.handleDecimal(O,this.step),j=this.currentValue;j[D]=O-B,this.range&&(I==="min"&&j[0]>j[1]&&(j[1]=j[0]),I==="max"&&j[0]>j[1]&&(j[0]=j[1])),this.currentValue=[].concat((0,g.default)(j)),this.dragging||this.currentValue[D]!==this.oldValue[D]&&(this.emitChange(),this.oldValue[D]=this.currentValue[D])},handleDecimal:function(O,R){if(R<1){var I=R.toString(),D=1,B=void 0;try{B=I.split(".")[1].length}catch{B=0}return D=Math.pow(10,B),O*D%(R*D)/D}else return O%R},emitChange:function(){var O=this.range?this.exportValue:this.exportValue[0];this.$emit("on-change",O),this.dispatch("FormItem","on-form-change",O)},sliderClick:function(O){if(!this.itemDisabled){var R=this.getPointerX(O),I=this.$refs.slider.getBoundingClientRect().left,D=(R-I)/this.sliderWidth*this.valueRange+this.min,B=D/this.valueRange*100;!this.range||B<=this.minPosition?this.changeButtonPosition(D,"min"):B>=this.maxPosition?this.changeButtonPosition(D,"max"):this.changeButtonPosition(D,D-this.firstPosition<=this.secondPosition-D?"min":"max")}},handleInputChange:function(O){this.currentValue=[O===0?0:O||this.min,this.currentValue[1]],this.emitChange()},handleFocus:function(O){this.$refs[String(O)+"Tooltip"].handleShowPopper()},handleBlur:function(O){this.$refs[String(O)+"Tooltip"].handleClosePopper()},handleSetSliderWidth:function(){this.sliderWidth=parseInt((0,E.getStyle)(this.$refs.slider,"width"),10)}},mounted:function(){var O=this;this.$on("on-visible-change",function(R){(0,u.default)(this,O),R&&this.showTip==="always"&&(this.$refs.minTooltip.doDestroy(),this.range&&this.$refs.maxTooltip.doDestroy(),this.$nextTick(function(){(0,u.default)(this,O),this.$refs.minTooltip.updatePopper(),this.range&&this.$refs.maxTooltip.updatePopper()}.bind(this)))}.bind(this)),this.observer=(0,N.default)(),this.observer.listenTo(this.$refs.slider,this.handleSetSliderWidth)},beforeDestroy:function(){this.observer.removeListener(this.$refs.slider,this.handleSetSliderWidth)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=c(s),f=r(2),e=c(f),l=r(221),n=c(l),t=r(23),o=c(t),d=r(3),u=r(37);function c(p){return p&&p.__esModule?p:{default:p}}var g="ivu-tooltip";h.default={name:"Tooltip",directives:{TransferDom:o.default},mixins:[n.default],props:{placement:{validator:function(v){return(0,d.oneOf)(v,["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"])},default:"bottom"},content:{type:[String,Number],default:""},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1},controlled:{type:Boolean,default:!1},always:{type:Boolean,default:!1},transfer:{type:Boolean,default:function(){return!this.$IVIEW||this.$IVIEW.transfer===""?!1:this.$IVIEW.transfer}},theme:{validator:function(v){return(0,d.oneOf)(v,["dark","light"])},default:"dark"},maxWidth:{type:[String,Number]},transferClassName:{type:String}},data:function(){return{prefixCls:g,tIndex:this.handleGetIndex()}},computed:{innerStyles:function(){var v={};return this.maxWidth&&(v["max-width"]=String(this.maxWidth)+"px"),v},innerClasses:function(){return[g+"-inner",(0,e.default)({},g+"-inner-with-width",!!this.maxWidth)]},dropStyles:function(){var v={};return this.transfer&&(v["z-index"]=1060+this.tIndex),v},dropdownCls:function(){var v;return[g+"-popper",g+"-"+String(this.theme),(v={},(0,e.default)(v,g+"-transfer",this.transfer),(0,e.default)(v,this.transferClassName,this.transferClassName),v)]}},watch:{content:function(){this.updatePopper()}},methods:{handleShowPopper:function(){var v=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){(0,i.default)(this,v),this.visible=!0}.bind(this),this.delay),this.tIndex=this.handleGetIndex()},handleClosePopper:function(){var v=this;this.timeout&&(clearTimeout(this.timeout),this.controlled||(this.timeout=setTimeout(function(){(0,i.default)(this,v),this.visible=!1}.bind(this),100)))},handleGetIndex:function(){return(0,u.transferIncrease)(),u.transferIndex}},mounted:function(){this.always&&this.updatePopper()}}},function(_,h,r){var s=_.exports={};s.forEach=function(i,f){for(var e=0;e<i.length;e++){var l=f(i[e]);if(l)return l}}},function(_,h,r){var s=_.exports={};s.isIE=function(i){function f(){var l=navigator.userAgent.toLowerCase();return l.indexOf("msie")!==-1||l.indexOf("trident")!==-1||l.indexOf(" edge/")!==-1}if(!f())return!1;if(!i)return!0;var e=function(){var l,n=3,t=document.createElement("div"),o=t.getElementsByTagName("i");do t.innerHTML="<!--[if gt IE "+ ++n+"]><i></i><![endif]-->";while(o[0]);return n>4?n:l}();return i===e},s.isLegacyOpera=function(){return!!window.opera}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=n(s),f=r(2),e=n(f),l=r(3);function n(d){return d&&d.__esModule?d:{default:d}}var t="ivu-steps";function o(d){var u=void 0;return function(){if(!u){u=!0;var c=this,g=arguments,p=function(){u=!1,d.apply(c,g)};this.$nextTick(p)}}}h.default={name:"Steps",props:{current:{type:Number,default:0},status:{validator:function(u){return(0,l.oneOf)(u,["wait","process","finish","error"])},default:"process"},size:{validator:function(u){return(0,l.oneOf)(u,["small"])}},direction:{validator:function(u){return(0,l.oneOf)(u,["horizontal","vertical"])},default:"horizontal"}},computed:{classes:function(){return[""+t,t+"-"+String(this.direction),(0,e.default)({},t+"-"+String(this.size),!!this.size)]}},methods:{updateChildProps:function(u){var c=this,g=this.$children.length;this.$children.forEach(function(p,v){(0,i.default)(this,c),p.stepNumber=v+1,this.direction==="horizontal"&&(p.total=g),u&&p.currentStatus||(v===this.current?this.status!=="error"&&(p.currentStatus="process"):v<this.current?p.currentStatus="finish":p.currentStatus="wait"),p.currentStatus!=="error"&&v!==0&&(this.$children[v-1].nextError=!1)}.bind(this))},setNextError:function(){var u=this;this.$children.forEach(function(c,g){(0,i.default)(this,u),c.currentStatus==="error"&&g!==0&&(this.$children[g-1].nextError=!0)}.bind(this))},updateCurrent:function(u){if(!(this.current<0||this.current>=this.$children.length))if(u){var c=this.$children[this.current].currentStatus;c||(this.$children[this.current].currentStatus=this.status)}else this.$children[this.current].currentStatus=this.status},debouncedAppendRemove:function(){return o(function(){this.updateSteps()})},updateSteps:function(){this.updateChildProps(!0),this.setNextError(),this.updateCurrent(!0)}},mounted:function(){this.updateSteps(),this.$on("append",this.debouncedAppendRemove()),this.$on("remove",this.debouncedAppendRemove())},watch:{current:function(){this.updateChildProps()},status:function(){this.updateCurrent()}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=n(s),f=r(4),e=n(f),l=r(3);function n(d){return d&&d.__esModule?d:{default:d}}var t="ivu-steps",o="ivu-icon";h.default={name:"Step",mixins:[e.default],props:{status:{validator:function(u){return(0,l.oneOf)(u,["wait","process","finish","error"])}},title:{type:String,default:""},content:{type:String},icon:{type:String}},data:function(){return{prefixCls:t,stepNumber:"",nextError:!1,total:1,currentStatus:""}},computed:{wrapClasses:function(){var u;return[t+"-item",t+"-status-"+String(this.currentStatus),(u={},(0,i.default)(u,t+"-custom",!!this.icon||!!this.$slots.icon),(0,i.default)(u,t+"-next-error",this.nextError),u)]},iconClasses:function(){var u="";return this.icon?u=this.icon:this.currentStatus==="finish"?u="ios-checkmark":this.currentStatus==="error"&&(u="ios-close"),[t+"-icon",""+o,(0,i.default)({},o+"-"+String(u),u!=="")]}},watch:{status:function(u){this.currentStatus=u,this.currentStatus==="error"&&this.$parent.setNextError()}},created:function(){this.currentStatus=this.status},mounted:function(){this.dispatch("Steps","append")},beforeDestroy:function(){this.dispatch("Steps","remove")}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=u(s),f=r(2),e=u(f),l=r(3),n=r(4),t=u(n),o=r(11),d=u(o);function u(g){return g&&g.__esModule?g:{default:g}}var c="ivu-switch";h.default={name:"iSwitch",mixins:[t.default,d.default],props:{value:{type:[String,Number,Boolean],default:!1},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:!1},size:{validator:function(p){return(0,l.oneOf)(p,["large","small","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},name:{type:String},loading:{type:Boolean,default:!1},trueColor:{type:String},falseColor:{type:String},beforeChange:Function},data:function(){return{currentValue:this.value}},computed:{wrapClasses:function(){var p;return[""+c,(p={},(0,e.default)(p,c+"-checked",this.currentValue===this.trueValue),(0,e.default)(p,c+"-disabled",this.itemDisabled),(0,e.default)(p,c+"-"+String(this.size),!!this.size),(0,e.default)(p,c+"-loading",this.loading),p)]},wrapStyles:function(){var p={};return this.trueColor&&this.currentValue===this.trueValue?(p["border-color"]=this.trueColor,p["background-color"]=this.trueColor):this.falseColor&&this.currentValue===this.falseValue&&(p["border-color"]=this.falseColor,p["background-color"]=this.falseColor),p},innerClasses:function(){return c+"-inner"}},methods:{handleToggle:function(){var p=this.currentValue===this.trueValue?this.falseValue:this.trueValue;this.currentValue=p,this.$emit("input",p),this.$emit("on-change",p),this.dispatch("FormItem","on-form-change",p)},toggle:function(p){var v=this;if(p.preventDefault(),this.itemDisabled||this.loading)return!1;if(!this.beforeChange)return this.handleToggle();var y=this.beforeChange();y&&y.then?y.then(function(){(0,i.default)(this,v),this.handleToggle()}.bind(this)):this.handleToggle()}},watch:{value:function(p){if(p!==this.trueValue&&p!==this.falseValue&&p!==null)throw"Value should be trueValue or falseValue.";this.currentValue=p}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(45),i=Q(s),f=r(552),e=Q(f),l=r(17),n=Q(l),t=r(57),o=Q(t),d=r(1),u=Q(d),c=r(2),g=Q(c),p=r(567),v=Q(p),y=r(570),b=Q(y),A=r(576),x=Q(A),E=r(61),S=Q(E),C=r(62),T=Q(C),k=r(91),M=Q(k),P=r(3),N=r(12),F=r(578),q=Q(F),z=r(579),O=Q(z),R=r(6),I=Q(R),D=r(94),B=Q(D),j=r(580);function Q(W){return W&&W.__esModule?W:{default:W}}var X="ivu-table",Z=1,L=1;h.default={name:"Table",mixins:[I.default],components:{tableHead:v.default,tableBody:b.default,tableSummary:x.default,Spin:M.default,Dropdown:S.default,DropdownMenu:T.default},provide:function(){return{tableRoot:this}},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:{validator:function(G){return(0,P.oneOf)(G,["small","large","default"])},default:function(){return!this.$IVIEW||this.$IVIEW.size===""?"default":this.$IVIEW.size}},width:{type:[Number,String]},height:{type:[Number,String]},maxHeight:{type:[Number,String]},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},highlightRow:{type:Boolean,default:!1},rowClassName:{type:Function,default:function(){return""}},context:{type:Object},noDataText:{type:String},noFilteredDataText:{type:String},disabledHover:{type:Boolean},loading:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tooltipTheme:{validator:function(G){return(0,P.oneOf)(G,["dark","light"])},default:"dark"},tooltipMaxWidth:{type:Number,default:300},rowKey:{type:[Boolean,String],default:!1},spanMethod:{type:Function},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},sumText:{type:String},indentSize:{type:Number,default:16},loadData:{type:Function},updateShowChildren:{type:Boolean,default:!1},contextMenu:{type:Boolean,default:!1},showContextMenu:{type:Boolean,default:!1},fixedShadow:{validator:function(G){return(0,P.oneOf)(G,["auto","show","hide"])},default:"show"}},data:function(){var G=this.makeColumnsId(this.columns);return{ready:!1,tableWidth:0,columnsWidth:{},prefixCls:X,compiledUids:[],objData:this.makeObjData(),rebuildData:[],cloneColumns:this.makeColumns(G),columnRows:this.makeColumnRows(!1,G),leftFixedColumnRows:this.makeColumnRows("left",G),rightFixedColumnRows:this.makeColumnRows("right",G),allColumns:(0,j.getAllColumns)(G),showSlotHeader:!0,showSlotFooter:!0,bodyHeight:0,scrollBarWidth:(0,P.getScrollBarSize)(),currentContext:this.context,cloneData:(0,P.deepCopy)(this.data),showVerticalScrollBar:!1,showHorizontalScrollBar:!1,headerWidth:0,headerHeight:0,showResizeLine:!1,contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},scrollOnTheLeft:!1,scrollOnTheRight:!1}},computed:{localeNoDataText:function(){return this.noDataText===void 0?this.t("i.table.noDataText"):this.noDataText},localeNoFilteredDataText:function(){return this.noFilteredDataText===void 0?this.t("i.table.noFilteredDataText"):this.noFilteredDataText},localeSumText:function(){return this.sumText===void 0?this.t("i.table.sumText"):this.sumText},wrapClasses:function(){var G;return[X+"-wrapper",(G={},(0,g.default)(G,X+"-hide",!this.ready),(0,g.default)(G,X+"-with-header",this.showSlotHeader),(0,g.default)(G,X+"-with-footer",this.showSlotFooter),(0,g.default)(G,X+"-with-summary",this.showSummary),(0,g.default)(G,X+"-wrapper-with-border",this.border),G)]},classes:function(){var G;return[""+X,(G={},(0,g.default)(G,X+"-"+String(this.size),!!this.size),(0,g.default)(G,X+"-border",this.border),(0,g.default)(G,X+"-stripe",this.stripe),(0,g.default)(G,X+"-with-fixed-top",!!this.height),G)]},fixedTableClasses:function(){return[X+"-fixed",(0,g.default)({},X+"-fixed-shadow",this.fixedShadow==="show"||this.fixedShadow==="auto"&&!this.scrollOnTheLeft)]},fixedRightTableClasses:function(){return[X+"-fixed-right",(0,g.default)({},X+"-fixed-shadow",this.fixedShadow==="show"||this.fixedShadow==="auto"&&!this.scrollOnTheRight)]},fixedHeaderClasses:function(){return[X+"-fixed-header",(0,g.default)({},X+"-fixed-header-with-empty",!this.rebuildData.length)]},styles:function(){var G={},J=0;if(this.showSummary&&(this.size==="small"?J=40:this.size==="large"?J=60:J=48),this.height){var H=parseInt(this.height)+J;G.height=String(H)+"px"}if(this.maxHeight){var U=parseInt(this.maxHeight)+J;G.maxHeight=String(U)+"px"}return this.width&&(G.width=String(this.width)+"px"),G},tableStyle:function(){var G={};if(this.tableWidth!==0){var J="";this.bodyHeight===0?J=this.tableWidth:J=this.tableWidth-(this.showVerticalScrollBar?this.scrollBarWidth:0),G.width=String(J)+"px"}return G},tableHeaderStyle:function(){var G={};if(this.tableWidth!==0){var J="";J=this.tableWidth,G.width=String(J)+"px"}return G},fixedTableStyle:function(){var G=this,J={},H=0;return this.leftFixedColumns.forEach(function(U){(0,u.default)(this,G),U.fixed&&U.fixed==="left"&&(H+=U._width)}.bind(this)),J.width=String(H)+"px",J},fixedRightTableStyle:function(){var G=this,J={},H=0;return this.rightFixedColumns.forEach(function(U){(0,u.default)(this,G),U.fixed&&U.fixed==="right"&&(H+=U._width)}.bind(this)),J.width=String(H)+"px",J.right=String(this.showVerticalScrollBar?this.scrollBarWidth:0)+"px",J},fixedRightHeaderStyle:function(){var G={},J=0,H=this.headerHeight+1;return this.showVerticalScrollBar&&(J=this.scrollBarWidth),G.width=String(J)+"px",G.height=String(H)+"px",G},bodyStyle:function(){var G={};if(this.bodyHeight!==0){var J=this.bodyHeight;this.height?G.height=String(J)+"px":this.maxHeight&&(G.maxHeight=String(J)+"px")}return G},fixedBodyStyle:function(){var G={};if(this.bodyHeight!==0){var J=this.bodyHeight-(this.showHorizontalScrollBar?this.scrollBarWidth:0),H=this.showHorizontalScrollBar?J+"px":J-1+"px";this.height?G.height=H:this.maxHeight&&(G.maxHeight=H)}return G},leftFixedColumns:function(){return(0,j.convertColumnOrder)(this.cloneColumns,"left")},rightFixedColumns:function(){return(0,j.convertColumnOrder)(this.cloneColumns,"right")},isLeftFixed:function(){var G=this;return this.columns.some(function(J){return(0,u.default)(this,G),J.fixed&&J.fixed==="left"}.bind(this))},isRightFixed:function(){var G=this;return this.columns.some(function(J){return(0,u.default)(this,G),J.fixed&&J.fixed==="right"}.bind(this))},summaryData:function(){var G=this;if(!this.showSummary)return{};var J={};return this.summaryMethod?J=this.summaryMethod({columns:this.cloneColumns,data:this.rebuildData}):this.cloneColumns.forEach(function(H,U){(0,u.default)(this,G);var K=H.key;if(U===0){J[K]={key:H.key,value:this.localeSumText};return}var te=this.rebuildData.map(function(re){return(0,u.default)(this,G),Number(re[H.key])}.bind(this)),ee=[],ie=!0;te.forEach(function(re){if((0,u.default)(this,G),!isNaN(re)){ie=!1;var Y=(""+re).split(".")[1];ee.push(Y?Y.length:0)}}.bind(this));var se=Math.max.apply(null,ee);if(ie)J[K]={key:H.key,value:""};else{var ne=te.reduce(function(re,Y){(0,u.default)(this,G);var V=Number(Y);return isNaN(V)?re:parseFloat((re+Y).toFixed(Math.min(se,20)))}.bind(this),0);J[K]={key:H.key,value:ne}}}.bind(this)),J}},methods:{rowClsName:function(G){return this.rowClassName(this.data[G],G)},handleResize:function(){var G=this,J=this.$el.offsetWidth-1,H={},U=0,K=[],te=[],ee=[];this.cloneColumns.forEach(function(le){(0,u.default)(this,G),le.width?K.push(le):(te.push(le),le.minWidth&&(U+=le.minWidth),le.maxWidth||ee.push(le)),le._width=null}.bind(this));var ie=K.map(function(le){return(0,u.default)(this,G),le.width}.bind(this)).reduce(function(le,ae){return(0,u.default)(this,G),le+ae}.bind(this),0),se=J-ie-U-(this.showVerticalScrollBar?this.scrollBarWidth:0)-1,ne=te.length,re=0;se>0&&ne>0&&(re=parseInt(se/ne));for(var Y=0;Y<this.cloneColumns.length;Y++){var V=this.cloneColumns[Y],oe=re+(V.minWidth?V.minWidth:0);V.width?oe=V.width:V._width?oe=V._width:(V.minWidth>oe?oe=V.minWidth:V.maxWidth<oe&&(oe=V.maxWidth),se>0?(se-=oe-(V.minWidth?V.minWidth:0),ne--,ne>0?re=parseInt(se/ne):re=0):re=0),V._width=oe,H[V._index]={width:oe}}if(se>0){ne=ee.length,re=parseInt(se/ne);for(var fe=0;fe<ee.length;fe++){var ce=ee[fe],he=ce._width+re;ne>1?(ne--,se-=re,re=parseInt(se/ne)):re=0,ce._width=he,H[ce._index]={width:he}}}this.tableWidth=this.cloneColumns.map(function(le){return(0,u.default)(this,G),le._width}.bind(this)).reduce(function(le,ae){return(0,u.default)(this,G),le+ae}.bind(this),0)+(this.showVerticalScrollBar?this.scrollBarWidth:0)+1,this.columnsWidth=H,this.fixedHeader(),this.fixedShadow==="auto"&&this.$nextTick(function(){(0,u.default)(this,G);var le=this.$refs.body;this.scrollOnTheLeft=le.scrollLeft===0,this.scrollOnTheRight=le.scrollWidth===le.scrollLeft+le.clientWidth}.bind(this))},handleMouseIn:function(G,J){if(!this.disabledHover){var H=J?this.getDataByRowKey(J):this.objData[G];H._isHover||(H._isHover=!0)}},handleMouseOut:function(G,J){if(!this.disabledHover){var H=J?this.getDataByRowKey(J):this.objData[G];H._isHover=!1}},handleCurrentRow:function(G,J,H){var U=H?this.getDataByRowKey(H):this.objData[J],K=null,te=-1;for(var ee in this.objData)if(this.objData[ee]._isHighlight){te=parseInt(ee),this.objData[ee]._isHighlight=!1;break}else if(this.objData[ee].children&&this.objData[ee].children.length){var ie=this.handleResetChildrenRow(this.objData[ee]);ie&&(K=JSON.parse((0,o.default)(ie)))}G==="highlight"&&(U._isHighlight=!0),te>=0&&(K=JSON.parse((0,o.default)(this.cloneData[te])));var se=G==="highlight"?JSON.parse(H?(0,o.default)(this.getBaseDataByRowKey(H)):(0,o.default)(this.cloneData[J])):null;this.$emit("on-current-change",se,K)},handleResetChildrenRow:function(G){var J=null;if(G.children&&G.children.length)for(var H=0;H<G.children.length;H++){var U=G.children[H];if(U._isHighlight){U._isHighlight=!1,J=U;break}else U.children&&U.children.length&&(J=this.handleResetChildrenRow(U))}return J},highlightCurrentRow:function(G,J){var H=J?this.getDataByRowKey(J):this.objData[G];!this.highlightRow||H._isHighlight||this.handleCurrentRow("highlight",G,J)},clearCurrentRow:function(){this.highlightRow&&this.handleCurrentRow("clear")},clickCurrentRow:function(G,J){this.highlightCurrentRow(G,J),J?this.$emit("on-row-click",JSON.parse((0,o.default)(this.getBaseDataByRowKey(J)))):this.$emit("on-row-click",JSON.parse((0,o.default)(this.cloneData[G])),G)},dblclickCurrentRow:function(G,J){this.highlightCurrentRow(G,J),J?this.$emit("on-row-dblclick",JSON.parse((0,o.default)(this.getBaseDataByRowKey(J)))):this.$emit("on-row-dblclick",JSON.parse((0,o.default)(this.cloneData[G])),G)},contextmenuCurrentRow:function(G,J,H){var U=this;this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(function(){(0,u.default)(this,U);var K=this.$refs.tableWrap,te=K.getBoundingClientRect(),ee={left:H.clientX-te.left+"px",top:H.clientY-te.top+"px"};this.contextMenuStyles=ee,this.contextMenuVisible=!0,J?this.$emit("on-contextmenu",JSON.parse((0,o.default)(this.getBaseDataByRowKey(J))),H,ee):this.$emit("on-contextmenu",JSON.parse((0,o.default)(this.cloneData[G])),H,ee)}.bind(this))},getSelection:function(){var G=this,J=[],H=[];for(var U in this.objData){var K=this.objData[U];K._isChecked&&J.push(parseInt(U)),K.children&&K.children.length&&(H=H.concat(this.getSelectionChildrenRowKeys(K,H)))}H=[].concat((0,n.default)(new e.default(H)));var te=[];return this.data.forEach(function(ee,ie){(0,u.default)(this,G),J.indexOf(ie)>-1&&(te=te.concat(ee)),ee.children&&ee.children.length&&H.length&&(te=te.concat(this.getSelectionChildren(ee,te,H)))}.bind(this)),te=[].concat((0,n.default)(new e.default(te))),JSON.parse((0,o.default)(te))},getSelectionChildrenRowKeys:function(G,J){var H=this;return G.children&&G.children.length&&G.children.forEach(function(U){(0,u.default)(this,H),U._isChecked&&J.push(U._rowKey),U.children&&U.children.length&&(J=J.concat(this.getSelectionChildrenRowKeys(U,J)))}.bind(this)),J},getSelectionChildren:function(G,J,H){var U=this;return G.children&&G.children.length&&G.children.forEach(function(K){(0,u.default)(this,U),H.indexOf(K[this.rowKey])>-1&&(J=J.concat(K)),K.children&&K.children.length&&(J=J.concat(this.getSelectionChildren(K,J,H)))}.bind(this)),J},toggleSelect:function(G,J){var H={};if(J)H=this.getDataByRowKey(J);else for(var U in this.objData)if(parseInt(U)===G){H=this.objData[U];break}var K=!H._isChecked;H._isChecked=K;var te=this.getSelection(),ee=J?this.getBaseDataByRowKey(J,this.data):this.data[G];this.$emit(K?"on-select":"on-select-cancel",te,JSON.parse((0,o.default)(ee))),this.$emit("on-selection-change",te)},toggleExpand:function(G){var J=this,H={};for(var U in this.objData)if(parseInt(U)===G){H=this.objData[U];break}var K=!H._isExpanded;this.objData[G]._isExpanded=K,this.$emit("on-expand",JSON.parse((0,o.default)(this.cloneData[G])),K),(this.height||this.maxHeight)&&this.$nextTick(function(){return(0,u.default)(this,J),this.fixedBody()}.bind(this))},toggleTree:function(G){var J=this,H=this.getDataByRowKey(G);if(!("_loading"in H&&H._loading)){if("_loading"in H&&!H._loading&&H.children.length===0){var U=this.getBaseDataByRowKey(G,this.data);this.$set(U,"_loading",!0),this.loadData(U,function(K){(0,u.default)(this,J),this.$set(U,"_loading",!1),K.length&&(this.$set(U,"children",K),this.$nextTick(function(){(0,u.default)(this,J);var te=this.getDataByRowKey(G);te._isShowChildren=!te._isShowChildren,this.updateDataStatus(G,"_showChildren",te._isShowChildren)}.bind(this)))}.bind(this));return}H._isShowChildren=!H._isShowChildren,this.updateShowChildren&&this.updateDataStatus(G,"_showChildren",H._isShowChildren),this.$emit("on-expand-tree",G,H._isShowChildren)}},updateDataStatus:function(G,J,H){var U=this.getBaseDataByRowKey(G,this.data);this.$set(U,J,H)},getDataByRowKey:function(G){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.objData,H=null;for(var U in J){var K=J[U];if(K._rowKey===G){H=K;break}else if(K.children&&K.children.length&&(H=this.getChildrenByRowKey(G,K),H))break}return H},getChildrenByRowKey:function(G,J){var H=null;if(J.children&&J.children.length)for(var U=0;U<J.children.length;U++){var K=J.children[U];if(K._rowKey===G){H=K;break}else if(K.children&&K.children.length&&(H=this.getChildrenByRowKey(G,K),H))break}return H},getBaseDataByRowKey:function(G){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.cloneData,H=null,U=0;U<J.length;U++){var K=J[U];if(K[this.rowKey]===G){H=K;break}else if(K.children&&K.children.length&&(H=this.getChildrenDataByRowKey(G,K),H&&H[this.rowKey]===G))return H}return H},getChildrenDataByRowKey:function(G,J){var H=null;if(J.children&&J.children.length)for(var U=0;U<J.children.length;U++){var K=J.children[U];if(K[this.rowKey]===G){H=K;break}else if(K.children&&K.children.length&&(H=this.getChildrenDataByRowKey(G,K),H))break}return H},selectAll:function(G){var J=!0,H=!1,U=void 0;try{for(var K=(0,i.default)(this.rebuildData),te;!(J=(te=K.next()).done);J=!0){var ee=te.value,ie=this.objData[ee._index];ie._isDisabled||(ie._isChecked=G),ee.children&&ee.children.length&&this.selectAllChildren(ie,G)}}catch(ne){H=!0,U=ne}finally{try{!J&&K.return&&K.return()}finally{if(H)throw U}}var se=this.getSelection();G?this.$emit("on-select-all",se):this.$emit("on-select-all-cancel",se),this.$emit("on-selection-change",se)},selectAllChildren:function(G,J){var H=this;G.children&&G.children.length&&G.children.map(function(U){(0,u.default)(this,H),U._isDisabled||(U._isChecked=J),U.children&&U.children.length&&this.selectAllChildren(U,J)}.bind(this))},fixedHeader:function(){var G=this;this.height||this.maxHeight?this.$nextTick(function(){(0,u.default)(this,G);var J=parseInt((0,P.getStyle)(this.$refs.title,"height"))||0,H=parseInt((0,P.getStyle)(this.$refs.header,"height"))||0,U=parseInt((0,P.getStyle)(this.$refs.footer,"height"))||0;this.height?this.bodyHeight=this.height-J-H-U:this.maxHeight&&(this.bodyHeight=this.maxHeight-J-H-U),this.$nextTick(function(){return(0,u.default)(this,G),this.fixedBody()}.bind(this))}.bind(this)):(this.bodyHeight=0,this.$nextTick(function(){return(0,u.default)(this,G),this.fixedBody()}.bind(this)))},fixedBody:function(){if(this.$refs.header&&(this.headerWidth=this.$refs.header.children[0].offsetWidth,this.headerHeight=this.$refs.header.children[0].offsetHeight),!this.$refs.tbody||!this.data||this.data.length===0)this.showVerticalScrollBar=!1;else{var G=this.$refs.tbody.$el,J=G.parentElement,H=G.offsetHeight,U=J.offsetHeight;this.showHorizontalScrollBar=J.offsetWidth<G.offsetWidth+(this.showVerticalScrollBar?this.scrollBarWidth:0),this.showVerticalScrollBar=this.bodyHeight?U-(this.showHorizontalScrollBar?this.scrollBarWidth:0)<H:!1,this.showVerticalScrollBar?J.classList.add(this.prefixCls+"-overflowY"):J.classList.remove(this.prefixCls+"-overflowY"),this.showHorizontalScrollBar?J.classList.add(this.prefixCls+"-overflowX"):J.classList.remove(this.prefixCls+"-overflowX")}},hideColumnFilter:function(){var G=this;this.cloneColumns.forEach(function(J){return(0,u.default)(this,G),J._filterVisible=!1}.bind(this))},handleBodyScroll:function(G){this.scrollOnTheLeft=G.target.scrollLeft===0,this.scrollOnTheRight=G.target.scrollWidth===G.target.scrollLeft+G.target.clientWidth,this.showHeader&&(this.$refs.header.scrollLeft=G.target.scrollLeft),this.isLeftFixed&&(this.$refs.fixedBody.scrollTop=G.target.scrollTop),this.isRightFixed&&(this.$refs.fixedRightBody.scrollTop=G.target.scrollTop),this.showSummary&&this.$refs.summary&&(this.$refs.summary.$el.scrollLeft=G.target.scrollLeft),this.hideColumnFilter()},handleFixedMousewheel:function(G){var J=this,H=G.deltaY;if(!H&&G.detail&&(H=G.detail*40),!H&&G.wheelDeltaY&&(H=-G.wheelDeltaY),!H&&G.wheelDelta&&(H=-G.wheelDelta),!!H){var U=this.$refs.body,K=U.scrollTop;H<0&&K!==0&&G.preventDefault(),H>0&&U.scrollHeight-U.clientHeight>K&&G.preventDefault();var te=0,ee=setInterval(function(){(0,u.default)(this,J),te+=5,H>0?U.scrollTop+=2:U.scrollTop-=2,te>=Math.abs(H)&&clearInterval(ee)}.bind(this),5)}},handleMouseWheel:function(G){var J=G.deltaX,H=this.$refs.body;J>0?H.scrollLeft=H.scrollLeft+10:H.scrollLeft=H.scrollLeft-10},sortData:function(G,J,H){var U=this,K=this.cloneColumns[H].key;G.sort(function(ee,ie){if((0,u.default)(this,U),this.cloneColumns[H].sortMethod)return this.cloneColumns[H].sortMethod(ee[K],ie[K],J);if(J==="asc")return ee[K]>ie[K]?1:-1;if(J==="desc")return ee[K]<ie[K]?1:-1}.bind(this));for(var te=0;te<G.length;te++)G[te].children&&G[te].children.length&&(G[te].children=this.sortData(G[te].children,J,H));return G},handleSort:function(G,J){var H=this,U=this.GetOriginalIndex(G);this.cloneColumns.forEach(function(te){return(0,u.default)(this,H),te._sortType="normal"}.bind(this));var K=this.cloneColumns[U].key;this.cloneColumns[U].sortable!=="custom"&&(J==="normal"?this.rebuildData=this.makeDataWithFilter():this.rebuildData=this.sortData(this.rebuildData,J,U)),this.cloneColumns[U]._sortType=J,this.$emit("on-sort-change",{column:JSON.parse((0,o.default)(this.allColumns[this.cloneColumns[U]._index])),key:K,order:J})},handleFilterHide:function(G){this.cloneColumns[G]._isFiltered||(this.cloneColumns[G]._filterChecked=[])},filterData:function(G,J){var H=this;return G.filter(function(U){if((0,u.default)(this,H),typeof J.filterRemote=="function")return!0;for(var K=!J._filterChecked.length,te=0;te<J._filterChecked.length&&(K=J.filterMethod(J._filterChecked[te],U),!K);te++);return K}.bind(this))},filterOtherData:function(G,J){var H=this,U=this.cloneColumns[J];return typeof U.filterRemote=="function"&&U.filterRemote.call(this.$parent,U._filterChecked,U.key,U),this.cloneColumns.forEach(function(K,te){(0,u.default)(this,H),te!==J&&(G=this.filterData(G,K))}.bind(this)),G},handleFilter:function(G){var J=this.cloneColumns[G],H=this.makeDataWithSort();H=this.filterOtherData(H,G),this.rebuildData=this.filterData(H,J),this.cloneColumns[G]._isFiltered=!0,this.cloneColumns[G]._filterVisible=!1,this.$emit("on-filter-change",J)},GetOriginalIndex:function(G){var J=this;return this.cloneColumns.findIndex(function(H){return(0,u.default)(this,J),H._index===G}.bind(this))},handleFilterSelect:function(G,J){var H=this.GetOriginalIndex(G);this.cloneColumns[H]._filterChecked=[J],this.handleFilter(H)},handleFilterReset:function(G){var J=this.GetOriginalIndex(G);this.cloneColumns[J]._isFiltered=!1,this.cloneColumns[J]._filterVisible=!1,this.cloneColumns[J]._filterChecked=[];var H=this.makeDataWithSort();H=this.filterOtherData(H,J),this.rebuildData=H,this.$emit("on-filter-change",this.cloneColumns[J])},makeData:function(){var G=this,J=(0,P.deepCopy)(this.data);return J.forEach(function(H,U){(0,u.default)(this,G),H._index=U,H._rowKey=typeof this.rowKey=="string"?H[this.rowKey]:Z++,H.children&&H.children.length&&(H.children=this.makeChildrenData(H))}.bind(this)),J},makeChildrenData:function(G){var J=this;return G.children&&G.children.length?G.children.map(function(H,U){(0,u.default)(this,J);var K=(0,P.deepCopy)(H);return K._index=U,K._rowKey=typeof this.rowKey=="string"?K[this.rowKey]:Z++,K.children&&K.children.length&&(K.children=this.makeChildrenData(K)),K}.bind(this)):G},makeDataWithSort:function(){for(var G=this.makeData(),J="normal",H=-1,U=!1,K=0;K<this.cloneColumns.length;K++)if(this.cloneColumns[K]._sortType!=="normal"){J=this.cloneColumns[K]._sortType,H=K,U=this.cloneColumns[K].sortable==="custom";break}return J!=="normal"&&!U&&(G=this.sortData(G,J,H)),G},makeDataWithFilter:function(){var G=this,J=this.makeData();return this.cloneColumns.forEach(function(H){return(0,u.default)(this,G),J=this.filterData(J,H)}.bind(this)),J},makeDataWithSortAndFilter:function(){var G=this,J=this.makeDataWithSort();return this.cloneColumns.forEach(function(H){return(0,u.default)(this,G),J=this.filterData(J,H)}.bind(this)),J},makeObjBaseData:function(G){var J=(0,P.deepCopy)(G);return typeof this.rowKey=="string"&&(J._rowKey=J[this.rowKey]),J._isHover=!1,J._disabled?J._isDisabled=J._disabled:J._isDisabled=!1,J._checked?J._isChecked=J._checked:J._isChecked=!1,J._expanded?J._isExpanded=J._expanded:J._isExpanded=!1,J._highlight?J._isHighlight=J._highlight:J._isHighlight=!1,J},makeObjData:function(){var G=this,J={};return this.data.forEach(function(H,U){(0,u.default)(this,G);var K=this.makeObjBaseData(H);K.children&&K.children.length&&(K._showChildren?K._isShowChildren=K._showChildren:K._isShowChildren=!1,K.children=this.makeChildrenObjData(K)),J[U]=K}.bind(this)),J},makeChildrenObjData:function(G){var J=this;return G.children&&G.children.length?G.children.map(function(H){(0,u.default)(this,J);var U=this.makeObjBaseData(H);return U._showChildren?U._isShowChildren=U._showChildren:U._isShowChildren=!1,U.children&&U.children.length&&(U.children=this.makeChildrenObjData(U)),U}.bind(this)):G},makeColumnsId:function(G){var J=this;return G.map(function(H){return(0,u.default)(this,J),"children"in H&&this.makeColumnsId(H.children),H.__id=(0,j.getRandomStr)(6),H}.bind(this))},makeColumns:function(G){var J=this,H=(0,P.deepCopy)((0,j.getAllColumns)(G)),U=[],K=[],te=[];return H.forEach(function(ee,ie){(0,u.default)(this,J),ee._index=ie,ee._columnKey=L++,ee.width=parseInt(ee.width),ee._width=ee.width?ee.width:"",ee._sortType="normal",ee._filterVisible=!1,ee._isFiltered=!1,ee._filterChecked=[],"filterMultiple"in ee?ee._filterMultiple=ee.filterMultiple:ee._filterMultiple=!0,"filteredValue"in ee&&(ee._filterChecked=ee.filteredValue,ee._isFiltered=!0),"sortType"in ee&&(ee._sortType=ee.sortType),ee.fixed&&ee.fixed==="left"?U.push(ee):ee.fixed&&ee.fixed==="right"?K.push(ee):te.push(ee)}.bind(this)),U.concat(te).concat(K)},makeColumnRows:function(G,J){return(0,j.convertToRows)(J,G)},exportCsv:function(G){G.filename?G.filename.indexOf(".csv")===-1&&(G.filename+=".csv"):G.filename="table.csv";var J=[],H=[];G.columns&&G.data?(J=G.columns,H=G.data):(J=this.allColumns,"original"in G||(G.original=!0),H=G.original?this.data:this.rebuildData);var U=!1;"noHeader"in G&&(U=G.noHeader);var K=(0,q.default)(J,H,G,U);G.callback?G.callback(K):O.default.download(G.filename,K)},dragAndDrop:function(G,J){this.$emit("on-drag-drop",G,J)},handleClickContextMenuOutside:function(){this.contextMenuVisible=!1}},created:function(){this.context||(this.currentContext=this.$parent),this.showSlotHeader=this.$slots.header!==void 0,this.showSlotFooter=this.$slots.footer!==void 0,this.rebuildData=this.makeDataWithSortAndFilter()},mounted:function(){var G=this;this.handleResize(),this.$nextTick(function(){return(0,u.default)(this,G),this.ready=!0}.bind(this)),(0,N.on)(window,"resize",this.handleResize),this.observer=(0,B.default)(),this.observer.listenTo(this.$el,this.handleResize),this.$on("on-visible-change",function(J){(0,u.default)(this,G),J&&this.$nextTick(function(){(0,u.default)(this,G),this.handleResize()}.bind(this))}.bind(this))},beforeDestroy:function(){this.$off("on-visible-change"),(0,N.off)(window,"resize",this.handleResize),this.observer.removeAllListeners(this.$el),this.observer.uninstall(this.$el),this.observer=null},watch:{data:{handler:function(){var G=this,J=this.rebuildData.length;this.objData=this.makeObjData(),this.rebuildData=this.makeDataWithSortAndFilter(),this.handleResize(),J||this.fixedHeader(),setTimeout(function(){(0,u.default)(this,G),this.cloneData=(0,P.deepCopy)(this.data)}.bind(this),0)},deep:!0},columns:{handler:function(){var G=this.makeColumnsId(this.columns);this.allColumns=(0,j.getAllColumns)(G),this.cloneColumns=this.makeColumns(G),this.columnRows=this.makeColumnRows(!1,G),this.leftFixedColumnRows=this.makeColumnRows("left",G),this.rightFixedColumnRows=this.makeColumnRows("right",G),this.rebuildData=this.makeDataWithSortAndFilter(),this.handleResize()},deep:!0},height:function(){this.handleResize()},maxHeight:function(){this.handleResize()},showHorizontalScrollBar:function(){this.handleResize()},showVerticalScrollBar:function(){this.handleResize()}}}},function(_,h,r){var s=r(18);_.exports=function(i,f){if(!s(i)||i._t!==f)throw TypeError("Incompatible receiver, "+f+" required!");return i}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=C(s),f=r(2),e=C(f),l=r(15),n=C(l),t=r(143),o=C(t),d=r(49),u=C(d),c=r(219),g=C(c),p=r(28),v=C(p),y=r(568),b=C(y),A=r(95),x=C(A),E=r(6),S=C(E);function C(T){return T&&T.__esModule?T:{default:T}}h.default={name:"TableHead",mixins:[x.default,S.default],components:{CheckboxGroup:o.default,Checkbox:u.default,Poptip:g.default,iButton:v.default,renderHeader:b.default},props:{prefixCls:String,styleObject:Object,columns:Array,objData:Object,data:Array,columnsWidth:Object,fixed:{type:[Boolean,String],default:!1},columnRows:Array,fixedColumnRows:Array},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}},computed:{styles:function(){var k=(0,n.default)({},this.styleObject),M=parseInt(this.styleObject.width);return k.width=String(M)+"px",k},isSelectAll:function(){var k=!0;this.data.length||(k=!1);var M=!0;for(var P in this.objData){var N=this.objData[P];if(!N._isChecked&&!N._isDisabled){k=!1;break}else N.children&&N.children.length&&(k=this.isChildrenSelected(N,k));N._isDisabled&&!N._isChecked?N.children&&N.children.length&&(M=this.isChildrenAllDisabledAndUnSelected(N,M)):M=!1}return M&&(k=!1),k},headRows:function(){var k=this.columnRows.length>1;return k?this.fixed?this.fixedColumnRows:this.columnRows:[this.columns]},isSelectDisabled:function(){var k=!0;if(this.data.length)for(var M in this.objData){var P=this.objData[M];P._isDisabled?P.children&&P.children.length&&(k=this.isChildrenDisabled(P,k)):k=!1}return k}},methods:{cellClasses:function(k){var M;return[String(this.prefixCls)+"-cell",(M={},(0,e.default)(M,String(this.prefixCls)+"-hidden",!this.fixed&&k.fixed&&(k.fixed==="left"||k.fixed==="right")),(0,e.default)(M,String(this.prefixCls)+"-cell-with-selection",k.type==="selection"),M)]},scrollBarCellClass:function(){var k=!1;for(var M in this.headRows)for(var P in this.headRows[M]){if(this.headRows[M][P].fixed==="right"){k=!0;break}if(k)break}return[(0,e.default)({},String(this.prefixCls)+"-hidden",k)]},itemClasses:function(k,M){return[String(this.prefixCls)+"-filter-select-item",(0,e.default)({},String(this.prefixCls)+"-filter-select-item-selected",k._filterChecked[0]===M.value)]},itemAllClasses:function(k){return[String(this.prefixCls)+"-filter-select-item",(0,e.default)({},String(this.prefixCls)+"-filter-select-item-selected",!k._filterChecked.length)]},selectAll:function(){var k=!this.isSelectAll;this.$parent.selectAll(k)},handleSort:function(k,M){var P=this,N=this.columns.find(function(q){return(0,i.default)(this,P),q._index===k}.bind(this)),F=N._index;N._sortType===M&&(M="normal"),this.$parent.handleSort(F,M)},handleSortByHead:function(k){var M=this,P=this.columns.find(function(F){return(0,i.default)(this,M),F._index===k}.bind(this));if(P.sortable){var N=P._sortType;N==="normal"?this.handleSort(k,"asc"):N==="asc"?this.handleSort(k,"desc"):this.handleSort(k,"normal")}},handleFilter:function(k){this.$parent.handleFilter(k)},handleSelect:function(k,M){this.$parent.handleFilterSelect(k,M)},handleReset:function(k){this.$parent.handleFilterReset(k)},handleFilterHide:function(k){this.$parent.handleFilterHide(k)},getColumn:function(k,M){var P=this,N=this.columnRows.length>1;if(N){var F=this.headRows[k][M].__id;return this.columns.filter(function(q){return(0,i.default)(this,P),q.__id===F}.bind(this))[0]}else return this.headRows[k][M]},handleMouseDown:function(k,M){var P=this;if(!this.$isServer&&this.draggingColumn){this.dragging=!0;var N=this.$parent,F=N.$el,q=F.getBoundingClientRect().left,z=this.$el.querySelector("th.ivu-table-column-"+String(k.__id)),O=z.getBoundingClientRect(),R=O.left-q+30;N.showResizeLine=!0,this.dragState={startMouseLeft:M.clientX,startLeft:O.right-q,startColumnLeft:O.left-q,tableLeft:q};var I=N.$refs.resizeLine;I.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var D=function(j){(0,i.default)(this,P);var Q=j.clientX-this.dragState.startMouseLeft,X=this.dragState.startLeft+Q;I.style.left=Math.max(R,X)+"px"}.bind(this),B=function(){if((0,i.default)(this,P),this.dragging){var j=this.dragState,Q=j.startColumnLeft,X=j.startLeft,Z=parseInt(I.style.left,10),L=Z-Q,W=N.columns.find(function(G){return(0,i.default)(this,P),G.__id===k.__id}.bind(this));W&&(W.width=L),N.$emit("on-column-width-resize",W.width,X-Q,k,M),document.body.style.cursor="",this.dragging=!1,this.draggingColumn=null,this.dragState={},N.showResizeLine=!1}document.removeEventListener("mousemove",D),document.removeEventListener("mouseup",B),document.onselectstart=null,document.ondragstart=null}.bind(this);document.addEventListener("mousemove",D),document.addEventListener("mouseup",B)}},handleMouseMove:function(k,M){for(var P=M.target;P&&P.tagName!=="TH";)P=P.parentNode;if(!(!k||!k.resizable)&&!this.dragging){var N=P.getBoundingClientRect(),F=document.body.style;N.width>12&&N.right-M.pageX<8?(F.cursor="col-resize",this.draggingColumn=k):this.dragging||(F.cursor="",this.draggingColumn=null)}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},isChildrenSelected:function(k,M){var P=this,N=M;return k.children&&k.children.length&&k.children.forEach(function(F){(0,i.default)(this,P),!F._isChecked&&!F._isDisabled?N=!1:F.children&&F.children.length&&(N=this.isChildrenSelected(F,N))}.bind(this)),N},isChildrenAllDisabledAndUnSelected:function(k,M){var P=this,N=M;return k.children&&k.children.length&&k.children.forEach(function(F){(0,i.default)(this,P),F._isDisabled&&!F._isChecked?F.children&&F.children.length&&(N=this.isChildrenAllDisabledAndUnSelected(F,N)):N=!1}.bind(this)),N},isChildrenDisabled:function(k,M){var P=this,N=M;return k.children&&k.children.length&&k.children.forEach(function(F){(0,i.default)(this,P),F._isDisabled?F.children&&F.children.length&&(N=this.isChildrenDisabled(F,N)):N=!1}.bind(this)),N}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=y(s),f=r(1),e=y(f),l=r(27),n=y(l),t=r(571),o=y(t),d=r(573),u=y(d),c=r(240),g=y(c),p=r(95),v=y(p);function y(b){return b&&b.__esModule?b:{default:b}}h.default={name:"TableBody",mixins:[v.default],components:{TableCell:u.default,Expand:g.default,TableTr:o.default},props:{prefixCls:String,styleObject:Object,columns:Array,data:Array,objData:Object,columnsWidth:Object,fixed:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1},rowKey:{type:[Boolean,String],default:!1}},computed:{expandRender:function(){for(var A=function(){return""},x=0;x<this.columns.length;x++){var E=this.columns[x];E.type&&E.type==="expand"&&E.render&&(A=E.render)}return A}},methods:{rowChecked:function(A){return this.objData[A]&&this.objData[A]._isChecked},rowDisabled:function(A){return this.objData[A]&&this.objData[A]._isDisabled},rowExpanded:function(A){return this.objData[A]&&this.objData[A]._isExpanded},rowStatusByRowKey:function(A,x){var E=this.$parent.getDataByRowKey(x);return E[A]},handleMouseIn:function(A,x,E){x.stopPropagation(),this.$parent.handleMouseIn(A,E)},handleMouseOut:function(A,x,E){x.stopPropagation(),this.$parent.handleMouseOut(A,E)},clickCurrentRow:function(A,x,E){this.$parent.clickCurrentRow(A,E)},dblclickCurrentRow:function(A,x,E){x.stopPropagation(),this.$parent.dblclickCurrentRow(A,E)},clickCell:function(A,x,E,S){this.$parent.$emit("on-cell-click",A,x,A[E],S)},contextmenuCurrentRow:function(A,x,E){x.stopPropagation(),this.$parent.contextMenu&&x.preventDefault(),this.$parent.contextmenuCurrentRow(A,E,x)},selectStartCurrentRow:function(){this.$parent.contextMenu},getSpan:function(A,x,E,S){var C=this.$parent.spanMethod;if(typeof C=="function"){var T=C({row:A,column:x,rowIndex:E,columnIndex:S}),k=1,M=1;return Array.isArray(T)?(k=T[0],M=T[1]):(typeof T>"u"?"undefined":(0,n.default)(T))==="object"&&(k=T.rowspan,M=T.colspan),{rowspan:k,colspan:M}}else return{}},showWithSpan:function(A,x,E,S){var C=this.getSpan(A,x,E,S);return!("rowspan"in C&&C.rowspan===0||"colspan"in C&&C.colspan===0)},isTrShow:function(A){var x=!0,E=void 0;for(var S in this.objData){var C=this.objData[S],T=C._isShowChildren;if(C._rowKey===A){x=x&&T;break}else if(C.children&&C.children.length&&(E=this.getTrStatus(A,C,x&&T),E[0]&&E[0]._rowKey===A))return E[1]}return x},getTrStatus:function(A,x,E){var S=E,C=void 0;if(x.children&&x.children.length)for(var T=0;T<x.children.length;T++){var k=x.children[T],M=k._isShowChildren;if(k._rowKey===A){C=k,S=S&&M;break}else if(k.children&&k.children.length){var P=this.getTrStatus(A,k,S&&M);if(P[0]&&P[0]._rowKey===A)return P}}return[C,S]},getLevel:function(A){for(var x=void 0,E=void 0,S=0;S<this.data.length;S++){var C=this.data[S];if(C[this.rowKey]===A){x=0;break}else if(C.children&&C.children.length&&(E=this.getChildLevel(C,A,1),E[0]&&E[0][this.rowKey]===A))return E[1]}return x},getChildLevel:function(A,x,E){var S=void 0,C=void 0;if(A.children&&A.children.length)for(var T=0;T<A.children.length;T++){var k=A.children[T];if(k[this.rowKey]===x){C=k,S=E;break}else if(k.children&&k.children.length){var M=this.getChildLevel(k,x,E+1);if(M[0]&&M[0][this.rowKey]===x)return M}}return[C,S]},getChildNode:function(A,x,E){var S=this;return x.children&&x.children.length&&x.children.forEach(function(C,T){(0,e.default)(this,S);var k=[];this.columns.forEach(function(N,F){if((0,e.default)(this,S),this.showWithSpan(C,N,T,F)){var q=A(u.default,{props:{fixed:this.fixed,"prefix-cls":this.prefixCls,row:C,column:N,"natural-index":T,index:C._index,checked:this.rowStatusByRowKey("_isChecked",C._rowKey),disabled:this.rowStatusByRowKey("_isDisabled",C._rowKey),expanded:this.rowStatusByRowKey("_isExpanded",C._rowKey),treeNode:!0,treeLevel:this.getLevel(C._rowKey)},key:N._columnKey}),z=A("td",{class:this.alignCls(N,C),attrs:this.getSpan(C,N,T,F),on:{click:function(R){return(0,e.default)(this,S),this.clickCell(C,N,N.key,R)}.bind(this)}},[q]);k.push(z)}}.bind(this));var M={};this.isTrShow(x._rowKey)||(M.display="none");var P=A(o.default,{props:{draggable:!1,row:C,"prefix-cls":this.prefixCls,isChildren:!0},style:M,key:this.rowKey?C._rowKey:T,nativeOn:{mouseenter:function(F){return(0,e.default)(this,S),this.handleMouseIn(C._index,F,C._rowKey)}.bind(this),mouseleave:function(F){return(0,e.default)(this,S),this.handleMouseOut(C._index,F,C._rowKey)}.bind(this),click:function(F){return(0,e.default)(this,S),this.clickCurrentRow(C._index,F,C._rowKey)}.bind(this),dblclick:function(F){return(0,e.default)(this,S),this.dblclickCurrentRow(C._index,F,C._rowKey)}.bind(this),contextmenu:function(F){return(0,e.default)(this,S),this.contextmenuCurrentRow(C._index,F,C._rowKey)}.bind(this),selectstart:function(F){return(0,e.default)(this,S),this.selectStartCurrentRow(C._index,F,C._rowKey)}.bind(this)}},k);E.push(P),C.children&&C.children.length&&this.getChildNode(A,C,E)}.bind(this)),E}},render:function(A){var x=this,E=[];this.columns.forEach(function(k){(0,e.default)(this,x);var M=A("col",{attrs:{width:this.setCellWidth(k)}});E.push(M)}.bind(this));var S=A("colgroup",{},E),C=[];this.data.forEach(function(k,M){(0,e.default)(this,x);var P=[];this.columns.forEach(function(R,I){if((0,e.default)(this,x),this.showWithSpan(k,R,M,I)){var D=A(u.default,{props:{fixed:this.fixed,"prefix-cls":this.prefixCls,row:k,column:R,"natural-index":M,index:k._index,checked:this.rowChecked(k._index),disabled:this.rowDisabled(k._index),expanded:this.rowExpanded(k._index)},key:R._columnKey}),B=A("td",{class:this.alignCls(R,k),attrs:this.getSpan(k,R,M,I),on:{click:function(Q){return(0,e.default)(this,x),this.clickCell(k,R,R.key,Q)}.bind(this)}},[D]);P.push(B)}}.bind(this));var N=A(o.default,{props:{draggable:this.draggable,row:k,"prefix-cls":this.prefixCls},key:this.rowKey?k._rowKey:M,nativeOn:{mouseenter:function(I){return(0,e.default)(this,x),this.handleMouseIn(k._index,I)}.bind(this),mouseleave:function(I){return(0,e.default)(this,x),this.handleMouseOut(k._index,I)}.bind(this),click:function(I){return(0,e.default)(this,x),this.clickCurrentRow(k._index,I)}.bind(this),dblclick:function(I){return(0,e.default)(this,x),this.dblclickCurrentRow(k._index,I)}.bind(this),contextmenu:function(I){return(0,e.default)(this,x),this.contextmenuCurrentRow(k._index,I)}.bind(this),selectstart:function(I){return(0,e.default)(this,x),this.selectStartCurrentRow(k._index,I)}.bind(this)}},P);if(C.push(N),this.rowExpanded(k._index)){var F=A(g.default,{props:{row:k,render:this.expandRender,index:k._index},key:this.rowKey?k._rowKey:M}),q=A("td",{attrs:{colspan:this.columns.length},class:this.prefixCls+"-expanded-cell"},[F]),z=A("tr",{class:(0,i.default)({},this.prefixCls+"-expanded-hidden",this.fixed)},[q]);C.push(z)}if(k.children&&k.children.length){var O=this.getChildNode(A,k,[]);O.forEach(function(R){(0,e.default)(this,x),C.push(R)}.bind(this))}}.bind(this));var T=A("tbody",{class:this.prefixCls+"-tbody"},[C]);return A("table",{attrs:{cellspacing:"0",cellpadding:"0",border:"0"},style:this.styleObject},[S,T])}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={props:{row:Object,prefixCls:String,draggable:Boolean,isChildren:Boolean},computed:{objData:function(){return this.$parent.objData}},methods:{onDrag:function(l,n){l.dataTransfer.setData("index",n)},onDrop:function(l,n){var t=l.dataTransfer.getData("index");this.$parent.$parent.dragAndDrop(t,n),l.preventDefault()},allowDrop:function(l){l.preventDefault()},rowClasses:function(l){var n,t=this.isChildren?this.$parent.$parent.getDataByRowKey(this.row._rowKey):this.objData[l];return[String(this.prefixCls)+"-row",this.rowClsName(l),(n={},(0,i.default)(n,String(this.prefixCls)+"-row-highlight",t&&t._isHighlight),(0,i.default)(n,String(this.prefixCls)+"-row-hover",t&&t._isHover),n)]},rowClsName:function(l){return this.$parent.$parent.rowClassName(this.objData[l],l)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=p(s),f=r(240),e=p(f),l=r(574),n=p(l),t=r(8),o=p(t),d=r(49),u=p(d),c=r(93),g=p(c);function p(v){return v&&v.__esModule?v:{default:v}}h.default={name:"TableCell",components:{Icon:o.default,Checkbox:u.default,TableExpand:e.default,TableSlot:n.default,Tooltip:g.default},inject:["tableRoot"],props:{prefixCls:String,row:Object,column:Object,naturalIndex:Number,index:Number,checked:Boolean,disabled:Boolean,expanded:Boolean,fixed:{type:[Boolean,String],default:!1},treeNode:Boolean,treeLevel:{type:Number,default:0}},data:function(){return{renderType:"",uid:-1,context:this.$parent.$parent.$parent.currentContext,showTooltip:!1}},computed:{classes:function(){var y;return[String(this.prefixCls)+"-cell",(y={},(0,i.default)(y,String(this.prefixCls)+"-hidden",!this.fixed&&this.column.fixed&&(this.column.fixed==="left"||this.column.fixed==="right")),(0,i.default)(y,String(this.prefixCls)+"-cell-ellipsis",this.column.ellipsis||!1),(0,i.default)(y,String(this.prefixCls)+"-cell-with-expand",this.renderType==="expand"),(0,i.default)(y,String(this.prefixCls)+"-cell-with-selection",this.renderType==="selection"),y)]},expandCls:function(){return[String(this.prefixCls)+"-cell-expand",(0,i.default)({},String(this.prefixCls)+"-cell-expand-expanded",this.expanded)]},showChildren:function(){var y=!1;if(this.renderType==="html"||this.renderType==="normal"||this.renderType==="render"||this.renderType==="slot"){var b=this.row;(b.children&&b.children.length||"_loading"in b)&&this.column.tree&&(y=!0)}return y},showTreeNode:function(){var y=!1;return(this.renderType==="html"||this.renderType==="normal"||this.renderType==="render"||this.renderType==="slot")&&this.column.tree&&this.treeNode&&(y=!0),y},showLevel:function(){var y=!1;return(this.renderType==="html"||this.renderType==="normal"||this.renderType==="render"||this.renderType==="slot")&&this.column.tree&&this.treeNode&&(y=!0),y},treeLevelStyle:function(){return{"padding-left":this.treeLevel*this.tableRoot.indentSize+"px"}},childrenExpand:function(){var y=this.tableRoot.getDataByRowKey(this.row._rowKey);return y._isShowChildren},childrenLoading:function(){var y=this.tableRoot.getDataByRowKey(this.row._rowKey);return"_loading"in y&&y._loading}},methods:{toggleSelect:function(){this.treeNode?this.$parent.$parent.$parent.toggleSelect(this.index,this.row._rowKey):this.$parent.$parent.$parent.toggleSelect(this.index)},toggleExpand:function(){this.$parent.$parent.$parent.toggleExpand(this.index)},handleClick:function(){},handleTooltipIn:function(){var y=this.$refs.content,b=document.createRange();b.setStart(y,0),b.setEnd(y,y.childNodes.length);var A=b.getBoundingClientRect().width;this.showTooltip=A>y.offsetWidth,b=null},handleToggleTree:function(){this.$parent.$parent.$parent.toggleTree(this.row._rowKey)}},created:function(){this.column.type==="index"?this.renderType="index":this.column.type==="selection"?this.renderType="selection":this.column.type==="html"?this.renderType="html":this.column.type==="expand"?this.renderType="expand":this.column.render?this.renderType="render":this.column.slot?this.renderType="slot":this.renderType="normal"}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"TableExpand",functional:!0,props:{row:Object,render:Function,index:Number,column:{type:Object,default:null}},render:function(l,n){(0,i.default)(void 0,void 0);var t={row:n.props.row,index:n.props.index};return n.props.column&&(t.column=n.props.column),n.props.render(l,t)}.bind(void 0)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=l(s),f=r(95),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}h.default={name:"TableSummary",mixins:[e.default],props:{prefixCls:String,styleObject:Object,columns:Array,data:Object,columnsWidth:Object,fixed:{type:[Boolean,String],default:!1}},methods:{cellCls:function(t){return[(0,i.default)({},"ivu-table-hidden",this.fixed==="left"&&t.fixed!=="left"||this.fixed==="right"&&t.fixed!=="right"||!this.fixed&&t.fixed&&(t.fixed==="left"||t.fixed==="right"))]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(17),i=M(s),f=r(27),e=M(f),l=r(2),n=M(l),t=r(45),o=M(t),d=r(1),u=M(d),c=r(8),g=M(c),p=r(215),v=M(p),y=r(61),b=M(y),A=r(62),x=M(A),E=r(3),S=r(4),C=M(S),T=r(94),k=M(T);function M(z){return z&&z.__esModule?z:{default:z}}var P="ivu-tabs",N=300,F=function(z,O,R,I){(0,u.default)(void 0,void 0);var D=z.findIndex(function(Q){return(0,u.default)(void 0,void 0),Q.name===O}.bind(void 0)),B=(D+R+z.length)%z.length,j=z[B];return j.disabled?F(z,j.name,R,I):j}.bind(void 0),q=function(z,O){(0,u.default)(void 0,void 0);try{z.focus()}catch{}if(document.activeElement==z&&z!==O)return!0;var R=z.children,I=!0,D=!1,B=void 0;try{for(var j=(0,o.default)(R),Q;!(I=(Q=j.next()).done);I=!0){var X=Q.value;if(q(X,O))return!0}}catch(Z){D=!0,B=Z}finally{try{!I&&j.return&&j.return()}finally{if(D)throw B}}return!1}.bind(void 0);h.default={name:"Tabs",mixins:[C.default],components:{Icon:g.default,Render:v.default,Dropdown:b.default,DropdownMenu:x.default},provide:function(){return{TabsInstance:this}},props:{value:{type:[String,Number]},type:{validator:function(O){return(0,E.oneOf)(O,["line","card"])},default:"line"},size:{validator:function(O){return(0,E.oneOf)(O,["small","default"])},default:"default"},animated:{type:Boolean,default:!0},captureFocus:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},beforeRemove:Function,name:{type:String},draggable:{type:Boolean,default:!1}},data:function(){return{prefixCls:P,navList:[],barWidth:0,barOffset:0,activeKey:this.value,focusedKey:this.value,showSlot:!1,navStyle:{transform:""},scrollable:!1,transitioning:!1,contextMenuVisible:!1,contextMenuStyles:{top:0,left:0}}},computed:{classes:function(){var O;return[""+P,(O={},(0,n.default)(O,P+"-card",this.type==="card"),(0,n.default)(O,P+"-mini",this.size==="small"&&this.type==="line"),(0,n.default)(O,P+"-no-animation",!this.animated),O)]},contentClasses:function(){return[P+"-content",(0,n.default)({},P+"-content-animated",this.animated)]},barClasses:function(){return[P+"-ink-bar",(0,n.default)({},P+"-ink-bar-animated",this.animated)]},contentStyle:function(){var O=this.getTabIndex(this.activeKey),R=O===0?"0%":"-"+String(O)+"00%",I={};return O>-1&&(I={transform:"translateX("+R+") translateZ(0px)"}),I},barStyle:function(){var O={visibility:"hidden",width:String(this.barWidth)+"px"};return this.type==="line"&&(O.visibility="visible"),this.animated?O.transform="translate3d("+String(this.barOffset)+"px, 0px, 0px)":O.left=String(this.barOffset)+"px",O},arrowType:function(){var O="ios-close";return this.$IVIEW&&(this.$IVIEW.tabs.customCloseIcon?O="":this.$IVIEW.tabs.closeIcon&&(O=this.$IVIEW.tabs.closeIcon)),O},customArrowType:function(){var O="";return this.$IVIEW&&this.$IVIEW.tabs.customCloseIcon&&(O=this.$IVIEW.tabs.customCloseIcon),O},arrowSize:function(){var O="";return this.$IVIEW&&this.$IVIEW.tabs.closeIconSize&&(O=this.$IVIEW.tabs.closeIconSize),O}},methods:{getTabs:function(){var O=this,R=(0,E.findComponentsDownward)(this,"TabPane"),I=[];return R.forEach(function(D){(0,u.default)(this,O),D.tab&&this.name?D.tab===this.name&&I.push(D):I.push(D)}.bind(this)),I.sort(function(D,B){if((0,u.default)(this,O),D.index&&B.index)return D.index>B.index?1:-1}.bind(this)),I},updateNav:function(){var O=this;this.navList=[],this.getTabs().forEach(function(R,I){(0,u.default)(this,O),this.navList.push({labelType:(0,e.default)(R.label),label:R.label,icon:R.icon||"",name:R.currentName||I,disabled:R.disabled,closable:R.closable,contextMenu:R.contextMenu}),R.currentName||(R.currentName=I),I===0&&(this.activeKey||(this.activeKey=R.currentName||I))}.bind(this)),this.updateStatus(),this.updateBar()},updateBar:function(){var O=this;this.$nextTick(function(){(0,u.default)(this,O);var R=this.getTabIndex(this.activeKey);if(this.$refs.nav){var I=this.$refs.nav.querySelectorAll("."+P+"-tab"),D=I[R];if(this.barWidth=D?parseFloat(D.offsetWidth):0,R>0){for(var B=0,j=this.size==="small"?0:16,Q=0;Q<R;Q++)B+=parseFloat(I[Q].offsetWidth)+j;this.barOffset=B}else this.barOffset=0;this.updateNavScroll()}}.bind(this))},updateStatus:function(){var O=this,R=this.getTabs();R.forEach(function(I){return(0,u.default)(this,O),I.show=I.currentName===this.activeKey||this.animated}.bind(this))},tabCls:function(O){var R;return[P+"-tab",(R={},(0,n.default)(R,P+"-tab-disabled",O.disabled),(0,n.default)(R,P+"-tab-active",O.name===this.activeKey),(0,n.default)(R,P+"-tab-focused",O.name===this.focusedKey),R)]},handleChange:function(O){var R=this;if(!this.transitioning){this.transitioning=!0,setTimeout(function(){return(0,u.default)(this,R),this.transitioning=!1}.bind(this),N);var I=this.navList[O];!I||I.disabled||(this.activeKey=I.name,this.$emit("input",I.name),this.$emit("on-click",I.name))}},handleDblclick:function(O){var R=this.navList[O];!R||R.disabled||this.$emit("on-dblclick",R.name)},handleContextmenu:function(O,R){var I=this;this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(function(){(0,u.default)(this,I);var D=this.navList[O];if(!(!D||D.disabled||!D.contextMenu)){R.preventDefault();var B=this.$refs.tabsWrap,j=B.getBoundingClientRect(),Q={left:R.clientX-j.left+"px",top:R.clientY-j.top+"px"};this.contextMenuStyles=Q,this.contextMenuVisible=!0,this.$emit("on-contextmenu",D,R,Q)}}.bind(this))},handleClickContextMenuOutside:function(){this.contextMenuVisible=!1},handlePreventSelect:function(O,R){var I=this.navList[O];!I||I.disabled||!I.contextMenu||R.preventDefault()},handleTabKeyNavigation:function(O){if(!(O.keyCode!==37&&O.keyCode!==39)){var R=O.keyCode===39?1:-1,I=F(this.navList,this.focusedKey,R);this.focusedKey=I.name}},handleTabKeyboardSelect:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!O){var R=this.focusedKey||0,I=this.getTabIndex(R);this.handleChange(I)}},handleRemove:function(O){var R=this;if(!this.beforeRemove)return this.handleRemoveTab(O);var I=this.beforeRemove(O);I&&I.then?I.then(function(){(0,u.default)(this,R),this.handleRemoveTab(O)}.bind(this)):this.handleRemoveTab(O)},handleRemoveTab:function(O){var R=this,I=this.getTabs(),D=I[O];if(D.$destroy(),D.currentName===this.activeKey){var B=this.getTabs(),j=-1;if(B.length){var Q=I.filter(function(Z,L){return(0,u.default)(this,R),!Z.disabled&&L<O}.bind(this)),X=I.filter(function(Z,L){return(0,u.default)(this,R),!Z.disabled&&L>O}.bind(this));X.length?j=X[0].currentName:Q.length?j=Q[Q.length-1].currentName:j=B[0].currentName}this.activeKey=j,this.$emit("input",j)}this.$emit("on-tab-remove",D.currentName),this.updateNav()},showClose:function(O){return this.type==="card"?O.closable!==null?O.closable:this.closable:!1},scrollPrev:function(){var O=this.$refs.navScroll.offsetWidth,R=this.getCurrentScrollOffset();if(R){var I=R>O?R-O:0;this.setOffset(I)}},scrollNext:function(){var O=this.$refs.nav.offsetWidth,R=this.$refs.navScroll.offsetWidth,I=this.getCurrentScrollOffset();if(!(O-I<=R)){var D=O-I>R*2?I+R:O-R;this.setOffset(D)}},getCurrentScrollOffset:function(){var O=this.navStyle;return O.transform?Number(O.transform.match(/translateX\(-(\d+(\.\d+)*)px\)/)[1]):0},getTabIndex:function(O){var R=this;return this.navList.findIndex(function(I){return(0,u.default)(this,R),I.name===O}.bind(this))},setOffset:function(O){this.navStyle.transform="translateX(-"+String(O)+"px)"},scrollToActiveTab:function(){if(this.scrollable){var O=this.$refs.nav,R=this.$el.querySelector("."+P+"-tab-active");if(R){var I=this.$refs.navScroll,D=R.getBoundingClientRect(),B=I.getBoundingClientRect(),j=O.getBoundingClientRect(),Q=this.getCurrentScrollOffset(),X=Q;j.right<B.right&&(X=O.offsetWidth-B.width),D.left<B.left?X=Q-(B.left-D.left):D.right>B.right&&(X=Q+D.right-B.right),Q!==X&&this.setOffset(Math.max(X,0))}}},updateNavScroll:function(){var O=this.$refs.nav.offsetWidth,R=this.$refs.navScroll.offsetWidth,I=this.getCurrentScrollOffset();R<O?(this.scrollable=!0,O-I<R&&this.setOffset(O-R)):(this.scrollable=!1,I>0&&this.setOffset(0))},handleScroll:function(O){O.preventDefault(),O.stopPropagation();var R=O.type,I=0;(R==="DOMMouseScroll"||R==="mousewheel")&&(I=O.wheelDelta?O.wheelDelta:-(O.detail||0)*40),I>0?this.scrollPrev():this.scrollNext()},handleResize:function(){this.updateNavScroll()},isInsideHiddenElement:function(){for(var O=this.$el.parentNode;O&&O!==document.body;){if(O.style&&O.style.display==="none")return O;O=O.parentNode}return!1},updateVisibility:function(O){var R=this;[].concat((0,i.default)(this.$refs.panes.querySelectorAll("."+P+"-tabpane"))).forEach(function(I,D){(0,u.default)(this,R),O===D?([].concat((0,i.default)(I.children)).filter(function(B){return(0,u.default)(this,R),B.classList.contains(P+"-tabpane")}.bind(this)).forEach(function(B){return(0,u.default)(this,R),B.style.visibility="visible"}.bind(this)),this.captureFocus&&setTimeout(function(){return(0,u.default)(this,R),q(I,I)}.bind(this),N)):setTimeout(function(){(0,u.default)(this,R),[].concat((0,i.default)(I.children)).filter(function(B){return(0,u.default)(this,R),B.classList.contains(P+"-tabpane")}.bind(this)).forEach(function(B){return(0,u.default)(this,R),B.style.visibility="hidden"}.bind(this))}.bind(this),N)}.bind(this))},handleDrag:function(O,R){var I=this.navList[O];I&&R.dataTransfer.setData("tab-name",I.name)},handleDrop:function(O,R){var I=this,D=this.navList[O];if(D){var B=R.dataTransfer.getData("tab-name");R.preventDefault();var j=this.navList.map(function(Z){return(0,u.default)(this,I),Z.name}.bind(this)),Q=parseInt(j.findIndex(function(Z){return(0,u.default)(this,I),Z===B}.bind(this))),X=parseInt(j.findIndex(function(Z){return(0,u.default)(this,I),Z===D.name}.bind(this)));j.splice.apply(j,[X,1].concat((0,i.default)(j.splice(Q,1,j[X])))),this.$emit("on-drag-drop",B,D.name,Q,X,j)}}},watch:{value:function(O){this.activeKey=O,this.focusedKey=O},activeKey:function(O){var R=this;this.focusedKey=O,this.updateBar(),this.updateStatus(),this.broadcast("Table","on-visible-change",!0),this.$nextTick(function(){(0,u.default)(this,R),this.scrollToActiveTab()}.bind(this));var I=Math.max(this.getTabIndex(this.focusedKey),0);this.updateVisibility(I)}},mounted:function(){var O=this;this.showSlot=this.$slots.extra!==void 0,this.observer=(0,k.default)(),this.observer.listenTo(this.$refs.navWrap,this.handleResize);var R=this.isInsideHiddenElement();R&&(this.mutationObserver=new E.MutationObserver(function(){(0,u.default)(this,O),R.style.display!=="none"&&(this.updateBar(),this.mutationObserver.disconnect())}.bind(this)),this.mutationObserver.observe(R,{attributes:!0,childList:!0,characterData:!0,attributeFilter:["style"]})),this.handleTabKeyboardSelect(!0),this.updateVisibility(this.getTabIndex(this.activeKey))},beforeDestroy:function(){this.observer.removeListener(this.$refs.navWrap,this.handleResize),this.mutationObserver&&this.mutationObserver.disconnect()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s="ivu-tabs-tabpane";h.default={name:"TabPane",inject:["TabsInstance"],props:{name:{type:String},label:{type:[String,Function],default:""},icon:{type:String},disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:null},tab:{type:String},index:{type:Number},contextMenu:{type:Boolean,default:!1}},data:function(){return{prefixCls:s,show:!0,currentName:this.name}},computed:{contentStyle:function(){return{visibility:this.TabsInstance.activeKey!==this.currentName?"hidden":"visible"}}},methods:{updateNav:function(){this.TabsInstance.updateNav()}},watch:{name:function(f){this.currentName=f,this.updateNav()},label:function(){this.updateNav()},icon:function(){this.updateNav()},disabled:function(){this.updateNav()}},mounted:function(){this.updateNav()},destroyed:function(){this.updateNav()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=n(s),f=r(19),e=n(f),l=r(3);function n(u){return u&&u.__esModule?u:{default:u}}var t="ivu-tag",o=["default","primary","success","warning","error","blue","green","red","yellow","pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"],d=["pink","magenta","volcano","orange","gold","lime","cyan","geekblue","purple"];h.default={name:"Tag",components:{Icon:e.default},props:{closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:!0},color:{type:String,default:"default"},type:{validator:function(c){return(0,l.oneOf)(c,["border","dot"])}},name:{type:[String,Number]},fade:{type:Boolean,default:!0},size:{validator:function(c){return(0,l.oneOf)(c,["default","medium","large"])},default:"default"}},data:function(){return{isChecked:this.checked}},computed:{classes:function(){var c;return[""+t,t+"-size-"+String(this.size),(c={},(0,i.default)(c,t+"-"+String(this.color),!!this.color&&(0,l.oneOf)(this.color,o)),(0,i.default)(c,t+"-"+String(this.type),!!this.type),(0,i.default)(c,t+"-closable",this.closable),(0,i.default)(c,t+"-checked",this.isChecked),c)]},wraperStyles:function(){return(0,l.oneOf)(this.color,o)?{}:{background:this.isChecked?this.defaultTypeColor:"transparent",borderWidth:"1px",borderStyle:"solid",borderColor:this.type!=="dot"&&this.type!=="border"&&this.isChecked?this.borderColor:this.lineColor,color:this.lineColor}},textClasses:function(){return[t+"-text",this.type==="border"&&(0,l.oneOf)(this.color,o)?t+"-color-"+String(this.color):"",this.type!=="dot"&&this.type!=="border"&&this.color!=="default"&&this.isChecked&&d.indexOf(this.color)<0?t+"-color-white":""]},dotClasses:function(){return t+"-dot-inner"},iconClass:function(){return this.type==="dot"?"":this.type==="border"?(0,l.oneOf)(this.color,o)?t+"-color-"+String(this.color):"":this.color!==void 0?this.color==="default"?"":"rgb(255, 255, 255)":""},showDot:function(){return!!this.type&&this.type==="dot"},lineColor:function(){return this.type==="dot"?"":this.type==="border"?this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:"":this.color!==void 0?this.color==="default"?"":"rgb(255, 255, 255)":""},borderColor:function(){return this.color!==void 0?this.color==="default"?"":this.color:""},dotColor:function(){return this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:""},textColorStyle:function(){return(0,l.oneOf)(this.color,o)?{}:this.type!=="dot"&&this.type!=="border"?this.isChecked?{color:this.lineColor}:{}:{color:this.lineColor}},bgColorStyle:function(){return(0,l.oneOf)(this.color,o)?{}:{background:this.dotColor}},defaultTypeColor:function(){return this.type!=="dot"&&this.type!=="border"&&this.color!==void 0?(0,l.oneOf)(this.color,o)?"":this.color:""}},methods:{close:function(c){this.name===void 0?this.$emit("on-close",c):this.$emit("on-close",c,this.name)},check:function(){if(this.checkable){var c=!this.isChecked;this.isChecked=c,this.name===void 0?this.$emit("on-change",c):this.$emit("on-change",c,this.name)}}},watch:{checked:function(c){this.isChecked=c}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=v(s),f=r(27),e=v(f),l=r(2),n=v(l),t=r(16),o=v(t),d=r(3),u=r(6),c=v(u),g=r(592),p=v(g);function v(A){return A&&A.__esModule?A:{default:A}}var y=o.default.prototype.$isServer,b="ivu-time";h.default={name:"Time",mixins:[c.default],props:{time:{type:[Number,Date,String],required:!0},type:{type:String,validator:function(x){return(0,d.oneOf)(x,["relative","date","datetime"])},default:"relative"},hash:{type:String,default:""},interval:{type:Number,default:60}},data:function(){return{date:""}},computed:{classes:function(){return[""+b,(0,n.default)({},b+"-with-hash",this.hash)]}},watch:{time:function(){y||this.setTime()}},methods:{handleClick:function(){this.hash!==""&&(window.location.hash=this.hash)},setTime:function(){var x=(0,e.default)(this.time),E=void 0;if(x==="number"){var S=this.time.toString().length>10?this.time:this.time*1e3;E=new Date(S).getTime()}else x==="object"?E=this.time.getTime():x==="string"&&(E=new Date(this.time).getTime());if(this.type==="relative")this.date=(0,p.default)(E,this.t);else{var C=new Date(this.time),T=C.getFullYear(),k=C.getMonth()+1<10?"0"+(C.getMonth()+1):C.getMonth()+1,M=C.getDate()<10?"0"+C.getDate():C.getDate(),P=C.getHours()<10?"0"+C.getHours():C.getHours(),N=C.getMinutes()<10?"0"+C.getMinutes():C.getMinutes(),F=C.getSeconds()<10?"0"+C.getSeconds():C.getSeconds();this.type==="datetime"?this.date=String(T)+"-"+String(k)+"-"+String(M)+" "+String(P)+":"+String(N)+":"+String(F):this.type==="date"&&(this.date=String(T)+"-"+String(k)+"-"+String(M))}}},mounted:function(){var x=this;this.setTime(),!y&&(this.timer=setInterval(function(){(0,i.default)(this,x),this.setTime()}.bind(this),1e3*this.interval))},beforeDestroy:function(){this.timer&&clearInterval(this.timer)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-timeline";h.default={name:"Timeline",props:{pending:{type:Boolean,default:!1}},computed:{classes:function(){return[""+e,(0,i.default)({},e+"-pending",this.pending)]}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-timeline";h.default={name:"TimelineItem",props:{color:{type:String,default:"blue"}},data:function(){return{dot:!1}},mounted:function(){this.dot=!!this.$refs.dot.innerHTML.length},computed:{itemClasses:function(){return e+"-item"},tailClasses:function(){return e+"-item-tail"},headClasses:function(){var n;return[e+"-item-head",(n={},(0,i.default)(n,e+"-item-head-custom",this.dot),(0,i.default)(n,e+"-item-head-"+String(this.color),this.headColorShow),n)]},headColorShow:function(){return this.color=="blue"||this.color=="red"||this.color=="green"},customColor:function(){var n={};return this.color&&(this.headColorShow||(n={color:this.color,"border-color":this.color})),n},contentClasses:function(){return e+"-item-content"}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(17),i=p(s),f=r(1),e=p(f),l=r(604),n=p(l),t=r(608),o=p(t),d=r(6),u=p(d),c=r(4),g=p(c);function p(y){return y&&y.__esModule?y:{default:y}}var v="ivu-transfer";h.default={name:"Transfer",mixins:[g.default,u.default],render:function(b){var A=this;function x(C){var T=this,k=C.children&&C.children.map(function(P){return(0,e.default)(this,T),x(P)}.bind(this)),M=b(C.tag,C.data,k);return M.text=C.text,M.isComment=C.isComment,M.componentOptions=C.componentOptions,M.elm=C.elm,M.context=C.context,M.ns=C.ns,M.isStatic=C.isStatic,M.key=C.key,M}var E=this.$slots.default===void 0?[]:this.$slots.default,S=this.$slots.default===void 0?[]:E.map(function(C){return(0,e.default)(this,A),x(C)}.bind(this));return b("div",{class:this.classes},[b(n.default,{ref:"left",props:{prefixCls:this.prefixCls+"-list",data:this.leftData,renderFormat:this.renderFormat,checkedKeys:this.leftCheckedKeys,validKeysCount:this.leftValidKeysCount,listStyle:this.listStyle,title:this.localeTitles[0],filterable:this.filterable,filterPlaceholder:this.localeFilterPlaceholder,filterMethod:this.filterMethod,notFoundText:this.localeNotFoundText},on:{"on-checked-keys-change":this.handleLeftCheckedKeysChange}},E),b(o.default,{props:{prefixCls:this.prefixCls,operations:this.operations,leftActive:this.leftValidKeysCount>0,rightActive:this.rightValidKeysCount>0,reverseOperation:this.reverseOperation}}),b(n.default,{ref:"right",props:{prefixCls:this.prefixCls+"-list",data:this.rightData,renderFormat:this.renderFormat,checkedKeys:this.rightCheckedKeys,validKeysCount:this.rightValidKeysCount,listStyle:this.listStyle,title:this.localeTitles[1],filterable:this.filterable,filterPlaceholder:this.localeFilterPlaceholder,filterMethod:this.filterMethod,notFoundText:this.localeNotFoundText},on:{"on-checked-keys-change":this.handleRightCheckedKeysChange}},S)])},props:{data:{type:Array,default:function(){return[]}},renderFormat:{type:Function,default:function(b){return b.label||b.key}},targetKeys:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}},listStyle:{type:Object,default:function(){return{}}},titles:{type:Array},operations:{type:Array,default:function(){return[]}},filterable:{type:Boolean,default:!1},filterPlaceholder:{type:String},filterMethod:{type:Function,default:function(b,A){var x="label"in b?"label":"key";return b[x].indexOf(A)>-1}},notFoundText:{type:String},reverseOperation:{type:Boolean,default:!1}},data:function(){return{prefixCls:v,leftData:[],rightData:[],leftCheckedKeys:[],rightCheckedKeys:[]}},computed:{classes:function(){return[""+v]},leftValidKeysCount:function(){return this.getValidKeys("left").length},rightValidKeysCount:function(){return this.getValidKeys("right").length},localeFilterPlaceholder:function(){return this.filterPlaceholder===void 0?this.t("i.transfer.filterPlaceholder"):this.filterPlaceholder},localeNotFoundText:function(){return this.notFoundText===void 0?this.t("i.transfer.notFoundText"):this.notFoundText},localeTitles:function(){return this.titles===void 0?[this.t("i.transfer.titles.source"),this.t("i.transfer.titles.target")]:this.titles}},methods:{getValidKeys:function(b){var A=this;return this[String(b)+"Data"].filter(function(x){return(0,e.default)(this,A),!x.disabled&&this[String(b)+"CheckedKeys"].indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,A),x.key}.bind(this))},splitData:function(){var b=this,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.leftData=[].concat((0,i.default)(this.data)),this.rightData=[],this.targetKeys.length>0&&this.targetKeys.forEach(function(x){(0,e.default)(this,b);var E=this.leftData.filter(function(S,C){return(0,e.default)(this,b),S.key===x?(this.leftData.splice(C,1),!0):!1}.bind(this));E&&E.length>0&&this.rightData.push(E[0])}.bind(this)),A&&this.splitSelectedKey()},splitSelectedKey:function(){var b=this,A=this.selectedKeys;A.length>0&&(this.leftCheckedKeys=this.leftData.filter(function(x){return(0,e.default)(this,b),A.indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,b),x.key}.bind(this)),this.rightCheckedKeys=this.rightData.filter(function(x){return(0,e.default)(this,b),A.indexOf(x.key)>-1}.bind(this)).map(function(x){return(0,e.default)(this,b),x.key}.bind(this)))},moveTo:function(b){var A=this,x=this.targetKeys,E=b==="left"?"right":"left",S=this.getValidKeys(E),C=b==="right"?S.concat(x):x.filter(function(T){return(0,e.default)(this,A),!S.some(function(k){return(0,e.default)(this,A),T===k}.bind(this))}.bind(this));this.$refs[E].toggleSelectAll(!1),this.$emit("on-change",C,b,S),this.dispatch("FormItem","on-form-change",{tarketKeys:C,direction:b,moveKeys:S})},handleLeftCheckedKeysChange:function(b){this.leftCheckedKeys=b},handleRightCheckedKeysChange:function(b){this.rightCheckedKeys=b},handleCheckedKeys:function(){var b=this.getValidKeys("left"),A=this.getValidKeys("right");this.$emit("on-selected-change",b,A)}},watch:{targetKeys:function(){this.splitData(!1)},data:function(){this.splitData(!1)}},mounted:function(){this.splitData(!0)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=d(s),f=r(2),e=d(f),l=r(605),n=d(l),t=r(49),o=d(t);function d(u){return u&&u.__esModule?u:{default:u}}h.default={name:"TransferList",components:{Search:n.default,Checkbox:o.default},props:{prefixCls:String,data:Array,renderFormat:Function,checkedKeys:Array,listStyle:Object,title:[String,Number],filterable:Boolean,filterPlaceholder:String,filterMethod:Function,notFoundText:String,validKeysCount:Number},data:function(){return{showItems:[],query:"",showFooter:!0}},watch:{data:function(){this.updateFilteredData()}},computed:{classes:function(){return[""+String(this.prefixCls),(0,e.default)({},String(this.prefixCls)+"-with-footer",this.showFooter)]},bodyClasses:function(){var c;return[String(this.prefixCls)+"-body",(c={},(0,e.default)(c,String(this.prefixCls)+"-body-with-search",this.filterable),(0,e.default)(c,String(this.prefixCls)+"-body-with-footer",this.showFooter),c)]},count:function(){var c=this.validKeysCount;return(c>0?String(c)+"/":"")+(""+String(this.data.length))},checkedAll:function(){var c=this;return this.filterData.filter(function(g){return(0,i.default)(this,c),!g.disabled}.bind(this)).length===this.validKeysCount&&this.validKeysCount!==0},checkedAllDisabled:function(){var c=this;return this.filterData.filter(function(g){return(0,i.default)(this,c),!g.disabled}.bind(this)).length<=0},filterData:function(){var c=this;return this.showItems.filter(function(g){return(0,i.default)(this,c),this.filterMethod(g,this.query)}.bind(this))}},methods:{itemClasses:function(c){return[String(this.prefixCls)+"-content-item",(0,e.default)({},String(this.prefixCls)+"-content-item-disabled",c.disabled)]},showLabel:function(c){return this.renderFormat(c)},isCheck:function(c){var g=this;return this.checkedKeys.some(function(p){return(0,i.default)(this,g),p===c.key}.bind(this))},select:function(c){if(!c.disabled){var g=this.checkedKeys.indexOf(c.key);g>-1?this.checkedKeys.splice(g,1):this.checkedKeys.push(c.key),this.$parent.handleCheckedKeys()}},updateFilteredData:function(){this.showItems=this.data},toggleSelectAll:function(c){var g=this,p=c?this.filterData.filter(function(v){return(0,i.default)(this,g),!v.disabled||this.checkedKeys.indexOf(v.key)>-1}.bind(this)).map(function(v){return(0,i.default)(this,g),v.key}.bind(this)):this.filterData.filter(function(v){return(0,i.default)(this,g),v.disabled&&this.checkedKeys.indexOf(v.key)>-1}.bind(this)).map(function(v){return(0,i.default)(this,g),v.key}.bind(this));this.$emit("on-checked-keys-change",p)},handleQueryClear:function(){this.query=""},handleQueryChange:function(c){this.query=c}},created:function(){this.updateFilteredData()},mounted:function(){this.showFooter=this.$slots.default!==void 0}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(38),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"Search",components:{iInput:i.default},props:{prefixCls:String,placeholder:String,query:String},data:function(){return{currentQuery:this.query}},watch:{query:function(l){this.currentQuery=l},currentQuery:function(l){this.$emit("on-query-change",l)}},computed:{icon:function(){return this.query===""?"ios-search":"ios-close-circle"}},methods:{handleClick:function(){this.currentQuery!==""&&(this.currentQuery="",this.$emit("on-query-clear"))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(28),i=l(s),f=r(8),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}h.default={name:"Operation",components:{iButton:i.default,Icon:e.default},props:{prefixCls:String,operations:Array,leftActive:Boolean,rightActive:Boolean,reverseOperation:Boolean},methods:{moveToLeft:function(){this.$parent.moveTo("left")},moveToRight:function(){this.$parent.moveTo("right")}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=p(s),f=r(612),e=p(f),l=r(61),n=p(l),t=r(62),o=p(t),d=r(4),u=p(d),c=r(6),g=p(c);function p(y){return y&&y.__esModule?y:{default:y}}var v="ivu-tree";h.default={name:"Tree",mixins:[u.default,g.default],components:{TreeNode:e.default,Dropdown:n.default,DropdownMenu:o.default},provide:function(){return{TreeInstance:this}},props:{data:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},checkDirectly:{type:Boolean,default:!1},emptyText:{type:String},childrenKey:{type:String,default:"children"},loadData:{type:Function},render:{type:Function},selectNode:{type:Boolean,default:!0},expandNode:{type:Boolean,default:!1}},data:function(){return{prefixCls:v,stateTree:this.data,flatState:[],contextMenuVisible:!1,contextMenuStyles:{top:0,left:0}}},watch:{data:{deep:!0,handler:function(){this.stateTree=this.data,this.flatState=this.compileFlatState(),this.rebuildTree()}}},computed:{localeEmptyText:function(){return typeof this.emptyText>"u"?this.t("i.tree.emptyText"):this.emptyText}},methods:{compileFlatState:function(){var b=this,A=0,x=this.childrenKey,E=[];function S(C,T){var k=this;C.nodeKey=A++,E[C.nodeKey]={node:C,nodeKey:C.nodeKey},typeof T<"u"&&(E[C.nodeKey].parent=T.nodeKey,E[T.nodeKey][x].push(C.nodeKey)),C[x]&&(E[C.nodeKey][x]=[],C[x].forEach(function(M){return(0,i.default)(this,k),S(M,C)}.bind(this)))}return this.stateTree.forEach(function(C){(0,i.default)(this,b),S(C)}.bind(this)),E},updateTreeUp:function(b){var A=this,x=this.flatState[b].parent;if(!(typeof x>"u"||this.checkStrictly)){var E=this.flatState[b].node,S=this.flatState[x].node;E.checked==S.checked&&E.indeterminate==S.indeterminate||(E.checked==!0?(this.$set(S,"checked",S[this.childrenKey].every(function(C){return(0,i.default)(this,A),C.checked}.bind(this))),this.$set(S,"indeterminate",!S.checked)):(this.$set(S,"checked",!1),this.$set(S,"indeterminate",S[this.childrenKey].some(function(C){return(0,i.default)(this,A),C.checked||C.indeterminate}.bind(this)))),this.updateTreeUp(x))}},rebuildTree:function(){var b=this,A=this.getCheckedNodes();A.forEach(function(x){(0,i.default)(this,b),this.updateTreeDown(x,{checked:!0});var E=this.flatState[x.nodeKey].parent;if(!(!E&&E!==0)){var S=this.flatState[E].node,C=typeof x.checked<"u"&&x.checked;C&&S.checked!=x.checked&&this.updateTreeUp(x.nodeKey)}}.bind(this))},getSelectedNodes:function(){var b=this;return this.flatState.filter(function(A){return(0,i.default)(this,b),A.node.selected}.bind(this)).map(function(A){return(0,i.default)(this,b),A.node}.bind(this))},getCheckedNodes:function(){var b=this;return this.flatState.filter(function(A){return(0,i.default)(this,b),A.node.checked}.bind(this)).map(function(A){return(0,i.default)(this,b),A.node}.bind(this))},getCheckedAndIndeterminateNodes:function(){var b=this;return this.flatState.filter(function(A){return(0,i.default)(this,b),A.node.checked||A.node.indeterminate}.bind(this)).map(function(A){return(0,i.default)(this,b),A.node}.bind(this))},updateTreeDown:function(b){var A=this,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.checkStrictly){for(var E in x)this.$set(b,E,x[E]);b[this.childrenKey]&&b[this.childrenKey].forEach(function(S){(0,i.default)(this,A),this.updateTreeDown(S,x)}.bind(this))}},handleSelect:function(b){var A=this;if(this.flatState[b]){var x=this.flatState[b].node;if(!this.multiple){var E=this.flatState.findIndex(function(S){return(0,i.default)(this,A),S.node.selected}.bind(this));E>=0&&E!==b&&this.$set(this.flatState[E].node,"selected",!1)}this.$set(x,"selected",!x.selected),this.$emit("on-select-change",this.getSelectedNodes(),x)}},handleCheck:function(b){var A=b.checked,x=b.nodeKey;if(this.flatState[x]){var E=this.flatState[x].node;this.$set(E,"checked",A),this.$set(E,"indeterminate",!1),this.updateTreeUp(x),this.updateTreeDown(E,{checked:A,indeterminate:!1}),this.$emit("on-check-change",this.getCheckedNodes(),E)}},handleContextmenu:function(b){var A=this,x=b.data,E=b.event;this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(function(){(0,i.default)(this,A);var S=this.$refs.treeWrap,C=S.getBoundingClientRect(),T={left:E.clientX-C.left+"px",top:E.clientY-C.top+"px"};this.contextMenuStyles=T,this.contextMenuVisible=!0,this.$emit("on-contextmenu",x,E,T)}.bind(this))},handleClickContextMenuOutside:function(){this.contextMenuVisible=!1}},created:function(){this.flatState=this.compileFlatState(),this.rebuildTree()},mounted:function(){var b=this;this.$on("on-check",this.handleCheck),this.$on("on-selected",this.handleSelect),this.$on("toggle-expand",function(A){return(0,i.default)(this,b),this.$emit("on-toggle-expand",A)}.bind(this)),this.$on("contextmenu",this.handleContextmenu)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=b(s),f=r(2),e=b(f),l=r(49),n=b(l),t=r(8),o=b(t),d=r(613),u=b(d),c=r(83),g=b(c),p=r(4),v=b(p),y=r(3);function b(x){return x&&x.__esModule?x:{default:x}}var A="ivu-tree";h.default={name:"TreeNode",mixins:[v.default],inject:["TreeInstance"],components:{Checkbox:n.default,Icon:o.default,CollapseTransition:g.default,Render:u.default},props:{data:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},childrenKey:{type:String,default:"children"},showCheckbox:{type:Boolean,default:!1},appear:{type:Boolean,default:!1}},data:function(){return{prefixCls:A,appearByClickArrow:!1}},computed:{classes:function(){return[A+"-children"]},selectedCls:function(){return[(0,e.default)({},A+"-node-selected",this.data.selected)]},arrowClasses:function(){var E;return[A+"-arrow",(E={},(0,e.default)(E,A+"-arrow-disabled",this.data.disabled),(0,e.default)(E,A+"-arrow-open",this.data.expand),E)]},titleClasses:function(){return[A+"-title",(0,e.default)({},A+"-title-selected",this.data.selected)]},showArrow:function(){return this.data[this.childrenKey]&&this.data[this.childrenKey].length||"loading"in this.data&&!this.data.loading},showLoading:function(){return"loading"in this.data&&this.data.loading},isParentRender:function(){var E=(0,y.findComponentUpward)(this,"Tree");return E&&E.render},parentRender:function(){var E=(0,y.findComponentUpward)(this,"Tree");return E&&E.render?E.render:null},node:function(){var E=this,S=(0,y.findComponentUpward)(this,"Tree");return S?[S.flatState,S.flatState.find(function(C){return(0,i.default)(this,E),C.nodeKey===this.data.nodeKey}.bind(this))]:[]},children:function(){return this.data[this.childrenKey]},arrowType:function(){var E="ios-arrow-forward";return this.$IVIEW&&(this.$IVIEW.tree.customArrow?E="":this.$IVIEW.tree.arrow&&(E=this.$IVIEW.tree.arrow)),E},customArrowType:function(){var E="";return this.$IVIEW&&this.$IVIEW.tree.customArrow&&(E=this.$IVIEW.tree.customArrow),E},arrowSize:function(){var E="";return this.$IVIEW&&this.$IVIEW.tree.arrowSize&&(E=this.$IVIEW.tree.arrowSize),E}},methods:{handleExpand:function(){var E=this,S=this.data;if(this.appearByClickArrow=!0,S[this.childrenKey].length===0){var C=(0,y.findComponentUpward)(this,"Tree");if(C&&C.loadData){this.$set(this.data,"loading",!0),C.loadData(S,function(T){(0,i.default)(this,E),this.$set(this.data,"loading",!1),T.length&&(this.$set(this.data,this.childrenKey,T),this.$nextTick(function(){return(0,i.default)(this,E),this.handleExpand()}.bind(this)))}.bind(this));return}}S[this.childrenKey]&&S[this.childrenKey].length&&(this.$set(this.data,"expand",!this.data.expand),this.dispatch("Tree","toggle-expand",this.data))},handleClickNode:function(){this.TreeInstance.expandNode?this.showArrow&&this.handleExpand():this.TreeInstance.selectNode&&this.handleSelect()},handleSelect:function(){this.data.disabled||(this.TreeInstance.showCheckbox&&this.TreeInstance.checkDirectly?this.handleCheck():this.dispatch("Tree","on-selected",this.data.nodeKey))},handleCheck:function(){if(!this.data.disabled){var E={checked:!this.data.checked&&!this.data.indeterminate,nodeKey:this.data.nodeKey};this.dispatch("Tree","on-check",E)}},handleContextmenu:function(E,S){E.contextmenu&&(S.preventDefault(),this.dispatch("Tree","contextmenu",{data:E,event:S}))},handlePreventSelect:function(E,S){E.contextmenu&&S.preventDefault()}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=v(s),f=r(2),e=v(f),l=r(618),n=v(l),t=r(620),o=v(t),d=r(3),u=r(4),c=v(u),g=r(11),p=v(g);function v(b){return b&&b.__esModule?b:{default:b}}var y="ivu-upload";h.default={name:"Upload",mixins:[c.default,p.default],components:{UploadList:n.default},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},multiple:{type:Boolean,default:!1},data:{type:Object},name:{type:String,default:"file"},withCredentials:{type:Boolean,default:!1},showUploadList:{type:Boolean,default:!0},type:{type:String,validator:function(A){return(0,d.oneOf)(A,["select","drag"])},default:"select"},format:{type:Array,default:function(){return[]}},accept:{type:String},maxSize:{type:Number},beforeUpload:Function,onProgress:{type:Function,default:function(){return{}}},onSuccess:{type:Function,default:function(){return{}}},onError:{type:Function,default:function(){return{}}},onRemove:{type:Function,default:function(){return{}}},onPreview:{type:Function,default:function(){return{}}},onExceededSize:{type:Function,default:function(){return{}}},onFormatError:{type:Function,default:function(){return{}}},defaultFileList:{type:Array,default:function(){return[]}},paste:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},webkitdirectory:{type:Boolean,default:!1}},data:function(){return{prefixCls:y,dragOver:!1,fileList:[],tempIndex:1}},computed:{classes:function(){var A;return[""+y,(A={},(0,e.default)(A,y+"-select",this.type==="select"),(0,e.default)(A,y+"-drag",this.type==="drag"),(0,e.default)(A,y+"-dragOver",this.type==="drag"&&this.dragOver),A)]}},methods:{handleClick:function(){this.itemDisabled||this.$refs.input.click()},handleChange:function(A){var x=A.target.files;x&&(this.uploadFiles(x),this.$refs.input.value=null)},onDrop:function(A){this.dragOver=!1,!this.itemDisabled&&this.uploadFiles(A.dataTransfer.files)},handlePaste:function(A){this.itemDisabled||this.paste&&this.uploadFiles(A.clipboardData.files)},uploadFiles:function(A){var x=this,E=Array.prototype.slice.call(A);this.multiple||(E=E.slice(0,1)),E.length!==0&&E.forEach(function(S){(0,i.default)(this,x),this.upload(S)}.bind(this))},upload:function(A){var x=this;if(!this.beforeUpload)return this.post(A);var E=this.beforeUpload(A);E&&E.then?E.then(function(S){(0,i.default)(this,x),Object.prototype.toString.call(S)==="[object File]"?this.post(S):this.post(A)}.bind(this),function(){(0,i.default)(this,x)}.bind(this)):E!==!1&&this.post(A)},post:function(A){var x=this;if(this.format.length){var E=A.name.split(".").pop().toLocaleLowerCase(),S=this.format.some(function(T){return(0,i.default)(this,x),T.toLocaleLowerCase()===E}.bind(this));if(!S)return this.onFormatError(A,this.fileList),!1}if(this.maxSize&&A.size>this.maxSize*1024)return this.onExceededSize(A,this.fileList),!1;this.handleStart(A);var C=new FormData;C.append(this.name,A),(0,o.default)({headers:this.headers,withCredentials:this.withCredentials,file:A,data:this.data,filename:this.name,action:this.action,onProgress:function(k){(0,i.default)(this,x),this.handleProgress(k,A)}.bind(this),onSuccess:function(k){(0,i.default)(this,x),this.handleSuccess(k,A)}.bind(this),onError:function(k,M){(0,i.default)(this,x),this.handleError(k,M,A)}.bind(this)})},handleStart:function(A){A.uid=Date.now()+this.tempIndex++;var x={status:"uploading",name:A.name,size:A.size,percentage:0,uid:A.uid,showProgress:!0};this.fileList.push(x)},getFile:function(A){var x=this,E=this.fileList,S=void 0;return E.every(function(C){return(0,i.default)(this,x),S=A.uid===C.uid?C:null,!S}.bind(this)),S},handleProgress:function(A,x){var E=this.getFile(x);this.onProgress(A,E,this.fileList),E.percentage=A.percent||0},handleSuccess:function(A,x){var E=this,S=this.getFile(x);S&&(S.status="finished",S.response=A,this.onSuccess(A,S,this.fileList),this.dispatch("FormItem","on-form-change",S),setTimeout(function(){(0,i.default)(this,E),S.showProgress=!1}.bind(this),1e3))},handleError:function(A,x,E){var S=this.getFile(E),C=this.fileList;S.status="fail",C.splice(C.indexOf(S),1),this.onError(A,x,E)},handleRemove:function(A){var x=this.fileList;x.splice(x.indexOf(A),1),this.onRemove(A,x)},handlePreview:function(A){A.status==="finished"&&this.onPreview(A)},clearFiles:function(){this.fileList=[]}},watch:{defaultFileList:{immediate:!0,handler:function(A){var x=this;this.fileList=A.map(function(E){return(0,i.default)(this,x),E.status="finished",E.percentage=100,E.uid=Date.now()+this.tempIndex++,E}.bind(this))}}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(2),i=t(s),f=r(8),e=t(f),l=r(222),n=t(l);function t(d){return d&&d.__esModule?d:{default:d}}var o="ivu-upload";h.default={name:"UploadList",components:{Icon:e.default,iProgress:n.default},props:{files:{type:Array,default:function(){return[]}}},data:function(){return{prefixCls:o}},methods:{fileCls:function(u){return[o+"-list-file",(0,i.default)({},o+"-list-file-finish",u.status==="finished")]},handleClick:function(u){this.$emit("on-file-click",u)},handlePreview:function(u){this.$emit("on-file-preview",u)},handleRemove:function(u){this.$emit("on-file-remove",u)},format:function(u){var c=u.name.split(".").pop().toLocaleLowerCase()||"",g="ios-document-outline";return["gif","jpg","jpeg","png","bmp","webp"].indexOf(c)>-1&&(g="ios-image"),["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"].indexOf(c)>-1&&(g="ios-film"),["mp3","wav","wma","ogg","aac","flac"].indexOf(c)>-1&&(g="ios-musical-notes"),["doc","txt","docx","pages","epub","pdf"].indexOf(c)>-1&&(g="md-document"),["numbers","csv","xls","xlsx"].indexOf(c)>-1&&(g="ios-stats"),["keynote","ppt","pptx"].indexOf(c)>-1&&(g="ios-videocam"),g},parsePercentage:function(u){return parseInt(u,10)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=n(s),f=r(2),e=n(f),l=r(3);function n(o){return o&&o.__esModule?o:{default:o}}var t="ivu-row";h.default={name:"Row",props:{type:{validator:function(d){return(0,l.oneOf)(d,["flex"])}},align:{validator:function(d){return(0,l.oneOf)(d,["top","middle","bottom"])}},justify:{validator:function(d){return(0,l.oneOf)(d,["start","end","center","space-around","space-between"])}},gutter:{type:Number,default:0},className:String,wrap:{type:Boolean,default:!0}},computed:{classes:function(){var d;return[""+t,(d={},(0,e.default)(d,t+"-"+String(this.type),!!this.type),(0,e.default)(d,t+"-"+String(this.type)+"-"+String(this.align),!!this.align&&this.type),(0,e.default)(d,t+"-"+String(this.type)+"-"+String(this.justify),!!this.justify&&this.type),(0,e.default)(d,t+"-"+String(this.align),!!this.align),(0,e.default)(d,t+"-"+String(this.justify),!!this.justify),(0,e.default)(d,""+String(this.className),!!this.className),(0,e.default)(d,t+"-no-wrap",!this.wrap),d)]},styles:function(){var d={};return this.gutter!==0&&(d={marginLeft:this.gutter/-2+"px",marginRight:this.gutter/-2+"px"}),d}},methods:{updateGutter:function(d){var u=this,c=(0,l.findComponentDownward)(this,"iCol"),g=(0,l.findBrothersComponents)(c,"iCol",!1);g.length&&g.forEach(function(p){(0,i.default)(this,u),d!==0&&(p.gutter=d)}.bind(this))}},watch:{gutter:function(d){this.updateGutter(d)}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(21),i=u(s),f=r(27),e=u(f),l=r(1),n=u(l),t=r(2),o=u(t),d=r(3);function u(p){return p&&p.__esModule?p:{default:p}}var c="ivu-col";function g(p){return typeof p=="number"?p+" "+p+" auto":/^\d+(\.\d+)?(px|em|rem|%)$/.test(p)?"0 0 "+String(p):p}h.default={name:"iCol",props:{span:[Number,String],order:[Number,String],offset:[Number,String],push:[Number,String],pull:[Number,String],className:String,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object],xxl:[Number,Object],flex:{type:[Number,String],default:""}},data:function(){return{gutter:0}},computed:{classes:function(){var v,y=this,b=[""+c,(v={},(0,o.default)(v,c+"-span-"+String(this.span),this.span),(0,o.default)(v,c+"-order-"+String(this.order),this.order),(0,o.default)(v,c+"-offset-"+String(this.offset),this.offset),(0,o.default)(v,c+"-push-"+String(this.push),this.push),(0,o.default)(v,c+"-pull-"+String(this.pull),this.pull),(0,o.default)(v,""+String(this.className),!!this.className),v)];return["xs","sm","md","lg","xl","xxl"].forEach(function(A){if((0,n.default)(this,y),typeof this[A]=="number")b.push(c+"-span-"+String(A)+"-"+String(this[A]));else if((0,e.default)(this[A])==="object"){var x=this[A];(0,i.default)(x).forEach(function(E){(0,n.default)(this,y),b.push(E!=="span"?c+"-"+String(A)+"-"+String(E)+"-"+String(x[E]):c+"-span-"+String(A)+"-"+String(x[E]))}.bind(this))}}.bind(this)),b},styles:function(){var v={};return this.gutter!==0&&(v={paddingLeft:this.gutter/2+"px",paddingRight:this.gutter/2+"px"}),this.flex&&(v.flex=g(this.flex)),v}},methods:{updateGutter:function(){var v=(0,d.findComponentUpward)(this,"Row");v&&v.updateGutter(v.gutter)}},mounted:function(){this.updateGutter()},beforeDestroy:function(){this.updateGutter()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e="ivu-select-group";h.default={name:"OptionGroup",props:{label:{type:String,default:""}},data:function(){return{prefixCls:e,hidden:!1}},methods:{queryChange:function(){var n=this;this.$nextTick(function(){(0,i.default)(this,n);for(var t=this.$refs.options.querySelectorAll(".ivu-select-item"),o=!1,d=0;d<t.length;d++)if(t[d].style.display!=="none"){o=!0;break}this.hidden=!o}.bind(this))}},mounted:function(){var n=this;this.$on("on-query-change",function(){return(0,i.default)(this,n),this.queryChange(),!0}.bind(this))},beforeDestroy:function(){this.$off("on-query-change")}}},function(_,h,r){var s=r(1),i=He(s),f=r(21),e=He(f),l=r(32),n=He(l),t=r(267),o=He(t),d=r(273),u=He(d),c=r(283),g=He(c),p=r(286),v=He(p),y=r(289),b=He(y),A=r(341),x=He(A),E=r(343),S=He(E),C=r(346),T=He(C),k=r(349),M=He(k),P=r(354),N=He(P),F=r(358),q=He(F),z=r(361),O=He(z),R=r(366),I=He(R),D=r(373),B=He(D),j=r(380),Q=He(j),X=r(383),Z=He(X),L=r(387),W=He(L),G=r(392),J=He(G),H=r(403),U=He(H),K=r(405),te=He(K),ee=r(425),ie=He(ee),se=r(428),ne=He(se),re=r(431),Y=He(re),V=r(436),oe=He(V),fe=r(438),ce=He(fe),he=r(452),le=He(he),ae=r(19),ue=He(ae),de=r(454),ve=He(de),me=r(455),ge=He(me),xe=r(457),Ae=He(xe),Te=r(468),ke=He(Te),Pe=r(473),Ie=He(Pe),qe=r(477),Ve=He(qe),et=r(484),je=He(et),Ke=r(488),Ge=He(Ke),We=r(497),Je=He(We),ot=r(502),Qe=He(ot),Ye=r(506),at=He(Ye),pe=r(507),ye=He(pe),be=r(512),_e=He(be),we=r(514),Ee=He(we),Ce=r(516),Oe=He(Ce),De=r(521),Be=He(De),Re=r(524),Le=He(Re),Ue=r(525),Ne=He(Ue),$e=r(540),ze=He($e),Xe=r(542),ft=He(Xe),ut=r(547),ct=He(ut),sr=r(550),Gt=He(sr),Tr=r(582),br=He(Tr),Mr=r(587),Ir=He(Mr),Dr=r(590),_r=He(Dr),Br=r(594),wr=He(Br),Rr=r(599),Nr=He(Rr),Lr=r(601),Ur=He(Lr),ji=r(602),Hi=He(ji),Wm=r(610),Vm=He(Wm),Km=r(616),Gm=He(Km),du=r(622),zi=r(627),Jm=r(120),qi=He(Jm);function He(Fr){return Fr&&Fr.__esModule?Fr:{default:Fr}}var Hd={Affix:o.default,Alert:u.default,Anchor:g.default,AnchorLink:v.default,AutoComplete:b.default,Avatar:x.default,BackTop:S.default,Badge:T.default,Breadcrumb:M.default,BreadcrumbItem:M.default.Item,Button:N.default,ButtonGroup:N.default.Group,Card:q.default,Carousel:O.default,CarouselItem:O.default.Item,Cascader:I.default,Cell:B.default,CellGroup:B.default.Group,Checkbox:Q.default,CheckboxGroup:Q.default.Group,Col:du.Col,Collapse:W.default,ColorPicker:J.default,Content:U.default,DatePicker:te.default,Divider:ie.default,Drawer:ne.default,Dropdown:Y.default,DropdownItem:Y.default.Item,DropdownMenu:Y.default.Menu,Footer:oe.default,Form:ce.default,FormItem:ce.default.Item,Header:le.default,Icon:ue.default,Input:ve.default,InputNumber:ge.default,Scroll:Ae.default,Sider:Le.default,Split:ke.default,Submenu:Ge.default.Sub,Layout:Ie.default,List:Ve.default,ListItem:Ve.default.Item,ListItemMeta:Ve.default.Item.Meta,LoadingBar:je.default,Menu:Ge.default,MenuGroup:Ge.default.Group,MenuItem:Ge.default.Item,Message:Je.default,Modal:Qe.default,Notice:at.default,Option:zi.Option,OptionGroup:zi.OptionGroup,Page:ye.default,Panel:W.default.Panel,Poptip:_e.default,Progress:Ee.default,Radio:Oe.default,RadioGroup:Oe.default.Group,Rate:Be.default,Row:du.Row,Select:zi.Select,Slider:Ne.default,Spin:ze.default,Step:ft.default.Step,Steps:ft.default,Table:Gt.default,Tabs:br.default,TabPane:br.default.Pane,Tag:Ir.default,Time:_r.default,Timeline:wr.default,TimelineItem:wr.default.Item,TimePicker:Nr.default,Tooltip:Ur.default,Transfer:Hi.default,Tree:Vm.default,Upload:Gm.default},zd=(0,n.default)({},Hd,{iButton:N.default,iCircle:Z.default,iCol:du.Col,iContent:U.default,iForm:ce.default,iFooter:oe.default,iHeader:le.default,iInput:ve.default,iMenu:Ge.default,iOption:zi.Option,iProgress:Ee.default,iSelect:zi.Select,iSwitch:ct.default,iTable:Gt.default,iTime:_r.default}),qd=function Fr(xr){var Qm=this,Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fr.installed||(qi.default.use(Me.locale),qi.default.i18n(Me.i18n),(0,e.default)(zd).forEach(function(Wd){(0,i.default)(this,Qm),xr.component(Wd,zd[Wd])}.bind(this)),xr.prototype.$IVIEW={size:Me.size||"",transfer:"transfer"in Me?Me.transfer:"",capture:"capture"in Me?Me.capture:!0,select:{arrow:Me.select&&Me.select.arrow?Me.select.arrow:"",customArrow:Me.select&&Me.select.customArrow?Me.select.customArrow:"",arrowSize:Me.select&&Me.select.arrowSize?Me.select.arrowSize:""},cell:{arrow:Me.cell&&Me.cell.arrow?Me.cell.arrow:"",customArrow:Me.cell&&Me.cell.customArrow?Me.cell.customArrow:"",arrowSize:Me.cell&&Me.cell.arrowSize?Me.cell.arrowSize:""},menu:{arrow:Me.menu&&Me.menu.arrow?Me.menu.arrow:"",customArrow:Me.menu&&Me.menu.customArrow?Me.menu.customArrow:"",arrowSize:Me.menu&&Me.menu.arrowSize?Me.menu.arrowSize:""},tree:{arrow:Me.tree&&Me.tree.arrow?Me.tree.arrow:"",customArrow:Me.tree&&Me.tree.customArrow?Me.tree.customArrow:"",arrowSize:Me.tree&&Me.tree.arrowSize?Me.tree.arrowSize:""},cascader:{arrow:Me.cascader&&Me.cascader.arrow?Me.cascader.arrow:"",customArrow:Me.cascader&&Me.cascader.customArrow?Me.cascader.customArrow:"",arrowSize:Me.cascader&&Me.cascader.arrowSize?Me.cascader.arrowSize:"",itemArrow:Me.cascader&&Me.cascader.itemArrow?Me.cascader.itemArrow:"",customItemArrow:Me.cascader&&Me.cascader.customItemArrow?Me.cascader.customItemArrow:"",itemArrowSize:Me.cascader&&Me.cascader.itemArrowSize?Me.cascader.itemArrowSize:""},colorPicker:{arrow:Me.colorPicker&&Me.colorPicker.arrow?Me.colorPicker.arrow:"",customArrow:Me.colorPicker&&Me.colorPicker.customArrow?Me.colorPicker.customArrow:"",arrowSize:Me.colorPicker&&Me.colorPicker.arrowSize?Me.colorPicker.arrowSize:""},datePicker:{icon:Me.datePicker&&Me.datePicker.icon?Me.datePicker.icon:"",customIcon:Me.datePicker&&Me.datePicker.customIcon?Me.datePicker.customIcon:"",iconSize:Me.datePicker&&Me.datePicker.iconSize?Me.datePicker.iconSize:""},timePicker:{icon:Me.timePicker&&Me.timePicker.icon?Me.timePicker.icon:"",customIcon:Me.timePicker&&Me.timePicker.customIcon?Me.timePicker.customIcon:"",iconSize:Me.timePicker&&Me.timePicker.iconSize?Me.timePicker.iconSize:""},tabs:{closeIcon:Me.tabs&&Me.tabs.closeIcon?Me.tabs.closeIcon:"",customCloseIcon:Me.tabs&&Me.tabs.customCloseIcon?Me.tabs.customCloseIcon:"",closeIconSize:Me.tabs&&Me.tabs.closeIconSize?Me.tabs.closeIconSize:""},modal:{maskClosable:Me.modal&&"maskClosable"in Me.modal?Me.modal.maskClosable:""}},xr.prototype.$Loading=je.default,xr.prototype.$Message=Je.default,xr.prototype.$Modal=Qe.default,xr.prototype.$Notice=at.default,xr.prototype.$Spin=ze.default)};typeof window<"u"&&window.Vue&&qd(window.Vue);var $d=(0,n.default)({version:"4.7.0",locale:qi.default.use,i18n:qi.default.i18n,install:qd,Circle:Z.default,Switch:ct.default},Hd);$d.lang=function(Fr){(0,i.default)(void 0,void 0);var xr=window["iview/locale"].default;Fr===xr.i.locale?qi.default.use(xr):console.log("The "+String(Fr)+" language pack is not loaded.")}.bind(void 0),_.exports.default=_.exports=$d},function(_,h,r){r(261),_.exports=r(5).Object.keys},function(_,h,r){var s=r(29),i=r(40);r(97)("keys",function(){return function(e){return i(s(e))}})},function(_,h,r){var s=r(33),i=r(52),f=r(263);_.exports=function(e){return function(l,n,t){var o=s(l),d=i(o.length),u=f(t,d),c;if(e&&n!=n){for(;d>u;)if(c=o[u++],c!=c)return!0}else for(;d>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}}},function(_,h,r){var s=r(65),i=Math.max,f=Math.min;_.exports=function(e,l){return e=s(e),e<0?i(e+l,0):f(e,l)}},function(_,h,r){r(265),_.exports=r(5).Object.assign},function(_,h,r){var s=r(7);s(s.S+s.F,"Object",{assign:r(266)})},function(_,h,r){var s=r(13),i=r(40),f=r(71),e=r(54),l=r(29),n=r(64),t=Object.assign;_.exports=!t||r(31)(function(){var o={},d={},u=Symbol(),c="abcdefghijklmnopqrst";return o[u]=7,c.split("").forEach(function(g){d[g]=g}),t({},o)[u]!=7||Object.keys(t({},d)).join("")!=c})?function(d,u){for(var c=l(d),g=arguments.length,p=1,v=f.f,y=e.f;g>p;)for(var b=n(arguments[p++]),A=v?i(b).concat(v(b)):i(b),x=A.length,E=0,S;x>E;)S=A[E++],(!s||y.call(b,S))&&(c[S]=b[S]);return c}:t},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(268),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(99),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(272);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){_.exports={default:r(270),__esModule:!0}},function(_,h,r){r(271);var s=r(5).Object;_.exports=function(f,e,l){return s.defineProperty(f,e,l)}},function(_,h,r){var s=r(7);s(s.S+s.F*!r(13),"Object",{defineProperty:r(14).f})},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",[n("div",{ref:"point",class:e.classes,style:e.styles},[e._t("default")],2),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.slot,expression:"slot"}],style:e.slotStyle})])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(274),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(100),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(282);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("i",{class:e.classes,style:e.styles,on:{click:e.handleClick}})},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){r(46),r(35),_.exports=r(281)},function(_,h,r){var s=r(278),i=r(102),f=r(34),e=r(33);_.exports=r(72)(Array,"Array",function(l,n){this._t=e(l),this._i=0,this._k=n},function(){var l=this._t,n=this._k,t=this._i++;return!l||t>=l.length?(this._t=void 0,i(1)):n=="keys"?i(0,t):n=="values"?i(0,l[t]):i(0,[t,l[t]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},function(_,h){_.exports=function(){}},function(_,h,r){var s=r(55),i=r(44),f=r(47),e={};r(25)(e,r(10)("iterator"),function(){return this}),_.exports=function(l,n,t){l.prototype=s(e,{next:i(1,t)}),f(l,n+" Iterator")}},function(_,h,r){var s=r(65),i=r(63);_.exports=function(f){return function(e,l){var n=String(i(e)),t=s(l),o=n.length,d,u;return t<0||t>=o?f?"":void 0:(d=n.charCodeAt(t),d<55296||d>56319||t+1===o||(u=n.charCodeAt(t+1))<56320||u>57343?f?n.charAt(t):d:f?n.slice(t,t+2):(d-55296<<10)+(u-56320)+65536)}}},function(_,h,r){var s=r(22),i=r(73);_.exports=r(5).getIterator=function(f){var e=i(f);if(typeof e!="function")throw TypeError(f+" is not iterable!");return s(e.call(f))}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.fade?"fade":""}},[e.closed?e._e():n("div",{class:e.wrapClasses},[e.showIcon?n("span",{class:e.iconClasses},[e._t("icon",[n("Icon",{attrs:{type:e.iconType}})])],2):e._e(),e._v(" "),n("span",{class:e.messageClasses},[e._t("default")],2),e._v(" "),n("span",{class:e.descClasses},[e._t("desc")],2),e._v(" "),e.closable?n("a",{class:e.closeClasses,on:{click:e.close}},[e._t("close",[n("Icon",{attrs:{type:"ios-close"}})])],2):e._e()])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(284),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(107),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(285);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.wrapperComponent,{tag:"component",attrs:{"offset-top":e.offsetTop,"offset-bottom":e.offsetBottom},on:{"on-change":e.handleAffixStateChange}},[n("div",{class:e.prefix+"-wrapper",style:e.wrapperStyle},[n("div",{class:""+e.prefix},[n("div",{class:e.prefix+"-ink"},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showInk,expression:"showInk"}],class:e.prefix+"-ink-ball",style:{top:e.inkTop+"px"}})]),e._v(" "),e._t("default")],2)])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(287),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(108),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(288);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.anchorLinkClasses},[n("a",{class:e.linkTitleClasses,attrs:{href:e.href,"data-scroll-offset":e.scrollOffset,"data-href":e.href,title:e.title},on:{click:function(o){return o.preventDefault(),e.goAnchor(o)}}},[e._v(e._s(e.title))]),e._v(" "),e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(290),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(109),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(340);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){_.exports={default:r(292),__esModule:!0}},function(_,h,r){r(46),r(35),_.exports=r(293)},function(_,h,r){var s=r(56),i=r(10)("iterator"),f=r(34);_.exports=r(5).isIterable=function(e){var l=Object(e);return l[i]!==void 0||"@@iterator"in l||f.hasOwnProperty(s(l))}},function(_,h,r){r(295),_.exports=r(5).Number.isFinite},function(_,h,r){var s=r(7),i=r(9).isFinite;s(s.S,"Number",{isFinite:function(e){return typeof e=="number"&&i(e)}})},function(_,h,r){var s=r(5),i=s.JSON||(s.JSON={stringify:JSON.stringify});_.exports=function(e){return i.stringify.apply(i,arguments)}},function(_,h,r){r(35),r(298),_.exports=r(5).Array.from},function(_,h,r){var s=r(24),i=r(7),f=r(29),e=r(112),l=r(113),n=r(52),t=r(299),o=r(73);i(i.S+i.F*!r(114)(function(d){Array.from(d)}),"Array",{from:function(u){var c=f(u),g=typeof this=="function"?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,y=v!==void 0,b=0,A=o(c),x,E,S,C;if(y&&(v=s(v,p>2?arguments[2]:void 0,2)),A!=null&&!(g==Array&&l(A)))for(C=A.call(c),E=new g;!(S=C.next()).done;b++)t(E,b,y?e(C,v,[S.value,b],!0):S.value);else for(x=n(c.length),E=new g(x);x>b;b++)t(E,b,y?v(c[b],b):c[b]);return E.length=b,E}})},function(_,h,r){var s=r(14),i=r(44);_.exports=function(f,e,l){e in f?s.f(f,e,i(0,l)):f[e]=l}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-select-dropdown",class:e.className,style:e.styles},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){_.exports={default:r(302),__esModule:!0}},function(_,h,r){r(35),r(46),_.exports=r(77).f("iterator")},function(_,h,r){_.exports={default:r(304),__esModule:!0}},function(_,h,r){r(305),r(80),r(309),r(310),_.exports=r(5).Symbol},function(_,h,r){var s=r(9),i=r(30),f=r(13),e=r(7),l=r(103),n=r(78).KEY,t=r(31),o=r(67),d=r(47),u=r(53),c=r(10),g=r(77),p=r(79),v=r(306),y=r(118),b=r(22),A=r(18),x=r(29),E=r(33),S=r(70),C=r(44),T=r(55),k=r(307),M=r(308),P=r(71),N=r(14),F=r(40),q=M.f,z=N.f,O=k.f,R=s.Symbol,I=s.JSON,D=I&&I.stringify,B="prototype",j=c("_hidden"),Q=c("toPrimitive"),X={}.propertyIsEnumerable,Z=o("symbol-registry"),L=o("symbols"),W=o("op-symbols"),G=Object[B],J=typeof R=="function"&&!!P.f,H=s.QObject,U=!H||!H[B]||!H[B].findChild,K=f&&t(function(){return T(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a!=7})?function(ue,de,ve){var me=q(G,de);me&&delete G[de],z(ue,de,ve),me&&ue!==G&&z(G,de,me)}:z,te=function(ue){var de=L[ue]=T(R[B]);return de._k=ue,de},ee=J&&typeof R.iterator=="symbol"?function(ue){return typeof ue=="symbol"}:function(ue){return ue instanceof R},ie=function(de,ve,me){return de===G&&ie(W,ve,me),b(de),ve=S(ve,!0),b(me),i(L,ve)?(me.enumerable?(i(de,j)&&de[j][ve]&&(de[j][ve]=!1),me=T(me,{enumerable:C(0,!1)})):(i(de,j)||z(de,j,C(1,{})),de[j][ve]=!0),K(de,ve,me)):z(de,ve,me)},se=function(de,ve){b(de);for(var me=v(ve=E(ve)),ge=0,xe=me.length,Ae;xe>ge;)ie(de,Ae=me[ge++],ve[Ae]);return de},ne=function(de,ve){return ve===void 0?T(de):se(T(de),ve)},re=function(de){var ve=X.call(this,de=S(de,!0));return this===G&&i(L,de)&&!i(W,de)?!1:ve||!i(this,de)||!i(L,de)||i(this,j)&&this[j][de]?ve:!0},Y=function(de,ve){if(de=E(de),ve=S(ve,!0),!(de===G&&i(L,ve)&&!i(W,ve))){var me=q(de,ve);return me&&i(L,ve)&&!(i(de,j)&&de[j][ve])&&(me.enumerable=!0),me}},V=function(de){for(var ve=O(E(de)),me=[],ge=0,xe;ve.length>ge;)!i(L,xe=ve[ge++])&&xe!=j&&xe!=n&&me.push(xe);return me},oe=function(de){for(var ve=de===G,me=O(ve?W:E(de)),ge=[],xe=0,Ae;me.length>xe;)i(L,Ae=me[xe++])&&(!ve||i(G,Ae))&&ge.push(L[Ae]);return ge};J||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var de=u(arguments.length>0?arguments[0]:void 0),ve=function(me){this===G&&ve.call(W,me),i(this,j)&&i(this[j],de)&&(this[j][de]=!1),K(this,de,C(1,me))};return f&&U&&K(G,de,{configurable:!0,set:ve}),te(de)},l(R[B],"toString",function(){return this._k}),M.f=Y,N.f=ie,r(119).f=k.f=V,r(54).f=re,P.f=oe,f&&!r(42)&&l(G,"propertyIsEnumerable",re,!0),g.f=function(ue){return te(c(ue))}),e(e.G+e.W+e.F*!J,{Symbol:R});for(var fe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ce=0;fe.length>ce;)c(fe[ce++]);for(var he=F(c.store),le=0;he.length>le;)p(he[le++]);e(e.S+e.F*!J,"Symbol",{for:function(ue){return i(Z,ue+="")?Z[ue]:Z[ue]=R(ue)},keyFor:function(de){if(!ee(de))throw TypeError(de+" is not a symbol!");for(var ve in Z)if(Z[ve]===de)return ve},useSetter:function(){U=!0},useSimple:function(){U=!1}}),e(e.S+e.F*!J,"Object",{create:ne,defineProperty:ie,defineProperties:se,getOwnPropertyDescriptor:Y,getOwnPropertyNames:V,getOwnPropertySymbols:oe});var ae=t(function(){P.f(1)});e(e.S+e.F*ae,"Object",{getOwnPropertySymbols:function(de){return P.f(x(de))}}),I&&e(e.S+e.F*(!J||t(function(){var ue=R();return D([ue])!="[null]"||D({a:ue})!="{}"||D(Object(ue))!="{}"})),"JSON",{stringify:function(de){for(var ve=[de],me=1,ge,xe;arguments.length>me;)ve.push(arguments[me++]);if(xe=ge=ve[1],!(!A(ge)&&de===void 0||ee(de)))return y(ge)||(ge=function(Ae,Te){if(typeof xe=="function"&&(Te=xe.call(this,Ae,Te)),!ee(Te))return Te}),ve[1]=ge,D.apply(I,ve)}}),R[B][Q]||r(25)(R[B],Q,R[B].valueOf),d(R,"Symbol"),d(Math,"Math",!0),d(s.JSON,"JSON",!0)},function(_,h,r){var s=r(40),i=r(71),f=r(54);_.exports=function(e){var l=s(e),n=i.f;if(n)for(var t=n(e),o=f.f,d=0,u;t.length>d;)o.call(e,u=t[d++])&&l.push(u);return l}},function(_,h,r){var s=r(33),i=r(119).f,f={}.toString,e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(n){try{return i(n)}catch{return e.slice()}};_.exports.f=function(t){return e&&f.call(t)=="[object Window]"?l(t):i(s(t))}},function(_,h,r){var s=r(54),i=r(44),f=r(33),e=r(70),l=r(30),n=r(98),t=Object.getOwnPropertyDescriptor;h.f=r(13)?t:function(d,u){if(d=f(d),u=e(u,!0),n)try{return t(d,u)}catch{}if(l(d,u))return i(!s.f.call(d,u),d[u])}},function(_,h,r){r(79)("asyncIterator")},function(_,h,r){r(79)("observable")},function(_,h,r){_.exports={default:r(312),__esModule:!0}},function(_,h,r){r(313);var s=r(5).Object;_.exports=function(f,e){return s.defineProperties(f,e)}},function(_,h,r){var s=r(7);s(s.S+s.F*!r(13),"Object",{defineProperties:r(104)})},function(_,h,r){_.exports={default:r(315),__esModule:!0}},function(_,h,r){r(316);var s=r(5).Object;_.exports=function(f,e){return s.create(f,e)}},function(_,h,r){var s=r(7);s(s.S,"Object",{create:r(55)})},function(_,h,r){_.exports={default:r(318),__esModule:!0}},function(_,h,r){r(319),_.exports=r(5).Object.getPrototypeOf},function(_,h,r){var s=r(29),i=r(106);r(97)("getPrototypeOf",function(){return function(e){return i(s(e))}})},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(321),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e={i:{locale:"zh-CN",select:{placeholder:"请选择",noMatch:"无匹配数据",loading:"加载中"},table:{noDataText:"暂无数据",noFilteredDataText:"暂无筛选结果",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},datepicker:{selectDate:"选择日期",selectTime:"选择时间",startTime:"开始时间",endTime:"结束时间",clear:"清空",ok:"确定",datePanelLabel:"[yyyy年] [m月]",month:"月",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",year:"年",weekStartDay:"0",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{m1:"1月",m2:"2月",m3:"3月",m4:"4月",m5:"5月",m6:"6月",m7:"7月",m8:"8月",m9:"9月",m10:"10月",m11:"11月",m12:"12月"}},transfer:{titles:{source:"源列表",target:"目的列表"},filterPlaceholder:"请输入搜索内容",notFoundText:"列表为空"},modal:{okText:"确定",cancelText:"取消"},poptip:{okText:"确定",cancelText:"取消"},page:{prev:"上一页",next:"下一页",total:"共",item:"条",items:"条",prev5:"向前 5 页",next5:"向后 5 页",page:"条/页",goto:"跳至",p:"页"},rate:{star:"星",stars:"星"},time:{before:"前",after:"后",just:"刚刚",seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},tree:{emptyText:"暂无数据"}}};(0,i.default)(e),h.default=e},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default=function(l){e||typeof window.iview<"u"&&("langs"in iview||(iview.langs={}),iview.langs[l.i.locale]=l)};var s=r(16),i=f(s);function f(l){return l&&l.__esModule?l:{default:l}}var e=i.default.prototype.$isServer},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(v){return i(v)&&!f(v)};function i(p){return!!p&&typeof p=="object"}function f(p){var v=Object.prototype.toString.call(p);return v==="[object RegExp]"||v==="[object Date]"||n(p)}var e=typeof Symbol=="function"&&Symbol.for,l=e?Symbol.for("react.element"):60103;function n(p){return p.$$typeof===l}function t(p){return Array.isArray(p)?[]:{}}function o(p,v){return v.clone!==!1&&v.isMergeableObject(p)?c(t(p),p,v):p}function d(p,v,y){return p.concat(v).map(function(b){return o(b,y)})}function u(p,v,y){var b={};return y.isMergeableObject(p)&&Object.keys(p).forEach(function(A){b[A]=o(p[A],y)}),Object.keys(v).forEach(function(A){!y.isMergeableObject(v[A])||!p[A]?b[A]=o(v[A],y):b[A]=c(p[A],v[A],y)}),b}function c(p,v,y){y=y||{},y.arrayMerge=y.arrayMerge||d,y.isMergeableObject=y.isMergeableObject||s;var b=Array.isArray(v),A=Array.isArray(p),x=b===A;return x?b?y.arrayMerge(p,v,y):u(p,v,y):o(v,y)}c.all=function(v,y){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(b,A){return c(b,A,y)},{})};var g=c;h.default=g},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(27),e=l(f);h.default=function(){function t(d,u){return Object.prototype.hasOwnProperty.call(d,u)}function o(d){for(var u=this,c=arguments.length,g=Array(c>1?c-1:0),p=1;p<c;p++)g[p-1]=arguments[p];return g.length===1&&(0,e.default)(g[0])==="object"&&(g=g[0]),(!g||!g.hasOwnProperty)&&(g={}),d.replace(n,function(v,y,b,A){(0,i.default)(this,u);var x=void 0;return d[A-1]==="{"&&d[A+v.length]==="}"?b:(x=t(g,b)?g[b]:null,x??"")}.bind(this))}return o};function l(t){return t&&t.__esModule?t:{default:t}}var n=/(%|)\{([0-9a-zA-Z_]+)\}/g},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(121),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(325);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.headCls,on:{click:e.onHeaderClick}},[e.$slots.prefix||e.prefix?n("span",{class:[e.prefixCls+"-prefix"]},[e._t("prefix",[e.prefix?n("Icon",{attrs:{type:e.prefix}}):e._e()])],2):e._e(),e._v(" "),e._l(e.selectedMultiple,function(t,o){return e.maxTagCount===void 0||o<e.maxTagCount?n("div",{staticClass:"ivu-tag ivu-tag-checked"},[n("span",{staticClass:"ivu-tag-text",class:{"ivu-select-multiple-tag-hidden":t.disabled}},[e._v(e._s(t.tag!==void 0?t.tag:t.label))]),e._v(" "),t.disabled?e._e():n("Icon",{attrs:{type:"ios-close"},nativeOn:{click:function(u){return u.stopPropagation(),e.removeTag(t)}}})],1):e._e()}),e.maxTagCount!==void 0&&e.selectedMultiple.length>e.maxTagCount?n("div",{staticClass:"ivu-tag ivu-tag-checked"},[n("span",{staticClass:"ivu-tag-text ivu-select-max-tag"},[e.maxTagPlaceholder?[e._v(e._s(e.maxTagPlaceholder(e.selectedMultiple.length-e.maxTagCount)))]:[e._v("+ "+e._s(e.selectedMultiple.length-e.maxTagCount)+"...")]],2)]):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.singleDisplayValue,expression:"singleDisplayValue"}],class:e.singleDisplayClasses},[e._v(e._s(e.singleDisplayValue))]),e._v(" "),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",class:[e.prefixCls+"-input"],style:e.inputStyle,attrs:{id:e.inputElementId,type:"text",disabled:e.disabled,placeholder:e.showPlaceholder?e.localePlaceholder:"",autocomplete:"off",spellcheck:"false"},domProps:{value:e.query},on:{keydown:[e.resetInputState,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleInputDelete(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}],focus:e.onInputFocus,blur:e.onInputBlur,input:function(o){o.target.composing||(e.query=o.target.value)}}}):e._e(),e._v(" "),e.resetSelect?n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:"ios-close-circle"},nativeOn:{click:function(o){return o.stopPropagation(),e.onClear(o)}}}):e._e(),e._v(" "),!e.resetSelect&&!e.remote?n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e()],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(122),i=r.n(s);for(var f in s)f!=="default"&&function(g){r.d(h,g,function(){return s[g]})}(f);var e=r(0),l,n,t=!1,o=null,d=null,u=null,c=Object(e.a)(i.a,l,n,t,o,d,u);h.default=c.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside:[capture]",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture},{name:"click-outside",rawName:"v-click-outside:[capture].mousedown",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture,modifiers:{mousedown:!0}},{name:"click-outside",rawName:"v-click-outside:[capture].touchstart",value:e.onClickOutside,expression:"onClickOutside",arg:e.capture,modifiers:{touchstart:!0}}],class:e.classes},[n("div",{ref:"reference",class:e.selectionCls,attrs:{tabindex:e.selectTabindex},on:{blur:e.toggleHeaderFocus,focus:e.toggleHeaderFocus,click:e.toggleMenu,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleKeydown(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeydown(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.handleKeydown(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.handleKeydown(t))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handleKeydown(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleKeydown(t)}],mouseenter:function(o){e.hasMouseHoverHead=!0},mouseleave:function(o){e.hasMouseHoverHead=!1}}},[e._t("input",[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.publicValue}}),e._v(" "),n("select-head",{attrs:{filterable:e.filterable,multiple:e.multiple,values:e.values,clearable:e.canBeCleared,prefix:e.prefix,disabled:e.itemDisabled,remote:e.remote,"input-element-id":e.elementId,"initial-label":e.initialLabel,placeholder:e.placeholder,"query-prop":e.query,"max-tag-count":e.maxTagCount,"max-tag-placeholder":e.maxTagPlaceholder,"allow-create":e.allowCreate,"show-create-item":e.showCreateItem},on:{"on-query-change":e.onQueryChange,"on-input-focus":function(o){e.isFocused=!0},"on-input-blur":function(o){e.isFocused=!1},"on-clear":e.clearSingleSelect,"on-enter":e.handleCreateItem}},[e._t("prefix",null,{slot:"prefix"})],2)])],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.dropVisible,expression:"dropVisible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"dropdown",class:e.dropdownCls,attrs:{placement:e.placement,"data-transfer":e.transfer,transfer:e.transfer,eventsEnabled:e.eventsEnabled}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showNotFoundLabel&&!e.allowCreate,expression:"showNotFoundLabel && !allowCreate"}],class:[e.prefixCls+"-not-found"]},[n("li",[e._v(e._s(e.localeNotFoundText))])]),e._v(" "),!e.remote||e.remote&&!e.loading?n("functional-options",{class:e.prefixCls+"-dropdown-list",attrs:{options:e.selectOptions,"slot-update-hook":e.updateSlotOptions,"slot-options":e.slotOptions}},[e.showCreateItem?n("li",{class:e.prefixCls+"-item",on:{click:e.handleCreateItem}},[e._v(` + `+e._s(e.query)+` + `),n("Icon",{class:e.prefixCls+"-item-enter",attrs:{type:"md-return-left"}})],1):e._e()]):n("ul",{class:e.prefixCls+"-dropdown-list"},[e.showCreateItem?n("li",{class:e.prefixCls+"-item",on:{click:e.handleCreateItem}},[e._v(` + `+e._s(e.query)+` + `),n("Icon",{class:e.prefixCls+"-item-enter",attrs:{type:"md-return-left"}})],1):e._e()]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],class:[e.prefixCls+"-loading"]},[e._v(e._s(e.localeLoadingText))])],1)],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes,on:{click:function(o){return o.stopPropagation(),e.select(o)},mousedown:function(o){o.preventDefault()}}},[e._t("default",[e._v(e._s(e.showLabel))])],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){_.exports={default:r(330),__esModule:!0}},function(_,h,r){r(331),_.exports=r(5).Number.isNaN},function(_,h,r){var s=r(7);s(s.S,"Number",{isNaN:function(f){return f!=f}})},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(333),i=t(s),f=r(336),e=t(f),l=r(1),n=t(l);h.default=p;function t(v){return v&&v.__esModule?v:{default:v}}var o=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important +`,d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],u={},c=void 0;function g(v){var y=this,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=v.getAttribute("id")||v.getAttribute("data-reactid")||v.getAttribute("name");if(b&&u[A])return u[A];var x=window.getComputedStyle(v),E=x.getPropertyValue("box-sizing")||x.getPropertyValue("-moz-box-sizing")||x.getPropertyValue("-webkit-box-sizing"),S=parseFloat(x.getPropertyValue("padding-bottom"))+parseFloat(x.getPropertyValue("padding-top")),C=parseFloat(x.getPropertyValue("border-bottom-width"))+parseFloat(x.getPropertyValue("border-top-width")),T=d.map(function(M){return(0,n.default)(this,y),String(M)+":"+String(x.getPropertyValue(M))}.bind(this)).join(";"),k={sizingStyle:T,paddingSize:S,borderSize:C,boxSizing:E};return b&&A&&(u[A]=k),k}function p(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;c||(c=document.createElement("textarea"),document.body.appendChild(c)),v.getAttribute("wrap")?c.setAttribute("wrap",v.getAttribute("wrap")):c.removeAttribute("wrap");var x=g(v,A),E=x.paddingSize,S=x.borderSize,C=x.boxSizing,T=x.sizingStyle;c.setAttribute("style",String(T)+";"+o),c.value=v.value||v.placeholder||"";var k=e.default,M=i.default,P=c.scrollHeight,N=void 0;if(C==="border-box"?P=P+S:C==="content-box"&&(P=P-E),y!==null||b!==null){c.value=" ";var F=c.scrollHeight-E;y!==null&&(k=F*y,C==="border-box"&&(k=k+E+S),P=Math.max(k,P)),b!==null&&(M=F*b,C==="border-box"&&(M=M+E+S),N=P>M?"":"hidden",P=Math.min(M,P))}return b||(N="hidden"),{height:String(P)+"px",minHeight:String(k)+"px",maxHeight:String(M)+"px",overflowY:N}}},function(_,h,r){_.exports={default:r(334),__esModule:!0}},function(_,h,r){r(335),_.exports=9007199254740991},function(_,h,r){var s=r(7);s(s.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(_,h,r){_.exports={default:r(337),__esModule:!0}},function(_,h,r){r(338),_.exports=-9007199254740991},function(_,h,r){var s=r(7);s(s.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e.type!=="textarea"?[e.prepend?n("div",{directives:[{name:"show",rawName:"v-show",value:e.slotReady,expression:"slotReady"}],class:[e.prefixCls+"-group-prepend"]},[e._t("prepend")],2):e._e(),e._v(" "),e.clearable&&e.currentValue&&!e.itemDisabled?n("i",{staticClass:"ivu-icon",class:["ivu-icon-ios-close-circle",e.prefixCls+"-icon",e.prefixCls+"-icon-clear",e.prefixCls+"-icon-normal"],style:e.clearableStyles,on:{click:e.handleClear}}):e.icon?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.icon,e.prefixCls+"-icon",e.prefixCls+"-icon-normal"],on:{click:e.handleIconClick}}):e.search&&e.enterButton===!1?n("i",{staticClass:"ivu-icon ivu-icon-ios-search",class:[e.prefixCls+"-icon",e.prefixCls+"-icon-normal",e.prefixCls+"-search-icon"],on:{click:e.handleSearch}}):e.showSuffix?n("span",{staticClass:"ivu-input-suffix"},[e._t("suffix",[e.suffix?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.suffix]}):e._e()])],2):e.showWordLimit?n("span",{staticClass:"ivu-input-word-count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e.password?n("span",{staticClass:"ivu-input-suffix",on:{click:e.handleToggleShowPassword}},[e.showPassword?n("i",{staticClass:"ivu-icon ivu-icon-ios-eye-outline"}):n("i",{staticClass:"ivu-icon ivu-icon-ios-eye-off-outline"})]):e._e(),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.icon?e._e():n("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop",class:[e.prefixCls+"-icon",e.prefixCls+"-icon-validate"]})]),e._v(" "),n("input",{ref:"input",class:e.inputClasses,attrs:{id:e.elementId,autocomplete:e.autocomplete,spellcheck:e.spellcheck,type:e.currentType,placeholder:e.placeholder,disabled:e.itemDisabled,maxlength:e.maxlength,readonly:e.readonly,name:e.name,number:e.number,autofocus:e.autofocus},domProps:{value:e.currentValue},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)},e.handleKeyup],keypress:e.handleKeypress,keydown:e.handleKeydown,focus:e.handleFocus,blur:e.handleBlur,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:e.handleInput,change:e.handleChange}}),e._v(" "),e.append?n("div",{directives:[{name:"show",rawName:"v-show",value:e.slotReady,expression:"slotReady"}],class:[e.prefixCls+"-group-append"]},[e._t("append")],2):e.search&&e.enterButton?n("div",{class:[e.prefixCls+"-group-append",e.prefixCls+"-search"],on:{click:e.handleSearch}},[e.enterButton===!0?n("i",{staticClass:"ivu-icon ivu-icon-ios-search"}):[e._v(e._s(e.enterButton))]],2):e.showPrefix?n("span",{staticClass:"ivu-input-prefix"},[e._t("prefix",[e.prefix?n("i",{staticClass:"ivu-icon",class:["ivu-icon-"+e.prefix]}):e._e()])],2):e._e()]:[n("textarea",{ref:"textarea",class:e.textareaClasses,style:e.textareaStyles,attrs:{id:e.elementId,wrap:e.wrap,autocomplete:e.autocomplete,spellcheck:e.spellcheck,placeholder:e.placeholder,disabled:e.itemDisabled,rows:e.rows,maxlength:e.maxlength,readonly:e.readonly,name:e.name,autofocus:e.autofocus},domProps:{value:e.currentValue},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)},e.handleKeyup],keypress:e.handleKeypress,keydown:e.handleKeydown,focus:e.handleFocus,blur:e.handleBlur,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:e.handleInput}}),e._v(" "),e.showWordLimit?n("span",{staticClass:"ivu-input-word-count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()]],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("i-select",{ref:"select",staticClass:"ivu-auto-complete",attrs:{label:e.label,disabled:e.itemDisabled,clearable:e.clearable,placeholder:e.placeholder,size:e.size,placement:e.placement,value:e.currentValue,"transfer-class-name":e.transferClassName,filterable:"",remote:"","auto-complete":"","remote-method":e.remoteMethod,transfer:e.transfer,capture:e.capture,eventsEnabled:e.eventsEnabled},on:{"on-select":e.handleSelect,"on-clickoutside":e.handleClickOutside}},[e._t("input",[n("i-input",{ref:"input",attrs:{slot:"input","element-id":e.elementId,name:e.name,placeholder:e.placeholder,disabled:e.itemDisabled,size:e.size,icon:e.inputIcon},on:{"on-click":e.handleClear,"on-focus":e.handleFocus,"on-blur":e.handleBlur},slot:"input",model:{value:e.currentValue,callback:function(o){e.currentValue=o},expression:"currentValue"}})]),e._v(" "),e._t("default",e._l(e.filteredData,function(t){return n("i-option",{key:t,attrs:{value:t}},[e._v(e._s(t))])}))],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(125),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.classes,style:e.styles},[e.src?n("img",{attrs:{src:e.src},on:{error:e.handleError}}):e.icon||e.customIcon?n("Icon",{attrs:{type:e.icon,custom:e.customIcon}}):n("span",{ref:"children",class:[e.prefixCls+"-string"],style:e.childrenStyle},[e._t("default")],2)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(344),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(127),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(345);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.styles,on:{click:e.back}},[e._t("default",[n("div",{class:e.innerClasses},[n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-up"})])])],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(347),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(128),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(348);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.dot?n("span",{ref:"badge",class:e.classes},[e._t("default"),e._v(" "),n("sup",{directives:[{name:"show",rawName:"v-show",value:e.badge,expression:"badge"}],class:e.dotClasses,style:e.styles})],2):e.status||e.color?n("span",{ref:"badge",staticClass:"ivu-badge-status",class:e.classes},[n("span",{class:e.statusClasses,style:e.statusStyles}),e._v(" "),n("span",{staticClass:"ivu-badge-status-text"},[e._t("text",[e._v(e._s(e.text))])],2)]):n("span",{ref:"badge",class:e.classes},[e._t("default"),e._v(" "),e.$slots.count?n("sup",{class:e.customCountClasses,style:e.styles},[e._t("count")],2):e.hasCount?n("sup",{directives:[{name:"show",rawName:"v-show",value:e.badge,expression:"badge"}],class:e.countClasses,style:e.styles},[e._t("text",[e._v(e._s(e.finalCount))])],2):e._e()],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(350),i=l(s),f=r(352),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Item=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(129),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(351);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(130),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(353);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.to?n("a",{class:e.linkClasses,attrs:{href:e.linkUrl,target:e.target},on:{click:[function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.handleCheckClick(t,!1)},function(t){return t.ctrlKey?e.handleCheckClick(t,!0):null},function(t){return t.metaKey?e.handleCheckClick(t,!0):null}]}},[e._t("default")],2):n("span",{class:e.linkClasses},[e._t("default")],2),e._v(" "),e.showSeparator?n("span",{class:e.separatorClasses},[e._t("separator")],2):n("span",{class:e.separatorClasses,domProps:{innerHTML:e._s(e.separator)}})])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(28),i=l(s),f=r(356),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Group=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tagName,e._b({tag:"component",class:e.classes,attrs:{disabled:e.itemDisabled},on:{click:e.handleClickLink}},"component",e.tagProps,!1),[e.loading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e._e(),e._v(" "),(e.icon||e.customIcon)&&!e.loading?n("Icon",{attrs:{type:e.icon,custom:e.customIcon}}):e._e(),e._v(" "),e.showSlot?n("span",{ref:"slot"},[e._t("default")],2):e._e()],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(132),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(357);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(359),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(133),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(360);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n(e.tagName,e._b({tag:"component",class:e.classes,on:{click:e.handleClickLink}},"component",e.tagProps,!1),[e.showHead?n("div",{class:e.headClasses},[e._t("title",[e.title?n("p",[e.icon?n("Icon",{attrs:{type:e.icon}}):e._e(),e._v(" "),n("span",[e._v(e._s(e.title))])],1):e._e()])],2):e._e(),e._v(" "),e.showExtra?n("div",{class:e.extraClasses},[e._t("extra")],2):e._e(),e._v(" "),n("div",{class:e.bodyClasses,style:e.bodyStyles},[e._t("default")],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(362),i=l(s),f=r(364),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Item=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(134),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(363);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("button",{staticClass:"left",class:e.arrowClasses,attrs:{type:"button"},on:{click:function(o){return e.arrowEvent(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),n("div",{class:[e.prefixCls+"-list"]},[n("div",{ref:"originTrack",class:[e.prefixCls+"-track",e.showCopyTrack?"":"higher"],style:e.trackStyles,on:{click:function(o){return e.handleClick("currentIndex")}}},[e._t("default")],2),e._v(" "),e.loop?n("div",{ref:"copyTrack",class:[e.prefixCls+"-track",e.showCopyTrack?"higher":""],style:e.copyTrackStyles,on:{click:function(o){return e.handleClick("copyTrackIndex")}}}):e._e()]),e._v(" "),n("button",{staticClass:"right",class:e.arrowClasses,attrs:{type:"button"},on:{click:function(o){return e.arrowEvent(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),n("ul",{class:e.dotsClasses},[e._l(e.slides.length,function(t){return[n("li",{class:[t-1===e.currentIndex?e.prefixCls+"-active":""],on:{click:function(d){return e.dotsEvent("click",t-1)},mouseover:function(d){return e.dotsEvent("hover",t-1)}}},[n("button",{class:[e.radiusDot?"radius":""],attrs:{type:"button"}})])]})],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(135),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(365);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls,style:e.styles},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(367),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(136),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(372);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(137),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(371);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(138),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(370);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes},[e._v(` + `+e._s(e.data.label)+` + `),e.showArrow?n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e(),e._v(" "),e.showLoading?n("i",{staticClass:"ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-cascader-menu-item-loading"}):e._e()],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.data&&e.data.length?n("ul",{class:[e.prefixCls+"-menu"]},e._l(e.data,function(t){return n("Casitem",{key:e.getKey(),attrs:{"prefix-cls":e.prefixCls,data:t,"tmp-item":e.tmpItem},nativeOn:{click:function(d){return d.stopPropagation(),e.handleClickItem(t)},mouseenter:function(d){return d.stopPropagation(),e.handleHoverItem(t)}}})}),1):e._e(),e.sublist&&e.sublist.length?n("Caspanel",{attrs:{"prefix-cls":e.prefixCls,data:e.sublist,disabled:e.disabled,trigger:e.trigger,"change-on-select":e.changeOnSelect}}):e._e()],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}],class:e.classes},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"],on:{click:e.toggleOpen}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),e._t("default",[n("i-input",{ref:"input",attrs:{"element-id":e.elementId,readonly:!e.filterable,disabled:e.itemDisabled,value:e.displayInputRender,size:e.size,placeholder:e.inputPlaceholder},on:{"on-change":e.handleInput}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query==="",expression:"filterable && query === ''"}],class:[e.prefixCls+"-label"],on:{click:e.handleFocus}},[e._v(e._s(e.displayRender))]),e._v(" "),n("Icon",{directives:[{name:"show",rawName:"v-show",value:e.showCloseIcon,expression:"showCloseIcon"}],class:[e.prefixCls+"-arrow"],attrs:{type:"ios-close-circle"},nativeOn:{click:function(o){return o.stopPropagation(),e.clearSelect(o)}}}),e._v(" "),n("Icon",{class:[e.prefixCls+"-arrow"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})])],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,attrs:{eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer}},[n("div",[n("Caspanel",{directives:[{name:"show",rawName:"v-show",value:!e.filterable||e.filterable&&e.query==="",expression:"!filterable || (filterable && query === '')"}],ref:"caspanel",attrs:{"prefix-cls":e.prefixCls,data:e.data,disabled:e.itemDisabled,"change-on-select":e.changeOnSelect,trigger:e.trigger}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query!==""&&e.querySelections.length,expression:"filterable && query !== '' && querySelections.length"}],class:[e.prefixCls+"-dropdown"]},[n("ul",{class:[e.selectPrefixCls+"-dropdown-list"]},e._l(e.querySelections,function(t,o){var d;return n("li",{class:[e.selectPrefixCls+"-item",(d={},d[e.selectPrefixCls+"-item-disabled"]=t.disabled,d)],domProps:{innerHTML:e._s(t.display)},on:{click:function(c){return e.handleSelectItem(o)}}})}),0)]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.filterable&&e.query!==""&&!e.querySelections.length||!e.data.length,expression:"(filterable && query !== '' && !querySelections.length) || !data.length"}],class:[e.prefixCls+"-not-found-tip"]},[n("li",[e._v(e._s(e.localeNotFoundText))])])],1)])],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(374),i=l(s),f=r(378),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Group=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(139),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(377);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(140),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(376);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-cell-item"},[n("div",{staticClass:"ivu-cell-icon"},[e._t("icon")],2),e._v(" "),n("div",{staticClass:"ivu-cell-main"},[n("div",{staticClass:"ivu-cell-title"},[e._t("default",[e._v(e._s(e.title))])],2),e._v(" "),n("div",{staticClass:"ivu-cell-label"},[e._t("label",[e._v(e._s(e.label))])],2)]),e._v(" "),n("div",{staticClass:"ivu-cell-footer"},[n("span",{staticClass:"ivu-cell-extra"},[e._t("extra",[e._v(e._s(e.extra))])],2)])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.to?n("a",{staticClass:"ivu-cell-link",attrs:{href:e.linkUrl,target:e.target},on:{click:[function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.handleClickItem(t,!1)},function(t){return t.ctrlKey?e.handleClickItem(t,!0):null},function(t){return t.metaKey?e.handleClickItem(t,!0):null}]}},[n("CellItem",{attrs:{title:e.title,label:e.label,extra:e.extra}},[e._t("icon",null,{slot:"icon"}),e._v(" "),e._t("default",null,{slot:"default"}),e._v(" "),e._t("extra",null,{slot:"extra"}),e._v(" "),e._t("label",null,{slot:"label"})],2)],1):n("div",{staticClass:"ivu-cell-link",on:{click:e.handleClickItem}},[n("CellItem",{attrs:{title:e.title,label:e.label,extra:e.extra}},[e._t("icon",null,{slot:"icon"}),e._v(" "),e._t("default",null,{slot:"default"}),e._v(" "),e._t("extra",null,{slot:"extra"}),e._v(" "),e._t("label",null,{slot:"label"})],2)],1),e._v(" "),e.to?n("div",{staticClass:"ivu-cell-arrow"},[e._t("arrow",[n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})])],2):e._e()])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(141),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(379);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-cell-group"},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(49),i=l(s),f=r(143),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Group=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{class:e.wrapClasses},[n("span",{class:e.checkboxClasses},[n("span",{class:e.innerClasses}),e._v(" "),e.group?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],class:e.inputClasses,attrs:{type:"checkbox",disabled:e.itemDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var o=e.model,d=t.target,u=!!d.checked;if(Array.isArray(o)){var c=e.label,g=e._i(o,c);d.checked?g<0&&(e.model=o.concat([c])):g>-1&&(e.model=o.slice(0,g).concat(o.slice(g+1)))}else e.model=u},e.change],focus:e.onFocus,blur:e.onBlur}}):n("input",{class:e.inputClasses,attrs:{type:"checkbox",disabled:e.itemDisabled,name:e.name},domProps:{checked:e.currentValue},on:{change:e.change,focus:e.onFocus,blur:e.onBlur}})]),e._v(" "),e._t("default",[e.showSlot?n("span",[e._v(e._s(e.label))]):e._e()])],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(384),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(145),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(386);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default=function(){for(var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:32,i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",f=i.length,e="",l=0;l<s;l++)e+=i.charAt(Math.floor(Math.random()*f));return e}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses,style:e.circleSize},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[e.showDefs?n("defs",[n("linearGradient",{attrs:{id:e.id,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[n("stop",{attrs:{offset:"0%","stop-color":e.strokeColor[0]}}),e._v(" "),n("stop",{attrs:{offset:"100%","stop-color":e.strokeColor[1]}})],1)],1):e._e(),e._v(" "),n("path",{style:e.trailStyle,attrs:{d:e.pathString,stroke:e.trailColor,"stroke-width":e.trailWidth,"fill-opacity":0,"stroke-linecap":e.strokeLinecap}}),e._v(" "),n("path",{style:e.pathStyle,attrs:{d:e.pathString,"stroke-linecap":e.strokeLinecap,stroke:e.strokeValue,"stroke-width":e.computedStrokeWidth,"fill-opacity":"0"}})]),e._v(" "),n("div",{class:e.innerClasses},[e._t("default")],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(388),i=l(s),f=r(390),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Panel=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(146),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(389);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(147),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(391);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.itemClasses},[n("div",{class:e.headerClasses,on:{click:e.toggle}},[e.hideArrow?e._e():n("Icon",{attrs:{type:"ios-arrow-forward"}}),e._v(" "),e._t("default")],2),e._v(" "),e.mounted?n("collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],class:e.contentClasses},[n("div",{class:e.boxClasses},[e._t("content")],2)])]):e._e()],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(393),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(148),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(402);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(150),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(395);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"reference",attrs:{tabindex:"0"},on:{click:e.handleClick,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleEscape(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&t.button!==0?null:e.handleArrow(t,"x",e.left)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&t.button!==2?null:e.handleArrow(t,"x",e.right)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.handleArrow(t,"y",e.up)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.handleArrow(t,"y",e.down)}],blur:e.blurColor,focus:e.focusColor}},[e._l(e.list,function(t,o){return[n("div",{key:t+":"+o,class:[e.prefixCls+"-picker-colors-wrapper"]},[n("div",{attrs:{"data-color-id":o}},[n("div",{class:[e.prefixCls+"-picker-colors-wrapper-color"],style:{background:t}}),e._v(" "),n("div",{ref:"color-circle-"+o,refInFor:!0,class:[e.prefixCls+"-picker-colors-wrapper-circle",e.hideClass]})])]),e._v(" "),e.lineBreak(e.list,o)?n("br"):e._e()]})],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(152),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(397);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-saturation-wrapper"],attrs:{tabindex:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleEscape(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&t.button!==0?null:e.handleLeft(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&t.button!==2?null:e.handleRight(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.handleUp(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.handleDown(t)}],click:function(o){return e.$el.focus()}}},[n("div",{ref:"container",class:[e.prefixCls+"-saturation"],style:e.bgColorStyle,on:{mousedown:e.handleMouseDown}},[n("div",{class:[e.prefixCls+"-saturation--white"]}),e._v(" "),n("div",{class:[e.prefixCls+"-saturation--black"]}),e._v(" "),n("div",{class:[e.prefixCls+"-saturation-pointer"],style:e.pointerStyle},[n("div",{class:[e.prefixCls+"-saturation-circle"]})])])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(153),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(399);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-hue"],attrs:{tabindex:"0"},on:{click:function(o){return e.$el.focus()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleEscape(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&t.button!==0?null:e.handleLeft(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&t.button!==2?null:e.handleRight(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.handleUp(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.handleDown(t)}]}},[n("div",{ref:"container",class:[e.prefixCls+"-hue-container"],on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{class:[e.prefixCls+"-hue-pointer"],style:{top:0,left:e.percent+"%"}},[n("div",{class:[e.prefixCls+"-hue-picker"]})])])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(154),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(401);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-alpha"],attrs:{tabindex:"0"},on:{click:function(o){return e.$el.focus()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.handleEscape(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&t.button!==0?null:e.handleLeft(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&t.button!==2?null:e.handleRight(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.handleUp(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.handleDown(t)}]}},[n("div",{class:[e.prefixCls+"-alpha-checkboard-wrap"]},[n("div",{class:[e.prefixCls+"-alpha-checkerboard"]})]),e._v(" "),n("div",{class:[e.prefixCls+"-alpha-gradient"],style:e.gradientStyle}),e._v(" "),n("div",{ref:"container",class:[e.prefixCls+"-alpha-container"],on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{class:[e.prefixCls+"-alpha-pointer"],style:{top:0,left:e.value.a*100+"%"}},[n("div",{class:[e.prefixCls+"-alpha-picker"]})])])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside:[capture]",value:e.handleClose,expression:"handleClose",arg:e.capture}],class:e.classes},[n("div",{ref:"reference",class:e.wrapClasses,on:{click:e.toggleVisible}},[n("input",{attrs:{name:e.name,type:"hidden"},domProps:{value:e.currentValue}}),e._v(" "),n("Icon",{class:e.arrowClasses,attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}),e._v(" "),n("div",{ref:"input",class:e.inputClasses,attrs:{tabindex:e.itemDisabled?void 0:0},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onTab(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.onEscape(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.onArrow(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.onArrow(t)}]}},[n("div",{class:[e.prefixCls+"-color"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.value===""&&!e.visible,expression:"value === '' && !visible"}],class:[e.prefixCls+"-color-empty"]},[n("i",{class:[e.iconPrefixCls,e.iconPrefixCls+"-ios-close"]})]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.value||e.visible,expression:"value || visible"}],style:e.displayedColorStyle})])])],1),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"},{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"drop",class:e.dropClasses,attrs:{placement:e.placement,"data-transfer":e.transfer,transfer:e.transfer,eventsEnabled:e.eventsEnabled}},[n("transition",{attrs:{name:"fade"}},[e.visible?n("div",{class:[e.prefixCls+"-picker"]},[n("div",{class:[e.prefixCls+"-picker-wrapper"]},[n("div",{class:[e.prefixCls+"-picker-panel"]},[n("Saturation",{ref:"saturation",attrs:{focused:e.visible},on:{change:e.childChange},nativeOn:{keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"tab",9,o.key,"Tab")?null:e.handleFirstTab(o)}},model:{value:e.saturationColors,callback:function(o){e.saturationColors=o},expression:"saturationColors"}})],1),e._v(" "),e.hue?n("div",{class:[e.prefixCls+"-picker-hue-slider"]},[n("Hue",{on:{change:e.childChange},model:{value:e.saturationColors,callback:function(o){e.saturationColors=o},expression:"saturationColors"}})],1):e._e(),e._v(" "),e.alpha?n("div",{class:[e.prefixCls+"-picker-alpha-slider"]},[n("Alpha",{on:{change:e.childChange},model:{value:e.saturationColors,callback:function(o){e.saturationColors=o},expression:"saturationColors"}})],1):e._e(),e._v(" "),e.colors.length?n("recommend-colors",{class:[e.prefixCls+"-picker-colors"],attrs:{list:e.colors},on:{"picker-color":e.handleSelectColor}}):e._e(),e._v(" "),!e.colors.length&&e.recommend?n("recommend-colors",{class:[e.prefixCls+"-picker-colors"],attrs:{list:e.recommendedColor},on:{"picker-color":e.handleSelectColor}}):e._e()],1),e._v(" "),n("div",{class:[e.prefixCls+"-confirm"]},[n("span",{class:e.confirmColorClasses},[e.editable?[n("i-input",{ref:"editColorInput",attrs:{value:e.formatColor,size:"small"},on:{"on-enter":e.handleEditColor,"on-blur":e.handleEditColor}})]:[e._v(e._s(e.formatColor))]],2),e._v(" "),n("i-button",{ref:"clear",attrs:{tabindex:0,size:"small"},on:{keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleClear(o)}},nativeOn:{click:function(o){return e.handleClear(o)},keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"esc",27,o.key,["Esc","Escape"])?null:e.closer(o)}}},[e._v(e._s(e.t("i.datepicker.clear")))]),e._v(" "),n("i-button",{ref:"ok",attrs:{tabindex:0,size:"small",type:"primary"},on:{keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleSuccess(o)}},nativeOn:{click:function(o){return e.handleSuccess(o)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.handleLastTab(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.closer(t)}]}},[e._v(e._s(e.t("i.datepicker.ok")))])],1)]):e._e()])],1)],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(155),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(406),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(157),i=o(s),f=r(409),e=o(f),l=r(422),n=o(l),t=r(3);function o(d){return d&&d.__esModule?d:{default:d}}h.default={name:"CalendarPicker",mixins:[i.default],props:{type:{validator:function(u){return(0,t.oneOf)(u,["year","month","date","daterange","datetime","datetimerange"])},default:"date"}},components:{DatePickerPanel:e.default,RangeDatePickerPanel:n.default},computed:{panel:function(){var u=this.type==="daterange"||this.type==="datetimerange";return u?"RangeDatePickerPanel":"DatePickerPanel"},ownPickerProps:function(){return this.options}}}},function(_,h,r){var s;(function(i){var f={},e=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,l=/\d\d?/,n=/\d{3}/,t=/\d{4}/,o=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,d=function(){};function u(E,S){for(var C=[],T=0,k=E.length;T<k;T++)C.push(E[T].substr(0,S));return C}function c(E){return function(S,C,T){var k=T[E].indexOf(C.charAt(0).toUpperCase()+C.substr(1).toLowerCase());~k&&(S.month=k)}}function g(E,S){for(E=String(E),S=S||2;E.length<S;)E="0"+E;return E}var p=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"],y=u(v,3),b=u(p,3);f.i18n={dayNamesShort:b,dayNames:p,monthNamesShort:y,monthNames:v,amPm:["am","pm"],DoFn:function(S){return S+["th","st","nd","rd"][S%10>3?0:(S-S%10!==10)*S%10]}};var A={D:function(S){return S.getDay()},DD:function(S){return g(S.getDay())},Do:function(S,C){return C.DoFn(S.getDate())},d:function(S){return S.getDate()},dd:function(S){return g(S.getDate())},ddd:function(S,C){return C.dayNamesShort[S.getDay()]},dddd:function(S,C){return C.dayNames[S.getDay()]},M:function(S){return S.getMonth()+1},MM:function(S){return g(S.getMonth()+1)},MMM:function(S,C){return C.monthNamesShort[S.getMonth()]},MMMM:function(S,C){return C.monthNames[S.getMonth()]},yy:function(S){return String(S.getFullYear()).substr(2)},yyyy:function(S){return S.getFullYear()},h:function(S){return S.getHours()%12||12},hh:function(S){return g(S.getHours()%12||12)},H:function(S){return S.getHours()},HH:function(S){return g(S.getHours())},m:function(S){return S.getMinutes()},mm:function(S){return g(S.getMinutes())},s:function(S){return S.getSeconds()},ss:function(S){return g(S.getSeconds())},S:function(S){return Math.round(S.getMilliseconds()/100)},SS:function(S){return g(Math.round(S.getMilliseconds()/10),2)},SSS:function(S){return g(S.getMilliseconds(),3)},a:function(S,C){return S.getHours()<12?C.amPm[0]:C.amPm[1]},A:function(S,C){return S.getHours()<12?C.amPm[0].toUpperCase():C.amPm[1].toUpperCase()},ZZ:function(S){var C=S.getTimezoneOffset();return(C>0?"-":"+")+g(Math.floor(Math.abs(C)/60)*100+Math.abs(C)%60,4)}},x={d:[l,function(E,S){E.day=S}],M:[l,function(E,S){E.month=S-1}],yy:[l,function(E,S){var C=new Date,T=+(""+C.getFullYear()).substr(0,2);E.year=""+(S>68?T-1:T)+S}],h:[l,function(E,S){E.hour=S}],m:[l,function(E,S){E.minute=S}],s:[l,function(E,S){E.second=S}],yyyy:[t,function(E,S){E.year=S}],S:[/\d/,function(E,S){E.millisecond=S*100}],SS:[/\d{2}/,function(E,S){E.millisecond=S*10}],SSS:[n,function(E,S){E.millisecond=S}],D:[l,d],ddd:[o,d],MMM:[o,c("monthNamesShort")],MMMM:[o,c("monthNames")],a:[o,function(E,S,C){var T=S.toLowerCase();T===C.amPm[0]?E.isPm=!1:T===C.amPm[1]&&(E.isPm=!0)}],ZZ:[/[\+\-]\d\d:?\d\d/,function(E,S){var C=(S+"").match(/([\+\-]|\d\d)/gi),T;C&&(T=+(C[1]*60)+parseInt(C[2],10),E.timezoneOffset=C[0]==="+"?T:-T)}]};x.DD=x.DD,x.dddd=x.ddd,x.Do=x.dd=x.d,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,f.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},f.format=function(E,S,C){var T=C||f.i18n;if(typeof E=="number"&&(E=new Date(E)),Object.prototype.toString.call(E)!=="[object Date]"||isNaN(E.getTime()))throw new Error("Invalid Date in fecha.format");return S=f.masks[S]||S||f.masks.default,S.replace(e,function(k){return k in A?A[k](E,T):k.slice(1,k.length-1)})},f.parse=function(E,S,C){var T=C||f.i18n;if(typeof S!="string")throw new Error("Invalid format in fecha.parse");if(S=f.masks[S]||S,E.length>1e3)return!1;var k=!0,M={};if(S.replace(e,function(F){if(x[F]){var q=x[F],z=E.search(q[0]);~z?E.replace(q[0],function(O){return q[1](M,O,T),E=E.substr(z+O.length),O}):k=!1}return x[F]?"":F.slice(1,F.length-1)}),!k)return!1;var P=new Date;M.isPm===!0&&M.hour!=null&&+M.hour!=12?M.hour=+M.hour+12:M.isPm===!1&&+M.hour==12&&(M.hour=0);var N;return M.timezoneOffset!=null?(M.minute=+(M.minute||0)-+M.timezoneOffset,N=new Date(Date.UTC(M.year||P.getFullYear(),M.month||0,M.day||1,M.hour||0,M.minute||0,M.second||0,M.millisecond||0))):N=new Date(M.year||P.getFullYear(),M.month||0,M.day||1,M.hour||0,M.minute||0,M.second||0,M.millisecond||0),N},typeof _<"u"&&_.exports?_.exports=f:(s=function(){return f}.call(h,r,h,_),s!==void 0&&(_.exports=s))})()},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside:[capture].mousedown",value:e.handleClose,expression:"handleClose",arg:e.capture,modifiers:{mousedown:!0}},{name:"click-outside",rawName:"v-click-outside:[capture].touchstart",value:e.handleClose,expression:"handleClose",arg:e.capture,modifiers:{touchstart:!0}},{name:"click-outside",rawName:"v-click-outside:[capture]",value:e.handleClose,expression:"handleClose",arg:e.capture}],class:e.wrapperClasses},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"]},[e._t("default",[n("i-input",{key:e.forceInputRerender,ref:"input",class:[e.prefixCls+"-editor"],attrs:{"element-id":e.elementId,readonly:!e.editable||e.readonly,disabled:e.itemDisabled,size:e.size,placeholder:e.placeholder,value:e.visualValue,name:e.name},on:{"on-input-change":e.handleInputChange,"on-focus":e.handleFocus,"on-blur":e.handleBlur},nativeOn:{click:function(o){return e.handleFocus(o)},keydown:function(o){return e.handleKeydown(o)},mouseenter:function(o){return e.handleInputMouseenter(o)},mouseleave:function(o){return e.handleInputMouseleave(o)}}},[n("Icon",{attrs:{slot:"suffix",type:e.arrowType,custom:e.customArrowType,size:e.arrowSize},on:{click:e.handleIconClick},slot:"suffix"})],1)])],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,attrs:{placement:e.placement,eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer},nativeOn:{click:function(o){return e.handleTransferClick(o)}}},[n("div",[n(e.panel,e._b({ref:"pickerPanel",tag:"component",attrs:{visible:e.visible,showTime:e.type==="datetime"||e.type==="datetimerange",confirm:e.isConfirm,selectionMode:e.selectionMode,steps:e.steps,format:e.format,value:e.internalValue,"start-date":e.startDate,"split-panels":e.splitPanels,"show-week-numbers":e.showWeekNumbers,"picker-type":e.type,multiple:e.multiple,"focused-date":e.focusedDate,"time-picker-options":e.timePickerOptions},on:{"on-pick":e.onPick,"on-pick-clear":e.handleClear,"on-pick-success":e.onPickSuccess,"on-pick-click":function(o){e.disableClickOutSide=!0},"on-selection-mode-change":e.onSelectionModeChange}},"component",e.ownPickerProps,!1))],1)])],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(159),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(421);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){_.exports={Generator:r(411),addLabels:r(412)}},function(_,h){var r=864e5;function s(l,n){return new Date(l,n+1,0).getDate()}function i(l,n,t){return n===0&&t>50?l-1:n===11&&t<10?l+1:l}function f(l,n,t,o){n>11&&(n=0,l++);var d=new Date(l,n,t);o&&d.setDate(d.getDate()+4-(d.getDay()||7));var u=o?d.getFullYear():l,c=new Date(u,0,1),g=1+Math.round((d-c)/r);o||(g+=c.getDay());var p=Math.ceil(g/7);if(!o){var v=new Date(l,n,t),y=new Date(l+1,0,1),b=y.getDay();v.getTime()>=y.getTime()-r*b&&(p=1)}return p}function e(l,n,t){for(var o=this.lang||"en",d=this.onlyDays,u=typeof this.weekStart>"u"?1:this.weekStart,c=u===1,g=[],p=new Date(l,n,1),v=p.getDay()||(c?7:0),y=u-v,b=f(l,n,1,c),A=s(l,n),x=s(l,n-1),E,S,C,T=i(l,n,b),k={month:n,year:l,daysInMonth:A},M=0;M<7;M++){C=y;for(var P=0;P<8;P++){M>0&&P>0&&y++,y>A||y<1?(S=y>A?y-A:x+y,E=y>A?n+1:n-1):(S=y,E=n);var N=function(){return P===0?"weekLabel":M===0?"dayLabel":y<1?"prevMonth":y>A?"nextMonth":"monthDay"}(),F=C!==y&&M>0,q={desc:F?S:b,week:b,type:N,format:c?"ISO 8601":"US",date:F?new Date(Date.UTC(l,E,S)):!1,year:T,index:g.length};t&&(typeof t=="function"?q=t.call(k,q,o):t.forEach(function(z){q=z.call(k,q,o)})),d&&F?g.push(q):d||g.push(q)}M>0&&(b=f(l,E,S+1,c)),T=i(l,n,b)}return k.cells=g,k}_.exports=function(l){return e.bind(l)}},function(_,h,r){var s=r(413);function i(l){return l==null?!1:l.constructor===Array||l.constructor===Object}function f(l,n){for(var t in l)n[t]?i(l[t])&&f(l[t],n[t]):n[t]=l[t]}function e(l,n){var t=[s.classes[l.type]];return l.class?l.class=(typeof l.class=="string"?[l.class]:l.class).concat(t):l.class=t,l.type.indexOf("Label")>0&&(l.index==0&&s.weekPlaceholder?l.desc=s.weekPlaceholder:l.index<8?l.desc=s.columnNames[n][l.index]:l.index%8==0&&(l.desc=l.week)),l.date&&(l.monthName=s.monthNames[n][l.date.getMonth()]),this.monthName||(this.monthName=s.monthNames[n][this.month]),this.labels||(this.labels={monthNames:s.monthNames[n],columnNames:s.columnNames[n],classes:s.classes}),l}e.setLabels=function(l){f(l,s)},_.exports=e},function(_,h){_.exports={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"måndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"lördag",7:"söndag"},pt:{0:"s",1:"segunda",2:"terça",3:"quarta",4:"quinta",5:"sexta",6:"sábado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{class:[e.prefixCls+"-header"]},e._l(e.headerDays,function(t){return n("span",{key:t},[e._v(` + `+e._s(t)+` + `)])}),0),e._v(" "),e._l(e.cells,function(t,o){return n("span",{key:String(t.date)+o,class:e.getCellCls(t),on:{click:function(u){return e.handleClick(t,u)},mouseenter:function(u){return e.handleMouseMove(t)}}},[n("em",[e._v(e._s(t.desc))])])})],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},e._l(e.cells,function(t){return n("span",{class:e.getCellCls(t),on:{click:function(d){return e.handleClick(t,d)},mouseenter:function(d){return e.handleMouseMove(t)}}},[n("em",[e._v(e._s(t.date.getFullYear()))])])}),0)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},e._l(e.cells,function(t){return n("span",{class:e.getCellCls(t),on:{click:function(d){return e.handleClick(t,d)},mouseenter:function(d){return e.handleMouseMove(t)}}},[n("em",[e._v(e._s(t.text))])])}),0)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{ref:"hours",class:[e.prefixCls+"-list"]},[n("ul",{class:[e.prefixCls+"-ul"]},e._l(e.hoursList,function(t){return n("li",{directives:[{name:"show",rawName:"v-show",value:!t.hide,expression:"!item.hide"}],class:e.getCellCls(t),on:{click:function(d){return e.handleClick("hours",t)}}},[e._v(e._s(e.formatTime(t.text)))])}),0)]),e._v(" "),n("div",{ref:"minutes",class:[e.prefixCls+"-list"]},[n("ul",{class:[e.prefixCls+"-ul"]},e._l(e.minutesList,function(t){return n("li",{directives:[{name:"show",rawName:"v-show",value:!t.hide,expression:"!item.hide"}],class:e.getCellCls(t),on:{click:function(d){return e.handleClick("minutes",t)}}},[e._v(e._s(e.formatTime(t.text)))])}),0)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",class:[e.prefixCls+"-list"]},[n("ul",{class:[e.prefixCls+"-ul"]},e._l(e.secondsList,function(t){return n("li",{directives:[{name:"show",rawName:"v-show",value:!t.hide,expression:"!item.hide"}],class:e.getCellCls(t),on:{click:function(d){return e.handleClick("seconds",t)}}},[e._v(e._s(e.formatTime(t.text)))])}),0)])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-confirm"],on:{"!keydown":function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"tab",9,o.key,"Tab")?null:e.handleTab(o)}}},[e.showTime?n("i-button",{class:e.timeClasses,attrs:{size:"small",type:"text",disabled:e.timeDisabled},on:{click:e.handleToggleTime}},[e._v(` + `+e._s(e.labels.time)+` + `)]):e._e(),e._v(" "),n("i-button",{attrs:{size:"small"},nativeOn:{click:function(o){return e.handleClear(o)},keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleClear(o)}}},[e._v(` + `+e._s(e.labels.clear)+` + `)]),e._v(" "),n("i-button",{attrs:{size:"small",type:"primary"},nativeOn:{click:function(o){return e.handleSuccess(o)},keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleSuccess(o)}}},[e._v(` + `+e._s(e.labels.ok)+` + `)])],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls+"-body-wrapper"],on:{mousedown:function(o){o.preventDefault()}}},[n("div",{class:[e.prefixCls+"-body"]},[e.showDate?n("div",{class:[e.timePrefixCls+"-header"]},[e._v(e._s(e.visibleDate))]):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-content"]},[n("time-spinner",{ref:"timeSpinner",attrs:{"show-seconds":e.showSeconds,steps:e.steps,hours:e.timeSlots[0],minutes:e.timeSlots[1],seconds:e.timeSlots[2],"disabled-hours":e.disabledHMS.disabledHours,"disabled-minutes":e.disabledHMS.disabledMinutes,"disabled-seconds":e.disabledHMS.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),e.confirm?n("Confirm",{on:{"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",[e.datePanelLabel?n("span",{directives:[{name:"show",rawName:"v-show",value:e.datePanelLabel.labels[0].type==="year"||e.currentView==="date",expression:"datePanelLabel.labels[0].type === 'year' || currentView === 'date'"}],class:[e.datePrefixCls+"-header-label"],on:{click:e.datePanelLabel.labels[0].handler}},[e._v(e._s(e.datePanelLabel.labels[0].label))]):e._e(),e._v(" "),e.datePanelLabel&&e.currentView==="date"?[e._v(e._s(e.datePanelLabel.separator))]:e._e(),e._v(" "),e.datePanelLabel?n("span",{directives:[{name:"show",rawName:"v-show",value:e.datePanelLabel.labels[1].type==="year"||e.currentView==="date",expression:"datePanelLabel.labels[1].type === 'year' || currentView === 'date'"}],class:[e.datePrefixCls+"-header-label"],on:{click:e.datePanelLabel.labels[1].handler}},[e._v(e._s(e.datePanelLabel.labels[1].label))]):e._e()],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[e.shortcuts.length?n("div",{class:[e.prefixCls+"-sidebar"]},e._l(e.shortcuts,function(t){return n("div",{class:[e.prefixCls+"-shortcut"],on:{click:function(d){return e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])}),0):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.changeYear(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),e.pickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.changeMonth(-1)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.datePanelLabel,"current-view":e.pickerTable.split("-").shift(),"date-prefix-cls":e.datePrefixCls}}),e._v(" "),n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.changeYear(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),e.pickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.changeMonth(1)}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),n("div",{class:[e.prefixCls+"-content"]},[e.currentView!=="time"?n(e.pickerTable,{ref:"pickerTable",tag:"component",attrs:{"table-date":e.panelDate,"show-week-numbers":e.showWeekNumbers,value:e.dates,"selection-mode":e.selectionMode,"disabled-date":e.disabledDate,"focused-date":e.focusedDate},on:{"on-pick":e.panelPickerHandlers,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isTime,expression:"isTime"}],class:[e.prefixCls+"-content"]},[e.currentView==="time"?n("time-picker",e._b({ref:"timePicker",attrs:{value:e.dates,format:e.format,"time-disabled":e.timeDisabled,"disabled-date":e.disabledDate,"focused-date":e.focusedDate},on:{"on-pick":e.handlePick,"on-pick-click":e.handlePickClick,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess,"on-pick-toggle-time":e.handleToggleTime}},"time-picker",e.timePickerOptions,!1)):e._e()],1),e._v(" "),e.confirm?n("Confirm",{attrs:{"show-time":e.showTime,"is-time":e.isTime},on:{"on-pick-toggle-time":e.handleToggleTime,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(174),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(424);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[n("div",{class:[e.prefixCls+"-body"]},[n("div",{class:[e.prefixCls+"-content",e.prefixCls+"-content-left"]},[n("div",{class:[e.timePrefixCls+"-header"]},[e.showDate?[e._v(e._s(e.leftDatePanelLabel))]:[e._v(e._s(e.t("i.datepicker.startTime")))]],2),e._v(" "),n("time-spinner",{ref:"timeSpinner",attrs:{steps:e.steps,"show-seconds":e.showSeconds,hours:e.value[0]&&e.dateStart.getHours(),minutes:e.value[0]&&e.dateStart.getMinutes(),seconds:e.value[0]&&e.dateStart.getSeconds(),"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleStartChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),n("div",{class:[e.prefixCls+"-content",e.prefixCls+"-content-right"]},[n("div",{class:[e.timePrefixCls+"-header"]},[e.showDate?[e._v(e._s(e.rightDatePanelLabel))]:[e._v(e._s(e.t("i.datepicker.endTime")))]],2),e._v(" "),n("time-spinner",{ref:"timeSpinnerEnd",attrs:{steps:e.steps,"show-seconds":e.showSeconds,hours:e.value[1]&&e.dateEnd.getHours(),minutes:e.value[1]&&e.dateEnd.getMinutes(),seconds:e.value[1]&&e.dateEnd.getSeconds(),"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions},on:{"on-change":e.handleEndChange,"on-pick-click":e.handlePickClick}})],1),e._v(" "),e.confirm?n("Confirm",{on:{"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mousedown:function(o){o.preventDefault()}}},[e.shortcuts.length?n("div",{class:[e.prefixCls+"-sidebar"]},e._l(e.shortcuts,function(t){return n("div",{class:[e.prefixCls+"-shortcut"],on:{click:function(d){return e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])}),0):e._e(),e._v(" "),n("div",{class:e.panelBodyClasses},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isTime,expression:"!isTime"}],class:[e.prefixCls+"-content",e.prefixCls+"-content-left"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.prevYear("left")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),e.leftPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.prevMonth("left")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.leftDatePanelLabel,"current-view":e.leftDatePanelView,"date-prefix-cls":e.datePrefixCls}}),e._v(" "),e.splitPanels||e.leftPickerTable!=="date-table"?n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.nextYear("left")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e(),e._v(" "),e.splitPanels&&e.leftPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.nextMonth("left")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),e.currentView!=="time"?n(e.leftPickerTable,{ref:"leftYearTable",tag:"component",attrs:{"table-date":e.leftPanelDate,"selection-mode":"range","disabled-date":e.disabledDate,"range-state":e.rangeState,"show-week-numbers":e.showWeekNumbers,value:e.preSelecting.left?[e.dates[0]]:e.dates,"focused-date":e.focusedDate},on:{"on-change-range":e.handleChangeRange,"on-pick":e.panelPickerHandlers.left,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isTime,expression:"!isTime"}],class:[e.prefixCls+"-content",e.prefixCls+"-content-right"]},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentView!=="time",expression:"currentView !== 'time'"}],class:[e.datePrefixCls+"-header"]},[e.splitPanels||e.rightPickerTable!=="date-table"?n("span",{class:e.iconBtnCls("prev","-double"),on:{click:function(o){return e.prevYear("right")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),e.splitPanels&&e.rightPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("prev"),on:{click:function(o){return e.prevMonth("right")}}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1):e._e(),e._v(" "),n("date-panel-label",{attrs:{"date-panel-label":e.rightDatePanelLabel,"current-view":e.rightDatePanelView,"date-prefix-cls":e.datePrefixCls}}),e._v(" "),n("span",{class:e.iconBtnCls("next","-double"),on:{click:function(o){return e.nextYear("right")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),e.rightPickerTable==="date-table"?n("span",{directives:[{name:"show",rawName:"v-show",value:e.currentView==="date",expression:"currentView === 'date'"}],class:e.iconBtnCls("next"),on:{click:function(o){return e.nextMonth("right")}}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1):e._e()],1),e._v(" "),e.currentView!=="time"?n(e.rightPickerTable,{ref:"rightYearTable",tag:"component",attrs:{"table-date":e.rightPanelDate,"selection-mode":"range","range-state":e.rangeState,"disabled-date":e.disabledDate,"show-week-numbers":e.showWeekNumbers,value:e.preSelecting.right?[e.dates[e.dates.length-1]]:e.dates,"focused-date":e.focusedDate},on:{"on-change-range":e.handleChangeRange,"on-pick":e.panelPickerHandlers.right,"on-pick-click":e.handlePickClick}}):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isTime,expression:"isTime"}],class:[e.prefixCls+"-content"]},[e.currentView==="time"?n("time-picker",e._b({ref:"timePicker",attrs:{value:e.dates,format:e.format,"time-disabled":e.timeDisabled},on:{"on-pick":e.handleRangePick,"on-pick-click":e.handlePickClick,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess,"on-pick-toggle-time":e.handleToggleTime}},"time-picker",e.timePickerOptions,!1)):e._e()],1),e._v(" "),e.confirm?n("Confirm",{attrs:{"show-time":e.showTime,"is-time":e.isTime,"time-disabled":e.timeDisabled},on:{"on-pick-toggle-time":e.handleToggleTime,"on-pick-clear":e.handlePickClear,"on-pick-success":e.handlePickSuccess}}):e._e()],1)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(426),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(177),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(427);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.hasSlot?n("span",{class:e.slotClasses},[e._t("default")],2):e._e()])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(429),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(178),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(430);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":e.transfer}},[n("transition",{attrs:{name:"fade"}},[e.mask?n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.maskClasses,style:e.maskStyle,on:{click:e.handleMask}}):e._e()]),e._v(" "),n("div",{class:e.wrapClasses,on:{click:e.handleWrapClick}},[n("transition",{attrs:{name:e.transitionName}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.mainStyles},[n("div",{ref:"content",class:e.contentClasses},[e.closable?n("a",{staticClass:"ivu-drawer-close",on:{click:e.close}},[e._t("close",[n("Icon",{attrs:{type:"ios-close"}})])],2):e._e(),e._v(" "),e.showHead?n("div",{class:[e.prefixCls+"-header"]},[e._t("header",[n("div",{class:[e.prefixCls+"-header-inner"]},[e._v(e._s(e.title))])])],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"],style:e.styles},[e._t("default")],2)]),e._v(" "),e.draggable&&(e.placement==="left"||e.placement==="right")?n("div",{staticClass:"ivu-drawer-drag",class:"ivu-drawer-drag-"+e.placement,on:{mousedown:e.handleTriggerMousedown}},[e._t("trigger",[n("div",{staticClass:"ivu-drawer-drag-move-trigger"},[n("div",{staticClass:"ivu-drawer-drag-move-trigger-point"},[n("i"),n("i"),n("i"),n("i"),n("i")])])])],2):e._e()])])],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(61),i=t(s),f=r(62),e=t(f),l=r(434),n=t(l);function t(o){return o&&o.__esModule?o:{default:o}}i.default.Menu=e.default,i.default.Item=n.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickoutside,expression:"onClickoutside"}],class:[e.prefixCls],on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:e.relClasses,on:{click:e.handleClick,contextmenu:function(o){return o.preventDefault(),e.handleRightClick(o)}}},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"transition-drop"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.currentVisible,expression:"currentVisible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"drop",class:e.dropdownCls,attrs:{placement:e.placement,eventsEnabled:e.eventsEnabled,"data-transfer":e.transfer,transfer:e.transfer},nativeOn:{mouseenter:function(o){return e.handleMouseenter(o)},mouseleave:function(o){return e.handleMouseleave(o)}}},[e._t("list")],2)],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{staticClass:"ivu-dropdown-menu"},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(181),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(435);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes,on:{click:e.handleClick}},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(182),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(439),i=l(s),f=r(448),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Item=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(184),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(447);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){r(80),r(35),r(46),r(441),r(445),r(446),_.exports=r(5).Promise},function(_,h,r){var s=r(42),i=r(9),f=r(24),e=r(56),l=r(7),n=r(18),t=r(43),o=r(88),d=r(51),u=r(186),c=r(187).set,g=r(443)(),p=r(89),v=r(188),y=r(444),b=r(189),A="Promise",x=i.TypeError,E=i.process,S=E&&E.versions,C=S&&S.v8||"",T=i[A],k=e(E)=="process",M=function(){},P,N,F,q,z=N=p.f,O=!!function(){try{var Z=T.resolve(1),L=(Z.constructor={})[r(10)("species")]=function(W){W(M,M)};return(k||typeof PromiseRejectionEvent=="function")&&Z.then(M)instanceof L&&C.indexOf("6.6")!==0&&y.indexOf("Chrome/66")===-1}catch{}}(),R=function(Z){var L;return n(Z)&&typeof(L=Z.then)=="function"?L:!1},I=function(Z,L){if(!Z._n){Z._n=!0;var W=Z._c;g(function(){for(var G=Z._v,J=Z._s==1,H=0,U=function(K){var te=J?K.ok:K.fail,ee=K.resolve,ie=K.reject,se=K.domain,ne,re,Y;try{te?(J||(Z._h==2&&j(Z),Z._h=1),te===!0?ne=G:(se&&se.enter(),ne=te(G),se&&(se.exit(),Y=!0)),ne===K.promise?ie(x("Promise-chain cycle")):(re=R(ne))?re.call(ne,ee,ie):ee(ne)):ie(G)}catch(V){se&&!Y&&se.exit(),ie(V)}};W.length>H;)U(W[H++]);Z._c=[],Z._n=!1,L&&!Z._h&&D(Z)})}},D=function(Z){c.call(i,function(){var L=Z._v,W=B(Z),G,J,H;if(W&&(G=v(function(){k?E.emit("unhandledRejection",L,Z):(J=i.onunhandledrejection)?J({promise:Z,reason:L}):(H=i.console)&&H.error&&H.error("Unhandled promise rejection",L)}),Z._h=k||B(Z)?2:1),Z._a=void 0,W&&G.e)throw G.v})},B=function(Z){return Z._h!==1&&(Z._a||Z._c).length===0},j=function(Z){c.call(i,function(){var L;k?E.emit("rejectionHandled",Z):(L=i.onrejectionhandled)&&L({promise:Z,reason:Z._v})})},Q=function(Z){var L=this;L._d||(L._d=!0,L=L._w||L,L._v=Z,L._s=2,L._a||(L._a=L._c.slice()),I(L,!0))},X=function(Z){var L=this,W;if(!L._d){L._d=!0,L=L._w||L;try{if(L===Z)throw x("Promise can't be resolved itself");(W=R(Z))?g(function(){var G={_w:L,_d:!1};try{W.call(Z,f(X,G,1),f(Q,G,1))}catch(J){Q.call(G,J)}}):(L._v=Z,L._s=1,I(L,!1))}catch(G){Q.call({_w:L,_d:!1},G)}}};O||(T=function(L){o(this,T,A,"_h"),t(L),P.call(this);try{L(f(X,this,1),f(Q,this,1))}catch(W){Q.call(this,W)}},P=function(L){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},P.prototype=r(90)(T.prototype,{then:function(L,W){var G=z(u(this,T));return G.ok=typeof L=="function"?L:!0,G.fail=typeof W=="function"&&W,G.domain=k?E.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&I(this,!1),G.promise},catch:function(Z){return this.then(void 0,Z)}}),F=function(){var Z=new P;this.promise=Z,this.resolve=f(X,Z,1),this.reject=f(Q,Z,1)},p.f=z=function(Z){return Z===T||Z===q?new F(Z):N(Z)}),l(l.G+l.W+l.F*!O,{Promise:T}),r(47)(T,A),r(190)(A),q=r(5)[A],l(l.S+l.F*!O,A,{reject:function(L){var W=z(this),G=W.reject;return G(L),W.promise}}),l(l.S+l.F*(s||!O),A,{resolve:function(L){return b(s&&this===q?T:this,L)}}),l(l.S+l.F*!(O&&r(114)(function(Z){T.all(Z).catch(M)})),A,{all:function(L){var W=this,G=z(W),J=G.resolve,H=G.reject,U=v(function(){var K=[],te=0,ee=1;d(L,!1,function(ie){var se=te++,ne=!1;K.push(void 0),ee++,W.resolve(ie).then(function(re){ne||(ne=!0,K[se]=re,--ee||J(K))},H)}),--ee||J(K)});return U.e&&H(U.v),G.promise},race:function(L){var W=this,G=z(W),J=G.reject,H=v(function(){d(L,!1,function(U){W.resolve(U).then(G.resolve,J)})});return H.e&&J(H.v),G.promise}})},function(_,h){_.exports=function(r,s,i){var f=i===void 0;switch(s.length){case 0:return f?r():r.call(i);case 1:return f?r(s[0]):r.call(i,s[0]);case 2:return f?r(s[0],s[1]):r.call(i,s[0],s[1]);case 3:return f?r(s[0],s[1],s[2]):r.call(i,s[0],s[1],s[2]);case 4:return f?r(s[0],s[1],s[2],s[3]):r.call(i,s[0],s[1],s[2],s[3])}return r.apply(i,s)}},function(_,h,r){var s=r(9),i=r(187).set,f=s.MutationObserver||s.WebKitMutationObserver,e=s.process,l=s.Promise,n=r(41)(e)=="process";_.exports=function(){var t,o,d,u=function(){var v,y;for(n&&(v=e.domain)&&v.exit();t;){y=t.fn,t=t.next;try{y()}catch(b){throw t?d():o=void 0,b}}o=void 0,v&&v.enter()};if(n)d=function(){e.nextTick(u)};else if(f&&!(s.navigator&&s.navigator.standalone)){var c=!0,g=document.createTextNode("");new f(u).observe(g,{characterData:!0}),d=function(){g.data=c=!c}}else if(l&&l.resolve){var p=l.resolve(void 0);d=function(){p.then(u)}}else d=function(){i.call(s,u)};return function(v){var y={fn:v,next:void 0};o&&(o.next=y),t||(t=y,d()),o=y}}},function(_,h,r){var s=r(9),i=s.navigator;_.exports=i&&i.userAgent||""},function(_,h,r){var s=r(7),i=r(5),f=r(9),e=r(186),l=r(189);s(s.P+s.R,"Promise",{finally:function(n){var t=e(this,i.Promise||f.Promise),o=typeof n=="function";return this.then(o?function(d){return l(t,n()).then(function(){return d})}:n,o?function(d){return l(t,n()).then(function(){throw d})}:n)}})},function(_,h,r){var s=r(7),i=r(89),f=r(188);s(s.S,"Promise",{try:function(e){var l=i.f(this),n=f(e);return(n.e?l.reject:l.resolve)(n.v),l.promise}})},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("form",{class:e.classes,attrs:{autocomplete:e.autocomplete}},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(191),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(451);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),function(s){function i(){return i=Object.assign||function(V){for(var oe=1;oe<arguments.length;oe++){var fe=arguments[oe];for(var ce in fe)Object.prototype.hasOwnProperty.call(fe,ce)&&(V[ce]=fe[ce])}return V},i.apply(this,arguments)}function f(V,oe){V.prototype=Object.create(oe.prototype),V.prototype.constructor=V,V.__proto__=oe}function e(V){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(fe){return fe.__proto__||Object.getPrototypeOf(fe)},e(V)}function l(V,oe){return l=Object.setPrototypeOf||function(ce,he){return ce.__proto__=he,ce},l(V,oe)}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function t(V,oe,fe){return n()?t=Reflect.construct:t=function(he,le,ae){var ue=[null];ue.push.apply(ue,le);var de=Function.bind.apply(he,ue),ve=new de;return ae&&l(ve,ae.prototype),ve},t.apply(null,arguments)}function o(V){return Function.toString.call(V).indexOf("[native code]")!==-1}function d(V){var oe=typeof Map=="function"?new Map:void 0;return d=function(ce){if(ce===null||!o(ce))return ce;if(typeof ce!="function")throw new TypeError("Super expression must either be null or a function");if(typeof oe<"u"){if(oe.has(ce))return oe.get(ce);oe.set(ce,he)}function he(){return t(ce,arguments,e(this).constructor)}return he.prototype=Object.create(ce.prototype,{constructor:{value:he,enumerable:!1,writable:!0,configurable:!0}}),l(he,ce)},d(V)}var u=/%[sdj%]/g,c=function(){};typeof s<"u"&&Object({NODE_ENV:"production"});function g(V){if(!V||!V.length)return null;var oe={};return V.forEach(function(fe){var ce=fe.field;oe[ce]=oe[ce]||[],oe[ce].push(fe)}),oe}function p(){for(var V=arguments.length,oe=new Array(V),fe=0;fe<V;fe++)oe[fe]=arguments[fe];var ce=1,he=oe[0],le=oe.length;if(typeof he=="function")return he.apply(null,oe.slice(1));if(typeof he=="string"){for(var ae=String(he).replace(u,function(de){if(de==="%%")return"%";if(ce>=le)return de;switch(de){case"%s":return String(oe[ce++]);case"%d":return Number(oe[ce++]);case"%j":try{return JSON.stringify(oe[ce++])}catch{return"[Circular]"}break;default:return de}}),ue=oe[ce];ce<le;ue=oe[++ce])ae+=" "+ue;return ae}return he}function v(V){return V==="string"||V==="url"||V==="hex"||V==="email"||V==="pattern"}function y(V,oe){return!!(V==null||oe==="array"&&Array.isArray(V)&&!V.length||v(oe)&&typeof V=="string"&&!V)}function b(V,oe,fe){var ce=[],he=0,le=V.length;function ae(ue){ce.push.apply(ce,ue),he++,he===le&&fe(ce)}V.forEach(function(ue){oe(ue,ae)})}function A(V,oe,fe){var ce=0,he=V.length;function le(ae){if(ae&&ae.length){fe(ae);return}var ue=ce;ce=ce+1,ue<he?oe(V[ue],le):fe([])}le([])}function x(V){var oe=[];return Object.keys(V).forEach(function(fe){oe.push.apply(oe,V[fe])}),oe}var E=function(V){f(oe,V);function oe(fe,ce){var he;return he=V.call(this,"Async Validation Error")||this,he.errors=fe,he.fields=ce,he}return oe}(d(Error));function S(V,oe,fe,ce){if(oe.first){var he=new Promise(function(ge,xe){var Ae=function(Pe){return ce(Pe),Pe.length?xe(new E(Pe,g(Pe))):ge()},Te=x(V);A(Te,fe,Ae)});return he.catch(function(ge){return ge}),he}var le=oe.firstFields||[];le===!0&&(le=Object.keys(V));var ae=Object.keys(V),ue=ae.length,de=0,ve=[],me=new Promise(function(ge,xe){var Ae=function(ke){if(ve.push.apply(ve,ke),de++,de===ue)return ce(ve),ve.length?xe(new E(ve,g(ve))):ge()};ae.length||(ce(ve),ge()),ae.forEach(function(Te){var ke=V[Te];le.indexOf(Te)!==-1?A(ke,fe,Ae):b(ke,fe,Ae)})});return me.catch(function(ge){return ge}),me}function C(V){return function(oe){return oe&&oe.message?(oe.field=oe.field||V.fullField,oe):{message:typeof oe=="function"?oe():oe,field:oe.field||V.fullField}}}function T(V,oe){if(oe){for(var fe in oe)if(oe.hasOwnProperty(fe)){var ce=oe[fe];typeof ce=="object"&&typeof V[fe]=="object"?V[fe]=i(i({},V[fe]),ce):V[fe]=ce}}return V}function k(V,oe,fe,ce,he,le){V.required&&(!fe.hasOwnProperty(V.field)||y(oe,le||V.type))&&ce.push(p(he.messages.required,V.fullField))}function M(V,oe,fe,ce,he){(/^\s+$/.test(oe)||oe==="")&&ce.push(p(he.messages.whitespace,V.fullField))}var P={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},N={integer:function(oe){return N.number(oe)&&parseInt(oe,10)===oe},float:function(oe){return N.number(oe)&&!N.integer(oe)},array:function(oe){return Array.isArray(oe)},regexp:function(oe){if(oe instanceof RegExp)return!0;try{return!!new RegExp(oe)}catch{return!1}},date:function(oe){return typeof oe.getTime=="function"&&typeof oe.getMonth=="function"&&typeof oe.getYear=="function"},number:function(oe){return isNaN(oe)?!1:typeof oe=="number"},object:function(oe){return typeof oe=="object"&&!N.array(oe)},method:function(oe){return typeof oe=="function"},email:function(oe){return typeof oe=="string"&&!!oe.match(P.email)&&oe.length<255},url:function(oe){return typeof oe=="string"&&!!oe.match(P.url)},hex:function(oe){return typeof oe=="string"&&!!oe.match(P.hex)}};function F(V,oe,fe,ce,he){if(V.required&&oe===void 0){k(V,oe,fe,ce,he);return}var le=["integer","float","array","regexp","object","method","email","number","date","url","hex"],ae=V.type;le.indexOf(ae)>-1?N[ae](oe)||ce.push(p(he.messages.types[ae],V.fullField,V.type)):ae&&typeof oe!==V.type&&ce.push(p(he.messages.types[ae],V.fullField,V.type))}function q(V,oe,fe,ce,he){var le=typeof V.len=="number",ae=typeof V.min=="number",ue=typeof V.max=="number",de=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ve=oe,me=null,ge=typeof oe=="number",xe=typeof oe=="string",Ae=Array.isArray(oe);if(ge?me="number":xe?me="string":Ae&&(me="array"),!me)return!1;Ae&&(ve=oe.length),xe&&(ve=oe.replace(de,"_").length),le?ve!==V.len&&ce.push(p(he.messages[me].len,V.fullField,V.len)):ae&&!ue&&ve<V.min?ce.push(p(he.messages[me].min,V.fullField,V.min)):ue&&!ae&&ve>V.max?ce.push(p(he.messages[me].max,V.fullField,V.max)):ae&&ue&&(ve<V.min||ve>V.max)&&ce.push(p(he.messages[me].range,V.fullField,V.min,V.max))}var z="enum";function O(V,oe,fe,ce,he){V[z]=Array.isArray(V[z])?V[z]:[],V[z].indexOf(oe)===-1&&ce.push(p(he.messages[z],V.fullField,V[z].join(", ")))}function R(V,oe,fe,ce,he){if(V.pattern){if(V.pattern instanceof RegExp)V.pattern.lastIndex=0,V.pattern.test(oe)||ce.push(p(he.messages.pattern.mismatch,V.fullField,oe,V.pattern));else if(typeof V.pattern=="string"){var le=new RegExp(V.pattern);le.test(oe)||ce.push(p(he.messages.pattern.mismatch,V.fullField,oe,V.pattern))}}}var I={required:k,whitespace:M,type:F,range:q,enum:O,pattern:R};function D(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe,"string")&&!V.required)return fe();I.required(V,oe,ce,le,he,"string"),y(oe,"string")||(I.type(V,oe,ce,le,he),I.range(V,oe,ce,le,he),I.pattern(V,oe,ce,le,he),V.whitespace===!0&&I.whitespace(V,oe,ce,le,he))}fe(le)}function B(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),oe!==void 0&&I.type(V,oe,ce,le,he)}fe(le)}function j(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(oe===""&&(oe=void 0),y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),oe!==void 0&&(I.type(V,oe,ce,le,he),I.range(V,oe,ce,le,he))}fe(le)}function Q(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),oe!==void 0&&I.type(V,oe,ce,le,he)}fe(le)}function X(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),y(oe)||I.type(V,oe,ce,le,he)}fe(le)}function Z(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),oe!==void 0&&(I.type(V,oe,ce,le,he),I.range(V,oe,ce,le,he))}fe(le)}function L(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),oe!==void 0&&(I.type(V,oe,ce,le,he),I.range(V,oe,ce,le,he))}fe(le)}function W(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe,"array")&&!V.required)return fe();I.required(V,oe,ce,le,he,"array"),y(oe,"array")||(I.type(V,oe,ce,le,he),I.range(V,oe,ce,le,he))}fe(le)}function G(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),oe!==void 0&&I.type(V,oe,ce,le,he)}fe(le)}var J="enum";function H(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he),oe!==void 0&&I[J](V,oe,ce,le,he)}fe(le)}function U(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe,"string")&&!V.required)return fe();I.required(V,oe,ce,le,he),y(oe,"string")||I.pattern(V,oe,ce,le,he)}fe(le)}function K(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();if(I.required(V,oe,ce,le,he),!y(oe)){var ue;typeof oe=="number"?ue=new Date(oe):ue=oe,I.type(V,ue,ce,le,he),ue&&I.range(V,ue.getTime(),ce,le,he)}}fe(le)}function te(V,oe,fe,ce,he){var le=[],ae=Array.isArray(oe)?"array":typeof oe;I.required(V,oe,ce,le,he,ae),fe(le)}function ee(V,oe,fe,ce,he){var le=V.type,ae=[],ue=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ue){if(y(oe,le)&&!V.required)return fe();I.required(V,oe,ce,ae,he,le),y(oe,le)||I.type(V,oe,ce,ae,he)}fe(ae)}function ie(V,oe,fe,ce,he){var le=[],ae=V.required||!V.required&&ce.hasOwnProperty(V.field);if(ae){if(y(oe)&&!V.required)return fe();I.required(V,oe,ce,le,he)}fe(le)}var se={string:D,method:B,number:j,boolean:Q,regexp:X,integer:Z,float:L,array:W,object:G,enum:H,pattern:U,date:K,url:ee,hex:ee,email:ee,required:te,any:ie};function ne(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var oe=JSON.parse(JSON.stringify(this));return oe.clone=this.clone,oe}}}var re=ne();function Y(V){this.rules=null,this._messages=re,this.define(V)}Y.prototype={messages:function(oe){return oe&&(this._messages=T(ne(),oe)),this._messages},define:function(oe){if(!oe)throw new Error("Cannot configure a schema with no rules");if(typeof oe!="object"||Array.isArray(oe))throw new Error("Rules must be an object");this.rules={};var fe,ce;for(fe in oe)oe.hasOwnProperty(fe)&&(ce=oe[fe],this.rules[fe]=Array.isArray(ce)?ce:[ce])},validate:function(oe,fe,ce){var he=this;fe===void 0&&(fe={}),ce===void 0&&(ce=function(){});var le=oe,ae=fe,ue=ce;if(typeof ae=="function"&&(ue=ae,ae={}),!this.rules||Object.keys(this.rules).length===0)return ue&&ue(),Promise.resolve();function de(ke){var Pe,Ie=[],qe={};function Ve(et){if(Array.isArray(et)){var je;Ie=(je=Ie).concat.apply(je,et)}else Ie.push(et)}for(Pe=0;Pe<ke.length;Pe++)Ve(ke[Pe]);Ie.length?qe=g(Ie):(Ie=null,qe=null),ue(Ie,qe)}if(ae.messages){var ve=this.messages();ve===re&&(ve=ne()),T(ve,ae.messages),ae.messages=ve}else ae.messages=this.messages();var me,ge,xe={},Ae=ae.keys||Object.keys(this.rules);Ae.forEach(function(ke){me=he.rules[ke],ge=le[ke],me.forEach(function(Pe){var Ie=Pe;typeof Ie.transform=="function"&&(le===oe&&(le=i({},le)),ge=le[ke]=Ie.transform(ge)),typeof Ie=="function"?Ie={validator:Ie}:Ie=i({},Ie),Ie.validator=he.getValidationMethod(Ie),Ie.field=ke,Ie.fullField=Ie.fullField||ke,Ie.type=he.getType(Ie),Ie.validator&&(xe[ke]=xe[ke]||[],xe[ke].push({rule:Ie,value:ge,source:le,field:ke}))})});var Te={};return S(xe,ae,function(ke,Pe){var Ie=ke.rule,qe=(Ie.type==="object"||Ie.type==="array")&&(typeof Ie.fields=="object"||typeof Ie.defaultField=="object");qe=qe&&(Ie.required||!Ie.required&&ke.value),Ie.field=ke.field;function Ve(Ke,Ge){return i(i({},Ge),{},{fullField:Ie.fullField+"."+Ke})}function et(Ke){Ke===void 0&&(Ke=[]);var Ge=Ke;if(Array.isArray(Ge)||(Ge=[Ge]),!ae.suppressWarning&&Ge.length&&Y.warning("async-validator:",Ge),Ge.length&&Ie.message&&(Ge=[].concat(Ie.message)),Ge=Ge.map(C(Ie)),ae.first&&Ge.length)return Te[Ie.field]=1,Pe(Ge);if(!qe)Pe(Ge);else{if(Ie.required&&!ke.value)return Ie.message?Ge=[].concat(Ie.message).map(C(Ie)):ae.error&&(Ge=[ae.error(Ie,p(ae.messages.required,Ie.field))]),Pe(Ge);var We={};if(Ie.defaultField)for(var Je in ke.value)ke.value.hasOwnProperty(Je)&&(We[Je]=Ie.defaultField);We=i(i({},We),ke.rule.fields);for(var ot in We)if(We.hasOwnProperty(ot)){var Qe=Array.isArray(We[ot])?We[ot]:[We[ot]];We[ot]=Qe.map(Ve.bind(null,ot))}var Ye=new Y(We);Ye.messages(ae.messages),ke.rule.options&&(ke.rule.options.messages=ae.messages,ke.rule.options.error=ae.error),Ye.validate(ke.value,ke.rule.options||ae,function(at){var pe=[];Ge&&Ge.length&&pe.push.apply(pe,Ge),at&&at.length&&pe.push.apply(pe,at),Pe(pe.length?pe:null)})}}var je;Ie.asyncValidator?je=Ie.asyncValidator(Ie,ke.value,et,ke.source,ae):Ie.validator&&(je=Ie.validator(Ie,ke.value,et,ke.source,ae),je===!0?et():je===!1?et(Ie.message||Ie.field+" fails"):je instanceof Array?et(je):je instanceof Error&&et(je.message)),je&&je.then&&je.then(function(){return et()},function(Ke){return et(Ke)})},function(ke){de(ke)})},getType:function(oe){if(oe.type===void 0&&oe.pattern instanceof RegExp&&(oe.type="pattern"),typeof oe.validator!="function"&&oe.type&&!se.hasOwnProperty(oe.type))throw new Error(p("Unknown rule type %s",oe.type));return oe.type||"string"},getValidationMethod:function(oe){if(typeof oe.validator=="function")return oe.validator;var fe=Object.keys(oe),ce=fe.indexOf("message");return ce!==-1&&fe.splice(ce,1),fe.length===1&&fe[0]==="required"?se.required:se[this.getType(oe)]||!1}},Y.register=function(oe,fe){if(typeof fe!="function")throw new Error("Cannot register a validator by type, validator is not a function");se[oe]=fe},Y.warning=c,Y.messages=re,Y.validators=se,h.default=Y}.call(h,r(450))},function(_,h){var r=_.exports={},s,i;function f(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=f}catch{s=f}try{typeof clearTimeout=="function"?i=clearTimeout:i=e}catch{i=e}})();function l(y){if(s===setTimeout)return setTimeout(y,0);if((s===f||!s)&&setTimeout)return s=setTimeout,setTimeout(y,0);try{return s(y,0)}catch{try{return s.call(null,y,0)}catch{return s.call(this,y,0)}}}function n(y){if(i===clearTimeout)return clearTimeout(y);if((i===e||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(y);try{return i(y)}catch{try{return i.call(null,y)}catch{return i.call(this,y)}}}var t=[],o=!1,d,u=-1;function c(){!o||!d||(o=!1,d.length?t=d.concat(t):u=-1,t.length&&g())}function g(){if(!o){var y=l(c);o=!0;for(var b=t.length;b;){for(d=t,t=[];++u<b;)d&&d[u].run();u=-1,b=t.length}d=null,o=!1,n(y)}}r.nextTick=function(y){var b=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)b[A-1]=arguments[A];t.push(new p(y,b)),t.length===1&&!o&&l(g)};function p(y,b){this.fun=y,this.array=b}p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function v(){}r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(y){return[]},r.binding=function(y){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(y){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.label||e.$slots.label?n("label",{class:[e.prefixCls+"-label"],style:e.labelStyles,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label)+e._s(e.FormInstance.colon))])],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-content"],style:e.contentStyles},[e._t("default"),e._v(" "),n("transition",{attrs:{name:"fade"}},[e.validateState==="error"&&e.showMessage&&e.FormInstance.showMessage?n("div",{class:[e.prefixCls+"-error-tip"]},[e._v(e._s(e.validateMessage))]):e._e()])],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(192),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(38),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(194),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e.controlsOutside?e._e():n("div",{class:e.handlerClasses},[n("a",{class:e.upClasses,on:{click:e.up}},[n("span",{class:e.innerUpClasses,on:{click:e.preventDefault}})]),e._v(" "),n("a",{class:e.downClasses,on:{click:e.down}},[n("span",{class:e.innerDownClasses,on:{click:e.preventDefault}})])]),e._v(" "),e.controlsOutside?n("div",{staticClass:"ivu-input-number-controls-outside-btn ivu-input-number-controls-outside-down",class:{"ivu-input-number-controls-outside-btn-disabled":e.downDisabled},on:{click:e.down}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-remove"})]):e._e(),e._v(" "),e.controlsOutside?n("div",{staticClass:"ivu-input-number-controls-outside-btn ivu-input-number-controls-outside-up",class:{"ivu-input-number-controls-outside-btn-disabled":e.upDisabled},on:{click:e.up}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-add"})]):e._e(),e._v(" "),n("div",{class:e.inputWrapClasses},[n("input",{class:e.inputClasses,attrs:{id:e.elementId,disabled:e.itemDisabled,autocomplete:"off",spellcheck:"false",autofocus:e.autofocus,readonly:e.readonly||!e.editable,name:e.name,placeholder:e.placeholder},domProps:{value:e.formatterValue},on:{focus:e.focus,blur:e.blur,keydown:function(o){return o.stopPropagation(),e.keyDown(o)},input:e.change,mouseup:e.preventDefault,change:e.change}})])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(458),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(196),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(467);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){_.exports={default:r(460),__esModule:!0}},function(_,h,r){r(461),_.exports=r(5).Math.sign},function(_,h,r){var s=r(7);s(s.S,"Math",{sign:r(462)})},function(_,h){_.exports=Math.sign||function(s){return(s=+s)==0||s!=s?s:s<0?-1:1}},function(_,h,r){(function(s){var i="Expected a function",f=NaN,e="[object Symbol]",l=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,o=/^0o[0-7]+$/i,d=parseInt,u=typeof s=="object"&&s&&s.Object===Object&&s,c=typeof self=="object"&&self&&self.Object===Object&&self,g=u||c||Function("return this")(),p=Object.prototype,v=p.toString,y=Math.max,b=Math.min,A=function(){return g.Date.now()};function x(M,P,N){var F,q,z,O,R,I,D=0,B=!1,j=!1,Q=!0;if(typeof M!="function")throw new TypeError(i);P=k(P)||0,S(N)&&(B=!!N.leading,j="maxWait"in N,z=j?y(k(N.maxWait)||0,P):z,Q="trailing"in N?!!N.trailing:Q);function X(te){var ee=F,ie=q;return F=q=void 0,D=te,O=M.apply(ie,ee),O}function Z(te){return D=te,R=setTimeout(G,P),B?X(te):O}function L(te){var ee=te-I,ie=te-D,se=P-ee;return j?b(se,z-ie):se}function W(te){var ee=te-I,ie=te-D;return I===void 0||ee>=P||ee<0||j&&ie>=z}function G(){var te=A();if(W(te))return J(te);R=setTimeout(G,L(te))}function J(te){return R=void 0,Q&&F?X(te):(F=q=void 0,O)}function H(){R!==void 0&&clearTimeout(R),D=0,F=I=q=R=void 0}function U(){return R===void 0?O:J(A())}function K(){var te=A(),ee=W(te);if(F=arguments,q=this,I=te,ee){if(R===void 0)return Z(I);if(j)return R=setTimeout(G,P),X(I)}return R===void 0&&(R=setTimeout(G,P)),O}return K.cancel=H,K.flush=U,K}function E(M,P,N){var F=!0,q=!0;if(typeof M!="function")throw new TypeError(i);return S(N)&&(F="leading"in N?!!N.leading:F,q="trailing"in N?!!N.trailing:q),x(M,P,{leading:F,maxWait:P,trailing:q})}function S(M){var P=typeof M;return!!M&&(P=="object"||P=="function")}function C(M){return!!M&&typeof M=="object"}function T(M){return typeof M=="symbol"||C(M)&&v.call(M)==e}function k(M){if(typeof M=="number")return M;if(T(M))return f;if(S(M)){var P=typeof M.valueOf=="function"?M.valueOf():M;M=S(P)?P+"":P}if(typeof M!="string")return M===0?M:+M;M=M.replace(l,"");var N=t.test(M);return N||o.test(M)?d(M.slice(2),N?2:8):n.test(M)?f:+M}_.exports=E}).call(h,r(117))},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(197),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(466);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:"fade"}},[e.fullscreenVisible?n("div",{class:e.classes},[n("div",{class:e.mainClasses},[n("span",{class:e.dotClasses}),e._v(" "),n("div",{class:e.textClasses},[e._t("default")],2)])]):e._e()])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapperClasses},[n("div",{class:e.spinnerClasses},[n("Spin",{attrs:{fix:""}},[n("Icon",{class:e.iconClasses,attrs:{type:"ios-loading",size:"18"}}),e._v(" "),e.text?n("div",{class:e.textClasses},[e._v(e._s(e.text))]):e._e()],1)],1)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses,staticStyle:{"touch-action":"none"}},[n("div",{ref:"scrollContainer",class:e.scrollContainerClasses,style:{height:e.height+"px"},on:{scroll:e.handleScroll,wheel:e.onWheel,touchstart:e.onPointerDown}},[n("div",{ref:"toploader",class:e.loaderClasses,style:{paddingTop:e.wrapperPadding.paddingTop}},[n("loader",{attrs:{text:e.localeLoadingText,active:e.showTopLoader}})],1),e._v(" "),n("div",{ref:"scrollContent",class:e.slotContainerClasses},[e._t("default")],2),e._v(" "),n("div",{ref:"bottomLoader",class:e.loaderClasses,style:{paddingBottom:e.wrapperPadding.paddingBottom}},[n("loader",{attrs:{text:e.localeLoadingText,active:e.showBottomLoader}})],1)])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(469),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(199),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(472);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(200),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(471);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[n("div",{class:e.barConClasses},e._m(0),0)])},i=[function(){var f=this,e=f.$createElement,l=f._self._c||e;return f._l(8,function(n){return l("i",{key:"trigger-"+n,class:f.prefix+"-bar"})})}];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"outerWrapper",class:e.wrapperClasses},[e.isHorizontal?n("div",{class:e.prefix+"-horizontal"},[n("div",{staticClass:"left-pane",class:e.paneClasses,style:{right:e.anotherOffset+"%"}},[e._t("left")],2),e._v(" "),n("div",{class:e.prefix+"-trigger-con",style:{left:e.offset+"%"},on:{mousedown:e.handleMousedown}},[e._t("trigger",[n("trigger",{attrs:{mode:"vertical"}})])],2),e._v(" "),n("div",{staticClass:"right-pane",class:e.paneClasses,style:{left:e.offset+"%"}},[e._t("right")],2)]):n("div",{class:e.prefix+"-vertical"},[n("div",{staticClass:"top-pane",class:e.paneClasses,style:{bottom:e.anotherOffset+"%"}},[e._t("top")],2),e._v(" "),n("div",{class:e.prefix+"-trigger-con",style:{top:e.offset+"%"},on:{mousedown:e.handleMousedown}},[e._t("trigger",[n("trigger",{attrs:{mode:"horizontal"}})])],2),e._v(" "),n("div",{staticClass:"bottom-pane",class:e.paneClasses,style:{top:e.offset+"%"}},[e._t("bottom")],2)])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(474),i=c(s),f=r(192),e=c(f),l=r(202),n=c(l),t=r(155),o=c(t),d=r(182),u=c(d);function c(g){return g&&g.__esModule?g:{default:g}}i.default.Header=e.default,i.default.Sider=n.default,i.default.Content=o.default,i.default.Footer=u.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(201),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(475);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses,style:e.wrapStyles},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showZeroTrigger,expression:"showZeroTrigger"}],class:e.zeroWidthTriggerClasses,on:{click:e.toggleCollapse}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-menu"})]),e._v(" "),n("div",{class:e.childClasses},[e._t("default")],2),e._v(" "),e._t("trigger",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showBottomTrigger,expression:"showBottomTrigger"}],class:e.triggerClasses,style:{width:e.siderWidth+"px"},on:{click:e.toggleCollapse}},[n("i",{class:e.triggerIconClasses})])])],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(478),i=t(s),f=r(480),e=t(f),l=r(482),n=t(l);function t(o){return o&&o.__esModule?o:{default:o}}i.default.Item=e.default,i.default.Item.Meta=n.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(204),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(479);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e.header||e.$slots.header?n("div",{staticClass:"ivu-list-header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-container"},[n("ul",{staticClass:"ivu-list-items"},[e._t("default")],2)]),e._v(" "),e.loading?n("Spin",{attrs:{fix:"",size:"large"}},[e._t("spin")],2):e._e(),e._v(" "),e.footer||e.$slots.footer?n("div",{staticClass:"ivu-list-footer"},[e._t("footer",[e._v(e._s(e.footer))])],2):e._e()],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(205),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(481);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{staticClass:"ivu-list-item",class:e.classes},[e.itemLayout==="vertical"&&e.$slots.extra?[n("div",{staticClass:"ivu-list-item-main"},[e._t("default"),e._v(" "),e.$slots.action?n("ul",{staticClass:"ivu-list-item-action"},[e._t("action")],2):e._e()],2),e._v(" "),n("div",{staticClass:"ivu-list-item-extra"},[e._t("extra")],2)]:[e._t("default"),e._v(" "),e.$slots.action?n("ul",{staticClass:"ivu-list-item-action"},[e._t("action")],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-item-extra"},[e._t("extra")],2)]],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(206),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(483);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticClass:"ivu-list-item-meta"},[e.avatar||e.$slots.avatar?n("div",{staticClass:"ivu-list-item-meta-avatar"},[e._t("avatar",[n("Avatar",{attrs:{src:e.avatar}})])],2):e._e(),e._v(" "),n("div",{staticClass:"ivu-list-item-meta-content"},[e.title||e.$slots.title?n("div",{staticClass:"ivu-list-item-meta-title"},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e._v(" "),e.description||e.$slots.description?n("div",{staticClass:"ivu-list-item-meta-description"},[e._t("description",[e._v(e._s(e.description))])],2):e._e()])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(485),e=l(f);function l(b){return b&&b.__esModule?b:{default:b}}var n=void 0,t="primary",o=800,d="error",u=2,c=void 0;function g(){return n=n||e.default.newInstance({color:t,failedColor:d,height:u}),n}function p(b){var A=g();A.update(b)}function v(){var b=this;setTimeout(function(){(0,i.default)(this,b),p({show:!1}),setTimeout(function(){(0,i.default)(this,b),p({percent:0})}.bind(this),200)}.bind(this),o)}function y(){c&&(clearInterval(c),c=null)}h.default={start:function(){var A=this;if(!c){var x=0;p({percent:x,status:"success",show:!0}),c=setInterval(function(){(0,i.default)(this,A),x+=Math.floor(Math.random()*3+1),x>95&&y(),p({percent:x,status:"success",show:!0})}.bind(this),200)}},update:function(A){y(),p({percent:A,status:"success",show:!0})},finish:function(){y(),p({percent:100,status:"success",show:!0}),v()},error:function(){y(),p({percent:100,status:"error",show:!0}),v()},config:function(A){A.color&&(t=A.color),A.duration&&(o=A.duration),A.failedColor&&(d=A.failedColor),A.height&&(u=A.height)},destroy:function(){y();var A=g();n=null,A.destroy()}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=t(s),f=r(486),e=t(f),l=r(16),n=t(l);function t(o){return o&&o.__esModule?o:{default:o}}e.default.newInstance=function(o){(0,i.default)(void 0,void 0);var d=o||{},u=new n.default({data:d,render:function(v){return v(e.default,{props:d})}}),c=u.$mount();document.body.appendChild(c.$el);var g=u.$children[0];return{update:function(v){"percent"in v&&(g.percent=v.percent),v.status&&(g.status=v.status),"show"in v&&(g.show=v.show)},component:g,destroy:function(){document.body.removeChild(document.getElementsByClassName("ivu-loading-bar")[0])}}}.bind(void 0),h.default=e.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(207),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(487);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],class:e.classes,style:e.outerStyles},[n("div",{class:e.innerClasses,style:e.styles})])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(489),i=d(s),f=r(491),e=d(f),l=r(493),n=d(l),t=r(495),o=d(t);function d(u){return u&&u.__esModule?u:{default:u}}i.default.Group=e.default,i.default.Item=n.default,i.default.Sub=o.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(208),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(490);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:e.classes,style:e.styles},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(209),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(492);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:[e.prefixCls+"-item-group"]},[n("div",{class:[e.prefixCls+"-item-group-title"],style:e.groupStyle},[e._v(e._s(e.title))]),e._v(" "),n("ul",[e._t("default")],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(210),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(494);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.to?n("a",{class:e.classes,style:e.itemStyle,attrs:{href:e.linkUrl,target:e.target},on:{click:[function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.handleClickItem(t,!1)},function(t){return t.ctrlKey?e.handleClickItem(t,!0):null},function(t){return t.metaKey?e.handleClickItem(t,!0):null}]}},[e._t("default")],2):n("li",{class:e.classes,style:e.itemStyle,on:{click:function(o){return o.stopPropagation(),e.handleClickItem(o)}}},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(211),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(496);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.classes,on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:[e.prefixCls+"-submenu-title"],style:e.titleStyle,on:{click:function(o){return o.stopPropagation(),e.handleClick(o)}}},[e._t("title"),e._v(" "),n("Icon",{class:[e.prefixCls+"-submenu-title-icon"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}})],2),e._v(" "),e.mode==="vertical"?n("collapse-transition",[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"}],class:[e.prefixCls]},[e._t("default")],2)]):n("transition",{attrs:{name:"slide-up"}},[n("Drop",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"}],ref:"drop",style:e.dropStyle,attrs:{placement:"bottom"}},[n("ul",{class:[e.prefixCls+"-drop-list"]},[e._t("default")],2)])],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(212),i=f(s);function f(p){return p&&p.__esModule?p:{default:p}}var e="ivu-message",l="ivu-icon",n="ivu_message_key_",t={top:24,duration:1.5},o=void 0,d=1,u={info:"ios-information-circle",success:"ios-checkmark-circle",warning:"ios-alert",error:"ios-close-circle",loading:"ios-loading"};function c(){return o=o||i.default.newInstance({prefixCls:e,styles:{top:String(t.top)+"px"}}),o}function g(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.duration,y=arguments[2],b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,x=arguments.length>5&&arguments[5]!==void 0?arguments[5]:function(){},E=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,S=u[y],C=y==="loading"?" ivu-load-loop":"",T=c();return T.notice({name:""+n+d,duration:v,styles:{},transitionName:"move-up",content:` + <div class="`+e+"-custom-content "+e+"-"+String(y)+`"> + <i class="`+l+" "+l+"-"+String(S)+" "+C+`"></i> + <span>`+String(p)+`</span> + </div> + `,render:x,onClose:b,closable:A,type:"message",msgType:y,background:E}),function(){var k=d++;return function(){T.remove(""+n+k)}}()}h.default={name:"Message",info:function(v){return this.message("info",v)},success:function(v){return this.message("success",v)},warning:function(v){return this.message("warning",v)},error:function(v){return this.message("error",v)},loading:function(v){return this.message("loading",v)},message:function(v,y){return typeof y=="string"&&(y={content:y}),g(y.content,y.duration,v,y.onClose,y.closable,y.render,y.background)},config:function(v){(v.top||v.top===0)&&(t.top=v.top),(v.duration||v.duration===0)&&(t.duration=v.duration)},destroy:function(){var v=c();o=null,v.destroy("ivu-message")}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(213),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(501);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(214),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(500);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("transition",{attrs:{name:e.transitionName,appear:""},on:{enter:e.handleEnter,leave:e.handleLeave}},[n("div",{class:e.classes,style:e.styles},[e.type==="notice"?[n("div",{ref:"content",class:e.contentClasses,domProps:{innerHTML:e._s(e.content)}}),e._v(" "),n("div",{class:e.contentWithIcon},[n("render-cell",{attrs:{render:e.renderFunc}})],1),e._v(" "),e.closable?n("a",{class:[e.baseClass+"-close"],on:{click:e.close}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]):e._e()]:e._e(),e._v(" "),e.type==="message"?[n("div",{ref:"content",class:e.messageContentClasses},[n("div",{class:[e.baseClass+"-content-text"],domProps:{innerHTML:e._s(e.content)}}),e._v(" "),n("div",{class:[e.baseClass+"-content-text"]},[n("render-cell",{attrs:{render:e.renderFunc}})],1),e._v(" "),e.closable?n("a",{class:[e.baseClass+"-close"],on:{click:e.close}},[n("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]):e._e()])]:e._e()],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.wrapStyles},e._l(e.notices,function(t){return n("Notice",{key:t.name,attrs:{"prefix-cls":e.prefixCls,styles:t.styles,type:t.type,content:t.content,duration:t.duration,render:t.render,"has-title":t.hasTitle,withIcon:t.withIcon,closable:t.closable,name:t.name,"transition-name":t.transitionName,background:t.background,"msg-type":t.msgType,"on-close":t.onClose}})}),1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(503),i=f(s);function f(t){return t&&t.__esModule?t:{default:t}}var e=void 0;function l(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e=e||i.default.newInstance({closable:!1,maskClosable:!1,footerHide:!0,render:t,lockScroll:o}),e}function n(t){var o="render"in t?t.render:void 0,d="lockScroll"in t?t.lockScroll:!0,u=l(o,d);t.onRemove=function(){e=null},u.show(t)}i.default.info=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.icon="info",t.showCancel=!1,n(t)},i.default.success=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.icon="success",t.showCancel=!1,n(t)},i.default.warning=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.icon="warning",t.showCancel=!1,n(t)},i.default.error=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.icon="error",t.showCancel=!1,n(t)},i.default.confirm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.icon="confirm",t.showCancel=!0,n(t)},i.default.remove=function(){if(!e)return!1;var t=l();t.remove()},h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(15),i=p(s),f=r(1),e=p(f),l=r(16),n=p(l),t=r(504),o=p(t),d=r(28),u=p(d),c=r(6),g=p(c);function p(y){return y&&y.__esModule?y:{default:y}}var v="ivu-modal-confirm";o.default.newInstance=function(y){(0,e.default)(void 0,void 0);var b=y||{},A=new n.default({mixins:[g.default],data:(0,i.default)({},b,{visible:!1,width:416,title:"",body:"",iconType:"",iconName:"",okText:void 0,cancelText:void 0,showCancel:!1,loading:!1,buttonLoading:!1,scrollable:!1,closable:!1,closing:!1}),render:function(C){var T=this,k=[];this.showCancel&&k.push(C(u.default,{props:{type:"text"},on:{click:this.cancel}},this.localeCancelText)),k.push(C(u.default,{props:{type:"primary",loading:this.buttonLoading},on:{click:this.ok}},this.localeOkText));var M=void 0;this.render?M=C("div",{attrs:{class:v+"-body "+v+"-body-render"}},[this.render(C)]):M=C("div",{attrs:{class:v+"-body"}},[C("div",{domProps:{innerHTML:this.body}})]);var P=void 0;return this.title&&(P=C("div",{attrs:{class:v+"-head"}},[C("div",{class:this.iconTypeCls},[C("i",{class:this.iconNameCls})]),C("div",{attrs:{class:v+"-head-title"},domProps:{innerHTML:this.title}})])),C(o.default,{props:(0,i.default)({},b,{width:this.width,scrollable:this.scrollable,closable:this.closable}),domProps:{value:this.visible},on:{input:function(F){(0,e.default)(this,T),this.visible=F}.bind(this),"on-cancel":this.cancel}},[C("div",{attrs:{class:v}},[P,M,C("div",{attrs:{class:v+"-footer"}},k)])])},computed:{iconTypeCls:function(){return[v+"-head-icon",v+"-head-icon-"+String(this.iconType)]},iconNameCls:function(){return["ivu-icon","ivu-icon-"+String(this.iconName)]},localeOkText:function(){return this.okText?this.okText:this.t("i.modal.okText")},localeCancelText:function(){return this.cancelText?this.cancelText:this.t("i.modal.cancelText")}},methods:{cancel:function(){this.closing||(this.$children[0].visible=!1,this.buttonLoading=!1,this.onCancel(),this.remove())},ok:function(){this.closing||(this.loading?this.buttonLoading=!0:(this.$children[0].visible=!1,this.remove()),this.onOk())},remove:function(){var C=this;this.closing=!0,setTimeout(function(){(0,e.default)(this,C),this.closing=!1,this.destroy()}.bind(this),300)},destroy:function(){this.$destroy(),this.$el&&document.body.removeChild(this.$el),this.onRemove()},onOk:function(){},onCancel:function(){},onRemove:function(){}}}),x=A.$mount();document.body.appendChild(x.$el);var E=A.$children[0];return{show:function(C){switch(E.$parent.showCancel=C.showCancel,E.$parent.iconType=C.icon,C.icon){case"info":E.$parent.iconName="ios-information-circle";break;case"success":E.$parent.iconName="ios-checkmark-circle";break;case"warning":E.$parent.iconName="ios-alert";break;case"error":E.$parent.iconName="ios-close-circle";break;case"confirm":E.$parent.iconName="ios-help-circle";break}"width"in C&&(E.$parent.width=C.width),"closable"in C&&(E.$parent.closable=C.closable),"title"in C&&(E.$parent.title=C.title),"content"in C&&(E.$parent.body=C.content),"okText"in C&&(E.$parent.okText=C.okText),"cancelText"in C&&(E.$parent.cancelText=C.cancelText),"onCancel"in C&&(E.$parent.onCancel=C.onCancel),"onOk"in C&&(E.$parent.onOk=C.onOk),"loading"in C&&(E.$parent.loading=C.loading),"scrollable"in C&&(E.$parent.scrollable=C.scrollable),E.$parent.onRemove=C.onRemove,E.visible=!0},remove:function(){E.visible=!1,E.$parent.buttonLoading=!1,E.$parent.remove()},component:E}}.bind(void 0),h.default=o.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(216),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(505);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":e.transfer}},[n("transition",{attrs:{name:e.transitionNames[1]}},[e.showMask?n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.maskClasses,style:e.wrapStyles,on:{click:e.handleMask}}):e._e()]),e._v(" "),n("div",{class:e.wrapClasses,style:e.wrapStyles,on:{click:e.handleWrapClick}},[n("transition",{attrs:{name:e.transitionNames[0]},on:{"after-leave":e.animationFinish}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.mainStyles,on:{mousedown:e.handleMousedown}},[n("div",{ref:"content",class:e.contentClasses,style:e.contentStyles,on:{click:e.handleClickModal}},[e.closable?n("a",{class:[e.prefixCls+"-close"],on:{click:e.close}},[e._t("close",[n("Icon",{attrs:{type:"ios-close"}})])],2):e._e(),e._v(" "),e.showHead?n("div",{class:[e.prefixCls+"-header"],on:{mousedown:e.handleMoveStart}},[e._t("header",[n("div",{class:[e.prefixCls+"-header-inner"]},[e._v(e._s(e.title))])])],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"]},[e._t("default")],2),e._v(" "),e.footerHide?e._e():n("div",{class:[e.prefixCls+"-footer"]},[e._t("footer",[n("i-button",{attrs:{type:"text"},nativeOn:{click:function(o){return e.cancel(o)}}},[e._v(e._s(e.localeCancelText))]),e._v(" "),n("i-button",{attrs:{type:"primary",loading:e.buttonLoading},nativeOn:{click:function(o){return e.ok(o)}}},[e._v(e._s(e.localeOkText))])])],2)])])])],1)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(212),i=f(s);function f(v){return v&&v.__esModule?v:{default:v}}var e="ivu-notice",l="ivu-icon",n="ivu_notice_key_",t=24,o=4.5,d=void 0,u=1,c={info:"ios-information-circle",success:"ios-checkmark-circle",warning:"ios-alert",error:"ios-close-circle"};function g(){return d=d||i.default.newInstance({prefixCls:e,styles:{top:t+"px",right:0}}),d}function p(v,y){var b=y.title||"",A=y.desc||"",x=y.name||""+n+u,E=y.onClose||function(){},S=y.render,C=y.duration===0?0:y.duration||o;u++;var T=g(),k=void 0,M=void 0,P=y.render&&!b?"":A||y.render?" "+e+"-with-desc":"";if(v=="normal")M=!1,k=` + <div class="`+e+"-custom-content "+e+"-with-normal "+P+`"> + <div class="`+e+'-title">'+String(b)+`</div> + <div class="`+e+'-desc">'+String(A)+`</div> + </div> + `;else{var N=c[v],F=P===""?"":"-outline";M=!0,k=` + <div class="`+e+"-custom-content "+e+"-with-icon "+e+"-with-"+String(v)+" "+P+`"> + <span class="`+e+"-icon "+e+"-icon-"+String(v)+`"> + <i class="`+l+" "+l+"-"+String(N)+F+`"></i> + </span> + <div class="`+e+'-title">'+String(b)+`</div> + <div class="`+e+'-desc">'+String(A)+`</div> + </div> + `}T.notice({name:x.toString(),duration:C,styles:{},transitionName:"move-notice",content:k,withIcon:M,render:S,hasTitle:!!b,onClose:E,closable:!0,type:"notice"})}h.default={open:function(y){return p("normal",y)},info:function(y){return p("info",y)},success:function(y){return p("success",y)},warning:function(y){return p("warning",y)},error:function(y){return p("error",y)},config:function(y){y.top&&(t=y.top),(y.duration||y.duration===0)&&(o=y.duration)},close:function(y){if(y)y=y.toString(),d&&d.remove(y);else return!1},destroy:function(){var y=g();d=null,y.destroy("ivu-notice")}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(508),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(217),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(511);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(218),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(510);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.showSizer||e.showElevator?n("div",{class:e.optsClasses},[e.showSizer?n("div",{class:e.sizerClasses},[n("i-select",{attrs:{size:e.size,placement:e.placement,transfer:e.transfer,disabled:e.disabled,eventsEnabled:e.eventsEnabled},on:{"on-change":e.changeSize},model:{value:e.currentPageSize,callback:function(o){e.currentPageSize=o},expression:"currentPageSize"}},e._l(e.pageSizeOpts,function(t){return n("i-option",{key:t,staticStyle:{"text-align":"center"},attrs:{value:t}},[e._v(e._s(t)+" "+e._s(e.t("i.page.page")))])}),1)],1):e._e(),e._v(" "),e.showElevator?n("div",{class:e.ElevatorClasses},[e._v(` + `+e._s(e.t("i.page.goto"))+` + `),n("input",{attrs:{type:"text",autocomplete:"off",spellcheck:"false",disabled:e.disabled},domProps:{value:e._current},on:{keyup:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.changePage(o)}}}),e._v(` + `+e._s(e.t("i.page.p"))+` + `)]):e._e()]):e._e()},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.simple?n("ul",{class:e.simpleWrapClasses,style:e.styles},[n("li",{class:e.prevClasses,attrs:{title:e.t("i.page.prev")},on:{click:e.prev}},[e._m(0)]),e._v(" "),n("div",{class:e.simplePagerClasses,attrs:{title:e.currentPage+"/"+e.allPages}},[n("input",{attrs:{type:"text",autocomplete:"off",spellcheck:"false",disabled:e.disabled},domProps:{value:e.currentPage},on:{keydown:e.keyDown,keyup:e.keyUp,change:e.keyUp}}),e._v(" "),n("span",[e._v("/")]),e._v(` + `+e._s(e.allPages)+` + `)]),e._v(" "),n("li",{class:e.nextClasses,attrs:{title:e.t("i.page.next")},on:{click:e.next}},[e._m(1)])]):n("ul",{class:e.wrapClasses,style:e.styles},[e.showTotal?n("span",{class:[e.prefixCls+"-total"]},[e._t("default",[e._v(e._s(e.t("i.page.total"))+" "+e._s(e.total)+" "),e.total<=1?[e._v(e._s(e.t("i.page.item")))]:[e._v(e._s(e.t("i.page.items")))]])],2):e._e(),e._v(" "),n("li",{class:e.prevClasses,attrs:{title:e.t("i.page.prev")},on:{click:e.prev}},[n("a",[e.prevText!==""?[e._v(e._s(e.prevText))]:n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-back"})],2)]),e._v(" "),n("li",{class:e.firstPageClasses,attrs:{title:"1"},on:{click:function(o){return e.changePage(1)}}},[n("a",[e._v("1")])]),e._v(" "),e.currentPage>5?n("li",{class:[e.prefixCls+"-item-jump-prev"],attrs:{title:e.t("i.page.prev5")},on:{click:e.fastPrev}},[e._m(2)]):e._e(),e._v(" "),e.currentPage===5?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage-3},on:{click:function(o){return e.changePage(e.currentPage-3)}}},[n("a",[e._v(e._s(e.currentPage-3))])]):e._e(),e._v(" "),e.currentPage-2>1?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage-2},on:{click:function(o){return e.changePage(e.currentPage-2)}}},[n("a",[e._v(e._s(e.currentPage-2))])]):e._e(),e._v(" "),e.currentPage-1>1?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage-1},on:{click:function(o){return e.changePage(e.currentPage-1)}}},[n("a",[e._v(e._s(e.currentPage-1))])]):e._e(),e._v(" "),e.currentPage!=1&&e.currentPage!=e.allPages?n("li",{class:[e.prefixCls+"-item",e.prefixCls+"-item-active"],attrs:{title:e.currentPage}},[n("a",[e._v(e._s(e.currentPage))])]):e._e(),e._v(" "),e.currentPage+1<e.allPages?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage+1},on:{click:function(o){return e.changePage(e.currentPage+1)}}},[n("a",[e._v(e._s(e.currentPage+1))])]):e._e(),e._v(" "),e.currentPage+2<e.allPages?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage+2},on:{click:function(o){return e.changePage(e.currentPage+2)}}},[n("a",[e._v(e._s(e.currentPage+2))])]):e._e(),e._v(" "),e.allPages-e.currentPage===4?n("li",{class:[e.prefixCls+"-item"],attrs:{title:e.currentPage+3},on:{click:function(o){return e.changePage(e.currentPage+3)}}},[n("a",[e._v(e._s(e.currentPage+3))])]):e._e(),e._v(" "),e.allPages-e.currentPage>=5?n("li",{class:[e.prefixCls+"-item-jump-next"],attrs:{title:e.t("i.page.next5")},on:{click:e.fastNext}},[e._m(3)]):e._e(),e._v(" "),e.allPages>1?n("li",{class:e.lastPageClasses,attrs:{title:e.allPages},on:{click:function(o){return e.changePage(e.allPages)}}},[n("a",[e._v(e._s(e.allPages))])]):e._e(),e._v(" "),n("li",{class:e.nextClasses,attrs:{title:e.t("i.page.next")},on:{click:e.next}},[n("a",[e.nextText!==""?[e._v(e._s(e.nextText))]:n("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-forward"})],2)]),e._v(" "),n("Options",{attrs:{"show-sizer":e.showSizer,"page-size":e.currentPageSize,"page-size-opts":e.pageSizeOpts,placement:e.placement,transfer:e.transfer,"show-elevator":e.showElevator,_current:e.currentPage,current:e.currentPage,disabled:e.disabled,"all-pages":e.allPages,"is-small":e.isSmall,eventsEnabled:e.eventsEnabled},on:{"on-size":e.onSize,"on-page":e.onPage}})],1)},i=[function(){var f=this,e=f.$createElement,l=f._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-back"})])},function(){var f=this,e=f.$createElement,l=f._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-forward"})])},function(){var f=this,e=f.$createElement,l=f._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-back"}),l("i",{staticClass:"ivu-icon ivu-icon-ios-more"})])},function(){var f=this,e=f.$createElement,l=f._self._c||e;return l("a",[l("i",{staticClass:"ivu-icon ivu-icon-ios-arrow-forward"}),l("i",{staticClass:"ivu-icon ivu-icon-ios-more"})])}];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(219),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}],class:e.classes,on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"],on:{click:e.handleClick,mousedown:function(o){return e.handleFocus(!1)},mouseup:function(o){return e.handleBlur(!1)}}},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"popper",class:e.popperClasses,style:e.styles,attrs:{"data-transfer":e.transfer},on:{click:e.handleTransferClick,mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[n("div",{class:[e.prefixCls+"-content"]},[n("div",{class:[e.prefixCls+"-arrow"]}),e._v(" "),e.confirm?n("div",{class:[e.prefixCls+"-inner"]},[n("div",{class:[e.prefixCls+"-body"]},[n("i",{staticClass:"ivu-icon ivu-icon-ios-help-circle"}),e._v(" "),n("div",{class:[e.prefixCls+"-body-message"]},[e._t("title",[e._v(e._s(e.title))])],2)]),e._v(" "),n("div",{class:[e.prefixCls+"-footer"]},[n("i-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(o){return e.cancel(o)}}},[e._v(e._s(e.localeCancelText))]),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small"},nativeOn:{click:function(o){return e.ok(o)}}},[e._v(e._s(e.localeOkText))])],1)]):e._e(),e._v(" "),e.confirm?e._e():n("div",{class:[e.prefixCls+"-inner"]},[e.showTitle?n("div",{ref:"title",class:[e.prefixCls+"-title"],style:e.contentPaddingStyle},[e._t("title",[n("div",{class:[e.prefixCls+"-title-inner"]},[e._v(e._s(e.title))])])],2):e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-body"],style:e.contentPaddingStyle},[n("div",{class:e.contentClasses},[e._t("content",[n("div",{class:[e.prefixCls+"-body-content-inner"]},[e._v(e._s(e.content))])])],2)])])])])])],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(222),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[n("div",{class:e.outerClasses},[n("div",{class:e.innerClasses},[n("div",{class:e.bgClasses,style:e.bgStyle},[e.textInside?n("div",{staticClass:"ivu-progress-inner-text"},[e._v(e._s(e.percent)+"%")]):e._e()]),n("div",{class:e.successBgClasses,style:e.successBgStyle})])]),e._v(" "),!e.hideInfo&&!e.textInside?n("span",{class:e.textClasses},[e._t("default",[e.isStatus?n("span",{class:e.textInnerClasses},[n("Icon",{attrs:{type:e.statusIcon}})],1):n("span",{class:e.textInnerClasses},[e._v(` + `+e._s(e.percent)+`% + `)])])],2):e._e()])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(517),i=l(s),f=r(519),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Group=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(224),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(518);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("label",{class:e.wrapClasses},[n("span",{class:e.radioClasses},[n("span",{class:e.innerClasses}),e._v(" "),n("input",{class:e.inputClasses,attrs:{type:"radio",disabled:e.itemDisabled,name:e.groupName},domProps:{checked:e.currentValue},on:{change:e.change,focus:e.onFocus,blur:e.onBlur}})]),e._t("default",[e._v(e._s(e.label))])],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(225),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(520);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,attrs:{name:e.name}},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(522),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(226),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(523);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,on:{mouseleave:e.handleMouseleave}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),e._l(e.count,function(t){return n("div",{key:t,class:e.starCls(t),on:{mousemove:function(d){return e.handleMousemove(t,d)},click:function(d){return e.handleClick(t)}}},[e.showCharacter?[n("span",{class:[e.prefixCls+"-star-first"],attrs:{type:"half"}},[e.character!==""?[e._v(e._s(e.character))]:n("i",{class:e.iconClasses,attrs:{type:"half"}})],2),e._v(" "),n("span",{class:[e.prefixCls+"-star-second"]},[e.character!==""?[e._v(e._s(e.character))]:n("i",{class:e.iconClasses})],2)]:[n("span",{class:[e.prefixCls+"-star-content"],attrs:{type:"half"}})]],2)}),e._v(" "),e.showText?n("div",{directives:[{name:"show",rawName:"v-show",value:e.currentValue>0,expression:"currentValue > 0"}],class:[e.prefixCls+"-text"]},[e._t("default",[n("span",[e._v(e._s(e.currentValue))]),e._v(" "),e.currentValue<=1?n("span",[e._v(e._s(e.t("i.rate.star")))]):n("span",[e._v(e._s(e.t("i.rate.stars")))])])],2):e._e()],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(202),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(526),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(227),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(539);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls],on:{mouseenter:e.handleShowPopper,mouseleave:e.handleClosePopper}},[n("div",{ref:"reference",class:[e.prefixCls+"-rel"]},[e._t("default")],2),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.visible||e.always),expression:"!disabled && (visible || always)"},{name:"transfer-dom",rawName:"v-transfer-dom"}],ref:"popper",class:e.dropdownCls,style:e.dropStyles,attrs:{"data-transfer":e.transfer},on:{mouseenter:e.handleShowPopper,mouseleave:e.handleClosePopper}},[n("div",{class:[e.prefixCls+"-content"]},[n("div",{class:[e.prefixCls+"-arrow"]}),e._v(" "),n("div",{class:e.innerClasses,style:e.innerStyles},[e._t("content",[e._v(e._s(e.content))])],2)])])])],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.default={name:"SliderMarker",props:{mark:{type:[String,Object]}},render:function(i){var f=typeof this.mark=="string"?this.mark:[this.mark.label];return i("div",{class:"ivu-slider-marks-item",style:this.mark.style||{}},f)}}},function(_,h,r){_.exports=function(s){var i=s.stateHandler.getState;function f(t){var o=i(t);return o&&!!o.isDetectable}function e(t){i(t).isDetectable=!0}function l(t){return!!i(t).busy}function n(t,o){i(t).busy=!!o}return{isDetectable:f,markAsDetectable:e,isBusy:l,markBusy:n}}},function(_,h,r){_.exports=function(s){var i={};function f(t){var o=s.get(t);return o===void 0?[]:i[o]||[]}function e(t,o){var d=s.get(t);i[d]||(i[d]=[]),i[d].push(o)}function l(t,o){for(var d=f(t),u=0,c=d.length;u<c;++u)if(d[u]===o){d.splice(u,1);break}}function n(t){var o=f(t);o&&(o.length=0)}return{get:f,add:e,removeListener:l,removeAllListeners:n}}},function(_,h,r){_.exports=function(){var s=1;function i(){return s++}return{generate:i}}},function(_,h,r){_.exports=function(s){var i=s.idGenerator,f=s.stateHandler.getState;function e(n){var t=f(n);return t&&t.id!==void 0?t.id:null}function l(n){var t=f(n);if(!t)throw new Error("setId required the element to have a resize detection state.");var o=i.generate();return t.id=o,o}return{get:e,set:l}}},function(_,h,r){_.exports=function(s){function i(){}var f={log:i,warn:i,error:i};if(!s&&window.console){var e=function(l,n){l[n]=function(){var o=console[n];if(o.apply)o.apply(console,arguments);else for(var d=0;d<arguments.length;d++)o(arguments[d])}};e(f,"log"),e(f,"warn"),e(f,"error")}return f}},function(_,h,r){var s=r(535);_.exports=function(e){e=e||{};var l=e.reporter,n=s.getOption(e,"async",!0),t=s.getOption(e,"auto",!0);t&&!n&&(l&&l.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var o=i(),d,u=!1;function c(A,x){!u&&t&&n&&o.size()===0&&v(),o.add(A,x)}function g(){for(u=!0;o.size();){var A=o;o=i(),A.process()}u=!1}function p(A){u||(A===void 0&&(A=n),d&&(y(d),d=null),A?v():g())}function v(){d=b(g)}function y(A){var x=clearTimeout;return x(A)}function b(A){var x=function(E){return setTimeout(E,0)};return x(A)}return{add:c,force:p}};function i(){var f={},e=0,l=0,n=0;function t(u,c){c||(c=u,u=0),u>l?l=u:u<n&&(n=u),f[u]||(f[u]=[]),f[u].push(c),e++}function o(){for(var u=n;u<=l;u++)for(var c=f[u],g=0;g<c.length;g++){var p=c[g];p()}}function d(){return e}return{add:t,process:o,size:d}}},function(_,h,r){var s=_.exports={};s.getOption=i;function i(f,e,l){var n=f[e];return n==null&&l!==void 0?l:n}},function(_,h,r){var s="_erd";function i(l){return l[s]={},f(l)}function f(l){return l[s]}function e(l){delete l[s]}_.exports={initState:i,getState:f,cleanState:e}},function(_,h,r){var s=r(230);_.exports=function(i){i=i||{};var f=i.reporter,e=i.batchProcessor,l=i.stateHandler.getState;if(!f)throw new Error("Missing required dependency: reporter.");function n(c,g){function p(){g(c)}if(s.isIE(8))l(c).object={proxy:p},c.attachEvent("onresize",p);else{var v=d(c);if(!v)throw new Error("Element is not detectable by this strategy.");v.contentDocument.defaultView.addEventListener("resize",p)}}function t(c){var g=i.important?" !important; ":"; ";return(c.join(g)+g).trim()}function o(c,g,p){p||(p=g,g=c,c=null),c=c||{},c.debug;function v(y,b){var A=t(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),x=!1,E=window.getComputedStyle(y),S=y.offsetWidth,C=y.offsetHeight;l(y).startSize={width:S,height:C};function T(){function k(){if(E.position==="static"){y.style.setProperty("position","relative",c.important?"important":"");var N=function(F,q,z,O){function R(D){return D.replace(/[^-\d\.]/g,"")}var I=z[O];I!=="auto"&&R(I)!=="0"&&(F.warn("An element that is positioned static has style."+O+"="+I+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+O+" will be set to 0. Element: ",q),q.style.setProperty(O,"0",c.important?"important":""))};N(f,y,E,"top"),N(f,y,E,"right"),N(f,y,E,"bottom"),N(f,y,E,"left")}}function M(){x||k();function N(q,z){if(!q.contentDocument){setTimeout(function(){N(q,z)},100);return}z(q.contentDocument)}var F=this;N(F,function(z){b(y)})}E.position!==""&&(k(),x=!0);var P=document.createElement("object");P.style.cssText=A,P.tabIndex=-1,P.type="text/html",P.onload=M,s.isIE()||(P.data="about:blank"),l(y)&&(y.appendChild(P),l(y).object=P,s.isIE()&&(P.data="about:blank"))}e?e.add(T):T()}s.isIE(8)?p(g):v(g,p)}function d(c){return l(c).object}function u(c){if(l(c)){var g=d(c);g&&(s.isIE(8)?c.detachEvent("onresize",g.proxy):c.removeChild(g),delete l(c).object)}}return{makeDetectable:o,addListener:n,uninstall:u}}},function(_,h,r){var s=r(229).forEach;_.exports=function(i){i=i||{};var f=i.reporter,e=i.batchProcessor,l=i.stateHandler.getState;i.stateHandler.hasState;var n=i.idHandler;if(!e)throw new Error("Missing required dependency: batchProcessor");if(!f)throw new Error("Missing required dependency: reporter.");var t=g(),o="erd_scroll_detection_scrollbar_style",d="erd_scroll_detection_container";function u(T){p(T,o,d)}u(window.document);function c(T){var k=i.important?" !important; ":"; ";return(T.join(k)+k).trim()}function g(){var T=500,k=500,M=document.createElement("div");M.style.cssText=c(["position: absolute","width: "+T*2+"px","height: "+k*2+"px","visibility: hidden","margin: 0","padding: 0"]);var P=document.createElement("div");P.style.cssText=c(["position: absolute","width: "+T+"px","height: "+k+"px","overflow: scroll","visibility: none","top: "+-T*3+"px","left: "+-k*3+"px","visibility: hidden","margin: 0","padding: 0"]),P.appendChild(M),document.body.insertBefore(P,document.body.firstChild);var N=T-P.clientWidth,F=k-P.clientHeight;return document.body.removeChild(P),{width:N,height:F}}function p(T,k,M){function P(z,O){O=O||function(I){T.head.appendChild(I)};var R=T.createElement("style");return R.innerHTML=z,R.id=k,O(R),R}if(!T.getElementById(k)){var N=M+"_animation",F=M+"_animation_active",q=`/* Created by the element-resize-detector library. */ +`;q+="."+M+" > div::-webkit-scrollbar { "+c(["display: none"])+` } + +`,q+="."+F+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+N,"animation-name: "+N])+` } +`,q+="@-webkit-keyframes "+N+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } +`,q+="@keyframes "+N+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",P(q)}}function v(T){T.className+=" "+d+"_animation_active"}function y(T,k,M){if(T.addEventListener)T.addEventListener(k,M);else if(T.attachEvent)T.attachEvent("on"+k,M);else return f.error("[scroll] Don't know how to add event listeners.")}function b(T,k,M){if(T.removeEventListener)T.removeEventListener(k,M);else if(T.detachEvent)T.detachEvent("on"+k,M);else return f.error("[scroll] Don't know how to remove event listeners.")}function A(T){return l(T).container.childNodes[0].childNodes[0].childNodes[0]}function x(T){return l(T).container.childNodes[0].childNodes[0].childNodes[1]}function E(T,k){var M=l(T).listeners;if(!M.push)throw new Error("Cannot add listener to an element that is not detectable.");l(T).listeners.push(k)}function S(T,k,M){M||(M=k,k=T,T=null),T=T||{};function P(){if(T.debug){var ee=Array.prototype.slice.call(arguments);if(ee.unshift(n.get(k),"Scroll: "),f.log.apply)f.log.apply(null,ee);else for(var ie=0;ie<ee.length;ie++)f.log(ee[ie])}}function N(ee){function ie(se){return se===se.ownerDocument.body||se.ownerDocument.body.contains(se)}return!ie(ee)||window.getComputedStyle(ee)===null}function F(ee){var ie=l(ee).container.childNodes[0],se=window.getComputedStyle(ie);return!se.width||se.width.indexOf("px")===-1}function q(){var ee=window.getComputedStyle(k),ie={};return ie.position=ee.position,ie.width=k.offsetWidth,ie.height=k.offsetHeight,ie.top=ee.top,ie.right=ee.right,ie.bottom=ee.bottom,ie.left=ee.left,ie.widthCSS=ee.width,ie.heightCSS=ee.height,ie}function z(){var ee=q();l(k).startSize={width:ee.width,height:ee.height},P("Element start size",l(k).startSize)}function O(){l(k).listeners=[]}function R(){if(P("storeStyle invoked."),!l(k)){P("Aborting because element has been uninstalled");return}var ee=q();l(k).style=ee}function I(ee,ie,se){l(ee).lastWidth=ie,l(ee).lastHeight=se}function D(ee){return A(ee).childNodes[0]}function B(){return 2*t.width+1}function j(){return 2*t.height+1}function Q(ee){return ee+10+B()}function X(ee){return ee+10+j()}function Z(ee){return ee*2+B()}function L(ee){return ee*2+j()}function W(ee,ie,se){var ne=A(ee),re=x(ee),Y=Q(ie),V=X(se),oe=Z(ie),fe=L(se);ne.scrollLeft=Y,ne.scrollTop=V,re.scrollLeft=oe,re.scrollTop=fe}function G(){var ee=l(k).container;if(!ee){ee=document.createElement("div"),ee.className=d,ee.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),l(k).container=ee,v(ee),k.appendChild(ee);var ie=function(){l(k).onRendered&&l(k).onRendered()};y(ee,"animationstart",ie),l(k).onAnimationStart=ie}return ee}function J(){function ee(){var Ae=l(k).style;if(Ae.position==="static"){k.style.setProperty("position","relative",T.important?"important":"");var Te=function(ke,Pe,Ie,qe){function Ve(je){return je.replace(/[^-\d\.]/g,"")}var et=Ie[qe];et!=="auto"&&Ve(et)!=="0"&&(ke.warn("An element that is positioned static has style."+qe+"="+et+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+qe+" will be set to 0. Element: ",Pe),Pe.style[qe]=0)};Te(f,k,Ae,"top"),Te(f,k,Ae,"right"),Te(f,k,Ae,"bottom"),Te(f,k,Ae,"left")}}function ie(Ae,Te,ke,Pe){return Ae=Ae?Ae+"px":"0",Te=Te?Te+"px":"0",ke=ke?ke+"px":"0",Pe=Pe?Pe+"px":"0",["left: "+Ae,"top: "+Te,"right: "+Pe,"bottom: "+ke]}if(P("Injecting elements"),!l(k)){P("Aborting because element has been uninstalled");return}ee();var se=l(k).container;se||(se=G());var ne=t.width,re=t.height,Y=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),V=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(ie(-(1+ne),-(1+re),-re,-ne))),oe=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),fe=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),ce=c(["position: absolute","left: 0","top: 0"]),he=c(["position: absolute","width: 200%","height: 200%"]),le=document.createElement("div"),ae=document.createElement("div"),ue=document.createElement("div"),de=document.createElement("div"),ve=document.createElement("div"),me=document.createElement("div");le.dir="ltr",le.style.cssText=Y,le.className=d,ae.className=d,ae.style.cssText=V,ue.style.cssText=oe,de.style.cssText=ce,ve.style.cssText=fe,me.style.cssText=he,ue.appendChild(de),ve.appendChild(me),ae.appendChild(ue),ae.appendChild(ve),le.appendChild(ae),se.appendChild(le);function ge(){l(k).onExpand&&l(k).onExpand()}function xe(){l(k).onShrink&&l(k).onShrink()}y(ue,"scroll",ge),y(ve,"scroll",xe),l(k).onExpandScroll=ge,l(k).onShrinkScroll=xe}function H(){function ee(oe,fe,ce){var he=D(oe),le=Q(fe),ae=X(ce);he.style.setProperty("width",le+"px",T.important?"important":""),he.style.setProperty("height",ae+"px",T.important?"important":"")}function ie(oe){var fe=k.offsetWidth,ce=k.offsetHeight,he=fe!==l(k).lastWidth||ce!==l(k).lastHeight;P("Storing current size",fe,ce),I(k,fe,ce),e.add(0,function(){if(he){if(!l(k)){P("Aborting because element has been uninstalled");return}if(!se()){P("Aborting because element container has not been initialized");return}if(T.debug){var ae=k.offsetWidth,ue=k.offsetHeight;(ae!==fe||ue!==ce)&&f.warn(n.get(k),"Scroll: Size changed before updating detector elements.")}ee(k,fe,ce)}}),e.add(1,function(){if(!l(k)){P("Aborting because element has been uninstalled");return}if(!se()){P("Aborting because element container has not been initialized");return}W(k,fe,ce)}),he&&oe&&e.add(2,function(){if(!l(k)){P("Aborting because element has been uninstalled");return}if(!se()){P("Aborting because element container has not been initialized");return}oe()})}function se(){return!!l(k).container}function ne(){function oe(){return l(k).lastNotifiedWidth===void 0}P("notifyListenersIfNeeded invoked");var fe=l(k);if(oe()&&fe.lastWidth===fe.startSize.width&&fe.lastHeight===fe.startSize.height)return P("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(fe.lastWidth===fe.lastNotifiedWidth&&fe.lastHeight===fe.lastNotifiedHeight)return P("Not notifying: Size already notified");P("Current size not notified, notifying..."),fe.lastNotifiedWidth=fe.lastWidth,fe.lastNotifiedHeight=fe.lastHeight,s(l(k).listeners,function(ce){ce(k)})}function re(){if(P("startanimation triggered."),F(k)){P("Ignoring since element is still unrendered...");return}P("Element rendered.");var oe=A(k),fe=x(k);(oe.scrollLeft===0||oe.scrollTop===0||fe.scrollLeft===0||fe.scrollTop===0)&&(P("Scrollbars out of sync. Updating detector elements..."),ie(ne))}function Y(){if(P("Scroll detected."),F(k)){P("Scroll event fired while unrendered. Ignoring...");return}ie(ne)}if(P("registerListenersAndPositionElements invoked."),!l(k)){P("Aborting because element has been uninstalled");return}l(k).onRendered=re,l(k).onExpand=Y,l(k).onShrink=Y;var V=l(k).style;ee(k,V.width,V.height)}function U(){if(P("finalizeDomMutation invoked."),!l(k)){P("Aborting because element has been uninstalled");return}var ee=l(k).style;I(k,ee.width,ee.height),W(k,ee.width,ee.height)}function K(){M(k)}function te(){P("Installing..."),O(),z(),e.add(0,R),e.add(1,J),e.add(2,H),e.add(3,U),e.add(4,K)}P("Making detectable..."),N(k)?(P("Element is detached"),G(),P("Waiting until element is attached..."),l(k).onRendered=function(){P("Element is now attached"),te()}):te()}function C(T){var k=l(T);k&&(k.onExpandScroll&&b(A(T),"scroll",k.onExpandScroll),k.onShrinkScroll&&b(x(T),"scroll",k.onShrinkScroll),k.onAnimationStart&&b(k.container,"animationstart",k.onAnimationStart),k.container&&T.removeChild(k.container))}return{makeDetectable:S,addListener:E,uninstall:C,initDocument:u}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[!e.range&&e.showInput?n("Input-number",{attrs:{min:e.min,size:e.inputSize,max:e.max,step:e.step,value:e.exportValue[0],disabled:e.itemDisabled,"active-change":e.activeChange},on:{"on-change":e.handleInputChange}}):e._e(),e._v(" "),n("div",{ref:"slider",class:[e.prefixCls+"-wrap"],on:{click:function(o){return o.target!==o.currentTarget?null:e.sliderClick(o)}}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.exportValue}}),e._v(" "),n("div",{class:[e.prefixCls+"-bar"],style:e.barStyle,on:{click:function(o){return o.target!==o.currentTarget?null:e.sliderClick(o)}}}),e._v(" "),e.showStops?e._l(e.stops,function(t){return n("div",{class:[e.prefixCls+"-stop"],style:{left:t+"%"},on:{click:function(d){return d.target!==d.currentTarget?null:e.sliderClick(d)}}})}):e._e(),e._v(" "),e.markList.length>0?[e._l(e.markList,function(t,o){return n("div",{key:o,class:[e.prefixCls+"-stop"],style:{left:t.position+"%"},on:{click:function(u){return u.target!==u.currentTarget?null:e.sliderClick(u)}}})}),e._v(" "),n("div",{staticClass:"ivu-slider-marks"},e._l(e.markList,function(t,o){return n("SliderMarker",{key:o,style:{left:t.position+"%"},attrs:{mark:t.mark},nativeOn:{click:function(u){return e.sliderClick(u)}}})}),1)]:e._e(),e._v(" "),n("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.minPosition+"%"},on:{touchstart:function(o){return e.onPointerDown(o,"min")},mousedown:function(o){return e.onPointerDown(o,"min")}}},[n("Tooltip",{ref:"minTooltip",attrs:{controlled:e.pointerDown==="min",placement:"top",content:e.tipFormat(e.exportValue[0]),disabled:e.tipDisabled,always:e.showTip==="always"}},[n("div",{class:e.minButtonClasses,attrs:{tabindex:"0"},on:{focus:function(o){return e.handleFocus("min")},blur:function(o){return e.handleBlur("min")},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&t.button!==0?null:e.onKeyLeft(t,"min")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.onKeyLeft(t,"min")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&t.button!==2?null:e.onKeyRight(t,"min")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.onKeyRight(t,"min")}]}})])],1),e._v(" "),e.range?n("div",{class:[e.prefixCls+"-button-wrap"],style:{left:e.maxPosition+"%"},on:{touchstart:function(o){return e.onPointerDown(o,"max")},mousedown:function(o){return e.onPointerDown(o,"max")}}},[n("Tooltip",{ref:"maxTooltip",attrs:{controlled:e.pointerDown==="max",placement:"top",content:e.tipFormat(e.exportValue[1]),disabled:e.tipDisabled,always:e.showTip==="always"}},[n("div",{class:e.maxButtonClasses,attrs:{tabindex:"0"},on:{focus:function(o){return e.handleFocus("max")},blur:function(o){return e.handleBlur("max")},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&t.button!==0?null:e.onKeyLeft(t,"max")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.onKeyLeft(t,"max")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&t.button!==2?null:e.onKeyRight(t,"max")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.onKeyRight(t,"max")}]}})])],1):e._e()],2)],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(541),e=l(f);function l(d){return d&&d.__esModule?d:{default:d}}var n=void 0;function t(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return n=n||e.default.newInstance({render:d}),n}function o(d){var u="render"in d?d.render:void 0,c=t(u);c.show(d)}e.default.show=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return o(d)},e.default.hide=function(){var d=this;if(!n)return!1;var u=t();u.remove(function(){(0,i.default)(this,d),n=null}.bind(this))},h.default=e.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(15),i=u(s),f=r(1),e=u(f),l=r(16),n=u(l),t=r(91),o=u(t),d=r(37);function u(p){return p&&p.__esModule?p:{default:p}}function c(){return(0,d.transferIncrease)(),d.transferIndex}var g=c();o.default.newInstance=function(p){(0,e.default)(void 0,void 0);var v=p||{},y=new n.default({data:(0,i.default)({},v,{}),render:function(E){var S="";return this.render?S=E(o.default,{props:{fix:!0,fullscreen:!0}},[this.render(E)]):S=E(o.default,{props:{size:"large",fix:!0,fullscreen:!0}}),E("div",{class:"ivu-spin-fullscreen ivu-spin-fullscreen-wrapper",style:{"z-index":2010+g}},[S])}}),b=y.$mount();document.body.appendChild(b.$el);var A=y.$children[0];return{show:function(){A.visible=!0,g=c()},remove:function(E){A.visible=!1,setTimeout(function(){A.$parent.$destroy(),document.getElementsByClassName("ivu-spin-fullscreen")[0]!==void 0&&document.body.removeChild(document.getElementsByClassName("ivu-spin-fullscreen")[0]),E()},500)},component:A}}.bind(void 0),h.default=o.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(543),i=l(s),f=r(545),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Step=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(231),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(544);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(232),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(546);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.wrapClasses},[n("div",{class:[e.prefixCls+"-tail"]},[n("i")]),e._v(" "),n("div",{class:[e.prefixCls+"-head"]},[n("div",{class:[e.prefixCls+"-head-inner"]},[!e.icon&&!e.$slots.icon&&e.currentStatus!=="finish"&&e.currentStatus!=="error"?n("span",[e._v(e._s(e.stepNumber))]):e.$slots.icon?n("span",{staticClass:"ivu-steps-icon"},[e._t("icon")],2):n("span",{class:e.iconClasses})])]),e._v(" "),n("div",{class:[e.prefixCls+"-main"]},[n("div",{class:[e.prefixCls+"-title"]},[e._t("title",[e._v(e._s(e.title))])],2),e._v(" "),e.content||e.$slots.content?n("div",{class:[e.prefixCls+"-content"]},[e._t("content",[e._v(e._s(e.content))])],2):e._e()])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(548),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(233),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(549);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.wrapClasses,style:e.wrapStyles,attrs:{tabindex:"0"},on:{click:e.toggle,keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"space",32,o.key,[" ","Spacebar"])?null:e.toggle(o)}}},[n("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentValue}}),e._v(" "),n("span",{class:e.innerClasses},[e.currentValue===e.trueValue?e._t("open"):e._e(),e._v(" "),e.currentValue===e.falseValue?e._t("close"):e._e()],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(551),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(234),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(581);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){_.exports={default:r(553),__esModule:!0}},function(_,h,r){r(80),r(35),r(46),r(554),r(560),r(563),r(565),_.exports=r(5).Set},function(_,h,r){var s=r(555),i=r(235),f="Set";_.exports=r(556)(f,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(l){return s.def(i(this,f),l=l===0?0:l,l)}},s)},function(_,h,r){var s=r(14).f,i=r(55),f=r(90),e=r(24),l=r(88),n=r(51),t=r(72),o=r(102),d=r(190),u=r(13),c=r(78).fastKey,g=r(235),p=u?"_s":"size",v=function(y,b){var A=c(b),x;if(A!=="F")return y._i[A];for(x=y._f;x;x=x.n)if(x.k==b)return x};_.exports={getConstructor:function(y,b,A,x){var E=y(function(S,C){l(S,E,b,"_i"),S._t=b,S._i=i(null),S._f=void 0,S._l=void 0,S[p]=0,C!=null&&n(C,A,S[x],S)});return f(E.prototype,{clear:function(){for(var C=g(this,b),T=C._i,k=C._f;k;k=k.n)k.r=!0,k.p&&(k.p=k.p.n=void 0),delete T[k.i];C._f=C._l=void 0,C[p]=0},delete:function(S){var C=g(this,b),T=v(C,S);if(T){var k=T.n,M=T.p;delete C._i[T.i],T.r=!0,M&&(M.n=k),k&&(k.p=M),C._f==T&&(C._f=k),C._l==T&&(C._l=M),C[p]--}return!!T},forEach:function(C){g(this,b);for(var T=e(C,arguments.length>1?arguments[1]:void 0,3),k;k=k?k.n:this._f;)for(T(k.v,k.k,this);k&&k.r;)k=k.p},has:function(C){return!!v(g(this,b),C)}}),u&&s(E.prototype,"size",{get:function(){return g(this,b)[p]}}),E},def:function(y,b,A){var x=v(y,b),E,S;return x?x.v=A:(y._l=x={i:S=c(b,!0),k:b,v:A,p:E=y._l,n:void 0,r:!1},y._f||(y._f=x),E&&(E.n=x),y[p]++,S!=="F"&&(y._i[S]=x)),y},getEntry:v,setStrong:function(y,b,A){t(y,b,function(x,E){this._t=g(x,b),this._k=E,this._l=void 0},function(){for(var x=this,E=x._k,S=x._l;S&&S.r;)S=S.p;return!x._t||!(x._l=S=S?S.n:x._t._f)?(x._t=void 0,o(1)):E=="keys"?o(0,S.k):E=="values"?o(0,S.v):o(0,[S.k,S.v])},A?"entries":"values",!A,!0),d(b)}}},function(_,h,r){var s=r(9),i=r(7),f=r(78),e=r(31),l=r(25),n=r(90),t=r(51),o=r(88),d=r(18),u=r(47),c=r(14).f,g=r(557)(0),p=r(13);_.exports=function(v,y,b,A,x,E){var S=s[v],C=S,T=x?"set":"add",k=C&&C.prototype,M={};return!p||typeof C!="function"||!(E||k.forEach&&!e(function(){new C().entries().next()}))?(C=A.getConstructor(y,v,x,T),n(C.prototype,b),f.NEED=!0):(C=y(function(P,N){o(P,C,v,"_c"),P._c=new S,N!=null&&t(N,x,P[T],P)}),g("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(P){var N=P=="add"||P=="set";P in k&&!(E&&P=="clear")&&l(C.prototype,P,function(F,q){if(o(this,C,P),!N&&E&&!d(F))return P=="get"?void 0:!1;var z=this._c[P](F===0?0:F,q);return N?this:z})}),E||c(C.prototype,"size",{get:function(){return this._c.size}})),u(C,v),M[v]=C,i(i.G+i.W+i.F,M),E||A.setStrong(C,v,x),C}},function(_,h,r){var s=r(24),i=r(64),f=r(29),e=r(52),l=r(558);_.exports=function(n,t){var o=n==1,d=n==2,u=n==3,c=n==4,g=n==6,p=n==5||g,v=t||l;return function(y,b,A){for(var x=f(y),E=i(x),S=s(b,A,3),C=e(E.length),T=0,k=o?v(y,C):d?v(y,0):void 0,M,P;C>T;T++)if((p||T in E)&&(M=E[T],P=S(M,T,x),n)){if(o)k[T]=P;else if(P)switch(n){case 3:return!0;case 5:return M;case 6:return T;case 2:k.push(M)}else if(c)return!1}return g?-1:u||c?c:k}}},function(_,h,r){var s=r(559);_.exports=function(i,f){return new(s(i))(f)}},function(_,h,r){var s=r(18),i=r(118),f=r(10)("species");_.exports=function(e){var l;return i(e)&&(l=e.constructor,typeof l=="function"&&(l===Array||i(l.prototype))&&(l=void 0),s(l)&&(l=l[f],l===null&&(l=void 0))),l===void 0?Array:l}},function(_,h,r){var s=r(7);s(s.P+s.R,"Set",{toJSON:r(561)("Set")})},function(_,h,r){var s=r(56),i=r(562);_.exports=function(f){return function(){if(s(this)!=f)throw TypeError(f+"#toJSON isn't generic");return i(this)}}},function(_,h,r){var s=r(51);_.exports=function(i,f){var e=[];return s(i,!1,e.push,e,f),e}},function(_,h,r){r(564)("Set")},function(_,h,r){var s=r(7);_.exports=function(i){s(s.S,i,{of:function(){for(var e=arguments.length,l=new Array(e);e--;)l[e]=arguments[e];return new this(l)}})}},function(_,h,r){r(566)("Set")},function(_,h,r){var s=r(7),i=r(43),f=r(24),e=r(51);_.exports=function(l){s(s.S,l,{from:function(t){var o=arguments[1],d,u,c,g;return i(this),d=o!==void 0,d&&i(o),t==null?new this:(u=[],d?(c=0,g=f(o,arguments[2],2),e(t,!1,function(p){u.push(g(p,c++))})):e(t,!1,u.push,u),new this(u))}})}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(236),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(569);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"TableRenderHeader",functional:!0,props:{render:Function,column:Object,index:Number},render:function(l,n){(0,i.default)(void 0,void 0);var t={column:n.props.column,index:n.props.index};return n.props.render(l,t)}.bind(void 0)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("table",{style:e.styles,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("colgroup",[e._l(e.columns,function(t,o){return n("col",{attrs:{width:e.setCellWidth(t)}})}),e._v(" "),e.$parent.showVerticalScrollBar?n("col",{attrs:{width:e.$parent.scrollBarWidth}}):e._e()],2),e._v(" "),n("thead",e._l(e.headRows,function(t,o){return n("tr",[e._l(t,function(d,u){var c;return n("th",{class:e.alignCls(d),attrs:{colspan:d.colSpan,rowspan:d.rowSpan}},[n("div",{class:e.cellClasses(d)},[d.type==="expand"?[d.renderHeader?n("render-header",{attrs:{render:d.renderHeader,column:d,index:u}}):n("span",[e._v(e._s(d.title||""))])]:d.type==="selection"?[d.hideSelectAll?e._e():n("Checkbox",{attrs:{value:e.isSelectAll,disabled:e.isSelectDisabled},on:{"on-change":e.selectAll}})]:[d.renderHeader?n("render-header",{attrs:{render:d.renderHeader,column:d,index:u}}):n("span",{class:(c={},c[e.prefixCls+"-cell-sort"]=d.sortable,c),on:{click:function(p){d.sortable&&e.handleSortByHead(e.getColumn(o,u)._index)}}},[e._v(e._s(d.title||"#"))]),e._v(" "),d.sortable?n("span",{class:[e.prefixCls+"-sort"]},[n("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropup",class:{on:e.getColumn(o,u)._sortType==="asc"},on:{click:function(p){e.handleSort(e.getColumn(o,u)._index,"asc")}}}),e._v(" "),n("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropdown",class:{on:e.getColumn(o,u)._sortType==="desc"},on:{click:function(p){e.handleSort(e.getColumn(o,u)._index,"desc")}}})]):e._e(),e._v(" "),e.isPopperShow(d)?n("Poptip",{attrs:{placement:"bottom","popper-class":"ivu-table-popper",transfer:"",capture:!1},on:{"on-popper-hide":function(p){e.handleFilterHide(e.getColumn(o,u)._index)}},model:{value:e.getColumn(o,u)._filterVisible,callback:function(p){e.$set(e.getColumn(o,u),"_filterVisible",p)},expression:"getColumn(rowIndex, index)._filterVisible"}},[n("span",{class:[e.prefixCls+"-filter"]},[n("i",{staticClass:"ivu-icon ivu-icon-ios-funnel",class:{on:e.getColumn(o,u)._isFiltered}})]),e._v(" "),e.getColumn(o,u)._filterMultiple?n("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[n("div",{class:[e.prefixCls+"-filter-list-item"]},[n("checkbox-group",{model:{value:e.getColumn(o,u)._filterChecked,callback:function(p){e.$set(e.getColumn(o,u),"_filterChecked",p)},expression:"getColumn(rowIndex, index)._filterChecked"}},e._l(d.filters,function(g,p){return n("checkbox",{key:p,attrs:{label:g.value}},[e._v(e._s(g.label))])}),1)],1),e._v(" "),n("div",{class:[e.prefixCls+"-filter-footer"]},[n("i-button",{attrs:{type:"text",size:"small",disabled:!e.getColumn(o,u)._filterChecked.length},nativeOn:{click:function(p){e.handleFilter(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.confirmFilter")))]),e._v(" "),n("i-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(p){e.handleReset(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.resetFilter")))])],1)]):n("div",{class:[e.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[n("ul",{class:[e.prefixCls+"-filter-list-single"]},[n("li",{class:e.itemAllClasses(e.getColumn(o,u)),on:{click:function(p){e.handleReset(e.getColumn(o,u)._index)}}},[e._v(e._s(e.t("i.table.clearFilter")))]),e._v(" "),e._l(d.filters,function(g){return n("li",{class:e.itemClasses(e.getColumn(o,u),g),on:{click:function(v){e.handleSelect(e.getColumn(o,u)._index,g.value)}}},[e._v(e._s(g.label))])})],2)])]):e._e()]],2),e._v(" "),d.resizable?n("div",{staticClass:"ivu-table-header-resizable",on:{mousedown:function(p){return e.handleMouseDown(d,p)},mousemove:function(p){return e.handleMouseMove(d,p)},mouseout:e.handleMouseOut}}):e._e()])}),e._v(" "),e.$parent.showVerticalScrollBar&&o===0?n("th",{class:e.scrollBarCellClass(),attrs:{rowspan:e.headRows.length}}):e._e()],2)}),0)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(237),i=r.n(s);for(var f in s)f!=="default"&&function(g){r.d(h,g,function(){return s[g]})}(f);var e=r(0),l,n,t=!1,o=null,d=null,u=null,c=Object(e.a)(i.a,l,n,t,o,d,u);h.default=c.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(238),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(572);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.draggable?n("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:e.draggable},on:{dragstart:function(o){return e.onDrag(o,e.row._index)},drop:function(o){return e.onDrop(o,e.row._index)},dragover:function(o){return e.allowDrop(o)}}},[e._t("default")],2):n("tr",{class:e.rowClasses(e.row._index),attrs:{draggable:!1}},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(239),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(575);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"TableSlot",functional:!0,inject:["tableRoot"],props:{row:Object,index:Number,column:{type:Object,default:null},display:{type:String,default:"block"}},render:function(l,n){return(0,i.default)(void 0,void 0),l("div",{class:{"ivu-table-cell-slot":!0,"ivu-table-cell-slot-inline":n.props.display==="inline","ivu-table-cell-slot-inline-block":n.props.display==="inline-block"}},n.injections.tableRoot.$scopedSlots[n.props.column.slot]({row:n.props.row,column:n.props.column,index:n.props.index}))}.bind(void 0)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"cell",class:e.classes},[e.renderType==="index"?[n("span",[e._v(e._s(e.column.indexMethod?e.column.indexMethod(e.row,e.naturalIndex):e.naturalIndex+1))])]:e._e(),e._v(" "),e.renderType==="selection"?[n("Checkbox",{attrs:{value:e.checked,disabled:e.disabled},on:{"on-change":e.toggleSelect},nativeOn:{click:function(o){return o.stopPropagation(),e.handleClick(o)}}})]:e._e(),e._v(" "),e.showLevel?n("div",{staticClass:"ivu-table-cell-tree-level",style:e.treeLevelStyle}):e._e(),e._v(" "),e.showChildren?n("div",{staticClass:"ivu-table-cell-tree",class:{"ivu-table-cell-tree-loading":e.childrenLoading},on:{click:function(o){return o.preventDefault(),o.stopPropagation(),e.handleToggleTree(o)}}},[e.childrenLoading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e.childrenExpand?n("Icon",{attrs:{type:"ios-remove"}}):n("Icon",{attrs:{type:"ios-add"}})],1):e.showTreeNode?n("div",{staticClass:"ivu-table-cell-tree ivu-table-cell-tree-empty"}):e._e(),e._v(" "),e.renderType==="html"?[n("span",{domProps:{innerHTML:e._s(e.row[e.column.key])}})]:e._e(),e._v(" "),e.renderType==="normal"?[e.column.tooltip?[n("Tooltip",{staticClass:"ivu-table-cell-tooltip",attrs:{transfer:"",content:e.row[e.column.key],theme:e.column.tooltipTheme?e.column.tooltipTheme:e.tableRoot.tooltipTheme,disabled:!e.showTooltip,"max-width":e.column.tooltipMaxWidth?e.column.tooltipMaxWidth:e.tableRoot.tooltipMaxWidth}},[n("span",{ref:"content",staticClass:"ivu-table-cell-tooltip-content",on:{mouseenter:e.handleTooltipIn}},[e._v(e._s(e.row[e.column.key]))])])]:n("span",[e._v(e._s(e.row[e.column.key]))])]:e._e(),e._v(" "),e.renderType==="expand"&&!e.row._disableExpand?[n("div",{class:e.expandCls,on:{click:e.toggleExpand}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]:e._e(),e._v(" "),e.renderType==="render"?n("table-expand",{attrs:{row:e.row,column:e.column,index:e.index,render:e.column.render}}):e._e(),e._v(" "),e.renderType==="slot"?n("table-slot",{attrs:{row:e.row,column:e.column,display:e.column.display||"block",index:e.index}}):e._e()],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(241),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(577);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{staticStyle:{overflow:"hidden"}},[n("table",{staticClass:"ivu-table-summary",style:e.styleObject,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("colgroup",e._l(e.columns,function(t,o){return n("col",{attrs:{width:e.setCellWidth(t)}})}),0),e._v(" "),n("tbody",{class:[e.prefixCls+"-tbody"]},[n("tr",{staticClass:"ivu-table-row"},e._l(e.columns,function(t,o){return n("td",{class:e.alignCls(t)},[n("div",{staticClass:"ivu-table-cell",class:e.cellCls(t)},[n("span",[e._v(e._s(e.data[t.key].value))])])])}),0)])])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(21),i=t(s),f=r(15),e=t(f),l=r(1),n=t(l);h.default=c;function t(g){return g&&g.__esModule?g:{default:g}}var o=`\r +`,d=function(g,p,v){var y=v.separator,b=v.quoted;(0,n.default)(void 0,void 0);var A=p.map(function(x){return(0,n.default)(void 0,void 0),b?(x=typeof x=="string"?x.replace(/"/g,'"'):x,'"'+String(x)+'"'):x}.bind(void 0));g.push(A.join(y))}.bind(void 0),u={separator:",",quoted:!1};function c(g,p,v){var y=this,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;v=(0,e.default)({},u,v);var A=void 0,x=[],E=[];return g?(A=g.map(function(S){return(0,n.default)(this,y),typeof S=="string"?S:(b||E.push(typeof S.title<"u"?S.title:S.key),S.key)}.bind(this)),E.length>0&&d(x,E,v)):(A=[],p.forEach(function(S){(0,n.default)(this,y),Array.isArray(S)||(A=A.concat((0,i.default)(S)))}.bind(this)),A.length>0&&(A=A.filter(function(S,C,T){return(0,n.default)(this,y),T.indexOf(S)===C}.bind(this)),b||d(x,A,v))),Array.isArray(p)&&p.forEach(function(S){(0,n.default)(this,y),Array.isArray(S)||(S=A.map(function(C){return(0,n.default)(this,y),typeof S[C]<"u"?S[C]:""}.bind(this))),d(x,S,v)}.bind(this)),x.join(o)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});function s(f){var e=navigator.userAgent;if(f==="ie"){var l=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1;if(l){var n=new RegExp("MSIE (\\d+\\.\\d+);");return n.test(e),parseFloat(RegExp.$1)}else return!1}else return e.indexOf(f)>-1}var i={_isIE11:function(){var e=0,l=/MSIE (\d+\.\d+);/.test(navigator.userAgent),n=!!navigator.userAgent.match(/Trident\/7.0/),t=navigator.userAgent.indexOf("rv:11.0");return l&&(e=Number(RegExp.$1)),navigator.appVersion.indexOf("MSIE 10")!==-1&&(e=10),n&&t!==-1&&(e=11),e===11},_isEdge:function(){return/Edge/.test(navigator.userAgent)},_getDownloadUrl:function(e){var l="\uFEFF";if(window.Blob&&window.URL&&window.URL.createObjectURL){var n=new Blob([l+e],{type:"text/csv"});return URL.createObjectURL(n)}else return"data:attachment/csv;charset=utf-8,"+l+encodeURIComponent(e)},download:function(e,l){if(s("ie")&&s("ie")<10){var n=window.top.open("about:blank","_blank");n.document.charset="utf-8",n.document.write(l),n.document.close(),n.document.execCommand("SaveAs",e),n.close()}else if(s("ie")===10||this._isIE11()||this._isEdge()){var t="\uFEFF",o=new Blob([t+l],{type:"text/csv"});navigator.msSaveBlob(o,e)}else{var d=document.createElement("a");d.download=e,d.href=this._getDownloadUrl(l),document.body.appendChild(d),d.click(),document.body.removeChild(d)}}};h.default=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.getRandomStr=h.convertToRows=h.getAllColumns=h.convertColumnOrder=void 0;var s=r(1),i=e(s),f=r(3);function e(d){return d&&d.__esModule?d:{default:d}}var l=function(d,u){(0,i.default)(void 0,void 0);var c=[],g=[];return d.forEach(function(p){(0,i.default)(void 0,void 0),p.fixed&&p.fixed===u?c.push(p):g.push(p)}.bind(void 0)),c.concat(g)}.bind(void 0);h.convertColumnOrder=l;var n=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,i.default)(void 0,void 0);var c=(0,f.deepCopy)(d),g=[];return c.forEach(function(p){(0,i.default)(void 0,void 0),p.children?(u&&g.push(p),g.push.apply(g,n(p.children,u))):g.push(p)}.bind(void 0)),g}.bind(void 0);h.getAllColumns=n;var t=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,i.default)(void 0,void 0);var c=u?u==="left"?(0,f.deepCopy)(l(d,"left")):(0,f.deepCopy)(l(d,"right")):(0,f.deepCopy)(d),g=1,p=function(A,x){if((0,i.default)(void 0,void 0),x&&(A.level=x.level+1,g<A.level&&(g=A.level)),A.children){var E=0;A.children.forEach(function(S){(0,i.default)(void 0,void 0),p(S,A),E+=S.colSpan}.bind(void 0)),A.colSpan=E}else A.colSpan=1}.bind(void 0);c.forEach(function(A){(0,i.default)(void 0,void 0),A.level=1,p(A)}.bind(void 0));for(var v=[],y=0;y<g;y++)v.push([]);var b=n(c,!0);return b.forEach(function(A){(0,i.default)(void 0,void 0),A.children?A.rowSpan=1:A.rowSpan=g-A.level+1,v[A.level-1].push(A)}.bind(void 0)),v}.bind(void 0);h.convertToRows=t;var o=function(){for(var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:32,c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",g=c.length,p="",v=0;v<u;v++)p+=c.charAt(Math.floor(Math.random()*g));return p};h.getRandomStr=o},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"tableWrap",class:e.wrapClasses,style:e.styles},[n("div",{class:e.classes},[e.showSlotHeader?n("div",{ref:"title",class:[e.prefixCls+"-title"]},[e._t("header")],2):e._e(),e._v(" "),e.showHeader?n("div",{ref:"header",class:[e.prefixCls+"-header"],on:{mousewheel:e.handleMouseWheel}},[n("table-head",{attrs:{"prefix-cls":e.prefixCls,styleObject:e.tableHeaderStyle,columns:e.cloneColumns,"column-rows":e.columnRows,"obj-data":e.objData,"columns-width":e.columnsWidth,data:e.rebuildData}})],1):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!(e.localeNoDataText&&(!e.data||e.data.length===0)||e.localeNoFilteredDataText&&(!e.rebuildData||e.rebuildData.length===0)),expression:"!((!!localeNoDataText && (!data || data.length === 0)) || (!!localeNoFilteredDataText && (!rebuildData || rebuildData.length === 0)))"}],ref:"body",class:[e.prefixCls+"-body"],style:e.bodyStyle,on:{scroll:e.handleBodyScroll}},[n("table-body",{ref:"tbody",attrs:{draggable:e.draggable,"prefix-cls":e.prefixCls,styleObject:e.tableStyle,columns:e.cloneColumns,data:e.rebuildData,"row-key":e.rowKey,"columns-width":e.columnsWidth,"obj-data":e.objData}})],1),e._v(" "),e.showSummary&&e.data&&e.data.length?n("table-summary",{ref:"summary",attrs:{"prefix-cls":e.prefixCls,styleObject:e.tableStyle,columns:e.cloneColumns,data:e.summaryData,"columns-width":e.columnsWidth}}):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!!e.localeNoDataText&&(!e.data||e.data.length===0)||!!e.localeNoFilteredDataText&&(!e.rebuildData||e.rebuildData.length===0),expression:"((!!localeNoDataText && (!data || data.length === 0)) || (!!localeNoFilteredDataText && (!rebuildData || rebuildData.length === 0)))"}],class:[e.prefixCls+"-tip"],style:e.bodyStyle,on:{scroll:e.handleBodyScroll}},[n("table",{attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[n("tbody",[n("tr",[n("td",{style:{height:e.bodyStyle.height,width:this.headerWidth+"px"}},[!e.data||e.data.length===0?n("span",{domProps:{innerHTML:e._s(e.localeNoDataText)}}):n("span",{domProps:{innerHTML:e._s(e.localeNoFilteredDataText)}})])])])])]),e._v(" "),e.isLeftFixed?n("div",{class:e.fixedTableClasses,style:e.fixedTableStyle},[e.showHeader?n("div",{class:e.fixedHeaderClasses},[n("table-head",{attrs:{fixed:"left","prefix-cls":e.prefixCls,styleObject:e.fixedTableStyle,columns:e.leftFixedColumns,"column-rows":e.columnRows,"fixed-column-rows":e.leftFixedColumnRows,"obj-data":e.objData,"columns-width":e.columnsWidth,data:e.rebuildData}})],1):e._e(),e._v(" "),n("div",{ref:"fixedBody",class:[e.prefixCls+"-fixed-body"],style:e.fixedBodyStyle,on:{mousewheel:e.handleFixedMousewheel,DOMMouseScroll:e.handleFixedMousewheel}},[n("table-body",{attrs:{fixed:"left",draggable:e.draggable,"prefix-cls":e.prefixCls,styleObject:e.fixedTableStyle,columns:e.leftFixedColumns,data:e.rebuildData,"row-key":e.rowKey,"columns-width":e.columnsWidth,"obj-data":e.objData}})],1),e._v(" "),e.showSummary&&e.data&&e.data.length?n("table-summary",{style:{"margin-top":e.showHorizontalScrollBar?e.scrollBarWidth+"px":0},attrs:{fixed:"left","prefix-cls":e.prefixCls,styleObject:e.fixedTableStyle,columns:e.leftFixedColumns,data:e.summaryData,"columns-width":e.columnsWidth}}):e._e()],1):e._e(),e._v(" "),e.isRightFixed?n("div",{class:e.fixedRightTableClasses,style:e.fixedRightTableStyle},[e.showHeader?n("div",{class:e.fixedHeaderClasses},[n("table-head",{attrs:{fixed:"right","prefix-cls":e.prefixCls,styleObject:e.fixedRightTableStyle,columns:e.rightFixedColumns,"column-rows":e.columnRows,"fixed-column-rows":e.rightFixedColumnRows,"obj-data":e.objData,"columns-width":e.columnsWidth,data:e.rebuildData}})],1):e._e(),e._v(" "),n("div",{ref:"fixedRightBody",class:[e.prefixCls+"-fixed-body"],style:e.fixedBodyStyle,on:{mousewheel:e.handleFixedMousewheel,DOMMouseScroll:e.handleFixedMousewheel}},[n("table-body",{attrs:{fixed:"right",draggable:e.draggable,"prefix-cls":e.prefixCls,styleObject:e.fixedRightTableStyle,columns:e.rightFixedColumns,data:e.rebuildData,"row-key":e.rowKey,"columns-width":e.columnsWidth,"obj-data":e.objData}})],1),e._v(" "),e.showSummary&&e.data&&e.data.length?n("table-summary",{style:{"margin-top":e.showHorizontalScrollBar?e.scrollBarWidth+"px":0},attrs:{fixed:"right","prefix-cls":e.prefixCls,styleObject:e.fixedRightTableStyle,columns:e.rightFixedColumns,data:e.summaryData,"columns-width":e.columnsWidth}}):e._e()],1):e._e(),e._v(" "),e.isRightFixed?n("div",{class:[e.prefixCls+"-fixed-right-header"],style:e.fixedRightHeaderStyle}):e._e(),e._v(" "),e.showSlotFooter?n("div",{ref:"footer",class:[e.prefixCls+"-footer"]},[e._t("footer")],2):e._e()],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showResizeLine,expression:"showResizeLine"}],ref:"resizeLine",staticClass:"ivu-table-resize-line"}),e._v(" "),e.showContextMenu?n("div",{staticClass:"ivu-table-context-menu",style:e.contextMenuStyles},[n("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,transfer:""},on:{"on-clickoutside":e.handleClickContextMenuOutside}},[n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e._t("contextMenu")],2)],1)],1):e._e(),e._v(" "),e.loading?n("Spin",{attrs:{fix:"",size:"large"}},[e._t("loading")],2):e._e()],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(583),i=l(s),f=r(585),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Pane=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(242),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(584);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"tabsWrap",class:e.classes},[n("div",{class:[e.prefixCls+"-bar"]},[e.showSlot?n("div",{class:[e.prefixCls+"-nav-right"]},[e._t("extra")],2):e._e(),e._v(" "),n("div",{ref:"navContainer",class:[e.prefixCls+"-nav-container"],attrs:{tabindex:"0"},on:{keydown:[e.handleTabKeyNavigation,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.handleTabKeyboardSelect(!1))}]}},[n("div",{ref:"navWrap",class:[e.prefixCls+"-nav-wrap",e.scrollable?e.prefixCls+"-nav-scrollable":""]},[n("span",{class:[e.prefixCls+"-nav-prev",e.scrollable?"":e.prefixCls+"-nav-scroll-disabled"],on:{click:e.scrollPrev}},[n("Icon",{attrs:{type:"ios-arrow-back"}})],1),e._v(" "),n("span",{class:[e.prefixCls+"-nav-next",e.scrollable?"":e.prefixCls+"-nav-scroll-disabled"],on:{click:e.scrollNext}},[n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),n("div",{ref:"navScroll",class:[e.prefixCls+"-nav-scroll"],on:{DOMMouseScroll:e.handleScroll,mousewheel:e.handleScroll}},[n("div",{ref:"nav",class:[e.prefixCls+"-nav"],style:e.navStyle},[n("div",{class:e.barClasses,style:e.barStyle}),e._v(" "),e._l(e.navList,function(t,o){return n("div",{class:e.tabCls(t),attrs:{draggable:e.draggable},on:{click:function(u){return e.handleChange(o)},dblclick:function(u){return e.handleDblclick(o)},contextmenu:function(u){return u.stopPropagation(),e.handleContextmenu(o,u)},selectstart:function(u){return u.stopPropagation(),e.handlePreventSelect(o,u)},dragstart:function(u){return e.handleDrag(o,u)},drop:function(u){return e.handleDrop(o,u)},dragover:function(u){u.preventDefault()}}},[t.icon!==""?n("Icon",{attrs:{type:t.icon}}):e._e(),e._v(" "),t.labelType==="function"?n("Render",{attrs:{render:t.label}}):[e._v(e._s(t.label))],e._v(" "),e.showClose(t)?n("Icon",{class:[e.prefixCls+"-close"],attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize},nativeOn:{click:function(u){return u.stopPropagation(),e.handleRemove(o)}}}):e._e()],2)})],2)])])])]),e._v(" "),n("div",{ref:"panes",class:e.contentClasses,style:e.contentStyle},[e._t("default")],2),e._v(" "),n("div",{staticClass:"ivu-tabs-context-menu",style:e.contextMenuStyles},[n("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,transfer:""},on:{"on-clickoutside":e.handleClickContextMenuOutside}},[n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e._t("contextMenu")],2)],1)],1)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(243),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(586);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],class:e.prefixCls,style:e.contentStyle},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(588),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(244),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(589);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return e.fade?n("transition",{attrs:{name:"fade"}},[n("div",{class:e.classes,style:e.wraperStyles,on:{click:function(o){return o.stopPropagation(),e.check(o)}}},[e.showDot?n("span",{class:e.dotClasses,style:e.bgColorStyle}):e._e(),e._v(" "),n("span",{class:e.textClasses,style:e.textColorStyle},[e._t("default")],2),e._v(" "),e.closable?n("Icon",{class:e.iconClass,attrs:{color:e.lineColor,type:"ios-close"},nativeOn:{click:function(o){return o.stopPropagation(),e.close(o)}}}):e._e()],1)]):n("div",{class:e.classes,style:e.wraperStyles,on:{click:function(o){return o.stopPropagation(),e.check(o)}}},[e.showDot?n("span",{class:e.dotClasses,style:e.bgColorStyle}):e._e(),e._v(" "),n("span",{class:e.textClasses,style:e.textColorStyle},[e._t("default")],2),e._v(" "),e.closable?n("Icon",{class:e.iconClass,attrs:{color:e.lineColor,type:"ios-close"},nativeOn:{click:function(o){return o.stopPropagation(),e.close(o)}}}):e._e()],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(591),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(245),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(593);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.getRelativeTime=void 0;var s=r(1),i=f(s);h.default=function(o,d){return t(o,d)};function f(o){return o&&o.__esModule?o:{default:o}}var e=function(o,d){return(0,i.default)(void 0,void 0),o<=d}.bind(void 0),l=function(o){return(0,i.default)(void 0,void 0),o<10?"0"+o:o}.bind(void 0),n=function(o,d){(0,i.default)(void 0,void 0);var u=new Date(o),c=u.getFullYear(),g=l(u.getMonth()+1),p=l(u.getDate()),v=l(u.getHours()),y=l(u.getMinutes()),b=l(u.getSeconds()),A="";return d==="year"?A=c+"-"+g+"-"+p+" "+v+":"+y+":"+b:A=g+"-"+p+" "+v+":"+y,A}.bind(void 0),t=h.getRelativeTime=function(o,d){(0,i.default)(void 0,void 0);var u=new Date().getTime(),c=e(o,u),g=u-o;c||(g=-g);var p="",v=c?d("i.time.before")||"前":d("i.time.after")||"后";return g<1e3?p=d("i.time.just")||"刚刚":g<6e4?p=parseInt(g/1e3)+(d("i.time.seconds")||"秒")+v:g>=6e4&&g<36e5?p=Math.floor(g/6e4)+(d("i.time.minutes")||"分钟")+v:g>=36e5&&g<864e5?p=Math.floor(g/36e5)+(d("i.time.hours")||"小时")+v:g>=864e5&&g<262386e4?p=Math.floor(g/864e5)+(d("i.time.days")||"天")+v:g>=262386e4&&g<=3156786e4&&c?p=n(o):p=n(o,"year"),p}.bind(void 0)},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("span",{class:e.classes,on:{click:e.handleClick}},[e._v(e._s(e.date))])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(595),i=l(s),f=r(597),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}i.default.Item=e.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(246),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(596);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:e.classes},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(247),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(598);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{class:e.itemClasses},[n("div",{class:e.tailClasses}),e._v(" "),n("div",{ref:"dot",class:e.headClasses,style:e.customColor},[e._t("dot")],2),e._v(" "),n("div",{class:e.contentClasses},[e._t("default")],2)])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(600),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=g(s),f=r(157),e=g(f),l=r(166),n=g(l),t=r(175),o=g(t),d=r(58),u=g(d),c=r(3);function g(p){return p&&p.__esModule?p:{default:p}}h.default={mixins:[e.default,u.default],components:{TimePickerPanel:n.default,RangeTimePickerPanel:o.default},props:{type:{validator:function(v){return(0,c.oneOf)(v,["time","timerange"])},default:"time"}},computed:{panel:function(){var v=this.type==="timerange";return v?"RangeTimePickerPanel":"TimePickerPanel"},ownPickerProps:function(){return{disabledHours:this.disabledHours,disabledMinutes:this.disabledMinutes,disabledSeconds:this.disabledSeconds,hideDisabledOptions:this.hideDisabledOptions}}},watch:{visible:function(v){var y=this;v&&this.$nextTick(function(){(0,i.default)(this,y);var b=(0,c.findComponentsDownward)(this,"TimeSpinner");b.forEach(function(A){return(0,i.default)(this,y),A.updateScroll()}.bind(this))}.bind(this))}}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(93),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(603),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(248),i=r.n(s);for(var f in s)f!=="default"&&function(g){r.d(h,g,function(){return s[g]})}(f);var e=r(0),l,n,t=!1,o=null,d=null,u=null,c=Object(e.a)(i.a,l,n,t,o,d,u);h.default=c.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(249),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(607);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(250),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(606);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls},[n("i-input",{attrs:{size:"small",icon:e.icon,placeholder:e.placeholder},on:{"on-click":e.handleClick},model:{value:e.currentQuery,callback:function(o){e.currentQuery=o},expression:"currentQuery"}})],1)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.listStyle},[n("div",{class:e.prefixCls+"-header"},[n("Checkbox",{attrs:{value:e.checkedAll,disabled:e.checkedAllDisabled},on:{"on-change":e.toggleSelectAll}}),e._v(" "),n("span",{class:e.prefixCls+"-header-title",on:{click:function(o){return e.toggleSelectAll(!e.checkedAll)}}},[e._v(e._s(e.title))]),e._v(" "),n("span",{class:e.prefixCls+"-header-count"},[e._v(e._s(e.count))])],1),e._v(" "),n("div",{class:e.bodyClasses},[e.filterable?n("div",{class:e.prefixCls+"-body-search-wrapper"},[n("Search",{attrs:{"prefix-cls":e.prefixCls+"-search",query:e.query,placeholder:e.filterPlaceholder},on:{"on-query-clear":e.handleQueryClear,"on-query-change":e.handleQueryChange}})],1):e._e(),e._v(" "),n("ul",{class:e.prefixCls+"-content"},[e._l(e.filterData,function(t){return n("li",{class:e.itemClasses(t),on:{click:function(d){return d.preventDefault(),e.select(t)}}},[n("Checkbox",{attrs:{value:e.isCheck(t),disabled:t.disabled}}),e._v(" "),n("span",{domProps:{innerHTML:e._s(e.showLabel(t))}})],1)}),e._v(" "),n("li",{class:e.prefixCls+"-content-not-found"},[e._v(e._s(e.notFoundText))])],2)]),e._v(" "),e.showFooter?n("div",{class:e.prefixCls+"-footer"},[e._t("default")],2):e._e()])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(251),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(609);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.prefixCls+"-operation"},[e.reverseOperation?[n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(o){return e.moveToRight(o)}}},[n("span",[e._v(e._s(e.operations[1]))]),e._v(" "),n("Icon",{attrs:{type:"ios-arrow-forward"}})],1),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(o){return e.moveToLeft(o)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),n("span",[e._v(e._s(e.operations[0]))])],1)]:[n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.rightActive},nativeOn:{click:function(o){return e.moveToLeft(o)}}},[n("Icon",{attrs:{type:"ios-arrow-back"}}),e._v(" "),n("span",[e._v(e._s(e.operations[0]))])],1),e._v(" "),n("i-button",{attrs:{type:"primary",size:"small",disabled:!e.leftActive},nativeOn:{click:function(o){return e.moveToRight(o)}}},[n("span",[e._v(e._s(e.operations[1]))]),e._v(" "),n("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(611),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(252),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(615);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(253),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(614);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default={name:"RenderCell",functional:!0,props:{render:Function,data:Object,node:Array},render:function(l,n){(0,i.default)(void 0,void 0);var t={root:n.props.node[0],node:n.props.node[1],data:n.props.data};return n.props.render(l,t)}.bind(void 0)}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("collapse-transition",{attrs:{appear:e.appear}},[n("ul",{class:e.classes},[n("li",{on:{contextmenu:function(o){return o.stopPropagation(),e.handleContextmenu(e.data,o)},selectstart:function(o){return o.stopPropagation(),e.handlePreventSelect(e.data,o)}}},[n("span",{class:e.arrowClasses,on:{click:e.handleExpand}},[e.showArrow?n("Icon",{attrs:{type:e.arrowType,custom:e.customArrowType,size:e.arrowSize}}):e._e(),e._v(" "),e.showLoading?n("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):e._e()],1),e._v(" "),e.showCheckbox?n("Checkbox",{attrs:{value:e.data.checked,indeterminate:e.data.indeterminate,disabled:e.data.disabled||e.data.disableCheckbox},nativeOn:{click:function(o){return o.preventDefault(),e.handleCheck(o)}}}):e._e(),e._v(" "),n("span",{class:e.titleClasses,on:{click:e.handleClickNode}},[e.data.render?n("Render",{attrs:{render:e.data.render,data:e.data,node:e.node}}):e.isParentRender?n("Render",{attrs:{render:e.parentRender,data:e.data,node:e.node}}):[e._v(e._s(e.data.title))]],2),e._v(" "),e._l(e.children,function(t,o){return e.data.expand?n("Tree-node",{key:o,attrs:{appear:e.appearByClickArrow,data:t,multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}}):e._e()})],2)])])},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{ref:"treeWrap",class:e.prefixCls},[e._l(e.stateTree,function(t,o){return n("Tree-node",{key:o,attrs:{data:t,visible:"",multiple:e.multiple,"show-checkbox":e.showCheckbox,"children-key":e.childrenKey}})}),e._v(" "),e.stateTree.length?e._e():n("div",{class:[e.prefixCls+"-empty"]},[e._v(e._s(e.localeEmptyText))]),e._v(" "),n("div",{staticClass:"ivu-tree-context-menu",style:e.contextMenuStyles},[n("Dropdown",{attrs:{trigger:"custom",visible:e.contextMenuVisible,transfer:""},on:{"on-clickoutside":e.handleClickContextMenuOutside}},[n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e._t("contextMenu")],2)],1)],1)],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(617),i=f(s);function f(e){return e&&e.__esModule?e:{default:e}}h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(254),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(621);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(255),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(619);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("ul",{class:[e.prefixCls+"-list"]},e._l(e.files,function(t){return n("li",{class:e.fileCls(t),on:{click:function(d){return e.handleClick(t)}}},[n("span",{on:{click:function(d){return e.handlePreview(t)}}},[n("Icon",{attrs:{type:e.format(t)}}),e._v(" "+e._s(t.name)+` + `)],1),e._v(" "),n("Icon",{directives:[{name:"show",rawName:"v-show",value:t.status==="finished",expression:"file.status === 'finished'"}],class:[e.prefixCls+"-list-remove"],attrs:{type:"ios-close"},nativeOn:{click:function(d){return e.handleRemove(t)}}}),e._v(" "),n("transition",{attrs:{name:"fade"}},[t.showProgress?n("i-progress",{attrs:{"stroke-width":2,percent:e.parsePercentage(t.percentage),status:t.status==="finished"&&t.showProgress?"success":"normal"}}):e._e()],1)],1)}),0)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(1),i=l(s),f=r(21),e=l(f);h.default=o;function l(d){return d&&d.__esModule?d:{default:d}}function n(d,u,c){var g="fail to post "+String(d)+" "+String(c.status)+"'",p=new Error(g);return p.status=c.status,p.method="post",p.url=d,p}function t(d){var u=d.responseText||d.response;if(!u)return u;try{return JSON.parse(u)}catch{return u}}function o(d){var u=this;if(!(typeof XMLHttpRequest>"u")){var c=new XMLHttpRequest,g=d.action;c.upload&&(c.upload.onprogress=function(A){A.total>0&&(A.percent=A.loaded/A.total*100),d.onProgress(A)});var p=new FormData;d.data&&(0,e.default)(d.data).map(function(b){(0,i.default)(this,u),p.append(b,d.data[b])}.bind(this)),p.append(d.filename,d.file),c.onerror=function(A){d.onError(A)},c.onload=function(){if(c.status<200||c.status>=300)return d.onError(n(g,d,c),t(c));d.onSuccess(t(c))},c.open("post",g,!0),d.withCredentials&&"withCredentials"in c&&(c.withCredentials=!0);var v=d.headers||{};for(var y in v)v.hasOwnProperty(y)&&v[y]!==null&&c.setRequestHeader(y,v[y]);c.send(p)}}},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:[e.prefixCls]},[n("div",{class:e.classes,on:{click:e.handleClick,drop:function(o){return o.preventDefault(),e.onDrop(o)},paste:e.handlePaste,dragover:function(o){o.preventDefault(),e.dragOver=!0},dragleave:function(o){o.preventDefault(),e.dragOver=!1}}},[n("input",{ref:"input",class:[e.prefixCls+"-input"],attrs:{type:"file",multiple:e.multiple,webkitdirectory:e.webkitdirectory,accept:e.accept},on:{change:e.handleChange}}),e._v(" "),e._t("default")],2),e._v(" "),e._t("tip"),e._v(" "),e.showUploadList?n("upload-list",{attrs:{files:e.fileList},on:{"on-file-remove":e.handleRemove,"on-file-preview":e.handlePreview}}):e._e()],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.Col=h.Row=void 0;var s=r(623),i=l(s),f=r(625),e=l(f);function l(n){return n&&n.__esModule?n:{default:n}}h.Row=i.default,h.Col=e.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(256),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(624);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(257),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(626);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},i=[];h.render=s,h.staticRenderFns=i},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0}),h.OptionGroup=h.Option=h.Select=void 0;var s=r(74),i=t(s),f=r(81),e=t(f),l=r(628),n=t(l);function t(o){return o&&o.__esModule?o:{default:o}}h.Select=i.default,h.Option=e.default,h.OptionGroup=n.default,h.default=i.default},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=r(258),i=r.n(s);for(var f in s)f!=="default"&&function(c){r.d(h,c,function(){return s[c]})}(f);var e=r(629);r.n(e);var l=r(0),n=!1,t=null,o=null,d=null,u=Object(l.a)(i.a,e.render,e.staticRenderFns,n,t,o,d);h.default=u.exports},function(_,h,r){Object.defineProperty(h,"__esModule",{value:!0});var s=function(){var e=this,l=e.$createElement,n=e._self._c||l;return n("li",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!hidden"}],class:[e.prefixCls+"-wrap"]},[n("div",{class:[e.prefixCls+"-title"]},[e._v(e._s(e.label))]),e._v(" "),n("ul",[n("li",{ref:"options",class:[e.prefixCls]},[e._t("default")],2)])])},i=[];h.render=s,h.staticRenderFns=i}])})})(Np);var cb=Np.exports;const db=zn(cb);var hb=function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("div",{attrs:{id:"app"}},[a.isRouterAlive?w("router-view"):a._e()],1)},pb=[];function ki(a,m,w,_,h,r,s,i){var f=typeof a=="function"?a.options:a;m&&(f.render=m,f.staticRenderFns=w,f._compiled=!0),_&&(f.functional=!0),r&&(f._scopeId="data-v-"+r);var e;if(s?(e=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!t&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),h&&h.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=e):h&&(e=i?function(){h.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:h),e)if(f.functional){f._injectStyles=e;var l=f.render;f.render=function(o,d){return e.call(d),l(o,d)}}else{var n=f.beforeCreate;f.beforeCreate=n?[].concat(n,e):[e]}return{exports:a,options:f}}const vb={name:"App",provide(){return{reload:this.reload}},data(){return{isRouterAlive:!0}},methods:{reload(){this.isRouterAlive=!1,this.$nextTick(function(){this.isRouterAlive=!0})}}},zh={};var mb=ki(vb,hb,pb,!1,yb,null,null,null);function yb(a){for(let m in zh)this[m]=zh[m]}const gb=function(){return mb.exports}();/*! + * vue-router v3.6.5 + * (c) 2022 Evan You + * @license MIT + */function ur(a,m){for(var w in m)a[w]=m[w];return a}var bb=/[!'()*]/g,_b=function(a){return"%"+a.charCodeAt(0).toString(16)},wb=/%2C/g,Yn=function(a){return encodeURIComponent(a).replace(bb,_b).replace(wb,",")};function lf(a){try{return decodeURIComponent(a)}catch{}return a}function xb(a,m,w){m===void 0&&(m={});var _=w||Ab,h;try{h=_(a||"")}catch{h={}}for(var r in m){var s=m[r];h[r]=Array.isArray(s)?s.map(qh):qh(s)}return h}var qh=function(a){return a==null||typeof a=="object"?a:String(a)};function Ab(a){var m={};return a=a.trim().replace(/^(\?|#|&)/,""),a&&a.split("&").forEach(function(w){var _=w.replace(/\+/g," ").split("="),h=lf(_.shift()),r=_.length>0?lf(_.join("=")):null;m[h]===void 0?m[h]=r:Array.isArray(m[h])?m[h].push(r):m[h]=[m[h],r]}),m}function Eb(a){var m=a?Object.keys(a).map(function(w){var _=a[w];if(_===void 0)return"";if(_===null)return Yn(w);if(Array.isArray(_)){var h=[];return _.forEach(function(r){r!==void 0&&(r===null?h.push(Yn(w)):h.push(Yn(w)+"="+Yn(r)))}),h.join("&")}return Yn(w)+"="+Yn(_)}).filter(function(w){return w.length>0}).join("&"):null;return m?"?"+m:""}var Xo=/\/?$/;function Zo(a,m,w,_){var h=_&&_.options.stringifyQuery,r=m.query||{};try{r=ff(r)}catch{}var s={name:m.name||a&&a.name,meta:a&&a.meta||{},path:m.path||"/",hash:m.hash||"",query:r,params:m.params||{},fullPath:$h(m,h),matched:a?Sb(a):[]};return w&&(s.redirectedFrom=$h(w,h)),Object.freeze(s)}function ff(a){if(Array.isArray(a))return a.map(ff);if(a&&typeof a=="object"){var m={};for(var w in a)m[w]=ff(a[w]);return m}else return a}var bn=Zo(null,{path:"/"});function Sb(a){for(var m=[];a;)m.unshift(a),a=a.parent;return m}function $h(a,m){var w=a.path,_=a.query;_===void 0&&(_={});var h=a.hash;h===void 0&&(h="");var r=m||Eb;return(w||"/")+r(_)+h}function Lp(a,m,w){return m===bn?a===m:m?a.path&&m.path?a.path.replace(Xo,"")===m.path.replace(Xo,"")&&(w||a.hash===m.hash&&Co(a.query,m.query)):a.name&&m.name?a.name===m.name&&(w||a.hash===m.hash&&Co(a.query,m.query)&&Co(a.params,m.params)):!1:!1}function Co(a,m){if(a===void 0&&(a={}),m===void 0&&(m={}),!a||!m)return a===m;var w=Object.keys(a).sort(),_=Object.keys(m).sort();return w.length!==_.length?!1:w.every(function(h,r){var s=a[h],i=_[r];if(i!==h)return!1;var f=m[h];return s==null||f==null?s===f:typeof s=="object"&&typeof f=="object"?Co(s,f):String(s)===String(f)})}function Cb(a,m){return a.path.replace(Xo,"/").indexOf(m.path.replace(Xo,"/"))===0&&(!m.hash||a.hash===m.hash)&&kb(a.query,m.query)}function kb(a,m){for(var w in m)if(!(w in a))return!1;return!0}function Up(a){for(var m=0;m<a.matched.length;m++){var w=a.matched[m];for(var _ in w.instances){var h=w.instances[_],r=w.enteredCbs[_];if(!(!h||!r)){delete w.enteredCbs[_];for(var s=0;s<r.length;s++)h._isBeingDestroyed||r[s](h)}}}}var Ob={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(m,w){var _=w.props,h=w.children,r=w.parent,s=w.data;s.routerView=!0;for(var i=r.$createElement,f=_.name,e=r.$route,l=r._routerViewCache||(r._routerViewCache={}),n=0,t=!1;r&&r._routerRoot!==r;){var o=r.$vnode?r.$vnode.data:{};o.routerView&&n++,o.keepAlive&&r._directInactive&&r._inactive&&(t=!0),r=r.$parent}if(s.routerViewDepth=n,t){var d=l[f],u=d&&d.component;return u?(d.configProps&&Wh(u,s,d.route,d.configProps),i(u,s,h)):i()}var c=e.matched[n],g=c&&c.components[f];if(!c||!g)return l[f]=null,i();l[f]={component:g},s.registerRouteInstance=function(v,y){var b=c.instances[f];(y&&b!==v||!y&&b===v)&&(c.instances[f]=y)},(s.hook||(s.hook={})).prepatch=function(v,y){c.instances[f]=y.componentInstance},s.hook.init=function(v){v.data.keepAlive&&v.componentInstance&&v.componentInstance!==c.instances[f]&&(c.instances[f]=v.componentInstance),Up(e)};var p=c.props&&c.props[f];return p&&(ur(l[f],{route:e,configProps:p}),Wh(g,s,e,p)),i(g,s,h)}};function Wh(a,m,w,_){var h=m.props=Pb(w,_);if(h){h=m.props=ur({},h);var r=m.attrs=m.attrs||{};for(var s in h)(!a.props||!(s in a.props))&&(r[s]=h[s],delete h[s])}}function Pb(a,m){switch(typeof m){case"undefined":return;case"object":return m;case"function":return m(a);case"boolean":return m?a.params:void 0}}function Fp(a,m,w){var _=a.charAt(0);if(_==="/")return a;if(_==="?"||_==="#")return m+a;var h=m.split("/");(!w||!h[h.length-1])&&h.pop();for(var r=a.replace(/^\//,"").split("/"),s=0;s<r.length;s++){var i=r[s];i===".."?h.pop():i!=="."&&h.push(i)}return h[0]!==""&&h.unshift(""),h.join("/")}function Tb(a){var m="",w="",_=a.indexOf("#");_>=0&&(m=a.slice(_),a=a.slice(0,_));var h=a.indexOf("?");return h>=0&&(w=a.slice(h+1),a=a.slice(0,h)),{path:a,query:w,hash:m}}function an(a){return a.replace(/\/(?:\s*\/)+/g,"/")}var es=Array.isArray||function(a){return Object.prototype.toString.call(a)=="[object Array]"},Oi=zp,Mb=Mc,Ib=Nb,Db=jp,Bb=Hp,Rb=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Mc(a,m){for(var w=[],_=0,h=0,r="",s=m&&m.delimiter||"/",i;(i=Rb.exec(a))!=null;){var f=i[0],e=i[1],l=i.index;if(r+=a.slice(h,l),h=l+f.length,e){r+=e[1];continue}var n=a[h],t=i[2],o=i[3],d=i[4],u=i[5],c=i[6],g=i[7];r&&(w.push(r),r="");var p=t!=null&&n!=null&&n!==t,v=c==="+"||c==="*",y=c==="?"||c==="*",b=i[2]||s,A=d||u;w.push({name:o||_++,prefix:t||"",delimiter:b,optional:y,repeat:v,partial:p,asterisk:!!g,pattern:A?Fb(A):g?".*":"[^"+ko(b)+"]+?"})}return h<a.length&&(r+=a.substr(h)),r&&w.push(r),w}function Nb(a,m){return jp(Mc(a,m),m)}function Lb(a){return encodeURI(a).replace(/[\/?#]/g,function(m){return"%"+m.charCodeAt(0).toString(16).toUpperCase()})}function Ub(a){return encodeURI(a).replace(/[?#]/g,function(m){return"%"+m.charCodeAt(0).toString(16).toUpperCase()})}function jp(a,m){for(var w=new Array(a.length),_=0;_<a.length;_++)typeof a[_]=="object"&&(w[_]=new RegExp("^(?:"+a[_].pattern+")$",Dc(m)));return function(h,r){for(var s="",i=h||{},f=r||{},e=f.pretty?Lb:encodeURIComponent,l=0;l<a.length;l++){var n=a[l];if(typeof n=="string"){s+=n;continue}var t=i[n.name],o;if(t==null)if(n.optional){n.partial&&(s+=n.prefix);continue}else throw new TypeError('Expected "'+n.name+'" to be defined');if(es(t)){if(!n.repeat)throw new TypeError('Expected "'+n.name+'" to not repeat, but received `'+JSON.stringify(t)+"`");if(t.length===0){if(n.optional)continue;throw new TypeError('Expected "'+n.name+'" to not be empty')}for(var d=0;d<t.length;d++){if(o=e(t[d]),!w[l].test(o))throw new TypeError('Expected all "'+n.name+'" to match "'+n.pattern+'", but received `'+JSON.stringify(o)+"`");s+=(d===0?n.prefix:n.delimiter)+o}continue}if(o=n.asterisk?Ub(t):e(t),!w[l].test(o))throw new TypeError('Expected "'+n.name+'" to match "'+n.pattern+'", but received "'+o+'"');s+=n.prefix+o}return s}}function ko(a){return a.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Fb(a){return a.replace(/([=!:$\/()])/g,"\\$1")}function Ic(a,m){return a.keys=m,a}function Dc(a){return a&&a.sensitive?"":"i"}function jb(a,m){var w=a.source.match(/\((?!\?)/g);if(w)for(var _=0;_<w.length;_++)m.push({name:_,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ic(a,m)}function Hb(a,m,w){for(var _=[],h=0;h<a.length;h++)_.push(zp(a[h],m,w).source);var r=new RegExp("(?:"+_.join("|")+")",Dc(w));return Ic(r,m)}function zb(a,m,w){return Hp(Mc(a,w),m,w)}function Hp(a,m,w){es(m)||(w=m||w,m=[]),w=w||{};for(var _=w.strict,h=w.end!==!1,r="",s=0;s<a.length;s++){var i=a[s];if(typeof i=="string")r+=ko(i);else{var f=ko(i.prefix),e="(?:"+i.pattern+")";m.push(i),i.repeat&&(e+="(?:"+f+e+")*"),i.optional?i.partial?e=f+"("+e+")?":e="(?:"+f+"("+e+"))?":e=f+"("+e+")",r+=e}}var l=ko(w.delimiter||"/"),n=r.slice(-l.length)===l;return _||(r=(n?r.slice(0,-l.length):r)+"(?:"+l+"(?=$))?"),h?r+="$":r+=_&&n?"":"(?="+l+"|$)",Ic(new RegExp("^"+r,Dc(w)),m)}function zp(a,m,w){return es(m)||(w=m||w,m=[]),w=w||{},a instanceof RegExp?jb(a,m):es(a)?Hb(a,m,w):zb(a,m,w)}Oi.parse=Mb;Oi.compile=Ib;Oi.tokensToFunction=Db;Oi.tokensToRegExp=Bb;var Vh=Object.create(null);function Oo(a,m,w){m=m||{};try{var _=Vh[a]||(Vh[a]=Oi.compile(a));return typeof m.pathMatch=="string"&&(m[0]=m.pathMatch),_(m,{pretty:!0})}catch{return""}finally{delete m[0]}}function Bc(a,m,w,_){var h=typeof a=="string"?{path:a}:a;if(h._normalized)return h;if(h.name){h=ur({},a);var r=h.params;return r&&typeof r=="object"&&(h.params=ur({},r)),h}if(!h.path&&h.params&&m){h=ur({},h),h._normalized=!0;var s=ur(ur({},m.params),h.params);if(m.name)h.name=m.name,h.params=s;else if(m.matched.length){var i=m.matched[m.matched.length-1].path;h.path=Oo(i,s,"path "+m.path)}return h}var f=Tb(h.path||""),e=m&&m.path||"/",l=f.path?Fp(f.path,e,w||h.append):e,n=xb(f.query,h.query,_&&_.options.parseQuery),t=h.hash||f.hash;return t&&t.charAt(0)!=="#"&&(t="#"+t),{_normalized:!0,path:l,query:n,hash:t}}var qb=[String,Object],$b=[String,Array],Kh=function(){},Wb={name:"RouterLink",props:{to:{type:qb,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:$b,default:"click"}},render:function(m){var w=this,_=this.$router,h=this.$route,r=_.resolve(this.to,h,this.append),s=r.location,i=r.route,f=r.href,e={},l=_.options.linkActiveClass,n=_.options.linkExactActiveClass,t=l??"router-link-active",o=n??"router-link-exact-active",d=this.activeClass==null?t:this.activeClass,u=this.exactActiveClass==null?o:this.exactActiveClass,c=i.redirectedFrom?Zo(null,Bc(i.redirectedFrom),null,_):i;e[u]=Lp(h,c,this.exactPath),e[d]=this.exact||this.exactPath?e[u]:Cb(h,c);var g=e[u]?this.ariaCurrentValue:null,p=function(k){Gh(k)&&(w.replace?_.replace(s,Kh):_.push(s,Kh))},v={click:Gh};Array.isArray(this.event)?this.event.forEach(function(k){v[k]=p}):v[this.event]=p;var y={class:e},b=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:f,route:i,navigate:p,isActive:e[d],isExactActive:e[u]});if(b){if(b.length===1)return b[0];if(b.length>1||!b.length)return b.length===0?m():m("span",{},b)}if(this.tag==="a")y.on=v,y.attrs={href:f,"aria-current":g};else{var A=qp(this.$slots.default);if(A){A.isStatic=!1;var x=A.data=ur({},A.data);x.on=x.on||{};for(var E in x.on){var S=x.on[E];E in v&&(x.on[E]=Array.isArray(S)?S:[S])}for(var C in v)C in x.on?x.on[C].push(v[C]):x.on[C]=p;var T=A.data.attrs=ur({},A.data.attrs);T.href=f,T["aria-current"]=g}else y.on=v}return m(this.tag,y,this.$slots.default)}};function Gh(a){if(!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)&&!a.defaultPrevented&&!(a.button!==void 0&&a.button!==0)){if(a.currentTarget&&a.currentTarget.getAttribute){var m=a.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(m))return}return a.preventDefault&&a.preventDefault(),!0}}function qp(a){if(a){for(var m,w=0;w<a.length;w++)if(m=a[w],m.tag==="a"||m.children&&(m=qp(m.children)))return m}}var ts;function cf(a){if(!(cf.installed&&ts===a)){cf.installed=!0,ts=a;var m=function(h){return h!==void 0},w=function(h,r){var s=h.$options._parentVnode;m(s)&&m(s=s.data)&&m(s=s.registerRouteInstance)&&s(h,r)};a.mixin({beforeCreate:function(){m(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),a.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,w(this,this)},destroyed:function(){w(this)}}),Object.defineProperty(a.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(a.prototype,"$route",{get:function(){return this._routerRoot._route}}),a.component("RouterView",Ob),a.component("RouterLink",Wb);var _=a.config.optionMergeStrategies;_.beforeRouteEnter=_.beforeRouteLeave=_.beforeRouteUpdate=_.created}}var Ga=typeof window<"u";function ho(a,m,w,_,h){var r=m||[],s=w||Object.create(null),i=_||Object.create(null);a.forEach(function(l){df(r,s,i,l,h)});for(var f=0,e=r.length;f<e;f++)r[f]==="*"&&(r.push(r.splice(f,1)[0]),e--,f--);return{pathList:r,pathMap:s,nameMap:i}}function df(a,m,w,_,h,r){var s=_.path,i=_.name,f=_.pathToRegexpOptions||{},e=Kb(s,h,f.strict);typeof _.caseSensitive=="boolean"&&(f.sensitive=_.caseSensitive);var l={path:e,regex:Vb(e,f),components:_.components||{default:_.component},alias:_.alias?typeof _.alias=="string"?[_.alias]:_.alias:[],instances:{},enteredCbs:{},name:i,parent:h,matchAs:r,redirect:_.redirect,beforeEnter:_.beforeEnter,meta:_.meta||{},props:_.props==null?{}:_.components?_.props:{default:_.props}};if(_.children&&_.children.forEach(function(u){var c=r?an(r+"/"+u.path):void 0;df(a,m,w,u,l,c)}),m[l.path]||(a.push(l.path),m[l.path]=l),_.alias!==void 0)for(var n=Array.isArray(_.alias)?_.alias:[_.alias],t=0;t<n.length;++t){var o=n[t],d={path:o,children:_.children};df(a,m,w,d,h,l.path||"/")}i&&(w[i]||(w[i]=l))}function Vb(a,m){var w=Oi(a,[],m);return w}function Kb(a,m,w){return w||(a=a.replace(/\/$/,"")),a[0]==="/"||m==null?a:an(m.path+"/"+a)}function Gb(a,m){var w=ho(a),_=w.pathList,h=w.pathMap,r=w.nameMap;function s(o){ho(o,_,h,r)}function i(o,d){var u=typeof o!="object"?r[o]:void 0;ho([d||o],_,h,r,u),u&&u.alias.length&&ho(u.alias.map(function(c){return{path:c,children:[d]}}),_,h,r,u)}function f(){return _.map(function(o){return h[o]})}function e(o,d,u){var c=Bc(o,d,!1,m),g=c.name;if(g){var p=r[g];if(!p)return t(null,c);var v=p.regex.keys.filter(function(E){return!E.optional}).map(function(E){return E.name});if(typeof c.params!="object"&&(c.params={}),d&&typeof d.params=="object")for(var y in d.params)!(y in c.params)&&v.indexOf(y)>-1&&(c.params[y]=d.params[y]);return c.path=Oo(p.path,c.params),t(p,c,u)}else if(c.path){c.params={};for(var b=0;b<_.length;b++){var A=_[b],x=h[A];if(Jb(x.regex,c.path,c.params))return t(x,c,u)}}return t(null,c)}function l(o,d){var u=o.redirect,c=typeof u=="function"?u(Zo(o,d,null,m)):u;if(typeof c=="string"&&(c={path:c}),!c||typeof c!="object")return t(null,d);var g=c,p=g.name,v=g.path,y=d.query,b=d.hash,A=d.params;if(y=g.hasOwnProperty("query")?g.query:y,b=g.hasOwnProperty("hash")?g.hash:b,A=g.hasOwnProperty("params")?g.params:A,p)return r[p],e({_normalized:!0,name:p,query:y,hash:b,params:A},void 0,d);if(v){var x=Qb(v,o),E=Oo(x,A);return e({_normalized:!0,path:E,query:y,hash:b},void 0,d)}else return t(null,d)}function n(o,d,u){var c=Oo(u,d.params),g=e({_normalized:!0,path:c});if(g){var p=g.matched,v=p[p.length-1];return d.params=g.params,t(v,d)}return t(null,d)}function t(o,d,u){return o&&o.redirect?l(o,u||d):o&&o.matchAs?n(o,d,o.matchAs):Zo(o,d,u,m)}return{match:e,addRoute:i,getRoutes:f,addRoutes:s}}function Jb(a,m,w){var _=m.match(a);if(_){if(!w)return!0}else return!1;for(var h=1,r=_.length;h<r;++h){var s=a.keys[h-1];s&&(w[s.name||"pathMatch"]=typeof _[h]=="string"?lf(_[h]):_[h])}return!0}function Qb(a,m){return Fp(a,m.parent?m.parent.path:"/",!0)}var Yb=Ga&&window.performance&&window.performance.now?window.performance:Date;function $p(){return Yb.now().toFixed(3)}var Wp=$p();function Ms(){return Wp}function Vp(a){return Wp=a}var Kp=Object.create(null);function Gp(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var a=window.location.protocol+"//"+window.location.host,m=window.location.href.replace(a,""),w=ur({},window.history.state);return w.key=Ms(),window.history.replaceState(w,"",m),window.addEventListener("popstate",Jh),function(){window.removeEventListener("popstate",Jh)}}function on(a,m,w,_){if(a.app){var h=a.options.scrollBehavior;h&&a.app.$nextTick(function(){var r=Xb(),s=h.call(a,m,w,_?r:null);s&&(typeof s.then=="function"?s.then(function(i){Xh(i,r)}).catch(function(i){}):Xh(s,r))})}}function Jp(){var a=Ms();a&&(Kp[a]={x:window.pageXOffset,y:window.pageYOffset})}function Jh(a){Jp(),a.state&&a.state.key&&Vp(a.state.key)}function Xb(){var a=Ms();if(a)return Kp[a]}function Zb(a,m){var w=document.documentElement,_=w.getBoundingClientRect(),h=a.getBoundingClientRect();return{x:h.left-_.left-m.x,y:h.top-_.top-m.y}}function Qh(a){return mi(a.x)||mi(a.y)}function Yh(a){return{x:mi(a.x)?a.x:window.pageXOffset,y:mi(a.y)?a.y:window.pageYOffset}}function e4(a){return{x:mi(a.x)?a.x:0,y:mi(a.y)?a.y:0}}function mi(a){return typeof a=="number"}var t4=/^#\d/;function Xh(a,m){var w=typeof a=="object";if(w&&typeof a.selector=="string"){var _=t4.test(a.selector)?document.getElementById(a.selector.slice(1)):document.querySelector(a.selector);if(_){var h=a.offset&&typeof a.offset=="object"?a.offset:{};h=e4(h),m=Zb(_,h)}else Qh(a)&&(m=Yh(a))}else w&&Qh(a)&&(m=Yh(a));m&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:m.x,top:m.y,behavior:a.behavior}):window.scrollTo(m.x,m.y))}var sn=Ga&&function(){var a=window.navigator.userAgent;return(a.indexOf("Android 2.")!==-1||a.indexOf("Android 4.0")!==-1)&&a.indexOf("Mobile Safari")!==-1&&a.indexOf("Chrome")===-1&&a.indexOf("Windows Phone")===-1?!1:window.history&&typeof window.history.pushState=="function"}();function rs(a,m){Jp();var w=window.history;try{if(m){var _=ur({},w.state);_.key=Ms(),w.replaceState(_,"",a)}else w.pushState({key:Vp($p())},"",a)}catch{window.location[m?"replace":"assign"](a)}}function hf(a){rs(a,!0)}var Wn={redirected:2,aborted:4,cancelled:8,duplicated:16};function r4(a,m){return Is(a,m,Wn.redirected,'Redirected when going from "'+a.fullPath+'" to "'+o4(m)+'" via a navigation guard.')}function n4(a,m){var w=Is(a,m,Wn.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".');return w.name="NavigationDuplicated",w}function Zh(a,m){return Is(a,m,Wn.cancelled,'Navigation cancelled from "'+a.fullPath+'" to "'+m.fullPath+'" with a new navigation.')}function i4(a,m){return Is(a,m,Wn.aborted,'Navigation aborted from "'+a.fullPath+'" to "'+m.fullPath+'" via a navigation guard.')}function Is(a,m,w,_){var h=new Error(_);return h._isRouter=!0,h.from=a,h.to=m,h.type=w,h}var a4=["params","query","hash"];function o4(a){if(typeof a=="string")return a;if("path"in a)return a.path;var m={};return a4.forEach(function(w){w in a&&(m[w]=a[w])}),JSON.stringify(m,null,2)}function ns(a){return Object.prototype.toString.call(a).indexOf("Error")>-1}function Ds(a,m){return ns(a)&&a._isRouter&&(m==null||a.type===m)}function e1(a,m,w){var _=function(h){h>=a.length?w():a[h]?m(a[h],function(){_(h+1)}):_(h+1)};_(0)}function s4(a){return function(m,w,_){var h=!1,r=0,s=null;Qp(a,function(i,f,e,l){if(typeof i=="function"&&i.cid===void 0){h=!0,r++;var n=t1(function(u){l4(u)&&(u=u.default),i.resolved=typeof u=="function"?u:ts.extend(u),e.components[l]=u,r--,r<=0&&_()}),t=t1(function(u){var c="Failed to resolve async component "+l+": "+u;s||(s=ns(u)?u:new Error(c),_(s))}),o;try{o=i(n,t)}catch(u){t(u)}if(o)if(typeof o.then=="function")o.then(n,t);else{var d=o.component;d&&typeof d.then=="function"&&d.then(n,t)}}}),h||_()}}function Qp(a,m){return Yp(a.map(function(w){return Object.keys(w.components).map(function(_){return m(w.components[_],w.instances[_],w,_)})}))}function Yp(a){return Array.prototype.concat.apply([],a)}var u4=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function l4(a){return a.__esModule||u4&&a[Symbol.toStringTag]==="Module"}function t1(a){var m=!1;return function(){for(var w=[],_=arguments.length;_--;)w[_]=arguments[_];if(!m)return m=!0,a.apply(this,w)}}var mr=function(m,w){this.router=m,this.base=f4(w),this.current=bn,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};mr.prototype.listen=function(m){this.cb=m};mr.prototype.onReady=function(m,w){this.ready?m():(this.readyCbs.push(m),w&&this.readyErrorCbs.push(w))};mr.prototype.onError=function(m){this.errorCbs.push(m)};mr.prototype.transitionTo=function(m,w,_){var h=this,r;try{r=this.router.match(m,this.current)}catch(i){throw this.errorCbs.forEach(function(f){f(i)}),i}var s=this.current;this.confirmTransition(r,function(){h.updateRoute(r),w&&w(r),h.ensureURL(),h.router.afterHooks.forEach(function(i){i&&i(r,s)}),h.ready||(h.ready=!0,h.readyCbs.forEach(function(i){i(r)}))},function(i){_&&_(i),i&&!h.ready&&(!Ds(i,Wn.redirected)||s!==bn)&&(h.ready=!0,h.readyErrorCbs.forEach(function(f){f(i)}))})};mr.prototype.confirmTransition=function(m,w,_){var h=this,r=this.current;this.pending=m;var s=function(u){!Ds(u)&&ns(u)&&(h.errorCbs.length?h.errorCbs.forEach(function(c){c(u)}):console.error(u)),_&&_(u)},i=m.matched.length-1,f=r.matched.length-1;if(Lp(m,r)&&i===f&&m.matched[i]===r.matched[f])return this.ensureURL(),m.hash&&on(this.router,r,m,!1),s(n4(r,m));var e=c4(this.current.matched,m.matched),l=e.updated,n=e.deactivated,t=e.activated,o=[].concat(h4(n),this.router.beforeHooks,p4(l),t.map(function(u){return u.beforeEnter}),s4(t)),d=function(u,c){if(h.pending!==m)return s(Zh(r,m));try{u(m,r,function(g){g===!1?(h.ensureURL(!0),s(i4(r,m))):ns(g)?(h.ensureURL(!0),s(g)):typeof g=="string"||typeof g=="object"&&(typeof g.path=="string"||typeof g.name=="string")?(s(r4(r,m)),typeof g=="object"&&g.replace?h.replace(g):h.push(g)):c(g)})}catch(g){s(g)}};e1(o,d,function(){var u=v4(t),c=u.concat(h.router.resolveHooks);e1(c,d,function(){if(h.pending!==m)return s(Zh(r,m));h.pending=null,w(m),h.router.app&&h.router.app.$nextTick(function(){Up(m)})})})};mr.prototype.updateRoute=function(m){this.current=m,this.cb&&this.cb(m)};mr.prototype.setupListeners=function(){};mr.prototype.teardown=function(){this.listeners.forEach(function(m){m()}),this.listeners=[],this.current=bn,this.pending=null};function f4(a){if(!a)if(Ga){var m=document.querySelector("base");a=m&&m.getAttribute("href")||"/",a=a.replace(/^https?:\/\/[^\/]+/,"")}else a="/";return a.charAt(0)!=="/"&&(a="/"+a),a.replace(/\/$/,"")}function c4(a,m){var w,_=Math.max(a.length,m.length);for(w=0;w<_&&a[w]===m[w];w++);return{updated:m.slice(0,w),activated:m.slice(w),deactivated:a.slice(w)}}function Rc(a,m,w,_){var h=Qp(a,function(r,s,i,f){var e=d4(r,m);if(e)return Array.isArray(e)?e.map(function(l){return w(l,s,i,f)}):w(e,s,i,f)});return Yp(_?h.reverse():h)}function d4(a,m){return typeof a!="function"&&(a=ts.extend(a)),a.options[m]}function h4(a){return Rc(a,"beforeRouteLeave",Xp,!0)}function p4(a){return Rc(a,"beforeRouteUpdate",Xp)}function Xp(a,m){if(m)return function(){return a.apply(m,arguments)}}function v4(a){return Rc(a,"beforeRouteEnter",function(m,w,_,h){return m4(m,_,h)})}function m4(a,m,w){return function(h,r,s){return a(h,r,function(i){typeof i=="function"&&(m.enteredCbs[w]||(m.enteredCbs[w]=[]),m.enteredCbs[w].push(i)),s(i)})}}var Zp=function(a){function m(w,_){a.call(this,w,_),this._startLocation=Zi(this.base)}return a&&(m.__proto__=a),m.prototype=Object.create(a&&a.prototype),m.prototype.constructor=m,m.prototype.setupListeners=function(){var _=this;if(!(this.listeners.length>0)){var h=this.router,r=h.options.scrollBehavior,s=sn&&r;s&&this.listeners.push(Gp());var i=function(){var f=_.current,e=Zi(_.base);_.current===bn&&e===_._startLocation||_.transitionTo(e,function(l){s&&on(h,l,f,!0)})};window.addEventListener("popstate",i),this.listeners.push(function(){window.removeEventListener("popstate",i)})}},m.prototype.go=function(_){window.history.go(_)},m.prototype.push=function(_,h,r){var s=this,i=this,f=i.current;this.transitionTo(_,function(e){rs(an(s.base+e.fullPath)),on(s.router,e,f,!1),h&&h(e)},r)},m.prototype.replace=function(_,h,r){var s=this,i=this,f=i.current;this.transitionTo(_,function(e){hf(an(s.base+e.fullPath)),on(s.router,e,f,!1),h&&h(e)},r)},m.prototype.ensureURL=function(_){if(Zi(this.base)!==this.current.fullPath){var h=an(this.base+this.current.fullPath);_?rs(h):hf(h)}},m.prototype.getCurrentLocation=function(){return Zi(this.base)},m}(mr);function Zi(a){var m=window.location.pathname,w=m.toLowerCase(),_=a.toLowerCase();return a&&(w===_||w.indexOf(an(_+"/"))===0)&&(m=m.slice(a.length)),(m||"/")+window.location.search+window.location.hash}var e6=function(a){function m(w,_,h){a.call(this,w,_),!(h&&y4(this.base))&&r1()}return a&&(m.__proto__=a),m.prototype=Object.create(a&&a.prototype),m.prototype.constructor=m,m.prototype.setupListeners=function(){var _=this;if(!(this.listeners.length>0)){var h=this.router,r=h.options.scrollBehavior,s=sn&&r;s&&this.listeners.push(Gp());var i=function(){var e=_.current;r1()&&_.transitionTo(Po(),function(l){s&&on(_.router,l,e,!0),sn||To(l.fullPath)})},f=sn?"popstate":"hashchange";window.addEventListener(f,i),this.listeners.push(function(){window.removeEventListener(f,i)})}},m.prototype.push=function(_,h,r){var s=this,i=this,f=i.current;this.transitionTo(_,function(e){n1(e.fullPath),on(s.router,e,f,!1),h&&h(e)},r)},m.prototype.replace=function(_,h,r){var s=this,i=this,f=i.current;this.transitionTo(_,function(e){To(e.fullPath),on(s.router,e,f,!1),h&&h(e)},r)},m.prototype.go=function(_){window.history.go(_)},m.prototype.ensureURL=function(_){var h=this.current.fullPath;Po()!==h&&(_?n1(h):To(h))},m.prototype.getCurrentLocation=function(){return Po()},m}(mr);function y4(a){var m=Zi(a);if(!/^\/#/.test(m))return window.location.replace(an(a+"/#"+m)),!0}function r1(){var a=Po();return a.charAt(0)==="/"?!0:(To("/"+a),!1)}function Po(){var a=window.location.href,m=a.indexOf("#");return m<0?"":(a=a.slice(m+1),a)}function pf(a){var m=window.location.href,w=m.indexOf("#"),_=w>=0?m.slice(0,w):m;return _+"#"+a}function n1(a){sn?rs(pf(a)):window.location.hash=a}function To(a){sn?hf(pf(a)):window.location.replace(pf(a))}var g4=function(a){function m(w,_){a.call(this,w,_),this.stack=[],this.index=-1}return a&&(m.__proto__=a),m.prototype=Object.create(a&&a.prototype),m.prototype.constructor=m,m.prototype.push=function(_,h,r){var s=this;this.transitionTo(_,function(i){s.stack=s.stack.slice(0,s.index+1).concat(i),s.index++,h&&h(i)},r)},m.prototype.replace=function(_,h,r){var s=this;this.transitionTo(_,function(i){s.stack=s.stack.slice(0,s.index).concat(i),h&&h(i)},r)},m.prototype.go=function(_){var h=this,r=this.index+_;if(!(r<0||r>=this.stack.length)){var s=this.stack[r];this.confirmTransition(s,function(){var i=h.current;h.index=r,h.updateRoute(s),h.router.afterHooks.forEach(function(f){f&&f(s,i)})},function(i){Ds(i,Wn.duplicated)&&(h.index=r)})}},m.prototype.getCurrentLocation=function(){var _=this.stack[this.stack.length-1];return _?_.fullPath:"/"},m.prototype.ensureURL=function(){},m}(mr),mt=function(m){m===void 0&&(m={}),this.app=null,this.apps=[],this.options=m,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Gb(m.routes||[],this);var w=m.mode||"hash";switch(this.fallback=w==="history"&&!sn&&m.fallback!==!1,this.fallback&&(w="hash"),Ga||(w="abstract"),this.mode=w,w){case"history":this.history=new Zp(this,m.base);break;case"hash":this.history=new e6(this,m.base,this.fallback);break;case"abstract":this.history=new g4(this,m.base);break}},t6={currentRoute:{configurable:!0}};mt.prototype.match=function(m,w,_){return this.matcher.match(m,w,_)};t6.currentRoute.get=function(){return this.history&&this.history.current};mt.prototype.init=function(m){var w=this;if(this.apps.push(m),m.$once("hook:destroyed",function(){var s=w.apps.indexOf(m);s>-1&&w.apps.splice(s,1),w.app===m&&(w.app=w.apps[0]||null),w.app||w.history.teardown()}),!this.app){this.app=m;var _=this.history;if(_ instanceof Zp||_ instanceof e6){var h=function(s){var i=_.current,f=w.options.scrollBehavior,e=sn&&f;e&&"fullPath"in s&&on(w,s,i,!1)},r=function(s){_.setupListeners(),h(s)};_.transitionTo(_.getCurrentLocation(),r,r)}_.listen(function(s){w.apps.forEach(function(i){i._route=s})})}};mt.prototype.beforeEach=function(m){return Nc(this.beforeHooks,m)};mt.prototype.beforeResolve=function(m){return Nc(this.resolveHooks,m)};mt.prototype.afterEach=function(m){return Nc(this.afterHooks,m)};mt.prototype.onReady=function(m,w){this.history.onReady(m,w)};mt.prototype.onError=function(m){this.history.onError(m)};mt.prototype.push=function(m,w,_){var h=this;if(!w&&!_&&typeof Promise<"u")return new Promise(function(r,s){h.history.push(m,r,s)});this.history.push(m,w,_)};mt.prototype.replace=function(m,w,_){var h=this;if(!w&&!_&&typeof Promise<"u")return new Promise(function(r,s){h.history.replace(m,r,s)});this.history.replace(m,w,_)};mt.prototype.go=function(m){this.history.go(m)};mt.prototype.back=function(){this.go(-1)};mt.prototype.forward=function(){this.go(1)};mt.prototype.getMatchedComponents=function(m){var w=m?m.matched?m:this.resolve(m).route:this.currentRoute;return w?[].concat.apply([],w.matched.map(function(_){return Object.keys(_.components).map(function(h){return _.components[h]})})):[]};mt.prototype.resolve=function(m,w,_){w=w||this.history.current;var h=Bc(m,w,_,this),r=this.match(h,w),s=r.redirectedFrom||r.fullPath,i=this.history.base,f=b4(i,s,this.mode);return{location:h,route:r,href:f,normalizedTo:h,resolved:r}};mt.prototype.getRoutes=function(){return this.matcher.getRoutes()};mt.prototype.addRoute=function(m,w){this.matcher.addRoute(m,w),this.history.current!==bn&&this.history.transitionTo(this.history.getCurrentLocation())};mt.prototype.addRoutes=function(m){this.matcher.addRoutes(m),this.history.current!==bn&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(mt.prototype,t6);var r6=mt;function Nc(a,m){return a.push(m),function(){var w=a.indexOf(m);w>-1&&a.splice(w,1)}}function b4(a,m,w){var _=w==="hash"?"#"+m:m;return a?an(a+"/"+_):_}mt.install=cf;mt.version="3.6.5";mt.isNavigationFailure=Ds;mt.NavigationFailureType=Wn;mt.START_LOCATION=bn;Ga&&window.Vue&&window.Vue.use(mt);var n6={exports:{}};/*! For license information please see web3.min.js.LICENSE.txt */(function(a,m){(function(w,_){a.exports=_()})(self,()=>(()=>{var w={1645:(r,s,i)=>{var f=function(c){var g=typeof Symbol=="function"&&Symbol.iterator,p=g&&c[g],v=0;if(p)return p.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&v>=c.length&&(c=void 0),{value:c&&c[v++],done:!c}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")},e=function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(s,"__esModule",{value:!0}),s.chains=s._getInitializedChains=void 0;var l=e(i(7295)),n=e(i(1227)),t=e(i(439)),o=e(i(7098)),d=e(i(7687));function u(c){var g,p,v={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli"},y={mainnet:l.default,ropsten:n.default,rinkeby:t.default,kovan:o.default,goerli:d.default};if(c)try{for(var b=f(c),A=b.next();!A.done;A=b.next()){var x=A.value,E=x.name;v[x.chainId.toString()]=E,y[E]=x}}catch(S){g={error:S}}finally{try{A&&!A.done&&(p=b.return)&&p.call(b)}finally{if(g)throw g.error}}return y.names=v,y}s._getInitializedChains=u,s.chains=u()},425:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.EIPs=void 0,s.EIPs={1559:i(7523),2315:i(3339),2537:i(6769),2565:i(7897),2718:i(2170),2929:i(8436),2930:i(6213),3198:i(5491),3529:i(7852),3541:i(1871),3554:i(7225),3675:i(8571)}},7002:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.hardforks=void 0,s.hardforks=[["chainstart",i(114)],["homestead",i(2800)],["dao",i(7197)],["tangerineWhistle",i(2302)],["spuriousDragon",i(716)],["byzantium",i(6985)],["constantinople",i(5993)],["petersburg",i(4064)],["istanbul",i(3166)],["muirGlacier",i(2946)],["berlin",i(15)],["london",i(1250)],["shanghai",i(5553)],["merge",i(8648)]]},3863:(r,s,i)=>{var f,e=i(9033).Buffer,l=i(8847)(i(3355)),n=(f=function(C,T){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var P in M)Object.prototype.hasOwnProperty.call(M,P)&&(k[P]=M[P])},f(C,T)},function(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function k(){this.constructor=C}f(C,T),C.prototype=T===null?Object.create(T):(k.prototype=T.prototype,new k)}),t=function(){return t=Object.assign||function(C){for(var T,k=1,M=arguments.length;k<M;k++)for(var P in T=arguments[k])Object.prototype.hasOwnProperty.call(T,P)&&(C[P]=T[P]);return C},t.apply(this,arguments)},o=function(C){var T=typeof Symbol=="function"&&Symbol.iterator,k=T&&C[T],M=0;if(k)return k.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&M>=C.length&&(C=void 0),{value:C&&C[M++],done:!C}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.ConsensusAlgorithm=s.ConsensusType=s.Hardfork=s.Chain=s.CustomChain=void 0;var d,u,c,g,p,v=i(8291),y=i(4628),b=i(3062),A=i(1645),x=i(7002),E=i(425);(function(C){C.PolygonMainnet="polygon-mainnet",C.PolygonMumbai="polygon-mumbai",C.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",C.xDaiChain="x-dai-chain"})(d=s.CustomChain||(s.CustomChain={})),(p=s.Chain||(s.Chain={}))[p.Mainnet=1]="Mainnet",p[p.Ropsten=3]="Ropsten",p[p.Rinkeby=4]="Rinkeby",p[p.Kovan=42]="Kovan",p[p.Goerli=5]="Goerli",function(C){C.Chainstart="chainstart",C.Homestead="homestead",C.Dao="dao",C.TangerineWhistle="tangerineWhistle",C.SpuriousDragon="spuriousDragon",C.Byzantium="byzantium",C.Constantinople="constantinople",C.Petersburg="petersburg",C.Istanbul="istanbul",C.MuirGlacier="muirGlacier",C.Berlin="berlin",C.London="london",C.Shanghai="shanghai",C.Merge="merge"}(u=s.Hardfork||(s.Hardfork={})),(g=s.ConsensusType||(s.ConsensusType={})).ProofOfStake="pos",g.ProofOfWork="pow",g.ProofOfAuthority="poa",(c=s.ConsensusAlgorithm||(s.ConsensusAlgorithm={})).Ethash="ethash",c.Clique="clique",c.Casper="casper";var S=function(C){function T(k){var M,P,N,F,q=C.call(this)||this;q._supportedHardforks=[],q._eips=[],q._customChains=(N=k.customChains)!==null&&N!==void 0?N:[],q._chainParams=q.setChain(k.chain),q.DEFAULT_HARDFORK=(F=q._chainParams.defaultHardfork)!==null&&F!==void 0?F:u.Istanbul;try{for(var z=o(q._chainParams.hardforks),O=z.next();!O.done;O=z.next()){var R=O.value;R.forkHash||(R.forkHash=q._calcForkHash(R.name))}}catch(I){M={error:I}}finally{try{O&&!O.done&&(P=z.return)&&P.call(z)}finally{if(M)throw M.error}}return q._hardfork=q.DEFAULT_HARDFORK,k.supportedHardforks&&(q._supportedHardforks=k.supportedHardforks),k.hardfork&&q.setHardfork(k.hardfork),k.eips&&q.setEIPs(k.eips),q}return n(T,C),T.custom=function(k,M){var P;M===void 0&&(M={});var N=(P=M.baseChain)!==null&&P!==void 0?P:"mainnet",F=t({},T._getChainParams(N));if(F.name="custom-chain",typeof k!="string")return new T(t({chain:t(t({},F),k)},M));if(k===d.PolygonMainnet)return T.custom({name:d.PolygonMainnet,chainId:137,networkId:137});if(k===d.PolygonMumbai)return T.custom({name:d.PolygonMumbai,chainId:80001,networkId:80001});if(k===d.ArbitrumRinkebyTestnet)return T.custom({name:d.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611});if(k===d.xDaiChain)return T.custom({name:d.xDaiChain,chainId:100,networkId:100});throw new Error("Custom chain "+k+" not supported")},T.forCustomChain=function(k,M,P,N){var F=T._getChainParams(k);return new T({chain:t(t({},F),M),hardfork:P,supportedHardforks:N})},T.isSupportedChainId=function(k){var M=(0,A._getInitializedChains)();return!!M.names[k.toString()]},T._getChainParams=function(k,M){var P=(0,A._getInitializedChains)(M);if(typeof k=="number"||b.BN.isBN(k)){if(k=k.toString(),P.names[k])return P[P.names[k]];throw new Error("Chain with ID "+k+" not supported")}if(P[k])return P[k];throw new Error("Chain with name "+k+" not supported")},T.prototype.setChain=function(k){var M,P;if(typeof k=="number"||typeof k=="string"||b.BN.isBN(k)){var N;N=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map(function(O){return O[0]}):this._customChains,this._chainParams=T._getChainParams(k,N)}else{if((0,l.default)(k)!=="object")throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var F=o(["networkId","genesis","hardforks","bootstrapNodes"]),q=F.next();!q.done;q=F.next()){var z=q.value;if(k[z]===void 0)throw new Error("Missing required chain parameter: "+z)}}catch(O){M={error:O}}finally{try{q&&!q.done&&(P=F.return)&&P.call(F)}finally{if(M)throw M.error}}this._chainParams=k}return this._chainParams},T.prototype.setHardfork=function(k){var M,P;if(!this._isSupportedHardfork(k))throw new Error("Hardfork "+k+" not set as supported in supportedHardforks");var N=!1;try{for(var F=o(x.hardforks),q=F.next();!q.done;q=F.next())q.value[0]===k&&(this._hardfork!==k&&(this._hardfork=k,this.emit("hardforkChanged",k)),N=!0)}catch(z){M={error:z}}finally{try{q&&!q.done&&(P=F.return)&&P.call(F)}finally{if(M)throw M.error}}if(!N)throw new Error("Hardfork with name "+k+" not supported")},T.prototype.getHardforkByBlockNumber=function(k,M){var P,N;k=(0,b.toType)(k,b.TypeOutput.BN),M=M?(0,b.toType)(M,b.TypeOutput.BN):void 0;var F,q,z,O=u.Chainstart;try{for(var R=o(this.hardforks()),I=R.next();!I.done;I=R.next()){var D=I.value;if(D.block!==null)k.gte(new b.BN(D.block))&&(O=D.name),M&&D.td&&(M.gten(D.td)?F=D.name:q=z),z=D.name;else if(M&&D.td&&M.gten(D.td))return D.name}}catch(Q){P={error:Q}}finally{try{I&&!I.done&&(N=R.return)&&N.call(R)}finally{if(P)throw P.error}}if(M){var B="block number: "+k+" (-> "+O+"), ";if(F&&!this.hardforkGteHardfork(O,F)){var j="HF determined by block number is lower than the minimum total difficulty HF";throw B+="total difficulty: "+M+" (-> "+F+")",new Error(j+": "+B)}if(q&&!this.hardforkGteHardfork(q,O))throw j="Maximum HF determined by total difficulty is lower than the block number HF",B+="total difficulty: "+M+" (-> "+q+")",new Error(j+": "+B)}return O},T.prototype.setHardforkByBlockNumber=function(k,M){var P=this.getHardforkByBlockNumber(k,M);return this.setHardfork(P),P},T.prototype._chooseHardfork=function(k,M){if(M===void 0&&(M=!0),k){if(M&&!this._isSupportedHardfork(k))throw new Error("Hardfork "+k+" not set as supported in supportedHardforks")}else k=this._hardfork;return k},T.prototype._getHardfork=function(k){var M,P,N=this.hardforks();try{for(var F=o(N),q=F.next();!q.done;q=F.next()){var z=q.value;if(z.name===k)return z}}catch(O){M={error:O}}finally{try{q&&!q.done&&(P=F.return)&&P.call(F)}finally{if(M)throw M.error}}throw new Error("Hardfork "+k+" not defined for chain "+this.chainName())},T.prototype._isSupportedHardfork=function(k){var M,P;if(!(this._supportedHardforks.length>0))return!0;try{for(var N=o(this._supportedHardforks),F=N.next();!F.done;F=N.next())if(k===F.value)return!0}catch(q){M={error:q}}finally{try{F&&!F.done&&(P=N.return)&&P.call(N)}finally{if(M)throw M.error}}return!1},T.prototype.setEIPs=function(k){var M,P,N=this;k===void 0&&(k=[]);var F=function(R){if(!(R in E.EIPs))throw new Error(R+" not supported");var I=q.gteHardfork(E.EIPs[R].minimumHardfork);if(!I)throw new Error(R+" cannot be activated on hardfork "+q.hardfork()+", minimumHardfork: "+I);E.EIPs[R].requiredEIPs&&E.EIPs[R].requiredEIPs.forEach(function(D){if(!k.includes(D)&&!N.isActivatedEIP(D))throw new Error(R+" requires EIP "+D+", but is not included in the EIP list")})},q=this;try{for(var z=o(k),O=z.next();!O.done;O=z.next())F(O.value)}catch(R){M={error:R}}finally{try{O&&!O.done&&(P=z.return)&&P.call(z)}finally{if(M)throw M.error}}this._eips=k},T.prototype.param=function(k,M){var P,N,F=null;try{for(var q=o(this._eips),z=q.next();!z.done;z=q.next()){var O=z.value;if((F=this.paramByEIP(k,M,O))!==null)return F}}catch(R){P={error:R}}finally{try{z&&!z.done&&(N=q.return)&&N.call(q)}finally{if(P)throw P.error}}return this.paramByHardfork(k,M,this._hardfork)},T.prototype.paramByHardfork=function(k,M,P){var N,F,q,z;P=this._chooseHardfork(P);var O=null;try{for(var R=o(x.hardforks),I=R.next();!I.done;I=R.next()){var D=I.value;if("eips"in D[1]){var B=D[1].eips;try{for(var j=(q=void 0,o(B)),Q=j.next();!Q.done;Q=j.next()){var X=Q.value,Z=this.paramByEIP(k,M,X);O=Z!==null?Z:O}}catch(L){q={error:L}}finally{try{Q&&!Q.done&&(z=j.return)&&z.call(j)}finally{if(q)throw q.error}}}else{if(!D[1][k])throw new Error("Topic "+k+" not defined");D[1][k][M]!==void 0&&(O=D[1][k][M].v)}if(D[0]===P)break}}catch(L){N={error:L}}finally{try{I&&!I.done&&(F=R.return)&&F.call(R)}finally{if(N)throw N.error}}return O},T.prototype.paramByEIP=function(k,M,P){if(!(P in E.EIPs))throw new Error(P+" not supported");var N=E.EIPs[P];if(!(k in N))throw new Error("Topic "+k+" not defined");return N[k][M]===void 0?null:N[k][M].v},T.prototype.paramByBlock=function(k,M,P){var N=this.activeHardforks(P),F=N[N.length-1].name;return this.paramByHardfork(k,M,F)},T.prototype.isActivatedEIP=function(k){var M,P;if(this.eips().includes(k))return!0;try{for(var N=o(x.hardforks),F=N.next();!F.done;F=N.next()){var q=F.value[1];if(this.gteHardfork(q.name)&&"eips"in q&&q.eips.includes(k))return!0}}catch(z){M={error:z}}finally{try{F&&!F.done&&(P=N.return)&&P.call(N)}finally{if(M)throw M.error}}return!1},T.prototype.hardforkIsActiveOnBlock=function(k,M,P){var N;P===void 0&&(P={}),M=(0,b.toType)(M,b.TypeOutput.BN);var F=(N=P.onlySupported)!==null&&N!==void 0&&N;k=this._chooseHardfork(k,F);var q=this.hardforkBlockBN(k);return!(!q||!M.gte(q))},T.prototype.activeOnBlock=function(k,M){return this.hardforkIsActiveOnBlock(null,k,M)},T.prototype.hardforkGteHardfork=function(k,M,P){var N,F;P===void 0&&(P={});var q,z=P.onlyActive!==void 0&&P.onlyActive;k=this._chooseHardfork(k,P.onlySupported),q=z?this.activeHardforks(null,P):this.hardforks();var O=-1,R=-1,I=0;try{for(var D=o(q),B=D.next();!B.done;B=D.next()){var j=B.value;j.name===k&&(O=I),j.name===M&&(R=I),I+=1}}catch(Q){N={error:Q}}finally{try{B&&!B.done&&(F=D.return)&&F.call(D)}finally{if(N)throw N.error}}return O>=R&&R!==-1},T.prototype.gteHardfork=function(k,M){return this.hardforkGteHardfork(null,k,M)},T.prototype.hardforkIsActiveOnChain=function(k,M){var P,N,F;M===void 0&&(M={});var q=(F=M.onlySupported)!==null&&F!==void 0&&F;k=this._chooseHardfork(k,q);try{for(var z=o(this.hardforks()),O=z.next();!O.done;O=z.next()){var R=O.value;if(R.name===k&&R.block!==null)return!0}}catch(I){P={error:I}}finally{try{O&&!O.done&&(N=z.return)&&N.call(z)}finally{if(P)throw P.error}}return!1},T.prototype.activeHardforks=function(k,M){var P,N;M===void 0&&(M={});var F=[],q=this.hardforks();try{for(var z=o(q),O=z.next();!O.done;O=z.next()){var R=O.value;if(R.block!==null){if(k!=null&&k<R.block)break;M.onlySupported&&!this._isSupportedHardfork(R.name)||F.push(R)}}}catch(I){P={error:I}}finally{try{O&&!O.done&&(N=z.return)&&N.call(z)}finally{if(P)throw P.error}}return F},T.prototype.activeHardfork=function(k,M){M===void 0&&(M={});var P=this.activeHardforks(k,M);if(P.length>0)return P[P.length-1].name;throw new Error("No (supported) active hardfork found")},T.prototype.hardforkBlock=function(k){var M=this.hardforkBlockBN(k);return M?(0,b.toType)(M,b.TypeOutput.Number):null},T.prototype.hardforkBlockBN=function(k){k=this._chooseHardfork(k,!1);var M=this._getHardfork(k).block;return M==null?null:new b.BN(M)},T.prototype.hardforkTD=function(k){k=this._chooseHardfork(k,!1);var M=this._getHardfork(k).td;return M==null?null:new b.BN(M)},T.prototype.isHardforkBlock=function(k,M){k=(0,b.toType)(k,b.TypeOutput.BN),M=this._chooseHardfork(M,!1);var P=this.hardforkBlockBN(M);return!!P&&P.eq(k)},T.prototype.nextHardforkBlock=function(k){var M=this.nextHardforkBlockBN(k);return M===null?null:(0,b.toType)(M,b.TypeOutput.Number)},T.prototype.nextHardforkBlockBN=function(k){k=this._chooseHardfork(k,!1);var M=this.hardforkBlockBN(k);return M===null?null:this.hardforks().reduce(function(P,N){var F=new b.BN(N.block);return F.gt(M)&&P===null?F:P},null)},T.prototype.isNextHardforkBlock=function(k,M){k=(0,b.toType)(k,b.TypeOutput.BN),M=this._chooseHardfork(M,!1);var P=this.nextHardforkBlockBN(M);return P!==null&&P.eq(k)},T.prototype._calcForkHash=function(k){var M,P,N=e.from(this.genesis().hash.substr(2),"hex"),F=e.alloc(0),q=0;try{for(var z=o(this.hardforks()),O=z.next();!O.done;O=z.next()){var R=O.value,I=R.block;if(I!==0&&I!==null&&I!==q){var D=e.from(I.toString(16).padStart(16,"0"),"hex");F=e.concat([F,D])}if(R.name===k)break;I!==null&&(q=I)}}catch(j){M={error:j}}finally{try{O&&!O.done&&(P=z.return)&&P.call(z)}finally{if(M)throw M.error}}var B=e.concat([N,F]);return"0x"+(0,b.intToBuffer)((0,y.buf)(B)>>>0).toString("hex")},T.prototype.forkHash=function(k){k=this._chooseHardfork(k,!1);var M=this._getHardfork(k);if(M.block===null)throw new Error("No fork hash calculation possible for non-applied or future hardfork");return M.forkHash!==void 0?M.forkHash:this._calcForkHash(k)},T.prototype.hardforkForForkHash=function(k){var M=this.hardforks().filter(function(P){return P.forkHash===k});return M.length>=1?M[M.length-1]:null},T.prototype.genesis=function(){return this._chainParams.genesis},T.prototype.genesisState=function(){var k,M;switch(this.chainName()){case"mainnet":return i(Object(function(){var q=new Error("Cannot find module './genesisStates/mainnet.json'");throw q.code="MODULE_NOT_FOUND",q}()));case"ropsten":return i(Object(function(){var q=new Error("Cannot find module './genesisStates/ropsten.json'");throw q.code="MODULE_NOT_FOUND",q}()));case"rinkeby":return i(Object(function(){var q=new Error("Cannot find module './genesisStates/rinkeby.json'");throw q.code="MODULE_NOT_FOUND",q}()));case"kovan":return i(Object(function(){var q=new Error("Cannot find module './genesisStates/kovan.json'");throw q.code="MODULE_NOT_FOUND",q}()));case"goerli":return i(Object(function(){var q=new Error("Cannot find module './genesisStates/goerli.json'");throw q.code="MODULE_NOT_FOUND",q}()))}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var P=o(this._customChains),N=P.next();!N.done;N=P.next()){var F=N.value;if(F[0].name===this.chainName())return F[1]}}catch(q){k={error:q}}finally{try{N&&!N.done&&(M=P.return)&&M.call(P)}finally{if(k)throw k.error}}return{}},T.prototype.hardforks=function(){return this._chainParams.hardforks},T.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},T.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},T.prototype.hardfork=function(){return this._hardfork},T.prototype.chainId=function(){return(0,b.toType)(this.chainIdBN(),b.TypeOutput.Number)},T.prototype.chainIdBN=function(){return new b.BN(this._chainParams.chainId)},T.prototype.chainName=function(){return this._chainParams.name},T.prototype.networkId=function(){return(0,b.toType)(this.networkIdBN(),b.TypeOutput.Number)},T.prototype.networkIdBN=function(){return new b.BN(this._chainParams.networkId)},T.prototype.eips=function(){return this._eips},T.prototype.consensusType=function(){var k,M,P,N=this.hardfork();try{for(var F=o(x.hardforks),q=F.next();!q.done;q=F.next()){var z=q.value;if("consensus"in z[1]&&(P=z[1].consensus.type),z[0]===N)break}}catch(O){k={error:O}}finally{try{q&&!q.done&&(M=F.return)&&M.call(F)}finally{if(k)throw k.error}}return P||this._chainParams.consensus.type},T.prototype.consensusAlgorithm=function(){var k,M,P,N=this.hardfork();try{for(var F=o(x.hardforks),q=F.next();!q.done;q=F.next()){var z=q.value;if("consensus"in z[1]&&(P=z[1].consensus.algorithm),z[0]===N)break}}catch(O){k={error:O}}finally{try{q&&!q.done&&(M=F.return)&&M.call(F)}finally{if(k)throw k.error}}return P||this._chainParams.consensus.algorithm},T.prototype.consensusConfig=function(){var k,M,P,N=this.hardfork();try{for(var F=o(x.hardforks),q=F.next();!q.done;q=F.next()){var z=q.value;if("consensus"in z[1]&&(P=z[1].consensus[z[1].consensus.algorithm]),z[0]===N)break}}catch(R){k={error:R}}finally{try{q&&!q.done&&(M=F.return)&&M.call(F)}finally{if(k)throw k.error}}if(P)return P;var O=this.consensusAlgorithm();return this._chainParams.consensus[O]},T.prototype.copy=function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)},T}(v.EventEmitter);s.default=S},4383:(r,s,i)=>{var f=Object.create?function(u,c,g,p){p===void 0&&(p=g),Object.defineProperty(u,p,{enumerable:!0,get:function(){return c[g]}})}:function(u,c,g,p){p===void 0&&(p=g),u[p]=c[g]},e=Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c},l=function(u,c){var g=typeof Symbol=="function"&&u[Symbol.iterator];if(!g)return u;var p,v,y=g.call(u),b=[];try{for(;(c===void 0||c-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(A){v={error:A}}finally{try{p&&!p.done&&(g=y.return)&&g.call(y)}finally{if(v)throw v.error}}return b};Object.defineProperty(s,"__esModule",{value:!0}),s.BaseTransaction=void 0;var n=function(u){if(u&&u.__esModule)return u;var c={};if(u!=null)for(var g in u)g!=="default"&&Object.prototype.hasOwnProperty.call(u,g)&&f(c,u,g);return e(c,u),c}(i(3863)),t=i(3062),o=i(7325),d=function(){function u(c){this.cache={hash:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=n.Chain.Mainnet,this.DEFAULT_HARDFORK=n.Hardfork.Istanbul;var g=c.nonce,p=c.gasLimit,v=c.to,y=c.value,b=c.data,A=c.v,x=c.r,E=c.s,S=c.type;this._type=new t.BN((0,t.toBuffer)(S)).toNumber();var C=(0,t.toBuffer)(v===""?"0x":v),T=(0,t.toBuffer)(A===""?"0x":A),k=(0,t.toBuffer)(x===""?"0x":x),M=(0,t.toBuffer)(E===""?"0x":E);this.nonce=new t.BN((0,t.toBuffer)(g===""?"0x":g)),this.gasLimit=new t.BN((0,t.toBuffer)(p===""?"0x":p)),this.to=C.length>0?new t.Address(C):void 0,this.value=new t.BN((0,t.toBuffer)(y===""?"0x":y)),this.data=(0,t.toBuffer)(b===""?"0x":b),this.v=T.length>0?new t.BN(T):void 0,this.r=k.length>0?new t.BN(k):void 0,this.s=M.length>0?new t.BN(M):void 0,this._validateCannotExceedMaxInteger({nonce:this.nonce,gasLimit:this.gasLimit,value:this.value,r:this.r,s:this.s})}return Object.defineProperty(u.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),u.prototype.supports=function(c){return this.activeCapabilities.includes(c)},u.prototype.validate=function(c){c===void 0&&(c=!1);var g=[];return this.getBaseFee().gt(this.gasLimit)&&g.push("gasLimit is too low. given "+this.gasLimit+", need at least "+this.getBaseFee()),this.isSigned()&&!this.verifySignature()&&g.push("Invalid Signature"),c?g:g.length===0},u.prototype.getBaseFee=function(){var c=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&c.iaddn(this.common.param("gasPrices","txCreation")),c},u.prototype.getDataFee=function(){for(var c=this.common.param("gasPrices","txDataZero"),g=this.common.param("gasPrices","txDataNonZero"),p=0,v=0;v<this.data.length;v++)this.data[v]===0?p+=c:p+=g;return new t.BN(p)},u.prototype.toCreationAddress=function(){return this.to===void 0||this.to.buf.length===0},u.prototype.isSigned=function(){var c=this,g=c.v,p=c.r,v=c.s;return this.type===0?!!(g&&p&&v):!(g===void 0||!p||!v)},u.prototype.verifySignature=function(){try{var c=this.getSenderPublicKey();return(0,t.unpadBuffer)(c).length!==0}catch{return!1}},u.prototype.getSenderAddress=function(){return new t.Address((0,t.publicToAddress)(this.getSenderPublicKey()))},u.prototype.sign=function(c){if(c.length!==32)throw new Error("Private key must be 32 bytes in length.");var g=!1;this.type===0&&this.common.gteHardfork("spuriousDragon")&&!this.supports(o.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(o.Capability.EIP155ReplayProtection),g=!0);var p=this.getMessageToSign(!0),v=(0,t.ecsign)(p,c),y=v.v,b=v.r,A=v.s,x=this._processSignature(y,b,A);if(g){var E=this.activeCapabilities.indexOf(o.Capability.EIP155ReplayProtection);E>-1&&this.activeCapabilities.splice(E,1)}return x},u.prototype._getCommon=function(c,g){var p;if(g){var v=new t.BN((0,t.toBuffer)(g));if(c){if(!c.chainIdBN().eq(v))throw new Error("The chain ID does not match the chain ID of Common");return c.copy()}return n.default.isSupportedChainId(v)?new n.default({chain:v,hardfork:this.DEFAULT_HARDFORK}):n.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:v,chainId:v},this.DEFAULT_HARDFORK)}return(p=c?.copy())!==null&&p!==void 0?p:new n.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},u.prototype._validateCannotExceedMaxInteger=function(c,g){var p,v;g===void 0&&(g=53);try{for(var y=function(S){var C=typeof Symbol=="function"&&Symbol.iterator,T=C&&S[C],k=0;if(T)return T.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&k>=S.length&&(S=void 0),{value:S&&S[k++],done:!S}}};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(c)),b=y.next();!b.done;b=y.next()){var A=l(b.value,2),x=A[0],E=A[1];if(g===53){if(E?.gt(t.MAX_INTEGER))throw new Error(x+" cannot exceed MAX_INTEGER, given "+E)}else{if(g!==256)throw new Error("unimplemented bits value");if(E?.gte(t.TWO_POW256))throw new Error(x+" must be less than 2^256, given "+E)}}}catch(S){p={error:S}}finally{try{b&&!b.done&&(v=y.return)&&v.call(y)}finally{if(p)throw p.error}}},u}();s.BaseTransaction=d},660:(r,s,i)=>{var f,e=i(9033).Buffer,l=(f=function(p,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&(y[A]=b[A])},f(p,v)},function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function y(){this.constructor=p}f(p,v),p.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),n=function(){return n=Object.assign||function(p){for(var v,y=1,b=arguments.length;y<b;y++)for(var A in v=arguments[y])Object.prototype.hasOwnProperty.call(v,A)&&(p[A]=v[A]);return p},n.apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var t=i(3062),o=i(4383),d=i(7325),u=i(3789),c=e.from(2 .toString(16).padStart(2,"0"),"hex"),g=function(p){function v(y,b){var A,x;b===void 0&&(b={});var E=p.call(this,n(n({},y),{type:2}))||this;E.DEFAULT_HARDFORK="london";var S=y.chainId,C=y.accessList,T=y.maxFeePerGas,k=y.maxPriorityFeePerGas;if(E.common=E._getCommon(b.common,S),E.chainId=E.common.chainIdBN(),!E.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");E.activeCapabilities=E.activeCapabilities.concat([1559,2718,2930]);var M=u.AccessLists.getAccessListData(C??[]);if(E.accessList=M.accessList,E.AccessListJSON=M.AccessListJSON,u.AccessLists.verifyAccessList(E.accessList),E.maxFeePerGas=new t.BN((0,t.toBuffer)(T===""?"0x":T)),E.maxPriorityFeePerGas=new t.BN((0,t.toBuffer)(k===""?"0x":k)),E._validateCannotExceedMaxInteger({maxFeePerGas:E.maxFeePerGas,maxPriorityFeePerGas:E.maxPriorityFeePerGas},256),E.maxFeePerGas.lt(E.maxPriorityFeePerGas))throw new Error("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");if(E.v&&!E.v.eqn(0)&&!E.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(E.common.gteHardfork("homestead")&&(!((A=E.s)===null||A===void 0)&&A.gt(d.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");return((x=b?.freeze)===null||x===void 0||x)&&Object.freeze(E),E}return l(v,p),Object.defineProperty(v.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),v.fromTxData=function(y,b){return b===void 0&&(b={}),new v(y,b)},v.fromSerializedTx=function(y,b){if(b===void 0&&(b={}),!y.slice(0,1).equals(c))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: 2, received: "+y.slice(0,1).toString("hex"));var A=t.rlp.decode(y.slice(1));if(!Array.isArray(A))throw new Error("Invalid serialized tx input: must be array");return v.fromValuesArray(A,b)},v.fromRlpSerializedTx=function(y,b){return b===void 0&&(b={}),v.fromSerializedTx(y,b)},v.fromValuesArray=function(y,b){if(b===void 0&&(b={}),y.length!==9&&y.length!==12)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var A=function(O,R){var I=typeof Symbol=="function"&&O[Symbol.iterator];if(!I)return O;var D,B,j=I.call(O),Q=[];try{for(;(R===void 0||R-- >0)&&!(D=j.next()).done;)Q.push(D.value)}catch(X){B={error:X}}finally{try{D&&!D.done&&(I=j.return)&&I.call(j)}finally{if(B)throw B.error}}return Q}(y,12),x=A[0],E=A[1],S=A[2],C=A[3],T=A[4],k=A[5],M=A[6],P=A[7],N=A[8],F=A[9],q=A[10],z=A[11];return new v({chainId:new t.BN(x),nonce:E,maxPriorityFeePerGas:S,maxFeePerGas:C,gasLimit:T,to:k,value:M,data:P,accessList:N??[],v:F!==void 0?new t.BN(F):void 0,r:q,s:z},b)},v.prototype.getDataFee=function(){var y=p.prototype.getDataFee.call(this);return y.iaddn(u.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),y},v.prototype.getUpfrontCost=function(y){y===void 0&&(y=new t.BN(0));var b=t.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(y)).add(y);return this.gasLimit.mul(b).add(this.value)},v.prototype.raw=function(){return[(0,t.bnToUnpaddedBuffer)(this.chainId),(0,t.bnToUnpaddedBuffer)(this.nonce),(0,t.bnToUnpaddedBuffer)(this.maxPriorityFeePerGas),(0,t.bnToUnpaddedBuffer)(this.maxFeePerGas),(0,t.bnToUnpaddedBuffer)(this.gasLimit),this.to!==void 0?this.to.buf:e.from([]),(0,t.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,this.v!==void 0?(0,t.bnToUnpaddedBuffer)(this.v):e.from([]),this.r!==void 0?(0,t.bnToUnpaddedBuffer)(this.r):e.from([]),this.s!==void 0?(0,t.bnToUnpaddedBuffer)(this.s):e.from([])]},v.prototype.serialize=function(){var y=this.raw();return e.concat([c,t.rlp.encode(y)])},v.prototype.getMessageToSign=function(y){y===void 0&&(y=!0);var b=this.raw().slice(0,9),A=e.concat([c,t.rlp.encode(b)]);return y?(0,t.keccak256)(A):A},v.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,t.keccak256)(this.serialize())),this.cache.hash):(0,t.keccak256)(this.serialize())},v.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},v.prototype.getSenderPublicKey=function(){var y;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var b=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(!((y=this.s)===null||y===void 0)&&y.gt(d.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var A=this,x=A.v,E=A.r,S=A.s;try{return(0,t.ecrecover)(b,x.addn(27),(0,t.bnToUnpaddedBuffer)(E),(0,t.bnToUnpaddedBuffer)(S))}catch{throw new Error("Invalid Signature")}},v.prototype._processSignature=function(y,b,A){var x={common:this.common};return v.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new t.BN(y-27),r:new t.BN(b),s:new t.BN(A)},x)},v.prototype.toJSON=function(){var y=u.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,t.bnToHex)(this.chainId),nonce:(0,t.bnToHex)(this.nonce),maxPriorityFeePerGas:(0,t.bnToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,t.bnToHex)(this.maxFeePerGas),gasLimit:(0,t.bnToHex)(this.gasLimit),to:this.to!==void 0?this.to.toString():void 0,value:(0,t.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:y,v:this.v!==void 0?(0,t.bnToHex)(this.v):void 0,r:this.r!==void 0?(0,t.bnToHex)(this.r):void 0,s:this.s!==void 0?(0,t.bnToHex)(this.s):void 0}},v}(o.BaseTransaction);s.default=g},7613:(r,s,i)=>{var f,e=i(9033).Buffer,l=(f=function(p,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var A in b)Object.prototype.hasOwnProperty.call(b,A)&&(y[A]=b[A])},f(p,v)},function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function y(){this.constructor=p}f(p,v),p.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),n=function(){return n=Object.assign||function(p){for(var v,y=1,b=arguments.length;y<b;y++)for(var A in v=arguments[y])Object.prototype.hasOwnProperty.call(v,A)&&(p[A]=v[A]);return p},n.apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var t=i(3062),o=i(4383),d=i(7325),u=i(3789),c=e.from(1 .toString(16).padStart(2,"0"),"hex"),g=function(p){function v(y,b){var A,x;b===void 0&&(b={});var E=p.call(this,n(n({},y),{type:1}))||this;E.DEFAULT_HARDFORK="berlin";var S=y.chainId,C=y.accessList,T=y.gasPrice;if(E.common=E._getCommon(b.common,S),E.chainId=E.common.chainIdBN(),!E.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");E.activeCapabilities=E.activeCapabilities.concat([2718,2930]);var k=u.AccessLists.getAccessListData(C??[]);if(E.accessList=k.accessList,E.AccessListJSON=k.AccessListJSON,u.AccessLists.verifyAccessList(E.accessList),E.gasPrice=new t.BN((0,t.toBuffer)(T===""?"0x":T)),E._validateCannotExceedMaxInteger({gasPrice:E.gasPrice}),E.v&&!E.v.eqn(0)&&!E.v.eqn(1))throw new Error("The y-parity of the transaction should either be 0 or 1");if(E.common.gteHardfork("homestead")&&(!((A=E.s)===null||A===void 0)&&A.gt(d.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");return((x=b?.freeze)===null||x===void 0||x)&&Object.freeze(E),E}return l(v,p),Object.defineProperty(v.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),v.fromTxData=function(y,b){return b===void 0&&(b={}),new v(y,b)},v.fromSerializedTx=function(y,b){if(b===void 0&&(b={}),!y.slice(0,1).equals(c))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: 1, received: "+y.slice(0,1).toString("hex"));var A=t.rlp.decode(y.slice(1));if(!Array.isArray(A))throw new Error("Invalid serialized tx input: must be array");return v.fromValuesArray(A,b)},v.fromRlpSerializedTx=function(y,b){return b===void 0&&(b={}),v.fromSerializedTx(y,b)},v.fromValuesArray=function(y,b){if(b===void 0&&(b={}),y.length!==8&&y.length!==11)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var A=function(z,O){var R=typeof Symbol=="function"&&z[Symbol.iterator];if(!R)return z;var I,D,B=R.call(z),j=[];try{for(;(O===void 0||O-- >0)&&!(I=B.next()).done;)j.push(I.value)}catch(Q){D={error:Q}}finally{try{I&&!I.done&&(R=B.return)&&R.call(B)}finally{if(D)throw D.error}}return j}(y,11),x=A[0],E=A[1],S=A[2],C=A[3],T=A[4],k=A[5],M=A[6],P=A[7],N=A[8],F=A[9],q=A[10];return new v({chainId:new t.BN(x),nonce:E,gasPrice:S,gasLimit:C,to:T,value:k,data:M,accessList:P??[],v:N!==void 0?new t.BN(N):void 0,r:F,s:q},b)},v.prototype.getDataFee=function(){var y=p.prototype.getDataFee.call(this);return y.iaddn(u.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),y},v.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},v.prototype.raw=function(){return[(0,t.bnToUnpaddedBuffer)(this.chainId),(0,t.bnToUnpaddedBuffer)(this.nonce),(0,t.bnToUnpaddedBuffer)(this.gasPrice),(0,t.bnToUnpaddedBuffer)(this.gasLimit),this.to!==void 0?this.to.buf:e.from([]),(0,t.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,this.v!==void 0?(0,t.bnToUnpaddedBuffer)(this.v):e.from([]),this.r!==void 0?(0,t.bnToUnpaddedBuffer)(this.r):e.from([]),this.s!==void 0?(0,t.bnToUnpaddedBuffer)(this.s):e.from([])]},v.prototype.serialize=function(){var y=this.raw();return e.concat([c,t.rlp.encode(y)])},v.prototype.getMessageToSign=function(y){y===void 0&&(y=!0);var b=this.raw().slice(0,8),A=e.concat([c,t.rlp.encode(b)]);return y?(0,t.keccak256)(A):A},v.prototype.hash=function(){if(!this.isSigned())throw new Error("Cannot call hash method if transaction is not signed");return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,t.keccak256)(this.serialize())),this.cache.hash):(0,t.keccak256)(this.serialize())},v.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},v.prototype.getSenderPublicKey=function(){var y;if(!this.isSigned())throw new Error("Cannot call this method if transaction is not signed");var b=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(!((y=this.s)===null||y===void 0)&&y.gt(d.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var A=this,x=A.yParity,E=A.r,S=A.s;try{return(0,t.ecrecover)(b,x.addn(27),(0,t.bnToUnpaddedBuffer)(E),(0,t.bnToUnpaddedBuffer)(S))}catch{throw new Error("Invalid Signature")}},v.prototype._processSignature=function(y,b,A){var x={common:this.common};return v.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new t.BN(y-27),r:new t.BN(b),s:new t.BN(A)},x)},v.prototype.toJSON=function(){var y=u.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,t.bnToHex)(this.chainId),nonce:(0,t.bnToHex)(this.nonce),gasPrice:(0,t.bnToHex)(this.gasPrice),gasLimit:(0,t.bnToHex)(this.gasLimit),to:this.to!==void 0?this.to.toString():void 0,value:(0,t.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:y,v:this.v!==void 0?(0,t.bnToHex)(this.v):void 0,r:this.r!==void 0?(0,t.bnToHex)(this.r):void 0,s:this.s!==void 0?(0,t.bnToHex)(this.s):void 0}},v}(o.BaseTransaction);s.default=g},2339:(r,s,i)=>{var f=Object.create?function(d,u,c,g){g===void 0&&(g=c),Object.defineProperty(d,g,{enumerable:!0,get:function(){return u[c]}})}:function(d,u,c,g){g===void 0&&(g=c),d[g]=u[c]},e=function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(s,"__esModule",{value:!0}),s.FeeMarketEIP1559Transaction=s.TransactionFactory=s.AccessListEIP2930Transaction=s.Transaction=void 0;var l=i(3088);Object.defineProperty(s,"Transaction",{enumerable:!0,get:function(){return e(l).default}});var n=i(7613);Object.defineProperty(s,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return e(n).default}});var t=i(9562);Object.defineProperty(s,"TransactionFactory",{enumerable:!0,get:function(){return e(t).default}});var o=i(660);Object.defineProperty(s,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return e(o).default}}),function(d,u){for(var c in d)c==="default"||Object.prototype.hasOwnProperty.call(u,c)||f(u,d,c)}(i(7325),s)},3088:(r,s,i)=>{var f,e=i(9033).Buffer,l=(f=function(u,c){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(g[v]=p[v])},f(u,c)},function(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function g(){this.constructor=u}f(u,c),u.prototype=c===null?Object.create(c):(g.prototype=c.prototype,new g)}),n=function(){return n=Object.assign||function(u){for(var c,g=1,p=arguments.length;g<p;g++)for(var v in c=arguments[g])Object.prototype.hasOwnProperty.call(c,v)&&(u[v]=c[v]);return u},n.apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var t=i(3062),o=i(7325),d=function(u){function c(g,p){var v;p===void 0&&(p={});var y=u.call(this,n(n({},g),{type:0}))||this;if(y.common=y._validateTxV(y.v,p.common),y.gasPrice=new t.BN((0,t.toBuffer)(g.gasPrice===""?"0x":g.gasPrice)),y._validateCannotExceedMaxInteger({gasPrice:y.gasPrice}),y.common.gteHardfork("spuriousDragon"))if(y.isSigned()){var b=y.v,A=y.common.chainIdBN().muln(2);(b.eq(A.addn(35))||b.eq(A.addn(36)))&&y.activeCapabilities.push(o.Capability.EIP155ReplayProtection)}else y.activeCapabilities.push(o.Capability.EIP155ReplayProtection);return((v=p?.freeze)===null||v===void 0||v)&&Object.freeze(y),y}return l(c,u),c.fromTxData=function(g,p){return p===void 0&&(p={}),new c(g,p)},c.fromSerializedTx=function(g,p){p===void 0&&(p={});var v=t.rlp.decode(g);if(!Array.isArray(v))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(v,p)},c.fromRlpSerializedTx=function(g,p){return p===void 0&&(p={}),c.fromSerializedTx(g,p)},c.fromValuesArray=function(g,p){if(p===void 0&&(p={}),g.length!==6&&g.length!==9)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var v=function(y,b){var A=typeof Symbol=="function"&&y[Symbol.iterator];if(!A)return y;var x,E,S=A.call(y),C=[];try{for(;(b===void 0||b-- >0)&&!(x=S.next()).done;)C.push(x.value)}catch(T){E={error:T}}finally{try{x&&!x.done&&(A=S.return)&&A.call(S)}finally{if(E)throw E.error}}return C}(g,9);return new c({nonce:v[0],gasPrice:v[1],gasLimit:v[2],to:v[3],value:v[4],data:v[5],v:v[6],r:v[7],s:v[8]},p)},c.prototype.raw=function(){return[(0,t.bnToUnpaddedBuffer)(this.nonce),(0,t.bnToUnpaddedBuffer)(this.gasPrice),(0,t.bnToUnpaddedBuffer)(this.gasLimit),this.to!==void 0?this.to.buf:e.from([]),(0,t.bnToUnpaddedBuffer)(this.value),this.data,this.v!==void 0?(0,t.bnToUnpaddedBuffer)(this.v):e.from([]),this.r!==void 0?(0,t.bnToUnpaddedBuffer)(this.r):e.from([]),this.s!==void 0?(0,t.bnToUnpaddedBuffer)(this.s):e.from([])]},c.prototype.serialize=function(){return t.rlp.encode(this.raw())},c.prototype._getMessageToSign=function(){var g=[(0,t.bnToUnpaddedBuffer)(this.nonce),(0,t.bnToUnpaddedBuffer)(this.gasPrice),(0,t.bnToUnpaddedBuffer)(this.gasLimit),this.to!==void 0?this.to.buf:e.from([]),(0,t.bnToUnpaddedBuffer)(this.value),this.data];return this.supports(o.Capability.EIP155ReplayProtection)&&(g.push((0,t.toBuffer)(this.common.chainIdBN())),g.push((0,t.unpadBuffer)((0,t.toBuffer)(0))),g.push((0,t.unpadBuffer)((0,t.toBuffer)(0)))),g},c.prototype.getMessageToSign=function(g){g===void 0&&(g=!0);var p=this._getMessageToSign();return g?(0,t.rlphash)(p):p},c.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},c.prototype.hash=function(){return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,t.rlphash)(this.raw())),this.cache.hash):(0,t.rlphash)(this.raw())},c.prototype.getMessageToVerifySignature=function(){if(!this.isSigned())throw Error("This transaction is not signed");var g=this._getMessageToSign();return(0,t.rlphash)(g)},c.prototype.getSenderPublicKey=function(){var g,p=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(!((g=this.s)===null||g===void 0)&&g.gt(o.N_DIV_2)))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var v=this,y=v.v,b=v.r,A=v.s;try{return(0,t.ecrecover)(p,y,(0,t.bnToUnpaddedBuffer)(b),(0,t.bnToUnpaddedBuffer)(A),this.supports(o.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch{throw new Error("Invalid Signature")}},c.prototype._processSignature=function(g,p,v){var y=new t.BN(g);this.supports(o.Capability.EIP155ReplayProtection)&&y.iadd(this.common.chainIdBN().muln(2).addn(8));var b={common:this.common};return c.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:y,r:new t.BN(p),s:new t.BN(v)},b)},c.prototype.toJSON=function(){return{nonce:(0,t.bnToHex)(this.nonce),gasPrice:(0,t.bnToHex)(this.gasPrice),gasLimit:(0,t.bnToHex)(this.gasLimit),to:this.to!==void 0?this.to.toString():void 0,value:(0,t.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),v:this.v!==void 0?(0,t.bnToHex)(this.v):void 0,r:this.r!==void 0?(0,t.bnToHex)(this.r):void 0,s:this.s!==void 0?(0,t.bnToHex)(this.s):void 0}},c.prototype._validateTxV=function(g,p){var v;if(g!==void 0&&!g.eqn(0)&&(!p||p.gteHardfork("spuriousDragon"))&&!g.eqn(27)&&!g.eqn(28))if(p){var y=p.chainIdBN().muln(2);if(!g.eq(y.addn(35))&&!g.eq(y.addn(36)))throw new Error("Incompatible EIP155-based V "+g.toString()+" and chain id "+p.chainIdBN().toString()+". See the Common parameter of the Transaction constructor to set the chain id.")}else{var b;b=g.subn(35).isEven()?35:36,v=g.subn(b).divn(2)}return this._getCommon(p,v)},c.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},c.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned())throw Error("This transaction is not signed");var g=this.common.gteHardfork("spuriousDragon"),p=this.v,v=this.common.chainIdBN().muln(2);return(p.eq(v.addn(35))||p.eq(v.addn(36)))&&g},c}(i(4383).BaseTransaction);s.default=d},9562:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0});var e=i(3062),l=i(2339),n=function(){function t(){}return t.fromTxData=function(o,d){if(d===void 0&&(d={}),"type"in o&&o.type!==void 0){var u=new e.BN((0,e.toBuffer)(o.type)).toNumber();if(u===0)return l.Transaction.fromTxData(o,d);if(u===1)return l.AccessListEIP2930Transaction.fromTxData(o,d);if(u===2)return l.FeeMarketEIP1559Transaction.fromTxData(o,d);throw new Error("Tx instantiation with type "+u+" not supported")}return l.Transaction.fromTxData(o,d)},t.fromSerializedData=function(o,d){if(d===void 0&&(d={}),o[0]<=127){var u=void 0;switch(o[0]){case 1:u=2930;break;case 2:u=1559;break;default:throw new Error("TypedTransaction with ID "+o[0]+" unknown")}return u===1559?l.FeeMarketEIP1559Transaction.fromSerializedTx(o,d):l.AccessListEIP2930Transaction.fromSerializedTx(o,d)}return l.Transaction.fromSerializedTx(o,d)},t.fromBlockBodyData=function(o,d){if(d===void 0&&(d={}),f.isBuffer(o))return this.fromSerializedData(o,d);if(Array.isArray(o))return l.Transaction.fromValuesArray(o,d);throw new Error("Cannot decode transaction: unknown type input")},t.getTransactionClass=function(o,d){if(o===void 0&&(o=0),o==0||o>=128&&o<=255)return l.Transaction;switch(o){case 1:return l.AccessListEIP2930Transaction;case 2:return l.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID "+o+" unknown")}},t}();s.default=n},7325:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.N_DIV_2=s.isAccessList=s.isAccessListBuffer=s.Capability=void 0;var f,e=i(3062);function l(n){if(n.length===0)return!0;var t=n[0];return!!Array.isArray(t)}(f=s.Capability||(s.Capability={}))[f.EIP155ReplayProtection=155]="EIP155ReplayProtection",f[f.EIP1559FeeMarket=1559]="EIP1559FeeMarket",f[f.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",f[f.EIP2930AccessLists=2930]="EIP2930AccessLists",s.isAccessListBuffer=l,s.isAccessList=function(n){return!l(n)},s.N_DIV_2=new e.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)},3789:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AccessLists=void 0;var f=i(3062),e=i(7325),l=function(){function n(){}return n.getAccessListData=function(t){var o,d;if(t&&(0,e.isAccessList)(t)){o=t;for(var u=[],c=0;c<t.length;c++){for(var g=t[c],p=(0,f.toBuffer)(g.address),v=[],y=0;y<g.storageKeys.length;y++)v.push((0,f.toBuffer)(g.storageKeys[y]));u.push([p,v])}d=u}else{d=t??[];var b=[];for(c=0;c<d.length;c++){var A=d[c],x=(0,f.bufferToHex)(A[0]),E=[];for(g=0;g<A[1].length;g++)E.push((0,f.bufferToHex)(A[1][g]));var S={address:x,storageKeys:E};b.push(S)}o=b}return{AccessListJSON:o,accessList:d}},n.verifyAccessList=function(t){for(var o=0;o<t.length;o++){var d=t[o],u=d[0],c=d[1];if(d[2]!==void 0)throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");if(u.length!=20)throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");for(var g=0;g<c.length;g++)if(c[g].length!=32)throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes")}},n.getAccessListJSON=function(t){for(var o=[],d=0;d<t.length;d++){for(var u=t[d],c={address:"0x"+(0,f.setLengthLeft)(u[0],20).toString("hex"),storageKeys:[]},g=u[1],p=0;p<g.length;p++){var v=g[p];c.storageKeys.push("0x"+(0,f.setLengthLeft)(v,32).toString("hex"))}o.push(c)}return o},n.getDataFeeEIP2930=function(t,o){for(var d=o.param("gasPrices","accessListStorageKeyCost"),u=o.param("gasPrices","accessListAddressCost"),c=0,g=0;g<t.length;g++)c+=t[g][1].length;return t.length*u+c*d},n}();s.AccessLists=l},8067:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="abi/5.7.0"},4937:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.defaultAbiCoder=s.AbiCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=i(908),t=i(3694),o=i(4327),d=i(8067),u=i(7316),c=i(9146),g=i(4341),p=i(24),v=i(3861),y=i(28),b=i(4522),A=i(8287),x=i(8040),E=i(2010),S=i(800),C=new o.Logger(d.version),T=new RegExp(/^bytes([0-9]*)$/),k=new RegExp(/^(u?int)([0-9]*)$/),M=function(){function N(F){(0,e.default)(this,N),(0,t.defineReadOnly)(this,"coerceFunc",F||null)}return(0,l.default)(N,[{key:"_getCoder",value:function(F){var q=this;switch(F.baseType){case"address":return new c.AddressCoder(F.name);case"bool":return new p.BooleanCoder(F.name);case"string":return new x.StringCoder(F.name);case"bytes":return new v.BytesCoder(F.name);case"array":return new g.ArrayCoder(this._getCoder(F.arrayChildren),F.arrayLength,F.name);case"tuple":return new E.TupleCoder((F.components||[]).map(function(I){return q._getCoder(I)}),F.name);case"":return new b.NullCoder(F.name)}var z=F.type.match(k);if(z){var O=parseInt(z[2]||"256");return(O===0||O>256||O%8!=0)&&C.throwArgumentError("invalid "+z[1]+" bit length","param",F),new A.NumberCoder(O/8,z[1]==="int",F.name)}if(z=F.type.match(T)){var R=parseInt(z[1]);return(R===0||R>32)&&C.throwArgumentError("invalid bytes length","param",F),new y.FixedBytesCoder(R,F.name)}return C.throwArgumentError("invalid type","type",F.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(F,q){return new u.Reader(F,this._getWordSize(),this.coerceFunc,q)}},{key:"_getWriter",value:function(){return new u.Writer(this._getWordSize())}},{key:"getDefaultValue",value:function(F){var q=this,z=F.map(function(O){return q._getCoder(S.ParamType.from(O))});return new E.TupleCoder(z,"_").defaultValue()}},{key:"encode",value:function(F,q){var z=this;F.length!==q.length&&C.throwError("types/values length mismatch",o.Logger.errors.INVALID_ARGUMENT,{count:{types:F.length,values:q.length},value:{types:F,values:q}});var O=F.map(function(D){return z._getCoder(S.ParamType.from(D))}),R=new E.TupleCoder(O,"_"),I=this._getWriter();return R.encode(I,q),I.data}},{key:"decode",value:function(F,q,z){var O=this,R=F.map(function(I){return O._getCoder(S.ParamType.from(I))});return new E.TupleCoder(R,"_").decode(this._getReader((0,n.arrayify)(q),z))}}]),N}();s.AbiCoder=M;var P=new M;s.defaultAbiCoder=P},7316:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.Writer=s.Reader=s.Coder=void 0,s.checkResultErrors=function(y){var b=[];return function A(x,E){if(Array.isArray(E))for(var S in E){var C=x.slice();C.push(S);try{A(C,E[S])}catch(T){b.push({path:C,error:T})}}}([],y),b};var e=f(i(9721)),l=f(i(8985)),n=i(908),t=i(4952),o=i(3694),d=i(4327),u=i(8067),c=new d.Logger(u.version),g=function(){function y(b,A,x,E){(0,e.default)(this,y),this.name=b,this.type=A,this.localName=x,this.dynamic=E}return(0,l.default)(y,[{key:"_throwError",value:function(b,A){c.throwArgumentError(b,this.localName,A)}}]),y}();s.Coder=g;var p=function(){function y(b){(0,e.default)(this,y),(0,o.defineReadOnly)(this,"wordSize",b||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(b)}return(0,l.default)(y,[{key:"data",get:function(){return(0,n.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(b){return this._data.push(b),this._dataLength+=b.length,b.length}},{key:"appendWriter",value:function(b){return this._writeData((0,n.concat)(b._data))}},{key:"writeBytes",value:function(b){var A=(0,n.arrayify)(b),x=A.length%this.wordSize;return x&&(A=(0,n.concat)([A,this._padding.slice(x)])),this._writeData(A)}},{key:"_getValue",value:function(b){var A=(0,n.arrayify)(t.BigNumber.from(b));return A.length>this.wordSize&&c.throwError("value out-of-bounds",d.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:A.length}),A.length%this.wordSize&&(A=(0,n.concat)([this._padding.slice(A.length%this.wordSize),A])),A}},{key:"writeValue",value:function(b){return this._writeData(this._getValue(b))}},{key:"writeUpdatableValue",value:function(){var b=this,A=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(x){b._data[A]=b._getValue(x)}}}]),y}();s.Writer=p;var v=function(){function y(b,A,x,E){(0,e.default)(this,y),(0,o.defineReadOnly)(this,"_data",(0,n.arrayify)(b)),(0,o.defineReadOnly)(this,"wordSize",A||32),(0,o.defineReadOnly)(this,"_coerceFunc",x),(0,o.defineReadOnly)(this,"allowLoose",E),this._offset=0}return(0,l.default)(y,[{key:"data",get:function(){return(0,n.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(b,A){return this._coerceFunc?this._coerceFunc(b,A):y.coerce(b,A)}},{key:"_peekBytes",value:function(b,A,x){var E=Math.ceil(A/this.wordSize)*this.wordSize;return this._offset+E>this._data.length&&(this.allowLoose&&x&&this._offset+A<=this._data.length?E=A:c.throwError("data out-of-bounds",d.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+E})),this._data.slice(this._offset,this._offset+E)}},{key:"subReader",value:function(b){return new y(this._data.slice(this._offset+b),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(b,A){var x=this._peekBytes(0,b,!!A);return this._offset+=x.length,x.slice(0,b)}},{key:"readValue",value:function(){return t.BigNumber.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(b,A){var x=b.match("^u?int([0-9]+)$");return x&&parseInt(x[1])<=48&&(A=A.toNumber()),A}}]),y}();s.Reader=v},9146:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.AddressCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=i(7921),u=i(908),c=function(g){(0,n.default)(b,g);var p,v,y=(p=b,v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,x=(0,o.default)(p);if(v){var E=(0,o.default)(this).constructor;A=Reflect.construct(x,arguments,E)}else A=x.apply(this,arguments);return(0,t.default)(this,A)});function b(A){return(0,e.default)(this,b),y.call(this,"address","address",A,!1)}return(0,l.default)(b,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(A,x){try{x=(0,d.getAddress)(x)}catch(E){this._throwError(E.message,x)}return A.writeValue(x)}},{key:"decode",value:function(A){return(0,d.getAddress)((0,u.hexZeroPad)(A.readValue().toHexString(),20))}}]),b}(i(7316).Coder);s.AddressCoder=c},8090:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.AnonymousCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=function(u){(0,n.default)(v,u);var c,g,p=(c=v,g=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,b=(0,o.default)(c);if(g){var A=(0,o.default)(this).constructor;y=Reflect.construct(b,arguments,A)}else y=b.apply(this,arguments);return(0,t.default)(this,y)});function v(y){var b;return(0,e.default)(this,v),(b=p.call(this,y.name,y.type,void 0,y.dynamic)).coder=y,b}return(0,l.default)(v,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(y,b){return this.coder.encode(y,b)}},{key:"decode",value:function(y){return this.coder.decode(y)}}]),v}(i(7316).Coder);s.AnonymousCoder=d},4341:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.ArrayCoder=void 0,s.pack=y,s.unpack=b;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=f(i(3355)),u=i(4327),c=i(8067),g=i(7316),p=i(8090),v=new u.Logger(c.version);function y(x,E,S){var C=null;if(Array.isArray(S))C=S;else if(S&&(0,d.default)(S)==="object"){var T={};C=E.map(function(N){var F=N.localName;return F||v.throwError("cannot encode object for signature with missing names",u.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:N,value:S}),T[F]&&v.throwError("cannot encode object for signature with duplicate names",u.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:N,value:S}),T[F]=!0,S[F]})}else v.throwArgumentError("invalid tuple value","tuple",S);E.length!==C.length&&v.throwArgumentError("types/value length mismatch","tuple",S);var k=new g.Writer(x.wordSize),M=new g.Writer(x.wordSize),P=[];return E.forEach(function(N,F){var q=C[F];if(N.dynamic){var z=M.length;N.encode(M,q);var O=k.writeUpdatableValue();P.push(function(R){O(R+z)})}else N.encode(k,q)}),P.forEach(function(N){N(k.length)}),x.appendWriter(k)+x.appendWriter(M)}function b(x,E){var S=[],C=x.subReader(0);E.forEach(function(P){var N=null;if(P.dynamic){var F=x.readValue(),q=C.subReader(F.toNumber());try{N=P.decode(q)}catch(z){if(z.code===u.Logger.errors.BUFFER_OVERRUN)throw z;(N=z).baseType=P.name,N.name=P.localName,N.type=P.type}}else try{N=P.decode(x)}catch(z){if(z.code===u.Logger.errors.BUFFER_OVERRUN)throw z;(N=z).baseType=P.name,N.name=P.localName,N.type=P.type}N!=null&&S.push(N)});var T=E.reduce(function(P,N){var F=N.localName;return F&&(P[F]||(P[F]=0),P[F]++),P},{});E.forEach(function(P,N){var F=P.localName;if(F&&T[F]===1&&(F==="length"&&(F="_length"),S[F]==null)){var q=S[N];q instanceof Error?Object.defineProperty(S,F,{enumerable:!0,get:function(){throw q}}):S[F]=q}});for(var k=function(P){var N=S[P];N instanceof Error&&Object.defineProperty(S,P,{enumerable:!0,get:function(){throw N}})},M=0;M<S.length;M++)k(M);return Object.freeze(S)}var A=function(x){(0,n.default)(T,x);var E,S,C=(E=T,S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var k,M=(0,o.default)(E);if(S){var P=(0,o.default)(this).constructor;k=Reflect.construct(M,arguments,P)}else k=M.apply(this,arguments);return(0,t.default)(this,k)});function T(k,M,P){var N;(0,e.default)(this,T);var F=k.type+"["+(M>=0?M:"")+"]",q=M===-1||k.dynamic;return(N=C.call(this,"array",F,P,q)).coder=k,N.length=M,N}return(0,l.default)(T,[{key:"defaultValue",value:function(){for(var k=this.coder.defaultValue(),M=[],P=0;P<this.length;P++)M.push(k);return M}},{key:"encode",value:function(k,M){Array.isArray(M)||this._throwError("expected array value",M);var P=this.length;P===-1&&(P=M.length,k.writeValue(M.length)),v.checkArgumentCount(M.length,P,"coder array"+(this.localName?" "+this.localName:""));for(var N=[],F=0;F<M.length;F++)N.push(this.coder);return y(k,N,M)}},{key:"decode",value:function(k){var M=this.length;M===-1&&32*(M=k.readValue().toNumber())>k._data.length&&v.throwError("insufficient data length",u.Logger.errors.BUFFER_OVERRUN,{length:k._data.length,count:M});for(var P=[],N=0;N<M;N++)P.push(new p.AnonymousCoder(this.coder));return k.coerce(this.name,b(k,P))}}]),T}(g.Coder);s.ArrayCoder=A},24:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.BooleanCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=function(u){(0,n.default)(v,u);var c,g,p=(c=v,g=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,b=(0,o.default)(c);if(g){var A=(0,o.default)(this).constructor;y=Reflect.construct(b,arguments,A)}else y=b.apply(this,arguments);return(0,t.default)(this,y)});function v(y){return(0,e.default)(this,v),p.call(this,"bool","bool",y,!1)}return(0,l.default)(v,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(y,b){return y.writeValue(b?1:0)}},{key:"decode",value:function(y){return y.coerce(this.type,!y.readValue().isZero())}}]),v}(i(7316).Coder);s.BooleanCoder=d},3861:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.DynamicBytesCoder=s.BytesCoder=void 0;var e=f(i(119)),l=f(i(9721)),n=f(i(8985)),t=f(i(5163)),o=f(i(4650)),d=f(i(1949)),u=i(908);function c(v){var y=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var b,A=(0,d.default)(v);if(y){var x=(0,d.default)(this).constructor;b=Reflect.construct(A,arguments,x)}else b=A.apply(this,arguments);return(0,o.default)(this,b)}}var g=function(v){(0,t.default)(b,v);var y=c(b);function b(A,x){return(0,l.default)(this,b),y.call(this,A,A,x,!0)}return(0,n.default)(b,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(A,x){return x=(0,u.arrayify)(x),A.writeValue(x.length)+A.writeBytes(x)}},{key:"decode",value:function(A){return A.readBytes(A.readValue().toNumber(),!0)}}]),b}(i(7316).Coder);s.DynamicBytesCoder=g;var p=function(v){(0,t.default)(b,v);var y=c(b);function b(A){return(0,l.default)(this,b),y.call(this,"bytes",A)}return(0,n.default)(b,[{key:"decode",value:function(A){return A.coerce(this.name,(0,u.hexlify)((0,e.default)((0,d.default)(b.prototype),"decode",this).call(this,A)))}}]),b}(g);s.BytesCoder=p},28:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.FixedBytesCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=i(908),u=function(c){(0,n.default)(y,c);var g,p,v=(g=y,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var b,A=(0,o.default)(g);if(p){var x=(0,o.default)(this).constructor;b=Reflect.construct(A,arguments,x)}else b=A.apply(this,arguments);return(0,t.default)(this,b)});function y(b,A){var x;(0,e.default)(this,y);var E="bytes"+String(b);return(x=v.call(this,E,E,A,!1)).size=b,x}return(0,l.default)(y,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(b,A){var x=(0,d.arrayify)(A);return x.length!==this.size&&this._throwError("incorrect data length",A),b.writeBytes(x)}},{key:"decode",value:function(b){return b.coerce(this.name,(0,d.hexlify)(b.readBytes(this.size)))}}]),y}(i(7316).Coder);s.FixedBytesCoder=u},4522:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.NullCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=function(u){(0,n.default)(v,u);var c,g,p=(c=v,g=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var y,b=(0,o.default)(c);if(g){var A=(0,o.default)(this).constructor;y=Reflect.construct(b,arguments,A)}else y=b.apply(this,arguments);return(0,t.default)(this,y)});function v(y){return(0,e.default)(this,v),p.call(this,"null","",y,!1)}return(0,l.default)(v,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(y,b){return b!=null&&this._throwError("not null",b),y.writeBytes([])}},{key:"decode",value:function(y){return y.readBytes(0),y.coerce(this.name,null)}}]),v}(i(7316).Coder);s.NullCoder=d},8287:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.NumberCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=i(4952),u=i(5465),c=function(g){(0,n.default)(b,g);var p,v,y=(p=b,v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,x=(0,o.default)(p);if(v){var E=(0,o.default)(this).constructor;A=Reflect.construct(x,arguments,E)}else A=x.apply(this,arguments);return(0,t.default)(this,A)});function b(A,x,E){var S;(0,e.default)(this,b);var C=(x?"int":"uint")+8*A;return(S=y.call(this,C,C,E,!1)).size=A,S.signed=x,S}return(0,l.default)(b,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(A,x){var E=d.BigNumber.from(x),S=u.MaxUint256.mask(8*A.wordSize);if(this.signed){var C=S.mask(8*this.size-1);(E.gt(C)||E.lt(C.add(u.One).mul(u.NegativeOne)))&&this._throwError("value out-of-bounds",x)}else(E.lt(u.Zero)||E.gt(S.mask(8*this.size)))&&this._throwError("value out-of-bounds",x);return E=E.toTwos(8*this.size).mask(8*this.size),this.signed&&(E=E.fromTwos(8*this.size).toTwos(8*A.wordSize)),A.writeValue(E)}},{key:"decode",value:function(A){var x=A.readValue().mask(8*this.size);return this.signed&&(x=x.fromTwos(8*this.size)),A.coerce(this.name,x)}}]),b}(i(7316).Coder);s.NumberCoder=c},8040:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.StringCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(119)),t=f(i(5163)),o=f(i(4650)),d=f(i(1949)),u=i(8627),c=function(g){(0,t.default)(b,g);var p,v,y=(p=b,v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,x=(0,d.default)(p);if(v){var E=(0,d.default)(this).constructor;A=Reflect.construct(x,arguments,E)}else A=x.apply(this,arguments);return(0,o.default)(this,A)});function b(A){return(0,e.default)(this,b),y.call(this,"string",A)}return(0,l.default)(b,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(A,x){return(0,n.default)((0,d.default)(b.prototype),"encode",this).call(this,A,(0,u.toUtf8Bytes)(x))}},{key:"decode",value:function(A){return(0,u.toUtf8String)((0,n.default)((0,d.default)(b.prototype),"decode",this).call(this,A))}}]),b}(i(3861).DynamicBytesCoder);s.StringCoder=c},2010:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.TupleCoder=void 0;var e=f(i(9721)),l=f(i(8985)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=i(7316),u=i(4341),c=function(g){(0,n.default)(b,g);var p,v,y=(p=b,v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,x=(0,o.default)(p);if(v){var E=(0,o.default)(this).constructor;A=Reflect.construct(x,arguments,E)}else A=x.apply(this,arguments);return(0,t.default)(this,A)});function b(A,x){var E;(0,e.default)(this,b);var S=!1,C=[];A.forEach(function(k){k.dynamic&&(S=!0),C.push(k.type)});var T="tuple("+C.join(",")+")";return(E=y.call(this,"tuple",T,x,S)).coders=A,E}return(0,l.default)(b,[{key:"defaultValue",value:function(){var A=[];this.coders.forEach(function(E){A.push(E.defaultValue())});var x=this.coders.reduce(function(E,S){var C=S.localName;return C&&(E[C]||(E[C]=0),E[C]++),E},{});return this.coders.forEach(function(E,S){var C=E.localName;C&&x[C]===1&&(C==="length"&&(C="_length"),A[C]==null&&(A[C]=A[S]))}),Object.freeze(A)}},{key:"encode",value:function(A,x){return(0,u.pack)(A,this.coders,x)}},{key:"decode",value:function(A){return A.coerce(this.name,(0,u.unpack)(A,this.coders))}}]),b}(d.Coder);s.TupleCoder=c},800:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.ParamType=s.FunctionFragment=s.Fragment=s.FormatTypes=s.EventFragment=s.ErrorFragment=s.ConstructorFragment=void 0;var e=f(i(5163)),l=f(i(4650)),n=f(i(1949)),t=f(i(9721)),o=f(i(8985)),d=i(4952),u=i(3694),c=i(4327),g=i(8067);function p(X){var Z=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var L,W=(0,n.default)(X);if(Z){var G=(0,n.default)(this).constructor;L=Reflect.construct(W,arguments,G)}else L=W.apply(this,arguments);return(0,l.default)(this,L)}}var v=new c.Logger(g.version),y={},b={calldata:!0,memory:!0,storage:!0},A={calldata:!0,memory:!0};function x(X,Z){if(X==="bytes"||X==="string"){if(b[Z])return!0}else if(X==="address"){if(Z==="payable")return!0}else if((X.indexOf("[")>=0||X==="tuple")&&A[Z])return!0;return(b[Z]||Z==="payable")&&v.throwArgumentError("invalid modifier","name",Z),!1}function E(X,Z){for(var L in Z)(0,u.defineReadOnly)(X,L,Z[L])}var S=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});s.FormatTypes=S;var C=new RegExp(/^(.*)\[([0-9]*)\]$/),T=function(){function X(Z,L){(0,t.default)(this,X),Z!==y&&v.throwError("use fromString",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),E(this,L);var W=this.type.match(C);E(this,W?{arrayLength:parseInt(W[2]||"-1"),arrayChildren:X.fromObject({type:W[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,o.default)(X,[{key:"format",value:function(Z){if(Z||(Z=S.sighash),S[Z]||v.throwArgumentError("invalid format type","format",Z),Z===S.json){var L={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(L.indexed=this.indexed),this.components&&(L.components=this.components.map(function(G){return JSON.parse(G.format(Z))})),JSON.stringify(L)}var W="";return this.baseType==="array"?(W+=this.arrayChildren.format(Z),W+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(Z!==S.sighash&&(W+=this.type),W+="("+this.components.map(function(G){return G.format(Z)}).join(Z===S.full?", ":",")+")"):W+=this.type,Z!==S.sighash&&(this.indexed===!0&&(W+=" indexed"),Z===S.full&&this.name&&(W+=" "+this.name)),W}}],[{key:"from",value:function(Z,L){return typeof Z=="string"?X.fromString(Z,L):X.fromObject(Z)}},{key:"fromObject",value:function(Z){return X.isParamType(Z)?Z:new X(y,{name:Z.name||null,type:D(Z.type),indexed:Z.indexed==null?null:!!Z.indexed,components:Z.components?Z.components.map(X.fromObject):null})}},{key:"fromString",value:function(Z,L){return W=function(G,J){var H=G;function U(Y){v.throwArgumentError("unexpected character at position ".concat(Y),"param",G)}function K(Y){var V={type:"",name:"",parent:Y,state:{allowType:!0}};return J&&(V.indexed=!1),V}G=G.replace(/\s/g," ");for(var te={type:"",name:"",state:{allowType:!0}},ee=te,ie=0;ie<G.length;ie++){var se=G[ie];switch(se){case"(":ee.state.allowType&&ee.type===""?ee.type="tuple":ee.state.allowParams||U(ie),ee.state.allowType=!1,ee.type=D(ee.type),ee.components=[K(ee)],ee=ee.components[0];break;case")":delete ee.state,ee.name==="indexed"&&(J||U(ie),ee.indexed=!0,ee.name=""),x(ee.type,ee.name)&&(ee.name=""),ee.type=D(ee.type);var ne=ee;(ee=ee.parent)||U(ie),delete ne.parent,ee.state.allowParams=!1,ee.state.allowName=!0,ee.state.allowArray=!0;break;case",":delete ee.state,ee.name==="indexed"&&(J||U(ie),ee.indexed=!0,ee.name=""),x(ee.type,ee.name)&&(ee.name=""),ee.type=D(ee.type);var re=K(ee.parent);ee.parent.components.push(re),delete ee.parent,ee=re;break;case" ":ee.state.allowType&&ee.type!==""&&(ee.type=D(ee.type),delete ee.state.allowType,ee.state.allowName=!0,ee.state.allowParams=!0),ee.state.allowName&&ee.name!==""&&(ee.name==="indexed"?(J||U(ie),ee.indexed&&U(ie),ee.indexed=!0,ee.name=""):x(ee.type,ee.name)?ee.name="":ee.state.allowName=!1);break;case"[":ee.state.allowArray||U(ie),ee.type+=se,ee.state.allowArray=!1,ee.state.allowName=!1,ee.state.readArray=!0;break;case"]":ee.state.readArray||U(ie),ee.type+=se,ee.state.readArray=!1,ee.state.allowArray=!0,ee.state.allowName=!0;break;default:ee.state.allowType?(ee.type+=se,ee.state.allowParams=!0,ee.state.allowArray=!0):ee.state.allowName?(ee.name+=se,delete ee.state.allowArray):ee.state.readArray?ee.type+=se:U(ie)}}return ee.parent&&v.throwArgumentError("unexpected eof","param",G),delete te.state,ee.name==="indexed"?(J||U(H.length-7),ee.indexed&&U(H.length-7),ee.indexed=!0,ee.name=""):x(ee.type,ee.name)&&(ee.name=""),te.type=D(te.type),te}(Z,!!L),X.fromObject({name:W.name,type:W.type,indexed:W.indexed,components:W.components});var W}},{key:"isParamType",value:function(Z){return!(Z==null||!Z._isParamType)}}]),X}();function k(X,Z){return function(L){L=L.trim();for(var W=[],G="",J=0,H=0;H<L.length;H++){var U=L[H];U===","&&J===0?(W.push(G),G=""):(G+=U,U==="("?J++:U===")"&&--J==-1&&v.throwArgumentError("unbalanced parenthesis","value",L))}return G&&W.push(G),W}(X).map(function(L){return T.fromString(L,Z)})}s.ParamType=T;var M=function(){function X(Z,L){(0,t.default)(this,X),Z!==y&&v.throwError("use a static from method",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),E(this,L),this._isFragment=!0,Object.freeze(this)}return(0,o.default)(X,null,[{key:"from",value:function(Z){return X.isFragment(Z)?Z:typeof Z=="string"?X.fromString(Z):X.fromObject(Z)}},{key:"fromObject",value:function(Z){if(X.isFragment(Z))return Z;switch(Z.type){case"function":return O.fromObject(Z);case"event":return P.fromObject(Z);case"constructor":return z.fromObject(Z);case"error":return I.fromObject(Z);case"fallback":case"receive":return null}return v.throwArgumentError("invalid fragment object","value",Z)}},{key:"fromString",value:function(Z){return(Z=(Z=(Z=Z.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]==="event"?P.fromString(Z.substring(5).trim()):Z.split(" ")[0]==="function"?O.fromString(Z.substring(8).trim()):Z.split("(")[0].trim()==="constructor"?z.fromString(Z.trim()):Z.split(" ")[0]==="error"?I.fromString(Z.substring(5).trim()):v.throwArgumentError("unsupported fragment","value",Z)}},{key:"isFragment",value:function(Z){return!(!Z||!Z._isFragment)}}]),X}();s.Fragment=M;var P=function(X){(0,e.default)(L,X);var Z=p(L);function L(){return(0,t.default)(this,L),Z.apply(this,arguments)}return(0,o.default)(L,[{key:"format",value:function(W){if(W||(W=S.sighash),S[W]||v.throwArgumentError("invalid format type","format",W),W===S.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(function(J){return JSON.parse(J.format(W))})});var G="";return W!==S.sighash&&(G+="event "),G+=this.name+"("+this.inputs.map(function(J){return J.format(W)}).join(W===S.full?", ":",")+") ",W!==S.sighash&&this.anonymous&&(G+="anonymous "),G.trim()}}],[{key:"from",value:function(W){return typeof W=="string"?L.fromString(W):L.fromObject(W)}},{key:"fromObject",value:function(W){if(L.isEventFragment(W))return W;W.type!=="event"&&v.throwArgumentError("invalid event object","value",W);var G={name:j(W.name),anonymous:W.anonymous,inputs:W.inputs?W.inputs.map(T.fromObject):[],type:"event"};return new L(y,G)}},{key:"fromString",value:function(W){var G=W.match(Q);G||v.throwArgumentError("invalid event string","value",W);var J=!1;return G[3].split(" ").forEach(function(H){switch(H.trim()){case"anonymous":J=!0;break;case"":break;default:v.warn("unknown modifier: "+H)}}),L.fromObject({name:G[1].trim(),anonymous:J,inputs:k(G[2],!0),type:"event"})}},{key:"isEventFragment",value:function(W){return W&&W._isFragment&&W.type==="event"}}]),L}(M);function N(X,Z){Z.gas=null;var L=X.split("@");return L.length!==1?(L.length>2&&v.throwArgumentError("invalid human-readable ABI signature","value",X),L[1].match(/^[0-9]+$/)||v.throwArgumentError("invalid human-readable ABI signature gas","value",X),Z.gas=d.BigNumber.from(L[1]),L[0]):X}function F(X,Z){Z.constant=!1,Z.payable=!1,Z.stateMutability="nonpayable",X.split(" ").forEach(function(L){switch(L.trim()){case"constant":Z.constant=!0;break;case"payable":Z.payable=!0,Z.stateMutability="payable";break;case"nonpayable":Z.payable=!1,Z.stateMutability="nonpayable";break;case"pure":Z.constant=!0,Z.stateMutability="pure";break;case"view":Z.constant=!0,Z.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+L)}})}function q(X){var Z={constant:!1,payable:!0,stateMutability:"payable"};return X.stateMutability!=null?(Z.stateMutability=X.stateMutability,Z.constant=Z.stateMutability==="view"||Z.stateMutability==="pure",X.constant!=null&&!!X.constant!==Z.constant&&v.throwArgumentError("cannot have constant function with mutability "+Z.stateMutability,"value",X),Z.payable=Z.stateMutability==="payable",X.payable!=null&&!!X.payable!==Z.payable&&v.throwArgumentError("cannot have payable function with mutability "+Z.stateMutability,"value",X)):X.payable!=null?(Z.payable=!!X.payable,X.constant!=null||Z.payable||X.type==="constructor"||v.throwArgumentError("unable to determine stateMutability","value",X),Z.constant=!!X.constant,Z.constant?Z.stateMutability="view":Z.stateMutability=Z.payable?"payable":"nonpayable",Z.payable&&Z.constant&&v.throwArgumentError("cannot have constant payable function","value",X)):X.constant!=null?(Z.constant=!!X.constant,Z.payable=!Z.constant,Z.stateMutability=Z.constant?"view":"payable"):X.type!=="constructor"&&v.throwArgumentError("unable to determine stateMutability","value",X),Z}s.EventFragment=P;var z=function(X){(0,e.default)(L,X);var Z=p(L);function L(){return(0,t.default)(this,L),Z.apply(this,arguments)}return(0,o.default)(L,[{key:"format",value:function(W){if(W||(W=S.sighash),S[W]||v.throwArgumentError("invalid format type","format",W),W===S.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(J){return JSON.parse(J.format(W))})});W===S.sighash&&v.throwError("cannot format a constructor for sighash",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var G="constructor("+this.inputs.map(function(J){return J.format(W)}).join(W===S.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(G+=this.stateMutability+" "),G.trim()}}],[{key:"from",value:function(W){return typeof W=="string"?L.fromString(W):L.fromObject(W)}},{key:"fromObject",value:function(W){if(L.isConstructorFragment(W))return W;W.type!=="constructor"&&v.throwArgumentError("invalid constructor object","value",W);var G=q(W);G.constant&&v.throwArgumentError("constructor cannot be constant","value",W);var J={name:null,type:W.type,inputs:W.inputs?W.inputs.map(T.fromObject):[],payable:G.payable,stateMutability:G.stateMutability,gas:W.gas?d.BigNumber.from(W.gas):null};return new L(y,J)}},{key:"fromString",value:function(W){var G={type:"constructor"},J=(W=N(W,G)).match(Q);return J&&J[1].trim()==="constructor"||v.throwArgumentError("invalid constructor string","value",W),G.inputs=k(J[2].trim(),!1),F(J[3].trim(),G),L.fromObject(G)}},{key:"isConstructorFragment",value:function(W){return W&&W._isFragment&&W.type==="constructor"}}]),L}(M);s.ConstructorFragment=z;var O=function(X){(0,e.default)(L,X);var Z=p(L);function L(){return(0,t.default)(this,L),Z.apply(this,arguments)}return(0,o.default)(L,[{key:"format",value:function(W){if(W||(W=S.sighash),S[W]||v.throwArgumentError("invalid format type","format",W),W===S.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(J){return JSON.parse(J.format(W))}),outputs:this.outputs.map(function(J){return JSON.parse(J.format(W))})});var G="";return W!==S.sighash&&(G+="function "),G+=this.name+"("+this.inputs.map(function(J){return J.format(W)}).join(W===S.full?", ":",")+") ",W!==S.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(G+=this.stateMutability+" "):this.constant&&(G+="view "),this.outputs&&this.outputs.length&&(G+="returns ("+this.outputs.map(function(J){return J.format(W)}).join(", ")+") "),this.gas!=null&&(G+="@"+this.gas.toString()+" ")),G.trim()}}],[{key:"from",value:function(W){return typeof W=="string"?L.fromString(W):L.fromObject(W)}},{key:"fromObject",value:function(W){if(L.isFunctionFragment(W))return W;W.type!=="function"&&v.throwArgumentError("invalid function object","value",W);var G=q(W),J={type:W.type,name:j(W.name),constant:G.constant,inputs:W.inputs?W.inputs.map(T.fromObject):[],outputs:W.outputs?W.outputs.map(T.fromObject):[],payable:G.payable,stateMutability:G.stateMutability,gas:W.gas?d.BigNumber.from(W.gas):null};return new L(y,J)}},{key:"fromString",value:function(W){var G={type:"function"},J=(W=N(W,G)).split(" returns ");J.length>2&&v.throwArgumentError("invalid function string","value",W);var H=J[0].match(Q);if(H||v.throwArgumentError("invalid function signature","value",W),G.name=H[1].trim(),G.name&&j(G.name),G.inputs=k(H[2],!1),F(H[3].trim(),G),J.length>1){var U=J[1].match(Q);U[1].trim()==""&&U[3].trim()==""||v.throwArgumentError("unexpected tokens","value",W),G.outputs=k(U[2],!1)}else G.outputs=[];return L.fromObject(G)}},{key:"isFunctionFragment",value:function(W){return W&&W._isFragment&&W.type==="function"}}]),L}(z);function R(X){var Z=X.format();return Z!=="Error(string)"&&Z!=="Panic(uint256)"||v.throwArgumentError("cannot specify user defined ".concat(Z," error"),"fragment",X),X}s.FunctionFragment=O;var I=function(X){(0,e.default)(L,X);var Z=p(L);function L(){return(0,t.default)(this,L),Z.apply(this,arguments)}return(0,o.default)(L,[{key:"format",value:function(W){if(W||(W=S.sighash),S[W]||v.throwArgumentError("invalid format type","format",W),W===S.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(J){return JSON.parse(J.format(W))})});var G="";return W!==S.sighash&&(G+="error "),(G+=this.name+"("+this.inputs.map(function(J){return J.format(W)}).join(W===S.full?", ":",")+") ").trim()}}],[{key:"from",value:function(W){return typeof W=="string"?L.fromString(W):L.fromObject(W)}},{key:"fromObject",value:function(W){if(L.isErrorFragment(W))return W;W.type!=="error"&&v.throwArgumentError("invalid error object","value",W);var G={type:W.type,name:j(W.name),inputs:W.inputs?W.inputs.map(T.fromObject):[]};return R(new L(y,G))}},{key:"fromString",value:function(W){var G={type:"error"},J=W.match(Q);return J||v.throwArgumentError("invalid error signature","value",W),G.name=J[1].trim(),G.name&&j(G.name),G.inputs=k(J[2],!1),R(L.fromObject(G))}},{key:"isErrorFragment",value:function(W){return W&&W._isFragment&&W.type==="error"}}]),L}(M);function D(X){return X.match(/^uint($|[^1-9])/)?X="uint256"+X.substring(4):X.match(/^int($|[^1-9])/)&&(X="int256"+X.substring(3)),X}s.ErrorFragment=I;var B=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function j(X){return X&&X.match(B)||v.throwArgumentError('invalid identifier "'.concat(X,'"'),"value",X),X}var Q=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},2914:(r,s,i)=>{Object.defineProperty(s,"RQ",{enumerable:!0,get:function(){return e.AbiCoder}}),Object.defineProperty(s,"_R",{enumerable:!0,get:function(){return f.ParamType}});var f=i(800),e=i(4937);i(9044)},9044:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.TransactionDescription=s.LogDescription=s.Interface=s.Indexed=s.ErrorDescription=void 0,Object.defineProperty(s,"checkResultErrors",{enumerable:!0,get:function(){return b.checkResultErrors}});var e=f(i(8985)),l=f(i(9721)),n=f(i(5163)),t=f(i(4650)),o=f(i(1949)),d=i(7921),u=i(4952),c=i(908),g=i(7515),p=i(4642),v=i(3694),y=i(4937),b=i(7316),A=i(800),x=i(4327),E=i(8067);function S(z){var O=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var R,I=(0,o.default)(z);if(O){var D=(0,o.default)(this).constructor;R=Reflect.construct(I,arguments,D)}else R=I.apply(this,arguments);return(0,t.default)(this,R)}}var C=new x.Logger(E.version),T=function(z){(0,n.default)(R,z);var O=S(R);function R(){return(0,l.default)(this,R),O.apply(this,arguments)}return(0,e.default)(R)}(v.Description);s.LogDescription=T;var k=function(z){(0,n.default)(R,z);var O=S(R);function R(){return(0,l.default)(this,R),O.apply(this,arguments)}return(0,e.default)(R)}(v.Description);s.TransactionDescription=k;var M=function(z){(0,n.default)(R,z);var O=S(R);function R(){return(0,l.default)(this,R),O.apply(this,arguments)}return(0,e.default)(R)}(v.Description);s.ErrorDescription=M;var P=function(z){(0,n.default)(R,z);var O=S(R);function R(){return(0,l.default)(this,R),O.apply(this,arguments)}return(0,e.default)(R,null,[{key:"isIndexed",value:function(I){return!(!I||!I._isIndexed)}}]),R}(v.Description);s.Indexed=P;var N={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function F(z,O){var R=new Error("deferred error during ABI decoding triggered accessing ".concat(z));return R.error=O,R}var q=function(){function z(O){var R=this;(0,l.default)(this,z);var I=[];I=typeof O=="string"?JSON.parse(O):O,(0,v.defineReadOnly)(this,"fragments",I.map(function(D){return A.Fragment.from(D)}).filter(function(D){return D!=null})),(0,v.defineReadOnly)(this,"_abiCoder",(0,v.getStatic)(this instanceof z?this.constructor:void 0,"getAbiCoder")()),(0,v.defineReadOnly)(this,"functions",{}),(0,v.defineReadOnly)(this,"errors",{}),(0,v.defineReadOnly)(this,"events",{}),(0,v.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(D){var B=null;switch(D.type){case"constructor":return R.deploy?void C.warn("duplicate definition - constructor"):void(0,v.defineReadOnly)(R,"deploy",D);case"function":B=R.functions;break;case"event":B=R.events;break;case"error":B=R.errors;break;default:return}var j=D.format();B[j]?C.warn("duplicate definition - "+j):B[j]=D}),this.deploy||(0,v.defineReadOnly)(this,"deploy",A.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,v.defineReadOnly)(this,"_isInterface",!0)}return(0,e.default)(z,[{key:"format",value:function(O){O||(O=A.FormatTypes.full),O===A.FormatTypes.sighash&&C.throwArgumentError("interface does not support formatting sighash","format",O);var R=this.fragments.map(function(I){return I.format(O)});return O===A.FormatTypes.json?JSON.stringify(R.map(function(I){return JSON.parse(I)})):R}},{key:"getFunction",value:function(O){if((0,c.isHexString)(O)){for(var R in this.functions)if(O===this.getSighash(R))return this.functions[R];C.throwArgumentError("no matching function","sighash",O)}if(O.indexOf("(")===-1){var I=O.trim(),D=Object.keys(this.functions).filter(function(j){return j.split("(")[0]===I});return D.length===0?C.throwArgumentError("no matching function","name",I):D.length>1&&C.throwArgumentError("multiple matching functions","name",I),this.functions[D[0]]}var B=this.functions[A.FunctionFragment.fromString(O).format()];return B||C.throwArgumentError("no matching function","signature",O),B}},{key:"getEvent",value:function(O){if((0,c.isHexString)(O)){var R=O.toLowerCase();for(var I in this.events)if(R===this.getEventTopic(I))return this.events[I];C.throwArgumentError("no matching event","topichash",R)}if(O.indexOf("(")===-1){var D=O.trim(),B=Object.keys(this.events).filter(function(Q){return Q.split("(")[0]===D});return B.length===0?C.throwArgumentError("no matching event","name",D):B.length>1&&C.throwArgumentError("multiple matching events","name",D),this.events[B[0]]}var j=this.events[A.EventFragment.fromString(O).format()];return j||C.throwArgumentError("no matching event","signature",O),j}},{key:"getError",value:function(O){if((0,c.isHexString)(O)){var R=(0,v.getStatic)(this.constructor,"getSighash");for(var I in this.errors)if(O===R(this.errors[I]))return this.errors[I];C.throwArgumentError("no matching error","sighash",O)}if(O.indexOf("(")===-1){var D=O.trim(),B=Object.keys(this.errors).filter(function(Q){return Q.split("(")[0]===D});return B.length===0?C.throwArgumentError("no matching error","name",D):B.length>1&&C.throwArgumentError("multiple matching errors","name",D),this.errors[B[0]]}var j=this.errors[A.FunctionFragment.fromString(O).format()];return j||C.throwArgumentError("no matching error","signature",O),j}},{key:"getSighash",value:function(O){if(typeof O=="string")try{O=this.getFunction(O)}catch(R){try{O=this.getError(O)}catch{throw R}}return(0,v.getStatic)(this.constructor,"getSighash")(O)}},{key:"getEventTopic",value:function(O){return typeof O=="string"&&(O=this.getEvent(O)),(0,v.getStatic)(this.constructor,"getEventTopic")(O)}},{key:"_decodeParams",value:function(O,R){return this._abiCoder.decode(O,R)}},{key:"_encodeParams",value:function(O,R){return this._abiCoder.encode(O,R)}},{key:"encodeDeploy",value:function(O){return this._encodeParams(this.deploy.inputs,O||[])}},{key:"decodeErrorResult",value:function(O,R){typeof O=="string"&&(O=this.getError(O));var I=(0,c.arrayify)(R);return(0,c.hexlify)(I.slice(0,4))!==this.getSighash(O)&&C.throwArgumentError("data signature does not match error ".concat(O.name,"."),"data",(0,c.hexlify)(I)),this._decodeParams(O.inputs,I.slice(4))}},{key:"encodeErrorResult",value:function(O,R){return typeof O=="string"&&(O=this.getError(O)),(0,c.hexlify)((0,c.concat)([this.getSighash(O),this._encodeParams(O.inputs,R||[])]))}},{key:"decodeFunctionData",value:function(O,R){typeof O=="string"&&(O=this.getFunction(O));var I=(0,c.arrayify)(R);return(0,c.hexlify)(I.slice(0,4))!==this.getSighash(O)&&C.throwArgumentError("data signature does not match function ".concat(O.name,"."),"data",(0,c.hexlify)(I)),this._decodeParams(O.inputs,I.slice(4))}},{key:"encodeFunctionData",value:function(O,R){return typeof O=="string"&&(O=this.getFunction(O)),(0,c.hexlify)((0,c.concat)([this.getSighash(O),this._encodeParams(O.inputs,R||[])]))}},{key:"decodeFunctionResult",value:function(O,R){typeof O=="string"&&(O=this.getFunction(O));var I=(0,c.arrayify)(R),D=null,B="",j=null,Q=null,X=null;switch(I.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(O.outputs,I)}catch{}break;case 4:var Z=(0,c.hexlify)(I.slice(0,4)),L=N[Z];if(L)j=this._abiCoder.decode(L.inputs,I.slice(4)),Q=L.name,X=L.signature,L.reason&&(D=j[0]),Q==="Error"?B="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(j[0])):Q==="Panic"&&(B="; VM Exception while processing transaction: reverted with panic code ".concat(j[0]));else try{var W=this.getError(Z);j=this._abiCoder.decode(W.inputs,I.slice(4)),Q=W.name,X=W.format()}catch{}}return C.throwError("call revert exception"+B,x.Logger.errors.CALL_EXCEPTION,{method:O.format(),data:(0,c.hexlify)(R),errorArgs:j,errorName:Q,errorSignature:X,reason:D})}},{key:"encodeFunctionResult",value:function(O,R){return typeof O=="string"&&(O=this.getFunction(O)),(0,c.hexlify)(this._abiCoder.encode(O.outputs,R||[]))}},{key:"encodeFilterTopics",value:function(O,R){var I=this;typeof O=="string"&&(O=this.getEvent(O)),R.length>O.inputs.length&&C.throwError("too many arguments for "+O.format(),x.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:R});var D=[];O.anonymous||D.push(this.getEventTopic(O));var B=function(j,Q){return j.type==="string"?(0,g.id)(Q):j.type==="bytes"?(0,p.keccak256)((0,c.hexlify)(Q)):(j.type==="bool"&&typeof Q=="boolean"&&(Q=Q?"0x01":"0x00"),j.type.match(/^u?int/)&&(Q=u.BigNumber.from(Q).toHexString()),j.type==="address"&&I._abiCoder.encode(["address"],[Q]),(0,c.hexZeroPad)((0,c.hexlify)(Q),32))};for(R.forEach(function(j,Q){var X=O.inputs[Q];X.indexed?j==null?D.push(null):X.baseType==="array"||X.baseType==="tuple"?C.throwArgumentError("filtering with tuples or arrays not supported","contract."+X.name,j):Array.isArray(j)?D.push(j.map(function(Z){return B(X,Z)})):D.push(B(X,j)):j!=null&&C.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+X.name,j)});D.length&&D[D.length-1]===null;)D.pop();return D}},{key:"encodeEventLog",value:function(O,R){var I=this;typeof O=="string"&&(O=this.getEvent(O));var D=[],B=[],j=[];return O.anonymous||D.push(this.getEventTopic(O)),R.length!==O.inputs.length&&C.throwArgumentError("event arguments/values mismatch","values",R),O.inputs.forEach(function(Q,X){var Z=R[X];if(Q.indexed)if(Q.type==="string")D.push((0,g.id)(Z));else if(Q.type==="bytes")D.push((0,p.keccak256)(Z));else{if(Q.baseType==="tuple"||Q.baseType==="array")throw new Error("not implemented");D.push(I._abiCoder.encode([Q.type],[Z]))}else B.push(Q),j.push(Z)}),{data:this._abiCoder.encode(B,j),topics:D}}},{key:"decodeEventLog",value:function(O,R,I){if(typeof O=="string"&&(O=this.getEvent(O)),I!=null&&!O.anonymous){var D=this.getEventTopic(O);(0,c.isHexString)(I[0],32)&&I[0].toLowerCase()===D||C.throwError("fragment/topic mismatch",x.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:D,value:I[0]}),I=I.slice(1)}var B=[],j=[],Q=[];O.inputs.forEach(function(U,K){U.indexed?U.type==="string"||U.type==="bytes"||U.baseType==="tuple"||U.baseType==="array"?(B.push(A.ParamType.fromObject({type:"bytes32",name:U.name})),Q.push(!0)):(B.push(U),Q.push(!1)):(j.push(U),Q.push(!1))});var X=I!=null?this._abiCoder.decode(B,(0,c.concat)(I)):null,Z=this._abiCoder.decode(j,R,!0),L=[],W=0,G=0;O.inputs.forEach(function(U,K){if(U.indexed)if(X==null)L[K]=new P({_isIndexed:!0,hash:null});else if(Q[K])L[K]=new P({_isIndexed:!0,hash:X[G++]});else try{L[K]=X[G++]}catch(ee){L[K]=ee}else try{L[K]=Z[W++]}catch(ee){L[K]=ee}if(U.name&&L[U.name]==null){var te=L[K];te instanceof Error?Object.defineProperty(L,U.name,{enumerable:!0,get:function(){throw F("property ".concat(JSON.stringify(U.name)),te)}}):L[U.name]=te}});for(var J=function(U){var K=L[U];K instanceof Error&&Object.defineProperty(L,U,{enumerable:!0,get:function(){throw F("index ".concat(U),K)}})},H=0;H<L.length;H++)J(H);return Object.freeze(L)}},{key:"parseTransaction",value:function(O){var R=this.getFunction(O.data.substring(0,10).toLowerCase());return R?new k({args:this._abiCoder.decode(R.inputs,"0x"+O.data.substring(10)),functionFragment:R,name:R.name,signature:R.format(),sighash:this.getSighash(R),value:u.BigNumber.from(O.value||"0")}):null}},{key:"parseLog",value:function(O){var R=this.getEvent(O.topics[0]);return!R||R.anonymous?null:new T({eventFragment:R,name:R.name,signature:R.format(),topic:this.getEventTopic(R),args:this.decodeEventLog(R,O.data,O.topics)})}},{key:"parseError",value:function(O){var R=(0,c.hexlify)(O),I=this.getError(R.substring(0,10).toLowerCase());return I?new M({args:this._abiCoder.decode(I.inputs,"0x"+R.substring(10)),errorFragment:I,name:I.name,signature:I.format(),sighash:this.getSighash(I)}):null}}],[{key:"getAbiCoder",value:function(){return y.defaultAbiCoder}},{key:"getAddress",value:function(O){return(0,d.getAddress)(O)}},{key:"getSighash",value:function(O){return(0,c.hexDataSlice)((0,g.id)(O.format()),0,4)}},{key:"getEventTopic",value:function(O){return(0,g.id)(O.format())}},{key:"isInterface",value:function(O){return!(!O||!O._isInterface)}}]),z}();s.Interface=q},8222:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="address/5.7.0"},7921:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getAddress=A,s.getContractAddress=function(x){var E=null;try{E=A(x.from)}catch{d.throwArgumentError("missing from address","transaction",x)}var S=(0,f.stripZeros)((0,f.arrayify)(e.BigNumber.from(x.nonce).toHexString()));return A((0,f.hexDataSlice)((0,l.keccak256)((0,n.encode)([E,S])),12))},s.getCreate2Address=function(x,E,S){return(0,f.hexDataLength)(E)!==32&&d.throwArgumentError("salt must be 32 bytes","salt",E),(0,f.hexDataLength)(S)!==32&&d.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",S),A((0,f.hexDataSlice)((0,l.keccak256)((0,f.concat)(["0xff",A(x),E,S])),12))},s.getIcapAddress=function(x){for(var E=(0,e._base16To36)(A(x).substring(2)).toUpperCase();E.length<30;)E="0"+E;return"XE"+b("XE00"+E)+E},s.isAddress=function(x){try{return A(x),!0}catch{}return!1};var f=i(908),e=i(4952),l=i(4642),n=i(5265),t=i(4327),o=i(8222),d=new t.Logger(o.version);function u(x){(0,f.isHexString)(x,20)||d.throwArgumentError("invalid address","address",x);for(var E=(x=x.toLowerCase()).substring(2).split(""),S=new Uint8Array(40),C=0;C<40;C++)S[C]=E[C].charCodeAt(0);for(var T=(0,f.arrayify)((0,l.keccak256)(S)),k=0;k<40;k+=2)T[k>>1]>>4>=8&&(E[k]=E[k].toUpperCase()),(15&T[k>>1])>=8&&(E[k+1]=E[k+1].toUpperCase());return"0x"+E.join("")}for(var c={},g=0;g<10;g++)c[String(g)]=String(g);for(var p=0;p<26;p++)c[String.fromCharCode(65+p)]=String(10+p);var v,y=Math.floor((v=9007199254740991,Math.log10?Math.log10(v):Math.log(v)/Math.LN10));function b(x){for(var E=(x=(x=x.toUpperCase()).substring(4)+x.substring(0,2)+"00").split("").map(function(T){return c[T]}).join("");E.length>=y;){var S=E.substring(0,y);E=parseInt(S,10)%97+E.substring(S.length)}for(var C=String(98-parseInt(E,10)%97);C.length<2;)C="0"+C;return C}function A(x){var E=null;if(typeof x!="string"&&d.throwArgumentError("invalid address","address",x),x.match(/^(0x)?[0-9a-fA-F]{40}$/))x.substring(0,2)!=="0x"&&(x="0x"+x),E=u(x),x.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&E!==x&&d.throwArgumentError("bad address checksum","address",x);else if(x.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(x.substring(2,4)!==b(x)&&d.throwArgumentError("bad icap checksum","address",x),E=(0,e._base36To16)(x.substring(4));E.length<40;)E="0"+E;E=u("0x"+E)}else d.throwArgumentError("invalid address","address",x);return E}},5798:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.decode=function(e){e=atob(e);for(var l=[],n=0;n<e.length;n++)l.push(e.charCodeAt(n));return(0,f.arrayify)(l)},s.encode=function(e){e=(0,f.arrayify)(e);for(var l="",n=0;n<e.length;n++)l+=String.fromCharCode(e[n]);return btoa(l)};var f=i(908)},997:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"decode",{enumerable:!0,get:function(){return f.decode}}),Object.defineProperty(s,"encode",{enumerable:!0,get:function(){return f.encode}});var f=i(5798)},3042:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="bignumber/5.7.0"},1872:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.BigNumber=void 0,s._base16To36=function(S){return new u(S,16).toString(36)},s._base36To16=function(S){return new u(S,36).toString(16)},s.isBigNumberish=function(S){return S!=null&&(y.isBigNumber(S)||typeof S=="number"&&S%1==0||typeof S=="string"&&!!S.match(/^-?[0-9]+$/)||(0,t.isHexString)(S)||typeof S=="bigint"||(0,t.isBytes)(S))};var e=f(i(9721)),l=f(i(8985)),n=f(i(1734)),t=i(908),o=i(4327),d=i(3042),u=n.default.BN,c=new o.Logger(d.version),g={},p=9007199254740991,v=!1,y=function(){function S(C,T){(0,e.default)(this,S),C!==g&&c.throwError("cannot call constructor directly; use BigNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=T,this._isBigNumber=!0,Object.freeze(this)}return(0,l.default)(S,[{key:"fromTwos",value:function(C){return A(x(this).fromTwos(C))}},{key:"toTwos",value:function(C){return A(x(this).toTwos(C))}},{key:"abs",value:function(){return this._hex[0]==="-"?S.from(this._hex.substring(1)):this}},{key:"add",value:function(C){return A(x(this).add(x(C)))}},{key:"sub",value:function(C){return A(x(this).sub(x(C)))}},{key:"div",value:function(C){return S.from(C).isZero()&&E("division-by-zero","div"),A(x(this).div(x(C)))}},{key:"mul",value:function(C){return A(x(this).mul(x(C)))}},{key:"mod",value:function(C){var T=x(C);return T.isNeg()&&E("division-by-zero","mod"),A(x(this).umod(T))}},{key:"pow",value:function(C){var T=x(C);return T.isNeg()&&E("negative-power","pow"),A(x(this).pow(T))}},{key:"and",value:function(C){var T=x(C);return(this.isNegative()||T.isNeg())&&E("unbound-bitwise-result","and"),A(x(this).and(T))}},{key:"or",value:function(C){var T=x(C);return(this.isNegative()||T.isNeg())&&E("unbound-bitwise-result","or"),A(x(this).or(T))}},{key:"xor",value:function(C){var T=x(C);return(this.isNegative()||T.isNeg())&&E("unbound-bitwise-result","xor"),A(x(this).xor(T))}},{key:"mask",value:function(C){return(this.isNegative()||C<0)&&E("negative-width","mask"),A(x(this).maskn(C))}},{key:"shl",value:function(C){return(this.isNegative()||C<0)&&E("negative-width","shl"),A(x(this).shln(C))}},{key:"shr",value:function(C){return(this.isNegative()||C<0)&&E("negative-width","shr"),A(x(this).shrn(C))}},{key:"eq",value:function(C){return x(this).eq(x(C))}},{key:"lt",value:function(C){return x(this).lt(x(C))}},{key:"lte",value:function(C){return x(this).lte(x(C))}},{key:"gt",value:function(C){return x(this).gt(x(C))}},{key:"gte",value:function(C){return x(this).gte(x(C))}},{key:"isNegative",value:function(){return this._hex[0]==="-"}},{key:"isZero",value:function(){return x(this).isZero()}},{key:"toNumber",value:function(){try{return x(this).toNumber()}catch{E("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch{}return c.throwError("this platform does not support BigInt",o.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(arguments[0]===10?v||(v=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Logger.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",o.Logger.errors.UNEXPECTED_ARGUMENT,{})),x(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(C){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(C){if(C instanceof S)return C;if(typeof C=="string")return C.match(/^-?0x[0-9a-f]+$/i)?new S(g,b(C)):C.match(/^-?[0-9]+$/)?new S(g,b(new u(C))):c.throwArgumentError("invalid BigNumber string","value",C);if(typeof C=="number")return C%1&&E("underflow","BigNumber.from",C),(C>=p||C<=-p)&&E("overflow","BigNumber.from",C),S.from(String(C));var T=C;if(typeof T=="bigint")return S.from(T.toString());if((0,t.isBytes)(T))return S.from((0,t.hexlify)(T));if(T)if(T.toHexString){var k=T.toHexString();if(typeof k=="string")return S.from(k)}else{var M=T._hex;if(M==null&&T.type==="BigNumber"&&(M=T.hex),typeof M=="string"&&((0,t.isHexString)(M)||M[0]==="-"&&(0,t.isHexString)(M.substring(1))))return S.from(M)}return c.throwArgumentError("invalid BigNumber value","value",C)}},{key:"isBigNumber",value:function(C){return!(!C||!C._isBigNumber)}}]),S}();function b(S){if(typeof S!="string")return b(S.toString(16));if(S[0]==="-")return(S=S.substring(1))[0]==="-"&&c.throwArgumentError("invalid hex","value",S),(S=b(S))==="0x00"?S:"-"+S;if(S.substring(0,2)!=="0x"&&(S="0x"+S),S==="0x")return"0x00";for(S.length%2&&(S="0x0"+S.substring(2));S.length>4&&S.substring(0,4)==="0x00";)S="0x"+S.substring(4);return S}function A(S){return y.from(b(S))}function x(S){var C=y.from(S).toHexString();return C[0]==="-"?new u("-"+C.substring(3),16):new u(C.substring(2),16)}function E(S,C,T){var k={fault:S,operation:C};return T!=null&&(k.value=T),c.throwError(S,o.Logger.errors.NUMERIC_FAULT,k)}s.BigNumber=y},8390:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.FixedNumber=s.FixedFormat=void 0,s.formatFixed=x,s.parseFixed=E;var e=f(i(3355)),l=f(i(9721)),n=f(i(8985)),t=i(908),o=i(4327),d=i(3042),u=i(1872),c=new o.Logger(d.version),g={},p=u.BigNumber.from(0),v=u.BigNumber.from(-1);function y(M,P,N,F){var q={fault:P,operation:N};return F!==void 0&&(q.value=F),c.throwError(M,o.Logger.errors.NUMERIC_FAULT,q)}for(var b="0";b.length<256;)b+=b;function A(M){if(typeof M!="number")try{M=u.BigNumber.from(M).toNumber()}catch{}return typeof M=="number"&&M>=0&&M<=256&&!(M%1)?"1"+b.substring(0,M):c.throwArgumentError("invalid decimal size","decimals",M)}function x(M,P){P==null&&(P=0);var N=A(P),F=(M=u.BigNumber.from(M)).lt(p);F&&(M=M.mul(v));for(var q=M.mod(N).toString();q.length<N.length-1;)q="0"+q;q=q.match(/^([0-9]*[1-9]|0)(0*)/)[1];var z=M.div(N).toString();return M=N.length===1?z:z+"."+q,F&&(M="-"+M),M}function E(M,P){P==null&&(P=0);var N=A(P);typeof M=="string"&&M.match(/^-?[0-9.]+$/)||c.throwArgumentError("invalid decimal value","value",M);var F=M.substring(0,1)==="-";F&&(M=M.substring(1)),M==="."&&c.throwArgumentError("missing value","value",M);var q=M.split(".");q.length>2&&c.throwArgumentError("too many decimal points","value",M);var z=q[0],O=q[1];for(z||(z="0"),O||(O="0");O[O.length-1]==="0";)O=O.substring(0,O.length-1);for(O.length>N.length-1&&y("fractional component exceeds decimals","underflow","parseFixed"),O===""&&(O="0");O.length<N.length-1;)O+="0";var R=u.BigNumber.from(z),I=u.BigNumber.from(O),D=R.mul(N).add(I);return F&&(D=D.mul(v)),D}var S=function(){function M(P,N,F,q){(0,l.default)(this,M),P!==g&&c.throwError("cannot use FixedFormat constructor; use FixedFormat.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=N,this.width=F,this.decimals=q,this.name=(N?"":"u")+"fixed"+String(F)+"x"+String(q),this._multiplier=A(q),Object.freeze(this)}return(0,n.default)(M,null,[{key:"from",value:function(P){if(P instanceof M)return P;typeof P=="number"&&(P="fixed128x".concat(P));var N=!0,F=128,q=18;if(typeof P=="string"){if(P!=="fixed")if(P==="ufixed")N=!1;else{var z=P.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);z||c.throwArgumentError("invalid fixed format","format",P),N=z[1]!=="u",F=parseInt(z[2]),q=parseInt(z[3])}}else if(P){var O=function(R,I,D){return P[R]==null?D:((0,e.default)(P[R])!==I&&c.throwArgumentError("invalid fixed format ("+R+" not "+I+")","format."+R,P[R]),P[R])};N=O("signed","boolean",N),F=O("width","number",F),q=O("decimals","number",q)}return F%8&&c.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",F),q>80&&c.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",q),new M(g,N,F,q)}}]),M}();s.FixedFormat=S;var C=function(){function M(P,N,F,q){(0,l.default)(this,M),P!==g&&c.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=q,this._hex=N,this._value=F,this._isFixedNumber=!0,Object.freeze(this)}return(0,n.default)(M,[{key:"_checkFormat",value:function(P){this.format.name!==P.format.name&&c.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",P)}},{key:"addUnsafe",value:function(P){this._checkFormat(P);var N=E(this._value,this.format.decimals),F=E(P._value,P.format.decimals);return M.fromValue(N.add(F),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(P){this._checkFormat(P);var N=E(this._value,this.format.decimals),F=E(P._value,P.format.decimals);return M.fromValue(N.sub(F),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(P){this._checkFormat(P);var N=E(this._value,this.format.decimals),F=E(P._value,P.format.decimals);return M.fromValue(N.mul(F).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(P){this._checkFormat(P);var N=E(this._value,this.format.decimals),F=E(P._value,P.format.decimals);return M.fromValue(N.mul(this.format._multiplier).div(F),this.format.decimals,this.format)}},{key:"floor",value:function(){var P=this.toString().split(".");P.length===1&&P.push("0");var N=M.from(P[0],this.format),F=!P[1].match(/^(0*)$/);return this.isNegative()&&F&&(N=N.subUnsafe(T.toFormat(N.format))),N}},{key:"ceiling",value:function(){var P=this.toString().split(".");P.length===1&&P.push("0");var N=M.from(P[0],this.format),F=!P[1].match(/^(0*)$/);return!this.isNegative()&&F&&(N=N.addUnsafe(T.toFormat(N.format))),N}},{key:"round",value:function(P){P==null&&(P=0);var N=this.toString().split(".");if(N.length===1&&N.push("0"),(P<0||P>80||P%1)&&c.throwArgumentError("invalid decimal count","decimals",P),N[1].length<=P)return this;var F=M.from("1"+b.substring(0,P),this.format),q=k.toFormat(this.format);return this.mulUnsafe(F).addUnsafe(q).floor().divUnsafe(F)}},{key:"isZero",value:function(){return this._value==="0.0"||this._value==="0"}},{key:"isNegative",value:function(){return this._value[0]==="-"}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(P){if(P==null)return this._hex;P%8&&c.throwArgumentError("invalid byte width","width",P);var N=u.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(P).toHexString();return(0,t.hexZeroPad)(N,P/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(P){return M.fromString(this._value,P)}}],[{key:"fromValue",value:function(P,N,F){return F!=null||N==null||(0,u.isBigNumberish)(N)||(F=N,N=null),N==null&&(N=0),F==null&&(F="fixed"),M.fromString(x(P,N),S.from(F))}},{key:"fromString",value:function(P,N){N==null&&(N="fixed");var F=S.from(N),q=E(P,F.decimals);!F.signed&&q.lt(p)&&y("unsigned value cannot be negative","overflow","value",P);var z=null;F.signed?z=q.toTwos(F.width).toHexString():(z=q.toHexString(),z=(0,t.hexZeroPad)(z,F.width/8));var O=x(q,F.decimals);return new M(g,z,O,F)}},{key:"fromBytes",value:function(P,N){N==null&&(N="fixed");var F=S.from(N);if((0,t.arrayify)(P).length>F.width/8)throw new Error("overflow");var q=u.BigNumber.from(P);F.signed&&(q=q.fromTwos(F.width));var z=q.toTwos((F.signed?0:1)+F.width).toHexString(),O=x(q,F.decimals);return new M(g,z,O,F)}},{key:"from",value:function(P,N){if(typeof P=="string")return M.fromString(P,N);if((0,t.isBytes)(P))return M.fromBytes(P,N);try{return M.fromValue(P,0,N)}catch(F){if(F.code!==o.Logger.errors.INVALID_ARGUMENT)throw F}return c.throwArgumentError("invalid FixedNumber value","value",P)}},{key:"isFixedNumber",value:function(P){return!(!P||!P._isFixedNumber)}}]),M}();s.FixedNumber=C;var T=C.from(1),k=C.from("0.5")},4952:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"BigNumber",{enumerable:!0,get:function(){return f.BigNumber}}),Object.defineProperty(s,"FixedFormat",{enumerable:!0,get:function(){return e.FixedFormat}}),Object.defineProperty(s,"FixedNumber",{enumerable:!0,get:function(){return e.FixedNumber}}),Object.defineProperty(s,"_base16To36",{enumerable:!0,get:function(){return f._base16To36}}),Object.defineProperty(s,"_base36To16",{enumerable:!0,get:function(){return f._base36To16}}),Object.defineProperty(s,"formatFixed",{enumerable:!0,get:function(){return e.formatFixed}}),Object.defineProperty(s,"parseFixed",{enumerable:!0,get:function(){return e.parseFixed}});var f=i(1872),e=i(8390)},8729:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="bytes/5.7.0"},908:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.arrayify=c,s.concat=g,s.hexConcat=function(S){var C="0x";return S.forEach(function(T){C+=b(T).substring(2)}),C},s.hexDataLength=function(S){if(typeof S!="string")S=b(S);else if(!v(S)||S.length%2)return null;return(S.length-2)/2},s.hexDataSlice=function(S,C,T){return typeof S!="string"?S=b(S):(!v(S)||S.length%2)&&l.throwArgumentError("invalid hexData","value",S),C=2+2*C,T!=null?"0x"+S.substring(C,2+2*T):"0x"+S.substring(C)},s.hexStripZeros=A,s.hexValue=function(S){var C=A(b(S,{hexPad:"left"}));return C==="0x"?"0x0":C},s.hexZeroPad=x,s.hexlify=b,s.isBytes=u,s.isBytesLike=o,s.isHexString=v,s.joinSignature=function(S){return b(g([(S=E(S)).r,S.s,S.recoveryParam?"0x1c":"0x1b"]))},s.splitSignature=E,s.stripZeros=function(S){var C=c(S);if(C.length===0)return C;for(var T=0;T<C.length&&C[T]===0;)T++;return T&&(C=C.slice(T)),C},s.zeroPad=p;var f=i(4327),e=i(8729),l=new f.Logger(e.version);function n(S){return!!S.toHexString}function t(S){return S.slice||(S.slice=function(){var C=Array.prototype.slice.call(arguments);return t(new Uint8Array(Array.prototype.slice.apply(S,C)))}),S}function o(S){return v(S)&&!(S.length%2)||u(S)}function d(S){return typeof S=="number"&&S==S&&S%1==0}function u(S){if(S==null)return!1;if(S.constructor===Uint8Array)return!0;if(typeof S=="string"||!d(S.length)||S.length<0)return!1;for(var C=0;C<S.length;C++){var T=S[C];if(!d(T)||T<0||T>=256)return!1}return!0}function c(S,C){if(C||(C={}),typeof S=="number"){l.checkSafeUint53(S,"invalid arrayify value");for(var T=[];S;)T.unshift(255&S),S=parseInt(String(S/256));return T.length===0&&T.push(0),t(new Uint8Array(T))}if(C.allowMissingPrefix&&typeof S=="string"&&S.substring(0,2)!=="0x"&&(S="0x"+S),n(S)&&(S=S.toHexString()),v(S)){var k=S.substring(2);k.length%2&&(C.hexPad==="left"?k="0"+k:C.hexPad==="right"?k+="0":l.throwArgumentError("hex data is odd-length","value",S));for(var M=[],P=0;P<k.length;P+=2)M.push(parseInt(k.substring(P,P+2),16));return t(new Uint8Array(M))}return u(S)?t(new Uint8Array(S)):l.throwArgumentError("invalid arrayify value","value",S)}function g(S){var C=S.map(function(M){return c(M)}),T=C.reduce(function(M,P){return M+P.length},0),k=new Uint8Array(T);return C.reduce(function(M,P){return k.set(P,M),M+P.length},0),t(k)}function p(S,C){(S=c(S)).length>C&&l.throwArgumentError("value out of range","value",arguments[0]);var T=new Uint8Array(C);return T.set(S,C-S.length),t(T)}function v(S,C){return!(typeof S!="string"||!S.match(/^0x[0-9A-Fa-f]*$/)||C&&S.length!==2+2*C)}var y="0123456789abcdef";function b(S,C){if(C||(C={}),typeof S=="number"){l.checkSafeUint53(S,"invalid hexlify value");for(var T="";S;)T=y[15&S]+T,S=Math.floor(S/16);return T.length?(T.length%2&&(T="0"+T),"0x"+T):"0x00"}if(typeof S=="bigint")return(S=S.toString(16)).length%2?"0x0"+S:"0x"+S;if(C.allowMissingPrefix&&typeof S=="string"&&S.substring(0,2)!=="0x"&&(S="0x"+S),n(S))return S.toHexString();if(v(S))return S.length%2&&(C.hexPad==="left"?S="0x0"+S.substring(2):C.hexPad==="right"?S+="0":l.throwArgumentError("hex data is odd-length","value",S)),S.toLowerCase();if(u(S)){for(var k="0x",M=0;M<S.length;M++){var P=S[M];k+=y[(240&P)>>4]+y[15&P]}return k}return l.throwArgumentError("invalid hexlify value","value",S)}function A(S){typeof S!="string"&&(S=b(S)),v(S)||l.throwArgumentError("invalid hex string","value",S),S=S.substring(2);for(var C=0;C<S.length&&S[C]==="0";)C++;return"0x"+S.substring(C)}function x(S,C){for(typeof S!="string"?S=b(S):v(S)||l.throwArgumentError("invalid hex string","value",S),S.length>2*C+2&&l.throwArgumentError("value out of range","value",arguments[1]);S.length<2*C+2;)S="0x0"+S.substring(2);return S}function E(S){var C={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(o(S)){var T=c(S);T.length===64?(C.v=27+(T[32]>>7),T[32]&=127,C.r=b(T.slice(0,32)),C.s=b(T.slice(32,64))):T.length===65?(C.r=b(T.slice(0,32)),C.s=b(T.slice(32,64)),C.v=T[64]):l.throwArgumentError("invalid signature string","signature",S),C.v<27&&(C.v===0||C.v===1?C.v+=27:l.throwArgumentError("signature invalid v byte","signature",S)),C.recoveryParam=1-C.v%2,C.recoveryParam&&(T[32]|=128),C._vs=b(T.slice(32,64))}else{if(C.r=S.r,C.s=S.s,C.v=S.v,C.recoveryParam=S.recoveryParam,C._vs=S._vs,C._vs!=null){var k=p(c(C._vs),32);C._vs=b(k);var M=k[0]>=128?1:0;C.recoveryParam==null?C.recoveryParam=M:C.recoveryParam!==M&&l.throwArgumentError("signature recoveryParam mismatch _vs","signature",S),k[0]&=127;var P=b(k);C.s==null?C.s=P:C.s!==P&&l.throwArgumentError("signature v mismatch _vs","signature",S)}if(C.recoveryParam==null)C.v==null?l.throwArgumentError("signature missing v and recoveryParam","signature",S):C.v===0||C.v===1?C.recoveryParam=C.v:C.recoveryParam=1-C.v%2;else if(C.v==null)C.v=27+C.recoveryParam;else{var N=C.v===0||C.v===1?C.v:1-C.v%2;C.recoveryParam!==N&&l.throwArgumentError("signature recoveryParam mismatch v","signature",S)}C.r!=null&&v(C.r)?C.r=x(C.r,32):l.throwArgumentError("signature missing or invalid r","signature",S),C.s!=null&&v(C.s)?C.s=x(C.s,32):l.throwArgumentError("signature missing or invalid s","signature",S);var F=c(C.s);F[0]>=128&&l.throwArgumentError("signature s out of range","signature",S),C.recoveryParam&&(F[0]|=128);var q=b(F);C._vs&&(v(C._vs)||l.throwArgumentError("signature invalid _vs","signature",S),C._vs=x(C._vs,32)),C._vs==null?C._vs=q:C._vs!==q&&l.throwArgumentError("signature _vs mismatch v and s","signature",S)}return C.yParityAndS=C._vs,C.compact=C.r+C.yParityAndS.substring(2),C}},8721:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AddressZero=void 0,s.AddressZero="0x0000000000000000000000000000000000000000"},2997:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Zero=s.WeiPerEther=s.Two=s.One=s.NegativeOne=s.MinInt256=s.MaxUint256=s.MaxInt256=void 0;var f=i(4952),e=f.BigNumber.from(-1);s.NegativeOne=e;var l=f.BigNumber.from(0);s.Zero=l;var n=f.BigNumber.from(1);s.One=n;var t=f.BigNumber.from(2);s.Two=t;var o=f.BigNumber.from("1000000000000000000");s.WeiPerEther=o;var d=f.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");s.MaxUint256=d;var u=f.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");s.MinInt256=u;var c=f.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");s.MaxInt256=c},396:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.HashZero=void 0,s.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"},5465:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"AddressZero",{enumerable:!0,get:function(){return f.AddressZero}}),Object.defineProperty(s,"EtherSymbol",{enumerable:!0,get:function(){return n.EtherSymbol}}),Object.defineProperty(s,"HashZero",{enumerable:!0,get:function(){return l.HashZero}}),Object.defineProperty(s,"MaxInt256",{enumerable:!0,get:function(){return e.MaxInt256}}),Object.defineProperty(s,"MaxUint256",{enumerable:!0,get:function(){return e.MaxUint256}}),Object.defineProperty(s,"MinInt256",{enumerable:!0,get:function(){return e.MinInt256}}),Object.defineProperty(s,"NegativeOne",{enumerable:!0,get:function(){return e.NegativeOne}}),Object.defineProperty(s,"One",{enumerable:!0,get:function(){return e.One}}),Object.defineProperty(s,"Two",{enumerable:!0,get:function(){return e.Two}}),Object.defineProperty(s,"WeiPerEther",{enumerable:!0,get:function(){return e.WeiPerEther}}),Object.defineProperty(s,"Zero",{enumerable:!0,get:function(){return e.Zero}});var f=i(8721),e=i(2997),l=i(396),n=i(8347)},8347:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.EtherSymbol=void 0,s.EtherSymbol="Ξ"},3989:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="hash/5.7.0"},3731:(r,s)=>{function i(p,v){v==null&&(v=1);var y=[],b=y.forEach;return function A(x,E){b.call(x,function(S){E>0&&Array.isArray(S)?A(S,E-1):y.push(S)})}(p,v),y}function f(p){var v=0;function y(){return p[v++]<<8|p[v++]}for(var b=y(),A=1,x=[0,1],E=1;E<b;E++)x.push(A+=y());var S=y(),C=v;v+=S;var T=0,k=0;function M(){return T==0&&(k=k<<8|p[v++],T=8),k>>--T&1}for(var P=Math.pow(2,31),N=P>>>1,F=N>>1,q=P-1,z=0,O=0;O<31;O++)z=z<<1|M();for(var R=[],I=0,D=P;;){for(var B=Math.floor(((z-I+1)*A-1)/D),j=0,Q=b;Q-j>1;){var X=j+Q>>>1;B<x[X]?Q=X:j=X}if(j==0)break;R.push(j);for(var Z=I+Math.floor(D*x[j]/A),L=I+Math.floor(D*x[j+1]/A)-1;!((Z^L)&N);)z=z<<1&q|M(),Z=Z<<1&q,L=L<<1&q|1;for(;Z&~L&F;)z=z&N|z<<1&q>>>1|M(),Z=Z<<1^N,L=(L^N)<<1|N|1;I=Z,D=1+L-Z}var W=b-4;return R.map(function(G){switch(G-W){case 3:return W+65792+(p[C++]<<16|p[C++]<<8|p[C++]);case 2:return W+256+(p[C++]<<8|p[C++]);case 1:return W+p[C++];default:return G-1}})}function e(p){var v=0;return function(){return p[v++]}}function l(p){return 1&p?~p>>1:p>>1}function n(p,v){for(var y=Array(p),b=0,A=-1;b<p;b++)y[b]=A+=1+v();return y}function t(p,v){for(var y=Array(p),b=0,A=0;b<p;b++)y[b]=A+=l(v());return y}function o(p,v){for(var y=n(p(),p),b=p(),A=n(b,p),x=function(C,T){for(var k=Array(C),M=0;M<C;M++)k[M]=1+T();return k}(b,p),E=0;E<b;E++)for(var S=0;S<x[E];S++)y.push(A[E]+S);return v?y.map(function(C){return v[C]}):y}function d(p){for(var v=[];;){var y=p();if(y==0)break;v.push(y)}return v}function u(p,v,y){for(var b=Array(p).fill(void 0).map(function(){return[]}),A=0;A<v;A++)t(p,y).forEach(function(x,E){return b[E].push(x)});return b}function c(p,v){var y=1+v(),b=v(),A=d(v);return i(u(A.length,1+p,v).map(function(x,E){var S=x[0],C=x.slice(1);return Array(A[E]).fill(void 0).map(function(T,k){var M=k*b;return[S+k*y,C.map(function(P){return P+M})]})}))}function g(p,v){return u(1+v(),1+p,v).map(function(y){return[y[0],y.slice(1)]})}Object.defineProperty(s,"__esModule",{value:!0}),s.decode_arithmetic=f,s.read_compressed_payload=function(p){return e(f(p))},s.read_emoji_trie=function(p){var v=o(p).sort(function(y,b){return y-b});return function y(){for(var b=[];;){var A=o(p,v);if(A.length==0)break;b.push({set:new Set(A),node:y()})}b.sort(function(E,S){return S.set.size-E.set.size});var x=p();return{branches:b,valid:x%3,fe0f:!!(1&(x=x/3|0)),save:(x>>=1)==1,check:x==2}}()},s.read_mapped_map=function(p){for(var v=[];;){var y=p();if(y==0)break;v.push(c(y,p))}for(;;){var b=p()-1;if(b<0)break;v.push(g(b,p))}return function(A){for(var x={},E=0;E<A.length;E++){var S=A[E];x[S[0]]=S[1]}return x}(i(v))},s.read_member_array=o,s.read_payload=e,s.read_zero_terminated_array=d,s.signed=l},3961:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getData=function(){return(0,e.read_compressed_payload)((0,f.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))};var f=i(997),e=i(3731)},7032:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.ens_normalize=function(S){return x(function(C,T){for(var k=b(C).reverse(),M=[];k.length;){var P=E(k);if(P)M.push.apply(M,(0,e.default)(T(P)));else{var N=k.pop();if(u.has(N))M.push(N);else if(!c.has(N)){var F=g[N];if(!F)throw new Error("Disallowed codepoint: 0x".concat(N.toString(16).toUpperCase()));M.push.apply(M,(0,e.default)(F))}}}return x(String.fromCodePoint.apply(String,M).normalize("NFC"))}(S,A))},s.ens_normalize_post_check=x;var e=f(i(3106)),l=i(8627),n=i(3961),t=i(3731);function o(S,C){(C==null||C>S.length)&&(C=S.length);for(var T=0,k=new Array(C);T<C;T++)k[T]=S[T];return k}var d=(0,n.getData)(),u=new Set((0,t.read_member_array)(d)),c=new Set((0,t.read_member_array)(d)),g=(0,t.read_mapped_map)(d),p=(0,t.read_emoji_trie)(d),v=45,y=95;function b(S){return(0,l.toUtf8CodePoints)(S)}function A(S){return S.filter(function(C){return C!=65039})}function x(S){var C,T=function(N,F){var q=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!q){if(Array.isArray(N)||(q=function(B,j){if(B){if(typeof B=="string")return o(B,j);var Q=Object.prototype.toString.call(B).slice(8,-1);return Q==="Object"&&B.constructor&&(Q=B.constructor.name),Q==="Map"||Q==="Set"?Array.from(B):Q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)?o(B,j):void 0}}(N))||F&&N&&typeof N.length=="number"){q&&(N=q);var z=0,O=function(){};return{s:O,n:function(){return z>=N.length?{done:!0}:{done:!1,value:N[z++]}},e:function(B){throw B},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R,I=!0,D=!1;return{s:function(){q=q.call(N)},n:function(){var B=q.next();return I=B.done,B},e:function(B){D=!0,R=B},f:function(){try{I||q.return==null||q.return()}finally{if(D)throw R}}}}(S.split("."));try{for(T.s();!(C=T.n()).done;){var k=C.value,M=b(k);try{for(var P=M.lastIndexOf(y)-1;P>=0;P--)if(M[P]!==y)throw new Error("underscore only allowed at start");if(M.length>=4&&M.every(function(N){return N<128})&&M[2]===v&&M[3]===v)throw new Error("invalid label extension")}catch(N){throw new Error('Invalid label "'.concat(k,'": ').concat(N.message))}}}catch(N){T.e(N)}finally{T.f()}return S}function E(S,C){var T,k,M,P=p,N=[],F=S.length;C&&(C.length=0);for(var q=function(){var z=S[--F];if(!(P=(T=P.branches.find(function(O){return O.set.has(z)}))===null||T===void 0?void 0:T.node))return"break";if(P.save)M=z;else if(P.check&&z===M)return"break";N.push(z),P.fe0f&&(N.push(65039),F>0&&S[F-1]==65039&&F--),P.valid&&(k=N.slice(),P.valid==2&&k.splice(1,1),C&&C.push.apply(C,(0,e.default)(S.slice(F).reverse())),S.length=F)};F&&q()!=="break";);return k}},7901:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.id=function(l){return(0,f.keccak256)((0,e.toUtf8Bytes)(l))};var f=i(4642),e=i(8627)},7515:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"_TypedDataEncoder",{enumerable:!0,get:function(){return n.TypedDataEncoder}}),Object.defineProperty(s,"dnsEncode",{enumerable:!0,get:function(){return e.dnsEncode}}),Object.defineProperty(s,"ensNormalize",{enumerable:!0,get:function(){return e.ensNormalize}}),Object.defineProperty(s,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(s,"id",{enumerable:!0,get:function(){return f.id}}),Object.defineProperty(s,"isValidName",{enumerable:!0,get:function(){return e.isValidName}}),Object.defineProperty(s,"messagePrefix",{enumerable:!0,get:function(){return l.messagePrefix}}),Object.defineProperty(s,"namehash",{enumerable:!0,get:function(){return e.namehash}});var f=i(7901),e=i(4898),l=i(4443),n=i(2171)},4443:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.hashMessage=function(t){return typeof t=="string"&&(t=(0,l.toUtf8Bytes)(t)),(0,e.keccak256)((0,f.concat)([(0,l.toUtf8Bytes)(n),(0,l.toUtf8Bytes)(String(t.length)),t]))},s.messagePrefix=void 0;var f=i(908),e=i(4642),l=i(8627),n=`Ethereum Signed Message: +`;s.messagePrefix=n},4898:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.dnsEncode=function(p){return(0,f.hexlify)((0,f.concat)(g(p).map(function(v){if(v.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var y=new Uint8Array(v.length+1);return y.set(v,1),y[0]=y.length-1,y})))+"00"},s.ensNormalize=function(p){return g(p).map(function(v){return(0,e.toUtf8String)(v)}).join(".")},s.isValidName=function(p){try{return g(p).length!==0}catch{}return!1},s.namehash=function(p){typeof p!="string"&&d.throwArgumentError("invalid ENS name; not a string","name",p);for(var v=u,y=g(p);y.length;)v=(0,l.keccak256)((0,f.concat)([v,(0,l.keccak256)(y.pop())]));return(0,f.hexlify)(v)};var f=i(908),e=i(8627),l=i(4642),n=i(4327),t=i(3989),o=i(7032),d=new n.Logger(t.version),u=new Uint8Array(32);function c(p){if(p.length===0)throw new Error("invalid ENS name; empty component");return p}function g(p){var v=(0,e.toUtf8Bytes)((0,o.ens_normalize)(p)),y=[];if(p.length===0)return y;for(var b=0,A=0;A<v.length;A++)v[A]===46&&(y.push(c(v.slice(b,A))),b=A+1);if(b>=v.length)throw new Error("invalid ENS name; empty component");return y.push(c(v.slice(b))),y}u.fill(0)},2171:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.TypedDataEncoder=void 0;var e=f(i(2247)),l=f(i(9721)),n=f(i(8985)),t=i(7921),o=i(4952),d=i(908),u=i(4642),c=i(3694),g=i(4327),p=i(3989),v=i(7901),y=new g.Logger(p.version),b=new Uint8Array(32);b.fill(0);var A=o.BigNumber.from(-1),x=o.BigNumber.from(0),E=o.BigNumber.from(1),S=o.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),C=(0,d.hexZeroPad)(E.toHexString(),32),T=(0,d.hexZeroPad)(x.toHexString(),32),k={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},M=["name","version","chainId","verifyingContract","salt"];function P(O){return function(R){return typeof R!="string"&&y.throwArgumentError("invalid domain value for ".concat(JSON.stringify(O)),"domain.".concat(O),R),R}}var N={name:P("name"),version:P("version"),chainId:function(O){try{return o.BigNumber.from(O).toString()}catch{}return y.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",O)},verifyingContract:function(O){try{return(0,t.getAddress)(O).toLowerCase()}catch{}return y.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",O)},salt:function(O){try{var R=(0,d.arrayify)(O);if(R.length!==32)throw new Error("bad length");return(0,d.hexlify)(R)}catch{}return y.throwArgumentError('invalid domain value "salt"',"domain.salt",O)}};function F(O){var R=O.match(/^(u?)int(\d*)$/);if(R){var I=R[1]==="",D=parseInt(R[2]||"256");(D%8!=0||D>256||R[2]&&R[2]!==String(D))&&y.throwArgumentError("invalid numeric width","type",O);var B=S.mask(I?D-1:D),j=I?B.add(E).mul(A):x;return function(Z){var L=o.BigNumber.from(Z);return(L.lt(j)||L.gt(B))&&y.throwArgumentError("value out-of-bounds for ".concat(O),"value",Z),(0,d.hexZeroPad)(L.toTwos(256).toHexString(),32)}}var Q=O.match(/^bytes(\d+)$/);if(Q){var X=parseInt(Q[1]);return(X===0||X>32||Q[1]!==String(X))&&y.throwArgumentError("invalid bytes width","type",O),function(Z){return(0,d.arrayify)(Z).length!==X&&y.throwArgumentError("invalid length for ".concat(O),"value",Z),function(L){var W=(0,d.arrayify)(L),G=W.length%32;return G?(0,d.hexConcat)([W,b.slice(G)]):(0,d.hexlify)(W)}(Z)}}switch(O){case"address":return function(Z){return(0,d.hexZeroPad)((0,t.getAddress)(Z),32)};case"bool":return function(Z){return Z?C:T};case"bytes":return function(Z){return(0,u.keccak256)(Z)};case"string":return function(Z){return(0,v.id)(Z)}}return null}function q(O,R){return"".concat(O,"(").concat(R.map(function(I){var D=I.name;return I.type+" "+D}).join(","),")")}var z=function(){function O(R){(0,l.default)(this,O),(0,c.defineReadOnly)(this,"types",Object.freeze((0,c.deepCopy)(R))),(0,c.defineReadOnly)(this,"_encoderCache",{}),(0,c.defineReadOnly)(this,"_types",{});var I={},D={},B={};Object.keys(R).forEach(function(W){I[W]={},D[W]=[],B[W]={}});var j=function(W){var G={};R[W].forEach(function(J){G[J.name]&&y.throwArgumentError("duplicate variable name ".concat(JSON.stringify(J.name)," in ").concat(JSON.stringify(W)),"types",R),G[J.name]=!0;var H=J.type.match(/^([^\x5b]*)(\x5b|$)/)[1];H===W&&y.throwArgumentError("circular type reference to ".concat(JSON.stringify(H)),"types",R),F(H)||(D[H]||y.throwArgumentError("unknown type ".concat(JSON.stringify(H)),"types",R),D[H].push(W),I[W][H]=!0)})};for(var Q in R)j(Q);var X=Object.keys(D).filter(function(W){return D[W].length===0});for(var Z in X.length===0?y.throwArgumentError("missing primary type","types",R):X.length>1&&y.throwArgumentError("ambiguous primary types or unused types: ".concat(X.map(function(W){return JSON.stringify(W)}).join(", ")),"types",R),(0,c.defineReadOnly)(this,"primaryType",X[0]),function W(G,J){J[G]&&y.throwArgumentError("circular type reference to ".concat(JSON.stringify(G)),"types",R),J[G]=!0,Object.keys(I[G]).forEach(function(H){D[H]&&(W(H,J),Object.keys(J).forEach(function(U){B[U][H]=!0}))}),delete J[G]}(this.primaryType,{}),B){var L=Object.keys(B[Z]);L.sort(),this._types[Z]=q(Z,R[Z])+L.map(function(W){return q(W,R[W])}).join("")}}return(0,n.default)(O,[{key:"getEncoder",value:function(R){var I=this._encoderCache[R];return I||(I=this._encoderCache[R]=this._getEncoder(R)),I}},{key:"_getEncoder",value:function(R){var I=this,D=F(R);if(D)return D;var B=R.match(/^(.*)(\x5b(\d*)\x5d)$/);if(B){var j=B[1],Q=this.getEncoder(j),X=parseInt(B[3]);return function(W){X>=0&&W.length!==X&&y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",W);var G=W.map(Q);return I._types[j]&&(G=G.map(u.keccak256)),(0,u.keccak256)((0,d.hexConcat)(G))}}var Z=this.types[R];if(Z){var L=(0,v.id)(this._types[R]);return function(W){var G=Z.map(function(J){var H=J.name,U=J.type,K=I.getEncoder(U)(W[H]);return I._types[U]?(0,u.keccak256)(K):K});return G.unshift(L),(0,d.hexConcat)(G)}}return y.throwArgumentError("unknown type: ".concat(R),"type",R)}},{key:"encodeType",value:function(R){var I=this._types[R];return I||y.throwArgumentError("unknown type: ".concat(JSON.stringify(R)),"name",R),I}},{key:"encodeData",value:function(R,I){return this.getEncoder(R)(I)}},{key:"hashStruct",value:function(R,I){return(0,u.keccak256)(this.encodeData(R,I))}},{key:"encode",value:function(R){return this.encodeData(this.primaryType,R)}},{key:"hash",value:function(R){return this.hashStruct(this.primaryType,R)}},{key:"_visit",value:function(R,I,D){var B=this;if(F(R))return D(R,I);var j=R.match(/^(.*)(\x5b(\d*)\x5d)$/);if(j){var Q=j[1],X=parseInt(j[3]);return X>=0&&I.length!==X&&y.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",I),I.map(function(L){return B._visit(Q,L,D)})}var Z=this.types[R];return Z?Z.reduce(function(L,W){var G=W.name,J=W.type;return L[G]=B._visit(J,I[G],D),L},{}):y.throwArgumentError("unknown type: ".concat(R),"type",R)}},{key:"visit",value:function(R,I){return this._visit(this.primaryType,R,I)}}],[{key:"from",value:function(R){return new O(R)}},{key:"getPrimaryType",value:function(R){return O.from(R).primaryType}},{key:"hashStruct",value:function(R,I,D){return O.from(I).hashStruct(R,D)}},{key:"hashDomain",value:function(R){var I=[];for(var D in R){var B=k[D];B||y.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(D)),"domain",R),I.push({name:D,type:B})}return I.sort(function(j,Q){return M.indexOf(j.name)-M.indexOf(Q.name)}),O.hashStruct("EIP712Domain",{EIP712Domain:I},R)}},{key:"encode",value:function(R,I,D){return(0,d.hexConcat)(["0x1901",O.hashDomain(R),O.from(I).hash(D)])}},{key:"hash",value:function(R,I,D){return(0,u.keccak256)(O.encode(R,I,D))}},{key:"resolveNames",value:function(R,I,D,B){return j=this,Q=void 0,X=void 0,Z=e.default.mark(function L(){var W,G,J;return e.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:R=(0,c.shallowCopy)(R),W={},R.verifyingContract&&!(0,d.isHexString)(R.verifyingContract,20)&&(W[R.verifyingContract]="0x"),(G=O.from(I)).visit(D,function(U,K){return U!=="address"||(0,d.isHexString)(K,20)||(W[K]="0x"),K}),H.t0=e.default.keys(W);case 6:if((H.t1=H.t0()).done){H.next=13;break}return J=H.t1.value,H.next=10,B(J);case 10:W[J]=H.sent,H.next=6;break;case 13:return R.verifyingContract&&W[R.verifyingContract]&&(R.verifyingContract=W[R.verifyingContract]),D=G.visit(D,function(U,K){return U==="address"&&W[K]?W[K]:K}),H.abrupt("return",{domain:R,value:D});case 16:case"end":return H.stop()}},L)}),new(X||(X=Promise))(function(L,W){function G(U){try{H(Z.next(U))}catch(K){W(K)}}function J(U){try{H(Z.throw(U))}catch(K){W(K)}}function H(U){var K;U.done?L(U.value):(K=U.value,K instanceof X?K:new X(function(te){te(K)})).then(G,J)}H((Z=Z.apply(j,Q||[])).next())});var j,Q,X,Z}},{key:"getPayload",value:function(R,I,D){O.hashDomain(R);var B={},j=[];M.forEach(function(Z){var L=R[Z];L!=null&&(B[Z]=N[Z](L),j.push({name:Z,type:k[Z]}))});var Q=O.from(I),X=(0,c.shallowCopy)(I);return X.EIP712Domain?y.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",I):X.EIP712Domain=j,Q.encode(D),{types:X,domain:B,primaryType:Q.primaryType,message:Q.visit(D,function(Z,L){if(Z.match(/^bytes(\d*)/))return(0,d.hexlify)((0,d.arrayify)(L));if(Z.match(/^u?int/))return o.BigNumber.from(L).toString();switch(Z){case"address":return L.toLowerCase();case"bool":return!!L;case"string":return typeof L!="string"&&y.throwArgumentError("invalid string","value",L),L}return y.throwArgumentError("unsupported type","type",Z)})}}}]),O}();s.TypedDataEncoder=z},4642:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.keccak256=function(n){return"0x"+e.default.keccak_256((0,l.arrayify)(n))};var e=f(i(5975)),l=i(908)},5975:(r,s,i)=>{r=i.nmd(r);var f,e=i(9142),l=i(8847)(i(3355));(function(){var n="input is invalid type",t=(typeof window>"u"?"undefined":(0,l.default)(window))==="object",o=t?window:{};o.JS_SHA3_NO_WINDOW&&(t=!1);var d=!t&&(typeof self>"u"?"undefined":(0,l.default)(self))==="object";!o.JS_SHA3_NO_NODE_JS&&(e===void 0?"undefined":(0,l.default)(e))==="object"&&e.versions&&e.versions.node?o=i.g:d&&(o=self);var u=!o.JS_SHA3_NO_COMMON_JS&&(0,l.default)(r)==="object"&&r.exports,c=i.amdO,g=!o.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),v=[4,1024,262144,67108864],y=[0,8,16,24],b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],A=[224,256,384,512],x=[128,256],E=["hex","buffer","arrayBuffer","array","digest"],S={128:168,256:136};!o.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(L){return Object.prototype.toString.call(L)==="[object Array]"}),!g||!o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(L){return(0,l.default)(L)==="object"&&L.buffer&&L.buffer.constructor===ArrayBuffer});for(var C=function(L,W,G){return function(J){return new Q(L,W,L).update(J)[G]()}},T=function(L,W,G){return function(J,H){return new Q(L,W,H).update(J)[G]()}},k=function(L,W,G){return function(J,H,U,K){return q["cshake"+L].update(J,H,U,K)[G]()}},M=function(L,W,G){return function(J,H,U,K){return q["kmac"+L].update(J,H,U,K)[G]()}},P=function(L,W,G,J){for(var H=0;H<E.length;++H){var U=E[H];L[U]=W(G,J,U)}return L},N=function(L,W){var G=C(L,W,"hex");return G.create=function(){return new Q(L,W,L)},G.update=function(J){return G.create().update(J)},P(G,C,L,W)},F=[{name:"keccak",padding:[1,256,65536,16777216],bits:A,createMethod:N},{name:"sha3",padding:[6,1536,393216,100663296],bits:A,createMethod:N},{name:"shake",padding:[31,7936,2031616,520093696],bits:x,createMethod:function(L,W){var G=T(L,W,"hex");return G.create=function(J){return new Q(L,W,J)},G.update=function(J,H){return G.create(H).update(J)},P(G,T,L,W)}},{name:"cshake",padding:v,bits:x,createMethod:function(L,W){var G=S[L],J=k(L,0,"hex");return J.create=function(H,U,K){return U||K?new Q(L,W,H).bytepad([U,K],G):q["shake"+L].create(H)},J.update=function(H,U,K,te){return J.create(U,K,te).update(H)},P(J,k,L,W)}},{name:"kmac",padding:v,bits:x,createMethod:function(L,W){var G=S[L],J=M(L,0,"hex");return J.create=function(H,U,K){return new X(L,W,U).bytepad(["KMAC",K],G).bytepad([H],G)},J.update=function(H,U,K,te){return J.create(H,K,te).update(U)},P(J,M,L,W)}}],q={},z=[],O=0;O<F.length;++O)for(var R=F[O],I=R.bits,D=0;D<I.length;++D){var B=R.name+"_"+I[D];if(z.push(B),q[B]=R.createMethod(I[D],R.padding),R.name!=="sha3"){var j=R.name+I[D];z.push(j),q[j]=q[B]}}function Q(L,W,G){this.blocks=[],this.s=[],this.padding=W,this.outputBits=G,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(L<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=G>>5,this.extraBytes=(31&G)>>3;for(var J=0;J<50;++J)this.s[J]=0}function X(L,W,G){Q.call(this,L,W,G)}Q.prototype.update=function(L){if(this.finalized)throw new Error("finalize already called");var W,G=(0,l.default)(L);if(G!=="string"){if(G!=="object")throw new Error(n);if(L===null)throw new Error(n);if(g&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!(Array.isArray(L)||g&&ArrayBuffer.isView(L)))throw new Error(n);W=!0}for(var J,H,U=this.blocks,K=this.byteCount,te=L.length,ee=this.blockCount,ie=0,se=this.s;ie<te;){if(this.reset)for(this.reset=!1,U[0]=this.block,J=1;J<ee+1;++J)U[J]=0;if(W)for(J=this.start;ie<te&&J<K;++ie)U[J>>2]|=L[ie]<<y[3&J++];else for(J=this.start;ie<te&&J<K;++ie)(H=L.charCodeAt(ie))<128?U[J>>2]|=H<<y[3&J++]:H<2048?(U[J>>2]|=(192|H>>6)<<y[3&J++],U[J>>2]|=(128|63&H)<<y[3&J++]):H<55296||H>=57344?(U[J>>2]|=(224|H>>12)<<y[3&J++],U[J>>2]|=(128|H>>6&63)<<y[3&J++],U[J>>2]|=(128|63&H)<<y[3&J++]):(H=65536+((1023&H)<<10|1023&L.charCodeAt(++ie)),U[J>>2]|=(240|H>>18)<<y[3&J++],U[J>>2]|=(128|H>>12&63)<<y[3&J++],U[J>>2]|=(128|H>>6&63)<<y[3&J++],U[J>>2]|=(128|63&H)<<y[3&J++]);if(this.lastByteIndex=J,J>=K){for(this.start=J-K,this.block=U[ee],J=0;J<ee;++J)se[J]^=U[J];Z(se),this.reset=!0}else this.start=J}return this},Q.prototype.encode=function(L,W){var G=255&L,J=1,H=[G];for(G=255&(L>>=8);G>0;)H.unshift(G),G=255&(L>>=8),++J;return W?H.push(J):H.unshift(J),this.update(H),H.length},Q.prototype.encodeString=function(L){var W,G=(0,l.default)(L);if(G!=="string"){if(G!=="object")throw new Error(n);if(L===null)throw new Error(n);if(g&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!(Array.isArray(L)||g&&ArrayBuffer.isView(L)))throw new Error(n);W=!0}var J=0,H=L.length;if(W)J=H;else for(var U=0;U<L.length;++U){var K=L.charCodeAt(U);K<128?J+=1:K<2048?J+=2:K<55296||K>=57344?J+=3:(K=65536+((1023&K)<<10|1023&L.charCodeAt(++U)),J+=4)}return J+=this.encode(8*J),this.update(L),J},Q.prototype.bytepad=function(L,W){for(var G=this.encode(W),J=0;J<L.length;++J)G+=this.encodeString(L[J]);var H=W-G%W,U=[];return U.length=H,this.update(U),this},Q.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var L=this.blocks,W=this.lastByteIndex,G=this.blockCount,J=this.s;if(L[W>>2]|=this.padding[3&W],this.lastByteIndex===this.byteCount)for(L[0]=L[G],W=1;W<G+1;++W)L[W]=0;for(L[G-1]|=2147483648,W=0;W<G;++W)J[W]^=L[W];Z(J)}},Q.prototype.toString=Q.prototype.hex=function(){this.finalize();for(var L,W=this.blockCount,G=this.s,J=this.outputBlocks,H=this.extraBytes,U=0,K=0,te="";K<J;){for(U=0;U<W&&K<J;++U,++K)L=G[U],te+=p[L>>4&15]+p[15&L]+p[L>>12&15]+p[L>>8&15]+p[L>>20&15]+p[L>>16&15]+p[L>>28&15]+p[L>>24&15];K%W==0&&(Z(G),U=0)}return H&&(L=G[U],te+=p[L>>4&15]+p[15&L],H>1&&(te+=p[L>>12&15]+p[L>>8&15]),H>2&&(te+=p[L>>20&15]+p[L>>16&15])),te},Q.prototype.arrayBuffer=function(){this.finalize();var L,W=this.blockCount,G=this.s,J=this.outputBlocks,H=this.extraBytes,U=0,K=0,te=this.outputBits>>3;L=H?new ArrayBuffer(J+1<<2):new ArrayBuffer(te);for(var ee=new Uint32Array(L);K<J;){for(U=0;U<W&&K<J;++U,++K)ee[K]=G[U];K%W==0&&Z(G)}return H&&(ee[U]=G[U],L=L.slice(0,te)),L},Q.prototype.buffer=Q.prototype.arrayBuffer,Q.prototype.digest=Q.prototype.array=function(){this.finalize();for(var L,W,G=this.blockCount,J=this.s,H=this.outputBlocks,U=this.extraBytes,K=0,te=0,ee=[];te<H;){for(K=0;K<G&&te<H;++K,++te)L=te<<2,W=J[K],ee[L]=255&W,ee[L+1]=W>>8&255,ee[L+2]=W>>16&255,ee[L+3]=W>>24&255;te%G==0&&Z(J)}return U&&(L=te<<2,W=J[K],ee[L]=255&W,U>1&&(ee[L+1]=W>>8&255),U>2&&(ee[L+2]=W>>16&255)),ee},X.prototype=new Q,X.prototype.finalize=function(){return this.encode(this.outputBits,!0),Q.prototype.finalize.call(this)};var Z=function(L){var W,G,J,H,U,K,te,ee,ie,se,ne,re,Y,V,oe,fe,ce,he,le,ae,ue,de,ve,me,ge,xe,Ae,Te,ke,Pe,Ie,qe,Ve,et,je,Ke,Ge,We,Je,ot,Qe,Ye,at,pe,ye,be,_e,we,Ee,Ce,Oe,De,Be,Re,Le,Ue,Ne,$e,ze,Xe,ft,ut,ct;for(J=0;J<48;J+=2)H=L[0]^L[10]^L[20]^L[30]^L[40],U=L[1]^L[11]^L[21]^L[31]^L[41],K=L[2]^L[12]^L[22]^L[32]^L[42],te=L[3]^L[13]^L[23]^L[33]^L[43],ee=L[4]^L[14]^L[24]^L[34]^L[44],ie=L[5]^L[15]^L[25]^L[35]^L[45],se=L[6]^L[16]^L[26]^L[36]^L[46],ne=L[7]^L[17]^L[27]^L[37]^L[47],W=(re=L[8]^L[18]^L[28]^L[38]^L[48])^(K<<1|te>>>31),G=(Y=L[9]^L[19]^L[29]^L[39]^L[49])^(te<<1|K>>>31),L[0]^=W,L[1]^=G,L[10]^=W,L[11]^=G,L[20]^=W,L[21]^=G,L[30]^=W,L[31]^=G,L[40]^=W,L[41]^=G,W=H^(ee<<1|ie>>>31),G=U^(ie<<1|ee>>>31),L[2]^=W,L[3]^=G,L[12]^=W,L[13]^=G,L[22]^=W,L[23]^=G,L[32]^=W,L[33]^=G,L[42]^=W,L[43]^=G,W=K^(se<<1|ne>>>31),G=te^(ne<<1|se>>>31),L[4]^=W,L[5]^=G,L[14]^=W,L[15]^=G,L[24]^=W,L[25]^=G,L[34]^=W,L[35]^=G,L[44]^=W,L[45]^=G,W=ee^(re<<1|Y>>>31),G=ie^(Y<<1|re>>>31),L[6]^=W,L[7]^=G,L[16]^=W,L[17]^=G,L[26]^=W,L[27]^=G,L[36]^=W,L[37]^=G,L[46]^=W,L[47]^=G,W=se^(H<<1|U>>>31),G=ne^(U<<1|H>>>31),L[8]^=W,L[9]^=G,L[18]^=W,L[19]^=G,L[28]^=W,L[29]^=G,L[38]^=W,L[39]^=G,L[48]^=W,L[49]^=G,V=L[0],oe=L[1],be=L[11]<<4|L[10]>>>28,_e=L[10]<<4|L[11]>>>28,Te=L[20]<<3|L[21]>>>29,ke=L[21]<<3|L[20]>>>29,Xe=L[31]<<9|L[30]>>>23,ft=L[30]<<9|L[31]>>>23,Ye=L[40]<<18|L[41]>>>14,at=L[41]<<18|L[40]>>>14,et=L[2]<<1|L[3]>>>31,je=L[3]<<1|L[2]>>>31,fe=L[13]<<12|L[12]>>>20,ce=L[12]<<12|L[13]>>>20,we=L[22]<<10|L[23]>>>22,Ee=L[23]<<10|L[22]>>>22,Pe=L[33]<<13|L[32]>>>19,Ie=L[32]<<13|L[33]>>>19,ut=L[42]<<2|L[43]>>>30,ct=L[43]<<2|L[42]>>>30,Re=L[5]<<30|L[4]>>>2,Le=L[4]<<30|L[5]>>>2,Ke=L[14]<<6|L[15]>>>26,Ge=L[15]<<6|L[14]>>>26,he=L[25]<<11|L[24]>>>21,le=L[24]<<11|L[25]>>>21,Ce=L[34]<<15|L[35]>>>17,Oe=L[35]<<15|L[34]>>>17,qe=L[45]<<29|L[44]>>>3,Ve=L[44]<<29|L[45]>>>3,me=L[6]<<28|L[7]>>>4,ge=L[7]<<28|L[6]>>>4,Ue=L[17]<<23|L[16]>>>9,Ne=L[16]<<23|L[17]>>>9,We=L[26]<<25|L[27]>>>7,Je=L[27]<<25|L[26]>>>7,ae=L[36]<<21|L[37]>>>11,ue=L[37]<<21|L[36]>>>11,De=L[47]<<24|L[46]>>>8,Be=L[46]<<24|L[47]>>>8,pe=L[8]<<27|L[9]>>>5,ye=L[9]<<27|L[8]>>>5,xe=L[18]<<20|L[19]>>>12,Ae=L[19]<<20|L[18]>>>12,$e=L[29]<<7|L[28]>>>25,ze=L[28]<<7|L[29]>>>25,ot=L[38]<<8|L[39]>>>24,Qe=L[39]<<8|L[38]>>>24,de=L[48]<<14|L[49]>>>18,ve=L[49]<<14|L[48]>>>18,L[0]=V^~fe&he,L[1]=oe^~ce&le,L[10]=me^~xe&Te,L[11]=ge^~Ae&ke,L[20]=et^~Ke&We,L[21]=je^~Ge&Je,L[30]=pe^~be&we,L[31]=ye^~_e&Ee,L[40]=Re^~Ue&$e,L[41]=Le^~Ne&ze,L[2]=fe^~he&ae,L[3]=ce^~le&ue,L[12]=xe^~Te&Pe,L[13]=Ae^~ke&Ie,L[22]=Ke^~We&ot,L[23]=Ge^~Je&Qe,L[32]=be^~we&Ce,L[33]=_e^~Ee&Oe,L[42]=Ue^~$e&Xe,L[43]=Ne^~ze&ft,L[4]=he^~ae&de,L[5]=le^~ue&ve,L[14]=Te^~Pe&qe,L[15]=ke^~Ie&Ve,L[24]=We^~ot&Ye,L[25]=Je^~Qe&at,L[34]=we^~Ce&De,L[35]=Ee^~Oe&Be,L[44]=$e^~Xe&ut,L[45]=ze^~ft&ct,L[6]=ae^~de&V,L[7]=ue^~ve&oe,L[16]=Pe^~qe&me,L[17]=Ie^~Ve&ge,L[26]=ot^~Ye&et,L[27]=Qe^~at&je,L[36]=Ce^~De&pe,L[37]=Oe^~Be&ye,L[46]=Xe^~ut&Re,L[47]=ft^~ct&Le,L[8]=de^~V&fe,L[9]=ve^~oe&ce,L[18]=qe^~me&xe,L[19]=Ve^~ge&Ae,L[28]=Ye^~et&Ke,L[29]=at^~je&Ge,L[38]=De^~pe&be,L[39]=Be^~ye&_e,L[48]=ut^~Re&Ue,L[49]=ct^~Le&Ne,L[0]^=b[J],L[1]^=b[J+1]};if(u)r.exports=q;else{for(O=0;O<z.length;++O)o[z[O]]=q[z[O]];c&&((f=function(){return q}.call(s,i,s,r))===void 0||(r.exports=f))}})()},7252:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="logger/5.7.0"},4327:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.Logger=s.LogLevel=s.ErrorCode=void 0;var e,l,n=f(i(9721)),t=f(i(8985)),o=i(7252),d=!1,u=!1,c={debug:1,default:2,info:2,warning:3,error:4,off:5},g=c.default,p=null,v=function(){try{var A=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(x){try{if("test".normalize(x)!=="test")throw new Error("bad normalize")}catch{A.push(x)}}),A.length)throw new Error("missing "+A.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(x){return x.message}return null}();s.LogLevel=e,function(A){A.DEBUG="DEBUG",A.INFO="INFO",A.WARNING="WARNING",A.ERROR="ERROR",A.OFF="OFF"}(e||(s.LogLevel=e={})),s.ErrorCode=l,function(A){A.UNKNOWN_ERROR="UNKNOWN_ERROR",A.NOT_IMPLEMENTED="NOT_IMPLEMENTED",A.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",A.NETWORK_ERROR="NETWORK_ERROR",A.SERVER_ERROR="SERVER_ERROR",A.TIMEOUT="TIMEOUT",A.BUFFER_OVERRUN="BUFFER_OVERRUN",A.NUMERIC_FAULT="NUMERIC_FAULT",A.MISSING_NEW="MISSING_NEW",A.INVALID_ARGUMENT="INVALID_ARGUMENT",A.MISSING_ARGUMENT="MISSING_ARGUMENT",A.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",A.CALL_EXCEPTION="CALL_EXCEPTION",A.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",A.NONCE_EXPIRED="NONCE_EXPIRED",A.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",A.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",A.TRANSACTION_REPLACED="TRANSACTION_REPLACED",A.ACTION_REJECTED="ACTION_REJECTED"}(l||(s.ErrorCode=l={}));var y="0123456789abcdef",b=function(){function A(x){(0,n.default)(this,A),Object.defineProperty(this,"version",{enumerable:!0,value:x,writable:!1})}return(0,t.default)(A,[{key:"_log",value:function(x,E){var S=x.toLowerCase();c[S]==null&&this.throwArgumentError("invalid log level name","logLevel",x),g>c[S]||console.log.apply(console,E)}},{key:"debug",value:function(){for(var x=arguments.length,E=new Array(x),S=0;S<x;S++)E[S]=arguments[S];this._log(A.levels.DEBUG,E)}},{key:"info",value:function(){for(var x=arguments.length,E=new Array(x),S=0;S<x;S++)E[S]=arguments[S];this._log(A.levels.INFO,E)}},{key:"warn",value:function(){for(var x=arguments.length,E=new Array(x),S=0;S<x;S++)E[S]=arguments[S];this._log(A.levels.WARNING,E)}},{key:"makeError",value:function(x,E,S){if(u)return this.makeError("censored error",E,{});E||(E=A.errors.UNKNOWN_ERROR),S||(S={});var C=[];Object.keys(S).forEach(function(N){var F=S[N];try{if(F instanceof Uint8Array){for(var q="",z=0;z<F.length;z++)q+=y[F[z]>>4],q+=y[15&F[z]];C.push(N+"=Uint8Array(0x"+q+")")}else C.push(N+"="+JSON.stringify(F))}catch{C.push(N+"="+JSON.stringify(S[N].toString()))}}),C.push("code=".concat(E)),C.push("version=".concat(this.version));var T=x,k="";switch(E){case l.NUMERIC_FAULT:k="NUMERIC_FAULT";var M=x;switch(M){case"overflow":case"underflow":case"division-by-zero":k+="-"+M;break;case"negative-power":case"negative-width":k+="-unsupported";break;case"unbound-bitwise-result":k+="-unbound-result"}break;case l.CALL_EXCEPTION:case l.INSUFFICIENT_FUNDS:case l.MISSING_NEW:case l.NONCE_EXPIRED:case l.REPLACEMENT_UNDERPRICED:case l.TRANSACTION_REPLACED:case l.UNPREDICTABLE_GAS_LIMIT:k=E}k&&(x+=" [ See: https://links.ethers.org/v5-errors-"+k+" ]"),C.length&&(x+=" ("+C.join(", ")+")");var P=new Error(x);return P.reason=T,P.code=E,Object.keys(S).forEach(function(N){P[N]=S[N]}),P}},{key:"throwError",value:function(x,E,S){throw this.makeError(x,E,S)}},{key:"throwArgumentError",value:function(x,E,S){return this.throwError(x,A.errors.INVALID_ARGUMENT,{argument:E,value:S})}},{key:"assert",value:function(x,E,S,C){x||this.throwError(E,S,C)}},{key:"assertArgument",value:function(x,E,S,C){x||this.throwArgumentError(E,S,C)}},{key:"checkNormalize",value:function(x){v&&this.throwError("platform missing String.prototype.normalize",A.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:v})}},{key:"checkSafeUint53",value:function(x,E){typeof x=="number"&&(E==null&&(E="value not safe"),(x<0||x>=9007199254740991)&&this.throwError(E,A.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:x}),x%1&&this.throwError(E,A.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:x}))}},{key:"checkArgumentCount",value:function(x,E,S){S=S?": "+S:"",x<E&&this.throwError("missing argument"+S,A.errors.MISSING_ARGUMENT,{count:x,expectedCount:E}),x>E&&this.throwError("too many arguments"+S,A.errors.UNEXPECTED_ARGUMENT,{count:x,expectedCount:E})}},{key:"checkNew",value:function(x,E){x!==Object&&x!=null||this.throwError("missing new",A.errors.MISSING_NEW,{name:E.name})}},{key:"checkAbstract",value:function(x,E){x===E?this.throwError("cannot instantiate abstract class "+JSON.stringify(E.name)+" directly; use a sub-class",A.errors.UNSUPPORTED_OPERATION,{name:x.name,operation:"new"}):x!==Object&&x!=null||this.throwError("missing new",A.errors.MISSING_NEW,{name:E.name})}}],[{key:"globalLogger",value:function(){return p||(p=new A(o.version)),p}},{key:"setCensorship",value:function(x,E){if(!x&&E&&this.globalLogger().throwError("cannot permanently disable censorship",A.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),d){if(!x)return;this.globalLogger().throwError("error censorship permanent",A.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!x,d=!!E}},{key:"setLogLevel",value:function(x){var E=c[x.toLowerCase()];E!=null?g=E:A.globalLogger().warn("invalid log level - "+x)}},{key:"from",value:function(x){return new A(x)}}]),A}();s.Logger=b,b.errors=l,b.levels=e},4071:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="properties/5.7.0"},3694:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.Description=void 0,s.checkProperties=function(x,E){x&&(0,t.default)(x)==="object"||c.throwArgumentError("invalid object","object",x),Object.keys(x).forEach(function(S){E[S]||c.throwArgumentError("invalid object key - "+S,"transaction:"+S,x)})},s.deepCopy=b,s.defineReadOnly=g,s.getStatic=function(x,E){for(var S=0;S<32;S++){if(x[E])return x[E];if(!x.prototype||(0,t.default)(x.prototype)!=="object")break;x=Object.getPrototypeOf(x.prototype).constructor}return null},s.resolveProperties=function(x){return u(this,void 0,void 0,e.default.mark(function E(){var S,C;return e.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return S=Object.keys(x).map(function(k){var M=x[k];return Promise.resolve(M).then(function(P){return{key:k,value:P}})}),T.next=3,Promise.all(S);case 3:return C=T.sent,T.abrupt("return",C.reduce(function(k,M){return k[M.key]=M.value,k},{}));case 5:case"end":return T.stop()}},E)}))},s.shallowCopy=function(x){var E={};for(var S in x)E[S]=x[S];return E};var e=f(i(2247)),l=f(i(8985)),n=f(i(9721)),t=f(i(3355)),o=i(4327),d=i(4071),u=function(x,E,S,C){return new(S||(S=Promise))(function(T,k){function M(F){try{N(C.next(F))}catch(q){k(q)}}function P(F){try{N(C.throw(F))}catch(q){k(q)}}function N(F){var q;F.done?T(F.value):(q=F.value,q instanceof S?q:new S(function(z){z(q)})).then(M,P)}N((C=C.apply(x,E||[])).next())})},c=new o.Logger(d.version);function g(x,E,S){Object.defineProperty(x,E,{enumerable:!0,value:S,writable:!1})}var p={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function v(x){if(x==null||p[(0,t.default)(x)])return!0;if(Array.isArray(x)||(0,t.default)(x)==="object"){if(!Object.isFrozen(x))return!1;for(var E=Object.keys(x),S=0;S<E.length;S++){var C=null;try{C=x[E[S]]}catch{continue}if(!v(C))return!1}return!0}return c.throwArgumentError("Cannot deepCopy ".concat((0,t.default)(x)),"object",x)}function y(x){if(v(x))return x;if(Array.isArray(x))return Object.freeze(x.map(function(T){return b(T)}));if((0,t.default)(x)==="object"){var E={};for(var S in x){var C=x[S];C!==void 0&&g(E,S,b(C))}return E}return c.throwArgumentError("Cannot deepCopy ".concat((0,t.default)(x)),"object",x)}function b(x){return y(x)}var A=(0,l.default)(function x(E){for(var S in(0,n.default)(this,x),E)this[S]=b(E[S])});s.Description=A},1466:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="rlp/5.7.0"},5265:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.decode=function(g){var p=(0,f.arrayify)(g),v=c(p,0);return v.consumed!==p.length&&n.throwArgumentError("invalid rlp data","data",g),v.result},s.encode=function(g){return(0,f.hexlify)(d(g))};var f=i(908),e=i(4327),l=i(1466),n=new e.Logger(l.version);function t(g){for(var p=[];g;)p.unshift(255&g),g>>=8;return p}function o(g,p,v){for(var y=0,b=0;b<v;b++)y=256*y+g[p+b];return y}function d(g){if(Array.isArray(g)){var p=[];if(g.forEach(function(A){p=p.concat(d(A))}),p.length<=55)return p.unshift(192+p.length),p;var v=t(p.length);return v.unshift(247+v.length),v.concat(p)}(0,f.isBytesLike)(g)||n.throwArgumentError("RLP object must be BytesLike","object",g);var y=Array.prototype.slice.call((0,f.arrayify)(g));if(y.length===1&&y[0]<=127)return y;if(y.length<=55)return y.unshift(128+y.length),y;var b=t(y.length);return b.unshift(183+b.length),b.concat(y)}function u(g,p,v,y){for(var b=[];v<p+1+y;){var A=c(g,v);b.push(A.result),(v+=A.consumed)>p+1+y&&n.throwError("child data too short",e.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+y,result:b}}function c(g,p){if(g.length===0&&n.throwError("data too short",e.Logger.errors.BUFFER_OVERRUN,{}),g[p]>=248){var v=g[p]-247;p+1+v>g.length&&n.throwError("data short segment too short",e.Logger.errors.BUFFER_OVERRUN,{});var y=o(g,p+1,v);return p+1+v+y>g.length&&n.throwError("data long segment too short",e.Logger.errors.BUFFER_OVERRUN,{}),u(g,p,p+1+v,v+y)}if(g[p]>=192){var b=g[p]-192;return p+1+b>g.length&&n.throwError("data array too short",e.Logger.errors.BUFFER_OVERRUN,{}),u(g,p,p+1,b)}if(g[p]>=184){var A=g[p]-183;p+1+A>g.length&&n.throwError("data array too short",e.Logger.errors.BUFFER_OVERRUN,{});var x=o(g,p+1,A);return p+1+A+x>g.length&&n.throwError("data array too short",e.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+A+x,result:(0,f.hexlify)(g.slice(p+1+A,p+1+A+x))}}if(g[p]>=128){var E=g[p]-128;return p+1+E>g.length&&n.throwError("data too short",e.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+E,result:(0,f.hexlify)(g.slice(p+1,p+1+E))}}return{consumed:1,result:(0,f.hexlify)(g[p])}}},8100:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="signing-key/5.7.0"},6918:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.EC=void 0;var e=f(i(3355)),l=f(i(1734)),n=f(i(7198));function t(U,K,te){return te={path:K,exports:{},require:function(ee,ie){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(ie==null&&te.path)}},U(te,te.exports),te.exports}typeof globalThis<"u"||typeof window<"u"||(i.g!==void 0?i.g:typeof self<"u");var o=d;function d(U,K){if(!U)throw new Error(K||"Assertion failed")}d.equal=function(U,K,te){if(U!=K)throw new Error(te||"Assertion failed: "+U+" != "+K)};var u=t(function(U,K){var te=K;function ee(se){return se.length===1?"0"+se:se}function ie(se){for(var ne="",re=0;re<se.length;re++)ne+=ee(se[re].toString(16));return ne}te.toArray=function(se,ne){if(Array.isArray(se))return se.slice();if(!se)return[];var re=[];if(typeof se!="string"){for(var Y=0;Y<se.length;Y++)re[Y]=0|se[Y];return re}if(ne==="hex")for((se=se.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(se="0"+se),Y=0;Y<se.length;Y+=2)re.push(parseInt(se[Y]+se[Y+1],16));else for(Y=0;Y<se.length;Y++){var V=se.charCodeAt(Y),oe=V>>8,fe=255&V;oe?re.push(oe,fe):re.push(fe)}return re},te.zero2=ee,te.toHex=ie,te.encode=function(se,ne){return ne==="hex"?ie(se):se}}),c=t(function(U,K){var te=K;te.assert=o,te.toArray=u.toArray,te.zero2=u.zero2,te.toHex=u.toHex,te.encode=u.encode,te.getNAF=function(ee,ie,se){var ne=new Array(Math.max(ee.bitLength(),se)+1);ne.fill(0);for(var re=1<<ie+1,Y=ee.clone(),V=0;V<ne.length;V++){var oe,fe=Y.andln(re-1);Y.isOdd()?(oe=fe>(re>>1)-1?(re>>1)-fe:fe,Y.isubn(oe)):oe=0,ne[V]=oe,Y.iushrn(1)}return ne},te.getJSF=function(ee,ie){var se=[[],[]];ee=ee.clone(),ie=ie.clone();for(var ne,re=0,Y=0;ee.cmpn(-re)>0||ie.cmpn(-Y)>0;){var V,oe,fe=ee.andln(3)+re&3,ce=ie.andln(3)+Y&3;fe===3&&(fe=-1),ce===3&&(ce=-1),V=1&fe?(ne=ee.andln(7)+re&7)!=3&&ne!==5||ce!==2?fe:-fe:0,se[0].push(V),oe=1&ce?(ne=ie.andln(7)+Y&7)!=3&&ne!==5||fe!==2?ce:-ce:0,se[1].push(oe),2*re===V+1&&(re=1-re),2*Y===oe+1&&(Y=1-Y),ee.iushrn(1),ie.iushrn(1)}return se},te.cachedProperty=function(ee,ie,se){var ne="_"+ie;ee.prototype[ie]=function(){return this[ne]!==void 0?this[ne]:this[ne]=se.call(this)}},te.parseBytes=function(ee){return typeof ee=="string"?te.toArray(ee,"hex"):ee},te.intFromLE=function(ee){return new l.default(ee,"hex","le")}}),g=c.getNAF,p=c.getJSF,v=c.assert;function y(U,K){this.type=U,this.p=new l.default(K.p,16),this.red=K.prime?l.default.red(K.prime):l.default.mont(this.p),this.zero=new l.default(0).toRed(this.red),this.one=new l.default(1).toRed(this.red),this.two=new l.default(2).toRed(this.red),this.n=K.n&&new l.default(K.n,16),this.g=K.g&&this.pointFromJSON(K.g,K.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 te=this.n&&this.p.div(this.n);!te||te.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var b=y;function A(U,K){this.curve=U,this.type=K,this.precomputed=null}y.prototype.point=function(){throw new Error("Not implemented")},y.prototype.validate=function(){throw new Error("Not implemented")},y.prototype._fixedNafMul=function(U,K){v(U.precomputed);var te=U._getDoubles(),ee=g(K,1,this._bitLength),ie=(1<<te.step+1)-(te.step%2==0?2:1);ie/=3;var se,ne,re=[];for(se=0;se<ee.length;se+=te.step){ne=0;for(var Y=se+te.step-1;Y>=se;Y--)ne=(ne<<1)+ee[Y];re.push(ne)}for(var V=this.jpoint(null,null,null),oe=this.jpoint(null,null,null),fe=ie;fe>0;fe--){for(se=0;se<re.length;se++)(ne=re[se])===fe?oe=oe.mixedAdd(te.points[se]):ne===-fe&&(oe=oe.mixedAdd(te.points[se].neg()));V=V.add(oe)}return V.toP()},y.prototype._wnafMul=function(U,K){var te=4,ee=U._getNAFPoints(te);te=ee.wnd;for(var ie=ee.points,se=g(K,te,this._bitLength),ne=this.jpoint(null,null,null),re=se.length-1;re>=0;re--){for(var Y=0;re>=0&&se[re]===0;re--)Y++;if(re>=0&&Y++,ne=ne.dblp(Y),re<0)break;var V=se[re];v(V!==0),ne=U.type==="affine"?V>0?ne.mixedAdd(ie[V-1>>1]):ne.mixedAdd(ie[-V-1>>1].neg()):V>0?ne.add(ie[V-1>>1]):ne.add(ie[-V-1>>1].neg())}return U.type==="affine"?ne.toP():ne},y.prototype._wnafMulAdd=function(U,K,te,ee,ie){var se,ne,re,Y=this._wnafT1,V=this._wnafT2,oe=this._wnafT3,fe=0;for(se=0;se<ee;se++){var ce=(re=K[se])._getNAFPoints(U);Y[se]=ce.wnd,V[se]=ce.points}for(se=ee-1;se>=1;se-=2){var he=se-1,le=se;if(Y[he]===1&&Y[le]===1){var ae=[K[he],null,null,K[le]];K[he].y.cmp(K[le].y)===0?(ae[1]=K[he].add(K[le]),ae[2]=K[he].toJ().mixedAdd(K[le].neg())):K[he].y.cmp(K[le].y.redNeg())===0?(ae[1]=K[he].toJ().mixedAdd(K[le]),ae[2]=K[he].add(K[le].neg())):(ae[1]=K[he].toJ().mixedAdd(K[le]),ae[2]=K[he].toJ().mixedAdd(K[le].neg()));var ue=[-3,-1,-5,-7,0,7,5,1,3],de=p(te[he],te[le]);for(fe=Math.max(de[0].length,fe),oe[he]=new Array(fe),oe[le]=new Array(fe),ne=0;ne<fe;ne++){var ve=0|de[0][ne],me=0|de[1][ne];oe[he][ne]=ue[3*(ve+1)+(me+1)],oe[le][ne]=0,V[he]=ae}}else oe[he]=g(te[he],Y[he],this._bitLength),oe[le]=g(te[le],Y[le],this._bitLength),fe=Math.max(oe[he].length,fe),fe=Math.max(oe[le].length,fe)}var ge=this.jpoint(null,null,null),xe=this._wnafT4;for(se=fe;se>=0;se--){for(var Ae=0;se>=0;){var Te=!0;for(ne=0;ne<ee;ne++)xe[ne]=0|oe[ne][se],xe[ne]!==0&&(Te=!1);if(!Te)break;Ae++,se--}if(se>=0&&Ae++,ge=ge.dblp(Ae),se<0)break;for(ne=0;ne<ee;ne++){var ke=xe[ne];ke!==0&&(ke>0?re=V[ne][ke-1>>1]:ke<0&&(re=V[ne][-ke-1>>1].neg()),ge=re.type==="affine"?ge.mixedAdd(re):ge.add(re))}}for(se=0;se<ee;se++)V[se]=null;return ie?ge:ge.toP()},y.BasePoint=A,A.prototype.eq=function(){throw new Error("Not implemented")},A.prototype.validate=function(){return this.curve.validate(this)},y.prototype.decodePoint=function(U,K){U=c.toArray(U,K);var te=this.p.byteLength();if((U[0]===4||U[0]===6||U[0]===7)&&U.length-1==2*te)return U[0]===6?v(U[U.length-1]%2==0):U[0]===7&&v(U[U.length-1]%2==1),this.point(U.slice(1,1+te),U.slice(1+te,1+2*te));if((U[0]===2||U[0]===3)&&U.length-1===te)return this.pointFromX(U.slice(1,1+te),U[0]===3);throw new Error("Unknown point format")},A.prototype.encodeCompressed=function(U){return this.encode(U,!0)},A.prototype._encode=function(U){var K=this.curve.p.byteLength(),te=this.getX().toArray("be",K);return U?[this.getY().isEven()?2:3].concat(te):[4].concat(te,this.getY().toArray("be",K))},A.prototype.encode=function(U,K){return c.encode(this._encode(K),U)},A.prototype.precompute=function(U){if(this.precomputed)return this;var K={doubles:null,naf:null,beta:null};return K.naf=this._getNAFPoints(8),K.doubles=this._getDoubles(4,U),K.beta=this._getBeta(),this.precomputed=K,this},A.prototype._hasDoubles=function(U){if(!this.precomputed)return!1;var K=this.precomputed.doubles;return!!K&&K.points.length>=Math.ceil((U.bitLength()+1)/K.step)},A.prototype._getDoubles=function(U,K){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var te=[this],ee=this,ie=0;ie<K;ie+=U){for(var se=0;se<U;se++)ee=ee.dbl();te.push(ee)}return{step:U,points:te}},A.prototype._getNAFPoints=function(U){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var K=[this],te=(1<<U)-1,ee=te===1?null:this.dbl(),ie=1;ie<te;ie++)K[ie]=K[ie-1].add(ee);return{wnd:U,points:K}},A.prototype._getBeta=function(){return null},A.prototype.dblp=function(U){for(var K=this,te=0;te<U;te++)K=K.dbl();return K};var x=t(function(U){typeof Object.create=="function"?U.exports=function(K,te){te&&(K.super_=te,K.prototype=Object.create(te.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}))}:U.exports=function(K,te){if(te){K.super_=te;var ee=function(){};ee.prototype=te.prototype,K.prototype=new ee,K.prototype.constructor=K}}}),E=c.assert;function S(U){b.call(this,"short",U),this.a=new l.default(U.a,16).toRed(this.red),this.b=new l.default(U.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(U),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}x(S,b);var C=S;function T(U,K,te,ee){b.BasePoint.call(this,U,"affine"),K===null&&te===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new l.default(K,16),this.y=new l.default(te,16),ee&&(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 k(U,K,te,ee){b.BasePoint.call(this,U,"jacobian"),K===null&&te===null&&ee===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new l.default(0)):(this.x=new l.default(K,16),this.y=new l.default(te,16),this.z=new l.default(ee,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}S.prototype._getEndomorphism=function(U){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var K,te;if(U.beta)K=new l.default(U.beta,16).toRed(this.red);else{var ee=this._getEndoRoots(this.p);K=(K=ee[0].cmp(ee[1])<0?ee[0]:ee[1]).toRed(this.red)}if(U.lambda)te=new l.default(U.lambda,16);else{var ie=this._getEndoRoots(this.n);this.g.mul(ie[0]).x.cmp(this.g.x.redMul(K))===0?te=ie[0]:(te=ie[1],E(this.g.mul(te).x.cmp(this.g.x.redMul(K))===0))}return{beta:K,lambda:te,basis:U.basis?U.basis.map(function(se){return{a:new l.default(se.a,16),b:new l.default(se.b,16)}}):this._getEndoBasis(te)}}},S.prototype._getEndoRoots=function(U){var K=U===this.p?this.red:l.default.mont(U),te=new l.default(2).toRed(K).redInvm(),ee=te.redNeg(),ie=new l.default(3).toRed(K).redNeg().redSqrt().redMul(te);return[ee.redAdd(ie).fromRed(),ee.redSub(ie).fromRed()]},S.prototype._getEndoBasis=function(U){for(var K,te,ee,ie,se,ne,re,Y,V,oe=this.n.ushrn(Math.floor(this.n.bitLength()/2)),fe=U,ce=this.n.clone(),he=new l.default(1),le=new l.default(0),ae=new l.default(0),ue=new l.default(1),de=0;fe.cmpn(0)!==0;){var ve=ce.div(fe);Y=ce.sub(ve.mul(fe)),V=ae.sub(ve.mul(he));var me=ue.sub(ve.mul(le));if(!ee&&Y.cmp(oe)<0)K=re.neg(),te=he,ee=Y.neg(),ie=V;else if(ee&&++de==2)break;re=Y,ce=fe,fe=Y,ae=he,he=V,ue=le,le=me}se=Y.neg(),ne=V;var ge=ee.sqr().add(ie.sqr());return se.sqr().add(ne.sqr()).cmp(ge)>=0&&(se=K,ne=te),ee.negative&&(ee=ee.neg(),ie=ie.neg()),se.negative&&(se=se.neg(),ne=ne.neg()),[{a:ee,b:ie},{a:se,b:ne}]},S.prototype._endoSplit=function(U){var K=this.endo.basis,te=K[0],ee=K[1],ie=ee.b.mul(U).divRound(this.n),se=te.b.neg().mul(U).divRound(this.n),ne=ie.mul(te.a),re=se.mul(ee.a),Y=ie.mul(te.b),V=se.mul(ee.b);return{k1:U.sub(ne).sub(re),k2:Y.add(V).neg()}},S.prototype.pointFromX=function(U,K){(U=new l.default(U,16)).red||(U=U.toRed(this.red));var te=U.redSqr().redMul(U).redIAdd(U.redMul(this.a)).redIAdd(this.b),ee=te.redSqrt();if(ee.redSqr().redSub(te).cmp(this.zero)!==0)throw new Error("invalid point");var ie=ee.fromRed().isOdd();return(K&&!ie||!K&&ie)&&(ee=ee.redNeg()),this.point(U,ee)},S.prototype.validate=function(U){if(U.inf)return!0;var K=U.x,te=U.y,ee=this.a.redMul(K),ie=K.redSqr().redMul(K).redIAdd(ee).redIAdd(this.b);return te.redSqr().redISub(ie).cmpn(0)===0},S.prototype._endoWnafMulAdd=function(U,K,te){for(var ee=this._endoWnafT1,ie=this._endoWnafT2,se=0;se<U.length;se++){var ne=this._endoSplit(K[se]),re=U[se],Y=re._getBeta();ne.k1.negative&&(ne.k1.ineg(),re=re.neg(!0)),ne.k2.negative&&(ne.k2.ineg(),Y=Y.neg(!0)),ee[2*se]=re,ee[2*se+1]=Y,ie[2*se]=ne.k1,ie[2*se+1]=ne.k2}for(var V=this._wnafMulAdd(1,ee,ie,2*se,te),oe=0;oe<2*se;oe++)ee[oe]=null,ie[oe]=null;return V},x(T,b.BasePoint),S.prototype.point=function(U,K,te){return new T(this,U,K,te)},S.prototype.pointFromJSON=function(U,K){return T.fromJSON(this,U,K)},T.prototype._getBeta=function(){if(this.curve.endo){var U=this.precomputed;if(U&&U.beta)return U.beta;var K=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(U){var te=this.curve,ee=function(ie){return te.point(ie.x.redMul(te.endo.beta),ie.y)};U.beta=K,K.precomputed={beta:null,naf:U.naf&&{wnd:U.naf.wnd,points:U.naf.points.map(ee)},doubles:U.doubles&&{step:U.doubles.step,points:U.doubles.points.map(ee)}}}return K}},T.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]},T.fromJSON=function(U,K,te){typeof K=="string"&&(K=JSON.parse(K));var ee=U.point(K[0],K[1],te);if(!K[2])return ee;function ie(ne){return U.point(ne[0],ne[1],te)}var se=K[2];return ee.precomputed={beta:null,doubles:se.doubles&&{step:se.doubles.step,points:[ee].concat(se.doubles.points.map(ie))},naf:se.naf&&{wnd:se.naf.wnd,points:[ee].concat(se.naf.points.map(ie))}},ee},T.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)+">"},T.prototype.isInfinity=function(){return this.inf},T.prototype.add=function(U){if(this.inf)return U;if(U.inf)return this;if(this.eq(U))return this.dbl();if(this.neg().eq(U))return this.curve.point(null,null);if(this.x.cmp(U.x)===0)return this.curve.point(null,null);var K=this.y.redSub(U.y);K.cmpn(0)!==0&&(K=K.redMul(this.x.redSub(U.x).redInvm()));var te=K.redSqr().redISub(this.x).redISub(U.x),ee=K.redMul(this.x.redSub(te)).redISub(this.y);return this.curve.point(te,ee)},T.prototype.dbl=function(){if(this.inf)return this;var U=this.y.redAdd(this.y);if(U.cmpn(0)===0)return this.curve.point(null,null);var K=this.curve.a,te=this.x.redSqr(),ee=U.redInvm(),ie=te.redAdd(te).redIAdd(te).redIAdd(K).redMul(ee),se=ie.redSqr().redISub(this.x.redAdd(this.x)),ne=ie.redMul(this.x.redSub(se)).redISub(this.y);return this.curve.point(se,ne)},T.prototype.getX=function(){return this.x.fromRed()},T.prototype.getY=function(){return this.y.fromRed()},T.prototype.mul=function(U){return U=new l.default(U,16),this.isInfinity()?this:this._hasDoubles(U)?this.curve._fixedNafMul(this,U):this.curve.endo?this.curve._endoWnafMulAdd([this],[U]):this.curve._wnafMul(this,U)},T.prototype.mulAdd=function(U,K,te){var ee=[this,K],ie=[U,te];return this.curve.endo?this.curve._endoWnafMulAdd(ee,ie):this.curve._wnafMulAdd(1,ee,ie,2)},T.prototype.jmulAdd=function(U,K,te){var ee=[this,K],ie=[U,te];return this.curve.endo?this.curve._endoWnafMulAdd(ee,ie,!0):this.curve._wnafMulAdd(1,ee,ie,2,!0)},T.prototype.eq=function(U){return this===U||this.inf===U.inf&&(this.inf||this.x.cmp(U.x)===0&&this.y.cmp(U.y)===0)},T.prototype.neg=function(U){if(this.inf)return this;var K=this.curve.point(this.x,this.y.redNeg());if(U&&this.precomputed){var te=this.precomputed,ee=function(ie){return ie.neg()};K.precomputed={naf:te.naf&&{wnd:te.naf.wnd,points:te.naf.points.map(ee)},doubles:te.doubles&&{step:te.doubles.step,points:te.doubles.points.map(ee)}}}return K},T.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},x(k,b.BasePoint),S.prototype.jpoint=function(U,K,te){return new k(this,U,K,te)},k.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var U=this.z.redInvm(),K=U.redSqr(),te=this.x.redMul(K),ee=this.y.redMul(K).redMul(U);return this.curve.point(te,ee)},k.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},k.prototype.add=function(U){if(this.isInfinity())return U;if(U.isInfinity())return this;var K=U.z.redSqr(),te=this.z.redSqr(),ee=this.x.redMul(K),ie=U.x.redMul(te),se=this.y.redMul(K.redMul(U.z)),ne=U.y.redMul(te.redMul(this.z)),re=ee.redSub(ie),Y=se.redSub(ne);if(re.cmpn(0)===0)return Y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var V=re.redSqr(),oe=V.redMul(re),fe=ee.redMul(V),ce=Y.redSqr().redIAdd(oe).redISub(fe).redISub(fe),he=Y.redMul(fe.redISub(ce)).redISub(se.redMul(oe)),le=this.z.redMul(U.z).redMul(re);return this.curve.jpoint(ce,he,le)},k.prototype.mixedAdd=function(U){if(this.isInfinity())return U.toJ();if(U.isInfinity())return this;var K=this.z.redSqr(),te=this.x,ee=U.x.redMul(K),ie=this.y,se=U.y.redMul(K).redMul(this.z),ne=te.redSub(ee),re=ie.redSub(se);if(ne.cmpn(0)===0)return re.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var Y=ne.redSqr(),V=Y.redMul(ne),oe=te.redMul(Y),fe=re.redSqr().redIAdd(V).redISub(oe).redISub(oe),ce=re.redMul(oe.redISub(fe)).redISub(ie.redMul(V)),he=this.z.redMul(ne);return this.curve.jpoint(fe,ce,he)},k.prototype.dblp=function(U){if(U===0)return this;if(this.isInfinity())return this;if(!U)return this.dbl();var K;if(this.curve.zeroA||this.curve.threeA){var te=this;for(K=0;K<U;K++)te=te.dbl();return te}var ee=this.curve.a,ie=this.curve.tinv,se=this.x,ne=this.y,re=this.z,Y=re.redSqr().redSqr(),V=ne.redAdd(ne);for(K=0;K<U;K++){var oe=se.redSqr(),fe=V.redSqr(),ce=fe.redSqr(),he=oe.redAdd(oe).redIAdd(oe).redIAdd(ee.redMul(Y)),le=se.redMul(fe),ae=he.redSqr().redISub(le.redAdd(le)),ue=le.redISub(ae),de=he.redMul(ue);de=de.redIAdd(de).redISub(ce);var ve=V.redMul(re);K+1<U&&(Y=Y.redMul(ce)),se=ae,re=ve,V=de}return this.curve.jpoint(se,V.redMul(ie),re)},k.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},k.prototype._zeroDbl=function(){var U,K,te;if(this.zOne){var ee=this.x.redSqr(),ie=this.y.redSqr(),se=ie.redSqr(),ne=this.x.redAdd(ie).redSqr().redISub(ee).redISub(se);ne=ne.redIAdd(ne);var re=ee.redAdd(ee).redIAdd(ee),Y=re.redSqr().redISub(ne).redISub(ne),V=se.redIAdd(se);V=(V=V.redIAdd(V)).redIAdd(V),U=Y,K=re.redMul(ne.redISub(Y)).redISub(V),te=this.y.redAdd(this.y)}else{var oe=this.x.redSqr(),fe=this.y.redSqr(),ce=fe.redSqr(),he=this.x.redAdd(fe).redSqr().redISub(oe).redISub(ce);he=he.redIAdd(he);var le=oe.redAdd(oe).redIAdd(oe),ae=le.redSqr(),ue=ce.redIAdd(ce);ue=(ue=ue.redIAdd(ue)).redIAdd(ue),U=ae.redISub(he).redISub(he),K=le.redMul(he.redISub(U)).redISub(ue),te=(te=this.y.redMul(this.z)).redIAdd(te)}return this.curve.jpoint(U,K,te)},k.prototype._threeDbl=function(){var U,K,te;if(this.zOne){var ee=this.x.redSqr(),ie=this.y.redSqr(),se=ie.redSqr(),ne=this.x.redAdd(ie).redSqr().redISub(ee).redISub(se);ne=ne.redIAdd(ne);var re=ee.redAdd(ee).redIAdd(ee).redIAdd(this.curve.a),Y=re.redSqr().redISub(ne).redISub(ne);U=Y;var V=se.redIAdd(se);V=(V=V.redIAdd(V)).redIAdd(V),K=re.redMul(ne.redISub(Y)).redISub(V),te=this.y.redAdd(this.y)}else{var oe=this.z.redSqr(),fe=this.y.redSqr(),ce=this.x.redMul(fe),he=this.x.redSub(oe).redMul(this.x.redAdd(oe));he=he.redAdd(he).redIAdd(he);var le=ce.redIAdd(ce),ae=(le=le.redIAdd(le)).redAdd(le);U=he.redSqr().redISub(ae),te=this.y.redAdd(this.z).redSqr().redISub(fe).redISub(oe);var ue=fe.redSqr();ue=(ue=(ue=ue.redIAdd(ue)).redIAdd(ue)).redIAdd(ue),K=he.redMul(le.redISub(U)).redISub(ue)}return this.curve.jpoint(U,K,te)},k.prototype._dbl=function(){var U=this.curve.a,K=this.x,te=this.y,ee=this.z,ie=ee.redSqr().redSqr(),se=K.redSqr(),ne=te.redSqr(),re=se.redAdd(se).redIAdd(se).redIAdd(U.redMul(ie)),Y=K.redAdd(K),V=(Y=Y.redIAdd(Y)).redMul(ne),oe=re.redSqr().redISub(V.redAdd(V)),fe=V.redISub(oe),ce=ne.redSqr();ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var he=re.redMul(fe).redISub(ce),le=te.redAdd(te).redMul(ee);return this.curve.jpoint(oe,he,le)},k.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var U=this.x.redSqr(),K=this.y.redSqr(),te=this.z.redSqr(),ee=K.redSqr(),ie=U.redAdd(U).redIAdd(U),se=ie.redSqr(),ne=this.x.redAdd(K).redSqr().redISub(U).redISub(ee),re=(ne=(ne=(ne=ne.redIAdd(ne)).redAdd(ne).redIAdd(ne)).redISub(se)).redSqr(),Y=ee.redIAdd(ee);Y=(Y=(Y=Y.redIAdd(Y)).redIAdd(Y)).redIAdd(Y);var V=ie.redIAdd(ne).redSqr().redISub(se).redISub(re).redISub(Y),oe=K.redMul(V);oe=(oe=oe.redIAdd(oe)).redIAdd(oe);var fe=this.x.redMul(re).redISub(oe);fe=(fe=fe.redIAdd(fe)).redIAdd(fe);var ce=this.y.redMul(V.redMul(Y.redISub(V)).redISub(ne.redMul(re)));ce=(ce=(ce=ce.redIAdd(ce)).redIAdd(ce)).redIAdd(ce);var he=this.z.redAdd(ne).redSqr().redISub(te).redISub(re);return this.curve.jpoint(fe,ce,he)},k.prototype.mul=function(U,K){return U=new l.default(U,K),this.curve._wnafMul(this,U)},k.prototype.eq=function(U){if(U.type==="affine")return this.eq(U.toJ());if(this===U)return!0;var K=this.z.redSqr(),te=U.z.redSqr();if(this.x.redMul(te).redISub(U.x.redMul(K)).cmpn(0)!==0)return!1;var ee=K.redMul(this.z),ie=te.redMul(U.z);return this.y.redMul(ie).redISub(U.y.redMul(ee)).cmpn(0)===0},k.prototype.eqXToP=function(U){var K=this.z.redSqr(),te=U.toRed(this.curve.red).redMul(K);if(this.x.cmp(te)===0)return!0;for(var ee=U.clone(),ie=this.curve.redN.redMul(K);;){if(ee.iadd(this.curve.n),ee.cmp(this.curve.p)>=0)return!1;if(te.redIAdd(ie),this.x.cmp(te)===0)return!0}},k.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)+">"},k.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var M=t(function(U,K){var te=K;te.base=b,te.short=C,te.mont=null,te.edwards=null}),P=t(function(U,K){var te,ee=K,ie=c.assert;function se(re){re.type==="short"?this.curve=new M.short(re):re.type==="edwards"?this.curve=new M.edwards(re):this.curve=new M.mont(re),this.g=this.curve.g,this.n=this.curve.n,this.hash=re.hash,ie(this.g.validate(),"Invalid curve"),ie(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function ne(re,Y){Object.defineProperty(ee,re,{configurable:!0,enumerable:!0,get:function(){var V=new se(Y);return Object.defineProperty(ee,re,{configurable:!0,enumerable:!0,value:V}),V}})}ee.PresetCurve=se,ne("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:n.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),ne("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:n.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),ne("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:n.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),ne("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:n.default.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"]}),ne("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:n.default.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"]}),ne("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.default.sha256,gRed:!1,g:["9"]}),ne("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:n.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{te=null.crash()}catch{te=void 0}ne("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:n.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",te]})});function N(U){if(!(this instanceof N))return new N(U);this.hash=U.hash,this.predResist=!!U.predResist,this.outLen=this.hash.outSize,this.minEntropy=U.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var K=u.toArray(U.entropy,U.entropyEnc||"hex"),te=u.toArray(U.nonce,U.nonceEnc||"hex"),ee=u.toArray(U.pers,U.persEnc||"hex");o(K.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(K,te,ee)}var F=N;N.prototype._init=function(U,K,te){var ee=U.concat(K).concat(te);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var ie=0;ie<this.V.length;ie++)this.K[ie]=0,this.V[ie]=1;this._update(ee),this._reseed=1,this.reseedInterval=281474976710656},N.prototype._hmac=function(){return new n.default.hmac(this.hash,this.K)},N.prototype._update=function(U){var K=this._hmac().update(this.V).update([0]);U&&(K=K.update(U)),this.K=K.digest(),this.V=this._hmac().update(this.V).digest(),U&&(this.K=this._hmac().update(this.V).update([1]).update(U).digest(),this.V=this._hmac().update(this.V).digest())},N.prototype.reseed=function(U,K,te,ee){typeof K!="string"&&(ee=te,te=K,K=null),U=u.toArray(U,K),te=u.toArray(te,ee),o(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(U.concat(te||[])),this._reseed=1},N.prototype.generate=function(U,K,te,ee){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof K!="string"&&(ee=te,te=K,K=null),te&&(te=u.toArray(te,ee||"hex"),this._update(te));for(var ie=[];ie.length<U;)this.V=this._hmac().update(this.V).digest(),ie=ie.concat(this.V);var se=ie.slice(0,U);return this._update(te),this._reseed++,u.encode(se,K)};var q=c.assert;function z(U,K){this.ec=U,this.priv=null,this.pub=null,K.priv&&this._importPrivate(K.priv,K.privEnc),K.pub&&this._importPublic(K.pub,K.pubEnc)}var O=z;z.fromPublic=function(U,K,te){return K instanceof z?K:new z(U,{pub:K,pubEnc:te})},z.fromPrivate=function(U,K,te){return K instanceof z?K:new z(U,{priv:K,privEnc:te})},z.prototype.validate=function(){var U=this.getPublic();return U.isInfinity()?{result:!1,reason:"Invalid public key"}:U.validate()?U.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"}},z.prototype.getPublic=function(U,K){return typeof U=="string"&&(K=U,U=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),K?this.pub.encode(K,U):this.pub},z.prototype.getPrivate=function(U){return U==="hex"?this.priv.toString(16,2):this.priv},z.prototype._importPrivate=function(U,K){this.priv=new l.default(U,K||16),this.priv=this.priv.umod(this.ec.curve.n)},z.prototype._importPublic=function(U,K){if(U.x||U.y)return this.ec.curve.type==="mont"?q(U.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||q(U.x&&U.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(U.x,U.y));this.pub=this.ec.curve.decodePoint(U,K)},z.prototype.derive=function(U){return U.validate()||q(U.validate(),"public point not validated"),U.mul(this.priv).getX()},z.prototype.sign=function(U,K,te){return this.ec.sign(U,this,K,te)},z.prototype.verify=function(U,K){return this.ec.verify(U,K,this)},z.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var R=c.assert;function I(U,K){if(U instanceof I)return U;this._importDER(U,K)||(R(U.r&&U.s,"Signature without r or s"),this.r=new l.default(U.r,16),this.s=new l.default(U.s,16),U.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=U.recoveryParam)}var D=I;function B(){this.place=0}function j(U,K){var te=U[K.place++];if(!(128&te))return te;var ee=15&te;if(ee===0||ee>4)return!1;for(var ie=0,se=0,ne=K.place;se<ee;se++,ne++)ie<<=8,ie|=U[ne],ie>>>=0;return!(ie<=127)&&(K.place=ne,ie)}function Q(U){for(var K=0,te=U.length-1;!U[K]&&!(128&U[K+1])&&K<te;)K++;return K===0?U:U.slice(K)}function X(U,K){if(K<128)U.push(K);else{var te=1+(Math.log(K)/Math.LN2>>>3);for(U.push(128|te);--te;)U.push(K>>>(te<<3)&255);U.push(K)}}I.prototype._importDER=function(U,K){U=c.toArray(U,K);var te=new B;if(U[te.place++]!==48)return!1;var ee=j(U,te);if(ee===!1||ee+te.place!==U.length||U[te.place++]!==2)return!1;var ie=j(U,te);if(ie===!1)return!1;var se=U.slice(te.place,ie+te.place);if(te.place+=ie,U[te.place++]!==2)return!1;var ne=j(U,te);if(ne===!1||U.length!==ne+te.place)return!1;var re=U.slice(te.place,ne+te.place);if(se[0]===0){if(!(128&se[1]))return!1;se=se.slice(1)}if(re[0]===0){if(!(128&re[1]))return!1;re=re.slice(1)}return this.r=new l.default(se),this.s=new l.default(re),this.recoveryParam=null,!0},I.prototype.toDER=function(U){var K=this.r.toArray(),te=this.s.toArray();for(128&K[0]&&(K=[0].concat(K)),128&te[0]&&(te=[0].concat(te)),K=Q(K),te=Q(te);!(te[0]||128&te[1]);)te=te.slice(1);var ee=[2];X(ee,K.length),(ee=ee.concat(K)).push(2),X(ee,te.length);var ie=ee.concat(te),se=[48];return X(se,ie.length),se=se.concat(ie),c.encode(se,U)};var Z=function(){throw new Error("unsupported")},L=c.assert;function W(U){if(!(this instanceof W))return new W(U);typeof U=="string"&&(L(Object.prototype.hasOwnProperty.call(P,U),"Unknown curve "+U),U=P[U]),U instanceof P.PresetCurve&&(U={curve:U}),this.curve=U.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=U.curve.g,this.g.precompute(U.curve.n.bitLength()+1),this.hash=U.hash||U.curve.hash}var G=W;W.prototype.keyPair=function(U){return new O(this,U)},W.prototype.keyFromPrivate=function(U,K){return O.fromPrivate(this,U,K)},W.prototype.keyFromPublic=function(U,K){return O.fromPublic(this,U,K)},W.prototype.genKeyPair=function(U){U||(U={});for(var K=new F({hash:this.hash,pers:U.pers,persEnc:U.persEnc||"utf8",entropy:U.entropy||Z(this.hash.hmacStrength),entropyEnc:U.entropy&&U.entropyEnc||"utf8",nonce:this.n.toArray()}),te=this.n.byteLength(),ee=this.n.sub(new l.default(2));;){var ie=new l.default(K.generate(te));if(!(ie.cmp(ee)>0))return ie.iaddn(1),this.keyFromPrivate(ie)}},W.prototype._truncateToN=function(U,K){var te=8*U.byteLength()-this.n.bitLength();return te>0&&(U=U.ushrn(te)),!K&&U.cmp(this.n)>=0?U.sub(this.n):U},W.prototype.sign=function(U,K,te,ee){(0,e.default)(te)==="object"&&(ee=te,te=null),ee||(ee={}),K=this.keyFromPrivate(K,te),U=this._truncateToN(new l.default(U,16));for(var ie=this.n.byteLength(),se=K.getPrivate().toArray("be",ie),ne=U.toArray("be",ie),re=new F({hash:this.hash,entropy:se,nonce:ne,pers:ee.pers,persEnc:ee.persEnc||"utf8"}),Y=this.n.sub(new l.default(1)),V=0;;V++){var oe=ee.k?ee.k(V):new l.default(re.generate(this.n.byteLength()));if(!((oe=this._truncateToN(oe,!0)).cmpn(1)<=0||oe.cmp(Y)>=0)){var fe=this.g.mul(oe);if(!fe.isInfinity()){var ce=fe.getX(),he=ce.umod(this.n);if(he.cmpn(0)!==0){var le=oe.invm(this.n).mul(he.mul(K.getPrivate()).iadd(U));if((le=le.umod(this.n)).cmpn(0)!==0){var ae=(fe.getY().isOdd()?1:0)|(ce.cmp(he)!==0?2:0);return ee.canonical&&le.cmp(this.nh)>0&&(le=this.n.sub(le),ae^=1),new D({r:he,s:le,recoveryParam:ae})}}}}}},W.prototype.verify=function(U,K,te,ee){U=this._truncateToN(new l.default(U,16)),te=this.keyFromPublic(te,ee);var ie=(K=new D(K,"hex")).r,se=K.s;if(ie.cmpn(1)<0||ie.cmp(this.n)>=0||se.cmpn(1)<0||se.cmp(this.n)>=0)return!1;var ne,re=se.invm(this.n),Y=re.mul(U).umod(this.n),V=re.mul(ie).umod(this.n);return this.curve._maxwellTrick?!(ne=this.g.jmulAdd(Y,te.getPublic(),V)).isInfinity()&&ne.eqXToP(ie):!(ne=this.g.mulAdd(Y,te.getPublic(),V)).isInfinity()&&ne.getX().umod(this.n).cmp(ie)===0},W.prototype.recoverPubKey=function(U,K,te,ee){L((3&te)===te,"The recovery param is more than two bits"),K=new D(K,ee);var ie=this.n,se=new l.default(U),ne=K.r,re=K.s,Y=1&te,V=te>>1;if(ne.cmp(this.curve.p.umod(this.curve.n))>=0&&V)throw new Error("Unable to find sencond key candinate");ne=V?this.curve.pointFromX(ne.add(this.curve.n),Y):this.curve.pointFromX(ne,Y);var oe=K.r.invm(ie),fe=ie.sub(se).mul(oe).umod(ie),ce=re.mul(oe).umod(ie);return this.g.mulAdd(fe,ne,ce)},W.prototype.getKeyRecoveryParam=function(U,K,te,ee){if((K=new D(K,ee)).recoveryParam!==null)return K.recoveryParam;for(var ie=0;ie<4;ie++){var se;try{se=this.recoverPubKey(U,K,ie)}catch{continue}if(se.eq(te))return ie}throw new Error("Unable to find valid recovery factor")};var J=t(function(U,K){var te=K;te.version="6.5.4",te.utils=c,te.rand=function(){throw new Error("unsupported")},te.curve=M,te.curves=P,te.ec=G,te.eddsa=null}),H=J.ec;s.EC=H},7612:(r,s,i)=>{var f=i(8847);Object.defineProperty(s,"__esModule",{value:!0}),s.SigningKey=void 0,s.computePublicKey=y,s.recoverPublicKey=function(b,A){var x=(0,t.splitSignature)(A),E={r:(0,t.arrayify)(x.r),s:(0,t.arrayify)(x.s)};return"0x"+p().recoverPubKey((0,t.arrayify)(b),E,x.recoveryParam).encode("hex",!1)};var e=f(i(9721)),l=f(i(8985)),n=i(6918),t=i(908),o=i(3694),d=i(4327),u=i(8100),c=new d.Logger(u.version),g=null;function p(){return g||(g=new n.EC("secp256k1")),g}var v=function(){function b(A){(0,e.default)(this,b),(0,o.defineReadOnly)(this,"curve","secp256k1"),(0,o.defineReadOnly)(this,"privateKey",(0,t.hexlify)(A)),(0,t.hexDataLength)(this.privateKey)!==32&&c.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var x=p().keyFromPrivate((0,t.arrayify)(this.privateKey));(0,o.defineReadOnly)(this,"publicKey","0x"+x.getPublic(!1,"hex")),(0,o.defineReadOnly)(this,"compressedPublicKey","0x"+x.getPublic(!0,"hex")),(0,o.defineReadOnly)(this,"_isSigningKey",!0)}return(0,l.default)(b,[{key:"_addPoint",value:function(A){var x=p().keyFromPublic((0,t.arrayify)(this.publicKey)),E=p().keyFromPublic((0,t.arrayify)(A));return"0x"+x.pub.add(E.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(A){var x=p().keyFromPrivate((0,t.arrayify)(this.privateKey)),E=(0,t.arrayify)(A);E.length!==32&&c.throwArgumentError("bad digest length","digest",A);var S=x.sign(E,{canonical:!0});return(0,t.splitSignature)({recoveryParam:S.recoveryParam,r:(0,t.hexZeroPad)("0x"+S.r.toString(16),32),s:(0,t.hexZeroPad)("0x"+S.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(A){var x=p().keyFromPrivate((0,t.arrayify)(this.privateKey)),E=p().keyFromPublic((0,t.arrayify)(y(A)));return(0,t.hexZeroPad)("0x"+x.derive(E.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(A){return!(!A||!A._isSigningKey)}}]),b}();function y(b,A){var x=(0,t.arrayify)(b);if(x.length===32){var E=new v(x);return A?"0x"+p().keyFromPrivate(x).getPublic(!0,"hex"):E.publicKey}return x.length===33?A?(0,t.hexlify)(x):"0x"+p().keyFromPublic(x).getPublic(!1,"hex"):x.length===65?A?"0x"+p().keyFromPublic(x).getPublic(!0,"hex"):(0,t.hexlify)(x):c.throwArgumentError("invalid public or private key","key","[REDACTED]")}s.SigningKey=v},6518:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="strings/5.7.0"},5856:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.formatBytes32String=function(n){var t=(0,l.toUtf8Bytes)(n);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,e.hexlify)((0,e.concat)([t,f.HashZero]).slice(0,32))},s.parseBytes32String=function(n){var t=(0,e.arrayify)(n);if(t.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(t[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var o=31;t[o-1]===0;)o--;return(0,l.toUtf8String)(t.slice(0,o))};var f=i(5465),e=i(908),l=i(4997)},8645:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s._nameprepTableA1=v,s._nameprepTableB2=y,s._nameprepTableC=b,s.nameprep=function(A){if(A.match(/^[a-z0-9-]*$/i)&&A.length<=59)return A.toLowerCase();var x,E=(0,f.toUtf8CodePoints)(A);x=E.map(function(C){return o.indexOf(C)>=0||C>=65024&&C<=65039?[]:y(C)||[C]}),E=x.reduce(function(C,T){return T.forEach(function(k){C.push(k)}),C},[]),(E=(0,f.toUtf8CodePoints)((0,f._toUtf8String)(E),f.UnicodeNormalizationForm.NFKC)).forEach(function(C){if(b(C))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),E.forEach(function(C){if(v(C))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var S=(0,f._toUtf8String)(E);if(S.substring(0,1)==="-"||S.substring(2,4)==="--"||S.substring(S.length-1)==="-")throw new Error("invalid hyphen");return S};var f=i(4997);function e(A,x){x||(x=function(C){return[parseInt(C,16)]});var E=0,S={};return A.split(",").forEach(function(C){var T=C.split(":");E+=parseInt(T[0],16),S[E]=x(T[1])}),S}function l(A){var x=0;return A.split(",").map(function(E){var S=E.split("-");return S.length===1?S[1]="0":S[1]===""&&(S[1]="1"),{l:x+parseInt(S[0],16),h:x=parseInt(S[1],16)}})}function n(A,x){for(var E=0,S=0;S<x.length;S++){var C=x[S];if(A>=(E+=C.l)&&A<=E+C.h&&(A-E)%(C.d||1)==0){if(C.e&&C.e.indexOf(A-E)!==-1)continue;return C}}return null}var t=l("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),o="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(A){return parseInt(A,16)}),d=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],u=e("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),c=e("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),g=e("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(A){if(A.length%4!=0)throw new Error("bad data");for(var x=[],E=0;E<A.length;E+=4)x.push(parseInt(A.substring(E,E+4),16));return x}),p=l("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function v(A){return!!n(A,t)}function y(A){var x=n(A,d);if(x)return[A+x.s];var E=u[A];if(E)return E;var S=c[A];return S?[A+S[0]]:g[A]||null}function b(A){return!!n(A,p)}},8627:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return l.UnicodeNormalizationForm}}),Object.defineProperty(s,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return l.Utf8ErrorFuncs}}),Object.defineProperty(s,"Utf8ErrorReason",{enumerable:!0,get:function(){return l.Utf8ErrorReason}}),Object.defineProperty(s,"_toEscapedUtf8String",{enumerable:!0,get:function(){return l._toEscapedUtf8String}}),Object.defineProperty(s,"formatBytes32String",{enumerable:!0,get:function(){return f.formatBytes32String}}),Object.defineProperty(s,"nameprep",{enumerable:!0,get:function(){return e.nameprep}}),Object.defineProperty(s,"parseBytes32String",{enumerable:!0,get:function(){return f.parseBytes32String}}),Object.defineProperty(s,"toUtf8Bytes",{enumerable:!0,get:function(){return l.toUtf8Bytes}}),Object.defineProperty(s,"toUtf8CodePoints",{enumerable:!0,get:function(){return l.toUtf8CodePoints}}),Object.defineProperty(s,"toUtf8String",{enumerable:!0,get:function(){return l.toUtf8String}});var f=i(5856),e=i(8645),l=i(4997)},4997:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Utf8ErrorReason=s.Utf8ErrorFuncs=s.UnicodeNormalizationForm=void 0,s._toEscapedUtf8String=function(y,b){return'"'+c(y,b).map(function(A){if(A<256){switch(A){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(A>=32&&A<127)return String.fromCharCode(A)}return A<=65535?p(A):p(55296+((A-=65536)>>10&1023))+p(56320+(1023&A))}).join("")+'"'},s._toUtf8String=v,s.toUtf8Bytes=g,s.toUtf8CodePoints=function(y){return c(g(y,arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.current))},s.toUtf8String=function(y,b){return v(c(y,b))};var f,e,l=i(908),n=i(4327),t=i(6518),o=new n.Logger(t.version);function d(y,b,A,x,E){if(y===e.BAD_PREFIX||y===e.UNEXPECTED_CONTINUE){for(var S=0,C=b+1;C<A.length&&A[C]>>6==2;C++)S++;return S}return y===e.OVERRUN?A.length-b-1:0}s.UnicodeNormalizationForm=f,function(y){y.current="",y.NFC="NFC",y.NFD="NFD",y.NFKC="NFKC",y.NFKD="NFKD"}(f||(s.UnicodeNormalizationForm=f={})),s.Utf8ErrorReason=e,function(y){y.UNEXPECTED_CONTINUE="unexpected continuation byte",y.BAD_PREFIX="bad codepoint prefix",y.OVERRUN="string overrun",y.MISSING_CONTINUE="missing continuation byte",y.OUT_OF_RANGE="out of UTF-8 range",y.UTF16_SURROGATE="UTF-16 surrogate",y.OVERLONG="overlong representation"}(e||(s.Utf8ErrorReason=e={}));var u=Object.freeze({error:function(y,b,A,x,E){return o.throwArgumentError("invalid codepoint at offset ".concat(b,"; ").concat(y),"bytes",A)},ignore:d,replace:function(y,b,A,x,E){return y===e.OVERLONG?(x.push(E),0):(x.push(65533),d(y,b,A))}});function c(y,b){b==null&&(b=u.error),y=(0,l.arrayify)(y);for(var A=[],x=0;x<y.length;){var E=y[x++];if(E>>7){var S=null,C=null;if((224&E)==192)S=1,C=127;else if((240&E)==224)S=2,C=2047;else{if((248&E)!=240){x+=b((192&E)==128?e.UNEXPECTED_CONTINUE:e.BAD_PREFIX,x-1,y,A);continue}S=3,C=65535}if(x-1+S>=y.length)x+=b(e.OVERRUN,x-1,y,A);else{for(var T=E&(1<<8-S-1)-1,k=0;k<S;k++){var M=y[x];if((192&M)!=128){x+=b(e.MISSING_CONTINUE,x,y,A),T=null;break}T=T<<6|63&M,x++}T!==null&&(T>1114111?x+=b(e.OUT_OF_RANGE,x-1-S,y,A,T):T>=55296&&T<=57343?x+=b(e.UTF16_SURROGATE,x-1-S,y,A,T):T<=C?x+=b(e.OVERLONG,x-1-S,y,A,T):A.push(T))}}else A.push(E)}return A}function g(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.current;b!=f.current&&(o.checkNormalize(),y=y.normalize(b));for(var A=[],x=0;x<y.length;x++){var E=y.charCodeAt(x);if(E<128)A.push(E);else if(E<2048)A.push(E>>6|192),A.push(63&E|128);else if((64512&E)==55296){x++;var S=y.charCodeAt(x);if(x>=y.length||(64512&S)!=56320)throw new Error("invalid utf-8 string");var C=65536+((1023&E)<<10)+(1023&S);A.push(C>>18|240),A.push(C>>12&63|128),A.push(C>>6&63|128),A.push(63&C|128)}else A.push(E>>12|224),A.push(E>>6&63|128),A.push(63&E|128)}return(0,l.arrayify)(A)}function p(y){var b="0000"+y.toString(16);return"\\u"+b.substring(b.length-4)}function v(y){return y.map(function(b){return b<=65535?String.fromCharCode(b):(b-=65536,String.fromCharCode(55296+(b>>10&1023),56320+(1023&b)))}).join("")}s.Utf8ErrorFuncs=u},6783:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.version=void 0,s.version="transactions/5.7.0"},1936:(r,s,i)=>{var f=i(3355);Object.defineProperty(s,"__esModule",{value:!0}),s.TransactionTypes=void 0,s.accessListify=P,s.computeAddress=C,s.parse=function(O){var R=(0,n.arrayify)(O);if(R[0]>127)return function(I){var D=u.decode(I);D.length!==9&&D.length!==6&&b.throwArgumentError("invalid raw transaction","rawTransaction",I);var B={nonce:x(D[0]).toNumber(),gasPrice:x(D[1]),gasLimit:x(D[2]),to:A(D[3]),value:x(D[4]),data:D[5],chainId:0};if(D.length===6)return B;try{B.v=l.BigNumber.from(D[6]).toNumber()}catch{return B}if(B.r=(0,n.hexZeroPad)(D[7],32),B.s=(0,n.hexZeroPad)(D[8],32),l.BigNumber.from(B.r).isZero()&&l.BigNumber.from(B.s).isZero())B.chainId=B.v,B.v=0;else{B.chainId=Math.floor((B.v-35)/2),B.chainId<0&&(B.chainId=0);var j=B.v-27,Q=D.slice(0,6);B.chainId!==0&&(Q.push((0,n.hexlify)(B.chainId)),Q.push("0x"),Q.push("0x"),j-=2*B.chainId+8);var X=(0,o.keccak256)(u.encode(Q));try{B.from=T(X,{r:(0,n.hexlify)(B.r),s:(0,n.hexlify)(B.s),recoveryParam:j})}catch{}B.hash=(0,o.keccak256)(I)}return B.type=null,B}(R);switch(R[0]){case 1:return function(I){var D=u.decode(I.slice(1));D.length!==8&&D.length!==11&&b.throwArgumentError("invalid component count for transaction type: 1","payload",(0,n.hexlify)(I));var B={type:1,chainId:x(D[0]).toNumber(),nonce:x(D[1]).toNumber(),gasPrice:x(D[2]),gasLimit:x(D[3]),to:A(D[4]),value:x(D[5]),data:D[6],accessList:P(D[7])};return D.length===8||(B.hash=(0,o.keccak256)(I),z(B,D.slice(8),q)),B}(R);case 2:return function(I){var D=u.decode(I.slice(1));D.length!==9&&D.length!==12&&b.throwArgumentError("invalid component count for transaction type: 2","payload",(0,n.hexlify)(I));var B=x(D[2]),j=x(D[3]),Q={type:2,chainId:x(D[0]).toNumber(),nonce:x(D[1]).toNumber(),maxPriorityFeePerGas:B,maxFeePerGas:j,gasPrice:null,gasLimit:x(D[4]),to:A(D[5]),value:x(D[6]),data:D[7],accessList:P(D[8])};return D.length===9||(Q.hash=(0,o.keccak256)(I),z(Q,D.slice(9),F)),Q}(R)}return b.throwError("unsupported transaction type: ".concat(R[0]),g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:R[0]})},s.recoverAddress=T,s.serialize=function(O,R){if(O.type==null||O.type===0)return O.accessList!=null&&b.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",O),function(I,D){(0,d.checkProperties)(I,S);var B=[];E.forEach(function(Z){var L=I[Z.name]||[],W={};Z.numeric&&(W.hexPad="left"),L=(0,n.arrayify)((0,n.hexlify)(L,W)),Z.length&&L.length!==Z.length&&L.length>0&&b.throwArgumentError("invalid length for "+Z.name,"transaction:"+Z.name,L),Z.maxLength&&(L=(0,n.stripZeros)(L)).length>Z.maxLength&&b.throwArgumentError("invalid length for "+Z.name,"transaction:"+Z.name,L),B.push((0,n.hexlify)(L))});var j=0;if(I.chainId!=null?typeof(j=I.chainId)!="number"&&b.throwArgumentError("invalid transaction.chainId","transaction",I):D&&!(0,n.isBytesLike)(D)&&D.v>28&&(j=Math.floor((D.v-35)/2)),j!==0&&(B.push((0,n.hexlify)(j)),B.push("0x"),B.push("0x")),!D)return u.encode(B);var Q=(0,n.splitSignature)(D),X=27+Q.recoveryParam;return j!==0?(B.pop(),B.pop(),B.pop(),X+=2*j+8,Q.v>28&&Q.v!==X&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",D)):Q.v!==X&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",D),B.push((0,n.hexlify)(X)),B.push((0,n.stripZeros)((0,n.arrayify)(Q.r))),B.push((0,n.stripZeros)((0,n.arrayify)(Q.s))),u.encode(B)}(O,R);switch(O.type){case 1:return q(O,R);case 2:return F(O,R)}return b.throwError("unsupported transaction type: ".concat(O.type),g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:O.type})};var e=i(7921),l=i(4952),n=i(908),t=i(5465),o=i(4642),d=i(3694),u=function(O,R){if(O&&O.__esModule)return O;if(O===null||f(O)!=="object"&&typeof O!="function")return{default:O};var I=v(R);if(I&&I.has(O))return I.get(O);var D={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in O)if(j!=="default"&&Object.prototype.hasOwnProperty.call(O,j)){var Q=B?Object.getOwnPropertyDescriptor(O,j):null;Q&&(Q.get||Q.set)?Object.defineProperty(D,j,Q):D[j]=O[j]}return D.default=O,I&&I.set(O,D),D}(i(5265)),c=i(7612),g=i(4327),p=i(6783);function v(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,I=new WeakMap;return(v=function(D){return D?I:R})(O)}var y,b=new g.Logger(p.version);function A(O){return O==="0x"?null:(0,e.getAddress)(O)}function x(O){return O==="0x"?t.Zero:l.BigNumber.from(O)}s.TransactionTypes=y,function(O){O[O.legacy=0]="legacy",O[O.eip2930=1]="eip2930",O[O.eip1559=2]="eip1559"}(y||(s.TransactionTypes=y={}));var E=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],S={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function C(O){var R=(0,c.computePublicKey)(O);return(0,e.getAddress)((0,n.hexDataSlice)((0,o.keccak256)((0,n.hexDataSlice)(R,1)),12))}function T(O,R){return C((0,c.recoverPublicKey)((0,n.arrayify)(O),R))}function k(O,R){var I=(0,n.stripZeros)(l.BigNumber.from(O).toHexString());return I.length>32&&b.throwArgumentError("invalid length for "+R,"transaction:"+R,O),I}function M(O,R){return{address:(0,e.getAddress)(O),storageKeys:(R||[]).map(function(I,D){return(0,n.hexDataLength)(I)!==32&&b.throwArgumentError("invalid access list storageKey","accessList[".concat(O,":").concat(D,"]"),I),I.toLowerCase()})}}function P(O){if(Array.isArray(O))return O.map(function(I,D){return Array.isArray(I)?(I.length>2&&b.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(D,"]"),I),M(I[0],I[1])):M(I.address,I.storageKeys)});var R=Object.keys(O).map(function(I){var D=O[I].reduce(function(B,j){return B[j]=!0,B},{});return M(I,Object.keys(D).sort())});return R.sort(function(I,D){return I.address.localeCompare(D.address)}),R}function N(O){return P(O).map(function(R){return[R.address,R.storageKeys]})}function F(O,R){if(O.gasPrice!=null){var I=l.BigNumber.from(O.gasPrice),D=l.BigNumber.from(O.maxFeePerGas||0);I.eq(D)||b.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:I,maxFeePerGas:D})}var B=[k(O.chainId||0,"chainId"),k(O.nonce||0,"nonce"),k(O.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),k(O.maxFeePerGas||0,"maxFeePerGas"),k(O.gasLimit||0,"gasLimit"),O.to!=null?(0,e.getAddress)(O.to):"0x",k(O.value||0,"value"),O.data||"0x",N(O.accessList||[])];if(R){var j=(0,n.splitSignature)(R);B.push(k(j.recoveryParam,"recoveryParam")),B.push((0,n.stripZeros)(j.r)),B.push((0,n.stripZeros)(j.s))}return(0,n.hexConcat)(["0x02",u.encode(B)])}function q(O,R){var I=[k(O.chainId||0,"chainId"),k(O.nonce||0,"nonce"),k(O.gasPrice||0,"gasPrice"),k(O.gasLimit||0,"gasLimit"),O.to!=null?(0,e.getAddress)(O.to):"0x",k(O.value||0,"value"),O.data||"0x",N(O.accessList||[])];if(R){var D=(0,n.splitSignature)(R);I.push(k(D.recoveryParam,"recoveryParam")),I.push((0,n.stripZeros)(D.r)),I.push((0,n.stripZeros)(D.s))}return(0,n.hexConcat)(["0x01",u.encode(I)])}function z(O,R,I){try{var D=x(R[0]).toNumber();if(D!==0&&D!==1)throw new Error("bad recid");O.v=D}catch{b.throwArgumentError("invalid v for transaction type: 1","v",R[0])}O.r=(0,n.hexZeroPad)(R[1],32),O.s=(0,n.hexZeroPad)(R[2],32);try{var B=(0,o.keccak256)(I(O));O.from=T(B,{r:O.r,s:O.s,recoveryParam:O.v})}catch{}}},3368:(r,s,i)=>{var f,e,l=i(8847)(i(3355));(e=typeof(f=function(){function n(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function t(x,E){for(var S=0;S<E.length;S++){var C=E[S];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}function o(x,E,S){return E&&t(x.prototype,E),S&&t(x,S),Object.defineProperty(x,"prototype",{writable:!1}),x}function d(x){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},d(x)}function u(x,E){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(S,C){return S.__proto__=C,S},u(x,E)}function c(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function g(x){var E=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var S,C=d(x);if(E){var T=d(this).constructor;S=Reflect.construct(C,arguments,T)}else S=C.apply(this,arguments);return function(k,M){if(M&&((0,l.default)(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(k)}(this,S)}}function p(){return p=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(x,E,S){var C=function(k,M){for(;!Object.prototype.hasOwnProperty.call(k,M)&&(k=d(k))!==null;);return k}(x,E);if(C){var T=Object.getOwnPropertyDescriptor(C,E);return T.get?T.get.call(arguments.length<3?x:S):T.value}},p.apply(this,arguments)}var v=function(){function x(){n(this,x),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return o(x,[{key:"addEventListener",value:function(E,S,C){E in this.listeners||(this.listeners[E]=[]),this.listeners[E].push({callback:S,options:C})}},{key:"removeEventListener",value:function(E,S){if(E in this.listeners){for(var C=this.listeners[E],T=0,k=C.length;T<k;T++)if(C[T].callback===S)return void C.splice(T,1)}}},{key:"dispatchEvent",value:function(E){if(E.type in this.listeners){for(var S=this.listeners[E.type].slice(),C=0,T=S.length;C<T;C++){var k=S[C];try{k.callback.call(this,E)}catch(M){Promise.resolve().then(function(){throw M})}k.options&&k.options.once&&this.removeEventListener(E.type,k.callback)}return!E.defaultPrevented}}}]),x}(),y=function(x){(function(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),T&&u(C,T)})(S,x);var E=g(S);function S(){var C;return n(this,S),(C=E.call(this)).listeners||v.call(c(C)),Object.defineProperty(c(C),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(c(C),"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(c(C),"reason",{value:void 0,writable:!0,configurable:!0}),C}return o(S,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(C){C.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,C)),p(d(S.prototype),"dispatchEvent",this).call(this,C)}}]),S}(v),b=function(){function x(){n(this,x),Object.defineProperty(this,"signal",{value:new y,writable:!0,configurable:!0})}return o(x,[{key:"abort",value:function(E){var S;try{S=new Event("abort")}catch{typeof document<"u"?document.createEvent?(S=document.createEvent("Event")).initEvent("abort",!1,!1):(S=document.createEventObject()).type="abort":S={type:"abort",bubbles:!1,cancelable:!1}}var C=E;if(C===void 0)if(typeof document>"u")(C=new Error("This operation was aborted")).name="AbortError";else try{C=new DOMException("signal is aborted without reason")}catch{(C=new Error("This operation was aborted")).name="AbortError"}this.signal.reason=C,this.signal.dispatchEvent(S)}},{key:"toString",value:function(){return"[object AbortController]"}}]),x}();function A(x){return x.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof x.Request=="function"&&!x.Request.prototype.hasOwnProperty("signal")||!x.AbortController}typeof Symbol<"u"&&Symbol.toStringTag&&(b.prototype[Symbol.toStringTag]="AbortController",y.prototype[Symbol.toStringTag]="AbortSignal"),function(x){if(A(x))if(x.fetch){var E=function(T){typeof T=="function"&&(T={fetch:T});var k=T,M=k.fetch,P=k.Request,N=P===void 0?M.Request:P,F=k.AbortController,q=k.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,z=q!==void 0&&q;if(!A({fetch:M,Request:N,AbortController:F,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:z}))return{fetch:M,Request:O};var O=N;(O&&!O.prototype.hasOwnProperty("signal")||z)&&((O=function(I,D){var B;D&&D.signal&&(B=D.signal,delete D.signal);var j=new N(I,D);return B&&Object.defineProperty(j,"signal",{writable:!1,enumerable:!1,configurable:!0,value:B}),j}).prototype=N.prototype);var R=M;return{fetch:function(I,D){var B=O&&O.prototype.isPrototypeOf(I)?I.signal:D?D.signal:void 0;if(B){var j;try{j=new DOMException("Aborted","AbortError")}catch{(j=new Error("Aborted")).name="AbortError"}if(B.aborted)return Promise.reject(j);var Q=new Promise(function(X,Z){B.addEventListener("abort",function(){return Z(j)},{once:!0})});return D&&D.signal&&delete D.signal,Promise.race([Q,R(I,D)])}return R(I,D)},Request:O}}(x),S=E.fetch,C=E.Request;x.fetch=S,x.Request=C,Object.defineProperty(x,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:b}),Object.defineProperty(x,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:y})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}(typeof self<"u"?self:i.g)})=="function"?f.call(s,i,s,r):f)===void 0||(r.exports=e)},8357:(r,s,i)=>{var f=s;f.bignum=i(1734),f.define=i(1568).define,f.base=i(2412),f.constants=i(9387),f.decoders=i(1500),f.encoders=i(7506)},1568:(r,s,i)=>{var f=i(7506),e=i(1500),l=i(1736);function n(t,o){this.name=t,this.body=o,this.decoders={},this.encoders={}}s.define=function(t,o){return new n(t,o)},n.prototype._createNamed=function(t){var o=this.name;function d(u){this._initNamed(u,o)}return l(d,t),d.prototype._initNamed=function(u,c){t.call(this,u,c)},new d(this)},n.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(e[t])),this.decoders[t]},n.prototype.decode=function(t,o,d){return this._getDecoder(o).decode(t,d)},n.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(f[t])),this.encoders[t]},n.prototype.encode=function(t,o,d){return this._getEncoder(o).encode(t,d)}},585:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1736),l=i(2719).b,n=i(1755).Buffer;function t(d,u){l.call(this,u),n.isBuffer(d)?(this.base=d,this.offset=0,this.length=d.length):this.error("Input not Buffer")}function o(d,u){if(Array.isArray(d))this.length=0,this.value=d.map(function(c){return o.isEncoderBuffer(c)||(c=new o(c,u)),this.length+=c.length,c},this);else if(typeof d=="number"){if(!(0<=d&&d<=255))return u.error("non-byte EncoderBuffer value");this.value=d,this.length=1}else if(typeof d=="string")this.value=d,this.length=n.byteLength(d);else{if(!n.isBuffer(d))return u.error("Unsupported type: "+(0,f.default)(d));this.value=d,this.length=d.length}}e(t,l),s.C=t,t.isDecoderBuffer=function(d){return d instanceof t||(0,f.default)(d)==="object"&&n.isBuffer(d.base)&&d.constructor.name==="DecoderBuffer"&&typeof d.offset=="number"&&typeof d.length=="number"&&typeof d.save=="function"&&typeof d.restore=="function"&&typeof d.isEmpty=="function"&&typeof d.readUInt8=="function"&&typeof d.skip=="function"&&typeof d.raw=="function"},t.prototype.save=function(){return{offset:this.offset,reporter:l.prototype.save.call(this)}},t.prototype.restore=function(d){var u=new t(this.base);return u.offset=d.offset,u.length=this.offset,this.offset=d.offset,l.prototype.restore.call(this,d.reporter),u},t.prototype.isEmpty=function(){return this.offset===this.length},t.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},t.prototype.skip=function(d,u){if(!(this.offset+d<=this.length))return this.error(u||"DecoderBuffer overrun");var c=new t(this.base);return c._reporterState=this._reporterState,c.offset=this.offset,c.length=this.offset+d,this.offset+=d,c},t.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},s.R=o,o.isEncoderBuffer=function(d){return d instanceof o||(0,f.default)(d)==="object"&&d.constructor.name==="EncoderBuffer"&&typeof d.length=="number"&&typeof d.join=="function"},o.prototype.join=function(d,u){return d||(d=n.alloc(this.length)),u||(u=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(c){c.join(d,u),u+=c.length}):(typeof this.value=="number"?d[u]=this.value:typeof this.value=="string"?d.write(this.value,u):n.isBuffer(this.value)&&this.value.copy(d,u),u+=this.length)),d}},2412:(r,s,i)=>{var f=s;f.Reporter=i(2719).b,f.DecoderBuffer=i(585).C,f.EncoderBuffer=i(585).R,f.Node=i(1371)},1371:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(2719).b,l=i(585).R,n=i(585).C,t=i(4504),o=["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"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(g,p,v){var y={};this._baseState=y,y.name=v,y.enc=g,y.parent=p||null,y.children=null,y.tag=null,y.args=null,y.reverseArgs=null,y.choice=null,y.optional=!1,y.any=!1,y.obj=!1,y.use=null,y.useDecoder=null,y.key=null,y.default=null,y.explicit=null,y.implicit=null,y.contains=null,y.parent||(y.children=[],this._wrap())}r.exports=u;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var g=this._baseState,p={};c.forEach(function(y){p[y]=g[y]});var v=new this.constructor(p.parent);return v._baseState=p,v},u.prototype._wrap=function(){var g=this._baseState;d.forEach(function(p){this[p]=function(){var v=new this.constructor(this);return g.children.push(v),v[p].apply(v,arguments)}},this)},u.prototype._init=function(g){var p=this._baseState;t(p.parent===null),g.call(this),p.children=p.children.filter(function(v){return v._baseState.parent===this},this),t.equal(p.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(g){var p=this._baseState,v=g.filter(function(y){return y instanceof this.constructor},this);g=g.filter(function(y){return!(y instanceof this.constructor)},this),v.length!==0&&(t(p.children===null),p.children=v,v.forEach(function(y){y._baseState.parent=this},this)),g.length!==0&&(t(p.args===null),p.args=g,p.reverseArgs=g.map(function(y){if((0,f.default)(y)!=="object"||y.constructor!==Object)return y;var b={};return Object.keys(y).forEach(function(A){A==(0|A)&&(A|=0);var x=y[A];b[x]=A}),b}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(g){u.prototype[g]=function(){var p=this._baseState;throw new Error(g+" not implemented for encoding: "+p.enc)}}),o.forEach(function(g){u.prototype[g]=function(){var p=this._baseState,v=Array.prototype.slice.call(arguments);return t(p.tag===null),p.tag=g,this._useArgs(v),this}}),u.prototype.use=function(g){t(g);var p=this._baseState;return t(p.use===null),p.use=g,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(g){var p=this._baseState;return t(p.default===null),p.default=g,p.optional=!0,this},u.prototype.explicit=function(g){var p=this._baseState;return t(p.explicit===null&&p.implicit===null),p.explicit=g,this},u.prototype.implicit=function(g){var p=this._baseState;return t(p.explicit===null&&p.implicit===null),p.implicit=g,this},u.prototype.obj=function(){var g=this._baseState,p=Array.prototype.slice.call(arguments);return g.obj=!0,p.length!==0&&this._useArgs(p),this},u.prototype.key=function(g){var p=this._baseState;return t(p.key===null),p.key=g,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(g){var p=this._baseState;return t(p.choice===null),p.choice=g,this._useArgs(Object.keys(g).map(function(v){return g[v]})),this},u.prototype.contains=function(g){var p=this._baseState;return t(p.use===null),p.contains=g,this},u.prototype._decode=function(g,p){var v=this._baseState;if(v.parent===null)return g.wrapResult(v.children[0]._decode(g,p));var y,b=v.default,A=!0,x=null;if(v.key!==null&&(x=g.enterKey(v.key)),v.optional){var E=null;if(v.explicit!==null?E=v.explicit:v.implicit!==null?E=v.implicit:v.tag!==null&&(E=v.tag),E!==null||v.any){if(A=this._peekTag(g,E,v.any),g.isError(A))return A}else{var S=g.save();try{v.choice===null?this._decodeGeneric(v.tag,g,p):this._decodeChoice(g,p),A=!0}catch{A=!1}g.restore(S)}}if(v.obj&&A&&(y=g.enterObject()),A){if(v.explicit!==null){var C=this._decodeTag(g,v.explicit);if(g.isError(C))return C;g=C}var T=g.offset;if(v.use===null&&v.choice===null){var k;v.any&&(k=g.save());var M=this._decodeTag(g,v.implicit!==null?v.implicit:v.tag,v.any);if(g.isError(M))return M;v.any?b=g.raw(k):g=M}if(p&&p.track&&v.tag!==null&&p.track(g.path(),T,g.length,"tagged"),p&&p.track&&v.tag!==null&&p.track(g.path(),g.offset,g.length,"content"),v.any||(b=v.choice===null?this._decodeGeneric(v.tag,g,p):this._decodeChoice(g,p)),g.isError(b))return b;if(v.any||v.choice!==null||v.children===null||v.children.forEach(function(N){N._decode(g,p)}),v.contains&&(v.tag==="octstr"||v.tag==="bitstr")){var P=new n(b);b=this._getUse(v.contains,g._reporterState.obj)._decode(P,p)}}return v.obj&&A&&(b=g.leaveObject(y)),v.key===null||b===null&&A!==!0?x!==null&&g.exitKey(x):g.leaveKey(x,v.key,b),b},u.prototype._decodeGeneric=function(g,p,v){var y=this._baseState;return g==="seq"||g==="set"?null:g==="seqof"||g==="setof"?this._decodeList(p,g,y.args[0],v):/str$/.test(g)?this._decodeStr(p,g,v):g==="objid"&&y.args?this._decodeObjid(p,y.args[0],y.args[1],v):g==="objid"?this._decodeObjid(p,null,null,v):g==="gentime"||g==="utctime"?this._decodeTime(p,g,v):g==="null_"?this._decodeNull(p,v):g==="bool"?this._decodeBool(p,v):g==="objDesc"?this._decodeStr(p,g,v):g==="int"||g==="enum"?this._decodeInt(p,y.args&&y.args[0],v):y.use!==null?this._getUse(y.use,p._reporterState.obj)._decode(p,v):p.error("unknown tag: "+g)},u.prototype._getUse=function(g,p){var v=this._baseState;return v.useDecoder=this._use(g,p),t(v.useDecoder._baseState.parent===null),v.useDecoder=v.useDecoder._baseState.children[0],v.implicit!==v.useDecoder._baseState.implicit&&(v.useDecoder=v.useDecoder.clone(),v.useDecoder._baseState.implicit=v.implicit),v.useDecoder},u.prototype._decodeChoice=function(g,p){var v=this._baseState,y=null,b=!1;return Object.keys(v.choice).some(function(A){var x=g.save(),E=v.choice[A];try{var S=E._decode(g,p);if(g.isError(S))return!1;y={type:A,value:S},b=!0}catch{return g.restore(x),!1}return!0},this),b?y:g.error("Choice not matched")},u.prototype._createEncoderBuffer=function(g){return new l(g,this.reporter)},u.prototype._encode=function(g,p,v){var y=this._baseState;if(y.default===null||y.default!==g){var b=this._encodeValue(g,p,v);if(b!==void 0&&!this._skipDefault(b,p,v))return b}},u.prototype._encodeValue=function(g,p,v){var y=this._baseState;if(y.parent===null)return y.children[0]._encode(g,p||new e);var b=null;if(this.reporter=p,y.optional&&g===void 0){if(y.default===null)return;g=y.default}var A=null,x=!1;if(y.any)b=this._createEncoderBuffer(g);else if(y.choice)b=this._encodeChoice(g,p);else if(y.contains)A=this._getUse(y.contains,v)._encode(g,p),x=!0;else if(y.children)A=y.children.map(function(T){if(T._baseState.tag==="null_")return T._encode(null,p,g);if(T._baseState.key===null)return p.error("Child should have a key");var k=p.enterKey(T._baseState.key);if((0,f.default)(g)!=="object")return p.error("Child expected, but input is not object");var M=T._encode(g[T._baseState.key],p,g);return p.leaveKey(k),M},this).filter(function(T){return T}),A=this._createEncoderBuffer(A);else if(y.tag==="seqof"||y.tag==="setof"){if(!y.args||y.args.length!==1)return p.error("Too many args for : "+y.tag);if(!Array.isArray(g))return p.error("seqof/setof, but data is not Array");var E=this.clone();E._baseState.implicit=null,A=this._createEncoderBuffer(g.map(function(T){var k=this._baseState;return this._getUse(k.args[0],g)._encode(T,p)},E))}else y.use!==null?b=this._getUse(y.use,v)._encode(g,p):(A=this._encodePrimitive(y.tag,g),x=!0);if(!y.any&&y.choice===null){var S=y.implicit!==null?y.implicit:y.tag,C=y.implicit===null?"universal":"context";S===null?y.use===null&&p.error("Tag could be omitted only for .use()"):y.use===null&&(b=this._encodeComposite(S,x,C,A))}return y.explicit!==null&&(b=this._encodeComposite(y.explicit,!1,"context",b)),b},u.prototype._encodeChoice=function(g,p){var v=this._baseState,y=v.choice[g.type];return y||t(!1,g.type+" not found in "+JSON.stringify(Object.keys(v.choice))),y._encode(g.value,p)},u.prototype._encodePrimitive=function(g,p){var v=this._baseState;if(/str$/.test(g))return this._encodeStr(p,g);if(g==="objid"&&v.args)return this._encodeObjid(p,v.reverseArgs[0],v.args[1]);if(g==="objid")return this._encodeObjid(p,null,null);if(g==="gentime"||g==="utctime")return this._encodeTime(p,g);if(g==="null_")return this._encodeNull();if(g==="int"||g==="enum")return this._encodeInt(p,v.args&&v.reverseArgs[0]);if(g==="bool")return this._encodeBool(p);if(g==="objDesc")return this._encodeStr(p,g);throw new Error("Unsupported tag: "+g)},u.prototype._isNumstr=function(g){return/^[0-9 ]*$/.test(g)},u.prototype._isPrintstr=function(g){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(g)}},2719:(r,s,i)=>{var f=i(1736);function e(n){this._reporterState={obj:null,path:[],options:n||{},errors:[]}}function l(n,t){this.path=n,this.rethrow(t)}s.b=e,e.prototype.isError=function(n){return n instanceof l},e.prototype.save=function(){var n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},e.prototype.restore=function(n){var t=this._reporterState;t.obj=n.obj,t.path=t.path.slice(0,n.pathLen)},e.prototype.enterKey=function(n){return this._reporterState.path.push(n)},e.prototype.exitKey=function(n){var t=this._reporterState;t.path=t.path.slice(0,n-1)},e.prototype.leaveKey=function(n,t,o){var d=this._reporterState;this.exitKey(n),d.obj!==null&&(d.obj[t]=o)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){var n=this._reporterState,t=n.obj;return n.obj={},t},e.prototype.leaveObject=function(n){var t=this._reporterState,o=t.obj;return t.obj=n,o},e.prototype.error=function(n){var t,o=this._reporterState,d=n instanceof l;if(t=d?n:new l(o.path.map(function(u){return"["+JSON.stringify(u)+"]"}).join(""),n.message||n,n.stack),!o.options.partial)throw t;return d||o.errors.push(t),t},e.prototype.wrapResult=function(n){var t=this._reporterState;return t.options.partial?{result:this.isError(n)?null:n,errors:t.errors}:n},f(l,Error),l.prototype.rethrow=function(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,l),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},6520:(r,s)=>{function i(f){var e={};return Object.keys(f).forEach(function(l){(0|l)==l&&(l|=0);var n=f[l];e[n]=l}),e}s.tagClass={0:"universal",1:"application",2:"context",3:"private"},s.tagClassByName=i(s.tagClass),s.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"},s.tagByName=i(s.tag)},9387:(r,s,i)=>{var f=s;f._reverse=function(e){var l={};return Object.keys(e).forEach(function(n){(0|n)==n&&(n|=0);var t=e[n];l[t]=n}),l},f.der=i(6520)},2387:(r,s,i)=>{var f=i(1736),e=i(1734),l=i(585).C,n=i(1371),t=i(6520);function o(g){this.enc="der",this.name=g.name,this.entity=g,this.tree=new d,this.tree._init(g.body)}function d(g){n.call(this,"der",g)}function u(g,p){var v=g.readUInt8(p);if(g.isError(v))return v;var y=t.tagClass[v>>6],b=(32&v)==0;if((31&v)==31){var A=v;for(v=0;(128&A)==128;){if(A=g.readUInt8(p),g.isError(A))return A;v<<=7,v|=127&A}}else v&=31;return{cls:y,primitive:b,tag:v,tagStr:t.tag[v]}}function c(g,p,v){var y=g.readUInt8(v);if(g.isError(y))return y;if(!p&&y===128)return null;if(!(128&y))return y;var b=127&y;if(b>4)return g.error("length octect is too long");y=0;for(var A=0;A<b;A++){y<<=8;var x=g.readUInt8(v);if(g.isError(x))return x;y|=x}return y}r.exports=o,o.prototype.decode=function(g,p){return l.isDecoderBuffer(g)||(g=new l(g,p)),this.tree._decode(g,p)},f(d,n),d.prototype._peekTag=function(g,p,v){if(g.isEmpty())return!1;var y=g.save(),b=u(g,'Failed to peek tag: "'+p+'"');return g.isError(b)?b:(g.restore(y),b.tag===p||b.tagStr===p||b.tagStr+"of"===p||v)},d.prototype._decodeTag=function(g,p,v){var y=u(g,'Failed to decode tag of "'+p+'"');if(g.isError(y))return y;var b=c(g,y.primitive,'Failed to get length of "'+p+'"');if(g.isError(b))return b;if(!v&&y.tag!==p&&y.tagStr!==p&&y.tagStr+"of"!==p)return g.error('Failed to match tag: "'+p+'"');if(y.primitive||b!==null)return g.skip(b,'Failed to match body of: "'+p+'"');var A=g.save(),x=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(x)?x:(b=g.offset-A.offset,g.restore(A),g.skip(b,'Failed to match body of: "'+p+'"'))},d.prototype._skipUntilEnd=function(g,p){for(;;){var v=u(g,p);if(g.isError(v))return v;var y=c(g,v.primitive,p);if(g.isError(y))return y;var b;if(b=v.primitive||y!==null?g.skip(y):this._skipUntilEnd(g,p),g.isError(b))return b;if(v.tagStr==="end")break}},d.prototype._decodeList=function(g,p,v,y){for(var b=[];!g.isEmpty();){var A=this._peekTag(g,"end");if(g.isError(A))return A;var x=v.decode(g,"der",y);if(g.isError(x)&&A)break;b.push(x)}return b},d.prototype._decodeStr=function(g,p){if(p==="bitstr"){var v=g.readUInt8();return g.isError(v)?v:{unused:v,data:g.raw()}}if(p==="bmpstr"){var y=g.raw();if(y.length%2==1)return g.error("Decoding of string type: bmpstr length mismatch");for(var b="",A=0;A<y.length/2;A++)b+=String.fromCharCode(y.readUInt16BE(2*A));return b}if(p==="numstr"){var x=g.raw().toString("ascii");return this._isNumstr(x)?x:g.error("Decoding of string type: numstr unsupported characters")}if(p==="octstr"||p==="objDesc")return g.raw();if(p==="printstr"){var E=g.raw().toString("ascii");return this._isPrintstr(E)?E:g.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(p)?g.raw().toString():g.error("Decoding of string type: "+p+" unsupported")},d.prototype._decodeObjid=function(g,p,v){for(var y,b=[],A=0,x=0;!g.isEmpty();)A<<=7,A|=127&(x=g.readUInt8()),!(128&x)&&(b.push(A),A=0);128&x&&b.push(A);var E=b[0]/40|0,S=b[0]%40;if(y=v?b:[E,S].concat(b.slice(1)),p){var C=p[y.join(" ")];C===void 0&&(C=p[y.join(".")]),C!==void 0&&(y=C)}return y},d.prototype._decodeTime=function(g,p){var v,y,b,A,x,E,S=g.raw().toString();if(p==="gentime")v=0|S.slice(0,4),y=0|S.slice(4,6),b=0|S.slice(6,8),A=0|S.slice(8,10),x=0|S.slice(10,12),E=0|S.slice(12,14);else{if(p!=="utctime")return g.error("Decoding "+p+" time is not supported yet");v=0|S.slice(0,2),y=0|S.slice(2,4),b=0|S.slice(4,6),A=0|S.slice(6,8),x=0|S.slice(8,10),E=0|S.slice(10,12),v=v<70?2e3+v:1900+v}return Date.UTC(v,y-1,b,A,x,E,0)},d.prototype._decodeNull=function(){return null},d.prototype._decodeBool=function(g){var p=g.readUInt8();return g.isError(p)?p:p!==0},d.prototype._decodeInt=function(g,p){var v=g.raw(),y=new e(v);return p&&(y=p[y.toString(10)]||y),y},d.prototype._use=function(g,p){return typeof g=="function"&&(g=g(p)),g._getDecoder("der").tree}},1500:(r,s,i)=>{var f=s;f.der=i(2387),f.pem=i(529)},529:(r,s,i)=>{var f=i(1736),e=i(1755).Buffer,l=i(2387);function n(t){l.call(this,t),this.enc="pem"}f(n,l),r.exports=n,n.prototype.decode=function(t,o){for(var d=t.toString().split(/[\r\n]+/g),u=o.label.toUpperCase(),c=/^-----(BEGIN|END) ([^-]+)-----$/,g=-1,p=-1,v=0;v<d.length;v++){var y=d[v].match(c);if(y!==null&&y[2]===u){if(g!==-1){if(y[1]!=="END")break;p=v;break}if(y[1]!=="BEGIN")break;g=v}}if(g===-1||p===-1)throw new Error("PEM section not found for: "+u);var b=d.slice(g+1,p).join("");b.replace(/[^a-z0-9+/=]+/gi,"");var A=e.from(b,"base64");return l.prototype.decode.call(this,A,o)}},1068:(r,s,i)=>{var f=i(1736),e=i(1755).Buffer,l=i(1371),n=i(6520);function t(u){this.enc="der",this.name=u.name,this.entity=u,this.tree=new o,this.tree._init(u.body)}function o(u){l.call(this,"der",u)}function d(u){return u<10?"0"+u:u}r.exports=t,t.prototype.encode=function(u,c){return this.tree._encode(u,c).join()},f(o,l),o.prototype._encodeComposite=function(u,c,g,p){var v=function(C,T,k,M){var P;if(C==="seqof"?C="seq":C==="setof"&&(C="set"),n.tagByName.hasOwnProperty(C))P=n.tagByName[C];else{if(typeof C!="number"||(0|C)!==C)return M.error("Unknown tag: "+C);P=C}return P>=31?M.error("Multi-octet tag encoding unsupported"):(T||(P|=32),P|=n.tagClassByName[k||"universal"]<<6)}(u,c,g,this.reporter);if(p.length<128){var y=e.alloc(2);return y[0]=v,y[1]=p.length,this._createEncoderBuffer([y,p])}for(var b=1,A=p.length;A>=256;A>>=8)b++;var x=e.alloc(2+b);x[0]=v,x[1]=128|b;for(var E=1+b,S=p.length;S>0;E--,S>>=8)x[E]=255&S;return this._createEncoderBuffer([x,p])},o.prototype._encodeStr=function(u,c){if(c==="bitstr")return this._createEncoderBuffer([0|u.unused,u.data]);if(c==="bmpstr"){for(var g=e.alloc(2*u.length),p=0;p<u.length;p++)g.writeUInt16BE(u.charCodeAt(p),2*p);return this._createEncoderBuffer(g)}return c==="numstr"?this._isNumstr(u)?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: numstr supports only digits and space"):c==="printstr"?this._isPrintstr(u)?this._createEncoderBuffer(u):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(c)||c==="objDesc"?this._createEncoderBuffer(u):this.reporter.error("Encoding of string type: "+c+" unsupported")},o.prototype._encodeObjid=function(u,c,g){if(typeof u=="string"){if(!c)return this.reporter.error("string objid given, but no values map found");if(!c.hasOwnProperty(u))return this.reporter.error("objid not found in values map");u=c[u].split(/[\s.]+/g);for(var p=0;p<u.length;p++)u[p]|=0}else if(Array.isArray(u)){u=u.slice();for(var v=0;v<u.length;v++)u[v]|=0}if(!Array.isArray(u))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(u));if(!g){if(u[1]>=40)return this.reporter.error("Second objid identifier OOB");u.splice(0,2,40*u[0]+u[1])}for(var y=0,b=0;b<u.length;b++){var A=u[b];for(y++;A>=128;A>>=7)y++}for(var x=e.alloc(y),E=x.length-1,S=u.length-1;S>=0;S--){var C=u[S];for(x[E--]=127&C;(C>>=7)>0;)x[E--]=128|127&C}return this._createEncoderBuffer(x)},o.prototype._encodeTime=function(u,c){var g,p=new Date(u);return c==="gentime"?g=[d(p.getUTCFullYear()),d(p.getUTCMonth()+1),d(p.getUTCDate()),d(p.getUTCHours()),d(p.getUTCMinutes()),d(p.getUTCSeconds()),"Z"].join(""):c==="utctime"?g=[d(p.getUTCFullYear()%100),d(p.getUTCMonth()+1),d(p.getUTCDate()),d(p.getUTCHours()),d(p.getUTCMinutes()),d(p.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+c+" time is not supported yet"),this._encodeStr(g,"octstr")},o.prototype._encodeNull=function(){return this._createEncoderBuffer("")},o.prototype._encodeInt=function(u,c){if(typeof u=="string"){if(!c)return this.reporter.error("String int or enum given, but no values map");if(!c.hasOwnProperty(u))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(u));u=c[u]}if(typeof u!="number"&&!e.isBuffer(u)){var g=u.toArray();!u.sign&&128&g[0]&&g.unshift(0),u=e.from(g)}if(e.isBuffer(u)){var p=u.length;u.length===0&&p++;var v=e.alloc(p);return u.copy(v),u.length===0&&(v[0]=0),this._createEncoderBuffer(v)}if(u<128)return this._createEncoderBuffer(u);if(u<256)return this._createEncoderBuffer([0,u]);for(var y=1,b=u;b>=256;b>>=8)y++;for(var A=new Array(y),x=A.length-1;x>=0;x--)A[x]=255&u,u>>=8;return 128&A[0]&&A.unshift(0),this._createEncoderBuffer(e.from(A))},o.prototype._encodeBool=function(u){return this._createEncoderBuffer(u?255:0)},o.prototype._use=function(u,c){return typeof u=="function"&&(u=u(c)),u._getEncoder("der").tree},o.prototype._skipDefault=function(u,c,g){var p,v=this._baseState;if(v.default===null)return!1;var y=u.join();if(v.defaultBuffer===void 0&&(v.defaultBuffer=this._encodeValue(v.default,c,g).join()),y.length!==v.defaultBuffer.length)return!1;for(p=0;p<y.length;p++)if(y[p]!==v.defaultBuffer[p])return!1;return!0}},7506:(r,s,i)=>{var f=s;f.der=i(1068),f.pem=i(8520)},8520:(r,s,i)=>{var f=i(1736),e=i(1068);function l(n){e.call(this,n),this.enc="pem"}f(l,e),r.exports=l,l.prototype.encode=function(n,t){for(var o=e.prototype.encode.call(this,n).toString("base64"),d=["-----BEGIN "+t.label+"-----"],u=0;u<o.length;u+=64)d.push(o.slice(u,u+64));return d.push("-----END "+t.label+"-----"),d.join(` +`)}},3894:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(3103);function l(P,N){if(P===N)return 0;for(var F=P.length,q=N.length,z=0,O=Math.min(F,q);z<O;++z)if(P[z]!==N[z]){F=P[z],q=N[z];break}return F<q?-1:q<F?1:0}function n(P){return i.g.Buffer&&typeof i.g.Buffer.isBuffer=="function"?i.g.Buffer.isBuffer(P):!(P==null||!P._isBuffer)}var t=i(9954),o=Object.prototype.hasOwnProperty,d=Array.prototype.slice,u=function(){}.name==="foo";function c(P){return Object.prototype.toString.call(P)}function g(P){return!n(P)&&typeof i.g.ArrayBuffer=="function"&&(typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(P):!!P&&(P instanceof DataView||!!(P.buffer&&P.buffer instanceof ArrayBuffer)))}var p=r.exports=E,v=/\s*function\s+([^\(\s]*)\s*/;function y(P){if(t.isFunction(P)){if(u)return P.name;var N=P.toString().match(v);return N&&N[1]}}function b(P,N){return typeof P=="string"?P.length<N?P:P.slice(0,N):P}function A(P){if(u||!t.isFunction(P))return t.inspect(P);var N=y(P);return"[Function"+(N?": "+N:"")+"]"}function x(P,N,F,q,z){throw new p.AssertionError({message:F,actual:P,expected:N,operator:q,stackStartFunction:z})}function E(P,N){P||x(P,!0,N,"==",p.ok)}function S(P,N,F,q){if(P===N)return!0;if(n(P)&&n(N))return l(P,N)===0;if(t.isDate(P)&&t.isDate(N))return P.getTime()===N.getTime();if(t.isRegExp(P)&&t.isRegExp(N))return P.source===N.source&&P.global===N.global&&P.multiline===N.multiline&&P.lastIndex===N.lastIndex&&P.ignoreCase===N.ignoreCase;if(P!==null&&(0,f.default)(P)==="object"||N!==null&&(0,f.default)(N)==="object"){if(g(P)&&g(N)&&c(P)===c(N)&&!(P instanceof Float32Array||P instanceof Float64Array))return l(new Uint8Array(P.buffer),new Uint8Array(N.buffer))===0;if(n(P)!==n(N))return!1;var z=(q=q||{actual:[],expected:[]}).actual.indexOf(P);return z!==-1&&z===q.expected.indexOf(N)||(q.actual.push(P),q.expected.push(N),function(O,R,I,D){if(O==null||R==null)return!1;if(t.isPrimitive(O)||t.isPrimitive(R))return O===R;if(I&&Object.getPrototypeOf(O)!==Object.getPrototypeOf(R))return!1;var B=C(O),j=C(R);if(B&&!j||!B&&j)return!1;if(B)return S(O=d.call(O),R=d.call(R),I);var Q,X,Z=M(O),L=M(R);if(Z.length!==L.length)return!1;for(Z.sort(),L.sort(),X=Z.length-1;X>=0;X--)if(Z[X]!==L[X])return!1;for(X=Z.length-1;X>=0;X--)if(!S(O[Q=Z[X]],R[Q],I,D))return!1;return!0}(P,N,F,q))}return F?P===N:P==N}function C(P){return Object.prototype.toString.call(P)=="[object Arguments]"}function T(P,N){if(!P||!N)return!1;if(Object.prototype.toString.call(N)=="[object RegExp]")return N.test(P);try{if(P instanceof N)return!0}catch{}return!Error.isPrototypeOf(N)&&N.call({},P)===!0}function k(P,N,F,q){var z;if(typeof N!="function")throw new TypeError('"block" argument must be a function');typeof F=="string"&&(q=F,F=null),z=function(I){var D;try{I()}catch(B){D=B}return D}(N),q=(F&&F.name?" ("+F.name+").":".")+(q?" "+q:"."),P&&!z&&x(z,F,"Missing expected exception"+q);var O=typeof q=="string",R=!P&&z&&!F;if((!P&&t.isError(z)&&O&&T(z,F)||R)&&x(z,F,"Got unwanted exception"+q),P&&z&&F&&!T(z,F)||!P&&z)throw z}p.AssertionError=function(P){this.name="AssertionError",this.actual=P.actual,this.expected=P.expected,this.operator=P.operator,P.message?(this.message=P.message,this.generatedMessage=!1):(this.message=function(I){return b(A(I.actual),128)+" "+I.operator+" "+b(A(I.expected),128)}(this),this.generatedMessage=!0);var N=P.stackStartFunction||x;if(Error.captureStackTrace)Error.captureStackTrace(this,N);else{var F=new Error;if(F.stack){var q=F.stack,z=y(N),O=q.indexOf(` +`+z);if(O>=0){var R=q.indexOf(` +`,O+1);q=q.substring(R+1)}this.stack=q}}},t.inherits(p.AssertionError,Error),p.fail=x,p.ok=E,p.equal=function(P,N,F){P!=N&&x(P,N,F,"==",p.equal)},p.notEqual=function(P,N,F){P==N&&x(P,N,F,"!=",p.notEqual)},p.deepEqual=function(P,N,F){S(P,N,!1)||x(P,N,F,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(P,N,F){S(P,N,!0)||x(P,N,F,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(P,N,F){S(P,N,!1)&&x(P,N,F,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function P(N,F,q){S(N,F,!0)&&x(N,F,q,"notDeepStrictEqual",P)},p.strictEqual=function(P,N,F){P!==N&&x(P,N,F,"===",p.strictEqual)},p.notStrictEqual=function(P,N,F){P===N&&x(P,N,F,"!==",p.notStrictEqual)},p.throws=function(P,N,F){k(!0,P,N,F)},p.doesNotThrow=function(P,N,F){k(!1,P,N,F)},p.ifError=function(P){if(P)throw P},p.strict=e(function P(N,F){N||x(N,!0,F,"==",P)},p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var M=Object.keys||function(P){var N=[];for(var F in P)o.call(P,F)&&N.push(F);return N}},4074:r=>{typeof Object.create=="function"?r.exports=function(s,i){s.super_=i,s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(s,i){s.super_=i;var f=function(){};f.prototype=i.prototype,s.prototype=new f,s.prototype.constructor=s}},6732:(r,s,i)=>{var f=i(8847)(i(3355));r.exports=function(e){return e&&(0,f.default)(e)==="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},9954:(r,s,i)=>{var f=i(9142),e=i(8847)(i(3355)),l=/%[sdj%]/g;s.format=function(z){if(!x(z)){for(var O=[],R=0;R<arguments.length;R++)O.push(o(arguments[R]));return O.join(" ")}R=1;for(var I=arguments,D=I.length,B=String(z).replace(l,function(Q){if(Q==="%%")return"%";if(R>=D)return Q;switch(Q){case"%s":return String(I[R++]);case"%d":return Number(I[R++]);case"%j":try{return JSON.stringify(I[R++])}catch{return"[Circular]"}default:return Q}}),j=I[R];R<D;j=I[++R])b(j)||!C(j)?B+=" "+j:B+=" "+o(j);return B},s.deprecate=function(z,O){if(E(i.g.process))return function(){return s.deprecate(z,O).apply(this,arguments)};if(f.noDeprecation===!0)return z;var R=!1;return function(){if(!R){if(f.throwDeprecation)throw new Error(O);f.traceDeprecation?console.trace(O):console.error(O),R=!0}return z.apply(this,arguments)}};var n,t={};function o(z,O){var R={seen:[],stylize:u};return arguments.length>=3&&(R.depth=arguments[2]),arguments.length>=4&&(R.colors=arguments[3]),y(O)?R.showHidden=O:O&&s._extend(R,O),E(R.showHidden)&&(R.showHidden=!1),E(R.depth)&&(R.depth=2),E(R.colors)&&(R.colors=!1),E(R.customInspect)&&(R.customInspect=!0),R.colors&&(R.stylize=d),c(R,z,R.depth)}function d(z,O){var R=o.styles[O];return R?"\x1B["+o.colors[R][0]+"m"+z+"\x1B["+o.colors[R][1]+"m":z}function u(z,O){return z}function c(z,O,R){if(z.customInspect&&O&&M(O.inspect)&&O.inspect!==s.inspect&&(!O.constructor||O.constructor.prototype!==O)){var I=O.inspect(R,z);return x(I)||(I=c(z,I,R)),I}var D=function(G,J){if(E(J))return G.stylize("undefined","undefined");if(x(J)){var H="'"+JSON.stringify(J).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(H,"string")}return A(J)?G.stylize(""+J,"number"):y(J)?G.stylize(""+J,"boolean"):b(J)?G.stylize("null","null"):void 0}(z,O);if(D)return D;var B=Object.keys(O),j=function(G){var J={};return G.forEach(function(H,U){J[H]=!0}),J}(B);if(z.showHidden&&(B=Object.getOwnPropertyNames(O)),k(O)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return g(O);if(B.length===0){if(M(O)){var Q=O.name?": "+O.name:"";return z.stylize("[Function"+Q+"]","special")}if(S(O))return z.stylize(RegExp.prototype.toString.call(O),"regexp");if(T(O))return z.stylize(Date.prototype.toString.call(O),"date");if(k(O))return g(O)}var X,Z="",L=!1,W=["{","}"];return v(O)&&(L=!0,W=["[","]"]),M(O)&&(Z=" [Function"+(O.name?": "+O.name:"")+"]"),S(O)&&(Z=" "+RegExp.prototype.toString.call(O)),T(O)&&(Z=" "+Date.prototype.toUTCString.call(O)),k(O)&&(Z=" "+g(O)),B.length!==0||L&&O.length!=0?R<0?S(O)?z.stylize(RegExp.prototype.toString.call(O),"regexp"):z.stylize("[Object]","special"):(z.seen.push(O),X=L?function(G,J,H,U,K){for(var te=[],ee=0,ie=J.length;ee<ie;++ee)q(J,String(ee))?te.push(p(G,J,H,U,String(ee),!0)):te.push("");return K.forEach(function(se){se.match(/^\d+$/)||te.push(p(G,J,H,U,se,!0))}),te}(z,O,R,j,B):B.map(function(G){return p(z,O,R,j,G,L)}),z.seen.pop(),function(G,J,H){return G.reduce(function(U,K){return K.indexOf(` +`),U+K.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?H[0]+(J===""?"":J+` + `)+" "+G.join(`, + `)+" "+H[1]:H[0]+J+" "+G.join(", ")+" "+H[1]}(X,Z,W)):W[0]+Z+W[1]}function g(z){return"["+Error.prototype.toString.call(z)+"]"}function p(z,O,R,I,D,B){var j,Q,X;if((X=Object.getOwnPropertyDescriptor(O,D)||{value:O[D]}).get?Q=X.set?z.stylize("[Getter/Setter]","special"):z.stylize("[Getter]","special"):X.set&&(Q=z.stylize("[Setter]","special")),q(I,D)||(j="["+D+"]"),Q||(z.seen.indexOf(X.value)<0?(Q=b(R)?c(z,X.value,null):c(z,X.value,R-1)).indexOf(` +`)>-1&&(Q=B?Q.split(` +`).map(function(Z){return" "+Z}).join(` +`).substr(2):` +`+Q.split(` +`).map(function(Z){return" "+Z}).join(` +`)):Q=z.stylize("[Circular]","special")),E(j)){if(B&&D.match(/^\d+$/))return Q;(j=JSON.stringify(""+D)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(j=j.substr(1,j.length-2),j=z.stylize(j,"name")):(j=j.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),j=z.stylize(j,"string"))}return j+": "+Q}function v(z){return Array.isArray(z)}function y(z){return typeof z=="boolean"}function b(z){return z===null}function A(z){return typeof z=="number"}function x(z){return typeof z=="string"}function E(z){return z===void 0}function S(z){return C(z)&&P(z)==="[object RegExp]"}function C(z){return(0,e.default)(z)==="object"&&z!==null}function T(z){return C(z)&&P(z)==="[object Date]"}function k(z){return C(z)&&(P(z)==="[object Error]"||z instanceof Error)}function M(z){return typeof z=="function"}function P(z){return Object.prototype.toString.call(z)}function N(z){return z<10?"0"+z.toString(10):z.toString(10)}s.debuglog=function(z){if(E(n)&&(n=f.env.NODE_DEBUG||""),z=z.toUpperCase(),!t[z])if(new RegExp("\\b"+z+"\\b","i").test(n)){var O=f.pid;t[z]=function(){var R=s.format.apply(s,arguments);console.error("%s %d: %s",z,O,R)}}else t[z]=function(){};return t[z]},s.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.isArray=v,s.isBoolean=y,s.isNull=b,s.isNullOrUndefined=function(z){return z==null},s.isNumber=A,s.isString=x,s.isSymbol=function(z){return(0,e.default)(z)==="symbol"},s.isUndefined=E,s.isRegExp=S,s.isObject=C,s.isDate=T,s.isError=k,s.isFunction=M,s.isPrimitive=function(z){return z===null||typeof z=="boolean"||typeof z=="number"||typeof z=="string"||(0,e.default)(z)==="symbol"||z===void 0},s.isBuffer=i(6732);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function q(z,O){return Object.prototype.hasOwnProperty.call(z,O)}s.log=function(){var z,O;console.log("%s - %s",(O=[N((z=new Date).getHours()),N(z.getMinutes()),N(z.getSeconds())].join(":"),[z.getDate(),F[z.getMonth()],O].join(" ")),s.format.apply(s,arguments))},s.inherits=i(4074),s._extend=function(z,O){if(!O||!C(O))return z;for(var R=Object.keys(O),I=R.length;I--;)z[R[I]]=O[R[I]];return z}},7548:(r,s,i)=>{var f=i(8850).Buffer;r.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var l=new Uint8Array(256),n=0;n<l.length;n++)l[n]=255;for(var t=0;t<e.length;t++){var o=e.charAt(t),d=o.charCodeAt(0);if(l[d]!==255)throw new TypeError(o+" is ambiguous");l[d]=t}var u=e.length,c=e.charAt(0),g=Math.log(u)/Math.log(256),p=Math.log(256)/Math.log(u);function v(y){if(typeof y!="string")throw new TypeError("Expected String");if(y.length===0)return f.alloc(0);for(var b=0,A=0,x=0;y[b]===c;)A++,b++;for(var E=(y.length-b)*g+1>>>0,S=new Uint8Array(E);y[b];){var C=l[y.charCodeAt(b)];if(C===255)return;for(var T=0,k=E-1;(C!==0||T<x)&&k!==-1;k--,T++)C+=u*S[k]>>>0,S[k]=C%256>>>0,C=C/256>>>0;if(C!==0)throw new Error("Non-zero carry");x=T,b++}for(var M=E-x;M!==E&&S[M]===0;)M++;var P=f.allocUnsafe(A+(E-M));P.fill(0,0,A);for(var N=A;M!==E;)P[N++]=S[M++];return P}return{encode:function(y){if((Array.isArray(y)||y instanceof Uint8Array)&&(y=f.from(y)),!f.isBuffer(y))throw new TypeError("Expected Buffer");if(y.length===0)return"";for(var b=0,A=0,x=0,E=y.length;x!==E&&y[x]===0;)x++,b++;for(var S=(E-x)*p+1>>>0,C=new Uint8Array(S);x!==E;){for(var T=y[x],k=0,M=S-1;(T!==0||k<A)&&M!==-1;M--,k++)T+=256*C[M]>>>0,C[M]=T%u>>>0,T=T/u>>>0;if(T!==0)throw new Error("Non-zero carry");A=k,x++}for(var P=S-A;P!==S&&C[P]===0;)P++;for(var N=c.repeat(b);P<S;++P)N+=e.charAt(C[P]);return N},decodeUnsafe:v,decode:function(y){var b=v(y);if(b)return b;throw new Error("Non-base"+u+" character")}}}},4919:(r,s)=>{s.byteLength=function(u){var c=o(u),g=c[0],p=c[1];return 3*(g+p)/4-p},s.toByteArray=function(u){var c,g,p=o(u),v=p[0],y=p[1],b=new e(function(E,S,C){return 3*(S+C)/4-C}(0,v,y)),A=0,x=y>0?v-4:v;for(g=0;g<x;g+=4)c=f[u.charCodeAt(g)]<<18|f[u.charCodeAt(g+1)]<<12|f[u.charCodeAt(g+2)]<<6|f[u.charCodeAt(g+3)],b[A++]=c>>16&255,b[A++]=c>>8&255,b[A++]=255&c;return y===2&&(c=f[u.charCodeAt(g)]<<2|f[u.charCodeAt(g+1)]>>4,b[A++]=255&c),y===1&&(c=f[u.charCodeAt(g)]<<10|f[u.charCodeAt(g+1)]<<4|f[u.charCodeAt(g+2)]>>2,b[A++]=c>>8&255,b[A++]=255&c),b},s.fromByteArray=function(u){for(var c,g=u.length,p=g%3,v=[],y=16383,b=0,A=g-p;b<A;b+=y)v.push(d(u,b,b+y>A?A:b+y));return p===1?(c=u[g-1],v.push(i[c>>2]+i[c<<4&63]+"==")):p===2&&(c=(u[g-2]<<8)+u[g-1],v.push(i[c>>10]+i[c>>4&63]+i[c<<2&63]+"=")),v.join("")};for(var i=[],f=[],e=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,t=l.length;n<t;++n)i[n]=l[n],f[l.charCodeAt(n)]=n;function o(u){var c=u.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=u.indexOf("=");return g===-1&&(g=c),[g,g===c?0:4-g%4]}function d(u,c,g){for(var p,v,y=[],b=c;b<g;b+=3)p=(u[b]<<16&16711680)+(u[b+1]<<8&65280)+(255&u[b+2]),y.push(i[(v=p)>>18&63]+i[v>>12&63]+i[v>>6&63]+i[63&v]);return y.join("")}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},1734:(r,s,i)=>{r=i.nmd(r);var f=i(8847)(i(3355));(function(e,l){function n(O,R){if(!O)throw new Error(R||"Assertion failed")}function t(O,R){O.super_=R;var I=function(){};I.prototype=R.prototype,O.prototype=new I,O.prototype.constructor=O}function o(O,R,I){if(o.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&(R!=="le"&&R!=="be"||(I=R,R=10),this._init(O||0,R||10,I||"be"))}var d;(0,f.default)(e)==="object"?e.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{d=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:i(9033).Buffer}catch{}function u(O,R){var I=O.charCodeAt(R);return I>=48&&I<=57?I-48:I>=65&&I<=70?I-55:I>=97&&I<=102?I-87:void n(!1,"Invalid character in "+O)}function c(O,R,I){var D=u(O,I);return I-1>=R&&(D|=u(O,I-1)<<4),D}function g(O,R,I,D){for(var B=0,j=0,Q=Math.min(O.length,I),X=R;X<Q;X++){var Z=O.charCodeAt(X)-48;B*=D,j=Z>=49?Z-49+10:Z>=17?Z-17+10:Z,n(Z>=0&&j<D,"Invalid character"),B+=j}return B}function p(O,R){O.words=R.words,O.length=R.length,O.negative=R.negative,O.red=R.red}if(o.isBN=function(O){return O instanceof o||O!==null&&(0,f.default)(O)==="object"&&O.constructor.wordSize===o.wordSize&&Array.isArray(O.words)},o.max=function(O,R){return O.cmp(R)>0?O:R},o.min=function(O,R){return O.cmp(R)<0?O:R},o.prototype._init=function(O,R,I){if(typeof O=="number")return this._initNumber(O,R,I);if((0,f.default)(O)==="object")return this._initArray(O,R,I);R==="hex"&&(R=16),n(R===(0|R)&&R>=2&&R<=36);var D=0;(O=O.toString().replace(/\s+/g,""))[0]==="-"&&(D++,this.negative=1),D<O.length&&(R===16?this._parseHex(O,D,I):(this._parseBase(O,R,D),I==="le"&&this._initArray(this.toArray(),R,I)))},o.prototype._initNumber=function(O,R,I){O<0&&(this.negative=1,O=-O),O<67108864?(this.words=[67108863&O],this.length=1):O<4503599627370496?(this.words=[67108863&O,O/67108864&67108863],this.length=2):(n(O<9007199254740992),this.words=[67108863&O,O/67108864&67108863,1],this.length=3),I==="le"&&this._initArray(this.toArray(),R,I)},o.prototype._initArray=function(O,R,I){if(n(typeof O.length=="number"),O.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(O.length/3),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B,j,Q=0;if(I==="be")for(D=O.length-1,B=0;D>=0;D-=3)j=O[D]|O[D-1]<<8|O[D-2]<<16,this.words[B]|=j<<Q&67108863,this.words[B+1]=j>>>26-Q&67108863,(Q+=24)>=26&&(Q-=26,B++);else if(I==="le")for(D=0,B=0;D<O.length;D+=3)j=O[D]|O[D+1]<<8|O[D+2]<<16,this.words[B]|=j<<Q&67108863,this.words[B+1]=j>>>26-Q&67108863,(Q+=24)>=26&&(Q-=26,B++);return this._strip()},o.prototype._parseHex=function(O,R,I){this.length=Math.ceil((O.length-R)/6),this.words=new Array(this.length);for(var D=0;D<this.length;D++)this.words[D]=0;var B,j=0,Q=0;if(I==="be")for(D=O.length-1;D>=R;D-=2)B=c(O,R,D)<<j,this.words[Q]|=67108863&B,j>=18?(j-=18,Q+=1,this.words[Q]|=B>>>26):j+=8;else for(D=(O.length-R)%2==0?R+1:R;D<O.length;D+=2)B=c(O,R,D)<<j,this.words[Q]|=67108863&B,j>=18?(j-=18,Q+=1,this.words[Q]|=B>>>26):j+=8;this._strip()},o.prototype._parseBase=function(O,R,I){this.words=[0],this.length=1;for(var D=0,B=1;B<=67108863;B*=R)D++;D--,B=B/R|0;for(var j=O.length-I,Q=j%D,X=Math.min(j,j-Q)+I,Z=0,L=I;L<X;L+=D)Z=g(O,L,L+D,R),this.imuln(B),this.words[0]+Z<67108864?this.words[0]+=Z:this._iaddn(Z);if(Q!==0){var W=1;for(Z=g(O,L,O.length,R),L=0;L<Q;L++)W*=R;this.imuln(W),this.words[0]+Z<67108864?this.words[0]+=Z:this._iaddn(Z)}this._strip()},o.prototype.copy=function(O){O.words=new Array(this.length);for(var R=0;R<this.length;R++)O.words[R]=this.words[R];O.length=this.length,O.negative=this.negative,O.red=this.red},o.prototype._move=function(O){p(O,this)},o.prototype.clone=function(){var O=new o(null);return this.copy(O),O},o.prototype._expand=function(O){for(;this.length<O;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch{o.prototype.inspect=v}else o.prototype.inspect=v;function v(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var y=["","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"],b=[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],A=[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 x(O,R,I){I.negative=R.negative^O.negative;var D=O.length+R.length|0;I.length=D,D=D-1|0;var B=0|O.words[0],j=0|R.words[0],Q=B*j,X=67108863&Q,Z=Q/67108864|0;I.words[0]=X;for(var L=1;L<D;L++){for(var W=Z>>>26,G=67108863&Z,J=Math.min(L,R.length-1),H=Math.max(0,L-O.length+1);H<=J;H++){var U=L-H|0;W+=(Q=(B=0|O.words[U])*(j=0|R.words[H])+G)/67108864|0,G=67108863&Q}I.words[L]=0|G,Z=0|W}return Z!==0?I.words[L]=0|Z:I.length--,I._strip()}o.prototype.toString=function(O,R){var I;if(R=0|R||1,(O=O||10)===16||O==="hex"){I="";for(var D=0,B=0,j=0;j<this.length;j++){var Q=this.words[j],X=(16777215&(Q<<D|B)).toString(16);B=Q>>>24-D&16777215,(D+=2)>=26&&(D-=26,j--),I=B!==0||j!==this.length-1?y[6-X.length]+X+I:X+I}for(B!==0&&(I=B.toString(16)+I);I.length%R!=0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(O===(0|O)&&O>=2&&O<=36){var Z=b[O],L=A[O];I="";var W=this.clone();for(W.negative=0;!W.isZero();){var G=W.modrn(L).toString(O);I=(W=W.idivn(L)).isZero()?G+I:y[Z-G.length]+G+I}for(this.isZero()&&(I="0"+I);I.length%R!=0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var O=this.words[0];return this.length===2?O+=67108864*this.words[1]:this.length===3&&this.words[2]===1?O+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-O:O},o.prototype.toJSON=function(){return this.toString(16,2)},d&&(o.prototype.toBuffer=function(O,R){return this.toArrayLike(d,O,R)}),o.prototype.toArray=function(O,R){return this.toArrayLike(Array,O,R)},o.prototype.toArrayLike=function(O,R,I){this._strip();var D=this.byteLength(),B=I||Math.max(1,D);n(D<=B,"byte array longer than desired length"),n(B>0,"Requested array length <= 0");var j=function(Q,X){return Q.allocUnsafe?Q.allocUnsafe(X):new Q(X)}(O,B);return this["_toArrayLike"+(R==="le"?"LE":"BE")](j,D),j},o.prototype._toArrayLikeLE=function(O,R){for(var I=0,D=0,B=0,j=0;B<this.length;B++){var Q=this.words[B]<<j|D;O[I++]=255&Q,I<O.length&&(O[I++]=Q>>8&255),I<O.length&&(O[I++]=Q>>16&255),j===6?(I<O.length&&(O[I++]=Q>>24&255),D=0,j=0):(D=Q>>>24,j+=2)}if(I<O.length)for(O[I++]=D;I<O.length;)O[I++]=0},o.prototype._toArrayLikeBE=function(O,R){for(var I=O.length-1,D=0,B=0,j=0;B<this.length;B++){var Q=this.words[B]<<j|D;O[I--]=255&Q,I>=0&&(O[I--]=Q>>8&255),I>=0&&(O[I--]=Q>>16&255),j===6?(I>=0&&(O[I--]=Q>>24&255),D=0,j=0):(D=Q>>>24,j+=2)}if(I>=0)for(O[I--]=D;I>=0;)O[I--]=0},Math.clz32?o.prototype._countBits=function(O){return 32-Math.clz32(O)}:o.prototype._countBits=function(O){var R=O,I=0;return R>=4096&&(I+=13,R>>>=13),R>=64&&(I+=7,R>>>=7),R>=8&&(I+=4,R>>>=4),R>=2&&(I+=2,R>>>=2),I+R},o.prototype._zeroBits=function(O){if(O===0)return 26;var R=O,I=0;return!(8191&R)&&(I+=13,R>>>=13),!(127&R)&&(I+=7,R>>>=7),!(15&R)&&(I+=4,R>>>=4),!(3&R)&&(I+=2,R>>>=2),!(1&R)&&I++,I},o.prototype.bitLength=function(){var O=this.words[this.length-1],R=this._countBits(O);return 26*(this.length-1)+R},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var O=0,R=0;R<this.length;R++){var I=this._zeroBits(this.words[R]);if(O+=I,I!==26)break}return O},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(O){return this.negative!==0?this.abs().inotn(O).iaddn(1):this.clone()},o.prototype.fromTwos=function(O){return this.testn(O-1)?this.notn(O).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(O){for(;this.length<O.length;)this.words[this.length++]=0;for(var R=0;R<O.length;R++)this.words[R]=this.words[R]|O.words[R];return this._strip()},o.prototype.ior=function(O){return n((this.negative|O.negative)==0),this.iuor(O)},o.prototype.or=function(O){return this.length>O.length?this.clone().ior(O):O.clone().ior(this)},o.prototype.uor=function(O){return this.length>O.length?this.clone().iuor(O):O.clone().iuor(this)},o.prototype.iuand=function(O){var R;R=this.length>O.length?O:this;for(var I=0;I<R.length;I++)this.words[I]=this.words[I]&O.words[I];return this.length=R.length,this._strip()},o.prototype.iand=function(O){return n((this.negative|O.negative)==0),this.iuand(O)},o.prototype.and=function(O){return this.length>O.length?this.clone().iand(O):O.clone().iand(this)},o.prototype.uand=function(O){return this.length>O.length?this.clone().iuand(O):O.clone().iuand(this)},o.prototype.iuxor=function(O){var R,I;this.length>O.length?(R=this,I=O):(R=O,I=this);for(var D=0;D<I.length;D++)this.words[D]=R.words[D]^I.words[D];if(this!==R)for(;D<R.length;D++)this.words[D]=R.words[D];return this.length=R.length,this._strip()},o.prototype.ixor=function(O){return n((this.negative|O.negative)==0),this.iuxor(O)},o.prototype.xor=function(O){return this.length>O.length?this.clone().ixor(O):O.clone().ixor(this)},o.prototype.uxor=function(O){return this.length>O.length?this.clone().iuxor(O):O.clone().iuxor(this)},o.prototype.inotn=function(O){n(typeof O=="number"&&O>=0);var R=0|Math.ceil(O/26),I=O%26;this._expand(R),I>0&&R--;for(var D=0;D<R;D++)this.words[D]=67108863&~this.words[D];return I>0&&(this.words[D]=~this.words[D]&67108863>>26-I),this._strip()},o.prototype.notn=function(O){return this.clone().inotn(O)},o.prototype.setn=function(O,R){n(typeof O=="number"&&O>=0);var I=O/26|0,D=O%26;return this._expand(I+1),this.words[I]=R?this.words[I]|1<<D:this.words[I]&~(1<<D),this._strip()},o.prototype.iadd=function(O){var R,I,D;if(this.negative!==0&&O.negative===0)return this.negative=0,R=this.isub(O),this.negative^=1,this._normSign();if(this.negative===0&&O.negative!==0)return O.negative=0,R=this.isub(O),O.negative=1,R._normSign();this.length>O.length?(I=this,D=O):(I=O,D=this);for(var B=0,j=0;j<D.length;j++)R=(0|I.words[j])+(0|D.words[j])+B,this.words[j]=67108863&R,B=R>>>26;for(;B!==0&&j<I.length;j++)R=(0|I.words[j])+B,this.words[j]=67108863&R,B=R>>>26;if(this.length=I.length,B!==0)this.words[this.length]=B,this.length++;else if(I!==this)for(;j<I.length;j++)this.words[j]=I.words[j];return this},o.prototype.add=function(O){var R;return O.negative!==0&&this.negative===0?(O.negative=0,R=this.sub(O),O.negative^=1,R):O.negative===0&&this.negative!==0?(this.negative=0,R=O.sub(this),this.negative=1,R):this.length>O.length?this.clone().iadd(O):O.clone().iadd(this)},o.prototype.isub=function(O){if(O.negative!==0){O.negative=0;var R=this.iadd(O);return O.negative=1,R._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(O),this.negative=1,this._normSign();var I,D,B=this.cmp(O);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;B>0?(I=this,D=O):(I=O,D=this);for(var j=0,Q=0;Q<D.length;Q++)j=(R=(0|I.words[Q])-(0|D.words[Q])+j)>>26,this.words[Q]=67108863&R;for(;j!==0&&Q<I.length;Q++)j=(R=(0|I.words[Q])+j)>>26,this.words[Q]=67108863&R;if(j===0&&Q<I.length&&I!==this)for(;Q<I.length;Q++)this.words[Q]=I.words[Q];return this.length=Math.max(this.length,Q),I!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(O){return this.clone().isub(O)};var E=function(O,R,I){var D,B,j,Q=O.words,X=R.words,Z=I.words,L=0,W=0|Q[0],G=8191&W,J=W>>>13,H=0|Q[1],U=8191&H,K=H>>>13,te=0|Q[2],ee=8191&te,ie=te>>>13,se=0|Q[3],ne=8191&se,re=se>>>13,Y=0|Q[4],V=8191&Y,oe=Y>>>13,fe=0|Q[5],ce=8191&fe,he=fe>>>13,le=0|Q[6],ae=8191&le,ue=le>>>13,de=0|Q[7],ve=8191&de,me=de>>>13,ge=0|Q[8],xe=8191&ge,Ae=ge>>>13,Te=0|Q[9],ke=8191&Te,Pe=Te>>>13,Ie=0|X[0],qe=8191&Ie,Ve=Ie>>>13,et=0|X[1],je=8191&et,Ke=et>>>13,Ge=0|X[2],We=8191&Ge,Je=Ge>>>13,ot=0|X[3],Qe=8191&ot,Ye=ot>>>13,at=0|X[4],pe=8191&at,ye=at>>>13,be=0|X[5],_e=8191&be,we=be>>>13,Ee=0|X[6],Ce=8191&Ee,Oe=Ee>>>13,De=0|X[7],Be=8191&De,Re=De>>>13,Le=0|X[8],Ue=8191&Le,Ne=Le>>>13,$e=0|X[9],ze=8191&$e,Xe=$e>>>13;I.negative=O.negative^R.negative,I.length=19;var ft=(L+(D=Math.imul(G,qe))|0)+((8191&(B=(B=Math.imul(G,Ve))+Math.imul(J,qe)|0))<<13)|0;L=((j=Math.imul(J,Ve))+(B>>>13)|0)+(ft>>>26)|0,ft&=67108863,D=Math.imul(U,qe),B=(B=Math.imul(U,Ve))+Math.imul(K,qe)|0,j=Math.imul(K,Ve);var ut=(L+(D=D+Math.imul(G,je)|0)|0)+((8191&(B=(B=B+Math.imul(G,Ke)|0)+Math.imul(J,je)|0))<<13)|0;L=((j=j+Math.imul(J,Ke)|0)+(B>>>13)|0)+(ut>>>26)|0,ut&=67108863,D=Math.imul(ee,qe),B=(B=Math.imul(ee,Ve))+Math.imul(ie,qe)|0,j=Math.imul(ie,Ve),D=D+Math.imul(U,je)|0,B=(B=B+Math.imul(U,Ke)|0)+Math.imul(K,je)|0,j=j+Math.imul(K,Ke)|0;var ct=(L+(D=D+Math.imul(G,We)|0)|0)+((8191&(B=(B=B+Math.imul(G,Je)|0)+Math.imul(J,We)|0))<<13)|0;L=((j=j+Math.imul(J,Je)|0)+(B>>>13)|0)+(ct>>>26)|0,ct&=67108863,D=Math.imul(ne,qe),B=(B=Math.imul(ne,Ve))+Math.imul(re,qe)|0,j=Math.imul(re,Ve),D=D+Math.imul(ee,je)|0,B=(B=B+Math.imul(ee,Ke)|0)+Math.imul(ie,je)|0,j=j+Math.imul(ie,Ke)|0,D=D+Math.imul(U,We)|0,B=(B=B+Math.imul(U,Je)|0)+Math.imul(K,We)|0,j=j+Math.imul(K,Je)|0;var sr=(L+(D=D+Math.imul(G,Qe)|0)|0)+((8191&(B=(B=B+Math.imul(G,Ye)|0)+Math.imul(J,Qe)|0))<<13)|0;L=((j=j+Math.imul(J,Ye)|0)+(B>>>13)|0)+(sr>>>26)|0,sr&=67108863,D=Math.imul(V,qe),B=(B=Math.imul(V,Ve))+Math.imul(oe,qe)|0,j=Math.imul(oe,Ve),D=D+Math.imul(ne,je)|0,B=(B=B+Math.imul(ne,Ke)|0)+Math.imul(re,je)|0,j=j+Math.imul(re,Ke)|0,D=D+Math.imul(ee,We)|0,B=(B=B+Math.imul(ee,Je)|0)+Math.imul(ie,We)|0,j=j+Math.imul(ie,Je)|0,D=D+Math.imul(U,Qe)|0,B=(B=B+Math.imul(U,Ye)|0)+Math.imul(K,Qe)|0,j=j+Math.imul(K,Ye)|0;var Gt=(L+(D=D+Math.imul(G,pe)|0)|0)+((8191&(B=(B=B+Math.imul(G,ye)|0)+Math.imul(J,pe)|0))<<13)|0;L=((j=j+Math.imul(J,ye)|0)+(B>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,D=Math.imul(ce,qe),B=(B=Math.imul(ce,Ve))+Math.imul(he,qe)|0,j=Math.imul(he,Ve),D=D+Math.imul(V,je)|0,B=(B=B+Math.imul(V,Ke)|0)+Math.imul(oe,je)|0,j=j+Math.imul(oe,Ke)|0,D=D+Math.imul(ne,We)|0,B=(B=B+Math.imul(ne,Je)|0)+Math.imul(re,We)|0,j=j+Math.imul(re,Je)|0,D=D+Math.imul(ee,Qe)|0,B=(B=B+Math.imul(ee,Ye)|0)+Math.imul(ie,Qe)|0,j=j+Math.imul(ie,Ye)|0,D=D+Math.imul(U,pe)|0,B=(B=B+Math.imul(U,ye)|0)+Math.imul(K,pe)|0,j=j+Math.imul(K,ye)|0;var Tr=(L+(D=D+Math.imul(G,_e)|0)|0)+((8191&(B=(B=B+Math.imul(G,we)|0)+Math.imul(J,_e)|0))<<13)|0;L=((j=j+Math.imul(J,we)|0)+(B>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,D=Math.imul(ae,qe),B=(B=Math.imul(ae,Ve))+Math.imul(ue,qe)|0,j=Math.imul(ue,Ve),D=D+Math.imul(ce,je)|0,B=(B=B+Math.imul(ce,Ke)|0)+Math.imul(he,je)|0,j=j+Math.imul(he,Ke)|0,D=D+Math.imul(V,We)|0,B=(B=B+Math.imul(V,Je)|0)+Math.imul(oe,We)|0,j=j+Math.imul(oe,Je)|0,D=D+Math.imul(ne,Qe)|0,B=(B=B+Math.imul(ne,Ye)|0)+Math.imul(re,Qe)|0,j=j+Math.imul(re,Ye)|0,D=D+Math.imul(ee,pe)|0,B=(B=B+Math.imul(ee,ye)|0)+Math.imul(ie,pe)|0,j=j+Math.imul(ie,ye)|0,D=D+Math.imul(U,_e)|0,B=(B=B+Math.imul(U,we)|0)+Math.imul(K,_e)|0,j=j+Math.imul(K,we)|0;var br=(L+(D=D+Math.imul(G,Ce)|0)|0)+((8191&(B=(B=B+Math.imul(G,Oe)|0)+Math.imul(J,Ce)|0))<<13)|0;L=((j=j+Math.imul(J,Oe)|0)+(B>>>13)|0)+(br>>>26)|0,br&=67108863,D=Math.imul(ve,qe),B=(B=Math.imul(ve,Ve))+Math.imul(me,qe)|0,j=Math.imul(me,Ve),D=D+Math.imul(ae,je)|0,B=(B=B+Math.imul(ae,Ke)|0)+Math.imul(ue,je)|0,j=j+Math.imul(ue,Ke)|0,D=D+Math.imul(ce,We)|0,B=(B=B+Math.imul(ce,Je)|0)+Math.imul(he,We)|0,j=j+Math.imul(he,Je)|0,D=D+Math.imul(V,Qe)|0,B=(B=B+Math.imul(V,Ye)|0)+Math.imul(oe,Qe)|0,j=j+Math.imul(oe,Ye)|0,D=D+Math.imul(ne,pe)|0,B=(B=B+Math.imul(ne,ye)|0)+Math.imul(re,pe)|0,j=j+Math.imul(re,ye)|0,D=D+Math.imul(ee,_e)|0,B=(B=B+Math.imul(ee,we)|0)+Math.imul(ie,_e)|0,j=j+Math.imul(ie,we)|0,D=D+Math.imul(U,Ce)|0,B=(B=B+Math.imul(U,Oe)|0)+Math.imul(K,Ce)|0,j=j+Math.imul(K,Oe)|0;var Mr=(L+(D=D+Math.imul(G,Be)|0)|0)+((8191&(B=(B=B+Math.imul(G,Re)|0)+Math.imul(J,Be)|0))<<13)|0;L=((j=j+Math.imul(J,Re)|0)+(B>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,D=Math.imul(xe,qe),B=(B=Math.imul(xe,Ve))+Math.imul(Ae,qe)|0,j=Math.imul(Ae,Ve),D=D+Math.imul(ve,je)|0,B=(B=B+Math.imul(ve,Ke)|0)+Math.imul(me,je)|0,j=j+Math.imul(me,Ke)|0,D=D+Math.imul(ae,We)|0,B=(B=B+Math.imul(ae,Je)|0)+Math.imul(ue,We)|0,j=j+Math.imul(ue,Je)|0,D=D+Math.imul(ce,Qe)|0,B=(B=B+Math.imul(ce,Ye)|0)+Math.imul(he,Qe)|0,j=j+Math.imul(he,Ye)|0,D=D+Math.imul(V,pe)|0,B=(B=B+Math.imul(V,ye)|0)+Math.imul(oe,pe)|0,j=j+Math.imul(oe,ye)|0,D=D+Math.imul(ne,_e)|0,B=(B=B+Math.imul(ne,we)|0)+Math.imul(re,_e)|0,j=j+Math.imul(re,we)|0,D=D+Math.imul(ee,Ce)|0,B=(B=B+Math.imul(ee,Oe)|0)+Math.imul(ie,Ce)|0,j=j+Math.imul(ie,Oe)|0,D=D+Math.imul(U,Be)|0,B=(B=B+Math.imul(U,Re)|0)+Math.imul(K,Be)|0,j=j+Math.imul(K,Re)|0;var Ir=(L+(D=D+Math.imul(G,Ue)|0)|0)+((8191&(B=(B=B+Math.imul(G,Ne)|0)+Math.imul(J,Ue)|0))<<13)|0;L=((j=j+Math.imul(J,Ne)|0)+(B>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,D=Math.imul(ke,qe),B=(B=Math.imul(ke,Ve))+Math.imul(Pe,qe)|0,j=Math.imul(Pe,Ve),D=D+Math.imul(xe,je)|0,B=(B=B+Math.imul(xe,Ke)|0)+Math.imul(Ae,je)|0,j=j+Math.imul(Ae,Ke)|0,D=D+Math.imul(ve,We)|0,B=(B=B+Math.imul(ve,Je)|0)+Math.imul(me,We)|0,j=j+Math.imul(me,Je)|0,D=D+Math.imul(ae,Qe)|0,B=(B=B+Math.imul(ae,Ye)|0)+Math.imul(ue,Qe)|0,j=j+Math.imul(ue,Ye)|0,D=D+Math.imul(ce,pe)|0,B=(B=B+Math.imul(ce,ye)|0)+Math.imul(he,pe)|0,j=j+Math.imul(he,ye)|0,D=D+Math.imul(V,_e)|0,B=(B=B+Math.imul(V,we)|0)+Math.imul(oe,_e)|0,j=j+Math.imul(oe,we)|0,D=D+Math.imul(ne,Ce)|0,B=(B=B+Math.imul(ne,Oe)|0)+Math.imul(re,Ce)|0,j=j+Math.imul(re,Oe)|0,D=D+Math.imul(ee,Be)|0,B=(B=B+Math.imul(ee,Re)|0)+Math.imul(ie,Be)|0,j=j+Math.imul(ie,Re)|0,D=D+Math.imul(U,Ue)|0,B=(B=B+Math.imul(U,Ne)|0)+Math.imul(K,Ue)|0,j=j+Math.imul(K,Ne)|0;var Dr=(L+(D=D+Math.imul(G,ze)|0)|0)+((8191&(B=(B=B+Math.imul(G,Xe)|0)+Math.imul(J,ze)|0))<<13)|0;L=((j=j+Math.imul(J,Xe)|0)+(B>>>13)|0)+(Dr>>>26)|0,Dr&=67108863,D=Math.imul(ke,je),B=(B=Math.imul(ke,Ke))+Math.imul(Pe,je)|0,j=Math.imul(Pe,Ke),D=D+Math.imul(xe,We)|0,B=(B=B+Math.imul(xe,Je)|0)+Math.imul(Ae,We)|0,j=j+Math.imul(Ae,Je)|0,D=D+Math.imul(ve,Qe)|0,B=(B=B+Math.imul(ve,Ye)|0)+Math.imul(me,Qe)|0,j=j+Math.imul(me,Ye)|0,D=D+Math.imul(ae,pe)|0,B=(B=B+Math.imul(ae,ye)|0)+Math.imul(ue,pe)|0,j=j+Math.imul(ue,ye)|0,D=D+Math.imul(ce,_e)|0,B=(B=B+Math.imul(ce,we)|0)+Math.imul(he,_e)|0,j=j+Math.imul(he,we)|0,D=D+Math.imul(V,Ce)|0,B=(B=B+Math.imul(V,Oe)|0)+Math.imul(oe,Ce)|0,j=j+Math.imul(oe,Oe)|0,D=D+Math.imul(ne,Be)|0,B=(B=B+Math.imul(ne,Re)|0)+Math.imul(re,Be)|0,j=j+Math.imul(re,Re)|0,D=D+Math.imul(ee,Ue)|0,B=(B=B+Math.imul(ee,Ne)|0)+Math.imul(ie,Ue)|0,j=j+Math.imul(ie,Ne)|0;var _r=(L+(D=D+Math.imul(U,ze)|0)|0)+((8191&(B=(B=B+Math.imul(U,Xe)|0)+Math.imul(K,ze)|0))<<13)|0;L=((j=j+Math.imul(K,Xe)|0)+(B>>>13)|0)+(_r>>>26)|0,_r&=67108863,D=Math.imul(ke,We),B=(B=Math.imul(ke,Je))+Math.imul(Pe,We)|0,j=Math.imul(Pe,Je),D=D+Math.imul(xe,Qe)|0,B=(B=B+Math.imul(xe,Ye)|0)+Math.imul(Ae,Qe)|0,j=j+Math.imul(Ae,Ye)|0,D=D+Math.imul(ve,pe)|0,B=(B=B+Math.imul(ve,ye)|0)+Math.imul(me,pe)|0,j=j+Math.imul(me,ye)|0,D=D+Math.imul(ae,_e)|0,B=(B=B+Math.imul(ae,we)|0)+Math.imul(ue,_e)|0,j=j+Math.imul(ue,we)|0,D=D+Math.imul(ce,Ce)|0,B=(B=B+Math.imul(ce,Oe)|0)+Math.imul(he,Ce)|0,j=j+Math.imul(he,Oe)|0,D=D+Math.imul(V,Be)|0,B=(B=B+Math.imul(V,Re)|0)+Math.imul(oe,Be)|0,j=j+Math.imul(oe,Re)|0,D=D+Math.imul(ne,Ue)|0,B=(B=B+Math.imul(ne,Ne)|0)+Math.imul(re,Ue)|0,j=j+Math.imul(re,Ne)|0;var Br=(L+(D=D+Math.imul(ee,ze)|0)|0)+((8191&(B=(B=B+Math.imul(ee,Xe)|0)+Math.imul(ie,ze)|0))<<13)|0;L=((j=j+Math.imul(ie,Xe)|0)+(B>>>13)|0)+(Br>>>26)|0,Br&=67108863,D=Math.imul(ke,Qe),B=(B=Math.imul(ke,Ye))+Math.imul(Pe,Qe)|0,j=Math.imul(Pe,Ye),D=D+Math.imul(xe,pe)|0,B=(B=B+Math.imul(xe,ye)|0)+Math.imul(Ae,pe)|0,j=j+Math.imul(Ae,ye)|0,D=D+Math.imul(ve,_e)|0,B=(B=B+Math.imul(ve,we)|0)+Math.imul(me,_e)|0,j=j+Math.imul(me,we)|0,D=D+Math.imul(ae,Ce)|0,B=(B=B+Math.imul(ae,Oe)|0)+Math.imul(ue,Ce)|0,j=j+Math.imul(ue,Oe)|0,D=D+Math.imul(ce,Be)|0,B=(B=B+Math.imul(ce,Re)|0)+Math.imul(he,Be)|0,j=j+Math.imul(he,Re)|0,D=D+Math.imul(V,Ue)|0,B=(B=B+Math.imul(V,Ne)|0)+Math.imul(oe,Ue)|0,j=j+Math.imul(oe,Ne)|0;var wr=(L+(D=D+Math.imul(ne,ze)|0)|0)+((8191&(B=(B=B+Math.imul(ne,Xe)|0)+Math.imul(re,ze)|0))<<13)|0;L=((j=j+Math.imul(re,Xe)|0)+(B>>>13)|0)+(wr>>>26)|0,wr&=67108863,D=Math.imul(ke,pe),B=(B=Math.imul(ke,ye))+Math.imul(Pe,pe)|0,j=Math.imul(Pe,ye),D=D+Math.imul(xe,_e)|0,B=(B=B+Math.imul(xe,we)|0)+Math.imul(Ae,_e)|0,j=j+Math.imul(Ae,we)|0,D=D+Math.imul(ve,Ce)|0,B=(B=B+Math.imul(ve,Oe)|0)+Math.imul(me,Ce)|0,j=j+Math.imul(me,Oe)|0,D=D+Math.imul(ae,Be)|0,B=(B=B+Math.imul(ae,Re)|0)+Math.imul(ue,Be)|0,j=j+Math.imul(ue,Re)|0,D=D+Math.imul(ce,Ue)|0,B=(B=B+Math.imul(ce,Ne)|0)+Math.imul(he,Ue)|0,j=j+Math.imul(he,Ne)|0;var Rr=(L+(D=D+Math.imul(V,ze)|0)|0)+((8191&(B=(B=B+Math.imul(V,Xe)|0)+Math.imul(oe,ze)|0))<<13)|0;L=((j=j+Math.imul(oe,Xe)|0)+(B>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,D=Math.imul(ke,_e),B=(B=Math.imul(ke,we))+Math.imul(Pe,_e)|0,j=Math.imul(Pe,we),D=D+Math.imul(xe,Ce)|0,B=(B=B+Math.imul(xe,Oe)|0)+Math.imul(Ae,Ce)|0,j=j+Math.imul(Ae,Oe)|0,D=D+Math.imul(ve,Be)|0,B=(B=B+Math.imul(ve,Re)|0)+Math.imul(me,Be)|0,j=j+Math.imul(me,Re)|0,D=D+Math.imul(ae,Ue)|0,B=(B=B+Math.imul(ae,Ne)|0)+Math.imul(ue,Ue)|0,j=j+Math.imul(ue,Ne)|0;var Nr=(L+(D=D+Math.imul(ce,ze)|0)|0)+((8191&(B=(B=B+Math.imul(ce,Xe)|0)+Math.imul(he,ze)|0))<<13)|0;L=((j=j+Math.imul(he,Xe)|0)+(B>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,D=Math.imul(ke,Ce),B=(B=Math.imul(ke,Oe))+Math.imul(Pe,Ce)|0,j=Math.imul(Pe,Oe),D=D+Math.imul(xe,Be)|0,B=(B=B+Math.imul(xe,Re)|0)+Math.imul(Ae,Be)|0,j=j+Math.imul(Ae,Re)|0,D=D+Math.imul(ve,Ue)|0,B=(B=B+Math.imul(ve,Ne)|0)+Math.imul(me,Ue)|0,j=j+Math.imul(me,Ne)|0;var Lr=(L+(D=D+Math.imul(ae,ze)|0)|0)+((8191&(B=(B=B+Math.imul(ae,Xe)|0)+Math.imul(ue,ze)|0))<<13)|0;L=((j=j+Math.imul(ue,Xe)|0)+(B>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,D=Math.imul(ke,Be),B=(B=Math.imul(ke,Re))+Math.imul(Pe,Be)|0,j=Math.imul(Pe,Re),D=D+Math.imul(xe,Ue)|0,B=(B=B+Math.imul(xe,Ne)|0)+Math.imul(Ae,Ue)|0,j=j+Math.imul(Ae,Ne)|0;var Ur=(L+(D=D+Math.imul(ve,ze)|0)|0)+((8191&(B=(B=B+Math.imul(ve,Xe)|0)+Math.imul(me,ze)|0))<<13)|0;L=((j=j+Math.imul(me,Xe)|0)+(B>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,D=Math.imul(ke,Ue),B=(B=Math.imul(ke,Ne))+Math.imul(Pe,Ue)|0,j=Math.imul(Pe,Ne);var ji=(L+(D=D+Math.imul(xe,ze)|0)|0)+((8191&(B=(B=B+Math.imul(xe,Xe)|0)+Math.imul(Ae,ze)|0))<<13)|0;L=((j=j+Math.imul(Ae,Xe)|0)+(B>>>13)|0)+(ji>>>26)|0,ji&=67108863;var Hi=(L+(D=Math.imul(ke,ze))|0)+((8191&(B=(B=Math.imul(ke,Xe))+Math.imul(Pe,ze)|0))<<13)|0;return L=((j=Math.imul(Pe,Xe))+(B>>>13)|0)+(Hi>>>26)|0,Hi&=67108863,Z[0]=ft,Z[1]=ut,Z[2]=ct,Z[3]=sr,Z[4]=Gt,Z[5]=Tr,Z[6]=br,Z[7]=Mr,Z[8]=Ir,Z[9]=Dr,Z[10]=_r,Z[11]=Br,Z[12]=wr,Z[13]=Rr,Z[14]=Nr,Z[15]=Lr,Z[16]=Ur,Z[17]=ji,Z[18]=Hi,L!==0&&(Z[19]=L,I.length++),I};function S(O,R,I){I.negative=R.negative^O.negative,I.length=O.length+R.length;for(var D=0,B=0,j=0;j<I.length-1;j++){var Q=B;B=0;for(var X=67108863&D,Z=Math.min(j,R.length-1),L=Math.max(0,j-O.length+1);L<=Z;L++){var W=j-L,G=(0|O.words[W])*(0|R.words[L]),J=67108863&G;X=67108863&(J=J+X|0),B+=(Q=(Q=Q+(G/67108864|0)|0)+(J>>>26)|0)>>>26,Q&=67108863}I.words[j]=X,D=Q,Q=B}return D!==0?I.words[j]=D:I.length--,I._strip()}function C(O,R,I){return S(O,R,I)}Math.imul||(E=x),o.prototype.mulTo=function(O,R){var I=this.length+O.length;return this.length===10&&O.length===10?E(this,O,R):I<63?x(this,O,R):I<1024?S(this,O,R):C(this,O,R)},o.prototype.mul=function(O){var R=new o(null);return R.words=new Array(this.length+O.length),this.mulTo(O,R)},o.prototype.mulf=function(O){var R=new o(null);return R.words=new Array(this.length+O.length),C(this,O,R)},o.prototype.imul=function(O){return this.clone().mulTo(O,this)},o.prototype.imuln=function(O){var R=O<0;R&&(O=-O),n(typeof O=="number"),n(O<67108864);for(var I=0,D=0;D<this.length;D++){var B=(0|this.words[D])*O,j=(67108863&B)+(67108863&I);I>>=26,I+=B/67108864|0,I+=j>>>26,this.words[D]=67108863&j}return I!==0&&(this.words[D]=I,this.length++),R?this.ineg():this},o.prototype.muln=function(O){return this.clone().imuln(O)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(O){var R=function(j){for(var Q=new Array(j.bitLength()),X=0;X<Q.length;X++){var Z=X/26|0,L=X%26;Q[X]=j.words[Z]>>>L&1}return Q}(O);if(R.length===0)return new o(1);for(var I=this,D=0;D<R.length&&R[D]===0;D++,I=I.sqr());if(++D<R.length)for(var B=I.sqr();D<R.length;D++,B=B.sqr())R[D]!==0&&(I=I.mul(B));return I},o.prototype.iushln=function(O){n(typeof O=="number"&&O>=0);var R,I=O%26,D=(O-I)/26,B=67108863>>>26-I<<26-I;if(I!==0){var j=0;for(R=0;R<this.length;R++){var Q=this.words[R]&B,X=(0|this.words[R])-Q<<I;this.words[R]=X|j,j=Q>>>26-I}j&&(this.words[R]=j,this.length++)}if(D!==0){for(R=this.length-1;R>=0;R--)this.words[R+D]=this.words[R];for(R=0;R<D;R++)this.words[R]=0;this.length+=D}return this._strip()},o.prototype.ishln=function(O){return n(this.negative===0),this.iushln(O)},o.prototype.iushrn=function(O,R,I){var D;n(typeof O=="number"&&O>=0),D=R?(R-R%26)/26:0;var B=O%26,j=Math.min((O-B)/26,this.length),Q=67108863^67108863>>>B<<B,X=I;if(D-=j,D=Math.max(0,D),X){for(var Z=0;Z<j;Z++)X.words[Z]=this.words[Z];X.length=j}if(j!==0)if(this.length>j)for(this.length-=j,Z=0;Z<this.length;Z++)this.words[Z]=this.words[Z+j];else this.words[0]=0,this.length=1;var L=0;for(Z=this.length-1;Z>=0&&(L!==0||Z>=D);Z--){var W=0|this.words[Z];this.words[Z]=L<<26-B|W>>>B,L=W&Q}return X&&L!==0&&(X.words[X.length++]=L),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(O,R,I){return n(this.negative===0),this.iushrn(O,R,I)},o.prototype.shln=function(O){return this.clone().ishln(O)},o.prototype.ushln=function(O){return this.clone().iushln(O)},o.prototype.shrn=function(O){return this.clone().ishrn(O)},o.prototype.ushrn=function(O){return this.clone().iushrn(O)},o.prototype.testn=function(O){n(typeof O=="number"&&O>=0);var R=O%26,I=(O-R)/26,D=1<<R;return!(this.length<=I||!(this.words[I]&D))},o.prototype.imaskn=function(O){n(typeof O=="number"&&O>=0);var R=O%26,I=(O-R)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(R!==0&&I++,this.length=Math.min(I,this.length),R!==0){var D=67108863^67108863>>>R<<R;this.words[this.length-1]&=D}return this._strip()},o.prototype.maskn=function(O){return this.clone().imaskn(O)},o.prototype.iaddn=function(O){return n(typeof O=="number"),n(O<67108864),O<0?this.isubn(-O):this.negative!==0?this.length===1&&(0|this.words[0])<=O?(this.words[0]=O-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(O),this.negative=1,this):this._iaddn(O)},o.prototype._iaddn=function(O){this.words[0]+=O;for(var R=0;R<this.length&&this.words[R]>=67108864;R++)this.words[R]-=67108864,R===this.length-1?this.words[R+1]=1:this.words[R+1]++;return this.length=Math.max(this.length,R+1),this},o.prototype.isubn=function(O){if(n(typeof O=="number"),n(O<67108864),O<0)return this.iaddn(-O);if(this.negative!==0)return this.negative=0,this.iaddn(O),this.negative=1,this;if(this.words[0]-=O,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var R=0;R<this.length&&this.words[R]<0;R++)this.words[R]+=67108864,this.words[R+1]-=1;return this._strip()},o.prototype.addn=function(O){return this.clone().iaddn(O)},o.prototype.subn=function(O){return this.clone().isubn(O)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(O,R,I){var D,B,j=O.length+I;this._expand(j);var Q=0;for(D=0;D<O.length;D++){B=(0|this.words[D+I])+Q;var X=(0|O.words[D])*R;Q=((B-=67108863&X)>>26)-(X/67108864|0),this.words[D+I]=67108863&B}for(;D<this.length-I;D++)Q=(B=(0|this.words[D+I])+Q)>>26,this.words[D+I]=67108863&B;if(Q===0)return this._strip();for(n(Q===-1),Q=0,D=0;D<this.length;D++)Q=(B=-(0|this.words[D])+Q)>>26,this.words[D]=67108863&B;return this.negative=1,this._strip()},o.prototype._wordDiv=function(O,R){var I=(this.length,O.length),D=this.clone(),B=O,j=0|B.words[B.length-1];(I=26-this._countBits(j))!=0&&(B=B.ushln(I),D.iushln(I),j=0|B.words[B.length-1]);var Q,X=D.length-B.length;if(R!=="mod"){(Q=new o(null)).length=X+1,Q.words=new Array(Q.length);for(var Z=0;Z<Q.length;Z++)Q.words[Z]=0}var L=D.clone()._ishlnsubmul(B,1,X);L.negative===0&&(D=L,Q&&(Q.words[X]=1));for(var W=X-1;W>=0;W--){var G=67108864*(0|D.words[B.length+W])+(0|D.words[B.length+W-1]);for(G=Math.min(G/j|0,67108863),D._ishlnsubmul(B,G,W);D.negative!==0;)G--,D.negative=0,D._ishlnsubmul(B,1,W),D.isZero()||(D.negative^=1);Q&&(Q.words[W]=G)}return Q&&Q._strip(),D._strip(),R!=="div"&&I!==0&&D.iushrn(I),{div:Q||null,mod:D}},o.prototype.divmod=function(O,R,I){return n(!O.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:this.negative!==0&&O.negative===0?(j=this.neg().divmod(O,R),R!=="mod"&&(D=j.div.neg()),R!=="div"&&(B=j.mod.neg(),I&&B.negative!==0&&B.iadd(O)),{div:D,mod:B}):this.negative===0&&O.negative!==0?(j=this.divmod(O.neg(),R),R!=="mod"&&(D=j.div.neg()),{div:D,mod:j.mod}):this.negative&O.negative?(j=this.neg().divmod(O.neg(),R),R!=="div"&&(B=j.mod.neg(),I&&B.negative!==0&&B.isub(O)),{div:j.div,mod:B}):O.length>this.length||this.cmp(O)<0?{div:new o(0),mod:this}:O.length===1?R==="div"?{div:this.divn(O.words[0]),mod:null}:R==="mod"?{div:null,mod:new o(this.modrn(O.words[0]))}:{div:this.divn(O.words[0]),mod:new o(this.modrn(O.words[0]))}:this._wordDiv(O,R);var D,B,j},o.prototype.div=function(O){return this.divmod(O,"div",!1).div},o.prototype.mod=function(O){return this.divmod(O,"mod",!1).mod},o.prototype.umod=function(O){return this.divmod(O,"mod",!0).mod},o.prototype.divRound=function(O){var R=this.divmod(O);if(R.mod.isZero())return R.div;var I=R.div.negative!==0?R.mod.isub(O):R.mod,D=O.ushrn(1),B=O.andln(1),j=I.cmp(D);return j<0||B===1&&j===0?R.div:R.div.negative!==0?R.div.isubn(1):R.div.iaddn(1)},o.prototype.modrn=function(O){var R=O<0;R&&(O=-O),n(O<=67108863);for(var I=67108864%O,D=0,B=this.length-1;B>=0;B--)D=(I*D+(0|this.words[B]))%O;return R?-D:D},o.prototype.modn=function(O){return this.modrn(O)},o.prototype.idivn=function(O){var R=O<0;R&&(O=-O),n(O<=67108863);for(var I=0,D=this.length-1;D>=0;D--){var B=(0|this.words[D])+67108864*I;this.words[D]=B/O|0,I=B%O}return this._strip(),R?this.ineg():this},o.prototype.divn=function(O){return this.clone().idivn(O)},o.prototype.egcd=function(O){n(O.negative===0),n(!O.isZero());var R=this,I=O.clone();R=R.negative!==0?R.umod(O):R.clone();for(var D=new o(1),B=new o(0),j=new o(0),Q=new o(1),X=0;R.isEven()&&I.isEven();)R.iushrn(1),I.iushrn(1),++X;for(var Z=I.clone(),L=R.clone();!R.isZero();){for(var W=0,G=1;!(R.words[0]&G)&&W<26;++W,G<<=1);if(W>0)for(R.iushrn(W);W-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd(Z),B.isub(L)),D.iushrn(1),B.iushrn(1);for(var J=0,H=1;!(I.words[0]&H)&&J<26;++J,H<<=1);if(J>0)for(I.iushrn(J);J-- >0;)(j.isOdd()||Q.isOdd())&&(j.iadd(Z),Q.isub(L)),j.iushrn(1),Q.iushrn(1);R.cmp(I)>=0?(R.isub(I),D.isub(j),B.isub(Q)):(I.isub(R),j.isub(D),Q.isub(B))}return{a:j,b:Q,gcd:I.iushln(X)}},o.prototype._invmp=function(O){n(O.negative===0),n(!O.isZero());var R=this,I=O.clone();R=R.negative!==0?R.umod(O):R.clone();for(var D,B=new o(1),j=new o(0),Q=I.clone();R.cmpn(1)>0&&I.cmpn(1)>0;){for(var X=0,Z=1;!(R.words[0]&Z)&&X<26;++X,Z<<=1);if(X>0)for(R.iushrn(X);X-- >0;)B.isOdd()&&B.iadd(Q),B.iushrn(1);for(var L=0,W=1;!(I.words[0]&W)&&L<26;++L,W<<=1);if(L>0)for(I.iushrn(L);L-- >0;)j.isOdd()&&j.iadd(Q),j.iushrn(1);R.cmp(I)>=0?(R.isub(I),B.isub(j)):(I.isub(R),j.isub(B))}return(D=R.cmpn(1)===0?B:j).cmpn(0)<0&&D.iadd(O),D},o.prototype.gcd=function(O){if(this.isZero())return O.abs();if(O.isZero())return this.abs();var R=this.clone(),I=O.clone();R.negative=0,I.negative=0;for(var D=0;R.isEven()&&I.isEven();D++)R.iushrn(1),I.iushrn(1);for(;;){for(;R.isEven();)R.iushrn(1);for(;I.isEven();)I.iushrn(1);var B=R.cmp(I);if(B<0){var j=R;R=I,I=j}else if(B===0||I.cmpn(1)===0)break;R.isub(I)}return I.iushln(D)},o.prototype.invm=function(O){return this.egcd(O).a.umod(O)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(O){return this.words[0]&O},o.prototype.bincn=function(O){n(typeof O=="number");var R=O%26,I=(O-R)/26,D=1<<R;if(this.length<=I)return this._expand(I+1),this.words[I]|=D,this;for(var B=D,j=I;B!==0&&j<this.length;j++){var Q=0|this.words[j];B=(Q+=B)>>>26,Q&=67108863,this.words[j]=Q}return B!==0&&(this.words[j]=B,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(O){var R,I=O<0;if(this.negative!==0&&!I)return-1;if(this.negative===0&&I)return 1;if(this._strip(),this.length>1)R=1;else{I&&(O=-O),n(O<=67108863,"Number is too big");var D=0|this.words[0];R=D===O?0:D<O?-1:1}return this.negative!==0?0|-R:R},o.prototype.cmp=function(O){if(this.negative!==0&&O.negative===0)return-1;if(this.negative===0&&O.negative!==0)return 1;var R=this.ucmp(O);return this.negative!==0?0|-R:R},o.prototype.ucmp=function(O){if(this.length>O.length)return 1;if(this.length<O.length)return-1;for(var R=0,I=this.length-1;I>=0;I--){var D=0|this.words[I],B=0|O.words[I];if(D!==B){D<B?R=-1:D>B&&(R=1);break}}return R},o.prototype.gtn=function(O){return this.cmpn(O)===1},o.prototype.gt=function(O){return this.cmp(O)===1},o.prototype.gten=function(O){return this.cmpn(O)>=0},o.prototype.gte=function(O){return this.cmp(O)>=0},o.prototype.ltn=function(O){return this.cmpn(O)===-1},o.prototype.lt=function(O){return this.cmp(O)===-1},o.prototype.lten=function(O){return this.cmpn(O)<=0},o.prototype.lte=function(O){return this.cmp(O)<=0},o.prototype.eqn=function(O){return this.cmpn(O)===0},o.prototype.eq=function(O){return this.cmp(O)===0},o.red=function(O){return new q(O)},o.prototype.toRed=function(O){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),O.convertTo(this)._forceRed(O)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(O){return this.red=O,this},o.prototype.forceRed=function(O){return n(!this.red,"Already a number in reduction context"),this._forceRed(O)},o.prototype.redAdd=function(O){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,O)},o.prototype.redIAdd=function(O){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,O)},o.prototype.redSub=function(O){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,O)},o.prototype.redISub=function(O){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,O)},o.prototype.redShl=function(O){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,O)},o.prototype.redMul=function(O){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.mul(this,O)},o.prototype.redIMul=function(O){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,O),this.red.imul(this,O)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(O){return n(this.red&&!O.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,O)};var T={k256:null,p224:null,p192:null,p25519:null};function k(O,R){this.name=O,this.p=new o(R,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function N(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function F(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(O){if(typeof O=="string"){var R=o._prime(O);this.m=R.p,this.prime=R}else n(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}function z(O){q.call(this,O),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var O=new o(null);return O.words=new Array(Math.ceil(this.n/13)),O},k.prototype.ireduce=function(O){var R,I=O;do this.split(I,this.tmp),R=(I=(I=this.imulK(I)).iadd(this.tmp)).bitLength();while(R>this.n);var D=R<this.n?-1:I.ucmp(this.p);return D===0?(I.words[0]=0,I.length=1):D>0?I.isub(this.p):I.strip!==void 0?I.strip():I._strip(),I},k.prototype.split=function(O,R){O.iushrn(this.n,0,R)},k.prototype.imulK=function(O){return O.imul(this.k)},t(M,k),M.prototype.split=function(O,R){for(var I=4194303,D=Math.min(O.length,9),B=0;B<D;B++)R.words[B]=O.words[B];if(R.length=D,O.length<=9)return O.words[0]=0,void(O.length=1);var j=O.words[9];for(R.words[R.length++]=j&I,B=10;B<O.length;B++){var Q=0|O.words[B];O.words[B-10]=(Q&I)<<4|j>>>22,j=Q}j>>>=22,O.words[B-10]=j,j===0&&O.length>10?O.length-=10:O.length-=9},M.prototype.imulK=function(O){O.words[O.length]=0,O.words[O.length+1]=0,O.length+=2;for(var R=0,I=0;I<O.length;I++){var D=0|O.words[I];R+=977*D,O.words[I]=67108863&R,R=64*D+(R/67108864|0)}return O.words[O.length-1]===0&&(O.length--,O.words[O.length-1]===0&&O.length--),O},t(P,k),t(N,k),t(F,k),F.prototype.imulK=function(O){for(var R=0,I=0;I<O.length;I++){var D=19*(0|O.words[I])+R,B=67108863&D;D>>>=26,O.words[I]=B,R=D}return R!==0&&(O.words[O.length++]=R),O},o._prime=function(O){if(T[O])return T[O];var R;if(O==="k256")R=new M;else if(O==="p224")R=new P;else if(O==="p192")R=new N;else{if(O!=="p25519")throw new Error("Unknown prime "+O);R=new F}return T[O]=R,R},q.prototype._verify1=function(O){n(O.negative===0,"red works only with positives"),n(O.red,"red works only with red numbers")},q.prototype._verify2=function(O,R){n((O.negative|R.negative)==0,"red works only with positives"),n(O.red&&O.red===R.red,"red works only with red numbers")},q.prototype.imod=function(O){return this.prime?this.prime.ireduce(O)._forceRed(this):(p(O,O.umod(this.m)._forceRed(this)),O)},q.prototype.neg=function(O){return O.isZero()?O.clone():this.m.sub(O)._forceRed(this)},q.prototype.add=function(O,R){this._verify2(O,R);var I=O.add(R);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},q.prototype.iadd=function(O,R){this._verify2(O,R);var I=O.iadd(R);return I.cmp(this.m)>=0&&I.isub(this.m),I},q.prototype.sub=function(O,R){this._verify2(O,R);var I=O.sub(R);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},q.prototype.isub=function(O,R){this._verify2(O,R);var I=O.isub(R);return I.cmpn(0)<0&&I.iadd(this.m),I},q.prototype.shl=function(O,R){return this._verify1(O),this.imod(O.ushln(R))},q.prototype.imul=function(O,R){return this._verify2(O,R),this.imod(O.imul(R))},q.prototype.mul=function(O,R){return this._verify2(O,R),this.imod(O.mul(R))},q.prototype.isqr=function(O){return this.imul(O,O.clone())},q.prototype.sqr=function(O){return this.mul(O,O)},q.prototype.sqrt=function(O){if(O.isZero())return O.clone();var R=this.m.andln(3);if(n(R%2==1),R===3){var I=this.m.add(new o(1)).iushrn(2);return this.pow(O,I)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);n(!D.isZero());var j=new o(1).toRed(this),Q=j.redNeg(),X=this.m.subn(1).iushrn(1),Z=this.m.bitLength();for(Z=new o(2*Z*Z).toRed(this);this.pow(Z,X).cmp(Q)!==0;)Z.redIAdd(Q);for(var L=this.pow(Z,D),W=this.pow(O,D.addn(1).iushrn(1)),G=this.pow(O,D),J=B;G.cmp(j)!==0;){for(var H=G,U=0;H.cmp(j)!==0;U++)H=H.redSqr();n(U<J);var K=this.pow(L,new o(1).iushln(J-U-1));W=W.redMul(K),L=K.redSqr(),G=G.redMul(L),J=U}return W},q.prototype.invm=function(O){var R=O._invmp(this.m);return R.negative!==0?(R.negative=0,this.imod(R).redNeg()):this.imod(R)},q.prototype.pow=function(O,R){if(R.isZero())return new o(1).toRed(this);if(R.cmpn(1)===0)return O.clone();var I=new Array(16);I[0]=new o(1).toRed(this),I[1]=O;for(var D=2;D<I.length;D++)I[D]=this.mul(I[D-1],O);var B=I[0],j=0,Q=0,X=R.bitLength()%26;for(X===0&&(X=26),D=R.length-1;D>=0;D--){for(var Z=R.words[D],L=X-1;L>=0;L--){var W=Z>>L&1;B!==I[0]&&(B=this.sqr(B)),W!==0||j!==0?(j<<=1,j|=W,(++Q==4||D===0&&L===0)&&(B=this.mul(B,I[j]),Q=0,j=0)):Q=0}X=26}return B},q.prototype.convertTo=function(O){var R=O.umod(this.m);return R===O?R.clone():R},q.prototype.convertFrom=function(O){var R=O.clone();return R.red=null,R},o.mont=function(O){return new z(O)},t(z,q),z.prototype.convertTo=function(O){return this.imod(O.ushln(this.shift))},z.prototype.convertFrom=function(O){var R=this.imod(O.mul(this.rinv));return R.red=null,R},z.prototype.imul=function(O,R){if(O.isZero()||R.isZero())return O.words[0]=0,O.length=1,O;var I=O.imul(R),D=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=I.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},z.prototype.mul=function(O,R){if(O.isZero()||R.isZero())return new o(0)._forceRed(this);var I=O.mul(R),D=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=I.isub(D).iushrn(this.shift),j=B;return B.cmp(this.m)>=0?j=B.isub(this.m):B.cmpn(0)<0&&(j=B.iadd(this.m)),j._forceRed(this)},z.prototype.invm=function(O){return this.imod(O._invmp(this.m).mul(this.r2))._forceRed(this)}})(r)},2202:(r,s,i)=>{var f,e=i(8847)(i(3355));function l(t){this.rand=t}if(r.exports=function(t){return f||(f=new l(null)),f.generate(t)},r.exports.Rand=l,l.prototype.generate=function(t){return this._rand(t)},l.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var o=new Uint8Array(t),d=0;d<o.length;d++)o[d]=this.rand.getByte();return o},(typeof self>"u"?"undefined":(0,e.default)(self))==="object")self.crypto&&self.crypto.getRandomValues?l.prototype._rand=function(t){var o=new Uint8Array(t);return self.crypto.getRandomValues(o),o}:self.msCrypto&&self.msCrypto.getRandomValues?l.prototype._rand=function(t){var o=new Uint8Array(t);return self.msCrypto.getRandomValues(o),o}:(typeof window>"u"?"undefined":(0,e.default)(window))==="object"&&(l.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=i(9214);if(typeof n.randomBytes!="function")throw new Error("Not supported");l.prototype._rand=function(t){return n.randomBytes(t)}}catch{}},7494:(r,s,i)=>{var f=i(8850).Buffer;function e(u){f.isBuffer(u)||(u=f.from(u));for(var c=u.length/4|0,g=new Array(c),p=0;p<c;p++)g[p]=u.readUInt32BE(4*p);return g}function l(u){for(;0<u.length;u++)u[0]=0}function n(u,c,g,p,v){for(var y,b,A,x,E=g[0],S=g[1],C=g[2],T=g[3],k=u[0]^c[0],M=u[1]^c[1],P=u[2]^c[2],N=u[3]^c[3],F=4,q=1;q<v;q++)y=E[k>>>24]^S[M>>>16&255]^C[P>>>8&255]^T[255&N]^c[F++],b=E[M>>>24]^S[P>>>16&255]^C[N>>>8&255]^T[255&k]^c[F++],A=E[P>>>24]^S[N>>>16&255]^C[k>>>8&255]^T[255&M]^c[F++],x=E[N>>>24]^S[k>>>16&255]^C[M>>>8&255]^T[255&P]^c[F++],k=y,M=b,P=A,N=x;return y=(p[k>>>24]<<24|p[M>>>16&255]<<16|p[P>>>8&255]<<8|p[255&N])^c[F++],b=(p[M>>>24]<<24|p[P>>>16&255]<<16|p[N>>>8&255]<<8|p[255&k])^c[F++],A=(p[P>>>24]<<24|p[N>>>16&255]<<16|p[k>>>8&255]<<8|p[255&M])^c[F++],x=(p[N>>>24]<<24|p[k>>>16&255]<<16|p[M>>>8&255]<<8|p[255&P])^c[F++],[y>>>=0,b>>>=0,A>>>=0,x>>>=0]}var t=[0,1,2,4,8,16,32,64,128,27,54],o=function(){for(var u=new Array(256),c=0;c<256;c++)u[c]=c<128?c<<1:c<<1^283;for(var g=[],p=[],v=[[],[],[],[]],y=[[],[],[],[]],b=0,A=0,x=0;x<256;++x){var E=A^A<<1^A<<2^A<<3^A<<4;E=E>>>8^255&E^99,g[b]=E,p[E]=b;var S=u[b],C=u[S],T=u[C],k=257*u[E]^16843008*E;v[0][b]=k<<24|k>>>8,v[1][b]=k<<16|k>>>16,v[2][b]=k<<8|k>>>24,v[3][b]=k,k=16843009*T^65537*C^257*S^16843008*b,y[0][E]=k<<24|k>>>8,y[1][E]=k<<16|k>>>16,y[2][E]=k<<8|k>>>24,y[3][E]=k,b===0?b=A=1:(b=S^u[u[u[T^S]]],A^=u[u[A]])}return{SBOX:g,INV_SBOX:p,SUB_MIX:v,INV_SUB_MIX:y}}();function d(u){this._key=e(u),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var u=this._key,c=u.length,g=c+6,p=4*(g+1),v=[],y=0;y<c;y++)v[y]=u[y];for(y=c;y<p;y++){var b=v[y-1];y%c==0?(b=b<<8|b>>>24,b=o.SBOX[b>>>24]<<24|o.SBOX[b>>>16&255]<<16|o.SBOX[b>>>8&255]<<8|o.SBOX[255&b],b^=t[y/c|0]<<24):c>6&&y%c==4&&(b=o.SBOX[b>>>24]<<24|o.SBOX[b>>>16&255]<<16|o.SBOX[b>>>8&255]<<8|o.SBOX[255&b]),v[y]=v[y-c]^b}for(var A=[],x=0;x<p;x++){var E=p-x,S=v[E-(x%4?0:4)];A[x]=x<4||E<=4?S:o.INV_SUB_MIX[0][o.SBOX[S>>>24]]^o.INV_SUB_MIX[1][o.SBOX[S>>>16&255]]^o.INV_SUB_MIX[2][o.SBOX[S>>>8&255]]^o.INV_SUB_MIX[3][o.SBOX[255&S]]}this._nRounds=g,this._keySchedule=v,this._invKeySchedule=A},d.prototype.encryptBlockRaw=function(u){return n(u=e(u),this._keySchedule,o.SUB_MIX,o.SBOX,this._nRounds)},d.prototype.encryptBlock=function(u){var c=this.encryptBlockRaw(u),g=f.allocUnsafe(16);return g.writeUInt32BE(c[0],0),g.writeUInt32BE(c[1],4),g.writeUInt32BE(c[2],8),g.writeUInt32BE(c[3],12),g},d.prototype.decryptBlock=function(u){var c=(u=e(u))[1];u[1]=u[3],u[3]=c;var g=n(u,this._invKeySchedule,o.INV_SUB_MIX,o.INV_SBOX,this._nRounds),p=f.allocUnsafe(16);return p.writeUInt32BE(g[0],0),p.writeUInt32BE(g[3],4),p.writeUInt32BE(g[2],8),p.writeUInt32BE(g[1],12),p},d.prototype.scrub=function(){l(this._keySchedule),l(this._invKeySchedule),l(this._key)},r.exports.AES=d},426:(r,s,i)=>{var f=i(7494),e=i(8850).Buffer,l=i(3013),n=i(1736),t=i(6626),o=i(6316),d=i(7557);function u(c,g,p,v){l.call(this);var y=e.alloc(4,0);this._cipher=new f.AES(g);var b=this._cipher.encryptBlock(y);this._ghash=new t(b),p=function(A,x,E){if(x.length===12)return A._finID=e.concat([x,e.from([0,0,0,1])]),e.concat([x,e.from([0,0,0,2])]);var S=new t(E),C=x.length,T=C%16;S.update(x),T&&(T=16-T,S.update(e.alloc(T,0))),S.update(e.alloc(8,0));var k=8*C,M=e.alloc(8);M.writeUIntBE(k,0,8),S.update(M),A._finID=S.state;var P=e.from(A._finID);return d(P),P}(this,p,b),this._prev=e.from(p),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=v,this._alen=0,this._len=0,this._mode=c,this._authTag=null,this._called=!1}n(u,l),u.prototype._update=function(c){if(!this._called&&this._alen){var g=16-this._alen%16;g<16&&(g=e.alloc(g,0),this._ghash.update(g))}this._called=!0;var p=this._mode.encrypt(this,c);return this._decrypt?this._ghash.update(c):this._ghash.update(p),this._len+=c.length,p},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var c=o(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(g,p){var v=0;g.length!==p.length&&v++;for(var y=Math.min(g.length,p.length),b=0;b<y;++b)v+=g[b]^p[b];return v}(c,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=c,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!e.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(c){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=c},u.prototype.setAAD=function(c){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(c),this._alen+=c.length},r.exports=u},8073:(r,s,i)=>{var f=i(5478),e=i(2184),l=i(4946);s.createCipher=s.Cipher=f.createCipher,s.createCipheriv=s.Cipheriv=f.createCipheriv,s.createDecipher=s.Decipher=e.createDecipher,s.createDecipheriv=s.Decipheriv=e.createDecipheriv,s.listCiphers=s.getCiphers=function(){return Object.keys(l)}},2184:(r,s,i)=>{var f=i(426),e=i(8850).Buffer,l=i(8408),n=i(1408),t=i(3013),o=i(7494),d=i(7085);function u(p,v,y){t.call(this),this._cache=new c,this._last=void 0,this._cipher=new o.AES(v),this._prev=e.from(y),this._mode=p,this._autopadding=!0}function c(){this.cache=e.allocUnsafe(0)}function g(p,v,y){var b=l[p.toLowerCase()];if(!b)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=e.from(y)),b.mode!=="GCM"&&y.length!==b.iv)throw new TypeError("invalid iv length "+y.length);if(typeof v=="string"&&(v=e.from(v)),v.length!==b.key/8)throw new TypeError("invalid key length "+v.length);return b.type==="stream"?new n(b.module,v,y,!0):b.type==="auth"?new f(b.module,v,y,!0):new u(b.module,v,y)}i(1736)(u,t),u.prototype._update=function(p){var v,y;this._cache.add(p);for(var b=[];v=this._cache.get(this._autopadding);)y=this._mode.decrypt(this,v),b.push(y);return e.concat(b)},u.prototype._final=function(){var p=this._cache.flush();if(this._autopadding)return function(v){var y=v[15];if(y<1||y>16)throw new Error("unable to decrypt data");for(var b=-1;++b<y;)if(v[b+(16-y)]!==y)throw new Error("unable to decrypt data");if(y!==16)return v.slice(0,16-y)}(this._mode.decrypt(this,p));if(p)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(p){return this._autopadding=!!p,this},c.prototype.add=function(p){this.cache=e.concat([this.cache,p])},c.prototype.get=function(p){var v;if(p){if(this.cache.length>16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v}else if(this.cache.length>=16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v;return null},c.prototype.flush=function(){if(this.cache.length)return this.cache},s.createDecipher=function(p,v){var y=l[p.toLowerCase()];if(!y)throw new TypeError("invalid suite type");var b=d(v,!1,y.key,y.iv);return g(p,b.key,b.iv)},s.createDecipheriv=g},5478:(r,s,i)=>{var f=i(8408),e=i(426),l=i(8850).Buffer,n=i(1408),t=i(3013),o=i(7494),d=i(7085);function u(v,y,b){t.call(this),this._cache=new g,this._cipher=new o.AES(y),this._prev=l.from(b),this._mode=v,this._autopadding=!0}i(1736)(u,t),u.prototype._update=function(v){var y,b;this._cache.add(v);for(var A=[];y=this._cache.get();)b=this._mode.encrypt(this,y),A.push(b);return l.concat(A)};var c=l.alloc(16,16);function g(){this.cache=l.allocUnsafe(0)}function p(v,y,b){var A=f[v.toLowerCase()];if(!A)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=l.from(y)),y.length!==A.key/8)throw new TypeError("invalid key length "+y.length);if(typeof b=="string"&&(b=l.from(b)),A.mode!=="GCM"&&b.length!==A.iv)throw new TypeError("invalid iv length "+b.length);return A.type==="stream"?new n(A.module,y,b):A.type==="auth"?new e(A.module,y,b):new u(A.module,y,b)}u.prototype._final=function(){var v=this._cache.flush();if(this._autopadding)return v=this._mode.encrypt(this,v),this._cipher.scrub(),v;if(!v.equals(c))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(v){return this._autopadding=!!v,this},g.prototype.add=function(v){this.cache=l.concat([this.cache,v])},g.prototype.get=function(){if(this.cache.length>15){var v=this.cache.slice(0,16);return this.cache=this.cache.slice(16),v}return null},g.prototype.flush=function(){for(var v=16-this.cache.length,y=l.allocUnsafe(v),b=-1;++b<v;)y.writeUInt8(v,b);return l.concat([this.cache,y])},s.createCipheriv=p,s.createCipher=function(v,y){var b=f[v.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var A=d(y,!1,b.key,b.iv);return p(v,A.key,A.iv)}},6626:(r,s,i)=>{var f=i(8850).Buffer,e=f.alloc(16,0);function l(t){var o=f.allocUnsafe(16);return o.writeUInt32BE(t[0]>>>0,0),o.writeUInt32BE(t[1]>>>0,4),o.writeUInt32BE(t[2]>>>0,8),o.writeUInt32BE(t[3]>>>0,12),o}function n(t){this.h=t,this.state=f.alloc(16,0),this.cache=f.allocUnsafe(0)}n.prototype.ghash=function(t){for(var o=-1;++o<t.length;)this.state[o]^=t[o];this._multiply()},n.prototype._multiply=function(){for(var t,o,d,u=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],c=[0,0,0,0],g=-1;++g<128;){for(this.state[~~(g/8)]&1<<7-g%8&&(c[0]^=u[0],c[1]^=u[1],c[2]^=u[2],c[3]^=u[3]),d=(1&u[3])!=0,o=3;o>0;o--)u[o]=u[o]>>>1|(1&u[o-1])<<31;u[0]=u[0]>>>1,d&&(u[0]=u[0]^-520093696)}this.state=l(c)},n.prototype.update=function(t){var o;for(this.cache=f.concat([this.cache,t]);this.cache.length>=16;)o=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(o)},n.prototype.final=function(t,o){return this.cache.length&&this.ghash(f.concat([this.cache,e],16)),this.ghash(l([0,t,0,o])),this.state},r.exports=n},7557:r=>{r.exports=function(s){for(var i,f=s.length;f--;){if((i=s.readUInt8(f))!==255){i++,s.writeUInt8(i,f);break}s.writeUInt8(0,f)}}},7427:(r,s,i)=>{var f=i(6316);s.encrypt=function(e,l){var n=f(l,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},s.decrypt=function(e,l){var n=e._prev;e._prev=l;var t=e._cipher.decryptBlock(l);return f(t,n)}},4030:(r,s,i)=>{var f=i(8850).Buffer,e=i(6316);function l(n,t,o){var d=t.length,u=e(t,n._cache);return n._cache=n._cache.slice(d),n._prev=f.concat([n._prev,o?t:u]),u}s.encrypt=function(n,t,o){for(var d,u=f.allocUnsafe(0);t.length;){if(n._cache.length===0&&(n._cache=n._cipher.encryptBlock(n._prev),n._prev=f.allocUnsafe(0)),!(n._cache.length<=t.length)){u=f.concat([u,l(n,t,o)]);break}d=n._cache.length,u=f.concat([u,l(n,t.slice(0,d),o)]),t=t.slice(d)}return u}},3206:(r,s,i)=>{var f=i(8850).Buffer;function e(n,t,o){for(var d,u,c=-1,g=0;++c<8;)d=t&1<<7-c?128:0,g+=(128&(u=n._cipher.encryptBlock(n._prev)[0]^d))>>c%8,n._prev=l(n._prev,o?d:u);return g}function l(n,t){var o=n.length,d=-1,u=f.allocUnsafe(n.length);for(n=f.concat([n,f.from([t])]);++d<o;)u[d]=n[d]<<1|n[d+1]>>7;return u}s.encrypt=function(n,t,o){for(var d=t.length,u=f.allocUnsafe(d),c=-1;++c<d;)u[c]=e(n,t[c],o);return u}},4726:(r,s,i)=>{var f=i(8850).Buffer;function e(l,n,t){var o=l._cipher.encryptBlock(l._prev)[0]^n;return l._prev=f.concat([l._prev.slice(1),f.from([t?n:o])]),o}s.encrypt=function(l,n,t){for(var o=n.length,d=f.allocUnsafe(o),u=-1;++u<o;)d[u]=e(l,n[u],t);return d}},2802:(r,s,i)=>{var f=i(6316),e=i(8850).Buffer,l=i(7557);function n(t){var o=t._cipher.encryptBlockRaw(t._prev);return l(t._prev),o}s.encrypt=function(t,o){var d=Math.ceil(o.length/16),u=t._cache.length;t._cache=e.concat([t._cache,e.allocUnsafe(16*d)]);for(var c=0;c<d;c++){var g=n(t),p=u+16*c;t._cache.writeUInt32BE(g[0],p+0),t._cache.writeUInt32BE(g[1],p+4),t._cache.writeUInt32BE(g[2],p+8),t._cache.writeUInt32BE(g[3],p+12)}var v=t._cache.slice(0,o.length);return t._cache=t._cache.slice(o.length),f(o,v)}},9297:(r,s)=>{s.encrypt=function(i,f){return i._cipher.encryptBlock(f)},s.decrypt=function(i,f){return i._cipher.decryptBlock(f)}},8408:(r,s,i)=>{var f={ECB:i(9297),CBC:i(7427),CFB:i(4030),CFB8:i(4726),CFB1:i(3206),OFB:i(1962),CTR:i(2802),GCM:i(2802)},e=i(4946);for(var l in e)e[l].module=f[e[l].mode];r.exports=e},1962:(r,s,i)=>{var f=i(9033).Buffer,e=i(6316);function l(n){return n._prev=n._cipher.encryptBlock(n._prev),n._prev}s.encrypt=function(n,t){for(;n._cache.length<t.length;)n._cache=f.concat([n._cache,l(n)]);var o=n._cache.slice(0,t.length);return n._cache=n._cache.slice(t.length),e(t,o)}},1408:(r,s,i)=>{var f=i(7494),e=i(8850).Buffer,l=i(3013);function n(t,o,d,u){l.call(this),this._cipher=new f.AES(o),this._prev=e.from(d),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=u,this._mode=t}i(1736)(n,l),n.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},r.exports=n},6805:(r,s,i)=>{var f=i(9120),e=i(8073),l=i(8408),n=i(867),t=i(7085);function o(u,c,g){if(u=u.toLowerCase(),l[u])return e.createCipheriv(u,c,g);if(n[u])return new f({key:c,iv:g,mode:u});throw new TypeError("invalid suite type")}function d(u,c,g){if(u=u.toLowerCase(),l[u])return e.createDecipheriv(u,c,g);if(n[u])return new f({key:c,iv:g,mode:u,decrypt:!0});throw new TypeError("invalid suite type")}s.createCipher=s.Cipher=function(u,c){var g,p;if(u=u.toLowerCase(),l[u])g=l[u].key,p=l[u].iv;else{if(!n[u])throw new TypeError("invalid suite type");g=8*n[u].key,p=n[u].iv}var v=t(c,!1,g,p);return o(u,v.key,v.iv)},s.createCipheriv=s.Cipheriv=o,s.createDecipher=s.Decipher=function(u,c){var g,p;if(u=u.toLowerCase(),l[u])g=l[u].key,p=l[u].iv;else{if(!n[u])throw new TypeError("invalid suite type");g=8*n[u].key,p=n[u].iv}var v=t(c,!1,g,p);return d(u,v.key,v.iv)},s.createDecipheriv=s.Decipheriv=d,s.listCiphers=s.getCiphers=function(){return Object.keys(n).concat(e.getCiphers())}},9120:(r,s,i)=>{var f=i(3013),e=i(5626),l=i(1736),n=i(8850).Buffer,t={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function o(d){f.call(this);var u,c=d.mode.toLowerCase(),g=t[c];u=d.decrypt?"decrypt":"encrypt";var p=d.key;n.isBuffer(p)||(p=n.from(p)),c!=="des-ede"&&c!=="des-ede-cbc"||(p=n.concat([p,p.slice(0,8)]));var v=d.iv;n.isBuffer(v)||(v=n.from(v)),this._des=g.create({key:p,iv:v,type:u})}t.des=t["des-cbc"],t.des3=t["des-ede3-cbc"],r.exports=o,l(o,f),o.prototype._update=function(d){return n.from(this._des.update(d))},o.prototype._final=function(){return n.from(this._des.final())}},867:(r,s)=>{s["des-ecb"]={key:8,iv:0},s["des-cbc"]=s.des={key:8,iv:8},s["des-ede3-cbc"]=s.des3={key:24,iv:8},s["des-ede3"]={key:24,iv:0},s["des-ede-cbc"]={key:16,iv:8},s["des-ede"]={key:16,iv:0}},9782:(r,s,i)=>{var f=i(9033).Buffer,e=i(1734),l=i(5010);function n(o){var d,u=o.modulus.byteLength();do d=new e(l(u));while(d.cmp(o.modulus)>=0||!d.umod(o.prime1)||!d.umod(o.prime2));return d}function t(o,d){var u=function(C){var T=n(C);return{blinder:T.toRed(e.mont(C.modulus)).redPow(new e(C.publicExponent)).fromRed(),unblinder:T.invm(C.modulus)}}(d),c=d.modulus.byteLength(),g=new e(o).mul(u.blinder).umod(d.modulus),p=g.toRed(e.mont(d.prime1)),v=g.toRed(e.mont(d.prime2)),y=d.coefficient,b=d.prime1,A=d.prime2,x=p.redPow(d.exponent1).fromRed(),E=v.redPow(d.exponent2).fromRed(),S=x.isub(E).imul(y).umod(b).imul(A);return E.iadd(S).imul(u.unblinder).umod(d.modulus).toArrayLike(f,"be",c)}t.getr=n,r.exports=t},6561:(r,s,i)=>{r.exports=i(5207)},9527:(r,s,i)=>{var f=i(8850).Buffer,e=i(5866),l=i(6505),n=i(1736),t=i(1628),o=i(5410),d=i(5207);function u(v){l.Writable.call(this);var y=d[v];if(!y)throw new Error("Unknown message digest");this._hashType=y.hash,this._hash=e(y.hash),this._tag=y.id,this._signType=y.sign}function c(v){l.Writable.call(this);var y=d[v];if(!y)throw new Error("Unknown message digest");this._hash=e(y.hash),this._tag=y.id,this._signType=y.sign}function g(v){return new u(v)}function p(v){return new c(v)}Object.keys(d).forEach(function(v){d[v].id=f.from(d[v].id,"hex"),d[v.toLowerCase()]=d[v]}),n(u,l.Writable),u.prototype._write=function(v,y,b){this._hash.update(v),b()},u.prototype.update=function(v,y){return typeof v=="string"&&(v=f.from(v,y)),this._hash.update(v),this},u.prototype.sign=function(v,y){this.end();var b=this._hash.digest(),A=t(b,v,this._hashType,this._signType,this._tag);return y?A.toString(y):A},n(c,l.Writable),c.prototype._write=function(v,y,b){this._hash.update(v),b()},c.prototype.update=function(v,y){return typeof v=="string"&&(v=f.from(v,y)),this._hash.update(v),this},c.prototype.verify=function(v,y,b){typeof y=="string"&&(y=f.from(y,b)),this.end();var A=this._hash.digest();return o(y,A,v,this._signType,this._tag)},r.exports={Sign:g,Verify:p,createSign:g,createVerify:p}},1628:(r,s,i)=>{var f=i(8850).Buffer,e=i(4424),l=i(9782),n=i(6597).ec,t=i(1734),o=i(7552),d=i(1308);function u(v,y,b,A){if((v=f.from(v.toArray())).length<y.byteLength()){var x=f.alloc(y.byteLength()-v.length);v=f.concat([x,v])}var E=b.length,S=function(k,M){k=(k=c(k,M)).mod(M);var P=f.from(k.toArray());if(P.length<M.byteLength()){var N=f.alloc(M.byteLength()-P.length);P=f.concat([N,P])}return P}(b,y),C=f.alloc(E);C.fill(1);var T=f.alloc(E);return T=e(A,T).update(C).update(f.from([0])).update(v).update(S).digest(),C=e(A,T).update(C).digest(),{k:T=e(A,T).update(C).update(f.from([1])).update(v).update(S).digest(),v:C=e(A,T).update(C).digest()}}function c(v,y){var b=new t(v),A=(v.length<<3)-y.bitLength();return A>0&&b.ishrn(A),b}function g(v,y,b){var A,x;do{for(A=f.alloc(0);8*A.length<v.bitLength();)y.v=e(b,y.k).update(y.v).digest(),A=f.concat([A,y.v]);x=c(A,v),y.k=e(b,y.k).update(y.v).update(f.from([0])).digest(),y.v=e(b,y.k).update(y.v).digest()}while(x.cmp(v)!==-1);return x}function p(v,y,b,A){return v.toRed(t.mont(b)).redPow(y).fromRed().mod(A)}r.exports=function(v,y,b,A,x){var E=o(y);if(E.curve){if(A!=="ecdsa"&&A!=="ecdsa/rsa")throw new Error("wrong private key type");return function(k,M){var P=d[M.curve.join(".")];if(!P)throw new Error("unknown curve "+M.curve.join("."));var N=new n(P).keyFromPrivate(M.privateKey).sign(k);return f.from(N.toDER())}(v,E)}if(E.type==="dsa"){if(A!=="dsa")throw new Error("wrong private key type");return function(k,M,P){for(var N,F=M.params.priv_key,q=M.params.p,z=M.params.q,O=M.params.g,R=new t(0),I=c(k,z).mod(z),D=!1,B=u(F,z,k,P);D===!1;)R=p(O,N=g(z,B,P),q,z),(D=N.invm(z).imul(I.add(F.mul(R))).mod(z)).cmpn(0)===0&&(D=!1,R=new t(0));return function(j,Q){j=j.toArray(),Q=Q.toArray(),128&j[0]&&(j=[0].concat(j)),128&Q[0]&&(Q=[0].concat(Q));var X=[48,j.length+Q.length+4,2,j.length];return X=X.concat(j,[2,Q.length],Q),f.from(X)}(R,D)}(v,E,b)}if(A!=="rsa"&&A!=="ecdsa/rsa")throw new Error("wrong private key type");v=f.concat([x,v]);for(var S=E.modulus.byteLength(),C=[0,1];v.length+C.length+1<S;)C.push(255);C.push(0);for(var T=-1;++T<v.length;)C.push(v[T]);return l(C,E)},r.exports.getKey=u,r.exports.makeKey=g},5410:(r,s,i)=>{var f=i(8850).Buffer,e=i(1734),l=i(6597).ec,n=i(7552),t=i(1308);function o(d,u){if(d.cmpn(0)<=0)throw new Error("invalid sig");if(d.cmp(u)>=u)throw new Error("invalid sig")}r.exports=function(d,u,c,g,p){var v=n(c);if(v.type==="ec"){if(g!=="ecdsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");return function(C,T,k){var M=t[k.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+k.data.algorithm.curve.join("."));var P=new l(M),N=k.data.subjectPrivateKey.data;return P.verify(T,C,N)}(d,u,v)}if(v.type==="dsa"){if(g!=="dsa")throw new Error("wrong public key type");return function(C,T,k){var M=k.data.p,P=k.data.q,N=k.data.g,F=k.data.pub_key,q=n.signature.decode(C,"der"),z=q.s,O=q.r;o(z,P),o(O,P);var R=e.mont(M),I=z.invm(P);return N.toRed(R).redPow(new e(T).mul(I).mod(P)).fromRed().mul(F.toRed(R).redPow(O.mul(I).mod(P)).fromRed()).mod(M).mod(P).cmp(O)===0}(d,u,v)}if(g!=="rsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");u=f.concat([p,u]);for(var y=v.modulus.byteLength(),b=[1],A=0;u.length+b.length+2<y;)b.push(255),A++;b.push(0);for(var x=-1;++x<u.length;)b.push(u[x]);b=f.from(b);var E=e.mont(v.modulus);d=(d=new e(d).toRed(E)).redPow(new e(v.publicExponent)),d=f.from(d.fromRed().toArray());var S=A<8?1:0;for(y=Math.min(d.length,b.length),d.length!==b.length&&(S=1),x=-1;++x<y;)S|=d[x]^b[x];return S===0}},6316:(r,s,i)=>{var f=i(9033).Buffer;r.exports=function(e,l){for(var n=Math.min(e.length,l.length),t=new f(n),o=0;o<n;++o)t[o]=e[o]^l[o];return t}},9033:(r,s,i)=>{var f=i(4919),e=i(3226),l=i(9484);function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(H,U){if(n()<U)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(H=new Uint8Array(U)).__proto__=o.prototype:(H===null&&(H=new o(U)),H.length=U),H}function o(H,U,K){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(H,U,K);if(typeof H=="number"){if(typeof U=="string")throw new Error("If encoding is specified then the first argument must be a string");return c(this,H)}return d(this,H,U,K)}function d(H,U,K,te){if(typeof U=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&U instanceof ArrayBuffer?function(ee,ie,se,ne){if(ie.byteLength,se<0||ie.byteLength<se)throw new RangeError("'offset' is out of bounds");if(ie.byteLength<se+(ne||0))throw new RangeError("'length' is out of bounds");return ie=se===void 0&&ne===void 0?new Uint8Array(ie):ne===void 0?new Uint8Array(ie,se):new Uint8Array(ie,se,ne),o.TYPED_ARRAY_SUPPORT?(ee=ie).__proto__=o.prototype:ee=g(ee,ie),ee}(H,U,K,te):typeof U=="string"?function(ee,ie,se){if(typeof se=="string"&&se!==""||(se="utf8"),!o.isEncoding(se))throw new TypeError('"encoding" must be a valid string encoding');var ne=0|v(ie,se),re=(ee=t(ee,ne)).write(ie,se);return re!==ne&&(ee=ee.slice(0,re)),ee}(H,U,K):function(ee,ie){if(o.isBuffer(ie)){var se=0|p(ie.length);return(ee=t(ee,se)).length===0||ie.copy(ee,0,0,se),ee}if(ie){if(typeof ArrayBuffer<"u"&&ie.buffer instanceof ArrayBuffer||"length"in ie)return typeof ie.length!="number"||(ne=ie.length)!=ne?t(ee,0):g(ee,ie);if(ie.type==="Buffer"&&l(ie.data))return g(ee,ie.data)}var ne;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(H,U)}function u(H){if(typeof H!="number")throw new TypeError('"size" argument must be a number');if(H<0)throw new RangeError('"size" argument must not be negative')}function c(H,U){if(u(U),H=t(H,U<0?0:0|p(U)),!o.TYPED_ARRAY_SUPPORT)for(var K=0;K<U;++K)H[K]=0;return H}function g(H,U){var K=U.length<0?0:0|p(U.length);H=t(H,K);for(var te=0;te<K;te+=1)H[te]=255&U[te];return H}function p(H){if(H>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|H}function v(H,U){if(o.isBuffer(H))return H.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(H)||H instanceof ArrayBuffer))return H.byteLength;typeof H!="string"&&(H=""+H);var K=H.length;if(K===0)return 0;for(var te=!1;;)switch(U){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":case void 0:return W(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*K;case"hex":return K>>>1;case"base64":return G(H).length;default:if(te)return W(H).length;U=(""+U).toLowerCase(),te=!0}}function y(H,U,K){var te=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((K===void 0||K>this.length)&&(K=this.length),K<=0)||(K>>>=0)<=(U>>>=0))return"";for(H||(H="utf8");;)switch(H){case"hex":return O(this,U,K);case"utf8":case"utf-8":return N(this,U,K);case"ascii":return q(this,U,K);case"latin1":case"binary":return z(this,U,K);case"base64":return P(this,U,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,U,K);default:if(te)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),te=!0}}function b(H,U,K){var te=H[U];H[U]=H[K],H[K]=te}function A(H,U,K,te,ee){if(H.length===0)return-1;if(typeof K=="string"?(te=K,K=0):K>2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,isNaN(K)&&(K=ee?0:H.length-1),K<0&&(K=H.length+K),K>=H.length){if(ee)return-1;K=H.length-1}else if(K<0){if(!ee)return-1;K=0}if(typeof U=="string"&&(U=o.from(U,te)),o.isBuffer(U))return U.length===0?-1:x(H,U,K,te,ee);if(typeof U=="number")return U&=255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(H,U,K):Uint8Array.prototype.lastIndexOf.call(H,U,K):x(H,[U],K,te,ee);throw new TypeError("val must be string, number or Buffer")}function x(H,U,K,te,ee){var ie,se=1,ne=H.length,re=U.length;if(te!==void 0&&((te=String(te).toLowerCase())==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(H.length<2||U.length<2)return-1;se=2,ne/=2,re/=2,K/=2}function Y(ce,he){return se===1?ce[he]:ce.readUInt16BE(he*se)}if(ee){var V=-1;for(ie=K;ie<ne;ie++)if(Y(H,ie)===Y(U,V===-1?0:ie-V)){if(V===-1&&(V=ie),ie-V+1===re)return V*se}else V!==-1&&(ie-=ie-V),V=-1}else for(K+re>ne&&(K=ne-re),ie=K;ie>=0;ie--){for(var oe=!0,fe=0;fe<re;fe++)if(Y(H,ie+fe)!==Y(U,fe)){oe=!1;break}if(oe)return ie}return-1}function E(H,U,K,te){K=Number(K)||0;var ee=H.length-K;te?(te=Number(te))>ee&&(te=ee):te=ee;var ie=U.length;if(ie%2!=0)throw new TypeError("Invalid hex string");te>ie/2&&(te=ie/2);for(var se=0;se<te;++se){var ne=parseInt(U.substr(2*se,2),16);if(isNaN(ne))return se;H[K+se]=ne}return se}function S(H,U,K,te){return J(W(U,H.length-K),H,K,te)}function C(H,U,K,te){return J(function(ee){for(var ie=[],se=0;se<ee.length;++se)ie.push(255&ee.charCodeAt(se));return ie}(U),H,K,te)}function T(H,U,K,te){return C(H,U,K,te)}function k(H,U,K,te){return J(G(U),H,K,te)}function M(H,U,K,te){return J(function(ee,ie){for(var se,ne,re,Y=[],V=0;V<ee.length&&!((ie-=2)<0);++V)ne=(se=ee.charCodeAt(V))>>8,re=se%256,Y.push(re),Y.push(ne);return Y}(U,H.length-K),H,K,te)}function P(H,U,K){return U===0&&K===H.length?f.fromByteArray(H):f.fromByteArray(H.slice(U,K))}function N(H,U,K){K=Math.min(H.length,K);for(var te=[],ee=U;ee<K;){var ie,se,ne,re,Y=H[ee],V=null,oe=Y>239?4:Y>223?3:Y>191?2:1;if(ee+oe<=K)switch(oe){case 1:Y<128&&(V=Y);break;case 2:(192&(ie=H[ee+1]))==128&&(re=(31&Y)<<6|63&ie)>127&&(V=re);break;case 3:ie=H[ee+1],se=H[ee+2],(192&ie)==128&&(192&se)==128&&(re=(15&Y)<<12|(63&ie)<<6|63&se)>2047&&(re<55296||re>57343)&&(V=re);break;case 4:ie=H[ee+1],se=H[ee+2],ne=H[ee+3],(192&ie)==128&&(192&se)==128&&(192&ne)==128&&(re=(15&Y)<<18|(63&ie)<<12|(63&se)<<6|63&ne)>65535&&re<1114112&&(V=re)}V===null?(V=65533,oe=1):V>65535&&(V-=65536,te.push(V>>>10&1023|55296),V=56320|1023&V),te.push(V),ee+=oe}return function(fe){var ce=fe.length;if(ce<=F)return String.fromCharCode.apply(String,fe);for(var he="",le=0;le<ce;)he+=String.fromCharCode.apply(String,fe.slice(le,le+=F));return he}(te)}s.Buffer=o,s.SlowBuffer=function(H){return+H!=H&&(H=0),o.alloc(+H)},s.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=i.g.TYPED_ARRAY_SUPPORT!==void 0?i.g.TYPED_ARRAY_SUPPORT:function(){try{var H=new Uint8Array(1);return H.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},H.foo()===42&&typeof H.subarray=="function"&&H.subarray(1,1).byteLength===0}catch{return!1}}(),s.kMaxLength=n(),o.poolSize=8192,o._augment=function(H){return H.__proto__=o.prototype,H},o.from=function(H,U,K){return d(null,H,U,K)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(H,U,K){return function(te,ee,ie,se){return u(ee),ee<=0?t(te,ee):ie!==void 0?typeof se=="string"?t(te,ee).fill(ie,se):t(te,ee).fill(ie):t(te,ee)}(null,H,U,K)},o.allocUnsafe=function(H){return c(null,H)},o.allocUnsafeSlow=function(H){return c(null,H)},o.isBuffer=function(H){return!(H==null||!H._isBuffer)},o.compare=function(H,U){if(!o.isBuffer(H)||!o.isBuffer(U))throw new TypeError("Arguments must be Buffers");if(H===U)return 0;for(var K=H.length,te=U.length,ee=0,ie=Math.min(K,te);ee<ie;++ee)if(H[ee]!==U[ee]){K=H[ee],te=U[ee];break}return K<te?-1:te<K?1:0},o.isEncoding=function(H){switch(String(H).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}},o.concat=function(H,U){if(!l(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return o.alloc(0);var K;if(U===void 0)for(U=0,K=0;K<H.length;++K)U+=H[K].length;var te=o.allocUnsafe(U),ee=0;for(K=0;K<H.length;++K){var ie=H[K];if(!o.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(te,ee),ee+=ie.length}return te},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var H=this.length;if(H%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var U=0;U<H;U+=2)b(this,U,U+1);return this},o.prototype.swap32=function(){var H=this.length;if(H%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var U=0;U<H;U+=4)b(this,U,U+3),b(this,U+1,U+2);return this},o.prototype.swap64=function(){var H=this.length;if(H%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var U=0;U<H;U+=8)b(this,U,U+7),b(this,U+1,U+6),b(this,U+2,U+5),b(this,U+3,U+4);return this},o.prototype.toString=function(){var H=0|this.length;return H===0?"":arguments.length===0?N(this,0,H):y.apply(this,arguments)},o.prototype.equals=function(H){if(!o.isBuffer(H))throw new TypeError("Argument must be a Buffer");return this===H||o.compare(this,H)===0},o.prototype.inspect=function(){var H="",U=s.INSPECT_MAX_BYTES;return this.length>0&&(H=this.toString("hex",0,U).match(/.{2}/g).join(" "),this.length>U&&(H+=" ... ")),"<Buffer "+H+">"},o.prototype.compare=function(H,U,K,te,ee){if(!o.isBuffer(H))throw new TypeError("Argument must be a Buffer");if(U===void 0&&(U=0),K===void 0&&(K=H?H.length:0),te===void 0&&(te=0),ee===void 0&&(ee=this.length),U<0||K>H.length||te<0||ee>this.length)throw new RangeError("out of range index");if(te>=ee&&U>=K)return 0;if(te>=ee)return-1;if(U>=K)return 1;if(this===H)return 0;for(var ie=(ee>>>=0)-(te>>>=0),se=(K>>>=0)-(U>>>=0),ne=Math.min(ie,se),re=this.slice(te,ee),Y=H.slice(U,K),V=0;V<ne;++V)if(re[V]!==Y[V]){ie=re[V],se=Y[V];break}return ie<se?-1:se<ie?1:0},o.prototype.includes=function(H,U,K){return this.indexOf(H,U,K)!==-1},o.prototype.indexOf=function(H,U,K){return A(this,H,U,K,!0)},o.prototype.lastIndexOf=function(H,U,K){return A(this,H,U,K,!1)},o.prototype.write=function(H,U,K,te){if(U===void 0)te="utf8",K=this.length,U=0;else if(K===void 0&&typeof U=="string")te=U,K=this.length,U=0;else{if(!isFinite(U))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");U|=0,isFinite(K)?(K|=0,te===void 0&&(te="utf8")):(te=K,K=void 0)}var ee=this.length-U;if((K===void 0||K>ee)&&(K=ee),H.length>0&&(K<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");for(var ie=!1;;)switch(te){case"hex":return E(this,H,U,K);case"utf8":case"utf-8":return S(this,H,U,K);case"ascii":return C(this,H,U,K);case"latin1":case"binary":return T(this,H,U,K);case"base64":return k(this,H,U,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,H,U,K);default:if(ie)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),ie=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var F=4096;function q(H,U,K){var te="";K=Math.min(H.length,K);for(var ee=U;ee<K;++ee)te+=String.fromCharCode(127&H[ee]);return te}function z(H,U,K){var te="";K=Math.min(H.length,K);for(var ee=U;ee<K;++ee)te+=String.fromCharCode(H[ee]);return te}function O(H,U,K){var te,ee=H.length;(!U||U<0)&&(U=0),(!K||K<0||K>ee)&&(K=ee);for(var ie="",se=U;se<K;++se)ie+=(te=H[se])<16?"0"+te.toString(16):te.toString(16);return ie}function R(H,U,K){for(var te=H.slice(U,K),ee="",ie=0;ie<te.length;ie+=2)ee+=String.fromCharCode(te[ie]+256*te[ie+1]);return ee}function I(H,U,K){if(H%1!=0||H<0)throw new RangeError("offset is not uint");if(H+U>K)throw new RangeError("Trying to access beyond buffer length")}function D(H,U,K,te,ee,ie){if(!o.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>ee||U<ie)throw new RangeError('"value" argument is out of bounds');if(K+te>H.length)throw new RangeError("Index out of range")}function B(H,U,K,te){U<0&&(U=65535+U+1);for(var ee=0,ie=Math.min(H.length-K,2);ee<ie;++ee)H[K+ee]=(U&255<<8*(te?ee:1-ee))>>>8*(te?ee:1-ee)}function j(H,U,K,te){U<0&&(U=4294967295+U+1);for(var ee=0,ie=Math.min(H.length-K,4);ee<ie;++ee)H[K+ee]=U>>>8*(te?ee:3-ee)&255}function Q(H,U,K,te,ee,ie){if(K+te>H.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function X(H,U,K,te,ee){return ee||Q(H,0,K,4),e.write(H,U,K,te,23,4),K+4}function Z(H,U,K,te,ee){return ee||Q(H,0,K,8),e.write(H,U,K,te,52,8),K+8}o.prototype.slice=function(H,U){var K,te=this.length;if((H=~~H)<0?(H+=te)<0&&(H=0):H>te&&(H=te),(U=U===void 0?te:~~U)<0?(U+=te)<0&&(U=0):U>te&&(U=te),U<H&&(U=H),o.TYPED_ARRAY_SUPPORT)(K=this.subarray(H,U)).__proto__=o.prototype;else{var ee=U-H;K=new o(ee,void 0);for(var ie=0;ie<ee;++ie)K[ie]=this[ie+H]}return K},o.prototype.readUIntLE=function(H,U,K){H|=0,U|=0,K||I(H,U,this.length);for(var te=this[H],ee=1,ie=0;++ie<U&&(ee*=256);)te+=this[H+ie]*ee;return te},o.prototype.readUIntBE=function(H,U,K){H|=0,U|=0,K||I(H,U,this.length);for(var te=this[H+--U],ee=1;U>0&&(ee*=256);)te+=this[H+--U]*ee;return te},o.prototype.readUInt8=function(H,U){return U||I(H,1,this.length),this[H]},o.prototype.readUInt16LE=function(H,U){return U||I(H,2,this.length),this[H]|this[H+1]<<8},o.prototype.readUInt16BE=function(H,U){return U||I(H,2,this.length),this[H]<<8|this[H+1]},o.prototype.readUInt32LE=function(H,U){return U||I(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+16777216*this[H+3]},o.prototype.readUInt32BE=function(H,U){return U||I(H,4,this.length),16777216*this[H]+(this[H+1]<<16|this[H+2]<<8|this[H+3])},o.prototype.readIntLE=function(H,U,K){H|=0,U|=0,K||I(H,U,this.length);for(var te=this[H],ee=1,ie=0;++ie<U&&(ee*=256);)te+=this[H+ie]*ee;return te>=(ee*=128)&&(te-=Math.pow(2,8*U)),te},o.prototype.readIntBE=function(H,U,K){H|=0,U|=0,K||I(H,U,this.length);for(var te=U,ee=1,ie=this[H+--te];te>0&&(ee*=256);)ie+=this[H+--te]*ee;return ie>=(ee*=128)&&(ie-=Math.pow(2,8*U)),ie},o.prototype.readInt8=function(H,U){return U||I(H,1,this.length),128&this[H]?-1*(255-this[H]+1):this[H]},o.prototype.readInt16LE=function(H,U){U||I(H,2,this.length);var K=this[H]|this[H+1]<<8;return 32768&K?4294901760|K:K},o.prototype.readInt16BE=function(H,U){U||I(H,2,this.length);var K=this[H+1]|this[H]<<8;return 32768&K?4294901760|K:K},o.prototype.readInt32LE=function(H,U){return U||I(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},o.prototype.readInt32BE=function(H,U){return U||I(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},o.prototype.readFloatLE=function(H,U){return U||I(H,4,this.length),e.read(this,H,!0,23,4)},o.prototype.readFloatBE=function(H,U){return U||I(H,4,this.length),e.read(this,H,!1,23,4)},o.prototype.readDoubleLE=function(H,U){return U||I(H,8,this.length),e.read(this,H,!0,52,8)},o.prototype.readDoubleBE=function(H,U){return U||I(H,8,this.length),e.read(this,H,!1,52,8)},o.prototype.writeUIntLE=function(H,U,K,te){H=+H,U|=0,K|=0,te||D(this,H,U,K,Math.pow(2,8*K)-1,0);var ee=1,ie=0;for(this[U]=255&H;++ie<K&&(ee*=256);)this[U+ie]=H/ee&255;return U+K},o.prototype.writeUIntBE=function(H,U,K,te){H=+H,U|=0,K|=0,te||D(this,H,U,K,Math.pow(2,8*K)-1,0);var ee=K-1,ie=1;for(this[U+ee]=255&H;--ee>=0&&(ie*=256);)this[U+ee]=H/ie&255;return U+K},o.prototype.writeUInt8=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,1,255,0),o.TYPED_ARRAY_SUPPORT||(H=Math.floor(H)),this[U]=255&H,U+1},o.prototype.writeUInt16LE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[U]=255&H,this[U+1]=H>>>8):B(this,H,U,!0),U+2},o.prototype.writeUInt16BE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[U]=H>>>8,this[U+1]=255&H):B(this,H,U,!1),U+2},o.prototype.writeUInt32LE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[U+3]=H>>>24,this[U+2]=H>>>16,this[U+1]=H>>>8,this[U]=255&H):j(this,H,U,!0),U+4},o.prototype.writeUInt32BE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[U]=H>>>24,this[U+1]=H>>>16,this[U+2]=H>>>8,this[U+3]=255&H):j(this,H,U,!1),U+4},o.prototype.writeIntLE=function(H,U,K,te){if(H=+H,U|=0,!te){var ee=Math.pow(2,8*K-1);D(this,H,U,K,ee-1,-ee)}var ie=0,se=1,ne=0;for(this[U]=255&H;++ie<K&&(se*=256);)H<0&&ne===0&&this[U+ie-1]!==0&&(ne=1),this[U+ie]=(H/se>>0)-ne&255;return U+K},o.prototype.writeIntBE=function(H,U,K,te){if(H=+H,U|=0,!te){var ee=Math.pow(2,8*K-1);D(this,H,U,K,ee-1,-ee)}var ie=K-1,se=1,ne=0;for(this[U+ie]=255&H;--ie>=0&&(se*=256);)H<0&&ne===0&&this[U+ie+1]!==0&&(ne=1),this[U+ie]=(H/se>>0)-ne&255;return U+K},o.prototype.writeInt8=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,1,127,-128),o.TYPED_ARRAY_SUPPORT||(H=Math.floor(H)),H<0&&(H=255+H+1),this[U]=255&H,U+1},o.prototype.writeInt16LE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[U]=255&H,this[U+1]=H>>>8):B(this,H,U,!0),U+2},o.prototype.writeInt16BE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[U]=H>>>8,this[U+1]=255&H):B(this,H,U,!1),U+2},o.prototype.writeInt32LE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[U]=255&H,this[U+1]=H>>>8,this[U+2]=H>>>16,this[U+3]=H>>>24):j(this,H,U,!0),U+4},o.prototype.writeInt32BE=function(H,U,K){return H=+H,U|=0,K||D(this,H,U,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),o.TYPED_ARRAY_SUPPORT?(this[U]=H>>>24,this[U+1]=H>>>16,this[U+2]=H>>>8,this[U+3]=255&H):j(this,H,U,!1),U+4},o.prototype.writeFloatLE=function(H,U,K){return X(this,H,U,!0,K)},o.prototype.writeFloatBE=function(H,U,K){return X(this,H,U,!1,K)},o.prototype.writeDoubleLE=function(H,U,K){return Z(this,H,U,!0,K)},o.prototype.writeDoubleBE=function(H,U,K){return Z(this,H,U,!1,K)},o.prototype.copy=function(H,U,K,te){if(K||(K=0),te||te===0||(te=this.length),U>=H.length&&(U=H.length),U||(U=0),te>0&&te<K&&(te=K),te===K||H.length===0||this.length===0)return 0;if(U<0)throw new RangeError("targetStart out of bounds");if(K<0||K>=this.length)throw new RangeError("sourceStart out of bounds");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),H.length-U<te-K&&(te=H.length-U+K);var ee,ie=te-K;if(this===H&&K<U&&U<te)for(ee=ie-1;ee>=0;--ee)H[ee+U]=this[ee+K];else if(ie<1e3||!o.TYPED_ARRAY_SUPPORT)for(ee=0;ee<ie;++ee)H[ee+U]=this[ee+K];else Uint8Array.prototype.set.call(H,this.subarray(K,K+ie),U);return ie},o.prototype.fill=function(H,U,K,te){if(typeof H=="string"){if(typeof U=="string"?(te=U,U=0,K=this.length):typeof K=="string"&&(te=K,K=this.length),H.length===1){var ee=H.charCodeAt(0);ee<256&&(H=ee)}if(te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!o.isEncoding(te))throw new TypeError("Unknown encoding: "+te)}else typeof H=="number"&&(H&=255);if(U<0||this.length<U||this.length<K)throw new RangeError("Out of range index");if(K<=U)return this;var ie;if(U>>>=0,K=K===void 0?this.length:K>>>0,H||(H=0),typeof H=="number")for(ie=U;ie<K;++ie)this[ie]=H;else{var se=o.isBuffer(H)?H:W(new o(H,te).toString()),ne=se.length;for(ie=0;ie<K-U;++ie)this[ie+U]=se[ie%ne]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function W(H,U){var K;U=U||1/0;for(var te=H.length,ee=null,ie=[],se=0;se<te;++se){if((K=H.charCodeAt(se))>55295&&K<57344){if(!ee){if(K>56319){(U-=3)>-1&&ie.push(239,191,189);continue}if(se+1===te){(U-=3)>-1&&ie.push(239,191,189);continue}ee=K;continue}if(K<56320){(U-=3)>-1&&ie.push(239,191,189),ee=K;continue}K=65536+(ee-55296<<10|K-56320)}else ee&&(U-=3)>-1&&ie.push(239,191,189);if(ee=null,K<128){if((U-=1)<0)break;ie.push(K)}else if(K<2048){if((U-=2)<0)break;ie.push(K>>6|192,63&K|128)}else if(K<65536){if((U-=3)<0)break;ie.push(K>>12|224,K>>6&63|128,63&K|128)}else{if(!(K<1114112))throw new Error("Invalid code point");if((U-=4)<0)break;ie.push(K>>18|240,K>>12&63|128,K>>6&63|128,63&K|128)}}return ie}function G(H){return f.toByteArray(function(U){if((U=function(K){return K.trim?K.trim():K.replace(/^\s+|\s+$/g,"")}(U).replace(L,"")).length<2)return"";for(;U.length%4!=0;)U+="=";return U}(H))}function J(H,U,K,te){for(var ee=0;ee<te&&!(ee+K>=U.length||ee>=H.length);++ee)U[ee+K]=H[ee];return ee}},3675:r=>{r.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},593:(r,s,i)=>{var f=i(7701),e=i(4373),l=e(f("String.prototype.indexOf"));r.exports=function(n,t){var o=f(n,!!t);return typeof o=="function"&&l(n,".prototype.")>-1?e(o):o}},4373:(r,s,i)=>{var f=i(3767),e=i(7701),l=e("%Function.prototype.apply%"),n=e("%Function.prototype.call%"),t=e("%Reflect.apply%",!0)||f.call(n,l),o=e("%Object.getOwnPropertyDescriptor%",!0),d=e("%Object.defineProperty%",!0),u=e("%Math.max%");if(d)try{d({},"a",{value:1})}catch{d=null}r.exports=function(g){var p=t(f,n,arguments);return o&&d&&o(p,"length").configurable&&d(p,"length",{value:1+u(0,g.length-(arguments.length-1))}),p};var c=function(){return t(f,l,arguments)};d?d(r.exports,"apply",{value:c}):r.exports.apply=c},7759:(r,s,i)=>{for(var f=i(8847)(i(4519)),e=i(3630),l={},n=0,t=Object.entries(e);n<t.length;n++){var o=(0,f.default)(t[n],2),d=o[0],u=o[1];l[d.toUpperCase().replace(/-/g,"_")]=u}r.exports=Object.freeze(l)},7223:(r,s,i)=>{var f=i(9033).Buffer,e=i(6657),l=i(5262),n=i(1842),t=i(779);(s=r.exports).addPrefix=function(d,u){var c;if(f.isBuffer(d))c=t.varintBufferEncode(d);else{if(!n[d])throw new Error("multicodec not recognized");c=n[d]}return f.concat([c,u])},s.rmPrefix=function(d){return e.decode(d),d.slice(e.decode.bytes)},s.getCodec=function(d){var u=e.decode(d),c=l.get(u);if(c===void 0)throw new Error("Code ".concat(u," not found"));return c},s.getName=function(d){return l.get(d)},s.getNumber=function(d){var u=n[d];if(u===void 0)throw new Error("Codec `"+d+"` not found");return t.varintBufferDecode(u)[0]},s.getCode=function(d){return e.decode(d)},s.getCodeVarint=function(d){var u=n[d];if(u===void 0)throw new Error("Codec `"+d+"` not found");return u},s.getVarint=function(d){return e.encode(d)};var o=i(7759);Object.assign(s,o),s.print=i(9268)},5262:(r,s,i)=>{var f=i(3630),e=new Map;for(var l in f){var n=f[l];e.set(n,l)}r.exports=Object.freeze(e)},9268:(r,s,i)=>{for(var f=i(8847)(i(4519)),e=i(3630),l={},n=0,t=Object.entries(e);n<t.length;n++){var o=(0,f.default)(t[n],2),d=o[0],u=o[1];l[u]===void 0&&(l[u]=d)}r.exports=Object.freeze(l)},779:(r,s,i)=>{var f=i(6657),e=i(9033).Buffer;function l(t){return parseInt(t.toString("hex"),16)}function n(t){var o=t.toString(16);return o.length%2==1&&(o="0"+o),e.from(o,"hex")}r.exports={numberToBuffer:n,bufferToNumber:l,varintBufferEncode:function(t){return e.from(f.encode(l(t)))},varintBufferDecode:function(t){return n(f.decode(t))},varintEncode:function(t){return e.from(f.encode(t))}}},1842:(r,s,i)=>{var f=i(3630),e=i(779).varintEncode,l={};for(var n in f){var t=f[n];l[n]=e(t)}r.exports=Object.freeze(l)},9976:(r,s,i)=>{var f=i(7748),e=i(9033).Buffer,l={checkCIDComponents:function(n){if(n==null)return"null values are not valid CIDs";if(n.version!==0&&n.version!==1)return"Invalid version, must be a number equal to 1 or 0";if(typeof n.codec!="string")return"codec must be string";if(n.version===0){if(n.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(n.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!e.isBuffer(n.multihash))return"multihash must be a Buffer";try{f.validate(n.multihash)}catch(o){var t=o.message;return t||(t="Multihash validation failed"),t}}};r.exports=l},2753:(r,s,i)=>{var f=i(8847),e=f(i(9721)),l=f(i(8985)),n=i(9033).Buffer,t=i(7748),o=i(6086),d=i(7223),u=i(3630),c=i(9976),g=i(3162)(function(p){function v(y,b,A,x){if((0,e.default)(this,v),g.isCID(y)){var E=y;return this.version=E.version,this.codec=E.codec,this.multihash=n.from(E.multihash),void(this.multibaseName=E.multibaseName||(E.version===0?"base58btc":"base32"))}if(typeof y=="string"){var S=o.isEncoded(y);if(S){var C=o.decode(y);this.version=parseInt(C.slice(0,1).toString("hex"),16),this.codec=d.getCodec(C.slice(1)),this.multihash=d.rmPrefix(C.slice(1)),this.multibaseName=S}else this.version=0,this.codec="dag-pb",this.multihash=t.fromB58String(y),this.multibaseName="base58btc";return v.validateCID(this),void Object.defineProperty(this,"string",{value:y})}if(n.isBuffer(y)){var T=y.slice(0,1),k=parseInt(T.toString("hex"),16);if(k===1){var M=y;this.version=k,this.codec=d.getCodec(M.slice(1)),this.multihash=d.rmPrefix(M.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=y,this.multibaseName="base58btc";v.validateCID(this)}else this.version=y,this.codec=b,this.multihash=A,this.multibaseName=x||(y===0?"base58btc":"base32"),v.validateCID(this)}return(0,l.default)(v,[{key:"buffer",get:function(){var y=this._buffer;if(!y){if(this.version===0)y=this.multihash;else{if(this.version!==1)throw new Error("unsupported version");y=n.concat([n.from("01","hex"),d.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:y})}return y}},{key:"prefix",get:function(){return n.concat([n.from("0".concat(this.version),"hex"),d.getCodeVarint(this.codec),t.prefix(this.multihash)])}},{key:"toV0",value:function(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");var y=t.decode(this.multihash),b=y.name,A=y.length;if(b!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(A!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new g(0,this.codec,this.multihash)}},{key:"toV1",value:function(){return new g(1,this.codec,this.multihash)}},{key:"toBaseEncodedString",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.multibaseName;if(this.string&&y===this.multibaseName)return this.string;var b=null;if(this.version===0){if(y!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");b=t.toB58String(this.multihash)}else{if(this.version!==1)throw new Error("unsupported version");b=o.encode(y,this.buffer).toString()}return y===this.multibaseName&&Object.defineProperty(this,"string",{value:b}),b}},{key:p,value:function(){return"CID("+this.toString()+")"}},{key:"toString",value:function(y){return this.toBaseEncodedString(y)}},{key:"toJSON",value:function(){return{codec:this.codec,version:this.version,hash:this.multihash}}},{key:"equals",value:function(y){return this.codec===y.codec&&this.version===y.version&&this.multihash.equals(y.multihash)}}],[{key:"validateCID",value:function(y){var b=c.checkCIDComponents(y);if(b)throw new Error(b)}}]),v}(Symbol.for("nodejs.util.inspect.custom")),{className:"CID",symbolName:"@ipld/js-cid/CID"});g.codecs=u,r.exports=g},3013:(r,s,i)=>{var f=i(8850).Buffer,e=i(7245).Transform,l=i(3462).s;function n(t){e.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(1736)(n,e),n.prototype.update=function(t,o,d){typeof t=="string"&&(t=f.from(t,o));var u=this._update(t);return this.hashMode?this:(d&&(u=this._toString(u,d)),u)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(t,o,d){var u;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(c){u=c}finally{d(u)}},n.prototype._flush=function(t){var o;try{this.push(this.__final())}catch(d){o=d}t(o)},n.prototype._finalOrDigest=function(t){var o=this.__final()||f.alloc(0);return t&&(o=this._toString(o,t,!0)),o},n.prototype._toString=function(t,o,d){if(this._decoder||(this._decoder=new l(o),this._encoding=o),this._encoding!==o)throw new Error("can't switch encodings");var u=this._decoder.write(t);return d&&(u+=this._decoder.end()),u},r.exports=n},3162:(r,s,i)=>{var f=i(8847),e=f(i(4727)),l=f(i(775)),n=f(i(9721)),t=f(i(8985)),o=f(i(8975)),d=f(i(5163)),u=f(i(4650)),c=f(i(1949));r.exports=function(g,p){var v=p.className,y=p.symbolName,b=Symbol.for(y),A=(0,l.default)({},v,function(x,E){(0,d.default)(k,x);var S,C,T=(S=k,C=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var M,P=(0,c.default)(S);if(C){var N=(0,c.default)(this).constructor;M=Reflect.construct(P,arguments,N)}else M=P.apply(this,arguments);return(0,u.default)(this,M)});function k(){var M;(0,n.default)(this,k);for(var P=arguments.length,N=new Array(P),F=0;F<P;F++)N[F]=arguments[F];return M=T.call.apply(T,[this].concat(N)),Object.defineProperty((0,o.default)(M),b,{value:!0}),M}return(0,t.default)(k,[{key:E,get:function(){return v}}]),k}(g,Symbol.toStringTag))[v];return A["is".concat(v)]=function(x){return!(!x||!x[b])},A},r.exports.proto=function(g,p){var v=p.className,y=p.symbolName,b=p.withoutNew,A=Symbol.for(y),x=(0,l.default)({},v,function(){for(var E=arguments.length,S=new Array(E),C=0;C<E;C++)S[C]=arguments[C];if(b&&!(this instanceof x))return(0,e.default)(x,S);var T=g.call.apply(g,[this].concat(S))||this;return T&&!T[A]&&Object.defineProperty(T,A,{value:!0}),T})[v];return x.prototype=Object.create(g.prototype),x.prototype.constructor=x,Object.defineProperty(x.prototype,Symbol.toStringTag,{get:function(){return v}}),x["is".concat(v)]=function(E){return!(!E||!E[A])},x}},6834:(r,s,i)=>{var f=i(2753);s.cidV0ToV1Base32=function(e){var l=new f(e);return l.version===0&&(l=l.toV1()),l.toString("base32")}},4308:(r,s,i)=>{var f=i(9206),e=i(9512),l=e.hexStringToBuffer,n=e.profiles,t=i(6834).cidV0ToV1Base32;r.exports={helpers:{cidV0ToV1Base32:t},decode:function(o){var d=l(o),u=f.getCodec(d),c=f.rmPrefix(d),g=n[u];return g||(g=n.default),g.decode(c)},fromIpfs:function(o){return this.encode("ipfs-ns",o)},fromSwarm:function(o){return this.encode("swarm-ns",o)},encode:function(o,d){var u=n[o];u||(u=n.default);var c=u.encode(d);return f.addPrefix(o,c).toString("hex")},getCodec:function(o){var d=l(o);return f.getCodec(d)}}},9512:(r,s,i)=>{var f=i(9033).Buffer,e=i(2753),l=i(7748),n=function(u){var c,g=u.slice(0,2),p=u.slice(2);return c=g==="0x"?p:u,l.fromHexString(c)},t={swarm:function(u){var c=l.encode(n(u),"keccak-256");return new e(1,"swarm-manifest",c).buffer},ipfs:function(u){var c=l.fromB58String(u);return new e(1,"dag-pb",c).buffer},utf8:function(u){return f.from(u,"utf8")}},o={hexMultiHash:function(u){var c=new e(u);return l.decode(c.multihash).digest.toString("hex")},b58MultiHash:function(u){var c=new e(u);return l.toB58String(c.multihash)},utf8:function(u){return u.toString("utf8")}},d={"swarm-ns":{encode:t.swarm,decode:o.hexMultiHash},"ipfs-ns":{encode:t.ipfs,decode:o.b58MultiHash},"ipns-ns":{encode:t.ipfs,decode:o.b58MultiHash},default:{encode:t.utf8,decode:o.utf8}};s.hexStringToBuffer=n,s.profiles=d},4628:(r,s,i)=>{var f,e,l=i(8847)(i(3355));e=function(n){n.version="1.2.2";var t=function(){for(var M=0,P=new Array(256),N=0;N!=256;++N)M=1&(M=1&(M=1&(M=1&(M=1&(M=1&(M=1&(M=1&(M=N)?-306674912^M>>>1:M>>>1)?-306674912^M>>>1:M>>>1)?-306674912^M>>>1:M>>>1)?-306674912^M>>>1:M>>>1)?-306674912^M>>>1:M>>>1)?-306674912^M>>>1:M>>>1)?-306674912^M>>>1:M>>>1)?-306674912^M>>>1:M>>>1,P[N]=M;return typeof Int32Array<"u"?new Int32Array(P):P}(),o=function(M){var P=0,N=0,F=0,q=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(F=0;F!=256;++F)q[F]=M[F];for(F=0;F!=256;++F)for(N=M[F],P=256+F;P<4096;P+=256)N=q[P]=N>>>8^M[255&N];var z=[];for(F=1;F!=16;++F)z[F-1]=typeof Int32Array<"u"?q.subarray(256*F,256*F+256):q.slice(256*F,256*F+256);return z}(t),d=o[0],u=o[1],c=o[2],g=o[3],p=o[4],v=o[5],y=o[6],b=o[7],A=o[8],x=o[9],E=o[10],S=o[11],C=o[12],T=o[13],k=o[14];n.table=t,n.bstr=function(M,P){for(var N=-1^P,F=0,q=M.length;F<q;)N=N>>>8^t[255&(N^M.charCodeAt(F++))];return~N},n.buf=function(M,P){for(var N=-1^P,F=M.length-15,q=0;q<F;)N=k[M[q++]^255&N]^T[M[q++]^N>>8&255]^C[M[q++]^N>>16&255]^S[M[q++]^N>>>24]^E[M[q++]]^x[M[q++]]^A[M[q++]]^b[M[q++]]^y[M[q++]]^v[M[q++]]^p[M[q++]]^g[M[q++]]^c[M[q++]]^u[M[q++]]^d[M[q++]]^t[M[q++]];for(F+=15;q<F;)N=N>>>8^t[255&(N^M[q++])];return~N},n.str=function(M,P){for(var N=-1^P,F=0,q=M.length,z=0,O=0;F<q;)(z=M.charCodeAt(F++))<128?N=N>>>8^t[255&(N^z)]:z<2048?N=(N=N>>>8^t[255&(N^(192|z>>6&31))])>>>8^t[255&(N^(128|63&z))]:z>=55296&&z<57344?(z=64+(1023&z),O=1023&M.charCodeAt(F++),N=(N=(N=(N=N>>>8^t[255&(N^(240|z>>8&7))])>>>8^t[255&(N^(128|z>>2&63))])>>>8^t[255&(N^(128|O>>6&15|(3&z)<<4))])>>>8^t[255&(N^(128|63&O))]):N=(N=(N=N>>>8^t[255&(N^(224|z>>12&15))])>>>8^t[255&(N^(128|z>>6&63))])>>>8^t[255&(N^(128|63&z))];return~N}},typeof DO_NOT_EXPORT_CRC>"u"?(0,l.default)(s)==="object"?e(s):(f=function(){var n={};return e(n),n}.call(s,i,s,r),f===void 0||(r.exports=f)):e({})},5102:(r,s,i)=>{var f=i(9033).Buffer,e=i(6597),l=i(1734);r.exports=function(d){return new t(d)};var n={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(d){this.curveType=n[d],this.curveType||(this.curveType={name:d}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}function o(d,u,c){Array.isArray(d)||(d=d.toArray());var g=new f(d);if(c&&g.length<c){var p=new f(c-g.length);p.fill(0),g=f.concat([p,g])}return u?g.toString(u):g}n.p224=n.secp224r1,n.p256=n.secp256r1=n.prime256v1,n.p192=n.secp192r1=n.prime192v1,n.p384=n.secp384r1,n.p521=n.secp521r1,t.prototype.generateKeys=function(d,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(d,u)},t.prototype.computeSecret=function(d,u,c){return u=u||"utf8",f.isBuffer(d)||(d=new f(d,u)),o(this.curve.keyFromPublic(d).getPublic().mul(this.keys.getPrivate()).getX(),c,this.curveType.byteLength)},t.prototype.getPublicKey=function(d,u){var c=this.keys.getPublic(u==="compressed",!0);return u==="hybrid"&&(c[c.length-1]%2?c[0]=7:c[0]=6),o(c,d)},t.prototype.getPrivateKey=function(d){return o(this.keys.getPrivate(),d)},t.prototype.setPublicKey=function(d,u){return u=u||"utf8",f.isBuffer(d)||(d=new f(d,u)),this.keys._importPublic(d),this},t.prototype.setPrivateKey=function(d,u){u=u||"utf8",f.isBuffer(d)||(d=new f(d,u));var c=new l(d);return c=c.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(c),this}},5866:(r,s,i)=>{var f=i(1736),e=i(807),l=i(6707),n=i(1708),t=i(3013);function o(d){t.call(this,"digest"),this._hash=d}f(o,t),o.prototype._update=function(d){this._hash.update(d)},o.prototype._final=function(){return this._hash.digest()},r.exports=function(d){return(d=d.toLowerCase())==="md5"?new e:d==="rmd160"||d==="ripemd160"?new l:new o(n(d))}},5349:(r,s,i)=>{var f=i(807);r.exports=function(e){return new f().update(e).digest()}},4424:(r,s,i)=>{var f=i(1736),e=i(9956),l=i(3013),n=i(8850).Buffer,t=i(5349),o=i(6707),d=i(1708),u=n.alloc(128);function c(g,p){l.call(this,"digest"),typeof p=="string"&&(p=n.from(p));var v=g==="sha512"||g==="sha384"?128:64;this._alg=g,this._key=p,p.length>v?p=(g==="rmd160"?new o:d(g)).update(p).digest():p.length<v&&(p=n.concat([p,u],v));for(var y=this._ipad=n.allocUnsafe(v),b=this._opad=n.allocUnsafe(v),A=0;A<v;A++)y[A]=54^p[A],b[A]=92^p[A];this._hash=g==="rmd160"?new o:d(g),this._hash.update(y)}f(c,l),c.prototype._update=function(g){this._hash.update(g)},c.prototype._final=function(){var g=this._hash.digest();return(this._alg==="rmd160"?new o:d(this._alg)).update(this._opad).update(g).digest()},r.exports=function(g,p){return(g=g.toLowerCase())==="rmd160"||g==="ripemd160"?new c("rmd160",p):g==="md5"?new e(t,p):new c(g,p)}},9956:(r,s,i)=>{var f=i(1736),e=i(8850).Buffer,l=i(3013),n=e.alloc(128),t=64;function o(d,u){l.call(this,"digest"),typeof u=="string"&&(u=e.from(u)),this._alg=d,this._key=u,u.length>t?u=d(u):u.length<t&&(u=e.concat([u,n],t));for(var c=this._ipad=e.allocUnsafe(t),g=this._opad=e.allocUnsafe(t),p=0;p<t;p++)c[p]=54^u[p],g[p]=92^u[p];this._hash=[c]}f(o,l),o.prototype._update=function(d){this._hash.push(d)},o.prototype._final=function(){var d=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,d]))},r.exports=o},2439:()=>{(function(r){(function(s){var i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],e=ArrayBuffer.isView||function(S){return S&&f.indexOf(Object.prototype.toString.call(S))>-1};function l(S){if(typeof S!="string"&&(S=String(S)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(S))throw new TypeError("Invalid character in header field name");return S.toLowerCase()}function n(S){return typeof S!="string"&&(S=String(S)),S}function t(S){var C={next:function(){var T=S.shift();return{done:T===void 0,value:T}}};return i.iterable&&(C[Symbol.iterator]=function(){return C}),C}function o(S){this.map={},S instanceof o?S.forEach(function(C,T){this.append(T,C)},this):Array.isArray(S)?S.forEach(function(C){this.append(C[0],C[1])},this):S&&Object.getOwnPropertyNames(S).forEach(function(C){this.append(C,S[C])},this)}function d(S){if(S.bodyUsed)return Promise.reject(new TypeError("Already read"));S.bodyUsed=!0}function u(S){return new Promise(function(C,T){S.onload=function(){C(S.result)},S.onerror=function(){T(S.error)}})}function c(S){var C=new FileReader,T=u(C);return C.readAsArrayBuffer(S),T}function g(S){if(S.slice)return S.slice(0);var C=new Uint8Array(S.byteLength);return C.set(new Uint8Array(S)),C.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(S){var C;this._bodyInit=S,S?typeof S=="string"?this._bodyText=S:i.blob&&Blob.prototype.isPrototypeOf(S)?this._bodyBlob=S:i.formData&&FormData.prototype.isPrototypeOf(S)?this._bodyFormData=S:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)?this._bodyText=S.toString():i.arrayBuffer&&i.blob&&(C=S)&&DataView.prototype.isPrototypeOf(C)?(this._bodyArrayBuffer=g(S.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(S)||e(S))?this._bodyArrayBuffer=g(S):this._bodyText=S=Object.prototype.toString.call(S):this._bodyText="",this.headers.get("content-type")||(typeof S=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(S)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var S=d(this);if(S)return S;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(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(c)}),this.text=function(){var S,C,T,k=d(this);if(k)return k;if(this._bodyBlob)return S=this._bodyBlob,T=u(C=new FileReader),C.readAsText(S),T;if(this._bodyArrayBuffer)return Promise.resolve(function(M){for(var P=new Uint8Array(M),N=new Array(P.length),F=0;F<P.length;F++)N[F]=String.fromCharCode(P[F]);return N.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}o.prototype.append=function(S,C){S=l(S),C=n(C);var T=this.map[S];this.map[S]=T?T+", "+C:C},o.prototype.delete=function(S){delete this.map[l(S)]},o.prototype.get=function(S){return S=l(S),this.has(S)?this.map[S]:null},o.prototype.has=function(S){return this.map.hasOwnProperty(l(S))},o.prototype.set=function(S,C){this.map[l(S)]=n(C)},o.prototype.forEach=function(S,C){for(var T in this.map)this.map.hasOwnProperty(T)&&S.call(C,this.map[T],T,this)},o.prototype.keys=function(){var S=[];return this.forEach(function(C,T){S.push(T)}),t(S)},o.prototype.values=function(){var S=[];return this.forEach(function(C){S.push(C)}),t(S)},o.prototype.entries=function(){var S=[];return this.forEach(function(C,T){S.push([T,C])}),t(S)},i.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(S,C){var T,k,M=(C=C||{}).body;if(S instanceof y){if(S.bodyUsed)throw new TypeError("Already read");this.url=S.url,this.credentials=S.credentials,C.headers||(this.headers=new o(S.headers)),this.method=S.method,this.mode=S.mode,this.signal=S.signal,M||S._bodyInit==null||(M=S._bodyInit,S.bodyUsed=!0)}else this.url=String(S);if(this.credentials=C.credentials||this.credentials||"same-origin",!C.headers&&this.headers||(this.headers=new o(C.headers)),this.method=(k=(T=C.method||this.method||"GET").toUpperCase(),v.indexOf(k)>-1?k:T),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(M)}function b(S){var C=new FormData;return S.trim().split("&").forEach(function(T){if(T){var k=T.split("="),M=k.shift().replace(/\+/g," "),P=k.join("=").replace(/\+/g," ");C.append(decodeURIComponent(M),decodeURIComponent(P))}}),C}function A(S,C){C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in C?C.statusText:"OK",this.headers=new o(C.headers),this.url=C.url||"",this._initBody(S)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},A.error=function(){var S=new A(null,{status:0,statusText:""});return S.type="error",S};var x=[301,302,303,307,308];A.redirect=function(S,C){if(x.indexOf(C)===-1)throw new RangeError("Invalid status code");return new A(null,{status:C,headers:{location:S}})},s.DOMException=r.DOMException;try{new s.DOMException}catch{s.DOMException=function(C,T){this.message=C,this.name=T;var k=Error(C);this.stack=k.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function E(S,C){return new Promise(function(T,k){var M=new y(S,C);if(M.signal&&M.signal.aborted)return k(new s.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function N(){P.abort()}P.onload=function(){var F,q,z={status:P.status,statusText:P.statusText,headers:(F=P.getAllResponseHeaders()||"",q=new o,F.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(R){var I=R.split(":"),D=I.shift().trim();if(D){var B=I.join(":").trim();q.append(D,B)}}),q)};z.url="responseURL"in P?P.responseURL:z.headers.get("X-Request-URL");var O="response"in P?P.response:P.responseText;T(new A(O,z))},P.onerror=function(){k(new TypeError("Network request failed"))},P.ontimeout=function(){k(new TypeError("Network request failed"))},P.onabort=function(){k(new s.DOMException("Aborted","AbortError"))},P.open(M.method,M.url,!0),M.credentials==="include"?P.withCredentials=!0:M.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&i.blob&&(P.responseType="blob"),M.headers.forEach(function(F,q){P.setRequestHeader(q,F)}),M.signal&&(M.signal.addEventListener("abort",N),P.onreadystatechange=function(){P.readyState===4&&M.signal.removeEventListener("abort",N)}),P.send(M._bodyInit===void 0?null:M._bodyInit)})}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=o,r.Request=y,r.Response=A),s.Headers=o,s.Request=y,s.Response=A,s.fetch=E,Object.defineProperty(s,"__esModule",{value:!0})})({})})(typeof self<"u"?self:void 0)},4293:(r,s,i)=>{s.randomBytes=s.rng=s.pseudoRandomBytes=s.prng=i(5010),s.createHash=s.Hash=i(5866),s.createHmac=s.Hmac=i(4424);var f=i(6561),e=Object.keys(f),l=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);s.getHashes=function(){return l};var n=i(4192);s.pbkdf2=n.pbkdf2,s.pbkdf2Sync=n.pbkdf2Sync;var t=i(6805);s.Cipher=t.Cipher,s.createCipher=t.createCipher,s.Cipheriv=t.Cipheriv,s.createCipheriv=t.createCipheriv,s.Decipher=t.Decipher,s.createDecipher=t.createDecipher,s.Decipheriv=t.Decipheriv,s.createDecipheriv=t.createDecipheriv,s.getCiphers=t.getCiphers,s.listCiphers=t.listCiphers;var o=i(8333);s.DiffieHellmanGroup=o.DiffieHellmanGroup,s.createDiffieHellmanGroup=o.createDiffieHellmanGroup,s.getDiffieHellman=o.getDiffieHellman,s.createDiffieHellman=o.createDiffieHellman,s.DiffieHellman=o.DiffieHellman;var d=i(9527);s.createSign=d.createSign,s.Sign=d.Sign,s.createVerify=d.createVerify,s.Verify=d.Verify,s.createECDH=i(5102);var u=i(6991);s.publicEncrypt=u.publicEncrypt,s.privateEncrypt=u.privateEncrypt,s.publicDecrypt=u.publicDecrypt,s.privateDecrypt=u.privateDecrypt;var c=i(6509);s.randomFill=c.randomFill,s.randomFillSync=c.randomFillSync,s.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` +`))},s.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}},34:(r,s,i)=>{var f=i(8847)(i(3355)),e="%[a-f0-9]{2}",l=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function t(d,u){try{return[decodeURIComponent(d.join(""))]}catch{}if(d.length===1)return d;u=u||1;var c=d.slice(0,u),g=d.slice(u);return Array.prototype.concat.call([],t(c),t(g))}function o(d){try{return decodeURIComponent(d)}catch{for(var u=d.match(l)||[],c=1;c<u.length;c++)u=(d=t(u,c).join("")).match(l)||[];return d}}r.exports=function(d){if(typeof d!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+(0,f.default)(d)+"`");try{return d=d.replace(/\+/g," "),decodeURIComponent(d)}catch{return function(c){for(var g={"%FE%FF":"��","%FF%FE":"��"},p=n.exec(c);p;){try{g[p[0]]=decodeURIComponent(p[0])}catch{var v=o(p[0]);v!==p[0]&&(g[p[0]]=v)}p=n.exec(c)}g["%C2"]="�";for(var y=Object.keys(g),b=0;b<y.length;b++){var A=y[b];c=c.replace(new RegExp(A,"g"),g[A])}return c}(d)}}},5626:(r,s,i)=>{s.utils=i(319),s.Cipher=i(9591),s.DES=i(3049),s.CBC=i(4375),s.EDE=i(9413)},4375:(r,s,i)=>{var f=i(4504),e=i(1736),l={};function n(t){f.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var o=0;o<this.iv.length;o++)this.iv[o]=t[o]}s.instantiate=function(t){function o(g){t.call(this,g),this._cbcInit()}e(o,t);for(var d=Object.keys(l),u=0;u<d.length;u++){var c=d[u];o.prototype[c]=l[c]}return o.create=function(g){return new o(g)},o},l._cbcInit=function(){var t=new n(this.options.iv);this._cbcState=t},l._update=function(t,o,d,u){var c=this._cbcState,g=this.constructor.super_.prototype,p=c.iv;if(this.type==="encrypt"){for(var v=0;v<this.blockSize;v++)p[v]^=t[o+v];for(g._update.call(this,p,0,d,u),v=0;v<this.blockSize;v++)p[v]=d[u+v]}else{for(g._update.call(this,t,o,d,u),v=0;v<this.blockSize;v++)d[u+v]^=p[v];for(v=0;v<this.blockSize;v++)p[v]=t[o+v]}}},9591:(r,s,i)=>{var f=i(4504);function e(l){this.options=l,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}r.exports=e,e.prototype._init=function(){},e.prototype.update=function(l){return l.length===0?[]:this.type==="decrypt"?this._updateDecrypt(l):this._updateEncrypt(l)},e.prototype._buffer=function(l,n){for(var t=Math.min(this.buffer.length-this.bufferOff,l.length-n),o=0;o<t;o++)this.buffer[this.bufferOff+o]=l[n+o];return this.bufferOff+=t,t},e.prototype._flushBuffer=function(l,n){return this._update(this.buffer,0,l,n),this.bufferOff=0,this.blockSize},e.prototype._updateEncrypt=function(l){var n=0,t=0,o=(this.bufferOff+l.length)/this.blockSize|0,d=new Array(o*this.blockSize);this.bufferOff!==0&&(n+=this._buffer(l,n),this.bufferOff===this.buffer.length&&(t+=this._flushBuffer(d,t)));for(var u=l.length-(l.length-n)%this.blockSize;n<u;n+=this.blockSize)this._update(l,n,d,t),t+=this.blockSize;for(;n<l.length;n++,this.bufferOff++)this.buffer[this.bufferOff]=l[n];return d},e.prototype._updateDecrypt=function(l){for(var n=0,t=0,o=Math.ceil((this.bufferOff+l.length)/this.blockSize)-1,d=new Array(o*this.blockSize);o>0;o--)n+=this._buffer(l,n),t+=this._flushBuffer(d,t);return n+=this._buffer(l,n),d},e.prototype.final=function(l){var n,t;return l&&(n=this.update(l)),t=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),n?n.concat(t):t},e.prototype._pad=function(l,n){if(n===0)return!1;for(;n<l.length;)l[n++]=0;return!0},e.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var l=new Array(this.blockSize);return this._update(this.buffer,0,l,0),l},e.prototype._unpad=function(l){return l},e.prototype._finalDecrypt=function(){f.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var l=new Array(this.blockSize);return this._flushBuffer(l,0),this._unpad(l)}},3049:(r,s,i)=>{var f=i(4504),e=i(1736),l=i(319),n=i(9591);function t(){this.tmp=new Array(2),this.keys=null}function o(u){n.call(this,u);var c=new t;this._desState=c,this.deriveKeys(c,u.key)}e(o,n),r.exports=o,o.create=function(u){return new o(u)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];o.prototype.deriveKeys=function(u,c){u.keys=new Array(32),f.equal(c.length,this.blockSize,"Invalid key length");var g=l.readUInt32BE(c,0),p=l.readUInt32BE(c,4);l.pc1(g,p,u.tmp,0),g=u.tmp[0],p=u.tmp[1];for(var v=0;v<u.keys.length;v+=2){var y=d[v>>>1];g=l.r28shl(g,y),p=l.r28shl(p,y),l.pc2(g,p,u.keys,v)}},o.prototype._update=function(u,c,g,p){var v=this._desState,y=l.readUInt32BE(u,c),b=l.readUInt32BE(u,c+4);l.ip(y,b,v.tmp,0),y=v.tmp[0],b=v.tmp[1],this.type==="encrypt"?this._encrypt(v,y,b,v.tmp,0):this._decrypt(v,y,b,v.tmp,0),y=v.tmp[0],b=v.tmp[1],l.writeUInt32BE(g,y,p),l.writeUInt32BE(g,b,p+4)},o.prototype._pad=function(u,c){for(var g=u.length-c,p=c;p<u.length;p++)u[p]=g;return!0},o.prototype._unpad=function(u){for(var c=u[u.length-1],g=u.length-c;g<u.length;g++)f.equal(u[g],c);return u.slice(0,u.length-c)},o.prototype._encrypt=function(u,c,g,p,v){for(var y=c,b=g,A=0;A<u.keys.length;A+=2){var x=u.keys[A],E=u.keys[A+1];l.expand(b,u.tmp,0),x^=u.tmp[0],E^=u.tmp[1];var S=l.substitute(x,E),C=b;b=(y^l.permute(S))>>>0,y=C}l.rip(b,y,p,v)},o.prototype._decrypt=function(u,c,g,p,v){for(var y=g,b=c,A=u.keys.length-2;A>=0;A-=2){var x=u.keys[A],E=u.keys[A+1];l.expand(y,u.tmp,0),x^=u.tmp[0],E^=u.tmp[1];var S=l.substitute(x,E),C=y;y=(b^l.permute(S))>>>0,b=C}l.rip(y,b,p,v)}},9413:(r,s,i)=>{var f=i(4504),e=i(1736),l=i(9591),n=i(3049);function t(d,u){f.equal(u.length,24,"Invalid key length");var c=u.slice(0,8),g=u.slice(8,16),p=u.slice(16,24);this.ciphers=d==="encrypt"?[n.create({type:"encrypt",key:c}),n.create({type:"decrypt",key:g}),n.create({type:"encrypt",key:p})]:[n.create({type:"decrypt",key:p}),n.create({type:"encrypt",key:g}),n.create({type:"decrypt",key:c})]}function o(d){l.call(this,d);var u=new t(this.type,this.options.key);this._edeState=u}e(o,l),r.exports=o,o.create=function(d){return new o(d)},o.prototype._update=function(d,u,c,g){var p=this._edeState;p.ciphers[0]._update(d,u,c,g),p.ciphers[1]._update(c,g,c,g),p.ciphers[2]._update(c,g,c,g)},o.prototype._pad=n.prototype._pad,o.prototype._unpad=n.prototype._unpad},319:(r,s)=>{s.readUInt32BE=function(l,n){return(l[0+n]<<24|l[1+n]<<16|l[2+n]<<8|l[3+n])>>>0},s.writeUInt32BE=function(l,n,t){l[0+t]=n>>>24,l[1+t]=n>>>16&255,l[2+t]=n>>>8&255,l[3+t]=255&n},s.ip=function(l,n,t,o){for(var d=0,u=0,c=6;c>=0;c-=2){for(var g=0;g<=24;g+=8)d<<=1,d|=n>>>g+c&1;for(g=0;g<=24;g+=8)d<<=1,d|=l>>>g+c&1}for(c=6;c>=0;c-=2){for(g=1;g<=25;g+=8)u<<=1,u|=n>>>g+c&1;for(g=1;g<=25;g+=8)u<<=1,u|=l>>>g+c&1}t[o+0]=d>>>0,t[o+1]=u>>>0},s.rip=function(l,n,t,o){for(var d=0,u=0,c=0;c<4;c++)for(var g=24;g>=0;g-=8)d<<=1,d|=n>>>g+c&1,d<<=1,d|=l>>>g+c&1;for(c=4;c<8;c++)for(g=24;g>=0;g-=8)u<<=1,u|=n>>>g+c&1,u<<=1,u|=l>>>g+c&1;t[o+0]=d>>>0,t[o+1]=u>>>0},s.pc1=function(l,n,t,o){for(var d=0,u=0,c=7;c>=5;c--){for(var g=0;g<=24;g+=8)d<<=1,d|=n>>g+c&1;for(g=0;g<=24;g+=8)d<<=1,d|=l>>g+c&1}for(g=0;g<=24;g+=8)d<<=1,d|=n>>g+c&1;for(c=1;c<=3;c++){for(g=0;g<=24;g+=8)u<<=1,u|=n>>g+c&1;for(g=0;g<=24;g+=8)u<<=1,u|=l>>g+c&1}for(g=0;g<=24;g+=8)u<<=1,u|=l>>g+c&1;t[o+0]=d>>>0,t[o+1]=u>>>0},s.r28shl=function(l,n){return l<<n&268435455|l>>>28-n};var i=[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];s.pc2=function(l,n,t,o){for(var d=0,u=0,c=i.length>>>1,g=0;g<c;g++)d<<=1,d|=l>>>i[g]&1;for(g=c;g<i.length;g++)u<<=1,u|=n>>>i[g]&1;t[o+0]=d>>>0,t[o+1]=u>>>0},s.expand=function(l,n,t){var o=0,d=0;o=(1&l)<<5|l>>>27;for(var u=23;u>=15;u-=4)o<<=6,o|=l>>>u&63;for(u=11;u>=3;u-=4)d|=l>>>u&63,d<<=6;d|=(31&l)<<1|l>>>31,n[t+0]=o>>>0,n[t+1]=d>>>0};var f=[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];s.substitute=function(l,n){for(var t=0,o=0;o<4;o++)t<<=4,t|=f[64*o+(l>>>18-6*o&63)];for(o=0;o<4;o++)t<<=4,t|=f[256+64*o+(n>>>18-6*o&63)];return t>>>0};var e=[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];s.permute=function(l){for(var n=0,t=0;t<e.length;t++)n<<=1,n|=l>>>e[t]&1;return n>>>0},s.padSplit=function(l,n,t){for(var o=l.toString(2);o.length<n;)o="0"+o;for(var d=[],u=0;u<n;u+=t)d.push(o.slice(u,u+t));return d.join(" ")}},8333:(r,s,i)=>{var f=i(9033).Buffer,e=i(8557),l=i(9799),n=i(1592),t={binary:!0,hex:!0,base64:!0};s.DiffieHellmanGroup=s.createDiffieHellmanGroup=s.getDiffieHellman=function(o){var d=new f(l[o].prime,"hex"),u=new f(l[o].gen,"hex");return new n(d,u)},s.createDiffieHellman=s.DiffieHellman=function o(d,u,c,g){return f.isBuffer(u)||t[u]===void 0?o(d,"binary",u,c):(u=u||"binary",g=g||"binary",c=c||new f([2]),f.isBuffer(c)||(c=new f(c,g)),typeof d=="number"?new n(e(d,c),c,!0):(f.isBuffer(d)||(d=new f(d,u)),new n(d,c,!0)))}},1592:(r,s,i)=>{var f=i(9033).Buffer,e=i(1734),l=new(i(137)),n=new e(24),t=new e(11),o=new e(10),d=new e(3),u=new e(7),c=i(8557),g=i(5010);function p(x,E){return E=E||"utf8",f.isBuffer(x)||(x=new f(x,E)),this._pub=new e(x),this}function v(x,E){return E=E||"utf8",f.isBuffer(x)||(x=new f(x,E)),this._priv=new e(x),this}r.exports=b;var y={};function b(x,E,S){this.setGenerator(E),this.__prime=new e(x),this._prime=e.mont(this.__prime),this._primeLen=x.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,S?(this.setPublicKey=p,this.setPrivateKey=v):this._primeCode=8}function A(x,E){var S=new f(x.toArray());return E?S.toString(E):S}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(x,E){var S=E.toString("hex"),C=[S,x.toString(16)].join("_");if(C in y)return y[C];var T,k=0;if(x.isEven()||!c.simpleSieve||!c.fermatTest(x)||!l.test(x))return k+=1,k+=S==="02"||S==="05"?8:4,y[C]=k,k;switch(l.test(x.shrn(1))||(k+=2),S){case"02":x.mod(n).cmp(t)&&(k+=8);break;case"05":(T=x.mod(o)).cmp(d)&&T.cmp(u)&&(k+=8);break;default:k+=4}return y[C]=k,k}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new e(g(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(x){var E=(x=(x=new e(x)).toRed(this._prime)).redPow(this._priv).fromRed(),S=new f(E.toArray()),C=this.getPrime();if(S.length<C.length){var T=new f(C.length-S.length);T.fill(0),S=f.concat([T,S])}return S},b.prototype.getPublicKey=function(x){return A(this._pub,x)},b.prototype.getPrivateKey=function(x){return A(this._priv,x)},b.prototype.getPrime=function(x){return A(this.__prime,x)},b.prototype.getGenerator=function(x){return A(this._gen,x)},b.prototype.setGenerator=function(x,E){return E=E||"utf8",f.isBuffer(x)||(x=new f(x,E)),this.__gen=x,this._gen=new e(x),this}},8557:(r,s,i)=>{var f=i(5010);r.exports=x,x.simpleSieve=b,x.fermatTest=A;var e=i(1734),l=new e(24),n=new(i(137)),t=new e(1),o=new e(2),d=new e(5),u=(new e(16),new e(8),new e(10)),c=new e(3),g=(new e(7),new e(11)),p=new e(4),v=(new e(12),null);function y(){if(v!==null)return v;var E=[];E[0]=2;for(var S=1,C=3;C<1048576;C+=2){for(var T=Math.ceil(Math.sqrt(C)),k=0;k<S&&E[k]<=T&&C%E[k]!=0;k++);S!==k&&E[k]<=T||(E[S++]=C)}return v=E,E}function b(E){for(var S=y(),C=0;C<S.length;C++)if(E.modn(S[C])===0)return E.cmpn(S[C])===0;return!0}function A(E){var S=e.mont(E);return o.toRed(S).redPow(E.subn(1)).fromRed().cmpn(1)===0}function x(E,S){if(E<16)return new e(S===2||S===5?[140,123]:[140,39]);var C,T;for(S=new e(S);;){for(C=new e(f(Math.ceil(E/8)));C.bitLength()>E;)C.ishrn(1);if(C.isEven()&&C.iadd(t),C.testn(1)||C.iadd(o),S.cmp(o)){if(!S.cmp(d))for(;C.mod(u).cmp(c);)C.iadd(p)}else for(;C.mod(l).cmp(g);)C.iadd(p);if(b(T=C.shrn(1))&&b(C)&&A(T)&&A(C)&&n.test(T)&&n.test(C))return C}}},6597:(r,s,i)=>{var f=s;f.version=i(8597).i8,f.utils=i(7528),f.rand=i(2202),f.curve=i(6063),f.curves=i(506),f.ec=i(8320),f.eddsa=i(8027)},1249:(r,s,i)=>{var f=i(1734),e=i(7528),l=e.getNAF,n=e.getJSF,t=e.assert;function o(u,c){this.type=u,this.p=new f(c.p,16),this.red=c.prime?f.red(c.prime):f.mont(this.p),this.zero=new f(0).toRed(this.red),this.one=new f(1).toRed(this.red),this.two=new f(2).toRed(this.red),this.n=c.n&&new f(c.n,16),this.g=c.g&&this.pointFromJSON(c.g,c.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 g=this.n&&this.p.div(this.n);!g||g.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(u,c){this.curve=u,this.type=c,this.precomputed=null}r.exports=o,o.prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(u,c){t(u.precomputed);var g=u._getDoubles(),p=l(c,1,this._bitLength),v=(1<<g.step+1)-(g.step%2==0?2:1);v/=3;var y,b,A=[];for(y=0;y<p.length;y+=g.step){b=0;for(var x=y+g.step-1;x>=y;x--)b=(b<<1)+p[x];A.push(b)}for(var E=this.jpoint(null,null,null),S=this.jpoint(null,null,null),C=v;C>0;C--){for(y=0;y<A.length;y++)(b=A[y])===C?S=S.mixedAdd(g.points[y]):b===-C&&(S=S.mixedAdd(g.points[y].neg()));E=E.add(S)}return E.toP()},o.prototype._wnafMul=function(u,c){var g=4,p=u._getNAFPoints(g);g=p.wnd;for(var v=p.points,y=l(c,g,this._bitLength),b=this.jpoint(null,null,null),A=y.length-1;A>=0;A--){for(var x=0;A>=0&&y[A]===0;A--)x++;if(A>=0&&x++,b=b.dblp(x),A<0)break;var E=y[A];t(E!==0),b=u.type==="affine"?E>0?b.mixedAdd(v[E-1>>1]):b.mixedAdd(v[-E-1>>1].neg()):E>0?b.add(v[E-1>>1]):b.add(v[-E-1>>1].neg())}return u.type==="affine"?b.toP():b},o.prototype._wnafMulAdd=function(u,c,g,p,v){var y,b,A,x=this._wnafT1,E=this._wnafT2,S=this._wnafT3,C=0;for(y=0;y<p;y++){var T=(A=c[y])._getNAFPoints(u);x[y]=T.wnd,E[y]=T.points}for(y=p-1;y>=1;y-=2){var k=y-1,M=y;if(x[k]===1&&x[M]===1){var P=[c[k],null,null,c[M]];c[k].y.cmp(c[M].y)===0?(P[1]=c[k].add(c[M]),P[2]=c[k].toJ().mixedAdd(c[M].neg())):c[k].y.cmp(c[M].y.redNeg())===0?(P[1]=c[k].toJ().mixedAdd(c[M]),P[2]=c[k].add(c[M].neg())):(P[1]=c[k].toJ().mixedAdd(c[M]),P[2]=c[k].toJ().mixedAdd(c[M].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],F=n(g[k],g[M]);for(C=Math.max(F[0].length,C),S[k]=new Array(C),S[M]=new Array(C),b=0;b<C;b++){var q=0|F[0][b],z=0|F[1][b];S[k][b]=N[3*(q+1)+(z+1)],S[M][b]=0,E[k]=P}}else S[k]=l(g[k],x[k],this._bitLength),S[M]=l(g[M],x[M],this._bitLength),C=Math.max(S[k].length,C),C=Math.max(S[M].length,C)}var O=this.jpoint(null,null,null),R=this._wnafT4;for(y=C;y>=0;y--){for(var I=0;y>=0;){var D=!0;for(b=0;b<p;b++)R[b]=0|S[b][y],R[b]!==0&&(D=!1);if(!D)break;I++,y--}if(y>=0&&I++,O=O.dblp(I),y<0)break;for(b=0;b<p;b++){var B=R[b];B!==0&&(B>0?A=E[b][B-1>>1]:B<0&&(A=E[b][-B-1>>1].neg()),O=A.type==="affine"?O.mixedAdd(A):O.add(A))}}for(y=0;y<p;y++)E[y]=null;return v?O:O.toP()},o.BasePoint=d,d.prototype.eq=function(){throw new Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(u,c){u=e.toArray(u,c);var g=this.p.byteLength();if((u[0]===4||u[0]===6||u[0]===7)&&u.length-1==2*g)return u[0]===6?t(u[u.length-1]%2==0):u[0]===7&&t(u[u.length-1]%2==1),this.point(u.slice(1,1+g),u.slice(1+g,1+2*g));if((u[0]===2||u[0]===3)&&u.length-1===g)return this.pointFromX(u.slice(1,1+g),u[0]===3);throw new Error("Unknown point format")},d.prototype.encodeCompressed=function(u){return this.encode(u,!0)},d.prototype._encode=function(u){var c=this.curve.p.byteLength(),g=this.getX().toArray("be",c);return u?[this.getY().isEven()?2:3].concat(g):[4].concat(g,this.getY().toArray("be",c))},d.prototype.encode=function(u,c){return e.encode(this._encode(c),u)},d.prototype.precompute=function(u){if(this.precomputed)return this;var c={doubles:null,naf:null,beta:null};return c.naf=this._getNAFPoints(8),c.doubles=this._getDoubles(4,u),c.beta=this._getBeta(),this.precomputed=c,this},d.prototype._hasDoubles=function(u){if(!this.precomputed)return!1;var c=this.precomputed.doubles;return!!c&&c.points.length>=Math.ceil((u.bitLength()+1)/c.step)},d.prototype._getDoubles=function(u,c){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var g=[this],p=this,v=0;v<c;v+=u){for(var y=0;y<u;y++)p=p.dbl();g.push(p)}return{step:u,points:g}},d.prototype._getNAFPoints=function(u){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var c=[this],g=(1<<u)-1,p=g===1?null:this.dbl(),v=1;v<g;v++)c[v]=c[v-1].add(p);return{wnd:u,points:c}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(u){for(var c=this,g=0;g<u;g++)c=c.dbl();return c}},1123:(r,s,i)=>{var f=i(7528),e=i(1734),l=i(1736),n=i(1249),t=f.assert;function o(u){this.twisted=(0|u.a)!=1,this.mOneA=this.twisted&&(0|u.a)==-1,this.extended=this.mOneA,n.call(this,"edwards",u),this.a=new e(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),t(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|u.c)==1}function d(u,c,g,p,v){n.BasePoint.call(this,u,"projective"),c===null&&g===null&&p===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 e(c,16),this.y=new e(g,16),this.z=p?new e(p,16):this.curve.one,this.t=v&&new e(v,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()))))}l(o,n),r.exports=o,o.prototype._mulA=function(u){return this.mOneA?u.redNeg():this.a.redMul(u)},o.prototype._mulC=function(u){return this.oneC?u:this.c.redMul(u)},o.prototype.jpoint=function(u,c,g,p){return this.point(u,c,g,p)},o.prototype.pointFromX=function(u,c){(u=new e(u,16)).red||(u=u.toRed(this.red));var g=u.redSqr(),p=this.c2.redSub(this.a.redMul(g)),v=this.one.redSub(this.c2.redMul(this.d).redMul(g)),y=p.redMul(v.redInvm()),b=y.redSqrt();if(b.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var A=b.fromRed().isOdd();return(c&&!A||!c&&A)&&(b=b.redNeg()),this.point(u,b)},o.prototype.pointFromY=function(u,c){(u=new e(u,16)).red||(u=u.toRed(this.red));var g=u.redSqr(),p=g.redSub(this.c2),v=g.redMul(this.d).redMul(this.c2).redSub(this.a),y=p.redMul(v.redInvm());if(y.cmp(this.zero)===0){if(c)throw new Error("invalid point");return this.point(this.zero,u)}var b=y.redSqrt();if(b.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");return b.fromRed().isOdd()!==c&&(b=b.redNeg()),this.point(b,u)},o.prototype.validate=function(u){if(u.isInfinity())return!0;u.normalize();var c=u.x.redSqr(),g=u.y.redSqr(),p=c.redMul(this.a).redAdd(g),v=this.c2.redMul(this.one.redAdd(this.d.redMul(c).redMul(g)));return p.cmp(v)===0},l(d,n.BasePoint),o.prototype.pointFromJSON=function(u){return d.fromJSON(this,u)},o.prototype.point=function(u,c,g,p){return new d(this,u,c,g,p)},d.fromJSON=function(u,c){return new d(u,c[0],c[1],c[2])},d.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)+">"},d.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},d.prototype._extDbl=function(){var u=this.x.redSqr(),c=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var p=this.curve._mulA(u),v=this.x.redAdd(this.y).redSqr().redISub(u).redISub(c),y=p.redAdd(c),b=y.redSub(g),A=p.redSub(c),x=v.redMul(b),E=y.redMul(A),S=v.redMul(A),C=b.redMul(y);return this.curve.point(x,E,C,S)},d.prototype._projDbl=function(){var u,c,g,p,v,y,b=this.x.redAdd(this.y).redSqr(),A=this.x.redSqr(),x=this.y.redSqr();if(this.curve.twisted){var E=(p=this.curve._mulA(A)).redAdd(x);this.zOne?(u=b.redSub(A).redSub(x).redMul(E.redSub(this.curve.two)),c=E.redMul(p.redSub(x)),g=E.redSqr().redSub(E).redSub(E)):(v=this.z.redSqr(),y=E.redSub(v).redISub(v),u=b.redSub(A).redISub(x).redMul(y),c=E.redMul(p.redSub(x)),g=E.redMul(y))}else p=A.redAdd(x),v=this.curve._mulC(this.z).redSqr(),y=p.redSub(v).redSub(v),u=this.curve._mulC(b.redISub(p)).redMul(y),c=this.curve._mulC(p).redMul(A.redISub(x)),g=p.redMul(y);return this.curve.point(u,c,g)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(u){var c=this.y.redSub(this.x).redMul(u.y.redSub(u.x)),g=this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)),p=this.t.redMul(this.curve.dd).redMul(u.t),v=this.z.redMul(u.z.redAdd(u.z)),y=g.redSub(c),b=v.redSub(p),A=v.redAdd(p),x=g.redAdd(c),E=y.redMul(b),S=A.redMul(x),C=y.redMul(x),T=b.redMul(A);return this.curve.point(E,S,T,C)},d.prototype._projAdd=function(u){var c,g,p=this.z.redMul(u.z),v=p.redSqr(),y=this.x.redMul(u.x),b=this.y.redMul(u.y),A=this.curve.d.redMul(y).redMul(b),x=v.redSub(A),E=v.redAdd(A),S=this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(y).redISub(b),C=p.redMul(x).redMul(S);return this.curve.twisted?(c=p.redMul(E).redMul(b.redSub(this.curve._mulA(y))),g=x.redMul(E)):(c=p.redMul(E).redMul(b.redSub(y)),g=this.curve._mulC(x).redMul(E)),this.curve.point(C,c,g)},d.prototype.add=function(u){return this.isInfinity()?u:u.isInfinity()?this:this.curve.extended?this._extAdd(u):this._projAdd(u)},d.prototype.mul=function(u){return this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve._wnafMul(this,u)},d.prototype.mulAdd=function(u,c,g){return this.curve._wnafMulAdd(1,[this,c],[u,g],2,!1)},d.prototype.jmulAdd=function(u,c,g){return this.curve._wnafMulAdd(1,[this,c],[u,g],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var u=this.z.redInvm();return this.x=this.x.redMul(u),this.y=this.y.redMul(u),this.t&&(this.t=this.t.redMul(u)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(u){return this===u||this.getX().cmp(u.getX())===0&&this.getY().cmp(u.getY())===0},d.prototype.eqXToP=function(u){var c=u.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(c)===0)return!0;for(var g=u.clone(),p=this.curve.redN.redMul(this.z);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(c.redIAdd(p),this.x.cmp(c)===0)return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6063:(r,s,i)=>{var f=s;f.base=i(1249),f.short=i(3148),f.mont=i(1105),f.edwards=i(1123)},1105:(r,s,i)=>{var f=i(1734),e=i(1736),l=i(1249),n=i(7528);function t(d){l.call(this,"mont",d),this.a=new f(d.a,16).toRed(this.red),this.b=new f(d.b,16).toRed(this.red),this.i4=new f(4).toRed(this.red).redInvm(),this.two=new f(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function o(d,u,c){l.BasePoint.call(this,d,"projective"),u===null&&c===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new f(u,16),this.z=new f(c,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(t,l),r.exports=t,t.prototype.validate=function(d){var u=d.normalize().x,c=u.redSqr(),g=c.redMul(u).redAdd(c.redMul(this.a)).redAdd(u);return g.redSqrt().redSqr().cmp(g)===0},e(o,l.BasePoint),t.prototype.decodePoint=function(d,u){return this.point(n.toArray(d,u),1)},t.prototype.point=function(d,u){return new o(this,d,u)},t.prototype.pointFromJSON=function(d){return o.fromJSON(this,d)},o.prototype.precompute=function(){},o.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},o.fromJSON=function(d,u){return new o(d,u[0],u[1]||d.one)},o.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)+">"},o.prototype.isInfinity=function(){return this.z.cmpn(0)===0},o.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),u=this.x.redSub(this.z).redSqr(),c=d.redSub(u),g=d.redMul(u),p=c.redMul(u.redAdd(this.curve.a24.redMul(c)));return this.curve.point(g,p)},o.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.diffAdd=function(d,u){var c=this.x.redAdd(this.z),g=this.x.redSub(this.z),p=d.x.redAdd(d.z),v=d.x.redSub(d.z).redMul(c),y=p.redMul(g),b=u.z.redMul(v.redAdd(y).redSqr()),A=u.x.redMul(v.redISub(y).redSqr());return this.curve.point(b,A)},o.prototype.mul=function(d){for(var u=d.clone(),c=this,g=this.curve.point(null,null),p=[];u.cmpn(0)!==0;u.iushrn(1))p.push(u.andln(1));for(var v=p.length-1;v>=0;v--)p[v]===0?(c=c.diffAdd(g,this),g=g.dbl()):(g=c.diffAdd(g,this),c=c.dbl());return g},o.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},o.prototype.eq=function(d){return this.getX().cmp(d.getX())===0},o.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},o.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},3148:(r,s,i)=>{var f=i(7528),e=i(1734),l=i(1736),n=i(1249),t=f.assert;function o(c){n.call(this,"short",c),this.a=new e(c.a,16).toRed(this.red),this.b=new e(c.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(c),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(c,g,p,v){n.BasePoint.call(this,c,"affine"),g===null&&p===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(g,16),this.y=new e(p,16),v&&(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 u(c,g,p,v){n.BasePoint.call(this,c,"jacobian"),g===null&&p===null&&v===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(g,16),this.y=new e(p,16),this.z=new e(v,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}l(o,n),r.exports=o,o.prototype._getEndomorphism=function(c){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var g,p;if(c.beta)g=new e(c.beta,16).toRed(this.red);else{var v=this._getEndoRoots(this.p);g=(g=v[0].cmp(v[1])<0?v[0]:v[1]).toRed(this.red)}if(c.lambda)p=new e(c.lambda,16);else{var y=this._getEndoRoots(this.n);this.g.mul(y[0]).x.cmp(this.g.x.redMul(g))===0?p=y[0]:(p=y[1],t(this.g.mul(p).x.cmp(this.g.x.redMul(g))===0))}return{beta:g,lambda:p,basis:c.basis?c.basis.map(function(b){return{a:new e(b.a,16),b:new e(b.b,16)}}):this._getEndoBasis(p)}}},o.prototype._getEndoRoots=function(c){var g=c===this.p?this.red:e.mont(c),p=new e(2).toRed(g).redInvm(),v=p.redNeg(),y=new e(3).toRed(g).redNeg().redSqrt().redMul(p);return[v.redAdd(y).fromRed(),v.redSub(y).fromRed()]},o.prototype._getEndoBasis=function(c){for(var g,p,v,y,b,A,x,E,S,C=this.n.ushrn(Math.floor(this.n.bitLength()/2)),T=c,k=this.n.clone(),M=new e(1),P=new e(0),N=new e(0),F=new e(1),q=0;T.cmpn(0)!==0;){var z=k.div(T);E=k.sub(z.mul(T)),S=N.sub(z.mul(M));var O=F.sub(z.mul(P));if(!v&&E.cmp(C)<0)g=x.neg(),p=M,v=E.neg(),y=S;else if(v&&++q==2)break;x=E,k=T,T=E,N=M,M=S,F=P,P=O}b=E.neg(),A=S;var R=v.sqr().add(y.sqr());return b.sqr().add(A.sqr()).cmp(R)>=0&&(b=g,A=p),v.negative&&(v=v.neg(),y=y.neg()),b.negative&&(b=b.neg(),A=A.neg()),[{a:v,b:y},{a:b,b:A}]},o.prototype._endoSplit=function(c){var g=this.endo.basis,p=g[0],v=g[1],y=v.b.mul(c).divRound(this.n),b=p.b.neg().mul(c).divRound(this.n),A=y.mul(p.a),x=b.mul(v.a),E=y.mul(p.b),S=b.mul(v.b);return{k1:c.sub(A).sub(x),k2:E.add(S).neg()}},o.prototype.pointFromX=function(c,g){(c=new e(c,16)).red||(c=c.toRed(this.red));var p=c.redSqr().redMul(c).redIAdd(c.redMul(this.a)).redIAdd(this.b),v=p.redSqrt();if(v.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var y=v.fromRed().isOdd();return(g&&!y||!g&&y)&&(v=v.redNeg()),this.point(c,v)},o.prototype.validate=function(c){if(c.inf)return!0;var g=c.x,p=c.y,v=this.a.redMul(g),y=g.redSqr().redMul(g).redIAdd(v).redIAdd(this.b);return p.redSqr().redISub(y).cmpn(0)===0},o.prototype._endoWnafMulAdd=function(c,g,p){for(var v=this._endoWnafT1,y=this._endoWnafT2,b=0;b<c.length;b++){var A=this._endoSplit(g[b]),x=c[b],E=x._getBeta();A.k1.negative&&(A.k1.ineg(),x=x.neg(!0)),A.k2.negative&&(A.k2.ineg(),E=E.neg(!0)),v[2*b]=x,v[2*b+1]=E,y[2*b]=A.k1,y[2*b+1]=A.k2}for(var S=this._wnafMulAdd(1,v,y,2*b,p),C=0;C<2*b;C++)v[C]=null,y[C]=null;return S},l(d,n.BasePoint),o.prototype.point=function(c,g,p){return new d(this,c,g,p)},o.prototype.pointFromJSON=function(c,g){return d.fromJSON(this,c,g)},d.prototype._getBeta=function(){if(this.curve.endo){var c=this.precomputed;if(c&&c.beta)return c.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(c){var p=this.curve,v=function(y){return p.point(y.x.redMul(p.endo.beta),y.y)};c.beta=g,g.precomputed={beta:null,naf:c.naf&&{wnd:c.naf.wnd,points:c.naf.points.map(v)},doubles:c.doubles&&{step:c.doubles.step,points:c.doubles.points.map(v)}}}return g}},d.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]},d.fromJSON=function(c,g,p){typeof g=="string"&&(g=JSON.parse(g));var v=c.point(g[0],g[1],p);if(!g[2])return v;function y(A){return c.point(A[0],A[1],p)}var b=g[2];return v.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[v].concat(b.doubles.points.map(y))},naf:b.naf&&{wnd:b.naf.wnd,points:[v].concat(b.naf.points.map(y))}},v},d.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)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(c){if(this.inf)return c;if(c.inf)return this;if(this.eq(c))return this.dbl();if(this.neg().eq(c))return this.curve.point(null,null);if(this.x.cmp(c.x)===0)return this.curve.point(null,null);var g=this.y.redSub(c.y);g.cmpn(0)!==0&&(g=g.redMul(this.x.redSub(c.x).redInvm()));var p=g.redSqr().redISub(this.x).redISub(c.x),v=g.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,v)},d.prototype.dbl=function(){if(this.inf)return this;var c=this.y.redAdd(this.y);if(c.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,p=this.x.redSqr(),v=c.redInvm(),y=p.redAdd(p).redIAdd(p).redIAdd(g).redMul(v),b=y.redSqr().redISub(this.x.redAdd(this.x)),A=y.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,A)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(c){return c=new e(c,16),this.isInfinity()?this:this._hasDoubles(c)?this.curve._fixedNafMul(this,c):this.curve.endo?this.curve._endoWnafMulAdd([this],[c]):this.curve._wnafMul(this,c)},d.prototype.mulAdd=function(c,g,p){var v=[this,g],y=[c,p];return this.curve.endo?this.curve._endoWnafMulAdd(v,y):this.curve._wnafMulAdd(1,v,y,2)},d.prototype.jmulAdd=function(c,g,p){var v=[this,g],y=[c,p];return this.curve.endo?this.curve._endoWnafMulAdd(v,y,!0):this.curve._wnafMulAdd(1,v,y,2,!0)},d.prototype.eq=function(c){return this===c||this.inf===c.inf&&(this.inf||this.x.cmp(c.x)===0&&this.y.cmp(c.y)===0)},d.prototype.neg=function(c){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(c&&this.precomputed){var p=this.precomputed,v=function(y){return y.neg()};g.precomputed={naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(v)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(v)}}}return g},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},l(u,n.BasePoint),o.prototype.jpoint=function(c,g,p){return new u(this,c,g,p)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var c=this.z.redInvm(),g=c.redSqr(),p=this.x.redMul(g),v=this.y.redMul(g).redMul(c);return this.curve.point(p,v)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(c){if(this.isInfinity())return c;if(c.isInfinity())return this;var g=c.z.redSqr(),p=this.z.redSqr(),v=this.x.redMul(g),y=c.x.redMul(p),b=this.y.redMul(g.redMul(c.z)),A=c.y.redMul(p.redMul(this.z)),x=v.redSub(y),E=b.redSub(A);if(x.cmpn(0)===0)return E.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var S=x.redSqr(),C=S.redMul(x),T=v.redMul(S),k=E.redSqr().redIAdd(C).redISub(T).redISub(T),M=E.redMul(T.redISub(k)).redISub(b.redMul(C)),P=this.z.redMul(c.z).redMul(x);return this.curve.jpoint(k,M,P)},u.prototype.mixedAdd=function(c){if(this.isInfinity())return c.toJ();if(c.isInfinity())return this;var g=this.z.redSqr(),p=this.x,v=c.x.redMul(g),y=this.y,b=c.y.redMul(g).redMul(this.z),A=p.redSub(v),x=y.redSub(b);if(A.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var E=A.redSqr(),S=E.redMul(A),C=p.redMul(E),T=x.redSqr().redIAdd(S).redISub(C).redISub(C),k=x.redMul(C.redISub(T)).redISub(y.redMul(S)),M=this.z.redMul(A);return this.curve.jpoint(T,k,M)},u.prototype.dblp=function(c){if(c===0)return this;if(this.isInfinity())return this;if(!c)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var p=this;for(g=0;g<c;g++)p=p.dbl();return p}var v=this.curve.a,y=this.curve.tinv,b=this.x,A=this.y,x=this.z,E=x.redSqr().redSqr(),S=A.redAdd(A);for(g=0;g<c;g++){var C=b.redSqr(),T=S.redSqr(),k=T.redSqr(),M=C.redAdd(C).redIAdd(C).redIAdd(v.redMul(E)),P=b.redMul(T),N=M.redSqr().redISub(P.redAdd(P)),F=P.redISub(N),q=M.redMul(F);q=q.redIAdd(q).redISub(k);var z=S.redMul(x);g+1<c&&(E=E.redMul(k)),b=N,x=z,S=q}return this.curve.jpoint(b,S.redMul(y),x)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var c,g,p;if(this.zOne){var v=this.x.redSqr(),y=this.y.redSqr(),b=y.redSqr(),A=this.x.redAdd(y).redSqr().redISub(v).redISub(b);A=A.redIAdd(A);var x=v.redAdd(v).redIAdd(v),E=x.redSqr().redISub(A).redISub(A),S=b.redIAdd(b);S=(S=S.redIAdd(S)).redIAdd(S),c=E,g=x.redMul(A.redISub(E)).redISub(S),p=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),T=this.y.redSqr(),k=T.redSqr(),M=this.x.redAdd(T).redSqr().redISub(C).redISub(k);M=M.redIAdd(M);var P=C.redAdd(C).redIAdd(C),N=P.redSqr(),F=k.redIAdd(k);F=(F=F.redIAdd(F)).redIAdd(F),c=N.redISub(M).redISub(M),g=P.redMul(M.redISub(c)).redISub(F),p=(p=this.y.redMul(this.z)).redIAdd(p)}return this.curve.jpoint(c,g,p)},u.prototype._threeDbl=function(){var c,g,p;if(this.zOne){var v=this.x.redSqr(),y=this.y.redSqr(),b=y.redSqr(),A=this.x.redAdd(y).redSqr().redISub(v).redISub(b);A=A.redIAdd(A);var x=v.redAdd(v).redIAdd(v).redIAdd(this.curve.a),E=x.redSqr().redISub(A).redISub(A);c=E;var S=b.redIAdd(b);S=(S=S.redIAdd(S)).redIAdd(S),g=x.redMul(A.redISub(E)).redISub(S),p=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),T=this.y.redSqr(),k=this.x.redMul(T),M=this.x.redSub(C).redMul(this.x.redAdd(C));M=M.redAdd(M).redIAdd(M);var P=k.redIAdd(k),N=(P=P.redIAdd(P)).redAdd(P);c=M.redSqr().redISub(N),p=this.y.redAdd(this.z).redSqr().redISub(T).redISub(C);var F=T.redSqr();F=(F=(F=F.redIAdd(F)).redIAdd(F)).redIAdd(F),g=M.redMul(P.redISub(c)).redISub(F)}return this.curve.jpoint(c,g,p)},u.prototype._dbl=function(){var c=this.curve.a,g=this.x,p=this.y,v=this.z,y=v.redSqr().redSqr(),b=g.redSqr(),A=p.redSqr(),x=b.redAdd(b).redIAdd(b).redIAdd(c.redMul(y)),E=g.redAdd(g),S=(E=E.redIAdd(E)).redMul(A),C=x.redSqr().redISub(S.redAdd(S)),T=S.redISub(C),k=A.redSqr();k=(k=(k=k.redIAdd(k)).redIAdd(k)).redIAdd(k);var M=x.redMul(T).redISub(k),P=p.redAdd(p).redMul(v);return this.curve.jpoint(C,M,P)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var c=this.x.redSqr(),g=this.y.redSqr(),p=this.z.redSqr(),v=g.redSqr(),y=c.redAdd(c).redIAdd(c),b=y.redSqr(),A=this.x.redAdd(g).redSqr().redISub(c).redISub(v),x=(A=(A=(A=A.redIAdd(A)).redAdd(A).redIAdd(A)).redISub(b)).redSqr(),E=v.redIAdd(v);E=(E=(E=E.redIAdd(E)).redIAdd(E)).redIAdd(E);var S=y.redIAdd(A).redSqr().redISub(b).redISub(x).redISub(E),C=g.redMul(S);C=(C=C.redIAdd(C)).redIAdd(C);var T=this.x.redMul(x).redISub(C);T=(T=T.redIAdd(T)).redIAdd(T);var k=this.y.redMul(S.redMul(E.redISub(S)).redISub(A.redMul(x)));k=(k=(k=k.redIAdd(k)).redIAdd(k)).redIAdd(k);var M=this.z.redAdd(A).redSqr().redISub(p).redISub(x);return this.curve.jpoint(T,k,M)},u.prototype.mul=function(c,g){return c=new e(c,g),this.curve._wnafMul(this,c)},u.prototype.eq=function(c){if(c.type==="affine")return this.eq(c.toJ());if(this===c)return!0;var g=this.z.redSqr(),p=c.z.redSqr();if(this.x.redMul(p).redISub(c.x.redMul(g)).cmpn(0)!==0)return!1;var v=g.redMul(this.z),y=p.redMul(c.z);return this.y.redMul(y).redISub(c.y.redMul(v)).cmpn(0)===0},u.prototype.eqXToP=function(c){var g=this.z.redSqr(),p=c.toRed(this.curve.red).redMul(g);if(this.x.cmp(p)===0)return!0;for(var v=c.clone(),y=this.curve.redN.redMul(g);;){if(v.iadd(this.curve.n),v.cmp(this.curve.p)>=0)return!1;if(p.redIAdd(y),this.x.cmp(p)===0)return!0}},u.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)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},506:(r,s,i)=>{var f,e=s,l=i(7198),n=i(6063),t=i(7528).assert;function o(u){u.type==="short"?this.curve=new n.short(u):u.type==="edwards"?this.curve=new n.edwards(u):this.curve=new n.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,t(this.g.validate(),"Invalid curve"),t(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(u,c){Object.defineProperty(e,u,{configurable:!0,enumerable:!0,get:function(){var g=new o(c);return Object.defineProperty(e,u,{configurable:!0,enumerable:!0,value:g}),g}})}e.PresetCurve=o,d("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:l.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("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:l.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("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:l.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("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:l.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"]}),d("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:l.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"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["9"]}),d("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:l.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{f=i(6401)}catch{f=void 0}d("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:l.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",f]})},8320:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1734),l=i(9410),n=i(7528),t=i(506),o=i(2202),d=n.assert,u=i(7791),c=i(488);function g(p){if(!(this instanceof g))return new g(p);typeof p=="string"&&(d(Object.prototype.hasOwnProperty.call(t,p),"Unknown curve "+p),p=t[p]),p instanceof t.PresetCurve&&(p={curve:p}),this.curve=p.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=p.curve.g,this.g.precompute(p.curve.n.bitLength()+1),this.hash=p.hash||p.curve.hash}r.exports=g,g.prototype.keyPair=function(p){return new u(this,p)},g.prototype.keyFromPrivate=function(p,v){return u.fromPrivate(this,p,v)},g.prototype.keyFromPublic=function(p,v){return u.fromPublic(this,p,v)},g.prototype.genKeyPair=function(p){p||(p={});for(var v=new l({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||o(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),y=this.n.byteLength(),b=this.n.sub(new e(2));;){var A=new e(v.generate(y));if(!(A.cmp(b)>0))return A.iaddn(1),this.keyFromPrivate(A)}},g.prototype._truncateToN=function(p,v){var y=8*p.byteLength()-this.n.bitLength();return y>0&&(p=p.ushrn(y)),!v&&p.cmp(this.n)>=0?p.sub(this.n):p},g.prototype.sign=function(p,v,y,b){(0,f.default)(y)==="object"&&(b=y,y=null),b||(b={}),v=this.keyFromPrivate(v,y),p=this._truncateToN(new e(p,16));for(var A=this.n.byteLength(),x=v.getPrivate().toArray("be",A),E=p.toArray("be",A),S=new l({hash:this.hash,entropy:x,nonce:E,pers:b.pers,persEnc:b.persEnc||"utf8"}),C=this.n.sub(new e(1)),T=0;;T++){var k=b.k?b.k(T):new e(S.generate(this.n.byteLength()));if(!((k=this._truncateToN(k,!0)).cmpn(1)<=0||k.cmp(C)>=0)){var M=this.g.mul(k);if(!M.isInfinity()){var P=M.getX(),N=P.umod(this.n);if(N.cmpn(0)!==0){var F=k.invm(this.n).mul(N.mul(v.getPrivate()).iadd(p));if((F=F.umod(this.n)).cmpn(0)!==0){var q=(M.getY().isOdd()?1:0)|(P.cmp(N)!==0?2:0);return b.canonical&&F.cmp(this.nh)>0&&(F=this.n.sub(F),q^=1),new c({r:N,s:F,recoveryParam:q})}}}}}},g.prototype.verify=function(p,v,y,b){p=this._truncateToN(new e(p,16)),y=this.keyFromPublic(y,b);var A=(v=new c(v,"hex")).r,x=v.s;if(A.cmpn(1)<0||A.cmp(this.n)>=0||x.cmpn(1)<0||x.cmp(this.n)>=0)return!1;var E,S=x.invm(this.n),C=S.mul(p).umod(this.n),T=S.mul(A).umod(this.n);return this.curve._maxwellTrick?!(E=this.g.jmulAdd(C,y.getPublic(),T)).isInfinity()&&E.eqXToP(A):!(E=this.g.mulAdd(C,y.getPublic(),T)).isInfinity()&&E.getX().umod(this.n).cmp(A)===0},g.prototype.recoverPubKey=function(p,v,y,b){d((3&y)===y,"The recovery param is more than two bits"),v=new c(v,b);var A=this.n,x=new e(p),E=v.r,S=v.s,C=1&y,T=y>>1;if(E.cmp(this.curve.p.umod(this.curve.n))>=0&&T)throw new Error("Unable to find sencond key candinate");E=T?this.curve.pointFromX(E.add(this.curve.n),C):this.curve.pointFromX(E,C);var k=v.r.invm(A),M=A.sub(x).mul(k).umod(A),P=S.mul(k).umod(A);return this.g.mulAdd(M,E,P)},g.prototype.getKeyRecoveryParam=function(p,v,y,b){if((v=new c(v,b)).recoveryParam!==null)return v.recoveryParam;for(var A=0;A<4;A++){var x;try{x=this.recoverPubKey(p,v,A)}catch{continue}if(x.eq(y))return A}throw new Error("Unable to find valid recovery factor")}},7791:(r,s,i)=>{var f=i(1734),e=i(7528).assert;function l(n,t){this.ec=n,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}r.exports=l,l.fromPublic=function(n,t,o){return t instanceof l?t:new l(n,{pub:t,pubEnc:o})},l.fromPrivate=function(n,t,o){return t instanceof l?t:new l(n,{priv:t,privEnc:o})},l.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.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"}},l.prototype.getPublic=function(n,t){return typeof n=="string"&&(t=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,n):this.pub},l.prototype.getPrivate=function(n){return n==="hex"?this.priv.toString(16,2):this.priv},l.prototype._importPrivate=function(n,t){this.priv=new f(n,t||16),this.priv=this.priv.umod(this.ec.curve.n)},l.prototype._importPublic=function(n,t){if(n.x||n.y)return this.ec.curve.type==="mont"?e(n.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||e(n.x&&n.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(n.x,n.y));this.pub=this.ec.curve.decodePoint(n,t)},l.prototype.derive=function(n){return n.validate()||e(n.validate(),"public point not validated"),n.mul(this.priv).getX()},l.prototype.sign=function(n,t,o){return this.ec.sign(n,this,t,o)},l.prototype.verify=function(n,t){return this.ec.verify(n,t,this)},l.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},488:(r,s,i)=>{var f=i(1734),e=i(7528),l=e.assert;function n(c,g){if(c instanceof n)return c;this._importDER(c,g)||(l(c.r&&c.s,"Signature without r or s"),this.r=new f(c.r,16),this.s=new f(c.s,16),c.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=c.recoveryParam)}function t(){this.place=0}function o(c,g){var p=c[g.place++];if(!(128&p))return p;var v=15&p;if(v===0||v>4)return!1;for(var y=0,b=0,A=g.place;b<v;b++,A++)y<<=8,y|=c[A],y>>>=0;return!(y<=127)&&(g.place=A,y)}function d(c){for(var g=0,p=c.length-1;!c[g]&&!(128&c[g+1])&&g<p;)g++;return g===0?c:c.slice(g)}function u(c,g){if(g<128)c.push(g);else{var p=1+(Math.log(g)/Math.LN2>>>3);for(c.push(128|p);--p;)c.push(g>>>(p<<3)&255);c.push(g)}}r.exports=n,n.prototype._importDER=function(c,g){c=e.toArray(c,g);var p=new t;if(c[p.place++]!==48)return!1;var v=o(c,p);if(v===!1||v+p.place!==c.length||c[p.place++]!==2)return!1;var y=o(c,p);if(y===!1)return!1;var b=c.slice(p.place,y+p.place);if(p.place+=y,c[p.place++]!==2)return!1;var A=o(c,p);if(A===!1||c.length!==A+p.place)return!1;var x=c.slice(p.place,A+p.place);if(b[0]===0){if(!(128&b[1]))return!1;b=b.slice(1)}if(x[0]===0){if(!(128&x[1]))return!1;x=x.slice(1)}return this.r=new f(b),this.s=new f(x),this.recoveryParam=null,!0},n.prototype.toDER=function(c){var g=this.r.toArray(),p=this.s.toArray();for(128&g[0]&&(g=[0].concat(g)),128&p[0]&&(p=[0].concat(p)),g=d(g),p=d(p);!(p[0]||128&p[1]);)p=p.slice(1);var v=[2];u(v,g.length),(v=v.concat(g)).push(2),u(v,p.length);var y=v.concat(p),b=[48];return u(b,y.length),b=b.concat(y),e.encode(b,c)}},8027:(r,s,i)=>{var f=i(7198),e=i(506),l=i(7528),n=l.assert,t=l.parseBytes,o=i(7303),d=i(6646);function u(c){if(n(c==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(c);c=e[c].curve,this.curve=c,this.g=c.g,this.g.precompute(c.n.bitLength()+1),this.pointClass=c.point().constructor,this.encodingLength=Math.ceil(c.n.bitLength()/8),this.hash=f.sha512}r.exports=u,u.prototype.sign=function(c,g){c=t(c);var p=this.keyFromSecret(g),v=this.hashInt(p.messagePrefix(),c),y=this.g.mul(v),b=this.encodePoint(y),A=this.hashInt(b,p.pubBytes(),c).mul(p.priv()),x=v.add(A).umod(this.curve.n);return this.makeSignature({R:y,S:x,Rencoded:b})},u.prototype.verify=function(c,g,p){c=t(c),g=this.makeSignature(g);var v=this.keyFromPublic(p),y=this.hashInt(g.Rencoded(),v.pubBytes(),c),b=this.g.mul(g.S());return g.R().add(v.pub().mul(y)).eq(b)},u.prototype.hashInt=function(){for(var c=this.hash(),g=0;g<arguments.length;g++)c.update(arguments[g]);return l.intFromLE(c.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(c){return o.fromPublic(this,c)},u.prototype.keyFromSecret=function(c){return o.fromSecret(this,c)},u.prototype.makeSignature=function(c){return c instanceof d?c:new d(this,c)},u.prototype.encodePoint=function(c){var g=c.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=c.getX().isOdd()?128:0,g},u.prototype.decodePoint=function(c){var g=(c=l.parseBytes(c)).length-1,p=c.slice(0,g).concat(-129&c[g]),v=(128&c[g])!=0,y=l.intFromLE(p);return this.curve.pointFromY(y,v)},u.prototype.encodeInt=function(c){return c.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(c){return l.intFromLE(c)},u.prototype.isPoint=function(c){return c instanceof this.pointClass}},7303:(r,s,i)=>{var f=i(7528),e=f.assert,l=f.parseBytes,n=f.cachedProperty;function t(o,d){this.eddsa=o,this._secret=l(d.secret),o.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=l(d.pub)}t.fromPublic=function(o,d){return d instanceof t?d:new t(o,{pub:d})},t.fromSecret=function(o,d){return d instanceof t?d:new t(o,{secret:d})},t.prototype.secret=function(){return this._secret},n(t,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),n(t,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),n(t,"privBytes",function(){var o=this.eddsa,d=this.hash(),u=o.encodingLength-1,c=d.slice(0,o.encodingLength);return c[0]&=248,c[u]&=127,c[u]|=64,c}),n(t,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),n(t,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),n(t,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),t.prototype.sign=function(o){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(o,this)},t.prototype.verify=function(o,d){return this.eddsa.verify(o,d,this)},t.prototype.getSecret=function(o){return e(this._secret,"KeyPair is public only"),f.encode(this.secret(),o)},t.prototype.getPublic=function(o){return f.encode(this.pubBytes(),o)},r.exports=t},6646:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1734),l=i(7528),n=l.assert,t=l.cachedProperty,o=l.parseBytes;function d(u,c){this.eddsa=u,(0,f.default)(c)!=="object"&&(c=o(c)),Array.isArray(c)&&(c={R:c.slice(0,u.encodingLength),S:c.slice(u.encodingLength)}),n(c.R&&c.S,"Signature without R or S"),u.isPoint(c.R)&&(this._R=c.R),c.S instanceof e&&(this._S=c.S),this._Rencoded=Array.isArray(c.R)?c.R:c.Rencoded,this._Sencoded=Array.isArray(c.S)?c.S:c.Sencoded}t(d,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),t(d,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),t(d,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),t(d,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return l.encode(this.toBytes(),"hex").toUpperCase()},r.exports=d},6401:r=>{r.exports={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"]]}}},7528:(r,s,i)=>{var f=s,e=i(1734),l=i(4504),n=i(6580);f.assert=l,f.toArray=n.toArray,f.zero2=n.zero2,f.toHex=n.toHex,f.encode=n.encode,f.getNAF=function(t,o,d){var u=new Array(Math.max(t.bitLength(),d)+1);u.fill(0);for(var c=1<<o+1,g=t.clone(),p=0;p<u.length;p++){var v,y=g.andln(c-1);g.isOdd()?(v=y>(c>>1)-1?(c>>1)-y:y,g.isubn(v)):v=0,u[p]=v,g.iushrn(1)}return u},f.getJSF=function(t,o){var d=[[],[]];t=t.clone(),o=o.clone();for(var u,c=0,g=0;t.cmpn(-c)>0||o.cmpn(-g)>0;){var p,v,y=t.andln(3)+c&3,b=o.andln(3)+g&3;y===3&&(y=-1),b===3&&(b=-1),p=1&y?(u=t.andln(7)+c&7)!=3&&u!==5||b!==2?y:-y:0,d[0].push(p),v=1&b?(u=o.andln(7)+g&7)!=3&&u!==5||y!==2?b:-b:0,d[1].push(v),2*c===p+1&&(c=1-c),2*g===v+1&&(g=1-g),t.iushrn(1),o.iushrn(1)}return d},f.cachedProperty=function(t,o,d){var u="_"+o;t.prototype[o]=function(){return this[u]!==void 0?this[u]:this[u]=d.call(this)}},f.parseBytes=function(t){return typeof t=="string"?f.toArray(t,"hex"):t},f.intFromLE=function(t){return new e(t,"hex","le")}},6464:(r,s,i)=>{var f=i(8847)(i(3355)),e=function(){if((typeof self>"u"?"undefined":(0,f.default)(self))==="object"&&self)return self;if((typeof window>"u"?"undefined":(0,f.default)(window))==="object"&&window)return window;throw new Error("Unable to resolve global `this`")};r.exports=function(){if(this)return this;if((typeof globalThis>"u"?"undefined":(0,f.default)(globalThis))==="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}()},4258:(r,s,i)=>{var f,e,l,n=i(9142),t=i(8847)(i(3355));l=function(){function o(te){return typeof te=="function"}var d=Array.isArray?Array.isArray:function(te){return Object.prototype.toString.call(te)==="[object Array]"},u=0,c=void 0,g=void 0,p=function(te,ee){S[u]=te,S[u+1]=ee,(u+=2)===2&&(g?g(C):N())},v=typeof window<"u"?window:void 0,y=v||{},b=y.MutationObserver||y.WebKitMutationObserver,A=typeof self>"u"&&n!==void 0&&{}.toString.call(n)==="[object process]",x=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function E(){var te=setTimeout;return function(){return te(C,1)}}var S=new Array(1e3);function C(){for(var te=0;te<u;te+=2)(0,S[te])(S[te+1]),S[te]=void 0,S[te+1]=void 0;u=0}var T,k,M,P,N=void 0;function F(te,ee){var ie=this,se=new this.constructor(O);se[z]===void 0&&H(se);var ne=ie._state;if(ne){var re=arguments[ne-1];p(function(){return G(ne,se,re,ie._result)})}else L(ie,se,te,ee);return se}function q(te){if(te&&(0,t.default)(te)==="object"&&te.constructor===this)return te;var ee=new this(O);return j(ee,te),ee}A?N=function(){return n.nextTick(C)}:b?(k=0,M=new b(C),P=document.createTextNode(""),M.observe(P,{characterData:!0}),N=function(){P.data=k=++k%2}):x?((T=new MessageChannel).port1.onmessage=C,N=function(){return T.port2.postMessage(0)}):N=v===void 0?function(){try{var te=Function("return this")().require("vertx");return(c=te.runOnLoop||te.runOnContext)!==void 0?function(){c(C)}:E()}catch{return E()}}():E();var z=Math.random().toString(36).substring(2);function O(){}var R=void 0,I=1,D=2;function B(te,ee,ie){ee.constructor===te.constructor&&ie===F&&ee.constructor.resolve===q?function(se,ne){ne._state===I?X(se,ne._result):ne._state===D?Z(se,ne._result):L(ne,void 0,function(re){return j(se,re)},function(re){return Z(se,re)})}(te,ee):ie===void 0?X(te,ee):o(ie)?function(se,ne,re){p(function(Y){var V=!1,oe=function(fe,ce,he,le){try{fe.call(ce,function(ae){V||(V=!0,ne!==ae?j(Y,ae):X(Y,ae))},function(ae){V||(V=!0,Z(Y,ae))})}catch(ae){return ae}}(re,ne,0,0,Y._label);!V&&oe&&(V=!0,Z(Y,oe))},se)}(te,ee,ie):X(te,ee)}function j(te,ee){if(te===ee)Z(te,new TypeError("You cannot resolve a promise with itself"));else if(se=ee,ne=(0,t.default)(se),se===null||ne!=="object"&&ne!=="function")X(te,ee);else{var ie=void 0;try{ie=ee.then}catch(re){return void Z(te,re)}B(te,ee,ie)}var se,ne}function Q(te){te._onerror&&te._onerror(te._result),W(te)}function X(te,ee){te._state===R&&(te._result=ee,te._state=I,te._subscribers.length!==0&&p(W,te))}function Z(te,ee){te._state===R&&(te._state=D,te._result=ee,p(Q,te))}function L(te,ee,ie,se){var ne=te._subscribers,re=ne.length;te._onerror=null,ne[re]=ee,ne[re+I]=ie,ne[re+D]=se,re===0&&te._state&&p(W,te)}function W(te){var ee=te._subscribers,ie=te._state;if(ee.length!==0){for(var se=void 0,ne=void 0,re=te._result,Y=0;Y<ee.length;Y+=3)se=ee[Y],ne=ee[Y+ie],se?G(ie,se,ne,re):ne(re);te._subscribers.length=0}}function G(te,ee,ie,se){var ne=o(ie),re=void 0,Y=void 0,V=!0;if(ne){try{re=ie(se)}catch(oe){V=!1,Y=oe}if(ee===re)return void Z(ee,new TypeError("A promises callback cannot return that same promise."))}else re=se;ee._state!==R||(ne&&V?j(ee,re):V===!1?Z(ee,Y):te===I?X(ee,re):te===D&&Z(ee,re))}var J=0;function H(te){te[z]=J++,te._state=void 0,te._result=void 0,te._subscribers=[]}var U=function(){function te(ee,ie){this._instanceConstructor=ee,this.promise=new ee(O),this.promise[z]||H(this.promise),d(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?X(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&X(this.promise,this._result))):Z(this.promise,new Error("Array Methods must be provided an Array"))}return te.prototype._enumerate=function(ee){for(var ie=0;this._state===R&&ie<ee.length;ie++)this._eachEntry(ee[ie],ie)},te.prototype._eachEntry=function(ee,ie){var se=this._instanceConstructor,ne=se.resolve;if(ne===q){var re=void 0,Y=void 0,V=!1;try{re=ee.then}catch(fe){V=!0,Y=fe}if(re===F&&ee._state!==R)this._settledAt(ee._state,ie,ee._result);else if(typeof re!="function")this._remaining--,this._result[ie]=ee;else if(se===K){var oe=new se(O);V?Z(oe,Y):B(oe,ee,re),this._willSettleAt(oe,ie)}else this._willSettleAt(new se(function(fe){return fe(ee)}),ie)}else this._willSettleAt(ne(ee),ie)},te.prototype._settledAt=function(ee,ie,se){var ne=this.promise;ne._state===R&&(this._remaining--,ee===D?Z(ne,se):this._result[ie]=se),this._remaining===0&&X(ne,this._result)},te.prototype._willSettleAt=function(ee,ie){var se=this;L(ee,void 0,function(ne){return se._settledAt(I,ie,ne)},function(ne){return se._settledAt(D,ie,ne)})},te}(),K=function(){function te(ee){this[z]=J++,this._result=this._state=void 0,this._subscribers=[],O!==ee&&(typeof ee!="function"&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof te?function(ie,se){try{se(function(ne){j(ie,ne)},function(ne){Z(ie,ne)})}catch(ne){Z(ie,ne)}}(this,ee):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return te.prototype.catch=function(ee){return this.then(null,ee)},te.prototype.finally=function(ee){var ie=this,se=ie.constructor;return o(ee)?ie.then(function(ne){return se.resolve(ee()).then(function(){return ne})},function(ne){return se.resolve(ee()).then(function(){throw ne})}):ie.then(ee,ee)},te}();return K.prototype.then=F,K.all=function(te){return new U(this,te).promise},K.race=function(te){var ee=this;return d(te)?new ee(function(ie,se){for(var ne=te.length,re=0;re<ne;re++)ee.resolve(te[re]).then(ie,se)}):new ee(function(ie,se){return se(new TypeError("You must pass an array to race."))})},K.resolve=q,K.reject=function(te){var ee=new this(O);return Z(ee,te),ee},K._setScheduler=function(te){g=te},K._setAsap=function(te){p=te},K._asap=p,K.polyfill=function(){var te=void 0;if(i.g!==void 0)te=i.g;else if(typeof self<"u")te=self;else try{te=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var ee=te.Promise;if(ee){var ie=null;try{ie=Object.prototype.toString.call(ee.resolve())}catch{}if(ie==="[object Promise]"&&!ee.cast)return}te.Promise=K},K.Promise=K,K},(0,t.default)(s)==="object"?r.exports=l():(e=typeof(f=l)=="function"?f.call(s,i,s,r):f)===void 0||(r.exports=e)},1006:(r,s,i)=>{var f=i(9033).Buffer,e=i(4858).keccak_256,l=i(3956);function n(t){return t&&l.toUnicode(t,{useStd3ASCII:!0,transitional:!1})}s.hash=function(t){for(var o="",d=0;d<32;d++)o+="00";if(name=n(t),name){var u=name.split(".");for(d=u.length-1;d>=0;d--){var c=e(u[d]);o=e(new f(o+c,"hex"))}}return"0x"+o},s.normalize=n},3058:(r,s,i)=>{var f=i(9033).Buffer,e=i(8847)(i(4519)),l=i(6851),n=i(9733),t=i(6597),o=(i(6740),new t.ec("secp256k1")),d=i(2922),u=d.keccak256,c=d.keccak256s,g=function(x){for(var E=c(x.slice(2)),S="0x",C=0;C<40;C++)S+=parseInt(E[C+2],16)>7?x[C+2].toUpperCase():x[C+2];return S},p=function(x){var E=new f(x.slice(2),"hex"),S="0x"+o.keyFromPrivate(E).getPublic(!1,"hex").slice(2),C=u(S);return{address:g("0x"+C.slice(-40)),privateKey:x}},v=function(x){var E=(0,e.default)(x,3),S=E[0],C=E[1],T=E[2];return l.flatten([C,T,S])},y=function(x){return[l.slice(64,l.length(x),x),l.slice(0,32,x),l.slice(32,64,x)]},b=function(x){return function(E,S){var C=o.keyFromPrivate(new f(S.slice(2),"hex")).sign(new f(E.slice(2),"hex"),{canonical:!0});return v([n.fromString(l.fromNumber(x+C.recoveryParam)),l.pad(32,l.fromNat("0x"+C.r.toString(16))),l.pad(32,l.fromNat("0x"+C.s.toString(16)))])}},A=b(27);r.exports={create:function(x){var E=u(l.concat(l.random(32),x||l.random(32))),S=l.concat(l.concat(l.random(32),E),l.random(32)),C=u(S);return p(C)},toChecksum:g,fromPrivate:p,sign:A,makeSigner:b,recover:function(x,E){var S=y(E),C={v:l.toNumber(S[0]),r:S[1].slice(2),s:S[2].slice(2)},T="0x"+o.recoverPubKey(new f(x.slice(2),"hex"),C,C.v<2?C.v:1-C.v%2).encode("hex",!1).slice(2),k=u(T);return g("0x"+k.slice(-40))},encodeSignature:v,decodeSignature:y}},1376:r=>{var s=function(i,f){for(var e=[],l=0;l<i;++l)e.push(f(l));return e};r.exports={generate:s,replicate:function(i,f){return s(i,function(){return f})},concat:function(i,f){return i.concat(f)},flatten:function(i){for(var f=[],e=0,l=i.length;e<l;++e)for(var n=0,t=i[e].length;n<t;++n)f.push(i[e][n]);return f},chunksOf:function(i,f){for(var e=[],l=0,n=f.length;l<n;l+=i)e.push(f.slice(l,l+i));return e}}},6851:(r,s,i)=>{i(1376);var f=function(t,o){return parseInt(t.slice(2*o+2,2*o+4),16)},e=function(t){return(t.length-2)/2},l=function(t){for(var o=[],d=2,u=t.length;d<u;d+=2)o.push(parseInt(t.slice(d,d+2),16));return o},n=function(t){for(var o="0x",d=0,u=t.length;d<u;++d){var c=t[d];o+=(c<16?"0":"")+c.toString(16)}return o};r.exports={random:function(t){var o;o=typeof window<"u"&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(t)):i(4293).randomBytes(t);for(var d="0x",u=0;u<t;++u)d+=("00"+o[u].toString(16)).slice(-2);return d},length:e,concat:function(t,o){return t.concat(o.slice(2))},flatten:function(t){return"0x"+t.reduce(function(o,d){return o+d.slice(2)},"")},slice:function(t,o,d){return"0x"+d.slice(2*t+2,2*o+2)},reverse:function(t){for(var o="0x",d=0,u=e(t);d<u;++d)o+=t.slice(2*(u-d),2*(u-d+1));return o},pad:function t(o,d){return d.length===2*o+2?d:t(o,"0x0"+d.slice(2))},padRight:function t(o,d){return d.length===2*o+2?d:t(o,d+"0")},fromAscii:function(t){for(var o="0x",d=0;d<t.length;++d)o+=("00"+t.charCodeAt(d).toString(16)).slice(-2);return o},toAscii:function(t){for(var o="",d=2;d<t.length;d+=2)o+=String.fromCharCode(parseInt(t.slice(d,d+2),16));return o},fromString:function(t){for(var o=function(p){var v=p.toString(16);return v.length<2?"0"+v:v},d="0x",u=0;u!=t.length;u++){var c=t.charCodeAt(u);if(c<128)d+=o(c);else{if(c<2048)d+=o(c>>6|192);else{if(c>55295&&c<56320){if(++u==t.length)return null;var g=t.charCodeAt(u);if(g<56320||g>57343)return null;d+=o((c=65536+((1023&c)<<10)+(1023&g))>>18|240),d+=o(c>>12&63|128)}else d+=o(c>>12|224);d+=o(c>>6&63|128)}d+=o(63&c|128)}}return d},toString:function(t){for(var o="",d=0,u=e(t);d<u;){var c=f(t,d++);if(c>127){if(c>191&&c<224){if(d>=u)return null;c=(31&c)<<6|63&f(t,d)}else if(c>223&&c<240){if(d+1>=u)return null;c=(15&c)<<12|(63&f(t,d))<<6|63&f(t,++d)}else{if(!(c>239&&c<248)||d+2>=u)return null;c=(7&c)<<18|(63&f(t,d))<<12|(63&f(t,++d))<<6|63&f(t,++d)}++d}if(c<=65535)o+=String.fromCharCode(c);else{if(!(c<=1114111))return null;c-=65536,o+=String.fromCharCode(c>>10|55296),o+=String.fromCharCode(1023&c|56320)}}return o},fromNumber:function(t){var o=t.toString(16);return o.length%2==0?"0x"+o:"0x0"+o},toNumber:function(t){return parseInt(t.slice(2),16)},fromNat:function(t){return t==="0x0"?"0x":t.length%2==0?t:"0x0"+t.slice(2)},toNat:function(t){return t[2]==="0"?"0x"+t.slice(3):t},fromArray:n,toArray:l,fromUint8Array:function(t){return n([].slice.call(t,0))},toUint8Array:function(t){return new Uint8Array(l(t))}}},2922:r=>{var s="0123456789abcdef".split(""),i=[1,256,65536,16777216],f=[0,8,16,24],e=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],l=function(t){var o,d,u,c,g,p,v,y,b,A,x,E,S,C,T,k,M,P,N,F,q,z,O,R,I,D,B,j,Q,X,Z,L,W,G,J,H,U,K,te,ee,ie,se,ne,re,Y,V,oe,fe,ce,he,le,ae,ue,de,ve,me,ge,xe,Ae,Te,ke,Pe,Ie;for(u=0;u<48;u+=2)c=t[0]^t[10]^t[20]^t[30]^t[40],g=t[1]^t[11]^t[21]^t[31]^t[41],p=t[2]^t[12]^t[22]^t[32]^t[42],v=t[3]^t[13]^t[23]^t[33]^t[43],y=t[4]^t[14]^t[24]^t[34]^t[44],b=t[5]^t[15]^t[25]^t[35]^t[45],A=t[6]^t[16]^t[26]^t[36]^t[46],x=t[7]^t[17]^t[27]^t[37]^t[47],o=(E=t[8]^t[18]^t[28]^t[38]^t[48])^(p<<1|v>>>31),d=(S=t[9]^t[19]^t[29]^t[39]^t[49])^(v<<1|p>>>31),t[0]^=o,t[1]^=d,t[10]^=o,t[11]^=d,t[20]^=o,t[21]^=d,t[30]^=o,t[31]^=d,t[40]^=o,t[41]^=d,o=c^(y<<1|b>>>31),d=g^(b<<1|y>>>31),t[2]^=o,t[3]^=d,t[12]^=o,t[13]^=d,t[22]^=o,t[23]^=d,t[32]^=o,t[33]^=d,t[42]^=o,t[43]^=d,o=p^(A<<1|x>>>31),d=v^(x<<1|A>>>31),t[4]^=o,t[5]^=d,t[14]^=o,t[15]^=d,t[24]^=o,t[25]^=d,t[34]^=o,t[35]^=d,t[44]^=o,t[45]^=d,o=y^(E<<1|S>>>31),d=b^(S<<1|E>>>31),t[6]^=o,t[7]^=d,t[16]^=o,t[17]^=d,t[26]^=o,t[27]^=d,t[36]^=o,t[37]^=d,t[46]^=o,t[47]^=d,o=A^(c<<1|g>>>31),d=x^(g<<1|c>>>31),t[8]^=o,t[9]^=d,t[18]^=o,t[19]^=d,t[28]^=o,t[29]^=d,t[38]^=o,t[39]^=d,t[48]^=o,t[49]^=d,C=t[0],T=t[1],V=t[11]<<4|t[10]>>>28,oe=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,Q=t[21]<<3|t[20]>>>29,Te=t[31]<<9|t[30]>>>23,ke=t[30]<<9|t[31]>>>23,se=t[40]<<18|t[41]>>>14,ne=t[41]<<18|t[40]>>>14,G=t[2]<<1|t[3]>>>31,J=t[3]<<1|t[2]>>>31,k=t[13]<<12|t[12]>>>20,M=t[12]<<12|t[13]>>>20,fe=t[22]<<10|t[23]>>>22,ce=t[23]<<10|t[22]>>>22,X=t[33]<<13|t[32]>>>19,Z=t[32]<<13|t[33]>>>19,Pe=t[42]<<2|t[43]>>>30,Ie=t[43]<<2|t[42]>>>30,de=t[5]<<30|t[4]>>>2,ve=t[4]<<30|t[5]>>>2,H=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,P=t[25]<<11|t[24]>>>21,N=t[24]<<11|t[25]>>>21,he=t[34]<<15|t[35]>>>17,le=t[35]<<15|t[34]>>>17,L=t[45]<<29|t[44]>>>3,W=t[44]<<29|t[45]>>>3,R=t[6]<<28|t[7]>>>4,I=t[7]<<28|t[6]>>>4,me=t[17]<<23|t[16]>>>9,ge=t[16]<<23|t[17]>>>9,K=t[26]<<25|t[27]>>>7,te=t[27]<<25|t[26]>>>7,F=t[36]<<21|t[37]>>>11,q=t[37]<<21|t[36]>>>11,ae=t[47]<<24|t[46]>>>8,ue=t[46]<<24|t[47]>>>8,re=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,D=t[18]<<20|t[19]>>>12,B=t[19]<<20|t[18]>>>12,xe=t[29]<<7|t[28]>>>25,Ae=t[28]<<7|t[29]>>>25,ee=t[38]<<8|t[39]>>>24,ie=t[39]<<8|t[38]>>>24,z=t[48]<<14|t[49]>>>18,O=t[49]<<14|t[48]>>>18,t[0]=C^~k&P,t[1]=T^~M&N,t[10]=R^~D&j,t[11]=I^~B&Q,t[20]=G^~H&K,t[21]=J^~U&te,t[30]=re^~V&fe,t[31]=Y^~oe&ce,t[40]=de^~me&xe,t[41]=ve^~ge&Ae,t[2]=k^~P&F,t[3]=M^~N&q,t[12]=D^~j&X,t[13]=B^~Q&Z,t[22]=H^~K&ee,t[23]=U^~te&ie,t[32]=V^~fe&he,t[33]=oe^~ce&le,t[42]=me^~xe&Te,t[43]=ge^~Ae&ke,t[4]=P^~F&z,t[5]=N^~q&O,t[14]=j^~X&L,t[15]=Q^~Z&W,t[24]=K^~ee&se,t[25]=te^~ie&ne,t[34]=fe^~he&ae,t[35]=ce^~le&ue,t[44]=xe^~Te&Pe,t[45]=Ae^~ke&Ie,t[6]=F^~z&C,t[7]=q^~O&T,t[16]=X^~L&R,t[17]=Z^~W&I,t[26]=ee^~se&G,t[27]=ie^~ne&J,t[36]=he^~ae&re,t[37]=le^~ue&Y,t[46]=Te^~Pe&de,t[47]=ke^~Ie&ve,t[8]=z^~C&k,t[9]=O^~T&M,t[18]=L^~R&D,t[19]=W^~I&B,t[28]=se^~G&H,t[29]=ne^~J&U,t[38]=ae^~re&V,t[39]=ue^~Y&oe,t[48]=Pe^~de&me,t[49]=Ie^~ve&ge,t[0]^=e[u],t[1]^=e[u+1]},n=function(t){return function(o){var d;if(o.slice(0,2)==="0x"){d=[];for(var u=2,c=o.length;u<c;u+=2)d.push(parseInt(o.slice(u,u+2),16))}else d=o;return function(g,p){for(var v,y=p.length,b=g.blocks,A=g.blockCount<<2,x=g.blockCount,E=g.outputBlocks,S=g.s,C=0;C<y;){if(g.reset)for(g.reset=!1,b[0]=g.block,M=1;M<x+1;++M)b[M]=0;if(typeof p!="string")for(M=g.start;C<y&&M<A;++C)b[M>>2]|=p[C]<<f[3&M++];else for(M=g.start;C<y&&M<A;++C)(v=p.charCodeAt(C))<128?b[M>>2]|=v<<f[3&M++]:v<2048?(b[M>>2]|=(192|v>>6)<<f[3&M++],b[M>>2]|=(128|63&v)<<f[3&M++]):v<55296||v>=57344?(b[M>>2]|=(224|v>>12)<<f[3&M++],b[M>>2]|=(128|v>>6&63)<<f[3&M++],b[M>>2]|=(128|63&v)<<f[3&M++]):(v=65536+((1023&v)<<10|1023&p.charCodeAt(++C)),b[M>>2]|=(240|v>>18)<<f[3&M++],b[M>>2]|=(128|v>>12&63)<<f[3&M++],b[M>>2]|=(128|v>>6&63)<<f[3&M++],b[M>>2]|=(128|63&v)<<f[3&M++]);if(g.lastByteIndex=M,M>=A){for(g.start=M-A,g.block=b[x],M=0;M<x;++M)S[M]^=b[M];l(S),g.reset=!0}else g.start=M}if(b[(M=g.lastByteIndex)>>2]|=i[3&M],g.lastByteIndex===A)for(b[0]=b[x],M=1;M<x+1;++M)b[M]=0;for(b[x-1]|=2147483648,M=0;M<x;++M)S[M]^=b[M];l(S);for(var T,k="",M=0,P=0;P<E;){for(M=0;M<x&&P<E;++M,++P)T=S[M],k+=s[T>>4&15]+s[15&T]+s[T>>12&15]+s[T>>8&15]+s[T>>20&15]+s[T>>16&15]+s[T>>28&15]+s[T>>24&15];P%x==0&&(l(S),M=0)}return"0x"+k}(function(g){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(g<<1)>>5,outputBlocks:g>>5,s:(p=[0,0,0,0,0,0,0,0,0,0],[].concat(p,p,p,p,p))};var p}(t),d)}};r.exports={keccak256:n(256),keccak512:n(512),keccak256s:n(256),keccak512s:n(512)}},9733:(r,s,i)=>{var f=i(1734),e=i(6851),l=function(v){return new f(v.slice(2),16)},n=function(v){var y="0x"+(v.slice(0,2)==="0x"?new f(v.slice(2),16):new f(v,10)).toString("hex");return y==="0x0"?"0x":y},t=function(v){return typeof v=="string"?/^0x/.test(v)?v:"0x"+v:"0x"+new f(v).toString("hex")},o=function(v){return l(v).toNumber()},d=function(v){return function(y,b){return"0x"+l(y)[v](l(b)).toString("hex")}},u=d("add"),c=d("mul"),g=d("div"),p=d("sub");r.exports={toString:function(v){return l(v).toString(10)},fromString:n,toNumber:o,fromNumber:t,toEther:function(v){return o(g(v,n("10000000000")))/1e8},fromEther:function(v){return c(t(Math.floor(1e8*v)),n("10000000000"))},toUint256:function(v){return e.pad(32,v)},add:u,mul:c,div:g,sub:p}},6740:r=>{r.exports={encode:function(s){var i=function(e){return(l=e.toString(16)).length%2==0?l:"0"+l;var l},f=function(e,l){return e<56?i(l+e):i(l+i(e).length/2+55)+i(e)};return"0x"+function e(l){if(typeof l=="string"){var n=l.slice(2);return(n.length!=2||n>="80"?f(n.length/2,128):"")+n}var t=l.map(e).join("");return f(t.length/2,192)+t}(s)},decode:function(s){var i=2,f=function(){if(i>=s.length)throw"";var t=s.slice(i,i+2);return t<"80"?(i+=2,"0x"+t):t<"c0"?l():n()},e=function(){var t=parseInt(s.slice(i,i+=2),16)%64;return t<56?t:parseInt(s.slice(i,i+=2*(t-55)),16)},l=function(){var t=e();return"0x"+s.slice(i,i+=2*t)},n=function(){for(var t=2*e()+i,o=[];i<t;)o.push(f());return o};try{return f()}catch{return[]}}}},9313:(r,s,i)=>{var f=i(8847)(i(3355));Object.defineProperty(s,"__esModule",{value:!0});var e=i(8179);function l(u){return!(typeof u!="string"||!/^(0x)?[0-9a-f]{512}$/i.test(u)||!/^(0x)?[0-9a-f]{512}$/.test(u)&&!/^(0x)?[0-9A-F]{512}$/.test(u))}function n(u,c){(0,f.default)(c)==="object"&&c.constructor===Uint8Array&&(c=e.bytesToHex(c));for(var g=e.keccak256(c).replace("0x",""),p=0;p<12;p+=4){var v=(parseInt(g.substr(p,2),16)<<8)+parseInt(g.substr(p+2,2),16)&2047,y=1<<v%4;if((t(u.charCodeAt(u.length-1-Math.floor(v/4)))&y)!==y)return!1}return!0}function t(u){if(u>=48&&u<=57)return u-48;if(u>=65&&u<=70)return u-55;if(u>=97&&u<=102)return u-87;throw new Error("invalid bloom")}function o(u){return!(typeof u!="string"||!/^(0x)?[0-9a-f]{64}$/i.test(u)||!/^(0x)?[0-9a-f]{64}$/.test(u)&&!/^(0x)?[0-9A-F]{64}$/.test(u))}function d(u){return!(typeof u!="string"||!u.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!u.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}s.isBloom=l,s.isInBloom=n,s.isUserEthereumAddressInBloom=function(u,c){if(!l(u))throw new Error("Invalid bloom given");if(!d(c))throw new Error('Invalid ethereum address given: "'.concat(c,'"'));return n(u,e.padLeft(c,64))},s.isContractAddressInBloom=function(u,c){if(!l(u))throw new Error("Invalid bloom given");if(!d(c))throw new Error('Invalid contract address given: "'.concat(c,'"'));return n(u,c)},s.isTopicInBloom=function(u,c){if(!l(u))throw new Error("Invalid bloom given");if(!o(c))throw new Error("Invalid topic");return n(u,c)},s.isTopic=o,s.isAddress=d},8179:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0});var f=i(7286);function e(n){if(n==null)throw new Error("cannot convert null value to array");if(typeof n=="string"){var t=n.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if(t[1]!=="0x")throw new Error("hex string must have 0x prefix");(n=n.substring(2)).length%2&&(n="0"+n);for(var o=[],d=0;d<n.length;d+=2)o.push(parseInt(n.substr(d,2),16));return l(new Uint8Array(o))}if(function(u){if(!u||parseInt(String(u.length))!=u.length||typeof u=="string")return!1;for(var c=0;c<u.length;c++){var g=u[c];if(g<0||g>=256||parseInt(String(g))!=g)return!1}return!0}(n))return l(new Uint8Array(n));throw new Error("invalid arrayify value")}function l(n){var t=arguments;return n.slice!==void 0||(n.slice=function(){var o=Array.prototype.slice.call(t);return l(new Uint8Array(Array.prototype.slice.apply(n,o)))}),n}s.keccak256=function(n){return"0x"+f.keccak_256(e(n))},s.padLeft=function(n,t){var o=/^0x/i.test(n)||typeof n=="number",d=t-(n=n.toString().replace(/^0x/i,"")).length+1>=0?t-n.length+1:0;return(o?"0x":"")+new Array(d).join("0")+n},s.bytesToHex=function(n){for(var t=[],o=0;o<n.length;o++)t.push((n[o]>>>4).toString(16)),t.push((15&n[o]).toString(16));return"0x".concat(t.join("").replace(/^0+/,""))},s.toByteArray=e},7286:(r,s,i)=>{r=i.nmd(r);var f,e=i(9142),l=i(8847)(i(3355));(function(){var n="input is invalid type",t=(typeof window>"u"?"undefined":(0,l.default)(window))==="object",o=t?window:{};o.JS_SHA3_NO_WINDOW&&(t=!1);var d=!t&&(typeof self>"u"?"undefined":(0,l.default)(self))==="object";!o.JS_SHA3_NO_NODE_JS&&(e===void 0?"undefined":(0,l.default)(e))==="object"&&e.versions&&e.versions.node?o=i.g:d&&(o=self);var u=!o.JS_SHA3_NO_COMMON_JS&&(0,l.default)(r)==="object"&&r.exports,c=i.amdO,g=!o.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),v=[4,1024,262144,67108864],y=[0,8,16,24],b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],A=[224,256,384,512],x=[128,256],E=["hex","buffer","arrayBuffer","array","digest"],S={128:168,256:136};!o.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(L){return Object.prototype.toString.call(L)==="[object Array]"}),!g||!o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(L){return(0,l.default)(L)==="object"&&L.buffer&&L.buffer.constructor===ArrayBuffer});for(var C=function(L,W,G){return function(J){return new Q(L,W,L).update(J)[G]()}},T=function(L,W,G){return function(J,H){return new Q(L,W,H).update(J)[G]()}},k=function(L,W,G){return function(J,H,U,K){return q["cshake"+L].update(J,H,U,K)[G]()}},M=function(L,W,G){return function(J,H,U,K){return q["kmac"+L].update(J,H,U,K)[G]()}},P=function(L,W,G,J){for(var H=0;H<E.length;++H){var U=E[H];L[U]=W(G,J,U)}return L},N=function(L,W){var G=C(L,W,"hex");return G.create=function(){return new Q(L,W,L)},G.update=function(J){return G.create().update(J)},P(G,C,L,W)},F=[{name:"keccak",padding:[1,256,65536,16777216],bits:A,createMethod:N},{name:"sha3",padding:[6,1536,393216,100663296],bits:A,createMethod:N},{name:"shake",padding:[31,7936,2031616,520093696],bits:x,createMethod:function(L,W){var G=T(L,W,"hex");return G.create=function(J){return new Q(L,W,J)},G.update=function(J,H){return G.create(H).update(J)},P(G,T,L,W)}},{name:"cshake",padding:v,bits:x,createMethod:function(L,W){var G=S[L],J=k(L,0,"hex");return J.create=function(H,U,K){return U||K?new Q(L,W,H).bytepad([U,K],G):q["shake"+L].create(H)},J.update=function(H,U,K,te){return J.create(U,K,te).update(H)},P(J,k,L,W)}},{name:"kmac",padding:v,bits:x,createMethod:function(L,W){var G=S[L],J=M(L,0,"hex");return J.create=function(H,U,K){return new X(L,W,U).bytepad(["KMAC",K],G).bytepad([H],G)},J.update=function(H,U,K,te){return J.create(H,K,te).update(U)},P(J,M,L,W)}}],q={},z=[],O=0;O<F.length;++O)for(var R=F[O],I=R.bits,D=0;D<I.length;++D){var B=R.name+"_"+I[D];if(z.push(B),q[B]=R.createMethod(I[D],R.padding),R.name!=="sha3"){var j=R.name+I[D];z.push(j),q[j]=q[B]}}function Q(L,W,G){this.blocks=[],this.s=[],this.padding=W,this.outputBits=G,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(L<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=G>>5,this.extraBytes=(31&G)>>3;for(var J=0;J<50;++J)this.s[J]=0}function X(L,W,G){Q.call(this,L,W,G)}Q.prototype.update=function(L){if(this.finalized)throw new Error("finalize already called");var W,G=(0,l.default)(L);if(G!=="string"){if(G!=="object")throw new Error(n);if(L===null)throw new Error(n);if(g&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!(Array.isArray(L)||g&&ArrayBuffer.isView(L)))throw new Error(n);W=!0}for(var J,H,U=this.blocks,K=this.byteCount,te=L.length,ee=this.blockCount,ie=0,se=this.s;ie<te;){if(this.reset)for(this.reset=!1,U[0]=this.block,J=1;J<ee+1;++J)U[J]=0;if(W)for(J=this.start;ie<te&&J<K;++ie)U[J>>2]|=L[ie]<<y[3&J++];else for(J=this.start;ie<te&&J<K;++ie)(H=L.charCodeAt(ie))<128?U[J>>2]|=H<<y[3&J++]:H<2048?(U[J>>2]|=(192|H>>6)<<y[3&J++],U[J>>2]|=(128|63&H)<<y[3&J++]):H<55296||H>=57344?(U[J>>2]|=(224|H>>12)<<y[3&J++],U[J>>2]|=(128|H>>6&63)<<y[3&J++],U[J>>2]|=(128|63&H)<<y[3&J++]):(H=65536+((1023&H)<<10|1023&L.charCodeAt(++ie)),U[J>>2]|=(240|H>>18)<<y[3&J++],U[J>>2]|=(128|H>>12&63)<<y[3&J++],U[J>>2]|=(128|H>>6&63)<<y[3&J++],U[J>>2]|=(128|63&H)<<y[3&J++]);if(this.lastByteIndex=J,J>=K){for(this.start=J-K,this.block=U[ee],J=0;J<ee;++J)se[J]^=U[J];Z(se),this.reset=!0}else this.start=J}return this},Q.prototype.encode=function(L,W){var G=255&L,J=1,H=[G];for(G=255&(L>>=8);G>0;)H.unshift(G),G=255&(L>>=8),++J;return W?H.push(J):H.unshift(J),this.update(H),H.length},Q.prototype.encodeString=function(L){var W,G=(0,l.default)(L);if(G!=="string"){if(G!=="object")throw new Error(n);if(L===null)throw new Error(n);if(g&&L.constructor===ArrayBuffer)L=new Uint8Array(L);else if(!(Array.isArray(L)||g&&ArrayBuffer.isView(L)))throw new Error(n);W=!0}var J=0,H=L.length;if(W)J=H;else for(var U=0;U<L.length;++U){var K=L.charCodeAt(U);K<128?J+=1:K<2048?J+=2:K<55296||K>=57344?J+=3:(K=65536+((1023&K)<<10|1023&L.charCodeAt(++U)),J+=4)}return J+=this.encode(8*J),this.update(L),J},Q.prototype.bytepad=function(L,W){for(var G=this.encode(W),J=0;J<L.length;++J)G+=this.encodeString(L[J]);var H=W-G%W,U=[];return U.length=H,this.update(U),this},Q.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var L=this.blocks,W=this.lastByteIndex,G=this.blockCount,J=this.s;if(L[W>>2]|=this.padding[3&W],this.lastByteIndex===this.byteCount)for(L[0]=L[G],W=1;W<G+1;++W)L[W]=0;for(L[G-1]|=2147483648,W=0;W<G;++W)J[W]^=L[W];Z(J)}},Q.prototype.toString=Q.prototype.hex=function(){this.finalize();for(var L,W=this.blockCount,G=this.s,J=this.outputBlocks,H=this.extraBytes,U=0,K=0,te="";K<J;){for(U=0;U<W&&K<J;++U,++K)L=G[U],te+=p[L>>4&15]+p[15&L]+p[L>>12&15]+p[L>>8&15]+p[L>>20&15]+p[L>>16&15]+p[L>>28&15]+p[L>>24&15];K%W==0&&(Z(G),U=0)}return H&&(L=G[U],te+=p[L>>4&15]+p[15&L],H>1&&(te+=p[L>>12&15]+p[L>>8&15]),H>2&&(te+=p[L>>20&15]+p[L>>16&15])),te},Q.prototype.arrayBuffer=function(){this.finalize();var L,W=this.blockCount,G=this.s,J=this.outputBlocks,H=this.extraBytes,U=0,K=0,te=this.outputBits>>3;L=H?new ArrayBuffer(J+1<<2):new ArrayBuffer(te);for(var ee=new Uint32Array(L);K<J;){for(U=0;U<W&&K<J;++U,++K)ee[K]=G[U];K%W==0&&Z(G)}return H&&(ee[U]=G[U],L=L.slice(0,te)),L},Q.prototype.buffer=Q.prototype.arrayBuffer,Q.prototype.digest=Q.prototype.array=function(){this.finalize();for(var L,W,G=this.blockCount,J=this.s,H=this.outputBlocks,U=this.extraBytes,K=0,te=0,ee=[];te<H;){for(K=0;K<G&&te<H;++K,++te)L=te<<2,W=J[K],ee[L]=255&W,ee[L+1]=W>>8&255,ee[L+2]=W>>16&255,ee[L+3]=W>>24&255;te%G==0&&Z(J)}return U&&(L=te<<2,W=J[K],ee[L]=255&W,U>1&&(ee[L+1]=W>>8&255),U>2&&(ee[L+2]=W>>16&255)),ee},X.prototype=new Q,X.prototype.finalize=function(){return this.encode(this.outputBits,!0),Q.prototype.finalize.call(this)};var Z=function(L){var W,G,J,H,U,K,te,ee,ie,se,ne,re,Y,V,oe,fe,ce,he,le,ae,ue,de,ve,me,ge,xe,Ae,Te,ke,Pe,Ie,qe,Ve,et,je,Ke,Ge,We,Je,ot,Qe,Ye,at,pe,ye,be,_e,we,Ee,Ce,Oe,De,Be,Re,Le,Ue,Ne,$e,ze,Xe,ft,ut,ct;for(J=0;J<48;J+=2)H=L[0]^L[10]^L[20]^L[30]^L[40],U=L[1]^L[11]^L[21]^L[31]^L[41],K=L[2]^L[12]^L[22]^L[32]^L[42],te=L[3]^L[13]^L[23]^L[33]^L[43],ee=L[4]^L[14]^L[24]^L[34]^L[44],ie=L[5]^L[15]^L[25]^L[35]^L[45],se=L[6]^L[16]^L[26]^L[36]^L[46],ne=L[7]^L[17]^L[27]^L[37]^L[47],W=(re=L[8]^L[18]^L[28]^L[38]^L[48])^(K<<1|te>>>31),G=(Y=L[9]^L[19]^L[29]^L[39]^L[49])^(te<<1|K>>>31),L[0]^=W,L[1]^=G,L[10]^=W,L[11]^=G,L[20]^=W,L[21]^=G,L[30]^=W,L[31]^=G,L[40]^=W,L[41]^=G,W=H^(ee<<1|ie>>>31),G=U^(ie<<1|ee>>>31),L[2]^=W,L[3]^=G,L[12]^=W,L[13]^=G,L[22]^=W,L[23]^=G,L[32]^=W,L[33]^=G,L[42]^=W,L[43]^=G,W=K^(se<<1|ne>>>31),G=te^(ne<<1|se>>>31),L[4]^=W,L[5]^=G,L[14]^=W,L[15]^=G,L[24]^=W,L[25]^=G,L[34]^=W,L[35]^=G,L[44]^=W,L[45]^=G,W=ee^(re<<1|Y>>>31),G=ie^(Y<<1|re>>>31),L[6]^=W,L[7]^=G,L[16]^=W,L[17]^=G,L[26]^=W,L[27]^=G,L[36]^=W,L[37]^=G,L[46]^=W,L[47]^=G,W=se^(H<<1|U>>>31),G=ne^(U<<1|H>>>31),L[8]^=W,L[9]^=G,L[18]^=W,L[19]^=G,L[28]^=W,L[29]^=G,L[38]^=W,L[39]^=G,L[48]^=W,L[49]^=G,V=L[0],oe=L[1],be=L[11]<<4|L[10]>>>28,_e=L[10]<<4|L[11]>>>28,Te=L[20]<<3|L[21]>>>29,ke=L[21]<<3|L[20]>>>29,Xe=L[31]<<9|L[30]>>>23,ft=L[30]<<9|L[31]>>>23,Ye=L[40]<<18|L[41]>>>14,at=L[41]<<18|L[40]>>>14,et=L[2]<<1|L[3]>>>31,je=L[3]<<1|L[2]>>>31,fe=L[13]<<12|L[12]>>>20,ce=L[12]<<12|L[13]>>>20,we=L[22]<<10|L[23]>>>22,Ee=L[23]<<10|L[22]>>>22,Pe=L[33]<<13|L[32]>>>19,Ie=L[32]<<13|L[33]>>>19,ut=L[42]<<2|L[43]>>>30,ct=L[43]<<2|L[42]>>>30,Re=L[5]<<30|L[4]>>>2,Le=L[4]<<30|L[5]>>>2,Ke=L[14]<<6|L[15]>>>26,Ge=L[15]<<6|L[14]>>>26,he=L[25]<<11|L[24]>>>21,le=L[24]<<11|L[25]>>>21,Ce=L[34]<<15|L[35]>>>17,Oe=L[35]<<15|L[34]>>>17,qe=L[45]<<29|L[44]>>>3,Ve=L[44]<<29|L[45]>>>3,me=L[6]<<28|L[7]>>>4,ge=L[7]<<28|L[6]>>>4,Ue=L[17]<<23|L[16]>>>9,Ne=L[16]<<23|L[17]>>>9,We=L[26]<<25|L[27]>>>7,Je=L[27]<<25|L[26]>>>7,ae=L[36]<<21|L[37]>>>11,ue=L[37]<<21|L[36]>>>11,De=L[47]<<24|L[46]>>>8,Be=L[46]<<24|L[47]>>>8,pe=L[8]<<27|L[9]>>>5,ye=L[9]<<27|L[8]>>>5,xe=L[18]<<20|L[19]>>>12,Ae=L[19]<<20|L[18]>>>12,$e=L[29]<<7|L[28]>>>25,ze=L[28]<<7|L[29]>>>25,ot=L[38]<<8|L[39]>>>24,Qe=L[39]<<8|L[38]>>>24,de=L[48]<<14|L[49]>>>18,ve=L[49]<<14|L[48]>>>18,L[0]=V^~fe&he,L[1]=oe^~ce&le,L[10]=me^~xe&Te,L[11]=ge^~Ae&ke,L[20]=et^~Ke&We,L[21]=je^~Ge&Je,L[30]=pe^~be&we,L[31]=ye^~_e&Ee,L[40]=Re^~Ue&$e,L[41]=Le^~Ne&ze,L[2]=fe^~he&ae,L[3]=ce^~le&ue,L[12]=xe^~Te&Pe,L[13]=Ae^~ke&Ie,L[22]=Ke^~We&ot,L[23]=Ge^~Je&Qe,L[32]=be^~we&Ce,L[33]=_e^~Ee&Oe,L[42]=Ue^~$e&Xe,L[43]=Ne^~ze&ft,L[4]=he^~ae&de,L[5]=le^~ue&ve,L[14]=Te^~Pe&qe,L[15]=ke^~Ie&Ve,L[24]=We^~ot&Ye,L[25]=Je^~Qe&at,L[34]=we^~Ce&De,L[35]=Ee^~Oe&Be,L[44]=$e^~Xe&ut,L[45]=ze^~ft&ct,L[6]=ae^~de&V,L[7]=ue^~ve&oe,L[16]=Pe^~qe&me,L[17]=Ie^~Ve&ge,L[26]=ot^~Ye&et,L[27]=Qe^~at&je,L[36]=Ce^~De&pe,L[37]=Oe^~Be&ye,L[46]=Xe^~ut&Re,L[47]=ft^~ct&Le,L[8]=de^~V&fe,L[9]=ve^~oe&ce,L[18]=qe^~me&xe,L[19]=Ve^~ge&Ae,L[28]=Ye^~et&Ke,L[29]=at^~je&Ge,L[38]=De^~pe&be,L[39]=Be^~ye&_e,L[48]=ut^~Re&Ue,L[49]=ct^~Le&Ne,L[0]^=b[J],L[1]^=b[J+1]};if(u)r.exports=q;else{for(O=0;O<z.length;++O)o[z[O]]=q[z[O]];c&&((f=function(){return q}.call(s,i,s,r))===void 0||(r.exports=f))}})()},9989:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.createHashFunction=function(e){return function(l){var n=e();return n.update(l),f.from(n.digest())}}},1243:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0});var f=i(9989),e=i(3135);s.keccak224=f.createHashFunction(function(){return e("keccak224")}),s.keccak256=f.createHashFunction(function(){return e("keccak256")}),s.keccak384=f.createHashFunction(function(){return e("keccak384")}),s.keccak512=f.createHashFunction(function(){return e("keccak512")})},4893:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0});var f=i(5010);s.getRandomBytes=function(e){return new Promise(function(l,n){f(e,function(t,o){t?n(t):l(o)})})},s.getRandomBytesSync=function(e){return f(e)}},6992:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0});var f=i(7902),e=i(4893);s.createPrivateKey=function(){return l=this,n=void 0,o=function(){var d;return function(u,c){var g,p,v,y,b={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return y={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function A(x){return function(E){return function(S){if(g)throw new TypeError("Generator is already executing.");for(;b;)try{if(g=1,p&&(v=2&S[0]?p.return:S[0]?p.throw||((v=p.return)&&v.call(p),0):p.next)&&!(v=v.call(p,S[1])).done)return v;switch(p=0,v&&(S=[2&S[0],v.value]),S[0]){case 0:case 1:v=S;break;case 4:return b.label++,{value:S[1],done:!1};case 5:b.label++,p=S[1],S=[0];continue;case 7:S=b.ops.pop(),b.trys.pop();continue;default:if(!((v=(v=b.trys).length>0&&v[v.length-1])||S[0]!==6&&S[0]!==2)){b=0;continue}if(S[0]===3&&(!v||S[1]>v[0]&&S[1]<v[3])){b.label=S[1];break}if(S[0]===6&&b.label<v[1]){b.label=v[1],v=S;break}if(v&&b.label<v[2]){b.label=v[2],b.ops.push(S);break}v[2]&&b.ops.pop(),b.trys.pop();continue}S=c.call(u,b)}catch(C){S=[6,C],p=0}finally{g=v=0}if(5&S[0])throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}([x,E])}}}(this,function(u){switch(u.label){case 0:return[4,e.getRandomBytes(32)];case 1:return d=u.sent(),f.privateKeyVerify(d)?[2,d]:[3,0];case 2:return[2]}})},new((t=void 0)||(t=Promise))(function(d,u){function c(v){try{p(o.next(v))}catch(y){u(y)}}function g(v){try{p(o.throw(v))}catch(y){u(y)}}function p(v){var y;v.done?d(v.value):(y=v.value,y instanceof t?y:new t(function(b){b(y)})).then(c,g)}p((o=o.apply(l,n||[])).next())});var l,n,t,o},s.createPrivateKeySync=function(){for(;;){var l=e.getRandomBytesSync(32);if(f.privateKeyVerify(l))return l}},function(l){for(var n in l)s.hasOwnProperty(n)||(s[n]=l[n])}(i(7902))},1968:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.isZeroAddress=s.zeroAddress=s.importPublic=s.privateToAddress=s.privateToPublic=s.publicToAddress=s.pubToAddress=s.isValidPublic=s.isValidPrivate=s.generateAddress2=s.generateAddress=s.isValidChecksumAddress=s.toChecksumAddress=s.isValidAddress=s.Account=void 0;var e,l=(e=i(3894))&&e.__esModule?e:{default:e},n=i(9100),t=i(6992),o=i(3271),d=i(986),u=i(3464),c=i(9808),g=i(5725),p=i(5513),v=function(){function y(b,A,x,E){b===void 0&&(b=new n.BN(0)),A===void 0&&(A=new n.BN(0)),x===void 0&&(x=d.KECCAK256_RLP),E===void 0&&(E=d.KECCAK256_NULL),this.nonce=b,this.balance=A,this.stateRoot=x,this.codeHash=E,this._validate()}return y.fromAccountData=function(b){var A=b.nonce,x=b.balance,E=b.stateRoot,S=b.codeHash;return new y(A?new n.BN((0,u.toBuffer)(A)):void 0,x?new n.BN((0,u.toBuffer)(x)):void 0,E?(0,u.toBuffer)(E):void 0,S?(0,u.toBuffer)(S):void 0)},y.fromRlpSerializedAccount=function(b){var A=n.rlp.decode(b);if(!Array.isArray(A))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(A)},y.fromValuesArray=function(b){var A=function(T,k){var M=typeof Symbol=="function"&&T[Symbol.iterator];if(!M)return T;var P,N,F=M.call(T),q=[];try{for(;(k===void 0||k-- >0)&&!(P=F.next()).done;)q.push(P.value)}catch(z){N={error:z}}finally{try{P&&!P.done&&(M=F.return)&&M.call(F)}finally{if(N)throw N.error}}return q}(b,4),x=A[0],E=A[1],S=A[2],C=A[3];return new y(new n.BN(x),new n.BN(E),S,C)},y.prototype._validate=function(){if(this.nonce.lt(new n.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new n.BN(0)))throw new Error("balance must be greater than zero");if(this.stateRoot.length!==32)throw new Error("stateRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")},y.prototype.raw=function(){return[(0,p.bnToUnpaddedBuffer)(this.nonce),(0,p.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},y.prototype.serialize=function(){return n.rlp.encode(this.raw())},y.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},y.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},y}();s.Account=v,s.isValidAddress=function(y){try{(0,g.assertIsString)(y)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(y)},s.toChecksumAddress=function(y,b){(0,g.assertIsHexString)(y);var A=(0,o.stripHexPrefix)(y).toLowerCase(),x="";b&&(x=(0,p.toType)(b,p.TypeOutput.BN).toString()+"0x");for(var E=(0,c.keccakFromString)(x+A).toString("hex"),S="0x",C=0;C<A.length;C++)parseInt(E[C],16)>=8?S+=A[C].toUpperCase():S+=A[C];return S},s.isValidChecksumAddress=function(y,b){return(0,s.isValidAddress)(y)&&(0,s.toChecksumAddress)(y,b)===y},s.generateAddress=function(y,b){(0,g.assertIsBuffer)(y),(0,g.assertIsBuffer)(b);var A=new n.BN(b);return A.isZero()?(0,c.rlphash)([y,null]).slice(-20):(0,c.rlphash)([y,f.from(A.toArray())]).slice(-20)},s.generateAddress2=function(y,b,A){return(0,g.assertIsBuffer)(y),(0,g.assertIsBuffer)(b),(0,g.assertIsBuffer)(A),(0,l.default)(y.length===20),(0,l.default)(b.length===32),(0,c.keccak256)(f.concat([f.from("ff","hex"),y,b,(0,c.keccak256)(A)])).slice(-20)},s.isValidPrivate=function(y){return(0,t.privateKeyVerify)(y)},s.isValidPublic=function(y,b){return b===void 0&&(b=!1),(0,g.assertIsBuffer)(y),y.length===64?(0,t.publicKeyVerify)(f.concat([f.from([4]),y])):!!b&&(0,t.publicKeyVerify)(y)},s.pubToAddress=function(y,b){return b===void 0&&(b=!1),(0,g.assertIsBuffer)(y),b&&y.length!==64&&(y=f.from((0,t.publicKeyConvert)(y,!1).slice(1))),(0,l.default)(y.length===64),(0,c.keccak)(y).slice(-20)},s.publicToAddress=s.pubToAddress,s.privateToPublic=function(y){return(0,g.assertIsBuffer)(y),f.from((0,t.publicKeyCreate)(y,!1)).slice(1)},s.privateToAddress=function(y){return(0,s.publicToAddress)((0,s.privateToPublic)(y))},s.importPublic=function(y){return(0,g.assertIsBuffer)(y),y.length!==64&&(y=f.from((0,t.publicKeyConvert)(y,!1).slice(1))),y},s.zeroAddress=function(){var y=(0,u.zeros)(20);return(0,u.bufferToHex)(y)},s.isZeroAddress=function(y){try{(0,g.assertIsString)(y)}catch{return!1}return(0,s.zeroAddress)()===y}},1984:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.Address=void 0;var e,l=(e=i(3894))&&e.__esModule?e:{default:e},n=i(9100),t=i(3464),o=i(1968),d=function(){function u(c){(0,l.default)(c.length===20,"Invalid address length"),this.buf=c}return u.zero=function(){return new u((0,t.zeros)(20))},u.fromString=function(c){return(0,l.default)((0,o.isValidAddress)(c),"Invalid address"),new u((0,t.toBuffer)(c))},u.fromPublicKey=function(c){return(0,l.default)(f.isBuffer(c),"Public key should be Buffer"),new u((0,o.pubToAddress)(c))},u.fromPrivateKey=function(c){return(0,l.default)(f.isBuffer(c),"Private key should be Buffer"),new u((0,o.privateToAddress)(c))},u.generate=function(c,g){return(0,l.default)(n.BN.isBN(g)),new u((0,o.generateAddress)(c.buf,g.toArrayLike(f)))},u.generate2=function(c,g,p){return(0,l.default)(f.isBuffer(g)),(0,l.default)(f.isBuffer(p)),new u((0,o.generateAddress2)(c.buf,g,p))},u.prototype.equals=function(c){return this.buf.equals(c.buf)},u.prototype.isZero=function(){return this.equals(u.zero())},u.prototype.isPrecompileOrSystemAddress=function(){var c=new n.BN(this.buf),g=new n.BN(0),p=new n.BN("ffff","hex");return c.gte(g)&&c.lte(p)},u.prototype.toString=function(){return"0x"+this.buf.toString("hex")},u.prototype.toBuffer=function(){return f.from(this.buf)},u}();s.Address=d},3464:(r,s,i)=>{var f=i(9033).Buffer,e=function(u,c){var g=typeof Symbol=="function"&&u[Symbol.iterator];if(!g)return u;var p,v,y=g.call(u),b=[];try{for(;(c===void 0||c-- >0)&&!(p=y.next()).done;)b.push(p.value)}catch(A){v={error:A}}finally{try{p&&!p.done&&(g=y.return)&&g.call(y)}finally{if(v)throw v.error}}return b};Object.defineProperty(s,"__esModule",{value:!0}),s.bufArrToArr=s.arrToBufArr=s.validateNoLeadingZeroes=s.baToJSON=s.toUtf8=s.addHexPrefix=s.toUnsigned=s.fromSigned=s.bufferToHex=s.bufferToInt=s.toBuffer=s.unpadHexString=s.unpadArray=s.unpadBuffer=s.setLengthRight=s.setLengthLeft=s.zeros=s.intToBuffer=s.intToHex=void 0;var l=i(9100),n=i(3271),t=i(5725);s.intToHex=function(u){if(!Number.isSafeInteger(u)||u<0)throw new Error("Received an invalid integer type: ".concat(u));return"0x".concat(u.toString(16))},s.intToBuffer=function(u){var c=(0,s.intToHex)(u);return f.from((0,n.padToEven)(c.slice(2)),"hex")},s.zeros=function(u){return f.allocUnsafe(u).fill(0)};var o=function(u,c,g){var p=(0,s.zeros)(c);return g?u.length<c?(u.copy(p),p):u.slice(0,c):u.length<c?(u.copy(p,c-u.length),p):u.slice(-c)};s.setLengthLeft=function(u,c){return(0,t.assertIsBuffer)(u),o(u,c,!1)},s.setLengthRight=function(u,c){return(0,t.assertIsBuffer)(u),o(u,c,!0)};var d=function(u){for(var c=u[0];u.length>0&&c.toString()==="0";)c=(u=u.slice(1))[0];return u};s.unpadBuffer=function(u){return(0,t.assertIsBuffer)(u),d(u)},s.unpadArray=function(u){return(0,t.assertIsArray)(u),d(u)},s.unpadHexString=function(u){return(0,t.assertIsHexString)(u),u=(0,n.stripHexPrefix)(u),d(u)},s.toBuffer=function(u){if(u==null)return f.allocUnsafe(0);if(f.isBuffer(u)||Array.isArray(u)||u instanceof Uint8Array)return f.from(u);if(typeof u=="string"){if(!(0,n.isHexString)(u))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(u));return f.from((0,n.padToEven)((0,n.stripHexPrefix)(u)),"hex")}if(typeof u=="number")return(0,s.intToBuffer)(u);if(l.BN.isBN(u)){if(u.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(u));return u.toArrayLike(f)}if(u.toArray)return f.from(u.toArray());if(u.toBuffer)return f.from(u.toBuffer());throw new Error("invalid type")},s.bufferToInt=function(u){return new l.BN((0,s.toBuffer)(u)).toNumber()},s.bufferToHex=function(u){return"0x"+(u=(0,s.toBuffer)(u)).toString("hex")},s.fromSigned=function(u){return new l.BN(u).fromTwos(256)},s.toUnsigned=function(u){return f.from(u.toTwos(256).toArray())},s.addHexPrefix=function(u){return typeof u!="string"||(0,n.isHexPrefixed)(u)?u:"0x"+u},s.toUtf8=function(u){if((u=(0,n.stripHexPrefix)(u)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return f.from(u.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},s.baToJSON=function(u){if(f.isBuffer(u))return"0x".concat(u.toString("hex"));if(u instanceof Array){for(var c=[],g=0;g<u.length;g++)c.push((0,s.baToJSON)(u[g]));return c}},s.validateNoLeadingZeroes=function(u){var c,g;try{for(var p=function(x){var E=typeof Symbol=="function"&&Symbol.iterator,S=E&&x[E],C=0;if(S)return S.call(x);if(x&&typeof x.length=="number")return{next:function(){return x&&C>=x.length&&(x=void 0),{value:x&&x[C++],done:!x}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(u)),v=p.next();!v.done;v=p.next()){var y=e(v.value,2),b=y[0],A=y[1];if(A!==void 0&&A.length>0&&A[0]===0)throw new Error("".concat(b," cannot have leading zeroes, received: ").concat(A.toString("hex")))}}catch(x){c={error:x}}finally{try{v&&!v.done&&(g=p.return)&&g.call(p)}finally{if(c)throw c.error}}},s.arrToBufArr=function u(c){return Array.isArray(c)?c.map(function(g){return u(g)}):f.from(c)},s.bufArrToArr=function u(c){return Array.isArray(c)?c.map(function(g){return u(g)}):Uint8Array.from(c??[])}},986:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.KECCAK256_RLP=s.KECCAK256_RLP_S=s.KECCAK256_RLP_ARRAY=s.KECCAK256_RLP_ARRAY_S=s.KECCAK256_NULL=s.KECCAK256_NULL_S=s.TWO_POW256=s.MAX_INTEGER=s.MAX_UINT64=void 0;var f=i(9033),e=i(9100);s.MAX_UINT64=new e.BN("ffffffffffffffff",16),s.MAX_INTEGER=new e.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),s.TWO_POW256=new e.BN("10000000000000000000000000000000000000000000000000000000000000000",16),s.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",s.KECCAK256_NULL=f.Buffer.from(s.KECCAK256_NULL_S,"hex"),s.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",s.KECCAK256_RLP_ARRAY=f.Buffer.from(s.KECCAK256_RLP_ARRAY_S,"hex"),s.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",s.KECCAK256_RLP=f.Buffer.from(s.KECCAK256_RLP_S,"hex")},9100:(r,s,i)=>{var f=Object.create?function(o,d,u,c){c===void 0&&(c=u);var g=Object.getOwnPropertyDescriptor(d,u);g&&!("get"in g?!d.__esModule:g.writable||g.configurable)||(g={enumerable:!0,get:function(){return d[u]}}),Object.defineProperty(o,c,g)}:function(o,d,u,c){c===void 0&&(c=u),o[c]=d[u]},e=Object.create?function(o,d){Object.defineProperty(o,"default",{enumerable:!0,value:d})}:function(o,d){o.default=d};Object.defineProperty(s,"__esModule",{value:!0}),s.rlp=s.BN=void 0;var l,n=(l=i(1734))&&l.__esModule?l:{default:l};s.BN=n.default;var t=function(o){if(o&&o.__esModule)return o;var d={};if(o!=null)for(var u in o)u!=="default"&&Object.prototype.hasOwnProperty.call(o,u)&&f(d,o,u);return e(d,o),d}(i(6905));s.rlp=t},9808:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.rlphash=s.ripemd160FromArray=s.ripemd160FromString=s.ripemd160=s.sha256FromArray=s.sha256FromString=s.sha256=s.keccakFromArray=s.keccakFromHexString=s.keccakFromString=s.keccak256=s.keccak=void 0;var e=i(1243),l=i(5866),n=i(9100),t=i(3464),o=i(5725);s.keccak=function(c,g){switch(g===void 0&&(g=256),(0,o.assertIsBuffer)(c),g){case 224:return(0,e.keccak224)(c);case 256:return(0,e.keccak256)(c);case 384:return(0,e.keccak384)(c);case 512:return(0,e.keccak512)(c);default:throw new Error("Invald algorithm: keccak".concat(g))}},s.keccak256=function(c){return(0,s.keccak)(c)},s.keccakFromString=function(c,g){g===void 0&&(g=256),(0,o.assertIsString)(c);var p=f.from(c,"utf8");return(0,s.keccak)(p,g)},s.keccakFromHexString=function(c,g){return g===void 0&&(g=256),(0,o.assertIsHexString)(c),(0,s.keccak)((0,t.toBuffer)(c),g)},s.keccakFromArray=function(c,g){return g===void 0&&(g=256),(0,o.assertIsArray)(c),(0,s.keccak)((0,t.toBuffer)(c),g)};var d=function(c){return c=(0,t.toBuffer)(c),l("sha256").update(c).digest()};s.sha256=function(c){return(0,o.assertIsBuffer)(c),d(c)},s.sha256FromString=function(c){return(0,o.assertIsString)(c),d(c)},s.sha256FromArray=function(c){return(0,o.assertIsArray)(c),d(c)};var u=function(c,g){c=(0,t.toBuffer)(c);var p=l("rmd160").update(c).digest();return g===!0?(0,t.setLengthLeft)(p,32):p};s.ripemd160=function(c,g){return(0,o.assertIsBuffer)(c),u(c,g)},s.ripemd160FromString=function(c,g){return(0,o.assertIsString)(c),u(c,g)},s.ripemd160FromArray=function(c,g){return(0,o.assertIsArray)(c),u(c,g)},s.rlphash=function(c){return(0,s.keccak)(n.rlp.encode(c))}},5725:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.assertIsString=s.assertIsArray=s.assertIsBuffer=s.assertIsHexString=void 0;var e=i(3271);s.assertIsHexString=function(l){if(!(0,e.isHexString)(l)){var n="This method only supports 0x-prefixed hex strings but input was: ".concat(l);throw new Error(n)}},s.assertIsBuffer=function(l){if(!f.isBuffer(l)){var n="This method only supports Buffer but input was: ".concat(l);throw new Error(n)}},s.assertIsArray=function(l){if(!Array.isArray(l)){var n="This method only supports number arrays but input was: ".concat(l);throw new Error(n)}},s.assertIsString=function(l){if(typeof l!="string"){var n="This method only supports strings but input was: ".concat(l);throw new Error(n)}}},3062:(r,s,i)=>{var f=Object.create?function(n,t,o,d){d===void 0&&(d=o);var u=Object.getOwnPropertyDescriptor(t,o);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(n,d,u)}:function(n,t,o,d){d===void 0&&(d=o),n[d]=t[o]},e=function(n,t){for(var o in n)o==="default"||Object.prototype.hasOwnProperty.call(t,o)||f(t,n,o)};Object.defineProperty(s,"__esModule",{value:!0}),s.isHexString=s.getKeys=s.fromAscii=s.fromUtf8=s.toAscii=s.arrayContainsArray=s.getBinarySize=s.padToEven=s.stripHexPrefix=s.isHexPrefixed=void 0,e(i(986),s),e(i(1968),s),e(i(1984),s),e(i(9808),s),e(i(6081),s),e(i(3464),s),e(i(1677),s),e(i(9100),s),e(i(5513),s);var l=i(3271);Object.defineProperty(s,"isHexPrefixed",{enumerable:!0,get:function(){return l.isHexPrefixed}}),Object.defineProperty(s,"stripHexPrefix",{enumerable:!0,get:function(){return l.stripHexPrefix}}),Object.defineProperty(s,"padToEven",{enumerable:!0,get:function(){return l.padToEven}}),Object.defineProperty(s,"getBinarySize",{enumerable:!0,get:function(){return l.getBinarySize}}),Object.defineProperty(s,"arrayContainsArray",{enumerable:!0,get:function(){return l.arrayContainsArray}}),Object.defineProperty(s,"toAscii",{enumerable:!0,get:function(){return l.toAscii}}),Object.defineProperty(s,"fromUtf8",{enumerable:!0,get:function(){return l.fromUtf8}}),Object.defineProperty(s,"fromAscii",{enumerable:!0,get:function(){return l.fromAscii}}),Object.defineProperty(s,"getKeys",{enumerable:!0,get:function(){return l.getKeys}}),Object.defineProperty(s,"isHexString",{enumerable:!0,get:function(){return l.isHexString}})},3271:(r,s,i)=>{var f=i(9033).Buffer,e=i(8847)(i(3355));function l(t){if(typeof t!="string")throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat((0,e.default)(t)));return t[0]==="0"&&t[1]==="x"}function n(t){var o=t;if(typeof o!="string")throw new Error("[padToEven] value must be type 'string', received ".concat((0,e.default)(o)));return o.length%2&&(o="0".concat(o)),o}Object.defineProperty(s,"__esModule",{value:!0}),s.isHexString=s.getKeys=s.fromAscii=s.fromUtf8=s.toAscii=s.arrayContainsArray=s.getBinarySize=s.padToEven=s.stripHexPrefix=s.isHexPrefixed=void 0,s.isHexPrefixed=l,s.stripHexPrefix=function(t){if(typeof t!="string")throw new Error("[stripHexPrefix] input must be type 'string', received ".concat((0,e.default)(t)));return l(t)?t.slice(2):t},s.padToEven=n,s.getBinarySize=function(t){if(typeof t!="string")throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat((0,e.default)(t)));return f.byteLength(t,"utf8")},s.arrayContainsArray=function(t,o,d){if(Array.isArray(t)!==!0)throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat((0,e.default)(t),"'"));if(Array.isArray(o)!==!0)throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat((0,e.default)(o),"'"));return o[d?"some":"every"](function(u){return t.indexOf(u)>=0})},s.toAscii=function(t){var o="",d=0,u=t.length;for(t.substring(0,2)==="0x"&&(d=2);d<u;d+=2){var c=parseInt(t.substr(d,2),16);o+=String.fromCharCode(c)}return o},s.fromUtf8=function(t){var o=f.from(t,"utf8");return"0x".concat(n(o.toString("hex")).replace(/^0+|0+$/g,""))},s.fromAscii=function(t){for(var o="",d=0;d<t.length;d++){var u=t.charCodeAt(d).toString(16);o+=u.length<2?"0".concat(u):u}return"0x".concat(o)},s.getKeys=function(t,o,d){if(!Array.isArray(t))throw new Error("[getKeys] method expects input 'params' to be an array, got ".concat((0,e.default)(t)));if(typeof o!="string")throw new Error("[getKeys] method expects input 'key' to be type 'string', got ".concat((0,e.default)(t)));for(var u=[],c=0;c<t.length;c++){var g=t[c][o];if(d&&!g)g="";else if(typeof g!="string")throw new Error("invalid abi - expected type 'string', received ".concat((0,e.default)(g)));u.push(g)}return u},s.isHexString=function(t,o){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||o&&t.length!==2+2*o)}},1677:(r,s,i)=>{var f=i(9033).Buffer,e=i(8847)(i(3355));Object.defineProperty(s,"__esModule",{value:!0}),s.defineProperties=void 0;var l,n=(l=i(3894))&&l.__esModule?l:{default:l},t=i(3271),o=i(9100),d=i(3464);s.defineProperties=function(u,c,g){if(u.raw=[],u._fields=[],u.toJSON=function(v){if(v===void 0&&(v=!1),v){var y={};return u._fields.forEach(function(b){y[b]="0x".concat(u[b].toString("hex"))}),y}return(0,d.baToJSON)(u.raw)},u.serialize=function(){return o.rlp.encode(u.raw)},c.forEach(function(v,y){function b(){return u.raw[y]}function A(x){(x=(0,d.toBuffer)(x)).toString("hex")!=="00"||v.allowZero||(x=f.allocUnsafe(0)),v.allowLess&&v.length?(x=(0,d.unpadBuffer)(x),(0,n.default)(v.length>=x.length,"The field ".concat(v.name," must not have more ").concat(v.length," bytes"))):v.allowZero&&x.length===0||!v.length||(0,n.default)(v.length===x.length,"The field ".concat(v.name," must have byte length of ").concat(v.length)),u.raw[y]=x}u._fields.push(v.name),Object.defineProperty(u,v.name,{enumerable:!0,configurable:!0,get:b,set:A}),v.default&&(u[v.name]=v.default),v.alias&&Object.defineProperty(u,v.alias,{enumerable:!1,configurable:!0,set:A,get:b})}),g)if(typeof g=="string"&&(g=f.from((0,t.stripHexPrefix)(g),"hex")),f.isBuffer(g)&&(g=o.rlp.decode(g)),Array.isArray(g)){if(g.length>u._fields.length)throw new Error("wrong number of fields in data");g.forEach(function(v,y){u[u._fields[y]]=(0,d.toBuffer)(v)})}else{if((0,e.default)(g)!=="object")throw new Error("invalid data");var p=Object.keys(g);c.forEach(function(v){p.indexOf(v.name)!==-1&&(u[v.name]=g[v.name]),p.indexOf(v.alias)!==-1&&(u[v.alias]=g[v.alias])})}}},6081:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.hashPersonalMessage=s.isValidSignature=s.fromRpcSig=s.toCompactSig=s.toRpcSig=s.ecrecover=s.ecsign=void 0;var e=i(6992),l=i(9100),n=i(3464),t=i(9808),o=i(5725),d=i(5513);function u(g,p){var v=(0,d.toType)(g,d.TypeOutput.BN);if(v.eqn(0)||v.eqn(1))return(0,d.toType)(g,d.TypeOutput.BN);if(!p)return v.subn(27);var y=(0,d.toType)(p,d.TypeOutput.BN);return v.sub(y.muln(2).addn(35))}function c(g){var p=new l.BN(g);return p.eqn(0)||p.eqn(1)}s.ecsign=function(g,p,v){var y=(0,e.ecdsaSign)(g,p),b=y.signature,A=y.recid,x=f.from(b.slice(0,32)),E=f.from(b.slice(32,64));if(!v||typeof v=="number"){if(v&&!Number.isSafeInteger(v))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:x,s:E,v:v?A+(2*v+35):A+27}}return{r:x,s:E,v:(0,d.toType)(v,d.TypeOutput.BN).muln(2).addn(35).addn(A).toArrayLike(f)}},s.ecrecover=function(g,p,v,y,b){var A=f.concat([(0,n.setLengthLeft)(v,32),(0,n.setLengthLeft)(y,32)],64),x=u(p,b);if(!c(x))throw new Error("Invalid signature v value");var E=(0,e.ecdsaRecover)(A,x.toNumber(),g);return f.from((0,e.publicKeyConvert)(E,!1).slice(1))},s.toRpcSig=function(g,p,v,y){if(!c(u(g,y)))throw new Error("Invalid signature v value");return(0,n.bufferToHex)(f.concat([(0,n.setLengthLeft)(p,32),(0,n.setLengthLeft)(v,32),(0,n.toBuffer)(g)]))},s.toCompactSig=function(g,p,v,y){if(!c(u(g,y)))throw new Error("Invalid signature v value");var b=(0,d.toType)(g,d.TypeOutput.Number),A=v;return(b>28&&b%2==1||b===1||b===28)&&((A=f.from(v))[0]|=128),(0,n.bufferToHex)(f.concat([(0,n.setLengthLeft)(p,32),(0,n.setLengthLeft)(A,32)]))},s.fromRpcSig=function(g){var p,v,y,b=(0,n.toBuffer)(g);if(b.length>=65)p=b.slice(0,32),v=b.slice(32,64),y=(0,n.bufferToInt)(b.slice(64));else{if(b.length!==64)throw new Error("Invalid signature length");p=b.slice(0,32),v=b.slice(32,64),y=(0,n.bufferToInt)(b.slice(32,33))>>7,v[0]&=127}return y<27&&(y+=27),{v:y,r:p,s:v}},s.isValidSignature=function(g,p,v,y,b){y===void 0&&(y=!0);var A=new l.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),x=new l.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(p.length!==32||v.length!==32||!c(u(g,b)))return!1;var E=new l.BN(p),S=new l.BN(v);return!(E.isZero()||E.gt(x)||S.isZero()||S.gt(x)||y&&S.cmp(A)===1)},s.hashPersonalMessage=function(g){(0,o.assertIsBuffer)(g);var p=f.from(`Ethereum Signed Message: +`.concat(g.length),"utf-8");return(0,t.keccak)(f.concat([p,g]))}},5513:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.toType=s.TypeOutput=s.bnToRlp=s.bnToUnpaddedBuffer=s.bnToHex=void 0;var e,l=i(9100),n=i(3271),t=i(3464);function o(d){return(0,t.unpadBuffer)(d.toArrayLike(f))}s.bnToHex=function(d){return"0x".concat(d.toString(16))},s.bnToUnpaddedBuffer=o,s.bnToRlp=function(d){return o(d)},function(d){d[d.Number=0]="Number",d[d.BN=1]="BN",d[d.Buffer=2]="Buffer",d[d.PrefixedHexString=3]="PrefixedHexString"}(e=s.TypeOutput||(s.TypeOutput={})),s.toType=function(d,u){if(d===null)return null;if(d!==void 0){if(typeof d=="string"&&!(0,n.isHexString)(d))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(d));if(typeof d=="number"&&!Number.isSafeInteger(d))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var c=(0,t.toBuffer)(d);if(u===e.Buffer)return c;if(u===e.BN)return new l.BN(c);if(u===e.Number){var g=new l.BN(c),p=new l.BN(Number.MAX_SAFE_INTEGER.toString());if(g.gt(p))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return g.toNumber()}return"0x".concat(c.toString("hex"))}}},7130:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1734),l=i(7277),n=new e(0),t=new e(-1),o={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function d(c){var g=c?c.toLowerCase():"ether",p=o[g];if(typeof p!="string")throw new Error("[ethjs-unit] the unit provided "+c+" doesn't exists, please use the one of the following units "+JSON.stringify(o,null,2));return new e(p,10)}function u(c){if(typeof c=="string"){if(!c.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+c+"', should be a number matching (^-?[0-9.]+).");return c}if(typeof c=="number")return String(c);if((0,f.default)(c)==="object"&&c.toString&&(c.toTwos||c.dividedToIntegerBy))return c.toPrecision?String(c.toPrecision()):c.toString(10);throw new Error("while converting number to string, invalid number value '"+c+"' type "+(0,f.default)(c)+".")}r.exports={unitMap:o,numberToString:u,getValueOfUnit:d,fromWei:function(c,g,p){var v=l(c),y=v.lt(n),b=d(g),A=o[g].length-1||1,x=p||{};y&&(v=v.mul(t));for(var E=v.mod(b).toString(10);E.length<A;)E="0"+E;x.pad||(E=E.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var S=v.div(b).toString(10);x.commify&&(S=S.replace(/\B(?=(\d{3})+(?!\d))/g,","));var C=S+(E=="0"?"":"."+E);return y&&(C="-"+C),C},toWei:function(c,g){var p=u(c),v=d(g),y=o[g].length-1||1,b=p.substring(0,1)==="-";if(b&&(p=p.substring(1)),p===".")throw new Error("[ethjs-unit] while converting number "+c+" to wei, invalid value");var A=p.split(".");if(A.length>2)throw new Error("[ethjs-unit] while converting number "+c+" to wei, too many decimal points");var x=A[0],E=A[1];if(x||(x="0"),E||(E="0"),E.length>y)throw new Error("[ethjs-unit] while converting number "+c+" to wei, too many decimal places");for(;E.length<y;)E+="0";x=new e(x),E=new e(E);var S=x.mul(v).add(E);return b&&(S=S.mul(t)),new e(S.toString(10),10)}}},8008:r=>{var s=Object.prototype.hasOwnProperty,i="~";function f(){}function e(o,d,u){this.fn=o,this.context=d,this.once=u||!1}function l(o,d,u,c,g){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new e(u,c||o,g),v=i?i+d:d;return o._events[v]?o._events[v].fn?o._events[v]=[o._events[v],p]:o._events[v].push(p):(o._events[v]=p,o._eventsCount++),o}function n(o,d){--o._eventsCount==0?o._events=new f:delete o._events[d]}function t(){this._events=new f,this._eventsCount=0}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(i=!1)),t.prototype.eventNames=function(){var o,d,u=[];if(this._eventsCount===0)return u;for(d in o=this._events)s.call(o,d)&&u.push(i?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(o)):u},t.prototype.listeners=function(o){var d=i?i+o:o,u=this._events[d];if(!u)return[];if(u.fn)return[u.fn];for(var c=0,g=u.length,p=new Array(g);c<g;c++)p[c]=u[c].fn;return p},t.prototype.listenerCount=function(o){var d=i?i+o:o,u=this._events[d];return u?u.fn?1:u.length:0},t.prototype.emit=function(o,d,u,c,g,p){var v=i?i+o:o;if(!this._events[v])return!1;var y,b,A=this._events[v],x=arguments.length;if(A.fn){switch(A.once&&this.removeListener(o,A.fn,void 0,!0),x){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,d),!0;case 3:return A.fn.call(A.context,d,u),!0;case 4:return A.fn.call(A.context,d,u,c),!0;case 5:return A.fn.call(A.context,d,u,c,g),!0;case 6:return A.fn.call(A.context,d,u,c,g,p),!0}for(b=1,y=new Array(x-1);b<x;b++)y[b-1]=arguments[b];A.fn.apply(A.context,y)}else{var E,S=A.length;for(b=0;b<S;b++)switch(A[b].once&&this.removeListener(o,A[b].fn,void 0,!0),x){case 1:A[b].fn.call(A[b].context);break;case 2:A[b].fn.call(A[b].context,d);break;case 3:A[b].fn.call(A[b].context,d,u);break;case 4:A[b].fn.call(A[b].context,d,u,c);break;default:if(!y)for(E=1,y=new Array(x-1);E<x;E++)y[E-1]=arguments[E];A[b].fn.apply(A[b].context,y)}}return!0},t.prototype.on=function(o,d,u){return l(this,o,d,u,!1)},t.prototype.once=function(o,d,u){return l(this,o,d,u,!0)},t.prototype.removeListener=function(o,d,u,c){var g=i?i+o:o;if(!this._events[g])return this;if(!d)return n(this,g),this;var p=this._events[g];if(p.fn)p.fn!==d||c&&!p.once||u&&p.context!==u||n(this,g);else{for(var v=0,y=[],b=p.length;v<b;v++)(p[v].fn!==d||c&&!p[v].once||u&&p[v].context!==u)&&y.push(p[v]);y.length?this._events[g]=y.length===1?y[0]:y:n(this,g)}return this},t.prototype.removeAllListeners=function(o){var d;return o?(d=i?i+o:o,this._events[d]&&n(this,d)):(this._events=new f,this._eventsCount=0),this},t.prototype.off=t.prototype.removeListener,t.prototype.addListener=t.prototype.on,t.prefixed=i,t.EventEmitter=t,r.exports=t},8291:(r,s,i)=>{var f=i(8847)(i(3355)),e=Object.create||function(x){var E=function(){};return E.prototype=x,new E},l=Object.keys||function(x){var E=[];for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&E.push(S);return S},n=Function.prototype.bind||function(x){var E=this;return function(){return E.apply(x,arguments)}};function t(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=e(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}r.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0;var o,d=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),o=u.x===0}catch{o=!1}function c(x){return x._maxListeners===void 0?t.defaultMaxListeners:x._maxListeners}function g(x,E,S,C){var T,k,M;if(typeof S!="function")throw new TypeError('"listener" argument must be a function');if((k=x._events)?(k.newListener&&(x.emit("newListener",E,S.listener?S.listener:S),k=x._events),M=k[E]):(k=x._events=e(null),x._eventsCount=0),M){if(typeof M=="function"?M=k[E]=C?[S,M]:[M,S]:C?M.unshift(S):M.push(S),!M.warned&&(T=c(x))&&T>0&&M.length>T){M.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+M.length+' "'+String(E)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');P.name="MaxListenersExceededWarning",P.emitter=x,P.type=E,P.count=M.length,(typeof console>"u"?"undefined":(0,f.default)(console))==="object"&&console.warn&&console.warn("%s: %s",P.name,P.message)}}else M=k[E]=S,++x._eventsCount;return x}function p(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var x=new Array(arguments.length),E=0;E<x.length;++E)x[E]=arguments[E];this.listener.apply(this.target,x)}}function v(x,E,S){var C={fired:!1,wrapFn:void 0,target:x,type:E,listener:S},T=n.call(p,C);return T.listener=S,C.wrapFn=T,T}function y(x,E,S){var C=x._events;if(!C)return[];var T=C[E];return T?typeof T=="function"?S?[T.listener||T]:[T]:S?function(k){for(var M=new Array(k.length),P=0;P<M.length;++P)M[P]=k[P].listener||k[P];return M}(T):A(T,T.length):[]}function b(x){var E=this._events;if(E){var S=E[x];if(typeof S=="function")return 1;if(S)return S.length}return 0}function A(x,E){for(var S=new Array(E),C=0;C<E;++C)S[C]=x[C];return S}o?Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return d},set:function(x){if(typeof x!="number"||x<0||x!=x)throw new TypeError('"defaultMaxListeners" must be a positive number');d=x}}):t.defaultMaxListeners=d,t.prototype.setMaxListeners=function(x){if(typeof x!="number"||x<0||isNaN(x))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=x,this},t.prototype.getMaxListeners=function(){return c(this)},t.prototype.emit=function(x){var E,S,C,T,k,M,P=x==="error";if(M=this._events)P=P&&M.error==null;else if(!P)return!1;if(P){if(arguments.length>1&&(E=arguments[1]),E instanceof Error)throw E;var N=new Error('Unhandled "error" event. ('+E+")");throw N.context=E,N}if(!(S=M[x]))return!1;var F=typeof S=="function";switch(C=arguments.length){case 1:(function(q,z,O){if(z)q.call(O);else for(var R=q.length,I=A(q,R),D=0;D<R;++D)I[D].call(O)})(S,F,this);break;case 2:(function(q,z,O,R){if(z)q.call(O,R);else for(var I=q.length,D=A(q,I),B=0;B<I;++B)D[B].call(O,R)})(S,F,this,arguments[1]);break;case 3:(function(q,z,O,R,I){if(z)q.call(O,R,I);else for(var D=q.length,B=A(q,D),j=0;j<D;++j)B[j].call(O,R,I)})(S,F,this,arguments[1],arguments[2]);break;case 4:(function(q,z,O,R,I,D){if(z)q.call(O,R,I,D);else for(var B=q.length,j=A(q,B),Q=0;Q<B;++Q)j[Q].call(O,R,I,D)})(S,F,this,arguments[1],arguments[2],arguments[3]);break;default:for(T=new Array(C-1),k=1;k<C;k++)T[k-1]=arguments[k];(function(q,z,O,R){if(z)q.apply(O,R);else for(var I=q.length,D=A(q,I),B=0;B<I;++B)D[B].apply(O,R)})(S,F,this,T)}return!0},t.prototype.addListener=function(x,E){return g(this,x,E,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(x,E){return g(this,x,E,!0)},t.prototype.once=function(x,E){if(typeof E!="function")throw new TypeError('"listener" argument must be a function');return this.on(x,v(this,x,E)),this},t.prototype.prependOnceListener=function(x,E){if(typeof E!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(x,v(this,x,E)),this},t.prototype.removeListener=function(x,E){var S,C,T,k,M;if(typeof E!="function")throw new TypeError('"listener" argument must be a function');if(!(C=this._events))return this;if(!(S=C[x]))return this;if(S===E||S.listener===E)--this._eventsCount==0?this._events=e(null):(delete C[x],C.removeListener&&this.emit("removeListener",x,S.listener||E));else if(typeof S!="function"){for(T=-1,k=S.length-1;k>=0;k--)if(S[k]===E||S[k].listener===E){M=S[k].listener,T=k;break}if(T<0)return this;T===0?S.shift():function(P,N){for(var F=N,q=F+1,z=P.length;q<z;F+=1,q+=1)P[F]=P[q];P.pop()}(S,T),S.length===1&&(C[x]=S[0]),C.removeListener&&this.emit("removeListener",x,M||E)}return this},t.prototype.removeAllListeners=function(x){var E,S,C;if(!(S=this._events))return this;if(!S.removeListener)return arguments.length===0?(this._events=e(null),this._eventsCount=0):S[x]&&(--this._eventsCount==0?this._events=e(null):delete S[x]),this;if(arguments.length===0){var T,k=l(S);for(C=0;C<k.length;++C)(T=k[C])!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=e(null),this._eventsCount=0,this}if(typeof(E=S[x])=="function")this.removeListener(x,E);else if(E)for(C=E.length-1;C>=0;C--)this.removeListener(x,E[C]);return this},t.prototype.listeners=function(x){return y(this,x,!0)},t.prototype.rawListeners=function(x){return y(this,x,!1)},t.listenerCount=function(x,E){return typeof x.listenerCount=="function"?x.listenerCount(E):b.call(x,E)},t.prototype.listenerCount=b,t.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},7085:(r,s,i)=>{var f=i(8850).Buffer,e=i(807);r.exports=function(l,n,t,o){if(f.isBuffer(l)||(l=f.from(l,"binary")),n&&(f.isBuffer(n)||(n=f.from(n,"binary")),n.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var d=t/8,u=f.alloc(d),c=f.alloc(o||0),g=f.alloc(0);d>0||o>0;){var p=new e;p.update(g),p.update(l),n&&p.update(n),g=p.digest();var v=0;if(d>0){var y=u.length-d;v=Math.min(d,g.length),g.copy(u,y,0,v),d-=v}if(v<g.length&&o>0){var b=c.length-o,A=Math.min(o,g.length-v);g.copy(c,b,v,v+A),o-=A}}return g.fill(0),{key:u,iv:c}}},8184:(r,s,i)=>{var f=i(1493),e=Object.prototype.toString,l=Object.prototype.hasOwnProperty;r.exports=function(n,t,o){if(!f(t))throw new TypeError("iterator must be a function");var d;arguments.length>=3&&(d=o),e.call(n)==="[object Array]"?function(u,c,g){for(var p=0,v=u.length;p<v;p++)l.call(u,p)&&(g==null?c(u[p],p,u):c.call(g,u[p],p,u))}(n,t,d):typeof n=="string"?function(u,c,g){for(var p=0,v=u.length;p<v;p++)g==null?c(u.charAt(p),p,u):c.call(g,u.charAt(p),p,u)}(n,t,d):function(u,c,g){for(var p in u)l.call(u,p)&&(g==null?c(u[p],p,u):c.call(g,u[p],p,u))}(n,t,d)}},3161:r=>{var s=Array.prototype.slice,i=Object.prototype.toString;r.exports=function(f){var e=this;if(typeof e!="function"||i.call(e)!=="[object Function]")throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var l,n=s.call(arguments,1),t=Math.max(0,e.length-n.length),o=[],d=0;d<t;d++)o.push("$"+d);if(l=Function("binder","return function ("+o.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof l){var c=e.apply(this,n.concat(s.call(arguments)));return Object(c)===c?c:this}return e.apply(f,n.concat(s.call(arguments)))}),e.prototype){var u=function(){};u.prototype=e.prototype,l.prototype=new u,u.prototype=null}return l}},3767:(r,s,i)=>{var f=i(3161);r.exports=Function.prototype.bind||f},7701:(r,s,i)=>{var f,e=i(8847)(i(3355)),l=SyntaxError,n=Function,t=TypeError,o=function(z){try{return n('"use strict"; return ('+z+").constructor;")()}catch{}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch{d=null}var u=function(){throw new t},c=d?function(){try{return u}catch{try{return d(arguments,"callee").get}catch{return u}}}():u,g=i(8489)(),p=Object.getPrototypeOf||function(z){return z.__proto__},v={},y=typeof Uint8Array>"u"?f:p(Uint8Array),b={"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":g?p([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g?p(p([][Symbol.iterator]())):f,"%JSON%":(typeof JSON>"u"?"undefined":(0,e.default)(JSON))==="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map<"u"&&g?p(new Map()[Symbol.iterator]()):f,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set<"u"&&g?p(new Set()[Symbol.iterator]()):f,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?p(""[Symbol.iterator]()):f,"%Symbol%":g?Symbol:f,"%SyntaxError%":l,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":t,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet},A=function z(O){var R;if(O==="%AsyncFunction%")R=o("async function () {}");else if(O==="%GeneratorFunction%")R=o("function* () {}");else if(O==="%AsyncGeneratorFunction%")R=o("async function* () {}");else if(O==="%AsyncGenerator%"){var I=z("%AsyncGeneratorFunction%");I&&(R=I.prototype)}else if(O==="%AsyncIteratorPrototype%"){var D=z("%AsyncGenerator%");D&&(R=p(D.prototype))}return b[O]=R,R},x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=i(3767),S=i(1888),C=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),k=E.call(Function.call,String.prototype.replace),M=E.call(Function.call,String.prototype.slice),P=E.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,q=function(z,O){var R,I=z;if(S(x,I)&&(I="%"+(R=x[I])[0]+"%"),S(b,I)){var D=b[I];if(D===v&&(D=A(I)),D===void 0&&!O)throw new t("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:R,name:I,value:D}}throw new l("intrinsic "+z+" does not exist!")};r.exports=function(z,O){if(typeof z!="string"||z.length===0)throw new t("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof O!="boolean")throw new t('"allowMissing" argument must be a boolean');if(P(/^%?[^%]*%?$/,z)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var R=function(U){var K=M(U,0,1),te=M(U,-1);if(K==="%"&&te!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(te==="%"&&K!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var ee=[];return k(U,N,function(ie,se,ne,re){ee[ee.length]=ne?k(re,F,"$1"):se||ie}),ee}(z),I=R.length>0?R[0]:"",D=q("%"+I+"%",O),B=D.name,j=D.value,Q=!1,X=D.alias;X&&(I=X[0],T(R,C([0,1],X)));for(var Z=1,L=!0;Z<R.length;Z+=1){var W=R[Z],G=M(W,0,1),J=M(W,-1);if((G==='"'||G==="'"||G==="`"||J==='"'||J==="'"||J==="`")&&G!==J)throw new l("property names with quotes must have matching quotes");if(W!=="constructor"&&L||(Q=!0),S(b,B="%"+(I+="."+W)+"%"))j=b[B];else if(j!=null){if(!(W in j)){if(!O)throw new t("base intrinsic for "+z+" exists, but the property is not available.");return}if(d&&Z+1>=R.length){var H=d(j,W);j=(L=!!H)&&"get"in H&&!("originalValue"in H.get)?H.get:j[W]}else L=S(j,W),j=j[W];L&&!Q&&(b[B]=j)}}return j}},2948:(r,s,i)=>{var f;f=typeof window<"u"?window:i.g!==void 0?i.g:typeof self<"u"?self:{},r.exports=f},3820:(r,s,i)=>{var f=i(7701)("%Object.getOwnPropertyDescriptor%",!0);if(f)try{f([],"length")}catch{f=null}r.exports=f},8489:(r,s,i)=>{var f=i(8847)(i(3355)),e=typeof Symbol<"u"&&Symbol,l=i(7027);r.exports=function(){return typeof e=="function"&&typeof Symbol=="function"&&(0,f.default)(e("foo"))==="symbol"&&(0,f.default)(Symbol("bar"))==="symbol"&&l()}},7027:(r,s,i)=>{var f=i(8847)(i(3355));r.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if((0,f.default)(Symbol.iterator)==="symbol")return!0;var e={},l=Symbol("test"),n=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;for(l in e[l]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var t=Object.getOwnPropertySymbols(e);if(t.length!==1||t[0]!==l||!Object.prototype.propertyIsEnumerable.call(e,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,l);if(o.value!==42||o.enumerable!==!0)return!1}return!0}},1191:(r,s,i)=>{var f=i(7027);r.exports=function(){return f()&&!!Symbol.toStringTag}},1888:(r,s,i)=>{var f=i(3767);r.exports=f.call(Function.call,Object.prototype.hasOwnProperty)},2353:(r,s,i)=>{var f=i(8850).Buffer,e=i(6505).Transform;function l(n){e.call(this),this._block=f.allocUnsafe(n),this._blockSize=n,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}i(1736)(l,e),l.prototype._transform=function(n,t,o){var d=null;try{this.update(n,t)}catch(u){d=u}o(d)},l.prototype._flush=function(n){var t=null;try{this.push(this.digest())}catch(o){t=o}n(t)},l.prototype.update=function(n,t){if(function(p,v){if(!f.isBuffer(p)&&typeof p!="string")throw new TypeError("Data must be a string or a buffer")}(n),this._finalized)throw new Error("Digest already called");f.isBuffer(n)||(n=f.from(n,t));for(var o=this._block,d=0;this._blockOffset+n.length-d>=this._blockSize;){for(var u=this._blockOffset;u<this._blockSize;)o[u++]=n[d++];this._update(),this._blockOffset=0}for(;d<n.length;)o[this._blockOffset++]=n[d++];for(var c=0,g=8*n.length;g>0;++c)this._length[c]+=g,(g=this._length[c]/4294967296|0)>0&&(this._length[c]-=4294967296*g);return this},l.prototype._update=function(){throw new Error("_update is not implemented")},l.prototype.digest=function(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();n!==void 0&&(t=t.toString(n)),this._block.fill(0),this._blockOffset=0;for(var o=0;o<4;++o)this._length[o]=0;return t},l.prototype._digest=function(){throw new Error("_digest is not implemented")},r.exports=l},7198:(r,s,i)=>{var f=s;f.utils=i(4268),f.common=i(4696),f.sha=i(9310),f.ripemd=i(9294),f.hmac=i(3201),f.sha1=f.sha.sha1,f.sha256=f.sha.sha256,f.sha224=f.sha.sha224,f.sha384=f.sha.sha384,f.sha512=f.sha.sha512,f.ripemd160=f.ripemd.ripemd160},4696:(r,s,i)=>{var f=i(4268),e=i(4504);function l(){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}s.BlockHash=l,l.prototype.update=function(n,t){if(n=f.toArray(n,t),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){var o=(n=this.pending).length%this._delta8;this.pending=n.slice(n.length-o,n.length),this.pending.length===0&&(this.pending=null),n=f.join32(n,0,n.length-o,this.endian);for(var d=0;d<n.length;d+=this._delta32)this._update(n,d,d+this._delta32)}return this},l.prototype.digest=function(n){return this.update(this._pad()),e(this.pending===null),this._digest(n)},l.prototype._pad=function(){var n=this.pendingTotal,t=this._delta8,o=t-(n+this.padLength)%t,d=new Array(o+this.padLength);d[0]=128;for(var u=1;u<o;u++)d[u]=0;if(n<<=3,this.endian==="big"){for(var c=8;c<this.padLength;c++)d[u++]=0;d[u++]=0,d[u++]=0,d[u++]=0,d[u++]=0,d[u++]=n>>>24&255,d[u++]=n>>>16&255,d[u++]=n>>>8&255,d[u++]=255&n}else for(d[u++]=255&n,d[u++]=n>>>8&255,d[u++]=n>>>16&255,d[u++]=n>>>24&255,d[u++]=0,d[u++]=0,d[u++]=0,d[u++]=0,c=8;c<this.padLength;c++)d[u++]=0;return d}},3201:(r,s,i)=>{var f=i(4268),e=i(4504);function l(n,t,o){if(!(this instanceof l))return new l(n,t,o);this.Hash=n,this.blockSize=n.blockSize/8,this.outSize=n.outSize/8,this.inner=null,this.outer=null,this._init(f.toArray(t,o))}r.exports=l,l.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),e(n.length<=this.blockSize);for(var t=n.length;t<this.blockSize;t++)n.push(0);for(t=0;t<n.length;t++)n[t]^=54;for(this.inner=new this.Hash().update(n),t=0;t<n.length;t++)n[t]^=106;this.outer=new this.Hash().update(n)},l.prototype.update=function(n,t){return this.inner.update(n,t),this},l.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)}},9294:(r,s,i)=>{var f=i(4268),e=i(4696),l=f.rotl32,n=f.sum32,t=f.sum32_3,o=f.sum32_4,d=e.BlockHash;function u(){if(!(this instanceof u))return new u;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(x,E,S,C){return x<=15?E^S^C:x<=31?E&S|~E&C:x<=47?(E|~S)^C:x<=63?E&C|S&~C:E^(S|~C)}function g(x){return x<=15?0:x<=31?1518500249:x<=47?1859775393:x<=63?2400959708:2840853838}function p(x){return x<=15?1352829926:x<=31?1548603684:x<=47?1836072691:x<=63?2053994217:0}f.inherits(u,d),s.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(x,E){for(var S=this.h[0],C=this.h[1],T=this.h[2],k=this.h[3],M=this.h[4],P=S,N=C,F=T,q=k,z=M,O=0;O<80;O++){var R=n(l(o(S,c(O,C,T,k),x[v[O]+E],g(O)),b[O]),M);S=M,M=k,k=l(T,10),T=C,C=R,R=n(l(o(P,c(79-O,N,F,q),x[y[O]+E],p(O)),A[O]),z),P=z,z=q,q=l(F,10),F=N,N=R}R=t(this.h[1],T,q),this.h[1]=t(this.h[2],k,z),this.h[2]=t(this.h[3],M,P),this.h[3]=t(this.h[4],S,N),this.h[4]=t(this.h[0],C,F),this.h[0]=R},u.prototype._digest=function(x){return x==="hex"?f.toHex32(this.h,"little"):f.split32(this.h,"little")};var v=[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],y=[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],b=[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],A=[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]},9310:(r,s,i)=>{s.sha1=i(8142),s.sha224=i(4909),s.sha256=i(7682),s.sha384=i(4532),s.sha512=i(6515)},8142:(r,s,i)=>{var f=i(4268),e=i(4696),l=i(70),n=f.rotl32,t=f.sum32,o=f.sum32_5,d=l.ft_1,u=e.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}f.inherits(g,u),r.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(p,v){for(var y=this.W,b=0;b<16;b++)y[b]=p[v+b];for(;b<y.length;b++)y[b]=n(y[b-3]^y[b-8]^y[b-14]^y[b-16],1);var A=this.h[0],x=this.h[1],E=this.h[2],S=this.h[3],C=this.h[4];for(b=0;b<y.length;b++){var T=~~(b/20),k=o(n(A,5),d(T,x,E,S),C,y[b],c[T]);C=S,S=E,E=n(x,30),x=A,A=k}this.h[0]=t(this.h[0],A),this.h[1]=t(this.h[1],x),this.h[2]=t(this.h[2],E),this.h[3]=t(this.h[3],S),this.h[4]=t(this.h[4],C)},g.prototype._digest=function(p){return p==="hex"?f.toHex32(this.h,"big"):f.split32(this.h,"big")}},4909:(r,s,i)=>{var f=i(4268),e=i(7682);function l(){if(!(this instanceof l))return new l;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}f.inherits(l,e),r.exports=l,l.blockSize=512,l.outSize=224,l.hmacStrength=192,l.padLength=64,l.prototype._digest=function(n){return n==="hex"?f.toHex32(this.h.slice(0,7),"big"):f.split32(this.h.slice(0,7),"big")}},7682:(r,s,i)=>{var f=i(4268),e=i(4696),l=i(70),n=i(4504),t=f.sum32,o=f.sum32_4,d=f.sum32_5,u=l.ch32,c=l.maj32,g=l.s0_256,p=l.s1_256,v=l.g0_256,y=l.g1_256,b=e.BlockHash,A=[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 x(){if(!(this instanceof x))return new x;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=A,this.W=new Array(64)}f.inherits(x,b),r.exports=x,x.blockSize=512,x.outSize=256,x.hmacStrength=192,x.padLength=64,x.prototype._update=function(E,S){for(var C=this.W,T=0;T<16;T++)C[T]=E[S+T];for(;T<C.length;T++)C[T]=o(y(C[T-2]),C[T-7],v(C[T-15]),C[T-16]);var k=this.h[0],M=this.h[1],P=this.h[2],N=this.h[3],F=this.h[4],q=this.h[5],z=this.h[6],O=this.h[7];for(n(this.k.length===C.length),T=0;T<C.length;T++){var R=d(O,p(F),u(F,q,z),this.k[T],C[T]),I=t(g(k),c(k,M,P));O=z,z=q,q=F,F=t(N,R),N=P,P=M,M=k,k=t(R,I)}this.h[0]=t(this.h[0],k),this.h[1]=t(this.h[1],M),this.h[2]=t(this.h[2],P),this.h[3]=t(this.h[3],N),this.h[4]=t(this.h[4],F),this.h[5]=t(this.h[5],q),this.h[6]=t(this.h[6],z),this.h[7]=t(this.h[7],O)},x.prototype._digest=function(E){return E==="hex"?f.toHex32(this.h,"big"):f.split32(this.h,"big")}},4532:(r,s,i)=>{var f=i(4268),e=i(6515);function l(){if(!(this instanceof l))return new l;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}f.inherits(l,e),r.exports=l,l.blockSize=1024,l.outSize=384,l.hmacStrength=192,l.padLength=128,l.prototype._digest=function(n){return n==="hex"?f.toHex32(this.h.slice(0,12),"big"):f.split32(this.h.slice(0,12),"big")}},6515:(r,s,i)=>{var f=i(4268),e=i(4696),l=i(4504),n=f.rotr64_hi,t=f.rotr64_lo,o=f.shr64_hi,d=f.shr64_lo,u=f.sum64,c=f.sum64_hi,g=f.sum64_lo,p=f.sum64_4_hi,v=f.sum64_4_lo,y=f.sum64_5_hi,b=f.sum64_5_lo,A=e.BlockHash,x=[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 E(){if(!(this instanceof E))return new E;A.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=x,this.W=new Array(160)}function S(O,R,I,D,B){var j=O&I^~O&B;return j<0&&(j+=4294967296),j}function C(O,R,I,D,B,j){var Q=R&D^~R&j;return Q<0&&(Q+=4294967296),Q}function T(O,R,I,D,B){var j=O&I^O&B^I&B;return j<0&&(j+=4294967296),j}function k(O,R,I,D,B,j){var Q=R&D^R&j^D&j;return Q<0&&(Q+=4294967296),Q}function M(O,R){var I=n(O,R,28)^n(R,O,2)^n(R,O,7);return I<0&&(I+=4294967296),I}function P(O,R){var I=t(O,R,28)^t(R,O,2)^t(R,O,7);return I<0&&(I+=4294967296),I}function N(O,R){var I=t(O,R,14)^t(O,R,18)^t(R,O,9);return I<0&&(I+=4294967296),I}function F(O,R){var I=n(O,R,1)^n(O,R,8)^o(O,R,7);return I<0&&(I+=4294967296),I}function q(O,R){var I=t(O,R,1)^t(O,R,8)^d(O,R,7);return I<0&&(I+=4294967296),I}function z(O,R){var I=t(O,R,19)^t(R,O,29)^d(O,R,6);return I<0&&(I+=4294967296),I}f.inherits(E,A),r.exports=E,E.blockSize=1024,E.outSize=512,E.hmacStrength=192,E.padLength=128,E.prototype._prepareBlock=function(O,R){for(var I=this.W,D=0;D<32;D++)I[D]=O[R+D];for(;D<I.length;D+=2){var B=(J=I[D-4],H=I[D-3],U=void 0,(U=n(J,H,19)^n(H,J,29)^o(J,H,6))<0&&(U+=4294967296),U),j=z(I[D-4],I[D-3]),Q=I[D-14],X=I[D-13],Z=F(I[D-30],I[D-29]),L=q(I[D-30],I[D-29]),W=I[D-32],G=I[D-31];I[D]=p(B,j,Q,X,Z,L,W,G),I[D+1]=v(B,j,Q,X,Z,L,W,G)}var J,H,U},E.prototype._update=function(O,R){this._prepareBlock(O,R);var I,D,B,j=this.W,Q=this.h[0],X=this.h[1],Z=this.h[2],L=this.h[3],W=this.h[4],G=this.h[5],J=this.h[6],H=this.h[7],U=this.h[8],K=this.h[9],te=this.h[10],ee=this.h[11],ie=this.h[12],se=this.h[13],ne=this.h[14],re=this.h[15];l(this.k.length===j.length);for(var Y=0;Y<j.length;Y+=2){var V=ne,oe=re,fe=(B=void 0,(B=n(I=U,D=K,14)^n(I,D,18)^n(D,I,9))<0&&(B+=4294967296),B),ce=N(U,K),he=S(U,0,te,0,ie),le=C(0,K,0,ee,0,se),ae=this.k[Y],ue=this.k[Y+1],de=j[Y],ve=j[Y+1],me=y(V,oe,fe,ce,he,le,ae,ue,de,ve),ge=b(V,oe,fe,ce,he,le,ae,ue,de,ve);V=M(Q,X),oe=P(Q,X),fe=T(Q,0,Z,0,W),ce=k(0,X,0,L,0,G);var xe=c(V,oe,fe,ce),Ae=g(V,oe,fe,ce);ne=ie,re=se,ie=te,se=ee,te=U,ee=K,U=c(J,H,me,ge),K=g(H,H,me,ge),J=W,H=G,W=Z,G=L,Z=Q,L=X,Q=c(me,ge,xe,Ae),X=g(me,ge,xe,Ae)}u(this.h,0,Q,X),u(this.h,2,Z,L),u(this.h,4,W,G),u(this.h,6,J,H),u(this.h,8,U,K),u(this.h,10,te,ee),u(this.h,12,ie,se),u(this.h,14,ne,re)},E.prototype._digest=function(O){return O==="hex"?f.toHex32(this.h,"big"):f.split32(this.h,"big")}},70:(r,s,i)=>{var f=i(4268).rotr32;function e(t,o,d){return t&o^~t&d}function l(t,o,d){return t&o^t&d^o&d}function n(t,o,d){return t^o^d}s.ft_1=function(t,o,d,u){return t===0?e(o,d,u):t===1||t===3?n(o,d,u):t===2?l(o,d,u):void 0},s.ch32=e,s.maj32=l,s.p32=n,s.s0_256=function(t){return f(t,2)^f(t,13)^f(t,22)},s.s1_256=function(t){return f(t,6)^f(t,11)^f(t,25)},s.g0_256=function(t){return f(t,7)^f(t,18)^t>>>3},s.g1_256=function(t){return f(t,17)^f(t,19)^t>>>10}},4268:(r,s,i)=>{var f=i(4504),e=i(1736);function l(d,u){return(64512&d.charCodeAt(u))==55296&&!(u<0||u+1>=d.length)&&(64512&d.charCodeAt(u+1))==56320}function n(d){return(d>>>24|d>>>8&65280|d<<8&16711680|(255&d)<<24)>>>0}function t(d){return d.length===1?"0"+d:d}function o(d){return d.length===7?"0"+d:d.length===6?"00"+d:d.length===5?"000"+d:d.length===4?"0000"+d:d.length===3?"00000"+d:d.length===2?"000000"+d:d.length===1?"0000000"+d:d}s.inherits=e,s.toArray=function(d,u){if(Array.isArray(d))return d.slice();if(!d)return[];var c=[];if(typeof d=="string")if(u){if(u==="hex")for((d=d.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(d="0"+d),p=0;p<d.length;p+=2)c.push(parseInt(d[p]+d[p+1],16))}else for(var g=0,p=0;p<d.length;p++){var v=d.charCodeAt(p);v<128?c[g++]=v:v<2048?(c[g++]=v>>6|192,c[g++]=63&v|128):l(d,p)?(v=65536+((1023&v)<<10)+(1023&d.charCodeAt(++p)),c[g++]=v>>18|240,c[g++]=v>>12&63|128,c[g++]=v>>6&63|128,c[g++]=63&v|128):(c[g++]=v>>12|224,c[g++]=v>>6&63|128,c[g++]=63&v|128)}else for(p=0;p<d.length;p++)c[p]=0|d[p];return c},s.toHex=function(d){for(var u="",c=0;c<d.length;c++)u+=t(d[c].toString(16));return u},s.htonl=n,s.toHex32=function(d,u){for(var c="",g=0;g<d.length;g++){var p=d[g];u==="little"&&(p=n(p)),c+=o(p.toString(16))}return c},s.zero2=t,s.zero8=o,s.join32=function(d,u,c,g){var p=c-u;f(p%4==0);for(var v=new Array(p/4),y=0,b=u;y<v.length;y++,b+=4){var A;A=g==="big"?d[b]<<24|d[b+1]<<16|d[b+2]<<8|d[b+3]:d[b+3]<<24|d[b+2]<<16|d[b+1]<<8|d[b],v[y]=A>>>0}return v},s.split32=function(d,u){for(var c=new Array(4*d.length),g=0,p=0;g<d.length;g++,p+=4){var v=d[g];u==="big"?(c[p]=v>>>24,c[p+1]=v>>>16&255,c[p+2]=v>>>8&255,c[p+3]=255&v):(c[p+3]=v>>>24,c[p+2]=v>>>16&255,c[p+1]=v>>>8&255,c[p]=255&v)}return c},s.rotr32=function(d,u){return d>>>u|d<<32-u},s.rotl32=function(d,u){return d<<u|d>>>32-u},s.sum32=function(d,u){return d+u>>>0},s.sum32_3=function(d,u,c){return d+u+c>>>0},s.sum32_4=function(d,u,c,g){return d+u+c+g>>>0},s.sum32_5=function(d,u,c,g,p){return d+u+c+g+p>>>0},s.sum64=function(d,u,c,g){var p=d[u],v=g+d[u+1]>>>0,y=(v<g?1:0)+c+p;d[u]=y>>>0,d[u+1]=v},s.sum64_hi=function(d,u,c,g){return(u+g>>>0<u?1:0)+d+c>>>0},s.sum64_lo=function(d,u,c,g){return u+g>>>0},s.sum64_4_hi=function(d,u,c,g,p,v,y,b){var A=0,x=u;return A+=(x=x+g>>>0)<u?1:0,A+=(x=x+v>>>0)<v?1:0,d+c+p+y+(A+=(x=x+b>>>0)<b?1:0)>>>0},s.sum64_4_lo=function(d,u,c,g,p,v,y,b){return u+g+v+b>>>0},s.sum64_5_hi=function(d,u,c,g,p,v,y,b,A,x){var E=0,S=u;return E+=(S=S+g>>>0)<u?1:0,E+=(S=S+v>>>0)<v?1:0,E+=(S=S+b>>>0)<b?1:0,d+c+p+y+A+(E+=(S=S+x>>>0)<x?1:0)>>>0},s.sum64_5_lo=function(d,u,c,g,p,v,y,b,A,x){return u+g+v+b+x>>>0},s.rotr64_hi=function(d,u,c){return(u<<32-c|d>>>c)>>>0},s.rotr64_lo=function(d,u,c){return(d<<32-c|u>>>c)>>>0},s.shr64_hi=function(d,u,c){return d>>>c},s.shr64_lo=function(d,u,c){return(d<<32-c|u>>>c)>>>0}},9410:(r,s,i)=>{var f=i(7198),e=i(6580),l=i(4504);function n(t){if(!(this instanceof n))return new n(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var o=e.toArray(t.entropy,t.entropyEnc||"hex"),d=e.toArray(t.nonce,t.nonceEnc||"hex"),u=e.toArray(t.pers,t.persEnc||"hex");l(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(o,d,u)}r.exports=n,n.prototype._init=function(t,o,d){var u=t.concat(o).concat(d);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var c=0;c<this.V.length;c++)this.K[c]=0,this.V[c]=1;this._update(u),this._reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new f.hmac(this.hash,this.K)},n.prototype._update=function(t){var o=this._hmac().update(this.V).update([0]);t&&(o=o.update(t)),this.K=o.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},n.prototype.reseed=function(t,o,d,u){typeof o!="string"&&(u=d,d=o,o=null),t=e.toArray(t,o),d=e.toArray(d,u),l(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(d||[])),this._reseed=1},n.prototype.generate=function(t,o,d,u){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof o!="string"&&(u=d,d=o,o=null),d&&(d=e.toArray(d,u||"hex"),this._update(d));for(var c=[];c.length<t;)this.V=this._hmac().update(this.V).digest(),c=c.concat(this.V);var g=c.slice(0,t);return this._update(d),this._reseed++,e.encode(g,o)}},912:(r,s,i)=>{var f=i(9519),e=i(1143),l=r.exports;for(var n in f)f.hasOwnProperty(n)&&(l[n]=f[n]);function t(o){if(typeof o=="string"&&(o=e.parse(o)),o.protocol||(o.protocol="https:"),o.protocol!=="https:")throw new Error('Protocol "'+o.protocol+'" not supported. Expected "https:"');return o}l.request=function(o,d){return o=t(o),f.request.call(this,o,d)},l.get=function(o,d){return o=t(o),f.get.call(this,o,d)}},2996:(r,s,i)=>{var f;i(8847)(i(3355)),(f=function(){return e=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],l=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]),{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀",mapChar:function(n){return n>=196608?n>=917760&&n<=917999?18874368:0:e[l[n>>4]][15&n]}};var e,l}.apply(s,[]))===void 0||(r.exports=f)},4489:(r,s,i)=>{var f=i(8847)(i(3106));function e(T,k){var M=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!M){if(Array.isArray(T)||(M=function(O,R){if(O){if(typeof O=="string")return l(O,R);var I=Object.prototype.toString.call(O).slice(8,-1);return I==="Object"&&O.constructor&&(I=O.constructor.name),I==="Map"||I==="Set"?Array.from(O):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?l(O,R):void 0}}(T))||k&&T&&typeof T.length=="number"){M&&(T=M);var P=0,N=function(){};return{s:N,n:function(){return P>=T.length?{done:!0}:{done:!1,value:T[P++]}},e:function(O){throw O},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var F,q=!0,z=!1;return{s:function(){M=M.call(T)},n:function(){var O=M.next();return q=O.done,O},e:function(O){z=!0,F=O},f:function(){try{q||M.return==null||M.return()}finally{if(z)throw F}}}}function l(T,k){(k==null||k>T.length)&&(k=T.length);for(var M=0,P=new Array(k);M<k;M++)P[M]=T[M];return P}var n=2147483647,t=36,o=/^xn--/,d=/[^\0-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,p=String.fromCharCode;function v(T){throw new RangeError(c[T])}function y(T,k){var M=T.split("@"),P="";M.length>1&&(P=M[0]+"@",T=M[1]);var N=function(F,q){for(var z=[],O=F.length;O--;)z[O]=q(F[O]);return z}((T=T.replace(u,".")).split("."),k).join(".");return P+N}function b(T){for(var k=[],M=0,P=T.length;M<P;){var N=T.charCodeAt(M++);if(N>=55296&&N<=56319&&M<P){var F=T.charCodeAt(M++);(64512&F)==56320?k.push(((1023&N)<<10)+(1023&F)+65536):(k.push(N),M--)}else k.push(N)}return k}var A=function(T,k){return T+22+75*(T<26)-((k!=0)<<5)},x=function(T,k,M){var P=0;for(T=M?g(T/700):T>>1,T+=g(T/k);T>455;P+=t)T=g(T/35);return g(P+36*T/(T+38))},E=function(T){var k,M=[],P=T.length,N=0,F=128,q=72,z=T.lastIndexOf("-");z<0&&(z=0);for(var O=0;O<z;++O)T.charCodeAt(O)>=128&&v("not-basic"),M.push(T.charCodeAt(O));for(var R=z>0?z+1:0;R<P;){for(var I=N,D=1,B=t;;B+=t){R>=P&&v("invalid-input");var j=(k=T.charCodeAt(R++))-48<10?k-22:k-65<26?k-65:k-97<26?k-97:t;(j>=t||j>g((n-N)/D))&&v("overflow"),N+=j*D;var Q=B<=q?1:B>=q+26?26:B-q;if(j<Q)break;var X=t-Q;D>g(n/X)&&v("overflow"),D*=X}var Z=M.length+1;q=x(N-I,Z,I==0),g(N/Z)>n-F&&v("overflow"),F+=g(N/Z),N%=Z,M.splice(N++,0,F)}return String.fromCodePoint.apply(String,M)},S=function(T){var k,M=[],P=(T=b(T)).length,N=128,F=0,q=72,z=e(T);try{for(z.s();!(k=z.n()).done;){var O=k.value;O<128&&M.push(p(O))}}catch(te){z.e(te)}finally{z.f()}var R=M.length,I=R;for(R&&M.push("-");I<P;){var D,B=n,j=e(T);try{for(j.s();!(D=j.n()).done;){var Q=D.value;Q>=N&&Q<B&&(B=Q)}}catch(te){j.e(te)}finally{j.f()}var X=I+1;B-N>g((n-F)/X)&&v("overflow"),F+=(B-N)*X,N=B;var Z,L=e(T);try{for(L.s();!(Z=L.n()).done;){var W=Z.value;if(W<N&&++F>n&&v("overflow"),W==N){for(var G=F,J=t;;J+=t){var H=J<=q?1:J>=q+26?26:J-q;if(G<H)break;var U=G-H,K=t-H;M.push(p(A(H+U%K,0))),G=g(U/K)}M.push(p(A(G,0))),q=x(F,X,I==R),F=0,++I}}}catch(te){L.e(te)}finally{L.f()}++F,++N}return M.join("")},C={version:"2.1.0",ucs2:{decode:b,encode:function(T){return String.fromCodePoint.apply(String,(0,f.default)(T))}},decode:E,encode:S,toASCII:function(T){return y(T,function(k){return d.test(k)?"xn--"+S(k):k})},toUnicode:function(T){return y(T,function(k){return o.test(k)?E(k.slice(4).toLowerCase()):k})}};r.exports=C},3956:(r,s,i)=>{var f,e;i(8847)(i(3355)),f=[i(4489),i(2996)],(e=function(l,n){return function(t,o){function d(g,p,v){for(var y=[],b=t.ucs2.decode(g),A=0;A<b.length;A++){var x=b[A],E=t.ucs2.encode([b[A]]),S=o.mapChar(x),C=S>>23,T=S>>21&3,k=S>>5&65535,M=31&S,P=o.mapStr.substr(k,M);if(T===0||p&&1&C)throw new Error("Illegal char "+E);T===1?y.push(P):T===2?y.push(v?P:E):T===3&&y.push(E)}return y.join("").normalize("NFC")}function u(g,p,v){v===void 0&&(v=!1);var y=d(g,v,p).split(".");return(y=y.map(function(b){return b.startsWith("xn--")?c(b=t.decode(b.substring(4)),v,!1):c(b,v,p),b})).join(".")}function c(g,p,v){if(g[2]==="-"&&g[3]==="-")throw new Error("Failed to validate "+g);if(g.startsWith("-")||g.endsWith("-"))throw new Error("Failed to validate "+g);if(g.includes("."))throw new Error("Failed to validate "+g);if(d(g,p,v)!==g)throw new Error("Failed to validate "+g);var y=g.codePointAt(0);if(o.mapChar(y)&16777216)throw new Error("Label contains illegal character: "+y)}return{toUnicode:function(g,p){return p===void 0&&(p={}),u(g,!1,"useStd3ASCII"in p&&p.useStd3ASCII)},toAscii:function(g,p){p===void 0&&(p={});var v,y=!("transitional"in p)||p.transitional,b="useStd3ASCII"in p&&p.useStd3ASCII,A="verifyDnsLength"in p&&p.verifyDnsLength,x=u(g,y,b).split(".").map(t.toASCII),E=x.join(".");if(A){if(E.length<1||E.length>253)throw new Error("DNS name has wrong length: "+E);for(v=0;v<x.length;v++){var S=x[v];if(S.length<1||S.length>63)throw new Error("DNS label has wrong length: "+S)}}return E}}}(l,n)}.apply(s,f))===void 0||(r.exports=e)},3226:(r,s)=>{s.read=function(i,f,e,l,n){var t,o,d=8*n-l-1,u=(1<<d)-1,c=u>>1,g=-7,p=e?n-1:0,v=e?-1:1,y=i[f+p];for(p+=v,t=y&(1<<-g)-1,y>>=-g,g+=d;g>0;t=256*t+i[f+p],p+=v,g-=8);for(o=t&(1<<-g)-1,t>>=-g,g+=l;g>0;o=256*o+i[f+p],p+=v,g-=8);if(t===0)t=1-c;else{if(t===u)return o?NaN:1/0*(y?-1:1);o+=Math.pow(2,l),t-=c}return(y?-1:1)*o*Math.pow(2,t-l)},s.write=function(i,f,e,l,n,t){var o,d,u,c=8*t-n-1,g=(1<<c)-1,p=g>>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=l?0:t-1,b=l?1:-1,A=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(d=isNaN(f)?1:0,o=g):(o=Math.floor(Math.log(f)/Math.LN2),f*(u=Math.pow(2,-o))<1&&(o--,u*=2),(f+=o+p>=1?v/u:v*Math.pow(2,1-p))*u>=2&&(o++,u/=2),o+p>=g?(d=0,o=g):o+p>=1?(d=(f*u-1)*Math.pow(2,n),o+=p):(d=f*Math.pow(2,p-1)*Math.pow(2,n),o=0));n>=8;i[e+y]=255&d,y+=b,d/=256,n-=8);for(o=o<<n|d,c+=n;c>0;i[e+y]=255&o,y+=b,o/=256,c-=8);i[e+y-b]|=128*A}},1736:r=>{typeof Object.create=="function"?r.exports=function(s,i){i&&(s.super_=i,s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(s,i){if(i){s.super_=i;var f=function(){};f.prototype=i.prototype,s.prototype=new f,s.prototype.constructor=s}}},9446:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1191)(),l=i(593)("Object.prototype.toString"),n=function(d){return!(e&&d&&(0,f.default)(d)==="object"&&Symbol.toStringTag in d)&&l(d)==="[object Arguments]"},t=function(d){return!!n(d)||d!==null&&(0,f.default)(d)==="object"&&typeof d.length=="number"&&d.length>=0&&l(d)!=="[object Array]"&&l(d.callee)==="[object Function]"},o=function(){return n(arguments)}();n.isLegacyArguments=t,r.exports=o?n:t},1493:(r,s,i)=>{var f,e,l=i(8847)(i(3355)),n=Function.prototype.toString,t=(typeof Reflect>"u"?"undefined":(0,l.default)(Reflect))==="object"&&Reflect!==null&&Reflect.apply;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{f=Object.defineProperty({},"length",{get:function(){throw e}}),e={},t(function(){throw 42},null,f)}catch(b){b!==e&&(t=null)}else t=null;var o=/^\s*class\b/,d=function(b){try{var A=n.call(b);return o.test(A)}catch{return!1}},u=function(b){try{return!d(b)&&(n.call(b),!0)}catch{return!1}},c=Object.prototype.toString,g=typeof Symbol=="function"&&!!Symbol.toStringTag,p=!(0 in[,]),v=function(){return!1};if((typeof document>"u"?"undefined":(0,l.default)(document))==="object"){var y=document.all;c.call(y)===c.call(document.all)&&(v=function(b){if((p||!b)&&(b===void 0||(0,l.default)(b)==="object"))try{var A=c.call(b);return(A==="[object HTMLAllCollection]"||A==="[object HTML document.all class]"||A==="[object HTMLCollection]"||A==="[object Object]")&&b("")==null}catch{}return!1})}r.exports=t?function(b){if(v(b))return!0;if(!b||typeof b!="function"&&(0,l.default)(b)!=="object")return!1;try{t(b,null,f)}catch(A){if(A!==e)return!1}return!d(b)&&u(b)}:function(b){if(v(b))return!0;if(!b||typeof b!="function"&&(0,l.default)(b)!=="object")return!1;if(g)return u(b);if(d(b))return!1;var A=c.call(b);return!(A!=="[object Function]"&&A!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(A))&&u(b)}},4339:r=>{r.exports=function(i){if(!i)return!1;var f=s.call(i);return f==="[object Function]"||typeof i=="function"&&f!=="[object RegExp]"||typeof window<"u"&&(i===window.setTimeout||i===window.alert||i===window.confirm||i===window.prompt)};var s=Object.prototype.toString},4477:(r,s,i)=>{var f,e=Object.prototype.toString,l=Function.prototype.toString,n=/^\s*(?:function)?\*/,t=i(1191)(),o=Object.getPrototypeOf;r.exports=function(d){if(typeof d!="function")return!1;if(n.test(l.call(d)))return!0;if(!t)return e.call(d)==="[object GeneratorFunction]";if(!o)return!1;if(f===void 0){var u=function(){if(!t)return!1;try{return Function("return function*() {}")()}catch{}}();f=!!u&&o(u)}return o(d)===f}},8619:(r,s,i)=>{var f=i(8847)(i(3355));r.exports=function(e){if(typeof e!="string")throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+(0,f.default)(e)+", while checking isHexPrefixed.");return e.slice(0,2)==="0x"}},8915:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(8184),l=i(3604),n=i(593),t=n("Object.prototype.toString"),o=i(1191)(),d=i(3820),u=typeof globalThis>"u"?i.g:globalThis,c=l(),g=n("Array.prototype.indexOf",!0)||function(b,A){for(var x=0;x<b.length;x+=1)if(b[x]===A)return x;return-1},p=n("String.prototype.slice"),v={},y=Object.getPrototypeOf;o&&d&&y&&e(c,function(b){var A=new u[b];if(Symbol.toStringTag in A){var x=y(A),E=d(x,Symbol.toStringTag);if(!E){var S=y(x);E=d(S,Symbol.toStringTag)}v[b]=E.get}}),r.exports=function(b){if(!b||(0,f.default)(b)!=="object")return!1;if(!o||!(Symbol.toStringTag in b)){var A=p(t(b),8,-1);return g(c,A)>-1}return!!d&&function(x){var E=!1;return e(v,function(S,C){if(!E)try{E=S.call(x)===C}catch{}}),E}(b)}},9484:r=>{var s={}.toString;r.exports=Array.isArray||function(i){return s.call(i)=="[object Array]"}},4858:(r,s,i)=>{r=i.nmd(r);var f=i(9142),e=i(8847)(i(3355));(function(){var l=(typeof window>"u"?"undefined":(0,e.default)(window))==="object"?window:{};!l.JS_SHA3_NO_NODE_JS&&(f===void 0?"undefined":(0,e.default)(f))==="object"&&f.versions&&f.versions.node&&(l=i.g);for(var n=!l.JS_SHA3_NO_COMMON_JS&&(0,e.default)(r)==="object"&&r.exports,t="0123456789abcdef".split(""),o=[0,8,16,24],d=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],u=[224,256,384,512],c=["hex","buffer","arrayBuffer","array"],g=function(P,N,F){return function(q){return new k(P,N,P).update(q)[F]()}},p=function(P,N,F){return function(q,z){return new k(P,N,z).update(q)[F]()}},v=function(P,N){var F=g(P,N,"hex");F.create=function(){return new k(P,N,P)},F.update=function(O){return F.create().update(O)};for(var q=0;q<c.length;++q){var z=c[q];F[z]=g(P,N,z)}return F},y=[{name:"keccak",padding:[1,256,65536,16777216],bits:u,createMethod:v},{name:"sha3",padding:[6,1536,393216,100663296],bits:u,createMethod:v},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(P,N){var F=p(P,N,"hex");F.create=function(O){return new k(P,N,O)},F.update=function(O,R){return F.create(R).update(O)};for(var q=0;q<c.length;++q){var z=c[q];F[z]=p(P,N,z)}return F}}],b={},A=[],x=0;x<y.length;++x)for(var E=y[x],S=E.bits,C=0;C<S.length;++C){var T=E.name+"_"+S[C];A.push(T),b[T]=E.createMethod(S[C],E.padding)}function k(P,N,F){this.blocks=[],this.s=[],this.padding=N,this.outputBits=F,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(P<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=F>>5,this.extraBytes=(31&F)>>3;for(var q=0;q<50;++q)this.s[q]=0}k.prototype.update=function(P){var N=typeof P!="string";N&&P.constructor===ArrayBuffer&&(P=new Uint8Array(P));for(var F,q,z=P.length,O=this.blocks,R=this.byteCount,I=this.blockCount,D=0,B=this.s;D<z;){if(this.reset)for(this.reset=!1,O[0]=this.block,F=1;F<I+1;++F)O[F]=0;if(N)for(F=this.start;D<z&&F<R;++D)O[F>>2]|=P[D]<<o[3&F++];else for(F=this.start;D<z&&F<R;++D)(q=P.charCodeAt(D))<128?O[F>>2]|=q<<o[3&F++]:q<2048?(O[F>>2]|=(192|q>>6)<<o[3&F++],O[F>>2]|=(128|63&q)<<o[3&F++]):q<55296||q>=57344?(O[F>>2]|=(224|q>>12)<<o[3&F++],O[F>>2]|=(128|q>>6&63)<<o[3&F++],O[F>>2]|=(128|63&q)<<o[3&F++]):(q=65536+((1023&q)<<10|1023&P.charCodeAt(++D)),O[F>>2]|=(240|q>>18)<<o[3&F++],O[F>>2]|=(128|q>>12&63)<<o[3&F++],O[F>>2]|=(128|q>>6&63)<<o[3&F++],O[F>>2]|=(128|63&q)<<o[3&F++]);if(this.lastByteIndex=F,F>=R){for(this.start=F-R,this.block=O[I],F=0;F<I;++F)B[F]^=O[F];M(B),this.reset=!0}else this.start=F}return this},k.prototype.finalize=function(){var P=this.blocks,N=this.lastByteIndex,F=this.blockCount,q=this.s;if(P[N>>2]|=this.padding[3&N],this.lastByteIndex===this.byteCount)for(P[0]=P[F],N=1;N<F+1;++N)P[N]=0;for(P[F-1]|=2147483648,N=0;N<F;++N)q[N]^=P[N];M(q)},k.prototype.toString=k.prototype.hex=function(){this.finalize();for(var P,N=this.blockCount,F=this.s,q=this.outputBlocks,z=this.extraBytes,O=0,R=0,I="";R<q;){for(O=0;O<N&&R<q;++O,++R)P=F[O],I+=t[P>>4&15]+t[15&P]+t[P>>12&15]+t[P>>8&15]+t[P>>20&15]+t[P>>16&15]+t[P>>28&15]+t[P>>24&15];R%N==0&&(M(F),O=0)}return z&&(P=F[O],z>0&&(I+=t[P>>4&15]+t[15&P]),z>1&&(I+=t[P>>12&15]+t[P>>8&15]),z>2&&(I+=t[P>>20&15]+t[P>>16&15])),I},k.prototype.arrayBuffer=function(){this.finalize();var P,N=this.blockCount,F=this.s,q=this.outputBlocks,z=this.extraBytes,O=0,R=0,I=this.outputBits>>3;P=z?new ArrayBuffer(q+1<<2):new ArrayBuffer(I);for(var D=new Uint32Array(P);R<q;){for(O=0;O<N&&R<q;++O,++R)D[R]=F[O];R%N==0&&M(F)}return z&&(D[O]=F[O],P=P.slice(0,I)),P},k.prototype.buffer=k.prototype.arrayBuffer,k.prototype.digest=k.prototype.array=function(){this.finalize();for(var P,N,F=this.blockCount,q=this.s,z=this.outputBlocks,O=this.extraBytes,R=0,I=0,D=[];I<z;){for(R=0;R<F&&I<z;++R,++I)P=I<<2,N=q[R],D[P]=255&N,D[P+1]=N>>8&255,D[P+2]=N>>16&255,D[P+3]=N>>24&255;I%F==0&&M(q)}return O&&(P=I<<2,N=q[R],O>0&&(D[P]=255&N),O>1&&(D[P+1]=N>>8&255),O>2&&(D[P+2]=N>>16&255)),D};var M=function(P){var N,F,q,z,O,R,I,D,B,j,Q,X,Z,L,W,G,J,H,U,K,te,ee,ie,se,ne,re,Y,V,oe,fe,ce,he,le,ae,ue,de,ve,me,ge,xe,Ae,Te,ke,Pe,Ie,qe,Ve,et,je,Ke,Ge,We,Je,ot,Qe,Ye,at,pe,ye,be,_e,we,Ee;for(q=0;q<48;q+=2)z=P[0]^P[10]^P[20]^P[30]^P[40],O=P[1]^P[11]^P[21]^P[31]^P[41],R=P[2]^P[12]^P[22]^P[32]^P[42],I=P[3]^P[13]^P[23]^P[33]^P[43],D=P[4]^P[14]^P[24]^P[34]^P[44],B=P[5]^P[15]^P[25]^P[35]^P[45],j=P[6]^P[16]^P[26]^P[36]^P[46],Q=P[7]^P[17]^P[27]^P[37]^P[47],N=(X=P[8]^P[18]^P[28]^P[38]^P[48])^(R<<1|I>>>31),F=(Z=P[9]^P[19]^P[29]^P[39]^P[49])^(I<<1|R>>>31),P[0]^=N,P[1]^=F,P[10]^=N,P[11]^=F,P[20]^=N,P[21]^=F,P[30]^=N,P[31]^=F,P[40]^=N,P[41]^=F,N=z^(D<<1|B>>>31),F=O^(B<<1|D>>>31),P[2]^=N,P[3]^=F,P[12]^=N,P[13]^=F,P[22]^=N,P[23]^=F,P[32]^=N,P[33]^=F,P[42]^=N,P[43]^=F,N=R^(j<<1|Q>>>31),F=I^(Q<<1|j>>>31),P[4]^=N,P[5]^=F,P[14]^=N,P[15]^=F,P[24]^=N,P[25]^=F,P[34]^=N,P[35]^=F,P[44]^=N,P[45]^=F,N=D^(X<<1|Z>>>31),F=B^(Z<<1|X>>>31),P[6]^=N,P[7]^=F,P[16]^=N,P[17]^=F,P[26]^=N,P[27]^=F,P[36]^=N,P[37]^=F,P[46]^=N,P[47]^=F,N=j^(z<<1|O>>>31),F=Q^(O<<1|z>>>31),P[8]^=N,P[9]^=F,P[18]^=N,P[19]^=F,P[28]^=N,P[29]^=F,P[38]^=N,P[39]^=F,P[48]^=N,P[49]^=F,L=P[0],W=P[1],qe=P[11]<<4|P[10]>>>28,Ve=P[10]<<4|P[11]>>>28,V=P[20]<<3|P[21]>>>29,oe=P[21]<<3|P[20]>>>29,be=P[31]<<9|P[30]>>>23,_e=P[30]<<9|P[31]>>>23,Te=P[40]<<18|P[41]>>>14,ke=P[41]<<18|P[40]>>>14,ae=P[2]<<1|P[3]>>>31,ue=P[3]<<1|P[2]>>>31,G=P[13]<<12|P[12]>>>20,J=P[12]<<12|P[13]>>>20,et=P[22]<<10|P[23]>>>22,je=P[23]<<10|P[22]>>>22,fe=P[33]<<13|P[32]>>>19,ce=P[32]<<13|P[33]>>>19,we=P[42]<<2|P[43]>>>30,Ee=P[43]<<2|P[42]>>>30,ot=P[5]<<30|P[4]>>>2,Qe=P[4]<<30|P[5]>>>2,de=P[14]<<6|P[15]>>>26,ve=P[15]<<6|P[14]>>>26,H=P[25]<<11|P[24]>>>21,U=P[24]<<11|P[25]>>>21,Ke=P[34]<<15|P[35]>>>17,Ge=P[35]<<15|P[34]>>>17,he=P[45]<<29|P[44]>>>3,le=P[44]<<29|P[45]>>>3,se=P[6]<<28|P[7]>>>4,ne=P[7]<<28|P[6]>>>4,Ye=P[17]<<23|P[16]>>>9,at=P[16]<<23|P[17]>>>9,me=P[26]<<25|P[27]>>>7,ge=P[27]<<25|P[26]>>>7,K=P[36]<<21|P[37]>>>11,te=P[37]<<21|P[36]>>>11,We=P[47]<<24|P[46]>>>8,Je=P[46]<<24|P[47]>>>8,Pe=P[8]<<27|P[9]>>>5,Ie=P[9]<<27|P[8]>>>5,re=P[18]<<20|P[19]>>>12,Y=P[19]<<20|P[18]>>>12,pe=P[29]<<7|P[28]>>>25,ye=P[28]<<7|P[29]>>>25,xe=P[38]<<8|P[39]>>>24,Ae=P[39]<<8|P[38]>>>24,ee=P[48]<<14|P[49]>>>18,ie=P[49]<<14|P[48]>>>18,P[0]=L^~G&H,P[1]=W^~J&U,P[10]=se^~re&V,P[11]=ne^~Y&oe,P[20]=ae^~de&me,P[21]=ue^~ve&ge,P[30]=Pe^~qe&et,P[31]=Ie^~Ve&je,P[40]=ot^~Ye&pe,P[41]=Qe^~at&ye,P[2]=G^~H&K,P[3]=J^~U&te,P[12]=re^~V&fe,P[13]=Y^~oe&ce,P[22]=de^~me&xe,P[23]=ve^~ge&Ae,P[32]=qe^~et&Ke,P[33]=Ve^~je&Ge,P[42]=Ye^~pe&be,P[43]=at^~ye&_e,P[4]=H^~K&ee,P[5]=U^~te&ie,P[14]=V^~fe&he,P[15]=oe^~ce&le,P[24]=me^~xe&Te,P[25]=ge^~Ae&ke,P[34]=et^~Ke&We,P[35]=je^~Ge&Je,P[44]=pe^~be&we,P[45]=ye^~_e&Ee,P[6]=K^~ee&L,P[7]=te^~ie&W,P[16]=fe^~he&se,P[17]=ce^~le&ne,P[26]=xe^~Te&ae,P[27]=Ae^~ke&ue,P[36]=Ke^~We&Pe,P[37]=Ge^~Je&Ie,P[46]=be^~we&ot,P[47]=_e^~Ee&Qe,P[8]=ee^~L&G,P[9]=ie^~W&J,P[18]=he^~se&re,P[19]=le^~ne&Y,P[28]=Te^~ae&de,P[29]=ke^~ue&ve,P[38]=We^~Pe&qe,P[39]=Je^~Ie&Ve,P[48]=we^~ot&Ye,P[49]=Ee^~Qe&at,P[0]^=d[q],P[1]^=d[q+1]};if(n)r.exports=b;else for(x=0;x<A.length;++x)l[A[x]]=b[A[x]]})()},3135:(r,s,i)=>{r.exports=i(2109)(i(801))},2109:(r,s,i)=>{var f=i(6543),e=i(274);r.exports=function(l){var n=f(l),t=e(l);return function(o,d){switch(typeof o=="string"?o.toLowerCase():o){case"keccak224":return new n(1152,448,null,224,d);case"keccak256":return new n(1088,512,null,256,d);case"keccak384":return new n(832,768,null,384,d);case"keccak512":return new n(576,1024,null,512,d);case"sha3-224":return new n(1152,448,6,224,d);case"sha3-256":return new n(1088,512,6,256,d);case"sha3-384":return new n(832,768,6,384,d);case"sha3-512":return new n(576,1024,6,512,d);case"shake128":return new t(1344,256,31,d);case"shake256":return new t(1088,512,31,d);default:throw new Error("Invald algorithm: "+o)}}}},6543:(r,s,i)=>{var f=i(9033).Buffer,e=i(8847),l=e(i(9721)),n=e(i(8985)),t=e(i(5163)),o=e(i(4650)),d=e(i(1949)),u=i(6505).Transform;r.exports=function(c){return function(g){(0,t.default)(b,g);var p,v,y=(p=b,v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,x=(0,d.default)(p);if(v){var E=(0,d.default)(this).constructor;A=Reflect.construct(x,arguments,E)}else A=x.apply(this,arguments);return(0,o.default)(this,A)});function b(A,x,E,S,C){var T;return(0,l.default)(this,b),(T=y.call(this,C))._rate=A,T._capacity=x,T._delimitedSuffix=E,T._hashBitLength=S,T._options=C,T._state=new c,T._state.initialize(A,x),T._finalized=!1,T}return(0,n.default)(b,[{key:"_transform",value:function(A,x,E){var S=null;try{this.update(A,x)}catch(C){S=C}E(S)}},{key:"_flush",value:function(A){var x=null;try{this.push(this.digest())}catch(E){x=E}A(x)}},{key:"update",value:function(A,x){if(!f.isBuffer(A)&&typeof A!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return f.isBuffer(A)||(A=f.from(A,x)),this._state.absorb(A),this}},{key:"digest",value:function(A){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var x=this._state.squeeze(this._hashBitLength/8);return A!==void 0&&(x=x.toString(A)),this._resetState(),x}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var A=new b(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(A._state),A._finalized=this._finalized,A}}]),b}(u)}},274:(r,s,i)=>{var f=i(9033).Buffer,e=i(8847),l=e(i(9721)),n=e(i(8985)),t=e(i(5163)),o=e(i(4650)),d=e(i(1949)),u=i(6505).Transform;r.exports=function(c){return function(g){(0,t.default)(b,g);var p,v,y=(p=b,v=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var A,x=(0,d.default)(p);if(v){var E=(0,d.default)(this).constructor;A=Reflect.construct(x,arguments,E)}else A=x.apply(this,arguments);return(0,o.default)(this,A)});function b(A,x,E,S){var C;return(0,l.default)(this,b),(C=y.call(this,S))._rate=A,C._capacity=x,C._delimitedSuffix=E,C._options=S,C._state=new c,C._state.initialize(A,x),C._finalized=!1,C}return(0,n.default)(b,[{key:"_transform",value:function(A,x,E){var S=null;try{this.update(A,x)}catch(C){S=C}E(S)}},{key:"_flush",value:function(){}},{key:"_read",value:function(A){this.push(this.squeeze(A))}},{key:"update",value:function(A,x){if(!f.isBuffer(A)&&typeof A!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return f.isBuffer(A)||(A=f.from(A,x)),this._state.absorb(A),this}},{key:"squeeze",value:function(A,x){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var E=this._state.squeeze(A);return x!==void 0&&(E=E.toString(x)),E}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var A=new b(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(A._state),A._finalized=this._finalized,A}}]),b}(u)}},5612:(r,s)=>{var i=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];s.p1600=function(f){for(var e=0;e<24;++e){var l=f[0]^f[10]^f[20]^f[30]^f[40],n=f[1]^f[11]^f[21]^f[31]^f[41],t=f[2]^f[12]^f[22]^f[32]^f[42],o=f[3]^f[13]^f[23]^f[33]^f[43],d=f[4]^f[14]^f[24]^f[34]^f[44],u=f[5]^f[15]^f[25]^f[35]^f[45],c=f[6]^f[16]^f[26]^f[36]^f[46],g=f[7]^f[17]^f[27]^f[37]^f[47],p=f[8]^f[18]^f[28]^f[38]^f[48],v=f[9]^f[19]^f[29]^f[39]^f[49],y=p^(t<<1|o>>>31),b=v^(o<<1|t>>>31),A=f[0]^y,x=f[1]^b,E=f[10]^y,S=f[11]^b,C=f[20]^y,T=f[21]^b,k=f[30]^y,M=f[31]^b,P=f[40]^y,N=f[41]^b;y=l^(d<<1|u>>>31),b=n^(u<<1|d>>>31);var F=f[2]^y,q=f[3]^b,z=f[12]^y,O=f[13]^b,R=f[22]^y,I=f[23]^b,D=f[32]^y,B=f[33]^b,j=f[42]^y,Q=f[43]^b;y=t^(c<<1|g>>>31),b=o^(g<<1|c>>>31);var X=f[4]^y,Z=f[5]^b,L=f[14]^y,W=f[15]^b,G=f[24]^y,J=f[25]^b,H=f[34]^y,U=f[35]^b,K=f[44]^y,te=f[45]^b;y=d^(p<<1|v>>>31),b=u^(v<<1|p>>>31);var ee=f[6]^y,ie=f[7]^b,se=f[16]^y,ne=f[17]^b,re=f[26]^y,Y=f[27]^b,V=f[36]^y,oe=f[37]^b,fe=f[46]^y,ce=f[47]^b;y=c^(l<<1|n>>>31),b=g^(n<<1|l>>>31);var he=f[8]^y,le=f[9]^b,ae=f[18]^y,ue=f[19]^b,de=f[28]^y,ve=f[29]^b,me=f[38]^y,ge=f[39]^b,xe=f[48]^y,Ae=f[49]^b,Te=A,ke=x,Pe=S<<4|E>>>28,Ie=E<<4|S>>>28,qe=C<<3|T>>>29,Ve=T<<3|C>>>29,et=M<<9|k>>>23,je=k<<9|M>>>23,Ke=P<<18|N>>>14,Ge=N<<18|P>>>14,We=F<<1|q>>>31,Je=q<<1|F>>>31,ot=O<<12|z>>>20,Qe=z<<12|O>>>20,Ye=R<<10|I>>>22,at=I<<10|R>>>22,pe=B<<13|D>>>19,ye=D<<13|B>>>19,be=j<<2|Q>>>30,_e=Q<<2|j>>>30,we=Z<<30|X>>>2,Ee=X<<30|Z>>>2,Ce=L<<6|W>>>26,Oe=W<<6|L>>>26,De=J<<11|G>>>21,Be=G<<11|J>>>21,Re=H<<15|U>>>17,Le=U<<15|H>>>17,Ue=te<<29|K>>>3,Ne=K<<29|te>>>3,$e=ee<<28|ie>>>4,ze=ie<<28|ee>>>4,Xe=ne<<23|se>>>9,ft=se<<23|ne>>>9,ut=re<<25|Y>>>7,ct=Y<<25|re>>>7,sr=V<<21|oe>>>11,Gt=oe<<21|V>>>11,Tr=ce<<24|fe>>>8,br=fe<<24|ce>>>8,Mr=he<<27|le>>>5,Ir=le<<27|he>>>5,Dr=ae<<20|ue>>>12,_r=ue<<20|ae>>>12,Br=ve<<7|de>>>25,wr=de<<7|ve>>>25,Rr=me<<8|ge>>>24,Nr=ge<<8|me>>>24,Lr=xe<<14|Ae>>>18,Ur=Ae<<14|xe>>>18;f[0]=Te^~ot&De,f[1]=ke^~Qe&Be,f[10]=$e^~Dr&qe,f[11]=ze^~_r&Ve,f[20]=We^~Ce&ut,f[21]=Je^~Oe&ct,f[30]=Mr^~Pe&Ye,f[31]=Ir^~Ie&at,f[40]=we^~Xe&Br,f[41]=Ee^~ft&wr,f[2]=ot^~De&sr,f[3]=Qe^~Be&Gt,f[12]=Dr^~qe&pe,f[13]=_r^~Ve&ye,f[22]=Ce^~ut&Rr,f[23]=Oe^~ct&Nr,f[32]=Pe^~Ye&Re,f[33]=Ie^~at&Le,f[42]=Xe^~Br&et,f[43]=ft^~wr&je,f[4]=De^~sr&Lr,f[5]=Be^~Gt&Ur,f[14]=qe^~pe&Ue,f[15]=Ve^~ye&Ne,f[24]=ut^~Rr&Ke,f[25]=ct^~Nr&Ge,f[34]=Ye^~Re&Tr,f[35]=at^~Le&br,f[44]=Br^~et&be,f[45]=wr^~je&_e,f[6]=sr^~Lr&Te,f[7]=Gt^~Ur&ke,f[16]=pe^~Ue&$e,f[17]=ye^~Ne&ze,f[26]=Rr^~Ke&We,f[27]=Nr^~Ge&Je,f[36]=Re^~Tr&Mr,f[37]=Le^~br&Ir,f[46]=et^~be&we,f[47]=je^~_e&Ee,f[8]=Lr^~Te&ot,f[9]=Ur^~ke&Qe,f[18]=Ue^~$e&Dr,f[19]=Ne^~ze&_r,f[28]=Ke^~We&Ce,f[29]=Ge^~Je&Oe,f[38]=Tr^~Mr&Pe,f[39]=br^~Ir&Ie,f[48]=be^~we&Xe,f[49]=_e^~Ee&ft,f[0]^=i[2*e],f[1]^=i[2*e+1]}}},801:(r,s,i)=>{var f=i(9033).Buffer,e=i(5612);function l(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}l.prototype.initialize=function(n,t){for(var o=0;o<50;++o)this.state[o]=0;this.blockSize=n/8,this.count=0,this.squeezing=!1},l.prototype.absorb=function(n){for(var t=0;t<n.length;++t)this.state[~~(this.count/4)]^=n[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(e.p1600(this.state),this.count=0)},l.prototype.absorbLastFewBits=function(n){this.state[~~(this.count/4)]^=n<<this.count%4*8,128&n&&this.count===this.blockSize-1&&e.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,e.p1600(this.state),this.count=0,this.squeezing=!0},l.prototype.squeeze=function(n){this.squeezing||this.absorbLastFewBits(1);for(var t=f.alloc(n),o=0;o<n;++o)t[o]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(e.p1600(this.state),this.count=0);return t},l.prototype.copy=function(n){for(var t=0;t<50;++t)n.state[t]=this.state[t];n.blockSize=this.blockSize,n.count=this.count,n.squeezing=this.squeezing},r.exports=l},807:(r,s,i)=>{var f=i(1736),e=i(2353),l=i(8850).Buffer,n=new Array(16);function t(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function o(p,v){return p<<v|p>>>32-v}function d(p,v,y,b,A,x,E){return o(p+(v&y|~v&b)+A+x|0,E)+v|0}function u(p,v,y,b,A,x,E){return o(p+(v&b|y&~b)+A+x|0,E)+v|0}function c(p,v,y,b,A,x,E){return o(p+(v^y^b)+A+x|0,E)+v|0}function g(p,v,y,b,A,x,E){return o(p+(y^(v|~b))+A+x|0,E)+v|0}f(t,e),t.prototype._update=function(){for(var p=n,v=0;v<16;++v)p[v]=this._block.readInt32LE(4*v);var y=this._a,b=this._b,A=this._c,x=this._d;y=d(y,b,A,x,p[0],3614090360,7),x=d(x,y,b,A,p[1],3905402710,12),A=d(A,x,y,b,p[2],606105819,17),b=d(b,A,x,y,p[3],3250441966,22),y=d(y,b,A,x,p[4],4118548399,7),x=d(x,y,b,A,p[5],1200080426,12),A=d(A,x,y,b,p[6],2821735955,17),b=d(b,A,x,y,p[7],4249261313,22),y=d(y,b,A,x,p[8],1770035416,7),x=d(x,y,b,A,p[9],2336552879,12),A=d(A,x,y,b,p[10],4294925233,17),b=d(b,A,x,y,p[11],2304563134,22),y=d(y,b,A,x,p[12],1804603682,7),x=d(x,y,b,A,p[13],4254626195,12),A=d(A,x,y,b,p[14],2792965006,17),y=u(y,b=d(b,A,x,y,p[15],1236535329,22),A,x,p[1],4129170786,5),x=u(x,y,b,A,p[6],3225465664,9),A=u(A,x,y,b,p[11],643717713,14),b=u(b,A,x,y,p[0],3921069994,20),y=u(y,b,A,x,p[5],3593408605,5),x=u(x,y,b,A,p[10],38016083,9),A=u(A,x,y,b,p[15],3634488961,14),b=u(b,A,x,y,p[4],3889429448,20),y=u(y,b,A,x,p[9],568446438,5),x=u(x,y,b,A,p[14],3275163606,9),A=u(A,x,y,b,p[3],4107603335,14),b=u(b,A,x,y,p[8],1163531501,20),y=u(y,b,A,x,p[13],2850285829,5),x=u(x,y,b,A,p[2],4243563512,9),A=u(A,x,y,b,p[7],1735328473,14),y=c(y,b=u(b,A,x,y,p[12],2368359562,20),A,x,p[5],4294588738,4),x=c(x,y,b,A,p[8],2272392833,11),A=c(A,x,y,b,p[11],1839030562,16),b=c(b,A,x,y,p[14],4259657740,23),y=c(y,b,A,x,p[1],2763975236,4),x=c(x,y,b,A,p[4],1272893353,11),A=c(A,x,y,b,p[7],4139469664,16),b=c(b,A,x,y,p[10],3200236656,23),y=c(y,b,A,x,p[13],681279174,4),x=c(x,y,b,A,p[0],3936430074,11),A=c(A,x,y,b,p[3],3572445317,16),b=c(b,A,x,y,p[6],76029189,23),y=c(y,b,A,x,p[9],3654602809,4),x=c(x,y,b,A,p[12],3873151461,11),A=c(A,x,y,b,p[15],530742520,16),y=g(y,b=c(b,A,x,y,p[2],3299628645,23),A,x,p[0],4096336452,6),x=g(x,y,b,A,p[7],1126891415,10),A=g(A,x,y,b,p[14],2878612391,15),b=g(b,A,x,y,p[5],4237533241,21),y=g(y,b,A,x,p[12],1700485571,6),x=g(x,y,b,A,p[3],2399980690,10),A=g(A,x,y,b,p[10],4293915773,15),b=g(b,A,x,y,p[1],2240044497,21),y=g(y,b,A,x,p[8],1873313359,6),x=g(x,y,b,A,p[15],4264355552,10),A=g(A,x,y,b,p[6],2734768916,15),b=g(b,A,x,y,p[13],1309151649,21),y=g(y,b,A,x,p[4],4149444226,6),x=g(x,y,b,A,p[11],3174756917,10),A=g(A,x,y,b,p[2],718787259,15),b=g(b,A,x,y,p[9],3951481745,21),this._a=this._a+y|0,this._b=this._b+b|0,this._c=this._c+A|0,this._d=this._d+x|0},t.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 p=l.allocUnsafe(16);return p.writeInt32LE(this._a,0),p.writeInt32LE(this._b,4),p.writeInt32LE(this._c,8),p.writeInt32LE(this._d,12),p},r.exports=t},137:(r,s,i)=>{var f=i(1734),e=i(2202);function l(n){this.rand=n||new e.Rand}r.exports=l,l.create=function(n){return new l(n)},l.prototype._randbelow=function(n){var t=n.bitLength(),o=Math.ceil(t/8);do var d=new f(this.rand.generate(o));while(d.cmp(n)>=0);return d},l.prototype._randrange=function(n,t){var o=t.sub(n);return n.add(this._randbelow(o))},l.prototype.test=function(n,t,o){var d=n.bitLength(),u=f.mont(n),c=new f(1).toRed(u);t||(t=Math.max(1,d/48|0));for(var g=n.subn(1),p=0;!g.testn(p);p++);for(var v=n.shrn(p),y=g.toRed(u);t>0;t--){var b=this._randrange(new f(2),g);o&&o(b);var A=b.toRed(u).redPow(v);if(A.cmp(c)!==0&&A.cmp(y)!==0){for(var x=1;x<p;x++){if((A=A.redSqr()).cmp(c)===0)return!1;if(A.cmp(y)===0)break}if(x===p)return!1}}return!0},l.prototype.getDivisor=function(n,t){var o=n.bitLength(),d=f.mont(n),u=new f(1).toRed(d);t||(t=Math.max(1,o/48|0));for(var c=n.subn(1),g=0;!c.testn(g);g++);for(var p=n.shrn(g),v=c.toRed(d);t>0;t--){var y=this._randrange(new f(2),c),b=n.gcd(y);if(b.cmpn(1)!==0)return b;var A=y.toRed(d).redPow(p);if(A.cmp(u)!==0&&A.cmp(v)!==0){for(var x=1;x<g;x++){if((A=A.redSqr()).cmp(u)===0)return A.fromRed().subn(1).gcd(n);if(A.cmp(v)===0)break}if(x===g)return(A=A.redSqr()).fromRed().subn(1).gcd(n)}}return!1}},4504:r=>{function s(i,f){if(!i)throw new Error(f||"Assertion failed")}r.exports=s,s.equal=function(i,f,e){if(i!=f)throw new Error(e||"Assertion failed: "+i+" != "+f)}},6580:(r,s)=>{var i=s;function f(l){return l.length===1?"0"+l:l}function e(l){for(var n="",t=0;t<l.length;t++)n+=f(l[t].toString(16));return n}i.toArray=function(l,n){if(Array.isArray(l))return l.slice();if(!l)return[];var t=[];if(typeof l!="string"){for(var o=0;o<l.length;o++)t[o]=0|l[o];return t}if(n==="hex")for((l=l.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(l="0"+l),o=0;o<l.length;o+=2)t.push(parseInt(l[o]+l[o+1],16));else for(o=0;o<l.length;o++){var d=l.charCodeAt(o),u=d>>8,c=255&d;u?t.push(u,c):t.push(c)}return t},i.zero2=f,i.toHex=e,i.encode=function(l,n){return n==="hex"?e(l):l}},6565:(r,s,i)=>{var f=i(8847),e=f(i(9721)),l=f(i(8985)),n=function(){function t(o,d,u,c){(0,e.default)(this,t),this.name=o,this.code=d,this.alphabet=c,u&&c&&(this.engine=u(c))}return(0,l.default)(t,[{key:"encode",value:function(o){return this.engine.encode(o)}},{key:"decode",value:function(o){return this.engine.decode(o)}},{key:"isImplemented",value:function(){return this.engine}}]),t}();r.exports=n},2642:(r,s,i)=>{function f(l,n){(n==null||n>l.length)&&(n=l.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=l[t];return o}var e=i(9033).Buffer;r.exports=function(l){return{encode:function(n){return typeof n=="string"?e.from(n).toString("hex"):n.toString("hex")},decode:function(n){var t,o=function(u,c){var g=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!g){if(Array.isArray(u)||(g=function(x,E){if(x){if(typeof x=="string")return f(x,E);var S=Object.prototype.toString.call(x).slice(8,-1);return S==="Object"&&x.constructor&&(S=x.constructor.name),S==="Map"||S==="Set"?Array.from(x):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?f(x,E):void 0}}(u))||c&&u&&typeof u.length=="number"){g&&(u=g);var p=0,v=function(){};return{s:v,n:function(){return p>=u.length?{done:!0}:{done:!1,value:u[p++]}},e:function(x){throw x},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,b=!0,A=!1;return{s:function(){g=g.call(u)},n:function(){var x=g.next();return b=x.done,x},e:function(x){A=!0,y=x},f:function(){try{b||g.return==null||g.return()}finally{if(A)throw y}}}}(n);try{for(o.s();!(t=o.n()).done;){var d=t.value;if(l.indexOf(d)<0)throw new Error("invalid base16 character")}}catch(u){o.e(u)}finally{o.f()}return e.from(n,"hex")}}}},6494:r=>{function s(i,f){(f==null||f>i.length)&&(f=i.length);for(var e=0,l=new Array(f);e<f;e++)l[e]=i[e];return l}r.exports=function(i){return{encode:function(f){return function(e,l){var n=e.byteLength,t=new Uint8Array(e),o=l.indexOf("=")===l.length-1;o&&(l=l.substring(0,l.length-1));for(var d=0,u=0,c="",g=0;g<n;g++)for(u=u<<8|t[g],d+=8;d>=5;)c+=l[u>>>d-5&31],d-=5;if(d>0&&(c+=l[u<<5-d&31]),o)for(;c.length%8!=0;)c+="=";return c}(typeof f=="string"?Uint8Array.from(f):f,i)},decode:function(f){var e,l=function(t,o){var d=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!d){if(Array.isArray(t)||(d=function(y,b){if(y){if(typeof y=="string")return s(y,b);var A=Object.prototype.toString.call(y).slice(8,-1);return A==="Object"&&y.constructor&&(A=y.constructor.name),A==="Map"||A==="Set"?Array.from(y):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?s(y,b):void 0}}(t))||o&&t&&typeof t.length=="number"){d&&(t=d);var u=0,c=function(){};return{s:c,n:function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}},e:function(y){throw y},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,p=!0,v=!1;return{s:function(){d=d.call(t)},n:function(){var y=d.next();return p=y.done,y},e:function(y){v=!0,g=y},f:function(){try{p||d.return==null||d.return()}finally{if(v)throw g}}}}(f);try{for(l.s();!(e=l.n()).done;){var n=e.value;if(i.indexOf(n)<0)throw new Error("invalid base32 character")}}catch(t){l.e(t)}finally{l.f()}return function(t,o){for(var d=(t=t.replace(new RegExp("=","g"),"")).length,u=0,c=0,g=0,p=new Uint8Array(5*d/8|0),v=0;v<d;v++)c=c<<5|o.indexOf(t[v]),(u+=5)>=8&&(p[g++]=c>>>u-8&255,u-=8);return p.buffer}(f,i)}}}},6627:(r,s,i)=>{function f(l,n){(n==null||n>l.length)&&(n=l.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=l[t];return o}var e=i(9033).Buffer;r.exports=function(l){var n=l.indexOf("=")>-1,t=l.indexOf("-")>-1&&l.indexOf("_")>-1;return{encode:function(o){var d="";d=typeof o=="string"?e.from(o).toString("base64"):o.toString("base64"),t&&(d=d.replace(/\+/g,"-").replace(/\//g,"_"));var u=d.indexOf("=");return u>0&&!n&&(d=d.substring(0,u)),d},decode:function(o){var d,u=function(g,p){var v=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!v){if(Array.isArray(g)||(v=function(S,C){if(S){if(typeof S=="string")return f(S,C);var T=Object.prototype.toString.call(S).slice(8,-1);return T==="Object"&&S.constructor&&(T=S.constructor.name),T==="Map"||T==="Set"?Array.from(S):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?f(S,C):void 0}}(g))||p&&g&&typeof g.length=="number"){v&&(g=v);var y=0,b=function(){};return{s:b,n:function(){return y>=g.length?{done:!0}:{done:!1,value:g[y++]}},e:function(S){throw S},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A,x=!0,E=!1;return{s:function(){v=v.call(g)},n:function(){var S=v.next();return x=S.done,S},e:function(S){E=!0,A=S},f:function(){try{x||v.return==null||v.return()}finally{if(E)throw A}}}}(o);try{for(u.s();!(d=u.n()).done;){var c=d.value;if(l.indexOf(c)<0)throw new Error("invalid base64 character")}}catch(g){u.e(g)}finally{u.f()}return e.from(o,"base64")}}}},7905:(r,s,i)=>{var f=i(6565),e=i(7548),l=i(2642),n=i(6494),t=i(6627),o=[["base1","1","","1"],["base2","0",e,"01"],["base8","7",e,"01234567"],["base10","9",e,"0123456789"],["base16","f",l,"0123456789abcdef"],["base32","b",n,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",n,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",n,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",n,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",n,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",e,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",e,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],d=o.reduce(function(c,g){return c[g[0]]=new f(g[0],g[1],g[2],g[3]),c},{}),u=o.reduce(function(c,g){return c[g[1]]=d[g[0]],c},{});r.exports={names:d,codes:u}},6086:(r,s,i)=>{var f=i(9033).Buffer,e=i(7905);(s=r.exports=n).encode=function(o,d){var u=t(o);return n(u.name,f.from(u.encode(d)))},s.decode=function(o){f.isBuffer(o)&&(o=o.toString());var d=o.substring(0,1);typeof(o=o.substring(1,o.length))=="string"&&(o=f.from(o));var u=t(d);return f.from(u.decode(o.toString()))},s.isEncoded=function(o){if(f.isBuffer(o)&&(o=o.toString()),Object.prototype.toString.call(o)!=="[object String]")return!1;var d=o.substring(0,1);try{return t(d).name}catch{return!1}},s.names=Object.freeze(Object.keys(e.names)),s.codes=Object.freeze(Object.keys(e.codes));var l=new Error("Unsupported encoding");function n(o,d){if(!d)throw new Error("requires an encoded buffer");var u=t(o),c=f.from(u.code);return function(g,p){t(g).decode(p.toString())}(u.name,d),f.concat([c,d])}function t(o){var d;if(e.names[o])d=e.names[o];else{if(!e.codes[o])throw l;d=e.codes[o]}if(!d.isImplemented())throw new Error("Base "+o+" is not implemented yet");return d}},4093:(r,s,i)=>{for(var f=i(8847)(i(4519)),e=i(4070),l={},n=0,t=Object.entries(e);n<t.length;n++){var o=(0,f.default)(t[n],2),d=o[0],u=o[1];l[d.toUpperCase().replace(/-/g,"_")]=u}r.exports=Object.freeze(l)},9206:(r,s,i)=>{var f=i(9033).Buffer,e=i(6657),l=i(7054),n=i(6002),t=i(5576);(s=r.exports).addPrefix=function(d,u){var c;if(f.isBuffer(d))c=t.varintBufferEncode(d);else{if(!n[d])throw new Error("multicodec not recognized");c=n[d]}return f.concat([c,u])},s.rmPrefix=function(d){return e.decode(d),d.slice(e.decode.bytes)},s.getCodec=function(d){var u=e.decode(d),c=l.get(u);if(c===void 0)throw new Error("Code ".concat(u," not found"));return c},s.getName=function(d){return l.get(d)},s.getNumber=function(d){var u=n[d];if(u===void 0)throw new Error("Codec `"+d+"` not found");return t.varintBufferDecode(u)[0]},s.getCode=function(d){return e.decode(d)},s.getCodeVarint=function(d){var u=n[d];if(u===void 0)throw new Error("Codec `"+d+"` not found");return u},s.getVarint=function(d){return e.encode(d)};var o=i(4093);Object.assign(s,o),s.print=i(1032)},7054:(r,s,i)=>{var f=i(4070),e=new Map;for(var l in f){var n=f[l];e.set(n,l)}r.exports=Object.freeze(e)},1032:(r,s,i)=>{for(var f=i(8847)(i(4519)),e=i(4070),l={},n=0,t=Object.entries(e);n<t.length;n++){var o=(0,f.default)(t[n],2),d=o[0],u=o[1];l[u]===void 0&&(l[u]=d)}r.exports=Object.freeze(l)},5576:(r,s,i)=>{var f=i(9033).Buffer,e=i(6657);function l(t){return parseInt(t.toString("hex"),16)}function n(t){var o=t.toString(16);return o.length%2==1&&(o="0"+o),f.from(o,"hex")}r.exports={numberToBuffer:n,bufferToNumber:l,varintBufferEncode:function(t){return f.from(e.encode(l(t)))},varintBufferDecode:function(t){return n(e.decode(t))},varintEncode:function(t){return f.from(e.encode(t))}}},6002:(r,s,i)=>{var f=i(4070),e=i(5576).varintEncode,l={};for(var n in f){var t=f[n];l[n]=e(t)}r.exports=Object.freeze(l)},1786:(r,s,i)=>{var f=i(8847),e=f(i(9721)),l=f(i(8985)),n=function(){function t(o,d,u,c){(0,e.default)(this,t),this.name=o,this.code=d,this.alphabet=c,u&&c&&(this.engine=u(c))}return(0,l.default)(t,[{key:"encode",value:function(o){return this.engine.encode(o)}},{key:"decode",value:function(o){return this.engine.decode(o)}},{key:"isImplemented",value:function(){return this.engine}}]),t}();r.exports=n},7739:(r,s,i)=>{function f(l,n){(n==null||n>l.length)&&(n=l.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=l[t];return o}var e=i(9033).Buffer;r.exports=function(l){return{encode:function(n){return typeof n=="string"?e.from(n).toString("hex"):n.toString("hex")},decode:function(n){var t,o=function(u,c){var g=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!g){if(Array.isArray(u)||(g=function(x,E){if(x){if(typeof x=="string")return f(x,E);var S=Object.prototype.toString.call(x).slice(8,-1);return S==="Object"&&x.constructor&&(S=x.constructor.name),S==="Map"||S==="Set"?Array.from(x):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?f(x,E):void 0}}(u))||c&&u&&typeof u.length=="number"){g&&(u=g);var p=0,v=function(){};return{s:v,n:function(){return p>=u.length?{done:!0}:{done:!1,value:u[p++]}},e:function(x){throw x},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y,b=!0,A=!1;return{s:function(){g=g.call(u)},n:function(){var x=g.next();return b=x.done,x},e:function(x){A=!0,y=x},f:function(){try{b||g.return==null||g.return()}finally{if(A)throw y}}}}(n);try{for(o.s();!(t=o.n()).done;){var d=t.value;if(l.indexOf(d)<0)throw new Error("invalid base16 character")}}catch(u){o.e(u)}finally{o.f()}return e.from(n,"hex")}}}},976:r=>{function s(i,f){(f==null||f>i.length)&&(f=i.length);for(var e=0,l=new Array(f);e<f;e++)l[e]=i[e];return l}r.exports=function(i){return{encode:function(f){return function(e,l){var n=e.byteLength,t=new Uint8Array(e),o=l.indexOf("=")===l.length-1;o&&(l=l.substring(0,l.length-1));for(var d=0,u=0,c="",g=0;g<n;g++)for(u=u<<8|t[g],d+=8;d>=5;)c+=l[u>>>d-5&31],d-=5;if(d>0&&(c+=l[u<<5-d&31]),o)for(;c.length%8!=0;)c+="=";return c}(typeof f=="string"?Uint8Array.from(f):f,i)},decode:function(f){var e,l=function(t,o){var d=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!d){if(Array.isArray(t)||(d=function(y,b){if(y){if(typeof y=="string")return s(y,b);var A=Object.prototype.toString.call(y).slice(8,-1);return A==="Object"&&y.constructor&&(A=y.constructor.name),A==="Map"||A==="Set"?Array.from(y):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?s(y,b):void 0}}(t))||o&&t&&typeof t.length=="number"){d&&(t=d);var u=0,c=function(){};return{s:c,n:function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}},e:function(y){throw y},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,p=!0,v=!1;return{s:function(){d=d.call(t)},n:function(){var y=d.next();return p=y.done,y},e:function(y){v=!0,g=y},f:function(){try{p||d.return==null||d.return()}finally{if(v)throw g}}}}(f);try{for(l.s();!(e=l.n()).done;){var n=e.value;if(i.indexOf(n)<0)throw new Error("invalid base32 character")}}catch(t){l.e(t)}finally{l.f()}return function(t,o){for(var d=(t=t.replace(new RegExp("=","g"),"")).length,u=0,c=0,g=0,p=new Uint8Array(5*d/8|0),v=0;v<d;v++)c=c<<5|o.indexOf(t[v]),(u+=5)>=8&&(p[g++]=c>>>u-8&255,u-=8);return p.buffer}(f,i)}}}},8504:(r,s,i)=>{function f(l,n){(n==null||n>l.length)&&(n=l.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=l[t];return o}var e=i(9033).Buffer;r.exports=function(l){var n=l.indexOf("=")>-1,t=l.indexOf("-")>-1&&l.indexOf("_")>-1;return{encode:function(o){var d="";d=typeof o=="string"?e.from(o).toString("base64"):o.toString("base64"),t&&(d=d.replace(/\+/g,"-").replace(/\//g,"_"));var u=d.indexOf("=");return u>0&&!n&&(d=d.substring(0,u)),d},decode:function(o){var d,u=function(g,p){var v=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!v){if(Array.isArray(g)||(v=function(S,C){if(S){if(typeof S=="string")return f(S,C);var T=Object.prototype.toString.call(S).slice(8,-1);return T==="Object"&&S.constructor&&(T=S.constructor.name),T==="Map"||T==="Set"?Array.from(S):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?f(S,C):void 0}}(g))||p&&g&&typeof g.length=="number"){v&&(g=v);var y=0,b=function(){};return{s:b,n:function(){return y>=g.length?{done:!0}:{done:!1,value:g[y++]}},e:function(S){throw S},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A,x=!0,E=!1;return{s:function(){v=v.call(g)},n:function(){var S=v.next();return x=S.done,S},e:function(S){E=!0,A=S},f:function(){try{x||v.return==null||v.return()}finally{if(E)throw A}}}}(o);try{for(u.s();!(d=u.n()).done;){var c=d.value;if(l.indexOf(c)<0)throw new Error("invalid base64 character")}}catch(g){u.e(g)}finally{u.f()}return e.from(o,"base64")}}}},2263:(r,s,i)=>{var f=i(1786),e=i(7548),l=i(7739),n=i(976),t=i(8504),o=[["base1","1","","1"],["base2","0",e,"01"],["base8","7",e,"01234567"],["base10","9",e,"0123456789"],["base16","f",l,"0123456789abcdef"],["base32","b",n,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",n,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",n,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",n,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",n,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",e,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",e,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",t,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],d=o.reduce(function(c,g){return c[g[0]]=new f(g[0],g[1],g[2],g[3]),c},{}),u=o.reduce(function(c,g){return c[g[1]]=d[g[0]],c},{});r.exports={names:d,codes:u}},2592:(r,s,i)=>{var f=i(9033).Buffer,e=i(2263);function l(t,o){if(!o)throw new Error("requires an encoded buffer");var d=n(t),u=f.from(d.code);return function(c,g){n(c).decode(g.toString())}(d.name,o),f.concat([u,o])}function n(t){var o;if(e.names[t])o=e.names[t];else{if(!e.codes[t])throw new Error("Unsupported encoding");o=e.codes[t]}if(!o.isImplemented())throw new Error("Base "+t+" is not implemented yet");return o}(s=r.exports=l).encode=function(t,o){var d=n(t);return l(d.name,f.from(d.encode(o)))},s.decode=function(t){f.isBuffer(t)&&(t=t.toString());var o=t.substring(0,1);typeof(t=t.substring(1,t.length))=="string"&&(t=f.from(t));var d=n(o);return f.from(d.decode(t.toString()))},s.isEncoded=function(t){if(f.isBuffer(t)&&(t=t.toString()),Object.prototype.toString.call(t)!=="[object String]")return!1;var o=t.substring(0,1);try{return n(o).name}catch{return!1}},s.names=Object.freeze(Object.keys(e.names)),s.codes=Object.freeze(Object.keys(e.codes))},1269:(r,s)=>{s.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,md4:212,md5:213,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),s.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",212:"md4",213:"md5",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),s.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},7748:(r,s,i)=>{var f=i(9033).Buffer,e=i(2592),l=i(6657),n=i(1269);function t(o){s.decode(o)}s.names=n.names,s.codes=n.codes,s.defaultLengths=n.defaultLengths,s.toHexString=function(o){if(!f.isBuffer(o))throw new Error("must be passed a buffer");return o.toString("hex")},s.fromHexString=function(o){return f.from(o,"hex")},s.toB58String=function(o){if(!f.isBuffer(o))throw new Error("must be passed a buffer");return e.encode("base58btc",o).toString().slice(1)},s.fromB58String=function(o){var d=o;return f.isBuffer(o)&&(d=o.toString()),e.decode("z"+d)},s.decode=function(o){if(!f.isBuffer(o))throw new Error("multihash must be a Buffer");if(o.length<2)throw new Error("multihash too short. must be > 2 bytes.");var d=l.decode(o);if(!s.isValidCode(d))throw new Error("multihash unknown function code: 0x".concat(d.toString(16)));o=o.slice(l.decode.bytes);var u=l.decode(o);if(u<0)throw new Error("multihash invalid length: ".concat(u));if((o=o.slice(l.decode.bytes)).length!==u)throw new Error("multihash length inconsistent: 0x".concat(o.toString("hex")));return{code:d,name:n.codes[d],length:u,digest:o}},s.encode=function(o,d,u){if(!o||d===void 0)throw new Error("multihash encode requires at least two args: digest, code");var c=s.coerceCode(d);if(!f.isBuffer(o))throw new Error("digest should be a Buffer");if(u==null&&(u=o.length),u&&o.length!==u)throw new Error("digest length should be equal to specified length.");return f.concat([f.from(l.encode(c)),f.from(l.encode(u)),o])},s.coerceCode=function(o){var d=o;if(typeof o=="string"){if(n.names[o]===void 0)throw new Error("Unrecognized hash function named: ".concat(o));d=n.names[o]}if(typeof d!="number")throw new Error("Hash function code should be a number. Got: ".concat(d));if(n.codes[d]===void 0&&!s.isAppCode(d))throw new Error("Unrecognized function code: ".concat(d));return d},s.isAppCode=function(o){return o>0&&o<16},s.isValidCode=function(o){return!!s.isAppCode(o)||!!n.codes[o]},s.validate=t,s.prefix=function(o){return t(o),o.slice(0,2)}},7277:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1734),l=i(6931);r.exports=function(n){if(typeof n=="string"||typeof n=="number"){var t=new e(1),o=String(n).toLowerCase().trim(),d=o.substr(0,2)==="0x"||o.substr(0,3)==="-0x",u=l(o);if(u.substr(0,1)==="-"&&(u=l(u.slice(1)),t=new e(-1,10)),!(u=u===""?"0":u).match(/^-?[0-9]+$/)&&u.match(/^[0-9A-Fa-f]+$/)||u.match(/^[a-fA-F]+$/)||d===!0&&u.match(/^[0-9A-Fa-f]+$/))return new e(u,16).mul(t);if((u.match(/^-?[0-9]+$/)||u==="")&&d===!1)return new e(u,10).mul(t)}else if((0,f.default)(n)==="object"&&n.toString&&!n.pop&&!n.push&&n.toString(10).match(/^-?[0-9]+$/)&&(n.mul||n.dividedToIntegerBy))return new e(n.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(n)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},3103:r=>{var s=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;r.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var l={},n=0;n<10;n++)l["_"+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(l).map(function(o){return l[o]}).join("")!=="0123456789")return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(o){t[o]=o}),Object.keys(Object.assign({},t)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}()?Object.assign:function(e,l){for(var n,t,o=function(g){if(g==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(g)}(e),d=1;d<arguments.length;d++){for(var u in n=Object(arguments[d]))i.call(n,u)&&(o[u]=n[u]);if(s){t=s(n);for(var c=0;c<t.length;c++)f.call(n,t[c])&&(o[t[c]]=n[t[c]])}}return o}},3150:(r,s,i)=>{var f,e,l;r=i.nmd(r);var n,t=i(8847)(i(3355));n=function(){return function(o){var d={};function u(c){if(d[c])return d[c].exports;var g=d[c]={i:c,l:!1,exports:{}};return o[c].call(g.exports,g,g.exports,u),g.l=!0,g.exports}return u.m=o,u.c=d,u.d=function(c,g,p){u.o(c,g)||Object.defineProperty(c,g,{configurable:!1,enumerable:!0,get:p})},u.n=function(c){var g=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(g,"a",g),g},u.o=function(c,g){return Object.prototype.hasOwnProperty.call(c,g)},u.p="",u(u.s=7)}([function(o,d,u){u.d(d,"j",function(){return g}),u.d(d,"d",function(){return p}),u.d(d,"c",function(){return v}),u.d(d,"h",function(){return y}),u.d(d,"b",function(){return b}),u.d(d,"k",function(){return A}),u.d(d,"e",function(){return x}),u.d(d,"g",function(){return E}),u.d(d,"i",function(){return S}),u.d(d,"a",function(){return C}),u.d(d,"f",function(){return T});var c=u(1),g=A(function(k,M){var P=M.length;return A(function(N){for(var F=0;F<N.length;F++)M[P+F]=N[F];return M.length=P+N.length,k.apply(this,M)})});function p(k,M){return function(){return k.call(this,M.apply(this,arguments))}}function v(k){return function(M){return M[k]}}A(function(k){var M=Object(c.c)(k);function P(N,F){return[b(N,F)]}return A(function(N){return Object(c.f)(P,N,M)[0]})});var y=A(function(k){return A(function(M){for(var P,N=0;N<v("length")(k);N++)if(P=b(M,k[N]))return P})});function b(k,M){return M.apply(void 0,k)}function A(k){var M=k.length-1,P=Array.prototype.slice;if(M===0)return function(){return k.call(this,P.call(arguments))};if(M===1)return function(){return k.call(this,arguments[0],P.call(arguments,1))};var N=Array(k.length);return function(){for(var F=0;F<M;F++)N[F]=arguments[F];return N[M]=P.call(arguments,M),k.apply(this,N)}}function x(k){return function(M,P){return k(P,M)}}function E(k,M){return function(P){return k(P)&&M(P)}}function S(){}function C(){return!0}function T(k){return function(){return k}}},function(o,d,u){u.d(d,"d",function(){return g}),u.d(d,"g",function(){return v}),u.d(d,"l",function(){return y}),u.d(d,"c",function(){return b}),u.d(d,"h",function(){return A}),u.d(d,"i",function(){return x}),u.d(d,"j",function(){return E}),u.d(d,"f",function(){return S}),u.d(d,"m",function(){return C}),u.d(d,"a",function(){return T}),u.d(d,"b",function(){return k}),u.d(d,"k",function(){return M}),u.d(d,"e",function(){return P});var c=u(0);function g(N,F){return[N,F]}var p=null,v=Object(c.c)(0),y=Object(c.c)(1);function b(N){return M(N.reduce(Object(c.e)(g),p))}var A=Object(c.k)(b);function x(N){return S(function(F,q){return F.unshift(q),F},[],N)}function E(N,F){return F?g(N(v(F)),E(N,y(F))):p}function S(N,F,q){return q?N(S(N,F,y(q)),v(q)):F}function C(N,F,q){return function z(O,R){return O?F(v(O))?(R(v(O)),y(O)):g(v(O),z(y(O),R)):p}(N,q||c.i)}function T(N,F){return!F||N(v(F))&&T(N,y(F))}function k(N,F){N&&(v(N).apply(null,F),k(y(N),F))}function M(N){return function F(q,z){return q?F(y(q),g(v(q),z)):z}(N,p)}function P(N,F){return F&&(N(v(F))?v(F):P(N,y(F)))}},function(o,d,u){u.d(d,"c",function(){return p}),u.d(d,"e",function(){return v}),u.d(d,"d",function(){return y}),u.d(d,"a",function(){return b}),u.d(d,"b",function(){return A});var c=u(1),g=u(0);function p(x,E){return E&&E.constructor===x}var v=Object(g.c)("length"),y=Object(g.j)(p,String);function b(x){return x!==void 0}function A(x,E){return E instanceof Object&&Object(c.a)(function(S){return S in E},x)}},function(o,d,u){u.d(d,"f",function(){return g}),u.d(d,"d",function(){return p}),u.d(d,"g",function(){return v}),u.d(d,"e",function(){return y}),u.d(d,"b",function(){return b}),u.d(d,"h",function(){return A}),u.d(d,"i",function(){return x}),u.d(d,"c",function(){return E}),u.d(d,"m",function(){return S}),u.d(d,"n",function(){return C}),u.d(d,"a",function(){return T}),u.d(d,"j",function(){return k}),u.d(d,"l",function(){return M}),u.d(d,"k",function(){return P}),u.d(d,"o",function(){return N});var c=1,g=c++,p=c++,v=c++,y=c++,b="fail",A=c++,x=c++,E="start",S="data",C="end",T=c++,k=c++,M=c++,P=c++;function N(F,q,z){try{var O=JSON.parse(q)}catch{}return{statusCode:F,body:q,jsonBody:O,thrown:z}}},function(o,d,u){u.d(d,"b",function(){return g}),u.d(d,"a",function(){return p}),u.d(d,"c",function(){return v});var c=u(0);function g(y,b){return{key:y,node:b}}var p=Object(c.c)("key"),v=Object(c.c)("node")},function(o,d,u){u.d(d,"a",function(){return b});var c=u(1),g=u(0),p=u(2),v=u(8),y=u(9);function b(A){var x=Object(c.h)("resume","pause","pipe"),E=Object(g.j)(p.b,x);return A?E(A)||Object(p.d)(A)?Object(v.a)(y.a,A):Object(v.a)(y.a,A.url,A.method,A.body,A.headers,A.withCredentials,A.cached):Object(y.a)()}b.drop=function(){return b.drop}},function(o,d,u){u.d(d,"b",function(){return b}),u.d(d,"a",function(){return y});var c=u(3),g=u(4),p=u(2),v=u(1),y={};function b(A){var x=A(c.f).emit,E=A(c.d).emit,S=A(c.i).emit,C=A(c.h).emit;function T(P,N,F){Object(g.c)(Object(v.g)(P))[N]=F}function k(P,N,F){P&&T(P,N,F);var q=Object(v.d)(Object(g.b)(N,F),P);return x(q),q}var M={};return M[c.l]=function(P,N){if(!P)return S(N),k(P,y,N);var F=function(O,R){var I=Object(g.c)(Object(v.g)(O));return Object(p.c)(Array,I)?k(O,Object(p.e)(I),R):O}(P,N),q=Object(v.l)(F),z=Object(g.a)(Object(v.g)(F));return T(q,z,N),Object(v.d)(Object(g.b)(z,N),q)},M[c.k]=function(P){return E(P),Object(v.l)(P)||C(Object(g.c)(Object(v.g)(P)))},M[c.j]=k,M}},function(o,d,u){Object.defineProperty(d,"__esModule",{value:!0});var c=u(5);d.default=c.a},function(o,d,u){u.d(d,"a",function(){return g});var c=u(2);function g(p,v,y,b,A,x,E){return A=A?JSON.parse(JSON.stringify(A)):{},b?(Object(c.d)(b)||(b=JSON.stringify(b),A["Content-Type"]=A["Content-Type"]||"application/json"),A["Content-Length"]=A["Content-Length"]||b.length):b=null,p(y||"GET",function(S,C){return C===!1&&(S.indexOf("?")===-1?S+="?":S+="&",S+="_="+new Date().getTime()),S}(v,E),b,A,x||!1)}},function(o,d,u){u.d(d,"a",function(){return E});var c=u(10),g=u(12),p=u(6),v=u(13),y=u(14),b=u(16),A=u(17),x=u(18);function E(S,C,T,k,M){var P=Object(c.a)();return C&&Object(x.b)(P,Object(x.a)(),S,C,T,k,M),Object(A.a)(P),Object(g.a)(P,Object(p.b)(P)),Object(v.a)(P,y.a),Object(b.a)(P,C)}},function(o,d,u){u.d(d,"a",function(){return p});var c=u(11),g=u(0);function p(){var v={},y=A("newListener"),b=A("removeListener");function A(E){return v[E]=Object(c.a)(E,y,b),v[E]}function x(E){return v[E]||A(E)}return["emit","on","un"].forEach(function(E){x[E]=Object(g.k)(function(S,C){Object(g.b)(C,x(S)[E])})}),x}},function(o,d,u){u.d(d,"a",function(){return v});var c=u(1),g=u(2),p=u(0);function v(y,b,A){var x,E;function S(C){return function(T){return T.id===C}}return{on:function(C,T){var k={listener:C,id:T||C};return b&&b.emit(y,C,k.id),x=Object(c.d)(k,x),E=Object(c.d)(C,E),this},emit:function(){Object(c.b)(E,arguments)},un:function(C){var T;x=Object(c.m)(x,S(C),function(k){T=k}),T&&(E=Object(c.m)(E,function(k){return k===T.listener}),A&&A.emit(y,T.listener,T.id))},listeners:function(){return E},hasListener:function(C){var T=C?S(C):p.a;return Object(g.a)(Object(c.e)(T,x))}}}},function(o,d,u){u.d(d,"a",function(){return v});var c=u(4),g=u(3),p=u(1);function v(y,b){var A,x={};function E(C){return function(T){A=C(A,T)}}for(var S in b)y(S).on(E(b[S]),x);y(g.g).on(function(C){var T=Object(p.g)(A),k=Object(c.a)(T),M=Object(p.l)(A);M&&(Object(c.c)(Object(p.g)(M))[k]=C)}),y(g.e).on(function(){var C=Object(p.g)(A),T=Object(c.a)(C),k=Object(p.l)(A);k&&delete Object(c.c)(Object(p.g)(k))[T]}),y(g.a).on(function(){for(var C in b)y(C).un(x)})}},function(o,d,u){u.d(d,"a",function(){return v});var c=u(3),g=u(1),p=u(4);function v(y,b){var A={node:y(c.d),path:y(c.f)};y("newListener").on(function(x){var E=/(node|path):(.*)/.exec(x);if(E){var S=A[E[1]];S.hasListener(x)||function(C,T,k){var M=y(C).emit;T.on(function(P){var N=k(P);N!==!1&&function(F,q,z){var O=Object(g.k)(z);F(q,Object(g.i)(Object(g.l)(Object(g.j)(p.a,O))),Object(g.i)(Object(g.j)(p.c,O)))}(M,Object(p.c)(N),P)},C),y("removeListener").on(function(P){P===C&&(y(P).listeners()||T.un(C))})}(x,S,b(E[2]))}})}},function(o,d,u){u.d(d,"a",function(){return A});var c=u(0),g=u(1),p=u(4),v=u(2),y=u(6),b=u(15),A=Object(b.a)(function(x,E,S,C,T){var k=1,M=Object(c.d)(p.a,g.g),P=Object(c.d)(p.c,g.g);function N(B,j){return j[k]?Object(c.g)(B,g.g):B}function F(B){return B===c.a?c.a:Object(c.g)(function(j){return M(j)!==y.a},Object(c.d)(B,g.l))}function q(){return function(B){return M(B)===y.a}}function z(B,j,Q,X,Z){var L=B(Q);if(L){var W=function(G,J,H){return Object(g.f)(function(U,K){return K(U,H)},J,G)}(j,X,L);return Z(Q.substr(Object(v.e)(L[0])),W)}}function O(B,j){return Object(c.j)(z,B,j)}var R=Object(c.h)(O(x,Object(g.h)(N,function(B,j){var Q=j[3];if(!Q)return B;var X=Object(c.j)(v.b,Object(g.c)(Q.split(/\W+/))),Z=Object(c.d)(X,P);return Object(c.g)(Z,B)},function(B,j){var Q=j[2],X=Q&&Q!=="*"?function(Z){return String(M(Z))===Q}:c.a;return Object(c.g)(X,B)},F)),O(E,Object(g.h)(function(B){if(B===c.a)return c.a;var j=q(),Q=B,X=F(function(L){return Z(L)}),Z=Object(c.h)(j,Q,X);return Z})),O(S,Object(g.h)()),O(C,Object(g.h)(N,q)),O(T,Object(g.h)(function(B){return function(j){var Q=B(j);return Q===!0?Object(g.g)(j):Q}})),function(B){throw Error('"'+B+'" could not be tokenised')});function I(B,j){return j}function D(B,j){return R(B,j,B?D:I)}return function(B){try{return D(B,c.a)}catch(j){throw Error('Could not compile "'+B+'" because '+j.message)}}})},function(o,d,u){u.d(d,"a",function(){return k});var c,g,p,v,y,b,A,x,E,S,C,T=u(0),k=(c=Object(T.k)(function(M){return M.unshift(/^/),(P=RegExp(M.map(Object(T.c)("source")).join(""))).exec.bind(P);var P}),v=c(g=/(\$?)/,/([\w-_]+|\*)/,p=/(?:{([\w ]*?)})?/),y=c(g,/\["([^"]+)"\]/,p),b=c(g,/\[(\d+|\*)\]/,p),A=c(g,/()/,/{([\w ]*?)}/),x=c(/\.\./),E=c(/\./),S=c(g,/!/),C=c(/$/),function(M){return M(Object(T.h)(v,y,b,A),x,E,S,C)})},function(o,d,u){u.d(d,"a",function(){return y});var c=u(3),g=u(0),p=u(2),v=u(5);function y(b,A){var x,E=/^(node|path):./,S=b(c.h),C=b(c.e).emit,T=b(c.g).emit,k=Object(g.k)(function(z,O){if(x[z])Object(g.b)(O,x[z]);else{var R=b(z),I=O[0];E.test(z)?M(R,N(I)):R.on(I)}return x});function M(z,O,R){R=R||O;var I=P(O);return z.on(function(){var D=!1;x.forget=function(){D=!0},Object(g.b)(arguments,I),delete x.forget,D&&z.un(R)},R),x}function P(z){return function(){try{return z.apply(x,arguments)}catch(O){setTimeout(function(){throw new Error(O.message)})}}}function N(z){return function(){var O=z.apply(this,arguments);Object(p.a)(O)&&(O===v.a.drop?C():T(O))}}function F(z,O,R){var I;I=z==="node"?N(R):R,M(function(D,B){return b(D+":"+B)}(z,O),I,R)}function q(z,O,R){return Object(p.d)(O)?F(z,O,R):function(I,D){for(var B in D)F(I,B,D[B])}(z,O),x}return b(c.i).on(function(z){x.root=Object(g.f)(z)}),b(c.c).on(function(z,O){x.header=function(R){return R?O[R]:O}}),x={on:k,addListener:k,removeListener:function(z,O,R){if(z==="done")S.un(O);else if(z==="node"||z==="path")b.un(z+":"+O,R);else{var I=O;b(z).un(I)}return x},emit:b.emit,node:Object(g.j)(q,"node"),path:Object(g.j)(q,"path"),done:Object(g.j)(M,S),start:Object(g.j)(function(z,O){return b(z).on(P(O),O),x},c.c),fail:b(c.b).on,abort:b(c.a).emit,header:g.i,root:g.i,source:A}}},function(o,d,u){u.d(d,"a",function(){return g});var c=u(3);function g(p){var v,y,b,A,x=p(c.j).emit,E=p(c.l).emit,S=p(c.k).emit,C=p(c.b).emit,T=65536,k=/[\\"\n]/g,M=0,P=M++,N=M++,F=M++,q=M++,z=M++,O=M++,R=M++,I=M++,D=M++,B=M++,j=M++,Q=M++,X=M++,Z=M++,L=M++,W=M++,G=M++,J=M++,H=M++,U=M++,K=T,te="",ee=!1,ie=!1,se=P,ne=[],re=null,Y=0,V=0,oe=0,fe=0,ce=1;function he(ae){A!==void 0&&(E(A),S(),A=void 0),v=Error(ae+` +Ln: `+ce+` +Col: `+fe+` +Chr: `+y),C(Object(c.o)(void 0,void 0,v))}function le(ae){return ae==="\r"||ae===` +`||ae===" "||ae===" "}p(c.m).on(function(ae){if(!v){if(ie)return he("Cannot write after close");var ue,de=0;for(y=ae[0];y&&(de>0&&(b=y),y=ae[de++]);)switch(oe++,y===` +`?(ce++,fe=0):fe++,se){case P:if(y==="{")se=F;else if(y==="[")se=z;else if(!le(y))return he("Non-whitespace before {[.");continue;case I:case F:if(le(y))continue;if(se===I)ne.push(D);else{if(y==="}"){E({}),S(),se=ne.pop()||N;continue}ne.push(q)}if(y!=='"')return he('Malformed object key should start with " ');se=R;continue;case D:case q:if(le(y))continue;if(y===":")se===q?(ne.push(q),A!==void 0&&(E({}),x(A),A=void 0),V++):A!==void 0&&(x(A),A=void 0),se=N;else if(y==="}")A!==void 0&&(E(A),S(),A=void 0),S(),V--,se=ne.pop()||N;else{if(y!==",")return he("Bad object");se===q&&ne.push(q),A!==void 0&&(E(A),S(),A=void 0),se=I}continue;case z:case N:if(le(y))continue;if(se===z){if(E([]),V++,se=N,y==="]"){S(),V--,se=ne.pop()||N;continue}ne.push(O)}if(y==='"')se=R;else if(y==="{")se=F;else if(y==="[")se=z;else if(y==="t")se=B;else if(y==="f")se=X;else if(y==="n")se=G;else if(y==="-")te+=y;else if(y==="0")te+=y,se=20;else{if("123456789".indexOf(y)===-1)return he("Bad value");te+=y,se=20}continue;case O:if(y===",")ne.push(O),A!==void 0&&(E(A),S(),A=void 0),se=N;else{if(y!=="]"){if(le(y))continue;return he("Bad array")}A!==void 0&&(E(A),S(),A=void 0),S(),V--,se=ne.pop()||N}continue;case R:A===void 0&&(A="");var ve=de-1;e:for(;;){for(;Y>0;)if(re+=y,y=ae.charAt(de++),Y===4?(A+=String.fromCharCode(parseInt(re,16)),Y=0,ve=de-1):Y++,!y)break e;if(y==='"'&&!ee){se=ne.pop()||N,A+=ae.substring(ve,de-1);break}if(!(y!=="\\"||ee||(ee=!0,A+=ae.substring(ve,de-1),y=ae.charAt(de++))))break;if(ee){if(ee=!1,y==="n"?A+=` +`:y==="r"?A+="\r":y==="t"?A+=" ":y==="f"?A+="\f":y==="b"?A+="\b":y==="u"?(Y=1,re=""):A+=y,y=ae.charAt(de++),ve=de-1,y)continue;break}k.lastIndex=de;var me=k.exec(ae);if(!me){de=ae.length+1,A+=ae.substring(ve,de-1);break}if(de=me.index+1,!(y=ae.charAt(me.index))){A+=ae.substring(ve,de-1);break}}continue;case B:if(!y)continue;if(y!=="r")return he("Invalid true started with t"+y);se=j;continue;case j:if(!y)continue;if(y!=="u")return he("Invalid true started with tr"+y);se=Q;continue;case Q:if(!y)continue;if(y!=="e")return he("Invalid true started with tru"+y);E(!0),S(),se=ne.pop()||N;continue;case X:if(!y)continue;if(y!=="a")return he("Invalid false started with f"+y);se=Z;continue;case Z:if(!y)continue;if(y!=="l")return he("Invalid false started with fa"+y);se=L;continue;case L:if(!y)continue;if(y!=="s")return he("Invalid false started with fal"+y);se=W;continue;case W:if(!y)continue;if(y!=="e")return he("Invalid false started with fals"+y);E(!1),S(),se=ne.pop()||N;continue;case G:if(!y)continue;if(y!=="u")return he("Invalid null started with n"+y);se=J;continue;case J:if(!y)continue;if(y!=="l")return he("Invalid null started with nu"+y);se=H;continue;case H:if(!y)continue;if(y!=="l")return he("Invalid null started with nul"+y);E(null),S(),se=ne.pop()||N;continue;case U:if(y!==".")return he("Leading zero not followed by .");te+=y,se=20;continue;case 20:if("0123456789".indexOf(y)!==-1)te+=y;else if(y==="."){if(te.indexOf(".")!==-1)return he("Invalid number has two dots");te+=y}else if(y==="e"||y==="E"){if(te.indexOf("e")!==-1||te.indexOf("E")!==-1)return he("Invalid number has two exponential");te+=y}else if(y==="+"||y==="-"){if(b!=="e"&&b!=="E")return he("Invalid symbol in number");te+=y}else te&&(E(parseFloat(te)),S(),te=""),de--,se=ne.pop()||N;continue;default:return he("Unknown state: "+se)}oe>=K&&(ue=0,A!==void 0&&A.length>T&&(he("Max buffer length exceeded: textNode"),ue=Math.max(ue,A.length)),te.length>T&&(he("Max buffer length exceeded: numberNode"),ue=Math.max(ue,te.length)),K=T-ue+oe)}}),p(c.n).on(function(){if(se===P)return E({}),S(),void(ie=!0);se===N&&V===0||he("Unexpected end"),A!==void 0&&(E(A),S(),A=void 0),ie=!0})}},function(o,d,u){u.d(d,"a",function(){return b}),u.d(d,"b",function(){return A});var c=u(19),g=u(3),p=u(2),v=u(20),y=u(0);function b(){return new XMLHttpRequest}function A(x,E,S,C,T,k,M){var P=x(g.m).emit,N=x(g.b).emit,F=0,q=!0;function z(){if(String(E.status)[0]==="2"){var I=E.responseText,D=(" "+I.substr(F)).substr(1);D&&P(D),F=Object(p.e)(I)}}function O(I){try{q&&x(g.c).emit(I.status,Object(v.a)(I.getAllResponseHeaders())),q=!1}catch{}}x(g.a).on(function(){E.onreadystatechange=null,E.abort()}),"onprogress"in E&&(E.onprogress=z),E.onreadystatechange=function(){switch(E.readyState){case 2:case 3:return O(E);case 4:O(E),String(E.status)[0]==="2"?(z(),x(g.n).emit()):N(Object(g.o)(E.status,E.responseText))}};try{for(var R in E.open(S,C,!0),k)E.setRequestHeader(R,k[R]);Object(c.a)(window.location,Object(c.b)(C))||E.setRequestHeader("X-Requested-With","XMLHttpRequest"),E.withCredentials=M,E.send(T)}catch(I){window.setTimeout(Object(y.j)(N,Object(g.o)(void 0,void 0,I)),0)}}},function(o,d,u){function c(p,v){function y(b){return String(b.port||{"http:":80,"https:":443}[b.protocol||p.protocol])}return!!(v.protocol&&v.protocol!==p.protocol||v.host&&v.host!==p.host||v.host&&y(v)!==y(p))}function g(p){var v=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(p)||[];return{protocol:v[1]||"",host:v[2]||"",port:v[3]||""}}u.d(d,"a",function(){return c}),u.d(d,"b",function(){return g})},function(o,d,u){function c(g){var p={};return g&&g.split(`\r +`).forEach(function(v){var y=v.indexOf(": ");p[v.substring(0,y)]=v.substring(y+2)}),p}u.d(d,"a",function(){return c})}]).default},(0,t.default)(s)==="object"&&(0,t.default)(r)==="object"?r.exports=n():(e=[],(l=typeof(f=n)=="function"?f.apply(s,e):f)===void 0||(r.exports=l))},1823:(r,s,i)=>{var f=i(8357);s.certificate=i(1320);var e=f.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())});s.RSAPrivateKey=e;var l=f.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});s.RSAPublicKey=l;var n=f.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(t),this.key("subjectPublicKey").bitstr())});s.PublicKey=n;var t=f.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())}),o=f.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(t),this.key("subjectPrivateKey").octstr())});s.PrivateKey=o;var d=f.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())});s.EncryptedPrivateKey=d;var u=f.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())});s.DSAPrivateKey=u,s.DSAparam=f.define("DSAparam",function(){this.int()});var c=f.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(g),this.key("publicKey").optional().explicit(1).bitstr())});s.ECPrivateKey=c;var g=f.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});s.signature=f.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},1320:(r,s,i)=>{var f=i(8357),e=f.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),l=f.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),n=f.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),t=f.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())}),o=f.define("RelativeDistinguishedName",function(){this.setof(l)}),d=f.define("RDNSequence",function(){this.seqof(o)}),u=f.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),c=f.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),g=f.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),p=f.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(n),this.key("issuer").use(u),this.key("validity").use(c),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(t),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(g).optional())}),v=f.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(n),this.key("signatureValue").bitstr())});r.exports=v},4988:(r,s,i)=>{var f=/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,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,l=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,n=i(7085),t=i(8073),o=i(8850).Buffer;r.exports=function(d,u){var c,g=d.toString(),p=g.match(f);if(p){var v="aes"+p[1],y=o.from(p[2],"hex"),b=o.from(p[3].replace(/[\r\n]/g,""),"base64"),A=n(u,y.slice(0,8),parseInt(p[1],10)).key,x=[],E=t.createDecipheriv(v,A,y);x.push(E.update(b)),x.push(E.final()),c=o.concat(x)}else{var S=g.match(l);c=o.from(S[2].replace(/[\r\n]/g,""),"base64")}return{tag:g.match(e)[1],data:c}}},7552:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1823),l=i(2562),n=i(4988),t=i(8073),o=i(4192),d=i(8850).Buffer;function u(c){var g;(0,f.default)(c)!=="object"||d.isBuffer(c)||(g=c.passphrase,c=c.key),typeof c=="string"&&(c=d.from(c));var p,v,y=n(c,g),b=y.tag,A=y.data;switch(b){case"CERTIFICATE":v=e.certificate.decode(A,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(v||(v=e.PublicKey.decode(A,"der")),p=v.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPublicKey.decode(v.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return v.subjectPrivateKey=v.subjectPublicKey,{type:"ec",data:v};case"1.2.840.10040.4.1":return v.algorithm.params.pub_key=e.DSAparam.decode(v.subjectPublicKey.data,"der"),{type:"dsa",data:v.algorithm.params};default:throw new Error("unknown key id "+p)}case"ENCRYPTED PRIVATE KEY":A=function(x,E){var S=x.algorithm.decrypt.kde.kdeparams.salt,C=parseInt(x.algorithm.decrypt.kde.kdeparams.iters.toString(),10),T=l[x.algorithm.decrypt.cipher.algo.join(".")],k=x.algorithm.decrypt.cipher.iv,M=x.subjectPrivateKey,P=parseInt(T.split("-")[1],10)/8,N=o.pbkdf2Sync(E,S,C,P,"sha1"),F=t.createDecipheriv(T,N,k),q=[];return q.push(F.update(M)),q.push(F.final()),d.concat(q)}(A=e.EncryptedPrivateKey.decode(A,"der"),g);case"PRIVATE KEY":switch(p=(v=e.PrivateKey.decode(A,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return e.RSAPrivateKey.decode(v.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:v.algorithm.curve,privateKey:e.ECPrivateKey.decode(v.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return v.algorithm.params.priv_key=e.DSAparam.decode(v.subjectPrivateKey,"der"),{type:"dsa",params:v.algorithm.params};default:throw new Error("unknown key id "+p)}case"RSA PUBLIC KEY":return e.RSAPublicKey.decode(A,"der");case"RSA PRIVATE KEY":return e.RSAPrivateKey.decode(A,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:e.DSAPrivateKey.decode(A,"der")};case"EC PRIVATE KEY":return{curve:(A=e.ECPrivateKey.decode(A,"der")).parameters.value,privateKey:A.privateKey};default:throw new Error("unknown key type "+b)}}r.exports=u,u.signature=e.signature},8209:r=>{var s=function(i){return i.replace(/^\s+|\s+$/g,"")};r.exports=function(i){if(!i)return{};for(var f,e={},l=s(i).split(` +`),n=0;n<l.length;n++){var t=l[n],o=t.indexOf(":"),d=s(t.slice(0,o)).toLowerCase(),u=s(t.slice(o+1));e[d]===void 0?e[d]=u:(f=e[d],Object.prototype.toString.call(f)==="[object Array]"?e[d].push(u):e[d]=[e[d],u])}return e}},4192:(r,s,i)=>{s.pbkdf2=i(1882),s.pbkdf2Sync=i(1658)},1882:(r,s,i)=>{var f,e,l=i(8850).Buffer,n=i(3127),t=i(7401),o=i(1658),d=i(8398),u=i.g.crypto&&i.g.crypto.subtle,c={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"},g=[];function p(){return e||(e=i.g.process&&i.g.process.nextTick?i.g.process.nextTick:i.g.queueMicrotask?i.g.queueMicrotask:i.g.setImmediate?i.g.setImmediate:i.g.setTimeout)}function v(y,b,A,x,E){return u.importKey("raw",y,{name:"PBKDF2"},!1,["deriveBits"]).then(function(S){return u.deriveBits({name:"PBKDF2",salt:b,iterations:A,hash:{name:E}},S,x<<3)}).then(function(S){return l.from(S)})}r.exports=function(y,b,A,x,E,S){typeof E=="function"&&(S=E,E=void 0);var C=c[(E=E||"sha1").toLowerCase()];if(C&&typeof i.g.Promise=="function"){if(n(A,x),y=d(y,t,"Password"),b=d(b,t,"Salt"),typeof S!="function")throw new Error("No callback provided to pbkdf2");(function(T,k){T.then(function(M){p()(function(){k(null,M)})},function(M){p()(function(){k(M)})})})(function(T){if(i.g.process&&!i.g.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(g[T]!==void 0)return g[T];var k=v(f=f||l.alloc(8),f,10,128,T).then(function(){return!0}).catch(function(){return!1});return g[T]=k,k}(C).then(function(T){return T?v(y,b,A,x,C):o(y,b,A,x,E)}),S)}else p()(function(){var T;try{T=o(y,b,A,x,E)}catch(k){return S(k)}S(null,T)})}},7401:(r,s,i)=>{var f,e=i(9142);f=i.g.process&&i.g.process.browser?"utf-8":i.g.process&&i.g.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",r.exports=f},3127:r=>{var s=Math.pow(2,30)-1;r.exports=function(i,f){if(typeof i!="number")throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if(typeof f!="number")throw new TypeError("Key length not a number");if(f<0||f>s||f!=f)throw new TypeError("Bad key length")}},1658:(r,s,i)=>{var f=i(5349),e=i(6707),l=i(1708),n=i(8850).Buffer,t=i(3127),o=i(7401),d=i(8398),u=n.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function g(p,v,y){var b=function(T){return T==="rmd160"||T==="ripemd160"?function(k){return new e().update(k).digest()}:T==="md5"?f:function(k){return l(T).update(k).digest()}}(p),A=p==="sha512"||p==="sha384"?128:64;v.length>A?v=b(v):v.length<A&&(v=n.concat([v,u],A));for(var x=n.allocUnsafe(A+c[p]),E=n.allocUnsafe(A+c[p]),S=0;S<A;S++)x[S]=54^v[S],E[S]=92^v[S];var C=n.allocUnsafe(A+y+4);x.copy(C,0,0,A),this.ipad1=C,this.ipad2=x,this.opad=E,this.alg=p,this.blocksize=A,this.hash=b,this.size=c[p]}g.prototype.run=function(p,v){return p.copy(v,this.blocksize),this.hash(v).copy(this.opad,this.blocksize),this.hash(this.opad)},r.exports=function(p,v,y,b,A){t(y,b);var x=new g(A=A||"sha1",p=d(p,o,"Password"),(v=d(v,o,"Salt")).length),E=n.allocUnsafe(b),S=n.allocUnsafe(v.length+4);v.copy(S,0,0,v.length);for(var C=0,T=c[A],k=Math.ceil(b/T),M=1;M<=k;M++){S.writeUInt32BE(M,v.length);for(var P=x.run(S,x.ipad1),N=P,F=1;F<y;F++){N=x.run(N,x.ipad2);for(var q=0;q<T;q++)P[q]^=N[q]}P.copy(E,C),C+=T}return E}},8398:(r,s,i)=>{var f=i(8850).Buffer;r.exports=function(e,l,n){if(f.isBuffer(e))return e;if(typeof e=="string")return f.from(e,l);if(ArrayBuffer.isView(e))return f.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},9142:r=>{var s,i,f=r.exports={};function e(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function n(y){if(s===setTimeout)return setTimeout(y,0);if((s===e||!s)&&setTimeout)return s=setTimeout,setTimeout(y,0);try{return s(y,0)}catch{try{return s.call(null,y,0)}catch{return s.call(this,y,0)}}}(function(){try{s=typeof setTimeout=="function"?setTimeout:e}catch{s=e}try{i=typeof clearTimeout=="function"?clearTimeout:l}catch{i=l}})();var t,o=[],d=!1,u=-1;function c(){d&&t&&(d=!1,t.length?o=t.concat(o):u=-1,o.length&&g())}function g(){if(!d){var y=n(c);d=!0;for(var b=o.length;b;){for(t=o,o=[];++u<b;)t&&t[u].run();u=-1,b=o.length}t=null,d=!1,function(A){if(i===clearTimeout)return clearTimeout(A);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(A);try{return i(A)}catch{try{return i.call(null,A)}catch{return i.call(this,A)}}}(y)}}function p(y,b){this.fun=y,this.array=b}function v(){}f.nextTick=function(y){var b=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)b[A-1]=arguments[A];o.push(new p(y,b)),o.length!==1||d||n(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=v,f.addListener=v,f.once=v,f.off=v,f.removeListener=v,f.removeAllListeners=v,f.emit=v,f.prependListener=v,f.prependOnceListener=v,f.listeners=function(y){return[]},f.binding=function(y){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(y){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},6991:(r,s,i)=>{s.publicEncrypt=i(2466),s.privateDecrypt=i(3144),s.privateEncrypt=function(f,e){return s.publicEncrypt(f,e,!0)},s.publicDecrypt=function(f,e){return s.privateDecrypt(f,e,!0)}},6873:(r,s,i)=>{var f=i(5866),e=i(8850).Buffer;function l(n){var t=e.allocUnsafe(4);return t.writeUInt32BE(n,0),t}r.exports=function(n,t){for(var o,d=e.alloc(0),u=0;d.length<t;)o=l(u++),d=e.concat([d,f("sha1").update(n).update(o).digest()]);return d.slice(0,t)}},3144:(r,s,i)=>{var f=i(7552),e=i(6873),l=i(817),n=i(1734),t=i(9782),o=i(5866),d=i(2561),u=i(8850).Buffer;r.exports=function(c,g,p){var v;v=c.padding?c.padding:p?1:4;var y,b=f(c),A=b.modulus.byteLength();if(g.length>A||new n(g).cmp(b.modulus)>=0)throw new Error("decryption error");y=p?d(new n(g),b):t(g,b);var x=u.alloc(A-y.length);if(y=u.concat([x,y],A),v===4)return function(E,S){var C=E.modulus.byteLength(),T=o("sha1").update(u.alloc(0)).digest(),k=T.length;if(S[0]!==0)throw new Error("decryption error");var M=S.slice(1,k+1),P=S.slice(k+1),N=l(M,e(P,k)),F=l(P,e(N,C-k-1));if(function(z,O){z=u.from(z),O=u.from(O);var R=0,I=z.length;z.length!==O.length&&(R++,I=Math.min(z.length,O.length));for(var D=-1;++D<I;)R+=z[D]^O[D];return R}(T,F.slice(0,k)))throw new Error("decryption error");for(var q=k;F[q]===0;)q++;if(F[q++]!==1)throw new Error("decryption error");return F.slice(q)}(b,y);if(v===1)return function(E,S,C){for(var T=S.slice(0,2),k=2,M=0;S[k++]!==0;)if(k>=S.length){M++;break}var P=S.slice(2,k-1);if((T.toString("hex")!=="0002"&&!C||T.toString("hex")!=="0001"&&C)&&M++,P.length<8&&M++,M)throw new Error("decryption error");return S.slice(k)}(0,y,p);if(v===3)return y;throw new Error("unknown padding")}},2466:(r,s,i)=>{var f=i(7552),e=i(5010),l=i(5866),n=i(6873),t=i(817),o=i(1734),d=i(2561),u=i(9782),c=i(8850).Buffer;r.exports=function(g,p,v){var y;y=g.padding?g.padding:v?1:4;var b,A=f(g);if(y===4)b=function(x,E){var S=x.modulus.byteLength(),C=E.length,T=l("sha1").update(c.alloc(0)).digest(),k=T.length,M=2*k;if(C>S-M-2)throw new Error("message too long");var P=c.alloc(S-C-M-2),N=S-k-1,F=e(k),q=t(c.concat([T,P,c.alloc(1,1),E],N),n(F,N)),z=t(F,n(q,k));return new o(c.concat([c.alloc(1),z,q],S))}(A,p);else if(y===1)b=function(x,E,S){var C,T=E.length,k=x.modulus.byteLength();if(T>k-11)throw new Error("message too long");return C=S?c.alloc(k-T-3,255):function(M){for(var P,N=c.allocUnsafe(M),F=0,q=e(2*M),z=0;F<M;)z===q.length&&(q=e(2*M),z=0),(P=q[z++])&&(N[F++]=P);return N}(k-T-3),new o(c.concat([c.from([0,S?1:2]),C,c.alloc(1),E],k))}(A,p,v);else{if(y!==3)throw new Error("unknown padding");if((b=new o(p)).cmp(A.modulus)>=0)throw new Error("data too long for modulus")}return v?u(b,A):d(b,A)}},2561:(r,s,i)=>{var f=i(1734),e=i(8850).Buffer;r.exports=function(l,n){return e.from(l.toRed(f.mont(n.modulus)).redPow(new f(n.publicExponent)).fromRed().toArray())}},817:r=>{r.exports=function(s,i){for(var f=s.length,e=-1;++e<f;)s[e]^=i[e];return s}},1296:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(10),l=i(3103),n=i(34);function t(c,g){return g.encode?g.strict?e(c):encodeURIComponent(c):c}function o(c){return Array.isArray(c)?c.sort():(0,f.default)(c)==="object"?o(Object.keys(c)).sort(function(g,p){return Number(g)-Number(p)}).map(function(g){return c[g]}):c}function d(c){var g=c.indexOf("?");return g===-1?"":c.slice(g+1)}function u(c,g){var p=function(y){var b;switch(y.arrayFormat){case"index":return function(A,x,E){b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),b?(E[A]===void 0&&(E[A]={}),E[A][b[1]]=x):E[A]=x};case"bracket":return function(A,x,E){b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),b?E[A]!==void 0?E[A]=[].concat(E[A],x):E[A]=[x]:E[A]=x};default:return function(A,x,E){E[A]!==void 0?E[A]=[].concat(E[A],x):E[A]=x}}}(g=l({arrayFormat:"none"},g)),v=Object.create(null);return typeof c!="string"?v:(c=c.trim().replace(/^[?#&]/,""))?(c.split("&").forEach(function(y){var b=y.replace(/\+/g," ").split("="),A=b.shift(),x=b.length>0?b.join("="):void 0;x=x===void 0?null:n(x),p(n(A),x,v)}),Object.keys(v).sort().reduce(function(y,b){var A=v[b];return A&&(0,f.default)(A)==="object"&&!Array.isArray(A)?y[b]=o(A):y[b]=A,y},Object.create(null))):v}s.extract=d,s.parse=u,s.stringify=function(c,g){(g=l({encode:!0,strict:!0,arrayFormat:"none"},g)).sort===!1&&(g.sort=function(){});var p=function(v){switch(v.arrayFormat){case"index":return function(y,b,A){return b===null?[t(y,v),"[",A,"]"].join(""):[t(y,v),"[",t(A,v),"]=",t(b,v)].join("")};case"bracket":return function(y,b){return b===null?t(y,v):[t(y,v),"[]=",t(b,v)].join("")};default:return function(y,b){return b===null?t(y,v):[t(y,v),"=",t(b,v)].join("")}}}(g);return c?Object.keys(c).sort(g.sort).map(function(v){var y=c[v];if(y===void 0)return"";if(y===null)return t(v,g);if(Array.isArray(y)){var b=[];return y.slice().forEach(function(A){A!==void 0&&b.push(p(v,A,b.length))}),b.join("&")}return t(v,g)+"="+t(y,g)}).filter(function(v){return v.length>0}).join("&"):""},s.parseUrl=function(c,g){return{url:c.split("?")[0]||"",query:u(d(c),g)}}},5010:(r,s,i)=>{var f=i(9142),e=65536,l=i(8850).Buffer,n=i.g.crypto||i.g.msCrypto;n&&n.getRandomValues?r.exports=function(t,o){if(t>4294967295)throw new RangeError("requested too many random bytes");var d=l.allocUnsafe(t);if(t>0)if(t>e)for(var u=0;u<t;u+=e)n.getRandomValues(d.slice(u,u+e));else n.getRandomValues(d);return typeof o=="function"?f.nextTick(function(){o(null,d)}):d}:r.exports=function(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}},6509:(r,s,i)=>{var f=i(9142);function e(){throw new Error(`secure random number generation not supported by this browser +use chrome, FireFox or Internet Explorer 11`)}var l=i(8850),n=i(5010),t=l.Buffer,o=l.kMaxLength,d=i.g.crypto||i.g.msCrypto,u=Math.pow(2,32)-1;function c(v,y){if(typeof v!="number"||v!=v)throw new TypeError("offset must be a number");if(v>u||v<0)throw new TypeError("offset must be a uint32");if(v>o||v>y)throw new RangeError("offset out of range")}function g(v,y,b){if(typeof v!="number"||v!=v)throw new TypeError("size must be a number");if(v>u||v<0)throw new TypeError("size must be a uint32");if(v+y>b||v>o)throw new RangeError("buffer too small")}function p(v,y,b,A){if(f.browser){var x=v.buffer,E=new Uint8Array(x,y,b);return d.getRandomValues(E),A?void f.nextTick(function(){A(null,v)}):v}if(!A)return n(b).copy(v,y),v;n(b,function(S,C){if(S)return A(S);C.copy(v,y),A(null,v)})}d&&d.getRandomValues||!f.browser?(s.randomFill=function(v,y,b,A){if(!(t.isBuffer(v)||v instanceof i.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof y=="function")A=y,y=0,b=v.length;else if(typeof b=="function")A=b,b=v.length-y;else if(typeof A!="function")throw new TypeError('"cb" argument must be a function');return c(y,v.length),g(b,y,v.length),p(v,y,b,A)},s.randomFillSync=function(v,y,b){if(y===void 0&&(y=0),!(t.isBuffer(v)||v instanceof i.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return c(y,v.length),b===void 0&&(b=v.length-y),g(b,y,v.length),p(v,y,b)}):(s.randomFill=e,s.randomFillSync=e)},9024:(r,s,i)=>{var f=i(8847)(i(3355)),e={};function l(t,o,d){d||(d=Error);var u=function(c){var g,p;function v(y,b,A){return c.call(this,function(x,E,S){return typeof o=="string"?o:o(x,E,S)}(y,b,A))||this}return p=c,(g=v).prototype=Object.create(p.prototype),g.prototype.constructor=g,g.__proto__=p,v}(d);u.prototype.name=d.name,u.prototype.code=t,e[t]=u}function n(t,o){if(Array.isArray(t)){var d=t.length;return t=t.map(function(u){return String(u)}),d>2?"one of ".concat(o," ").concat(t.slice(0,d-1).join(", "),", or ")+t[d-1]:d===2?"one of ".concat(o," ").concat(t[0]," or ").concat(t[1]):"of ".concat(o," ").concat(t[0])}return"of ".concat(o," ").concat(String(t))}l("ERR_INVALID_OPT_VALUE",function(t,o){return'The value "'+o+'" is invalid for option "'+t+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(t,o,d){var u,c,g,p,v;if(typeof o=="string"&&(c="not ",o.substr(0,c.length)===c)?(u="must not be",o=o.replace(/^not /,"")):u="must be",function(b,A,x){return(x===void 0||x>b.length)&&(x=b.length),b.substring(x-A.length,x)===A}(t," argument"))g="The ".concat(t," ").concat(u," ").concat(n(o,"type"));else{var y=(typeof v!="number"&&(v=0),v+1>(p=t).length||p.indexOf(".",v)===-1?"argument":"property");g='The "'.concat(t,'" ').concat(y," ").concat(u," ").concat(n(o,"type"))}return g+". Received type ".concat((0,f.default)(d))},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.q=e},6884:(r,s,i)=>{var f=i(9142),e=Object.keys||function(p){var v=[];for(var y in p)v.push(y);return v};r.exports=u;var l=i(6297),n=i(1471);i(1736)(u,l);for(var t=e(n.prototype),o=0;o<t.length;o++){var d=t[o];u.prototype[d]||(u.prototype[d]=n.prototype[d])}function u(p){if(!(this instanceof u))return new u(p);l.call(this,p),n.call(this,p),this.allowHalfOpen=!0,p&&(p.readable===!1&&(this.readable=!1),p.writable===!1&&(this.writable=!1),p.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||f.nextTick(g,this)}function g(p){p.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}})},3582:(r,s,i)=>{r.exports=e;var f=i(9154);function e(l){if(!(this instanceof e))return new e(l);f.call(this,l)}i(1736)(e,f),e.prototype._transform=function(l,n,t){t(null,l)}},6297:(r,s,i)=>{var f,e=i(9142);r.exports=P,P.ReadableState=M,i(8291).EventEmitter;var l,n=function(J,H){return J.listeners(H).length},t=i(7144),o=i(9033).Buffer,d=i.g.Uint8Array||function(){},u=i(4616);l=u&&u.debuglog?u.debuglog("stream"):function(){};var c,g,p,v=i(5392),y=i(7572),b=i(6756).getHighWaterMark,A=i(9024).q,x=A.ERR_INVALID_ARG_TYPE,E=A.ERR_STREAM_PUSH_AFTER_EOF,S=A.ERR_METHOD_NOT_IMPLEMENTED,C=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(1736)(P,t);var T=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function M(J,H,U){f=f||i(6884),J=J||{},typeof U!="boolean"&&(U=H instanceof f),this.objectMode=!!J.objectMode,U&&(this.objectMode=this.objectMode||!!J.readableObjectMode),this.highWaterMark=b(this,J,"readableHighWaterMark",U),this.buffer=new v,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=J.emitClose!==!1,this.autoDestroy=!!J.autoDestroy,this.destroyed=!1,this.defaultEncoding=J.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,J.encoding&&(c||(c=i(3462).s),this.decoder=new c(J.encoding),this.encoding=J.encoding)}function P(J){if(f=f||i(6884),!(this instanceof P))return new P(J);var H=this instanceof f;this._readableState=new M(J,this,H),this.readable=!0,J&&(typeof J.read=="function"&&(this._read=J.read),typeof J.destroy=="function"&&(this._destroy=J.destroy)),t.call(this)}function N(J,H,U,K,te){l("readableAddChunk",H);var ee,ie=J._readableState;if(H===null)ie.reading=!1,function(se,ne){if(l("onEofChunk"),!ne.ended){if(ne.decoder){var re=ne.decoder.end();re&&re.length&&(ne.buffer.push(re),ne.length+=ne.objectMode?1:re.length)}ne.ended=!0,ne.sync?O(se):(ne.needReadable=!1,ne.emittedReadable||(ne.emittedReadable=!0,R(se)))}}(J,ie);else if(te||(ee=function(se,ne){var re,Y;return Y=ne,o.isBuffer(Y)||Y instanceof d||typeof ne=="string"||ne===void 0||se.objectMode||(re=new x("chunk",["string","Buffer","Uint8Array"],ne)),re}(ie,H)),ee)T(J,ee);else if(ie.objectMode||H&&H.length>0)if(typeof H=="string"||ie.objectMode||Object.getPrototypeOf(H)===o.prototype||(H=function(se){return o.from(se)}(H)),K)ie.endEmitted?T(J,new C):F(J,ie,H,!0);else if(ie.ended)T(J,new E);else{if(ie.destroyed)return!1;ie.reading=!1,ie.decoder&&!U?(H=ie.decoder.write(H),ie.objectMode||H.length!==0?F(J,ie,H,!1):I(J,ie)):F(J,ie,H,!1)}else K||(ie.reading=!1,I(J,ie));return!ie.ended&&(ie.length<ie.highWaterMark||ie.length===0)}function F(J,H,U,K){H.flowing&&H.length===0&&!H.sync?(H.awaitDrain=0,J.emit("data",U)):(H.length+=H.objectMode?1:U.length,K?H.buffer.unshift(U):H.buffer.push(U),H.needReadable&&O(J)),I(J,H)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(J){this._readableState&&(this._readableState.destroyed=J)}}),P.prototype.destroy=y.destroy,P.prototype._undestroy=y.undestroy,P.prototype._destroy=function(J,H){H(J)},P.prototype.push=function(J,H){var U,K=this._readableState;return K.objectMode?U=!0:typeof J=="string"&&((H=H||K.defaultEncoding)!==K.encoding&&(J=o.from(J,H),H=""),U=!0),N(this,J,H,!1,U)},P.prototype.unshift=function(J){return N(this,J,null,!0,!1)},P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(J){c||(c=i(3462).s);var H=new c(J);this._readableState.decoder=H,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,K="";U!==null;)K+=H.write(U.data),U=U.next;return this._readableState.buffer.clear(),K!==""&&this._readableState.buffer.push(K),this._readableState.length=K.length,this};var q=1073741824;function z(J,H){return J<=0||H.length===0&&H.ended?0:H.objectMode?1:J!=J?H.flowing&&H.length?H.buffer.head.data.length:H.length:(J>H.highWaterMark&&(H.highWaterMark=function(U){return U>=q?U=q:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}(J)),J<=H.length?J:H.ended?H.length:(H.needReadable=!0,0))}function O(J){var H=J._readableState;l("emitReadable",H.needReadable,H.emittedReadable),H.needReadable=!1,H.emittedReadable||(l("emitReadable",H.flowing),H.emittedReadable=!0,e.nextTick(R,J))}function R(J){var H=J._readableState;l("emitReadable_",H.destroyed,H.length,H.ended),H.destroyed||!H.length&&!H.ended||(J.emit("readable"),H.emittedReadable=!1),H.needReadable=!H.flowing&&!H.ended&&H.length<=H.highWaterMark,X(J)}function I(J,H){H.readingMore||(H.readingMore=!0,e.nextTick(D,J,H))}function D(J,H){for(;!H.reading&&!H.ended&&(H.length<H.highWaterMark||H.flowing&&H.length===0);){var U=H.length;if(l("maybeReadMore read 0"),J.read(0),U===H.length)break}H.readingMore=!1}function B(J){var H=J._readableState;H.readableListening=J.listenerCount("readable")>0,H.resumeScheduled&&!H.paused?H.flowing=!0:J.listenerCount("data")>0&&J.resume()}function j(J){l("readable nexttick read 0"),J.read(0)}function Q(J,H){l("resume",H.reading),H.reading||J.read(0),H.resumeScheduled=!1,J.emit("resume"),X(J),H.flowing&&!H.reading&&J.read(0)}function X(J){var H=J._readableState;for(l("flow",H.flowing);H.flowing&&J.read()!==null;);}function Z(J,H){return H.length===0?null:(H.objectMode?U=H.buffer.shift():!J||J>=H.length?(U=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.first():H.buffer.concat(H.length),H.buffer.clear()):U=H.buffer.consume(J,H.decoder),U);var U}function L(J){var H=J._readableState;l("endReadable",H.endEmitted),H.endEmitted||(H.ended=!0,e.nextTick(W,H,J))}function W(J,H){if(l("endReadableNT",J.endEmitted,J.length),!J.endEmitted&&J.length===0&&(J.endEmitted=!0,H.readable=!1,H.emit("end"),J.autoDestroy)){var U=H._writableState;(!U||U.autoDestroy&&U.finished)&&H.destroy()}}function G(J,H){for(var U=0,K=J.length;U<K;U++)if(J[U]===H)return U;return-1}P.prototype.read=function(J){l("read",J),J=parseInt(J,10);var H=this._readableState,U=J;if(J!==0&&(H.emittedReadable=!1),J===0&&H.needReadable&&((H.highWaterMark!==0?H.length>=H.highWaterMark:H.length>0)||H.ended))return l("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?L(this):O(this),null;if((J=z(J,H))===0&&H.ended)return H.length===0&&L(this),null;var K,te=H.needReadable;return l("need readable",te),(H.length===0||H.length-J<H.highWaterMark)&&l("length less than watermark",te=!0),H.ended||H.reading?l("reading or ended",te=!1):te&&(l("do read"),H.reading=!0,H.sync=!0,H.length===0&&(H.needReadable=!0),this._read(H.highWaterMark),H.sync=!1,H.reading||(J=z(U,H))),(K=J>0?Z(J,H):null)===null?(H.needReadable=H.length<=H.highWaterMark,J=0):(H.length-=J,H.awaitDrain=0),H.length===0&&(H.ended||(H.needReadable=!0),U!==J&&H.ended&&L(this)),K!==null&&this.emit("data",K),K},P.prototype._read=function(J){T(this,new S("_read()"))},P.prototype.pipe=function(J,H){var U=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=J;break;case 1:K.pipes=[K.pipes,J];break;default:K.pipes.push(J)}K.pipesCount+=1,l("pipe count=%d opts=%j",K.pipesCount,H);var te=H&&H.end===!1||J===e.stdout||J===e.stderr?oe:ee;function ee(){l("onend"),J.end()}K.endEmitted?e.nextTick(te):U.once("end",te),J.on("unpipe",function fe(ce,he){l("onunpipe"),ce===U&&he&&he.hasUnpiped===!1&&(he.hasUnpiped=!0,l("cleanup"),J.removeListener("close",Y),J.removeListener("finish",V),J.removeListener("drain",ie),J.removeListener("error",re),J.removeListener("unpipe",fe),U.removeListener("end",ee),U.removeListener("end",oe),U.removeListener("data",ne),se=!0,!K.awaitDrain||J._writableState&&!J._writableState.needDrain||ie())});var ie=function(fe){return function(){var ce=fe._readableState;l("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&n(fe,"data")&&(ce.flowing=!0,X(fe))}}(U);J.on("drain",ie);var se=!1;function ne(fe){l("ondata");var ce=J.write(fe);l("dest.write",ce),ce===!1&&((K.pipesCount===1&&K.pipes===J||K.pipesCount>1&&G(K.pipes,J)!==-1)&&!se&&(l("false write response, pause",K.awaitDrain),K.awaitDrain++),U.pause())}function re(fe){l("onerror",fe),oe(),J.removeListener("error",re),n(J,"error")===0&&T(J,fe)}function Y(){J.removeListener("finish",V),oe()}function V(){l("onfinish"),J.removeListener("close",Y),oe()}function oe(){l("unpipe"),U.unpipe(J)}return U.on("data",ne),function(fe,ce,he){if(typeof fe.prependListener=="function")return fe.prependListener(ce,he);fe._events&&fe._events[ce]?Array.isArray(fe._events[ce])?fe._events[ce].unshift(he):fe._events[ce]=[he,fe._events[ce]]:fe.on(ce,he)}(J,"error",re),J.once("close",Y),J.once("finish",V),J.emit("pipe",U),K.flowing||(l("pipe resume"),U.resume()),J},P.prototype.unpipe=function(J){var H=this._readableState,U={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return J&&J!==H.pipes||(J||(J=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,J&&J.emit("unpipe",this,U)),this;if(!J){var K=H.pipes,te=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var ee=0;ee<te;ee++)K[ee].emit("unpipe",this,{hasUnpiped:!1});return this}var ie=G(H.pipes,J);return ie===-1||(H.pipes.splice(ie,1),H.pipesCount-=1,H.pipesCount===1&&(H.pipes=H.pipes[0]),J.emit("unpipe",this,U)),this},P.prototype.on=function(J,H){var U=t.prototype.on.call(this,J,H),K=this._readableState;return J==="data"?(K.readableListening=this.listenerCount("readable")>0,K.flowing!==!1&&this.resume()):J==="readable"&&(K.endEmitted||K.readableListening||(K.readableListening=K.needReadable=!0,K.flowing=!1,K.emittedReadable=!1,l("on readable",K.length,K.reading),K.length?O(this):K.reading||e.nextTick(j,this))),U},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(J,H){var U=t.prototype.removeListener.call(this,J,H);return J==="readable"&&e.nextTick(B,this),U},P.prototype.removeAllListeners=function(J){var H=t.prototype.removeAllListeners.apply(this,arguments);return J!=="readable"&&J!==void 0||e.nextTick(B,this),H},P.prototype.resume=function(){var J=this._readableState;return J.flowing||(l("resume"),J.flowing=!J.readableListening,function(H,U){U.resumeScheduled||(U.resumeScheduled=!0,e.nextTick(Q,H,U))}(this,J)),J.paused=!1,this},P.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(J){var H=this,U=this._readableState,K=!1;for(var te in J.on("end",function(){if(l("wrapped end"),U.decoder&&!U.ended){var ie=U.decoder.end();ie&&ie.length&&H.push(ie)}H.push(null)}),J.on("data",function(ie){l("wrapped data"),U.decoder&&(ie=U.decoder.write(ie)),U.objectMode&&ie==null||(U.objectMode||ie&&ie.length)&&(H.push(ie)||(K=!0,J.pause()))}),J)this[te]===void 0&&typeof J[te]=="function"&&(this[te]=function(ie){return function(){return J[ie].apply(J,arguments)}}(te));for(var ee=0;ee<k.length;ee++)J.on(k[ee],this.emit.bind(this,k[ee]));return this._read=function(ie){l("wrapped _read",ie),K&&(K=!1,J.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=i(2317)),g(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(J){this._readableState&&(this._readableState.flowing=J)}}),P._fromList=Z,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(P.from=function(J,H){return p===void 0&&(p=i(6218)),p(P,J,H)})},9154:(r,s,i)=>{r.exports=u;var f=i(9024).q,e=f.ERR_METHOD_NOT_IMPLEMENTED,l=f.ERR_MULTIPLE_CALLBACK,n=f.ERR_TRANSFORM_ALREADY_TRANSFORMING,t=f.ERR_TRANSFORM_WITH_LENGTH_0,o=i(6884);function d(p,v){var y=this._transformState;y.transforming=!1;var b=y.writecb;if(b===null)return this.emit("error",new l);y.writechunk=null,y.writecb=null,v!=null&&this.push(v),b(p);var A=this._readableState;A.reading=!1,(A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}function u(p){if(!(this instanceof u))return new u(p);o.call(this,p),this._transformState={afterTransform:d.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",c)}function c(){var p=this;typeof this._flush!="function"||this._readableState.destroyed?g(this,null,null):this._flush(function(v,y){g(p,v,y)})}function g(p,v,y){if(v)return p.emit("error",v);if(y!=null&&p.push(y),p._writableState.length)throw new t;if(p._transformState.transforming)throw new n;return p.push(null)}i(1736)(u,o),u.prototype.push=function(p,v){return this._transformState.needTransform=!1,o.prototype.push.call(this,p,v)},u.prototype._transform=function(p,v,y){y(new e("_transform()"))},u.prototype._write=function(p,v,y){var b=this._transformState;if(b.writecb=y,b.writechunk=p,b.writeencoding=v,!b.transforming){var A=this._readableState;(b.needTransform||A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}},u.prototype._read=function(p){var v=this._transformState;v.writechunk===null||v.transforming?v.needTransform=!0:(v.transforming=!0,this._transform(v.writechunk,v.writeencoding,v.afterTransform))},u.prototype._destroy=function(p,v){o.prototype._destroy.call(this,p,function(y){v(y)})}},1471:(r,s,i)=>{var f,e=i(9142);function l(I){var D=this;this.next=null,this.entry=null,this.finish=function(){(function(B,j,Q){var X=B.entry;for(B.entry=null;X;){var Z=X.callback;j.pendingcb--,Z(void 0),X=X.next}j.corkedRequestsFree.next=B})(D,I)}}r.exports=P,P.WritableState=M;var n,t={deprecate:i(6219)},o=i(7144),d=i(9033).Buffer,u=i.g.Uint8Array||function(){},c=i(7572),g=i(6756).getHighWaterMark,p=i(9024).q,v=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_MULTIPLE_CALLBACK,A=p.ERR_STREAM_CANNOT_PIPE,x=p.ERR_STREAM_DESTROYED,E=p.ERR_STREAM_NULL_VALUES,S=p.ERR_STREAM_WRITE_AFTER_END,C=p.ERR_UNKNOWN_ENCODING,T=c.errorOrDestroy;function k(){}function M(I,D,B){f=f||i(6884),I=I||{},typeof B!="boolean"&&(B=D instanceof f),this.objectMode=!!I.objectMode,B&&(this.objectMode=this.objectMode||!!I.writableObjectMode),this.highWaterMark=g(this,I,"writableHighWaterMark",B),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j=I.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Q){(function(X,Z){var L=X._writableState,W=L.sync,G=L.writecb;if(typeof G!="function")throw new b;if(function(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}(L),Z)(function(H,U,K,te,ee){--U.pendingcb,K?(e.nextTick(ee,te),e.nextTick(R,H,U),H._writableState.errorEmitted=!0,T(H,te)):(ee(te),H._writableState.errorEmitted=!0,T(H,te),R(H,U))})(X,L,W,Z,G);else{var J=z(L)||X.destroyed;J||L.corked||L.bufferProcessing||!L.bufferedRequest||q(X,L),W?e.nextTick(F,X,L,J,G):F(X,L,J,G)}})(D,Q)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=I.emitClose!==!1,this.autoDestroy=!!I.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function P(I){var D=this instanceof(f=f||i(6884));if(!D&&!n.call(P,this))return new P(I);this._writableState=new M(I,this,D),this.writable=!0,I&&(typeof I.write=="function"&&(this._write=I.write),typeof I.writev=="function"&&(this._writev=I.writev),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.final=="function"&&(this._final=I.final)),o.call(this)}function N(I,D,B,j,Q,X,Z){D.writelen=j,D.writecb=Z,D.writing=!0,D.sync=!0,D.destroyed?D.onwrite(new x("write")):B?I._writev(Q,D.onwrite):I._write(Q,X,D.onwrite),D.sync=!1}function F(I,D,B,j){B||function(Q,X){X.length===0&&X.needDrain&&(X.needDrain=!1,Q.emit("drain"))}(I,D),D.pendingcb--,j(),R(I,D)}function q(I,D){D.bufferProcessing=!0;var B=D.bufferedRequest;if(I._writev&&B&&B.next){var j=D.bufferedRequestCount,Q=new Array(j),X=D.corkedRequestsFree;X.entry=B;for(var Z=0,L=!0;B;)Q[Z]=B,B.isBuf||(L=!1),B=B.next,Z+=1;Q.allBuffers=L,N(I,D,!0,D.length,Q,"",X.finish),D.pendingcb++,D.lastBufferedRequest=null,X.next?(D.corkedRequestsFree=X.next,X.next=null):D.corkedRequestsFree=new l(D),D.bufferedRequestCount=0}else{for(;B;){var W=B.chunk,G=B.encoding,J=B.callback;if(N(I,D,!1,D.objectMode?1:W.length,W,G,J),B=B.next,D.bufferedRequestCount--,D.writing)break}B===null&&(D.lastBufferedRequest=null)}D.bufferedRequest=B,D.bufferProcessing=!1}function z(I){return I.ending&&I.length===0&&I.bufferedRequest===null&&!I.finished&&!I.writing}function O(I,D){I._final(function(B){D.pendingcb--,B&&T(I,B),D.prefinished=!0,I.emit("prefinish"),R(I,D)})}function R(I,D){var B=z(D);if(B&&(function(Q,X){X.prefinished||X.finalCalled||(typeof Q._final!="function"||X.destroyed?(X.prefinished=!0,Q.emit("prefinish")):(X.pendingcb++,X.finalCalled=!0,e.nextTick(O,Q,X)))}(I,D),D.pendingcb===0&&(D.finished=!0,I.emit("finish"),D.autoDestroy))){var j=I._readableState;(!j||j.autoDestroy&&j.endEmitted)&&I.destroy()}return B}i(1736)(P,o),M.prototype.getBuffer=function(){for(var I=this.bufferedRequest,D=[];I;)D.push(I),I=I.next;return D},function(){try{Object.defineProperty(M.prototype,"buffer",{get:t.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"?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(I){return!!n.call(this,I)||this===P&&I&&I._writableState instanceof M}})):n=function(I){return I instanceof this},P.prototype.pipe=function(){T(this,new A)},P.prototype.write=function(I,D,B){var j,Q=this._writableState,X=!1,Z=!Q.objectMode&&(j=I,d.isBuffer(j)||j instanceof u);return Z&&!d.isBuffer(I)&&(I=function(L){return d.from(L)}(I)),typeof D=="function"&&(B=D,D=null),Z?D="buffer":D||(D=Q.defaultEncoding),typeof B!="function"&&(B=k),Q.ending?function(L,W){var G=new S;T(L,G),e.nextTick(W,G)}(this,B):(Z||function(L,W,G,J){var H;return G===null?H=new E:typeof G=="string"||W.objectMode||(H=new v("chunk",["string","Buffer"],G)),!H||(T(L,H),e.nextTick(J,H),!1)}(this,Q,I,B))&&(Q.pendingcb++,X=function(L,W,G,J,H,U){if(!G){var K=function(se,ne,re){return se.objectMode||se.decodeStrings===!1||typeof ne!="string"||(ne=d.from(ne,re)),ne}(W,J,H);J!==K&&(G=!0,H="buffer",J=K)}var te=W.objectMode?1:J.length;W.length+=te;var ee=W.length<W.highWaterMark;if(ee||(W.needDrain=!0),W.writing||W.corked){var ie=W.lastBufferedRequest;W.lastBufferedRequest={chunk:J,encoding:H,isBuf:G,callback:U,next:null},ie?ie.next=W.lastBufferedRequest:W.bufferedRequest=W.lastBufferedRequest,W.bufferedRequestCount+=1}else N(L,W,!1,te,J,H,U);return ee}(this,Q,Z,I,D,B)),X},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var I=this._writableState;I.corked&&(I.corked--,I.writing||I.corked||I.bufferProcessing||!I.bufferedRequest||q(this,I))},P.prototype.setDefaultEncoding=function(I){if(typeof I=="string"&&(I=I.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-1))throw new C(I);return this._writableState.defaultEncoding=I,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(I,D,B){B(new y("_write()"))},P.prototype._writev=null,P.prototype.end=function(I,D,B){var j=this._writableState;return typeof I=="function"?(B=I,I=null,D=null):typeof D=="function"&&(B=D,D=null),I!=null&&this.write(I,D),j.corked&&(j.corked=1,this.uncork()),j.ending||function(Q,X,Z){X.ending=!0,R(Q,X),Z&&(X.finished?e.nextTick(Z):Q.once("finish",Z)),X.ended=!0,Q.writable=!1}(this,j,B),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(I){this._writableState&&(this._writableState.destroyed=I)}}),P.prototype.destroy=c.destroy,P.prototype._undestroy=c.undestroy,P.prototype._destroy=function(I,D){D(I)}},2317:(r,s,i)=>{var f,e=i(9142);function l(E,S,C){return S in E?Object.defineProperty(E,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[S]=C,E}var n=i(5831),t=Symbol("lastResolve"),o=Symbol("lastReject"),d=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),g=Symbol("handlePromise"),p=Symbol("stream");function v(E,S){return{value:E,done:S}}function y(E){var S=E[t];if(S!==null){var C=E[p].read();C!==null&&(E[c]=null,E[t]=null,E[o]=null,S(v(C,!1)))}}function b(E){e.nextTick(y,E)}var A=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((l(f={get stream(){return this[p]},next:function(){var E=this,S=this[d];if(S!==null)return Promise.reject(S);if(this[u])return Promise.resolve(v(void 0,!0));if(this[p].destroyed)return new Promise(function(M,P){e.nextTick(function(){E[d]?P(E[d]):M(v(void 0,!0))})});var C,T=this[c];if(T)C=new Promise(function(M,P){return function(N,F){M.then(function(){P[u]?N(v(void 0,!0)):P[g](N,F)},F)}}(T,this));else{var k=this[p].read();if(k!==null)return Promise.resolve(v(k,!1));C=new Promise(this[g])}return this[c]=C,C}},Symbol.asyncIterator,function(){return this}),l(f,"return",function(){var E=this;return new Promise(function(S,C){E[p].destroy(null,function(T){T?C(T):S(v(void 0,!0))})})}),f),A);r.exports=function(E){var S,C=Object.create(x,(l(S={},p,{value:E,writable:!0}),l(S,t,{value:null,writable:!0}),l(S,o,{value:null,writable:!0}),l(S,d,{value:null,writable:!0}),l(S,u,{value:E._readableState.endEmitted,writable:!0}),l(S,g,{value:function(T,k){var M=C[p].read();M?(C[c]=null,C[t]=null,C[o]=null,T(v(M,!1))):(C[t]=T,C[o]=k)},writable:!0}),S));return C[c]=null,n(E,function(T){if(T&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"){var k=C[o];return k!==null&&(C[c]=null,C[t]=null,C[o]=null,k(T)),void(C[d]=T)}var M=C[t];M!==null&&(C[c]=null,C[t]=null,C[o]=null,M(v(void 0,!0))),C[u]=!0}),E.on("readable",b.bind(null,C)),C}},5392:(r,s,i)=>{function f(d,u){var c=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);u&&(g=g.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),c.push.apply(c,g)}return c}function e(d,u,c){return u in d?Object.defineProperty(d,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):d[u]=c,d}function l(d,u){for(var c=0;c<u.length;c++){var g=u[c];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}var n=i(9033).Buffer,t=i(2361).inspect,o=t&&t.custom||"inspect";r.exports=function(){function d(){(function(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")})(this,d),this.head=null,this.tail=null,this.length=0}var u,c;return u=d,c=[{key:"push",value:function(g){var p={data:g,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(g){var p={data:g,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var p=this.head,v=""+p.data;p=p.next;)v+=g+p.data;return v}},{key:"concat",value:function(g){if(this.length===0)return n.alloc(0);for(var p,v,y,b=n.allocUnsafe(g>>>0),A=this.head,x=0;A;)p=A.data,v=b,y=x,n.prototype.copy.call(p,v,y),x+=A.data.length,A=A.next;return b}},{key:"consume",value:function(g,p){var v;return g<this.head.data.length?(v=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):v=g===this.head.data.length?this.shift():p?this._getString(g):this._getBuffer(g),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var p=this.head,v=1,y=p.data;for(g-=y.length;p=p.next;){var b=p.data,A=g>b.length?b.length:g;if(A===b.length?y+=b:y+=b.slice(0,g),(g-=A)==0){A===b.length?(++v,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=b.slice(A));break}++v}return this.length-=v,y}},{key:"_getBuffer",value:function(g){var p=n.allocUnsafe(g),v=this.head,y=1;for(v.data.copy(p),g-=v.data.length;v=v.next;){var b=v.data,A=g>b.length?b.length:g;if(b.copy(p,p.length-g,0,A),(g-=A)==0){A===b.length?(++y,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(A));break}++y}return this.length-=y,p}},{key:o,value:function(g,p){return t(this,function(v){for(var y=1;y<arguments.length;y++){var b=arguments[y]!=null?arguments[y]:{};y%2?f(Object(b),!0).forEach(function(A){e(v,A,b[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(b)):f(Object(b)).forEach(function(A){Object.defineProperty(v,A,Object.getOwnPropertyDescriptor(b,A))})}return v}({},p,{depth:0,customInspect:!1}))}}],c&&l(u.prototype,c),d}()},7572:(r,s,i)=>{var f=i(9142);function e(t,o){n(t,o),l(t)}function l(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,o){t.emit("error",o)}r.exports={destroy:function(t,o){var d=this,u=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return u||c?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,f.nextTick(n,this,t)):f.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(g){!o&&g?d._writableState?d._writableState.errorEmitted?f.nextTick(l,d):(d._writableState.errorEmitted=!0,f.nextTick(e,d,g)):f.nextTick(e,d,g):o?(f.nextTick(l,d),o(g)):f.nextTick(l,d)}),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(t,o){var d=t._readableState,u=t._writableState;d&&d.autoDestroy||u&&u.autoDestroy?t.destroy(o):t.emit("error",o)}}},5831:(r,s,i)=>{var f=i(9024).q.ERR_STREAM_PREMATURE_CLOSE;function e(){}r.exports=function l(n,t,o){if(typeof t=="function")return l(n,null,t);t||(t={}),o=function(E){var S=!1;return function(){if(!S){S=!0;for(var C=arguments.length,T=new Array(C),k=0;k<C;k++)T[k]=arguments[k];E.apply(this,T)}}}(o||e);var d=t.readable||t.readable!==!1&&n.readable,u=t.writable||t.writable!==!1&&n.writable,c=function(){n.writable||p()},g=n._writableState&&n._writableState.finished,p=function(){u=!1,g=!0,d||o.call(n)},v=n._readableState&&n._readableState.endEmitted,y=function(){d=!1,v=!0,u||o.call(n)},b=function(E){o.call(n,E)},A=function(){var E;return d&&!v?(n._readableState&&n._readableState.ended||(E=new f),o.call(n,E)):u&&!g?(n._writableState&&n._writableState.ended||(E=new f),o.call(n,E)):void 0},x=function(){n.req.on("finish",p)};return function(E){return E.setHeader&&typeof E.abort=="function"}(n)?(n.on("complete",p),n.on("abort",A),n.req?x():n.on("request",x)):u&&!n._writableState&&(n.on("end",c),n.on("close",c)),n.on("end",y),n.on("finish",p),t.error!==!1&&n.on("error",b),n.on("close",A),function(){n.removeListener("complete",p),n.removeListener("abort",A),n.removeListener("request",x),n.req&&n.req.removeListener("finish",p),n.removeListener("end",c),n.removeListener("close",c),n.removeListener("finish",p),n.removeListener("end",y),n.removeListener("error",b),n.removeListener("close",A)}}},6218:r=>{r.exports=function(){throw new Error("Readable.from is not available in the browser")}},384:(r,s,i)=>{var f,e=i(9024).q,l=e.ERR_MISSING_ARGS,n=e.ERR_STREAM_DESTROYED;function t(u){if(u)throw u}function o(u){u()}function d(u,c){return u.pipe(c)}r.exports=function(){for(var u=arguments.length,c=new Array(u),g=0;g<u;g++)c[g]=arguments[g];var p,v=function(b){return b.length?typeof b[b.length-1]!="function"?t:b.pop():t}(c);if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new l("streams");var y=c.map(function(b,A){var x=A<c.length-1;return function(E,S,C,T){T=function(P){var N=!1;return function(){N||(N=!0,P.apply(void 0,arguments))}}(T);var k=!1;E.on("close",function(){k=!0}),f===void 0&&(f=i(5831)),f(E,{readable:S,writable:C},function(P){if(P)return T(P);k=!0,T()});var M=!1;return function(P){if(!k&&!M)return M=!0,function(N){return N.setHeader&&typeof N.abort=="function"}(E)?E.abort():typeof E.destroy=="function"?E.destroy():void T(P||new n("pipe"))}}(b,x,A>0,function(E){p||(p=E),E&&y.forEach(o),x||(y.forEach(o),v(p))})});return c.reduce(d)}},6756:(r,s,i)=>{var f=i(9024).q.ERR_INVALID_OPT_VALUE;r.exports={getHighWaterMark:function(e,l,n,t){var o=function(d,u,c){return d.highWaterMark!=null?d.highWaterMark:u?d[c]:null}(l,t,n);if(o!=null){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new f(t?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},7144:(r,s,i)=>{r.exports=i(8291).EventEmitter},6505:(r,s,i)=>{(s=r.exports=i(6297)).Stream=s,s.Readable=s,s.Writable=i(1471),s.Duplex=i(6884),s.Transform=i(9154),s.PassThrough=i(3582),s.finished=i(5831),s.pipeline=i(384)},6707:(r,s,i)=>{var f=i(9033).Buffer,e=i(1736),l=i(2353),n=new Array(16),t=[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],o=[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],d=[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],u=[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],c=[0,1518500249,1859775393,2400959708,2840853838],g=[1352829926,1548603684,1836072691,2053994217,0];function p(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function v(S,C){return S<<C|S>>>32-C}function y(S,C,T,k,M,P,N,F){return v(S+(C^T^k)+P+N|0,F)+M|0}function b(S,C,T,k,M,P,N,F){return v(S+(C&T|~C&k)+P+N|0,F)+M|0}function A(S,C,T,k,M,P,N,F){return v(S+((C|~T)^k)+P+N|0,F)+M|0}function x(S,C,T,k,M,P,N,F){return v(S+(C&k|T&~k)+P+N|0,F)+M|0}function E(S,C,T,k,M,P,N,F){return v(S+(C^(T|~k))+P+N|0,F)+M|0}e(p,l),p.prototype._update=function(){for(var S=n,C=0;C<16;++C)S[C]=this._block.readInt32LE(4*C);for(var T=0|this._a,k=0|this._b,M=0|this._c,P=0|this._d,N=0|this._e,F=0|this._a,q=0|this._b,z=0|this._c,O=0|this._d,R=0|this._e,I=0;I<80;I+=1){var D,B;I<16?(D=y(T,k,M,P,N,S[t[I]],c[0],d[I]),B=E(F,q,z,O,R,S[o[I]],g[0],u[I])):I<32?(D=b(T,k,M,P,N,S[t[I]],c[1],d[I]),B=x(F,q,z,O,R,S[o[I]],g[1],u[I])):I<48?(D=A(T,k,M,P,N,S[t[I]],c[2],d[I]),B=A(F,q,z,O,R,S[o[I]],g[2],u[I])):I<64?(D=x(T,k,M,P,N,S[t[I]],c[3],d[I]),B=b(F,q,z,O,R,S[o[I]],g[3],u[I])):(D=E(T,k,M,P,N,S[t[I]],c[4],d[I]),B=y(F,q,z,O,R,S[o[I]],g[4],u[I])),T=N,N=P,P=v(M,10),M=k,k=D,F=R,R=O,O=v(z,10),z=q,q=B}var j=this._b+M+O|0;this._b=this._c+P+R|0,this._c=this._d+N+F|0,this._d=this._e+T+q|0,this._e=this._a+k+z|0,this._a=j},p.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 S=f.alloc?f.alloc(20):new f(20);return S.writeInt32LE(this._a,0),S.writeInt32LE(this._b,4),S.writeInt32LE(this._c,8),S.writeInt32LE(this._d,12),S.writeInt32LE(this._e,16),S},r.exports=p},6905:(r,s,i)=>{var f=i(9033).Buffer;Object.defineProperty(s,"__esModule",{value:!0}),s.getLength=s.decode=s.encode=void 0;var e,l=(e=i(1734))&&e.__esModule?e:{default:e};function n(g,p){if(g[0]==="0"&&g[1]==="0")throw new Error("invalid RLP: extra zeros");return parseInt(g,p)}function t(g,p){if(g<56)return f.from([g+p]);var v=u(g),y=u(p+55+v.length/2);return f.from(y+v,"hex")}function o(g){var p,v,y,b,A,x=[],E=g[0];if(E<=127)return{data:g.slice(0,1),remainder:g.slice(1)};if(E<=183){if(p=E-127,y=E===128?f.from([]):g.slice(1,p),p===2&&y[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:y,remainder:g.slice(p)}}if(E<=191){if(v=E-182,g.length-1<v)throw new Error("invalid RLP: not enough bytes for string length");if((p=n(g.slice(1,v).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((y=g.slice(v,p+v)).length<p)throw new Error("invalid RLP: not enough bytes for string");return{data:y,remainder:g.slice(p+v)}}if(E<=247){for(p=E-191,b=g.slice(1,p);b.length;)A=o(b),x.push(A.data),b=A.remainder;return{data:x,remainder:g.slice(p)}}var S=(v=E-246)+(p=n(g.slice(1,v).toString("hex"),16));if(S>g.length)throw new Error("invalid rlp: total length is larger than the data");if((b=g.slice(v,S)).length===0)throw new Error("invalid rlp, List has a invalid length");for(;b.length;)A=o(b),x.push(A.data),b=A.remainder;return{data:x,remainder:g.slice(S)}}function d(g){return g.slice(0,2)==="0x"}function u(g){if(g<0)throw new Error("Invalid integer as argument, must be unsigned!");var p=g.toString(16);return p.length%2?"0"+p:p}function c(g){if(!f.isBuffer(g)){if(typeof g=="string")return d(g)?f.from((v=typeof(y=g)!="string"?y:d(y)?y.slice(2):y).length%2?"0"+v:v,"hex"):f.from(g);if(typeof g=="number"||typeof g=="bigint")return g?(p=u(g),f.from(p,"hex")):f.from([]);if(g==null)return f.from([]);if(g instanceof Uint8Array)return f.from(g);if(l.default.isBN(g))return f.from(g.toArray());throw new Error("invalid type")}var p,v,y;return g}s.encode=function g(p){if(Array.isArray(p)){for(var v=[],y=0;y<p.length;y++)v.push(g(p[y]));var b=f.concat(v);return f.concat([t(b.length,192),b])}var A=c(p);return A.length===1&&A[0]<128?A:f.concat([t(A.length,128),A])},s.decode=function(g,p){if(p===void 0&&(p=!1),!g||g.length===0)return f.from([]);var v=o(c(g));if(p)return v;if(v.remainder.length!==0)throw new Error("invalid remainder");return v.data},s.getLength=function(g){if(!g||g.length===0)return f.from([]);var p=c(g),v=p[0];if(v<=127)return p.length;if(v<=183)return v-127;if(v<=191)return v-182;if(v<=247)return v-191;var y=v-246;return y+n(p.slice(1,y).toString("hex"),16)}},8850:(r,s,i)=>{var f=i(9033),e=f.Buffer;function l(t,o){for(var d in t)o[d]=t[d]}function n(t,o,d){return e(t,o,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?r.exports=f:(l(f,s),s.Buffer=n),n.prototype=Object.create(e.prototype),l(e,n),n.from=function(t,o,d){if(typeof t=="number")throw new TypeError("Argument must not be a number");return e(t,o,d)},n.alloc=function(t,o,d){if(typeof t!="number")throw new TypeError("Argument must be a number");var u=e(t);return o!==void 0?typeof d=="string"?u.fill(o,d):u.fill(o):u.fill(0),u},n.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return e(t)},n.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return f.SlowBuffer(t)}},1755:(r,s,i)=>{var f,e=i(9142),l=i(8847)(i(3355)),n=i(9033),t=n.Buffer,o={};for(f in n)n.hasOwnProperty(f)&&f!=="SlowBuffer"&&f!=="Buffer"&&(o[f]=n[f]);var d=o.Buffer={};for(f in t)t.hasOwnProperty(f)&&f!=="allocUnsafe"&&f!=="allocUnsafeSlow"&&(d[f]=t[f]);if(o.Buffer.prototype=t.prototype,d.from&&d.from!==Uint8Array.from||(d.from=function(u,c,g){if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+(0,l.default)(u));if(u&&u.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+(0,l.default)(u));return t(u,c,g)}),d.alloc||(d.alloc=function(u,c,g){if(typeof u!="number")throw new TypeError('The "size" argument must be of type number. Received type '+(0,l.default)(u));if(u<0||u>=2147483648)throw new RangeError('The value "'+u+'" is invalid for option "size"');var p=t(u);return c&&c.length!==0?typeof g=="string"?p.fill(c,g):p.fill(c):p.fill(0),p}),!o.kStringMaxLength)try{o.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch{}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),r.exports=o},7799:r=>{(function(s){var i=2147483647;function f(v){var y=new Uint32Array([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]),b=1779033703,A=3144134277,x=1013904242,E=2773480762,S=1359893119,C=2600822924,T=528734635,k=1541459225,M=new Uint32Array(64);function P(I){for(var D=0,B=I.length;B>=64;){var j=b,Q=A,X=x,Z=E,L=S,W=C,G=T,J=k,H=void 0,U=void 0,K=void 0,te=void 0,ee=void 0;for(U=0;U<16;U++)K=D+4*U,M[U]=(255&I[K])<<24|(255&I[K+1])<<16|(255&I[K+2])<<8|255&I[K+3];for(U=16;U<64;U++)te=((H=M[U-2])>>>17|H<<15)^(H>>>19|H<<13)^H>>>10,ee=((H=M[U-15])>>>7|H<<25)^(H>>>18|H<<14)^H>>>3,M[U]=(te+M[U-7]|0)+(ee+M[U-16]|0)|0;for(U=0;U<64;U++)te=(((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&W^~L&G)|0)+(J+(y[U]+M[U]|0)|0)|0,ee=((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+(j&Q^j&X^Q&X)|0,J=G,G=W,W=L,L=Z+te|0,Z=X,X=Q,Q=j,j=te+ee|0;b=b+j|0,A=A+Q|0,x=x+X|0,E=E+Z|0,S=S+L|0,C=C+W|0,T=T+G|0,k=k+J|0,D+=64,B-=64}}P(v);var N,F=v.length%64,q=v.length/536870912|0,z=v.length<<3,O=F<56?56:120,R=v.slice(v.length-F,v.length);for(R.push(128),N=F+1;N<O;N++)R.push(0);return R.push(q>>>24&255),R.push(q>>>16&255),R.push(q>>>8&255),R.push(q>>>0&255),R.push(z>>>24&255),R.push(z>>>16&255),R.push(z>>>8&255),R.push(z>>>0&255),P(R),[b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,E>>>24&255,E>>>16&255,E>>>8&255,E>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,C>>>24&255,C>>>16&255,C>>>8&255,C>>>0&255,T>>>24&255,T>>>16&255,T>>>8&255,T>>>0&255,k>>>24&255,k>>>16&255,k>>>8&255,k>>>0&255]}function e(v,y,b){v=v.length<=64?v:f(v);var A,x=64+y.length+4,E=new Array(x),S=new Array(64),C=[];for(A=0;A<64;A++)E[A]=54;for(A=0;A<v.length;A++)E[A]^=v[A];for(A=0;A<y.length;A++)E[64+A]=y[A];for(A=x-4;A<x;A++)E[A]=0;for(A=0;A<64;A++)S[A]=92;for(A=0;A<v.length;A++)S[A]^=v[A];function T(){for(var k=x-1;k>=x-4;k--){if(E[k]++,E[k]<=255)return;E[k]=0}}for(;b>=32;)T(),C=C.concat(f(S.concat(f(E)))),b-=32;return b>0&&(T(),C=C.concat(f(S.concat(f(E))).slice(0,b))),C}function l(v,y,b,A,x){var E;for(d(v,16*(2*b-1),x,0,16),E=0;E<2*b;E++)o(v,16*E,x,16),t(x,A),d(x,0,v,y+16*E,16);for(E=0;E<b;E++)d(v,y+2*E*16,v,16*E,16);for(E=0;E<b;E++)d(v,y+16*(2*E+1),v,16*(E+b),16)}function n(v,y){return v<<y|v>>>32-y}function t(v,y){d(v,0,y,0,16);for(var b=8;b>0;b-=2)y[4]^=n(y[0]+y[12],7),y[8]^=n(y[4]+y[0],9),y[12]^=n(y[8]+y[4],13),y[0]^=n(y[12]+y[8],18),y[9]^=n(y[5]+y[1],7),y[13]^=n(y[9]+y[5],9),y[1]^=n(y[13]+y[9],13),y[5]^=n(y[1]+y[13],18),y[14]^=n(y[10]+y[6],7),y[2]^=n(y[14]+y[10],9),y[6]^=n(y[2]+y[14],13),y[10]^=n(y[6]+y[2],18),y[3]^=n(y[15]+y[11],7),y[7]^=n(y[3]+y[15],9),y[11]^=n(y[7]+y[3],13),y[15]^=n(y[11]+y[7],18),y[1]^=n(y[0]+y[3],7),y[2]^=n(y[1]+y[0],9),y[3]^=n(y[2]+y[1],13),y[0]^=n(y[3]+y[2],18),y[6]^=n(y[5]+y[4],7),y[7]^=n(y[6]+y[5],9),y[4]^=n(y[7]+y[6],13),y[5]^=n(y[4]+y[7],18),y[11]^=n(y[10]+y[9],7),y[8]^=n(y[11]+y[10],9),y[9]^=n(y[8]+y[11],13),y[10]^=n(y[9]+y[8],18),y[12]^=n(y[15]+y[14],7),y[13]^=n(y[12]+y[15],9),y[14]^=n(y[13]+y[12],13),y[15]^=n(y[14]+y[13],18);for(var A=0;A<16;++A)v[A]+=y[A]}function o(v,y,b,A){for(var x=0;x<A;x++)b[x]^=v[y+x]}function d(v,y,b,A,x){for(;x--;)b[A++]=v[y++]}function u(v){if(!v||typeof v.length!="number")return!1;for(var y=0;y<v.length;y++){var b=v[y];if(typeof b!="number"||b%1||b<0||b>=256)return!1}return!0}function c(v,y){if(typeof v!="number"||v%1)throw new Error("invalid "+y);return v}function g(v,y,b,A,x,E,S){if(b=c(b,"N"),A=c(A,"r"),x=c(x,"p"),E=c(E,"dkLen"),b===0||(b&b-1)!=0)throw new Error("N must be power of 2");if(b>i/128/A)throw new Error("N too large");if(A>i/128/x)throw new Error("r too large");if(!u(v))throw new Error("password must be an array or buffer");if(v=Array.prototype.slice.call(v),!u(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);for(var C=e(v,y,128*x*A),T=new Uint32Array(32*x*A),k=0;k<T.length;k++){var M=4*k;T[k]=(255&C[M+3])<<24|(255&C[M+2])<<16|(255&C[M+1])<<8|(255&C[M+0])<<0}var P,N,F=new Uint32Array(64*A),q=new Uint32Array(32*A*b),z=32*A,O=new Uint32Array(16),R=new Uint32Array(16),I=x*b*2,D=0,B=null,j=!1,Q=0,X=0,Z=S?parseInt(1e3/A):4294967295,L=typeof setImmediate<"u"?setImmediate:setTimeout,W=function J(){if(j)return S(new Error("cancelled"),D/I);var H;switch(Q){case 0:d(T,N=32*X*A,F,0,z),Q=1,P=0;case 1:(H=b-P)>Z&&(H=Z);for(var U=0;U<H;U++)d(F,0,q,(P+U)*z,z),l(F,z,A,O,R);if(P+=H,D+=H,S){var K=parseInt(1e3*D/I);if(K!==B){if(j=S(null,D/I))break;B=K}}if(P<b)break;P=0,Q=2;case 2:(H=b-P)>Z&&(H=Z);for(var te=0;te<H;te++){var ee=F[16*(2*A-1)]&b-1;o(q,ee*z,F,z),l(F,z,A,O,R)}if(P+=H,D+=H,S){var ie=parseInt(1e3*D/I);if(ie!==B){if(j=S(null,D/I))break;B=ie}}if(P<b)break;if(d(F,0,T,N,z),++X<x){Q=0;break}C=[];for(var se=0;se<T.length;se++)C.push(T[se]>>0&255),C.push(T[se]>>8&255),C.push(T[se]>>16&255),C.push(T[se]>>24&255);var ne=e(v,C,E);return S&&S(null,1,ne),ne}S&&L(J)};if(!S)for(;;){var G=W();if(G!=null)return G}W()}var p={scrypt:function(v,y,b,A,x,E,S){return new Promise(function(C,T){var k=0;S&&S(0),g(v,y,b,A,x,E,function(M,P,N){if(M)T(M);else if(N)S&&k!==1&&S(1),C(new Uint8Array(N));else if(S&&P!==k)return k=P,S(P)})})},syncScrypt:function(v,y,b,A,x,E){return new Uint8Array(g(v,y,b,A,x,E))}};r.exports=p})()},7902:(r,s,i)=>{r.exports=i(6922)(i(8123))},8123:(r,s,i)=>{var f=new(i(6597)).ec("secp256k1"),e=f.curve,l=e.n.constructor;function n(o){var d=o[0];switch(d){case 2:case 3:return o.length!==33?null:function(u,c){var g=new l(c);if(g.cmp(e.p)>=0)return null;var p=(g=g.toRed(e.red)).redSqr().redIMul(g).redIAdd(e.b).redSqrt();return u===3!==p.isOdd()&&(p=p.redNeg()),f.keyPair({pub:{x:g,y:p}})}(d,o.subarray(1,33));case 4:case 6:case 7:return o.length!==65?null:function(u,c,g){var p=new l(c),v=new l(g);if(p.cmp(e.p)>=0||v.cmp(e.p)>=0||(p=p.toRed(e.red),v=v.toRed(e.red),(u===6||u===7)&&v.isOdd()!==(u===7)))return null;var y=p.redSqr().redIMul(p);return v.redSqr().redISub(y.redIAdd(e.b)).isZero()?f.keyPair({pub:{x:p,y:v}}):null}(d,o.subarray(1,33),o.subarray(33,65));default:return null}}function t(o,d){for(var u=d.encode(null,o.length===33),c=0;c<o.length;++c)o[c]=u[c]}r.exports={contextRandomize:function(){return 0},privateKeyVerify:function(o){var d=new l(o);return d.cmp(e.n)<0&&!d.isZero()?0:1},privateKeyNegate:function(o){var d=new l(o),u=e.n.sub(d).umod(e.n).toArrayLike(Uint8Array,"be",32);return o.set(u),0},privateKeyTweakAdd:function(o,d){var u=new l(d);if(u.cmp(e.n)>=0||(u.iadd(new l(o)),u.cmp(e.n)>=0&&u.isub(e.n),u.isZero()))return 1;var c=u.toArrayLike(Uint8Array,"be",32);return o.set(c),0},privateKeyTweakMul:function(o,d){var u=new l(d);if(u.cmp(e.n)>=0||u.isZero())return 1;u.imul(new l(o)),u.cmp(e.n)>=0&&(u=u.umod(e.n));var c=u.toArrayLike(Uint8Array,"be",32);return o.set(c),0},publicKeyVerify:function(o){return n(o)===null?1:0},publicKeyCreate:function(o,d){var u=new l(d);return u.cmp(e.n)>=0||u.isZero()?1:(t(o,f.keyFromPrivate(d).getPublic()),0)},publicKeyConvert:function(o,d){var u=n(d);return u===null?1:(t(o,u.getPublic()),0)},publicKeyNegate:function(o,d){var u=n(d);if(u===null)return 1;var c=u.getPublic();return c.y=c.y.redNeg(),t(o,c),0},publicKeyCombine:function(o,d){for(var u=new Array(d.length),c=0;c<d.length;++c)if(u[c]=n(d[c]),u[c]===null)return 1;for(var g=u[0].getPublic(),p=1;p<u.length;++p)g=g.add(u[p].pub);return g.isInfinity()?2:(t(o,g),0)},publicKeyTweakAdd:function(o,d,u){var c=n(d);if(c===null)return 1;if((u=new l(u)).cmp(e.n)>=0)return 2;var g=c.getPublic().add(e.g.mul(u));return g.isInfinity()?2:(t(o,g),0)},publicKeyTweakMul:function(o,d,u){var c=n(d);return c===null?1:(u=new l(u)).cmp(e.n)>=0||u.isZero()?2:(t(o,c.getPublic().mul(u)),0)},signatureNormalize:function(o){var d=new l(o.subarray(0,32)),u=new l(o.subarray(32,64));return d.cmp(e.n)>=0||u.cmp(e.n)>=0?1:(u.cmp(f.nh)===1&&o.set(e.n.sub(u).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(o,d){var u=d.subarray(0,32),c=d.subarray(32,64);if(new l(u).cmp(e.n)>=0||new l(c).cmp(e.n)>=0)return 1;var g=o.output,p=g.subarray(4,37);p[0]=0,p.set(u,1);for(var v=33,y=0;v>1&&p[y]===0&&!(128&p[y+1]);--v,++y);if(128&(p=p.subarray(y))[0]||v>1&&p[0]===0&&!(128&p[1]))return 1;var b=g.subarray(39,72);b[0]=0,b.set(c,1);for(var A=33,x=0;A>1&&b[x]===0&&!(128&b[x+1]);--A,++x);return 128&(b=b.subarray(x))[0]||A>1&&b[0]===0&&!(128&b[1])?1:(o.outputlen=6+v+A,g[0]=48,g[1]=o.outputlen-2,g[2]=2,g[3]=p.length,g.set(p,4),g[4+v]=2,g[5+v]=b.length,g.set(b,6+v),0)},signatureImport:function(o,d){if(d.length<8||d.length>72||d[0]!==48||d[1]!==d.length-2||d[2]!==2)return 1;var u=d[3];if(u===0||5+u>=d.length||d[4+u]!==2)return 1;var c=d[5+u];if(c===0||6+u+c!==d.length||128&d[4]||u>1&&d[4]===0&&!(128&d[5])||128&d[u+6]||c>1&&d[u+6]===0&&!(128&d[u+7]))return 1;var g=d.subarray(4,4+u);if(g.length===33&&g[0]===0&&(g=g.subarray(1)),g.length>32)return 1;var p=d.subarray(6+u);if(p.length===33&&p[0]===0&&(p=p.slice(1)),p.length>32)throw new Error("S length is too long");var v=new l(g);v.cmp(e.n)>=0&&(v=new l(0));var y=new l(d.subarray(6+u));return y.cmp(e.n)>=0&&(y=new l(0)),o.set(v.toArrayLike(Uint8Array,"be",32),0),o.set(y.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(o,d,u,c,g){if(g){var p=g;g=function(b){var A=p(d,u,null,c,b);if(!(A instanceof Uint8Array&&A.length===32))throw new Error("This is the way");return new l(A)}}var v,y=new l(u);if(y.cmp(e.n)>=0||y.isZero())return 1;try{v=f.sign(d,u,{canonical:!0,k:g,pers:c})}catch{return 1}return o.signature.set(v.r.toArrayLike(Uint8Array,"be",32),0),o.signature.set(v.s.toArrayLike(Uint8Array,"be",32),32),o.recid=v.recoveryParam,0},ecdsaVerify:function(o,d,u){var c={r:o.subarray(0,32),s:o.subarray(32,64)},g=new l(c.r),p=new l(c.s);if(g.cmp(e.n)>=0||p.cmp(e.n)>=0)return 1;if(p.cmp(f.nh)===1||g.isZero()||p.isZero())return 3;var v=n(u);if(v===null)return 2;var y=v.getPublic();return f.verify(d,c,y)?0:3},ecdsaRecover:function(o,d,u,c){var g,p={r:d.slice(0,32),s:d.slice(32,64)},v=new l(p.r),y=new l(p.s);if(v.cmp(e.n)>=0||y.cmp(e.n)>=0)return 1;if(v.isZero()||y.isZero())return 2;try{g=f.recoverPubKey(c,p,u)}catch{return 2}return t(o,g),0},ecdh:function(o,d,u,c,g,p,v){var y=n(d);if(y===null)return 1;var b=new l(u);if(b.cmp(e.n)>=0||b.isZero())return 2;var A=y.getPublic().mul(b);if(g===void 0)for(var x=A.encode(null,!0),E=f.hash().update(x).digest(),S=0;S<32;++S)o[S]=E[S];else{p||(p=new Uint8Array(32));for(var C=A.getX().toArray("be",32),T=0;T<32;++T)p[T]=C[T];v||(v=new Uint8Array(32));for(var k=A.getY().toArray("be",32),M=0;M<32;++M)v[M]=k[M];var P=g(p,v,c);if(!(P instanceof Uint8Array&&P.length===o.length))return 2;o.set(P)}return 0}}},6922:r=>{function s(p,v){(v==null||v>p.length)&&(v=p.length);for(var y=0,b=new Array(v);y<v;y++)b[y]=p[y];return b}var i="Impossible case. Please create issue.",f="The tweak was out of range or the resulted private key is invalid",e="The tweak was out of range or equal to zero",l="Public Key could not be parsed",n="Public Key serialization error",t="Signature could not be parsed";function o(p,v){if(!p)throw new Error(v)}function d(p,v,y){if(o(v instanceof Uint8Array,"Expected ".concat(p," to be an Uint8Array")),y!==void 0)if(Array.isArray(y)){var b=y.join(", "),A="Expected ".concat(p," to be an Uint8Array with length [").concat(b,"]");o(y.includes(v.length),A)}else{var x="Expected ".concat(p," to be an Uint8Array with length ").concat(y);o(v.length===y,x)}}function u(p){o(g(p)==="Boolean","Expected compressed to be a Boolean")}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(y){return new Uint8Array(y)},v=arguments.length>1?arguments[1]:void 0;return typeof p=="function"&&(p=p(v)),d("output",p,v),p}function g(p){return Object.prototype.toString.call(p).slice(8,-1)}r.exports=function(p){return{contextRandomize:function(v){if(o(v===null||v instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),v!==null&&d("seed",v,32),p.contextRandomize(v)===1)throw new Error("Unknow error on context randomization")},privateKeyVerify:function(v){return d("private key",v,32),p.privateKeyVerify(v)===0},privateKeyNegate:function(v){switch(d("private key",v,32),p.privateKeyNegate(v)){case 0:return v;case 1:throw new Error(i)}},privateKeyTweakAdd:function(v,y){switch(d("private key",v,32),d("tweak",y,32),p.privateKeyTweakAdd(v,y)){case 0:return v;case 1:throw new Error(f)}},privateKeyTweakMul:function(v,y){switch(d("private key",v,32),d("tweak",y,32),p.privateKeyTweakMul(v,y)){case 0:return v;case 1:throw new Error(e)}},publicKeyVerify:function(v){return d("public key",v,[33,65]),p.publicKeyVerify(v)===0},publicKeyCreate:function(v){var y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],b=arguments.length>2?arguments[2]:void 0;switch(d("private key",v,32),u(y),b=c(b,y?33:65),p.publicKeyCreate(b,v)){case 0:return b;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(n)}},publicKeyConvert:function(v){var y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],b=arguments.length>2?arguments[2]:void 0;switch(d("public key",v,[33,65]),u(y),b=c(b,y?33:65),p.publicKeyConvert(b,v)){case 0:return b;case 1:throw new Error(l);case 2:throw new Error(n)}},publicKeyNegate:function(v){var y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],b=arguments.length>2?arguments[2]:void 0;switch(d("public key",v,[33,65]),u(y),b=c(b,y?33:65),p.publicKeyNegate(b,v)){case 0:return b;case 1:throw new Error(l);case 2:throw new Error(i);case 3:throw new Error(n)}},publicKeyCombine:function(v){var y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],b=arguments.length>2?arguments[2]:void 0;o(Array.isArray(v),"Expected public keys to be an Array"),o(v.length>0,"Expected public keys array will have more than zero items");var A,x=function(E,S){var C=typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(!C){if(Array.isArray(E)||(C=function(F,q){if(F){if(typeof F=="string")return s(F,q);var z=Object.prototype.toString.call(F).slice(8,-1);return z==="Object"&&F.constructor&&(z=F.constructor.name),z==="Map"||z==="Set"?Array.from(F):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?s(F,q):void 0}}(E))||S&&E&&typeof E.length=="number"){C&&(E=C);var T=0,k=function(){};return{s:k,n:function(){return T>=E.length?{done:!0}:{done:!1,value:E[T++]}},e:function(F){throw F},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,P=!0,N=!1;return{s:function(){C=C.call(E)},n:function(){var F=C.next();return P=F.done,F},e:function(F){N=!0,M=F},f:function(){try{P||C.return==null||C.return()}finally{if(N)throw M}}}}(v);try{for(x.s();!(A=x.n()).done;)d("public key",A.value,[33,65])}catch(E){x.e(E)}finally{x.f()}switch(u(y),b=c(b,y?33:65),p.publicKeyCombine(b,v)){case 0:return b;case 1:throw new Error(l);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(n)}},publicKeyTweakAdd:function(v,y){var b=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],A=arguments.length>3?arguments[3]:void 0;switch(d("public key",v,[33,65]),d("tweak",y,32),u(b),A=c(A,b?33:65),p.publicKeyTweakAdd(A,v,y)){case 0:return A;case 1:throw new Error(l);case 2:throw new Error(f)}},publicKeyTweakMul:function(v,y){var b=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],A=arguments.length>3?arguments[3]:void 0;switch(d("public key",v,[33,65]),d("tweak",y,32),u(b),A=c(A,b?33:65),p.publicKeyTweakMul(A,v,y)){case 0:return A;case 1:throw new Error(l);case 2:throw new Error(e)}},signatureNormalize:function(v){switch(d("signature",v,64),p.signatureNormalize(v)){case 0:return v;case 1:throw new Error(t)}},signatureExport:function(v,y){d("signature",v,64);var b={output:y=c(y,72),outputlen:72};switch(p.signatureExport(b,v)){case 0:return y.slice(0,b.outputlen);case 1:throw new Error(t);case 2:throw new Error(i)}},signatureImport:function(v,y){switch(d("signature",v),y=c(y,64),p.signatureImport(y,v)){case 0:return y;case 1:throw new Error(t);case 2:throw new Error(i)}},ecdsaSign:function(v,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=arguments.length>3?arguments[3]:void 0;d("message",v,32),d("private key",y,32),o(g(b)==="Object","Expected options to be an Object"),b.data!==void 0&&d("options.data",b.data),b.noncefn!==void 0&&o(g(b.noncefn)==="Function","Expected options.noncefn to be a Function");var x={signature:A=c(A,64),recid:null};switch(p.ecdsaSign(x,v,y,b.data,b.noncefn)){case 0:return x;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(i)}},ecdsaVerify:function(v,y,b){switch(d("signature",v,64),d("message",y,32),d("public key",b,[33,65]),p.ecdsaVerify(v,y,b)){case 0:return!0;case 3:return!1;case 1:throw new Error(t);case 2:throw new Error(l)}},ecdsaRecover:function(v,y,b){var A=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],x=arguments.length>4?arguments[4]:void 0;switch(d("signature",v,64),o(g(y)==="Number"&&y>=0&&y<=3,"Expected recovery id to be a Number within interval [0, 3]"),d("message",b,32),u(A),x=c(x,A?33:65),p.ecdsaRecover(x,v,y,b)){case 0:return x;case 1:throw new Error(t);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(i)}},ecdh:function(v,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=arguments.length>3?arguments[3]:void 0;switch(d("public key",v,[33,65]),d("private key",y,32),o(g(b)==="Object","Expected options to be an Object"),b.data!==void 0&&d("options.data",b.data),b.hashfn!==void 0?(o(g(b.hashfn)==="Function","Expected options.hashfn to be a Function"),b.xbuf!==void 0&&d("options.xbuf",b.xbuf,32),b.ybuf!==void 0&&d("options.ybuf",b.ybuf,32),d("output",A)):A=c(A,32),p.ecdh(A,v,y,b.data,b.hashfn,b.xbuf,b.ybuf)){case 0:return A;case 1:throw new Error(l);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}}},6003:(r,s,i)=>{var f=i(8850).Buffer;function e(l,n){this._block=f.alloc(l),this._finalSize=n,this._blockSize=l,this._len=0}e.prototype.update=function(l,n){typeof l=="string"&&(n=n||"utf8",l=f.from(l,n));for(var t=this._block,o=this._blockSize,d=l.length,u=this._len,c=0;c<d;){for(var g=u%o,p=Math.min(d-c,o-g),v=0;v<p;v++)t[g+v]=l[c+v];c+=p,(u+=p)%o==0&&this._update(t)}return this._len+=d,this},e.prototype.digest=function(l){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=8*this._len;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var o=(4294967295&t)>>>0,d=(t-o)/4294967296;this._block.writeUInt32BE(d,this._blockSize-8),this._block.writeUInt32BE(o,this._blockSize-4)}this._update(this._block);var u=this._hash();return l?u.toString(l):u},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},r.exports=e},1708:(r,s,i)=>{var f=r.exports=function(e){e=e.toLowerCase();var l=f[e];if(!l)throw new Error(e+" is not supported (we accept pull requests)");return new l};f.sha=i(8210),f.sha1=i(544),f.sha224=i(6288),f.sha256=i(4571),f.sha384=i(6959),f.sha512=i(4515)},8210:(r,s,i)=>{var f=i(1736),e=i(6003),l=i(8850).Buffer,n=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function o(){this.init(),this._w=t,e.call(this,64,56)}function d(c){return c<<30|c>>>2}function u(c,g,p,v){return c===0?g&p|~g&v:c===2?g&p|g&v|p&v:g^p^v}f(o,e),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(c){for(var g,p=this._w,v=0|this._a,y=0|this._b,b=0|this._c,A=0|this._d,x=0|this._e,E=0;E<16;++E)p[E]=c.readInt32BE(4*E);for(;E<80;++E)p[E]=p[E-3]^p[E-8]^p[E-14]^p[E-16];for(var S=0;S<80;++S){var C=~~(S/20),T=0|((g=v)<<5|g>>>27)+u(C,y,b,A)+x+p[S]+n[C];x=A,A=b,b=d(y),y=v,v=T}this._a=v+this._a|0,this._b=y+this._b|0,this._c=b+this._c|0,this._d=A+this._d|0,this._e=x+this._e|0},o.prototype._hash=function(){var c=l.allocUnsafe(20);return c.writeInt32BE(0|this._a,0),c.writeInt32BE(0|this._b,4),c.writeInt32BE(0|this._c,8),c.writeInt32BE(0|this._d,12),c.writeInt32BE(0|this._e,16),c},r.exports=o},544:(r,s,i)=>{var f=i(1736),e=i(6003),l=i(8850).Buffer,n=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function o(){this.init(),this._w=t,e.call(this,64,56)}function d(g){return g<<5|g>>>27}function u(g){return g<<30|g>>>2}function c(g,p,v,y){return g===0?p&v|~p&y:g===2?p&v|p&y|v&y:p^v^y}f(o,e),o.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},o.prototype._update=function(g){for(var p,v=this._w,y=0|this._a,b=0|this._b,A=0|this._c,x=0|this._d,E=0|this._e,S=0;S<16;++S)v[S]=g.readInt32BE(4*S);for(;S<80;++S)v[S]=(p=v[S-3]^v[S-8]^v[S-14]^v[S-16])<<1|p>>>31;for(var C=0;C<80;++C){var T=~~(C/20),k=d(y)+c(T,b,A,x)+E+v[C]+n[T]|0;E=x,x=A,A=u(b),b=y,y=k}this._a=y+this._a|0,this._b=b+this._b|0,this._c=A+this._c|0,this._d=x+this._d|0,this._e=E+this._e|0},o.prototype._hash=function(){var g=l.allocUnsafe(20);return g.writeInt32BE(0|this._a,0),g.writeInt32BE(0|this._b,4),g.writeInt32BE(0|this._c,8),g.writeInt32BE(0|this._d,12),g.writeInt32BE(0|this._e,16),g},r.exports=o},6288:(r,s,i)=>{var f=i(1736),e=i(4571),l=i(6003),n=i(8850).Buffer,t=new Array(64);function o(){this.init(),this._w=t,l.call(this,64,56)}f(o,e),o.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},o.prototype._hash=function(){var d=n.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},r.exports=o},4571:(r,s,i)=>{var f=i(1736),e=i(6003),l=i(8850).Buffer,n=[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],t=new Array(64);function o(){this.init(),this._w=t,e.call(this,64,56)}function d(v,y,b){return b^v&(y^b)}function u(v,y,b){return v&y|b&(v|y)}function c(v){return(v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10)}function g(v){return(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7)}function p(v){return(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3}f(o,e),o.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},o.prototype._update=function(v){for(var y,b=this._w,A=0|this._a,x=0|this._b,E=0|this._c,S=0|this._d,C=0|this._e,T=0|this._f,k=0|this._g,M=0|this._h,P=0;P<16;++P)b[P]=v.readInt32BE(4*P);for(;P<64;++P)b[P]=0|(((y=b[P-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+b[P-7]+p(b[P-15])+b[P-16];for(var N=0;N<64;++N){var F=M+g(C)+d(C,T,k)+n[N]+b[N]|0,q=c(A)+u(A,x,E)|0;M=k,k=T,T=C,C=S+F|0,S=E,E=x,x=A,A=F+q|0}this._a=A+this._a|0,this._b=x+this._b|0,this._c=E+this._c|0,this._d=S+this._d|0,this._e=C+this._e|0,this._f=T+this._f|0,this._g=k+this._g|0,this._h=M+this._h|0},o.prototype._hash=function(){var v=l.allocUnsafe(32);return v.writeInt32BE(this._a,0),v.writeInt32BE(this._b,4),v.writeInt32BE(this._c,8),v.writeInt32BE(this._d,12),v.writeInt32BE(this._e,16),v.writeInt32BE(this._f,20),v.writeInt32BE(this._g,24),v.writeInt32BE(this._h,28),v},r.exports=o},6959:(r,s,i)=>{var f=i(1736),e=i(4515),l=i(6003),n=i(8850).Buffer,t=new Array(160);function o(){this.init(),this._w=t,l.call(this,128,112)}f(o,e),o.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},o.prototype._hash=function(){var d=n.allocUnsafe(48);function u(c,g,p){d.writeInt32BE(c,p),d.writeInt32BE(g,p+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),d},r.exports=o},4515:(r,s,i)=>{var f=i(1736),e=i(6003),l=i(8850).Buffer,n=[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],t=new Array(160);function o(){this.init(),this._w=t,e.call(this,128,112)}function d(x,E,S){return S^x&(E^S)}function u(x,E,S){return x&E|S&(x|E)}function c(x,E){return(x>>>28|E<<4)^(E>>>2|x<<30)^(E>>>7|x<<25)}function g(x,E){return(x>>>14|E<<18)^(x>>>18|E<<14)^(E>>>9|x<<23)}function p(x,E){return(x>>>1|E<<31)^(x>>>8|E<<24)^x>>>7}function v(x,E){return(x>>>1|E<<31)^(x>>>8|E<<24)^(x>>>7|E<<25)}function y(x,E){return(x>>>19|E<<13)^(E>>>29|x<<3)^x>>>6}function b(x,E){return(x>>>19|E<<13)^(E>>>29|x<<3)^(x>>>6|E<<26)}function A(x,E){return x>>>0<E>>>0?1:0}f(o,e),o.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},o.prototype._update=function(x){for(var E=this._w,S=0|this._ah,C=0|this._bh,T=0|this._ch,k=0|this._dh,M=0|this._eh,P=0|this._fh,N=0|this._gh,F=0|this._hh,q=0|this._al,z=0|this._bl,O=0|this._cl,R=0|this._dl,I=0|this._el,D=0|this._fl,B=0|this._gl,j=0|this._hl,Q=0;Q<32;Q+=2)E[Q]=x.readInt32BE(4*Q),E[Q+1]=x.readInt32BE(4*Q+4);for(;Q<160;Q+=2){var X=E[Q-30],Z=E[Q-30+1],L=p(X,Z),W=v(Z,X),G=y(X=E[Q-4],Z=E[Q-4+1]),J=b(Z,X),H=E[Q-14],U=E[Q-14+1],K=E[Q-32],te=E[Q-32+1],ee=W+U|0,ie=L+H+A(ee,W)|0;ie=(ie=ie+G+A(ee=ee+J|0,J)|0)+K+A(ee=ee+te|0,te)|0,E[Q]=ie,E[Q+1]=ee}for(var se=0;se<160;se+=2){ie=E[se],ee=E[se+1];var ne=u(S,C,T),re=u(q,z,O),Y=c(S,q),V=c(q,S),oe=g(M,I),fe=g(I,M),ce=n[se],he=n[se+1],le=d(M,P,N),ae=d(I,D,B),ue=j+fe|0,de=F+oe+A(ue,j)|0;de=(de=(de=de+le+A(ue=ue+ae|0,ae)|0)+ce+A(ue=ue+he|0,he)|0)+ie+A(ue=ue+ee|0,ee)|0;var ve=V+re|0,me=Y+ne+A(ve,V)|0;F=N,j=B,N=P,B=D,P=M,D=I,M=k+de+A(I=R+ue|0,R)|0,k=T,R=O,T=C,O=z,C=S,z=q,S=de+me+A(q=ue+ve|0,ue)|0}this._al=this._al+q|0,this._bl=this._bl+z|0,this._cl=this._cl+O|0,this._dl=this._dl+R|0,this._el=this._el+I|0,this._fl=this._fl+D|0,this._gl=this._gl+B|0,this._hl=this._hl+j|0,this._ah=this._ah+S+A(this._al,q)|0,this._bh=this._bh+C+A(this._bl,z)|0,this._ch=this._ch+T+A(this._cl,O)|0,this._dh=this._dh+k+A(this._dl,R)|0,this._eh=this._eh+M+A(this._el,I)|0,this._fh=this._fh+P+A(this._fl,D)|0,this._gh=this._gh+N+A(this._gl,B)|0,this._hh=this._hh+F+A(this._hl,j)|0},o.prototype._hash=function(){var x=l.allocUnsafe(64);function E(S,C,T){x.writeInt32BE(S,T),x.writeInt32BE(C,T+4)}return E(this._ah,this._al,0),E(this._bh,this._bl,8),E(this._ch,this._cl,16),E(this._dh,this._dl,24),E(this._eh,this._el,32),E(this._fh,this._fl,40),E(this._gh,this._gl,48),E(this._hh,this._hl,56),x},r.exports=o},7245:(r,s,i)=>{r.exports=e;var f=i(8291).EventEmitter;function e(){f.call(this)}i(1736)(e,f),e.Readable=i(6297),e.Writable=i(1471),e.Duplex=i(6884),e.Transform=i(9154),e.PassThrough=i(3582),e.finished=i(5831),e.pipeline=i(384),e.Stream=e,e.prototype.pipe=function(l,n){var t=this;function o(y){l.writable&&l.write(y)===!1&&t.pause&&t.pause()}function d(){t.readable&&t.resume&&t.resume()}t.on("data",o),l.on("drain",d),l._isStdio||n&&n.end===!1||(t.on("end",c),t.on("close",g));var u=!1;function c(){u||(u=!0,l.end())}function g(){u||(u=!0,typeof l.destroy=="function"&&l.destroy())}function p(y){if(v(),f.listenerCount(this,"error")===0)throw y}function v(){t.removeListener("data",o),l.removeListener("drain",d),t.removeListener("end",c),t.removeListener("close",g),t.removeListener("error",p),l.removeListener("error",p),t.removeListener("end",v),t.removeListener("close",v),l.removeListener("close",v)}return t.on("error",p),l.on("error",p),t.on("end",v),t.on("close",v),l.on("close",v),l.emit("pipe",t),l}},9519:(r,s,i)=>{var f=i(8844),e=i(3319),l=i(7705),n=i(3675),t=i(1143),o=s;o.request=function(d,u){d=typeof d=="string"?t.parse(d):l(d);var c=i.g.location.protocol.search(/^https?:$/)===-1?"http:":"",g=d.protocol||c,p=d.hostname||d.host,v=d.port,y=d.path||"/";p&&p.indexOf(":")!==-1&&(p="["+p+"]"),d.url=(p?g+"//"+p:"")+(v?":"+v:"")+y,d.method=(d.method||"GET").toUpperCase(),d.headers=d.headers||{};var b=new f(d);return u&&b.on("response",u),b},o.get=function(d,u){var c=o.request(d,u);return c.end(),c},o.ClientRequest=f,o.IncomingMessage=e.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},3928:(r,s,i)=>{var f;function e(){if(f!==void 0)return f;if(i.g.XMLHttpRequest){f=new i.g.XMLHttpRequest;try{f.open("GET",i.g.XDomainRequest?"/":"https://example.com")}catch{f=null}}else f=null;return f}function l(t){var o=e();if(!o)return!1;try{return o.responseType=t,o.responseType===t}catch{}return!1}function n(t){return typeof t=="function"}s.fetch=n(i.g.fetch)&&n(i.g.ReadableStream),s.writableStream=n(i.g.WritableStream),s.abortController=n(i.g.AbortController),s.arraybuffer=s.fetch||l("arraybuffer"),s.msstream=!s.fetch&&l("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&l("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!e()&&n(e().overrideMimeType),f=null},8844:(r,s,i)=>{var f=i(9033).Buffer,e=i(9142),l=i(3928),n=i(1736),t=i(3319),o=i(6505),d=t.IncomingMessage,u=t.readyStates,c=r.exports=function(p){var v,y=this;o.Writable.call(y),y._opts=p,y._body=[],y._headers={},p.auth&&y.setHeader("Authorization","Basic "+f.from(p.auth).toString("base64")),Object.keys(p.headers).forEach(function(A){y.setHeader(A,p.headers[A])});var b=!0;if(p.mode==="disable-fetch"||"requestTimeout"in p&&!l.abortController)b=!1,v=!0;else if(p.mode==="prefer-streaming")v=!1;else if(p.mode==="allow-wrong-content-type")v=!l.overrideMimeType;else{if(p.mode&&p.mode!=="default"&&p.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");v=!0}y._mode=function(A,x){return l.fetch&&x?"fetch":l.mozchunkedarraybuffer?"moz-chunked-arraybuffer":l.msstream?"ms-stream":l.arraybuffer&&A?"arraybuffer":"text"}(v,b),y._fetchTimer=null,y._socketTimeout=null,y._socketTimer=null,y.on("finish",function(){y._onFinish()})};n(c,o.Writable),c.prototype.setHeader=function(p,v){var y=p.toLowerCase();g.indexOf(y)===-1&&(this._headers[y]={name:p,value:v})},c.prototype.getHeader=function(p){var v=this._headers[p.toLowerCase()];return v?v.value:null},c.prototype.removeHeader=function(p){delete this._headers[p.toLowerCase()]},c.prototype._onFinish=function(){var p=this;if(!p._destroyed){var v=p._opts;"timeout"in v&&v.timeout!==0&&p.setTimeout(v.timeout);var y=p._headers,b=null;v.method!=="GET"&&v.method!=="HEAD"&&(b=new Blob(p._body,{type:(y["content-type"]||{}).value||""}));var A=[];if(Object.keys(y).forEach(function(C){var T=y[C].name,k=y[C].value;Array.isArray(k)?k.forEach(function(M){A.push([T,M])}):A.push([T,k])}),p._mode==="fetch"){var x=null;if(l.abortController){var E=new AbortController;x=E.signal,p._fetchAbortController=E,"requestTimeout"in v&&v.requestTimeout!==0&&(p._fetchTimer=i.g.setTimeout(function(){p.emit("requestTimeout"),p._fetchAbortController&&p._fetchAbortController.abort()},v.requestTimeout))}i.g.fetch(p._opts.url,{method:p._opts.method,headers:A,body:b||void 0,mode:"cors",credentials:v.withCredentials?"include":"same-origin",signal:x}).then(function(C){p._fetchResponse=C,p._resetTimers(!1),p._connect()},function(C){p._resetTimers(!0),p._destroyed||p.emit("error",C)})}else{var S=p._xhr=new i.g.XMLHttpRequest;try{S.open(p._opts.method,p._opts.url,!0)}catch(C){return void e.nextTick(function(){p.emit("error",C)})}"responseType"in S&&(S.responseType=p._mode),"withCredentials"in S&&(S.withCredentials=!!v.withCredentials),p._mode==="text"&&"overrideMimeType"in S&&S.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in v&&(S.timeout=v.requestTimeout,S.ontimeout=function(){p.emit("requestTimeout")}),A.forEach(function(C){S.setRequestHeader(C[0],C[1])}),p._response=null,S.onreadystatechange=function(){switch(S.readyState){case u.LOADING:case u.DONE:p._onXHRProgress()}},p._mode==="moz-chunked-arraybuffer"&&(S.onprogress=function(){p._onXHRProgress()}),S.onerror=function(){p._destroyed||(p._resetTimers(!0),p.emit("error",new Error("XHR error")))};try{S.send(b)}catch(C){return void e.nextTick(function(){p.emit("error",C)})}}}},c.prototype._onXHRProgress=function(){var p=this;p._resetTimers(!1),function(v){try{var y=v.status;return y!==null&&y!==0}catch{return!1}}(p._xhr)&&!p._destroyed&&(p._response||p._connect(),p._response._onXHRProgress(p._resetTimers.bind(p)))},c.prototype._connect=function(){var p=this;p._destroyed||(p._response=new d(p._xhr,p._fetchResponse,p._mode,p._resetTimers.bind(p)),p._response.on("error",function(v){p.emit("error",v)}),p.emit("response",p._response))},c.prototype._write=function(p,v,y){this._body.push(p),y()},c.prototype._resetTimers=function(p){var v=this;i.g.clearTimeout(v._socketTimer),v._socketTimer=null,p?(i.g.clearTimeout(v._fetchTimer),v._fetchTimer=null):v._socketTimeout&&(v._socketTimer=i.g.setTimeout(function(){v.emit("timeout")},v._socketTimeout))},c.prototype.abort=c.prototype.destroy=function(p){var v=this;v._destroyed=!0,v._resetTimers(!0),v._response&&(v._response._destroyed=!0),v._xhr?v._xhr.abort():v._fetchAbortController&&v._fetchAbortController.abort(),p&&v.emit("error",p)},c.prototype.end=function(p,v,y){typeof p=="function"&&(y=p,p=void 0),o.Writable.prototype.end.call(this,p,v,y)},c.prototype.setTimeout=function(p,v){var y=this;v&&y.once("timeout",v),y._socketTimeout=p,y._resetTimers(!1)},c.prototype.flushHeaders=function(){},c.prototype.setNoDelay=function(){},c.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},3319:(r,s,i)=>{var f=i(9142),e=i(9033).Buffer,l=i(3928),n=i(1736),t=i(6505),o=s.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},d=s.IncomingMessage=function(u,c,g,p){var v=this;if(t.Readable.call(v),v._mode=g,v.headers={},v.rawHeaders=[],v.trailers={},v.rawTrailers=[],v.on("end",function(){f.nextTick(function(){v.emit("close")})}),g==="fetch"){if(v._fetchResponse=c,v.url=c.url,v.statusCode=c.status,v.statusMessage=c.statusText,c.headers.forEach(function(E,S){v.headers[S.toLowerCase()]=E,v.rawHeaders.push(S,E)}),l.writableStream){var y=new WritableStream({write:function(E){return p(!1),new Promise(function(S,C){v._destroyed?C():v.push(e.from(E))?S():v._resumeFetch=S})},close:function(){p(!0),v._destroyed||v.push(null)},abort:function(E){p(!0),v._destroyed||v.emit("error",E)}});try{return void c.body.pipeTo(y).catch(function(E){p(!0),v._destroyed||v.emit("error",E)})}catch{}}var b=c.body.getReader();(function E(){b.read().then(function(S){v._destroyed||(p(S.done),S.done?v.push(null):(v.push(e.from(S.value)),E()))}).catch(function(S){p(!0),v._destroyed||v.emit("error",S)})})()}else if(v._xhr=u,v._pos=0,v.url=u.responseURL,v.statusCode=u.status,v.statusMessage=u.statusText,u.getAllResponseHeaders().split(/\r?\n/).forEach(function(E){var S=E.match(/^([^:]+):\s*(.*)/);if(S){var C=S[1].toLowerCase();C==="set-cookie"?(v.headers[C]===void 0&&(v.headers[C]=[]),v.headers[C].push(S[2])):v.headers[C]!==void 0?v.headers[C]+=", "+S[2]:v.headers[C]=S[2],v.rawHeaders.push(S[1],S[2])}}),v._charset="x-user-defined",!l.overrideMimeType){var A=v.rawHeaders["mime-type"];if(A){var x=A.match(/;\s*charset=([^;])(;|$)/);x&&(v._charset=x[1].toLowerCase())}v._charset||(v._charset="utf-8")}};n(d,t.Readable),d.prototype._read=function(){var u=this._resumeFetch;u&&(this._resumeFetch=null,u())},d.prototype._onXHRProgress=function(u){var c=this,g=c._xhr,p=null;switch(c._mode){case"text":if((p=g.responseText).length>c._pos){var v=p.substr(c._pos);if(c._charset==="x-user-defined"){for(var y=e.alloc(v.length),b=0;b<v.length;b++)y[b]=255&v.charCodeAt(b);c.push(y)}else c.push(v,c._charset);c._pos=p.length}break;case"arraybuffer":if(g.readyState!==o.DONE||!g.response)break;p=g.response,c.push(e.from(new Uint8Array(p)));break;case"moz-chunked-arraybuffer":if(p=g.response,g.readyState!==o.LOADING||!p)break;c.push(e.from(new Uint8Array(p)));break;case"ms-stream":if(p=g.response,g.readyState!==o.LOADING)break;var A=new i.g.MSStreamReader;A.onprogress=function(){A.result.byteLength>c._pos&&(c.push(e.from(new Uint8Array(A.result.slice(c._pos)))),c._pos=A.result.byteLength)},A.onload=function(){u(!0),c.push(null)},A.readAsArrayBuffer(p)}c._xhr.readyState===o.DONE&&c._mode!=="ms-stream"&&(u(!0),c.push(null))}},10:r=>{r.exports=function(s){return encodeURIComponent(s).replace(/[!'()*]/g,function(i){return"%"+i.charCodeAt(0).toString(16).toUpperCase()})}},3462:(r,s,i)=>{var f=i(8850).Buffer,e=f.isEncoding||function(v){switch((v=""+v)&&v.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 l(v){var y;switch(this.encoding=function(b){var A=function(x){if(!x)return"utf8";for(var E;;)switch(x){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 x;default:if(E)return;x=(""+x).toLowerCase(),E=!0}}(b);if(typeof A!="string"&&(f.isEncoding===e||!e(b)))throw new Error("Unknown encoding: "+b);return A||b}(v),this.encoding){case"utf16le":this.text=o,this.end=d,y=4;break;case"utf8":this.fillLast=t,y=4;break;case"base64":this.text=u,this.end=c,y=3;break;default:return this.write=g,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=f.allocUnsafe(y)}function n(v){return v<=127?0:v>>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function t(v){var y=this.lastTotal-this.lastNeed,b=function(A,x,E){if((192&x[0])!=128)return A.lastNeed=0,"�";if(A.lastNeed>1&&x.length>1){if((192&x[1])!=128)return A.lastNeed=1,"�";if(A.lastNeed>2&&x.length>2&&(192&x[2])!=128)return A.lastNeed=2,"�"}}(this,v);return b!==void 0?b:this.lastNeed<=v.length?(v.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,y,0,v.length),void(this.lastNeed-=v.length))}function o(v,y){if((v.length-y)%2==0){var b=v.toString("utf16le",y);if(b){var A=b.charCodeAt(b.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",y,v.length-1)}function d(v){var y=v&&v.length?this.write(v):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,b)}return y}function u(v,y){var b=(v.length-y)%3;return b===0?v.toString("base64",y):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",y,v.length-b))}function c(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function g(v){return v.toString(this.encoding)}function p(v){return v&&v.length?this.write(v):""}s.s=l,l.prototype.write=function(v){if(v.length===0)return"";var y,b;if(this.lastNeed){if((y=this.fillLast(v))===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<v.length?y?y+this.text(v,b):this.text(v,b):y||""},l.prototype.end=function(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+"�":y},l.prototype.text=function(v,y){var b=function(x,E,S){var C=E.length-1;if(C<S)return 0;var T=n(E[C]);return T>=0?(T>0&&(x.lastNeed=T-1),T):--C<S||T===-2?0:(T=n(E[C]))>=0?(T>0&&(x.lastNeed=T-2),T):--C<S||T===-2?0:(T=n(E[C]))>=0?(T>0&&(T===2?T=0:x.lastNeed=T-3),T):0}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=b;var A=v.length-(b-this.lastNeed);return v.copy(this.lastChar,0,A),v.toString("utf8",y,A)},l.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},6931:(r,s,i)=>{var f=i(8619);r.exports=function(e){return typeof e!="string"?e:f(e)?e.slice(2):e}},6427:(r,s,i)=>{var f=function(){throw"This swarm.js function isn't available on the browser."},e={readFile:f},l={download:f,safeDownloadArchived:f,directoryTree:f},n={platform:f,arch:f},t={join:f,slice:f},o={spawn:f},d={lookup:f},u=i(1357),c=i(631),g=i(2733),p=i(2510),v=i(3094);r.exports=v({fs:e,files:l,os:n,path:t,child_process:o,defaultArchives:{},mimetype:d,request:u,downloadUrl:null,bytes:c,hash:g,pick:p})},2510:r=>{var s=function(i){return function(){return new Promise(function(f,e){var l,n=function(o){var d={},u=o.target.files.length,c=0;[].map.call(o.target.files,function(g){var p=new FileReader;p.onload=function(v){var y=new Uint8Array(v.target.result);if(i==="directory"){var b=g.webkitRelativePath;d[b.slice(b.indexOf("/")+1)]={type:"text/plain",data:y},++c===u&&f(d)}else if(i==="file"){var A=g.webkitRelativePath;f({type:mimetype.lookup(A),data:y})}else f(y)},p.readAsArrayBuffer(g)})};i==="directory"?((l=document.createElement("input")).addEventListener("change",n),l.type="file",l.webkitdirectory=!0,l.mozdirectory=!0,l.msdirectory=!0,l.odirectory=!0,l.directory=!0):((l=document.createElement("input")).addEventListener("change",n),l.type="file");var t=document.createEvent("MouseEvents");t.initEvent("click",!0,!1),l.dispatchEvent(t)})}};r.exports={data:s("data"),file:s("file"),directory:s("directory")}},2733:(r,s,i)=>{var f=i(9574).keccak256,e=i(631),l=function(n,t){var o=e.reverse(e.pad(6,e.fromNumber(n))),d=e.flatten([o,"0x0000",t]);return f(d).slice(2)};r.exports=function n(t){typeof t=="string"&&t.slice(0,2)!=="0x"?t=e.fromString(t):typeof t!="string"&&t.length!==void 0&&(t=e.fromUint8Array(t));var o=e.length(t);if(o<=4096)return l(o,t);for(var d=4096;128*d<o;)d*=128;for(var u=[],c=0;c<o;c+=d){var g=d<o-c?d:o-c;u.push(n(e.slice(t,c,c+g)))}return l(o,e.flatten(u))}},3094:r=>{r.exports=function(s){var i=s.fs,f=s.files,e=s.os,l=s.path,n=s.child_process,t=s.mimetype,o=s.defaultArchives,d=s.request,u=s.downloadUrl,c=s.bytes,g=s.hash,p=s.pick,v=function(W){return function(G){for(var J={},H=0,U=W.length;H<U;++H)J[W[H]]=G[H];return J}},y=function(W){return function(G){return"".concat(W,"/bzz-raw:/").concat(G)}},b=function(W){return function(G){return new Promise(function(J,H){d(y(W)(G),{responseType:"arraybuffer"},function(U,K,te){return U?H(U):te.statusCode>=400?H(new Error("Error ".concat(te.statusCode,"."))):J(new Uint8Array(K))})})}},A=function(W){return function(G){return function J(H){return function(U){return function(K){var te=function(ee){return ee.path===void 0?Promise.resolve():ee.contentType==="application/bzz-manifest+json"?J(ee.hash)(U+ee.path)(K):Promise.resolve((ie=U+ee.path,function(se){return function(ne){return ne[ie]=se,ne}})(function(se){return{type:se.contentType,hash:se.hash}}(ee))(K));var ie};return b(W)(H).then(function(ee){return JSON.parse(X(ee)).entries}).then(function(ee){return Promise.all(ee.map(te))}).then(function(){return K})}}}(G)("")({})}},x=function(W){return function(G){return A(W)(G).then(function(J){return v(Object.keys(J))(Object.keys(J).map(function(H){return J[H].hash}))})}},E=function(W){return function(G){return A(W)(G).then(function(J){var H=Object.keys(J),U=H.map(function(ee){return J[ee].hash}),K=H.map(function(ee){return J[ee].type}),te=U.map(b(W));return Promise.all(te).then(function(ee){return v(H)(function(ie){return ie.map(function(se,ne){return{type:K[ne],data:se}})}(ee))})})}},S=function(W){return function(G){return function(J){return f.download(y(W)(G))(J)}}},C=function(W){return function(G){return function(J){return x(W)(G).then(function(H){var U=[];for(var K in H)if(K.length>0){var te=l.join(J,K);U.push(S(W)(H[K])(te))}return Promise.all(U).then(function(){return J})})}}},T=function(W){return function(G){return new Promise(function(J,H){var U={body:typeof G=="string"?Z(G):G,method:"POST"};d("".concat(W,"/bzz-raw:/"),U,function(K,te){return K?H(K):J(te)})})}},k=function(W){return function(G){return function(J){return function(H){return function U(K){var te=J[0]==="/"?J:"/"+J,ee="".concat(W,"/bzz:/").concat(G).concat(te),ie={method:"PUT",headers:{"Content-Type":H.type},body:H.data};return new Promise(function(se,ne){d(ee,ie,function(re,Y){return re?ne(re):Y.indexOf("error")!==-1?ne(Y):se(Y)})}).catch(function(se){return K>0&&U(K-1)})}(3)}}}},M=function(W){return function(G){return N(W)({"":G})}},P=function(W){return function(G){return i.readFile(G).then(function(J){return M(W)({type:t.lookup(G),data:J})})}},N=function(W){return function(G){return T(W)("{}").then(function(J){return Object.keys(G).reduce(function(H,U){return H.then(function(K){return function(te){return k(W)(te)(K)(G[K])}}(U))},Promise.resolve(J))})}},F=function(W){return function(G){return i.readFile(G).then(T(W))}},q=function(W){return function(G){return function(J){return f.directoryTree(J).then(function(H){return Promise.all(H.map(function(U){return i.readFile(U)})).then(function(U){var K=H.map(function(ee){return ee.slice(J.length)}),te=H.map(function(ee){return t.lookup(ee)||"text/plain"});return v(K)(U.map(function(ee,ie){return{type:te[ie],data:ee}}))})}).then(function(H){return(U=G?{"":H[G]}:{},function(K){var te={};for(var ee in U)te[ee]=U[ee];for(var ie in K)te[ie]=K[ie];return te})(H);var U}).then(N(W))}}},z=function(W){return function(G){if(G.pick==="data")return p.data().then(T(W));if(G.pick==="file")return p.file().then(M(W));if(G.pick==="directory")return p.directory().then(N(W));if(G.path)switch(G.kind){case"data":return F(W)(G.path);case"file":return P(W)(G.path);case"directory":return q(W)(G.defaultFile)(G.path)}else{if(G.length||typeof G=="string")return T(W)(G);if(G instanceof Object)return N(W)(G)}return Promise.reject(new Error("Bad arguments"))}},O=function(W){return function(G){return function(J){return j(W)(G).then(function(H){return H?J?C(W)(G)(J):E(W)(G):J?S(W)(G)(J):b(W)(G)})}}},R=function(W,G){var J=e.platform().replace("win32","windows")+"-"+(e.arch()==="x64"?"amd64":"386"),H=(G||o)[J],U=u+H.archive+".tar.gz",K=H.archiveMD5,te=H.binaryMD5;return f.safeDownloadArchived(U)(K)(te)(W)},I=function(W){return new Promise(function(G,J){var H=n.spawn,U=function(oe){return function(fe){return(""+fe).indexOf(oe)!==-1}},K=W.account,te=W.password,ee=W.dataDir,ie=W.ensApi,se=W.privateKey,ne=0,re=H(W.binPath,["--bzzaccount",K||se,"--datadir",ee,"--ens-api",ie]),Y=function(oe){ne===0&&U("Passphrase")(oe)?setTimeout(function(){ne=1,re.stdin.write(te+` +`)},500):U("Swarm http proxy started")(oe)&&(ne=2,clearTimeout(V),G(re))};re.stdout.on("data",Y),re.stderr.on("data",Y);var V=setTimeout(function(){return J(new Error("Couldn't start swarm process."))},2e4)})},D=function(W){return new Promise(function(G,J){W.stderr.removeAllListeners("data"),W.stdout.removeAllListeners("data"),W.stdin.removeAllListeners("error"),W.removeAllListeners("error"),W.removeAllListeners("exit"),W.kill("SIGINT");var H=setTimeout(function(){return W.kill("SIGKILL")},8e3);W.once("close",function(){clearTimeout(H),G()})})},B=function(W){return T(W)("test").then(function(G){return G==="c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"}).catch(function(){return!1})},j=function(W){return function(G){return b(W)(G).then(function(J){try{return!!JSON.parse(X(J)).entries}catch{return!1}})}},Q=function(W){return function(G,J,H,U,K){var te;return G!==void 0&&(te=W(G)),J!==void 0&&(te=W(J)),H!==void 0&&(te=W(H)),U!==void 0&&(te=W(U)),K!==void 0&&(te=W(K)),te}},X=function(W){return c.toString(c.fromUint8Array(W))},Z=function(W){return c.toUint8Array(c.fromString(W))},L=function(W){return{download:function(G,J){return O(W)(G)(J)},downloadData:Q(b(W)),downloadDataToDisk:Q(S(W)),downloadDirectory:Q(E(W)),downloadDirectoryToDisk:Q(C(W)),downloadEntries:Q(A(W)),downloadRoutes:Q(x(W)),isAvailable:function(){return B(W)},upload:function(G){return z(W)(G)},uploadData:Q(T(W)),uploadFile:Q(M(W)),uploadFileFromDisk:Q(M(W)),uploadDataFromDisk:Q(F(W)),uploadDirectory:Q(N(W)),uploadDirectoryFromDisk:Q(q(W)),uploadToManifest:Q(k(W)),pick:p,hash:g,fromString:Z,toString:X}};return{at:L,local:function(W){return function(G){return B("http://localhost:8500").then(function(J){return J?G(L("http://localhost:8500")).then(function(){}):R(W.binPath,W.archives).onData(function(H){return(W.onProgress||function(){})(H.length)}).then(function(){return I(W)}).then(function(H){return G(L("http://localhost:8500")).then(function(){return H})}).then(D)})}},download:O,downloadBinary:R,downloadData:b,downloadDataToDisk:S,downloadDirectory:E,downloadDirectoryToDisk:C,downloadEntries:A,downloadRoutes:x,isAvailable:B,startProcess:I,stopProcess:D,upload:z,uploadData:T,uploadDataFromDisk:F,uploadFile:M,uploadFileFromDisk:P,uploadDirectory:N,uploadDirectoryFromDisk:q,uploadToManifest:k,pick:p,hash:g,fromString:Z,toString:X}}},7380:r=>{var s=function(i,f){for(var e=[],l=0;l<i;++l)e.push(f(l));return e};r.exports={generate:s,replicate:function(i,f){return s(i,function(){return f})},concat:function(i,f){return i.concat(f)},flatten:function(i){for(var f=[],e=0,l=i.length;e<l;++e)for(var n=0,t=i[e].length;n<t;++n)f.push(i[e][n]);return f},chunksOf:function(i,f){for(var e=[],l=0,n=f.length;l<n;l+=i)e.push(f.slice(l,l+i));return e}}},631:(r,s,i)=>{i(7380);var f=function(t,o){return parseInt(t.slice(2*o+2,2*o+4),16)},e=function(t){return(t.length-2)/2},l=function(t){for(var o=[],d=2,u=t.length;d<u;d+=2)o.push(parseInt(t.slice(d,d+2),16));return o},n=function(t){for(var o="0x",d=0,u=t.length;d<u;++d){var c=t[d];o+=(c<16?"0":"")+c.toString(16)}return o};r.exports={random:function(t){var o=void 0;o=typeof window<"u"&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(t)):i(4293).randomBytes(t);for(var d="0x",u=0;u<t;++u)d+=("00"+o[u].toString(16)).slice(-2);return d},length:e,concat:function(t,o){return t.concat(o.slice(2))},flatten:function(t){return"0x"+t.reduce(function(o,d){return o+d.slice(2)},"")},slice:function(t,o,d){return"0x"+d.slice(2*t+2,2*o+2)},reverse:function(t){for(var o="0x",d=0,u=e(t);d<u;++d)o+=t.slice(2*(u-d),2*(u-d+1));return o},pad:function t(o,d){return d.length===2*o+2?d:t(o,"0x0"+d.slice(2))},padRight:function t(o,d){return d.length===2*o+2?d:t(o,d+"0")},fromAscii:function(t){for(var o="0x",d=0;d<t.length;++d)o+=("00"+t.charCodeAt(d).toString(16)).slice(-2);return o},toAscii:function(t){for(var o="",d=2;d<t.length;d+=2)o+=String.fromCharCode(parseInt(t.slice(d,d+2),16));return o},fromString:function(t){for(var o=function(p){var v=p.toString(16);return v.length<2?"0"+v:v},d="0x",u=0;u!=t.length;u++){var c=t.charCodeAt(u);if(c<128)d+=o(c);else{if(c<2048)d+=o(c>>6|192);else{if(c>55295&&c<56320){if(++u==t.length)return null;var g=t.charCodeAt(u);if(g<56320||g>57343)return null;d+=o((c=65536+((1023&c)<<10)+(1023&g))>>18|240),d+=o(c>>12&63|128)}else d+=o(c>>12|224);d+=o(c>>6&63|128)}d+=o(63&c|128)}}return d},toString:function(t){for(var o="",d=0,u=e(t);d<u;){var c=f(t,d++);if(c>127){if(c>191&&c<224){if(d>=u)return null;c=(31&c)<<6|63&f(t,d)}else if(c>223&&c<240){if(d+1>=u)return null;c=(15&c)<<12|(63&f(t,d))<<6|63&f(t,++d)}else{if(!(c>239&&c<248)||d+2>=u)return null;c=(7&c)<<18|(63&f(t,d))<<12|(63&f(t,++d))<<6|63&f(t,++d)}++d}if(c<=65535)o+=String.fromCharCode(c);else{if(!(c<=1114111))return null;c-=65536,o+=String.fromCharCode(c>>10|55296),o+=String.fromCharCode(1023&c|56320)}}return o},fromNumber:function(t){var o=t.toString(16);return o.length%2==0?"0x"+o:"0x0"+o},toNumber:function(t){return parseInt(t.slice(2),16)},fromNat:function(t){return t==="0x0"?"0x":t.length%2==0?t:"0x0"+t.slice(2)},toNat:function(t){return t[2]==="0"?"0x"+t.slice(3):t},fromArray:n,toArray:l,fromUint8Array:function(t){return n([].slice.call(t,0))},toUint8Array:function(t){return new Uint8Array(l(t))}}},9574:r=>{var s="0123456789abcdef".split(""),i=[1,256,65536,16777216],f=[0,8,16,24],e=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],l=function(t){var o,d,u,c,g,p,v,y,b,A,x,E,S,C,T,k,M,P,N,F,q,z,O,R,I,D,B,j,Q,X,Z,L,W,G,J,H,U,K,te,ee,ie,se,ne,re,Y,V,oe,fe,ce,he,le,ae,ue,de,ve,me,ge,xe,Ae,Te,ke,Pe,Ie;for(u=0;u<48;u+=2)c=t[0]^t[10]^t[20]^t[30]^t[40],g=t[1]^t[11]^t[21]^t[31]^t[41],p=t[2]^t[12]^t[22]^t[32]^t[42],v=t[3]^t[13]^t[23]^t[33]^t[43],y=t[4]^t[14]^t[24]^t[34]^t[44],b=t[5]^t[15]^t[25]^t[35]^t[45],A=t[6]^t[16]^t[26]^t[36]^t[46],x=t[7]^t[17]^t[27]^t[37]^t[47],o=(E=t[8]^t[18]^t[28]^t[38]^t[48])^(p<<1|v>>>31),d=(S=t[9]^t[19]^t[29]^t[39]^t[49])^(v<<1|p>>>31),t[0]^=o,t[1]^=d,t[10]^=o,t[11]^=d,t[20]^=o,t[21]^=d,t[30]^=o,t[31]^=d,t[40]^=o,t[41]^=d,o=c^(y<<1|b>>>31),d=g^(b<<1|y>>>31),t[2]^=o,t[3]^=d,t[12]^=o,t[13]^=d,t[22]^=o,t[23]^=d,t[32]^=o,t[33]^=d,t[42]^=o,t[43]^=d,o=p^(A<<1|x>>>31),d=v^(x<<1|A>>>31),t[4]^=o,t[5]^=d,t[14]^=o,t[15]^=d,t[24]^=o,t[25]^=d,t[34]^=o,t[35]^=d,t[44]^=o,t[45]^=d,o=y^(E<<1|S>>>31),d=b^(S<<1|E>>>31),t[6]^=o,t[7]^=d,t[16]^=o,t[17]^=d,t[26]^=o,t[27]^=d,t[36]^=o,t[37]^=d,t[46]^=o,t[47]^=d,o=A^(c<<1|g>>>31),d=x^(g<<1|c>>>31),t[8]^=o,t[9]^=d,t[18]^=o,t[19]^=d,t[28]^=o,t[29]^=d,t[38]^=o,t[39]^=d,t[48]^=o,t[49]^=d,C=t[0],T=t[1],V=t[11]<<4|t[10]>>>28,oe=t[10]<<4|t[11]>>>28,j=t[20]<<3|t[21]>>>29,Q=t[21]<<3|t[20]>>>29,Te=t[31]<<9|t[30]>>>23,ke=t[30]<<9|t[31]>>>23,se=t[40]<<18|t[41]>>>14,ne=t[41]<<18|t[40]>>>14,G=t[2]<<1|t[3]>>>31,J=t[3]<<1|t[2]>>>31,k=t[13]<<12|t[12]>>>20,M=t[12]<<12|t[13]>>>20,fe=t[22]<<10|t[23]>>>22,ce=t[23]<<10|t[22]>>>22,X=t[33]<<13|t[32]>>>19,Z=t[32]<<13|t[33]>>>19,Pe=t[42]<<2|t[43]>>>30,Ie=t[43]<<2|t[42]>>>30,de=t[5]<<30|t[4]>>>2,ve=t[4]<<30|t[5]>>>2,H=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,P=t[25]<<11|t[24]>>>21,N=t[24]<<11|t[25]>>>21,he=t[34]<<15|t[35]>>>17,le=t[35]<<15|t[34]>>>17,L=t[45]<<29|t[44]>>>3,W=t[44]<<29|t[45]>>>3,R=t[6]<<28|t[7]>>>4,I=t[7]<<28|t[6]>>>4,me=t[17]<<23|t[16]>>>9,ge=t[16]<<23|t[17]>>>9,K=t[26]<<25|t[27]>>>7,te=t[27]<<25|t[26]>>>7,F=t[36]<<21|t[37]>>>11,q=t[37]<<21|t[36]>>>11,ae=t[47]<<24|t[46]>>>8,ue=t[46]<<24|t[47]>>>8,re=t[8]<<27|t[9]>>>5,Y=t[9]<<27|t[8]>>>5,D=t[18]<<20|t[19]>>>12,B=t[19]<<20|t[18]>>>12,xe=t[29]<<7|t[28]>>>25,Ae=t[28]<<7|t[29]>>>25,ee=t[38]<<8|t[39]>>>24,ie=t[39]<<8|t[38]>>>24,z=t[48]<<14|t[49]>>>18,O=t[49]<<14|t[48]>>>18,t[0]=C^~k&P,t[1]=T^~M&N,t[10]=R^~D&j,t[11]=I^~B&Q,t[20]=G^~H&K,t[21]=J^~U&te,t[30]=re^~V&fe,t[31]=Y^~oe&ce,t[40]=de^~me&xe,t[41]=ve^~ge&Ae,t[2]=k^~P&F,t[3]=M^~N&q,t[12]=D^~j&X,t[13]=B^~Q&Z,t[22]=H^~K&ee,t[23]=U^~te&ie,t[32]=V^~fe&he,t[33]=oe^~ce&le,t[42]=me^~xe&Te,t[43]=ge^~Ae&ke,t[4]=P^~F&z,t[5]=N^~q&O,t[14]=j^~X&L,t[15]=Q^~Z&W,t[24]=K^~ee&se,t[25]=te^~ie&ne,t[34]=fe^~he&ae,t[35]=ce^~le&ue,t[44]=xe^~Te&Pe,t[45]=Ae^~ke&Ie,t[6]=F^~z&C,t[7]=q^~O&T,t[16]=X^~L&R,t[17]=Z^~W&I,t[26]=ee^~se&G,t[27]=ie^~ne&J,t[36]=he^~ae&re,t[37]=le^~ue&Y,t[46]=Te^~Pe&de,t[47]=ke^~Ie&ve,t[8]=z^~C&k,t[9]=O^~T&M,t[18]=L^~R&D,t[19]=W^~I&B,t[28]=se^~G&H,t[29]=ne^~J&U,t[38]=ae^~re&V,t[39]=ue^~Y&oe,t[48]=Pe^~de&me,t[49]=Ie^~ve&ge,t[0]^=e[u],t[1]^=e[u+1]},n=function(t){return function(o){var d;if(o.slice(0,2)==="0x"){d=[];for(var u=2,c=o.length;u<c;u+=2)d.push(parseInt(o.slice(u,u+2),16))}else d=o;return function(g,p){for(var v,y=p.length,b=g.blocks,A=g.blockCount<<2,x=g.blockCount,E=g.outputBlocks,S=g.s,C=0;C<y;){if(g.reset)for(g.reset=!1,b[0]=g.block,M=1;M<x+1;++M)b[M]=0;if(typeof p!="string")for(M=g.start;C<y&&M<A;++C)b[M>>2]|=p[C]<<f[3&M++];else for(M=g.start;C<y&&M<A;++C)(v=p.charCodeAt(C))<128?b[M>>2]|=v<<f[3&M++]:v<2048?(b[M>>2]|=(192|v>>6)<<f[3&M++],b[M>>2]|=(128|63&v)<<f[3&M++]):v<55296||v>=57344?(b[M>>2]|=(224|v>>12)<<f[3&M++],b[M>>2]|=(128|v>>6&63)<<f[3&M++],b[M>>2]|=(128|63&v)<<f[3&M++]):(v=65536+((1023&v)<<10|1023&p.charCodeAt(++C)),b[M>>2]|=(240|v>>18)<<f[3&M++],b[M>>2]|=(128|v>>12&63)<<f[3&M++],b[M>>2]|=(128|v>>6&63)<<f[3&M++],b[M>>2]|=(128|63&v)<<f[3&M++]);if(g.lastByteIndex=M,M>=A){for(g.start=M-A,g.block=b[x],M=0;M<x;++M)S[M]^=b[M];l(S),g.reset=!0}else g.start=M}if(b[(M=g.lastByteIndex)>>2]|=i[3&M],g.lastByteIndex===A)for(b[0]=b[x],M=1;M<x+1;++M)b[M]=0;for(b[x-1]|=2147483648,M=0;M<x;++M)S[M]^=b[M];l(S);for(var T,k="",M=0,P=0;P<E;){for(M=0;M<x&&P<E;++M,++P)T=S[M],k+=s[T>>4&15]+s[15&T]+s[T>>12&15]+s[T>>8&15]+s[T>>20&15]+s[T>>16&15]+s[T>>28&15]+s[T>>24&15];P%x==0&&(l(S),M=0)}return"0x"+k}(function(g){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(g<<1)>>5,outputBlocks:g>>5,s:(p=[0,0,0,0,0,0,0,0,0,0],[].concat(p,p,p,p,p))};var p}(t),d)}};r.exports={keccak256:n(256),keccak512:n(512),keccak256s:n(256),keccak512s:n(512)}},8419:r=>{r.exports=function(s,i){if(i){i=(i=i.trim().replace(/^(\?|#|&)/,""))?"?"+i:i;var f=s.split(/[\?\#]/)[0];i&&/\:\/\/[^\/]*$/.test(f)&&(f+="/");var e=s.match(/(\#.*)$/);s=f+i,e&&(s+=e[0])}return s}},8677:(r,s,i)=>{var f;r=i.nmd(r);var e=i(8847)(i(3355));(function(l){var n=(0,e.default)(s)=="object"&&s&&!s.nodeType&&s,t=(0,e.default)(r)=="object"&&r&&!r.nodeType&&r,o=(i.g===void 0?"undefined":(0,e.default)(i.g))=="object"&&i.g;o.global!==o&&o.window!==o&&o.self!==o||(l=o);var d,u,c=2147483647,g=36,p=1,v=26,y=38,b=700,A=72,x=128,E="-",S=/^xn--/,C=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=g-p,P=Math.floor,N=String.fromCharCode;function F(Q){throw RangeError(k[Q])}function q(Q,X){for(var Z=Q.length,L=[];Z--;)L[Z]=X(Q[Z]);return L}function z(Q,X){var Z=Q.split("@"),L="";return Z.length>1&&(L=Z[0]+"@",Q=Z[1]),L+q((Q=Q.replace(T,".")).split("."),X).join(".")}function O(Q){for(var X,Z,L=[],W=0,G=Q.length;W<G;)(X=Q.charCodeAt(W++))>=55296&&X<=56319&&W<G?(64512&(Z=Q.charCodeAt(W++)))==56320?L.push(((1023&X)<<10)+(1023&Z)+65536):(L.push(X),W--):L.push(X);return L}function R(Q){return q(Q,function(X){var Z="";return X>65535&&(Z+=N((X-=65536)>>>10&1023|55296),X=56320|1023&X),Z+N(X)}).join("")}function I(Q,X){return Q+22+75*(Q<26)-((X!=0)<<5)}function D(Q,X,Z){var L=0;for(Q=Z?P(Q/b):Q>>1,Q+=P(Q/X);Q>M*v>>1;L+=g)Q=P(Q/M);return P(L+(M+1)*Q/(Q+y))}function B(Q){var X,Z,L,W,G,J,H,U,K,te,ee,ie=[],se=Q.length,ne=0,re=x,Y=A;for((Z=Q.lastIndexOf(E))<0&&(Z=0),L=0;L<Z;++L)Q.charCodeAt(L)>=128&&F("not-basic"),ie.push(Q.charCodeAt(L));for(W=Z>0?Z+1:0;W<se;){for(G=ne,J=1,H=g;W>=se&&F("invalid-input"),((U=(ee=Q.charCodeAt(W++))-48<10?ee-22:ee-65<26?ee-65:ee-97<26?ee-97:g)>=g||U>P((c-ne)/J))&&F("overflow"),ne+=U*J,!(U<(K=H<=Y?p:H>=Y+v?v:H-Y));H+=g)J>P(c/(te=g-K))&&F("overflow"),J*=te;Y=D(ne-G,X=ie.length+1,G==0),P(ne/X)>c-re&&F("overflow"),re+=P(ne/X),ne%=X,ie.splice(ne++,0,re)}return R(ie)}function j(Q){var X,Z,L,W,G,J,H,U,K,te,ee,ie,se,ne,re,Y=[];for(ie=(Q=O(Q)).length,X=x,Z=0,G=A,J=0;J<ie;++J)(ee=Q[J])<128&&Y.push(N(ee));for(L=W=Y.length,W&&Y.push(E);L<ie;){for(H=c,J=0;J<ie;++J)(ee=Q[J])>=X&&ee<H&&(H=ee);for(H-X>P((c-Z)/(se=L+1))&&F("overflow"),Z+=(H-X)*se,X=H,J=0;J<ie;++J)if((ee=Q[J])<X&&++Z>c&&F("overflow"),ee==X){for(U=Z,K=g;!(U<(te=K<=G?p:K>=G+v?v:K-G));K+=g)re=U-te,ne=g-te,Y.push(N(I(te+re%ne,0))),U=P(re/ne);Y.push(N(I(U,0))),G=D(Z,se,L==W),Z=0,++L}++Z,++X}return Y.join("")}if(d={version:"1.3.2",ucs2:{decode:O,encode:R},decode:B,encode:j,toASCII:function(Q){return z(Q,function(X){return C.test(X)?"xn--"+j(X):X})},toUnicode:function(Q){return z(Q,function(X){return S.test(X)?B(X.slice(4).toLowerCase()):X})}},(0,e.default)(i.amdO)=="object"&&i.amdO)(f=function(){return d}.call(s,i,s,r))===void 0||(r.exports=f);else if(n&&t)if(r.exports==n)t.exports=d;else for(u in d)d.hasOwnProperty(u)&&(n[u]=d[u]);else l.punycode=d})(void 0)},8983:r=>{function s(i,f){return Object.prototype.hasOwnProperty.call(i,f)}r.exports=function(i,f,e,l){f=f||"&",e=e||"=";var n={};if(typeof i!="string"||i.length===0)return n;var t=/\+/g;i=i.split(f);var o=1e3;l&&typeof l.maxKeys=="number"&&(o=l.maxKeys);var d=i.length;o>0&&d>o&&(d=o);for(var u=0;u<d;++u){var c,g,p,v,y=i[u].replace(t,"%20"),b=y.indexOf(e);b>=0?(c=y.substr(0,b),g=y.substr(b+1)):(c=y,g=""),p=decodeURIComponent(c),v=decodeURIComponent(g),s(n,p)?Array.isArray(n[p])?n[p].push(v):n[p]=[n[p],v]:n[p]=v}return n}},4031:(r,s,i)=>{var f=i(8847)(i(3355)),e=function(l){switch((0,f.default)(l)){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};r.exports=function(l,n,t,o){return n=n||"&",t=t||"=",l===null&&(l=void 0),(0,f.default)(l)==="object"?Object.keys(l).map(function(d){var u=encodeURIComponent(e(d))+t;return Array.isArray(l[d])?l[d].map(function(c){return u+encodeURIComponent(e(c))}).join(n):u+encodeURIComponent(e(l[d]))}).join(n):o?encodeURIComponent(e(o))+t+encodeURIComponent(e(l)):""}},845:(r,s,i)=>{s.decode=s.parse=i(8983),s.encode=s.stringify=i(4031)},1143:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(8677),l=i(5751);function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}s.parse=S,s.resolve=function(C,T){return S(C,!1,!0).resolve(T)},s.resolveObject=function(C,T){return C?S(C,!1,!0).resolveObject(T):T},s.format=function(C){return l.isString(C)&&(C=S(C)),C instanceof n?C.format():n.prototype.format.call(C)},s.Url=n;var t=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` +`," "]),c=["'"].concat(u),g=["%","/","?",";","#"].concat(c),p=["/","?","#"],v=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},A={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=i(845);function S(C,T,k){if(C&&l.isObject(C)&&C instanceof n)return C;var M=new n;return M.parse(C,T,k),M}n.prototype.parse=function(C,T,k){if(!l.isString(C))throw new TypeError("Parameter 'url' must be a string, not "+(0,f.default)(C));var M=C.indexOf("?"),P=M!==-1&&M<C.indexOf("#")?"?":"#",N=C.split(P);N[0]=N[0].replace(/\\/g,"/");var F=C=N.join(P);if(F=F.trim(),!k&&C.split("#").length===1){var q=d.exec(F);if(q)return this.path=F,this.href=F,this.pathname=q[1],q[2]?(this.search=q[2],this.query=T?E.parse(this.search.substr(1)):this.search.substr(1)):T&&(this.search="",this.query={}),this}var z=t.exec(F);if(z){var O=(z=z[0]).toLowerCase();this.protocol=O,F=F.substr(z.length)}if(k||z||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var R=F.substr(0,2)==="//";!R||z&&A[z]||(F=F.substr(2),this.slashes=!0)}if(!A[z]&&(R||z&&!x[z])){for(var I,D,B=-1,j=0;j<p.length;j++)(Q=F.indexOf(p[j]))!==-1&&(B===-1||Q<B)&&(B=Q);for((D=B===-1?F.lastIndexOf("@"):F.lastIndexOf("@",B))!==-1&&(I=F.slice(0,D),F=F.slice(D+1),this.auth=decodeURIComponent(I)),B=-1,j=0;j<g.length;j++){var Q;(Q=F.indexOf(g[j]))!==-1&&(B===-1||Q<B)&&(B=Q)}B===-1&&(B=F.length),this.host=F.slice(0,B),F=F.slice(B),this.parseHost(),this.hostname=this.hostname||"";var X=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!X)for(var Z=this.hostname.split(/\./),L=(j=0,Z.length);j<L;j++){var W=Z[j];if(W&&!W.match(v)){for(var G="",J=0,H=W.length;J<H;J++)W.charCodeAt(J)>127?G+="x":G+=W[J];if(!G.match(v)){var U=Z.slice(0,j),K=Z.slice(j+1),te=W.match(y);te&&(U.push(te[1]),K.unshift(te[2])),K.length&&(F="/"+K.join(".")+F),this.hostname=U.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),X||(this.hostname=e.toASCII(this.hostname));var ee=this.port?":"+this.port:"",ie=this.hostname||"";this.host=ie+ee,this.href+=this.host,X&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),F[0]!=="/"&&(F="/"+F))}if(!b[O])for(j=0,L=c.length;j<L;j++){var se=c[j];if(F.indexOf(se)!==-1){var ne=encodeURIComponent(se);ne===se&&(ne=escape(se)),F=F.split(se).join(ne)}}var re=F.indexOf("#");re!==-1&&(this.hash=F.substr(re),F=F.slice(0,re));var Y=F.indexOf("?");if(Y!==-1?(this.search=F.substr(Y),this.query=F.substr(Y+1),T&&(this.query=E.parse(this.query)),F=F.slice(0,Y)):T&&(this.search="",this.query={}),F&&(this.pathname=F),x[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){ee=this.pathname||"";var V=this.search||"";this.path=ee+V}return this.href=this.format(),this},n.prototype.format=function(){var C=this.auth||"";C&&(C=(C=encodeURIComponent(C)).replace(/%3A/i,":"),C+="@");var T=this.protocol||"",k=this.pathname||"",M=this.hash||"",P=!1,N="";this.host?P=C+this.host:this.hostname&&(P=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(P+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(N=E.stringify(this.query));var F=this.search||N&&"?"+N||"";return T&&T.substr(-1)!==":"&&(T+=":"),this.slashes||(!T||x[T])&&P!==!1?(P="//"+(P||""),k&&k.charAt(0)!=="/"&&(k="/"+k)):P||(P=""),M&&M.charAt(0)!=="#"&&(M="#"+M),F&&F.charAt(0)!=="?"&&(F="?"+F),T+P+(k=k.replace(/[?#]/g,function(q){return encodeURIComponent(q)}))+(F=F.replace("#","%23"))+M},n.prototype.resolve=function(C){return this.resolveObject(S(C,!1,!0)).format()},n.prototype.resolveObject=function(C){if(l.isString(C)){var T=new n;T.parse(C,!1,!0),C=T}for(var k=new n,M=Object.keys(this),P=0;P<M.length;P++){var N=M[P];k[N]=this[N]}if(k.hash=C.hash,C.href==="")return k.href=k.format(),k;if(C.slashes&&!C.protocol){for(var F=Object.keys(C),q=0;q<F.length;q++){var z=F[q];z!=="protocol"&&(k[z]=C[z])}return x[k.protocol]&&k.hostname&&!k.pathname&&(k.path=k.pathname="/"),k.href=k.format(),k}if(C.protocol&&C.protocol!==k.protocol){if(!x[C.protocol]){for(var O=Object.keys(C),R=0;R<O.length;R++){var I=O[R];k[I]=C[I]}return k.href=k.format(),k}if(k.protocol=C.protocol,C.host||A[C.protocol])k.pathname=C.pathname;else{for(var D=(C.pathname||"").split("/");D.length&&!(C.host=D.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),k.pathname=D.join("/")}if(k.search=C.search,k.query=C.query,k.host=C.host||"",k.auth=C.auth,k.hostname=C.hostname||C.host,k.port=C.port,k.pathname||k.search){var B=k.pathname||"",j=k.search||"";k.path=B+j}return k.slashes=k.slashes||C.slashes,k.href=k.format(),k}var Q=k.pathname&&k.pathname.charAt(0)==="/",X=C.host||C.pathname&&C.pathname.charAt(0)==="/",Z=X||Q||k.host&&C.pathname,L=Z,W=k.pathname&&k.pathname.split("/")||[],G=(D=C.pathname&&C.pathname.split("/")||[],k.protocol&&!x[k.protocol]);if(G&&(k.hostname="",k.port=null,k.host&&(W[0]===""?W[0]=k.host:W.unshift(k.host)),k.host="",C.protocol&&(C.hostname=null,C.port=null,C.host&&(D[0]===""?D[0]=C.host:D.unshift(C.host)),C.host=null),Z=Z&&(D[0]===""||W[0]==="")),X)k.host=C.host||C.host===""?C.host:k.host,k.hostname=C.hostname||C.hostname===""?C.hostname:k.hostname,k.search=C.search,k.query=C.query,W=D;else if(D.length)W||(W=[]),W.pop(),W=W.concat(D),k.search=C.search,k.query=C.query;else if(!l.isNullOrUndefined(C.search))return G&&(k.hostname=k.host=W.shift(),(te=!!(k.host&&k.host.indexOf("@")>0)&&k.host.split("@"))&&(k.auth=te.shift(),k.host=k.hostname=te.shift())),k.search=C.search,k.query=C.query,l.isNull(k.pathname)&&l.isNull(k.search)||(k.path=(k.pathname?k.pathname:"")+(k.search?k.search:"")),k.href=k.format(),k;if(!W.length)return k.pathname=null,k.search?k.path="/"+k.search:k.path=null,k.href=k.format(),k;for(var J=W.slice(-1)[0],H=(k.host||C.host||W.length>1)&&(J==="."||J==="..")||J==="",U=0,K=W.length;K>=0;K--)(J=W[K])==="."?W.splice(K,1):J===".."?(W.splice(K,1),U++):U&&(W.splice(K,1),U--);if(!Z&&!L)for(;U--;U)W.unshift("..");!Z||W[0]===""||W[0]&&W[0].charAt(0)==="/"||W.unshift(""),H&&W.join("/").substr(-1)!=="/"&&W.push("");var te,ee=W[0]===""||W[0]&&W[0].charAt(0)==="/";return G&&(k.hostname=k.host=ee?"":W.length?W.shift():"",(te=!!(k.host&&k.host.indexOf("@")>0)&&k.host.split("@"))&&(k.auth=te.shift(),k.host=k.hostname=te.shift())),(Z=Z||k.host&&W.length)&&!ee&&W.unshift(""),W.length?k.pathname=W.join("/"):(k.pathname=null,k.path=null),l.isNull(k.pathname)&&l.isNull(k.search)||(k.path=(k.pathname?k.pathname:"")+(k.search?k.search:"")),k.auth=C.auth||k.auth,k.slashes=k.slashes||C.slashes,k.href=k.format(),k},n.prototype.parseHost=function(){var C=this.host,T=o.exec(C);T&&((T=T[0])!==":"&&(this.port=T.substr(1)),C=C.substr(0,C.length-T.length)),C&&(this.hostname=C)}},5751:(r,s,i)=>{var f=i(8847)(i(3355));r.exports={isString:function(e){return typeof e=="string"},isObject:function(e){return(0,f.default)(e)==="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}},8632:(r,s)=>{(function(i){var f,e,l,n=String.fromCharCode;function t(p){for(var v,y,b=[],A=0,x=p.length;A<x;)(v=p.charCodeAt(A++))>=55296&&v<=56319&&A<x?(64512&(y=p.charCodeAt(A++)))==56320?b.push(((1023&v)<<10)+(1023&y)+65536):(b.push(v),A--):b.push(v);return b}function o(p){if(p>=55296&&p<=57343)throw Error("Lone surrogate U+"+p.toString(16).toUpperCase()+" is not a scalar value")}function d(p,v){return n(p>>v&63|128)}function u(p){if(!(4294967168&p))return n(p);var v="";return 4294965248&p?4294901760&p?!(4292870144&p)&&(v=n(p>>18&7|240),v+=d(p,12),v+=d(p,6)):(o(p),v=n(p>>12&15|224),v+=d(p,6)):v=n(p>>6&31|192),v+n(63&p|128)}function c(){if(l>=e)throw Error("Invalid byte index");var p=255&f[l];if(l++,(192&p)==128)return 63&p;throw Error("Invalid continuation byte")}function g(){var p,v;if(l>e)throw Error("Invalid byte index");if(l==e)return!1;if(p=255&f[l],l++,(128&p)==0)return p;if((224&p)==192){if((v=(31&p)<<6|c())>=128)return v;throw Error("Invalid continuation byte")}if((240&p)==224){if((v=(15&p)<<12|c()<<6|c())>=2048)return o(v),v;throw Error("Invalid continuation byte")}if((248&p)==240&&(v=(7&p)<<18|c()<<12|c()<<6|c())>=65536&&v<=1114111)return v;throw Error("Invalid UTF-8 detected")}i.version="3.0.0",i.encode=function(p){for(var v=t(p),y=v.length,b=-1,A="";++b<y;)A+=u(v[b]);return A},i.decode=function(p){f=t(p),e=f.length,l=0;for(var v,y=[];(v=g())!==!1;)y.push(v);return function(b){for(var A,x=b.length,E=-1,S="";++E<x;)(A=b[E])>65535&&(S+=n((A-=65536)>>>10&1023|55296),A=56320|1023&A),S+=n(A);return S}(y)}})(s)},6219:(r,s,i)=>{function f(e){try{if(!i.g.localStorage)return!1}catch{return!1}var l=i.g.localStorage[e];return l!=null&&String(l).toLowerCase()==="true"}r.exports=function(e,l){if(f("noDeprecation"))return e;var n=!1;return function(){if(!n){if(f("throwDeprecation"))throw new Error(l);f("traceDeprecation")?console.trace(l):console.warn(l),n=!0}return e.apply(this,arguments)}}},6248:(r,s,i)=>{var f=i(8847)(i(3355));r.exports=function(e){return e&&(0,f.default)(e)==="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},7092:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(9446),l=i(4477),n=i(2337),t=i(8915);function o(B){return B.call.bind(B)}var d=typeof BigInt<"u",u=typeof Symbol<"u",c=o(Object.prototype.toString),g=o(Number.prototype.valueOf),p=o(String.prototype.valueOf),v=o(Boolean.prototype.valueOf);if(d)var y=o(BigInt.prototype.valueOf);if(u)var b=o(Symbol.prototype.valueOf);function A(B,j){if((0,f.default)(B)!=="object")return!1;try{return j(B),!0}catch{return!1}}function x(B){return c(B)==="[object Map]"}function E(B){return c(B)==="[object Set]"}function S(B){return c(B)==="[object WeakMap]"}function C(B){return c(B)==="[object WeakSet]"}function T(B){return c(B)==="[object ArrayBuffer]"}function k(B){return typeof ArrayBuffer<"u"&&(T.working?T(B):B instanceof ArrayBuffer)}function M(B){return c(B)==="[object DataView]"}function P(B){return typeof DataView<"u"&&(M.working?M(B):B instanceof DataView)}s.isArgumentsObject=e,s.isGeneratorFunction=l,s.isTypedArray=t,s.isPromise=function(B){return typeof Promise<"u"&&B instanceof Promise||B!==null&&(0,f.default)(B)==="object"&&typeof B.then=="function"&&typeof B.catch=="function"},s.isArrayBufferView=function(B){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(B):t(B)||P(B)},s.isUint8Array=function(B){return n(B)==="Uint8Array"},s.isUint8ClampedArray=function(B){return n(B)==="Uint8ClampedArray"},s.isUint16Array=function(B){return n(B)==="Uint16Array"},s.isUint32Array=function(B){return n(B)==="Uint32Array"},s.isInt8Array=function(B){return n(B)==="Int8Array"},s.isInt16Array=function(B){return n(B)==="Int16Array"},s.isInt32Array=function(B){return n(B)==="Int32Array"},s.isFloat32Array=function(B){return n(B)==="Float32Array"},s.isFloat64Array=function(B){return n(B)==="Float64Array"},s.isBigInt64Array=function(B){return n(B)==="BigInt64Array"},s.isBigUint64Array=function(B){return n(B)==="BigUint64Array"},x.working=typeof Map<"u"&&x(new Map),s.isMap=function(B){return typeof Map<"u"&&(x.working?x(B):B instanceof Map)},E.working=typeof Set<"u"&&E(new Set),s.isSet=function(B){return typeof Set<"u"&&(E.working?E(B):B instanceof Set)},S.working=typeof WeakMap<"u"&&S(new WeakMap),s.isWeakMap=function(B){return typeof WeakMap<"u"&&(S.working?S(B):B instanceof WeakMap)},C.working=typeof WeakSet<"u"&&C(new WeakSet),s.isWeakSet=function(B){return C(B)},T.working=typeof ArrayBuffer<"u"&&T(new ArrayBuffer),s.isArrayBuffer=k,M.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&M(new DataView(new ArrayBuffer(1),0,1)),s.isDataView=P;var N=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function F(B){return c(B)==="[object SharedArrayBuffer]"}function q(B){return N!==void 0&&(F.working===void 0&&(F.working=F(new N)),F.working?F(B):B instanceof N)}function z(B){return A(B,g)}function O(B){return A(B,p)}function R(B){return A(B,v)}function I(B){return d&&A(B,y)}function D(B){return u&&A(B,b)}s.isSharedArrayBuffer=q,s.isAsyncFunction=function(B){return c(B)==="[object AsyncFunction]"},s.isMapIterator=function(B){return c(B)==="[object Map Iterator]"},s.isSetIterator=function(B){return c(B)==="[object Set Iterator]"},s.isGeneratorObject=function(B){return c(B)==="[object Generator]"},s.isWebAssemblyCompiledModule=function(B){return c(B)==="[object WebAssembly.Module]"},s.isNumberObject=z,s.isStringObject=O,s.isBooleanObject=R,s.isBigIntObject=I,s.isSymbolObject=D,s.isBoxedPrimitive=function(B){return z(B)||O(B)||R(B)||I(B)||D(B)},s.isAnyArrayBuffer=function(B){return typeof Uint8Array<"u"&&(k(B)||q(B))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(B){Object.defineProperty(s,B,{enumerable:!1,value:function(){throw new Error(B+" is not supported in userland")}})})},5058:(r,s,i)=>{var f=i(9142),e=i(8847)(i(3355)),l=Object.getOwnPropertyDescriptors||function(D){for(var B=Object.keys(D),j={},Q=0;Q<B.length;Q++)j[B[Q]]=Object.getOwnPropertyDescriptor(D,B[Q]);return j},n=/%[sdj%]/g;s.format=function(D){if(!S(D)){for(var B=[],j=0;j<arguments.length;j++)B.push(u(arguments[j]));return B.join(" ")}j=1;for(var Q=arguments,X=Q.length,Z=String(D).replace(n,function(W){if(W==="%%")return"%";if(j>=X)return W;switch(W){case"%s":return String(Q[j++]);case"%d":return Number(Q[j++]);case"%j":try{return JSON.stringify(Q[j++])}catch{return"[Circular]"}default:return W}}),L=Q[j];j<X;L=Q[++j])x(L)||!k(L)?Z+=" "+L:Z+=" "+u(L);return Z},s.deprecate=function(D,B){if(f!==void 0&&f.noDeprecation===!0)return D;if(f===void 0)return function(){return s.deprecate(D,B).apply(this,arguments)};var j=!1;return function(){if(!j){if(f.throwDeprecation)throw new Error(B);f.traceDeprecation?console.trace(B):console.error(B),j=!0}return D.apply(this,arguments)}};var t={},o=/^$/;if(f.env.NODE_DEBUG){var d=f.env.NODE_DEBUG;d=d.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+d+"$","i")}function u(D,B){var j={seen:[],stylize:g};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),A(B)?j.showHidden=B:B&&s._extend(j,B),C(j.showHidden)&&(j.showHidden=!1),C(j.depth)&&(j.depth=2),C(j.colors)&&(j.colors=!1),C(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=c),p(j,D,j.depth)}function c(D,B){var j=u.styles[B];return j?"\x1B["+u.colors[j][0]+"m"+D+"\x1B["+u.colors[j][1]+"m":D}function g(D,B){return D}function p(D,B,j){if(D.customInspect&&B&&N(B.inspect)&&B.inspect!==s.inspect&&(!B.constructor||B.constructor.prototype!==B)){var Q=B.inspect(j,D);return S(Q)||(Q=p(D,Q,j)),Q}var X=function(K,te){if(C(te))return K.stylize("undefined","undefined");if(S(te)){var ee="'"+JSON.stringify(te).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize(ee,"string")}return E(te)?K.stylize(""+te,"number"):A(te)?K.stylize(""+te,"boolean"):x(te)?K.stylize("null","null"):void 0}(D,B);if(X)return X;var Z=Object.keys(B),L=function(K){var te={};return K.forEach(function(ee,ie){te[ee]=!0}),te}(Z);if(D.showHidden&&(Z=Object.getOwnPropertyNames(B)),P(B)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return v(B);if(Z.length===0){if(N(B)){var W=B.name?": "+B.name:"";return D.stylize("[Function"+W+"]","special")}if(T(B))return D.stylize(RegExp.prototype.toString.call(B),"regexp");if(M(B))return D.stylize(Date.prototype.toString.call(B),"date");if(P(B))return v(B)}var G,J="",H=!1,U=["{","}"];return b(B)&&(H=!0,U=["[","]"]),N(B)&&(J=" [Function"+(B.name?": "+B.name:"")+"]"),T(B)&&(J=" "+RegExp.prototype.toString.call(B)),M(B)&&(J=" "+Date.prototype.toUTCString.call(B)),P(B)&&(J=" "+v(B)),Z.length!==0||H&&B.length!=0?j<0?T(B)?D.stylize(RegExp.prototype.toString.call(B),"regexp"):D.stylize("[Object]","special"):(D.seen.push(B),G=H?function(K,te,ee,ie,se){for(var ne=[],re=0,Y=te.length;re<Y;++re)O(te,String(re))?ne.push(y(K,te,ee,ie,String(re),!0)):ne.push("");return se.forEach(function(V){V.match(/^\d+$/)||ne.push(y(K,te,ee,ie,V,!0))}),ne}(D,B,j,L,Z):Z.map(function(K){return y(D,B,j,L,K,H)}),D.seen.pop(),function(K,te,ee){return K.reduce(function(ie,se){return se.indexOf(` +`),ie+se.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ee[0]+(te===""?"":te+` + `)+" "+K.join(`, + `)+" "+ee[1]:ee[0]+te+" "+K.join(", ")+" "+ee[1]}(G,J,U)):U[0]+J+U[1]}function v(D){return"["+Error.prototype.toString.call(D)+"]"}function y(D,B,j,Q,X,Z){var L,W,G;if((G=Object.getOwnPropertyDescriptor(B,X)||{value:B[X]}).get?W=G.set?D.stylize("[Getter/Setter]","special"):D.stylize("[Getter]","special"):G.set&&(W=D.stylize("[Setter]","special")),O(Q,X)||(L="["+X+"]"),W||(D.seen.indexOf(G.value)<0?(W=x(j)?p(D,G.value,null):p(D,G.value,j-1)).indexOf(` +`)>-1&&(W=Z?W.split(` +`).map(function(J){return" "+J}).join(` +`).slice(2):` +`+W.split(` +`).map(function(J){return" "+J}).join(` +`)):W=D.stylize("[Circular]","special")),C(L)){if(Z&&X.match(/^\d+$/))return W;(L=JSON.stringify(""+X)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=D.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=D.stylize(L,"string"))}return L+": "+W}function b(D){return Array.isArray(D)}function A(D){return typeof D=="boolean"}function x(D){return D===null}function E(D){return typeof D=="number"}function S(D){return typeof D=="string"}function C(D){return D===void 0}function T(D){return k(D)&&F(D)==="[object RegExp]"}function k(D){return(0,e.default)(D)==="object"&&D!==null}function M(D){return k(D)&&F(D)==="[object Date]"}function P(D){return k(D)&&(F(D)==="[object Error]"||D instanceof Error)}function N(D){return typeof D=="function"}function F(D){return Object.prototype.toString.call(D)}function q(D){return D<10?"0"+D.toString(10):D.toString(10)}s.debuglog=function(D){if(D=D.toUpperCase(),!t[D])if(o.test(D)){var B=f.pid;t[D]=function(){var j=s.format.apply(s,arguments);console.error("%s %d: %s",D,B,j)}}else t[D]=function(){};return t[D]},s.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.types=i(7092),s.isArray=b,s.isBoolean=A,s.isNull=x,s.isNullOrUndefined=function(D){return D==null},s.isNumber=E,s.isString=S,s.isSymbol=function(D){return(0,e.default)(D)==="symbol"},s.isUndefined=C,s.isRegExp=T,s.types.isRegExp=T,s.isObject=k,s.isDate=M,s.types.isDate=M,s.isError=P,s.types.isNativeError=P,s.isFunction=N,s.isPrimitive=function(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||(0,e.default)(D)==="symbol"||D===void 0},s.isBuffer=i(6248);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(D,B){return Object.prototype.hasOwnProperty.call(D,B)}s.log=function(){var D,B;console.log("%s - %s",(B=[q((D=new Date).getHours()),q(D.getMinutes()),q(D.getSeconds())].join(":"),[D.getDate(),z[D.getMonth()],B].join(" ")),s.format.apply(s,arguments))},s.inherits=i(1736),s._extend=function(D,B){if(!B||!k(B))return D;for(var j=Object.keys(B),Q=j.length;Q--;)D[j[Q]]=B[j[Q]];return D};var R=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function I(D,B){if(!D){var j=new Error("Promise was rejected with a falsy value");j.reason=D,D=j}return B(D)}s.promisify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');if(R&&D[R]){var B;if(typeof(B=D[R])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(B,R,{value:B,enumerable:!1,writable:!1,configurable:!0}),B}function B(){for(var j,Q,X=new Promise(function(W,G){j=W,Q=G}),Z=[],L=0;L<arguments.length;L++)Z.push(arguments[L]);Z.push(function(W,G){W?Q(W):j(G)});try{D.apply(this,Z)}catch(W){Q(W)}return X}return Object.setPrototypeOf(B,Object.getPrototypeOf(D)),R&&Object.defineProperty(B,R,{value:B,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(B,l(D))},s.promisify.custom=R,s.callbackify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function B(){for(var j=[],Q=0;Q<arguments.length;Q++)j.push(arguments[Q]);var X=j.pop();if(typeof X!="function")throw new TypeError("The last argument must be of type Function");var Z=this,L=function(){return X.apply(Z,arguments)};D.apply(this,j).then(function(W){f.nextTick(L.bind(null,null,W))},function(W){f.nextTick(I.bind(null,W,L))})}return Object.setPrototypeOf(B,Object.getPrototypeOf(D)),Object.defineProperties(B,l(D)),B}},2679:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"NIL",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(s,"parse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(s,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(s,"v1",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(s,"v3",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(s,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(s,"v5",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(s,"validate",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(s,"version",{enumerable:!0,get:function(){return o.default}});var f=g(i(5999)),e=g(i(8231)),l=g(i(8647)),n=g(i(5025)),t=g(i(5996)),o=g(i(8928)),d=g(i(6163)),u=g(i(2982)),c=g(i(1729));function g(p){return p&&p.__esModule?p:{default:p}}},6792:(r,s)=>{function i(d){return 14+(d+64>>>9<<4)+1}function f(d,u){var c=(65535&d)+(65535&u);return(d>>16)+(u>>16)+(c>>16)<<16|65535&c}function e(d,u,c,g,p,v){return f((y=f(f(u,d),f(g,v)))<<(b=p)|y>>>32-b,c);var y,b}function l(d,u,c,g,p,v,y){return e(u&c|~u&g,d,u,p,v,y)}function n(d,u,c,g,p,v,y){return e(u&g|c&~g,d,u,p,v,y)}function t(d,u,c,g,p,v,y){return e(u^c^g,d,u,p,v,y)}function o(d,u,c,g,p,v,y){return e(c^(u|~g),d,u,p,v,y)}Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default=function(d){if(typeof d=="string"){var u=unescape(encodeURIComponent(d));d=new Uint8Array(u.length);for(var c=0;c<u.length;++c)d[c]=u.charCodeAt(c)}return function(g){for(var p=[],v=32*g.length,y="0123456789abcdef",b=0;b<v;b+=8){var A=g[b>>5]>>>b%32&255,x=parseInt(y.charAt(A>>>4&15)+y.charAt(15&A),16);p.push(x)}return p}(function(g,p){g[p>>5]|=128<<p%32,g[i(p)-1]=p;for(var v=1732584193,y=-271733879,b=-1732584194,A=271733878,x=0;x<g.length;x+=16){var E=v,S=y,C=b,T=A;v=l(v,y,b,A,g[x],7,-680876936),A=l(A,v,y,b,g[x+1],12,-389564586),b=l(b,A,v,y,g[x+2],17,606105819),y=l(y,b,A,v,g[x+3],22,-1044525330),v=l(v,y,b,A,g[x+4],7,-176418897),A=l(A,v,y,b,g[x+5],12,1200080426),b=l(b,A,v,y,g[x+6],17,-1473231341),y=l(y,b,A,v,g[x+7],22,-45705983),v=l(v,y,b,A,g[x+8],7,1770035416),A=l(A,v,y,b,g[x+9],12,-1958414417),b=l(b,A,v,y,g[x+10],17,-42063),y=l(y,b,A,v,g[x+11],22,-1990404162),v=l(v,y,b,A,g[x+12],7,1804603682),A=l(A,v,y,b,g[x+13],12,-40341101),b=l(b,A,v,y,g[x+14],17,-1502002290),v=n(v,y=l(y,b,A,v,g[x+15],22,1236535329),b,A,g[x+1],5,-165796510),A=n(A,v,y,b,g[x+6],9,-1069501632),b=n(b,A,v,y,g[x+11],14,643717713),y=n(y,b,A,v,g[x],20,-373897302),v=n(v,y,b,A,g[x+5],5,-701558691),A=n(A,v,y,b,g[x+10],9,38016083),b=n(b,A,v,y,g[x+15],14,-660478335),y=n(y,b,A,v,g[x+4],20,-405537848),v=n(v,y,b,A,g[x+9],5,568446438),A=n(A,v,y,b,g[x+14],9,-1019803690),b=n(b,A,v,y,g[x+3],14,-187363961),y=n(y,b,A,v,g[x+8],20,1163531501),v=n(v,y,b,A,g[x+13],5,-1444681467),A=n(A,v,y,b,g[x+2],9,-51403784),b=n(b,A,v,y,g[x+7],14,1735328473),v=t(v,y=n(y,b,A,v,g[x+12],20,-1926607734),b,A,g[x+5],4,-378558),A=t(A,v,y,b,g[x+8],11,-2022574463),b=t(b,A,v,y,g[x+11],16,1839030562),y=t(y,b,A,v,g[x+14],23,-35309556),v=t(v,y,b,A,g[x+1],4,-1530992060),A=t(A,v,y,b,g[x+4],11,1272893353),b=t(b,A,v,y,g[x+7],16,-155497632),y=t(y,b,A,v,g[x+10],23,-1094730640),v=t(v,y,b,A,g[x+13],4,681279174),A=t(A,v,y,b,g[x],11,-358537222),b=t(b,A,v,y,g[x+3],16,-722521979),y=t(y,b,A,v,g[x+6],23,76029189),v=t(v,y,b,A,g[x+9],4,-640364487),A=t(A,v,y,b,g[x+12],11,-421815835),b=t(b,A,v,y,g[x+15],16,530742520),v=o(v,y=t(y,b,A,v,g[x+2],23,-995338651),b,A,g[x],6,-198630844),A=o(A,v,y,b,g[x+7],10,1126891415),b=o(b,A,v,y,g[x+14],15,-1416354905),y=o(y,b,A,v,g[x+5],21,-57434055),v=o(v,y,b,A,g[x+12],6,1700485571),A=o(A,v,y,b,g[x+3],10,-1894986606),b=o(b,A,v,y,g[x+10],15,-1051523),y=o(y,b,A,v,g[x+1],21,-2054922799),v=o(v,y,b,A,g[x+8],6,1873313359),A=o(A,v,y,b,g[x+15],10,-30611744),b=o(b,A,v,y,g[x+6],15,-1560198380),y=o(y,b,A,v,g[x+13],21,1309151649),v=o(v,y,b,A,g[x+4],6,-145523070),A=o(A,v,y,b,g[x+11],10,-1120210379),b=o(b,A,v,y,g[x+2],15,718787259),y=o(y,b,A,v,g[x+9],21,-343485551),v=f(v,E),y=f(y,S),b=f(b,C),A=f(A,T)}return[v,y,b,A]}(function(g){if(g.length===0)return[];for(var p=8*g.length,v=new Uint32Array(i(p)),y=0;y<p;y+=8)v[y>>5]|=(255&g[y/8])<<y%32;return v}(d),8*d.length))}},1788:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var i={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};s.default=i},5996:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default="00000000-0000-0000-0000-000000000000"},1729:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var f,e=(f=i(6163))&&f.__esModule?f:{default:f};s.default=function(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");var n,t=new Uint8Array(16);return t[0]=(n=parseInt(l.slice(0,8),16))>>>24,t[1]=n>>>16&255,t[2]=n>>>8&255,t[3]=255&n,t[4]=(n=parseInt(l.slice(9,13),16))>>>8,t[5]=255&n,t[6]=(n=parseInt(l.slice(14,18),16))>>>8,t[7]=255&n,t[8]=(n=parseInt(l.slice(19,23),16))>>>8,t[9]=255&n,t[10]=(n=parseInt(l.slice(24,36),16))/1099511627776&255,t[11]=n/4294967296&255,t[12]=n>>>24&255,t[13]=n>>>16&255,t[14]=n>>>8&255,t[15]=255&n,t}},7300:(r,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default=/^(?:[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},4402:(r,s)=>{var i;Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(){if(!i&&!(i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(f)};var f=new Uint8Array(16)},2702:(r,s)=>{function i(e,l,n,t){switch(e){case 0:return l&n^~l&t;case 1:case 3:return l^n^t;case 2:return l&n^l&t^n&t}}function f(e,l){return e<<l|e>>>32-l}Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default=function(e){var l=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=[];for(var o=0;o<t.length;++o)e.push(t.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var d=e.length/4+2,u=Math.ceil(d/16),c=new Array(u),g=0;g<u;++g){for(var p=new Uint32Array(16),v=0;v<16;++v)p[v]=e[64*g+4*v]<<24|e[64*g+4*v+1]<<16|e[64*g+4*v+2]<<8|e[64*g+4*v+3];c[g]=p}c[u-1][14]=8*(e.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(e.length-1)&4294967295;for(var y=0;y<u;++y){for(var b=new Uint32Array(80),A=0;A<16;++A)b[A]=c[y][A];for(var x=16;x<80;++x)b[x]=f(b[x-3]^b[x-8]^b[x-14]^b[x-16],1);for(var E=n[0],S=n[1],C=n[2],T=n[3],k=n[4],M=0;M<80;++M){var P=Math.floor(M/20),N=f(E,5)+i(P,S,C,T)+k+l[P]+b[M]>>>0;k=T,T=C,C=f(S,30)>>>0,S=E,E=N}n[0]=n[0]+E>>>0,n[1]=n[1]+S>>>0,n[2]=n[2]+C>>>0,n[3]=n[3]+T>>>0,n[4]=n[4]+k>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}},2982:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.unsafeStringify=t;for(var f,e=(f=i(6163))&&f.__esModule?f:{default:f},l=[],n=0;n<256;++n)l.push((n+256).toString(16).slice(1));function t(o){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(l[o[d+0]]+l[o[d+1]]+l[o[d+2]]+l[o[d+3]]+"-"+l[o[d+4]]+l[o[d+5]]+"-"+l[o[d+6]]+l[o[d+7]]+"-"+l[o[d+8]]+l[o[d+9]]+"-"+l[o[d+10]]+l[o[d+11]]+l[o[d+12]]+l[o[d+13]]+l[o[d+14]]+l[o[d+15]]).toLowerCase()}s.default=function(o){var d=t(o,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0);if(!(0,e.default)(d))throw TypeError("Stringified UUID is invalid");return d}},5999:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var f,e,l,n=(f=i(4402))&&f.__esModule?f:{default:f},t=i(2982),o=0,d=0;s.default=function(u,c,g){var p=c&&g||0,v=c||new Array(16),y=(u=u||{}).node||e,b=u.clockseq!==void 0?u.clockseq:l;if(y==null||b==null){var A=u.random||(u.rng||n.default)();y==null&&(y=e=[1|A[0],A[1],A[2],A[3],A[4],A[5]]),b==null&&(b=l=16383&(A[6]<<8|A[7]))}var x=u.msecs!==void 0?u.msecs:Date.now(),E=u.nsecs!==void 0?u.nsecs:d+1,S=x-o+(E-d)/1e4;if(S<0&&u.clockseq===void 0&&(b=b+1&16383),(S<0||x>o)&&u.nsecs===void 0&&(E=0),E>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=x,d=E,l=b;var C=(1e4*(268435455&(x+=122192928e5))+E)%4294967296;v[p++]=C>>>24&255,v[p++]=C>>>16&255,v[p++]=C>>>8&255,v[p++]=255&C;var T=x/4294967296*1e4&268435455;v[p++]=T>>>8&255,v[p++]=255&T,v[p++]=T>>>24&15|16,v[p++]=T>>>16&255,v[p++]=b>>>8|128,v[p++]=255&b;for(var k=0;k<6;++k)v[p+k]=y[k];return c||(0,t.unsafeStringify)(v)}},8231:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var f=l(i(6125)),e=l(i(6792));function l(t){return t&&t.__esModule?t:{default:t}}var n=(0,f.default)("v3",48,e.default);s.default=n},6125:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.URL=s.DNS=void 0,s.default=function(o,d,u){function c(g,p,v,y){var b;if(typeof g=="string"&&(g=function(E){E=unescape(encodeURIComponent(E));for(var S=[],C=0;C<E.length;++C)S.push(E.charCodeAt(C));return S}(g)),typeof p=="string"&&(p=(0,l.default)(p)),((b=p)===null||b===void 0?void 0:b.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var A=new Uint8Array(16+g.length);if(A.set(p),A.set(g,p.length),(A=u(A))[6]=15&A[6]|d,A[8]=63&A[8]|128,v){y=y||0;for(var x=0;x<16;++x)v[y+x]=A[x];return v}return(0,e.unsafeStringify)(A)}try{c.name=o}catch{}return c.DNS=n,c.URL=t,c};var f,e=i(2982),l=(f=i(1729))&&f.__esModule?f:{default:f},n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";s.DNS=n;var t="6ba7b811-9dad-11d1-80b4-00c04fd430c8";s.URL=t},8647:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var f=n(i(1788)),e=n(i(4402)),l=i(2982);function n(t){return t&&t.__esModule?t:{default:t}}s.default=function(t,o,d){if(f.default.randomUUID&&!o&&!t)return f.default.randomUUID();var u=(t=t||{}).random||(t.rng||e.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,o){d=d||0;for(var c=0;c<16;++c)o[d+c]=u[c];return o}return(0,l.unsafeStringify)(u)}},5025:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var f=l(i(6125)),e=l(i(2702));function l(t){return t&&t.__esModule?t:{default:t}}var n=(0,f.default)("v5",80,e.default);s.default=n},6163:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var f,e=(f=i(7300))&&f.__esModule?f:{default:f};s.default=function(l){return typeof l=="string"&&e.default.test(l)}},8928:(r,s,i)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var f,e=(f=i(6163))&&f.__esModule?f:{default:f};s.default=function(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}},8325:r=>{r.exports=function f(e,l){var n,t=0,o=0,d=l=l||0,u=e.length;do{if(d>=u)throw f.bytes=0,new RangeError("Could not decode varint");n=e[d++],t+=o<28?(n&i)<<o:(n&i)*Math.pow(2,o),o+=7}while(n>=s);return f.bytes=d-l,t};var s=128,i=127},2699:r=>{r.exports=function e(l,n,t){n=n||[];for(var o=t=t||0;l>=f;)n[t++]=255&l|s,l/=128;for(;l&i;)n[t++]=255&l|s,l>>>=7;return n[t]=0|l,e.bytes=t-o+1,n};var s=128,i=-128,f=Math.pow(2,31)},6657:(r,s,i)=>{r.exports={encode:i(2699),decode:i(8325),encodingLength:i(7490)}},7490:r=>{var s=Math.pow(2,7),i=Math.pow(2,14),f=Math.pow(2,21),e=Math.pow(2,28),l=Math.pow(2,35),n=Math.pow(2,42),t=Math.pow(2,49),o=Math.pow(2,56),d=Math.pow(2,63);r.exports=function(u){return u<s?1:u<i?2:u<f?3:u<e?4:u<l?5:u<n?6:u<t?7:u<o?8:u<d?9:10}},1158:(r,s,i)=>{var f,e=i(8847)(i(3355));if((typeof globalThis>"u"?"undefined":(0,e.default)(globalThis))==="object")f=globalThis;else try{f=i(6464)}catch{}finally{if(f||typeof window>"u"||(f=window),!f)throw new Error("Could not determine global this")}var l=f.WebSocket||f.MozWebSocket,n=i(5735);function t(o,d){return d?new l(o,d):new l(o)}l&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(o){Object.defineProperty(t,o,{get:function(){return l[o]}})}),r.exports={w3cwebsocket:l?t:null,version:n}},5735:(r,s,i)=>{r.exports=i(9794).version},2337:(r,s,i)=>{var f=i(8184),e=i(3604),l=i(593),n=i(3820),t=l("Object.prototype.toString"),o=i(1191)(),d=typeof globalThis>"u"?i.g:globalThis,u=e(),c=l("String.prototype.slice"),g={},p=Object.getPrototypeOf;o&&n&&p&&f(u,function(y){if(typeof d[y]=="function"){var b=new d[y];if(Symbol.toStringTag in b){var A=p(b),x=n(A,Symbol.toStringTag);if(!x){var E=p(A);x=n(E,Symbol.toStringTag)}g[y]=x.get}}});var v=i(8915);r.exports=function(y){return!!v(y)&&(o&&Symbol.toStringTag in y?function(b){var A=!1;return f(g,function(x,E){if(!A)try{var S=x.call(b);S===E&&(A=S)}catch{}}),A}(y):c(t(y),8,-1))}},1357:(r,s,i)=>{var f=i(1296),e=i(8419),l=i(3103),n=i(9122),t=i(7321),o="application/json",d=function(){};r.exports=function(u,c,g){if(!u||typeof u!="string")throw new TypeError("must specify a URL");if(typeof c=="function"&&(g=c,c={}),g&&typeof g!="function")throw new TypeError("expected cb to be undefined or a function");g=g||d;var p=(c=c||{}).json?"json":"text",v=(c=l({responseType:p},c)).headers||{},y=(c.method||"GET").toUpperCase(),b=c.query;return b&&(typeof b!="string"&&(b=f.stringify(b)),u=e(u,b)),c.responseType==="json"&&n(v,"Accept",o),c.json&&y!=="GET"&&y!=="HEAD"&&(n(v,"Content-Type",o),c.body=JSON.stringify(c.body)),c.method=y,c.url=u,c.headers=v,delete c.query,delete c.json,t(c,g)}},9122:r=>{r.exports=function(s,i,f){var e=i.toLowerCase();s[i]||s[e]||(s[i]=f)}},9800:r=>{r.exports=function(s,i){return i?{statusCode:i.statusCode,headers:i.headers,method:s.method,url:s.url,rawRequest:i.rawRequest?i.rawRequest:i}:null}},7321:(r,s,i)=>{var f=i(346),e=i(9800),l=function(){};r.exports=function(n,t){delete n.uri;var o=!1;n.responseType==="json"&&(n.responseType="text",o=!0);var d=f(n,function(c,g,p){if(o&&!c)try{var v=g.rawRequest.responseText;p=JSON.parse(v)}catch(y){c=y}g=e(n,g),t(c,c?null:p,g),t=l}),u=d.onabort;return d.onabort=function(){var c=u.apply(d,Array.prototype.slice.call(arguments));return t(new Error("XHR Aborted")),t=l,c},d}},346:(r,s,i)=>{var f=i(2948),e=i(4339),l=i(8209),n=i(7705);function t(u,c,g){var p=u;return e(c)?(g=c,typeof u=="string"&&(p={uri:u})):p=n(c,{uri:u}),p.callback=g,p}function o(u,c,g){return d(c=t(u,c,g))}function d(u){if(u.callback===void 0)throw new Error("callback argument missing");var c=!1,g=function(F,q,z){c||(c=!0,u.callback(F,q,z))};function p(){var F=void 0;if(F=x.response?x.response:x.responseText||function(q){try{if(q.responseType==="document")return q.responseXML;var z=q.responseXML&&q.responseXML.documentElement.nodeName==="parsererror";if(q.responseType===""&&!z)return q.responseXML}catch{}return null}(x),P)try{F=JSON.parse(F)}catch{}return F}function v(F){return clearTimeout(E),F instanceof Error||(F=new Error(""+(F||"Unknown XMLHttpRequest Error"))),F.statusCode=0,g(F,N)}function y(){if(!A){var F;clearTimeout(E),F=u.useXDR&&x.status===void 0?200:x.status===1223?204:x.status;var q=N,z=null;return F!==0?(q={body:p(),statusCode:F,method:C,headers:{},url:S,rawRequest:x},x.getAllResponseHeaders&&(q.headers=l(x.getAllResponseHeaders()))):z=new Error("Internal XMLHttpRequest Error"),g(z,q,q.body)}}var b,A,x=u.xhr||null;x||(x=u.cors||u.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var E,S=x.url=u.uri||u.url,C=x.method=u.method||"GET",T=u.body||u.data,k=x.headers=u.headers||{},M=!!u.sync,P=!1,N={body:void 0,headers:{},statusCode:0,method:C,url:S,rawRequest:x};if("json"in u&&u.json!==!1&&(P=!0,k.accept||k.Accept||(k.Accept="application/json"),C!=="GET"&&C!=="HEAD"&&(k["content-type"]||k["Content-Type"]||(k["Content-Type"]="application/json"),T=JSON.stringify(u.json===!0?T:u.json))),x.onreadystatechange=function(){x.readyState===4&&setTimeout(y,0)},x.onload=y,x.onerror=v,x.onprogress=function(){},x.onabort=function(){A=!0},x.ontimeout=v,x.open(C,S,!M,u.username,u.password),M||(x.withCredentials=!!u.withCredentials),!M&&u.timeout>0&&(E=setTimeout(function(){if(!A){A=!0,x.abort("timeout");var F=new Error("XMLHttpRequest timeout");F.code="ETIMEDOUT",v(F)}},u.timeout)),x.setRequestHeader)for(b in k)k.hasOwnProperty(b)&&x.setRequestHeader(b,k[b]);else if(u.headers&&!function(F){for(var q in F)if(F.hasOwnProperty(q))return!1;return!0}(u.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in u&&(x.responseType=u.responseType),"beforeSend"in u&&typeof u.beforeSend=="function"&&u.beforeSend(x),x.send(T||null),x}r.exports=o,r.exports.default=o,o.XMLHttpRequest=f.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:f.XDomainRequest,function(u,c){for(var g=0;g<u.length;g++)c(u[g])}(["get","put","post","patch","head","delete"],function(u){o[u==="delete"?"del":u]=function(c,g,p){return(g=t(c,g,p)).method=u.toUpperCase(),d(g)}})},7705:r=>{r.exports=function(){for(var i={},f=0;f<arguments.length;f++){var e=arguments[f];for(var l in e)s.call(e,l)&&(i[l]=e[l])}return i};var s=Object.prototype.hasOwnProperty},2463:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(6427),l=function n(t){this.givenProvider=n.givenProvider,t&&t._requestManager&&(t=t.currentProvider),typeof document<"u"&&(this.pick=e.pick),this.setProvider(t)};l.givenProvider=null,typeof ethereum<"u"&ðereum.bzz&&(l.givenProvider=ethereum.bzz),l.prototype.setProvider=function(n){if(n&&(0,f.default)(n)==="object"&&typeof n.bzz=="string"&&(n=n.bzz),typeof n!="string"){this.currentProvider=null;var t=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw t},!1}return this.currentProvider=n,this.download=e.at(n).download,this.upload=e.at(n).upload,this.isAvailable=e.at(n).isAvailable,!0},r.exports=l},4246:(r,s,i)=>{var f=i(8847)(i(3355));r.exports={ErrorResponse:function(e){var l=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e),n=e.error&&e.error.data?e.error.data:null,t=new Error("Returned error: "+l);return t.data=n,t},InvalidNumberOfParams:function(e,l,n){return new Error('Invalid number of parameters for "'+n+'". Got '+e+" expected "+l+"!")},InvalidConnection:function(e,l){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+e+".",l)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var l=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(l)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")},ConnectionNotOpenError:function(e){return this.ConnectionError("connection not open on send()",e)},ConnectionCloseError:function(e){return(0,f.default)(e)==="object"&&e.code&&e.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+e.code+"` and the following reason string `"+e.reason+"`",e):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(e,l){var n=new Error(e);return l&&(n.code=l.code,n.reason=l.reason,l.description&&(n.description=l.description)),n},RevertInstructionError:function(e,l){var n=new Error("Your request got reverted with the following reason string: "+e);return n.reason=e,n.signature=l,n},TransactionRevertInstructionError:function(e,l,n){var t=new Error(`Transaction has been reverted by the EVM: +`+JSON.stringify(n,null,2));return t.reason=e,t.signature=l,t.receipt=n,t},TransactionError:function(e,l){var n=new Error(e);return n.receipt=l,n},NoContractAddressFoundError:function(e){return this.TransactionError("The transaction receipt didn't contain a contract address.",e)},ContractCodeNotStoredError:function(e){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",e)},TransactionRevertedWithoutReasonError:function(e){return this.TransactionError(`Transaction has been reverted by the EVM: +`+JSON.stringify(e,null,2),e)},TransactionOutOfGasError:function(e){return this.TransactionError(`Transaction ran out of gas. Please provide more gas: +`+JSON.stringify(e,null,2),e)},ResolverMethodMissingError:function(e,l){return new Error("The resolver at "+e+'does not implement requested method: "'+l+'".')},ContractMissingABIError:function(){return new Error("You must provide the json interface of the contract when instantiating a contract object.")},ContractOnceRequiresCallbackError:function(){return new Error("Once requires a callback as the second parameter.")},ContractEventDoesNotExistError:function(e){return new Error('Event "'+e+`" doesn't exist in this contract.`)},ContractReservedEventError:function(e){return new Error('The event "'+e+`" is a reserved event name, you can't use it.`)},ContractMissingDeployDataError:function(){return new Error('No "data" specified in neither the given options, nor the default options.')},ContractNoAddressDefinedError:function(){return new Error("This contract object doesn't have address set yet, please set an address first.")},ContractNoFromAddressDefinedError:function(){return new Error('No "from" address specified in neither the given options, nor the default options.')}}},2084:(r,s,i)=>{var f=i(8847),e=f(i(775)),l=f(i(3355));function n(b,A){var x=Object.keys(b);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(b);A&&(E=E.filter(function(S){return Object.getOwnPropertyDescriptor(b,S).enumerable})),x.push.apply(x,E)}return x}function t(b){for(var A=1;A<arguments.length;A++){var x=arguments[A]!=null?arguments[A]:{};A%2?n(Object(x),!0).forEach(function(E){(0,e.default)(b,E,x[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(x)):n(Object(x)).forEach(function(E){Object.defineProperty(b,E,Object.getOwnPropertyDescriptor(x,E))})}return b}var o=i(8161),d=i(6),u=function(b){return o.toBN(b).toString(10)},c=function(b){if(b!==void 0)return function(A){return["latest","pending","earliest","finalized","safe"].includes(A)}(b)?b:b==="genesis"?"0x0":o.isHexStrict(b)?typeof b=="string"?b.toLowerCase():b:o.numberToHex(b)},g=function(b){if(b.to&&(b.to=y(b.to)),b.data&&b.input)throw new Error(`You can't have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.`);if(!b.data&&b.input&&(b.data=b.input,delete b.input),b.data&&!b.data.startsWith("0x")&&(b.data="0x"+b.data),b.data&&!o.isHex(b.data))throw new Error("The data field must be HEX encoded data.");return(b.gas||b.gasLimit)&&(b.gas=b.gas||b.gasLimit),(b.maxPriorityFeePerGas||b.maxFeePerGas)&&delete b.gasPrice,["gasPrice","gas","value","maxPriorityFeePerGas","maxFeePerGas","nonce","type"].filter(function(A){return b[A]!==void 0}).forEach(function(A){b[A]=o.numberToHex(b[A])}),b},p=function(b,A){return A||(b.blockNumber!==null&&(b.blockNumber=o.hexToNumber(b.blockNumber)),b.transactionIndex!==null&&(b.transactionIndex=o.hexToNumber(b.transactionIndex)),b.nonce=o.hexToNumber(b.nonce),b.gas=o.hexToNumber(b.gas),b.type&&(b.type=o.hexToNumber(b.type))),b.gasPrice&&(b.gasPrice=u(b.gasPrice)),b.maxFeePerGas&&(b.maxFeePerGas=u(b.maxFeePerGas)),b.maxPriorityFeePerGas&&(b.maxPriorityFeePerGas=u(b.maxPriorityFeePerGas)),b.value=u(b.value),b.to&&o.isAddress(b.to)?b.to=o.toChecksumAddress(b.to):b.to=null,b.from&&(b.from=o.toChecksumAddress(b.from)),b},v=function(b){if(typeof b.blockHash=="string"&&typeof b.transactionHash=="string"&&typeof b.logIndex=="string"){var A=o.sha3(b.blockHash.replace("0x","")+b.transactionHash.replace("0x","")+b.logIndex.replace("0x",""));b.id="log_"+A.replace("0x","").slice(0,8)}else b.id||(b.id=null);return b.blockNumber!==null&&(b.blockNumber=o.hexToNumber(b.blockNumber)),b.transactionIndex!==null&&(b.transactionIndex=o.hexToNumber(b.transactionIndex)),b.logIndex!==null&&(b.logIndex=o.hexToNumber(b.logIndex)),b.address&&(b.address=o.toChecksumAddress(b.address)),b},y=function(b){var A=new d(b);if(A.isValid()&&A.isDirect())return A.toAddress().toLowerCase();if(o.isAddress(b))return"0x"+b.toLowerCase().replace("0x","");throw new Error("Provided address ".concat(b," is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted."))};r.exports={inputDefaultBlockNumberFormatter:function(b){return c(this&&b==null?this.defaultBlock:b)},inputBlockNumberFormatter:c,inputCallFormatter:function(b){var A=(b=g(b)).from||(this?this.defaultAccount:null);return A&&(b.from=y(A)),b},inputTransactionFormatter:function(b){if(typeof(b=g(b)).from!="number"&&(!b.from||(0,l.default)(b.from)!=="object")){if(b.from=b.from||(this?this.defaultAccount:null),!b.from&&typeof b.from!="number")throw new Error('The send transactions "from" field must be defined!');b.from=y(b.from)}return b},inputAddressFormatter:y,inputPostFormatter:function(b){return b.ttl&&(b.ttl=o.numberToHex(b.ttl)),b.workToProve&&(b.workToProve=o.numberToHex(b.workToProve)),b.priority&&(b.priority=o.numberToHex(b.priority)),Array.isArray(b.topics)||(b.topics=b.topics?[b.topics]:[]),b.topics=b.topics.map(function(A){return A.indexOf("0x")===0?A:o.fromUtf8(A)}),b},inputLogFormatter:function(b){var A=function(x){return x==null?null:(x=String(x)).indexOf("0x")===0?x:o.fromUtf8(x)};return b===void 0&&(b={}),b.fromBlock===void 0&&(b=t(t({},b),{},{fromBlock:"latest"})),(b.fromBlock||b.fromBlock===0)&&(b.fromBlock=c(b.fromBlock)),(b.toBlock||b.toBlock===0)&&(b.toBlock=c(b.toBlock)),b.topics=b.topics||[],b.topics=b.topics.map(function(x){return Array.isArray(x)?x.map(A):A(x)}),A=null,b.address&&(b.address=Array.isArray(b.address)?b.address.map(function(x){return y(x)}):y(b.address)),b},inputSignFormatter:function(b){return o.isHexStrict(b)?b:o.utf8ToHex(b)},inputStorageKeysFormatter:function(b){return b.map(o.numberToHex)},outputProofFormatter:function(b){return b.address=o.toChecksumAddress(b.address),b.nonce=o.hexToNumberString(b.nonce),b.balance=o.hexToNumberString(b.balance),b},outputBigNumberFormatter:u,outputTransactionFormatter:p,outputTransactionReceiptFormatter:function(b){if((0,l.default)(b)!=="object")throw new Error("Received receipt is invalid: "+b);return this.hexFormat||(b.blockNumber!==null&&(b.blockNumber=o.hexToNumber(b.blockNumber)),b.transactionIndex!==null&&(b.transactionIndex=o.hexToNumber(b.transactionIndex)),b.cumulativeGasUsed=o.hexToNumber(b.cumulativeGasUsed),b.gasUsed=o.hexToNumber(b.gasUsed),b.effectiveGasPrice&&(b.effectiveGasPrice=o.hexToNumber(b.effectiveGasPrice))),Array.isArray(b.logs)&&(b.logs=b.logs.map(v)),b.contractAddress&&(b.contractAddress=o.toChecksumAddress(b.contractAddress)),b.status!==void 0&&b.status!==null&&(b.status=!!parseInt(b.status)),b},outputBlockFormatter:function(b,A){return A||(b.gasLimit=o.hexToNumber(b.gasLimit),b.gasUsed=o.hexToNumber(b.gasUsed),b.size=o.hexToNumber(b.size),b.timestamp=o.hexToNumber(b.timestamp),b.number!==null&&(b.number=o.hexToNumber(b.number))),b.difficulty&&(b.difficulty=u(b.difficulty)),b.totalDifficulty&&(b.totalDifficulty=u(b.totalDifficulty)),Array.isArray(b.transactions)&&b.transactions.forEach(function(x){if(typeof x!="string")return p(x,A)}),b.miner&&(b.miner=o.toChecksumAddress(b.miner)),b.baseFeePerGas&&(b.baseFeePerGas=o.hexToNumber(b.baseFeePerGas)),b},outputLogFormatter:v,outputPostFormatter:function(b){return b.expiry=o.hexToNumber(b.expiry),b.sent=o.hexToNumber(b.sent),b.ttl=o.hexToNumber(b.ttl),b.workProved=o.hexToNumber(b.workProved),b.topics||(b.topics=[]),b.topics=b.topics.map(function(A){return o.toUtf8(A)}),b},outputSyncingFormatter:function(b){return b.startingBlock=o.hexToNumber(b.startingBlock),b.currentBlock=o.hexToNumber(b.currentBlock),b.highestBlock=o.hexToNumber(b.highestBlock),b.knownStates&&(b.knownStates=o.hexToNumber(b.knownStates),b.pulledStates=o.hexToNumber(b.pulledStates)),b}}},1314:(r,s,i)=>{var f=i(4246),e=i(2084);r.exports={errors:f,formatters:e}},3349:(r,s,i)=>{var f=i(8847),e=f(i(2247)),l=f(i(4519)),n=f(i(775)),t=f(i(5698)),o=f(i(3355));function d(E,S){var C=Object.keys(E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(E);S&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(E,k).enumerable})),C.push.apply(C,T)}return C}function u(E){for(var S=1;S<arguments.length;S++){var C=arguments[S]!=null?arguments[S]:{};S%2?d(Object(C),!0).forEach(function(T){(0,n.default)(E,T,C[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(C)):d(Object(C)).forEach(function(T){Object.defineProperty(E,T,Object.getOwnPropertyDescriptor(C,T))})}return E}var c=i(1314).errors,g=i(1314).formatters,p=i(8161),v=i(282),y=i(4178).subscriptions,b=i(1936),A=function(E){if(!E.call||!E.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=E.name,this.call=E.call,this.params=E.params||0,this.inputFormatter=E.inputFormatter,this.outputFormatter=E.outputFormatter,this.transformPayload=E.transformPayload,this.extraFormatters=E.extraFormatters,this.abiCoder=E.abiCoder,this.requestManager=E.requestManager,this.accounts=E.accounts,this.defaultBlock=E.defaultBlock||"latest",this.defaultAccount=E.defaultAccount||null,this.transactionBlockTimeout=E.transactionBlockTimeout||50,this.transactionConfirmationBlocks=E.transactionConfirmationBlocks||24,this.transactionPollingTimeout=E.transactionPollingTimeout||750,this.transactionPollingInterval=E.transactionPollingInterval||1e3,this.blockHeaderTimeout=E.blockHeaderTimeout||10,this.defaultCommon=E.defaultCommon,this.defaultChain=E.defaultChain,this.defaultHardfork=E.defaultHardfork,this.handleRevert=E.handleRevert};A.prototype.setRequestManager=function(E,S){this.requestManager=E,S&&(this.accounts=S)},A.prototype.createFunction=function(E,S){var C=this.buildCall();return Object.defineProperty(C,"call",{configurable:!0,writable:!0,value:this.call}),this.setRequestManager(E||this.requestManager,S||this.accounts),C},A.prototype.attachToObject=function(E){var S=this.buildCall();Object.defineProperty(S,"call",{configurable:!0,writable:!0,value:this.call});var C=this.name.split(".");C.length>1?(E[C[0]]=E[C[0]]||{},E[C[0]][C[1]]=S):E[C[0]]=S},A.prototype.getCall=function(E){return typeof this.call=="function"?this.call(E):this.call},A.prototype.extractCallback=function(E){if(typeof E[E.length-1]=="function")return E.pop()},A.prototype.validateArgs=function(E){if(E.length!==this.params)throw c.InvalidNumberOfParams(E.length,this.params,this.name)},A.prototype.formatInput=function(E){var S=this;return this.inputFormatter?this.inputFormatter.map(function(C,T){return C?C.call(S,E[T]):E[T]}):E},A.prototype.formatOutput=function(E){var S=this;return Array.isArray(E)?E.map(function(C){return S.outputFormatter&&C?S.outputFormatter(C,this==null?void 0:this.hexFormat):C}):this.outputFormatter&&E?this.outputFormatter(E,this==null?void 0:this.hexFormat):E},A.prototype.toPayload=function(E){var S=this.getCall(E),C=this.extractCallback(E),T=this.formatInput(E);this.validateArgs(T);var k={method:S,params:T,callback:C};return this.transformPayload&&(k=this.transformPayload(k)),k},A.prototype._confirmTransaction=function(E,S,C){var T=this,k=!1,M=!0,P=0,N=0,F=null,q=null,z=null,O=C.params[0]&&(0,o.default)(C.params[0])==="object"&&C.params[0].gas?C.params[0].gas:null,R=!!C.params[0]&&(0,o.default)(C.params[0])==="object"&&C.params[0].data&&C.params[0].from&&!C.params[0].to,I=R&&C.params[0].data.length>2,D=[new A({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[g.inputBlockNumberFormatter,function(X){return!!X}],outputFormatter:g.outputBlockFormatter}),new A({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:g.outputTransactionReceiptFormatter}),new A({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[g.inputAddressFormatter,g.inputDefaultBlockNumberFormatter]}),new A({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:g.outputTransactionFormatter}),new y({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:g.outputBlockFormatter}}})],B={};D.forEach(function(X){X.attachToObject(B),X.requestManager=T.requestManager});var j=function(X,Z,L,W,G){if(!L)return G||(G={unsubscribe:function(){clearInterval(F),clearTimeout(q)}}),(X?v.resolve(X):B.getTransactionReceipt(S)).catch(function(J){G.unsubscribe(),k=!0,p._fireError({message:"Failed to check for transaction receipt:",data:J},E.eventEmitter,E.reject)}).then(function(){var J=(0,t.default)(e.default.mark(function H(U){var K,te,ee;return e.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(U&&U.blockHash){ie.next=2;break}throw new Error("Receipt missing or blockHash null");case 2:if(T.extraFormatters&&T.extraFormatters.receiptFormatter&&(U=T.extraFormatters.receiptFormatter(U)),!(E.eventEmitter.listeners("confirmation").length>0)){ie.next=28;break}if(X!==void 0&&N===0){ie.next=25;break}return ie.next=7,B.getBlockByNumber("latest");case 7:if(te=ie.sent,ee=te?te.hash:null,!Z){ie.next=24;break}if(!z){ie.next=17;break}return ie.next=13,B.getBlockByNumber(z.number+1);case 13:(K=ie.sent)&&(z=K,E.eventEmitter.emit("confirmation",N,U,ee)),ie.next=22;break;case 17:return ie.next=19,B.getBlockByNumber(U.blockNumber);case 19:K=ie.sent,z=K,E.eventEmitter.emit("confirmation",N,U,ee);case 22:ie.next=25;break;case 24:E.eventEmitter.emit("confirmation",N,U,ee);case 25:(Z&&K||!Z)&&N++,M=!1,N===T.transactionConfirmationBlocks+1&&(G.unsubscribe(),E.eventEmitter.removeAllListeners());case 28:return ie.abrupt("return",U);case 29:case"end":return ie.stop()}},H)}));return function(H){return J.apply(this,arguments)}}()).then(function(){var J=(0,t.default)(e.default.mark(function H(U){var K;return e.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(!R||k){te.next=19;break}if(U.contractAddress){te.next=5;break}return M&&(G.unsubscribe(),k=!0),p._fireError(c.NoContractAddressFoundError(U),E.eventEmitter,E.reject,null,U),te.abrupt("return");case 5:return te.prev=5,te.next=8,B.getCode(U.contractAddress);case 8:K=te.sent,te.next=13;break;case 11:te.prev=11,te.t0=te.catch(5);case 13:if(K){te.next=15;break}return te.abrupt("return");case 15:U.status===!0&&I||K.length>2?(E.eventEmitter.emit("receipt",U),T.extraFormatters&&T.extraFormatters.contractDeployFormatter?E.resolve(T.extraFormatters.contractDeployFormatter(U)):E.resolve(U),M&&E.eventEmitter.removeAllListeners()):p._fireError(c.ContractCodeNotStoredError(U),E.eventEmitter,E.reject,null,U),M&&G.unsubscribe(),k=!0;case 19:return te.abrupt("return",U);case 20:case"end":return te.stop()}},H,null,[[5,11]])}));return function(H){return J.apply(this,arguments)}}()).then(function(){var J=(0,t.default)(e.default.mark(function H(U){var K,te,ee,ie;return e.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(R||k){se.next=35;break}if(U.outOfGas||O&&O===U.gasUsed||U.status!==!0&&U.status!=="0x1"&&U.status!==void 0){se.next=7;break}E.eventEmitter.emit("receipt",U),E.resolve(U),M&&E.eventEmitter.removeAllListeners(),se.next=33;break;case 7:if(JSON.stringify(U,null,2),U.status!==!1&&U.status!=="0x0"){se.next=32;break}if(se.prev=9,K=null,!T.handleRevert||T.call!=="eth_sendTransaction"&&T.call!=="eth_sendRawTransaction"){se.next=24;break}return te=C.params[0],T.call==="eth_sendRawTransaction"&&(ee=C.params[0],ie=b.parse(ee),te=g.inputTransactionFormatter({data:ie.data,to:ie.to,from:ie.from,gas:ie.gasLimit.toHexString(),gasPrice:ie.gasPrice?ie.gasPrice.toHexString():void 0,value:ie.value.toHexString()})),se.next=16,T.getRevertReason(te,U.blockNumber);case 16:if(!(K=se.sent)){se.next=21;break}p._fireError(c.TransactionRevertInstructionError(K.reason,K.signature,U),E.eventEmitter,E.reject,null,U),se.next=22;break;case 21:throw!1;case 22:se.next=25;break;case 24:throw!1;case 25:se.next=30;break;case 27:se.prev=27,se.t0=se.catch(9),p._fireError(c.TransactionRevertedWithoutReasonError(U),E.eventEmitter,E.reject,null,U);case 30:se.next=33;break;case 32:p._fireError(c.TransactionOutOfGasError(U),E.eventEmitter,E.reject,null,U);case 33:M&&G.unsubscribe(),k=!0;case 35:case"end":return se.stop()}},H,null,[[9,27]])}));return function(H){return J.apply(this,arguments)}}()).catch(function(){P++,Z?P-1>=T.transactionPollingTimeout&&(G.unsubscribe(),k=!0,p._fireError(c.TransactionError("Transaction was not mined within "+T.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),E.eventEmitter,E.reject)):P-1>=T.transactionBlockTimeout&&(G.unsubscribe(),k=!0,p._fireError(c.TransactionError("Transaction was not mined within "+T.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),E.eventEmitter,E.reject))});G.unsubscribe(),k=!0,p._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:L},E.eventEmitter,E.reject)},Q=function(X){var Z=!1,L=function(){F=setInterval(j.bind(null,X,!0),T.transactionPollingInterval)};if(!this.requestManager.provider.on)return L();B.subscribe("newBlockHeaders",function(W,G,J){if(Z=!0,W||!G)return L();j(X,!1,W,0,J)}),q=setTimeout(function(){Z||L()},1e3*this.blockHeaderTimeout)}.bind(this);B.getTransactionReceipt(S).then(function(X){X&&X.blockHash?(E.eventEmitter.listeners("confirmation").length>0&&Q(X),j(X,!1)):k||Q()}).catch(function(){k||Q()})};var x=function(E,S){return typeof E=="number"?S.wallet[E]:E&&(0,o.default)(E)==="object"&&E.address&&E.privateKey?E:S.wallet[E.toLowerCase()]};A.prototype.buildCall=function(){var E=this,S=E.call==="eth_sendTransaction"||E.call==="eth_sendRawTransaction",C=E.call==="eth_call",T=function(){var k=Array.prototype.slice.call(arguments),M=v(!S),P=E.toPayload(k);E.hexFormat=!1,E.call!=="eth_getTransactionReceipt"&&E.call!=="eth_getTransactionByHash"&&E.name!=="getBlock"||(E.hexFormat=P.params.length<k.length&&k[k.length-1]==="hex");var N=function(O,R){if(E.handleRevert&&C&&E.abiCoder){var I;if(!O&&E.isRevertReasonString(R))I=R.substring(10);else if(O&&O.data){var D;I=(0,o.default)(O.data)==="object"?((D=O.data.originalError)!==null&&D!==void 0?D:O.data).data.substring(10):O.data.substring(10)}if(I){var B=E.abiCoder.decodeParameter("string","0x"+I),j="Error(String)";return void p._fireError(c.RevertInstructionError(B,j),M.eventEmitter,M.reject,P.callback,{reason:B,signature:j})}}try{R=E.formatOutput(R)}catch(Q){O=Q}if(R instanceof Error&&(O=R),O)return O.error&&(O=O.error),p._fireError(O,M.eventEmitter,M.reject,P.callback);P.callback&&P.callback(null,R),S?(M.eventEmitter.emit("transactionHash",R),E._confirmTransaction(M,R,P)):O||M.resolve(R)},F=function(O){var R=u(u({},P),{},{method:"eth_sendRawTransaction",params:[O.rawTransaction]});E.requestManager.send(R,N)},q=function(O,R){var I;if(R&&R.accounts&&R.accounts.wallet&&R.accounts.wallet.length){if(O.method==="eth_sendTransaction"){var D=O.params[0];if((I=x(D&&(0,o.default)(D)==="object"?D.from:null,R.accounts))&&I.privateKey)return delete(D=JSON.parse(JSON.stringify(D))).from,R.defaultChain&&!D.chain&&(D.chain=R.defaultChain),R.defaultHardfork&&!D.hardfork&&(D.hardfork=R.defaultHardfork),R.defaultCommon&&!D.common&&(D.common=R.defaultCommon),void R.accounts.signTransaction(D,I.privateKey).then(F).catch(function(Q){if(typeof M.eventEmitter.listeners=="function"&&M.eventEmitter.listeners("error").length){try{M.eventEmitter.emit("error",Q)}catch{}M.eventEmitter.removeAllListeners(),M.eventEmitter.catch(function(){})}M.reject(Q)})}else if(O.method==="eth_sign"){var B=O.params[1];if((I=x(O.params[0],R.accounts))&&I.privateKey){var j=R.accounts.sign(B,I.privateKey);return O.callback&&O.callback(null,j.signature),void M.resolve(j.signature)}}}return R.requestManager.send(O,N)},z=S&&!!P.params[0]&&(0,o.default)(P.params[0])==="object";return z&&P.params[0].type==="0x1"&&P.params[0].accessList===void 0&&(P.params[0].accessList=[]),!z||P.params[0].gasPrice!==void 0||P.params[0].maxPriorityFeePerGas!==void 0&&P.params[0].maxFeePerGas!==void 0?(S&&setTimeout(function(){M.eventEmitter.emit("sending",P)},0),q(P,E)):function(O,R){return new Promise(function(I,D){try{var B=new A({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(Q){return Q?p.toHex(Q):"latest"},function(){return!1}]}).createFunction(O.requestManager),j=new A({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(O.requestManager);Promise.all([B(),j()]).then(function(Q){var X=(0,l.default)(Q,2),Z=X[0],L=X[1];if((R.type==="0x2"||R.type===void 0)&&Z&&Z.baseFeePerGas){var W,G;R.gasPrice?(W=R.gasPrice,G=R.gasPrice,delete R.gasPrice):(W=R.maxPriorityFeePerGas||"0x9502F900",G=R.maxFeePerGas||p.toHex(p.toBN(Z.baseFeePerGas).mul(p.toBN(2)).add(p.toBN(W)))),I({maxFeePerGas:G,maxPriorityFeePerGas:W})}else{if(R.maxPriorityFeePerGas||R.maxFeePerGas)throw Error("Network doesn't support eip-1559");I({gasPrice:L})}})}catch(Q){D(Q)}})}(E,P.params[0]).then(function(O){O.gasPrice!==void 0?P.params[0].gasPrice=O.gasPrice:O.maxPriorityFeePerGas!==void 0&&O.maxFeePerGas!==void 0&&(P.params[0].maxPriorityFeePerGas=O.maxPriorityFeePerGas,P.params[0].maxFeePerGas=O.maxFeePerGas),S&&setTimeout(function(){M.eventEmitter.emit("sending",P)},0),q(P,E)}),S&&setTimeout(function(){M.eventEmitter.emit("sent",P)},0),M.eventEmitter};return T.method=E,T.request=this.request.bind(this),T},A.prototype.getRevertReason=function(E,S){var C=this;return new Promise(function(T,k){new A({name:"call",call:"eth_call",params:2,abiCoder:C.abiCoder,handleRevert:!0}).createFunction(C.requestManager)(E,p.numberToHex(S)).then(function(){T(!1)}).catch(function(M){M.reason?T({reason:M.reason,signature:M.signature}):k(M)})})},A.prototype.isRevertReasonString=function(E){return typeof E=="string"&&(E.length-2)/2%32==4&&E.substring(0,10)==="0x08c379a0"},A.prototype.request=function(){var E=this.toPayload(Array.prototype.slice.call(arguments));return E.format=this.formatOutput.bind(this),E},r.exports=A},282:(r,s,i)=>{var f=i(8008),e=function(l){var n,t,o=new Promise(function(){n=arguments[0],t=arguments[1]});if(l)return{resolve:n,reject:t,eventEmitter:o};var d=new f;return o._events=d._events,o.emit=d.emit,o.on=d.on,o.once=d.once,o.off=d.off,o.listeners=d.listeners,o.addListener=d.addListener,o.removeListener=d.removeListener,o.removeAllListeners=d.removeAllListeners,{resolve:n,reject:t,eventEmitter:o}};e.resolve=function(l){var n=e(!0);return n.resolve(l),n.eventEmitter},r.exports=e},5229:(r,s,i)=>{var f=i(8155),e=i(1314).errors,l=function(n){this.requestManager=n,this.requests=[]};l.prototype.add=function(n){this.requests.push(n)},l.prototype.execute=function(){var n=this.requests,t=this._sortResponses.bind(this);this.requestManager.sendBatch(n,function(o,d){d=t(d),n.map(function(u,c){return d[c]||{}}).forEach(function(u,c){if(n[c].callback){if(u&&u.error)return n[c].callback(e.ErrorResponse(u));if(!f.isValidResponse(u))return n[c].callback(e.InvalidResponse(u));try{n[c].callback(null,n[c].format?n[c].format(u.result):u.result)}catch(g){n[c].callback(g)}}})})},l.prototype._sortResponses=function(n){return(n||[]).sort(function(t,o){return t.id-o.id})},r.exports=l},9764:(r,s,i)=>{var f=i(8847)(i(3355)),e=null,l=(typeof globalThis>"u"?"undefined":(0,f.default)(globalThis))==="object"?globalThis:void 0;if(!l)try{l=Function("return this")()}catch{l=self}l.ethereum!==void 0?e=l.ethereum:l.web3!==void 0&&l.web3.currentProvider&&(l.web3.currentProvider.sendAsync&&(l.web3.currentProvider.send=l.web3.currentProvider.sendAsync,delete l.web3.currentProvider.sendAsync),!l.web3.currentProvider.on&&l.web3.currentProvider.connection&&l.web3.currentProvider.connection.constructor.name==="ipcProviderWrapper"&&(l.web3.currentProvider.on=function(n,t){if(typeof t!="function")throw new Error("The second parameter callback must be a function.");n==="data"?this.connection.on("data",function(o){var d="";o=o.toString();try{d=JSON.parse(o)}catch{return t(new Error("Couldn't parse response data"+o))}d.id||d.method.indexOf("_subscription")===-1||t(null,d)}):this.connection.on(n,t)}),e=l.web3.currentProvider),r.exports=e},2033:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(5058).callbackify,l=i(1314).errors,n=i(8155),t=i(5229),o=i(9764),d=function u(c,g){this.provider=null,this.providers=u.providers,this.setProvider(c,g),this.subscriptions=new Map};d.givenProvider=o,d.providers={WebsocketProvider:i(7651),HttpProvider:i(4565),IpcProvider:i(2683)},d.prototype.setProvider=function(u,c){var g=this;if(u&&typeof u=="string"&&this.providers){if(/^http(s)?:\/\//i.test(u))u=new this.providers.HttpProvider(u);else if(/^ws(s)?:\/\//i.test(u))u=new this.providers.WebsocketProvider(u);else if(u&&(0,f.default)(c)==="object"&&typeof c.connect=="function")u=new this.providers.IpcProvider(u,c);else if(u)throw new Error(`Can't autodetect provider for "`+u+'"')}this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=u||null,this.provider&&this.provider.on&&(typeof u.request=="function"?this.provider.on("message",function(p){if(p&&p.type==="eth_subscription"&&p.data){var v=p.data;v.subscription&&g.subscriptions.has(v.subscription)&&g.subscriptions.get(v.subscription).callback(null,v.result)}}):this.provider.on("data",function(p,v){(p=p||v).method&&p.params&&p.params.subscription&&g.subscriptions.has(p.params.subscription)&&g.subscriptions.get(p.params.subscription).callback(null,p.params.result)}),this.provider.on("connect",function(){g.subscriptions.forEach(function(p){p.subscription.resubscribe()})}),this.provider.on("error",function(p){g.subscriptions.forEach(function(v){v.callback(p)})}),this.provider.on("disconnect",function(p){g._isCleanCloseEvent(p)&&!g._isIpcCloseError(p)||(g.subscriptions.forEach(function(v){v.callback(l.ConnectionCloseError(p)),g.subscriptions.delete(v.subscription.id)}),g.provider&&g.provider.emit&&g.provider.emit("error",l.ConnectionCloseError(p))),g.provider&&g.provider.emit&&g.provider.emit("end",p)}))},d.prototype.send=function(u,c){if(c=c||function(){},!this.provider)return c(l.InvalidProvider());var g=u.method,p=u.params,v=n.toPayload(g,p),y=this._jsonrpcResultCallback(c,v);if(this.provider.request)e(this.provider.request.bind(this.provider))({method:g,params:p},c);else if(this.provider.sendAsync)this.provider.sendAsync(v,y);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(v,y)}},d.prototype.sendBatch=function(u,c){if(!this.provider)return c(l.InvalidProvider());var g=n.toBatchPayload(u);this.provider[this.provider.sendAsync?"sendAsync":"send"](g,function(p,v){return p?c(p):Array.isArray(v)?void c(null,v):c(l.InvalidResponse(v))})},d.prototype.addSubscription=function(u,c){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(u.id,{callback:c,subscription:u})},d.prototype.removeSubscription=function(u,c){if(this.subscriptions.has(u)){var g=this.subscriptions.get(u).subscription.options.type;return this.subscriptions.delete(u),void this.send({method:g+"_unsubscribe",params:[u]},c)}typeof c=="function"&&c(null)},d.prototype.clearSubscriptions=function(u){try{var c=this;return this.subscriptions.size>0&&this.subscriptions.forEach(function(g,p){u&&g.name==="syncing"||c.removeSubscription(p)}),this.provider.reset&&this.provider.reset(),!0}catch(g){throw new Error("Error while clearing subscriptions: ".concat(g))}},d.prototype._isCleanCloseEvent=function(u){return(0,f.default)(u)==="object"&&([1e3].includes(u.code)||u.wasClean===!0)},d.prototype._isIpcCloseError=function(u){return typeof u=="boolean"&&u},d.prototype._jsonrpcResultCallback=function(u,c){return function(g,p){return p&&p.id&&c.id!==p.id?u(new Error("Wrong response id ".concat(p.id," (expected: ").concat(c.id,") in ").concat(JSON.stringify(c)))):g?u(g):p&&p.error?u(l.ErrorResponse(p)):n.isValidResponse(p)?void u(null,p.result):u(l.InvalidResponse(p))}},r.exports={Manager:d,BatchManager:t}},8155:r=>{var s={messageId:Math.floor(Math.random()*Number.MAX_SAFE_INTEGER),toPayload:function(i,f){if(!i)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(f)+'"!');return s.messageId===Number.MAX_SAFE_INTEGER?s.messageId=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER):s.messageId++,{jsonrpc:"2.0",id:s.messageId,method:i,params:f||[]}},isValidResponse:function(i){return Array.isArray(i)?i.every(f):f(i);function f(e){return!(!e||e.error||e.jsonrpc!=="2.0"||typeof e.id!="number"&&typeof e.id!="string"||e.result===void 0)}},toBatchPayload:function(i){return i.map(function(f){return s.toPayload(f.method,f.params)})}};r.exports=s},4178:(r,s,i)=>{var f=i(2929),e=function(l){this.name=l.name,this.type=l.type,this.subscriptions=l.subscriptions||{},this.requestManager=null};e.prototype.setRequestManager=function(l){this.requestManager=l},e.prototype.attachToObject=function(l){var n=this.buildCall(),t=this.name.split(".");t.length>1?(l[t[0]]=l[t[0]]||{},l[t[0]][t[1]]=n):l[t[0]]=n},e.prototype.buildCall=function(){var l=this;return function(){l.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var n=new f({subscription:l.subscriptions[arguments[0]]||{},requestManager:l.requestManager,type:l.type});return n.subscribe.apply(n,arguments)}},r.exports={subscriptions:e,subscription:f}},2929:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1314).errors,l=i(8008),n=i(1314).formatters;function t(d){return d}function o(d){l.call(this),this.id=null,this.callback=t,this.arguments=null,this.lastBlock=null,this.options={subscription:d.subscription,type:d.type,requestManager:d.requestManager}}o.prototype=Object.create(l.prototype),o.prototype.constructor=o,o.prototype._extractCallback=function(d){if(typeof d[d.length-1]=="function")return d.pop()},o.prototype._validateArgs=function(d){var u=this.options.subscription;if(u||(u={}),u.params||(u.params=0),d.length!==u.params)throw e.InvalidNumberOfParams(d.length,u.params,u.subscriptionName)},o.prototype._formatInput=function(d){var u=this.options.subscription;return u&&u.inputFormatter?u.inputFormatter.map(function(c,g){return c?c(d[g]):d[g]}):d},o.prototype._formatOutput=function(d){var u=this.options.subscription;return u&&u.outputFormatter&&d?u.outputFormatter(d):d},o.prototype._toPayload=function(d){var u=[];if(this.callback=this._extractCallback(d)||t,this.subscriptionMethod||(this.subscriptionMethod=d.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(d),this._validateArgs(this.arguments),d=[]),u.push(this.subscriptionMethod),u=u.concat(this.arguments),d.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:u}},o.prototype.unsubscribe=function(d){this.options.requestManager.removeSubscription(this.id,d),this.id=null,this.lastBlock=null,this.removeAllListeners()},o.prototype.subscribe=function(){var d=this,u=Array.prototype.slice.call(arguments),c=this._toPayload(u);if(!c)return this;if(!this.options.requestManager.provider)return setTimeout(function(){var p=new Error("No provider set.");d.callback(p,null,d),d.emit("error",p)},0),this;if(!this.options.requestManager.provider.on)return setTimeout(function(){var p=new Error("The current provider doesn't support subscriptions: "+d.options.requestManager.provider.constructor.name);d.callback(p,null,d),d.emit("error",p)},0),this;if(this.lastBlock&&this.options.params&&(0,f.default)(this.options.params)==="object"&&(c.params[1]=this.options.params,c.params[1].fromBlock=n.inputBlockNumberFormatter(this.lastBlock+1)),this.id&&this.unsubscribe(),this.options.params=c.params[1],c.params[0]==="logs"&&c.params[1]&&(0,f.default)(c.params[1])==="object"&&c.params[1].hasOwnProperty("fromBlock")&&isFinite(c.params[1].fromBlock)){var g=Object.assign({},c.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[g]},function(p,v){p?setTimeout(function(){d.callback(p,null,d),d.emit("error",p)},0):v.forEach(function(y){var b=d._formatOutput(y);d.callback(null,b,d),d.emit("data",b)})})}return(0,f.default)(c.params[1])==="object"&&delete c.params[1].fromBlock,this.options.requestManager.send(c,function(p,v){!p&&v?(d.id=v,d.method=c.params[0],d.options.requestManager.addSubscription(d,function(y,b){y?(d.callback(y,!1,d),d.emit("error",y)):(Array.isArray(b)||(b=[b]),b.forEach(function(A){var x=d._formatOutput(A);if(d.lastBlock=x&&(0,f.default)(x)==="object"?x.blockNumber:null,typeof d.options.subscription.subscriptionHandler=="function")return d.options.subscription.subscriptionHandler.call(d,x);d.emit("data",x),d.callback(null,x,d)}))}),d.emit("connected",v)):setTimeout(function(){d.callback(p,!1,d),d.emit("error",p)},0)}),this},o.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},r.exports=o},9907:(r,s,i)=>{var f=i(1314).formatters,e=i(3349),l=i(8161);r.exports=function(n){var t=function(o){var d;return o.property?(n[o.property]||(n[o.property]={}),d=n[o.property]):d=n,o.methods&&o.methods.forEach(function(u){u instanceof e||(u=new e(u)),u.attachToObject(d),u.setRequestManager(n._requestManager)}),n};return t.formatters=f,t.utils=l,t.Method=e,t}},606:(r,s,i)=>{var f=i(2033),e=i(9907);r.exports={packageInit:function(l,n){if(n=Array.prototype.slice.call(n),!l)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(l,"currentProvider",{get:function(){return l._provider},set:function(t){return l.setProvider(t)},enumerable:!0,configurable:!0}),n[0]&&n[0]._requestManager?l._requestManager=n[0]._requestManager:l._requestManager=new f.Manager(n[0],n[1]),l.givenProvider=f.Manager.givenProvider,l.providers=f.Manager.providers,l._provider=l._requestManager.provider,l.setProvider||(l.setProvider=function(t,o){return l._requestManager.setProvider(t,o),l._provider=l._requestManager.provider,!0}),l.setRequestManager=function(t){l._requestManager=t,l._provider=t.provider},l.BatchRequest=f.BatchManager.bind(null,l._requestManager),l.extend=e(l)},addProviders:function(l){l.givenProvider=f.Manager.givenProvider,l.providers=f.Manager.providers}}},9901:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(9033).Buffer,l=i(8161),n=i(2914).RQ,t=i(2914)._R,o=new n(function(g,p){return!g.match(/^u?int/)||Array.isArray(p)||p&&(0,f.default)(p)==="object"&&p.constructor.name==="BN"?p:p.toString()});function d(){}var u=function(){};u.prototype.encodeFunctionSignature=function(g){return(typeof g=="function"||(0,f.default)(g)==="object"&&g)&&(g=l._jsonInterfaceMethodToString(g)),l.sha3(g).slice(0,10)},u.prototype.encodeEventSignature=function(g){return(typeof g=="function"||(0,f.default)(g)==="object"&&g)&&(g=l._jsonInterfaceMethodToString(g)),l.sha3(g)},u.prototype.encodeParameter=function(g,p){return this.encodeParameters([g],[p])},u.prototype.encodeParameters=function(g,p){var v=this;return g=v.mapTypes(g),p=p.map(function(y,b){var A=g[b];return(0,f.default)(A)==="object"&&A.type&&(A=A.type),y=v.formatParam(A,y),typeof A=="string"&&A.includes("tuple")&&function x(E,S){if(E.name==="array"){if(!E.type.match(/\[(\d+)\]/))return S.map(function(T){return x(o._getCoder(t.from(E.type.replace("[]",""))),T)});var C=parseInt(E.type.match(/\[(\d+)\]/)[1]);if(S.length!==C)throw new Error("Array length does not matches with the given input");return S.map(function(T){return x(o._getCoder(t.from(E.type.replace(/\[\d+\]/,""))),T)})}E.coders.forEach(function(T,k){T.name==="tuple"?x(T,S[k]):S[k]=v.formatParam(T.name,S[k])})}(o._getCoder(t.from(A)),y),y}),o.encode(g,p)},u.prototype.mapTypes=function(g){var p=this,v=[];return g.forEach(function(y){if((0,f.default)(y)==="object"&&y.type==="function"&&(y=Object.assign({},y,{type:"bytes24"})),p.isSimplifiedStructFormat(y)){var b=Object.keys(y)[0];v.push(Object.assign(p.mapStructNameAndType(b),{components:p.mapStructToCoderFormat(y[b])}))}else v.push(y)}),v},u.prototype.isSimplifiedStructFormat=function(g){return(0,f.default)(g)==="object"&&g.components===void 0&&g.name===void 0},u.prototype.mapStructNameAndType=function(g){var p="tuple";return g.indexOf("[]")>-1&&(p="tuple[]",g=g.slice(0,-2)),{type:p,name:g}},u.prototype.mapStructToCoderFormat=function(g){var p=this,v=[];return Object.keys(g).forEach(function(y){(0,f.default)(g[y])!=="object"?v.push({name:y,type:g[y]}):v.push(Object.assign(p.mapStructNameAndType(y),{components:p.mapStructToCoderFormat(g[y])}))}),v},u.prototype.formatParam=function(g,p){var v=this,y=new RegExp(/^bytes([0-9]*)$/),b=new RegExp(/^bytes([0-9]*)\[\]$/),A=new RegExp(/^(u?int)([0-9]*)$/),x=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(l.isBN(p)||l.isBigNumber(p))return p.toString(10);if(g.match(b)||g.match(x))return p.map(function(k){return v.formatParam(g.replace("[]",""),k)});var E=g.match(A);if(E){var S=parseInt(E[2]||"256");S/8<p.length&&(p=l.leftPad(p,S))}if(E=g.match(y)){e.isBuffer(p)&&(p=l.toHex(p));var C=parseInt(E[1]);if(C){var T=2*C;p.substring(0,2)==="0x"&&(T+=2),p.length<T&&(p=l.rightPad(p,2*C))}p.length%2==1&&(p="0x0"+p.substring(2))}return p},u.prototype.encodeFunctionCall=function(g,p){return this.encodeFunctionSignature(g)+this.encodeParameters(g.inputs,p).replace("0x","")},u.prototype.decodeParameter=function(g,p){return this.decodeParameters([g],p)[0]},u.prototype.decodeParameters=function(g,p){return this.decodeParametersWith(g,p,!1)},u.prototype.decodeParametersWith=function(g,p,v){if(g.length>0&&(!p||p==="0x"||p==="0X"))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var y=o.decode(this.mapTypes(g),"0x"+p.replace(/0x/i,""),v),b=new d;return b.__length__=0,g.forEach(function(A,x){var E=y[b.__length__],S=(0,f.default)(A)==="object"&&A.type&&A.type==="string";E=E!=="0x"||S||typeof A=="string"&&A==="string"?E:null,b[x]=E,(typeof A=="function"||A&&(0,f.default)(A)==="object")&&A.name&&(b[A.name]=E),b.__length__++}),b},u.prototype.decodeLog=function(g,p,v){var y=this;v=Array.isArray(v)?v:[v],p=p||"";var b=[],A=[],x=0;g.forEach(function(T,k){T.indexed?(A[k]=["bool","int","uint","address","fixed","ufixed"].find(function(M){return T.type.indexOf(M)!==-1})?y.decodeParameter(T.type,v[x]):v[x],x++):b[k]=T});var E=p,S=E?this.decodeParametersWith(b,E,!0):[],C=new d;return C.__length__=0,g.forEach(function(T,k){C[k]=T.type==="string"?"":null,S[k]!==void 0&&(C[k]=S[k]),A[k]!==void 0&&(C[k]=A[k]),T.name&&(C[T.name]=C[k]),C.__length__++}),C};var c=new u;r.exports=c},9819:(r,s,i)=>{var f=i(9033).Buffer,e=i(8847),l=e(i(3106)),n=e(i(3355)),t=e(i(775)),o=e(i(4519));function d(z,O){var R=Object.keys(z);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(z);O&&(I=I.filter(function(D){return Object.getOwnPropertyDescriptor(z,D).enumerable})),R.push.apply(R,I)}return R}function u(z){for(var O=1;O<arguments.length;O++){var R=arguments[O]!=null?arguments[O]:{};O%2?d(Object(R),!0).forEach(function(I){(0,t.default)(z,I,R[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(R)):d(Object(R)).forEach(function(I){Object.defineProperty(z,I,Object.getOwnPropertyDescriptor(R,I))})}return z}function c(z,O){(O==null||O>z.length)&&(O=z.length);for(var R=0,I=new Array(O);R<O;R++)I[R]=z[R];return I}var g=i(606),p=i(3349),v=i(3058),y=i(4293),b=i(7799),A=i(2679),x=i(8161),E=i(1314),S=i(2339).TransactionFactory,C=i(3863).default,T=i(3863).Hardfork,k=i(3062),M=function(z){return z==null},P=function(z){return z!=null},N=function(){var z=this;g.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var O=[new p({name:"getNetworkId",call:"net_version",params:0,outputFormatter:parseInt}),new p({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:x.hexToNumber}),new p({name:"getGasPrice",call:"eth_gasPrice",params:0}),new p({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(R){if(x.isAddress(R))return R;throw new Error("Address "+R+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]}),new p({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(R){return R?x.toHex(R):"latest"},function(){return!1}]})];this._ethereumCall={},O.forEach(function(R){R.attachToObject(z._ethereumCall),R.setRequestManager(z._requestManager)}),this.wallet=new q(this)};function F(z,O){return new Promise(function(R,I){try{(O.type===void 0||O.type<"0x2")&&O.gasPrice!==void 0?R({gasPrice:O.gasPrice}):O.type==="0x2"&&O.maxFeePerGas&&O.maxPriorityFeePerGas?R({maxFeePerGas:O.maxFeePerGas,maxPriorityFeePerGas:O.maxPriorityFeePerGas}):Promise.all([z._ethereumCall.getBlockByNumber(),z._ethereumCall.getGasPrice()]).then(function(D){var B=(0,o.default)(D,2),j=B[0],Q=B[1];if(O.type==="0x2"&&j&&j.baseFeePerGas){var X,Z;O.gasPrice?(X=O.gasPrice,Z=O.gasPrice,delete O.gasPrice):(X=O.maxPriorityFeePerGas||"0x9502F900",Z=O.maxFeePerGas||x.toHex(x.toBN(j.baseFeePerGas).mul(x.toBN(2)).add(x.toBN(X)))),R({maxFeePerGas:Z,maxPriorityFeePerGas:X})}else{if(O.maxPriorityFeePerGas||O.maxFeePerGas)throw Error("Network doesn't support eip-1559");R({gasPrice:Q})}}).catch(function(D){I(D)})}catch(D){I(D)}})}function q(z){this._accounts=z,this.length=0,this.defaultKeyName="web3js_wallet"}N.prototype._addAccountFunctions=function(z){var O=this;return z.signTransaction=function(R,I){return O.signTransaction(R,z.privateKey,I)},z.sign=function(R){return O.sign(R,z.privateKey)},z.encrypt=function(R,I){return O.encrypt(z.privateKey,R,I)},z},N.prototype.create=function(z){return this._addAccountFunctions(v.create(z||x.randomHex(32)))},N.prototype.privateKeyToAccount=function(z,O){if(z.startsWith("0x")||(z="0x"+z),!O&&z.length!==66)throw new Error("Private key must be 32 bytes long");return this._addAccountFunctions(v.fromPrivate(z))},N.prototype.signTransaction=function(z,O,R){var I=this,D=!1,B={},j=!(!z||!(z.chain&&z.hardfork||z.common));if(R=R||function(){},!z)return D=new Error("No transaction object given!"),R(D),Promise.reject(D);if(P(z.common)&&M(z.common.customChain))return D=new Error("If tx.common is provided it must have tx.common.customChain"),R(D),Promise.reject(D);if(P(z.common)&&M(z.common.customChain.chainId))return D=new Error("If tx.common is provided it must have tx.common.customChain and tx.common.customChain.chainId"),R(D),Promise.reject(D);if(P(z.common)&&P(z.common.customChain.chainId)&&P(z.chainId)&&z.chainId!==z.common.customChain.chainId)return D=new Error("Chain Id doesnt match in tx.chainId tx.common.customChain.chainId"),R(D),Promise.reject(D);function Q(X){var Z=function(se){if(se.common&&se.chain&&se.hardfork)return new Error("Please provide the @ethereumjs/common object or the chain and hardfork property but not all together.");if(se.chain&&!se.hardfork||se.hardfork&&!se.chain)return new Error('When specifying chain and hardfork, both values must be defined. Received "chain": '+se.chain+', "hardfork": '+se.hardfork);if(!(se.gas||se.gasLimit||se.maxPriorityFeePerGas||se.maxFeePerGas))return new Error('"gas" is missing');if(se.gas&&se.gasPrice){if(se.gas<0||se.gasPrice<0)return new Error("Gas or gasPrice is lower than 0")}else if(se.maxPriorityFeePerGas<0||se.maxFeePerGas<0)return new Error("maxPriorityFeePerGas or maxFeePerGas is lower than 0");return se.nonce<0||se.chainId<0?new Error("Nonce or chainId is lower than 0"):void 0}(X);if(Z)return R(Z),Promise.reject(Z);try{var L=E.formatters.inputCallFormatter(Object.assign({},X));L.data=L.data||"0x",L.value=L.value||"0x",L.gasLimit=L.gasLimit||L.gas,L.type==="0x1"&&L.accessList===void 0&&(L.accessList=[]),j?(L.common&&(B.common=C.forCustomChain(L.common.baseChain||"mainnet",{name:L.common.customChain.name||"custom-network",networkId:L.common.customChain.networkId,chainId:L.common.customChain.chainId},L.common.hardfork||T.London),delete L.common),L.chain&&(B.chain=L.chain,delete L.chain),L.hardfork&&(B.hardfork=L.hardfork,delete L.hardfork)):(B.common=C.forCustomChain("mainnet",{name:"custom-network",networkId:L.networkId,chainId:L.chainId},L.hardfork||T.London),delete L.networkId),O.startsWith("0x")&&(O=O.substring(2));var W=S.fromTxData(L,B).sign(f.from(O,"hex")),G=W.validate(!0);if(G.length>0){var J,H="Signer Error: ",U=function(se,ne){var re=typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(!re){if(Array.isArray(se)||(re=function(he,le){if(he){if(typeof he=="string")return c(he,le);var ae=Object.prototype.toString.call(he).slice(8,-1);return ae==="Object"&&he.constructor&&(ae=he.constructor.name),ae==="Map"||ae==="Set"?Array.from(he):ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae)?c(he,le):void 0}}(se))||ne&&se&&typeof se.length=="number"){re&&(se=re);var Y=0,V=function(){};return{s:V,n:function(){return Y>=se.length?{done:!0}:{done:!1,value:se[Y++]}},e:function(he){throw he},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var oe,fe=!0,ce=!1;return{s:function(){re=re.call(se)},n:function(){var he=re.next();return fe=he.done,he},e:function(he){ce=!0,oe=he},f:function(){try{fe||re.return==null||re.return()}finally{if(ce)throw oe}}}}(G);try{for(U.s();!(J=U.n()).done;){var K=J.value;H+="".concat(H," ").concat(K,".")}}catch(se){U.e(se)}finally{U.f()}throw new Error(H)}var te="0x"+W.serialize().toString("hex"),ee=x.keccak256(te),ie={messageHash:"0x"+f.from(W.getMessageToSign(!0)).toString("hex"),v:"0x"+W.v.toString("hex"),r:"0x"+W.r.toString("hex"),s:"0x"+W.s.toString("hex"),rawTransaction:te,transactionHash:ee};return R(null,ie),ie}catch(se){return R(se),Promise.reject(se)}}return z.type=function(X){var Z,L=X.maxFeePerGas!==void 0||X.maxPriorityFeePerGas!==void 0;if(X.type!==void 0?Z=x.toHex(X.type):X.type===void 0&&L&&(Z="0x2"),X.gasPrice!==void 0&&(Z==="0x2"||L))throw Error("eip-1559 transactions don't support gasPrice");if((Z==="0x1"||Z==="0x0")&&L)throw Error("pre-eip-1559 transaction don't support maxFeePerGas/maxPriorityFeePerGas");return L||X.common&&X.common.hardfork&&X.common.hardfork.toLowerCase()===T.London||X.hardfork&&X.hardfork.toLowerCase()===T.London?Z="0x2":(X.accessList||X.common&&X.common.hardfork&&X.common.hardfork.toLowerCase()===T.Berlin||X.hardfork&&X.hardfork.toLowerCase()===T.Berlin)&&(Z="0x1"),Z}(z),z.nonce!==void 0&&z.chainId!==void 0&&(z.gasPrice!==void 0||z.maxFeePerGas!==void 0&&z.maxPriorityFeePerGas!==void 0)&&j?Promise.resolve(Q(z)):Promise.all([M(z.common)||M(z.common.customChain.chainId)?M(z.chainId)?I._ethereumCall.getChainId():z.chainId:void 0,M(z.nonce)?I._ethereumCall.getTransactionCount(I.privateKeyToAccount(O).address):z.nonce,M(j)?I._ethereumCall.getNetworkId():1,F(I,z)]).then(function(X){var Z=(0,o.default)(X,4),L=Z[0],W=Z[1],G=Z[2],J=Z[3];if(M(L)&&M(z.common)&&M(z.common.customChain.chainId)||M(W)||M(G)||M(J))throw new Error(`One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn't be fetched: `+JSON.stringify(X));return Q(u(u(u({},z),M(z.common)||M(z.common.customChain.chainId)?{chainId:L}:{}),{},{nonce:W,networkId:G},J))})},N.prototype.recoverTransaction=function(z){var O=f.from(z.slice(2),"hex"),R=S.fromSerializedData(O);return x.toChecksumAddress(R.getSenderAddress().toString("hex"))},N.prototype.hashMessage=function(z){var O=x.isHexStrict(z)?z:x.utf8ToHex(z),R=x.hexToBytes(O),I=f.from(R),D=`Ethereum Signed Message: +`+R.length,B=f.from(D),j=f.concat([B,I]);return k.bufferToHex(k.keccak256(j))},N.prototype.sign=function(z,O){if(O.startsWith("0x")||(O="0x"+O),O.length!==66)throw new Error("Private key must be 32 bytes long");var R=this.hashMessage(z),I=v.sign(R,O),D=v.decodeSignature(I);return{message:z,messageHash:R,v:D[0],r:D[1],s:D[2],signature:I}},N.prototype.recover=function(z,O,R){var I=[].slice.apply(arguments);return z&&(0,n.default)(z)==="object"?this.recover(z.messageHash,v.encodeSignature([z.v,z.r,z.s]),!0):(R||(z=this.hashMessage(z)),I.length>=4?(R=typeof(R=I.slice(-1)[0])=="boolean"&&!!R,this.recover(z,v.encodeSignature(I.slice(1,4)),R)):v.recover(z,O))},N.prototype.decrypt=function(z,O,R){if(typeof O!="string")throw new Error("No password given.");var I,D,B=z&&(0,n.default)(z)==="object"?z:JSON.parse(R?z.toLowerCase():z);if(B.version!==3)throw new Error("Not a valid V3 wallet");if(B.crypto.kdf==="scrypt")D=B.crypto.kdfparams,I=b.syncScrypt(f.from(O),f.from(D.salt,"hex"),D.n,D.r,D.p,D.dklen);else{if(B.crypto.kdf!=="pbkdf2")throw new Error("Unsupported key derivation scheme");if((D=B.crypto.kdfparams).prf!=="hmac-sha256")throw new Error("Unsupported parameters to PBKDF2");I=y.pbkdf2Sync(f.from(O),f.from(D.salt,"hex"),D.c,D.dklen,"sha256")}var j=f.from(B.crypto.ciphertext,"hex");if(x.sha3(f.from([].concat((0,l.default)(I.slice(16,32)),(0,l.default)(j)))).replace("0x","")!==B.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var Q=y.createDecipheriv(B.crypto.cipher,I.slice(0,16),f.from(B.crypto.cipherparams.iv,"hex")),X="0x"+f.from([].concat((0,l.default)(Q.update(j)),(0,l.default)(Q.final()))).toString("hex");return this.privateKeyToAccount(X,!0)},N.prototype.encrypt=function(z,O,R){var I,D=this.privateKeyToAccount(z,!0),B=(R=R||{}).salt||y.randomBytes(32),j=R.iv||y.randomBytes(16),Q=R.kdf||"scrypt",X={dklen:R.dklen||32,salt:B.toString("hex")};if(Q==="pbkdf2")X.c=R.c||262144,X.prf="hmac-sha256",I=y.pbkdf2Sync(f.from(O),f.from(X.salt,"hex"),X.c,X.dklen,"sha256");else{if(Q!=="scrypt")throw new Error("Unsupported kdf");X.n=R.n||8192,X.r=R.r||8,X.p=R.p||1,I=b.syncScrypt(f.from(O),f.from(X.salt,"hex"),X.n,X.r,X.p,X.dklen)}var Z=y.createCipheriv(R.cipher||"aes-128-ctr",I.slice(0,16),j);if(!Z)throw new Error("Unsupported cipher");var L=f.from([].concat((0,l.default)(Z.update(f.from(D.privateKey.replace("0x",""),"hex"))),(0,l.default)(Z.final()))),W=x.sha3(f.from([].concat((0,l.default)(I.slice(16,32)),(0,l.default)(L)))).replace("0x","");return{version:3,id:A.v4({random:R.uuid||y.randomBytes(16)}),address:D.address.toLowerCase().replace("0x",""),crypto:{ciphertext:L.toString("hex"),cipherparams:{iv:j.toString("hex")},cipher:R.cipher||"aes-128-ctr",kdf:Q,kdfparams:X,mac:W.toString("hex")}}},q.prototype._findSafeIndex=function(z){return z=z||0,this.hasOwnProperty(z)?this._findSafeIndex(z+1):z},q.prototype._currentIndexes=function(){return Object.keys(this).map(function(z){return parseInt(z)}).filter(function(z){return z<9e20})},q.prototype.create=function(z,O){for(var R=0;R<z;++R)this.add(this._accounts.create(O).privateKey);return this},q.prototype.add=function(z){return typeof z=="string"&&(z=this._accounts.privateKeyToAccount(z)),this[z.address]?this[z.address]:((z=this._accounts.privateKeyToAccount(z.privateKey)).index=this._findSafeIndex(),this[z.index]=z,this[z.address]=z,this[z.address.toLowerCase()]=z,this.length++,z)},q.prototype.remove=function(z){var O=this[z];return!(!O||!O.address||(this[O.address].privateKey=null,delete this[O.address],this[O.address.toLowerCase()]&&(this[O.address.toLowerCase()].privateKey=null,delete this[O.address.toLowerCase()]),this[O.index].privateKey=null,delete this[O.index],this.length--,0))},q.prototype.clear=function(){var z=this;return this._currentIndexes().forEach(function(O){z.remove(O)}),this},q.prototype.encrypt=function(z,O){var R=this;return this._currentIndexes().map(function(I){return R[I].encrypt(z,O)})},q.prototype.decrypt=function(z,O){var R=this;return z.forEach(function(I){var D=R._accounts.decrypt(I,O);if(!D)throw new Error("Couldn't decrypt accounts. Password wrong?");R.add(D)}),this},q.prototype.save=function(z,O){return localStorage.setItem(O||this.defaultKeyName,JSON.stringify(this.encrypt(z))),!0},q.prototype.load=function(z,O){var R=localStorage.getItem(O||this.defaultKeyName);if(R)try{R=JSON.parse(R)}catch{}return this.decrypt(R||[],z)},function(z){var O;try{O=self.localStorage;var R="__storage_test__";return O.setItem(R,R),O.removeItem(R),!0}catch(I){return I&&(I.code===22||I.code===1014||I.name==="QuotaExceededError"||I.name==="NS_ERROR_DOM_QUOTA_REACHED")&&O&&O.length!==0}}()||(delete q.prototype.save,delete q.prototype.load),r.exports=N},8164:(r,s,i)=>{var f=i(8847),e=f(i(3106)),l=f(i(775)),n=f(i(3355));function t(S,C){(C==null||C>S.length)&&(C=S.length);for(var T=0,k=new Array(C);T<C;T++)k[T]=S[T];return k}function o(S,C){var T=Object.keys(S);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(S);C&&(k=k.filter(function(M){return Object.getOwnPropertyDescriptor(S,M).enumerable})),T.push.apply(T,k)}return T}function d(S){for(var C=1;C<arguments.length;C++){var T=arguments[C]!=null?arguments[C]:{};C%2?o(Object(T),!0).forEach(function(k){(0,l.default)(S,k,T[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(T)):o(Object(T)).forEach(function(k){Object.defineProperty(S,k,Object.getOwnPropertyDescriptor(T,k))})}return S}var u=i(606),c=i(3349),g=i(8161),p=i(4178).subscription,v=i(1314).formatters,y=i(1314).errors,b=i(282),A=i(9901),x=function S(C,T,k){var M=this,P=Array.prototype.slice.call(arguments);if(!(this instanceof S))throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');if(this.setProvider=function(){u.packageInit(M,arguments),M.clearSubscriptions=M._requestManager.clearSubscriptions},u.packageInit(this,[this.constructor]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!C||!Array.isArray(C))throw y.ContractMissingABIError();this.options={};var N=P[P.length-1];N&&(0,n.default)(N)==="object"&&!Array.isArray(N)&&(k=N,this.options=d(d({},this.options),this._getOrSetDefaultOptions(k)),T&&(0,n.default)(T)==="object"&&(T=null)),Object.defineProperty(this.options,"address",{set:function(z){z&&(M._address=g.toChecksumAddress(v.inputAddressFormatter(z)))},get:function(){return M._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(z){return M.methods={},M.events={},M._jsonInterface=z.map(function(O){var R,I;if(O.constant=O.stateMutability==="view"||O.stateMutability==="pure"||O.constant,O.payable=O.stateMutability==="payable"||O.payable,O.name&&(I=g._jsonInterfaceMethodToString(O)),O.type==="function"){if(O.signature=A.encodeFunctionSignature(I),R=M._createTxObject.bind({method:O,parent:M}),M.methods[O.name]){var D=M._createTxObject.bind({method:O,parent:M,nextMethod:M.methods[O.name]});M.methods[O.name]=D}else M.methods[O.name]=R;M.methods[O.signature]=R,M.methods[I]=R}else if(O.type==="event"){O.signature=A.encodeEventSignature(I);var B=M._on.bind(M,O.signature);M.events[O.name]&&M.events[O.name].name!=="bound "||(M.events[O.name]=B),M.events[O.signature]=B,M.events[I]=B}return O}),M.events.allEvents=M._on.bind(M,"allevents"),M._jsonInterface},get:function(){return M._jsonInterface},enumerable:!0});var F=this.constructor.defaultAccount,q=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"handleRevert",{get:function(){return M.options.handleRevert===!1||M.options.handleRevert===!0?M.options.handleRevert:this.constructor.handleRevert},set:function(z){M.options.handleRevert=z},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return M.options.common||this.constructor.defaultCommon},set:function(z){M.options.common=z},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return M.options.hardfork||this.constructor.defaultHardfork},set:function(z){M.options.hardfork=z},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return M.options.chain||this.constructor.defaultChain},set:function(z){M.options.chain=z},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return M.options.transactionPollingTimeout===0?M.options.transactionPollingTimeout:M.options.transactionPollingTimeout||this.constructor.transactionPollingTimeout},set:function(z){M.options.transactionPollingTimeout=z},enumerable:!0}),Object.defineProperty(this,"transactionPollingInterval",{get:function(){return M.options.transactionPollingInterval===0?M.options.transactionPollingInterval:M.options.transactionPollingInterval||this.constructor.transactionPollingInterval},set:function(z){M.options.transactionPollingInterval=z},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return M.options.transactionConfirmationBlocks===0?M.options.transactionConfirmationBlocks:M.options.transactionConfirmationBlocks||this.constructor.transactionConfirmationBlocks},set:function(z){M.options.transactionConfirmationBlocks=z},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return M.options.transactionBlockTimeout===0?M.options.transactionBlockTimeout:M.options.transactionBlockTimeout||this.constructor.transactionBlockTimeout},set:function(z){M.options.transactionBlockTimeout=z},enumerable:!0}),Object.defineProperty(this,"blockHeaderTimeout",{get:function(){return M.options.blockHeaderTimeout===0?M.options.blockHeaderTimeout:M.options.blockHeaderTimeout||this.constructor.blockHeaderTimeout},set:function(z){M.options.blockHeaderTimeout=z},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return F},set:function(z){return z&&(F=g.toChecksumAddress(v.inputAddressFormatter(z))),z},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return q},set:function(z){return q=z,z},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=T,this.options.jsonInterface=C};x.setProvider=function(S,C){u.packageInit(this,[S]),this._ethAccounts=C},x.prototype._getCallback=function(S){if(S&&S[S.length-1]&&typeof S[S.length-1]=="function")return S.pop()},x.prototype._checkListener=function(S,C){if(C===S)throw y.ContractReservedEventError(S)},x.prototype._getOrSetDefaultOptions=function(S){var C=d({},S),T=C.gasPrice?String(C.gasPrice):null,k=C.from?g.toChecksumAddress(v.inputAddressFormatter(C.from)):null;return C.data=C.data||this.options.data,C.from=k||this.options.from,C.gasPrice=T||this.options.gasPrice,C.gas=C.gas||C.gasLimit||this.options.gas,delete C.gasLimit,C},x.prototype._encodeEventABI=function(S,C){var T=(C=C||{}).filter||{},k={};["fromBlock","toBlock"].filter(function(q){return C[q]!==void 0}).forEach(function(q){k[q]=v.inputBlockNumberFormatter(C[q])});var M=[];if(C.topics&&Array.isArray(C.topics))M=(0,e.default)(C.topics);else if(M=[],S&&!S.anonymous&&S.name!=="ALLEVENTS"&&M.push(S.signature||A.encodeEventSignature(g.jsonInterfaceMethodToString(S))),S.name!=="ALLEVENTS"&&S.inputs){var P,N=function(q,z){var O=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!O){if(Array.isArray(q)||(O=function(Q,X){if(Q){if(typeof Q=="string")return t(Q,X);var Z=Object.prototype.toString.call(Q).slice(8,-1);return Z==="Object"&&Q.constructor&&(Z=Q.constructor.name),Z==="Map"||Z==="Set"?Array.from(Q):Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z)?t(Q,X):void 0}}(q))||z&&q&&typeof q.length=="number"){O&&(q=O);var R=0,I=function(){};return{s:I,n:function(){return R>=q.length?{done:!0}:{done:!1,value:q[R++]}},e:function(Q){throw Q},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D,B=!0,j=!1;return{s:function(){O=O.call(q)},n:function(){var Q=O.next();return B=Q.done,Q},e:function(Q){j=!0,D=Q},f:function(){try{B||O.return==null||O.return()}finally{if(j)throw D}}}}(S.inputs);try{var F=function(){var q=P.value;if(!q.indexed)return"continue";var z=T[q.name];if(!z)return M.push(null),"continue";Array.isArray(z)?M.push(z.map(function(O){return A.encodeParameter(q.type,O)})):M.push(A.encodeParameter(q.type,z))};for(N.s();!(P=N.n()).done;)F()}catch(q){N.e(q)}finally{N.f()}}return M.length&&(k.topics=M),this.options.address&&(k.address=this.options.address.toLowerCase()),k},x.prototype._decodeEventABI=function(S){var C=this;S.data=S.data||"",S.topics=S.topics||[];var T=v.outputLogFormatter(S);if(C.name==="ALLEVENTS"&&(C=C.jsonInterface.find(function(P){return P.signature===S.topics[0]})||{anonymous:!0}),C.inputs=C.inputs||[],!C.anonymous){var k=0;C.inputs.forEach(function(P){return P.indexed?k++:null}),k>0&&S.topics.length!==k+1&&(C={anonymous:!0,inputs:[]})}var M=C.anonymous?S.topics:S.topics.slice(1);return T.returnValues=A.decodeLog(C.inputs,S.data,M),delete T.returnValues.__length__,T.event=C.name,T.signature=C.anonymous||!S.topics[0]?null:S.topics[0],T.raw={data:T.data,topics:T.topics},delete T.data,delete T.topics,T},x.prototype._encodeMethodABI=function(){var S=this._method.signature,C=this.arguments||[],T=!1,k=this._parent.options.jsonInterface.filter(function(P){return S==="constructor"&&P.type===S||(P.signature===S||P.signature===S.replace("0x","")||P.name===S)&&P.type==="function"}).map(function(P){var N=Array.isArray(P.inputs)?P.inputs.length:0;if(N!==C.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+N+" arguments.");return P.type==="function"&&(T=P.signature),Array.isArray(P.inputs)?P.inputs:[]}).map(function(P){return A.encodeParameters(P,C).replace("0x","")})[0]||"";if(S==="constructor"){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+k}var M=T?T+k:k;if(!M)throw new Error(`Couldn't find a matching contract method named "`+this._method.name+'".');return M},x.prototype._decodeMethodReturn=function(S,C){if(!C)return null;C=C.length>=2?C.slice(2):C;var T=A.decodeParameters(S,C);return T.__length__===1?T[0]:(delete T.__length__,T)},x.prototype.deploy=function(S,C){if((S=S||{}).arguments=S.arguments||[],!(S=this._getOrSetDefaultOptions(S)).data){if(typeof C=="function")return C(y.ContractMissingDeployDataError());throw y.ContractMissingDeployDataError()}var T=this.options.jsonInterface.find(function(k){return k.type==="constructor"})||{};return T.signature="constructor",this._createTxObject.apply({method:T,parent:this,deployData:S.data,_ethAccounts:this.constructor._ethAccounts},S.arguments)},x.prototype._generateEventOptions=function(){var S=Array.prototype.slice.call(arguments),C=this._getCallback(S),T=(!!S[S.length-1]&&(0,n.default)(S[S.length-1]))==="object"?S.pop():{},k=typeof S[0]=="string"?S[0]:"allevents",M=k.toLowerCase()==="allevents"?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find(function(P){return P.type==="event"&&(P.name===k||P.signature==="0x"+k.replace("0x",""))});if(!M)throw y.ContractEventDoesNotExistError(k);if(!g.isAddress(this.options.address))throw y.ContractNoAddressDefinedError();return{params:this._encodeEventABI(M,T),event:M,filter:T.filter||{},callback:C}},x.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},x.prototype.once=function(S,C,T){var k=Array.prototype.slice.call(arguments);if(!(T=this._getCallback(k)))throw y.ContractOnceRequiresCallbackError();C&&delete C.fromBlock,this._on(S,C,function(M,P,N){N.unsubscribe(),typeof T=="function"&&T(M,P,N)})},x.prototype._on=function(){var S=this._generateEventOptions.apply(this,arguments);S.params&&S.params.toBlock&&(delete S.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",S.event.name),this._checkListener("removeListener",S.event.name);var C=new p({subscription:{params:1,inputFormatter:[v.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(S.event),subscriptionHandler:function(T){T.removed?this.emit("changed",T):this.emit("data",T),typeof this.callback=="function"&&this.callback(null,T,this)}},type:"eth",requestManager:this._requestManager});return C.subscribe("logs",S.params,S.callback||function(){}),C};var E=function(S,C){if(S.event&&S.event.name==="ALLEVENTS"&&Array.isArray(C)){var T=S.filter||{},k=Object.keys(T);return k.length>0?C.filter(function(M){return typeof M=="string"||k.every(function(P){return Array.isArray(T[P])?T[P].some(function(N){return String(M.returnValues[P]).toUpperCase()===String(N).toUpperCase()}):String(M.returnValues[P]).toUpperCase()===String(T[P]).toUpperCase()})}):C}return C};x.prototype.getPastEvents=function(){var S=this._generateEventOptions.apply(this,arguments),C=new c({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[v.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(S.event)});C.setRequestManager(this._requestManager);var T=C.buildCall();return C=null,T(S.params,function(k,M){typeof S.callback=="function"&&S.callback(k,E(S,M))}).then(E.bind(this,S))},x.prototype._createTxObject=function(){var S=Array.prototype.slice.call(arguments),C={};if(this.method.type==="function"&&(C.call=this.parent._executeMethod.bind(C,"call"),C.call.request=this.parent._executeMethod.bind(C,"call",!0)),C.send=this.parent._executeMethod.bind(C,"send"),C.send.request=this.parent._executeMethod.bind(C,"send",!0),C.encodeABI=this.parent._encodeMethodABI.bind(C),C.estimateGas=this.parent._executeMethod.bind(C,"estimate"),C.createAccessList=this.parent._executeMethod.bind(C,"createAccessList"),S&&this.method.inputs&&S.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,S);throw y.InvalidNumberOfParams(S.length,this.method.inputs.length,this.method.name)}return C.arguments=S||[],C._method=this.method,C._parent=this.parent,C._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(C._deployData=this.deployData),C},x.prototype._processExecuteArguments=function(S,C){var T={};if(T.type=S.shift(),T.callback=this._parent._getCallback(S),T.type!=="call"||S[S.length-1]===!0||typeof S[S.length-1]!="string"&&!isFinite(S[S.length-1])||(T.defaultBlock=S.pop()),T.options=(!!S[S.length-1]&&(0,n.default)(S[S.length-1]))==="object"?S.pop():{},T.generateRequest=S[S.length-1]===!0&&S.pop(),T.options=this._parent._getOrSetDefaultOptions(T.options),T.options.data=this.encodeABI(),!this._deployData&&!g.isAddress(this._parent.options.address))throw y.ContractNoAddressDefinedError();return this._deployData||(T.options.to=this._parent.options.address),T.options.data?T:g._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),C.eventEmitter,C.reject,T.callback)},x.prototype._executeMethod=function(){var S=this,C=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),T),T=b(C.type!=="send"),k=S.constructor._ethAccounts||S._ethAccounts;if(C.generateRequest){var M={params:[v.inputCallFormatter.call(this._parent,C.options)],callback:C.callback};return C.type==="call"?(M.params.push(v.inputDefaultBlockNumberFormatter.call(this._parent,C.defaultBlock)),M.method="eth_call",M.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):M.method="eth_sendTransaction",M}switch(C.type){case"createAccessList":return g.isAddress(C.options.from)?new c({name:"createAccessList",call:"eth_createAccessList",params:2,inputFormatter:[v.inputTransactionFormatter,v.inputDefaultBlockNumberFormatter],requestManager:S._parent._requestManager,accounts:k,defaultAccount:S._parent.defaultAccount,defaultBlock:S._parent.defaultBlock}).createFunction()(C.options,C.callback):g._fireError(y.ContractNoFromAddressDefinedError(),T.eventEmitter,T.reject,C.callback);case"estimate":return new c({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[v.inputCallFormatter],outputFormatter:g.hexToNumber,requestManager:S._parent._requestManager,accounts:k,defaultAccount:S._parent.defaultAccount,defaultBlock:S._parent.defaultBlock}).createFunction()(C.options,C.callback);case"call":return new c({name:"call",call:"eth_call",params:2,inputFormatter:[v.inputCallFormatter,v.inputDefaultBlockNumberFormatter],outputFormatter:function(N){return S._parent._decodeMethodReturn(S._method.outputs,N)},requestManager:S._parent._requestManager,accounts:k,defaultAccount:S._parent.defaultAccount,defaultBlock:S._parent.defaultBlock,handleRevert:S._parent.handleRevert,abiCoder:A}).createFunction()(C.options,C.defaultBlock,C.callback);case"send":if(!g.isAddress(C.options.from))return g._fireError(y.ContractNoFromAddressDefinedError(),T.eventEmitter,T.reject,C.callback);if(typeof this._method.payable=="boolean"&&!this._method.payable&&C.options.value&&C.options.value>0)return g._fireError(new Error("Can not send value to non-payable contract method or constructor"),T.eventEmitter,T.reject,C.callback);var P={receiptFormatter:function(N){if(Array.isArray(N.logs)){var F=N.logs.map(function(z){return S._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:S._parent.options.jsonInterface},z)});N.events={};var q=0;F.forEach(function(z){z.event?N.events[z.event]?Array.isArray(N.events[z.event])?N.events[z.event].push(z):N.events[z.event]=[N.events[z.event],z]:N.events[z.event]=z:(N.events[q]=z,q++)}),delete N.logs}return N},contractDeployFormatter:function(N){var F=S._parent.clone();return F.options.address=N.contractAddress,F}};return new c({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[v.inputTransactionFormatter],requestManager:S._parent._requestManager,accounts:S.constructor._ethAccounts||S._ethAccounts,defaultAccount:S._parent.defaultAccount,defaultBlock:S._parent.defaultBlock,transactionBlockTimeout:S._parent.transactionBlockTimeout,transactionConfirmationBlocks:S._parent.transactionConfirmationBlocks,transactionPollingTimeout:S._parent.transactionPollingTimeout,transactionPollingInterval:S._parent.transactionPollingInterval,defaultCommon:S._parent.defaultCommon,defaultChain:S._parent.defaultChain,defaultHardfork:S._parent.defaultHardfork,handleRevert:S._parent.handleRevert,extraFormatters:P,abiCoder:A}).createFunction()(C.options,C.callback);default:throw new Error('Method "'+C.type+'" not implemented.')}},r.exports=x},6764:(r,s,i)=>{var f=i(8847),e=f(i(2247)),l=f(i(5698)),n=i(5160),t=i(1314).formatters,o=i(8161),d=i(1841),u=i(2867),c=i(2689);function g(p){this.eth=p;var v=null;this._detectedAddress=null,this._lastSyncCheck=null,Object.defineProperty(this,"registry",{get:function(){return new d(this)},enumerable:!0}),Object.defineProperty(this,"resolverMethodHandler",{get:function(){return new u(this.registry)},enumerable:!0}),Object.defineProperty(this,"registryAddress",{get:function(){return v},set:function(y){v=y!==null?t.inputAddressFormatter(y):y},enumerable:!0})}g.prototype.supportsInterface=function(p,v,y){return this.getResolver(p).then(function(b){return o.isHexStrict(v)||(v=o.sha3(v).slice(0,10)),b.methods.supportsInterface(v).call(y)}).catch(function(b){if(typeof y!="function")throw b;y(b,null)})},g.prototype.resolver=function(p,v){return this.registry.resolver(p,v)},g.prototype.getResolver=function(p,v){return this.registry.getResolver(p,v)},g.prototype.setResolver=function(p,v,y,b){return this.registry.setResolver(p,v,y,b)},g.prototype.setRecord=function(p,v,y,b,A,x){return this.registry.setRecord(p,v,y,b,A,x)},g.prototype.setSubnodeRecord=function(p,v,y,b,A,x,E){return this.registry.setSubnodeRecord(p,v,y,b,A,x,E)},g.prototype.setApprovalForAll=function(p,v,y,b){return this.registry.setApprovalForAll(p,v,y,b)},g.prototype.isApprovedForAll=function(p,v,y){return this.registry.isApprovedForAll(p,v,y)},g.prototype.recordExists=function(p,v){return this.registry.recordExists(p,v)},g.prototype.setSubnodeOwner=function(p,v,y,b,A){return this.registry.setSubnodeOwner(p,v,y,b,A)},g.prototype.getTTL=function(p,v){return this.registry.getTTL(p,v)},g.prototype.setTTL=function(p,v,y,b){return this.registry.setTTL(p,v,y,b)},g.prototype.getOwner=function(p,v){return this.registry.getOwner(p,v)},g.prototype.setOwner=function(p,v,y,b){return this.registry.setOwner(p,v,y,b)},g.prototype.getAddress=function(p,v){return this.resolverMethodHandler.method(p,"addr",[]).call(v)},g.prototype.setAddress=function(p,v,y,b){return this.resolverMethodHandler.method(p,"setAddr",[v]).send(y,b)},g.prototype.getPubkey=function(p,v){return this.resolverMethodHandler.method(p,"pubkey",[],null,v).call(v)},g.prototype.setPubkey=function(p,v,y,b,A){return this.resolverMethodHandler.method(p,"setPubkey",[v,y]).send(b,A)},g.prototype.getContent=function(p,v){return this.resolverMethodHandler.method(p,"content",[]).call(v)},g.prototype.setContent=function(p,v,y,b){return this.resolverMethodHandler.method(p,"setContent",[v]).send(y,b)},g.prototype.getContenthash=function(p,v){return this.resolverMethodHandler.method(p,"contenthash",[],c.decode).call(v)},g.prototype.setContenthash=function(p,v,y,b){var A;try{A=c.encode(v)}catch{var x=new Error("Could not encode "+v+". See docs for supported hash protocols.");if(typeof b=="function")return void b(x,null);throw x}return this.resolverMethodHandler.method(p,"setContenthash",[A]).send(y,b)},g.prototype.getMultihash=function(p,v){return this.resolverMethodHandler.method(p,"multihash",[]).call(v)},g.prototype.setMultihash=function(p,v,y,b){return this.resolverMethodHandler.method(p,"multihash",[v]).send(y,b)},g.prototype.checkNetwork=(0,l.default)(e.default.mark(function p(){var v,y,b,A,x;return e.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(v=new Date/1e3,this._lastSyncCheck&&!(v-this._lastSyncCheck>3600)){E.next=9;break}return E.next=4,this.eth.getBlock("latest");case 4:if(y=E.sent,!((b=v-y.timestamp)>3600)){E.next=8;break}throw new Error("Network not synced; last block was "+b+" seconds ago");case 8:this._lastSyncCheck=v;case 9:if(!this.registryAddress){E.next=11;break}return E.abrupt("return",this.registryAddress);case 11:if(this._detectedAddress){E.next=20;break}return E.next=14,this.eth.net.getNetworkType();case 14:if(A=E.sent,(x=n.addresses[A])!==void 0){E.next=18;break}throw new Error("ENS is not supported on network "+A);case 18:return this._detectedAddress=x,E.abrupt("return",this._detectedAddress);case 20:return E.abrupt("return",this._detectedAddress);case 21:case"end":return E.stop()}},p,this)})),r.exports=g},5160:r=>{r.exports={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},interfaceIds:{addr:"0x3b3b57de",setAddr:"0x3b3b57de",pubkey:"0xc8690233",setPubkey:"0xc8690233",contenthash:"0xbc1c58d1",setContenthash:"0xbc1c58d1",content:"0xd8389dc5",setContent:"0xd8389dc5"}}},1841:(r,s,i)=>{var f=i(8164),e=i(1006),l=i(282),n=i(1314).formatters,t=i(8161),o=i(3205),d=i(8384);function u(c){var g=this;this.ens=c,this.contract=c.checkNetwork().then(function(p){var v=new f(o,p);return v.setProvider(g.ens.eth.currentProvider),v})}u.prototype.owner=function(c,g){return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'),this.getOwner(c,g)},u.prototype.getOwner=function(c,g){var p=new l(!0);return this.contract.then(function(v){return v.methods.owner(e.hash(c)).call()}).then(function(v){typeof g!="function"?p.resolve(v):g(v,v)}).catch(function(v){typeof g!="function"?p.reject(v):g(v,null)}),p.eventEmitter},u.prototype.setOwner=function(c,g,p,v){var y=new l(!0);return this.contract.then(function(b){return b.methods.setOwner(e.hash(c),n.inputAddressFormatter(g)).send(p)}).then(function(b){typeof v!="function"?y.resolve(b):v(b,b)}).catch(function(b){typeof v!="function"?y.reject(b):v(b,null)}),y.eventEmitter},u.prototype.getTTL=function(c,g){var p=new l(!0);return this.contract.then(function(v){return v.methods.ttl(e.hash(c)).call()}).then(function(v){typeof g!="function"?p.resolve(v):g(v,v)}).catch(function(v){typeof g!="function"?p.reject(v):g(v,null)}),p.eventEmitter},u.prototype.setTTL=function(c,g,p,v){var y=new l(!0);return this.contract.then(function(b){return b.methods.setTTL(e.hash(c),g).send(p)}).then(function(b){typeof v!="function"?y.resolve(b):v(b,b)}).catch(function(b){typeof v!="function"?y.reject(b):v(b,null)}),y.eventEmitter},u.prototype.setSubnodeOwner=function(c,g,p,v,y){var b=new l(!0);return t.isHexStrict(g)||(g=t.sha3(g)),this.contract.then(function(A){return A.methods.setSubnodeOwner(e.hash(c),g,n.inputAddressFormatter(p)).send(v)}).then(function(A){typeof y!="function"?b.resolve(A):y(A,A)}).catch(function(A){typeof y!="function"?b.reject(A):y(A,null)}),b.eventEmitter},u.prototype.setRecord=function(c,g,p,v,y,b){var A=new l(!0);return this.contract.then(function(x){return x.methods.setRecord(e.hash(c),n.inputAddressFormatter(g),n.inputAddressFormatter(p),v).send(y)}).then(function(x){typeof b!="function"?A.resolve(x):b(x,x)}).catch(function(x){typeof b!="function"?A.reject(x):b(x,null)}),A.eventEmitter},u.prototype.setSubnodeRecord=function(c,g,p,v,y,b,A){var x=new l(!0);return t.isHexStrict(g)||(g=t.sha3(g)),this.contract.then(function(E){return E.methods.setSubnodeRecord(e.hash(c),g,n.inputAddressFormatter(p),n.inputAddressFormatter(v),y).send(b)}).then(function(E){typeof A!="function"?x.resolve(E):A(E,E)}).catch(function(E){typeof A!="function"?x.reject(E):A(E,null)}),x.eventEmitter},u.prototype.setApprovalForAll=function(c,g,p,v){var y=new l(!0);return this.contract.then(function(b){return b.methods.setApprovalForAll(n.inputAddressFormatter(c),g).send(p)}).then(function(b){typeof v!="function"?y.resolve(b):v(b,b)}).catch(function(b){typeof v!="function"?y.reject(b):v(b,null)}),y.eventEmitter},u.prototype.isApprovedForAll=function(c,g,p){var v=new l(!0);return this.contract.then(function(y){return y.methods.isApprovedForAll(n.inputAddressFormatter(c),n.inputAddressFormatter(g)).call()}).then(function(y){typeof p!="function"?v.resolve(y):p(y,y)}).catch(function(y){typeof p!="function"?v.reject(y):p(y,null)}),v.eventEmitter},u.prototype.recordExists=function(c,g){var p=new l(!0);return this.contract.then(function(v){return v.methods.recordExists(e.hash(c)).call()}).then(function(v){typeof g!="function"?p.resolve(v):g(v,v)}).catch(function(v){typeof g!="function"?p.reject(v):g(v,null)}),p.eventEmitter},u.prototype.resolver=function(c,g){return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'),this.getResolver(c,g)},u.prototype.getResolver=function(c,g){var p=this;return this.contract.then(function(v){return v.methods.resolver(e.hash(c)).call()}).then(function(v){var y=new f(d,v);if(y.setProvider(p.ens.eth.currentProvider),typeof g!="function")return y;g(y,y)}).catch(function(v){if(typeof g!="function")throw v;g(v,null)})},u.prototype.setResolver=function(c,g,p,v){var y=new l(!0);return this.contract.then(function(b){return b.methods.setResolver(e.hash(c),n.inputAddressFormatter(g)).send(p)}).then(function(b){typeof v!="function"?y.resolve(b):v(b,b)}).catch(function(b){typeof v!="function"?y.reject(b):v(b,null)}),y.eventEmitter},r.exports=u},715:(r,s,i)=>{var f=i(6764);r.exports=f},2867:(r,s,i)=>{var f=i(8847),e=f(i(2247)),l=f(i(5698)),n=i(282),t=i(1006),o=i(1314).errors,d=i(5160).interfaceIds;function u(c){this.registry=c}u.prototype.method=function(c,g,p,v,y){return{call:this.call.bind({ensName:c,methodName:g,methodArguments:p,callback:y,parent:this,outputFormatter:v}),send:this.send.bind({ensName:c,methodName:g,methodArguments:p,callback:y,parent:this})}},u.prototype.call=function(c){var g=this,p=new n,v=this.parent.prepareArguments(this.ensName,this.methodArguments),y=this.outputFormatter||null;return this.parent.registry.getResolver(this.ensName).then(function(){var b=(0,l.default)(e.default.mark(function A(x){return e.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,g.parent.checkInterfaceSupport(x,g.methodName);case 2:g.parent.handleCall(p,x.methods[g.methodName],v,y,c);case 3:case"end":return E.stop()}},A)}));return function(A){return b.apply(this,arguments)}}()).catch(function(b){typeof c!="function"?p.reject(b):c(b,null)}),p.eventEmitter},u.prototype.send=function(c,g){var p=this,v=new n,y=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then(function(){var b=(0,l.default)(e.default.mark(function A(x){return e.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,p.parent.checkInterfaceSupport(x,p.methodName);case 2:p.parent.handleSend(v,x.methods[p.methodName],y,c,g);case 3:case"end":return E.stop()}},A)}));return function(A){return b.apply(this,arguments)}}()).catch(function(b){typeof g!="function"?v.reject(b):g(b,null)}),v.eventEmitter},u.prototype.handleCall=function(c,g,p,v,y){return g.apply(this,p).call().then(function(b){v&&(b=v(b)),typeof y!="function"?c.resolve(b):y(b,b)}).catch(function(b){typeof y!="function"?c.reject(b):y(b,null)}),c},u.prototype.handleSend=function(c,g,p,v,y){return g.apply(this,p).send(v).on("sending",function(){c.eventEmitter.emit("sending")}).on("sent",function(){c.eventEmitter.emit("sent")}).on("transactionHash",function(b){c.eventEmitter.emit("transactionHash",b)}).on("confirmation",function(b,A){c.eventEmitter.emit("confirmation",b,A)}).on("receipt",function(b){c.eventEmitter.emit("receipt",b),c.resolve(b),typeof y=="function"&&y(b,b)}).on("error",function(b){c.eventEmitter.emit("error",b),typeof y!="function"?c.reject(b):y(b,null)}),c},u.prototype.prepareArguments=function(c,g){var p=t.hash(c);return g.length>0?(g.unshift(p),g):[p]},u.prototype.checkInterfaceSupport=function(){var c=(0,l.default)(e.default.mark(function g(p,v){var y;return e.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(d[v]){b.next=2;break}return b.abrupt("return");case 2:return y=!1,b.prev=3,b.next=6,p.methods.supportsInterface(d[v]).call();case 6:y=b.sent,b.next=12;break;case 9:b.prev=9,b.t0=b.catch(3),console.warn('Could not verify interface of resolver contract at "'+p.options.address+'". ');case 12:if(y){b.next=14;break}throw o.ResolverMethodMissingError(p.options.address,v);case 14:case"end":return b.stop()}},g,null,[[3,9]])}));return function(g,p){return c.apply(this,arguments)}}(),r.exports=u},2689:(r,s,i)=>{var f=i(4308);r.exports={decode:function(e){var l=null,n=null,t=null;if(e&&e.error)return{protocolType:null,decoded:e.error};if(e)try{l=f.decode(e);var o=f.getCodec(e);o==="ipfs-ns"?n="ipfs":o==="swarm-ns"?n="bzz":o==="onion"?n="onion":o==="onion3"?n="onion3":l=e}catch(d){t=d.message}return{protocolType:n,decoded:l,error:t}},encode:function(e){var l,n,t=!1;if(e){var o=e.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/)||e.match(/\/(ipfs)\/(.*)/);o&&(n=o[1],l=o[2]);try{if(n==="ipfs")l.length>=4&&(t="0x"+f.fromIpfs(l));else if(n==="bzz")l.length>=4&&(t="0x"+f.fromSwarm(l));else if(n==="onion")l.length===16&&(t="0x"+f.encode("onion",l));else{if(n!=="onion3")throw new Error("Could not encode content hash: unsupported content type");l.length===56&&(t="0x"+f.encode("onion3",l))}}catch(d){throw d}}return t}}},3205:r=>{r.exports=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"ttl",type:"uint64"}],name:"setTTL",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"ttl",outputs:[{name:"",type:"uint64"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"label",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"NewOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"resolver",type:"address"}],name:"NewResolver",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"ttl",type:"uint64"}],name:"NewTTL",type:"event"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"recordExists",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"label",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setSubnodeRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},8384:r=>{r.exports=[{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setMultihash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"multihash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"setPubkey",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"ret",type:"bytes32"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"ret",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],name:"setABI",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"ret",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"pubkey",outputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],payable:!1,type:"function"},{inputs:[{name:"ensAddr",type:"address"}],payable:!1,type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes32"}],name:"ContentChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"contentType",type:"uint256"}],name:"ABIChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"x",type:"bytes32"},{indexed:!1,name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"contenthash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setContenthash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},6:(r,s,i)=>{var f=i(8847),e=f(i(9721)),l=f(i(8985)),n=i(8161),t=i(1734),o=function(c){var g="A".charCodeAt(0),p="Z".charCodeAt(0);return(c=(c=c.toUpperCase()).slice(4)+c.slice(0,4)).split("").map(function(v){var y=v.charCodeAt(0);return y>=g&&y<=p?y-g+10:v}).join("")},d=function(c){for(var g,p=c;p.length>2;)g=p.slice(0,9),p=parseInt(g,10)%97+p.slice(g.length);return parseInt(p,10)%97},u=function(){function c(g){(0,e.default)(this,c),this._iban=g}return(0,l.default)(c,[{key:"isValid",value:function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&d(o(this._iban))===1}},{key:"isDirect",value:function(){return this._iban.length===34||this._iban.length===35}},{key:"isIndirect",value:function(){return this._iban.length===20}},{key:"checksum",value:function(){return this._iban.slice(2,4)}},{key:"institution",value:function(){return this.isIndirect()?this._iban.slice(7,11):""}},{key:"client",value:function(){return this.isIndirect()?this._iban.slice(11):""}},{key:"toAddress",value:function(){if(this.isDirect()){var g=this._iban.slice(4),p=new t(g,36);return n.toChecksumAddress(p.toString(16,20))}return""}},{key:"toString",value:function(){return this._iban}}],[{key:"toAddress",value:function(g){if(!(g=new c(g)).isDirect())throw new Error("IBAN is indirect and can't be converted");return g.toAddress()}},{key:"toIban",value:function(g){return c.fromAddress(g).toString()}},{key:"fromAddress",value:function(g){if(!n.isAddress(g))throw new Error("Provided address is not a valid address: "+g);g=g.replace("0x","").replace("0X","");var p=function(v,y){for(var b=v;b.length<30;)b="0"+b;return b}(new t(g,16).toString(36));return c.fromBban(p.toUpperCase())}},{key:"fromBban",value:function(g){return new c("XE"+("0"+(98-d(o("XE00"+g)))).slice(-2)+g)}},{key:"createIndirect",value:function(g){return c.fromBban("ETH"+g.institution+g.identifier)}},{key:"isValid",value:function(g){return new c(g).isValid()}}]),c}();r.exports=u},6306:(r,s,i)=>{var f=i(606),e=i(3349),l=i(8161),n=i(473),t=i(1314).formatters,o=function(){var d=this;f.packageInit(this,arguments),this.net=new n(this);var u=null,c="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return u},set:function(p){return p&&(u=l.toChecksumAddress(t.inputAddressFormatter(p))),g.forEach(function(v){v.defaultAccount=u}),p},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return c},set:function(p){return c=p,g.forEach(function(v){v.defaultBlock=c}),p},enumerable:!0});var g=[new e({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:l.toChecksumAddress}),new e({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:l.toChecksumAddress}),new e({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[t.inputAddressFormatter,null,null]}),new e({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[t.inputAddressFormatter]}),new e({name:"importRawKey",call:"personal_importRawKey",params:2}),new e({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[t.inputTransactionFormatter,null]}),new e({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[t.inputTransactionFormatter,null]}),new e({name:"sign",call:"personal_sign",params:3,inputFormatter:[t.inputSignFormatter,t.inputAddressFormatter,null]}),new e({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[t.inputSignFormatter,null]})];g.forEach(function(p){p.attachToObject(d),p.setRequestManager(d._requestManager),p.defaultBlock=d.defaultBlock,p.defaultAccount=d.defaultAccount})};f.addProviders(o),r.exports=o},8130:r=>{r.exports=function(s){var i,f=this;return this.net.getId().then(function(e){return i=e,f.getBlock(0)}).then(function(e){var l="private";return e.hash==="0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"&&i===1&&(l="main"),e.hash==="0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"&&i===3&&(l="ropsten"),e.hash==="0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"&&i===4&&(l="rinkeby"),e.hash==="0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"&&i===5&&(l="goerli"),e.hash==="0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"&&i===42&&(l="kovan"),typeof s=="function"&&s(null,l),l}).catch(function(e){if(typeof s!="function")throw e;s(e)})}},6748:(r,s,i)=>{var f=i(606),e=i(1314),l=i(4178).subscriptions,n=i(3349),t=i(8161),o=i(473),d=i(715),u=i(6306),c=i(8164),g=i(6),p=i(9819),v=i(9901),y=i(8130),b=e.formatters,A=function(k){return typeof k[0]=="string"&&k[0].indexOf("0x")===0?"eth_getBlockByHash":"eth_getBlockByNumber"},x=function(k){return typeof k[0]=="string"&&k[0].indexOf("0x")===0?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},E=function(k){return typeof k[0]=="string"&&k[0].indexOf("0x")===0?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},S=function(k){return typeof k[0]=="string"&&k[0].indexOf("0x")===0?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},C=function(k){return typeof k[0]=="string"&&k[0].indexOf("0x")===0?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},T=function(){var k=this;f.packageInit(this,arguments);var M=this.setRequestManager;this.setRequestManager=function(G){return M(G),k.net.setRequestManager(G),k.personal.setRequestManager(G),k.accounts.setRequestManager(G),k.Contract._requestManager=k._requestManager,k.Contract.currentProvider=k._provider,!0};var P=this.setProvider;this.setProvider=function(){P.apply(k,arguments),k.setRequestManager(k._requestManager),k.ens._detectedAddress=null,k.ens._lastSyncCheck=null};var N,F,q,z=!1,O=null,R="latest",I=50,D=24,B=750,j=1e3,Q=10,X=100;Object.defineProperty(this,"handleRevert",{get:function(){return z},set:function(G){z=G,k.Contract.handleRevert=z,W.forEach(function(J){J.handleRevert=z})},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return q},set:function(G){q=G,k.Contract.defaultCommon=q,W.forEach(function(J){J.defaultCommon=q})},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return F},set:function(G){F=G,k.Contract.defaultHardfork=F,W.forEach(function(J){J.defaultHardfork=F})},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return N},set:function(G){N=G,k.Contract.defaultChain=N,W.forEach(function(J){J.defaultChain=N})},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return B},set:function(G){B=G,k.Contract.transactionPollingTimeout=B,W.forEach(function(J){J.transactionPollingTimeout=B})},enumerable:!0}),Object.defineProperty(this,"transactionPollingInterval",{get:function(){return j},set:function(G){j=G,k.Contract.transactionPollingInterval=j,W.forEach(function(J){J.transactionPollingInterval=j})},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return D},set:function(G){D=G,k.Contract.transactionConfirmationBlocks=D,W.forEach(function(J){J.transactionConfirmationBlocks=D})},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return I},set:function(G){I=G,k.Contract.transactionBlockTimeout=I,W.forEach(function(J){J.transactionBlockTimeout=I})},enumerable:!0}),Object.defineProperty(this,"blockHeaderTimeout",{get:function(){return Q},set:function(G){Q=G,k.Contract.blockHeaderTimeout=Q,W.forEach(function(J){J.blockHeaderTimeout=Q})},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return O},set:function(G){return G&&(O=t.toChecksumAddress(b.inputAddressFormatter(G))),k.Contract.defaultAccount=O,k.personal.defaultAccount=O,W.forEach(function(J){J.defaultAccount=O}),G},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return R},set:function(G){return R=G,k.Contract.defaultBlock=R,k.personal.defaultBlock=R,W.forEach(function(J){J.defaultBlock=R}),G},enumerable:!0}),Object.defineProperty(this,"maxListenersWarningThreshold",{get:function(){return X},set:function(G){k.currentProvider&&k.currentProvider.setMaxListeners&&(X=G,k.currentProvider.setMaxListeners(G))},enumerable:!0}),this.clearSubscriptions=k._requestManager.clearSubscriptions.bind(k._requestManager),this.removeSubscriptionById=k._requestManager.removeSubscription.bind(k._requestManager),this.net=new o(this),this.net.getNetworkType=y.bind(this),this.accounts=new p(this),this.personal=new u(this),this.personal.defaultAccount=this.defaultAccount,this.maxListenersWarningThreshold=X;var Z=this,L=function(){c.apply(this,arguments);var G=this,J=Z.setProvider;Z.setProvider=function(){J.apply(Z,arguments),f.packageInit(G,[Z])}};L.setProvider=function(){c.setProvider.apply(this,arguments)},(L.prototype=Object.create(c.prototype)).constructor=L,this.Contract=L,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.transactionBlockTimeout=this.transactionBlockTimeout,this.Contract.transactionConfirmationBlocks=this.transactionConfirmationBlocks,this.Contract.transactionPollingTimeout=this.transactionPollingTimeout,this.Contract.transactionPollingInterval=this.transactionPollingInterval,this.Contract.blockHeaderTimeout=this.blockHeaderTimeout,this.Contract.handleRevert=this.handleRevert,this.Contract._requestManager=this._requestManager,this.Contract._ethAccounts=this.accounts,this.Contract.currentProvider=this._requestManager.provider,this.Iban=g,this.abi=v,this.ens=new d(this);var W=[new n({name:"getNodeInfo",call:"web3_clientVersion"}),new n({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new n({name:"getCoinbase",call:"eth_coinbase",params:0}),new n({name:"isMining",call:"eth_mining",params:0}),new n({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:t.hexToNumber}),new n({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:b.outputSyncingFormatter}),new n({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:b.outputBigNumberFormatter}),new n({name:"getFeeHistory",call:"eth_feeHistory",params:3,inputFormatter:[t.numberToHex,b.inputBlockNumberFormatter,null]}),new n({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:t.toChecksumAddress}),new n({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:t.hexToNumber}),new n({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter],outputFormatter:b.outputBigNumberFormatter}),new n({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[b.inputAddressFormatter,t.numberToHex,b.inputDefaultBlockNumberFormatter]}),new n({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter]}),new n({name:"getBlock",call:A,params:2,inputFormatter:[b.inputBlockNumberFormatter,function(G){return!!G}],outputFormatter:b.outputBlockFormatter}),new n({name:"getUncle",call:E,params:2,inputFormatter:[b.inputBlockNumberFormatter,t.numberToHex],outputFormatter:b.outputBlockFormatter}),new n({name:"getBlockTransactionCount",call:S,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:t.hexToNumber}),new n({name:"getBlockUncleCount",call:C,params:1,inputFormatter:[b.inputBlockNumberFormatter],outputFormatter:t.hexToNumber}),new n({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionFormatter}),new n({name:"getTransactionFromBlock",call:x,params:2,inputFormatter:[b.inputBlockNumberFormatter,t.numberToHex],outputFormatter:b.outputTransactionFormatter}),new n({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:b.outputTransactionReceiptFormatter}),new n({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[b.inputAddressFormatter,b.inputDefaultBlockNumberFormatter],outputFormatter:t.hexToNumber}),new n({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null],abiCoder:v}),new n({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[b.inputTransactionFormatter]}),new n({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[b.inputTransactionFormatter],abiCoder:v}),new n({name:"sign",call:"eth_sign",params:2,inputFormatter:[b.inputSignFormatter,b.inputAddressFormatter],transformPayload:function(G){return G.params.reverse(),G}}),new n({name:"call",call:"eth_call",params:2,inputFormatter:[b.inputCallFormatter,b.inputDefaultBlockNumberFormatter],abiCoder:v}),new n({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[b.inputCallFormatter],outputFormatter:t.hexToNumber}),new n({name:"submitWork",call:"eth_submitWork",params:3}),new n({name:"getWork",call:"eth_getWork",params:0}),new n({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter}),new n({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:t.hexToNumber}),new n({name:"requestAccounts",call:"eth_requestAccounts",params:0,outputFormatter:t.toChecksumAddress}),new n({name:"getProof",call:"eth_getProof",params:3,inputFormatter:[b.inputAddressFormatter,b.inputStorageKeysFormatter,b.inputDefaultBlockNumberFormatter],outputFormatter:b.outputProofFormatter}),new n({name:"getPendingTransactions",call:"eth_pendingTransactions",params:0,outputFormatter:b.outputTransactionFormatter}),new n({name:"createAccessList",call:"eth_createAccessList",params:2,inputFormatter:[b.inputTransactionFormatter,b.inputDefaultBlockNumberFormatter]}),new l({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:b.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[b.inputLogFormatter],outputFormatter:b.outputLogFormatter,subscriptionHandler:function(G){G.removed?this.emit("changed",G):this.emit("data",G),typeof this.callback=="function"&&this.callback(null,G,this)}},syncing:{params:0,outputFormatter:b.outputSyncingFormatter,subscriptionHandler:function(G){var J=this;this._isSyncing!==!0?(this._isSyncing=!0,this.emit("changed",J._isSyncing),typeof this.callback=="function"&&this.callback(null,J._isSyncing,this),setTimeout(function(){J.emit("data",G),typeof J.callback=="function"&&J.callback(null,G,J)},0)):(this.emit("data",G),typeof J.callback=="function"&&this.callback(null,G,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout(function(){G.currentBlock>G.highestBlock-200&&(J._isSyncing=!1,J.emit("changed",J._isSyncing),typeof J.callback=="function"&&J.callback(null,J._isSyncing,J))},500))}}}})];W.forEach(function(G){G.attachToObject(k),G.setRequestManager(k._requestManager,k.accounts),G.defaultBlock=k.defaultBlock,G.defaultAccount=k.defaultAccount,G.transactionBlockTimeout=k.transactionBlockTimeout,G.transactionConfirmationBlocks=k.transactionConfirmationBlocks,G.transactionPollingTimeout=k.transactionPollingTimeout,G.transactionPollingInterval=k.transactionPollingInterval,G.handleRevert=k.handleRevert})};f.addProviders(T),r.exports=T},473:(r,s,i)=>{var f=i(606),e=i(3349),l=i(8161),n=function(){var t=this;f.packageInit(this,arguments),[new e({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new e({name:"isListening",call:"net_listening",params:0}),new e({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:l.hexToNumber})].forEach(function(o){o.attachToObject(t),o.setRequestManager(t._requestManager)})};f.addProviders(n),r.exports=n},4565:(r,s,i)=>{var f=i(1314).errors,e=i(9519),l=i(912);i(2439),i(4258).polyfill(),i.g===void 0||i.g.AbortController||i(3368);var n=function(t,o){o=o||{},this.withCredentials=o.withCredentials,this.timeout=o.timeout||0,this.headers=o.headers,this.agent=o.agent,this.connected=!1;var d=o.keepAlive!==!1;this.host=t||"http://localhost:8545",this.agent||(this.host.substring(0,5)==="https"?this.httpsAgent=new l.Agent({keepAlive:d}):this.httpAgent=new e.Agent({keepAlive:d}))};n.prototype.send=function(t,o){var d,u={method:"POST",body:JSON.stringify(t)},c={};if(typeof AbortController<"u"?d=new AbortController:typeof window<"u"&&window.AbortController!==void 0&&(d=new window.AbortController),d!==void 0&&(u.signal=d.signal),typeof XMLHttpRequest>"u"){var g={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent};this.agent&&(g.httpsAgent=this.agent.https,g.httpAgent=this.agent.http),this.host.substring(0,5)==="https"?u.agent=g.httpsAgent:u.agent=g.httpAgent}this.headers&&this.headers.forEach(function(p){c[p.name]=p.value}),c["Content-Type"]||(c["Content-Type"]="application/json"),this.withCredentials?u.credentials="include":u.credentials="omit",u.headers=c,this.timeout>0&&d!==void 0&&(this.timeoutId=setTimeout(function(){d.abort()},this.timeout)),fetch(this.host,u).then(function(p){this.timeoutId!==void 0&&clearTimeout(this.timeoutId),p.json().then(function(v){o(null,v)}).catch(function(v){o(f.InvalidResponse(p))})}.bind(this)).catch(function(p){this.timeoutId!==void 0&&clearTimeout(this.timeoutId),p.name==="AbortError"&&o(f.ConnectionTimeout(this.timeout)),o(f.InvalidConnection(this.host,p))}.bind(this))},n.prototype.disconnect=function(){},n.prototype.supportsSubscriptions=function(){return!1},r.exports=n},2683:(r,s,i)=>{var f=i(1314).errors,e=i(3150),l=function(n,t){var o=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=n,this.connected=!1,this.connection=t.connect({path:this.path}),this.addDefaultEvents();var d=function(u){var c=null;Array.isArray(u)?u.forEach(function(g){o.responseCallbacks[g.id]&&(c=g.id)}):c=u.id,c||u.method.indexOf("_subscription")===-1?o.responseCallbacks[c]&&(o.responseCallbacks[c](null,u),delete o.responseCallbacks[c]):o.notificationCallbacks.forEach(function(g){typeof g=="function"&&g(u)})};t.constructor.name==="Socket"?e(this.connection).done(d):this.connection.on("data",function(u){o._parseResponse(u.toString()).forEach(d)})};l.prototype.addDefaultEvents=function(){var n=this;this.connection.on("connect",function(){n.connected=!0}),this.connection.on("close",function(){n.connected=!1}),this.connection.on("error",function(){n._timeout()}),this.connection.on("end",function(){n._timeout()}),this.connection.on("timeout",function(){n._timeout()})},l.prototype._parseResponse=function(n){var t=this,o=[];return n.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(d){t.lastChunk&&(d=t.lastChunk+d);var u=null;try{u=JSON.parse(d)}catch{return t.lastChunk=d,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout(function(){throw t._timeout(),f.InvalidResponse(d)},15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,u&&o.push(u)}),o},l.prototype._addResponseCallback=function(n,t){var o=n.id||n[0].id,d=n.method||n[0].method;this.responseCallbacks[o]=t,this.responseCallbacks[o].method=d},l.prototype._timeout=function(){for(var n in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(n)&&(this.responseCallbacks[n](f.InvalidConnection("on IPC")),delete this.responseCallbacks[n])},l.prototype.reconnect=function(){this.connection.connect({path:this.path})},l.prototype.send=function(n,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(n)),this._addResponseCallback(n,t)},l.prototype.on=function(n,t){if(typeof t!="function")throw new Error("The second parameter callback must be a function.");n==="data"?this.notificationCallbacks.push(t):this.connection.on(n,t)},l.prototype.once=function(n,t){if(typeof t!="function")throw new Error("The second parameter callback must be a function.");this.connection.once(n,t)},l.prototype.removeListener=function(n,t){var o=this;n==="data"?this.notificationCallbacks.forEach(function(d,u){d===t&&o.notificationCallbacks.splice(u,1)}):this.connection.removeListener(n,t)},l.prototype.removeAllListeners=function(n){n==="data"?this.notificationCallbacks=[]:this.connection.removeAllListeners(n)},l.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},l.prototype.supportsSubscriptions=function(){return!0},r.exports=l},360:(r,s,i)=>{var f=i(9142),e=i(9033).Buffer,l=i(8847)(i(3355)),n=Object.prototype.toString.call(f!==void 0?f:0)==="[object process]",t=typeof navigator<"u"&&navigator.product==="ReactNative",o=null,d=null;if(n||t){o=function(g){return e.from(g).toString("base64")};var u=i(1143);if(u.URL){var c=u.URL;d=function(g){return new c(g)}}else d=i(1143).parse}else o=btoa.bind((typeof globalThis>"u"?"undefined":(0,l.default)(globalThis))==="object"?globalThis:self),d=function(g){return new URL(g)};r.exports={parseURL:d,btoa:o}},7651:(r,s,i)=>{var f=i(8008),e=i(360),l=i(1314).errors,n=i(1158).w3cwebsocket,t=function(o,d){f.call(this),d=d||{},this.url=o,this._customTimeout=d.timeout||15e3,this.headers=d.headers||{},this.protocol=d.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},d.reconnect),this.clientConfig=d.clientConfig||void 0,this.requestOptions=d.requestOptions||void 0,this.DATA="data",this.CLOSE="close",this.ERROR="error",this.CONNECT="connect",this.RECONNECT="reconnect",this.connection=null,this.requestQueue=new Map,this.responseQueue=new Map,this.reconnectAttempts=0,this.reconnecting=!1,this.connectFailedDescription=null;var u=e.parseURL(o);u.username&&u.password&&(this.headers.authorization="Basic "+e.btoa(u.username+":"+u.password)),u.auth&&(this.headers.authorization="Basic "+e.btoa(u.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};(t.prototype=Object.create(f.prototype)).constructor=t,t.prototype.connect=function(){this.connection=new n(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},t.prototype._onMessage=function(o){var d=this;this._parseResponse(typeof o.data=="string"?o.data:"").forEach(function(u){if(u.method&&u.method.indexOf("_subscription")!==-1)d.emit(d.DATA,u);else{var c=u.id;Array.isArray(u)&&(c=u[0].id),d.responseQueue.has(c)&&(d.responseQueue.get(c).callback!==void 0&&d.responseQueue.get(c).callback(!1,u),d.responseQueue.delete(c))}})},t.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,this.requestQueue.size>0){var o=this;this.requestQueue.forEach(function(d,u){o.send(d.payload,d.callback),o.requestQueue.delete(u)})}},t.prototype._onConnectFailed=function(o){this.connectFailedDescription=o.toString().split(` +`)[0];var d=this;this.connectFailedDescription&&(o.description=this.connectFailedDescription,this.connectFailedDescription=null),o.code=1006,o.reason="connection failed",!this.reconnectOptions.auto||[1e3,1001].includes(o.code)&&o.wasClean!==!1?(this.emit(this.ERROR,o),this.requestQueue.size>0&&this.requestQueue.forEach(function(u,c){u.callback(l.ConnectionNotOpenError(o)),d.requestQueue.delete(c)}),this.responseQueue.size>0&&this.responseQueue.forEach(function(u,c){u.callback(l.InvalidConnection("on WS",o)),d.responseQueue.delete(c)}),this.connection._connection&&this.connection._connection.removeAllListeners(),this.connection._client.removeAllListeners(),this.connection._readyState=3,this.emit(this.CLOSE,o)):this.reconnect()},t.prototype._onClose=function(o){var d=this;!this.reconnectOptions.auto||[1e3,1001].includes(o.code)&&o.wasClean!==!1?(this.emit(this.CLOSE,o),this.requestQueue.size>0&&this.requestQueue.forEach(function(u,c){u.callback(l.ConnectionNotOpenError(o)),d.requestQueue.delete(c)}),this.responseQueue.size>0&&this.responseQueue.forEach(function(u,c){u.callback(l.InvalidConnection("on WS",o)),d.responseQueue.delete(c)}),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},t.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this)),this.connection._client&&(this.connection._client.removeAllListeners("connectFailed"),this.connection._client.on("connectFailed",this._onConnectFailed.bind(this)))},t.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose),this.connection._connection&&this.connection._client.removeListener("connectFailed",this._onConnectFailed)},t.prototype._parseResponse=function(o){var d=this,u=[];return o.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(c){d.lastChunk&&(c=d.lastChunk+c);var g=null;try{g=JSON.parse(c)}catch{return d.lastChunk=c,clearTimeout(d.lastChunkTimeout),void(d.lastChunkTimeout=setTimeout(function(){d.reconnectOptions.auto&&d.reconnectOptions.onTimeout?d.reconnect():(d.emit(d.ERROR,l.ConnectionTimeout(d._customTimeout)),d.requestQueue.size>0&&d.requestQueue.forEach(function(v,y){v.callback(l.ConnectionTimeout(d._customTimeout)),d.requestQueue.delete(y)}))},d._customTimeout))}clearTimeout(d.lastChunkTimeout),d.lastChunk=null,g&&u.push(g)}),u},t.prototype.send=function(o,d){var u=o.id,c={payload:o,callback:d};if(Array.isArray(o)&&(u=o[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(u,c);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(u),this.emit(this.ERROR,l.ConnectionNotOpenError()),void c.callback(l.ConnectionNotOpenError());this.responseQueue.set(u,c),this.requestQueue.delete(u);try{this.connection.send(JSON.stringify(c.payload))}catch(g){c.callback(g),this.responseQueue.delete(u)}}},t.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},t.prototype.disconnect=function(o,d){this._removeSocketListeners(),this.connection.close(o||1e3,d)},t.prototype.supportsSubscriptions=function(){return!0},t.prototype.reconnect=function(){var o=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach(function(d,u){try{o.responseQueue.delete(u),d.callback(l.PendingRequestsOnReconnectingError())}catch(c){console.error("Error encountered in reconnect: ",c)}}),!this.reconnectOptions.maxAttempts||this.reconnectAttempts<this.reconnectOptions.maxAttempts?setTimeout(function(){o.reconnectAttempts++,o._removeSocketListeners(),o.emit(o.RECONNECT,o.reconnectAttempts),o.connect()},this.reconnectOptions.delay):(this.emit(this.ERROR,l.MaxAttemptsReachedOnReconnectingError()),this.reconnecting=!1,this.requestQueue.size>0&&this.requestQueue.forEach(function(d,u){d.callback(l.MaxAttemptsReachedOnReconnectingError()),o.requestQueue.delete(u)}))},r.exports=t},2565:(r,s,i)=>{var f=i(606),e=i(4178).subscriptions,l=i(3349),n=i(473),t=function(){var o=this;f.packageInit(this,arguments);var d=this.setRequestManager;this.setRequestManager=function(c){return d(c),o.net.setRequestManager(c),!0};var u=this.setProvider;this.setProvider=function(){u.apply(o,arguments),o.setRequestManager(o._requestManager)},this.net=new n(this),[new e({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new l({name:"getVersion",call:"shh_version",params:0}),new l({name:"getInfo",call:"shh_info",params:0}),new l({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new l({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new l({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new l({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new l({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new l({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new l({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new l({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new l({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new l({name:"newSymKey",call:"shh_newSymKey",params:0}),new l({name:"addSymKey",call:"shh_addSymKey",params:1}),new l({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new l({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new l({name:"getSymKey",call:"shh_getSymKey",params:1}),new l({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new l({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new l({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new l({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new l({name:"post",call:"shh_post",params:1,inputFormatter:[null]}),new l({name:"unsubscribe",call:"shh_unsubscribe",params:1})].forEach(function(c){c.attachToObject(o),c.setRequestManager(o._requestManager)})};t.prototype.clearSubscriptions=function(){this._requestManager.clearSubscriptions()},f.addProviders(t),r.exports=t},8161:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(7130),l=i(323),n=i(747),t=i(5010),o=i(1734),d=function p(v,y){var b=[];return y.forEach(function(A){if((0,f.default)(A.components)==="object"){if(A.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");var x="",E=A.type.indexOf("[");E>=0&&(x=A.type.substring(E));var S=p(v,A.components);Array.isArray(S)&&v?b.push("tuple("+S.join(",")+")"+x):v?b.push("("+S+")"):b.push("("+S.join(",")+")"+x)}else b.push(A.type)}),b},u=function(p){if(!l.isHexStrict(p))throw new Error("The parameter must be a valid HEX string.");var v="",y=0,b=p.length;for(p.substring(0,2)==="0x"&&(y=2);y<b;y+=2){var A=parseInt(p.slice(y,y+2),16);v+=String.fromCharCode(A)}return v},c=function(p){if(!p)return"0x00";for(var v="",y=0;y<p.length;y++){var b=p.charCodeAt(y).toString(16);v+=b.length<2?"0"+b:b}return"0x"+v},g=function(p){if(p=p?p.toLowerCase():"ether",!e.unitMap[p])throw new Error('This unit "'+p+`" doesn't exist, please use the one of the following units`+JSON.stringify(e.unitMap,null,2));return p};r.exports={_fireError:function(p,v,y,b,A){return!p||(0,f.default)(p)!=="object"||p instanceof Error||!p.data||((p.data&&(0,f.default)(p.data)==="object"||Array.isArray(p.data))&&(p.data=JSON.stringify(p.data,null,2)),p=p.message+` +`+p.data),typeof p=="string"&&(p=new Error(p)),typeof b=="function"&&b(p,A),typeof y=="function"&&((v&&typeof v.listeners=="function"&&v.listeners("error").length||typeof b=="function")&&v.catch(function(){}),setTimeout(function(){y(p)},1)),v&&typeof v.emit=="function"&&setTimeout(function(){v.emit("error",p,A),v.removeAllListeners()},1),v},_jsonInterfaceMethodToString:function(p){return p&&(0,f.default)(p)==="object"&&p.name&&p.name.indexOf("(")!==-1?p.name:p.name+"("+d(!1,p.inputs).join(",")+")"},_flattenTypes:d,randomHex:function(p){return"0x"+t(p).toString("hex")},BN:l.BN,isBN:l.isBN,isBigNumber:l.isBigNumber,isHex:l.isHex,isHexStrict:l.isHexStrict,sha3:l.sha3,sha3Raw:l.sha3Raw,keccak256:l.sha3,soliditySha3:n.soliditySha3,soliditySha3Raw:n.soliditySha3Raw,encodePacked:n.encodePacked,isAddress:l.isAddress,checkAddressChecksum:l.checkAddressChecksum,toChecksumAddress:function(p){if(p===void 0)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(p))throw new Error('Given address "'+p+'" is not a valid Ethereum address.');p=p.toLowerCase().replace(/^0x/i,"");for(var v=l.sha3(p).replace(/^0x/i,""),y="0x",b=0;b<p.length;b++)parseInt(v[b],16)>7?y+=p[b].toUpperCase():y+=p[b];return y},toHex:l.toHex,toBN:l.toBN,bytesToHex:l.bytesToHex,hexToBytes:l.hexToBytes,hexToNumberString:l.hexToNumberString,hexToNumber:l.hexToNumber,toDecimal:l.hexToNumber,numberToHex:l.numberToHex,fromDecimal:l.numberToHex,hexToUtf8:l.hexToUtf8,hexToString:l.hexToUtf8,toUtf8:l.hexToUtf8,stripHexPrefix:l.stripHexPrefix,utf8ToHex:l.utf8ToHex,stringToHex:l.utf8ToHex,fromUtf8:l.utf8ToHex,hexToAscii:u,toAscii:u,asciiToHex:c,fromAscii:c,unitMap:e.unitMap,toWei:function(p,v){if(v=g(v),!l.isBN(p)&&typeof p!="string")throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return l.isBN(p)?e.toWei(p,v):e.toWei(p,v).toString(10)},fromWei:function(p,v){if(v=g(v),!l.isBN(p)&&typeof p!="string")throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return l.isBN(p)?e.fromWei(p,v):e.fromWei(p,v).toString(10)},padLeft:l.leftPad,leftPad:l.leftPad,padRight:l.rightPad,rightPad:l.rightPad,toTwosComplement:l.toTwosComplement,isBloom:l.isBloom,isUserEthereumAddressInBloom:l.isUserEthereumAddressInBloom,isContractAddressInBloom:l.isContractAddressInBloom,isTopic:l.isTopic,isTopicInBloom:l.isTopicInBloom,isInBloom:l.isInBloom,compareBlockNumbers:function(p,v){if(p===v)return 0;if(p!=="genesis"&&p!=="earliest"&&p!==0||v!=="genesis"&&v!=="earliest"&&v!==0){if(p==="genesis"||p==="earliest"||p===0)return-1;if(v==="genesis"||v==="earliest"||v===0)return 1;if(p==="latest"||p==="finalized")return v==="pending"?-1:1;if(v==="latest"||v==="finalized")return p==="pending"?1:-1;if(p==="pending")return 1;if(v==="pending")return-1;if(p==="safe"||v==="safe")return;var y=new o(p),b=new o(v);return y.lt(b)?-1:y.eq(b)?0:1}return 0},toNumber:l.toNumber}},747:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(1734),l=i(323),n=function(d){var u=(0,f.default)(d);if(u==="string")return l.isHexStrict(d)?new e(d.replace(/0x/i,""),16):new e(d,10);if(u==="number")return new e(d);if(l.isBigNumber(d))return new e(d.toString(10));if(l.isBN(d))return d;throw new Error(d+" is not a number")},t=function(d,u,c){var g,p;if((d=function(v){return v.startsWith("int[")?"int256"+v.slice(3):v==="int"?"int256":v.startsWith("uint[")?"uint256"+v.slice(4):v==="uint"?"uint256":v.startsWith("fixed[")?"fixed128x128"+v.slice(5):v==="fixed"?"fixed128x128":v.startsWith("ufixed[")?"ufixed128x128"+v.slice(6):v==="ufixed"?"ufixed128x128":v}(d))==="bytes"){if(u.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+u.length);return u}if(d==="string")return l.utf8ToHex(u);if(d==="bool")return u?"01":"00";if(d.startsWith("address")){if(g=c?64:40,!l.isAddress(u))throw new Error(u+" is not a valid address, or the checksum is invalid.");return l.leftPad(u.toLowerCase(),g)}if(g=function(v){var y=/^\D+(\d+).*$/.exec(v);return y?parseInt(y[1],10):null}(d),d.startsWith("bytes")){if(!g)throw new Error("bytes[] not yet supported in solidity");if(c&&(g=32),g<1||g>32||g<u.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+g+" for "+u);return l.rightPad(u,2*g)}if(d.startsWith("uint")){if(g%8||g<8||g>256)throw new Error("Invalid uint"+g+" size");if((p=n(u)).bitLength()>g)throw new Error("Supplied uint exceeds width: "+g+" vs "+p.bitLength());if(p.lt(new e(0)))throw new Error("Supplied uint "+p.toString()+" is negative");return g?l.leftPad(p.toString("hex"),g/8*2):p}if(d.startsWith("int")){if(g%8||g<8||g>256)throw new Error("Invalid int"+g+" size");if((p=n(u)).bitLength()>g)throw new Error("Supplied int exceeds width: "+g+" vs "+p.bitLength());return p.lt(new e(0))?p.toTwos(g).toString("hex"):g?l.leftPad(p.toString("hex"),g/8*2):p}throw new Error("Unsupported or invalid type: "+d)},o=function(d){if(Array.isArray(d))throw new Error("Autodetection of array types is not supported.");var u,c,g="";if(d&&(0,f.default)(d)==="object"&&(d.hasOwnProperty("v")||d.hasOwnProperty("t")||d.hasOwnProperty("value")||d.hasOwnProperty("type"))?(u=d.hasOwnProperty("t")?d.t:d.type,g=d.hasOwnProperty("v")?d.v:d.value):(u=l.toHex(d,!0),g=l.toHex(d),u.startsWith("int")||u.startsWith("uint")||(u="bytes")),!u.startsWith("int")&&!u.startsWith("uint")||typeof g!="string"||/^(-)?0x/i.test(g)||(g=new e(g)),Array.isArray(g)){if(c=function(p){var v=/^\D+\d*\[(\d+)\]$/.exec(p);return v?parseInt(v[1],10):null}(u),c&&g.length!==c)throw new Error(u+" is not matching the given array "+JSON.stringify(g));c=g.length}return Array.isArray(g)?g.map(function(p){return t(u,p,c).toString("hex").replace("0x","")}).join(""):t(u,g,c).toString("hex").replace("0x","")};r.exports={soliditySha3:function(){var d=Array.prototype.slice.call(arguments).map(o);return l.sha3("0x"+d.join(""))},soliditySha3Raw:function(){return l.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(o).join(""))},encodePacked:function(){return"0x"+Array.prototype.slice.call(arguments).map(o).join("").toLowerCase()}}},323:(r,s,i)=>{var f=i(9033).Buffer,e=i(8847),l=e(i(4519)),n=e(i(3355)),t=i(1734),o=i(7277),d=i(8632),u=i(3062),c=i(9313),g=function(N){return t.isBN(N)},p=function(N){return N&&N.constructor&&N.constructor.name==="BigNumber"},v=function(N){try{return o.apply(null,arguments)}catch(F){throw new Error(F+' Given value: "'+N+'"')}},y=function(N){return!!/^(0x)?[0-9a-f]{40}$/i.test(N)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(N)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(N))||b(N))},b=function(N){N=N.replace(/^0x/i,"");for(var F=M(N.toLowerCase()).replace(/^0x/i,""),q=0;q<40;q++)if(parseInt(F[q],16)>7&&N[q].toUpperCase()!==N[q]||parseInt(F[q],16)<=7&&N[q].toLowerCase()!==N[q])return!1;return!0},A=function(N){var F="";N=(N=(N=(N=(N=d.encode(N)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var q=0;q<N.length;q++){var z=N.charCodeAt(q).toString(16);F+=z.length<2?"0"+z:z}return"0x"+F},x=function(N){var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!N)return N;if(typeof N=="string"&&!C(N))throw new Error('Given value "'+N+'" is not a valid hex string.');var q=v(N);return F&&(q>Number.MAX_SAFE_INTEGER||q<Number.MIN_SAFE_INTEGER)?BigInt(q):q.toNumber()},E=function(N){if(N==null)return N;if(!isFinite(N)&&!C(N))throw new Error('Given input "'+N+'" is not a number.');var F=v(N),q=F.toString(16);return F.lt(new t(0))?"-0x"+q.slice(1):"0x"+q},S=function(N,F){if(y(N))return F?"address":"0x"+N.toLowerCase().replace(/^0x/i,"");if(typeof N=="boolean")return F?"bool":N?"0x01":"0x00";if(f.isBuffer(N))return"0x"+N.toString("hex");if((0,n.default)(N)==="object"&&N&&!p(N)&&!g(N))return F?"string":A(JSON.stringify(N));if(typeof N=="string"){if(N.indexOf("-0x")===0||N.indexOf("-0X")===0)return F?"int256":E(N);if(N.indexOf("0x")===0||N.indexOf("0X")===0)return F?"bytes":N;if(!isFinite(N))return F?"string":A(N)}return F?N<0?"int256":"uint256":E(N)},C=function(N){return(typeof N=="string"||typeof N=="number")&&/^(-)?0x[0-9a-f]*$/i.test(N)},T=function(N){return(typeof N=="string"||typeof N=="number")&&/^(-0x|0x)?[0-9a-f]*$/i.test(N)},k="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",M=function(N){g(N)&&(N=N.toString()),C(N)&&/^0x/i.test(N.toString())?N=u.toBuffer(N):typeof N=="string"&&(N=f.from(N,"utf-8"));var F=u.bufferToHex(u.keccak256(N));return F===k?null:F};M._Hash=u.keccak256;var P=function(N){if(typeof N=="string"&&N.includes("0x")){var F=N.toLocaleLowerCase().startsWith("-")?["-",N.slice(3)]:["",N.slice(2)],q=(0,l.default)(F,2),z=q[0],O=q[1];return new t(z+O,16)}return new t(N)};Object.setPrototypeOf(P,t),Object.setPrototypeOf(P.prototype,t.prototype),r.exports={BN:P,isBN:g,isBigNumber:p,toBN:v,isAddress:y,isBloom:function(N){return c.isBloom(N)},isUserEthereumAddressInBloom:function(N,F){return c.isUserEthereumAddressInBloom(N,F)},isContractAddressInBloom:function(N,F){return c.isContractAddressInBloom(N,F)},isTopic:function(N){return c.isTopic(N)},isTopicInBloom:function(N,F){return c.isTopicInBloom(N,F)},isInBloom:function(N,F){return c.isInBloom(N,F)},checkAddressChecksum:b,utf8ToHex:A,hexToUtf8:function(N){if(!C(N))throw new Error('The parameter "'+N+'" must be a valid HEX string.');for(var F="",q=0,z=(N=(N=(N=(N=(N=N.replace(/^0x/i,"")).replace(/^(?:00)*/,"")).split("").reverse().join("")).replace(/^(?:00)*/,"")).split("").reverse().join("")).length,O=0;O<z;O+=2)q=parseInt(N.slice(O,O+2),16),F+=String.fromCharCode(q);return d.decode(F)},hexToNumber:x,hexToNumberString:function(N){if(!N)return N;if(typeof N=="string"&&!C(N))throw new Error('Given value "'+N+'" is not a valid hex string.');return v(N).toString(10)},numberToHex:E,toHex:S,hexToBytes:function(N){if(N=N.toString(16),!C(N))throw new Error('Given value "'+N+'" is not a valid hex string.');N=N.replace(/^0x/i,"");for(var F=[],q=0;q<N.length;q+=2)F.push(parseInt(N.slice(q,q+2),16));return F},bytesToHex:function(N){for(var F=[],q=0;q<N.length;q++)F.push((N[q]>>>4).toString(16)),F.push((15&N[q]).toString(16));return"0x"+F.join("")},isHex:T,isHexStrict:C,stripHexPrefix:function(N){return N!==0&&T(N)?N.replace(/^(-)?0x/i,"$1"):N},leftPad:function(N,F,q){var z=/^0x/i.test(N)||typeof N=="number",O=F-(N=N.toString(16).replace(/^0x/i,"")).length+1>=0?F-N.length+1:0;return(z?"0x":"")+new Array(O).join(q||"0")+N},rightPad:function(N,F,q){var z=/^0x/i.test(N)||typeof N=="number",O=F-(N=N.toString(16).replace(/^0x/i,"")).length+1>=0?F-N.length+1:0;return(z?"0x":"")+N+new Array(O).join(q||"0")},toTwosComplement:function(N){return"0x"+v(N).toTwos(256).toString(16,64)},sha3:M,sha3Raw:function(N){return(N=M(N))===null?k:N},toNumber:function(N){var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return typeof N=="number"?N:x(S(N),F)}}},7001:(r,s,i)=>{var f=i(8920).i8,e=i(606),l=i(6748),n=i(473),t=i(6306),o=i(2565),d=i(2463),u=i(8161),c=function(){var g=this;e.packageInit(this,arguments),this.version=f,this.utils=u,this.eth=new l(this),this.shh=new o(this),this.bzz=new d(this);var p=this.setProvider;this.setProvider=function(v,y){return p.apply(g,arguments),g.eth.setRequestManager(g._requestManager),g.shh.setRequestManager(g._requestManager),g.bzz.setProvider(v),!0}};c.version=f,c.utils=u,c.modules={Eth:l,Net:n,Personal:t,Shh:o,Bzz:d},e.addProviders(c),r.exports=c},9214:()=>{},2361:()=>{},4616:()=>{},8768:r=>{r.exports=function(s,i){(i==null||i>s.length)&&(i=s.length);for(var f=0,e=new Array(i);f<i;f++)e[f]=s[f];return e},r.exports.__esModule=!0,r.exports.default=r.exports},2338:r=>{r.exports=function(s){if(Array.isArray(s))return s},r.exports.__esModule=!0,r.exports.default=r.exports},7907:(r,s,i)=>{var f=i(8768);r.exports=function(e){if(Array.isArray(e))return f(e)},r.exports.__esModule=!0,r.exports.default=r.exports},8975:r=>{r.exports=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s},r.exports.__esModule=!0,r.exports.default=r.exports},5698:r=>{function s(i,f,e,l,n,t,o){try{var d=i[t](o),u=d.value}catch(c){return void e(c)}d.done?f(u):Promise.resolve(u).then(l,n)}r.exports=function(i){return function(){var f=this,e=arguments;return new Promise(function(l,n){var t=i.apply(f,e);function o(u){s(t,l,n,o,d,"next",u)}function d(u){s(t,l,n,o,d,"throw",u)}o(void 0)})}},r.exports.__esModule=!0,r.exports.default=r.exports},9721:r=>{r.exports=function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")},r.exports.__esModule=!0,r.exports.default=r.exports},4727:(r,s,i)=>{var f=i(8746),e=i(6923);function l(n,t,o){return e()?(r.exports=l=Reflect.construct.bind(),r.exports.__esModule=!0,r.exports.default=r.exports):(r.exports=l=function(d,u,c){var g=[null];g.push.apply(g,u);var p=new(Function.bind.apply(d,g));return c&&f(p,c.prototype),p},r.exports.__esModule=!0,r.exports.default=r.exports),l.apply(null,arguments)}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports},8985:(r,s,i)=>{var f=i(2310);function e(l,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(l,f(o.key),o)}}r.exports=function(l,n,t){return n&&e(l.prototype,n),t&&e(l,t),Object.defineProperty(l,"prototype",{writable:!1}),l},r.exports.__esModule=!0,r.exports.default=r.exports},775:(r,s,i)=>{var f=i(2310);r.exports=function(e,l,n){return(l=f(l))in e?Object.defineProperty(e,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[l]=n,e},r.exports.__esModule=!0,r.exports.default=r.exports},119:(r,s,i)=>{var f=i(7460);function e(){return typeof Reflect<"u"&&Reflect.get?(r.exports=e=Reflect.get.bind(),r.exports.__esModule=!0,r.exports.default=r.exports):(r.exports=e=function(l,n,t){var o=f(l,n);if(o){var d=Object.getOwnPropertyDescriptor(o,n);return d.get?d.get.call(arguments.length<3?l:t):d.value}},r.exports.__esModule=!0,r.exports.default=r.exports),e.apply(this,arguments)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports},1949:r=>{function s(i){return r.exports=s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},r.exports.__esModule=!0,r.exports.default=r.exports,s(i)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports},5163:(r,s,i)=>{var f=i(8746);r.exports=function(e,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(l&&l.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),l&&f(e,l)},r.exports.__esModule=!0,r.exports.default=r.exports},8847:r=>{r.exports=function(s){return s&&s.__esModule?s:{default:s}},r.exports.__esModule=!0,r.exports.default=r.exports},6923:r=>{r.exports=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}},r.exports.__esModule=!0,r.exports.default=r.exports},1642:r=>{r.exports=function(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)},r.exports.__esModule=!0,r.exports.default=r.exports},1436:r=>{r.exports=function(s,i){var f=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(f!=null){var e,l,n,t,o=[],d=!0,u=!1;try{if(n=(f=f.call(s)).next,i===0){if(Object(f)!==f)return;d=!1}else for(;!(d=(e=n.call(f)).done)&&(o.push(e.value),o.length!==i);d=!0);}catch(c){u=!0,l=c}finally{try{if(!d&&f.return!=null&&(t=f.return(),Object(t)!==t))return}finally{if(u)throw l}}return o}},r.exports.__esModule=!0,r.exports.default=r.exports},2966:r=>{r.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},r.exports.__esModule=!0,r.exports.default=r.exports},2344:r=>{r.exports=function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},r.exports.__esModule=!0,r.exports.default=r.exports},4650:(r,s,i)=>{var f=i(3355).default,e=i(8975);r.exports=function(l,n){if(n&&(f(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e(l)},r.exports.__esModule=!0,r.exports.default=r.exports},2028:(r,s,i)=>{var f=i(3355).default;function e(){r.exports=e=function(){return l},r.exports.__esModule=!0,r.exports.default=r.exports;var l={},n=Object.prototype,t=n.hasOwnProperty,o=Object.defineProperty||function(D,B,j){D[B]=j.value},d=typeof Symbol=="function"?Symbol:{},u=d.iterator||"@@iterator",c=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function p(D,B,j){return Object.defineProperty(D,B,{value:j,enumerable:!0,configurable:!0,writable:!0}),D[B]}try{p({},"")}catch{p=function(B,j,Q){return B[j]=Q}}function v(D,B,j,Q){var X=B&&B.prototype instanceof A?B:A,Z=Object.create(X.prototype),L=new O(Q||[]);return o(Z,"_invoke",{value:N(D,j,L)}),Z}function y(D,B,j){try{return{type:"normal",arg:D.call(B,j)}}catch(Q){return{type:"throw",arg:Q}}}l.wrap=v;var b={};function A(){}function x(){}function E(){}var S={};p(S,u,function(){return this});var C=Object.getPrototypeOf,T=C&&C(C(R([])));T&&T!==n&&t.call(T,u)&&(S=T);var k=E.prototype=A.prototype=Object.create(S);function M(D){["next","throw","return"].forEach(function(B){p(D,B,function(j){return this._invoke(B,j)})})}function P(D,B){function j(X,Z,L,W){var G=y(D[X],D,Z);if(G.type!=="throw"){var J=G.arg,H=J.value;return H&&f(H)=="object"&&t.call(H,"__await")?B.resolve(H.__await).then(function(U){j("next",U,L,W)},function(U){j("throw",U,L,W)}):B.resolve(H).then(function(U){J.value=U,L(J)},function(U){return j("throw",U,L,W)})}W(G.arg)}var Q;o(this,"_invoke",{value:function(X,Z){function L(){return new B(function(W,G){j(X,Z,W,G)})}return Q=Q?Q.then(L,L):L()}})}function N(D,B,j){var Q="suspendedStart";return function(X,Z){if(Q==="executing")throw new Error("Generator is already running");if(Q==="completed"){if(X==="throw")throw Z;return{value:void 0,done:!0}}for(j.method=X,j.arg=Z;;){var L=j.delegate;if(L){var W=F(L,j);if(W){if(W===b)continue;return W}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(Q==="suspendedStart")throw Q="completed",j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);Q="executing";var G=y(D,B,j);if(G.type==="normal"){if(Q=j.done?"completed":"suspendedYield",G.arg===b)continue;return{value:G.arg,done:j.done}}G.type==="throw"&&(Q="completed",j.method="throw",j.arg=G.arg)}}}function F(D,B){var j=B.method,Q=D.iterator[j];if(Q===void 0)return B.delegate=null,j==="throw"&&D.iterator.return&&(B.method="return",B.arg=void 0,F(D,B),B.method==="throw")||j!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+j+"' method")),b;var X=y(Q,D.iterator,B.arg);if(X.type==="throw")return B.method="throw",B.arg=X.arg,B.delegate=null,b;var Z=X.arg;return Z?Z.done?(B[D.resultName]=Z.value,B.next=D.nextLoc,B.method!=="return"&&(B.method="next",B.arg=void 0),B.delegate=null,b):Z:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,b)}function q(D){var B={tryLoc:D[0]};1 in D&&(B.catchLoc=D[1]),2 in D&&(B.finallyLoc=D[2],B.afterLoc=D[3]),this.tryEntries.push(B)}function z(D){var B=D.completion||{};B.type="normal",delete B.arg,D.completion=B}function O(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(q,this),this.reset(!0)}function R(D){if(D){var B=D[u];if(B)return B.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var j=-1,Q=function X(){for(;++j<D.length;)if(t.call(D,j))return X.value=D[j],X.done=!1,X;return X.value=void 0,X.done=!0,X};return Q.next=Q}}return{next:I}}function I(){return{value:void 0,done:!0}}return x.prototype=E,o(k,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:x,configurable:!0}),x.displayName=p(E,g,"GeneratorFunction"),l.isGeneratorFunction=function(D){var B=typeof D=="function"&&D.constructor;return!!B&&(B===x||(B.displayName||B.name)==="GeneratorFunction")},l.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,E):(D.__proto__=E,p(D,g,"GeneratorFunction")),D.prototype=Object.create(k),D},l.awrap=function(D){return{__await:D}},M(P.prototype),p(P.prototype,c,function(){return this}),l.AsyncIterator=P,l.async=function(D,B,j,Q,X){X===void 0&&(X=Promise);var Z=new P(v(D,B,j,Q),X);return l.isGeneratorFunction(B)?Z:Z.next().then(function(L){return L.done?L.value:Z.next()})},M(k),p(k,g,"Generator"),p(k,u,function(){return this}),p(k,"toString",function(){return"[object Generator]"}),l.keys=function(D){var B=Object(D),j=[];for(var Q in B)j.push(Q);return j.reverse(),function X(){for(;j.length;){var Z=j.pop();if(Z in B)return X.value=Z,X.done=!1,X}return X.done=!0,X}},l.values=R,O.prototype={constructor:O,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(z),!D)for(var B in this)B.charAt(0)==="t"&&t.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var B=this;function j(G,J){return Z.type="throw",Z.arg=D,B.next=G,J&&(B.method="next",B.arg=void 0),!!J}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q],Z=X.completion;if(X.tryLoc==="root")return j("end");if(X.tryLoc<=this.prev){var L=t.call(X,"catchLoc"),W=t.call(X,"finallyLoc");if(L&&W){if(this.prev<X.catchLoc)return j(X.catchLoc,!0);if(this.prev<X.finallyLoc)return j(X.finallyLoc)}else if(L){if(this.prev<X.catchLoc)return j(X.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return j(X.finallyLoc)}}}},abrupt:function(D,B){for(var j=this.tryEntries.length-1;j>=0;--j){var Q=this.tryEntries[j];if(Q.tryLoc<=this.prev&&t.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var X=Q;break}}X&&(D==="break"||D==="continue")&&X.tryLoc<=B&&B<=X.finallyLoc&&(X=null);var Z=X?X.completion:{};return Z.type=D,Z.arg=B,X?(this.method="next",this.next=X.finallyLoc,b):this.complete(Z)},complete:function(D,B){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&B&&(this.next=B),b},finish:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var j=this.tryEntries[B];if(j.finallyLoc===D)return this.complete(j.completion,j.afterLoc),z(j),b}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var j=this.tryEntries[B];if(j.tryLoc===D){var Q=j.completion;if(Q.type==="throw"){var X=Q.arg;z(j)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(D,B,j){return this.delegate={iterator:R(D),resultName:B,nextLoc:j},this.method==="next"&&(this.arg=void 0),b}},l}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports},8746:r=>{function s(i,f){return r.exports=s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,l){return e.__proto__=l,e},r.exports.__esModule=!0,r.exports.default=r.exports,s(i,f)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports},4519:(r,s,i)=>{var f=i(2338),e=i(1436),l=i(6906),n=i(2966);r.exports=function(t,o){return f(t)||e(t,o)||l(t,o)||n()},r.exports.__esModule=!0,r.exports.default=r.exports},7460:(r,s,i)=>{var f=i(1949);r.exports=function(e,l){for(;!Object.prototype.hasOwnProperty.call(e,l)&&(e=f(e))!==null;);return e},r.exports.__esModule=!0,r.exports.default=r.exports},3106:(r,s,i)=>{var f=i(7907),e=i(1642),l=i(6906),n=i(2344);r.exports=function(t){return f(t)||e(t)||l(t)||n()},r.exports.__esModule=!0,r.exports.default=r.exports},9662:(r,s,i)=>{var f=i(3355).default;r.exports=function(e,l){if(f(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var t=n.call(e,l||"default");if(f(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(e)},r.exports.__esModule=!0,r.exports.default=r.exports},2310:(r,s,i)=>{var f=i(3355).default,e=i(9662);r.exports=function(l){var n=e(l,"string");return f(n)==="symbol"?n:String(n)},r.exports.__esModule=!0,r.exports.default=r.exports},3355:r=>{function s(i){return r.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r.exports.__esModule=!0,r.exports.default=r.exports,s(i)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports},6906:(r,s,i)=>{var f=i(8768);r.exports=function(e,l){if(e){if(typeof e=="string")return f(e,l);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,l):void 0}},r.exports.__esModule=!0,r.exports.default=r.exports},2247:(r,s,i)=>{var f=i(8847)(i(3355)),e=i(2028)();r.exports=e;try{regeneratorRuntime=e}catch{(typeof globalThis>"u"?"undefined":(0,f.default)(globalThis))==="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3604:(r,s,i)=>{var f=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis>"u"?i.g:globalThis;r.exports=function(){for(var l=[],n=0;n<f.length;n++)typeof e[f[n]]=="function"&&(l[l.length]=f[n]);return l}},7687:r=>{r.exports=JSON.parse('{"name":"goerli","chainId":5,"networkId":5,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"Cross-client PoA test network","url":"https://github.com/goerli/testnet","genesis":{"hash":"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a","timestamp":"0x5c51a607","gasLimit":10485760,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xa3f5ab08"},{"name":"homestead","block":0,"forkHash":"0xa3f5ab08"},{"name":"tangerineWhistle","block":0,"forkHash":"0xa3f5ab08"},{"name":"spuriousDragon","block":0,"forkHash":"0xa3f5ab08"},{"name":"byzantium","block":0,"forkHash":"0xa3f5ab08"},{"name":"constantinople","block":0,"forkHash":"0xa3f5ab08"},{"name":"petersburg","block":0,"forkHash":"0xa3f5ab08"},{"name":"istanbul","block":1561651,"forkHash":"0xc25efa5c"},{"name":"berlin","block":4460644,"forkHash":"0x757a1c47"},{"name":"london","block":5062605,"forkHash":"0xb8c6299d"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"51.141.78.53","port":30303,"id":"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a","location":"","comment":"Upstream bootnode 1"},{"ip":"13.93.54.137","port":30303,"id":"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b","location":"","comment":"Upstream bootnode 2"},{"ip":"94.237.54.114","port":30313,"id":"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291","location":"","comment":"Upstream bootnode 3"},{"ip":"18.218.250.66","port":30313,"id":"b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949","location":"","comment":"Upstream bootnode 4"},{"ip":"3.11.147.67","port":30303,"id":"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91","location":"","comment":"Ethereum Foundation bootnode"},{"ip":"51.15.116.226","port":30303,"id":"a869b02cec167211fb4815a82941db2e7ed2936fd90e78619c53eb17753fcf0207463e3419c264e2a1dd8786de0df7e68cf99571ab8aeb7c4e51367ef186b1dd","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":30303,"id":"807b37ee4816ecf407e9112224494b74dd5933625f655962d892f2f0f02d7fbbb3e2a94cf87a96609526f30c998fd71e93e2f53015c558ffc8b03eceaf30ee33","location":"","comment":"Goerli Initiative bootnode"},{"ip":"51.15.119.157","port":40303,"id":"a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd","location":"","comment":"Goerli Initiative bootnode"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]}')},7098:r=>{r.exports=JSON.parse('{"name":"kovan","chainId":42,"networkId":42,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"aura","aura":{}},"comment":"Parity PoA test network","url":"https://kovan-testnet.github.io/website/","genesis":{"hash":"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9","timestamp":null,"gasLimit":6000000,"difficulty":131072,"nonce":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","extraData":"0x","stateRoot":"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x010ffe56"},{"name":"homestead","block":0,"forkHash":"0x010ffe56"},{"name":"tangerineWhistle","block":0,"forkHash":"0x010ffe56"},{"name":"spuriousDragon","block":0,"forkHash":"0x010ffe56"},{"name":"byzantium","block":5067000,"forkHash":"0x7f83c620"},{"name":"constantinople","block":9200000,"forkHash":"0xa94e3dc4"},{"name":"petersburg","block":10255201,"forkHash":"0x186874aa"},{"name":"istanbul","block":14111141,"forkHash":"0x7f6599a6"},{"name":"berlin","block":null,"forkHash":null},{"name":"london","block":null,"forkHash":null},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"116.203.116.241","port":30303,"id":"16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45","location":"","comment":"1"},{"ip":"3.217.96.11","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"2"},{"ip":"108.61.170.124","port":30303,"id":"740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c","location":"","comment":"3"},{"ip":"157.230.31.163","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"4"}]}')},7295:r=>{r.exports=JSON.parse('{"name":"mainnet","chainId":1,"networkId":1,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"The Ethereum main chain","url":"https://ethstats.net/","genesis":{"hash":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","timestamp":null,"gasLimit":5000,"difficulty":17179869184,"nonce":"0x0000000000000042","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","stateRoot":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0xfc64ec04"},{"name":"homestead","block":1150000,"forkHash":"0x97c2c34c"},{"name":"dao","block":1920000,"forkHash":"0x91d1f948"},{"name":"tangerineWhistle","block":2463000,"forkHash":"0x7a64da13"},{"name":"spuriousDragon","block":2675000,"forkHash":"0x3edd5b10"},{"name":"byzantium","block":4370000,"forkHash":"0xa00bc324"},{"name":"constantinople","block":7280000,"forkHash":"0x668db0af"},{"name":"petersburg","block":7280000,"forkHash":"0x668db0af"},{"name":"istanbul","block":9069000,"forkHash":"0x879d6e30"},{"name":"muirGlacier","block":9200000,"forkHash":"0xe029e991"},{"name":"berlin","block":12244000,"forkHash":"0x0eb440f6"},{"name":"london","block":12965000,"forkHash":"0xb715077d"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"18.138.108.67","port":30303,"id":"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666","location":"ap-southeast-1-001","comment":"bootnode-aws-ap-southeast-1-001"},{"ip":"3.209.45.79","port":30303,"id":"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de","location":"us-east-1-001","comment":"bootnode-aws-us-east-1-001"},{"ip":"34.255.23.113","port":30303,"id":"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758","location":"eu-west-1-001","comment":"bootnode-aws-eu-west-1-001"},{"ip":"35.158.244.151","port":30303,"id":"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8","location":"eu-central-1-001","comment":"bootnode-aws-eu-central-1-001"},{"ip":"52.187.207.27","port":30303,"id":"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a","location":"australiaeast-001","comment":"bootnode-azure-australiaeast-001"},{"ip":"191.234.162.198","port":30303,"id":"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1","location":"brazilsouth-001","comment":"bootnode-azure-brazilsouth-001"},{"ip":"52.231.165.108","port":30303,"id":"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8","location":"koreasouth-001","comment":"bootnode-azure-koreasouth-001"},{"ip":"104.42.217.25","port":30303,"id":"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f","location":"westus-001","comment":"bootnode-azure-westus-001"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net"]}')},439:r=>{r.exports=JSON.parse('{"name":"rinkeby","chainId":4,"networkId":4,"defaultHardfork":"istanbul","consensus":{"type":"poa","algorithm":"clique","clique":{"period":15,"epoch":30000}},"comment":"PoA test network","url":"https://www.rinkeby.io","genesis":{"hash":"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177","timestamp":"0x58ee40ba","gasLimit":4700000,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x3b8e0691"},{"name":"homestead","block":1,"forkHash":"0x60949295"},{"name":"tangerineWhistle","block":2,"forkHash":"0x8bde40dd"},{"name":"spuriousDragon","block":3,"forkHash":"0xcb3a64bb"},{"name":"byzantium","block":1035301,"forkHash":"0x8d748b57"},{"name":"constantinople","block":3660663,"forkHash":"0xe49cab14"},{"name":"petersburg","block":4321234,"forkHash":"0xafec6b27"},{"name":"istanbul","block":5435345,"forkHash":"0xcbdb8838"},{"name":"berlin","block":8290928,"forkHash":"0x6910c8bd"},{"name":"london","block":8897988,"forkHash":"0x8e29f2f3"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"52.169.42.101","port":30303,"id":"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf","location":"","comment":"IE"},{"ip":"52.3.158.184","port":30303,"id":"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8","location":"","comment":"INFURA"},{"ip":"159.89.28.211","port":30303,"id":"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6","location":"","comment":"AKASHA"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.rinkeby.ethdisco.net"]}')},1227:r=>{r.exports=JSON.parse('{"name":"ropsten","chainId":3,"networkId":3,"defaultHardfork":"istanbul","consensus":{"type":"pow","algorithm":"ethash","ethash":{}},"comment":"PoW test network","url":"https://github.com/ethereum/ropsten","genesis":{"hash":"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d","timestamp":null,"gasLimit":16777216,"difficulty":1048576,"nonce":"0x0000000000000042","extraData":"0x3535353535353535353535353535353535353535353535353535353535353535","stateRoot":"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},"hardforks":[{"name":"chainstart","block":0,"forkHash":"0x30c7ddbc"},{"name":"homestead","block":0,"forkHash":"0x30c7ddbc"},{"name":"tangerineWhistle","block":0,"forkHash":"0x30c7ddbc"},{"name":"spuriousDragon","block":10,"forkHash":"0x63760190"},{"name":"byzantium","block":1700000,"forkHash":"0x3ea159c7"},{"name":"constantinople","block":4230000,"forkHash":"0x97b544f3"},{"name":"petersburg","block":4939394,"forkHash":"0xd6e2149b"},{"name":"istanbul","block":6485846,"forkHash":"0x4bc66396"},{"name":"muirGlacier","block":7117117,"forkHash":"0x6727ef90"},{"name":"berlin","block":9812189,"forkHash":"0xa157d377"},{"name":"london","block":10499401,"forkHash":"0x7119b6b3"},{"name":"merge","block":null,"forkash":null},{"name":"shanghai","block":null,"forkash":null}],"bootstrapNodes":[{"ip":"52.176.7.10","port":30303,"id":"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606","location":"","comment":"US-Azure geth"},{"ip":"52.176.100.77","port":30303,"id":"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c","location":"","comment":"US-Azure parity"},{"ip":"52.232.243.152","port":30303,"id":"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f","location":"","comment":"Parity"},{"ip":"192.81.208.223","port":30303,"id":"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09","location":"","comment":"@gpip"}],"dnsNetworks":["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.ropsten.ethdisco.net"]}')},7523:r=>{r.exports=JSON.parse('{"name":"EIP-1559","number":1559,"comment":"Fee market change for ETH 1.0 chain","url":"https://eips.ethereum.org/EIPS/eip-1559","status":"Review","minimumHardfork":"berlin","requiredEIPs":[2930],"gasConfig":{"baseFeeMaxChangeDenominator":{"v":8,"d":"Maximum base fee change denominator"},"elasticityMultiplier":{"v":2,"d":"Maximum block gas target elasticity"},"initialBaseFee":{"v":1000000000,"d":"Initial base fee on first EIP1559 block"}},"gasPrices":{},"vm":{},"pow":{}}')},3339:r=>{r.exports=JSON.parse('{"name":"EIP-2315","number":2315,"comment":"Simple subroutines for the EVM","url":"https://eips.ethereum.org/EIPS/eip-2315","status":"Draft","minimumHardfork":"istanbul","gasConfig":{},"gasPrices":{"beginsub":{"v":2,"d":"Base fee of the BEGINSUB opcode"},"returnsub":{"v":5,"d":"Base fee of the RETURNSUB opcode"},"jumpsub":{"v":10,"d":"Base fee of the JUMPSUB opcode"}},"vm":{},"pow":{}}')},6769:r=>{r.exports=JSON.parse('{"name":"EIP-2537","number":2537,"comment":"BLS12-381 precompiles","url":"https://eips.ethereum.org/EIPS/eip-2537","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"Bls12381G1AddGas":{"v":600,"d":"Gas cost of a single BLS12-381 G1 addition precompile-call"},"Bls12381G1MulGas":{"v":12000,"d":"Gas cost of a single BLS12-381 G1 multiplication precompile-call"},"Bls12381G2AddGas":{"v":4500,"d":"Gas cost of a single BLS12-381 G2 addition precompile-call"},"Bls12381G2MulGas":{"v":55000,"d":"Gas cost of a single BLS12-381 G2 multiplication precompile-call"},"Bls12381PairingBaseGas":{"v":115000,"d":"Base gas cost of BLS12-381 pairing check"},"Bls12381PairingPerPairGas":{"v":23000,"d":"Per-pair gas cost of BLS12-381 pairing check"},"Bls12381MapG1Gas":{"v":5500,"d":"Gas cost of BLS12-381 map field element to G1"},"Bls12381MapG2Gas":{"v":110000,"d":"Gas cost of BLS12-381 map field element to G2"},"Bls12381MultiExpGasDiscount":{"v":[[1,1200],[2,888],[3,764],[4,641],[5,594],[6,547],[7,500],[8,453],[9,438],[10,423],[11,408],[12,394],[13,379],[14,364],[15,349],[16,334],[17,330],[18,326],[19,322],[20,318],[21,314],[22,310],[23,306],[24,302],[25,298],[26,294],[27,289],[28,285],[29,281],[30,277],[31,273],[32,269],[33,268],[34,266],[35,265],[36,263],[37,262],[38,260],[39,259],[40,257],[41,256],[42,254],[43,253],[44,251],[45,250],[46,248],[47,247],[48,245],[49,244],[50,242],[51,241],[52,239],[53,238],[54,236],[55,235],[56,233],[57,232],[58,231],[59,229],[60,228],[61,226],[62,225],[63,223],[64,222],[65,221],[66,220],[67,219],[68,219],[69,218],[70,217],[71,216],[72,216],[73,215],[74,214],[75,213],[76,213],[77,212],[78,211],[79,211],[80,210],[81,209],[82,208],[83,208],[84,207],[85,206],[86,205],[87,205],[88,204],[89,203],[90,202],[91,202],[92,201],[93,200],[94,199],[95,199],[96,198],[97,197],[98,196],[99,196],[100,195],[101,194],[102,193],[103,193],[104,192],[105,191],[106,191],[107,190],[108,189],[109,188],[110,188],[111,187],[112,186],[113,185],[114,185],[115,184],[116,183],[117,182],[118,182],[119,181],[120,180],[121,179],[122,179],[123,178],[124,177],[125,176],[126,176],[127,175],[128,174]],"d":"Discount gas costs of calls to the MultiExp precompiles with `k` (point, scalar) pair"}},"vm":{},"pow":{}}')},7897:r=>{r.exports=JSON.parse('{"name":"EIP-2565","number":2565,"comment":"ModExp gas cost","url":"https://eips.ethereum.org/EIPS/eip-2565","status":"Last call","minimumHardfork":"byzantium","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":3,"d":"Gquaddivisor from modexp precompile for gas calculation"}},"vm":{},"pow":{}}')},2170:r=>{r.exports=JSON.parse('{"name":"EIP-2718","comment":"Typed Transaction Envelope","url":"https://eips.ethereum.org/EIPS/eip-2718","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},8436:r=>{r.exports=JSON.parse(`{"name":"EIP-2929","comment":"Gas cost increases for state access opcodes","url":"https://eips.ethereum.org/EIPS/eip-2929","status":"Draft","minimumHardfork":"chainstart","gasConfig":{},"gasPrices":{"coldsload":{"v":2100,"d":"Gas cost of the first read of storage from a given location (per transaction)"},"coldaccountaccess":{"v":2600,"d":"Gas cost of the first read of a given address (per transaction)"},"warmstorageread":{"v":100,"d":"Gas cost of reading storage locations which have already loaded 'cold'"},"sstoreCleanGasEIP2200":{"v":2900,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreNoopGasEIP2200":{"v":100,"d":"Once per SSTORE operation if the value doesn't change"},"sstoreDirtyGasEIP2200":{"v":100,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitRefundEIP2200":{"v":19900,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanRefundEIP2200":{"v":4900,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"call":{"v":0,"d":"Base fee of the CALL opcode"},"callcode":{"v":0,"d":"Base fee of the CALLCODE opcode"},"delegatecall":{"v":0,"d":"Base fee of the DELEGATECALL opcode"},"staticcall":{"v":0,"d":"Base fee of the STATICCALL opcode"},"balance":{"v":0,"d":"Base fee of the BALANCE opcode"},"extcodesize":{"v":0,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":0,"d":"Base fee of the EXTCODECOPY opcode"},"extcodehash":{"v":0,"d":"Base fee of the EXTCODEHASH opcode"},"sload":{"v":0,"d":"Base fee of the SLOAD opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"}},"vm":{},"pow":{}}`)},6213:r=>{r.exports=JSON.parse('{"name":"EIP-2930","comment":"Optional access lists","url":"https://eips.ethereum.org/EIPS/eip-2930","status":"Draft","minimumHardfork":"istanbul","requiredEIPs":[2718,2929],"gasConfig":{},"gasPrices":{"accessListStorageKeyCost":{"v":1900,"d":"Gas cost per storage key in an Access List transaction"},"accessListAddressCost":{"v":2400,"d":"Gas cost per storage key in an Access List transaction"}},"vm":{},"pow":{}}')},5491:r=>{r.exports=JSON.parse('{"name":"EIP-3198","number":3198,"comment":"BASEFEE opcode","url":"https://eips.ethereum.org/EIPS/eip-3198","status":"Review","minimumHardfork":"london","gasConfig":{},"gasPrices":{"basefee":{"v":2,"d":"Gas cost of the BASEFEE opcode"}},"vm":{},"pow":{}}')},7852:r=>{r.exports=JSON.parse('{"name":"EIP-3529","comment":"Reduction in refunds","url":"https://eips.ethereum.org/EIPS/eip-3529","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[2929],"gasConfig":{"maxRefundQuotient":{"v":5,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"selfdestructRefund":{"v":0,"d":"Refunded following a selfdestruct operation"},"sstoreClearRefundEIP2200":{"v":4800,"d":"Once per SSTORE operation for clearing an originally existing storage slot"}},"vm":{},"pow":{}}')},1871:r=>{r.exports=JSON.parse('{"name":"EIP-3541","comment":"Reject new contracts starting with the 0xEF byte","url":"https://eips.ethereum.org/EIPS/eip-3541","status":"Draft","minimumHardfork":"berlin","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},7225:r=>{r.exports=JSON.parse('{"name":"EIP-3554","comment":"Reduction in refunds","url":"Difficulty Bomb Delay to December 1st 2021","status":"Draft","minimumHardfork":"muirGlacier","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9500000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},8571:r=>{r.exports=JSON.parse('{"name":"EIP-3675","number":3675,"comment":"Upgrade consensus to Proof-of-Stake","url":"https://eips.ethereum.org/EIPS/eip-3675","status":"Draft","minimumHardfork":"london","requiredEIPs":[],"gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},15:r=>{r.exports=JSON.parse('{"name":"berlin","comment":"HF targeted for July 2020 following the Muir Glacier HF","url":"https://eips.ethereum.org/EIPS/eip-2070","status":"Draft","eips":[2565,2929,2718,2930]}')},6985:r=>{r.exports=JSON.parse('{"name":"byzantium","comment":"Hardfork with new precompiles, instructions and other protocol changes","url":"https://eips.ethereum.org/EIPS/eip-609","status":"Final","gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":20,"d":"Gquaddivisor from modexp precompile for gas calculation"},"ecAdd":{"v":500,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":40000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":100000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":80000,"d":"Gas costs regarding curve pairing precompile input length"},"revert":{"v":0,"d":"Base fee of the REVERT opcode"},"staticcall":{"v":700,"d":"Base fee of the STATICCALL opcode"},"returndatasize":{"v":2,"d":"Base fee of the RETURNDATASIZE opcode"},"returndatacopy":{"v":3,"d":"Base fee of the RETURNDATACOPY opcode"}},"vm":{},"pow":{"minerReward":{"v":"3000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":3000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},114:r=>{r.exports=JSON.parse(`{"name":"chainstart","comment":"Start of the Ethereum main chain","url":"","status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"},"maxRefundQuotient":{"v":2,"d":"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Base fee of the EXP opcode"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Base fee of the SHA3 opcode"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation's data"},"sload":{"v":50,"d":"Base fee of the SLOAD opcode"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Base fee of the JUMPDEST opcode"},"log":{"v":375,"d":"Base fee of the LOG opcode"},"logData":{"v":8,"d":"Per byte in a LOG* operation's data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Base fee of the CREATE opcode"},"call":{"v":40,"d":"Base fee of the CALL opcode"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn't exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""},"stop":{"v":0,"d":"Base fee of the STOP opcode"},"add":{"v":3,"d":"Base fee of the ADD opcode"},"mul":{"v":5,"d":"Base fee of the MUL opcode"},"sub":{"v":3,"d":"Base fee of the SUB opcode"},"div":{"v":5,"d":"Base fee of the DIV opcode"},"sdiv":{"v":5,"d":"Base fee of the SDIV opcode"},"mod":{"v":5,"d":"Base fee of the MOD opcode"},"smod":{"v":5,"d":"Base fee of the SMOD opcode"},"addmod":{"v":8,"d":"Base fee of the ADDMOD opcode"},"mulmod":{"v":8,"d":"Base fee of the MULMOD opcode"},"signextend":{"v":5,"d":"Base fee of the SIGNEXTEND opcode"},"lt":{"v":3,"d":"Base fee of the LT opcode"},"gt":{"v":3,"d":"Base fee of the GT opcode"},"slt":{"v":3,"d":"Base fee of the SLT opcode"},"sgt":{"v":3,"d":"Base fee of the SGT opcode"},"eq":{"v":3,"d":"Base fee of the EQ opcode"},"iszero":{"v":3,"d":"Base fee of the ISZERO opcode"},"and":{"v":3,"d":"Base fee of the AND opcode"},"or":{"v":3,"d":"Base fee of the OR opcode"},"xor":{"v":3,"d":"Base fee of the XOR opcode"},"not":{"v":3,"d":"Base fee of the NOT opcode"},"byte":{"v":3,"d":"Base fee of the BYTE opcode"},"address":{"v":2,"d":"Base fee of the ADDRESS opcode"},"balance":{"v":20,"d":"Base fee of the BALANCE opcode"},"origin":{"v":2,"d":"Base fee of the ORIGIN opcode"},"caller":{"v":2,"d":"Base fee of the CALLER opcode"},"callvalue":{"v":2,"d":"Base fee of the CALLVALUE opcode"},"calldataload":{"v":3,"d":"Base fee of the CALLDATALOAD opcode"},"calldatasize":{"v":2,"d":"Base fee of the CALLDATASIZE opcode"},"calldatacopy":{"v":3,"d":"Base fee of the CALLDATACOPY opcode"},"codesize":{"v":2,"d":"Base fee of the CODESIZE opcode"},"codecopy":{"v":3,"d":"Base fee of the CODECOPY opcode"},"gasprice":{"v":2,"d":"Base fee of the GASPRICE opcode"},"extcodesize":{"v":20,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":20,"d":"Base fee of the EXTCODECOPY opcode"},"blockhash":{"v":20,"d":"Base fee of the BLOCKHASH opcode"},"coinbase":{"v":2,"d":"Base fee of the COINBASE opcode"},"timestamp":{"v":2,"d":"Base fee of the TIMESTAMP opcode"},"number":{"v":2,"d":"Base fee of the NUMBER opcode"},"difficulty":{"v":2,"d":"Base fee of the DIFFICULTY opcode"},"gaslimit":{"v":2,"d":"Base fee of the GASLIMIT opcode"},"pop":{"v":2,"d":"Base fee of the POP opcode"},"mload":{"v":3,"d":"Base fee of the MLOAD opcode"},"mstore":{"v":3,"d":"Base fee of the MSTORE opcode"},"mstore8":{"v":3,"d":"Base fee of the MSTORE8 opcode"},"sstore":{"v":0,"d":"Base fee of the SSTORE opcode"},"jump":{"v":8,"d":"Base fee of the JUMP opcode"},"jumpi":{"v":10,"d":"Base fee of the JUMPI opcode"},"pc":{"v":2,"d":"Base fee of the PC opcode"},"msize":{"v":2,"d":"Base fee of the MSIZE opcode"},"gas":{"v":2,"d":"Base fee of the GAS opcode"},"push":{"v":3,"d":"Base fee of the PUSH opcode"},"dup":{"v":3,"d":"Base fee of the DUP opcode"},"swap":{"v":3,"d":"Base fee of the SWAP opcode"},"callcode":{"v":40,"d":"Base fee of the CALLCODE opcode"},"return":{"v":0,"d":"Base fee of the RETURN opcode"},"invalid":{"v":0,"d":"Base fee of the INVALID opcode"},"selfdestruct":{"v":0,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"},"difficultyBombDelay":{"v":0,"d":"the amount of blocks to delay the difficulty bomb with"}}}`)},5993:r=>{r.exports=JSON.parse(`{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn't change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"},"shl":{"v":3,"d":"Base fee of the SHL opcode"},"shr":{"v":3,"d":"Base fee of the SHR opcode"},"sar":{"v":3,"d":"Base fee of the SAR opcode"},"extcodehash":{"v":400,"d":"Base fee of the EXTCODEHASH opcode"},"create2":{"v":32000,"d":"Base fee of the CREATE2 opcode"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"},"difficultyBombDelay":{"v":5000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}`)},7197:r=>{r.exports=JSON.parse('{"name":"dao","comment":"DAO rescue hardfork","url":"https://eips.ethereum.org/EIPS/eip-779","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{}}')},2800:r=>{r.exports=JSON.parse('{"name":"homestead","comment":"Homestead hardfork with protocol and network changes","url":"https://eips.ethereum.org/EIPS/eip-606","status":"Final","gasConfig":{},"gasPrices":{"delegatecall":{"v":40,"d":"Base fee of the DELEGATECALL opcode"}},"vm":{},"pow":{}}')},3166:r=>{r.exports=JSON.parse(`{"name":"istanbul","comment":"HF targeted for December 2019 following the Constantinople/Petersburg HF","url":"https://eips.ethereum.org/EIPS/eip-1679","status":"Draft","gasConfig":{},"gasPrices":{"blake2Round":{"v":1,"d":"Gas cost per round for the Blake2 F precompile"},"ecAdd":{"v":150,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":6000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":45000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":34000,"d":"Gas costs regarding curve pairing precompile input length"},"txDataNonZero":{"v":16,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"sstoreSentryGasEIP2200":{"v":2300,"d":"Minimum gas required to be present for an SSTORE call, not consumed"},"sstoreNoopGasEIP2200":{"v":800,"d":"Once per SSTORE operation if the value doesn't change"},"sstoreDirtyGasEIP2200":{"v":800,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitGasEIP2200":{"v":20000,"d":"Once per SSTORE operation from clean zero to non-zero"},"sstoreInitRefundEIP2200":{"v":19200,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanGasEIP2200":{"v":5000,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreCleanRefundEIP2200":{"v":4200,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"sstoreClearRefundEIP2200":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"balance":{"v":700,"d":"Base fee of the BALANCE opcode"},"extcodehash":{"v":700,"d":"Base fee of the EXTCODEHASH opcode"},"chainid":{"v":2,"d":"Base fee of the CHAINID opcode"},"selfbalance":{"v":5,"d":"Base fee of the SELFBALANCE opcode"},"sload":{"v":800,"d":"Base fee of the SLOAD opcode"}},"vm":{},"pow":{}}`)},1250:r=>{r.exports=JSON.parse('{"name":"london","comment":"HF targeted for July 2021 following the Berlin fork","url":"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md","status":"Draft","eips":[1559,3198,3529,3541]}')},8648:r=>{r.exports=JSON.parse('{"name":"merge","comment":"Hardfork to upgrade the consensus mechanism to Proof-of-Stake","url":"https://github.com/ethereum/pm/issues/361","status":"pre-Draft","consensus":{"type":"pos","algorithm":"casper","casper":{}},"eips":[3675]}')},2946:r=>{r.exports=JSON.parse('{"name":"muirGlacier","comment":"HF to delay the difficulty bomb","url":"https://eips.ethereum.org/EIPS/eip-2384","status":"Final","gasConfig":{},"gasPrices":{},"vm":{},"pow":{"difficultyBombDelay":{"v":9000000,"d":"the amount of blocks to delay the difficulty bomb with"}}}')},4064:r=>{r.exports=JSON.parse('{"name":"petersburg","comment":"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople","url":"https://eips.ethereum.org/EIPS/eip-1716","status":"Draft","gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreInitGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreCleanGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreDirtyGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreClearRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetClearRefund":{"v":null,"d":"Removed along EIP-1283"}},"vm":{},"pow":{}}')},5553:r=>{r.exports=JSON.parse('{"name":"shanghai","comment":"Next feature hardfork after the London HF","url":"https://github.com/ethereum/pm/issues/356","status":"Pre-Draft","eips":[]}')},716:r=>{r.exports=JSON.parse('{"name":"spuriousDragon","comment":"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit","url":"https://eips.ethereum.org/EIPS/eip-607","status":"Final","gasConfig":{},"gasPrices":{"expByte":{"v":50,"d":"Times ceil(log256(exponent)) for the EXP instruction"}},"vm":{"maxCodeSize":{"v":24576,"d":"Maximum length of contract code"}},"pow":{}}')},2302:r=>{r.exports=JSON.parse('{"name":"tangerineWhistle","comment":"Hardfork with gas cost changes for IO-heavy operations","url":"https://eips.ethereum.org/EIPS/eip-608","status":"Final","gasConfig":{},"gasPrices":{"sload":{"v":200,"d":"Once per SLOAD operation"},"call":{"v":700,"d":"Once per CALL operation & message call transaction"},"extcodesize":{"v":700,"d":"Base fee of the EXTCODESIZE opcode"},"extcodecopy":{"v":700,"d":"Base fee of the EXTCODECOPY opcode"},"balance":{"v":400,"d":"Base fee of the BALANCE opcode"},"delegatecall":{"v":700,"d":"Base fee of the DELEGATECALL opcode"},"callcode":{"v":700,"d":"Base fee of the CALLCODE opcode"},"selfdestruct":{"v":5000,"d":"Base fee of the SELFDESTRUCT opcode"}},"vm":{},"pow":{}}')},4946:r=>{r.exports=JSON.parse('{"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"}}')},5207:r=>{r.exports=JSON.parse('{"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"}}')},1308:r=>{r.exports=JSON.parse('{"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"}')},3630:r=>{r.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"blake3":30,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,"x11":4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},9799:r=>{r.exports=JSON.parse('{"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"}}')},8597:r=>{r.exports={i8:"6.5.4"}},4070:r=>{r.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"x11":4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},2562:r=>{r.exports=JSON.parse('{"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"}')},9794:r=>{r.exports={version:"1.0.34"}},8920:r=>{r.exports={i8:"1.10.0"}}},_={};function h(r){var s=_[r];if(s!==void 0)return s.exports;var i=_[r]={id:r,loaded:!1,exports:{}};return w[r](i,i.exports,h),i.loaded=!0,i.exports}return h.amdO={},h.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),h.nmd=r=>(r.paths=[],r.children||(r.children=[]),r),h(7001)})())})(n6);var _4=n6.exports;const qt=zn(_4);var w4=function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("div",{staticClass:"otp-wrapper otp-event"},[w("h2",{staticStyle:{"text-align":"center","margin-bottom":"10px"}},[a._v("Google Authenticator")]),a._m(0),w("div",[w("Button",{staticStyle:{"margin-top":"30px","margin-right":"20px"},attrs:{type:"primary"},on:{click:function(_){return a.$parent.afterVerify(!1)}}},[a._v("Back")]),w("Button",{staticStyle:{"margin-top":"30px"},attrs:{type:"primary",id:"confirm"},on:{click:function(_){return a.verify()}}},[a._v("Verify")])],1)])},x4=[function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("form",{staticClass:"otp-container",attrs:{id:"verifyForm",method:"post",action:"/api/auth/verify"}},[w("input",{staticClass:"digits",attrs:{type:"tel",id:"digits-1",maxlength:"1",autocomplete:"off",autofocus:"true"}}),w("input",{staticClass:"digits",attrs:{type:"tel",id:"digits-2",maxlength:"1",autocomplete:"off"}}),w("input",{staticClass:"digits",attrs:{type:"tel",id:"digits-3",maxlength:"1",autocomplete:"off"}}),w("input",{staticClass:"digits",attrs:{type:"tel",id:"digits-4",maxlength:"1",autocomplete:"off"}}),w("input",{staticClass:"digits",attrs:{type:"tel",id:"digits-5",maxlength:"1",autocomplete:"off"}}),w("input",{staticClass:"digits",attrs:{type:"tel",id:"digits-6",maxlength:"1",autocomplete:"off"}}),w("input",{attrs:{type:"hidden",id:"code",name:"code"}})])}];const A4={inject:["reload"],data(){return{action:"",backendPublic:"",afterVerifyContent:""}},mounted:function(){},methods:{init(a,m,w){this.action=a,this.backendPublic=m,this.afterVerifyContent=w,new URLSearchParams(window.location.search),$(".otp-event").each(function(){var _=$(this).find(".digits"),h=$(this).find(".otp-submit");_.keydown(function(r){var s=$(this).val();if(r.keyCode==37)$(this).prev().focus(),r.preventDefault();else if(r.keyCode==39)$(this).next().focus(),r.preventDefault();else if(s.length==1&&r.keyCode!=8&&r.keyCode!=46){var i=$(this).next();i.length==1&&i.val().length==0&&i.focus()}else if(s.length==0&&r.keyCode==8)$(this).prev().val(""),$(this).prev().focus();else if(s.length==1&&r.keyCode==8)$(this).val("");else if(s.length==0&&r.keyCode==46){var f=$(this).next();for(f.val("");f.next().length>0;)if(f.val(f.next().val()),f=f.next(),f.next().length==0){f.val("");break}}}).focus(function(){$(this).select();var r=$(this).prev().val();r===""?$(this).prev().focus():$(this).next().val()&&$(this).next().focus()}).keyup(function(r){var s="";_.each(function(i){$(this).val().length!=0?$(this).addClass("otp-filled-active"):$(this).removeClass("otp-filled-active"),s+=$(this).val()}),$(this).val().length==1&&r.keyCode!=37&&r.keyCode!=39&&($(this).next().focus(),r.preventDefault()),_.each(function(i){$(this).val()!=""?h.prop("disabled",!1):h.prop("disabled",!0)})})})},verify(){let a=this;document.getElementById("code").value+=document.getElementById("digits-1").value,document.getElementById("code").value+=document.getElementById("digits-2").value,document.getElementById("code").value+=document.getElementById("digits-3").value,document.getElementById("code").value+=document.getElementById("digits-4").value,document.getElementById("code").value+=document.getElementById("digits-5").value,document.getElementById("code").value+=document.getElementById("digits-6").value;const m=document.getElementById("code").value;let w={};Auth(this.$parent.getSelf().getWalletAddress(),m,"google",this.action,this.afterVerifyContent,function(_){if(w.data=JSON.parse(_),w.data.Error!==""&&w.data.Error!==null&&w.data.Error!==void 0){if(w.data.Error==="reload"){a.reload();return}a.$Message.error("google authenticator verify failed"),a.$parent.getSelf().afterVerify(!1,"")}else a.$Message.success("google authenticator verify successed"),a.$parent.getSelf().afterVerify(!0,w.data.Data)})}}},i1={};var E4=ki(A4,w4,x4,!1,S4,"0d03e67e",null,null);function S4(a){for(let m in i1)this[m]=i1[m]}const C4=function(){return E4.exports}();var i6={exports:{}};function a6(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xu={exports:{}};const k4={},O4=Object.freeze(Object.defineProperty({__proto__:null,default:k4},Symbol.toStringTag,{value:"Module"})),o6=sc(O4);var a1;function st(){return a1||(a1=1,function(a,m){(function(w,_){a.exports=_()})(rt,function(){var w=w||function(_,h){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof rt<"u"&&rt.crypto&&(r=rt.crypto),!r&&typeof a6=="function")try{r=o6}catch{}var s=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function p(){}return function(v){var y;return p.prototype=v,y=new p,p.prototype=null,y}}(),f={},e=f.lib={},l=e.Base=function(){return{extend:function(p){var v=i(this);return p&&v.mixIn(p),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var v in p)p.hasOwnProperty(v)&&(this[v]=p[v]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),n=e.WordArray=l.extend({init:function(p,v){p=this.words=p||[],v!=h?this.sigBytes=v:this.sigBytes=p.length*4},toString:function(p){return(p||o).stringify(this)},concat:function(p){var v=this.words,y=p.words,b=this.sigBytes,A=p.sigBytes;if(this.clamp(),b%4)for(var x=0;x<A;x++){var E=y[x>>>2]>>>24-x%4*8&255;v[b+x>>>2]|=E<<24-(b+x)%4*8}else for(var S=0;S<A;S+=4)v[b+S>>>2]=y[S>>>2];return this.sigBytes+=A,this},clamp:function(){var p=this.words,v=this.sigBytes;p[v>>>2]&=4294967295<<32-v%4*8,p.length=_.ceil(v/4)},clone:function(){var p=l.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var v=[],y=0;y<p;y+=4)v.push(s());return new n.init(v,p)}}),t=f.enc={},o=t.Hex={stringify:function(p){for(var v=p.words,y=p.sigBytes,b=[],A=0;A<y;A++){var x=v[A>>>2]>>>24-A%4*8&255;b.push((x>>>4).toString(16)),b.push((x&15).toString(16))}return b.join("")},parse:function(p){for(var v=p.length,y=[],b=0;b<v;b+=2)y[b>>>3]|=parseInt(p.substr(b,2),16)<<24-b%8*4;return new n.init(y,v/2)}},d=t.Latin1={stringify:function(p){for(var v=p.words,y=p.sigBytes,b=[],A=0;A<y;A++){var x=v[A>>>2]>>>24-A%4*8&255;b.push(String.fromCharCode(x))}return b.join("")},parse:function(p){for(var v=p.length,y=[],b=0;b<v;b++)y[b>>>2]|=(p.charCodeAt(b)&255)<<24-b%4*8;return new n.init(y,v)}},u=t.Utf8={stringify:function(p){try{return decodeURIComponent(escape(d.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return d.parse(unescape(encodeURIComponent(p)))}},c=e.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new n.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=u.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var v,y=this._data,b=y.words,A=y.sigBytes,x=this.blockSize,E=x*4,S=A/E;p?S=_.ceil(S):S=_.max((S|0)-this._minBufferSize,0);var C=S*x,T=_.min(C*4,A);if(C){for(var k=0;k<C;k+=x)this._doProcessBlock(b,k);v=b.splice(0,C),y.sigBytes-=T}return new n.init(v,T)},clone:function(){var p=l.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});e.Hasher=c.extend({cfg:l.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(p){return function(v,y){return new p.init(y).finalize(v)}},_createHmacHelper:function(p){return function(v,y){return new g.HMAC.init(p,y).finalize(v)}}});var g=f.algo={};return f}(Math);return w})}(xu)),xu.exports}var Au={exports:{}},o1;function Bs(){return o1||(o1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(_){var h=w,r=h.lib,s=r.Base,i=r.WordArray,f=h.x64={};f.Word=s.extend({init:function(e,l){this.high=e,this.low=l}}),f.WordArray=s.extend({init:function(e,l){e=this.words=e||[],l!=_?this.sigBytes=l:this.sigBytes=e.length*8},toX32:function(){for(var e=this.words,l=e.length,n=[],t=0;t<l;t++){var o=e[t];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=s.clone.call(this),l=e.words=this.words.slice(0),n=l.length,t=0;t<n;t++)l[t]=l[t].clone();return e}})}(),w})}(Au)),Au.exports}var Eu={exports:{}},s1;function P4(){return s1||(s1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(){if(typeof ArrayBuffer=="function"){var _=w,h=_.lib,r=h.WordArray,s=r.init,i=r.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var e=f.byteLength,l=[],n=0;n<e;n++)l[n>>>2]|=f[n]<<24-n%4*8;s.call(this,l,e)}else s.apply(this,arguments)};i.prototype=r}}(),w.lib.WordArray})}(Eu)),Eu.exports}var Su={exports:{}},u1;function T4(){return u1||(u1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.WordArray,s=_.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var e=f.words,l=f.sigBytes,n=[],t=0;t<l;t+=2){var o=e[t>>>2]>>>16-t%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(f){for(var e=f.length,l=[],n=0;n<e;n++)l[n>>>1]|=f.charCodeAt(n)<<16-n%2*16;return r.create(l,e*2)}},s.Utf16LE={stringify:function(f){for(var e=f.words,l=f.sigBytes,n=[],t=0;t<l;t+=2){var o=i(e[t>>>2]>>>16-t%4*8&65535);n.push(String.fromCharCode(o))}return n.join("")},parse:function(f){for(var e=f.length,l=[],n=0;n<e;n++)l[n>>>1]|=i(f.charCodeAt(n)<<16-n%2*16);return r.create(l,e*2)}};function i(f){return f<<8&4278255360|f>>>8&16711935}}(),w.enc.Utf16})}(Su)),Su.exports}var Cu={exports:{}},l1;function Pi(){return l1||(l1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.WordArray,s=_.enc;s.Base64={stringify:function(f){var e=f.words,l=f.sigBytes,n=this._map;f.clamp();for(var t=[],o=0;o<l;o+=3)for(var d=e[o>>>2]>>>24-o%4*8&255,u=e[o+1>>>2]>>>24-(o+1)%4*8&255,c=e[o+2>>>2]>>>24-(o+2)%4*8&255,g=d<<16|u<<8|c,p=0;p<4&&o+p*.75<l;p++)t.push(n.charAt(g>>>6*(3-p)&63));var v=n.charAt(64);if(v)for(;t.length%4;)t.push(v);return t.join("")},parse:function(f){var e=f.length,l=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var t=0;t<l.length;t++)n[l.charCodeAt(t)]=t}var o=l.charAt(64);if(o){var d=f.indexOf(o);d!==-1&&(e=d)}return i(f,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function i(f,e,l){for(var n=[],t=0,o=0;o<e;o++)if(o%4){var d=l[f.charCodeAt(o-1)]<<o%4*2,u=l[f.charCodeAt(o)]>>>6-o%4*2,c=d|u;n[t>>>2]|=c<<24-t%4*8,t++}return r.create(n,t)}}(),w.enc.Base64})}(Cu)),Cu.exports}var ku={exports:{}},f1;function M4(){return f1||(f1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.WordArray,s=_.enc;s.Base64url={stringify:function(f,e=!0){var l=f.words,n=f.sigBytes,t=e?this._safe_map:this._map;f.clamp();for(var o=[],d=0;d<n;d+=3)for(var u=l[d>>>2]>>>24-d%4*8&255,c=l[d+1>>>2]>>>24-(d+1)%4*8&255,g=l[d+2>>>2]>>>24-(d+2)%4*8&255,p=u<<16|c<<8|g,v=0;v<4&&d+v*.75<n;v++)o.push(t.charAt(p>>>6*(3-v)&63));var y=t.charAt(64);if(y)for(;o.length%4;)o.push(y);return o.join("")},parse:function(f,e=!0){var l=f.length,n=e?this._safe_map:this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var o=0;o<n.length;o++)t[n.charCodeAt(o)]=o}var d=n.charAt(64);if(d){var u=f.indexOf(d);u!==-1&&(l=u)}return i(f,l,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function i(f,e,l){for(var n=[],t=0,o=0;o<e;o++)if(o%4){var d=l[f.charCodeAt(o-1)]<<o%4*2,u=l[f.charCodeAt(o)]>>>6-o%4*2,c=d|u;n[t>>>2]|=c<<24-t%4*8,t++}return r.create(n,t)}}(),w.enc.Base64url})}(ku)),ku.exports}var Ou={exports:{}},c1;function Ti(){return c1||(c1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(_){var h=w,r=h.lib,s=r.WordArray,i=r.Hasher,f=h.algo,e=[];(function(){for(var u=0;u<64;u++)e[u]=_.abs(_.sin(u+1))*4294967296|0})();var l=f.MD5=i.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(u,c){for(var g=0;g<16;g++){var p=c+g,v=u[p];u[p]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var y=this._hash.words,b=u[c+0],A=u[c+1],x=u[c+2],E=u[c+3],S=u[c+4],C=u[c+5],T=u[c+6],k=u[c+7],M=u[c+8],P=u[c+9],N=u[c+10],F=u[c+11],q=u[c+12],z=u[c+13],O=u[c+14],R=u[c+15],I=y[0],D=y[1],B=y[2],j=y[3];I=n(I,D,B,j,b,7,e[0]),j=n(j,I,D,B,A,12,e[1]),B=n(B,j,I,D,x,17,e[2]),D=n(D,B,j,I,E,22,e[3]),I=n(I,D,B,j,S,7,e[4]),j=n(j,I,D,B,C,12,e[5]),B=n(B,j,I,D,T,17,e[6]),D=n(D,B,j,I,k,22,e[7]),I=n(I,D,B,j,M,7,e[8]),j=n(j,I,D,B,P,12,e[9]),B=n(B,j,I,D,N,17,e[10]),D=n(D,B,j,I,F,22,e[11]),I=n(I,D,B,j,q,7,e[12]),j=n(j,I,D,B,z,12,e[13]),B=n(B,j,I,D,O,17,e[14]),D=n(D,B,j,I,R,22,e[15]),I=t(I,D,B,j,A,5,e[16]),j=t(j,I,D,B,T,9,e[17]),B=t(B,j,I,D,F,14,e[18]),D=t(D,B,j,I,b,20,e[19]),I=t(I,D,B,j,C,5,e[20]),j=t(j,I,D,B,N,9,e[21]),B=t(B,j,I,D,R,14,e[22]),D=t(D,B,j,I,S,20,e[23]),I=t(I,D,B,j,P,5,e[24]),j=t(j,I,D,B,O,9,e[25]),B=t(B,j,I,D,E,14,e[26]),D=t(D,B,j,I,M,20,e[27]),I=t(I,D,B,j,z,5,e[28]),j=t(j,I,D,B,x,9,e[29]),B=t(B,j,I,D,k,14,e[30]),D=t(D,B,j,I,q,20,e[31]),I=o(I,D,B,j,C,4,e[32]),j=o(j,I,D,B,M,11,e[33]),B=o(B,j,I,D,F,16,e[34]),D=o(D,B,j,I,O,23,e[35]),I=o(I,D,B,j,A,4,e[36]),j=o(j,I,D,B,S,11,e[37]),B=o(B,j,I,D,k,16,e[38]),D=o(D,B,j,I,N,23,e[39]),I=o(I,D,B,j,z,4,e[40]),j=o(j,I,D,B,b,11,e[41]),B=o(B,j,I,D,E,16,e[42]),D=o(D,B,j,I,T,23,e[43]),I=o(I,D,B,j,P,4,e[44]),j=o(j,I,D,B,q,11,e[45]),B=o(B,j,I,D,R,16,e[46]),D=o(D,B,j,I,x,23,e[47]),I=d(I,D,B,j,b,6,e[48]),j=d(j,I,D,B,k,10,e[49]),B=d(B,j,I,D,O,15,e[50]),D=d(D,B,j,I,C,21,e[51]),I=d(I,D,B,j,q,6,e[52]),j=d(j,I,D,B,E,10,e[53]),B=d(B,j,I,D,N,15,e[54]),D=d(D,B,j,I,A,21,e[55]),I=d(I,D,B,j,M,6,e[56]),j=d(j,I,D,B,R,10,e[57]),B=d(B,j,I,D,T,15,e[58]),D=d(D,B,j,I,z,21,e[59]),I=d(I,D,B,j,S,6,e[60]),j=d(j,I,D,B,F,10,e[61]),B=d(B,j,I,D,x,15,e[62]),D=d(D,B,j,I,P,21,e[63]),y[0]=y[0]+I|0,y[1]=y[1]+D|0,y[2]=y[2]+B|0,y[3]=y[3]+j|0},_doFinalize:function(){var u=this._data,c=u.words,g=this._nDataBytes*8,p=u.sigBytes*8;c[p>>>5]|=128<<24-p%32;var v=_.floor(g/4294967296),y=g;c[(p+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,c[(p+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,u.sigBytes=(c.length+1)*4,this._process();for(var b=this._hash,A=b.words,x=0;x<4;x++){var E=A[x];A[x]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return b},clone:function(){var u=i.clone.call(this);return u._hash=this._hash.clone(),u}});function n(u,c,g,p,v,y,b){var A=u+(c&g|~c&p)+v+b;return(A<<y|A>>>32-y)+c}function t(u,c,g,p,v,y,b){var A=u+(c&p|g&~p)+v+b;return(A<<y|A>>>32-y)+c}function o(u,c,g,p,v,y,b){var A=u+(c^g^p)+v+b;return(A<<y|A>>>32-y)+c}function d(u,c,g,p,v,y,b){var A=u+(g^(c|~p))+v+b;return(A<<y|A>>>32-y)+c}h.MD5=i._createHelper(l),h.HmacMD5=i._createHmacHelper(l)}(Math),w.MD5})}(Ou)),Ou.exports}var Pu={exports:{}},d1;function Lc(){return d1||(d1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.WordArray,s=h.Hasher,i=_.algo,f=[],e=i.SHA1=s.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,n){for(var t=this._hash.words,o=t[0],d=t[1],u=t[2],c=t[3],g=t[4],p=0;p<80;p++){if(p<16)f[p]=l[n+p]|0;else{var v=f[p-3]^f[p-8]^f[p-14]^f[p-16];f[p]=v<<1|v>>>31}var y=(o<<5|o>>>27)+g+f[p];p<20?y+=(d&u|~d&c)+1518500249:p<40?y+=(d^u^c)+1859775393:p<60?y+=(d&u|d&c|u&c)-1894007588:y+=(d^u^c)-899497514,g=c,c=u,u=d<<30|d>>>2,d=o,o=y}t[0]=t[0]+o|0,t[1]=t[1]+d|0,t[2]=t[2]+u|0,t[3]=t[3]+c|0,t[4]=t[4]+g|0},_doFinalize:function(){var l=this._data,n=l.words,t=this._nDataBytes*8,o=l.sigBytes*8;return n[o>>>5]|=128<<24-o%32,n[(o+64>>>9<<4)+14]=Math.floor(t/4294967296),n[(o+64>>>9<<4)+15]=t,l.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l}});_.SHA1=s._createHelper(e),_.HmacSHA1=s._createHmacHelper(e)}(),w.SHA1})}(Pu)),Pu.exports}var Tu={exports:{}},h1;function s6(){return h1||(h1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){return function(_){var h=w,r=h.lib,s=r.WordArray,i=r.Hasher,f=h.algo,e=[],l=[];(function(){function o(g){for(var p=_.sqrt(g),v=2;v<=p;v++)if(!(g%v))return!1;return!0}function d(g){return(g-(g|0))*4294967296|0}for(var u=2,c=0;c<64;)o(u)&&(c<8&&(e[c]=d(_.pow(u,1/2))),l[c]=d(_.pow(u,1/3)),c++),u++})();var n=[],t=f.SHA256=i.extend({_doReset:function(){this._hash=new s.init(e.slice(0))},_doProcessBlock:function(o,d){for(var u=this._hash.words,c=u[0],g=u[1],p=u[2],v=u[3],y=u[4],b=u[5],A=u[6],x=u[7],E=0;E<64;E++){if(E<16)n[E]=o[d+E]|0;else{var S=n[E-15],C=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,T=n[E-2],k=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;n[E]=C+n[E-7]+k+n[E-16]}var M=y&b^~y&A,P=c&g^c&p^g&p,N=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),F=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),q=x+F+M+l[E]+n[E],z=N+P;x=A,A=b,b=y,y=v+q|0,v=p,p=g,g=c,c=q+z|0}u[0]=u[0]+c|0,u[1]=u[1]+g|0,u[2]=u[2]+p|0,u[3]=u[3]+v|0,u[4]=u[4]+y|0,u[5]=u[5]+b|0,u[6]=u[6]+A|0,u[7]=u[7]+x|0},_doFinalize:function(){var o=this._data,d=o.words,u=this._nDataBytes*8,c=o.sigBytes*8;return d[c>>>5]|=128<<24-c%32,d[(c+64>>>9<<4)+14]=_.floor(u/4294967296),d[(c+64>>>9<<4)+15]=u,o.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var o=i.clone.call(this);return o._hash=this._hash.clone(),o}});h.SHA256=i._createHelper(t),h.HmacSHA256=i._createHmacHelper(t)}(Math),w.SHA256})}(Tu)),Tu.exports}var Mu={exports:{}},p1;function I4(){return p1||(p1=1,function(a,m){(function(w,_,h){a.exports=_(st(),s6())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.WordArray,s=_.algo,i=s.SHA256,f=s.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});_.SHA224=i._createHelper(f),_.HmacSHA224=i._createHmacHelper(f)}(),w.SHA224})}(Mu)),Mu.exports}var Iu={exports:{}},v1;function u6(){return v1||(v1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Bs())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.Hasher,s=_.x64,i=s.Word,f=s.WordArray,e=_.algo;function l(){return i.create.apply(i,arguments)}var n=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],t=[];(function(){for(var d=0;d<80;d++)t[d]=l()})();var o=e.SHA512=r.extend({_doReset:function(){this._hash=new f.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(d,u){for(var c=this._hash.words,g=c[0],p=c[1],v=c[2],y=c[3],b=c[4],A=c[5],x=c[6],E=c[7],S=g.high,C=g.low,T=p.high,k=p.low,M=v.high,P=v.low,N=y.high,F=y.low,q=b.high,z=b.low,O=A.high,R=A.low,I=x.high,D=x.low,B=E.high,j=E.low,Q=S,X=C,Z=T,L=k,W=M,G=P,J=N,H=F,U=q,K=z,te=O,ee=R,ie=I,se=D,ne=B,re=j,Y=0;Y<80;Y++){var V,oe,fe=t[Y];if(Y<16)oe=fe.high=d[u+Y*2]|0,V=fe.low=d[u+Y*2+1]|0;else{var ce=t[Y-15],he=ce.high,le=ce.low,ae=(he>>>1|le<<31)^(he>>>8|le<<24)^he>>>7,ue=(le>>>1|he<<31)^(le>>>8|he<<24)^(le>>>7|he<<25),de=t[Y-2],ve=de.high,me=de.low,ge=(ve>>>19|me<<13)^(ve<<3|me>>>29)^ve>>>6,xe=(me>>>19|ve<<13)^(me<<3|ve>>>29)^(me>>>6|ve<<26),Ae=t[Y-7],Te=Ae.high,ke=Ae.low,Pe=t[Y-16],Ie=Pe.high,qe=Pe.low;V=ue+ke,oe=ae+Te+(V>>>0<ue>>>0?1:0),V=V+xe,oe=oe+ge+(V>>>0<xe>>>0?1:0),V=V+qe,oe=oe+Ie+(V>>>0<qe>>>0?1:0),fe.high=oe,fe.low=V}var Ve=U&te^~U&ie,et=K&ee^~K&se,je=Q&Z^Q&W^Z&W,Ke=X&L^X&G^L&G,Ge=(Q>>>28|X<<4)^(Q<<30|X>>>2)^(Q<<25|X>>>7),We=(X>>>28|Q<<4)^(X<<30|Q>>>2)^(X<<25|Q>>>7),Je=(U>>>14|K<<18)^(U>>>18|K<<14)^(U<<23|K>>>9),ot=(K>>>14|U<<18)^(K>>>18|U<<14)^(K<<23|U>>>9),Qe=n[Y],Ye=Qe.high,at=Qe.low,pe=re+ot,ye=ne+Je+(pe>>>0<re>>>0?1:0),pe=pe+et,ye=ye+Ve+(pe>>>0<et>>>0?1:0),pe=pe+at,ye=ye+Ye+(pe>>>0<at>>>0?1:0),pe=pe+V,ye=ye+oe+(pe>>>0<V>>>0?1:0),be=We+Ke,_e=Ge+je+(be>>>0<We>>>0?1:0);ne=ie,re=se,ie=te,se=ee,te=U,ee=K,K=H+pe|0,U=J+ye+(K>>>0<H>>>0?1:0)|0,J=W,H=G,W=Z,G=L,Z=Q,L=X,X=pe+be|0,Q=ye+_e+(X>>>0<pe>>>0?1:0)|0}C=g.low=C+X,g.high=S+Q+(C>>>0<X>>>0?1:0),k=p.low=k+L,p.high=T+Z+(k>>>0<L>>>0?1:0),P=v.low=P+G,v.high=M+W+(P>>>0<G>>>0?1:0),F=y.low=F+H,y.high=N+J+(F>>>0<H>>>0?1:0),z=b.low=z+K,b.high=q+U+(z>>>0<K>>>0?1:0),R=A.low=R+ee,A.high=O+te+(R>>>0<ee>>>0?1:0),D=x.low=D+se,x.high=I+ie+(D>>>0<se>>>0?1:0),j=E.low=j+re,E.high=B+ne+(j>>>0<re>>>0?1:0)},_doFinalize:function(){var d=this._data,u=d.words,c=this._nDataBytes*8,g=d.sigBytes*8;u[g>>>5]|=128<<24-g%32,u[(g+128>>>10<<5)+30]=Math.floor(c/4294967296),u[(g+128>>>10<<5)+31]=c,d.sigBytes=u.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var d=r.clone.call(this);return d._hash=this._hash.clone(),d},blockSize:1024/32});_.SHA512=r._createHelper(o),_.HmacSHA512=r._createHmacHelper(o)}(),w.SHA512})}(Iu)),Iu.exports}var Du={exports:{}},m1;function D4(){return m1||(m1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Bs(),u6())})(rt,function(w){return function(){var _=w,h=_.x64,r=h.Word,s=h.WordArray,i=_.algo,f=i.SHA512,e=i.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var l=f._doFinalize.call(this);return l.sigBytes-=16,l}});_.SHA384=f._createHelper(e),_.HmacSHA384=f._createHmacHelper(e)}(),w.SHA384})}(Du)),Du.exports}var Bu={exports:{}},y1;function B4(){return y1||(y1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Bs())})(rt,function(w){return function(_){var h=w,r=h.lib,s=r.WordArray,i=r.Hasher,f=h.x64,e=f.Word,l=h.algo,n=[],t=[],o=[];(function(){for(var c=1,g=0,p=0;p<24;p++){n[c+5*g]=(p+1)*(p+2)/2%64;var v=g%5,y=(2*c+3*g)%5;c=v,g=y}for(var c=0;c<5;c++)for(var g=0;g<5;g++)t[c+5*g]=g+(2*c+3*g)%5*5;for(var b=1,A=0;A<24;A++){for(var x=0,E=0,S=0;S<7;S++){if(b&1){var C=(1<<S)-1;C<32?E^=1<<C:x^=1<<C-32}b&128?b=b<<1^113:b<<=1}o[A]=e.create(x,E)}})();var d=[];(function(){for(var c=0;c<25;c++)d[c]=e.create()})();var u=l.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var c=this._state=[],g=0;g<25;g++)c[g]=new e.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(c,g){for(var p=this._state,v=this.blockSize/2,y=0;y<v;y++){var b=c[g+2*y],A=c[g+2*y+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var x=p[y];x.high^=A,x.low^=b}for(var E=0;E<24;E++){for(var S=0;S<5;S++){for(var C=0,T=0,k=0;k<5;k++){var x=p[S+5*k];C^=x.high,T^=x.low}var M=d[S];M.high=C,M.low=T}for(var S=0;S<5;S++)for(var P=d[(S+4)%5],N=d[(S+1)%5],F=N.high,q=N.low,C=P.high^(F<<1|q>>>31),T=P.low^(q<<1|F>>>31),k=0;k<5;k++){var x=p[S+5*k];x.high^=C,x.low^=T}for(var z=1;z<25;z++){var C,T,x=p[z],O=x.high,R=x.low,I=n[z];I<32?(C=O<<I|R>>>32-I,T=R<<I|O>>>32-I):(C=R<<I-32|O>>>64-I,T=O<<I-32|R>>>64-I);var D=d[t[z]];D.high=C,D.low=T}var B=d[0],j=p[0];B.high=j.high,B.low=j.low;for(var S=0;S<5;S++)for(var k=0;k<5;k++){var z=S+5*k,x=p[z],Q=d[z],X=d[(S+1)%5+5*k],Z=d[(S+2)%5+5*k];x.high=Q.high^~X.high&Z.high,x.low=Q.low^~X.low&Z.low}var x=p[0],L=o[E];x.high^=L.high,x.low^=L.low}},_doFinalize:function(){var c=this._data,g=c.words;this._nDataBytes*8;var p=c.sigBytes*8,v=this.blockSize*32;g[p>>>5]|=1<<24-p%32,g[(_.ceil((p+1)/v)*v>>>5)-1]|=128,c.sigBytes=g.length*4,this._process();for(var y=this._state,b=this.cfg.outputLength/8,A=b/8,x=[],E=0;E<A;E++){var S=y[E],C=S.high,T=S.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,x.push(T),x.push(C)}return new s.init(x,b)},clone:function(){for(var c=i.clone.call(this),g=c._state=this._state.slice(0),p=0;p<25;p++)g[p]=g[p].clone();return c}});h.SHA3=i._createHelper(u),h.HmacSHA3=i._createHmacHelper(u)}(Math),w.SHA3})}(Bu)),Bu.exports}var Ru={exports:{}},g1;function R4(){return g1||(g1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */return function(_){var h=w,r=h.lib,s=r.WordArray,i=r.Hasher,f=h.algo,e=s.create([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]),l=s.create([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]),n=s.create([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]),t=s.create([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]),o=s.create([0,1518500249,1859775393,2400959708,2840853838]),d=s.create([1352829926,1548603684,1836072691,2053994217,0]),u=f.RIPEMD160=i.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,x){for(var E=0;E<16;E++){var S=x+E,C=A[S];A[S]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var T=this._hash.words,k=o.words,M=d.words,P=e.words,N=l.words,F=n.words,q=t.words,z,O,R,I,D,B,j,Q,X,Z;B=z=T[0],j=O=T[1],Q=R=T[2],X=I=T[3],Z=D=T[4];for(var L,E=0;E<80;E+=1)L=z+A[x+P[E]]|0,E<16?L+=c(O,R,I)+k[0]:E<32?L+=g(O,R,I)+k[1]:E<48?L+=p(O,R,I)+k[2]:E<64?L+=v(O,R,I)+k[3]:L+=y(O,R,I)+k[4],L=L|0,L=b(L,F[E]),L=L+D|0,z=D,D=I,I=b(R,10),R=O,O=L,L=B+A[x+N[E]]|0,E<16?L+=y(j,Q,X)+M[0]:E<32?L+=v(j,Q,X)+M[1]:E<48?L+=p(j,Q,X)+M[2]:E<64?L+=g(j,Q,X)+M[3]:L+=c(j,Q,X)+M[4],L=L|0,L=b(L,q[E]),L=L+Z|0,B=Z,Z=X,X=b(Q,10),Q=j,j=L;L=T[1]+R+X|0,T[1]=T[2]+I+Z|0,T[2]=T[3]+D+B|0,T[3]=T[4]+z+j|0,T[4]=T[0]+O+Q|0,T[0]=L},_doFinalize:function(){var A=this._data,x=A.words,E=this._nDataBytes*8,S=A.sigBytes*8;x[S>>>5]|=128<<24-S%32,x[(S+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A.sigBytes=(x.length+1)*4,this._process();for(var C=this._hash,T=C.words,k=0;k<5;k++){var M=T[k];T[k]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return C},clone:function(){var A=i.clone.call(this);return A._hash=this._hash.clone(),A}});function c(A,x,E){return A^x^E}function g(A,x,E){return A&x|~A&E}function p(A,x,E){return(A|~x)^E}function v(A,x,E){return A&E|x&~E}function y(A,x,E){return A^(x|~E)}function b(A,x){return A<<x|A>>>32-x}h.RIPEMD160=i._createHelper(u),h.HmacRIPEMD160=i._createHmacHelper(u)}(),w.RIPEMD160})}(Ru)),Ru.exports}var Nu={exports:{}},b1;function Uc(){return b1||(b1=1,function(a,m){(function(w,_){a.exports=_(st())})(rt,function(w){(function(){var _=w,h=_.lib,r=h.Base,s=_.enc,i=s.Utf8,f=_.algo;f.HMAC=r.extend({init:function(e,l){e=this._hasher=new e.init,typeof l=="string"&&(l=i.parse(l));var n=e.blockSize,t=n*4;l.sigBytes>t&&(l=e.finalize(l)),l.clamp();for(var o=this._oKey=l.clone(),d=this._iKey=l.clone(),u=o.words,c=d.words,g=0;g<n;g++)u[g]^=1549556828,c[g]^=909522486;o.sigBytes=d.sigBytes=t,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var l=this._hasher,n=l.finalize(e);l.reset();var t=l.finalize(this._oKey.clone().concat(n));return t}})})()})}(Nu)),Nu.exports}var Lu={exports:{}},_1;function N4(){return _1||(_1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Lc(),Uc())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.Base,s=h.WordArray,i=_.algo,f=i.SHA1,e=i.HMAC,l=i.PBKDF2=r.extend({cfg:r.extend({keySize:128/32,hasher:f,iterations:1}),init:function(n){this.cfg=this.cfg.extend(n)},compute:function(n,t){for(var o=this.cfg,d=e.create(o.hasher,n),u=s.create(),c=s.create([1]),g=u.words,p=c.words,v=o.keySize,y=o.iterations;g.length<v;){var b=d.update(t).finalize(c);d.reset();for(var A=b.words,x=A.length,E=b,S=1;S<y;S++){E=d.finalize(E),d.reset();for(var C=E.words,T=0;T<x;T++)A[T]^=C[T]}u.concat(b),p[0]++}return u.sigBytes=v*4,u}});_.PBKDF2=function(n,t,o){return l.create(o).compute(n,t)}}(),w.PBKDF2})}(Lu)),Lu.exports}var Uu={exports:{}},w1;function Vn(){return w1||(w1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Lc(),Uc())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.Base,s=h.WordArray,i=_.algo,f=i.MD5,e=i.EvpKDF=r.extend({cfg:r.extend({keySize:128/32,hasher:f,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,n){for(var t,o=this.cfg,d=o.hasher.create(),u=s.create(),c=u.words,g=o.keySize,p=o.iterations;c.length<g;){t&&d.update(t),t=d.update(l).finalize(n),d.reset();for(var v=1;v<p;v++)t=d.finalize(t),d.reset();u.concat(t)}return u.sigBytes=g*4,u}});_.EvpKDF=function(l,n,t){return e.create(t).compute(l,n)}}(),w.EvpKDF})}(Uu)),Uu.exports}var Fu={exports:{}},x1;function Mt(){return x1||(x1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Vn())})(rt,function(w){w.lib.Cipher||function(_){var h=w,r=h.lib,s=r.Base,i=r.WordArray,f=r.BufferedBlockAlgorithm,e=h.enc;e.Utf8;var l=e.Base64,n=h.algo,t=n.EvpKDF,o=r.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(C,T){return this.create(this._ENC_XFORM_MODE,C,T)},createDecryptor:function(C,T){return this.create(this._DEC_XFORM_MODE,C,T)},init:function(C,T,k){this.cfg=this.cfg.extend(k),this._xformMode=C,this._key=T,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(T){return typeof T=="string"?S:A}return function(T){return{encrypt:function(k,M,P){return C(M).encrypt(T,k,M,P)},decrypt:function(k,M,P){return C(M).decrypt(T,k,M,P)}}}}()});r.StreamCipher=o.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var d=h.mode={},u=r.BlockCipherMode=s.extend({createEncryptor:function(C,T){return this.Encryptor.create(C,T)},createDecryptor:function(C,T){return this.Decryptor.create(C,T)},init:function(C,T){this._cipher=C,this._iv=T}}),c=d.CBC=function(){var C=u.extend();C.Encryptor=C.extend({processBlock:function(k,M){var P=this._cipher,N=P.blockSize;T.call(this,k,M,N),P.encryptBlock(k,M),this._prevBlock=k.slice(M,M+N)}}),C.Decryptor=C.extend({processBlock:function(k,M){var P=this._cipher,N=P.blockSize,F=k.slice(M,M+N);P.decryptBlock(k,M),T.call(this,k,M,N),this._prevBlock=F}});function T(k,M,P){var N,F=this._iv;F?(N=F,this._iv=_):N=this._prevBlock;for(var q=0;q<P;q++)k[M+q]^=N[q]}return C}(),g=h.pad={},p=g.Pkcs7={pad:function(C,T){for(var k=T*4,M=k-C.sigBytes%k,P=M<<24|M<<16|M<<8|M,N=[],F=0;F<M;F+=4)N.push(P);var q=i.create(N,M);C.concat(q)},unpad:function(C){var T=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=T}};r.BlockCipher=o.extend({cfg:o.cfg.extend({mode:c,padding:p}),reset:function(){var C;o.reset.call(this);var T=this.cfg,k=T.iv,M=T.mode;this._xformMode==this._ENC_XFORM_MODE?C=M.createEncryptor:(C=M.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,k&&k.words):(this._mode=C.call(M,this,k&&k.words),this._mode.__creator=C)},_doProcessBlock:function(C,T){this._mode.processBlock(C,T)},_doFinalize:function(){var C,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),T.unpad(C)),C},blockSize:128/32});var v=r.CipherParams=s.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),y=h.format={},b=y.OpenSSL={stringify:function(C){var T,k=C.ciphertext,M=C.salt;return M?T=i.create([1398893684,1701076831]).concat(M).concat(k):T=k,T.toString(l)},parse:function(C){var T,k=l.parse(C),M=k.words;return M[0]==1398893684&&M[1]==1701076831&&(T=i.create(M.slice(2,4)),M.splice(0,4),k.sigBytes-=16),v.create({ciphertext:k,salt:T})}},A=r.SerializableCipher=s.extend({cfg:s.extend({format:b}),encrypt:function(C,T,k,M){M=this.cfg.extend(M);var P=C.createEncryptor(k,M),N=P.finalize(T),F=P.cfg;return v.create({ciphertext:N,key:k,iv:F.iv,algorithm:C,mode:F.mode,padding:F.padding,blockSize:C.blockSize,formatter:M.format})},decrypt:function(C,T,k,M){M=this.cfg.extend(M),T=this._parse(T,M.format);var P=C.createDecryptor(k,M).finalize(T.ciphertext);return P},_parse:function(C,T){return typeof C=="string"?T.parse(C,this):C}}),x=h.kdf={},E=x.OpenSSL={execute:function(C,T,k,M){M||(M=i.random(64/8));var P=t.create({keySize:T+k}).compute(C,M),N=i.create(P.words.slice(T),k*4);return P.sigBytes=T*4,v.create({key:P,iv:N,salt:M})}},S=r.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:E}),encrypt:function(C,T,k,M){M=this.cfg.extend(M);var P=M.kdf.execute(k,C.keySize,C.ivSize);M.iv=P.iv;var N=A.encrypt.call(this,C,T,P.key,M);return N.mixIn(P),N},decrypt:function(C,T,k,M){M=this.cfg.extend(M),T=this._parse(T,M.format);var P=M.kdf.execute(k,C.keySize,C.ivSize,T.salt);M.iv=P.iv;var N=A.decrypt.call(this,C,T,P.key,M);return N}})}()})}(Fu)),Fu.exports}var ju={exports:{}},A1;function L4(){return A1||(A1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.mode.CFB=function(){var _=w.lib.BlockCipherMode.extend();_.Encryptor=_.extend({processBlock:function(r,s){var i=this._cipher,f=i.blockSize;h.call(this,r,s,f,i),this._prevBlock=r.slice(s,s+f)}}),_.Decryptor=_.extend({processBlock:function(r,s){var i=this._cipher,f=i.blockSize,e=r.slice(s,s+f);h.call(this,r,s,f,i),this._prevBlock=e}});function h(r,s,i,f){var e,l=this._iv;l?(e=l.slice(0),this._iv=void 0):e=this._prevBlock,f.encryptBlock(e,0);for(var n=0;n<i;n++)r[s+n]^=e[n]}return _}(),w.mode.CFB})}(ju)),ju.exports}var Hu={exports:{}},E1;function U4(){return E1||(E1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.mode.CTR=function(){var _=w.lib.BlockCipherMode.extend(),h=_.Encryptor=_.extend({processBlock:function(r,s){var i=this._cipher,f=i.blockSize,e=this._iv,l=this._counter;e&&(l=this._counter=e.slice(0),this._iv=void 0);var n=l.slice(0);i.encryptBlock(n,0),l[f-1]=l[f-1]+1|0;for(var t=0;t<f;t++)r[s+t]^=n[t]}});return _.Decryptor=h,_}(),w.mode.CTR})}(Hu)),Hu.exports}var zu={exports:{}},S1;function F4(){return S1||(S1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */return w.mode.CTRGladman=function(){var _=w.lib.BlockCipherMode.extend();function h(i){if((i>>24&255)===255){var f=i>>16&255,e=i>>8&255,l=i&255;f===255?(f=0,e===255?(e=0,l===255?l=0:++l):++e):++f,i=0,i+=f<<16,i+=e<<8,i+=l}else i+=1<<24;return i}function r(i){return(i[0]=h(i[0]))===0&&(i[1]=h(i[1])),i}var s=_.Encryptor=_.extend({processBlock:function(i,f){var e=this._cipher,l=e.blockSize,n=this._iv,t=this._counter;n&&(t=this._counter=n.slice(0),this._iv=void 0),r(t);var o=t.slice(0);e.encryptBlock(o,0);for(var d=0;d<l;d++)i[f+d]^=o[d]}});return _.Decryptor=s,_}(),w.mode.CTRGladman})}(zu)),zu.exports}var qu={exports:{}},C1;function j4(){return C1||(C1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.mode.OFB=function(){var _=w.lib.BlockCipherMode.extend(),h=_.Encryptor=_.extend({processBlock:function(r,s){var i=this._cipher,f=i.blockSize,e=this._iv,l=this._keystream;e&&(l=this._keystream=e.slice(0),this._iv=void 0),i.encryptBlock(l,0);for(var n=0;n<f;n++)r[s+n]^=l[n]}});return _.Decryptor=h,_}(),w.mode.OFB})}(qu)),qu.exports}var $u={exports:{}},k1;function H4(){return k1||(k1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.mode.ECB=function(){var _=w.lib.BlockCipherMode.extend();return _.Encryptor=_.extend({processBlock:function(h,r){this._cipher.encryptBlock(h,r)}}),_.Decryptor=_.extend({processBlock:function(h,r){this._cipher.decryptBlock(h,r)}}),_}(),w.mode.ECB})}($u)),$u.exports}var Wu={exports:{}},O1;function z4(){return O1||(O1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.pad.AnsiX923={pad:function(_,h){var r=_.sigBytes,s=h*4,i=s-r%s,f=r+i-1;_.clamp(),_.words[f>>>2]|=i<<24-f%4*8,_.sigBytes+=i},unpad:function(_){var h=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=h}},w.pad.Ansix923})}(Wu)),Wu.exports}var Vu={exports:{}},P1;function q4(){return P1||(P1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.pad.Iso10126={pad:function(_,h){var r=h*4,s=r-_.sigBytes%r;_.concat(w.lib.WordArray.random(s-1)).concat(w.lib.WordArray.create([s<<24],1))},unpad:function(_){var h=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=h}},w.pad.Iso10126})}(Vu)),Vu.exports}var Ku={exports:{}},T1;function $4(){return T1||(T1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.pad.Iso97971={pad:function(_,h){_.concat(w.lib.WordArray.create([2147483648],1)),w.pad.ZeroPadding.pad(_,h)},unpad:function(_){w.pad.ZeroPadding.unpad(_),_.sigBytes--}},w.pad.Iso97971})}(Ku)),Ku.exports}var Gu={exports:{}},M1;function W4(){return M1||(M1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.pad.ZeroPadding={pad:function(_,h){var r=h*4;_.clamp(),_.sigBytes+=r-(_.sigBytes%r||r)},unpad:function(_){for(var h=_.words,r=_.sigBytes-1,r=_.sigBytes-1;r>=0;r--)if(h[r>>>2]>>>24-r%4*8&255){_.sigBytes=r+1;break}}},w.pad.ZeroPadding})}(Gu)),Gu.exports}var Ju={exports:{}},I1;function V4(){return I1||(I1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return w.pad.NoPadding={pad:function(){},unpad:function(){}},w.pad.NoPadding})}(Ju)),Ju.exports}var Qu={exports:{}},D1;function K4(){return D1||(D1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Mt())})(rt,function(w){return function(_){var h=w,r=h.lib,s=r.CipherParams,i=h.enc,f=i.Hex,e=h.format;e.Hex={stringify:function(l){return l.ciphertext.toString(f)},parse:function(l){var n=f.parse(l);return s.create({ciphertext:n})}}}(),w.format.Hex})}(Qu)),Qu.exports}var Yu={exports:{}},B1;function G4(){return B1||(B1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Pi(),Ti(),Vn(),Mt())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.BlockCipher,s=_.algo,i=[],f=[],e=[],l=[],n=[],t=[],o=[],d=[],u=[],c=[];(function(){for(var v=[],y=0;y<256;y++)y<128?v[y]=y<<1:v[y]=y<<1^283;for(var b=0,A=0,y=0;y<256;y++){var x=A^A<<1^A<<2^A<<3^A<<4;x=x>>>8^x&255^99,i[b]=x,f[x]=b;var E=v[b],S=v[E],C=v[S],T=v[x]*257^x*16843008;e[b]=T<<24|T>>>8,l[b]=T<<16|T>>>16,n[b]=T<<8|T>>>24,t[b]=T;var T=C*16843009^S*65537^E*257^b*16843008;o[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,u[x]=T<<8|T>>>24,c[x]=T,b?(b=E^v[v[v[C^E]]],A^=v[v[A]]):b=A=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=r.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,b=y.words,A=y.sigBytes/4,x=this._nRounds=A+6,E=(x+1)*4,S=this._keySchedule=[],C=0;C<E;C++)C<A?S[C]=b[C]:(v=S[C-1],C%A?A>6&&C%A==4&&(v=i[v>>>24]<<24|i[v>>>16&255]<<16|i[v>>>8&255]<<8|i[v&255]):(v=v<<8|v>>>24,v=i[v>>>24]<<24|i[v>>>16&255]<<16|i[v>>>8&255]<<8|i[v&255],v^=g[C/A|0]<<24),S[C]=S[C-A]^v);for(var T=this._invKeySchedule=[],k=0;k<E;k++){var C=E-k;if(k%4)var v=S[C];else var v=S[C-4];k<4||C<=4?T[k]=v:T[k]=o[i[v>>>24]]^d[i[v>>>16&255]]^u[i[v>>>8&255]]^c[i[v&255]]}}},encryptBlock:function(v,y){this._doCryptBlock(v,y,this._keySchedule,e,l,n,t,i)},decryptBlock:function(v,y){var b=v[y+1];v[y+1]=v[y+3],v[y+3]=b,this._doCryptBlock(v,y,this._invKeySchedule,o,d,u,c,f);var b=v[y+1];v[y+1]=v[y+3],v[y+3]=b},_doCryptBlock:function(v,y,b,A,x,E,S,C){for(var T=this._nRounds,k=v[y]^b[0],M=v[y+1]^b[1],P=v[y+2]^b[2],N=v[y+3]^b[3],F=4,q=1;q<T;q++){var z=A[k>>>24]^x[M>>>16&255]^E[P>>>8&255]^S[N&255]^b[F++],O=A[M>>>24]^x[P>>>16&255]^E[N>>>8&255]^S[k&255]^b[F++],R=A[P>>>24]^x[N>>>16&255]^E[k>>>8&255]^S[M&255]^b[F++],I=A[N>>>24]^x[k>>>16&255]^E[M>>>8&255]^S[P&255]^b[F++];k=z,M=O,P=R,N=I}var z=(C[k>>>24]<<24|C[M>>>16&255]<<16|C[P>>>8&255]<<8|C[N&255])^b[F++],O=(C[M>>>24]<<24|C[P>>>16&255]<<16|C[N>>>8&255]<<8|C[k&255])^b[F++],R=(C[P>>>24]<<24|C[N>>>16&255]<<16|C[k>>>8&255]<<8|C[M&255])^b[F++],I=(C[N>>>24]<<24|C[k>>>16&255]<<16|C[M>>>8&255]<<8|C[P&255])^b[F++];v[y]=z,v[y+1]=O,v[y+2]=R,v[y+3]=I},keySize:256/32});_.AES=r._createHelper(p)}(),w.AES})}(Yu)),Yu.exports}var Xu={exports:{}},R1;function J4(){return R1||(R1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Pi(),Ti(),Vn(),Mt())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.WordArray,s=h.BlockCipher,i=_.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],e=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],n=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],t=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],o=i.DES=s.extend({_doReset:function(){for(var g=this._key,p=g.words,v=[],y=0;y<56;y++){var b=f[y]-1;v[y]=p[b>>>5]>>>31-b%32&1}for(var A=this._subKeys=[],x=0;x<16;x++){for(var E=A[x]=[],S=l[x],y=0;y<24;y++)E[y/6|0]|=v[(e[y]-1+S)%28]<<31-y%6,E[4+(y/6|0)]|=v[28+(e[y+24]-1+S)%28]<<31-y%6;E[0]=E[0]<<1|E[0]>>>31;for(var y=1;y<7;y++)E[y]=E[y]>>>(y-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var C=this._invSubKeys=[],y=0;y<16;y++)C[y]=A[15-y]},encryptBlock:function(g,p){this._doCryptBlock(g,p,this._subKeys)},decryptBlock:function(g,p){this._doCryptBlock(g,p,this._invSubKeys)},_doCryptBlock:function(g,p,v){this._lBlock=g[p],this._rBlock=g[p+1],d.call(this,4,252645135),d.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),d.call(this,1,1431655765);for(var y=0;y<16;y++){for(var b=v[y],A=this._lBlock,x=this._rBlock,E=0,S=0;S<8;S++)E|=n[S][((x^b[S])&t[S])>>>0];this._lBlock=x,this._rBlock=A^E}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,d.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),g[p]=this._lBlock,g[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function d(g,p){var v=(this._lBlock>>>g^this._rBlock)&p;this._rBlock^=v,this._lBlock^=v<<g}function u(g,p){var v=(this._rBlock>>>g^this._lBlock)&p;this._lBlock^=v,this._rBlock^=v<<g}_.DES=s._createHelper(o);var c=i.TripleDES=s.extend({_doReset:function(){var g=this._key,p=g.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=p.slice(0,2),y=p.length<4?p.slice(0,2):p.slice(2,4),b=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=o.createEncryptor(r.create(v)),this._des2=o.createEncryptor(r.create(y)),this._des3=o.createEncryptor(r.create(b))},encryptBlock:function(g,p){this._des1.encryptBlock(g,p),this._des2.decryptBlock(g,p),this._des3.encryptBlock(g,p)},decryptBlock:function(g,p){this._des3.decryptBlock(g,p),this._des2.encryptBlock(g,p),this._des1.decryptBlock(g,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});_.TripleDES=s._createHelper(c)}(),w.TripleDES})}(Xu)),Xu.exports}var Zu={exports:{}},N1;function Q4(){return N1||(N1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Pi(),Ti(),Vn(),Mt())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.StreamCipher,s=_.algo,i=s.RC4=r.extend({_doReset:function(){for(var l=this._key,n=l.words,t=l.sigBytes,o=this._S=[],d=0;d<256;d++)o[d]=d;for(var d=0,u=0;d<256;d++){var c=d%t,g=n[c>>>2]>>>24-c%4*8&255;u=(u+o[d]+g)%256;var p=o[d];o[d]=o[u],o[u]=p}this._i=this._j=0},_doProcessBlock:function(l,n){l[n]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var l=this._S,n=this._i,t=this._j,o=0,d=0;d<4;d++){n=(n+1)%256,t=(t+l[n])%256;var u=l[n];l[n]=l[t],l[t]=u,o|=l[(l[n]+l[t])%256]<<24-d*8}return this._i=n,this._j=t,o}_.RC4=r._createHelper(i);var e=s.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)f.call(this)}});_.RC4Drop=r._createHelper(e)}(),w.RC4})}(Zu)),Zu.exports}var el={exports:{}},L1;function Y4(){return L1||(L1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Pi(),Ti(),Vn(),Mt())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.StreamCipher,s=_.algo,i=[],f=[],e=[],l=s.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,o=this.cfg.iv,d=0;d<4;d++)t[d]=(t[d]<<8|t[d]>>>24)&16711935|(t[d]<<24|t[d]>>>8)&4278255360;var u=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],c=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var d=0;d<4;d++)n.call(this);for(var d=0;d<8;d++)c[d]^=u[d+4&7];if(o){var g=o.words,p=g[0],v=g[1],y=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,b=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=y>>>16|b&4294901760,x=b<<16|y&65535;c[0]^=y,c[1]^=A,c[2]^=b,c[3]^=x,c[4]^=y,c[5]^=A,c[6]^=b,c[7]^=x;for(var d=0;d<4;d++)n.call(this)}},_doProcessBlock:function(t,o){var d=this._X;n.call(this),i[0]=d[0]^d[5]>>>16^d[3]<<16,i[1]=d[2]^d[7]>>>16^d[5]<<16,i[2]=d[4]^d[1]>>>16^d[7]<<16,i[3]=d[6]^d[3]>>>16^d[1]<<16;for(var u=0;u<4;u++)i[u]=(i[u]<<8|i[u]>>>24)&16711935|(i[u]<<24|i[u]>>>8)&4278255360,t[o+u]^=i[u]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,o=this._C,d=0;d<8;d++)f[d]=o[d];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<f[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<f[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<f[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<f[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<f[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<f[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<f[6]>>>0?1:0)|0,this._b=o[7]>>>0<f[7]>>>0?1:0;for(var d=0;d<8;d++){var u=t[d]+o[d],c=u&65535,g=u>>>16,p=((c*c>>>17)+c*g>>>15)+g*g,v=((u&4294901760)*u|0)+((u&65535)*u|0);e[d]=p^v}t[0]=e[0]+(e[7]<<16|e[7]>>>16)+(e[6]<<16|e[6]>>>16)|0,t[1]=e[1]+(e[0]<<8|e[0]>>>24)+e[7]|0,t[2]=e[2]+(e[1]<<16|e[1]>>>16)+(e[0]<<16|e[0]>>>16)|0,t[3]=e[3]+(e[2]<<8|e[2]>>>24)+e[1]|0,t[4]=e[4]+(e[3]<<16|e[3]>>>16)+(e[2]<<16|e[2]>>>16)|0,t[5]=e[5]+(e[4]<<8|e[4]>>>24)+e[3]|0,t[6]=e[6]+(e[5]<<16|e[5]>>>16)+(e[4]<<16|e[4]>>>16)|0,t[7]=e[7]+(e[6]<<8|e[6]>>>24)+e[5]|0}_.Rabbit=r._createHelper(l)}(),w.Rabbit})}(el)),el.exports}var tl={exports:{}},U1;function X4(){return U1||(U1=1,function(a,m){(function(w,_,h){a.exports=_(st(),Pi(),Ti(),Vn(),Mt())})(rt,function(w){return function(){var _=w,h=_.lib,r=h.StreamCipher,s=_.algo,i=[],f=[],e=[],l=s.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,o=this.cfg.iv,d=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],u=this._C=[t[2]<<16|t[2]>>>16,t[0]&4294901760|t[1]&65535,t[3]<<16|t[3]>>>16,t[1]&4294901760|t[2]&65535,t[0]<<16|t[0]>>>16,t[2]&4294901760|t[3]&65535,t[1]<<16|t[1]>>>16,t[3]&4294901760|t[0]&65535];this._b=0;for(var c=0;c<4;c++)n.call(this);for(var c=0;c<8;c++)u[c]^=d[c+4&7];if(o){var g=o.words,p=g[0],v=g[1],y=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,b=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=y>>>16|b&4294901760,x=b<<16|y&65535;u[0]^=y,u[1]^=A,u[2]^=b,u[3]^=x,u[4]^=y,u[5]^=A,u[6]^=b,u[7]^=x;for(var c=0;c<4;c++)n.call(this)}},_doProcessBlock:function(t,o){var d=this._X;n.call(this),i[0]=d[0]^d[5]>>>16^d[3]<<16,i[1]=d[2]^d[7]>>>16^d[5]<<16,i[2]=d[4]^d[1]>>>16^d[7]<<16,i[3]=d[6]^d[3]>>>16^d[1]<<16;for(var u=0;u<4;u++)i[u]=(i[u]<<8|i[u]>>>24)&16711935|(i[u]<<24|i[u]>>>8)&4278255360,t[o+u]^=i[u]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,o=this._C,d=0;d<8;d++)f[d]=o[d];o[0]=o[0]+1295307597+this._b|0,o[1]=o[1]+3545052371+(o[0]>>>0<f[0]>>>0?1:0)|0,o[2]=o[2]+886263092+(o[1]>>>0<f[1]>>>0?1:0)|0,o[3]=o[3]+1295307597+(o[2]>>>0<f[2]>>>0?1:0)|0,o[4]=o[4]+3545052371+(o[3]>>>0<f[3]>>>0?1:0)|0,o[5]=o[5]+886263092+(o[4]>>>0<f[4]>>>0?1:0)|0,o[6]=o[6]+1295307597+(o[5]>>>0<f[5]>>>0?1:0)|0,o[7]=o[7]+3545052371+(o[6]>>>0<f[6]>>>0?1:0)|0,this._b=o[7]>>>0<f[7]>>>0?1:0;for(var d=0;d<8;d++){var u=t[d]+o[d],c=u&65535,g=u>>>16,p=((c*c>>>17)+c*g>>>15)+g*g,v=((u&4294901760)*u|0)+((u&65535)*u|0);e[d]=p^v}t[0]=e[0]+(e[7]<<16|e[7]>>>16)+(e[6]<<16|e[6]>>>16)|0,t[1]=e[1]+(e[0]<<8|e[0]>>>24)+e[7]|0,t[2]=e[2]+(e[1]<<16|e[1]>>>16)+(e[0]<<16|e[0]>>>16)|0,t[3]=e[3]+(e[2]<<8|e[2]>>>24)+e[1]|0,t[4]=e[4]+(e[3]<<16|e[3]>>>16)+(e[2]<<16|e[2]>>>16)|0,t[5]=e[5]+(e[4]<<8|e[4]>>>24)+e[3]|0,t[6]=e[6]+(e[5]<<16|e[5]>>>16)+(e[4]<<16|e[4]>>>16)|0,t[7]=e[7]+(e[6]<<8|e[6]>>>24)+e[5]|0}_.RabbitLegacy=r._createHelper(l)}(),w.RabbitLegacy})}(tl)),tl.exports}(function(a,m){(function(w,_,h){a.exports=_(st(),Bs(),P4(),T4(),Pi(),M4(),Ti(),Lc(),s6(),I4(),u6(),D4(),B4(),R4(),Uc(),N4(),Vn(),Mt(),L4(),U4(),F4(),j4(),H4(),z4(),q4(),$4(),W4(),V4(),K4(),G4(),J4(),Q4(),Y4(),X4())})(rt,function(w){return w})})(i6);var Mo=i6.exports;const rl=zn(Mo),pa={_origin:"https://api.emailjs.com"},Z4=(a,m="https://api.emailjs.com")=>{pa._userID=a,pa._origin=m},l6=(a,m,w)=>{if(!a)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!m)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!w)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates";return!0};class F1{constructor(m){this.status=m?m.status:0,this.text=m?m.responseText:"Network Error"}}const f6=(a,m,w={})=>new Promise((_,h)=>{const r=new XMLHttpRequest;r.addEventListener("load",({target:s})=>{const i=new F1(s);i.status===200||i.text==="OK"?_(i):h(i)}),r.addEventListener("error",({target:s})=>{h(new F1(s))}),r.open("POST",pa._origin+a,!0),Object.keys(w).forEach(s=>{r.setRequestHeader(s,w[s])}),r.send(m)}),e5=(a,m,w,_)=>{const h=_||pa._userID;return l6(h,a,m),f6("/api/v1.0/email/send",JSON.stringify({lib_version:"3.11.0",user_id:h,service_id:a,template_id:m,template_params:w}),{"Content-type":"application/json"})},t5=a=>{let m;if(typeof a=="string"?m=document.querySelector(a):m=a,!m||m.nodeName!=="FORM")throw"The 3rd parameter is expected to be the HTML form element or the style selector of form";return m},r5=(a,m,w,_)=>{const h=_||pa._userID,r=t5(w);l6(h,a,m);const s=new FormData(r);return s.append("lib_version","3.11.0"),s.append("service_id",a),s.append("template_id",m),s.append("user_id",h),f6("/api/v1.0/email/send-form",s)},n5={init:Z4,send:e5,sendForm:r5};/*! + * vue-qrcode v1.0.2 + * https://fengyuanchen.github.io/vue-qrcode + * + * Copyright 2018-present Chen Fengyuan + * Released under the MIT license + * + * Date: 2020-01-18T06:04:33.222Z + */function po(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function i5(a,m){return m={exports:{}},a(m,m.exports),m.exports}var nl=i5(function(a,m){(function(w){a.exports=w()})(function(){return function(){function w(_,h,r){function s(e,l){if(!h[e]){if(!_[e]){var n=typeof po=="function"&&po;if(!l&&n)return n(e,!0);if(i)return i(e,!0);var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var o=h[e]={exports:{}};_[e][0].call(o.exports,function(d){var u=_[e][1][d];return s(u||d)},o,o.exports,w,_,h,r)}return h[e].exports}for(var i=typeof po=="function"&&po,f=0;f<r.length;f++)s(r[f]);return s}return w}()({1:[function(w,_,h){_.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}},{}],2:[function(w,_,h){var r=w("./utils").getSymbolSize;h.getRowColCoords=function(i){if(i===1)return[];for(var f=Math.floor(i/7)+2,e=r(i),l=e===145?26:Math.ceil((e-13)/(2*f-2))*2,n=[e-7],t=1;t<f-1;t++)n[t]=n[t-1]-l;return n.push(6),n.reverse()},h.getPositions=function(i){for(var f=[],e=h.getRowColCoords(i),l=e.length,n=0;n<l;n++)for(var t=0;t<l;t++)n===0&&t===0||n===0&&t===l-1||n===l-1&&t===0||f.push([e[n],e[t]]);return f}},{"./utils":21}],3:[function(w,_,h){var r=w("./mode"),s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(f){this.mode=r.ALPHANUMERIC,this.data=f}i.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var l;for(l=0;l+2<=this.data.length;l+=2){var n=s.indexOf(this.data[l])*45;n+=s.indexOf(this.data[l+1]),e.put(n,11)}this.data.length%2&&e.put(s.indexOf(this.data[l]),6)},_.exports=i},{"./mode":14}],4:[function(w,_,h){function r(){this.buffer=[],this.length=0}r.prototype={get:function(s){var i=Math.floor(s/8);return(this.buffer[i]>>>7-s%8&1)===1},put:function(s,i){for(var f=0;f<i;f++)this.putBit((s>>>i-f-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(s){var i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),s&&(this.buffer[i]|=128>>>this.length%8),this.length++}},_.exports=r},{}],5:[function(w,_,h){var r=w("../utils/buffer");function s(i){if(!i||i<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=i,this.data=r.alloc(i*i),this.reservedBit=r.alloc(i*i)}s.prototype.set=function(i,f,e,l){var n=i*this.size+f;this.data[n]=e,l&&(this.reservedBit[n]=!0)},s.prototype.get=function(i,f){return this.data[i*this.size+f]},s.prototype.xor=function(i,f,e){this.data[i*this.size+f]^=e},s.prototype.isReserved=function(i,f){return this.reservedBit[i*this.size+f]},_.exports=s},{"../utils/buffer":28}],6:[function(w,_,h){var r=w("../utils/buffer"),s=w("./mode");function i(f){this.mode=s.BYTE,this.data=r.from(f)}i.getBitsLength=function(e){return e*8},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(f){for(var e=0,l=this.data.length;e<l;e++)f.put(this.data[e],8)},_.exports=i},{"../utils/buffer":28,"./mode":14}],7:[function(w,_,h){var r=w("./error-correction-level"),s=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];h.getBlocksCount=function(e,l){switch(l){case r.L:return s[(e-1)*4+0];case r.M:return s[(e-1)*4+1];case r.Q:return s[(e-1)*4+2];case r.H:return s[(e-1)*4+3];default:return}},h.getTotalCodewordsCount=function(e,l){switch(l){case r.L:return i[(e-1)*4+0];case r.M:return i[(e-1)*4+1];case r.Q:return i[(e-1)*4+2];case r.H:return i[(e-1)*4+3];default:return}}},{"./error-correction-level":8}],8:[function(w,_,h){h.L={bit:1},h.M={bit:0},h.Q={bit:3},h.H={bit:2};function r(s){if(typeof s!="string")throw new Error("Param is not a string");var i=s.toLowerCase();switch(i){case"l":case"low":return h.L;case"m":case"medium":return h.M;case"q":case"quartile":return h.Q;case"h":case"high":return h.H;default:throw new Error("Unknown EC Level: "+s)}}h.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},h.from=function(i,f){if(h.isValid(i))return i;try{return r(i)}catch{return f}}},{}],9:[function(w,_,h){var r=w("./utils").getSymbolSize,s=7;h.getPositions=function(f){var e=r(f);return[[0,0],[e-s,0],[0,e-s]]}},{"./utils":21}],10:[function(w,_,h){var r=w("./utils"),s=1335,i=21522,f=r.getBCHDigit(s);h.getEncodedBits=function(l,n){for(var t=l.bit<<3|n,o=t<<10;r.getBCHDigit(o)-f>=0;)o^=s<<r.getBCHDigit(o)-f;return(t<<10|o)^i}},{"./utils":21}],11:[function(w,_,h){var r=w("../utils/buffer"),s=r.alloc(512),i=r.alloc(256);(function(){for(var e=1,l=0;l<255;l++)s[l]=e,i[e]=l,e<<=1,e&256&&(e^=285);for(l=255;l<512;l++)s[l]=s[l-255]})(),h.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},h.exp=function(e){return s[e]},h.mul=function(e,l){return e===0||l===0?0:s[i[e]+i[l]]}},{"../utils/buffer":28}],12:[function(w,_,h){var r=w("./mode"),s=w("./utils");function i(f){this.mode=r.KANJI,this.data=f}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(f){var e;for(e=0;e<this.data.length;e++){var l=s.toSJIS(this.data[e]);if(l>=33088&&l<=40956)l-=33088;else if(l>=57408&&l<=60351)l-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);l=(l>>>8&255)*192+(l&255),f.put(l,13)}},_.exports=i},{"./mode":14,"./utils":21}],13:[function(w,_,h){h.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r={N1:3,N2:3,N3:40,N4:10};h.isValid=function(f){return f!=null&&f!==""&&!isNaN(f)&&f>=0&&f<=7},h.from=function(f){return h.isValid(f)?parseInt(f,10):void 0},h.getPenaltyN1=function(f){for(var e=f.size,l=0,n=0,t=0,o=null,d=null,u=0;u<e;u++){n=t=0,o=d=null;for(var c=0;c<e;c++){var g=f.get(u,c);g===o?n++:(n>=5&&(l+=r.N1+(n-5)),o=g,n=1),g=f.get(c,u),g===d?t++:(t>=5&&(l+=r.N1+(t-5)),d=g,t=1)}n>=5&&(l+=r.N1+(n-5)),t>=5&&(l+=r.N1+(t-5))}return l},h.getPenaltyN2=function(f){for(var e=f.size,l=0,n=0;n<e-1;n++)for(var t=0;t<e-1;t++){var o=f.get(n,t)+f.get(n,t+1)+f.get(n+1,t)+f.get(n+1,t+1);(o===4||o===0)&&l++}return l*r.N2},h.getPenaltyN3=function(f){for(var e=f.size,l=0,n=0,t=0,o=0;o<e;o++){n=t=0;for(var d=0;d<e;d++)n=n<<1&2047|f.get(o,d),d>=10&&(n===1488||n===93)&&l++,t=t<<1&2047|f.get(d,o),d>=10&&(t===1488||t===93)&&l++}return l*r.N3},h.getPenaltyN4=function(f){for(var e=0,l=f.data.length,n=0;n<l;n++)e+=f.data[n];var t=Math.abs(Math.ceil(e*100/l/5)-10);return t*r.N4};function s(i,f,e){switch(i){case h.Patterns.PATTERN000:return(f+e)%2===0;case h.Patterns.PATTERN001:return f%2===0;case h.Patterns.PATTERN010:return e%3===0;case h.Patterns.PATTERN011:return(f+e)%3===0;case h.Patterns.PATTERN100:return(Math.floor(f/2)+Math.floor(e/3))%2===0;case h.Patterns.PATTERN101:return f*e%2+f*e%3===0;case h.Patterns.PATTERN110:return(f*e%2+f*e%3)%2===0;case h.Patterns.PATTERN111:return(f*e%3+(f+e)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}h.applyMask=function(f,e){for(var l=e.size,n=0;n<l;n++)for(var t=0;t<l;t++)e.isReserved(t,n)||e.xor(t,n,s(f,t,n))},h.getBestMask=function(f,e){for(var l=Object.keys(h.Patterns).length,n=0,t=1/0,o=0;o<l;o++){e(o),h.applyMask(o,f);var d=h.getPenaltyN1(f)+h.getPenaltyN2(f)+h.getPenaltyN3(f)+h.getPenaltyN4(f);h.applyMask(o,f),d<t&&(t=d,n=o)}return n}},{}],14:[function(w,_,h){var r=w("./version-check"),s=w("./regex");h.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},h.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},h.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},h.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},h.MIXED={bit:-1},h.getCharCountIndicator=function(e,l){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?e.ccBits[0]:l<27?e.ccBits[1]:e.ccBits[2]},h.getBestModeForData=function(e){return s.testNumeric(e)?h.NUMERIC:s.testAlphanumeric(e)?h.ALPHANUMERIC:s.testKanji(e)?h.KANJI:h.BYTE},h.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},h.isValid=function(e){return e&&e.bit&&e.ccBits};function i(f){if(typeof f!="string")throw new Error("Param is not a string");var e=f.toLowerCase();switch(e){case"numeric":return h.NUMERIC;case"alphanumeric":return h.ALPHANUMERIC;case"kanji":return h.KANJI;case"byte":return h.BYTE;default:throw new Error("Unknown mode: "+f)}}h.from=function(e,l){if(h.isValid(e))return e;try{return i(e)}catch{return l}}},{"./regex":19,"./version-check":22}],15:[function(w,_,h){var r=w("./mode");function s(i){this.mode=r.NUMERIC,this.data=i.toString()}s.getBitsLength=function(f){return 10*Math.floor(f/3)+(f%3?f%3*3+1:0)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(f){var e,l,n;for(e=0;e+3<=this.data.length;e+=3)l=this.data.substr(e,3),n=parseInt(l,10),f.put(n,10);var t=this.data.length-e;t>0&&(l=this.data.substr(e),n=parseInt(l,10),f.put(n,t*3+1))},_.exports=s},{"./mode":14}],16:[function(w,_,h){var r=w("../utils/buffer"),s=w("./galois-field");h.mul=function(f,e){for(var l=r.alloc(f.length+e.length-1),n=0;n<f.length;n++)for(var t=0;t<e.length;t++)l[n+t]^=s.mul(f[n],e[t]);return l},h.mod=function(f,e){for(var l=r.from(f);l.length-e.length>=0;){for(var n=l[0],t=0;t<e.length;t++)l[t]^=s.mul(e[t],n);for(var o=0;o<l.length&&l[o]===0;)o++;l=l.slice(o)}return l},h.generateECPolynomial=function(f){for(var e=r.from([1]),l=0;l<f;l++)e=h.mul(e,[1,s.exp(l)]);return e}},{"../utils/buffer":28,"./galois-field":11}],17:[function(w,_,h){var r=w("../utils/buffer"),s=w("./utils"),i=w("./error-correction-level"),f=w("./bit-buffer"),e=w("./bit-matrix"),l=w("./alignment-pattern"),n=w("./finder-pattern"),t=w("./mask-pattern"),o=w("./error-correction-code"),d=w("./reed-solomon-encoder"),u=w("./version"),c=w("./format-info"),g=w("./mode"),p=w("./segments"),v=w("isarray");function y(M,P){for(var N=M.size,F=n.getPositions(P),q=0;q<F.length;q++)for(var z=F[q][0],O=F[q][1],R=-1;R<=7;R++)if(!(z+R<=-1||N<=z+R))for(var I=-1;I<=7;I++)O+I<=-1||N<=O+I||(R>=0&&R<=6&&(I===0||I===6)||I>=0&&I<=6&&(R===0||R===6)||R>=2&&R<=4&&I>=2&&I<=4?M.set(z+R,O+I,!0,!0):M.set(z+R,O+I,!1,!0))}function b(M){for(var P=M.size,N=8;N<P-8;N++){var F=N%2===0;M.set(N,6,F,!0),M.set(6,N,F,!0)}}function A(M,P){for(var N=l.getPositions(P),F=0;F<N.length;F++)for(var q=N[F][0],z=N[F][1],O=-2;O<=2;O++)for(var R=-2;R<=2;R++)O===-2||O===2||R===-2||R===2||O===0&&R===0?M.set(q+O,z+R,!0,!0):M.set(q+O,z+R,!1,!0)}function x(M,P){for(var N=M.size,F=u.getEncodedBits(P),q,z,O,R=0;R<18;R++)q=Math.floor(R/3),z=R%3+N-8-3,O=(F>>R&1)===1,M.set(q,z,O,!0),M.set(z,q,O,!0)}function E(M,P,N){var F=M.size,q=c.getEncodedBits(P,N),z,O;for(z=0;z<15;z++)O=(q>>z&1)===1,z<6?M.set(z,8,O,!0):z<8?M.set(z+1,8,O,!0):M.set(F-15+z,8,O,!0),z<8?M.set(8,F-z-1,O,!0):z<9?M.set(8,15-z-1+1,O,!0):M.set(8,15-z-1,O,!0);M.set(F-8,8,1,!0)}function S(M,P){for(var N=M.size,F=-1,q=N-1,z=7,O=0,R=N-1;R>0;R-=2)for(R===6&&R--;;){for(var I=0;I<2;I++)if(!M.isReserved(q,R-I)){var D=!1;O<P.length&&(D=(P[O]>>>z&1)===1),M.set(q,R-I,D),z--,z===-1&&(O++,z=7)}if(q+=F,q<0||N<=q){q-=F,F=-F;break}}}function C(M,P,N){var F=new f;N.forEach(function(D){F.put(D.mode.bit,4),F.put(D.getLength(),g.getCharCountIndicator(D.mode,M)),D.write(F)});var q=s.getSymbolTotalCodewords(M),z=o.getTotalCodewordsCount(M,P),O=(q-z)*8;for(F.getLengthInBits()+4<=O&&F.put(0,4);F.getLengthInBits()%8!==0;)F.putBit(0);for(var R=(O-F.getLengthInBits())/8,I=0;I<R;I++)F.put(I%2?17:236,8);return T(F,M,P)}function T(M,P,N){for(var F=s.getSymbolTotalCodewords(P),q=o.getTotalCodewordsCount(P,N),z=F-q,O=o.getBlocksCount(P,N),R=F%O,I=O-R,D=Math.floor(F/O),B=Math.floor(z/O),j=B+1,Q=D-B,X=new d(Q),Z=0,L=new Array(O),W=new Array(O),G=0,J=r.from(M.buffer),H=0;H<O;H++){var U=H<I?B:j;L[H]=J.slice(Z,Z+U),W[H]=X.encode(L[H]),Z+=U,G=Math.max(G,U)}var K=r.alloc(F),te=0,ee,ie;for(ee=0;ee<G;ee++)for(ie=0;ie<O;ie++)ee<L[ie].length&&(K[te++]=L[ie][ee]);for(ee=0;ee<Q;ee++)for(ie=0;ie<O;ie++)K[te++]=W[ie][ee];return K}function k(M,P,N,F){var q;if(v(M))q=p.fromArray(M);else if(typeof M=="string"){var z=P;if(!z){var O=p.rawSplit(M);z=u.getBestVersionForData(O,N)}q=p.fromString(M,z||40)}else throw new Error("Invalid data");var R=u.getBestVersionForData(q,N);if(!R)throw new Error("The amount of data is too big to be stored in a QR Code");if(!P)P=R;else if(P<R)throw new Error(` +The chosen QR Code version cannot contain this amount of data. +Minimum version required to store current data is: `+R+`. +`);var I=C(P,N,q),D=s.getSymbolSize(P),B=new e(D);return y(B,P),b(B),A(B,P),E(B,N,0),P>=7&&x(B,P),S(B,I),isNaN(F)&&(F=t.getBestMask(B,E.bind(null,B,N))),t.applyMask(F,B),E(B,N,F),{modules:B,version:P,errorCorrectionLevel:N,maskPattern:F,segments:q}}h.create=function(P,N){if(typeof P>"u"||P==="")throw new Error("No input text");var F=i.M,q,z;return typeof N<"u"&&(F=i.from(N.errorCorrectionLevel,i.M),q=u.from(N.version),z=t.from(N.maskPattern),N.toSJISFunc&&s.setToSJISFunction(N.toSJISFunc)),k(P,q,F,z)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(w,_,h){var r=w("../utils/buffer"),s=w("./polynomial"),i=w("buffer").Buffer;function f(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}f.prototype.initialize=function(l){this.degree=l,this.genPoly=s.generateECPolynomial(this.degree)},f.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");var n=r.alloc(this.degree),t=i.concat([l,n],l.length+this.degree),o=s.mod(t,this.genPoly),d=this.degree-o.length;if(d>0){var u=r.alloc(this.degree);return o.copy(u,d),u}return o},_.exports=f},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(w,_,h){var r="[0-9]+",s="[A-Z $%*+\\-./:]+",i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");var f="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r +]))+`;h.KANJI=new RegExp(i,"g"),h.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),h.BYTE=new RegExp(f,"g"),h.NUMERIC=new RegExp(r,"g"),h.ALPHANUMERIC=new RegExp(s,"g");var e=new RegExp("^"+i+"$"),l=new RegExp("^"+r+"$"),n=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");h.testKanji=function(o){return e.test(o)},h.testNumeric=function(o){return l.test(o)},h.testAlphanumeric=function(o){return n.test(o)}},{}],20:[function(w,_,h){var r=w("./mode"),s=w("./numeric-data"),i=w("./alphanumeric-data"),f=w("./byte-data"),e=w("./kanji-data"),l=w("./regex"),n=w("./utils"),t=w("dijkstrajs");function o(b){return unescape(encodeURIComponent(b)).length}function d(b,A,x){for(var E=[],S;(S=b.exec(x))!==null;)E.push({data:S[0],index:S.index,mode:A,length:S[0].length});return E}function u(b){var A=d(l.NUMERIC,r.NUMERIC,b),x=d(l.ALPHANUMERIC,r.ALPHANUMERIC,b),E,S;n.isKanjiModeEnabled()?(E=d(l.BYTE,r.BYTE,b),S=d(l.KANJI,r.KANJI,b)):(E=d(l.BYTE_KANJI,r.BYTE,b),S=[]);var C=A.concat(x,E,S);return C.sort(function(T,k){return T.index-k.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function c(b,A){switch(A){case r.NUMERIC:return s.getBitsLength(b);case r.ALPHANUMERIC:return i.getBitsLength(b);case r.KANJI:return e.getBitsLength(b);case r.BYTE:return f.getBitsLength(b)}}function g(b){return b.reduce(function(A,x){var E=A.length-1>=0?A[A.length-1]:null;return E&&E.mode===x.mode?(A[A.length-1].data+=x.data,A):(A.push(x),A)},[])}function p(b){for(var A=[],x=0;x<b.length;x++){var E=b[x];switch(E.mode){case r.NUMERIC:A.push([E,{data:E.data,mode:r.ALPHANUMERIC,length:E.length},{data:E.data,mode:r.BYTE,length:E.length}]);break;case r.ALPHANUMERIC:A.push([E,{data:E.data,mode:r.BYTE,length:E.length}]);break;case r.KANJI:A.push([E,{data:E.data,mode:r.BYTE,length:o(E.data)}]);break;case r.BYTE:A.push([{data:E.data,mode:r.BYTE,length:o(E.data)}])}}return A}function v(b,A){for(var x={},E={start:{}},S=["start"],C=0;C<b.length;C++){for(var T=b[C],k=[],M=0;M<T.length;M++){var P=T[M],N=""+C+M;k.push(N),x[N]={node:P,lastCount:0},E[N]={};for(var F=0;F<S.length;F++){var q=S[F];x[q]&&x[q].node.mode===P.mode?(E[q][N]=c(x[q].lastCount+P.length,P.mode)-c(x[q].lastCount,P.mode),x[q].lastCount+=P.length):(x[q]&&(x[q].lastCount=P.length),E[q][N]=c(P.length,P.mode)+4+r.getCharCountIndicator(P.mode,A))}}S=k}for(F=0;F<S.length;F++)E[S[F]].end=0;return{map:E,table:x}}function y(b,A){var x,E=r.getBestModeForData(b);if(x=r.from(A,E),x!==r.BYTE&&x.bit<E.bit)throw new Error('"'+b+'" cannot be encoded with mode '+r.toString(x)+`. + Suggested mode is: `+r.toString(E));switch(x===r.KANJI&&!n.isKanjiModeEnabled()&&(x=r.BYTE),x){case r.NUMERIC:return new s(b);case r.ALPHANUMERIC:return new i(b);case r.KANJI:return new e(b);case r.BYTE:return new f(b)}}h.fromArray=function(A){return A.reduce(function(x,E){return typeof E=="string"?x.push(y(E,null)):E.data&&x.push(y(E.data,E.mode)),x},[])},h.fromString=function(A,x){for(var E=u(A,n.isKanjiModeEnabled()),S=p(E),C=v(S,x),T=t.find_path(C.map,"start","end"),k=[],M=1;M<T.length-1;M++)k.push(C.table[T[M]].node);return h.fromArray(g(k))},h.rawSplit=function(A){return h.fromArray(u(A,n.isKanjiModeEnabled()))}},{"./alphanumeric-data":3,"./byte-data":6,"./kanji-data":12,"./mode":14,"./numeric-data":15,"./regex":19,"./utils":21,dijkstrajs:31}],21:[function(w,_,h){var r,s=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];h.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return f*4+17},h.getSymbolTotalCodewords=function(f){return s[f]},h.getBCHDigit=function(i){for(var f=0;i!==0;)f++,i>>>=1;return f},h.setToSJISFunction=function(f){if(typeof f!="function")throw new Error('"toSJISFunc" is not a valid function.');r=f},h.isKanjiModeEnabled=function(){return typeof r<"u"},h.toSJIS=function(f){return r(f)}},{}],22:[function(w,_,h){h.isValid=function(s){return!isNaN(s)&&s>=1&&s<=40}},{}],23:[function(w,_,h){var r=w("./utils"),s=w("./error-correction-code"),i=w("./error-correction-level"),f=w("./mode"),e=w("./version-check"),l=w("isarray"),n=7973,t=r.getBCHDigit(n);function o(g,p,v){for(var y=1;y<=40;y++)if(p<=h.getCapacity(y,v,g))return y}function d(g,p){return f.getCharCountIndicator(g,p)+4}function u(g,p){var v=0;return g.forEach(function(y){var b=d(y.mode,p);v+=b+y.getBitsLength()}),v}function c(g,p){for(var v=1;v<=40;v++){var y=u(g,v);if(y<=h.getCapacity(v,p,f.MIXED))return v}}h.from=function(p,v){return e.isValid(p)?parseInt(p,10):v},h.getCapacity=function(p,v,y){if(!e.isValid(p))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=f.BYTE);var b=r.getSymbolTotalCodewords(p),A=s.getTotalCodewordsCount(p,v),x=(b-A)*8;if(y===f.MIXED)return x;var E=x-d(y,p);switch(y){case f.NUMERIC:return Math.floor(E/10*3);case f.ALPHANUMERIC:return Math.floor(E/11*2);case f.KANJI:return Math.floor(E/13);case f.BYTE:default:return Math.floor(E/8)}},h.getBestVersionForData=function(p,v){var y,b=i.from(v,i.M);if(l(p)){if(p.length>1)return c(p,b);if(p.length===0)return 1;y=p[0]}else y=p;return o(y.mode,y.getLength(),b)},h.getEncodedBits=function(p){if(!e.isValid(p)||p<7)throw new Error("Invalid QR Code version");for(var v=p<<12;r.getBCHDigit(v)-t>=0;)v^=n<<r.getBCHDigit(v)-t;return p<<12|v}},{"./error-correction-code":7,"./error-correction-level":8,"./mode":14,"./utils":21,"./version-check":22,isarray:33}],24:[function(w,_,h){var r=w("./can-promise"),s=w("./core/qrcode"),i=w("./renderer/canvas"),f=w("./renderer/svg-tag.js");function e(l,n,t,o,d){var u=[].slice.call(arguments,1),c=u.length,g=typeof u[c-1]=="function";if(!g&&!r())throw new Error("Callback required as last argument");if(g){if(c<2)throw new Error("Too few arguments provided");c===2?(d=t,t=n,n=o=void 0):c===3&&(n.getContext&&typeof d>"u"?(d=o,o=void 0):(d=o,o=t,t=n,n=void 0))}else{if(c<1)throw new Error("Too few arguments provided");return c===1?(t=n,n=o=void 0):c===2&&!n.getContext&&(o=t,t=n,n=void 0),new Promise(function(v,y){try{var b=s.create(t,o);v(l(b,n,o))}catch(A){y(A)}})}try{var p=s.create(t,o);d(null,l(p,n,o))}catch(v){d(v)}}h.create=s.create,h.toCanvas=e.bind(null,i.render),h.toDataURL=e.bind(null,i.renderToDataURL),h.toString=e.bind(null,function(l,n,t){return f.render(l,t)})},{"./can-promise":1,"./core/qrcode":17,"./renderer/canvas":25,"./renderer/svg-tag.js":26}],25:[function(w,_,h){var r=w("./utils");function s(f,e,l){f.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=l,e.width=l,e.style.height=l+"px",e.style.width=l+"px"}function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}h.render=function(e,l,n){var t=n,o=l;typeof t>"u"&&(!l||!l.getContext)&&(t=l,l=void 0),l||(o=i()),t=r.getOptions(t);var d=r.getImageWidth(e.modules.size,t),u=o.getContext("2d"),c=u.createImageData(d,d);return r.qrToImageData(c.data,e,t),s(u,o,d),u.putImageData(c,0,0),o},h.renderToDataURL=function(e,l,n){var t=n;typeof t>"u"&&(!l||!l.getContext)&&(t=l,l=void 0),t||(t={});var o=h.render(e,l,t),d=t.type||"image/png",u=t.rendererOpts||{};return o.toDataURL(d,u.quality)}},{"./utils":27}],26:[function(w,_,h){var r=w("./utils");function s(e,l){var n=e.a/255,t=l+'="'+e.hex+'"';return n<1?t+" "+l+'-opacity="'+n.toFixed(2).slice(1)+'"':t}function i(e,l,n){var t=e+l;return typeof n<"u"&&(t+=" "+n),t}function f(e,l,n){for(var t="",o=0,d=!1,u=0,c=0;c<e.length;c++){var g=Math.floor(c%l),p=Math.floor(c/l);!g&&!d&&(d=!0),e[c]?(u++,c>0&&g>0&&e[c-1]||(t+=d?i("M",g+n,.5+p+n):i("m",o,0),o=0,d=!1),g+1<l&&e[c+1]||(t+=i("h",u),u=0)):o++}return t}h.render=function(l,n,t){var o=r.getOptions(n),d=l.modules.size,u=l.modules.data,c=d+o.margin*2,g=o.color.light.a?"<path "+s(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",p="<path "+s(o.color.dark,"stroke")+' d="'+f(u,d,o.margin)+'"/>',v='viewBox="0 0 '+c+" "+c+'"',y=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",b='<svg xmlns="http://www.w3.org/2000/svg" '+y+v+' shape-rendering="crispEdges">'+g+p+`</svg> +`;return typeof t=="function"&&t(null,b),b}},{"./utils":27}],27:[function(w,_,h){function r(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");var i=s.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+s);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(e){return[e,e]}))),i.length===6&&i.push("F","F");var f=parseInt(i.join(""),16);return{r:f>>24&255,g:f>>16&255,b:f>>8&255,a:f&255,hex:"#"+i.slice(0,6).join("")}}h.getOptions=function(i){i||(i={}),i.color||(i.color={});var f=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,e=i.width&&i.width>=21?i.width:void 0,l=i.scale||4;return{width:e,scale:e?4:l,margin:f,color:{dark:r(i.color.dark||"#000000ff"),light:r(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},h.getScale=function(i,f){return f.width&&f.width>=i+f.margin*2?f.width/(i+f.margin*2):f.scale},h.getImageWidth=function(i,f){var e=h.getScale(i,f);return Math.floor((i+f.margin*2)*e)},h.qrToImageData=function(i,f,e){for(var l=f.modules.size,n=f.modules.data,t=h.getScale(l,e),o=Math.floor((l+e.margin*2)*t),d=e.margin*t,u=[e.color.light,e.color.dark],c=0;c<o;c++)for(var g=0;g<o;g++){var p=(c*o+g)*4,v=e.color.light;if(c>=d&&g>=d&&c<o-d&&g<o-d){var y=Math.floor((c-d)/t),b=Math.floor((g-d)/t);v=u[n[y*l+b]?1:0]}i[p++]=v.r,i[p++]=v.g,i[p++]=v.b,i[p]=v.a}}},{}],28:[function(w,_,h){var r=w("isarray");function s(){try{var A=new Uint8Array(1);return A.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},A.foo()===42}catch{return!1}}f.TYPED_ARRAY_SUPPORT=s();var i=f.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function f(A,x,E){return!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f)?new f(A,x,E):typeof A=="number"?t(this,A):b(this,A,x,E)}f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));function e(A){if(A>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return A|0}function l(A){return A!==A}function n(A,x){var E;return f.TYPED_ARRAY_SUPPORT?(E=new Uint8Array(x),E.__proto__=f.prototype):(E=A,E===null&&(E=new f(x)),E.length=x),E}function t(A,x){var E=n(A,x<0?0:e(x)|0);if(!f.TYPED_ARRAY_SUPPORT)for(var S=0;S<x;++S)E[S]=0;return E}function o(A,x){var E=p(x)|0,S=n(A,E),C=S.write(x);return C!==E&&(S=S.slice(0,C)),S}function d(A,x){for(var E=x.length<0?0:e(x.length)|0,S=n(A,E),C=0;C<E;C+=1)S[C]=x[C]&255;return S}function u(A,x,E,S){if(E<0||x.byteLength<E)throw new RangeError("'offset' is out of bounds");if(x.byteLength<E+(S||0))throw new RangeError("'length' is out of bounds");var C;return E===void 0&&S===void 0?C=new Uint8Array(x):S===void 0?C=new Uint8Array(x,E):C=new Uint8Array(x,E,S),f.TYPED_ARRAY_SUPPORT?C.__proto__=f.prototype:C=d(A,C),C}function c(A,x){if(f.isBuffer(x)){var E=e(x.length)|0,S=n(A,E);return S.length===0||x.copy(S,0,0,E),S}if(x){if(typeof ArrayBuffer<"u"&&x.buffer instanceof ArrayBuffer||"length"in x)return typeof x.length!="number"||l(x.length)?n(A,0):d(A,x);if(x.type==="Buffer"&&Array.isArray(x.data))return d(A,x.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(A,x){x=x||1/0;for(var E,S=A.length,C=null,T=[],k=0;k<S;++k){if(E=A.charCodeAt(k),E>55295&&E<57344){if(!C){if(E>56319){(x-=3)>-1&&T.push(239,191,189);continue}else if(k+1===S){(x-=3)>-1&&T.push(239,191,189);continue}C=E;continue}if(E<56320){(x-=3)>-1&&T.push(239,191,189),C=E;continue}E=(C-55296<<10|E-56320)+65536}else C&&(x-=3)>-1&&T.push(239,191,189);if(C=null,E<128){if((x-=1)<0)break;T.push(E)}else if(E<2048){if((x-=2)<0)break;T.push(E>>6|192,E&63|128)}else if(E<65536){if((x-=3)<0)break;T.push(E>>12|224,E>>6&63|128,E&63|128)}else if(E<1114112){if((x-=4)<0)break;T.push(E>>18|240,E>>12&63|128,E>>6&63|128,E&63|128)}else throw new Error("Invalid code point")}return T}function p(A){if(f.isBuffer(A))return A.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(A)||A instanceof ArrayBuffer))return A.byteLength;typeof A!="string"&&(A=""+A);var x=A.length;return x===0?0:g(A).length}function v(A,x,E,S){for(var C=0;C<S&&!(C+E>=x.length||C>=A.length);++C)x[C+E]=A[C];return C}function y(A,x,E,S){return v(g(x,A.length-E),A,E,S)}function b(A,x,E,S){if(typeof x=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&x instanceof ArrayBuffer?u(A,x,E,S):typeof x=="string"?o(A,x):c(A,x)}f.prototype.write=function(x,E,S){E===void 0?(S=this.length,E=0):S===void 0&&typeof E=="string"?(S=this.length,E=0):isFinite(E)&&(E=E|0,isFinite(S)?S=S|0:S=void 0);var C=this.length-E;if((S===void 0||S>C)&&(S=C),x.length>0&&(S<0||E<0)||E>this.length)throw new RangeError("Attempt to write outside buffer bounds");return y(this,x,E,S)},f.prototype.slice=function(x,E){var S=this.length;x=~~x,E=E===void 0?S:~~E,x<0?(x+=S,x<0&&(x=0)):x>S&&(x=S),E<0?(E+=S,E<0&&(E=0)):E>S&&(E=S),E<x&&(E=x);var C;if(f.TYPED_ARRAY_SUPPORT)C=this.subarray(x,E),C.__proto__=f.prototype;else{var T=E-x;C=new f(T,void 0);for(var k=0;k<T;++k)C[k]=this[k+x]}return C},f.prototype.copy=function(x,E,S,C){if(S||(S=0),!C&&C!==0&&(C=this.length),E>=x.length&&(E=x.length),E||(E=0),C>0&&C<S&&(C=S),C===S||x.length===0||this.length===0)return 0;if(E<0)throw new RangeError("targetStart out of bounds");if(S<0||S>=this.length)throw new RangeError("sourceStart out of bounds");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),x.length-E<C-S&&(C=x.length-E+S);var T=C-S,k;if(this===x&&S<E&&E<C)for(k=T-1;k>=0;--k)x[k+E]=this[k+S];else if(T<1e3||!f.TYPED_ARRAY_SUPPORT)for(k=0;k<T;++k)x[k+E]=this[k+S];else Uint8Array.prototype.set.call(x,this.subarray(S,S+T),E);return T},f.prototype.fill=function(x,E,S){if(typeof x=="string"){if(typeof E=="string"?(E=0,S=this.length):typeof S=="string"&&(S=this.length),x.length===1){var C=x.charCodeAt(0);C<256&&(x=C)}}else typeof x=="number"&&(x=x&255);if(E<0||this.length<E||this.length<S)throw new RangeError("Out of range index");if(S<=E)return this;E=E>>>0,S=S===void 0?this.length:S>>>0,x||(x=0);var T;if(typeof x=="number")for(T=E;T<S;++T)this[T]=x;else{var k=f.isBuffer(x)?x:new f(x),M=k.length;for(T=0;T<S-E;++T)this[T+E]=k[T%M]}return this},f.concat=function(x,E){if(!r(x))throw new TypeError('"list" argument must be an Array of Buffers');if(x.length===0)return n(null,0);var S;if(E===void 0)for(E=0,S=0;S<x.length;++S)E+=x[S].length;var C=t(null,E),T=0;for(S=0;S<x.length;++S){var k=x[S];if(!f.isBuffer(k))throw new TypeError('"list" argument must be an Array of Buffers');k.copy(C,T),T+=k.length}return C},f.byteLength=p,f.prototype._isBuffer=!0,f.isBuffer=function(x){return!!(x!=null&&x._isBuffer)},_.exports.alloc=function(A){var x=new f(A);return x.fill(0),x},_.exports.from=function(A){return new f(A)}},{isarray:33}],29:[function(w,_,h){h.byteLength=t,h.toByteArray=d,h.fromByteArray=g;for(var r=[],s=[],i=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,l=f.length;e<l;++e)r[e]=f[e],s[f.charCodeAt(e)]=e;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63;function n(p){var v=p.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");y===-1&&(y=v);var b=y===v?0:4-y%4;return[y,b]}function t(p){var v=n(p),y=v[0],b=v[1];return(y+b)*3/4-b}function o(p,v,y){return(v+y)*3/4-y}function d(p){var v,y=n(p),b=y[0],A=y[1],x=new i(o(p,b,A)),E=0,S=A>0?b-4:b,C;for(C=0;C<S;C+=4)v=s[p.charCodeAt(C)]<<18|s[p.charCodeAt(C+1)]<<12|s[p.charCodeAt(C+2)]<<6|s[p.charCodeAt(C+3)],x[E++]=v>>16&255,x[E++]=v>>8&255,x[E++]=v&255;return A===2&&(v=s[p.charCodeAt(C)]<<2|s[p.charCodeAt(C+1)]>>4,x[E++]=v&255),A===1&&(v=s[p.charCodeAt(C)]<<10|s[p.charCodeAt(C+1)]<<4|s[p.charCodeAt(C+2)]>>2,x[E++]=v>>8&255,x[E++]=v&255),x}function u(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[p&63]}function c(p,v,y){for(var b,A=[],x=v;x<y;x+=3)b=(p[x]<<16&16711680)+(p[x+1]<<8&65280)+(p[x+2]&255),A.push(u(b));return A.join("")}function g(p){for(var v,y=p.length,b=y%3,A=[],x=16383,E=0,S=y-b;E<S;E+=x)A.push(c(p,E,E+x>S?S:E+x));return b===1?(v=p[y-1],A.push(r[v>>2]+r[v<<4&63]+"==")):b===2&&(v=(p[y-2]<<8)+p[y-1],A.push(r[v>>10]+r[v>>4&63]+r[v<<2&63]+"=")),A.join("")}},{}],30:[function(w,_,h){var r=w("base64-js"),s=w("ieee754"),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;h.Buffer=n,h.SlowBuffer=b,h.INSPECT_MAX_BYTES=50;var f=2147483647;h.kMaxLength=f,n.TYPED_ARRAY_SUPPORT=e(),!n.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function e(){try{var re=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(re,Y),re.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function l(re){if(re>f)throw new RangeError('The value "'+re+'" is invalid for option "size"');var Y=new Uint8Array(re);return Object.setPrototypeOf(Y,n.prototype),Y}function n(re,Y,V){if(typeof re=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(re)}return t(re,Y,V)}typeof Symbol<"u"&&Symbol.species!=null&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192;function t(re,Y,V){if(typeof re=="string")return c(re,Y);if(ArrayBuffer.isView(re))return g(re);if(re==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(ie(re,ArrayBuffer)||re&&ie(re.buffer,ArrayBuffer))return p(re,Y,V);if(typeof re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var oe=re.valueOf&&re.valueOf();if(oe!=null&&oe!==re)return n.from(oe,Y,V);var fe=v(re);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof re[Symbol.toPrimitive]=="function")return n.from(re[Symbol.toPrimitive]("string"),Y,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}n.from=function(re,Y,V){return t(re,Y,V)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function o(re){if(typeof re!="number")throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function d(re,Y,V){return o(re),re<=0?l(re):Y!==void 0?typeof V=="string"?l(re).fill(Y,V):l(re).fill(Y):l(re)}n.alloc=function(re,Y,V){return d(re,Y,V)};function u(re){return o(re),l(re<0?0:y(re)|0)}n.allocUnsafe=function(re){return u(re)},n.allocUnsafeSlow=function(re){return u(re)};function c(re,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!n.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var V=A(re,Y)|0,oe=l(V),fe=oe.write(re,Y);return fe!==V&&(oe=oe.slice(0,fe)),oe}function g(re){for(var Y=re.length<0?0:y(re.length)|0,V=l(Y),oe=0;oe<Y;oe+=1)V[oe]=re[oe]&255;return V}function p(re,Y,V){if(Y<0||re.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(re.byteLength<Y+(V||0))throw new RangeError('"length" is outside of buffer bounds');var oe;return Y===void 0&&V===void 0?oe=new Uint8Array(re):V===void 0?oe=new Uint8Array(re,Y):oe=new Uint8Array(re,Y,V),Object.setPrototypeOf(oe,n.prototype),oe}function v(re){if(n.isBuffer(re)){var Y=y(re.length)|0,V=l(Y);return V.length===0||re.copy(V,0,0,Y),V}if(re.length!==void 0)return typeof re.length!="number"||se(re.length)?l(0):g(re);if(re.type==="Buffer"&&Array.isArray(re.data))return g(re.data)}function y(re){if(re>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return re|0}function b(re){return+re!=re&&(re=0),n.alloc(+re)}n.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==n.prototype},n.compare=function(Y,V){if(ie(Y,Uint8Array)&&(Y=n.from(Y,Y.offset,Y.byteLength)),ie(V,Uint8Array)&&(V=n.from(V,V.offset,V.byteLength)),!n.isBuffer(Y)||!n.isBuffer(V))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===V)return 0;for(var oe=Y.length,fe=V.length,ce=0,he=Math.min(oe,fe);ce<he;++ce)if(Y[ce]!==V[ce]){oe=Y[ce],fe=V[ce];break}return oe<fe?-1:fe<oe?1:0},n.isEncoding=function(Y){switch(String(Y).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}},n.concat=function(Y,V){if(!Array.isArray(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return n.alloc(0);var oe;if(V===void 0)for(V=0,oe=0;oe<Y.length;++oe)V+=Y[oe].length;var fe=n.allocUnsafe(V),ce=0;for(oe=0;oe<Y.length;++oe){var he=Y[oe];if(ie(he,Uint8Array)&&(he=n.from(he)),!n.isBuffer(he))throw new TypeError('"list" argument must be an Array of Buffers');he.copy(fe,ce),ce+=he.length}return fe};function A(re,Y){if(n.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||ie(re,ArrayBuffer))return re.byteLength;if(typeof re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);var V=re.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&V===0)return 0;for(var fe=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return H(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V*2;case"hex":return V>>>1;case"base64":return te(re).length;default:if(fe)return oe?-1:H(re).length;Y=(""+Y).toLowerCase(),fe=!0}}n.byteLength=A;function x(re,Y,V){var oe=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0,Y>>>=0,V<=Y))return"";for(re||(re="utf8");;)switch(re){case"hex":return B(this,Y,V);case"utf8":case"utf-8":return z(this,Y,V);case"ascii":return I(this,Y,V);case"latin1":case"binary":return D(this,Y,V);case"base64":return q(this,Y,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,Y,V);default:if(oe)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),oe=!0}}n.prototype._isBuffer=!0;function E(re,Y,V){var oe=re[Y];re[Y]=re[V],re[V]=oe}n.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var V=0;V<Y;V+=2)E(this,V,V+1);return this},n.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var V=0;V<Y;V+=4)E(this,V,V+3),E(this,V+1,V+2);return this},n.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var V=0;V<Y;V+=8)E(this,V,V+7),E(this,V+1,V+6),E(this,V+2,V+5),E(this,V+3,V+4);return this},n.prototype.toString=function(){var Y=this.length;return Y===0?"":arguments.length===0?z(this,0,Y):x.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(Y){if(!n.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:n.compare(this,Y)===0},n.prototype.inspect=function(){var Y="",V=h.INSPECT_MAX_BYTES;return Y=this.toString("hex",0,V).replace(/(.{2})/g,"$1 ").trim(),this.length>V&&(Y+=" ... "),"<Buffer "+Y+">"},i&&(n.prototype[i]=n.prototype.inspect),n.prototype.compare=function(Y,V,oe,fe,ce){if(ie(Y,Uint8Array)&&(Y=n.from(Y,Y.offset,Y.byteLength)),!n.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(V===void 0&&(V=0),oe===void 0&&(oe=Y?Y.length:0),fe===void 0&&(fe=0),ce===void 0&&(ce=this.length),V<0||oe>Y.length||fe<0||ce>this.length)throw new RangeError("out of range index");if(fe>=ce&&V>=oe)return 0;if(fe>=ce)return-1;if(V>=oe)return 1;if(V>>>=0,oe>>>=0,fe>>>=0,ce>>>=0,this===Y)return 0;for(var he=ce-fe,le=oe-V,ae=Math.min(he,le),ue=this.slice(fe,ce),de=Y.slice(V,oe),ve=0;ve<ae;++ve)if(ue[ve]!==de[ve]){he=ue[ve],le=de[ve];break}return he<le?-1:le<he?1:0};function S(re,Y,V,oe,fe){if(re.length===0)return-1;if(typeof V=="string"?(oe=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),V=+V,se(V)&&(V=fe?0:re.length-1),V<0&&(V=re.length+V),V>=re.length){if(fe)return-1;V=re.length-1}else if(V<0)if(fe)V=0;else return-1;if(typeof Y=="string"&&(Y=n.from(Y,oe)),n.isBuffer(Y))return Y.length===0?-1:C(re,Y,V,oe,fe);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(re,Y,V):Uint8Array.prototype.lastIndexOf.call(re,Y,V):C(re,[Y],V,oe,fe);throw new TypeError("val must be string, number or Buffer")}function C(re,Y,V,oe,fe){var ce=1,he=re.length,le=Y.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if(re.length<2||Y.length<2)return-1;ce=2,he/=2,le/=2,V/=2}function ae(ge,xe){return ce===1?ge[xe]:ge.readUInt16BE(xe*ce)}var ue;if(fe){var de=-1;for(ue=V;ue<he;ue++)if(ae(re,ue)===ae(Y,de===-1?0:ue-de)){if(de===-1&&(de=ue),ue-de+1===le)return de*ce}else de!==-1&&(ue-=ue-de),de=-1}else for(V+le>he&&(V=he-le),ue=V;ue>=0;ue--){for(var ve=!0,me=0;me<le;me++)if(ae(re,ue+me)!==ae(Y,me)){ve=!1;break}if(ve)return ue}return-1}n.prototype.includes=function(Y,V,oe){return this.indexOf(Y,V,oe)!==-1},n.prototype.indexOf=function(Y,V,oe){return S(this,Y,V,oe,!0)},n.prototype.lastIndexOf=function(Y,V,oe){return S(this,Y,V,oe,!1)};function T(re,Y,V,oe){V=Number(V)||0;var fe=re.length-V;oe?(oe=Number(oe),oe>fe&&(oe=fe)):oe=fe;var ce=Y.length;oe>ce/2&&(oe=ce/2);for(var he=0;he<oe;++he){var le=parseInt(Y.substr(he*2,2),16);if(se(le))return he;re[V+he]=le}return he}function k(re,Y,V,oe){return ee(H(Y,re.length-V),re,V,oe)}function M(re,Y,V,oe){return ee(U(Y),re,V,oe)}function P(re,Y,V,oe){return M(re,Y,V,oe)}function N(re,Y,V,oe){return ee(te(Y),re,V,oe)}function F(re,Y,V,oe){return ee(K(Y,re.length-V),re,V,oe)}n.prototype.write=function(Y,V,oe,fe){if(V===void 0)fe="utf8",oe=this.length,V=0;else if(oe===void 0&&typeof V=="string")fe=V,oe=this.length,V=0;else if(isFinite(V))V=V>>>0,isFinite(oe)?(oe=oe>>>0,fe===void 0&&(fe="utf8")):(fe=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ce=this.length-V;if((oe===void 0||oe>ce)&&(oe=ce),Y.length>0&&(oe<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var he=!1;;)switch(fe){case"hex":return T(this,Y,V,oe);case"utf8":case"utf-8":return k(this,Y,V,oe);case"ascii":return M(this,Y,V,oe);case"latin1":case"binary":return P(this,Y,V,oe);case"base64":return N(this,Y,V,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Y,V,oe);default:if(he)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),he=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(re,Y,V){return Y===0&&V===re.length?r.fromByteArray(re):r.fromByteArray(re.slice(Y,V))}function z(re,Y,V){V=Math.min(re.length,V);for(var oe=[],fe=Y;fe<V;){var ce=re[fe],he=null,le=ce>239?4:ce>223?3:ce>191?2:1;if(fe+le<=V){var ae,ue,de,ve;switch(le){case 1:ce<128&&(he=ce);break;case 2:ae=re[fe+1],(ae&192)===128&&(ve=(ce&31)<<6|ae&63,ve>127&&(he=ve));break;case 3:ae=re[fe+1],ue=re[fe+2],(ae&192)===128&&(ue&192)===128&&(ve=(ce&15)<<12|(ae&63)<<6|ue&63,ve>2047&&(ve<55296||ve>57343)&&(he=ve));break;case 4:ae=re[fe+1],ue=re[fe+2],de=re[fe+3],(ae&192)===128&&(ue&192)===128&&(de&192)===128&&(ve=(ce&15)<<18|(ae&63)<<12|(ue&63)<<6|de&63,ve>65535&&ve<1114112&&(he=ve))}}he===null?(he=65533,le=1):he>65535&&(he-=65536,oe.push(he>>>10&1023|55296),he=56320|he&1023),oe.push(he),fe+=le}return R(oe)}var O=4096;function R(re){var Y=re.length;if(Y<=O)return String.fromCharCode.apply(String,re);for(var V="",oe=0;oe<Y;)V+=String.fromCharCode.apply(String,re.slice(oe,oe+=O));return V}function I(re,Y,V){var oe="";V=Math.min(re.length,V);for(var fe=Y;fe<V;++fe)oe+=String.fromCharCode(re[fe]&127);return oe}function D(re,Y,V){var oe="";V=Math.min(re.length,V);for(var fe=Y;fe<V;++fe)oe+=String.fromCharCode(re[fe]);return oe}function B(re,Y,V){var oe=re.length;(!Y||Y<0)&&(Y=0),(!V||V<0||V>oe)&&(V=oe);for(var fe="",ce=Y;ce<V;++ce)fe+=ne[re[ce]];return fe}function j(re,Y,V){for(var oe=re.slice(Y,V),fe="",ce=0;ce<oe.length;ce+=2)fe+=String.fromCharCode(oe[ce]+oe[ce+1]*256);return fe}n.prototype.slice=function(Y,V){var oe=this.length;Y=~~Y,V=V===void 0?oe:~~V,Y<0?(Y+=oe,Y<0&&(Y=0)):Y>oe&&(Y=oe),V<0?(V+=oe,V<0&&(V=0)):V>oe&&(V=oe),V<Y&&(V=Y);var fe=this.subarray(Y,V);return Object.setPrototypeOf(fe,n.prototype),fe};function Q(re,Y,V){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+Y>V)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUIntLE=function(Y,V,oe){Y=Y>>>0,V=V>>>0,oe||Q(Y,V,this.length);for(var fe=this[Y],ce=1,he=0;++he<V&&(ce*=256);)fe+=this[Y+he]*ce;return fe},n.prototype.readUIntBE=function(Y,V,oe){Y=Y>>>0,V=V>>>0,oe||Q(Y,V,this.length);for(var fe=this[Y+--V],ce=1;V>0&&(ce*=256);)fe+=this[Y+--V]*ce;return fe},n.prototype.readUInt8=function(Y,V){return Y=Y>>>0,V||Q(Y,1,this.length),this[Y]},n.prototype.readUInt16LE=function(Y,V){return Y=Y>>>0,V||Q(Y,2,this.length),this[Y]|this[Y+1]<<8},n.prototype.readUInt16BE=function(Y,V){return Y=Y>>>0,V||Q(Y,2,this.length),this[Y]<<8|this[Y+1]},n.prototype.readUInt32LE=function(Y,V){return Y=Y>>>0,V||Q(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},n.prototype.readUInt32BE=function(Y,V){return Y=Y>>>0,V||Q(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},n.prototype.readIntLE=function(Y,V,oe){Y=Y>>>0,V=V>>>0,oe||Q(Y,V,this.length);for(var fe=this[Y],ce=1,he=0;++he<V&&(ce*=256);)fe+=this[Y+he]*ce;return ce*=128,fe>=ce&&(fe-=Math.pow(2,8*V)),fe},n.prototype.readIntBE=function(Y,V,oe){Y=Y>>>0,V=V>>>0,oe||Q(Y,V,this.length);for(var fe=V,ce=1,he=this[Y+--fe];fe>0&&(ce*=256);)he+=this[Y+--fe]*ce;return ce*=128,he>=ce&&(he-=Math.pow(2,8*V)),he},n.prototype.readInt8=function(Y,V){return Y=Y>>>0,V||Q(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},n.prototype.readInt16LE=function(Y,V){Y=Y>>>0,V||Q(Y,2,this.length);var oe=this[Y]|this[Y+1]<<8;return oe&32768?oe|4294901760:oe},n.prototype.readInt16BE=function(Y,V){Y=Y>>>0,V||Q(Y,2,this.length);var oe=this[Y+1]|this[Y]<<8;return oe&32768?oe|4294901760:oe},n.prototype.readInt32LE=function(Y,V){return Y=Y>>>0,V||Q(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},n.prototype.readInt32BE=function(Y,V){return Y=Y>>>0,V||Q(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},n.prototype.readFloatLE=function(Y,V){return Y=Y>>>0,V||Q(Y,4,this.length),s.read(this,Y,!0,23,4)},n.prototype.readFloatBE=function(Y,V){return Y=Y>>>0,V||Q(Y,4,this.length),s.read(this,Y,!1,23,4)},n.prototype.readDoubleLE=function(Y,V){return Y=Y>>>0,V||Q(Y,8,this.length),s.read(this,Y,!0,52,8)},n.prototype.readDoubleBE=function(Y,V){return Y=Y>>>0,V||Q(Y,8,this.length),s.read(this,Y,!1,52,8)};function X(re,Y,V,oe,fe,ce){if(!n.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>fe||Y<ce)throw new RangeError('"value" argument is out of bounds');if(V+oe>re.length)throw new RangeError("Index out of range")}n.prototype.writeUIntLE=function(Y,V,oe,fe){if(Y=+Y,V=V>>>0,oe=oe>>>0,!fe){var ce=Math.pow(2,8*oe)-1;X(this,Y,V,oe,ce,0)}var he=1,le=0;for(this[V]=Y&255;++le<oe&&(he*=256);)this[V+le]=Y/he&255;return V+oe},n.prototype.writeUIntBE=function(Y,V,oe,fe){if(Y=+Y,V=V>>>0,oe=oe>>>0,!fe){var ce=Math.pow(2,8*oe)-1;X(this,Y,V,oe,ce,0)}var he=oe-1,le=1;for(this[V+he]=Y&255;--he>=0&&(le*=256);)this[V+he]=Y/le&255;return V+oe},n.prototype.writeUInt8=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,1,255,0),this[V]=Y&255,V+1},n.prototype.writeUInt16LE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,2,65535,0),this[V]=Y&255,this[V+1]=Y>>>8,V+2},n.prototype.writeUInt16BE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,2,65535,0),this[V]=Y>>>8,this[V+1]=Y&255,V+2},n.prototype.writeUInt32LE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,4,4294967295,0),this[V+3]=Y>>>24,this[V+2]=Y>>>16,this[V+1]=Y>>>8,this[V]=Y&255,V+4},n.prototype.writeUInt32BE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,4,4294967295,0),this[V]=Y>>>24,this[V+1]=Y>>>16,this[V+2]=Y>>>8,this[V+3]=Y&255,V+4},n.prototype.writeIntLE=function(Y,V,oe,fe){if(Y=+Y,V=V>>>0,!fe){var ce=Math.pow(2,8*oe-1);X(this,Y,V,oe,ce-1,-ce)}var he=0,le=1,ae=0;for(this[V]=Y&255;++he<oe&&(le*=256);)Y<0&&ae===0&&this[V+he-1]!==0&&(ae=1),this[V+he]=(Y/le>>0)-ae&255;return V+oe},n.prototype.writeIntBE=function(Y,V,oe,fe){if(Y=+Y,V=V>>>0,!fe){var ce=Math.pow(2,8*oe-1);X(this,Y,V,oe,ce-1,-ce)}var he=oe-1,le=1,ae=0;for(this[V+he]=Y&255;--he>=0&&(le*=256);)Y<0&&ae===0&&this[V+he+1]!==0&&(ae=1),this[V+he]=(Y/le>>0)-ae&255;return V+oe},n.prototype.writeInt8=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,1,127,-128),Y<0&&(Y=255+Y+1),this[V]=Y&255,V+1},n.prototype.writeInt16LE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,2,32767,-32768),this[V]=Y&255,this[V+1]=Y>>>8,V+2},n.prototype.writeInt16BE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,2,32767,-32768),this[V]=Y>>>8,this[V+1]=Y&255,V+2},n.prototype.writeInt32LE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,4,2147483647,-2147483648),this[V]=Y&255,this[V+1]=Y>>>8,this[V+2]=Y>>>16,this[V+3]=Y>>>24,V+4},n.prototype.writeInt32BE=function(Y,V,oe){return Y=+Y,V=V>>>0,oe||X(this,Y,V,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[V]=Y>>>24,this[V+1]=Y>>>16,this[V+2]=Y>>>8,this[V+3]=Y&255,V+4};function Z(re,Y,V,oe,fe,ce){if(V+oe>re.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function L(re,Y,V,oe,fe){return Y=+Y,V=V>>>0,fe||Z(re,Y,V,4),s.write(re,Y,V,oe,23,4),V+4}n.prototype.writeFloatLE=function(Y,V,oe){return L(this,Y,V,!0,oe)},n.prototype.writeFloatBE=function(Y,V,oe){return L(this,Y,V,!1,oe)};function W(re,Y,V,oe,fe){return Y=+Y,V=V>>>0,fe||Z(re,Y,V,8),s.write(re,Y,V,oe,52,8),V+8}n.prototype.writeDoubleLE=function(Y,V,oe){return W(this,Y,V,!0,oe)},n.prototype.writeDoubleBE=function(Y,V,oe){return W(this,Y,V,!1,oe)},n.prototype.copy=function(Y,V,oe,fe){if(!n.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!fe&&fe!==0&&(fe=this.length),V>=Y.length&&(V=Y.length),V||(V=0),fe>0&&fe<oe&&(fe=oe),fe===oe||Y.length===0||this.length===0)return 0;if(V<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),Y.length-V<fe-oe&&(fe=Y.length-V+oe);var ce=fe-oe;if(this===Y&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(V,oe,fe);else if(this===Y&&oe<V&&V<fe)for(var he=ce-1;he>=0;--he)Y[he+V]=this[he+oe];else Uint8Array.prototype.set.call(Y,this.subarray(oe,fe),V);return ce},n.prototype.fill=function(Y,V,oe,fe){if(typeof Y=="string"){if(typeof V=="string"?(fe=V,V=0,oe=this.length):typeof oe=="string"&&(fe=oe,oe=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!n.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(Y.length===1){var ce=Y.charCodeAt(0);(fe==="utf8"&&ce<128||fe==="latin1")&&(Y=ce)}}else typeof Y=="number"?Y=Y&255:typeof Y=="boolean"&&(Y=Number(Y));if(V<0||this.length<V||this.length<oe)throw new RangeError("Out of range index");if(oe<=V)return this;V=V>>>0,oe=oe===void 0?this.length:oe>>>0,Y||(Y=0);var he;if(typeof Y=="number")for(he=V;he<oe;++he)this[he]=Y;else{var le=n.isBuffer(Y)?Y:n.from(Y,fe),ae=le.length;if(ae===0)throw new TypeError('The value "'+Y+'" is invalid for argument "value"');for(he=0;he<oe-V;++he)this[he+V]=le[he%ae]}return this};var G=/[^+/0-9A-Za-z-_]/g;function J(re){if(re=re.split("=")[0],re=re.trim().replace(G,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function H(re,Y){Y=Y||1/0;for(var V,oe=re.length,fe=null,ce=[],he=0;he<oe;++he){if(V=re.charCodeAt(he),V>55295&&V<57344){if(!fe){if(V>56319){(Y-=3)>-1&&ce.push(239,191,189);continue}else if(he+1===oe){(Y-=3)>-1&&ce.push(239,191,189);continue}fe=V;continue}if(V<56320){(Y-=3)>-1&&ce.push(239,191,189),fe=V;continue}V=(fe-55296<<10|V-56320)+65536}else fe&&(Y-=3)>-1&&ce.push(239,191,189);if(fe=null,V<128){if((Y-=1)<0)break;ce.push(V)}else if(V<2048){if((Y-=2)<0)break;ce.push(V>>6|192,V&63|128)}else if(V<65536){if((Y-=3)<0)break;ce.push(V>>12|224,V>>6&63|128,V&63|128)}else if(V<1114112){if((Y-=4)<0)break;ce.push(V>>18|240,V>>12&63|128,V>>6&63|128,V&63|128)}else throw new Error("Invalid code point")}return ce}function U(re){for(var Y=[],V=0;V<re.length;++V)Y.push(re.charCodeAt(V)&255);return Y}function K(re,Y){for(var V,oe,fe,ce=[],he=0;he<re.length&&!((Y-=2)<0);++he)V=re.charCodeAt(he),oe=V>>8,fe=V%256,ce.push(fe),ce.push(oe);return ce}function te(re){return r.toByteArray(J(re))}function ee(re,Y,V,oe){for(var fe=0;fe<oe&&!(fe+V>=Y.length||fe>=re.length);++fe)Y[fe+V]=re[fe];return fe}function ie(re,Y){return re instanceof Y||re!=null&&re.constructor!=null&&re.constructor.name!=null&&re.constructor.name===Y.name}function se(re){return re!==re}var ne=function(){for(var re="0123456789abcdef",Y=new Array(256),V=0;V<16;++V)for(var oe=V*16,fe=0;fe<16;++fe)Y[oe+fe]=re[V]+re[fe];return Y}()},{"base64-js":29,ieee754:32}],31:[function(w,_,h){var r={single_source_shortest_paths:function(s,i,f){var e={},l={};l[i]=0;var n=r.PriorityQueue.make();n.push(i,0);for(var t,o,d,u,c,g,p,v,y;!n.empty();){t=n.pop(),o=t.value,u=t.cost,c=s[o]||{};for(d in c)c.hasOwnProperty(d)&&(g=c[d],p=u+g,v=l[d],y=typeof l[d]>"u",(y||v>p)&&(l[d]=p,n.push(d,p),e[d]=o))}if(typeof f<"u"&&typeof l[f]>"u"){var b=["Could not find a path from ",i," to ",f,"."].join("");throw new Error(b)}return e},extract_shortest_path_from_predecessor_list:function(s,i){for(var f=[],e=i;e;)f.push(e),s[e],e=s[e];return f.reverse(),f},find_path:function(s,i,f){var e=r.single_source_shortest_paths(s,i,f);return r.extract_shortest_path_from_predecessor_list(e,f)},PriorityQueue:{make:function(s){var i=r.PriorityQueue,f={},e;s=s||{};for(e in i)i.hasOwnProperty(e)&&(f[e]=i[e]);return f.queue=[],f.sorter=s.sorter||i.default_sorter,f},default_sorter:function(s,i){return s.cost-i.cost},push:function(s,i){var f={value:s,cost:i};this.queue.push(f),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof _<"u"&&(_.exports=r)},{}],32:[function(w,_,h){h.read=function(r,s,i,f,e){var l,n,t=e*8-f-1,o=(1<<t)-1,d=o>>1,u=-7,c=i?e-1:0,g=i?-1:1,p=r[s+c];for(c+=g,l=p&(1<<-u)-1,p>>=-u,u+=t;u>0;l=l*256+r[s+c],c+=g,u-=8);for(n=l&(1<<-u)-1,l>>=-u,u+=f;u>0;n=n*256+r[s+c],c+=g,u-=8);if(l===0)l=1-d;else{if(l===o)return n?NaN:(p?-1:1)*(1/0);n=n+Math.pow(2,f),l=l-d}return(p?-1:1)*n*Math.pow(2,l-f)},h.write=function(r,s,i,f,e,l){var n,t,o,d=l*8-e-1,u=(1<<d)-1,c=u>>1,g=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=f?0:l-1,v=f?1:-1,y=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(t=isNaN(s)?1:0,n=u):(n=Math.floor(Math.log(s)/Math.LN2),s*(o=Math.pow(2,-n))<1&&(n--,o*=2),n+c>=1?s+=g/o:s+=g*Math.pow(2,1-c),s*o>=2&&(n++,o/=2),n+c>=u?(t=0,n=u):n+c>=1?(t=(s*o-1)*Math.pow(2,e),n=n+c):(t=s*Math.pow(2,c-1)*Math.pow(2,e),n=0));e>=8;r[i+p]=t&255,p+=v,t/=256,e-=8);for(n=n<<e|t,d+=e;d>0;r[i+p]=n&255,p+=v,n/=256,d-=8);r[i+p-v]|=y*128}},{}],33:[function(w,_,h){var r={}.toString;_.exports=Array.isArray||function(s){return r.call(s)=="[object Array]"}},{}]},{},[24])(24)})}),a5={name:"qrcode",props:{value:null,options:Object,tag:{type:String,default:"canvas"}},render:function(m){return m(this.tag,this.$slots.default)},watch:{$props:{deep:!0,immediate:!0,handler:function(){this.$el&&this.generate()}}},methods:{generate:function(){var m=this,w=this.options,_=this.tag,h=String(this.value);_==="canvas"?nl.toCanvas(this.$el,h,w,function(r){if(r)throw r}):_==="img"?nl.toDataURL(h,w,function(r,s){if(r)throw r;m.$el.src=s}):nl.toString(h,w,function(r,s){if(r)throw r;m.$el.innerHTML=s})}},mounted:function(){this.generate()}},o5=function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("div",[w("div",{staticClass:"layout"},[w("div",{staticClass:"layout-content-center"},[w("div",[w("div",{staticStyle:{margin:"10px"}},[w("h2",{staticStyle:{"margin-bottom":"3px"}},[a._v("SelfCrypto")]),w("Button",{staticStyle:{margin:"10px"},attrs:{disabled:a.hasRegisted,type:"primary"},on:{click:function(_){a.modalMode="register",a.popModal=!0}}},[a._v("Regist")]),w("Button",{staticStyle:{margin:"10px"},attrs:{disabled:!a.hasRegisted,type:"primary"},on:{click:function(_){return a.beforeRecover()}}},[a._v("Recover")]),w("Button",{staticStyle:{margin:"10px"},attrs:{type:"primary"},on:{click:function(_){return a.executeAction("cryptoPanel","")}}},[a._v("Encrypt-Decrypt")]),w("Table",{staticStyle:{"margin-top":"8px"},attrs:{border:"","no-data-text":"empty key/value list",columns:a.items.columns,data:a.items.data}})],1),a.qrcodeUrl!==""?w("VueQrcode",{attrs:{value:a.qrcodeUrl,options:{width:150}}}):a._e(),a.qrcodeUrl!==""?w("h3",{staticStyle:{"text-align":"center"}},[a._v("Please add an account through Google Authenticator within 1 minutes.")]):a._e()],1)])]),w("Modal",{attrs:{"footer-hide":a.hideFooter,"class-name":"vertical-center-modal"},model:{value:a.popModal,callback:function(_){a.popModal=_},expression:"popModal"}},[w("p",{staticStyle:{"text-align":"center","margin-bottom":"10px"}},[a._v(a._s(a.placeHolderMap[a.modalMode].title))]),w("Input",{attrs:{type:"email",placeholder:a.placeHolderMap[a.modalMode].placeholder},model:{value:a.modelKey,callback:function(_){a.modelKey=_},expression:"modelKey"}},[w("span",{attrs:{slot:"prepend"},slot:"prepend"},[a._v(a._s(a.placeHolderMap[a.modalMode].name))])]),w("div",{staticStyle:{"text-align":"center","margin-top":"15px"}},[a.modalMode==="register"?w("Button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary"},on:{click:function(_){return a.register()}}},[a._v("Confirm")]):a._e(),a.modalMode==="recover"?w("Button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary"},on:{click:function(_){return a.recover()}}},[a._v("Confirm")]):a._e(),a.modalMode==="verify"?w("Button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary"},on:{click:function(_){return a.afterRecover()}}},[a._v("Confirm")]):a._e(),w("Button",{on:{click:function(_){a.popModal=!1,a.modalReadonly=!1}}},[a._v("Cancel")])],1)],1)],1)},s5=[];const u5={components:{VueQrcode:a5},inject:["reload"],data(){return{hideFooter:!0,popModal:!1,modalMode:"register",placeHolderMap:{verify:{name:"Code",placeholder:"Enter dynamic code...",title:"recovery verify"},register:{name:"Email",placeholder:"Enter recover email...",title:"user registration"},recover:{name:"Email",placeholder:"Enter recover email......",title:"social recovery"}},items:{columns:[{title:"Key",key:"key",align:"center",minWidth:50},{title:"Value",key:"value",align:"center",minWidth:200},{title:"Action",key:"action",width:200,align:"center",render:(a,m)=>{let w=[],_=this;return w.push(a("Button",{props:{type:"primary",disabled:!1},on:{click:()=>{console.log(_.items.data[m.index]),_.items.data[m.index].data.url===void 0?_.executeAction(_.items.data[m.index].key,_.items.data[m.index].data.value):_.openLink(_.items.data[m.index].data.url)}}},_.items.data[m.index].data.btnName)),a("div",w)}}],data:[]},modelKey:"",modelValue:"",qrcodeUrl:"",qrcodeSize:200,storeFee:0,web3Key:"",recoverID:"",web3PublicKey:"",hasRegisted:!1,hasEncrypted:!1}},mounted:function(){},methods:{openLink(a){window.open(a,"_blank")},init(a,m,w){this.web3Key=m,this.recoverID=a,this.web3PublicKey=w;const _=this.$parent.getSelf().getWallet().contractAddrMap[this.$parent.getSelf().getWallet().networkId];this.addKV("Wallet",{btnName:"View",value:this.$parent.getSelf().getWalletAddress(),url:"https://etherscan.io/token/"+this.$parent.getSelf().getWalletAddress()},!0),this.addKV("Contract",{btnName:"View",value:_,url:"https://etherscan.io/token/"+_},!1),console.log("init privatePanel: ",m,w)},addKV(a,m,w){w===!0&&(this.items.data=[]),a==="Encrypt-Decrypt"&&this.items.data.pop(a),this.items.data.push({key:a,value:m.value,data:m})},resetModal(){this.modelKey="",this.modelValue=""},register(){var a=this;if(this.modelKey===""){this.$Message.error("encryption name must be non-empty");return}this.popModal=!1;var m=this.$parent.getSelf().generatekey(32);let w={};Register(a.$parent.getSelf().getWalletAddress(),this.modelKey,function(_){if(w.data=JSON.parse(_),w.data.Error!==""&&w.data.Error!==null&&w.data.Error!==void 0)a.$parent.getSelf().wasmCallback("Register",w.data.Error);else{a.$parent.getSelf().wasmCallback("Register");var h=[],r=m,s=w.data.Data.recoverID,i=w.data.Data.backendKey;h.push(qt.utils.asciiToHex(s)),h.push(qt.utils.asciiToHex(r)),h.push(qt.utils.asciiToHex(i)),h.push(qt.utils.asciiToHex(a.$parent.getSelf().backendPublicKey)),a.$parent.getSelf().enableSpin(!0),a.$parent.getSelf().getWallet().Execute("send","Register",a.$parent.getSelf().getWalletAddress(),a.storeFee,h,function(f){a.$parent.getSelf().enableSpin(!1),a.resetModal(),a.hasRegisted=!0,a.web3Key=m,a.showQRcode(w.data.Data.qrcode),setTimeout(function(){a.qrcodeUrl="",window.location.reload()},6e4)},function(f){a.$Message.error("selfCrypto register at contract failed"),a.$parent.getSelf().enableSpin(!1)})}})},beforeRecover(){let a=this;a.resetModal(),a.modalMode="recover",a.popModal=!0},recover(){let a=this;if(this.modelKey===""){this.$Message.error("pushID must be non-empty");return}this.popModal=!1;let m={};this.$parent.getSelf().enableSpin(!0),Recover(a.$parent.getSelf().getWalletAddress(),this.modelKey,function(w){if(m.data=JSON.parse(w),m.data.Error!==""&&m.data.Error!==null&&m.data.Error!==void 0)a.$parent.getSelf().wasmCallback("Recover",m.data.Error,!1);else{var _=a.$parent.getSelf().getWalletAddress(),h=_.substring(0,4)+"..."+_.substring(_.length-4,_.length),r={name:h,user_email:a.modelKey,message:"[SelfCrypto] code for dynamic authorization: "+m.data.Data};n5.send("service_selfcrypto","template_code_9lzgvhc",r,"d8z0CXeQInBbZKU4r").then(s=>{a.$parent.getSelf().enableSpin(!1),console.log("email send by emailjs successed!",s.text),a.$Message.success("email push successed for recovery"),a.resetModal(),a.modalMode="verify",a.popModal=!0},s=>{a.$parent.getSelf().enableSpin(!1),console.log("email send by emailjs failed!...",s.text)})}})},afterRecover(){let a=this;if(this.modelKey===""){this.$Message.error("encrypted privateKey must be non-empty");return}this.popModal=!1,this.$parent.getSelf().enableSpin(!0);let m={};const w=a.$parent.getSelf().backendPublicKey;Auth(a.$parent.getSelf().getWalletAddress(),this.modelKey,"email",this.recoverID,w,function(_){if(m.data=JSON.parse(_),m.data.Error!==""&&m.data.Error!==null&&m.data.Error!==void 0){if(a.$parent.getSelf().wasmCallback("Auth",m.data.Error,!1),m.data.Error==="reload"){window.location.reload();return}}else{a.resetModal();let h=m.data.Data.qrcode;const r=a.$parent.getSelf().generatekey(32,!1);a.$parent.getSelf().signTypedData(r,function(s){var i=[];i.push(s),i.push(qt.utils.asciiToHex(r)),i.push(qt.utils.asciiToHex(w)),a.$parent.getSelf().getWallet().Execute("send","Recover",a.$parent.getSelf().getWalletAddress(),0,i,function(f){a.$parent.getSelf().enableSpin(!1),a.showQRcode(h),a.web3PublicKey=w,setTimeout(function(){a.qrcodeUrl="",window.location.reload()},6e4)},function(f){a.$parent.getSelf().enableSpin(!1),a.$Message.error("selfCrypto recover at contract failed")})})}})},executeAction(a,m){let w=this;if(a==="Encrypt-Decrypt")if(this.hasEncrypted===!1){var _=rl.AES.encrypt(m,w.web3Key).toString();w.$parent.getSelf().switchPanel("encrypt","",_,function(h){console.log("executeAction successed: ",_,h),w.addKV("Encrypt-Decrypt",{value:h,btnName:"Decrypt"},!1),w.hasEncrypted=!0})}else w.$parent.getSelf().switchPanel("decrypt","",m,function(h){var r=rl.AES.decrypt(h,w.web3Key).toString(rl.enc.Utf8);w.addKV("Encrypt-Decrypt",{value:r,btnName:"Encrypt"},!1),w.hasEncrypted=!1});else this.$parent.getSelf().afterVerify(!0,m,a)},showQRcode(a){var m=this.$parent.getSelf().getWalletAddress();let w=m.substring(0,4)+"..."+m.substring(m.length-4,m.length);const _="selfCrypto-"+this.$parent.getSelf().getWallet().networkId+":"+w;this.qrcodeUrl="otpauth://totp/"+_+"?secret="+a.replace(/=/g,"")},pageWidth(){var a=0;return window.innerWidth?a=window.innerWidth:document.body&&document.body.clientWidth&&(a=document.body.clientWidth),document.documentElement&&document.documentElement.clientWidth&&(a=document.documentElement.clientWidth),a},pageHeight(){var a=0;return window.innerHeight?a=window.innerHeight:document.body&&document.body.clientHeight&&(a=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(a=document.documentElement.clientHeight),a}}},j1={};var l5=ki(u5,o5,s5,!1,f5,"d3c5affe",null,null);function f5(a){for(let m in j1)this[m]=j1[m]}const c5=function(){return l5.exports}();var d5=function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("div",[w("div",{staticClass:"layout"},[w("div",{staticClass:"layout-content-center"},[w("div",[w("div",[w("h2",{staticStyle:{"text-align":"center","margin-bottom":"1px"}},[a._v("SelfCrypto")]),w("Button",{staticStyle:{margin:"10px"},attrs:{type:"primary"},on:{click:function(_){return a.back()}}},[a._v("Back")]),w("Button",{staticStyle:{margin:"10px"},attrs:{disabled:a.hasEncrypted===!0,type:"primary"},on:{click:function(_){return a.encrypt()}}},[a._v("Encrypt")]),w("Button",{staticStyle:{margin:"10px"},attrs:{disabled:a.hasEncrypted===!1,type:"primary"},on:{click:function(_){return a.decrypt()}}},[a._v("Decrypt")]),w("Button",{staticStyle:{margin:"10px"},attrs:{disabled:a.hasEncrypted===!1,type:"primary"},on:{click:function(_){return a.download()}}},[a._v("Download")]),w("Upload",{staticStyle:{"margin-top":"10px"},attrs:{type:"drag","before-upload":a.onUploadBefore,action:"/"}},[w("div",{staticStyle:{padding:"20px 0"}},[w("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"52"}}),w("p",[a._v("Click or drag the file here to upload")])],1),a.fileName!==""?w("span",{staticStyle:{color:"green"}},[a._v(a._s(a.fileName))]):a._e()]),w("Radio-group",{staticStyle:{"margin-top":"10px","margin-bottom":"20px"},model:{value:a.uploadType,callback:function(_){a.uploadType=_},expression:"uploadType"}},[w("Radio",{attrs:{label:"upload plain text"}}),w("Radio",{attrs:{label:"upload cipher text"}})],1),w("div",{style:{height:a.pageHeight()/2+"px",width:a.pageWidth()/2+"px"}},[w("vue-editor",{ref:"fileEditor",attrs:{disabled:a.readonly==="true","editor-toolbar":[["bold","italic","underline"]]},model:{value:a.content,callback:function(_){a.content=_},expression:"content"}})],1)],1)])])])])},h5=[];const p5={inject:["reload"],data(){return{lang:"text",content:"",readonly:!1,uploadType:"upload plain text",fileName:"",web3Key:"",hasEncrypted:!1}},mounted:function(){},methods:{onUploadBefore(a){let m=this;const w=new FileReader;return w.readAsText(a),w.onload=function(){w.result&&(m.content=w.result,m.hasEncrypted=m.uploadType!=="upload plain text")},this.fileName=a.name,!1},init(a){this.web3Key=a,this.hasEncrypted=!1,console.log("init cryptoPanel: ",this.web3Key,a)},back(){this.$parent.getSelf().switchPanel("back","cryptoPanel")},encrypt(){let a=this,m=this.content;if(m===""){this.$Message.error("content must be non-empty");return}m=m.replace("<p>",""),m=m.replace("</p>",""),console.log("-----------",m);var w=Mo.AES.encrypt(m,a.web3Key).toString();a.$parent.getSelf().switchPanel("encrypt","cryptoPanel",w,function(_){a.content=_,a.hasEncrypted=!0,console.log(w,_)})},decrypt(){let a=this,m=this.content;if(m===""){this.$Message.error("content must be non-empty");return}m=m.replace("<p>",""),m=m.replace("</p>","");var w=m;a.$parent.getSelf().switchPanel("decrypt","cryptoPanel",w,function(_){a.content=Mo.AES.decrypt(_,a.web3Key).toString(Mo.enc.Utf8),a.hasEncrypted=!1,console.log(w,_)})},download(){let a=this.content;if(a===""){this.$Message.error("content must be non-empty");return}const m=document.createElement("a");a=a.replace("<p>",""),a=a.replace("</p>","");const w=new Blob([a],{type:"text/plain"}),_=new File([w],this.fileName);m.href=URL.createObjectURL(_),m.download=this.fileName===""?"selfcrypto.txt":this.fileName,m.click(),URL.revokeObjectURL(m.href)},pageWidth(){var a=0;return window.innerWidth?a=window.innerWidth:document.body&&document.body.clientWidth&&(a=document.body.clientWidth),document.documentElement&&document.documentElement.clientWidth&&(a=document.documentElement.clientWidth),a},pageHeight(){var a=0;return window.innerHeight?a=window.innerHeight:document.body&&document.body.clientHeight&&(a=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(a=document.documentElement.clientHeight),a}}},H1={};var v5=ki(p5,d5,h5,!1,m5,"68efd07e",null,null);function m5(a){for(let m in H1)this[m]=H1[m]}const y5=function(){return v5.exports}();var c6={exports:{}};(function(a){var m=Object.prototype.hasOwnProperty,w="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(w=!1));function h(f,e,l){this.fn=f,this.context=e,this.once=l||!1}function r(f,e,l,n,t){if(typeof l!="function")throw new TypeError("The listener must be a function");var o=new h(l,n||f,t),d=w?w+e:e;return f._events[d]?f._events[d].fn?f._events[d]=[f._events[d],o]:f._events[d].push(o):(f._events[d]=o,f._eventsCount++),f}function s(f,e){--f._eventsCount===0?f._events=new _:delete f._events[e]}function i(){this._events=new _,this._eventsCount=0}i.prototype.eventNames=function(){var e=[],l,n;if(this._eventsCount===0)return e;for(n in l=this._events)m.call(l,n)&&e.push(w?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(l)):e},i.prototype.listeners=function(e){var l=w?w+e:e,n=this._events[l];if(!n)return[];if(n.fn)return[n.fn];for(var t=0,o=n.length,d=new Array(o);t<o;t++)d[t]=n[t].fn;return d},i.prototype.listenerCount=function(e){var l=w?w+e:e,n=this._events[l];return n?n.fn?1:n.length:0},i.prototype.emit=function(e,l,n,t,o,d){var u=w?w+e:e;if(!this._events[u])return!1;var c=this._events[u],g=arguments.length,p,v;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),g){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,l),!0;case 3:return c.fn.call(c.context,l,n),!0;case 4:return c.fn.call(c.context,l,n,t),!0;case 5:return c.fn.call(c.context,l,n,t,o),!0;case 6:return c.fn.call(c.context,l,n,t,o,d),!0}for(v=1,p=new Array(g-1);v<g;v++)p[v-1]=arguments[v];c.fn.apply(c.context,p)}else{var y=c.length,b;for(v=0;v<y;v++)switch(c[v].once&&this.removeListener(e,c[v].fn,void 0,!0),g){case 1:c[v].fn.call(c[v].context);break;case 2:c[v].fn.call(c[v].context,l);break;case 3:c[v].fn.call(c[v].context,l,n);break;case 4:c[v].fn.call(c[v].context,l,n,t);break;default:if(!p)for(b=1,p=new Array(g-1);b<g;b++)p[b-1]=arguments[b];c[v].fn.apply(c[v].context,p)}}return!0},i.prototype.on=function(e,l,n){return r(this,e,l,n,!1)},i.prototype.once=function(e,l,n){return r(this,e,l,n,!0)},i.prototype.removeListener=function(e,l,n,t){var o=w?w+e:e;if(!this._events[o])return this;if(!l)return s(this,o),this;var d=this._events[o];if(d.fn)d.fn===l&&(!t||d.once)&&(!n||d.context===n)&&s(this,o);else{for(var u=0,c=[],g=d.length;u<g;u++)(d[u].fn!==l||t&&!d[u].once||n&&d[u].context!==n)&&c.push(d[u]);c.length?this._events[o]=c.length===1?c[0]:c:s(this,o)}return this},i.prototype.removeAllListeners=function(e){var l;return e?(l=w?w+e:e,this._events[l]&&s(this,l)):(this._events=new _,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=w,i.EventEmitter=i,a.exports=i})(c6);var g5=c6.exports;const b5=zn(g5);var _5={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},w5={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}},d6={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},h6={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},x5={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},A5={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0};const E5="1.4.1",S5=a=>a,Rs=a=>a,C5=()=>`viem@${E5}`;class Fe extends Error{constructor(m,w={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:C5()});const _=w.cause instanceof Fe?w.cause.details:w.cause?.message?w.cause.message:w.details,h=w.cause instanceof Fe&&w.cause.docsPath||w.docsPath;this.message=[m||"An error occurred.","",...w.metaMessages?[...w.metaMessages,""]:[],...h?[`Docs: https://viem.sh${h}.html${w.docsSlug?`#${w.docsSlug}`:""}`]:[],..._?[`Details: ${_}`]:[],`Version: ${this.version}`].join(` +`),w.cause&&(this.cause=w.cause),this.details=_,this.docsPath=h,this.metaMessages=w.metaMessages,this.shortMessage=m}walk(m){return p6(this,m)}}function p6(a,m){return m?.(a)?a:a&&typeof a=="object"&&"cause"in a?p6(a.cause,m):m?null:a}class vf extends Fe{constructor({blockNumber:m,chain:w,contract:_}){super(`Chain "${w.name}" does not support contract "${_.name}".`,{metaMessages:["This could be due to any of the following:",...m&&_.blockCreated&&_.blockCreated>m?[`- The contract "${_.name}" was not deployed until block ${_.blockCreated} (current block ${m}).`]:[`- The chain does not have the contract "${_.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class k5 extends Fe{constructor({chain:m,currentChainId:w}){super(`The current chain of the wallet (id: ${w}) does not match the target chain for the transaction (id: ${m.id} – ${m.name}).`,{metaMessages:[`Current Chain ID: ${w}`,`Expected Chain ID: ${m.id} – ${m.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class O5 extends Fe{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class v6 extends Fe{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}function P5({chain:a,currentChainId:m}){if(!a)throw new O5;if(m!==a.id)throw new k5({chain:a,currentChainId:m})}function m6(a,m){return{...a,formatters:m?.formatters,serializers:m?.serializers}}function Mi({blockNumber:a,chain:m,contract:w}){const _=m?.contracts?.[w];if(!_)throw new vf({chain:m,contract:{name:w}});if(a&&_.blockCreated&&_.blockCreated>a)throw new vf({blockNumber:a,chain:m,contract:{name:w,blockCreated:_.blockCreated}});return _.address}class T5 extends Fe{constructor({max:m,min:w,signed:_,size:h,value:r}){super(`Number "${r}" is not in safe ${h?`${h*8}-bit ${_?"signed":"unsigned"} `:""}integer range ${m?`(${w} to ${m})`:`(above ${w})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class M5 extends Fe{constructor(m){super(`Hex value "${m}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class I5 extends Fe{constructor({givenSize:m,maxSize:w}){super(`Size cannot exceed ${w} bytes. Given size: ${m} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function Wr(a,{strict:m=!0}={}){return!a||typeof a!="string"?!1:m?/^0x[0-9a-fA-F]*$/.test(a):a.startsWith("0x")}function St(a){return Wr(a,{strict:!1})?Math.ceil((a.length-2)/2):a.length}function un(a,{dir:m="left"}={}){let w=typeof a=="string"?a.replace("0x",""):a,_=0;for(let h=0;h<w.length-1&&w[m==="left"?h:w.length-h-1].toString()==="0";h++)_++;return w=m==="left"?w.slice(_):w.slice(0,w.length-_),typeof a=="string"?(w.length===1&&m==="right"&&(w=`${w}0`),`0x${w.length%2===1?`0${w}`:w}`):w}class y6 extends Fe{constructor({offset:m,position:w,size:_}){super(`Slice ${w==="start"?"starting":"ending"} at offset "${m}" is out-of-bounds (size: ${_}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class g6 extends Fe{constructor({size:m,targetSize:w,type:_}){super(`${_.charAt(0).toUpperCase()}${_.slice(1).toLowerCase()} size (${m}) exceeds padding size (${w}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}function Ii(a,{dir:m,size:w=32}={}){return typeof a=="string"?ln(a,{dir:m,size:w}):D5(a,{dir:m,size:w})}function ln(a,{dir:m,size:w=32}={}){if(w===null)return a;const _=a.replace("0x","");if(_.length>w*2)throw new g6({size:Math.ceil(_.length/2),targetSize:w,type:"hex"});return`0x${_[m==="right"?"padEnd":"padStart"](w*2,"0")}`}function D5(a,{dir:m,size:w=32}={}){if(w===null)return a;if(a.length>w)throw new g6({size:a.length,targetSize:w,type:"bytes"});const _=new Uint8Array(w);for(let h=0;h<w;h++){const r=m==="right";_[r?h:w-h-1]=a[r?h:a.length-h-1]}return _}const B5=Array.from({length:256},(a,m)=>m.toString(16).padStart(2,"0"));function Gr(a,m={}){return typeof a=="number"||typeof a=="bigint"?it(a,m):typeof a=="string"?Fc(a,m):typeof a=="boolean"?b6(a,m):va(a,m)}function b6(a,m={}){const w=`0x${Number(a)}`;return typeof m.size=="number"?(_n(w,{size:m.size}),Ii(w,{size:m.size})):w}function va(a,m={}){let w="";for(let h=0;h<a.length;h++)w+=B5[a[h]];const _=`0x${w}`;return typeof m.size=="number"?(_n(_,{size:m.size}),Ii(_,{dir:"right",size:m.size})):_}function it(a,m={}){const{signed:w,size:_}=m,h=BigInt(a);let r;_?w?r=(1n<<BigInt(_)*8n-1n)-1n:r=2n**(BigInt(_)*8n)-1n:typeof a=="number"&&(r=BigInt(Number.MAX_SAFE_INTEGER));const s=typeof r=="bigint"&&w?-r-1n:0;if(r&&h>r||h<s){const f=typeof a=="bigint"?"n":"";throw new T5({max:r?`${r}${f}`:void 0,min:`${s}${f}`,signed:w,size:_,value:`${a}${f}`})}const i=`0x${(w&&h<0?(1n<<BigInt(_*8))+BigInt(h):h).toString(16)}`;return _?Ii(i,{size:_}):i}const R5=new TextEncoder;function Fc(a,m={}){const w=R5.encode(a);return va(w,m)}const N5=new TextEncoder;function jn(a,m={}){return typeof a=="number"||typeof a=="bigint"?U5(a,m):typeof a=="boolean"?L5(a,m):Wr(a)?jc(a,m):zr(a,m)}function L5(a,m={}){const w=new Uint8Array(1);return w[0]=Number(a),typeof m.size=="number"?(_n(w,{size:m.size}),Ii(w,{size:m.size})):w}function jc(a,m={}){let w=a;m.size&&(_n(w,{size:m.size}),w=Ii(w,{dir:"right",size:m.size}));let _=w.slice(2);_.length%2&&(_=`0${_}`);const h=new Uint8Array(_.length/2);for(let r=0;r<h.length;r++){const s=r*2,i=_.slice(s,s+2),f=Number.parseInt(i,16);if(Number.isNaN(f)||f<0)throw new Fe(`Invalid byte sequence ("${i}" in "${_}").`);h[r]=f}return h}function U5(a,m){const w=it(a,m);return jc(w)}function zr(a,m={}){const w=N5.encode(a);return typeof m.size=="number"?(_n(w,{size:m.size}),Ii(w,{dir:"right",size:m.size})):w}function _n(a,{size:m}){if(St(a)>m)throw new I5({givenSize:St(a),maxSize:m})}function Hc(a,m={}){const{signed:w}=m;m.size&&_n(a,{size:m.size});const _=BigInt(a);if(!w)return _;const h=(a.length-2)/2,r=(1n<<BigInt(h)*8n-1n)-1n;return _<=r?_:_-BigInt(`0x${"f".padStart(h*2,"f")}`)-1n}function F5(a,m={}){let w=a;if(m.size&&(_n(w,{size:m.size}),w=un(w)),un(w)==="0x00")return!1;if(un(w)==="0x01")return!0;throw new M5(w)}function jt(a,m={}){return Number(Hc(a,m))}function _6(a,m={}){let w=jc(a);return m.size&&(_n(w,{size:m.size}),w=un(w,{dir:"right"})),new TextDecoder().decode(w)}const w6={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function x6(a){const m={...a,blockHash:a.blockHash?a.blockHash:null,blockNumber:a.blockNumber?BigInt(a.blockNumber):null,chainId:a.chainId?jt(a.chainId):void 0,gas:a.gas?BigInt(a.gas):void 0,gasPrice:a.gasPrice?BigInt(a.gasPrice):void 0,maxFeePerGas:a.maxFeePerGas?BigInt(a.maxFeePerGas):void 0,maxPriorityFeePerGas:a.maxPriorityFeePerGas?BigInt(a.maxPriorityFeePerGas):void 0,nonce:a.nonce?jt(a.nonce):void 0,to:a.to?a.to:null,transactionIndex:a.transactionIndex?Number(a.transactionIndex):null,type:a.type?w6[a.type]:void 0,typeHex:a.type?a.type:void 0,value:a.value?BigInt(a.value):void 0,v:a.v?BigInt(a.v):void 0};return m.type==="legacy"&&(delete m.accessList,delete m.maxFeePerGas,delete m.maxPriorityFeePerGas),m.type==="eip2930"&&(delete m.maxFeePerGas,delete m.maxPriorityFeePerGas),m}function A6(a){const m=a.transactions?.map(w=>typeof w=="string"?w:x6(w));return{...a,baseFeePerGas:a.baseFeePerGas?BigInt(a.baseFeePerGas):null,difficulty:a.difficulty?BigInt(a.difficulty):void 0,gasLimit:a.gasLimit?BigInt(a.gasLimit):void 0,gasUsed:a.gasUsed?BigInt(a.gasUsed):void 0,hash:a.hash?a.hash:null,logsBloom:a.logsBloom?a.logsBloom:null,nonce:a.nonce?a.nonce:null,number:a.number?BigInt(a.number):null,size:a.size?BigInt(a.size):void 0,timestamp:a.timestamp?BigInt(a.timestamp):void 0,transactions:m,totalDifficulty:a.totalDifficulty?BigInt(a.totalDifficulty):null}}function Hn(a,{args:m,eventName:w}={}){return{...a,blockHash:a.blockHash?a.blockHash:null,blockNumber:a.blockNumber?BigInt(a.blockNumber):null,logIndex:a.logIndex?Number(a.logIndex):null,transactionHash:a.transactionHash?a.transactionHash:null,transactionIndex:a.transactionIndex?Number(a.transactionIndex):null,...w?{args:m,eventName:w}:{}}}const j5={"0x0":"reverted","0x1":"success"};function H5(a){return{...a,blockNumber:a.blockNumber?BigInt(a.blockNumber):null,contractAddress:a.contractAddress?a.contractAddress:null,cumulativeGasUsed:a.cumulativeGasUsed?BigInt(a.cumulativeGasUsed):null,effectiveGasPrice:a.effectiveGasPrice?BigInt(a.effectiveGasPrice):null,gasUsed:a.gasUsed?BigInt(a.gasUsed):null,logs:a.logs?a.logs.map(m=>Hn(m)):null,to:a.to?a.to:null,transactionIndex:a.transactionIndex?jt(a.transactionIndex):null,status:a.status?j5[a.status]:null,type:a.type?w6[a.type]||a.type:null}}function zc(a){return{...a,gas:typeof a.gas<"u"?it(a.gas):void 0,gasPrice:typeof a.gasPrice<"u"?it(a.gasPrice):void 0,maxFeePerGas:typeof a.maxFeePerGas<"u"?it(a.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof a.maxPriorityFeePerGas<"u"?it(a.maxPriorityFeePerGas):void 0,nonce:typeof a.nonce<"u"?it(a.nonce):void 0,value:typeof a.value<"u"?it(a.value):void 0}}class ma extends Fe{constructor({address:m}){super(`Address "${m}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}const z5={gwei:9,wei:18},q5={ether:-9,wei:9},$5={ether:-18,gwei:-9};function is(a,m){let w=a.toString();const _=w.startsWith("-");_&&(w=w.slice(1)),w=w.padStart(m,"0");let[h,r]=[w.slice(0,w.length-m),w.slice(w.length-m)];return r=r.replace(/(0+)$/,""),`${_?"-":""}${h||"0"}${r?`.${r}`:""}`}function Jt(a,m="wei"){return is(a,q5[m])}class di extends Fe{constructor({cause:m,message:w}={}){const _=w?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${_?`with reason: ${_}`:"for an unknown reason"}.`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(di,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(di,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class as extends Fe{constructor({cause:m,maxFeePerGas:w}={}){super(`The fee cap (\`maxFeePerGas\`${w?` = ${Jt(w)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(as,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class mf extends Fe{constructor({cause:m,maxFeePerGas:w}={}){super(`The fee cap (\`maxFeePerGas\`${w?` = ${Jt(w)}`:""} gwei) cannot be lower than the block base fee.`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(mf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class yf extends Fe{constructor({cause:m,nonce:w}={}){super(`Nonce provided for the transaction ${w?`(${w}) `:""}is higher than the next one expected.`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(yf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class gf extends Fe{constructor({cause:m,nonce:w}={}){super([`Nonce provided for the transaction ${w?`(${w}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` +`),{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(gf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported/});class bf extends Fe{constructor({cause:m,nonce:w}={}){super(`Nonce provided for the transaction ${w?`(${w}) `:""}exceeds the maximum allowed nonce.`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(bf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class _f extends Fe{constructor({cause:m}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` +`),{cause:m,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(_f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class wf extends Fe{constructor({cause:m,gas:w}={}){super(`The amount of gas ${w?`(${w}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(wf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class xf extends Fe{constructor({cause:m,gas:w}={}){super(`The amount of gas ${w?`(${w}) `:""}provided for the transaction is too low.`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(xf,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Af extends Fe{constructor({cause:m}){super("The transaction type is not supported for this chain.",{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Af,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class os extends Fe{constructor({cause:m,maxPriorityFeePerGas:w,maxFeePerGas:_}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${w?` = ${Jt(w)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${_?` = ${Jt(_)} gwei`:""}).`].join(` +`),{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(os,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class W5 extends Fe{constructor({cause:m}){super(`An error occurred while executing: ${m?.message}`,{cause:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}const V5=/^0x[a-fA-F0-9]{40}$/;function yi(a){return V5.test(a)}function Vr(a){return typeof a[0]=="string"?qc(a):K5(a)}function K5(a){let m=0;for(const h of a)m+=h.length;const w=new Uint8Array(m);let _=0;for(const h of a)w.set(h,_),_+=h.length;return w}function qc(a){return`0x${a.reduce((m,w)=>m+w.replace("0x",""),"")}`}function $c(a,m="wei"){return is(a,z5[m])}function Ns(a){const m=Object.entries(a).map(([_,h])=>h===void 0||h===!1?null:[_,h]).filter(Boolean),w=m.reduce((_,[h])=>Math.max(_,h.length),0);return m.map(([_,h])=>` ${`${_}:`.padEnd(w+1)} ${h}`).join(` +`)}class G5 extends Fe{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class J5 extends Fe{constructor(m,{account:w,docsPath:_,chain:h,data:r,gas:s,gasPrice:i,maxFeePerGas:f,maxPriorityFeePerGas:e,nonce:l,to:n,value:t}){const o=Ns({chain:h&&`${h?.name} (id: ${h?.id})`,from:w?.address,to:n,value:typeof t<"u"&&`${$c(t)} ${h?.nativeCurrency.symbol||"ETH"}`,data:r,gas:s,gasPrice:typeof i<"u"&&`${Jt(i)} gwei`,maxFeePerGas:typeof f<"u"&&`${Jt(f)} gwei`,maxPriorityFeePerGas:typeof e<"u"&&`${Jt(e)} gwei`,nonce:l});super(m.shortMessage,{cause:m,docsPath:_,metaMessages:[...m.metaMessages?[...m.metaMessages," "]:[],"Request Arguments:",o].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=m}}class E6 extends Fe{constructor({blockHash:m,blockNumber:w,blockTag:_,hash:h,index:r}){let s="Transaction";_&&r!==void 0&&(s=`Transaction at block time "${_}" at index "${r}"`),m&&r!==void 0&&(s=`Transaction at block hash "${m}" at index "${r}"`),w&&r!==void 0&&(s=`Transaction at block number "${w}" at index "${r}"`),h&&(s=`Transaction with hash "${h}"`),super(`${s} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class S6 extends Fe{constructor({hash:m}){super(`Transaction receipt with hash "${m}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class Q5 extends Fe{constructor({hash:m}){super(`Timed out while waiting for transaction with hash "${m}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}const Y5=m6(d6),X5=m6(h6);var Z5=Object.defineProperty,e_=(a,m,w)=>m in a?Z5(a,m,{enumerable:!0,configurable:!0,writable:!0,value:w}):a[m]=w,xt=(a,m,w)=>(e_(a,typeof m!="symbol"?m+"":m,w),w),Wc=(a,m,w)=>{if(!m.has(a))throw TypeError("Cannot "+w)},bt=(a,m,w)=>(Wc(a,m,"read from private field"),w?w.call(a):m.get(a)),tr=(a,m,w)=>{if(m.has(a))throw TypeError("Cannot add the same private member more than once");m instanceof WeakSet?m.add(a):m.set(a,w)},Vc=(a,m,w,_)=>(Wc(a,m,"write to private field"),_?_.call(a,w):m.set(a,w),w),kt=(a,m,w)=>(Wc(a,m,"access private method"),w),C6=class extends b5{constructor({chains:a=[X5,Y5],options:m}){super(),xt(this,"chains"),xt(this,"options"),xt(this,"storage"),this.chains=a,this.options=m}getBlockExplorerUrls(a){const{default:m,...w}=a.blockExplorers??{};if(m)return[m.url,...Object.values(w).map(_=>_.url)]}isChainUnsupported(a){return!this.chains.some(m=>m.id===a)}setStorage(a){this.storage=a}},t_=class extends Error{constructor({chainId:a,connectorId:m}){super(`Chain "${a}" not configured for connector "${m}".`),xt(this,"name","ChainNotConfiguredForConnectorError")}},On=class extends Error{constructor(){super(...arguments),xt(this,"name","ConnectorNotFoundError"),xt(this,"message","Connector not found")}};function z1(a){return typeof a=="string"?Number.parseInt(a,a.trim().substring(0,2)==="0x"?16:10):typeof a=="bigint"?Number(a):a}function Kn(a,{includeName:m=!1}={}){if(a.type!=="function"&&a.type!=="event"&&a.type!=="error")throw new v_(a.type);return`${a.name}(${Ls(a.inputs,{includeName:m})})`}function Ls(a,{includeName:m=!1}={}){return a?a.map(w=>r_(w,{includeName:m})).join(m?", ":","):""}function r_(a,{includeName:m}){return a.type.startsWith("tuple")?`(${Ls(a.components,{includeName:m})})${a.type.slice(5)}`:a.type+(m&&a.name?` ${a.name}`:"")}class n_ extends Fe{constructor({docsPath:m}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(` +`),{docsPath:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class q1 extends Fe{constructor({docsPath:m}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(` +`),{docsPath:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class Kc extends Fe{constructor({data:m,params:w,size:_}){super([`Data size of ${_} bytes is too small for given parameters.`].join(` +`),{metaMessages:[`Params: (${Ls(w,{includeName:!0})})`,`Data: ${m} (${_} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=m,this.params=w,this.size=_}}class Us extends Fe{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class i_ extends Fe{constructor({expectedLength:m,givenLength:w,type:_}){super([`ABI encoding array length mismatch for type ${_}.`,`Expected length: ${m}`,`Given length: ${w}`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class a_ extends Fe{constructor({expectedSize:m,value:w}){super(`Size of bytes "${w}" (bytes${St(w)}) does not match expected size (bytes${m}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class o_ extends Fe{constructor({expectedLength:m,givenLength:w}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${m}`,`Given length (values): ${w}`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class s_ extends Fe{constructor(m,{docsPath:w}){super([`Encoded error signature "${m}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${m}.`].join(` +`),{docsPath:w}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"})}}class u_ extends Fe{constructor({docsPath:m}){super("Cannot extract event signature from empty topics.",{docsPath:m}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class l_ extends Fe{constructor(m,{docsPath:w}){super([`Encoded event signature "${m}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${m}.`].join(` +`),{docsPath:w}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class $1 extends Fe{constructor(m,{docsPath:w}={}){super([`Event ${m?`"${m}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` +`),{docsPath:w}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class ss extends Fe{constructor(m,{docsPath:w}={}){super([`Function ${m?`"${m}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` +`),{docsPath:w}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class f_ extends Fe{constructor(m,{docsPath:w}){super([`Function "${m}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(` +`),{docsPath:w}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class c_ extends Fe{constructor({expectedSize:m,givenSize:w}){super(`Expected bytes${m}, got bytes${w}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class ya extends Fe{constructor({abiItem:m,data:w,params:_,size:h}){super([`Data size of ${h} bytes is too small for non-indexed event parameters.`].join(` +`),{metaMessages:[`Params: (${Ls(_,{includeName:!0})})`,`Data: ${w} (${h} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=m,this.data=w,this.params=_,this.size=h}}class Fs extends Fe{constructor({abiItem:m,param:w}){super([`Expected a topic for indexed event parameter${w.name?` "${w.name}"`:""} on event "${Kn(m,{includeName:!0})}".`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=m}}class d_ extends Fe{constructor(m,{docsPath:w}){super([`Type "${m}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` +`),{docsPath:w}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class h_ extends Fe{constructor(m,{docsPath:w}){super([`Type "${m}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` +`),{docsPath:w}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class p_ extends Fe{constructor(m){super([`Value "${m}" is not a valid array.`].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class v_ extends Fe{constructor(m){super([`"${m}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}class m_ extends Fe{constructor(m){super(`Filter type "${m}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}const y_=/((function|event)\s)?(.*)(\((.*)\))/;function k6(a){const m=a.match(y_),w=m?.[2]||void 0,_=m?.[3],h=m?.[5]||void 0;return{type:w,name:_,params:h}}function g_(a){return k6(a).name}function b_(a){return k6(a).params?.split(",").map(_=>_.trim().split(" "))?.map(_=>({type:_[0],name:_[1]==="indexed"?_[2]:_[1],..._[1]==="indexed"?{indexed:!0}:{}}))}function Ef(a){if(!Number.isSafeInteger(a)||a<0)throw new Error(`Wrong positive integer: ${a}`)}function __(a){if(typeof a!="boolean")throw new Error(`Expected boolean, not ${a}`)}function O6(a,...m){if(!(a instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(m.length>0&&!m.includes(a.length))throw new TypeError(`Expected Uint8Array of length ${m}, not of length=${a.length}`)}function w_(a){if(typeof a!="function"||typeof a.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ef(a.outputLen),Ef(a.blockLen)}function x_(a,m=!0){if(a.destroyed)throw new Error("Hash instance has been destroyed");if(m&&a.finished)throw new Error("Hash#digest() has already been called")}function A_(a,m){O6(a);const w=m.outputLen;if(a.length<w)throw new Error(`digestInto() expects output buffer of length at least ${w}`)}const Xn={number:Ef,bool:__,bytes:O6,hash:w_,exists:x_,output:A_},vo=BigInt(2**32-1),Sf=BigInt(32);function P6(a,m=!1){return m?{h:Number(a&vo),l:Number(a>>Sf&vo)}:{h:Number(a>>Sf&vo)|0,l:Number(a&vo)|0}}function E_(a,m=!1){let w=new Uint32Array(a.length),_=new Uint32Array(a.length);for(let h=0;h<a.length;h++){const{h:r,l:s}=P6(a[h],m);[w[h],_[h]]=[r,s]}return[w,_]}const S_=(a,m)=>BigInt(a>>>0)<<Sf|BigInt(m>>>0),C_=(a,m,w)=>a>>>w,k_=(a,m,w)=>a<<32-w|m>>>w,O_=(a,m,w)=>a>>>w|m<<32-w,P_=(a,m,w)=>a<<32-w|m>>>w,T_=(a,m,w)=>a<<64-w|m>>>w-32,M_=(a,m,w)=>a>>>w-32|m<<64-w,I_=(a,m)=>m,D_=(a,m)=>a,B_=(a,m,w)=>a<<w|m>>>32-w,R_=(a,m,w)=>m<<w|a>>>32-w,N_=(a,m,w)=>m<<w-32|a>>>64-w,L_=(a,m,w)=>a<<w-32|m>>>64-w;function U_(a,m,w,_){const h=(m>>>0)+(_>>>0);return{h:a+w+(h/2**32|0)|0,l:h|0}}const F_=(a,m,w)=>(a>>>0)+(m>>>0)+(w>>>0),j_=(a,m,w,_)=>m+w+_+(a/2**32|0)|0,H_=(a,m,w,_)=>(a>>>0)+(m>>>0)+(w>>>0)+(_>>>0),z_=(a,m,w,_,h)=>m+w+_+h+(a/2**32|0)|0,q_=(a,m,w,_,h)=>(a>>>0)+(m>>>0)+(w>>>0)+(_>>>0)+(h>>>0),$_=(a,m,w,_,h,r)=>m+w+_+h+r+(a/2**32|0)|0,ga={fromBig:P6,split:E_,toBig:S_,shrSH:C_,shrSL:k_,rotrSH:O_,rotrSL:P_,rotrBH:T_,rotrBL:M_,rotr32H:I_,rotr32L:D_,rotlSH:B_,rotlSL:R_,rotlBH:N_,rotlBL:L_,add:U_,add3L:F_,add3H:j_,add4L:H_,add4H:z_,add5H:$_,add5L:q_};/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const W_=a=>new Uint32Array(a.buffer,a.byteOffset,Math.floor(a.byteLength/4)),V_=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!V_)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(a,m)=>m.toString(16).padStart(2,"0"));function K_(a){if(typeof a!="string")throw new TypeError(`utf8ToBytes expected string, got ${typeof a}`);return new TextEncoder().encode(a)}function Gc(a){if(typeof a=="string"&&(a=K_(a)),!(a instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof a})`);return a}class G_{clone(){return this._cloneInto()}}function J_(a){const m=_=>a().update(Gc(_)).digest(),w=a();return m.outputLen=w.outputLen,m.blockLen=w.blockLen,m.create=()=>a(),m}function Q_(a){const m=(_,h)=>a(h).update(Gc(_)).digest(),w=a({});return m.outputLen=w.outputLen,m.blockLen=w.blockLen,m.create=_=>a(_),m}const[T6,M6,I6]=[[],[],[]],Y_=BigInt(0),Ki=BigInt(1),X_=BigInt(2),Z_=BigInt(7),e9=BigInt(256),t9=BigInt(113);for(let a=0,m=Ki,w=1,_=0;a<24;a++){[w,_]=[_,(2*w+3*_)%5],T6.push(2*(5*_+w)),M6.push((a+1)*(a+2)/2%64);let h=Y_;for(let r=0;r<7;r++)m=(m<<Ki^(m>>Z_)*t9)%e9,m&X_&&(h^=Ki<<(Ki<<BigInt(r))-Ki);I6.push(h)}const[r9,n9]=ga.split(I6,!0),W1=(a,m,w)=>w>32?ga.rotlBH(a,m,w):ga.rotlSH(a,m,w),V1=(a,m,w)=>w>32?ga.rotlBL(a,m,w):ga.rotlSL(a,m,w);function i9(a,m=24){const w=new Uint32Array(10);for(let _=24-m;_<24;_++){for(let s=0;s<10;s++)w[s]=a[s]^a[s+10]^a[s+20]^a[s+30]^a[s+40];for(let s=0;s<10;s+=2){const i=(s+8)%10,f=(s+2)%10,e=w[f],l=w[f+1],n=W1(e,l,1)^w[i],t=V1(e,l,1)^w[i+1];for(let o=0;o<50;o+=10)a[s+o]^=n,a[s+o+1]^=t}let h=a[2],r=a[3];for(let s=0;s<24;s++){const i=M6[s],f=W1(h,r,i),e=V1(h,r,i),l=T6[s];h=a[l],r=a[l+1],a[l]=f,a[l+1]=e}for(let s=0;s<50;s+=10){for(let i=0;i<10;i++)w[i]=a[s+i];for(let i=0;i<10;i++)a[s+i]^=~w[(i+2)%10]&w[(i+4)%10]}a[0]^=r9[_],a[1]^=n9[_]}w.fill(0)}class js extends G_{constructor(m,w,_,h=!1,r=24){if(super(),this.blockLen=m,this.suffix=w,this.outputLen=_,this.enableXOF=h,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Xn.number(_),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=W_(this.state)}keccak(){i9(this.state32,this.rounds),this.posOut=0,this.pos=0}update(m){Xn.exists(this);const{blockLen:w,state:_}=this;m=Gc(m);const h=m.length;for(let r=0;r<h;){const s=Math.min(w-this.pos,h-r);for(let i=0;i<s;i++)_[this.pos++]^=m[r++];this.pos===w&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:m,suffix:w,pos:_,blockLen:h}=this;m[_]^=w,w&128&&_===h-1&&this.keccak(),m[h-1]^=128,this.keccak()}writeInto(m){Xn.exists(this,!1),Xn.bytes(m),this.finish();const w=this.state,{blockLen:_}=this;for(let h=0,r=m.length;h<r;){this.posOut>=_&&this.keccak();const s=Math.min(_-this.posOut,r-h);m.set(w.subarray(this.posOut,this.posOut+s),h),this.posOut+=s,h+=s}return m}xofInto(m){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(m)}xof(m){return Xn.number(m),this.xofInto(new Uint8Array(m))}digestInto(m){if(Xn.output(m,this),this.finished)throw new Error("digest() was already called");return this.writeInto(m),this.destroy(),m}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(m){const{blockLen:w,suffix:_,outputLen:h,rounds:r,enableXOF:s}=this;return m||(m=new js(w,_,h,s,r)),m.state32.set(this.state32),m.pos=this.pos,m.posOut=this.posOut,m.finished=this.finished,m.rounds=r,m.suffix=_,m.outputLen=h,m.enableXOF=s,m.destroyed=this.destroyed,m}}const wn=(a,m,w)=>J_(()=>new js(m,a,w));wn(6,144,224/8);wn(6,136,256/8);wn(6,104,384/8);wn(6,72,512/8);wn(1,144,224/8);const a9=wn(1,136,256/8);wn(1,104,384/8);wn(1,72,512/8);const D6=(a,m,w)=>Q_((_={})=>new js(m,a,_.dkLen===void 0?w:_.dkLen,!0));D6(31,168,128/8);D6(31,136,256/8);function $t(a,m){const w=m||"hex",_=a9(Wr(a,{strict:!1})?jn(a):a);return w==="bytes"?_:Gr(_)}const B6=a=>$t(jn(a));function R6(a){const m=g_(a),w=b_(a)||[];return B6(`${m}(${w.map(({type:_})=>_).join(",")})`)}function N6(a){return B6(`${a.name}(${a.inputs.map(({type:m})=>m).join(",")})`)}const L6=a=>typeof a=="string"?R6(a):N6(a);function wt(a,m,w,{strict:_}={}){return Wr(a,{strict:!1})?s9(a,m,w,{strict:_}):o9(a,m,w,{strict:_})}function U6(a,m){if(typeof m=="number"&&m>0&&m>St(a)-1)throw new y6({offset:m,position:"start",size:St(a)})}function F6(a,m,w){if(typeof m=="number"&&typeof w=="number"&&St(a)!==w-m)throw new y6({offset:w,position:"end",size:St(a)})}function o9(a,m,w,{strict:_}={}){U6(a,m);const h=a.slice(m,w);return _&&F6(h,m,w),h}function s9(a,m,w,{strict:_}={}){U6(a,m);const h=`0x${a.replace("0x","").slice((m??0)*2,(w??a.length)*2)}`;return _&&F6(h,m,w),h}function Ja(a,m){if(a.length!==m.length)throw new o_({expectedLength:a.length,givenLength:m.length});const w=u9({params:a,values:m}),_=Qc(w);return _.length===0?"0x":_}function u9({params:a,values:m}){const w=[];for(let _=0;_<a.length;_++)w.push(Jc({param:a[_],value:m[_]}));return w}function Jc({param:a,value:m}){const w=Hs(a.type);if(w){const[_,h]=w;return f9(m,{length:_,param:{...a,type:h}})}if(a.type==="tuple")return v9(m,{param:a});if(a.type==="address")return l9(m);if(a.type==="bool")return d9(m);if(a.type.startsWith("uint")||a.type.startsWith("int")){const _=a.type.startsWith("int");return h9(m,{signed:_})}if(a.type.startsWith("bytes"))return c9(m,{param:a});if(a.type==="string")return p9(m);throw new d_(a.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Qc(a){let m=0;for(let r=0;r<a.length;r++){const{dynamic:s,encoded:i}=a[r];s?m+=32:m+=St(i)}const w=[],_=[];let h=0;for(let r=0;r<a.length;r++){const{dynamic:s,encoded:i}=a[r];s?(w.push(it(m+h,{size:32})),_.push(i),h+=St(i)):w.push(i)}return Vr([...w,..._])}function l9(a){if(!yi(a))throw new ma({address:a});return{dynamic:!1,encoded:ln(a.toLowerCase())}}function f9(a,{length:m,param:w}){const _=m===null;if(!Array.isArray(a))throw new p_(a);if(!_&&a.length!==m)throw new i_({expectedLength:m,givenLength:a.length,type:`${w.type}[${m}]`});let h=!1;const r=[];for(let s=0;s<a.length;s++){const i=Jc({param:w,value:a[s]});i.dynamic&&(h=!0),r.push(i)}if(_||h){const s=Qc(r);if(_){const i=it(r.length,{size:32});return{dynamic:!0,encoded:r.length>0?Vr([i,s]):i}}if(h)return{dynamic:!0,encoded:s}}return{dynamic:!1,encoded:Vr(r.map(({encoded:s})=>s))}}function c9(a,{param:m}){const[w,_]=m.type.split("bytes");if(!_){const h=Math.ceil(St(a)/32),r=[];for(let s=0;s<h;s++)r.push(ln(wt(a,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Vr([ln(it(St(a),{size:32})),...r])}}if(St(a)!==parseInt(_))throw new a_({expectedSize:parseInt(_),value:a});return{dynamic:!1,encoded:ln(a,{dir:"right"})}}function d9(a){return{dynamic:!1,encoded:ln(b6(a))}}function h9(a,{signed:m}){return{dynamic:!1,encoded:it(a,{size:32,signed:m})}}function p9(a){const m=Fc(a),w=Math.ceil(St(m)/32),_=[];for(let h=0;h<w;h++)_.push(ln(wt(m,h*32,(h+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Vr([ln(it(St(m),{size:32})),..._])}}function v9(a,{param:m}){let w=!1;const _=[];for(let h=0;h<m.components.length;h++){const r=m.components[h],s=Array.isArray(a)?h:r.name,i=Jc({param:r,value:a[s]});_.push(i),i.dynamic&&(w=!0)}return{dynamic:w,encoded:w?Qc(_):Vr(_.map(({encoded:h})=>h))}}function Hs(a){const m=a.match(/^(.*)\[(\d+)?\]$/);return m?[m[2]?Number(m[2]):null,m[1]]:void 0}function Qa({abi:a,args:m=[],name:w}){const _=a.filter(h=>"name"in h&&h.name===w);if(_.length!==0){if(_.length===1)return _[0];for(const h of _){if(!("inputs"in h))continue;if(!m||m.length===0){if(!h.inputs||h.inputs.length===0)return h;continue}if(!h.inputs||h.inputs.length===0||h.inputs.length!==m.length)continue;if(m.every((s,i)=>{const f="inputs"in h&&h.inputs[i];return f?Cf(s,f):!1}))return h}return _[0]}}function Cf(a,m){const w=typeof a,_=m.type;switch(_){case"address":return yi(a);case"bool":return w==="boolean";case"function":return w==="string";case"string":return w==="string";default:return _==="tuple"&&"components"in m?Object.values(m.components).every((h,r)=>Cf(Object.values(a)[r],h)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(_)?w==="number"||w==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(_)?w==="string"||a instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(_)?Array.isArray(a)&&a.every(h=>Cf(h,{...m,type:_.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Yc({abi:a,eventName:m,args:w}){let _=a[0];if(m&&(_=Qa({abi:a,args:w,name:m}),!_))throw new $1(m,{docsPath:"/docs/contract/encodeEventTopics"});if(_.type!=="event")throw new $1(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const h=Kn(_),r=L6(h);let s=[];if(w&&"inputs"in _){const i=_.inputs?.filter(e=>"indexed"in e&&e.indexed),f=Array.isArray(w)?w:Object.values(w).length>0?i?.map(e=>w[e.name])??[]:[];f.length>0&&(s=i?.map((e,l)=>Array.isArray(f[l])?f[l].map((n,t)=>K1({param:e,value:f[l][t]})):f[l]?K1({param:e,value:f[l]}):null)??[])}return[r,...s]}function K1({param:a,value:m}){if(a.type==="string"||a.type==="bytes")return $t(jn(m));if(a.type==="tuple"||a.type.match(/^(.*)\[(\d+)?\]$/))throw new m_(a.type);return Ja([a],[m])}function zs(a,{method:m}){const w={};return a.transport.type==="fallback"&&a.transport.onResponse?.(({method:_,response:h,status:r,transport:s})=>{r==="success"&&m===_&&(w[h]=s.request)}),_=>w[_]||a.request}async function j6(a,{address:m,abi:w,args:_,eventName:h,fromBlock:r,strict:s,toBlock:i}){const f=zs(a,{method:"eth_newFilter"}),e=h?Yc({abi:w,args:_,eventName:h}):void 0,l=await a.request({method:"eth_newFilter",params:[{address:m,fromBlock:typeof r=="bigint"?it(r):r,toBlock:typeof i=="bigint"?it(i):i,topics:e}]});return{abi:w,args:_,eventName:h,id:l,request:f(l),strict:s,type:"event"}}function yr(a){return typeof a=="string"?{address:a,type:"json-rpc"}:a}const H6=a=>wt(typeof a=="string"?R6(a):N6(a),0,4);function xn({abi:a,args:m,functionName:w}){let _=a[0];if(w&&(_=Qa({abi:a,args:m,name:w}),!_))throw new ss(w,{docsPath:"/docs/contract/encodeFunctionData"});if(_.type!=="function")throw new ss(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const h=Kn(_),r=H6(h),s="inputs"in _&&_.inputs?Ja(_.inputs,m??[]):void 0;return qc([r,s??"0x"])}const z6={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},m9={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},y9={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function Xc(a,m){const w=m?`${m}${a.toLowerCase()}`:a.substring(2).toLowerCase(),_=$t(zr(w),"bytes"),h=(m?w.substring(`${m}0x`.length):w).split("");for(let r=0;r<40;r+=2)_[r>>1]>>4>=8&&h[r]&&(h[r]=h[r].toUpperCase()),(_[r>>1]&15)>=8&&h[r+1]&&(h[r+1]=h[r+1].toUpperCase());return`0x${h.join("")}`}function fn(a,m){if(!yi(a))throw new ma({address:a});return Xc(a,m)}function qs(a,m){if(m==="0x"&&a.length>0)throw new Us;if(St(m)&&St(m)<32)throw new Kc({data:m,params:a,size:St(m)});return g9({data:m,params:a})}function g9({data:a,params:m}){const w=[];let _=0;for(let h=0;h<m.length;h++){if(_>=St(a))throw new Kc({data:a,params:m,size:St(a)});const r=m[h],{consumed:s,value:i}=hi({data:a,param:r,position:_});w.push(i),_+=s}return w}function hi({data:a,param:m,position:w}){const _=Hs(m.type);if(_){const[r,s]=_;return _9(a,{length:r,param:{...m,type:s},position:w})}if(m.type==="tuple")return S9(a,{param:m,position:w});if(m.type==="string")return E9(a,{position:w});if(m.type.startsWith("bytes"))return x9(a,{param:m,position:w});const h=wt(a,w,w+32,{strict:!0});if(m.type.startsWith("uint")||m.type.startsWith("int"))return A9(h,{param:m});if(m.type==="address")return b9(h);if(m.type==="bool")return w9(h);throw new h_(m.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function b9(a){return{consumed:32,value:Xc(wt(a,-20))}}function _9(a,{param:m,length:w,position:_}){if(!w){const s=jt(wt(a,_,_+32,{strict:!0})),i=jt(wt(a,s,s+32,{strict:!0}));let f=0;const e=[];for(let l=0;l<i;++l){const n=hi({data:wt(a,s+32),param:m,position:f});f+=n.consumed,e.push(n.value)}return{value:e,consumed:32}}if(us(m)){const i=!Hs(m.type)?.[0];let f=0;const e=[];for(let l=0;l<w;++l){const n=jt(wt(a,_,_+32,{strict:!0})),t=hi({data:wt(a,n),param:m,position:i?f:l*32});f+=t.consumed,e.push(t.value)}return{value:e,consumed:32}}let h=0;const r=[];for(let s=0;s<w;++s){const i=hi({data:a,param:m,position:_+h});h+=i.consumed,r.push(i.value)}return{value:r,consumed:h}}function w9(a){return{consumed:32,value:F5(a)}}function x9(a,{param:m,position:w}){const[_,h]=m.type.split("bytes");if(!h){const s=jt(wt(a,w,w+32,{strict:!0})),i=jt(wt(a,s,s+32,{strict:!0}));return i===0?{consumed:32,value:"0x"}:{consumed:32,value:wt(a,s+32,s+32+i,{strict:!0})}}return{consumed:32,value:wt(a,w,w+parseInt(h),{strict:!0})}}function A9(a,{param:m}){const w=m.type.startsWith("int");return{consumed:32,value:parseInt(m.type.split("int")[1]||"256")>48?Hc(a,{signed:w}):jt(a,{signed:w})}}function E9(a,{position:m}){const w=jt(wt(a,m,m+32,{strict:!0})),_=jt(wt(a,w,w+32,{strict:!0}));return _===0?{consumed:32,value:""}:{consumed:32,value:_6(un(wt(a,w+32,w+32+_,{strict:!0})))}}function S9(a,{param:m,position:w}){const _=m.components.length===0||m.components.some(({name:s})=>!s),h=_?[]:{};let r=0;if(us(m)){const s=jt(wt(a,w,w+32,{strict:!0}));for(let i=0;i<m.components.length;++i){const f=m.components[i],e=hi({data:wt(a,s),param:f,position:r});r+=e.consumed,h[_?i:f?.name]=e.value}return{consumed:32,value:h}}for(let s=0;s<m.components.length;++s){const i=m.components[s],f=hi({data:a,param:i,position:w+r});r+=f.consumed,h[_?s:i?.name]=f.value}return{consumed:r,value:h}}function us(a){const{type:m}=a;if(m==="string"||m==="bytes"||m.endsWith("[]"))return!0;if(m==="tuple")return a.components?.some(us);const w=Hs(a.type);return!!(w&&us({...a,type:w[1]}))}function C9({abi:a,data:m}){const w=wt(m,0,4);if(w==="0x")throw new Us;const h=[...a||[],m9,y9].find(r=>r.type==="error"&&w===H6(Kn(r)));if(!h)throw new s_(w,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:h,args:"inputs"in h&&h.inputs&&h.inputs.length>0?qs(h.inputs,wt(m,4)):void 0,errorName:h.name}}const Ht=(a,m,w)=>JSON.stringify(a,(_,h)=>{const r=typeof h=="bigint"?h.toString():h;return typeof m=="function"?m(_,r):r},w);function q6({abiItem:a,args:m,includeFunctionName:w=!0,includeName:_=!1}){if("name"in a&&"inputs"in a&&a.inputs)return`${w?a.name:""}(${a.inputs.map((h,r)=>`${_&&h.name?`${h.name}: `:""}${typeof m[r]=="object"?Ht(m[r]):m[r]}`).join(", ")})`}class $6 extends Fe{constructor(m,{account:w,docsPath:_,chain:h,data:r,gas:s,gasPrice:i,maxFeePerGas:f,maxPriorityFeePerGas:e,nonce:l,to:n,value:t}){const o=w?yr(w):void 0,d=Ns({from:o?.address,to:n,value:typeof t<"u"&&`${$c(t)} ${h?.nativeCurrency.symbol||"ETH"}`,data:r,gas:s,gasPrice:typeof i<"u"&&`${Jt(i)} gwei`,maxFeePerGas:typeof f<"u"&&`${Jt(f)} gwei`,maxPriorityFeePerGas:typeof e<"u"&&`${Jt(e)} gwei`,nonce:l});super(m.shortMessage,{cause:m,docsPath:_,metaMessages:[...m.metaMessages?[...m.metaMessages," "]:[],"Raw Call Arguments:",d].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=m}}class Zc extends Fe{constructor(m,{abi:w,args:_,contractAddress:h,docsPath:r,functionName:s,sender:i}){const f=Qa({abi:w,args:_,name:s}),e=f?q6({abiItem:f,args:_,includeFunctionName:!1,includeName:!1}):void 0,l=f?Kn(f,{includeName:!0}):void 0,n=Ns({address:h&&S5(h),function:l,args:e&&e!=="()"&&`${[...Array(s?.length??0).keys()].map(()=>" ").join("")}${e}`,sender:i});super(m.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:m,docsPath:r,metaMessages:[...m.metaMessages?[...m.metaMessages," "]:[],"Contract Call:",n].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=w,this.args=_,this.cause=m,this.contractAddress=h,this.functionName=s,this.sender=i}}class kf extends Fe{constructor({abi:m,data:w,functionName:_,message:h}){let r,s,i;if(w&&w!=="0x"){r=C9({abi:m,data:w});const{abiItem:f,errorName:e,args:l}=r;if(e==="Error")i=l[0];else if(e==="Panic"){const[n]=l;i=z6[n]}else{const n=f?Kn(f,{includeName:!0}):void 0,t=f&&l?q6({abiItem:f,args:l,includeFunctionName:!1,includeName:!1}):void 0;s=[n?`Error: ${n}`:"",t&&t!=="()"?` ${[...Array(e?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}else h&&(i=h);super(i&&i!=="execution reverted"?[`The contract function "${_}" reverted with the following reason:`,i].join(` +`):`The contract function "${_}" reverted.`,{metaMessages:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.reason=i,this.data=r}}class k9 extends Fe{constructor({functionName:m}){super(`The contract function "${m}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${m}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class ed extends Fe{constructor({data:m,message:w}){super(w||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=m}}const O9=3;function ba(a,{abi:m,address:w,args:_,docsPath:h,functionName:r,sender:s}){const{code:i,data:f,message:e,shortMessage:l}=a instanceof ed?a:a instanceof Fe?a.walk(t=>"data"in t)||a.walk():{};let n=a;return a instanceof Us?n=new k9({functionName:r}):i===O9&&(f||e||l)&&(n=new kf({abi:m,data:typeof f=="object"?f.data:f,functionName:r,message:l??e})),new Zc(n,{abi:m,args:_,contractAddress:w,docsPath:h,functionName:r,sender:s})}class Ya extends Fe{constructor({docsPath:m}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join(` +`),{docsPath:m,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}class P9 extends Fe{constructor(m,{account:w,docsPath:_,chain:h,data:r,gas:s,gasPrice:i,maxFeePerGas:f,maxPriorityFeePerGas:e,nonce:l,to:n,value:t}){const o=Ns({from:w?.address,to:n,value:typeof t<"u"&&`${$c(t)} ${h?.nativeCurrency.symbol||"ETH"}`,data:r,gas:s,gasPrice:typeof i<"u"&&`${Jt(i)} gwei`,maxFeePerGas:typeof f<"u"&&`${Jt(f)} gwei`,maxPriorityFeePerGas:typeof e<"u"&&`${Jt(e)} gwei`,nonce:l});super(m.shortMessage,{cause:m,docsPath:_,metaMessages:[...m.metaMessages?[...m.metaMessages," "]:[],"Estimate Gas Arguments:",o].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=m}}class ia extends Fe{constructor({body:m,details:w,headers:_,status:h,url:r}){super("HTTP request failed.",{details:w,metaMessages:[h&&`Status: ${h}`,`URL: ${Rs(r)}`,m&&`Request body: ${Ht(m)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=m,this.headers=_,this.status=h,this.url=r}}class T9 extends Fe{constructor({body:m,details:w,url:_}){super("WebSocket request failed.",{details:w,metaMessages:[`URL: ${Rs(_)}`,`Request body: ${Ht(m)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class $s extends Fe{constructor({body:m,error:w,url:_}){super("RPC Request failed.",{cause:w,details:w.message,metaMessages:[`URL: ${Rs(_)}`,`Request body: ${Ht(m)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=w.code}}class Of extends Fe{constructor({body:m,url:w}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${Rs(w)}`,`Request body: ${Ht(m)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}const M9=-1;class Kt extends Fe{constructor(m,{code:w,docsPath:_,metaMessages:h,shortMessage:r}){super(r,{cause:m,docsPath:_,metaMessages:h||m?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=m.name,this.code=m instanceof $s?m.code:w??M9}}class Di extends Kt{constructor(m,w){super(m,w),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=w.data}}class _a extends Kt{constructor(m){super(m,{code:_a.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(_a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class wa extends Kt{constructor(m){super(m,{code:wa.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(wa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class xa extends Kt{constructor(m){super(m,{code:xa.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(xa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Aa extends Kt{constructor(m){super(m,{code:Aa.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(` +`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(Aa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Ea extends Kt{constructor(m){super(m,{code:Ea.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(Ea,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class gi extends Kt{constructor(m){super(m,{code:gi.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(` +`)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(gi,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Sa extends Kt{constructor(m){super(m,{code:Sa.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Sa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class bi extends Kt{constructor(m){super(m,{code:bi.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(bi,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class _i extends Kt{constructor(m){super(m,{code:_i.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(_i,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Ca extends Kt{constructor(m){super(m,{code:Ca.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(Ca,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class ka extends Kt{constructor(m){super(m,{code:ka.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(ka,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Oa extends Kt{constructor(m){super(m,{code:Oa.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(Oa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class fr extends Di{constructor(m){super(m,{code:fr.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(fr,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Pa extends Di{constructor(m){super(m,{code:Pa.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(Pa,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Ta extends Di{constructor(m){super(m,{code:Ta.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(Ta,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Ma extends Di{constructor(m){super(m,{code:Ma.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(Ma,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Ia extends Di{constructor(m){super(m,{code:Ia.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(Ia,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class pn extends Di{constructor(m){super(m,{code:pn.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(pn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class I9 extends Kt{constructor(m){super(m,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}function td(a){return a instanceof _i||a instanceof gi||a instanceof $s&&a.code===di.code}function rd(a,m){const w=a.details.toLowerCase();return as.nodeMessage.test(w)?new as({cause:a,maxFeePerGas:m?.maxFeePerGas}):mf.nodeMessage.test(w)?new mf({cause:a,maxFeePerGas:m?.maxFeePerGas}):yf.nodeMessage.test(w)?new yf({cause:a,nonce:m?.nonce}):gf.nodeMessage.test(w)?new gf({cause:a,nonce:m?.nonce}):bf.nodeMessage.test(w)?new bf({cause:a,nonce:m?.nonce}):_f.nodeMessage.test(w)?new _f({cause:a}):wf.nodeMessage.test(w)?new wf({cause:a,gas:m?.gas}):xf.nodeMessage.test(w)?new xf({cause:a,gas:m?.gas}):Af.nodeMessage.test(w)?new Af({cause:a}):os.nodeMessage.test(w)?new os({cause:a,maxFeePerGas:m?.maxFeePerGas,maxPriorityFeePerGas:m?.maxPriorityFeePerGas}):w.match(di.nodeMessage)||"code"in a.cause&&a.cause?.code===di.code?new di({cause:a,message:a.cause.details||a.details}):new W5({cause:a.cause.cause})}function D9(a,{docsPath:m,...w}){let _=a;return td(a)&&(_=rd(a,w)),new P9(_,{docsPath:m,...w})}function nd(a,{format:m}){return m?Object.keys(m({})).reduce((_,h)=>(a?.hasOwnProperty(h)&&(_[h]=a[h]),_),{}):{}}function Ws(a){const{account:m,gasPrice:w,maxFeePerGas:_,maxPriorityFeePerGas:h,to:r}=a,s=m?yr(m):void 0;if(s&&!yi(s.address))throw new ma({address:s.address});if(r&&!yi(r))throw new ma({address:r});if(typeof w<"u"&&(typeof _<"u"||typeof h<"u"))throw new G5;if(_&&_>2n**256n-1n)throw new as({maxFeePerGas:_});if(h&&_&&h>_)throw new os({maxFeePerGas:_,maxPriorityFeePerGas:h})}class B9 extends Fe{constructor({blockHash:m,blockNumber:w}){let _="Block";m&&(_=`Block at hash "${m}"`),w&&(_=`Block at number "${w}"`),super(`${_} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}async function Da(a,{blockHash:m,blockNumber:w,blockTag:_="latest",includeTransactions:h=!1}={}){const r=w!==void 0?it(w):void 0;let s=null;if(m?s=await a.request({method:"eth_getBlockByHash",params:[m,h]}):s=await a.request({method:"eth_getBlockByNumber",params:[r||_,h]}),!s)throw new B9({blockHash:m,blockNumber:w});return(a.chain?.formatters?.block?.format||A6)(s)}async function W6(a){const m=await a.request({method:"eth_gasPrice"});return BigInt(m)}async function V6(a,{address:m,blockTag:w="latest",blockNumber:_}){const h=await a.request({method:"eth_getTransactionCount",params:[m,_?it(_):w]});return jt(h)}const il=1500000000n;async function K6(a,m){const{account:w,gas:_,gasPrice:h,maxFeePerGas:r,maxPriorityFeePerGas:s,nonce:i}=m;if(!w)throw new Ya;const f=yr(w),e=await Da(a,{blockTag:"latest"}),l={...m,from:f.address};if(typeof i>"u"&&(l.nonce=await V6(a,{address:f.address,blockTag:"pending"})),typeof e.baseFeePerGas=="bigint"){if(typeof h<"u")throw new Fe("Chain does not support legacy `gasPrice`.");if(typeof r>"u")l.maxPriorityFeePerGas=s??il,l.maxFeePerGas=e.baseFeePerGas*120n/100n+l.maxPriorityFeePerGas;else{if(typeof s>"u"&&r<il)throw new Fe("`maxFeePerGas` cannot be less than the default `maxPriorityFeePerGas` (1.5 gwei).");l.maxFeePerGas=r,l.maxPriorityFeePerGas=s??il}}else{if(typeof r<"u"||typeof s<"u")throw new Fe("Chain does not support EIP-1559 fees.");typeof h>"u"&&(l.gasPrice=await W6(a)*120n/100n)}return typeof _>"u"&&(l.gas=await id(a,{...l,account:{address:f.address,type:"json-rpc"}})),Ws(l),l}async function id(a,m){const w=m.account??a.account;if(!w)throw new Ya({docsPath:"/docs/actions/public/estimateGas"});const _=yr(w);try{const{accessList:h,blockNumber:r,blockTag:s,data:i,gas:f,gasPrice:e,maxFeePerGas:l,maxPriorityFeePerGas:n,nonce:t,to:o,value:d,...u}=_.type==="local"?await K6(a,m):m,g=(r?it(r):void 0)||s;Ws(m);const p=a.chain?.formatters?.transactionRequest?.format||zc,v=p({...nd(u,{format:p}),from:_.address,accessList:h,data:i,gas:f,gasPrice:e,maxFeePerGas:l,maxPriorityFeePerGas:n,nonce:t,to:o,value:d}),y=await a.request({method:"eth_estimateGas",params:g?[v,g]:[v]});return BigInt(y)}catch(h){throw D9(h,{...m,account:_,chain:a.chain})}}async function R9(a,{abi:m,address:w,args:_,functionName:h,...r}){const s=xn({abi:m,args:_,functionName:h});try{return await id(a,{data:s,to:w,...r})}catch(i){const f=r.account?yr(r.account):void 0;throw ba(i,{abi:m,address:w,args:_,docsPath:"/docs/contract/simulateContract",functionName:h,sender:f?.address})}}const al="/docs/contract/decodeFunctionResult";function Bi({abi:a,args:m,functionName:w,data:_}){let h=a[0];if(w&&(h=Qa({abi:a,args:m,name:w}),!h))throw new ss(w,{docsPath:al});if(h.type!=="function")throw new ss(void 0,{docsPath:al});if(!h.outputs)throw new f_(h.name,{docsPath:al});const r=qs(h.outputs,_);if(r&&r.length>1)return r;if(r&&r.length===1)return r[0]}const N9="modulepreload",L9=function(a){return"/selfcrypto/"+a},G1={},Vs=function(m,w,_){if(!w||w.length===0)return m();const h=document.getElementsByTagName("link");return Promise.all(w.map(r=>{if(r=L9(r),r in G1)return;G1[r]=!0;const s=r.endsWith(".css"),i=s?'[rel="stylesheet"]':"";if(!!_)for(let l=h.length-1;l>=0;l--){const n=h[l];if(n.href===r&&(!s||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${i}`))return;const e=document.createElement("link");if(e.rel=s?"stylesheet":N9,s||(e.as="script",e.crossOrigin=""),e.href=r,document.head.appendChild(e),s)return new Promise((l,n)=>{e.addEventListener("load",l),e.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>m()).catch(r=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r})},Pf=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],G6=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],J6=[...G6,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],U9=[...G6,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],J1=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],Q1=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],F9=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}],j9="0x82ad56cb";function H9(a,{docsPath:m,...w}){let _=a;return td(a)&&(_=rd(a,w)),new $6(_,{docsPath:m,...w})}const ol=new Map;function ad({fn:a,id:m,shouldSplitBatch:w,wait:_=0}){const h=async()=>{const e=i();r();const l=e.map(({args:n})=>n);l.length!==0&&a(l).then(n=>{e.forEach(({pendingPromise:t},o)=>t.resolve?.([n[o],n]))}).catch(n=>{e.forEach(({pendingPromise:t})=>t.reject?.(n))})},r=()=>ol.delete(m),s=()=>i().map(({args:e})=>e),i=()=>ol.get(m)||[],f=e=>ol.set(m,[...i(),e]);return{flush:r,async schedule(e){const l={},n=new Promise((d,u)=>{l.resolve=d,l.reject=u});return w?.([...s(),e])&&h(),i().length>0?(f({args:e,pendingPromise:l}),n):(f({args:e,pendingPromise:l}),setTimeout(h,_),n)}}}async function Ks(a,m){const{account:w,batch:_=!!a.batch?.multicall,blockNumber:h,blockTag:r="latest",accessList:s,data:i,gas:f,gasPrice:e,maxFeePerGas:l,maxPriorityFeePerGas:n,nonce:t,to:o,value:d,...u}=m,c=w?yr(w):void 0;try{Ws(m);const p=(h?it(h):void 0)||r,v=a.chain?.formatters?.transactionRequest?.format||zc,y=v({...nd(u,{format:v}),from:c?.address,accessList:s,data:i,gas:f,gasPrice:e,maxFeePerGas:l,maxPriorityFeePerGas:n,nonce:t,to:o,value:d});if(_&&z9({request:y}))try{return await q9(a,{...y,blockNumber:h,blockTag:r})}catch(A){if(!(A instanceof v6)&&!(A instanceof vf))throw A}const b=await a.request({method:"eth_call",params:p?[y,p]:[y]});return b==="0x"?{data:void 0}:{data:b}}catch(g){const p=$9(g),{offchainLookup:v,offchainLookupSignature:y}=await Vs(()=>import("./ccip-b3745bba.js"),[]);if(p?.slice(0,10)===y&&o)return{data:await v(a,{data:p,to:o})};throw H9(g,{...m,account:c,chain:a.chain})}}function z9({request:a}){const{data:m,to:w,..._}=a;return!(!m||m.startsWith(j9)||!w||Object.values(_).filter(h=>typeof h<"u").length>0)}async function q9(a,m){const{batchSize:w=1024,wait:_=0}=typeof a.batch?.multicall=="object"?a.batch.multicall:{},{blockNumber:h,blockTag:r="latest",data:s,multicallAddress:i,to:f}=m;let e=i;if(!e){if(!a.chain)throw new v6;e=Mi({blockNumber:h,chain:a.chain,contract:"multicall3"})}const n=(h?it(h):void 0)||r,{schedule:t}=ad({id:`${a.uid}.${n}`,wait:_,shouldSplitBatch(u){return u.reduce((g,{data:p})=>g+(p.length-2),0)>w*2},fn:async u=>{const c=u.map(v=>({allowFailure:!0,callData:v.data,target:v.to})),g=xn({abi:Pf,args:[c],functionName:"aggregate3"}),p=await a.request({method:"eth_call",params:[{data:g,to:e},n]});return Bi({abi:Pf,args:[c],functionName:"aggregate3",data:p||"0x"})}}),[{returnData:o,success:d}]=await t({data:s,to:f});if(!d)throw new ed({data:o});return o==="0x"?{data:void 0}:{data:o}}function $9(a){if(!(a instanceof Fe))return;const m=a.walk();return typeof m.data=="object"?m.data.data:m.data}async function vn(a,{abi:m,address:w,args:_,functionName:h,...r}){const s=xn({abi:m,args:_,functionName:h});try{const{data:i}=await Ks(a,{data:s,to:w,...r});return Bi({abi:m,args:_,functionName:h,data:i||"0x"})}catch(i){throw ba(i,{abi:m,address:w,args:_,docsPath:"/docs/contract/readContract",functionName:h})}}async function W9(a,{abi:m,address:w,args:_,dataSuffix:h,functionName:r,...s}){const i=s.account?yr(s.account):void 0,f=xn({abi:m,args:_,functionName:r});try{const{data:e}=await Ks(a,{batch:!1,data:`${f}${h?h.replace("0x",""):""}`,to:w,...s});return{result:Bi({abi:m,args:_,functionName:r,data:e||"0x"}),request:{abi:m,address:w,args:_,dataSuffix:h,functionName:r,...s}}}catch(e){throw ba(e,{abi:m,address:w,args:_,docsPath:"/docs/contract/simulateContract",functionName:r,sender:i?.address})}}const sl=new Map,Y1=new Map;let V9=0;function Ri(a,m,w){const _=++V9,h=()=>sl.get(a)||[],r=()=>{const l=h();sl.set(a,l.filter(n=>n.id!==_))},s=()=>{const l=Y1.get(a);h().length===1&&l&&l(),r()},i=h();if(sl.set(a,[...i,{id:_,fns:m}]),i&&i.length>0)return s;const f={};for(const l in m)f[l]=(...n)=>{const t=h();t.length!==0&&t.forEach(o=>o.fns[l]?.(...n))};const e=w(f);return typeof e=="function"&&Y1.set(a,e),s}async function ls(a){return new Promise(m=>setTimeout(m,a))}function Xa(a,{emitOnBegin:m,initialWaitTime:w,interval:_}){let h=!0;const r=()=>h=!1;return(async()=>{let i;m&&(i=await a({unpoll:r}));const f=await w?.(i)??_;await ls(f);const e=async()=>{h&&(await a({unpoll:r}),await ls(_),e())};e()})(),r}const K9=new Map,G9=new Map;function J9(a){const m=(h,r)=>({clear:()=>r.delete(h),get:()=>r.get(h),set:s=>r.set(h,s)}),w=m(a,K9),_=m(a,G9);return{clear:()=>{w.clear(),_.clear()},promise:w,response:_}}async function Q9(a,{cacheKey:m,maxAge:w=1/0}){const _=J9(m),h=_.response.get();if(h&&w>0&&new Date().getTime()-h.created.getTime()<w)return h.data;let r=_.promise.get();r||(r=a(),_.promise.set(r));try{const s=await r;return _.response.set({created:new Date,data:s}),s}finally{_.promise.clear()}}const Y9=a=>`blockNumber.${a}`;async function Za(a,{maxAge:m=a.pollingInterval}={}){const w=await Q9(()=>a.request({method:"eth_blockNumber"}),{cacheKey:Y9(a.uid),maxAge:m});return BigInt(w)}const X1="/docs/contract/decodeEventLog";function od({abi:a,data:m,strict:w,topics:_}){const h=w??!0,[r,...s]=_;if(!r)throw new u_({docsPath:X1});const i=a.find(d=>d.type==="event"&&r===L6(Kn(d)));if(!(i&&"name"in i)||i.type!=="event")throw new l_(r,{docsPath:X1});const{name:f,inputs:e}=i,l=e?.some(d=>!("name"in d&&d.name));let n=l?[]:{};const t=e.filter(d=>"indexed"in d&&d.indexed);if(s.length>0)for(let d=0;d<t.length;d++){const u=t[d],c=s[d];if(!c)throw new Fs({abiItem:i,param:u});n[u.name||d]=X9({param:u,value:c})}const o=e.filter(d=>!("indexed"in d&&d.indexed));if(o.length>0){if(m&&m!=="0x")try{const d=qs(o,m);if(d)if(l)n=[...n,...d];else for(let u=0;u<o.length;u++)n[o[u].name]=d[u]}catch(d){if(h)throw d instanceof Kc?new ya({abiItem:i,data:d.data,params:d.params,size:d.size}):d}else if(h)throw new ya({abiItem:i,data:"0x",params:o,size:0})}return{eventName:f,args:Object.values(n).length>0?n:void 0}}function X9({param:a,value:m}){return a.type==="string"||a.type==="bytes"||a.type==="tuple"||a.type.match(/^(.*)\[(\d+)?\]$/)?m:(qs([a],m)||[])[0]}async function Gs(a,{filter:m}){const w="strict"in m&&m.strict;return(await m.request({method:"eth_getFilterChanges",params:[m.id]})).map(h=>{if(typeof h=="string")return h;try{const{eventName:r,args:s}="abi"in m&&m.abi?od({abi:m.abi,data:h.data,topics:h.topics,strict:w}):{eventName:void 0,args:void 0};return Hn(h,{args:s,eventName:r})}catch(r){let s,i;if(r instanceof ya||r instanceof Fs){if("strict"in m&&m.strict)return;s=r.abiItem.name,i=r.abiItem.inputs?.some(f=>!("name"in f&&f.name))}return Hn(h,{args:i?[]:{},eventName:s})}}).filter(Boolean)}async function sd(a,{address:m,blockHash:w,fromBlock:_,toBlock:h,event:r,args:s,strict:i}={}){const f=i??!1;let e=[];r&&(e=Yc({abi:[r],eventName:r.name,args:s}));let l;return w?l=await a.request({method:"eth_getLogs",params:[{address:m,topics:e,blockHash:w}]}):l=await a.request({method:"eth_getLogs",params:[{address:m,topics:e,fromBlock:typeof _=="bigint"?it(_):_,toBlock:typeof h=="bigint"?it(h):h}]}),l.map(n=>{try{const{eventName:t,args:o}=r?od({abi:[r],data:n.data,topics:n.topics,strict:f}):{eventName:void 0,args:void 0};return Hn(n,{args:o,eventName:t})}catch(t){let o,d;if(t instanceof ya||t instanceof Fs){if(f)return;o=t.abiItem.name,d=t.abiItem.inputs?.some(u=>!("name"in u&&u.name))}return Hn(n,{args:d?[]:{},eventName:o})}}).filter(Boolean)}async function Js(a,{filter:m}){return m.request({method:"eth_uninstallFilter",params:[m.id]})}function Z9(a,{abi:m,address:w,args:_,batch:h=!0,eventName:r,onError:s,onLogs:i,pollingInterval:f=a.pollingInterval,strict:e}){const l=Ht(["watchContractEvent",w,_,h,a.uid,r,f]),n=e??!1;return Ri(l,{onLogs:i,onError:s},t=>{let o,d,u=!1;const c=Xa(async()=>{if(!u){try{d=await j6(a,{abi:m,address:w,args:_,eventName:r,strict:n})}catch{}u=!0;return}try{let g;if(d)g=await Gs(a,{filter:d});else{const p=await Za(a);o&&o!==p?g=await sd(a,{address:w,args:_,fromBlock:o+1n,toBlock:p,event:Qa({abi:m,name:r})}):g=[],o=p}if(g.length===0)return;h?t.onLogs(g):g.forEach(p=>t.onLogs([p]))}catch(g){t.onError?.(g)}},{emitOnBegin:!0,interval:f});return async()=>{d&&await Js(a,{filter:d}),c()}})}function ew(a,{docsPath:m,...w}){let _=a;return td(a)&&(_=rd(a,w)),new J5(_,{docsPath:m,...w})}async function cs(a){const m=await a.request({method:"eth_chainId"});return jt(m)}async function ud(a,m){const{account:w=a.account,chain:_=a.chain,accessList:h,data:r,gas:s,gasPrice:i,maxFeePerGas:f,maxPriorityFeePerGas:e,nonce:l,to:n,value:t,...o}=m;if(!w)throw new Ya({docsPath:"/docs/actions/wallet/sendTransaction"});const d=yr(w);try{Ws(m);let u;if(_!==null&&(u=await cs(a),P5({currentChainId:u,chain:_})),d.type==="local"){const p=await K6(a,{account:d,accessList:h,chain:_,data:r,gas:s,gasPrice:i,maxFeePerGas:f,maxPriorityFeePerGas:e,nonce:l,to:n,value:t,...o});u||(u=await cs(a));const v=_?.serializers?.transaction,y=await d.signTransaction({...p,chainId:u},{serializer:v});return await a.request({method:"eth_sendRawTransaction",params:[y]})}const c=_?.formatters?.transactionRequest?.format||zc,g=c({...nd(o,{format:c}),accessList:h,data:r,from:d.address,gas:s,gasPrice:i,maxFeePerGas:f,maxPriorityFeePerGas:e,nonce:l,to:n,value:t});return await a.request({method:"eth_sendTransaction",params:[g]})}catch(u){throw ew(u,{...m,account:d,chain:m.chain||void 0})}}async function tw(a,{abi:m,address:w,args:_,dataSuffix:h,functionName:r,...s}){const i=xn({abi:m,args:_,functionName:r});return await ud(a,{data:`${i}${h?h.replace("0x",""):""}`,to:w,...s})}async function rw(a,{chain:m}){const{id:w,name:_,nativeCurrency:h,rpcUrls:r,blockExplorers:s}=m;await a.request({method:"wallet_addEthereumChain",params:[{chainId:it(w),chainName:_,nativeCurrency:h,rpcUrls:r.default.http,blockExplorerUrls:s?Object.values(s).map(({url:i})=>i):void 0}]})}const Tf=256;let mo=Tf,yo;function nw(a=11){if(!yo||mo+a>Tf*2){yo="",mo=0;for(let m=0;m<Tf;m++)yo+=(256+Math.random()*256|0).toString(16).substring(1)}return yo.substring(mo,mo+++a)}function Q6(a){const{batch:m,key:w="base",name:_="Base Client",pollingInterval:h=4e3,type:r="base"}=a,s=a.chain,i=a.account?yr(a.account):void 0,{config:f,request:e,value:l}=a.transport({chain:s,pollingInterval:h}),n={...f,...l},t={account:i,batch:m,chain:s,key:w,name:_,pollingInterval:h,request:e,transport:n,type:r,uid:nw()};function o(d){return u=>{const c=u(d);for(const p in t)delete c[p];const g={...d,...c};return Object.assign(g,{extend:o(g)})}}return Object.assign(t,{extend:o(t)})}function Y6(a,{delay:m=100,retryCount:w=2,shouldRetry:_=()=>!0}={}){return new Promise((h,r)=>{const s=async({count:i=0}={})=>{const f=async({error:e})=>{const l=typeof m=="function"?m({count:i,error:e}):m;l&&await ls(l),s({count:i+1})};try{const e=await a();h(e)}catch(e){if(i<w&&await _({count:i,error:e}))return f({error:e});r(e)}};s()})}const X6=a=>"code"in a?a.code!==-1&&a.code!==-32004&&a.code!==-32005&&a.code!==-32042&&a.code!==-32603:a instanceof ia&&a.status?a.status!==403&&a.status!==408&&a.status!==413&&a.status!==429&&a.status!==500&&a.status!==502&&a.status!==503&&a.status!==504:!1;function iw(a,{retryDelay:m=150,retryCount:w=3}={}){return async _=>Y6(async()=>{try{return await a(_)}catch(h){const r=h;switch(r.code){case _a.code:throw new _a(r);case wa.code:throw new wa(r);case xa.code:throw new xa(r);case Aa.code:throw new Aa(r);case Ea.code:throw new Ea(r);case gi.code:throw new gi(r);case Sa.code:throw new Sa(r);case bi.code:throw new bi(r);case _i.code:throw new _i(r);case Ca.code:throw new Ca(r);case ka.code:throw new ka(r);case Oa.code:throw new Oa(r);case fr.code:throw new fr(r);case Pa.code:throw new Pa(r);case Ta.code:throw new Ta(r);case Ma.code:throw new Ma(r);case Ia.code:throw new Ia(r);case pn.code:throw new pn(r);default:throw h instanceof Fe?h:new I9(r)}}},{delay:({count:h,error:r})=>{if(r&&r instanceof ia){const s=r?.headers?.get("Retry-After");if(s?.match(/\d/))return parseInt(s)*1e3}return~~(1<<h)*m},retryCount:w,shouldRetry:({error:h})=>!X6(h)})}function Qs({key:a,name:m,request:w,retryCount:_=3,retryDelay:h=150,timeout:r,type:s},i){return{config:{key:a,name:m,request:w,retryCount:_,retryDelay:h,timeout:r,type:s},request:iw(w,{retryCount:_,retryDelay:h}),value:i}}function Z6(a,m={}){const{key:w="custom",name:_="Custom Provider",retryDelay:h}=m;return({retryCount:r})=>Qs({key:w,name:_,request:a.request.bind(a),retryCount:m.retryCount??r,retryDelay:h,type:"custom"})}function Z1(a,m={}){const{key:w="fallback",name:_="Fallback",rank:h=!1,retryCount:r,retryDelay:s}=m;return({chain:i,pollingInterval:f=4e3,timeout:e})=>{let l=a,n=()=>{};const t=Qs({key:w,name:_,async request({method:o,params:d}){const u=async(c=0)=>{const g=l[c]({chain:i,retryCount:0,timeout:e});try{const p=await g.request({method:o,params:d});return n({method:o,params:d,response:p,transport:g,status:"success"}),p}catch(p){if(n({error:p,method:o,params:d,transport:g,status:"error"}),X6(p)||c===l.length-1)throw p;return u(c+1)}};return u()},retryCount:r,retryDelay:s,type:"fallback"},{onResponse:o=>n=o,transports:l.map(o=>o({chain:i,retryCount:0}))});if(h){const o=typeof h=="object"?h:{};aw({chain:i,interval:o.interval??f,onTransports:d=>l=d,sampleCount:o.sampleCount,timeout:o.timeout,transports:l,weights:o.weights})}return t}}function aw({chain:a,interval:m=4e3,onTransports:w,sampleCount:_=10,timeout:h=1e3,transports:r,weights:s={}}){const{stability:i=.7,latency:f=.3}=s,e=[],l=async()=>{const n=await Promise.all(r.map(async d=>{const u=d({chain:a,retryCount:0,timeout:h}),c=Date.now();let g,p;try{await u.request({method:"net_listening"}),p=1}catch{p=0}finally{g=Date.now()}return{latency:g-c,success:p}}));e.push(n),e.length>_&&e.shift();const t=Math.max(...e.map(d=>Math.max(...d.map(({latency:u})=>u)))),o=r.map((d,u)=>{const c=e.map(b=>b[u].latency),p=1-c.reduce((b,A)=>b+A,0)/c.length/t,v=e.map(b=>b[u].success),y=v.reduce((b,A)=>b+A,0)/v.length;return y===0?[0,u]:[f*p+i*y,u]}).sort((d,u)=>u[0]-d[0]);w(o.map(([,d])=>r[d])),await ls(m),l()};l()}class ev extends Fe{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}function tv(a,{errorInstance:m,timeout:w,signal:_}){return new Promise((h,r)=>{(async()=>{let s;try{const i=new AbortController;w>0&&(s=setTimeout(()=>{_?i.abort():r(m)},w)),h(await a({signal:i?.signal}))}catch(i){i.name==="AbortError"&&r(m),r(i)}finally{clearTimeout(s)}})()})}let Mf=0;async function ow(a,{body:m,fetchOptions:w={},timeout:_=1e4}){const{headers:h,method:r,signal:s}=w;try{const i=await tv(async({signal:e})=>await fetch(a,{...w,body:Array.isArray(m)?Ht(m.map(n=>({jsonrpc:"2.0",id:Mf++,...n}))):Ht({jsonrpc:"2.0",id:Mf++,...m}),headers:{...h,"Content-Type":"application/json"},method:r||"POST",signal:s||(_>0?e:void 0)}),{errorInstance:new Of({body:m,url:a}),timeout:_,signal:!0});let f;if(i.headers.get("Content-Type")?.startsWith("application/json")?f=await i.json():f=await i.text(),!i.ok)throw new ia({body:m,details:Ht(f.error)||i.statusText,headers:i.headers,status:i.status,url:a});return f}catch(i){throw i instanceof ia||i instanceof Of?i:new ia({body:m,details:i.message,url:a})}}const ul=new Map;async function ll(a){const m=new URL(a),w=m.toString();let _=ul.get(w);if(_)return _;const{schedule:h}=ad({id:w,fn:async()=>{let i=await Vs(()=>import("./browser-3852a342.js"),[]);i.default?.constructor?i=i.default:i=i.WebSocket;const f=new i(m),e=new Map,l=new Map,n=({data:o})=>{const d=JSON.parse(o),u=d.method==="eth_subscription",c=u?d.params.subscription:d.id,g=u?l:e,p=g.get(c);p&&p({data:o}),u||g.delete(c)},t=()=>{ul.delete(w),f.removeEventListener("close",t),f.removeEventListener("message",n)};return f.addEventListener("close",t),f.addEventListener("message",n),f.readyState===i.CONNECTING&&await new Promise((o,d)=>{f&&(f.onopen=o,f.onerror=d)}),_=Object.assign(f,{requests:e,subscriptions:l}),ul.set(w,_),[_]}}),[r,[s]]=await h();return s}function sw(a,{body:m,onResponse:w}){if(a.readyState===a.CLOSED||a.readyState===a.CLOSING)throw new T9({body:m,url:a.url,details:"Socket is closed."});const _=Mf++,h=({data:r})=>{const s=JSON.parse(r);typeof s.id=="number"&&_!==s.id||(w?.(s),m.method==="eth_subscribe"&&typeof s.result=="string"&&a.subscriptions.set(s.result,h),m.method==="eth_unsubscribe"&&a.subscriptions.delete(m.params?.[0]))};return a.requests.set(_,h),a.send(JSON.stringify({jsonrpc:"2.0",...m,id:_})),a}async function uw(a,{body:m,timeout:w=1e4}){return tv(()=>new Promise(_=>pi.webSocket(a,{body:m,onResponse:_})),{errorInstance:new Of({body:m,url:a.url}),timeout:w})}const pi={http:ow,webSocket:sw,webSocketAsync:uw};function lw(a,m={}){const{batch:w,fetchOptions:_,key:h="http",name:r="HTTP JSON-RPC",retryDelay:s}=m;return({chain:i,retryCount:f,timeout:e})=>{const{batchSize:l=1e3,wait:n=0}=typeof w=="object"?w:{},t=m.retryCount??f,o=e??m.timeout??1e4,d=a||i?.rpcUrls.default.http[0];if(!d)throw new ev;return Qs({key:h,name:r,async request({method:u,params:c}){const g={method:u,params:c},{schedule:p}=ad({id:`${a}`,wait:n,shouldSplitBatch(A){return A.length>l},fn:A=>pi.http(d,{body:A,fetchOptions:_,timeout:o})}),v=async A=>w?p(A):[await pi.http(d,{body:A,fetchOptions:_,timeout:o})],[{error:y,result:b}]=await v(g);if(y)throw new $s({body:g,error:y,url:d});return b},retryCount:t,retryDelay:s,timeout:o,type:"http"},{url:a})}}function ld(a,m){if(!(a instanceof Fe))return!1;const w=a.walk(_=>_ instanceof kf);return w instanceof kf?!!(w.data?.errorName==="ResolverNotFound"||w.data?.errorName==="ResolverWildcardNotSupported"||w.reason?.includes("Wildcard on non-extended resolvers is not supported")||m==="reverse"&&w.reason===z6[50]):!1}const fw=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,cw=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function rv({domain:a,message:m,primaryType:w,types:_}){const h=_,r=(s,i)=>{for(const f of s){const{name:e,type:l}=f,n=l,t=i[e],o=n.match(cw);if(o&&(typeof t=="number"||typeof t=="bigint")){const[c,g,p]=o;it(t,{signed:g==="int",size:parseInt(p)/8})}if(n==="address"&&typeof t=="string"&&!yi(t))throw new ma({address:t});const d=n.match(fw);if(d){const[c,g]=d;if(g&&St(t)!==parseInt(g))throw new c_({expectedSize:parseInt(g),givenSize:St(t)})}const u=h[n];u&&r(u,t)}};if(h.EIP712Domain&&a&&r(h.EIP712Domain,a),w!=="EIP712Domain"){const s=h[w];r(s,m)}}const fl="/docs/contract/encodeDeployData";function nv({abi:a,args:m,bytecode:w}){if(!m||m.length===0)return w;const _=a.find(r=>"type"in r&&r.type==="constructor");if(!_)throw new n_({docsPath:fl});if(!("inputs"in _))throw new q1({docsPath:fl});if(!_.inputs||_.inputs.length===0)throw new q1({docsPath:fl});const h=Ja(_.inputs,m);return qc([w,h])}function dw({domain:a,message:m,primaryType:w,types:_}){const h=typeof a>"u"?{}:a,r={EIP712Domain:[typeof h?.name=="string"&&{name:"name",type:"string"},h?.version&&{name:"version",type:"string"},typeof h?.chainId=="number"&&{name:"chainId",type:"uint256"},h?.verifyingContract&&{name:"verifyingContract",type:"address"},h?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),..._};rv({domain:h,message:m,primaryType:w,types:r});const s=["0x1901"];return h&&s.push(hw({domain:h,types:r})),w!=="EIP712Domain"&&s.push(iv({data:m,primaryType:w,types:r})),$t(Vr(s))}function hw({domain:a,types:m}){return iv({data:a,primaryType:"EIP712Domain",types:m})}function iv({data:a,primaryType:m,types:w}){const _=av({data:a,primaryType:m,types:w});return $t(_)}function av({data:a,primaryType:m,types:w}){const _=[{type:"bytes32"}],h=[pw({primaryType:m,types:w})];for(const r of w[m]){const[s,i]=sv({types:w,name:r.name,type:r.type,value:a[r.name]});_.push(s),h.push(i)}return Ja(_,h)}function pw({primaryType:a,types:m}){const w=Gr(vw({primaryType:a,types:m}));return $t(w)}function vw({primaryType:a,types:m}){let w="";const _=ov({primaryType:a,types:m});_.delete(a);const h=[a,...Array.from(_).sort()];for(const r of h)w+=`${r}(${m[r].map(({name:s,type:i})=>`${i} ${s}`).join(",")})`;return w}function ov({primaryType:a,types:m},w=new Set){const h=a.match(/^\w*/u)?.[0];if(w.has(h)||m[h]===void 0)return w;w.add(h);for(const r of m[h])ov({primaryType:r.type,types:m},w);return w}function sv({types:a,name:m,type:w,value:_}){if(a[w]!==void 0)return[{type:"bytes32"},$t(av({data:_,primaryType:w,types:a}))];if(w==="bytes")return _=`0x${(_.length%2?"0":"")+_.slice(2)}`,[{type:"bytes32"},$t(_)];if(w==="string")return[{type:"bytes32"},$t(Gr(_))];if(w.lastIndexOf("]")===w.length-1){const h=w.slice(0,w.lastIndexOf("[")),r=_.map(s=>sv({name:m,type:h,types:a,value:s}));return[{type:"bytes32"},$t(Ja(r.map(([s])=>s),r.map(([,s])=>s)))]}return[{type:w},_]}function mw(a,m){const w=(()=>typeof a=="string"?zr(a):a.raw instanceof Uint8Array?a.raw:jn(a.raw))(),_=zr(`Ethereum Signed Message: +${w.length}`);return $t(Vr([_,w]),m)}function uv(a){if(a.length!==66||a.indexOf("[")!==0||a.indexOf("]")!==65)return null;const m=`0x${a.slice(1,65)}`;return Wr(m)?m:null}function Io(a){let m=new Uint8Array(32).fill(0);if(!a)return va(m);const w=a.split(".");for(let _=w.length-1;_>=0;_-=1){const h=uv(w[_]),r=h?jn(h):$t(zr(w[_]),"bytes");m=$t(Vr([m,r]),"bytes")}return va(m)}function yw(a){return`[${a.slice(2)}]`}function gw(a){const m=new Uint8Array(32).fill(0);return a?uv(a)||$t(zr(a)):va(m)}function Ys(a){const m=a.replace(/^\.|\.$/gm,"");if(m.length===0)return new Uint8Array(1);const w=new Uint8Array(zr(m).byteLength+2);let _=0;const h=m.split(".");for(let r=0;r<h.length;r++){let s=zr(h[r]);s.byteLength>255&&(s=zr(yw(gw(h[r])))),w[_]=s.length,w.set(s,_+1),_+=s.length+1}return w.byteLength!==_+1?w.slice(0,_+1):w}async function bw(a,{blockNumber:m,blockTag:w,coinType:_,name:h,universalResolverAddress:r}){let s=r;if(!s){if(!a.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=Mi({blockNumber:m,chain:a.chain,contract:"ensUniversalResolver"})}try{const i=xn({abi:Q1,functionName:"addr",..._!=null?{args:[Io(h),BigInt(_)]}:{args:[Io(h)]}}),f=await vn(a,{address:s,abi:J6,functionName:"resolve",args:[Gr(Ys(h)),i],blockNumber:m,blockTag:w});if(f[0]==="0x")return null;const e=un(Bi({abi:Q1,args:_!=null?[Io(h),BigInt(_)]:void 0,functionName:"addr",data:f[0]}));return e==="0x"||un(e)==="0x00"?null:e}catch(i){if(ld(i,"resolve"))return null;throw i}}class _w extends Fe{constructor({data:m}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(m)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class Gi extends Fe{constructor({reason:m}){super(`ENS NFT avatar URI is invalid. ${m}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class fd extends Fe{constructor({uri:m}){super(`Unable to resolve ENS avatar URI "${m}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class ww extends Fe{constructor({namespace:m}){super(`ENS NFT avatar namespace "${m}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const xw=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,Aw=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,Ew=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,Sw=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function Cw(a){try{const m=await fetch(a,{method:"HEAD"});return m.status===200?m.headers.get("content-type")?.startsWith("image/"):!1}catch(m){return typeof m=="object"&&typeof m.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(w=>{const _=new Image;_.onload=()=>{w(!0)},_.onerror=()=>{w(!1)},_.src=a})}}function e0(a,m){return a?a.endsWith("/")?a.slice(0,-1):a:m}function lv({uri:a,gatewayUrls:m}){const w=Ew.test(a);if(w)return{uri:a,isOnChain:!0,isEncoded:w};const _=e0(m?.ipfs,"https://ipfs.io"),h=e0(m?.arweave,"https://arweave.net"),r=a.match(xw),{protocol:s,subpath:i,target:f,subtarget:e=""}=r?.groups||{},l=s==="ipns:/"||i==="ipns/",n=s==="ipfs:/"||i==="ipfs/"||Aw.test(a);if(a.startsWith("http")&&!l&&!n){let o=a;return m?.arweave&&(o=a.replace(/https:\/\/arweave.net/g,m?.arweave)),{uri:o,isOnChain:!1,isEncoded:!1}}if((l||n)&&f)return{uri:`${_}/${l?"ipns":"ipfs"}/${f}${e}`,isOnChain:!1,isEncoded:!1};if(s==="ar:/"&&f)return{uri:`${h}/${f}${e||""}`,isOnChain:!1,isEncoded:!1};let t=a.replace(Sw,"");if(t.startsWith("<svg")&&(t=`data:image/svg+xml;base64,${btoa(t)}`),t.startsWith("data:")||t.startsWith("{"))return{uri:t,isOnChain:!0,isEncoded:!1};throw new fd({uri:a})}function fv(a){if(typeof a!="object"||!("image"in a)&&!("image_url"in a)&&!("image_data"in a))throw new _w({data:a});return a.image||a.image_url||a.image_data}async function kw({gatewayUrls:a,uri:m}){try{const w=await fetch(m).then(h=>h.json());return await cd({gatewayUrls:a,uri:fv(w)})}catch{throw new fd({uri:m})}}async function cd({gatewayUrls:a,uri:m}){const{uri:w,isOnChain:_}=lv({uri:m,gatewayUrls:a});if(_||await Cw(w))return w;throw new fd({uri:m})}function Ow(a){let m=a;m.startsWith("did:nft:")&&(m=m.replace("did:nft:","").replace(/_/g,"/"));const[w,_,h]=m.split("/"),[r,s]=w.split(":"),[i,f]=_.split(":");if(!r||r.toLowerCase()!=="eip155")throw new Gi({reason:"Only EIP-155 supported"});if(!s)throw new Gi({reason:"Chain ID not found"});if(!f)throw new Gi({reason:"Contract address not found"});if(!h)throw new Gi({reason:"Token ID not found"});if(!i)throw new Gi({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:i.toLowerCase(),contractAddress:f,tokenID:h}}async function Pw(a,{nft:m}){if(m.namespace==="erc721")return vn(a,{address:m.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(m.tokenID)]});if(m.namespace==="erc1155")return vn(a,{address:m.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(m.tokenID)]});throw new ww({namespace:m.namespace})}async function Tw(a,{gatewayUrls:m,record:w}){return/eip155:/i.test(w)?Mw(a,{gatewayUrls:m,record:w}):cd({uri:w,gatewayUrls:m})}async function Mw(a,{gatewayUrls:m,record:w}){const _=Ow(w),h=await Pw(a,{nft:_}),{uri:r,isOnChain:s,isEncoded:i}=lv({uri:h,gatewayUrls:m});if(s&&(r.includes("data:application/json;base64,")||r.startsWith("{"))){const e=i?atob(r.replace("data:application/json;base64,","")):r,l=JSON.parse(e);return cd({uri:fv(l),gatewayUrls:m})}let f=_.tokenID;return _.namespace==="erc1155"&&(f=f.replace("0x","").padStart(64,"0")),kw({gatewayUrls:m,uri:r.replace(/(?:0x)?{id}/,f)})}async function cv(a,{blockNumber:m,blockTag:w,name:_,key:h,universalResolverAddress:r}){let s=r;if(!s){if(!a.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=Mi({blockNumber:m,chain:a.chain,contract:"ensUniversalResolver"})}try{const i=await vn(a,{address:s,abi:J6,functionName:"resolve",args:[Gr(Ys(_)),xn({abi:J1,functionName:"text",args:[Io(_),h]})],blockNumber:m,blockTag:w});if(i[0]==="0x")return null;const f=Bi({abi:J1,functionName:"text",data:i[0]});return f===""?null:f}catch(i){if(ld(i,"resolve"))return null;throw i}}async function Iw(a,{blockNumber:m,blockTag:w,gatewayUrls:_,name:h,universalResolverAddress:r}){const s=await cv(a,{blockNumber:m,blockTag:w,key:"avatar",name:h,universalResolverAddress:r});if(!s)return null;try{return await Tw(a,{record:s,gatewayUrls:_})}catch{return null}}async function Dw(a,{address:m,blockNumber:w,blockTag:_,universalResolverAddress:h}){let r=h;if(!r){if(!a.chain)throw new Error("client chain not configured. universalResolverAddress is required.");r=Mi({blockNumber:w,chain:a.chain,contract:"ensUniversalResolver"})}const s=`${m.toLowerCase().substring(2)}.addr.reverse`;try{return(await vn(a,{address:r,abi:U9,functionName:"reverse",args:[Gr(Ys(s))],blockNumber:w,blockTag:_}))[0]}catch(i){if(ld(i,"reverse"))return null;throw i}}async function Bw(a,{blockNumber:m,blockTag:w,name:_,universalResolverAddress:h}){let r=h;if(!r){if(!a.chain)throw new Error("client chain not configured. universalResolverAddress is required.");r=Mi({blockNumber:m,chain:a.chain,contract:"ensUniversalResolver"})}const[s]=await vn(a,{address:r,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Gr(Ys(_))],blockNumber:m,blockTag:w});return s}async function Rw(a){const m=zs(a,{method:"eth_newBlockFilter"}),w=await a.request({method:"eth_newBlockFilter"});return{id:w,request:m(w),type:"block"}}async function dv(a,{address:m,args:w,event:_,fromBlock:h,strict:r,toBlock:s}={}){const i=zs(a,{method:"eth_newFilter"});let f=[];_&&(f=Yc({abi:[_],eventName:_.name,args:w}));const e=await a.request({method:"eth_newFilter",params:[{address:m,fromBlock:typeof h=="bigint"?it(h):h,toBlock:typeof s=="bigint"?it(s):s,...f.length?{topics:f}:{}}]});return{abi:_?[_]:void 0,args:w,eventName:_?_.name:void 0,id:e,request:i(e),strict:r,type:"event"}}async function hv(a){const m=zs(a,{method:"eth_newPendingTransactionFilter"}),w=await a.request({method:"eth_newPendingTransactionFilter"});return{id:w,request:m(w),type:"transaction"}}async function Nw(a,{address:m,blockNumber:w,blockTag:_="latest"}){const h=w?it(w):void 0,r=await a.request({method:"eth_getBalance",params:[m,h||_]});return BigInt(r)}async function Lw(a,{blockHash:m,blockNumber:w,blockTag:_="latest"}={}){const h=w!==void 0?it(w):void 0;let r;return m?r=await a.request({method:"eth_getBlockTransactionCountByHash",params:[m]}):r=await a.request({method:"eth_getBlockTransactionCountByNumber",params:[h||_]}),jt(r)}async function Uw(a,{address:m,blockNumber:w,blockTag:_="latest"}){const h=w!==void 0?it(w):void 0,r=await a.request({method:"eth_getCode",params:[m,h||_]});if(r!=="0x")return r}function Fw(a){return{baseFeePerGas:a.baseFeePerGas.map(m=>BigInt(m)),gasUsedRatio:a.gasUsedRatio,oldestBlock:BigInt(a.oldestBlock),reward:a.reward?.map(m=>m.map(w=>BigInt(w)))}}async function jw(a,{blockCount:m,blockNumber:w,blockTag:_="latest",rewardPercentiles:h}){const r=w?it(w):void 0,s=await a.request({method:"eth_feeHistory",params:[it(m),r||_,h]});return Fw(s)}async function Hw(a,{filter:m}){const w=m.strict??!1;return(await m.request({method:"eth_getFilterLogs",params:[m.id]})).map(h=>{try{const{eventName:r,args:s}="abi"in m&&m.abi?od({abi:m.abi,data:h.data,topics:h.topics,strict:w}):{eventName:void 0,args:void 0};return Hn(h,{args:s,eventName:r})}catch(r){let s,i;if(r instanceof ya||r instanceof Fs){if("strict"in m&&m.strict)return;s=r.abiItem.name,i=r.abiItem.inputs?.some(f=>!("name"in f&&f.name))}return Hn(h,{args:i?[]:{},eventName:s})}}).filter(Boolean)}async function zw(a,{address:m,blockNumber:w,blockTag:_="latest",slot:h}){const r=w!==void 0?it(w):void 0;return await a.request({method:"eth_getStorageAt",params:[m,h,r||_]})}async function dd(a,{blockHash:m,blockNumber:w,blockTag:_="latest",hash:h,index:r}){const s=w!==void 0?it(w):void 0;let i=null;if(h?i=await a.request({method:"eth_getTransactionByHash",params:[h]}):m?i=await a.request({method:"eth_getTransactionByBlockHashAndIndex",params:[m,it(r)]}):(s||_)&&(i=await a.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[s||_,it(r)]})),!i)throw new E6({blockHash:m,blockNumber:w,blockTag:_,hash:h,index:r});return(a.chain?.formatters?.transaction?.format||x6)(i)}async function qw(a,{hash:m,transactionReceipt:w}){const[_,h]=await Promise.all([Za(a),m?dd(a,{hash:m}):void 0]),r=w?.blockNumber||h?.blockNumber;return r?_-r+1n:0n}async function If(a,{hash:m}){const w=await a.request({method:"eth_getTransactionReceipt",params:[m]});if(!w)throw new S6({hash:m});return(a.chain?.formatters?.transactionReceipt?.format||H5)(w)}async function $w(a,m){const{allowFailure:w=!0,batchSize:_,blockNumber:h,blockTag:r,contracts:s,multicallAddress:i}=m,f=_??(typeof a.batch?.multicall=="object"&&a.batch.multicall.batchSize||1024),e=s;let l=i;if(!l){if(!a.chain)throw new Error("client chain not configured. multicallAddress is required.");l=Mi({blockNumber:h,chain:a.chain,contract:"multicall3"})}const n=[[]];let t=0,o=0;for(let u=0;u<e.length;u++){const{abi:c,address:g,args:p,functionName:v}=e[u];try{const y=xn({abi:c,args:p,functionName:v});o+=y.length,f>0&&o>f&&(t++,o=(y.length-2)/2,n[t]=[]),n[t]=[...n[t],{allowFailure:!0,callData:y,target:g}]}catch(y){const b=ba(y,{abi:c,address:g,args:p,docsPath:"/docs/contract/multicall",functionName:v});if(!w)throw b;n[t]=[...n[t],{allowFailure:!0,callData:"0x",target:g}]}}return(await Promise.all(n.map(u=>vn(a,{abi:Pf,address:l,args:[u],blockNumber:h,blockTag:r,functionName:"aggregate3"})))).flat().map(({returnData:u,success:c},g)=>{const p=n.flat(),{callData:v}=p[g],{abi:y,address:b,functionName:A,args:x}=e[g];try{if(v==="0x")throw new Us;if(!c)throw new ed({data:u});const E=Bi({abi:y,args:x,data:u,functionName:A});return w?{result:E,status:"success"}:E}catch(E){const S=ba(E,{abi:y,address:b,args:x,docsPath:"/docs/contract/multicall",functionName:A});if(!w)throw S;return{error:S,result:void 0,status:"failure"}}})}const Ww="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */BigInt(0);BigInt(1);BigInt(2);Array.from({length:256},(a,m)=>m.toString(16).padStart(2,"0"));function Vw(a,m){if(a.length!==m.length)return!1;for(let w=0;w<a.length;w++)if(a[w]!==m[w])return!1;return!0}function Kw(a,m){const w=Wr(a)?jn(a):a,_=Wr(m)?jn(m):m;return Vw(w,_)}async function pv(a,{address:m,hash:w,signature:_,...h}){const r=Wr(_)?_:Gr(_);try{const{data:s}=await Ks(a,{data:nv({abi:F9,args:[m,w,r],bytecode:Ww}),...h});return Kw(s??"0x0","0x1")}catch(s){if(s instanceof $6)return!1;throw s}}async function Gw(a,{address:m,message:w,signature:_,...h}){const r=mw(w);return pv(a,{address:m,hash:r,signature:_,...h})}async function Jw(a,{address:m,signature:w,message:_,primaryType:h,types:r,domain:s,...i}){const f=dw({message:_,primaryType:h,types:r,domain:s});return pv(a,{address:m,hash:f,signature:w,...i})}function vv(a,{emitOnBegin:m=!1,emitMissed:w=!1,onBlockNumber:_,onError:h,poll:r,pollingInterval:s=a.pollingInterval}){const i=typeof r<"u"?r:a.transport.type!=="webSocket";let f;return i?(()=>{const n=Ht(["watchBlockNumber",a.uid,m,w,s]);return Ri(n,{onBlockNumber:_,onError:h},t=>Xa(async()=>{try{const o=await Za(a,{maxAge:0});if(f){if(o===f)return;if(o-f>1&&w)for(let d=f+1n;d<o;d++)t.onBlockNumber(d,f),f=d}(!f||o>f)&&(t.onBlockNumber(o,f),f=o)}catch(o){t.onError?.(o)}},{emitOnBegin:m,interval:s}))})():(()=>{let n=!0,t=()=>n=!1;return(async()=>{try{const{unsubscribe:o}=await a.transport.subscribe({params:["newHeads"],onData(d){if(!n)return;const u=Hc(d.result?.number);_(u,f),f=u},onError(d){h?.(d)}});t=o,n||t()}catch(o){h?.(o)}})(),t})()}async function Qw(a,{confirmations:m=1,hash:w,onReplaced:_,pollingInterval:h=a.pollingInterval,timeout:r}){const s=Ht(["waitForTransactionReceipt",a.uid,w]);let i,f,e,l=!1;return new Promise((n,t)=>{r&&setTimeout(()=>t(new Q5({hash:w})),r);const o=Ri(s,{onReplaced:_,resolve:n,reject:t},d=>{const u=vv(a,{emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:h,async onBlockNumber(c){if(l)return;let g=c;const p=v=>{u(),v(),o()};try{if(e){if(g-e.blockNumber+1n<m)return;p(()=>d.resolve(e));return}if(i||(l=!0,await Y6(async()=>{i=await dd(a,{hash:w}),i.blockNumber&&(g=i.blockNumber)},{delay:({count:v})=>~~(1<<v)*200,retryCount:6}),l=!1),e=await If(a,{hash:w}),m>0&&g-e.blockNumber+1n<m)return;p(()=>d.resolve(e))}catch(v){if(i&&(v instanceof E6||v instanceof S6)){f=i;const b=(await Da(a,{blockNumber:g,includeTransactions:!0})).transactions.find(({from:x,nonce:E})=>x===f.from&&E===f.nonce);if(!b||(e=await If(a,{hash:b.hash}),g-e.blockNumber+1n<m))return;let A="replaced";b.to===f.to&&b.value===f.value?A="repriced":b.from===b.to&&b.value===0n&&(A="cancelled"),p(()=>{d.onReplaced?.({reason:A,replacedTransaction:f,transaction:b,transactionReceipt:e}),d.resolve(e)})}else p(()=>d.reject(v))}}})})})}function Yw(a,{blockTag:m="latest",emitMissed:w=!1,emitOnBegin:_=!1,onBlock:h,onError:r,includeTransactions:s=!1,poll:i,pollingInterval:f=a.pollingInterval}){const e=typeof i<"u"?i:a.transport.type!=="webSocket";let l;return e?(()=>{const o=Ht(["watchBlocks",a.uid,w,_,s,f]);return Ri(o,{onBlock:h,onError:r},d=>Xa(async()=>{try{const u=await Da(a,{blockTag:m,includeTransactions:s});if(u.number&&l?.number){if(u.number===l.number)return;if(u.number-l.number>1&&w)for(let c=l?.number+1n;c<u.number;c++){const g=await Da(a,{blockNumber:c,includeTransactions:s});d.onBlock(g,l),l=g}}(!l?.number||m==="pending"&&!u?.number||u.number&&u.number>l.number)&&(d.onBlock(u,l),l=u)}catch(u){d.onError?.(u)}},{emitOnBegin:_,interval:f}))})():(()=>{let o=!0,d=()=>o=!1;return(async()=>{try{const{unsubscribe:u}=await a.transport.subscribe({params:["newHeads"],onData(c){if(!o)return;const p=(a.chain?.formatters?.block?.format||A6)(c.result);h(p,l),l=p},onError(c){r?.(c)}});d=u,o||d()}catch(u){r?.(u)}})(),d})()}function Xw(a,{address:m,args:w,batch:_=!0,event:h,onError:r,onLogs:s,pollingInterval:i=a.pollingInterval,strict:f}){const e=Ht(["watchEvent",m,w,_,a.uid,h,i]),l=f??!1;return Ri(e,{onLogs:s,onError:r},n=>{let t,o,d=!1;const u=Xa(async()=>{if(!d){try{o=await dv(a,{address:m,args:w,event:h,strict:l})}catch{}d=!0;return}try{let c;if(o)c=await Gs(a,{filter:o});else{const g=await Za(a);t&&t!==g?c=await sd(a,{address:m,args:w,fromBlock:t+1n,toBlock:g,event:h}):c=[],t=g}if(c.length===0)return;_?n.onLogs(c):c.forEach(g=>n.onLogs([g]))}catch(c){n.onError?.(c)}},{emitOnBegin:!0,interval:i});return async()=>{o&&await Js(a,{filter:o}),u()}})}function Zw(a,{batch:m=!0,onError:w,onTransactions:_,poll:h,pollingInterval:r=a.pollingInterval}){return(typeof h<"u"?h:a.transport.type!=="webSocket")?(()=>{const e=Ht(["watchPendingTransactions",a.uid,m,r]);return Ri(e,{onTransactions:_,onError:w},l=>{let n;const t=Xa(async()=>{try{if(!n)try{n=await hv(a);return}catch(d){throw t(),d}const o=await Gs(a,{filter:n});if(o.length===0)return;m?l.onTransactions(o):o.forEach(d=>l.onTransactions([d]))}catch(o){l.onError?.(o)}},{emitOnBegin:!0,interval:r});return async()=>{n&&await Js(a,{filter:n}),t()}})})():(()=>{let e=!0,l=()=>e=!1;return(async()=>{try{const{unsubscribe:n}=await a.transport.subscribe({params:["newPendingTransactions"],onData(t){if(!e)return;const o=t.result;_([o])},onError(t){w?.(t)}});l=n,e||l()}catch(n){w?.(n)}})(),l})()}function e7(a){return{call:m=>Ks(a,m),createBlockFilter:()=>Rw(a),createContractEventFilter:m=>j6(a,m),createEventFilter:m=>dv(a,m),createPendingTransactionFilter:()=>hv(a),estimateContractGas:m=>R9(a,m),estimateGas:m=>id(a,m),getBalance:m=>Nw(a,m),getBlock:m=>Da(a,m),getBlockNumber:m=>Za(a,m),getBlockTransactionCount:m=>Lw(a,m),getBytecode:m=>Uw(a,m),getChainId:()=>cs(a),getEnsAddress:m=>bw(a,m),getEnsAvatar:m=>Iw(a,m),getEnsName:m=>Dw(a,m),getEnsResolver:m=>Bw(a,m),getEnsText:m=>cv(a,m),getFeeHistory:m=>jw(a,m),getFilterChanges:m=>Gs(a,m),getFilterLogs:m=>Hw(a,m),getGasPrice:()=>W6(a),getLogs:m=>sd(a,m),getStorageAt:m=>zw(a,m),getTransaction:m=>dd(a,m),getTransactionConfirmations:m=>qw(a,m),getTransactionCount:m=>V6(a,m),getTransactionReceipt:m=>If(a,m),multicall:m=>$w(a,m),readContract:m=>vn(a,m),simulateContract:m=>W9(a,m),verifyMessage:m=>Gw(a,m),verifyTypedData:m=>Jw(a,m),uninstallFilter:m=>Js(a,m),waitForTransactionReceipt:m=>Qw(a,m),watchBlocks:m=>Yw(a,m),watchBlockNumber:m=>vv(a,m),watchContractEvent:m=>Z9(a,m),watchEvent:m=>Xw(a,m),watchPendingTransactions:m=>Zw(a,m)}}function t0(a){const{key:m="public",name:w="Public Client"}=a;return Q6({...a,key:m,name:w,type:"publicClient"}).extend(e7)}function t7(a,{abi:m,args:w,bytecode:_,...h}){const r=nv({abi:m,args:w,bytecode:_});return ud(a,{...h,data:r})}async function r7(a){return(await a.request({method:"eth_accounts"})).map(w=>Xc(w))}async function n7(a){return await a.request({method:"wallet_getPermissions"})}async function i7(a){return(await a.request({method:"eth_requestAccounts"})).map(w=>fn(w))}async function a7(a,m){return a.request({method:"wallet_requestPermissions",params:[m]})}async function o7(a,{account:m=a.account,message:w}){if(!m)throw new Ya({docsPath:"/docs/actions/wallet/signMessage"});const _=yr(m);if(_.type==="local")return _.signMessage({message:w});const h=(()=>typeof w=="string"?Fc(w):w.raw instanceof Uint8Array?Gr(w.raw):w.raw)();return a.request({method:"personal_sign",params:[h,_.address]})}async function s7(a,{account:m=a.account,domain:w,message:_,primaryType:h,types:r}){if(!m)throw new Ya({docsPath:"/docs/actions/wallet/signTypedData"});const s=yr(m),i={EIP712Domain:[typeof w?.name=="string"&&{name:"name",type:"string"},w?.version&&{name:"version",type:"string"},typeof w?.chainId=="number"&&{name:"chainId",type:"uint256"},w?.verifyingContract&&{name:"verifyingContract",type:"address"},w?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean),...r};if(rv({domain:w,message:_,primaryType:h,types:i}),s.type==="local")return s.signTypedData({domain:w,primaryType:h,types:i,message:_});const f=Ht({domain:w??{},primaryType:h,types:i,message:_},(e,l)=>Wr(l)?l.toLowerCase():l);return a.request({method:"eth_signTypedData_v4",params:[s.address,f]})}async function u7(a,{id:m}){await a.request({method:"wallet_switchEthereumChain",params:[{chainId:it(m)}]})}async function l7(a,m){return await a.request({method:"wallet_watchAsset",params:m})}function f7(a){return{addChain:m=>rw(a,m),deployContract:m=>t7(a,m),getAddresses:()=>r7(a),getChainId:()=>cs(a),getPermissions:()=>n7(a),requestAddresses:()=>i7(a),requestPermissions:m=>a7(a,m),sendTransaction:m=>ud(a,m),signMessage:m=>o7(a,m),signTypedData:m=>s7(a,m),switchChain:m=>u7(a,m),watchAsset:m=>l7(a,m),writeContract:m=>tw(a,m)}}function mv(a){const{key:m="wallet",name:w="Wallet Client",transport:_}=a;return Q6({...a,key:m,name:w,transport:r=>_({...r,retryCount:0}),type:"walletClient"}).extend(f7)}function c7(a,m={}){const{key:w="webSocket",name:_="WebSocket JSON-RPC",retryDelay:h}=m;return({chain:r,retryCount:s,timeout:i})=>{const f=m.retryCount??s,e=i??m.timeout??1e4,l=a||r?.rpcUrls.default.webSocket?.[0];if(!l)throw new ev;return Qs({key:w,name:_,async request({method:n,params:t}){const o={method:n,params:t},d=await ll(l),{error:u,result:c}=await pi.webSocketAsync(d,{body:o,timeout:e});if(u)throw new $s({body:o,error:u,url:l});return c},retryCount:f,retryDelay:h,timeout:e,type:"webSocket"},{getSocket(){return ll(l)},async subscribe({params:n,onData:t,onError:o}){const d=await ll(l),{result:u}=await new Promise((c,g)=>pi.webSocket(d,{body:{method:"eth_subscribe",params:n},onResponse(p){if(p.error){g(p.error),o?.(p.error);return}if(typeof p.id=="number"){c(p);return}p.method==="eth_subscription"&&t(p.params)}}));return{subscriptionId:u,async unsubscribe(){return new Promise(c=>pi.webSocket(d,{body:{method:"eth_unsubscribe",params:[u]},onResponse:c}))}}}})}}function d7(a){if(!a)return"Injected";const m=w=>{if(w.isApexWallet)return"Apex Wallet";if(w.isAvalanche)return"Core Wallet";if(w.isBackpack)return"Backpack";if(w.isBifrost)return"Bifrost Wallet";if(w.isBitKeep)return"BitKeep";if(w.isBitski)return"Bitski";if(w.isBlockWallet)return"BlockWallet";if(w.isBraveWallet)return"Brave Wallet";if(w.isCoinbaseWallet)return"Coinbase Wallet";if(w.isDawn)return"Dawn Wallet";if(w.isDefiant)return"Defiant";if(w.isEnkrypt)return"Enkrypt";if(w.isExodus)return"Exodus";if(w.isFrame)return"Frame";if(w.isFrontier)return"Frontier Wallet";if(w.isGamestop)return"GameStop Wallet";if(w.isHaqqWallet)return"HAQQ Wallet";if(w.isHyperPay)return"HyperPay Wallet";if(w.isImToken)return"ImToken";if(w.isHaloWallet)return"Halo Wallet";if(w.isKuCoinWallet)return"KuCoin Wallet";if(w.isMathWallet)return"MathWallet";if(w.isNovaWallet)return"Nova Wallet";if(w.isOkxWallet||w.isOKExWallet)return"OKX Wallet";if(w.isOneInchIOSWallet||w.isOneInchAndroidWallet)return"1inch Wallet";if(w.isOpera)return"Opera";if(w.isPhantom)return"Phantom";if(w.isPortal)return"Ripio Portal";if(w.isRabby)return"Rabby Wallet";if(w.isRainbow)return"Rainbow";if(w.isStatus)return"Status";if(w.isTalisman)return"Talisman";if(w.isTally)return"Taho";if(w.isTokenPocket)return"TokenPocket";if(w.isTokenary)return"Tokenary";if(w.isTrust||w.isTrustWallet)return"Trust Wallet";if(w.isTTWallet)return"TTWallet";if(w.isXDEFI)return"XDEFI Wallet";if(w.isZerion)return"Zerion";if(w.isMetaMask)return"MetaMask"};if(a.providers?.length){const w=new Set;let _=1;for(const r of a.providers){let s=m(r);s||(s=`Unknown Wallet #${_}`,_+=1),w.add(s)}const h=[...w];return h.length?h:h[0]??"Injected"}return m(a)??"Injected"}var Do,yv=class extends C6{constructor({chains:a,options:m}={}){const w={shimDisconnect:!0,getProvider(){if(typeof window>"u")return;const h=window.ethereum;return h?.providers?h.providers[0]:h},...m};super({chains:a,options:w}),xt(this,"id","injected"),xt(this,"name"),xt(this,"ready"),tr(this,Do,void 0),xt(this,"shimDisconnectKey",`${this.id}.shimDisconnect`),xt(this,"onAccountsChanged",h=>{h.length===0?this.emit("disconnect"):this.emit("change",{account:fn(h[0])})}),xt(this,"onChainChanged",h=>{const r=z1(h),s=this.isChainUnsupported(r);this.emit("change",{chain:{id:r,unsupported:s}})}),xt(this,"onDisconnect",async h=>{h.code===1013&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))});const _=w.getProvider();if(typeof w.name=="string")this.name=w.name;else if(_){const h=d7(_);w.name?this.name=w.name(h):typeof h=="string"?this.name=h:this.name=h[0]}else this.name="Injected";this.ready=!!_}async connect({chainId:a}={}){try{const m=await this.getProvider();if(!m)throw new On;m.on&&(m.on("accountsChanged",this.onAccountsChanged),m.on("chainChanged",this.onChainChanged),m.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const w=await m.request({method:"eth_requestAccounts"}),_=fn(w[0]);let h=await this.getChainId(),r=this.isChainUnsupported(h);return a&&h!==a&&(h=(await this.switchChain(a)).id,r=this.isChainUnsupported(h)),this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:_,chain:{id:h,unsupported:r}}}catch(m){throw this.isUserRejectedRequestError(m)?new fr(m):m.code===-32002?new bi(m):m}}async disconnect(){const a=await this.getProvider();a?.removeListener&&(a.removeListener("accountsChanged",this.onAccountsChanged),a.removeListener("chainChanged",this.onChainChanged),a.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){const a=await this.getProvider();if(!a)throw new On;const m=await a.request({method:"eth_accounts"});return fn(m[0])}async getChainId(){const a=await this.getProvider();if(!a)throw new On;return a.request({method:"eth_chainId"}).then(z1)}async getProvider(){const a=this.options.getProvider();return a&&Vc(this,Do,a),bt(this,Do)}async getWalletClient({chainId:a}={}){const[m,w]=await Promise.all([this.getProvider(),this.getAccount()]),_=this.chains.find(h=>h.id===a);if(!m)throw new Error("provider is required.");return mv({account:w,chain:_,transport:Z6(m)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;if(!await this.getProvider())throw new On;return!!await this.getAccount()}catch{return!1}}async switchChain(a){const m=await this.getProvider();if(!m)throw new On;const w=it(a);try{return await Promise.all([m.request({method:"wallet_switchEthereumChain",params:[{chainId:w}]}),new Promise(_=>this.on("change",({chain:h})=>{h?.id===a&&_()}))]),this.chains.find(_=>_.id===a)??{id:a,name:`Chain ${w}`,network:`${w}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(_){const h=this.chains.find(r=>r.id===a);if(!h)throw new t_({chainId:a,connectorId:this.id});if(_.code===4902||_?.data?.originalError?.code===4902)try{if(await m.request({method:"wallet_addEthereumChain",params:[{chainId:w,chainName:h.name,nativeCurrency:h.nativeCurrency,rpcUrls:[h.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(h)}]}),await this.getChainId()!==a)throw new fr(new Error("User rejected switch after adding network."));return h}catch(r){throw new fr(r)}throw this.isUserRejectedRequestError(_)?new fr(_):new pn(_)}}async watchAsset({address:a,decimals:m=18,image:w,symbol:_}){const h=await this.getProvider();if(!h)throw new On;return h.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:a,decimals:m,image:w,symbol:_}}})}isUserRejectedRequestError(a){return a.code===4001}};Do=new WeakMap;var hd=(a,m,w)=>{if(!m.has(a))throw TypeError("Cannot "+w)},cl=(a,m,w)=>(hd(a,m,"read from private field"),w?w.call(a):m.get(a)),dl=(a,m,w)=>{if(m.has(a))throw TypeError("Cannot add the same private member more than once");m instanceof WeakSet?m.add(a):m.set(a,w)},go=(a,m,w,_)=>(hd(a,m,"write to private field"),_?_.call(a,w):m.set(a,w),w),h7=(a,m,w)=>(hd(a,m,"access private method"),w);const p7=a=>(m,w,_)=>{const h=_.subscribe;return _.subscribe=(s,i,f)=>{let e=s;if(i){const l=f?.equalityFn||Object.is;let n=s(_.getState());e=t=>{const o=s(t);if(!l(n,o)){const d=n;i(n=o,d)}},f?.fireImmediately&&i(n,n)}return h(e)},a(m,w,_)},v7=p7;function m7(a,m){let w;try{w=a()}catch{return}return{getItem:h=>{var r;const s=f=>f===null?null:JSON.parse(f,m?.reviver),i=(r=w.getItem(h))!=null?r:null;return i instanceof Promise?i.then(s):s(i)},setItem:(h,r)=>w.setItem(h,JSON.stringify(r,m?.replacer)),removeItem:h=>w.removeItem(h)}}const Ba=a=>m=>{try{const w=a(m);return w instanceof Promise?w:{then(_){return Ba(_)(w)},catch(_){return this}}}catch(w){return{then(_){return this},catch(_){return Ba(_)(w)}}}},y7=(a,m)=>(w,_,h)=>{let r={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:c=>c,version:0,merge:(c,g)=>({...g,...c}),...m},s=!1;const i=new Set,f=new Set;let e;try{e=r.getStorage()}catch{}if(!e)return a((...c)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),w(...c)},_,h);const l=Ba(r.serialize),n=()=>{const c=r.partialize({..._()});let g;const p=l({state:c,version:r.version}).then(v=>e.setItem(r.name,v)).catch(v=>{g=v});if(g)throw g;return p},t=h.setState;h.setState=(c,g)=>{t(c,g),n()};const o=a((...c)=>{w(...c),n()},_,h);let d;const u=()=>{var c;if(!e)return;s=!1,i.forEach(p=>p(_()));const g=((c=r.onRehydrateStorage)==null?void 0:c.call(r,_()))||void 0;return Ba(e.getItem.bind(e))(r.name).then(p=>{if(p)return r.deserialize(p)}).then(p=>{if(p)if(typeof p.version=="number"&&p.version!==r.version){if(r.migrate)return r.migrate(p.state,p.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return p.state}).then(p=>{var v;return d=r.merge(p,(v=_())!=null?v:o),w(d,!0),n()}).then(()=>{g?.(d,void 0),s=!0,f.forEach(p=>p(d))}).catch(p=>{g?.(void 0,p)})};return h.persist={setOptions:c=>{r={...r,...c},c.getStorage&&(e=c.getStorage())},clearStorage:()=>{e?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>u(),hasHydrated:()=>s,onHydrate:c=>(i.add(c),()=>{i.delete(c)}),onFinishHydration:c=>(f.add(c),()=>{f.delete(c)})},u(),d||o},g7=(a,m)=>(w,_,h)=>{let r={storage:m7(()=>localStorage),partialize:u=>u,version:0,merge:(u,c)=>({...c,...u}),...m},s=!1;const i=new Set,f=new Set;let e=r.storage;if(!e)return a((...u)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),w(...u)},_,h);const l=()=>{const u=r.partialize({..._()});return e.setItem(r.name,{state:u,version:r.version})},n=h.setState;h.setState=(u,c)=>{n(u,c),l()};const t=a((...u)=>{w(...u),l()},_,h);let o;const d=()=>{var u,c;if(!e)return;s=!1,i.forEach(p=>{var v;return p((v=_())!=null?v:t)});const g=((c=r.onRehydrateStorage)==null?void 0:c.call(r,(u=_())!=null?u:t))||void 0;return Ba(e.getItem.bind(e))(r.name).then(p=>{if(p)if(typeof p.version=="number"&&p.version!==r.version){if(r.migrate)return r.migrate(p.state,p.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return p.state}).then(p=>{var v;return o=r.merge(p,(v=_())!=null?v:t),w(o,!0),l()}).then(()=>{g?.(o,void 0),o=_(),s=!0,f.forEach(p=>p(o))}).catch(p=>{g?.(void 0,p)})};return h.persist={setOptions:u=>{r={...r,...u},u.storage&&(e=u.storage)},clearStorage:()=>{e?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>d(),hasHydrated:()=>s,onHydrate:u=>(i.add(u),()=>{i.delete(u)}),onFinishHydration:u=>(f.add(u),()=>{f.delete(u)})},r.skipHydration||d(),o||t},b7=(a,m)=>"getStorage"in m||"serialize"in m||"deserialize"in m?y7(a,m):g7(a,m),_7=b7,r0=a=>{let m;const w=new Set,_=(f,e)=>{const l=typeof f=="function"?f(m):f;if(!Object.is(l,m)){const n=m;m=e??typeof l!="object"?l:Object.assign({},m,l),w.forEach(t=>t(m,n))}},h=()=>m,i={setState:_,getState:h,subscribe:f=>(w.add(f),()=>w.delete(f)),destroy:()=>{w.clear()}};return m=a(_,h,i),i},w7=a=>a?r0(a):r0;function gv(a,m){if(Object.is(a,m))return!0;if(typeof a!="object"||a===null||typeof m!="object"||m===null)return!1;if(a instanceof Map&&m instanceof Map){if(a.size!==m.size)return!1;for(const[_,h]of a)if(!Object.is(h,m.get(_)))return!1;return!0}if(a instanceof Set&&m instanceof Set){if(a.size!==m.size)return!1;for(const _ of a)if(!m.has(_))return!1;return!0}const w=Object.keys(a);if(w.length!==Object.keys(m).length)return!1;for(let _=0;_<w.length;_++)if(!Object.prototype.hasOwnProperty.call(m,w[_])||!Object.is(a[w[_]],m[w[_]]))return!1;return!0}function x7(a){let m=0;function w(){return a[m++]<<8|a[m++]}let _=w(),h=1,r=[0,1];for(let b=1;b<_;b++)r.push(h+=w());let s=w(),i=m;m+=s;let f=0,e=0;function l(){return f==0&&(e=e<<8|a[m++],f=8),e>>--f&1}const n=31,t=2**n,o=t>>>1,d=o>>1,u=t-1;let c=0;for(let b=0;b<n;b++)c=c<<1|l();let g=[],p=0,v=t;for(;;){let b=Math.floor(((c-p+1)*h-1)/v),A=0,x=_;for(;x-A>1;){let C=A+x>>>1;b<r[C]?x=C:A=C}if(A==0)break;g.push(A);let E=p+Math.floor(v*r[A]/h),S=p+Math.floor(v*r[A+1]/h)-1;for(;!((E^S)&o);)c=c<<1&u|l(),E=E<<1&u,S=S<<1&u|1;for(;E&~S&d;)c=c&o|c<<1&u>>>1|l(),E=E<<1^o,S=(S^o)<<1|o|1;p=E,v=1+S-E}let y=_-4;return g.map(b=>{switch(b-y){case 3:return y+65792+(a[i++]<<16|a[i++]<<8|a[i++]);case 2:return y+256+(a[i++]<<8|a[i++]);case 1:return y+a[i++];default:return b-1}})}function A7(a){let m=0;return()=>a[m++]}function bv(a){return A7(x7(E7(a)))}function E7(a){let m=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((h,r)=>m[h.charCodeAt(0)]=r);let w=a.length,_=new Uint8Array(6*w>>3);for(let h=0,r=0,s=0,i=0;h<w;h++)i=i<<6|m[a.charCodeAt(h)],s+=6,s>=8&&(_[r++]=i>>(s-=8));return _}function S7(a){return a&1?~a>>1:a>>1}function C7(a,m){let w=Array(a);for(let _=0,h=0;_<a;_++)w[_]=h+=S7(m());return w}function mn(a,m=0){let w=[];for(;;){let _=a(),h=a();if(!h)break;m+=_;for(let r=0;r<h;r++)w.push(m+r);m+=h+1}return w}function _v(a){return Ra(()=>{let m=mn(a);if(m.length)return m})}function wv(a){let m=[];for(;;){let w=a();if(w==0)break;m.push(k7(w,a))}for(;;){let w=a()-1;if(w<0)break;m.push(O7(w,a))}return m.flat()}function Ra(a){let m=[];for(;;){let w=a(m.length);if(!w)break;m.push(w)}return m}function xv(a,m,w){let _=Array(a).fill().map(()=>[]);for(let h=0;h<m;h++)C7(a,w).forEach((r,s)=>_[s].push(r));return _}function k7(a,m){let w=1+m(),_=m(),h=Ra(m);return xv(h.length,1+a,m).flatMap((s,i)=>{let[f,...e]=s;return Array(h[i]).fill().map((l,n)=>{let t=n*_;return[f+n*w,e.map(o=>o+t)]})})}function O7(a,m){let w=1+m();return xv(w,1+a,m).map(h=>[h[0],h.slice(1)])}var Yt=bv("AEgSbwjEDVYByQKaAQsBOQDpATQAngDUAHsAoABoANQAagCNAEQAhABMAHIAOwA9ACsANgAmAGIAHgAvACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGAAeABMAFwAXAA0ADgAWAA8AFAAVBFsF1QEXE0o3xAXUALIArkABaACmAgPGAK6AMDAwMAE/qAYK7P4HQAblMgVYBVkAPSw5Afa3EgfJwgAPA8meNALGCjACjqIChtk/j2+KAsXMAoPzASDgCgDyrgFCAi6OCkCQAOQA4woWABjVuskNDD6eBBx4AP4COhi+D+wKBirqBgSCaA0cBy4ArABqku+mnIAAXAaUJAbqABwAPAyUFvyp/Mo8INAIvCoDshQ8APcubKQAon4ZABgEJtgXAR4AuhnOBPsKIE04CZgJiR8cVlpM5INDABQADQAWAA9sVQAiAA8ASO8W2T30OVnKluYvChEeX05ZPe0AFAANABYAD2wgXUCYAMPsABwAOgzGFryp/AHauQVcBeMC0KACxLEKTR2kZhR0Gm5M9gC8DmgC4gAMLjSKF8qSAoF8ARMcAL4OaALiAAwuAUlQJpJMCwMt/AUpCthqGK4B2EQAciwSeAIyFiIDKCi6OGwAOuIB9iYAyA7MtgEcZIIAsgYABgCK1EoFHNZsGACoKNIBogAAAAAAKy4DnABoAQoaPu43dQQZGACrAcgCIgDgLBJ0OvRQsTOiKDVJBfsoBVoFWbC5BWo7XkITO1hCmHuUZmCh+QwUA8YIJvJ4JASkTAJUVAJ2HKwoAZCkpjZcA0YYBIRiCgDSBqxAMCQHKgI6XgBsAWIgcgCEHhoAlgFKuAAoahgBsMYDOC4iRFQBcFoGZgJmAPJKGAMqAgYASkIArABeAHQALLYGCPTwGo6AAAAKIgAqALQcSAHSAdwIDDKXeYHpAAsAEgA1AD4AOTR3etTBEGAQXQJNCkxtOxUMAq0PpwvmERYM0irM09kANKoH7ANUB+wDVANUB+wH7ANUB+wDVANUA1QDVBwL8BvUwRBgD0kEbgWPBYwE1wiEJkoRggcpCNNUDnQfHEgDRgD9IyZJHTuUMwwlQ0wNTQQH/TZDbKh9OQNIMaxU9pCjA8wyUDltAh5yEqEAKw90HTW2Tn96SHGhCkxPr7WASWNOaAK/Oqk/+QoiCZRvvHdPBj4QGCeiEPQMMAGyATgN6kvVBO4GOATGH3oZFg/KlZkIoi3aDOom4C6egFcj8iqABepL8TzaC0pRZQ9WC2IJ4DpggUsDHgEKIogK2g02CGoQ8ArGaA3iEUIHNgPSSZcAogb+Cw4dMhWyJg1iqQsGOXQG+BrzC4wmrBMmevkF0BoeBkoBJhr8AMwu5IWtWi5cGU9cBgALIiPEFKVQHQ0iQLR4RRoYBxIlpgKOQ21KhFEzHpAh8zw6DWMuEFF5B/I8AhlMC348m0aoRQsRzz6KPUUiRkwpBDJ8LCwniAnMD4IMtnxvAVYJHgmuDG4TLhEUN8IINgcWKpchJxIIHkaSYJcE9JwD8BPOAwgFPAk+BxADshwqEysVJgUKgSHUAvA20i6wAoxWfQEUBcgPIh/cEE1H3Q7mCJgCYgOAJegAKhUeABQimAhAYABcj9VTAi7ICMRqaSNxA2QU5F4RcAeODlQHpBwwFbwc3nDFXgiGBSigrAlYAXIJlgFcBOAIBjVYjJ0gPmdQi1UYmCBeQTxd+QIuDGIVnES6h3UCiA9oEhgBMgFwBzYM/gJ0EeoRaBCSCOiGATWyM/U6IgRMIYAgDgokA0xsywskJvYM9WYBoBJfAwk0OnfrZ6hgsyEX+gcWMsJBXSHuC49PygyZGr4YP1QrGeEHvAPwGvAn50FUBfwDoAAQOkoz6wS6C2YIiAk8AEYOoBQH1BhnCm6MzQEuiAG0lgNUjoACbIwGNAcIAGQIhAV24gAaAqQIoAACAMwDVAA2AqoHmgAWAII+AToDJCwBHuICjAOQCC7IAZIsAfAmBBjADBIA9DRuRwLDrgKAZ2afBdpVAosCRjIBSiIEAktETgOsbt4A2ABIBhDcRAESqEfIF+BAAdxsKADEAPgAAjIHAj4BygHwagC0AVwLLgmfsLIBSuYmAIAAEmgB1AKGANoAMgB87gFQAEoFVvYF0AJMRgEOLhUoVF4BuAMcATABCgB2BsiKosYEHARqB9ACEBgV3gLvKweyAyLcE8pCwgK921IAMhMKNQqkCqNgWF0wAy5vPU0ACx+lPsQ/SwVOO1A7VTtQO1U7UDtVO1A7VTtQO1UDlLzfvN8KaV9CYegMow3RRMU6RhPYYE5gLxPFLbQUvhXLJVMZOhq5JwIl4VUGDwEt0GYtCCk0che5ADwpZYM+Y4MeLQpIHORTjlT1LRgArkufM6wNqRsSRD0FRHXqYicWCwofAmR+AmI/WEqsWDcdAqH0AmiVAmYGAp+BOBgIAmY4AmYjBGsEfAN/EAN+jzkDOXQUOX86ICACbBoCMjM4BwJtxAJtq+yHMGRCKAFkANsA3gBHAgeVDIoA+wi/AAqyAncsAnafPAJ5SEACeLcaWdhFq0bwAnw8AnrFAn0GAnztR/1IemAhACgSSVVKWBIUSskC0P4C0MlLJAOITAOH40TCkS8C8p5dAAMDq0vLTCoiAMxNSU2sAos8AorVvhgEGkBkArQCjjQCjlk9lH4CjtYCjll1UbFTMgdS0VSCApP4ApMJAOYAGVUbVaxVzQMsGCmSgzLeeGNFODYCl5wC769YHqUAViIClowClnmZAKZZqVoGfkoAOAKWsgKWS1xBXM4CmcgCmWFcx10EFgKcmDm/OpoCnBMCn5gCnrWHABoMLicMAp3uAp6PALI6YTFh7AKe0AKgawGmAp6cHAKeS6JjxWQkIigCJ6wCJnsCoPgCoEnUAqYsAqXLAqf8AHoCp+9oeWiuAABGahlqzgKs4AKsqwKtZAKs/wJXGgJV2QKx3tQDH0tslAKyugoCsuUUbN1tYG1FXAMlygK2WTg8bo0DKUICuFsCuUQSArkndHAzcN4CvRYDLa8DMg4CvoVx/wMzbgK+F3Mfc0wCw8gCwwFzf3RIMkJ03QM8pAM8lwM9vALFeQLGRALGDYYCyGZOAshBAslMAskrAmSaAt3PeHZeeKt5IkvNAxigZv8CYfEZ8JUhewhej164DgLPaALPaSxIUM/wEJwAw6oCz3ABJucDTg9+SAIC3CQC24cC0kwDUlkDU1wA/gNViYCGPMgT6l1CcoLLg4oC2sQC2duEDYRGpzkDhqIALANkC4ZuVvYAUgLfYgLetXB0AuIs7REB8y0kAfSYAfLPhALr8ALpbXYC6vYC6uEA9kQBtgLuhgLrmZanlwAC7jwDhd2YdnDdcZ4C8wAAZgOOE5mQAvcQA5FrA5KEAveVAvnWAvhjmhmaqLg0mxsDnYAC/vcBGAA2nxmfsAMFigOmZwOm1gDOwgMGZ6GFogIGAwxGAQwBHAdqBl62ZAIAuARovA6IHrAKABRyNgAgAzASSgOGfAFgJB4AjOwAHgDmoAScjgi0BhygwgCoBRK86h4+PxZ5BWk4P0EsQiJCtV9yEl+9AJbGBTMAkE0am7o7J2AzErrQDjAYxxiKyfcFWAVZBVgFWQVkBVkFWAVZBVgFWQVYBVkFWAVZRxYI2IZoAwMDCmVe6iwEygOyBjC8vAC8BKi8AOhBKhazBUc+aj5xQkBCt192OF/pAFgSM6wAjP/MbMv9puhGez4nJAUsFyg3Nn5u32vB8hnDLGoBbNdvMRgFYAVrycLJuQjQSlwBAQEKfV5+jL8AND+CAAQW0gbmriQGAIzEDAMCDgDlZh4+JSBLQrJCvUI5JF8oYDcoOSQJwj4KRT9EPnk+gj5xPnICikK9SkM8X8xPUGtOCy1sVTBrDG8gX+E0OxwJaJwKYyQsPR4nQqxCvSzMAsv9X8oPIC8KCQoAACN+nt9rOy5LGMmsya0JZsLMzQphQWAP5hCkEgCTjh5GQiYbqm06zjkKND9EPnFCQBwICx5NSG1cLS5a4rwTCn7uHixCQBxeCUsKDzRVREM4BTtEnC0KghwuQkAb9glUIyQZMTIBBo9i8F8KcmTKYAxgLiRvAERgGjoDHB9gtAcDbBFmT2BOEgIAZOhgFmCWYH5gtGBMYJJpFhgGtg/cVqq8WwtDF6wBvCzOwgMgFgEdBB8BegJtMDGWU4EBiwq5SBsA5SR0jwvLDqdN6wGcAoidUAVBYAD4AD4LATUXWHsMpg0lILuwSABQDTUAFhO4NVUC0wxLZhEcANlPBnYECx9bADIAtwKbKAsWcKwzOaAaAVwBhwn9A9ruEAarBksGugAey1aqWwq7YhOKCy1ADrwBvAEjA0hbKSkpIR8gIi0TJwciDY4AVQJvWJFKlgJvIA9ySAHUdRDPUiEaqrFN6wcSBU1gAPgAPgsBewAHJW0LiAymOTEuyLBXDgwAYL0MAGRKaFAiIhzAADIAtwKbKC08D88CkRh8ULxYyXRzjtilnA72mhU+G+0S2hIHDxwByAk7EJQGESwNNwwAPAC0zwEDAKUA4gCbizAAFQBcG8cvbXcrDsIRAzwlRNTiHR8MG34CfATCC6vxbQA4Oi4Opzkuz6IdB7wKABA7Ls8SGgB9rNsdD7wbSBzOoncfAT4qYB0C7KAJBE3z5R9mDL0M+wg9Cj8ABcELPgJMDbwIvQ09CT0KvS7PoisOvAaYAhwPjBriBBwLvBY8AKELPBC8BRihe90AO2wMPQACpwm9BRzR9QYFB2/LBnwAB7wSXBISvQECAOsCAAB1FVwHFswV/HAXvBg8AC68AuyovAAevAJWISuAAAG8AALkFT0VvCvso7zJqDwEAp8nTAACXADn3hm8CaVcD7/FAPUafAiiBQv/cQDfvKe8GNwavKOMeXMG/KmchAASvAcbDAADlABtvAcAC7ynPAIaPLsIopzLDvwHwak8AOF8L7dtvwNJAAPsABW8AAb8AAm8AGmMABq8AA68Axi8jmoV/AABXAAObAAuTB8ABrwAF7wIIgANSwC6vCcAA7wADpwq7ACyWwAcHAAbvAAB7AqiAAXHCxYV3AAHnABCvAEDAGm8AAt8AB28AAi8CaIABcsAbqAZ1gCSCCIABcsAATwAB9wAHZwIIgAGmwAJfAAbLABtHADmvIEACFwACDwAFLwAaPwJIgAGywDjjAAJPAuiDsX7YAAHPABunUBJAEgACrwFAAM8AAmuAzgABxwAGXwAAgym/AAKHAAKPAAJ/KfsBrwACRwAAwwAEDwBABQ8ABFsAA+MAA3sAA28ABkMBxYcABU8AG6cFrQBvAC7ABM8BABpLAsA4UwAAjwABFMAF3wFHAAG0QAYvB8BfClTADpGALAJBw4McwApK3EBpQYIXwJtJA0ACghwTG1gK4oggRVjLjcDogq1AALZABcC/ARvAXdzSFMVIgNQAhY/AS0GBHRHvnxTe0EAKgAyAvwAVAvcAHyRLQEsAHfmDhIzRwJLAFgGAAJRAQiLzQB5PAQhpgBbANcWAJZpOCCMAM5ssgDQ1RcJw3Z0HBlXHgrSAYmRrCNUVE5JEz3DivoAgB04QSos4RKYUABzASosMSlDGhADMVYE+MbvAExm3QBrAnICQBF7Osh4LzXWBhETIAUVCK6v/xPNACYAAQIbAIYAiQCONgDjALQA1QCdPQC7AKsApgChAOcAnwDTAJwA4AEBAPwAwAB6AFsAywDNAPwA1wDrAIkAogEqAOMA2ADVBAIIKzTT09PTtb/bzM/NQjEWAUsBVS5GAVMBYgFhAVQBRUpCRGcMAUwUBgkEMzcMBwAgDSQmKCs3OTk8PDw9Pg0/HVBQUFBSUlFSKFNUVlVVHFxgYF9hYCNlZ29ucXFxcXFxc3Nzc3Nzc3Nzc3N1dXZ1dFsAPesAQgCTAHEAKwBf8QCHAFAAUAAwAm/oAIT+8fEAXQCM6wCYAEgAWwBd+PipAH4AfgBiAE8AqgAdAK8AfAI5AjwA9QDgAPcA9wDhAPgA4gDiAOEA3wAoAnQBSgE5ATcBTQE3ATcBNwEyATEBMQExARUBURAAKgkBAEwYCxcEFhcPAIcAjwCfAEoAYxkCKgBvAGgAkAMOAyArAxpCP0gqAIoCSADAAlACnQC5Ao8CjwKPAo8CjwKPAoQCjwKPAo8CjwKPAo8CjgKOApECmQKQAo8CjwKNAo0CjQKNAosCjgJuAc0CkAKYAo8CjwKOF3oMAPcGA5gCWgIzGAFNETYC2xILLBQBRzgUTpIBdKU9AWJaAP4DOkgA/wCSKh4ZkGsAKmEAagAvAIoDlcyM8K+FWwa7LA/DEgKe1nUrCwQkWwGzAN5/gYB/gX+Cg4N/hIeFf4aJh4GIg4mDin+Lf4x/jYuOf49/kIORf5J/k3+Uf5WElomXg5h/AIMloQCEBDwEOQQ7BD4EPARCBD8EOgRABEIEQQQ9BD8EQgCkA4gAylIA0AINAPdbAPcBGgD3APUA9QD2APXVhSRmvwD3APUA9QD2APUdAIpbAPcAigEaAPcAigLtAPcAitWFJGa/HQD4WwEaAPcA9wD1APUA9gD1APgA9QD1APYA9dWFJGa/HQCKWwEaAPcAigD3AIoC7QD3AIrVhSRmvx0CRAE3AksBOgJMwgOfAu0Dn9WFJGa/HQCKWwEaA58AigOfAIoC7QOfAIrVhSRmvx0EMQCKBDIAigeOMm4hLQCKAT9vBCQA/gDHWwMAVVv/FDMDAIoDPtkASgMAigMAl2dBtv/TrfLzakaPh3aztmIuZQrR3ER2n5Yo+qNR2jK/aP/V04UK1njIJXLgkab9PjOxyJDVbIN3R/FZLoZVl2kYFQIZ7V6LpRqGDt9OdDohnJKp5yX/HLj0voPpLrneDaN11t5W3sSM4ALscgSw8fyWLVkKa/cNcQmjYOgTLZUgOLi2F05g4TR0RfgZ4PBdntxdV3qvdxQt8DeaMMgjJMgwUxYN3tUNpUNx21AvwADDAIa0+raTWaoBXmShAl5AThpMi282o+WzOKMlxjHj7a+DI6AM6VI9w+xyh3Eyg/1XvPmbqjeg2MGXugHt8wW03DQMRTd5iqqOhjLvyOCcKtViGwAHVLyl86KqvxVX7MxSW8HLq6KCrLpB8SspAOHO9IuOwCh9poLoMEha9CHCxlRAXJNDobducWjqhFHqCkzjTM2V9CHslwq4iU19IxqhIFZMve15lDTiMVZIPdADXGxTqzSTv0dDWyk1ht430yvaYCy9qY0MQ3cC5c1uw4mHcTGkMHTAGC99TkNXFAiLQgw9ZWhwKJjGCe+J5FIaMpYhhyUnEgfrF3zEtzn40DdgCIJUJfZ0mo3eXsDwneJ8AYCr7Vx2eHFnt2H6ZEyAHs9JoQ4Lzh5zBoGOGwAz37NOPuqSNmZf51hBEovtpm2T1wI79OBWDyvCFYkONqAKGVYgIL0F+uxTcMLSPtFbiNDbBPFgip8MGDmLLHbSyGXdCMO6f7teiW9EEmorZ+75KzanZwvUySgjoUQBTfHlOIerJs6Y9wLlgDw18AB1ne0tZRNgGjcrqHbtubSUooEpy4hWpDzTSrmvqw0H9AoXQLolMt9eOM+l9RitBB1OBnrdC1XL4yLFyXqZSgZhv7FnnDEXLUeffb4nVDqYTLY6X7gHVaK4ZZlepja2Oe6OhLDI/Ve5SQTCmJdH3HJeb14cw99XsBQAlDy5s5kil2sGezZA3tFok2IsNja7QuFgM30Hff3NGSsSVFYZLOcTBOvlPx8vLhjJrSI7xrNMA/BOzpBIJrdR1+v+zw4RZ7ry6aq4/tFfvPQxQCPDsXlcRvIZYl+E5g3kJ+zLMZon0yElBvEOQTh6SaAdIO6BwdqJqfvgU+e8Y65FQhdiHkZMVt9/39N2jGd26J6cNjq8cQIyp6RonRPgVn2fl89uRDcQ27GacaN0MPrcNyRlbUWelKfDfyrNVVGBG5sjd3jXzTx06ywyzuWn5jbvEfPPCTbpClkgEu9oPLKICxU5HuDe3jA1XnvU85IYYhaEtOU1YVWYhEFsa4/TQj3rHdsU2da2eVbF8YjSI0m619/8bLMZu3xildwqM7zf1cjn4Whx0PSYXcY5bR7wEQfGC7CTOXwZdmsdTO8q3uGm7Rh/RfCWwpzBHCAaVfjxgibL5vUeL0pH6bzDmI9yCXKC/okkmbc28OJvI87L/bjFzpq0DHepw4kT1Od+fL7cyuFaRgfaUWB2++TCFvz11J0leEtrGkpccfX9z2LY39sph4PBHCjNOOkd0ybUm+ZzS8GkFbqMpq8uiX2yHpa0jllTLfGTDBMYR6FT5FWLLDPMkYxt1Q0eyMvxJWztDjy0m6VvZPvamrFXjHmPpU6WxrZqH6WW//I37RwvqPQhPz8I3RPuXAk1C94ZprQWm9iGM/KgiGDO6SV9sjp+Jmk4TBajMNJ5zzWZ1k1jrteQQBp9C2dOvmbIeeEME8y573Q8TgGe+ZCzutM45gYLBzYm2LNvgq2kebAbMpHRDSyh6dQ27GbsAAdCqQVVXWC1C+zpwBM2Lr4eqtobmmu1vJEDlIQR1iN8CUWpztq50z7FFQBn3SKViX6wSqzVQCoYvAjByjeSa+h1PRnYWvBinTDB9cHt4eqDsPS4jcD3FwXJKT0RQsl8EvslI2SFaz2OtmYLFV8FwgvWroZ3fKmh7btewX9tfL2upXsrsqpLJzpzNGyNlnuZyetg7DIOxQTMBR7dqlrTlZ6FWi1g4j1NSjA2j1Yd7fzTH6k9LxCyUCneAKYCU581bnvKih6KJTeTeCX4Zhme/QIz7w2o+AdSgtLAkdrLS9nfweYEqrMLsrGGSWXtgWamAWp6+x6GM/Z8jNw3BqPNQ39hrzYLECn3tPvh/LqKbRSCiDGauDKBBj/kGbpnM1Bb/my8hv4NWStclkwjfl57y4oNDgw1JAG9VOti3QVVoSziMEsSdfEjaCPIDb7SgpLXykQsM+nbqbt97I0mIlzWv0uqFobLMAq8Rd9pszUBKxFhBPwOjf//gVOz2r7URJ2OnpviCXv9iz3a4X/YLBYbXoYwxBv/Kq0a5s4utQHzoTerJ7PmFW/no/ZAsid/hRIV82tD+Qabh5F1ssIM8Ri3chu0PuPD3sSJRMjDoxLAbwUbroiPAz/V52e8s3DIixxlO7OrvhMj3qfzA0kKxzwicr5wJmZwJxTXgrwYsqhRvpgC2Nfdyd+TYYxJSZgk+gk2g9KyHSlwQVAyPtWWgvVGyVBqsU2LpDlLNosSAtolC1uBKt5pQZLhAxTjeGCWIC/HVpagc5rRwkgpCHKEsjA8d+scp8aiMewwQBhp5dYTV5t/Nvl+HbDMu8F3S0psPyZb1bSnqlHPFUnMQeQqSqwDBT23fJO9gO3aVaa1icrXU0PKwlMM5K+iL3ATcVq2fFWKk0irCTF4LDVDG4gUpkyplq6efcZS+WDR1woApjD18x+2JQR9oOXzuA7uy4b+/91WsJd/tSd1QcAH8PVPXApieA37B7YXPhDPH1azP3PKR+HfHmOoDYLeuKsIi/ssSsdYs62qJo14Hw1P2N/6zpr8F3FTWmJ4ysAVcl84Iv/tl///Z8FaAWbBQbyMNDZjrZ2JwdRjtd1jOeNumSodFtr4/Zf45iRJf/8HSW+KIB/+GlKu8Rv1BPLr/4duoL+kFPRqrstEr41gfJupoJRf4hcYDWX93FOcfEBiIivxtjtV8g7mvOReiamYWKE7vfPbv3v2L9Kwq3cIDFGLyhyfOGuf/9vA5muH6Pjg7B4SUj2ydDXra9fSBI+DrsNHA6l51wfHssJb+11TfNk7B8OleUe3Y+ZmHboMFHdv7FFP2cfISFyeAQR0sk/Xv62HBTdW4HmnGSLFk/cqyWVVFJkdIIa+4hos3JRHcqLoRKM5h2Qtk1RZtzISMtlXTfTqIc77YsCCgQD0r61jtxskCctwJOtjE/pL8wC4LBD4AZFjh2wzzFCrT/PNqW0/DeBbkfMfzVm9yy06WiF+1mTdNNEAytVtohBKg3brWd2VQa+aF+cQ0mW5CvbwOlWCT07liX226PjiVLwFCRs/Ax2/u+ZNPjrNFIWIPf5GjHyUKp60OeXe9F01f7IaPf/SDTvyDAf7LSWWejtiZcsqtWZjrdn6A2MqBwnSeKhrZOlUMmgMionmiCIvXqKZfmhGZ1MwD3uMF4n9KJcfWLA3cL5pq48tm5NDYNh3SS/TKUtmFSlQR89MR4+kxcqJgpGbhm9gXneDELkyqAN5nitmIzTscKeJRXqd64RiaOALR2d295NWwbjHRNG2AU5oR9OS2oJg/5CY6BFPc1JvD2Mxdhp2/MZdI8dLePxiP4KRIp8VXmqfg+jqd/RNG7GNuq1U2SiI4735Bdc0MVFx6mH5UOWEa5HuhYykd6t4M1gYLVS8m1B+9bUqi5DziQq7qT8d94cxB6AB4WqMCOF/zPPtRSZUUaMSsvHOWxGASufywTX8ogy6HgUf9p+Z30wUEosl8qgmwm6o2AV6nO9HKQjRHpN6SUegI5pvR61RLnUJ1lqCtmfcsRQutEizVpAaPXN7xMp5UQ5OSZK6tniCK9CpyMd7LjR6+MxfoMEDPpWdf2p2m5N3KO4QMxf+V7vGdYjemQczQ+m2MGIkFNYDMf0Yop2eSx81sP36WHUczqEhKysp2iJSYAvfgJjinKwToPvRKb+HBi+7cJ96S5ngfLOXaHAFRLkulo4TnXTFO51gX0TCCo4ZUHdbpdgkMEwUZAPjh6M+hA8DzycbtxAgH3uD6i0nN1aTiIuQ4BYCE9dEHHwAmINU+4YEWx4EC3OZwFGfYZMPLScVlb+BAAJeARUh+gdWA3/gRqCrf1jecgqeFf1MdzrrP4SVlGm5mMihSP+zYYksAB7O+SBPwNQqSNMiLnkviY/klwgcRmvqtCqeWeA0gjuir4CMZqmw/ntP6M+l0pdN8/P9xI53aP7x/zavJbbKOz8VzO/nXxIr1tjparMnqd6iWdByHKw4lF4p/u57Yv07WeZPDnRl7wgmDVZZ44fQsjdYO/gmXQ+940PRGst8UMQApFC4OOV22e4N+lVOPyFLAOj4t8R3PFw/FjbSWy0ELuAFReNkee8ORcBOT2NPDcs7OfpUmzvn/F9Czk9o9naMyVYy/j8I5qVFmQDFcptBp65J/+sJA3w/j6y/eqUkKxTsf0CZjtNdRSBEmJ2tmfgmJbqpcsSagk+Ul9qdyV+NnqFBIJZFCB1XwPvWGDBOjVUmpWGHsWA5uDuMgLUNKZ4vlq5qfzY1LnRhCc/mh5/EX+hzuGdDy5aYYx4BAdwTTeZHcZpl3X0YyuxZFWNE6wFNppYs3LcFJePOyfKZ8KYb7dmRyvDOcORLPH0sytC6mH1US3JVj6paYM1GEr+CUmyHRnabHPqLlh6Kl0/BWd3ebziDfvpRQpPoR7N+LkUeYWtQ6Rn5v5+NtNeBPs2+DKDlzEVR5aYbTVPrZekJsZ9UC9qtVcP99thVIt1GREnN8zXP8mBfzS+wKYym8fcW6KqrE702Zco+hFQAEIR7qimo7dd7wO8B7R+QZPTuCWm1UAwblDTyURSbd85P4Pz+wBpQyGPeEpsEvxxIZkKsyfSOUcfE3UqzMFwZKYijb7sOkzpou+tC4bPXey5GI1GUAg9c3vLwIwAhcdPHRsYvpAfzkZHWY20vWxxJO0lvKfj6sG2g/pJ1vd/X2EBZkyEjLN4nUZOpOO7MewyHCrxQK8d5aF7rCeQlFX+XksK6l6z971BPuJqwdjj68ULOj9ZTDdOLopMdOLL0PFSS792SXE/EC9EDnIXZGYhr52aQb+9b2zEdBSnpkxAdBUkwJDqGCpZk/HkRidjdp0zKv/Cm52EenmfeKX6HkLUJgMbTTxxIZkIeL/6xuAaAAHbA7mONVduTHNX/UJj1nJEaI7f3HlUyiqKn7VfBE+bdb4HWln1HPJx001Ulq1tOxFf8WZEARvq5Da1+pE7fPVxLntGACz3nkoLsKcPdUqdCwwiyWkmXTd5+bv3j7HaReRt3ESn783Ew3SWsvkEjKtbocNksbrLmV+GVZn1+Uneo35MT1/4r8fngQX5/ptORfgmWfF6KSB/ssJmUSijXxQqUpzkANEkSkYgYj560OOjJr6uqckFuO15TRNgABEwNDjus1V3q2huLPYERMCLXUNmJJpbMrUQsSO7Qnxta55TvPWL6gWmMOvFknqETzqzFVO8SVkovEdYatypLGmDy9VWfgAc0KyIChiOhbd7UlbAeVLPZyEDp4POXKBwN/KP5pT6Cyqs6yaI00vXMn1ubk9OWT9Q/O2t/C25qlnO/zO0xcBzpMBCAB8vsdsh3U8fnPX1XlPEWfaYJxKVaTUgfCESWl4CCkIyjE6iQ5JFcwU6S4/IH0/Agacp8d5Gzq2+GzPnJ7+sqk40mfFQpKrDbAKwLlr3ONEati2k/ycLMSUu7V/7BBkDlNyXoN9tvqXCbbMc4SSQXgC/DBUY9QjtrCtQ+susEomCq8xcNJNNMWCH31GtlTw2BdCXkJBjT+/QNWlBWwQ5SWCh1LdQ99QVii/DyTxjSR6rmdap3l3L3aiplQpPYlrzNm9er88fXd2+ao+YdUNjtqmxiVxmyYPzJxl67OokDcTezEGqldkGgPbRdXA+fGcuZVkembZByo7J1dMnkGNjwwCny+FNcVcWvWYL9mg8oF7jACVWI3bA64EXpdM8bSIEVIAs5JJH+LHXgnCsgcMGPZyAAVBncvbLiexzg9YozcytjPXVlAbQAC7Tc4S0C8QN4LlAGjj4pQAVWrwkaDoUYGxxvkCWKRRHkdzJB5zpREleBDL1oDKEvAqmkDibVC4kTqF89YO6laUjgtJPebBfzr16tg4t10GmN1sJ5vezk2sUOq8blCn5mPZyT3ltaDcddKupQjqusNM9wtFVD0ABzv17fZDn7GPT1nkCtdcgYejcK1qOcTGtPxnCX1rErEjVWCnEJv5HaOAUjgpiKQjUKkQi64D5g2COgwas8FcgIl0Pw95H9dWxE3QG0VbMNffh6BPlAojLDf4es2/5Xfq7hw5NGcON2g8Qsy2UQm94KddKyy3kdJxWgpNaEc15xcylbLC3vnT26u8qS90qc2MU8LdOJc5VPF5KnSpXIhnj1eJJ/jszjZ01oR6JDFJRoeTPO/wh4IPFbdG9KljuSzeuI92p8JF/bpgDE8wG86/W2EBKgPrmzdLijxssQn8mM44ky/KLGOJcrSwXIpZa/Z3v7W6HCRk7ewds99LTsUW1LbeJytw8Q/BFZVZyfO9BUHOCe2suuEkO8DU4fLX0IQSQ2TdOkKXDtPf3sNV9tYhYFueuPRhfQlEEy+aYM/MCz7diDNmFSswYYlZZPmKr2Q5AxLsSVEqqBtn6hVl1BCFOFExnqnIsmyY/NA8jXnDaNzr7Zv3hu+I1Mf/PJjk0gALN2G8ABzdf9FNvWHvZHhv6xIoDCXf964MxG92vGZtx/LYU5PeZqgly8tT5tGeQGeJzMMsJc5p+a5Rn2PtEhiRzo/5Owjy1n0Lzx3ev8GHQmeWb8vagG6O5Qk5nrZuQTiKODI4UqL0LLAusS2Ve7j1Ivdxquu1BR9Rc4QkOiUPwQXJv6du2E8i5pDhVoQpUhyMWGUT2O2YODIhjAfI71gxep5r5zAY7GBUZpy51hAw0pcCCrhOmU8Wp6ujQTdZQsCjtq6SHX8QAMNiPCIIkoxhHEZPgsBcOlP4aErJZPhF7qvx6gHrn8hEwPwYbx8YmT/n7lbcmTip1v8kgsrIjFTAlvLY4Nuil0KDmgz3svYs0ZJ3O3Is/vSx4xpxF1e2VAtZE8dJxGYEIhCSuPvCjP54l/NSNDnwlKvAW8mG+AQkgp7a87Igh26uKMFGD0PoPHTSvoWxiHuk+su8XkQiHIjeYKl/RdcOHpxhQH3zHCNE3aARm83Bl6zGxU/vMltlVPQhubcqhW4RYkl6uXk5JdP/QpzaKFpw2M8zvysv2qj7xaQECuu2akM0Cssj/uB9+wDR7uA6XOnLNaoczalHoMj33eiiu+DRaFsUmlmUZuh9bjDY4INMNSSAivSh03uJvny4Gj+D+neudoa7iJi7c4VFlZ/J5gUR82308zSNAt/ZroBXDWw0fV3eVPAn3aX0mtJabF6RsUZmL+Ehn+wn51/4QipMjD+6y64t7bjL6bjENan2prQ4h7++hBJ9NXvX8CUocJqMC937IasLzm5K0qwXeFMAimMHkEIQIQI2LrQ9sLBfXuyp66zWvlsh74GPv7Xpabj993pRNNDuFud5oIcn/92isbADXdpRPbjmbCNOrwRbxGZx2XmYNGMiV5kjF4IKyxCBvKier9U4uVoheCdmk83rp5G0PihAm2fAtczI4b9BWqX+nrZTrJX5kSwQddi93NQrXG+Cl3eBGNkM77VBsMpEolhXex1MVvMkZN9fG59GGbciH11FEXaY1MxrArovaSjE/lUUqBg2cZBNmiWbvzCHCPJ4RVGFK2dTbObM1m+gJyEX53fa7u3+TZpm74mNEzWbkVL4vjNwfL9uzRCu1cgbrNx5Yv5dDruNrIOgwIk+UZWwJfdbu/WHul6PMmRflVCIzd7B37Pgm/Up/NuCiQW7RXyafevN3AL6ycciCc4ZPlTRzEu+aURGlUBOJbUEsheX7PPyrrhdUt5JAG12EEEZpY/N3Vhbl5uLAfT0CbC2XmpnryFkxZmBTs5prvEeuf0bn73i3O82WTiQtJWEPLsBXnQmdnKhB06NbbhLtlTZYJMxDMJpFeajSNRDB2v61BMUHqXggUwRJ19m6p5zl51v11q34T74lTXdJURuV6+bg2D6qpfGnLy7KGLuLZngobM4pIouz4+n0/UzFKxDgLM4h+fUwKZozQ9UGrHjcif51Ruonz7oIVZ56xWtZS8z7u5zay6J2LD4gCYh2RXoBRLDKsUlZ80R8kmoxlJiL8aZCy2wCAonnucFxCLT1HKoMhbPKt34D97EXPPh0joO93iJVF1Uruew61Qoy3ZUVNX9uIJDt9AQWKLLo+mSzmTibyLHq0D6hhzpvgUgI6ekyVEL3FD+Fi5R3A8MRHPXspN1VyKkfRlC+OGiNgPC4NREZpFETgVmdXrQ2TxChuS3aY+Ndc7CiYv5+CmzfiqeZrWIQJW/C4RvjbGUoJFf1K6ZdR2xL/bG4kVq1+I4jQWX+26YUijpp+lpN7o5c6ZodXJCF56UkFGsqz44sIg8jrdWvbjRCxi2Bk0iyM3a7ecAV93zB6h1Ei38c0s6+8nrbkopArccGP8vntQe1bFeEh2nJIFOHX/k3/UHb5PtKGpnzbkmnRETMX+9X/QduLZWw/feklW/kH/JnzToJe9Kgu9Hct1UGbH5BPCLo4OOtQnZonW0xnyCcdtKyPQ/sbLiSTYJdSx4sJqWLMnfn6fIqPB3WAgk00J+fCOkomPHqtS67pf0mFmKoItYZUlJu6BihSZ8qve8+/X+LX1MhQXF95AshfUleCtmdn6l6QFXzLg2sgLn1oyVFuZecv7fzsIHzoRlAGp0gwYDOn1S4qabWvB5xUaE+Svw4KmjWtxdnuQbI32dw87D4N95u8qQRJTSQg0wLxOLkxSrPMLEn1UIhNKjAa9VLs3WLaXGrtCIt8bKY2AQP/ZdyRU6zT/E8qP2ltyBE2CCZPgWgEYDoJJO4n92y61ylNaSFXKohJhLjkfvYWm592539sIpmBNLlDo1bExFBfmHJJ0lFEiC/fj8v42OoMC9Mo3whIoWvyHfq6Uacqq55mzFf/EGC+NP/gHjhd6urc6R0hES27VXux7UY8CGKPohplWIZtTrFSaPWslCWy78E22Pw8fvReSUZx/txqLtHrFqg1DY/Eus6Iq1heZdrdcqE0/c971Bz1HW/XNXHsXpUIbI4kHdOfCc6T5zHZzvzQJB0ggMFL6IGPAilU9bj/ASdPk6fNvNtZqPuwEDhMBtBnhCexo6D6VAGIOPvJPPV523Y8R8a9vCqZbswSZKzOT1291BsUbmUWehtbb1fdRX9hiJKXvwr1QX6GjnZMgyMvnwOo2Dr24amr7FqEAbVeJAjRNOceM2EQ1Mna9fInqPJ5mh5X8CzT1aDOv08An0blz0fF5Gq4mS2cwq5glwIOlY5nznE8X4j/UdZ3FJsVIXte1JH0A7iibuPfazStM5O/Vo3KXIpXBeGORV0M9XDXFvsYZUHGvFCUubWzTw248EHE0cpQM2zNg6rjavreq3NHCAWsoZ7wvVy7l5gvtKRmIj1MnvfWEm0yFnGcuOq192350a5WefpfKCcX3Sn+AgHU+qnpstNtddbdVebagJU390lq9ko4aI9rqdaWXYG8tv5O/ZQHSqDRYHC6zfH10l5z++opso7aOSaIczlQ13iAzXvLdEu0V7kwNUZ1c8Y8aq7SeIEe5p902FlNkW8DnwHyueHchbK8vVFJfmr9mz7P8nUSccl1ULaoWMRSI1ls32kvlK0h46h3J25Yd9AzfcJbp9qYF/SEt3H5j69mMdcsNxZcAzT/A89ov3tglTX54y/EwjMfuoDoxPwLJDm5I7q6F9Kp469yNy1zSxz0N4HbRRBj9xFFuogvBspv7DXUNIsGxTINEQfmctb42XImWAODgARNo7dfcTqFKq6aTfivmvunLmzP9f8yLsJvXD3JbcPcDGNriMAcjzeDTNr65t8YB5tsnFDFLa0Uwmd2OvUdkLMX9TsAUYUfooSv47sw5J88j7CpahRjjO3/UhOXjTS39W5YZAel2KTbQd1h7INOw9P23GW7GDAe4agIUFHP48MZr7ubq0efFmmtwYMyk7D0r1oeG/CGOODgb9Ur+JMHxkwzPbtCX2ZnENQuI0RN5SyTIZuoY4XS9Rd/tPe3vNAZGSHM/YYwqs9xkkENx0O+eC2YVW1cwOJ3ckE890nbQeHLKlW15L0P0W2VliyYrfNr0nrIYddoRyGaCtj4OYd2MT7ebApqZOAQIaSHJM4mphhfjNjtnjg6YRyx9qM2FT3xOiYIMqXPFWdzhSgFF8ItocqVV09CmIoO8k6U/oJB7++wSX/YksxfPXHyjSgAGZOj1aKEq9fSvXBqtp2wu8/FxEf5AxapAD06pPGuLVUYLdgEzHR8wqRGYEwiUO9MyYbgswstuLYhwYFpSVKOdzAihZ9LuHtD598EGhINU9xc9xhL+QgTLAstmPIvvm2xyRw/WTUPXkP3ZHu6GyPmj5xFH9/QGpkglKXRVUBgVmLOJx8uZO2AstxQYocZH2JhORlxawj66BAXUEs7K/gPxINIRAFyK3WLuyq9oBTF9wEbnmCot82WjIg7CPNwYK3KrZMrKAz5yFszg4wCVLJVnIL8+OYA0xRDH8cHQjQUiQ2i1mr/be32k/3Xej9sdf3iuGvZHyLFSJvPSqz/wltnxumTJYKZsrWXtx/Rmu39jjV9lFaJttfFn57/No2h/unsJmMHbrnZ8csxkp5HQ4xR1s0HH+t3Iz82a3iQWTUDGq/+l2W3TUYLE8zNdL8Y+5oXaIH/Y2UUcX67cXeN4WvENZjz4+8q7vjhowOI3rSjFhGZ6KzwmU7+5nFV+kGWAZ5z2UWvzq0TK0pk1hPwAN4jbw//1CApRvIaIjhSGhioY6TUmsToek9cF9XjJdHvLPcyyCV3lbR5Jiz/ts46ay2F820VjTXvllElwrGzKcNSyvQlWDXdwrUINXmHorAM3fE19ngLZmgeUaCJLsSITf2VcfAOuWwX7mTPdP8Zb/04KqRniufCpwnDUk7sP0RX6cud/sanFMagnzKInSRVey0YzlVSOtA/AjrofmSH6RYbJQ8b4NDeTkIGc6247+Mnbez/qhJ9GAv9fGNFercPnnrf285Qgs+UqThLRgflcAKFuqWhLzZaR4QqvSwa3xe0LPkqj9xJWub195r7NrrR0e78FR+0mRBNMPsraqZctAUVAJfYKehTDV1MGGQSeDsOK9J3sbUuKRIS/WilX/64CBms9jCZocBlsBSZaIAjWm/SUZ8daWL2a/cJFyUOFqE3Epc2RWbtjNyPwOGpWtzu32kUooUqsJud7IV4E8rstUBXM7tGEtBx99x60g1duhyvxeKJSl8s5E34HTMmADT0836aEdg5Dv9rVyCz8i2REOmiz6wtIVFN0HsjAoN37SrY0bV1Ms8CRUILhvZvvRaDzoVCaSI0u8EPuTe4b7OPowgRGODl22UBBmHSTUY8e4DyL+Bc7bngo+2T8HtNvzyATSL5iJZgFPKpmUyZv54vVL90+/RQGATUmNKnrIvcJMYON9fl83naW5sf6hRkbbTC9RUEE6XADwjgA46wWfUQ+QWZl0J4PVTWAln/YfAz/SV3q3J9+yCYDleruoN5uoc/wT2f4YONGTb6zTGq3V+3JqzmCOjwebKln+fExVLN7sqtqfMnsKVXWbb2Ai5m3D/fCTgX7oKYzTZvj+m28XnDqPbXuP4MyWdmPezcesdrh7rCzA7BWdObiuyDEKjjzBbQ0qnuwjliz+b+j7aPMKlkXyIznV3tGzAfYwIbzGGt098oh4eq3ruDjdgHtjxfFCjHrjjRbHajoz/YOY4raojPFQ910GIlBV7hq47UDgpyajBxQUmD8NctiLV1rTSLAEsQDLTeRKcmPBMVMFF0SPBBhZ5oXoxtD3lMhuAQXmA+57OcciczVW9e9zwSIAHS+FJmvfXMJGF1dMBsIUMaPjvgaVqUc3p32qVCMQYFEiRLzlVSOGMCmv/HJIxAHe3mL/XnoZ1IkWLeRZfgyByjnDbbeRK5KL7bYHSVJZ9UFq+yCiNKeRUaYjgbC3hVUvfJAhy/QNl/JqLKVvGMk9ZcfyGidNeo/VTxK9vUpodzfQI9Z2eAre4nmrkzgxKSnT5IJ1D69oHuUS5hp7pK9IAWuNrAOtOH0mAuwCrY8mXAtVXUeaNK3OXr6PRvmWg4VQqFSy+a1GZfFYgdsJELG8N0kvqmzvwZ02Plf5fH9QTy6br0oY/IDsEA+GBf9pEVWCIuBCjsup3LDSDqI+5+0IKSUFr7A96A2f0FbcU9fqljdqvsd8sG55KcKloHIFZem2Wb6pCLXybnVSB0sjCXzdS8IKvE");const n0=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),i0=4;function P7(a){return a.toString(16).toUpperCase().padStart(2,"0")}function Av(a){return`{${P7(a)}}`}function T7(a){let m=[];for(let w=0,_=a.length;w<_;){let h=a.codePointAt(w);w+=h<65536?1:2,m.push(h)}return m}function Na(a){let w=a.length;if(w<4096)return String.fromCodePoint(...a);let _=[];for(let h=0;h<w;)_.push(String.fromCodePoint(...a.slice(h,h+=4096)));return _.join("")}var pd=bv("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");function ea(a){return a>>24&255}function Ev(a){return a&16777215}const M7=new Map(_v(pd).flatMap((a,m)=>a.map(w=>[w,m+1<<24]))),I7=new Set(mn(pd)),Sv=new Map,Df=new Map;for(let[a,m]of wv(pd)){if(!I7.has(a)&&m.length==2){let[w,_]=m,h=Df.get(w);h||(h=new Map,Df.set(w,h)),h.set(_,a)}Sv.set(a,m.reverse())}const La=44032,ds=4352,hs=4449,ps=4519,Cv=19,kv=21,wi=28,vs=kv*wi,D7=Cv*vs,B7=La+D7,R7=ds+Cv,N7=hs+kv,L7=ps+wi;function Ov(a){return a>=La&&a<B7}function U7(a,m){if(a>=ds&&a<R7&&m>=hs&&m<N7)return La+(a-ds)*vs+(m-hs)*wi;if(Ov(a)&&m>ps&&m<L7&&(a-La)%wi==0)return a+(m-ps);{let w=Df.get(a);return w&&(w=w.get(m),w)?w:-1}}function Pv(a){let m=[],w=[],_=!1;function h(r){let s=M7.get(r);s&&(_=!0,r|=s),m.push(r)}for(let r of a)for(;;){if(r<128)m.push(r);else if(Ov(r)){let s=r-La,i=s/vs|0,f=s%vs/wi|0,e=s%wi;h(ds+i),h(hs+f),e>0&&h(ps+e)}else{let s=Sv.get(r);s?w.push(...s):h(r)}if(!w.length)break;r=w.pop()}if(_&&m.length>1){let r=ea(m[0]);for(let s=1;s<m.length;s++){let i=ea(m[s]);if(i==0||r<=i){r=i;continue}let f=s-1;for(;;){let e=m[f+1];if(m[f+1]=m[f],m[f]=e,!f||(r=ea(m[--f]),r<=i))break}r=ea(m[s])}}return m}function F7(a){let m=[],w=[],_=-1,h=0;for(let r of a){let s=ea(r),i=Ev(r);if(_==-1)s==0?_=i:m.push(i);else if(h>0&&h>=s)s==0?(m.push(_,...w),w.length=0,_=i):w.push(i),h=s;else{let f=U7(_,i);f>=0?_=f:h==0&&s==0?(m.push(_),_=i):(w.push(i),h=s)}}return _>=0&&m.push(_,...w),m}function Tv(a){return Pv(a).map(Ev)}function j7(a){return F7(Pv(a))}const Bf=65039,Mv=".",Iv=1,a0=45;function Ni(){return new Set(mn(Yt))}const H7=new Map(wv(Yt)),z7=Ni(),ms=Ni(),o0=new Set(mn(Yt).map(function(a){return this[a]},[...ms])),q7=Ni();Ni();const $7=_v(Yt);function s0(){return new Set([mn(Yt).map(a=>$7[a]),mn(Yt)].flat(2))}const W7=Yt(),Ua=Ra(a=>{let m=Ra(Yt).map(w=>w+96);if(m.length){let w=a>=W7;m[0]-=32,m=Na(m),w&&(m=`Restricted[${m}]`);let _=s0(),h=s0(),r=[..._,...h].sort((i,f)=>i-f),s=!Yt();return{N:m,P:_,M:s,R:w,V:new Set(r)}}}),u0=Ni(),Fa=new Map;[...u0,...Ni()].sort((a,m)=>a-m).map((a,m,w)=>{let _=Yt(),h=w[m]=_?w[m-_]:{V:[],M:new Map};h.V.push(a),u0.has(a)||Fa.set(a,h)});for(let{V:a,M:m}of new Set(Fa.values())){let w=[];for(let h of a){let r=Ua.filter(i=>i.V.has(h)),s=w.find(({G:i})=>r.some(f=>i.has(f)));s||(s={G:new Set,V:[]},w.push(s)),s.V.push(h),r.forEach(i=>s.G.add(i))}let _=w.flatMap(({G:h})=>[...h]);for(let{G:h,V:r}of w){let s=new Set(_.filter(i=>!h.has(i)));for(let i of r)m.set(i,s)}}let ja=new Set,Dv=new Set;for(let a of Ua)for(let m of a.V)(ja.has(m)?Dv:ja).add(m);for(let a of ja)!Fa.has(a)&&!Dv.has(a)&&Fa.set(a,Iv);const V7=new Set([...ja,...Tv(ja)]),K7=mn(Yt),G7=Bv([]);function Bv(a){let m=Ra(()=>{let i=mn(Yt).map(f=>K7[f]);if(i.length)return Bv(i)}).sort((i,f)=>f.Q.size-i.Q.size),w=Yt(),_=w%3;w=w/3|0;let h=w&1;w>>=1;let r=w&1,s=w&2;return{B:m,V:_,F:h,S:r,C:s,Q:new Set(a)}}class J7 extends Array{get is_emoji(){return!0}}function Xs(a,m=Av){let w=[];X7(a[0])&&w.push("◌");let _=0,h=a.length;for(let r=0;r<h;r++){let s=a[r];Rv(s)&&(w.push(Na(a.slice(_,r))),w.push(m(s)),_=r+1)}return w.push(Na(a.slice(_,h))),w.join("")}function vd(a){return(Rv(a)?"":`${md(Xs([a]))} `)+Av(a)}function md(a){return`"${a}"`}function Q7(a){if(a.length>=4&&a[2]==a0&&a[3]==a0)throw new Error("invalid label extension")}function l0(a){for(let w=a.lastIndexOf(95);w>0;)if(a[--w]!==95)throw new Error("underscore allowed only at start")}function Y7(a){let m=a[0],w=n0.get(m);if(w)throw aa(`leading ${w}`);let _=a.length,h=-1;for(let r=1;r<_;r++){m=a[r];let s=n0.get(m);if(s){if(h==r)throw aa(`${w} + ${s}`);h=r+1,w=s}}if(h==_)throw aa(`trailing ${w}`)}function X7(a){return ms.has(a)}function Rv(a){return q7.has(a)}function Z7(a){return nx(ex(a))}function ex(a,m){let w=0;return a.split(Mv).map(_=>{let h=T7(_),r={input:h,offset:w};w+=h.length+1;let s;try{let i=r.tokens=ax(h,j7),f=i.length,e;if(f){let l=i[0],n=f>1||l.is_emoji;if(!n&&l.every(t=>t<128))s=l,l0(s),Q7(s),e="ASCII";else if(n&&(r.emoji=!0,l=i.flatMap(t=>t.is_emoji?[]:t)),s=i.flatMap(t=>!m&&t.is_emoji?ox(t):t),l0(s),!l.length)e="Emoji";else{if(ms.has(s[0]))throw aa("leading combining mark");for(let d=1;d<f;d++){let u=i[d];if(!u.is_emoji&&ms.has(u[0]))throw aa(`emoji + combining mark: "${Na(i[d-1])} + ${Xs([u[0]])}"`)}Y7(s);let t=[...new Set(l)],[o]=rx(t);ix(o,l),tx(o,t),e=o.N}}else throw new Error("empty label");r.type=e}catch(i){r.error=i}return r.output=s,r})}function tx(a,m){let w,_=[];for(let h of m){let r=Fa.get(h);if(r===Iv)return;if(r){let s=r.M.get(h);if(w=w?w.filter(i=>s.has(i)):[...s],!w.length)return}else _.push(h)}if(w){for(let h of w)if(_.every(r=>h.V.has(r)))throw new Error(`whole-script confusable: ${a.N}/${h.N}`)}}function rx(a){let m=Ua;for(let w of a){let _=m.filter(h=>h.V.has(w));if(!_.length)throw m===Ua?Nv(w):Lv(m[0],w);if(m=_,_.length==1)break}return m}function nx(a){return a.map(({input:m,error:w,output:_})=>{if(w){let h=w.message;throw new Error(a.length==1?h:`Invalid label ${md(Xs(m))}: ${h}`)}return Na(_)}).join(Mv)}function Nv(a){return new Error(`disallowed character: ${vd(a)}`)}function Lv(a,m){let w=vd(m),_=Ua.find(h=>h.P.has(m));return _&&(w=`${_.N} ${w}`),new Error(`illegal mixture: ${a.N} + ${w}`)}function aa(a){return new Error(`illegal placement: ${a}`)}function ix(a,m){let{V:w,M:_}=a;for(let h of m)if(!w.has(h))throw Lv(a,h);if(_){let h=Tv(m);for(let r=1,s=h.length;r<s;r++)if(o0.has(h[r])){let i=r+1;for(let f;i<s&&o0.has(f=h[i]);i++)for(let e=r;e<i;e++)if(h[e]==f)throw new Error(`non-spacing marks: repeated ${vd(f)}`);if(i-r>i0)throw new Error(`non-spacing marks: too many ${md(Xs(h.slice(r-1,i)))} (${i-r}/${i0})`);r=i}}}function ax(a,m){let w=[],_=[];for(a=a.slice().reverse();a.length;){let h=sx(a);if(h)_.length&&(w.push(m(_)),_=[]),w.push(h);else{let r=a.pop();if(V7.has(r))_.push(r);else{let s=H7.get(r);if(s)_.push(...s);else if(!z7.has(r))throw Nv(r)}}}return _.length&&w.push(m(_)),w}function ox(a){return a.filter(m=>m!=Bf)}function sx(a,m){let w=G7,_,h,r=[],s=a.length;for(m&&(m.length=0);s;){let i=a[--s];if(w=w.B.find(f=>f.Q.has(i)),!w)break;if(w.S)h=i;else if(w.C&&i===h)break;r.push(i),w.F&&(r.push(Bf),s>0&&a[s-1]==Bf&&s--),w.V&&(_=ux(r,w),m&&m.push(...a.slice(s).reverse()),a.length=s)}return _}function ux(a,m){let w=J7.from(a);return m.V==2&&w.splice(1,1),w}function lx(a){return Z7(a)}function fx(a,m,{batch:w={multicall:{wait:32}},pollingInterval:_=4e3,rank:h,retryCount:r,retryDelay:s,stallTimeout:i}={}){if(!a.length)throw new Error("must have at least one chain");let f=[];const e={},l={};for(const n of a){let t=!1;for(const o of m){const d=o(n);d&&(t=!0,f.some(({id:u})=>u===n.id)||(f=[...f,d.chain]),e[n.id]=[...e[n.id]||[],...d.rpcUrls.http],d.rpcUrls.webSocket&&(l[n.id]=[...l[n.id]||[],...d.rpcUrls.webSocket]))}if(!t)throw new Error([`Could not find valid provider configuration for chain "${n.name}". +`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join(` +`))}return{chains:f,publicClient:({chainId:n})=>{const t=f.find(u=>u.id===n)??a[0],o=e[t.id];if(!o||!o[0])throw new Error(`No providers configured for chain "${t.id}"`);const d=t0({batch:w,chain:t,transport:Z1(o.map(u=>lw(u,{timeout:i})),{rank:h,retryCount:r,retryDelay:s}),pollingInterval:_});return Object.assign(d,{chains:f})},webSocketPublicClient:({chainId:n})=>{const t=f.find(u=>u.id===n)??a[0],o=l[t.id];if(!o||!o[0])return;const d=t0({batch:w,chain:t,transport:Z1(o.map(u=>c7(u,{timeout:i})),{rank:h,retryCount:r,retryDelay:s}),pollingInterval:_});return Object.assign(d,{chains:f})}}}var cx=class extends Error{constructor({chainId:a,connectorId:m}){super(`Chain "${a}" not configured${m?` for connector "${m}"`:""}.`),this.name="ChainNotConfigured"}},dx=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},hx=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},px=class extends Error{constructor({connector:a}){super(`"${a.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}},Rf=(a,{find:m,replace:w})=>a&&m(a)?w(a):typeof a!="object"?a:Array.isArray(a)?a.map(_=>Rf(_,{find:m,replace:w})):a instanceof Object?Object.entries(a).reduce((_,[h,r])=>({..._,[h]:Rf(r,{find:m,replace:w})}),{}):a;function vx(a){const m=JSON.parse(a);return Rf(m,{find:_=>typeof _=="string"&&_.startsWith("#bigint."),replace:_=>BigInt(_.replace("#bigint.",""))})}function f0(a){return typeof a=="number"?a:a==="wei"?0:Math.abs($5[a])}function c0(a,m){return a.slice(0,m).join(".")||"."}function d0(a,m){const{length:w}=a;for(let _=0;_<w;++_)if(a[_]===m)return _+1;return 0}function mx(a,m){const w=typeof a=="function",_=typeof m=="function",h=[],r=[];return function(i,f){if(typeof f=="object")if(h.length){const e=d0(h,this);e===0?h[h.length]=this:(h.splice(e),r.splice(e)),r[r.length]=i;const l=d0(h,f);if(l!==0)return _?m.call(this,i,f,c0(r,l)):`[ref=${c0(r,l)}]`}else h[0]=f,r[0]=i;return w?a.call(this,i,f):f}}function yx(a,m,w,_){return JSON.stringify(a,mx((h,r)=>{const s=typeof r=="bigint"?`#bigint.${r.toString()}`:r;return m?.(h,s)||s},_),w??void 0)}var gx={getItem:a=>"",setItem:(a,m)=>null,removeItem:a=>null};function bx({deserialize:a=vx,key:m="wagmi",serialize:w=yx,storage:_}){return{..._,getItem:(h,r=null)=>{const s=_.getItem(`${m}.${h}`);try{return s?a(s):r}catch(i){return console.warn(i),r}},setItem:(h,r)=>{if(r===null)_.removeItem(`${m}.${h}`);else try{_.setItem(`${m}.${h}`,w(r))}catch(s){console.error(s)}},removeItem:h=>_.removeItem(`${m}.${h}`)}}var h0="store",ai,ta,Nf,Uv,_x=class{constructor({autoConnect:a=!1,connectors:m=[new yv],publicClient:w,storage:_=bx({storage:typeof window<"u"?window.localStorage:gx}),logger:h={warn:console.warn},webSocketPublicClient:r}){dl(this,Nf),this.publicClients=new Map,this.webSocketPublicClients=new Map,dl(this,ai,void 0),dl(this,ta,void 0),this.args={autoConnect:a,connectors:m,logger:h,publicClient:w,storage:_,webSocketPublicClient:r};let s="disconnected",i;if(a)try{const l=_.getItem(h0)?.state?.data;s=l?.account?"reconnecting":"connecting",i=l?.chain?.id}catch{}const f=typeof m=="function"?m():m;f.forEach(e=>e.setStorage(_)),this.store=w7(v7(_7(()=>({connectors:f,publicClient:this.getPublicClient({chainId:i}),status:s,webSocketPublicClient:this.getWebSocketPublicClient({chainId:i})}),{name:h0,storage:_,partialize:e=>({...a&&{data:{account:e?.data?.account,chain:e?.data?.chain}},chains:e?.chains}),version:2}))),this.storage=_,go(this,ta,_?.getItem("wallet")),h7(this,Nf,Uv).call(this),a&&typeof window<"u"&&setTimeout(async()=>await this.autoConnect(),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(a){const m=typeof a=="function"?a(this.store.getState()):a;this.store.setState(m,!0)}clearState(){this.setState(a=>({...a,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"}))}async destroy(){this.connector&&await this.connector.disconnect?.(),go(this,ai,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(cl(this,ai))return;go(this,ai,!0),this.setState(w=>({...w,status:w.data?.account?"reconnecting":"connecting"}));const a=cl(this,ta)?[...this.connectors].sort(w=>w.id===cl(this,ta)?-1:1):this.connectors;let m=!1;for(const w of a){if(!w.ready||!w.isAuthorized||!await w.isAuthorized())continue;const h=await w.connect();this.setState(r=>({...r,connector:w,chains:w?.chains,data:h,status:"connected"})),m=!0;break}return m||this.setState(w=>({...w,data:void 0,status:"disconnected"})),go(this,ai,!1),this.data}setConnectors(a){this.args={...this.args,connectors:a};const m=typeof a=="function"?a():a;m.forEach(w=>w.setStorage(this.args.storage)),this.setState(w=>({...w,connectors:m}))}getPublicClient({chainId:a}={}){let m=this.publicClients.get(-1);if(m&&m?.chain.id===a||(m=this.publicClients.get(a??-1),m))return m;const{publicClient:w}=this.args;return m=typeof w=="function"?w({chainId:a}):w,this.publicClients.set(a??-1,m),m}setPublicClient(a){const m=this.data?.chain?.id;this.args={...this.args,publicClient:a},this.publicClients.clear(),this.setState(w=>({...w,publicClient:this.getPublicClient({chainId:m})}))}getWebSocketPublicClient({chainId:a}={}){let m=this.webSocketPublicClients.get(-1);if(m&&m?.chain.id===a||(m=this.webSocketPublicClients.get(a??-1),m))return m;const{webSocketPublicClient:w}=this.args;return m=typeof w=="function"?w({chainId:a}):w,m&&this.webSocketPublicClients.set(a??-1,m),m}setWebSocketPublicClient(a){const m=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:a},this.webSocketPublicClients.clear(),this.setState(w=>({...w,webSocketPublicClient:this.getWebSocketPublicClient({chainId:m})}))}setLastUsedConnector(a=null){this.storage?.setItem("wallet",a)}};ai=new WeakMap;ta=new WeakMap;Nf=new WeakSet;Uv=function(){const a=i=>{this.setState(f=>({...f,data:{...f.data,...i}}))},m=()=>{this.clearState()},w=i=>{this.setState(f=>({...f,error:i}))};this.store.subscribe(({connector:i})=>i,(i,f)=>{f?.off?.("change",a),f?.off?.("disconnect",m),f?.off?.("error",w),i&&(i.on?.("change",a),i.on?.("disconnect",m),i.on?.("error",w))});const{publicClient:_,webSocketPublicClient:h}=this.args;(typeof _=="function"||typeof h=="function")&&this.store.subscribe(({data:i})=>i?.chain?.id,i=>{this.setState(f=>({...f,publicClient:this.getPublicClient({chainId:i}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:i})}))})};var Lf;function wx(a){const m=new _x(a);return Lf=m,m}function Jr(){if(!Lf)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return Lf}async function p0({chainId:a,connector:m}){const w=Jr(),_=w.connector;if(_&&m.id===_.id)throw new dx;try{w.setState(r=>({...r,status:"connecting"}));const h=await m.connect({chainId:a});return w.setLastUsedConnector(m.id),w.setState(r=>({...r,connector:m,chains:m?.chains,data:h,status:"connected"})),w.storage.setItem("connected",!0),{...h,connector:m}}catch(h){throw w.setState(r=>({...r,status:r.connector?"connected":"disconnected"})),h}}async function xx(){const a=Jr();a.connector&&await a.connector.disconnect(),a.clearState(),a.storage.removeItem("connected")}var Ax=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],Ex=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}];function Li({chainId:a}={}){const m=Jr();return a&&m.getPublicClient({chainId:a})||m.publicClient}async function Sx({chainId:a,contracts:m,blockNumber:w,blockTag:_,...h}){const r=Li({chainId:a});if(!r.chains)throw new hx;if(a&&r.chain.id!==a)throw new cx({chainId:a});return r.multicall({allowFailure:h.allowFailure??!0,blockNumber:w,blockTag:_,contracts:m})}async function Cx({address:a,account:m,chainId:w,abi:_,args:h,functionName:r,blockNumber:s,blockTag:i}){return Li({chainId:w}).readContract({abi:_,address:a,account:m,functionName:r,args:h,blockNumber:s,blockTag:i})}async function kx({contracts:a,blockNumber:m,blockTag:w,..._}){const{allowFailure:h=!0}=_;try{const r=Li(),s=a.reduce((l,n,t)=>{const o=n.chainId??r.chain.id;return{...l,[o]:[...l[o]||[],{contract:n,index:t}]}},{}),i=()=>Object.entries(s).map(([l,n])=>Sx({allowFailure:h,chainId:parseInt(l),contracts:n.map(({contract:t})=>t),blockNumber:m,blockTag:w})),f=(await Promise.all(i())).flat(),e=Object.values(s).flatMap(l=>l.map(({index:n})=>n));return f.reduce((l,n,t)=>(l&&(l[e[t]]=n),l),[])}catch(r){if(r instanceof Zc)throw r;const s=()=>a.map(i=>Cx({...i,blockNumber:m,blockTag:w}));return h?(await Promise.allSettled(s())).map(i=>i.status==="fulfilled"?{result:i.value,status:"success"}:{error:i.reason,result:void 0,status:"failure"}):await Promise.all(s())}}async function Ox({address:a,chainId:m,formatUnits:w,token:_}){const h=Jr(),r=Li({chainId:m});if(_){const e=async({abi:l})=>{const n={abi:l,address:_,chainId:m},[t,o,d]=await kx({allowFailure:!1,contracts:[{...n,functionName:"balanceOf",args:[a]},{...n,functionName:"decimals"},{...n,functionName:"symbol"}]});return{decimals:o,formatted:is(t??"0",f0(w??o)),symbol:d,value:t}};try{return await e({abi:Ax})}catch(l){if(l instanceof Zc){const{symbol:n,...t}=await e({abi:Ex});return{symbol:_6(un(n,{dir:"right"})),...t}}throw l}}const s=[...h.publicClient.chains||[],...h.chains??[]],i=await r.getBalance({address:a}),f=s.find(e=>e.id===r.chain.id);return{decimals:f?.nativeCurrency.decimals??18,formatted:is(i??"0",f0(w??18)),symbol:f?.nativeCurrency.symbol??"ETH",value:i}}function Fv(){const{data:a,connector:m,status:w}=Jr();switch(w){case"connected":return{address:a?.account,connector:m,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:w};case"reconnecting":return{address:a?.account,connector:m,isConnected:!!a?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:w};case"connecting":return{address:a?.account,connector:m,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:w};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:w}}}function jv(){const a=Jr(),m=a.data?.chain?.id,w=a.chains??[],_=[...a.publicClient?.chains||[],...w].find(h=>h.id===m)??{id:m,name:`Chain ${m}`,network:`${m}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:m?{..._,...a.data?.chain,id:m}:void 0,chains:w}}async function Px({chainId:a}){const{connector:m}=Jr();if(!m)throw new On;if(!m.switchChain)throw new px({connector:m});return m.switchChain(a)}function Tx(a,{selector:m=w=>w}={}){const w=Jr(),_=()=>a(Fv());return w.subscribe(({data:r,connector:s,status:i})=>m({address:r?.account,connector:s,status:i}),_,{equalityFn:gv})}function Mx(a,{selector:m=w=>w}={}){const w=Jr(),_=()=>a(jv());return w.subscribe(({data:r,chains:s})=>m({chainId:r?.chain?.id,chains:s}),_,{equalityFn:gv})}async function Ix({name:a,chainId:m}){return await Li({chainId:m}).getEnsAvatar({name:lx(a)})}async function Dx({address:a,chainId:m}){return Li({chainId:m}).getEnsName({address:fn(a)})}var yd={},Zs={},nt={},Hv={};(function(a){Object.defineProperty(a,"__esModule",{value:!0});function m(i,f){var e=i>>>16&65535,l=i&65535,n=f>>>16&65535,t=f&65535;return l*t+(e*t+l*n<<16>>>0)|0}a.mul=Math.imul||m;function w(i,f){return i+f|0}a.add=w;function _(i,f){return i-f|0}a.sub=_;function h(i,f){return i<<f|i>>>32-f}a.rotl=h;function r(i,f){return i<<32-f|i>>>f}a.rotr=r;function s(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i}a.isInteger=Number.isInteger||s,a.MAX_SAFE_INTEGER=9007199254740991,a.isSafeInteger=function(i){return a.isInteger(i)&&i>=-a.MAX_SAFE_INTEGER&&i<=a.MAX_SAFE_INTEGER}})(Hv);Object.defineProperty(nt,"__esModule",{value:!0});var zv=Hv;function Bx(a,m){return m===void 0&&(m=0),(a[m+0]<<8|a[m+1])<<16>>16}nt.readInt16BE=Bx;function Rx(a,m){return m===void 0&&(m=0),(a[m+0]<<8|a[m+1])>>>0}nt.readUint16BE=Rx;function Nx(a,m){return m===void 0&&(m=0),(a[m+1]<<8|a[m])<<16>>16}nt.readInt16LE=Nx;function Lx(a,m){return m===void 0&&(m=0),(a[m+1]<<8|a[m])>>>0}nt.readUint16LE=Lx;function qv(a,m,w){return m===void 0&&(m=new Uint8Array(2)),w===void 0&&(w=0),m[w+0]=a>>>8,m[w+1]=a>>>0,m}nt.writeUint16BE=qv;nt.writeInt16BE=qv;function $v(a,m,w){return m===void 0&&(m=new Uint8Array(2)),w===void 0&&(w=0),m[w+0]=a>>>0,m[w+1]=a>>>8,m}nt.writeUint16LE=$v;nt.writeInt16LE=$v;function Uf(a,m){return m===void 0&&(m=0),a[m]<<24|a[m+1]<<16|a[m+2]<<8|a[m+3]}nt.readInt32BE=Uf;function Ff(a,m){return m===void 0&&(m=0),(a[m]<<24|a[m+1]<<16|a[m+2]<<8|a[m+3])>>>0}nt.readUint32BE=Ff;function jf(a,m){return m===void 0&&(m=0),a[m+3]<<24|a[m+2]<<16|a[m+1]<<8|a[m]}nt.readInt32LE=jf;function Hf(a,m){return m===void 0&&(m=0),(a[m+3]<<24|a[m+2]<<16|a[m+1]<<8|a[m])>>>0}nt.readUint32LE=Hf;function ys(a,m,w){return m===void 0&&(m=new Uint8Array(4)),w===void 0&&(w=0),m[w+0]=a>>>24,m[w+1]=a>>>16,m[w+2]=a>>>8,m[w+3]=a>>>0,m}nt.writeUint32BE=ys;nt.writeInt32BE=ys;function gs(a,m,w){return m===void 0&&(m=new Uint8Array(4)),w===void 0&&(w=0),m[w+0]=a>>>0,m[w+1]=a>>>8,m[w+2]=a>>>16,m[w+3]=a>>>24,m}nt.writeUint32LE=gs;nt.writeInt32LE=gs;function Ux(a,m){m===void 0&&(m=0);var w=Uf(a,m),_=Uf(a,m+4);return w*4294967296+_-(_>>31)*4294967296}nt.readInt64BE=Ux;function Fx(a,m){m===void 0&&(m=0);var w=Ff(a,m),_=Ff(a,m+4);return w*4294967296+_}nt.readUint64BE=Fx;function jx(a,m){m===void 0&&(m=0);var w=jf(a,m),_=jf(a,m+4);return _*4294967296+w-(w>>31)*4294967296}nt.readInt64LE=jx;function Hx(a,m){m===void 0&&(m=0);var w=Hf(a,m),_=Hf(a,m+4);return _*4294967296+w}nt.readUint64LE=Hx;function Wv(a,m,w){return m===void 0&&(m=new Uint8Array(8)),w===void 0&&(w=0),ys(a/4294967296>>>0,m,w),ys(a>>>0,m,w+4),m}nt.writeUint64BE=Wv;nt.writeInt64BE=Wv;function Vv(a,m,w){return m===void 0&&(m=new Uint8Array(8)),w===void 0&&(w=0),gs(a>>>0,m,w),gs(a/4294967296>>>0,m,w+4),m}nt.writeUint64LE=Vv;nt.writeInt64LE=Vv;function zx(a,m,w){if(w===void 0&&(w=0),a%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(a/8>m.length-w)throw new Error("readUintBE: array is too short for the given bitLength");for(var _=0,h=1,r=a/8+w-1;r>=w;r--)_+=m[r]*h,h*=256;return _}nt.readUintBE=zx;function qx(a,m,w){if(w===void 0&&(w=0),a%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(a/8>m.length-w)throw new Error("readUintLE: array is too short for the given bitLength");for(var _=0,h=1,r=w;r<w+a/8;r++)_+=m[r]*h,h*=256;return _}nt.readUintLE=qx;function $x(a,m,w,_){if(w===void 0&&(w=new Uint8Array(a/8)),_===void 0&&(_=0),a%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!zv.isSafeInteger(m))throw new Error("writeUintBE value must be an integer");for(var h=1,r=a/8+_-1;r>=_;r--)w[r]=m/h&255,h*=256;return w}nt.writeUintBE=$x;function Wx(a,m,w,_){if(w===void 0&&(w=new Uint8Array(a/8)),_===void 0&&(_=0),a%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!zv.isSafeInteger(m))throw new Error("writeUintLE value must be an integer");for(var h=1,r=_;r<_+a/8;r++)w[r]=m/h&255,h*=256;return w}nt.writeUintLE=Wx;function Vx(a,m){m===void 0&&(m=0);var w=new DataView(a.buffer,a.byteOffset,a.byteLength);return w.getFloat32(m)}nt.readFloat32BE=Vx;function Kx(a,m){m===void 0&&(m=0);var w=new DataView(a.buffer,a.byteOffset,a.byteLength);return w.getFloat32(m,!0)}nt.readFloat32LE=Kx;function Gx(a,m){m===void 0&&(m=0);var w=new DataView(a.buffer,a.byteOffset,a.byteLength);return w.getFloat64(m)}nt.readFloat64BE=Gx;function Jx(a,m){m===void 0&&(m=0);var w=new DataView(a.buffer,a.byteOffset,a.byteLength);return w.getFloat64(m,!0)}nt.readFloat64LE=Jx;function Qx(a,m,w){m===void 0&&(m=new Uint8Array(4)),w===void 0&&(w=0);var _=new DataView(m.buffer,m.byteOffset,m.byteLength);return _.setFloat32(w,a),m}nt.writeFloat32BE=Qx;function Yx(a,m,w){m===void 0&&(m=new Uint8Array(4)),w===void 0&&(w=0);var _=new DataView(m.buffer,m.byteOffset,m.byteLength);return _.setFloat32(w,a,!0),m}nt.writeFloat32LE=Yx;function Xx(a,m,w){m===void 0&&(m=new Uint8Array(8)),w===void 0&&(w=0);var _=new DataView(m.buffer,m.byteOffset,m.byteLength);return _.setFloat64(w,a),m}nt.writeFloat64BE=Xx;function Zx(a,m,w){m===void 0&&(m=new Uint8Array(8)),w===void 0&&(w=0);var _=new DataView(m.buffer,m.byteOffset,m.byteLength);return _.setFloat64(w,a,!0),m}nt.writeFloat64LE=Zx;var gr={};Object.defineProperty(gr,"__esModule",{value:!0});function eA(a){for(var m=0;m<a.length;m++)a[m]=0;return a}gr.wipe=eA;Object.defineProperty(Zs,"__esModule",{value:!0});var Dt=nt,zf=gr,tA=20;function rA(a,m,w){for(var _=1634760805,h=857760878,r=2036477234,s=1797285236,i=w[3]<<24|w[2]<<16|w[1]<<8|w[0],f=w[7]<<24|w[6]<<16|w[5]<<8|w[4],e=w[11]<<24|w[10]<<16|w[9]<<8|w[8],l=w[15]<<24|w[14]<<16|w[13]<<8|w[12],n=w[19]<<24|w[18]<<16|w[17]<<8|w[16],t=w[23]<<24|w[22]<<16|w[21]<<8|w[20],o=w[27]<<24|w[26]<<16|w[25]<<8|w[24],d=w[31]<<24|w[30]<<16|w[29]<<8|w[28],u=m[3]<<24|m[2]<<16|m[1]<<8|m[0],c=m[7]<<24|m[6]<<16|m[5]<<8|m[4],g=m[11]<<24|m[10]<<16|m[9]<<8|m[8],p=m[15]<<24|m[14]<<16|m[13]<<8|m[12],v=_,y=h,b=r,A=s,x=i,E=f,S=e,C=l,T=n,k=t,M=o,P=d,N=u,F=c,q=g,z=p,O=0;O<tA;O+=2)v=v+x|0,N^=v,N=N>>>32-16|N<<16,T=T+N|0,x^=T,x=x>>>32-12|x<<12,y=y+E|0,F^=y,F=F>>>32-16|F<<16,k=k+F|0,E^=k,E=E>>>32-12|E<<12,b=b+S|0,q^=b,q=q>>>32-16|q<<16,M=M+q|0,S^=M,S=S>>>32-12|S<<12,A=A+C|0,z^=A,z=z>>>32-16|z<<16,P=P+z|0,C^=P,C=C>>>32-12|C<<12,b=b+S|0,q^=b,q=q>>>32-8|q<<8,M=M+q|0,S^=M,S=S>>>32-7|S<<7,A=A+C|0,z^=A,z=z>>>32-8|z<<8,P=P+z|0,C^=P,C=C>>>32-7|C<<7,y=y+E|0,F^=y,F=F>>>32-8|F<<8,k=k+F|0,E^=k,E=E>>>32-7|E<<7,v=v+x|0,N^=v,N=N>>>32-8|N<<8,T=T+N|0,x^=T,x=x>>>32-7|x<<7,v=v+E|0,z^=v,z=z>>>32-16|z<<16,M=M+z|0,E^=M,E=E>>>32-12|E<<12,y=y+S|0,N^=y,N=N>>>32-16|N<<16,P=P+N|0,S^=P,S=S>>>32-12|S<<12,b=b+C|0,F^=b,F=F>>>32-16|F<<16,T=T+F|0,C^=T,C=C>>>32-12|C<<12,A=A+x|0,q^=A,q=q>>>32-16|q<<16,k=k+q|0,x^=k,x=x>>>32-12|x<<12,b=b+C|0,F^=b,F=F>>>32-8|F<<8,T=T+F|0,C^=T,C=C>>>32-7|C<<7,A=A+x|0,q^=A,q=q>>>32-8|q<<8,k=k+q|0,x^=k,x=x>>>32-7|x<<7,y=y+S|0,N^=y,N=N>>>32-8|N<<8,P=P+N|0,S^=P,S=S>>>32-7|S<<7,v=v+E|0,z^=v,z=z>>>32-8|z<<8,M=M+z|0,E^=M,E=E>>>32-7|E<<7;Dt.writeUint32LE(v+_|0,a,0),Dt.writeUint32LE(y+h|0,a,4),Dt.writeUint32LE(b+r|0,a,8),Dt.writeUint32LE(A+s|0,a,12),Dt.writeUint32LE(x+i|0,a,16),Dt.writeUint32LE(E+f|0,a,20),Dt.writeUint32LE(S+e|0,a,24),Dt.writeUint32LE(C+l|0,a,28),Dt.writeUint32LE(T+n|0,a,32),Dt.writeUint32LE(k+t|0,a,36),Dt.writeUint32LE(M+o|0,a,40),Dt.writeUint32LE(P+d|0,a,44),Dt.writeUint32LE(N+u|0,a,48),Dt.writeUint32LE(F+c|0,a,52),Dt.writeUint32LE(q+g|0,a,56),Dt.writeUint32LE(z+p|0,a,60)}function Kv(a,m,w,_,h){if(h===void 0&&(h=0),a.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(_.length<w.length)throw new Error("ChaCha: destination is shorter than source");var r,s;if(h===0){if(m.length!==8&&m.length!==12)throw new Error("ChaCha nonce must be 8 or 12 bytes");r=new Uint8Array(16),s=r.length-m.length,r.set(m,s)}else{if(m.length!==16)throw new Error("ChaCha nonce with counter must be 16 bytes");r=m,s=h}for(var i=new Uint8Array(64),f=0;f<w.length;f+=64){rA(i,r,a);for(var e=f;e<f+64&&e<w.length;e++)_[e]=w[e]^i[e-f];iA(r,0,s)}return zf.wipe(i),h===0&&zf.wipe(r),_}Zs.streamXOR=Kv;function nA(a,m,w,_){return _===void 0&&(_=0),zf.wipe(w),Kv(a,m,w,w,_)}Zs.stream=nA;function iA(a,m,w){for(var _=1;w--;)_=_+(a[m]&255)|0,a[m]=_&255,_>>>=8,m++;if(_>0)throw new Error("ChaCha: counter overflow")}var Gv={},An={};Object.defineProperty(An,"__esModule",{value:!0});function aA(a,m,w){return~(a-1)&m|a-1&w}An.select=aA;function oA(a,m){return(a|0)-(m|0)-1>>>31&1}An.lessOrEqual=oA;function Jv(a,m){if(a.length!==m.length)return 0;for(var w=0,_=0;_<a.length;_++)w|=a[_]^m[_];return 1&w-1>>>8}An.compare=Jv;function sA(a,m){return a.length===0||m.length===0?!1:Jv(a,m)!==0}An.equal=sA;(function(a){Object.defineProperty(a,"__esModule",{value:!0});var m=An,w=gr;a.DIGEST_LENGTH=16;var _=function(){function s(i){this.digestLength=a.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var f=i[0]|i[1]<<8;this._r[0]=f&8191;var e=i[2]|i[3]<<8;this._r[1]=(f>>>13|e<<3)&8191;var l=i[4]|i[5]<<8;this._r[2]=(e>>>10|l<<6)&7939;var n=i[6]|i[7]<<8;this._r[3]=(l>>>7|n<<9)&8191;var t=i[8]|i[9]<<8;this._r[4]=(n>>>4|t<<12)&255,this._r[5]=t>>>1&8190;var o=i[10]|i[11]<<8;this._r[6]=(t>>>14|o<<2)&8191;var d=i[12]|i[13]<<8;this._r[7]=(o>>>11|d<<5)&8065;var u=i[14]|i[15]<<8;this._r[8]=(d>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=i[16]|i[17]<<8,this._pad[1]=i[18]|i[19]<<8,this._pad[2]=i[20]|i[21]<<8,this._pad[3]=i[22]|i[23]<<8,this._pad[4]=i[24]|i[25]<<8,this._pad[5]=i[26]|i[27]<<8,this._pad[6]=i[28]|i[29]<<8,this._pad[7]=i[30]|i[31]<<8}return s.prototype._blocks=function(i,f,e){for(var l=this._fin?0:2048,n=this._h[0],t=this._h[1],o=this._h[2],d=this._h[3],u=this._h[4],c=this._h[5],g=this._h[6],p=this._h[7],v=this._h[8],y=this._h[9],b=this._r[0],A=this._r[1],x=this._r[2],E=this._r[3],S=this._r[4],C=this._r[5],T=this._r[6],k=this._r[7],M=this._r[8],P=this._r[9];e>=16;){var N=i[f+0]|i[f+1]<<8;n+=N&8191;var F=i[f+2]|i[f+3]<<8;t+=(N>>>13|F<<3)&8191;var q=i[f+4]|i[f+5]<<8;o+=(F>>>10|q<<6)&8191;var z=i[f+6]|i[f+7]<<8;d+=(q>>>7|z<<9)&8191;var O=i[f+8]|i[f+9]<<8;u+=(z>>>4|O<<12)&8191,c+=O>>>1&8191;var R=i[f+10]|i[f+11]<<8;g+=(O>>>14|R<<2)&8191;var I=i[f+12]|i[f+13]<<8;p+=(R>>>11|I<<5)&8191;var D=i[f+14]|i[f+15]<<8;v+=(I>>>8|D<<8)&8191,y+=D>>>5|l;var B=0,j=B;j+=n*b,j+=t*(5*P),j+=o*(5*M),j+=d*(5*k),j+=u*(5*T),B=j>>>13,j&=8191,j+=c*(5*C),j+=g*(5*S),j+=p*(5*E),j+=v*(5*x),j+=y*(5*A),B+=j>>>13,j&=8191;var Q=B;Q+=n*A,Q+=t*b,Q+=o*(5*P),Q+=d*(5*M),Q+=u*(5*k),B=Q>>>13,Q&=8191,Q+=c*(5*T),Q+=g*(5*C),Q+=p*(5*S),Q+=v*(5*E),Q+=y*(5*x),B+=Q>>>13,Q&=8191;var X=B;X+=n*x,X+=t*A,X+=o*b,X+=d*(5*P),X+=u*(5*M),B=X>>>13,X&=8191,X+=c*(5*k),X+=g*(5*T),X+=p*(5*C),X+=v*(5*S),X+=y*(5*E),B+=X>>>13,X&=8191;var Z=B;Z+=n*E,Z+=t*x,Z+=o*A,Z+=d*b,Z+=u*(5*P),B=Z>>>13,Z&=8191,Z+=c*(5*M),Z+=g*(5*k),Z+=p*(5*T),Z+=v*(5*C),Z+=y*(5*S),B+=Z>>>13,Z&=8191;var L=B;L+=n*S,L+=t*E,L+=o*x,L+=d*A,L+=u*b,B=L>>>13,L&=8191,L+=c*(5*P),L+=g*(5*M),L+=p*(5*k),L+=v*(5*T),L+=y*(5*C),B+=L>>>13,L&=8191;var W=B;W+=n*C,W+=t*S,W+=o*E,W+=d*x,W+=u*A,B=W>>>13,W&=8191,W+=c*b,W+=g*(5*P),W+=p*(5*M),W+=v*(5*k),W+=y*(5*T),B+=W>>>13,W&=8191;var G=B;G+=n*T,G+=t*C,G+=o*S,G+=d*E,G+=u*x,B=G>>>13,G&=8191,G+=c*A,G+=g*b,G+=p*(5*P),G+=v*(5*M),G+=y*(5*k),B+=G>>>13,G&=8191;var J=B;J+=n*k,J+=t*T,J+=o*C,J+=d*S,J+=u*E,B=J>>>13,J&=8191,J+=c*x,J+=g*A,J+=p*b,J+=v*(5*P),J+=y*(5*M),B+=J>>>13,J&=8191;var H=B;H+=n*M,H+=t*k,H+=o*T,H+=d*C,H+=u*S,B=H>>>13,H&=8191,H+=c*E,H+=g*x,H+=p*A,H+=v*b,H+=y*(5*P),B+=H>>>13,H&=8191;var U=B;U+=n*P,U+=t*M,U+=o*k,U+=d*T,U+=u*C,B=U>>>13,U&=8191,U+=c*S,U+=g*E,U+=p*x,U+=v*A,U+=y*b,B+=U>>>13,U&=8191,B=(B<<2)+B|0,B=B+j|0,j=B&8191,B=B>>>13,Q+=B,n=j,t=Q,o=X,d=Z,u=L,c=W,g=G,p=J,v=H,y=U,f+=16,e-=16}this._h[0]=n,this._h[1]=t,this._h[2]=o,this._h[3]=d,this._h[4]=u,this._h[5]=c,this._h[6]=g,this._h[7]=p,this._h[8]=v,this._h[9]=y},s.prototype.finish=function(i,f){f===void 0&&(f=0);var e=new Uint16Array(10),l,n,t,o;if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(l=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=l,l=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=l*5,l=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=l,l=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=l,e[0]=this._h[0]+5,l=e[0]>>>13,e[0]&=8191,o=1;o<10;o++)e[o]=this._h[o]+l,l=e[o]>>>13,e[o]&=8191;for(e[9]-=8192,n=(l^1)-1,o=0;o<10;o++)e[o]&=n;for(n=~n,o=0;o<10;o++)this._h[o]=this._h[o]&n|e[o];for(this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,t=this._h[0]+this._pad[0],this._h[0]=t&65535,o=1;o<8;o++)t=(this._h[o]+this._pad[o]|0)+(t>>>16)|0,this._h[o]=t&65535;return i[f+0]=this._h[0]>>>0,i[f+1]=this._h[0]>>>8,i[f+2]=this._h[1]>>>0,i[f+3]=this._h[1]>>>8,i[f+4]=this._h[2]>>>0,i[f+5]=this._h[2]>>>8,i[f+6]=this._h[3]>>>0,i[f+7]=this._h[3]>>>8,i[f+8]=this._h[4]>>>0,i[f+9]=this._h[4]>>>8,i[f+10]=this._h[5]>>>0,i[f+11]=this._h[5]>>>8,i[f+12]=this._h[6]>>>0,i[f+13]=this._h[6]>>>8,i[f+14]=this._h[7]>>>0,i[f+15]=this._h[7]>>>8,this._finished=!0,this},s.prototype.update=function(i){var f=0,e=i.length,l;if(this._leftover){l=16-this._leftover,l>e&&(l=e);for(var n=0;n<l;n++)this._buffer[this._leftover+n]=i[f+n];if(e-=l,f+=l,this._leftover+=l,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(e>=16&&(l=e-e%16,this._blocks(i,f,l),f+=l,e-=l),e){for(var n=0;n<e;n++)this._buffer[this._leftover+n]=i[f+n];this._leftover+=e}return this},s.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var i=new Uint8Array(16);return this.finish(i),i},s.prototype.clean=function(){return w.wipe(this._buffer),w.wipe(this._r),w.wipe(this._h),w.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},s}();a.Poly1305=_;function h(s,i){var f=new _(s);f.update(i);var e=f.digest();return f.clean(),e}a.oneTimeAuth=h;function r(s,i){return s.length!==a.DIGEST_LENGTH||i.length!==a.DIGEST_LENGTH?!1:m.equal(s,i)}a.equal=r})(Gv);(function(a){Object.defineProperty(a,"__esModule",{value:!0});var m=Zs,w=Gv,_=gr,h=nt,r=An;a.KEY_LENGTH=32,a.NONCE_LENGTH=12,a.TAG_LENGTH=16;var s=new Uint8Array(16),i=function(){function f(e){if(this.nonceLength=a.NONCE_LENGTH,this.tagLength=a.TAG_LENGTH,e.length!==a.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return f.prototype.seal=function(e,l,n,t){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(e,o.length-e.length);var d=new Uint8Array(32);m.stream(this._key,o,d,4);var u=l.length+this.tagLength,c;if(t){if(t.length!==u)throw new Error("ChaCha20Poly1305: incorrect destination length");c=t}else c=new Uint8Array(u);return m.streamXOR(this._key,o,l,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),d,c.subarray(0,c.length-this.tagLength),n),_.wipe(o),c},f.prototype.open=function(e,l,n,t){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(l.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(e,o.length-e.length);var d=new Uint8Array(32);m.stream(this._key,o,d,4);var u=new Uint8Array(this.tagLength);if(this._authenticate(u,d,l.subarray(0,l.length-this.tagLength),n),!r.equal(u,l.subarray(l.length-this.tagLength,l.length)))return null;var c=l.length-this.tagLength,g;if(t){if(t.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");g=t}else g=new Uint8Array(c);return m.streamXOR(this._key,o,l.subarray(0,l.length-this.tagLength),g,4),_.wipe(o),g},f.prototype.clean=function(){return _.wipe(this._key),this},f.prototype._authenticate=function(e,l,n,t){var o=new w.Poly1305(l);t&&(o.update(t),t.length%16>0&&o.update(s.subarray(t.length%16))),o.update(n),n.length%16>0&&o.update(s.subarray(n.length%16));var d=new Uint8Array(8);t&&h.writeUint64LE(t.length,d),o.update(d),h.writeUint64LE(n.length,d),o.update(d);for(var u=o.digest(),c=0;c<u.length;c++)e[c]=u[c];o.clean(),_.wipe(u),_.wipe(d)},f}();a.ChaCha20Poly1305=i})(yd);var Qv={},eo={},gd={};Object.defineProperty(gd,"__esModule",{value:!0});function uA(a){return typeof a.saveState<"u"&&typeof a.restoreState<"u"&&typeof a.cleanSavedState<"u"}gd.isSerializableHash=uA;Object.defineProperty(eo,"__esModule",{value:!0});var Ar=gd,lA=An,fA=gr,Yv=function(){function a(m,w){this._finished=!1,this._inner=new m,this._outer=new m,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var _=new Uint8Array(this.blockSize);w.length>this.blockSize?this._inner.update(w).finish(_).clean():_.set(w);for(var h=0;h<_.length;h++)_[h]^=54;this._inner.update(_);for(var h=0;h<_.length;h++)_[h]^=106;this._outer.update(_),Ar.isSerializableHash(this._inner)&&Ar.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),fA.wipe(_)}return a.prototype.reset=function(){if(!Ar.isSerializableHash(this._inner)||!Ar.isSerializableHash(this._outer))throw new Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},a.prototype.clean=function(){Ar.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),Ar.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},a.prototype.update=function(m){return this._inner.update(m),this},a.prototype.finish=function(m){return this._finished?(this._outer.finish(m),this):(this._inner.finish(m),this._outer.update(m.subarray(0,this.digestLength)).finish(m),this._finished=!0,this)},a.prototype.digest=function(){var m=new Uint8Array(this.digestLength);return this.finish(m),m},a.prototype.saveState=function(){if(!Ar.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},a.prototype.restoreState=function(m){if(!Ar.isSerializableHash(this._inner)||!Ar.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(m),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},a.prototype.cleanSavedState=function(m){if(!Ar.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(m)},a}();eo.HMAC=Yv;function cA(a,m,w){var _=new Yv(a,m);_.update(w);var h=_.digest();return _.clean(),h}eo.hmac=cA;eo.equal=lA.equal;Object.defineProperty(Qv,"__esModule",{value:!0});var v0=eo,m0=gr,dA=function(){function a(m,w,_,h){_===void 0&&(_=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=m,this._info=h;var r=v0.hmac(this._hash,_,w);this._hmac=new v0.HMAC(m,r),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return a.prototype._fillBuffer=function(){this._counter[0]++;var m=this._counter[0];if(m===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),m>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},a.prototype.expand=function(m){for(var w=new Uint8Array(m),_=0;_<w.length;_++)this._bufpos===this._buffer.length&&this._fillBuffer(),w[_]=this._buffer[this._bufpos++];return w},a.prototype.clean=function(){this._hmac.clean(),m0.wipe(this._buffer),m0.wipe(this._counter),this._bufpos=0},a}(),hA=Qv.HKDF=dA,eu={},tu={},ru={};Object.defineProperty(ru,"__esModule",{value:!0});ru.BrowserRandomSource=void 0;const y0=65536;class pA{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const m=typeof self<"u"?self.crypto||self.msCrypto:null;m&&m.getRandomValues!==void 0&&(this._crypto=m,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(m){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const w=new Uint8Array(m);for(let _=0;_<w.length;_+=y0)this._crypto.getRandomValues(w.subarray(_,_+Math.min(w.length-_,y0)));return w}}ru.BrowserRandomSource=pA;var nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.NodeRandomSource=void 0;const vA=gr;class mA{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof a6<"u"){const m=o6;m&&m.randomBytes&&(this._crypto=m,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(m){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let w=this._crypto.randomBytes(m);if(w.length!==m)throw new Error("NodeRandomSource: got fewer bytes than requested");const _=new Uint8Array(m);for(let h=0;h<_.length;h++)_[h]=w[h];return(0,vA.wipe)(w),_}}nu.NodeRandomSource=mA;Object.defineProperty(tu,"__esModule",{value:!0});tu.SystemRandomSource=void 0;const yA=ru,gA=nu;class bA{constructor(){if(this.isAvailable=!1,this.name="",this._source=new yA.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new gA.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(m){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(m)}}tu.SystemRandomSource=bA;(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.randomStringForEntropy=a.randomString=a.randomUint32=a.randomBytes=a.defaultRandomSource=void 0;const m=tu,w=nt,_=gr;a.defaultRandomSource=new m.SystemRandomSource;function h(e,l=a.defaultRandomSource){return l.randomBytes(e)}a.randomBytes=h;function r(e=a.defaultRandomSource){const l=h(4,e),n=(0,w.readUint32LE)(l);return(0,_.wipe)(l),n}a.randomUint32=r;const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function i(e,l=s,n=a.defaultRandomSource){if(l.length<2)throw new Error("randomString charset is too short");if(l.length>256)throw new Error("randomString charset is too long");let t="";const o=l.length,d=256-256%o;for(;e>0;){const u=h(Math.ceil(e*256/d),n);for(let c=0;c<u.length&&e>0;c++){const g=u[c];g<d&&(t+=l.charAt(g%o),e--)}(0,_.wipe)(u)}return t}a.randomString=i;function f(e,l=s,n=a.defaultRandomSource){const t=Math.ceil(e/(Math.log(l.length)/Math.LN2));return i(t,l,n)}a.randomStringForEntropy=f})(eu);var iu={};(function(a){Object.defineProperty(a,"__esModule",{value:!0});var m=nt,w=gr;a.DIGEST_LENGTH=32,a.BLOCK_SIZE=64;var _=function(){function i(){this.digestLength=a.DIGEST_LENGTH,this.blockSize=a.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return i.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},i.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},i.prototype.clean=function(){w.wipe(this._buffer),w.wipe(this._temp),this.reset()},i.prototype.update=function(f,e){if(e===void 0&&(e=f.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var l=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&e>0;)this._buffer[this._bufferLength++]=f[l++],e--;this._bufferLength===this.blockSize&&(r(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(l=r(this._temp,this._state,f,l,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=f[l++],e--;return this},i.prototype.finish=function(f){if(!this._finished){var e=this._bytesHashed,l=this._bufferLength,n=e/536870912|0,t=e<<3,o=e%64<56?64:128;this._buffer[l]=128;for(var d=l+1;d<o-8;d++)this._buffer[d]=0;m.writeUint32BE(n,this._buffer,o-8),m.writeUint32BE(t,this._buffer,o-4),r(this._temp,this._state,this._buffer,0,o),this._finished=!0}for(var d=0;d<this.digestLength/4;d++)m.writeUint32BE(this._state[d],f,d*4);return this},i.prototype.digest=function(){var f=new Uint8Array(this.digestLength);return this.finish(f),f},i.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},i.prototype.restoreState=function(f){return this._state.set(f.state),this._bufferLength=f.bufferLength,f.buffer&&this._buffer.set(f.buffer),this._bytesHashed=f.bytesHashed,this._finished=!1,this},i.prototype.cleanSavedState=function(f){w.wipe(f.state),f.buffer&&w.wipe(f.buffer),f.bufferLength=0,f.bytesHashed=0},i}();a.SHA256=_;var h=new Int32Array([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 r(i,f,e,l,n){for(;n>=64;){for(var t=f[0],o=f[1],d=f[2],u=f[3],c=f[4],g=f[5],p=f[6],v=f[7],y=0;y<16;y++){var b=l+y*4;i[y]=m.readUint32BE(e,b)}for(var y=16;y<64;y++){var A=i[y-2],x=(A>>>17|A<<32-17)^(A>>>19|A<<32-19)^A>>>10;A=i[y-15];var E=(A>>>7|A<<32-7)^(A>>>18|A<<32-18)^A>>>3;i[y]=(x+i[y-7]|0)+(E+i[y-16]|0)}for(var y=0;y<64;y++){var x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&g^~c&p)|0)+(v+(h[y]+i[y]|0)|0)|0,E=((t>>>2|t<<32-2)^(t>>>13|t<<32-13)^(t>>>22|t<<32-22))+(t&o^t&d^o&d)|0;v=p,p=g,g=c,c=u+x|0,u=d,d=o,o=t,t=x+E|0}f[0]+=t,f[1]+=o,f[2]+=d,f[3]+=u,f[4]+=c,f[5]+=g,f[6]+=p,f[7]+=v,l+=64,n-=64}return l}function s(i){var f=new _;f.update(i);var e=f.digest();return f.clean(),e}a.hash=s})(iu);var bd={};(function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.sharedKey=a.generateKeyPair=a.generateKeyPairFromSeed=a.scalarMultBase=a.scalarMult=a.SHARED_KEY_LENGTH=a.SECRET_KEY_LENGTH=a.PUBLIC_KEY_LENGTH=void 0;const m=eu,w=gr;a.PUBLIC_KEY_LENGTH=32,a.SECRET_KEY_LENGTH=32,a.SHARED_KEY_LENGTH=32;function _(y){const b=new Float64Array(16);if(y)for(let A=0;A<y.length;A++)b[A]=y[A];return b}const h=new Uint8Array(32);h[0]=9;const r=_([56129,1]);function s(y){let b=1;for(let A=0;A<16;A++){let x=y[A]+b+65535;b=Math.floor(x/65536),y[A]=x-b*65536}y[0]+=b-1+37*(b-1)}function i(y,b,A){const x=~(A-1);for(let E=0;E<16;E++){const S=x&(y[E]^b[E]);y[E]^=S,b[E]^=S}}function f(y,b){const A=_(),x=_();for(let E=0;E<16;E++)x[E]=b[E];s(x),s(x),s(x);for(let E=0;E<2;E++){A[0]=x[0]-65517;for(let C=1;C<15;C++)A[C]=x[C]-65535-(A[C-1]>>16&1),A[C-1]&=65535;A[15]=x[15]-32767-(A[14]>>16&1);const S=A[15]>>16&1;A[14]&=65535,i(x,A,1-S)}for(let E=0;E<16;E++)y[2*E]=x[E]&255,y[2*E+1]=x[E]>>8}function e(y,b){for(let A=0;A<16;A++)y[A]=b[2*A]+(b[2*A+1]<<8);y[15]&=32767}function l(y,b,A){for(let x=0;x<16;x++)y[x]=b[x]+A[x]}function n(y,b,A){for(let x=0;x<16;x++)y[x]=b[x]-A[x]}function t(y,b,A){let x,E,S=0,C=0,T=0,k=0,M=0,P=0,N=0,F=0,q=0,z=0,O=0,R=0,I=0,D=0,B=0,j=0,Q=0,X=0,Z=0,L=0,W=0,G=0,J=0,H=0,U=0,K=0,te=0,ee=0,ie=0,se=0,ne=0,re=A[0],Y=A[1],V=A[2],oe=A[3],fe=A[4],ce=A[5],he=A[6],le=A[7],ae=A[8],ue=A[9],de=A[10],ve=A[11],me=A[12],ge=A[13],xe=A[14],Ae=A[15];x=b[0],S+=x*re,C+=x*Y,T+=x*V,k+=x*oe,M+=x*fe,P+=x*ce,N+=x*he,F+=x*le,q+=x*ae,z+=x*ue,O+=x*de,R+=x*ve,I+=x*me,D+=x*ge,B+=x*xe,j+=x*Ae,x=b[1],C+=x*re,T+=x*Y,k+=x*V,M+=x*oe,P+=x*fe,N+=x*ce,F+=x*he,q+=x*le,z+=x*ae,O+=x*ue,R+=x*de,I+=x*ve,D+=x*me,B+=x*ge,j+=x*xe,Q+=x*Ae,x=b[2],T+=x*re,k+=x*Y,M+=x*V,P+=x*oe,N+=x*fe,F+=x*ce,q+=x*he,z+=x*le,O+=x*ae,R+=x*ue,I+=x*de,D+=x*ve,B+=x*me,j+=x*ge,Q+=x*xe,X+=x*Ae,x=b[3],k+=x*re,M+=x*Y,P+=x*V,N+=x*oe,F+=x*fe,q+=x*ce,z+=x*he,O+=x*le,R+=x*ae,I+=x*ue,D+=x*de,B+=x*ve,j+=x*me,Q+=x*ge,X+=x*xe,Z+=x*Ae,x=b[4],M+=x*re,P+=x*Y,N+=x*V,F+=x*oe,q+=x*fe,z+=x*ce,O+=x*he,R+=x*le,I+=x*ae,D+=x*ue,B+=x*de,j+=x*ve,Q+=x*me,X+=x*ge,Z+=x*xe,L+=x*Ae,x=b[5],P+=x*re,N+=x*Y,F+=x*V,q+=x*oe,z+=x*fe,O+=x*ce,R+=x*he,I+=x*le,D+=x*ae,B+=x*ue,j+=x*de,Q+=x*ve,X+=x*me,Z+=x*ge,L+=x*xe,W+=x*Ae,x=b[6],N+=x*re,F+=x*Y,q+=x*V,z+=x*oe,O+=x*fe,R+=x*ce,I+=x*he,D+=x*le,B+=x*ae,j+=x*ue,Q+=x*de,X+=x*ve,Z+=x*me,L+=x*ge,W+=x*xe,G+=x*Ae,x=b[7],F+=x*re,q+=x*Y,z+=x*V,O+=x*oe,R+=x*fe,I+=x*ce,D+=x*he,B+=x*le,j+=x*ae,Q+=x*ue,X+=x*de,Z+=x*ve,L+=x*me,W+=x*ge,G+=x*xe,J+=x*Ae,x=b[8],q+=x*re,z+=x*Y,O+=x*V,R+=x*oe,I+=x*fe,D+=x*ce,B+=x*he,j+=x*le,Q+=x*ae,X+=x*ue,Z+=x*de,L+=x*ve,W+=x*me,G+=x*ge,J+=x*xe,H+=x*Ae,x=b[9],z+=x*re,O+=x*Y,R+=x*V,I+=x*oe,D+=x*fe,B+=x*ce,j+=x*he,Q+=x*le,X+=x*ae,Z+=x*ue,L+=x*de,W+=x*ve,G+=x*me,J+=x*ge,H+=x*xe,U+=x*Ae,x=b[10],O+=x*re,R+=x*Y,I+=x*V,D+=x*oe,B+=x*fe,j+=x*ce,Q+=x*he,X+=x*le,Z+=x*ae,L+=x*ue,W+=x*de,G+=x*ve,J+=x*me,H+=x*ge,U+=x*xe,K+=x*Ae,x=b[11],R+=x*re,I+=x*Y,D+=x*V,B+=x*oe,j+=x*fe,Q+=x*ce,X+=x*he,Z+=x*le,L+=x*ae,W+=x*ue,G+=x*de,J+=x*ve,H+=x*me,U+=x*ge,K+=x*xe,te+=x*Ae,x=b[12],I+=x*re,D+=x*Y,B+=x*V,j+=x*oe,Q+=x*fe,X+=x*ce,Z+=x*he,L+=x*le,W+=x*ae,G+=x*ue,J+=x*de,H+=x*ve,U+=x*me,K+=x*ge,te+=x*xe,ee+=x*Ae,x=b[13],D+=x*re,B+=x*Y,j+=x*V,Q+=x*oe,X+=x*fe,Z+=x*ce,L+=x*he,W+=x*le,G+=x*ae,J+=x*ue,H+=x*de,U+=x*ve,K+=x*me,te+=x*ge,ee+=x*xe,ie+=x*Ae,x=b[14],B+=x*re,j+=x*Y,Q+=x*V,X+=x*oe,Z+=x*fe,L+=x*ce,W+=x*he,G+=x*le,J+=x*ae,H+=x*ue,U+=x*de,K+=x*ve,te+=x*me,ee+=x*ge,ie+=x*xe,se+=x*Ae,x=b[15],j+=x*re,Q+=x*Y,X+=x*V,Z+=x*oe,L+=x*fe,W+=x*ce,G+=x*he,J+=x*le,H+=x*ae,U+=x*ue,K+=x*de,te+=x*ve,ee+=x*me,ie+=x*ge,se+=x*xe,ne+=x*Ae,S+=38*Q,C+=38*X,T+=38*Z,k+=38*L,M+=38*W,P+=38*G,N+=38*J,F+=38*H,q+=38*U,z+=38*K,O+=38*te,R+=38*ee,I+=38*ie,D+=38*se,B+=38*ne,E=1,x=S+E+65535,E=Math.floor(x/65536),S=x-E*65536,x=C+E+65535,E=Math.floor(x/65536),C=x-E*65536,x=T+E+65535,E=Math.floor(x/65536),T=x-E*65536,x=k+E+65535,E=Math.floor(x/65536),k=x-E*65536,x=M+E+65535,E=Math.floor(x/65536),M=x-E*65536,x=P+E+65535,E=Math.floor(x/65536),P=x-E*65536,x=N+E+65535,E=Math.floor(x/65536),N=x-E*65536,x=F+E+65535,E=Math.floor(x/65536),F=x-E*65536,x=q+E+65535,E=Math.floor(x/65536),q=x-E*65536,x=z+E+65535,E=Math.floor(x/65536),z=x-E*65536,x=O+E+65535,E=Math.floor(x/65536),O=x-E*65536,x=R+E+65535,E=Math.floor(x/65536),R=x-E*65536,x=I+E+65535,E=Math.floor(x/65536),I=x-E*65536,x=D+E+65535,E=Math.floor(x/65536),D=x-E*65536,x=B+E+65535,E=Math.floor(x/65536),B=x-E*65536,x=j+E+65535,E=Math.floor(x/65536),j=x-E*65536,S+=E-1+37*(E-1),E=1,x=S+E+65535,E=Math.floor(x/65536),S=x-E*65536,x=C+E+65535,E=Math.floor(x/65536),C=x-E*65536,x=T+E+65535,E=Math.floor(x/65536),T=x-E*65536,x=k+E+65535,E=Math.floor(x/65536),k=x-E*65536,x=M+E+65535,E=Math.floor(x/65536),M=x-E*65536,x=P+E+65535,E=Math.floor(x/65536),P=x-E*65536,x=N+E+65535,E=Math.floor(x/65536),N=x-E*65536,x=F+E+65535,E=Math.floor(x/65536),F=x-E*65536,x=q+E+65535,E=Math.floor(x/65536),q=x-E*65536,x=z+E+65535,E=Math.floor(x/65536),z=x-E*65536,x=O+E+65535,E=Math.floor(x/65536),O=x-E*65536,x=R+E+65535,E=Math.floor(x/65536),R=x-E*65536,x=I+E+65535,E=Math.floor(x/65536),I=x-E*65536,x=D+E+65535,E=Math.floor(x/65536),D=x-E*65536,x=B+E+65535,E=Math.floor(x/65536),B=x-E*65536,x=j+E+65535,E=Math.floor(x/65536),j=x-E*65536,S+=E-1+37*(E-1),y[0]=S,y[1]=C,y[2]=T,y[3]=k,y[4]=M,y[5]=P,y[6]=N,y[7]=F,y[8]=q,y[9]=z,y[10]=O,y[11]=R,y[12]=I,y[13]=D,y[14]=B,y[15]=j}function o(y,b){t(y,b,b)}function d(y,b){const A=_();for(let x=0;x<16;x++)A[x]=b[x];for(let x=253;x>=0;x--)o(A,A),x!==2&&x!==4&&t(A,A,b);for(let x=0;x<16;x++)y[x]=A[x]}function u(y,b){const A=new Uint8Array(32),x=new Float64Array(80),E=_(),S=_(),C=_(),T=_(),k=_(),M=_();for(let q=0;q<31;q++)A[q]=y[q];A[31]=y[31]&127|64,A[0]&=248,e(x,b);for(let q=0;q<16;q++)S[q]=x[q];E[0]=T[0]=1;for(let q=254;q>=0;--q){const z=A[q>>>3]>>>(q&7)&1;i(E,S,z),i(C,T,z),l(k,E,C),n(E,E,C),l(C,S,T),n(S,S,T),o(T,k),o(M,E),t(E,C,E),t(C,S,k),l(k,E,C),n(E,E,C),o(S,E),n(C,T,M),t(E,C,r),l(E,E,T),t(C,C,E),t(E,T,M),t(T,S,x),o(S,k),i(E,S,z),i(C,T,z)}for(let q=0;q<16;q++)x[q+16]=E[q],x[q+32]=C[q],x[q+48]=S[q],x[q+64]=T[q];const P=x.subarray(32),N=x.subarray(16);d(P,P),t(N,N,P);const F=new Uint8Array(32);return f(F,N),F}a.scalarMult=u;function c(y){return u(y,h)}a.scalarMultBase=c;function g(y){if(y.length!==a.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${a.SECRET_KEY_LENGTH} bytes`);const b=new Uint8Array(y);return{publicKey:c(b),secretKey:b}}a.generateKeyPairFromSeed=g;function p(y){const b=(0,m.randomBytes)(32,y),A=g(b);return(0,w.wipe)(b),A}a.generateKeyPair=p;function v(y,b,A=!1){if(y.length!==a.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(b.length!==a.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const x=u(y,b);if(A){let E=0;for(let S=0;S<x.length;S++)E|=x[S];if(E===0)throw new Error("X25519: invalid shared key")}return x}a.sharedKey=v})(bd);function _d(a){return globalThis.Buffer!=null?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):a}function Xv(a=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?_d(globalThis.Buffer.allocUnsafe(a)):new Uint8Array(a)}function g0(a,m){m||(m=a.reduce((h,r)=>h+r.length,0));const w=Xv(m);let _=0;for(const h of a)w.set(h,_),_+=h.length;return _d(w)}function _A(a,m){if(a.length>=255)throw new TypeError("Alphabet too long");for(var w=new Uint8Array(256),_=0;_<w.length;_++)w[_]=255;for(var h=0;h<a.length;h++){var r=a.charAt(h),s=r.charCodeAt(0);if(w[s]!==255)throw new TypeError(r+" is ambiguous");w[s]=h}var i=a.length,f=a.charAt(0),e=Math.log(i)/Math.log(256),l=Math.log(256)/Math.log(i);function n(d){if(d instanceof Uint8Array||(ArrayBuffer.isView(d)?d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength):Array.isArray(d)&&(d=Uint8Array.from(d))),!(d instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(d.length===0)return"";for(var u=0,c=0,g=0,p=d.length;g!==p&&d[g]===0;)g++,u++;for(var v=(p-g)*l+1>>>0,y=new Uint8Array(v);g!==p;){for(var b=d[g],A=0,x=v-1;(b!==0||A<c)&&x!==-1;x--,A++)b+=256*y[x]>>>0,y[x]=b%i>>>0,b=b/i>>>0;if(b!==0)throw new Error("Non-zero carry");c=A,g++}for(var E=v-c;E!==v&&y[E]===0;)E++;for(var S=f.repeat(u);E<v;++E)S+=a.charAt(y[E]);return S}function t(d){if(typeof d!="string")throw new TypeError("Expected String");if(d.length===0)return new Uint8Array;var u=0;if(d[u]!==" "){for(var c=0,g=0;d[u]===f;)c++,u++;for(var p=(d.length-u)*e+1>>>0,v=new Uint8Array(p);d[u];){var y=w[d.charCodeAt(u)];if(y===255)return;for(var b=0,A=p-1;(y!==0||b<g)&&A!==-1;A--,b++)y+=i*v[A]>>>0,v[A]=y%256>>>0,y=y/256>>>0;if(y!==0)throw new Error("Non-zero carry");g=b,u++}if(d[u]!==" "){for(var x=p-g;x!==p&&v[x]===0;)x++;for(var E=new Uint8Array(c+(p-x)),S=c;x!==p;)E[S++]=v[x++];return E}}}function o(d){var u=t(d);if(u)return u;throw new Error(`Non-${m} character`)}return{encode:n,decodeUnsafe:t,decode:o}}var wA=_A,xA=wA;const AA=a=>{if(a instanceof Uint8Array&&a.constructor.name==="Uint8Array")return a;if(a instanceof ArrayBuffer)return new Uint8Array(a);if(ArrayBuffer.isView(a))return new Uint8Array(a.buffer,a.byteOffset,a.byteLength);throw new Error("Unknown type, must be binary type")},EA=a=>new TextEncoder().encode(a),SA=a=>new TextDecoder().decode(a);class CA{constructor(m,w,_){this.name=m,this.prefix=w,this.baseEncode=_}encode(m){if(m instanceof Uint8Array)return`${this.prefix}${this.baseEncode(m)}`;throw Error("Unknown type, must be binary type")}}class kA{constructor(m,w,_){if(this.name=m,this.prefix=w,w.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=w.codePointAt(0),this.baseDecode=_}decode(m){if(typeof m=="string"){if(m.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(m)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(m.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(m){return Zv(this,m)}}class OA{constructor(m){this.decoders=m}or(m){return Zv(this,m)}decode(m){const w=m[0],_=this.decoders[w];if(_)return _.decode(m);throw RangeError(`Unable to decode multibase string ${JSON.stringify(m)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Zv=(a,m)=>new OA({...a.decoders||{[a.prefix]:a},...m.decoders||{[m.prefix]:m}});class PA{constructor(m,w,_,h){this.name=m,this.prefix=w,this.baseEncode=_,this.baseDecode=h,this.encoder=new CA(m,w,_),this.decoder=new kA(m,w,h)}encode(m){return this.encoder.encode(m)}decode(m){return this.decoder.decode(m)}}const au=({name:a,prefix:m,encode:w,decode:_})=>new PA(a,m,w,_),to=({prefix:a,name:m,alphabet:w})=>{const{encode:_,decode:h}=xA(w,m);return au({prefix:a,name:m,encode:_,decode:r=>AA(h(r))})},TA=(a,m,w,_)=>{const h={};for(let l=0;l<m.length;++l)h[m[l]]=l;let r=a.length;for(;a[r-1]==="=";)--r;const s=new Uint8Array(r*w/8|0);let i=0,f=0,e=0;for(let l=0;l<r;++l){const n=h[a[l]];if(n===void 0)throw new SyntaxError(`Non-${_} character`);f=f<<w|n,i+=w,i>=8&&(i-=8,s[e++]=255&f>>i)}if(i>=w||255&f<<8-i)throw new SyntaxError("Unexpected end of data");return s},MA=(a,m,w)=>{const _=m[m.length-1]==="=",h=(1<<w)-1;let r="",s=0,i=0;for(let f=0;f<a.length;++f)for(i=i<<8|a[f],s+=8;s>w;)s-=w,r+=m[h&i>>s];if(s&&(r+=m[h&i<<w-s]),_)for(;r.length*w&7;)r+="=";return r},It=({name:a,prefix:m,bitsPerChar:w,alphabet:_})=>au({prefix:m,name:a,encode(h){return MA(h,_,w)},decode(h){return TA(h,_,w,a)}}),IA=au({prefix:"\0",name:"identity",encode:a=>SA(a),decode:a=>EA(a)}),DA=Object.freeze(Object.defineProperty({__proto__:null,identity:IA},Symbol.toStringTag,{value:"Module"})),BA=It({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),RA=Object.freeze(Object.defineProperty({__proto__:null,base2:BA},Symbol.toStringTag,{value:"Module"})),NA=It({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),LA=Object.freeze(Object.defineProperty({__proto__:null,base8:NA},Symbol.toStringTag,{value:"Module"})),UA=to({prefix:"9",name:"base10",alphabet:"0123456789"}),FA=Object.freeze(Object.defineProperty({__proto__:null,base10:UA},Symbol.toStringTag,{value:"Module"})),jA=It({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),HA=It({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),zA=Object.freeze(Object.defineProperty({__proto__:null,base16:jA,base16upper:HA},Symbol.toStringTag,{value:"Module"})),qA=It({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$A=It({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),WA=It({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),VA=It({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),KA=It({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),GA=It({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),JA=It({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),QA=It({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),YA=It({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),XA=Object.freeze(Object.defineProperty({__proto__:null,base32:qA,base32hex:KA,base32hexpad:JA,base32hexpadupper:QA,base32hexupper:GA,base32pad:WA,base32padupper:VA,base32upper:$A,base32z:YA},Symbol.toStringTag,{value:"Module"})),ZA=to({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),eE=to({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),tE=Object.freeze(Object.defineProperty({__proto__:null,base36:ZA,base36upper:eE},Symbol.toStringTag,{value:"Module"})),rE=to({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),nE=to({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),iE=Object.freeze(Object.defineProperty({__proto__:null,base58btc:rE,base58flickr:nE},Symbol.toStringTag,{value:"Module"})),aE=It({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),oE=It({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),sE=It({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),uE=It({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),lE=Object.freeze(Object.defineProperty({__proto__:null,base64:aE,base64pad:oE,base64url:sE,base64urlpad:uE},Symbol.toStringTag,{value:"Module"})),em=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),fE=em.reduce((a,m,w)=>(a[w]=m,a),[]),cE=em.reduce((a,m,w)=>(a[m.codePointAt(0)]=w,a),[]);function dE(a){return a.reduce((m,w)=>(m+=fE[w],m),"")}function hE(a){const m=[];for(const w of a){const _=cE[w.codePointAt(0)];if(_===void 0)throw new Error(`Non-base256emoji character: ${w}`);m.push(_)}return new Uint8Array(m)}const pE=au({prefix:"🚀",name:"base256emoji",encode:dE,decode:hE}),vE=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:pE},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const b0={...DA,...RA,...LA,...FA,...zA,...XA,...tE,...iE,...lE,...vE};function tm(a,m,w,_){return{name:a,prefix:m,encoder:{name:a,prefix:m,encode:w},decoder:{decode:_}}}const _0=tm("utf8","u",a=>"u"+new TextDecoder("utf8").decode(a),a=>new TextEncoder().encode(a.substring(1))),hl=tm("ascii","a",a=>{let m="a";for(let w=0;w<a.length;w++)m+=String.fromCharCode(a[w]);return m},a=>{a=a.substring(1);const m=Xv(a.length);for(let w=0;w<a.length;w++)m[w]=a.charCodeAt(w);return m}),rm={utf8:_0,"utf-8":_0,hex:b0.base16,latin1:hl,ascii:hl,binary:hl,...b0};function cr(a,m="utf8"){const w=rm[m];if(!w)throw new Error(`Unsupported encoding "${m}"`);return(m==="utf8"||m==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?_d(globalThis.Buffer.from(a,"utf-8")):w.decoder.decode(`${w.prefix}${a}`)}function hr(a,m="utf8"){const w=rm[m];if(!w)throw new Error(`Unsupported encoding "${m}"`);return(m==="utf8"||m==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(a.buffer,a.byteOffset,a.byteLength).toString("utf8"):w.encoder.encode(a).substring(1)}var w0=globalThis&&globalThis.__spreadArray||function(a,m,w){if(w||arguments.length===2)for(var _=0,h=m.length,r;_<h;_++)(r||!(_ in m))&&(r||(r=Array.prototype.slice.call(m,0,_)),r[_]=m[_]);return a.concat(r||Array.prototype.slice.call(m))},mE=function(){function a(m,w,_){this.name=m,this.version=w,this.os=_,this.type="browser"}return a}(),yE=function(){function a(m){this.version=m,this.type="node",this.name="node",this.os=process.platform}return a}(),gE=function(){function a(m,w,_,h){this.name=m,this.version=w,this.os=_,this.bot=h,this.type="bot-device"}return a}(),bE=function(){function a(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return a}(),_E=function(){function a(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return a}(),wE=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,xE=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,x0=3,AE=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",wE]],A0=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function EE(a){return a?E0(a):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new _E:typeof navigator<"u"?E0(navigator.userAgent):kE()}function SE(a){return a!==""&&AE.reduce(function(m,w){var _=w[0],h=w[1];if(m)return m;var r=h.exec(a);return!!r&&[_,r]},!1)}function E0(a){var m=SE(a);if(!m)return null;var w=m[0],_=m[1];if(w==="searchbot")return new bE;var h=_[1]&&_[1].split(".").join("_").split("_").slice(0,3);h?h.length<x0&&(h=w0(w0([],h,!0),OE(x0-h.length),!0)):h=[];var r=h.join("."),s=CE(a),i=xE.exec(a);return i&&i[1]?new gE(w,r,s,i[1]):new mE(w,r,s)}function CE(a){for(var m=0,w=A0.length;m<w;m++){var _=A0[m],h=_[0],r=_[1],s=r.exec(a);if(s)return h}return null}function kE(){var a=typeof process<"u"&&process.version;return a?new yE(process.version.slice(1)):null}function OE(a){for(var m=[],w=0;w<a;w++)m.push("0");return m}var Bn={};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var qf=function(a,m){return qf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,_){w.__proto__=_}||function(w,_){for(var h in _)_.hasOwnProperty(h)&&(w[h]=_[h])},qf(a,m)};function PE(a,m){qf(a,m);function w(){this.constructor=a}a.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}var $f=function(){return $f=Object.assign||function(m){for(var w,_=1,h=arguments.length;_<h;_++){w=arguments[_];for(var r in w)Object.prototype.hasOwnProperty.call(w,r)&&(m[r]=w[r])}return m},$f.apply(this,arguments)};function TE(a,m){var w={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&m.indexOf(_)<0&&(w[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,_=Object.getOwnPropertySymbols(a);h<_.length;h++)m.indexOf(_[h])<0&&Object.prototype.propertyIsEnumerable.call(a,_[h])&&(w[_[h]]=a[_[h]]);return w}function ME(a,m,w,_){var h=arguments.length,r=h<3?m:_===null?_=Object.getOwnPropertyDescriptor(m,w):_,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(a,m,w,_);else for(var i=a.length-1;i>=0;i--)(s=a[i])&&(r=(h<3?s(r):h>3?s(m,w,r):s(m,w))||r);return h>3&&r&&Object.defineProperty(m,w,r),r}function IE(a,m){return function(w,_){m(w,_,a)}}function DE(a,m){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,m)}function BE(a,m,w,_){function h(r){return r instanceof w?r:new w(function(s){s(r)})}return new(w||(w=Promise))(function(r,s){function i(l){try{e(_.next(l))}catch(n){s(n)}}function f(l){try{e(_.throw(l))}catch(n){s(n)}}function e(l){l.done?r(l.value):h(l.value).then(i,f)}e((_=_.apply(a,m||[])).next())})}function RE(a,m){var w={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},_,h,r,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(l){return f([e,l])}}function f(e){if(_)throw new TypeError("Generator is already executing.");for(;w;)try{if(_=1,h&&(r=e[0]&2?h.return:e[0]?h.throw||((r=h.return)&&r.call(h),0):h.next)&&!(r=r.call(h,e[1])).done)return r;switch(h=0,r&&(e=[e[0]&2,r.value]),e[0]){case 0:case 1:r=e;break;case 4:return w.label++,{value:e[1],done:!1};case 5:w.label++,h=e[1],e=[0];continue;case 7:e=w.ops.pop(),w.trys.pop();continue;default:if(r=w.trys,!(r=r.length>0&&r[r.length-1])&&(e[0]===6||e[0]===2)){w=0;continue}if(e[0]===3&&(!r||e[1]>r[0]&&e[1]<r[3])){w.label=e[1];break}if(e[0]===6&&w.label<r[1]){w.label=r[1],r=e;break}if(r&&w.label<r[2]){w.label=r[2],w.ops.push(e);break}r[2]&&w.ops.pop(),w.trys.pop();continue}e=m.call(a,w)}catch(l){e=[6,l],h=0}finally{_=r=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}function NE(a,m,w,_){_===void 0&&(_=w),a[_]=m[w]}function LE(a,m){for(var w in a)w!=="default"&&!m.hasOwnProperty(w)&&(m[w]=a[w])}function Wf(a){var m=typeof Symbol=="function"&&Symbol.iterator,w=m&&a[m],_=0;if(w)return w.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&_>=a.length&&(a=void 0),{value:a&&a[_++],done:!a}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")}function nm(a,m){var w=typeof Symbol=="function"&&a[Symbol.iterator];if(!w)return a;var _=w.call(a),h,r=[],s;try{for(;(m===void 0||m-- >0)&&!(h=_.next()).done;)r.push(h.value)}catch(i){s={error:i}}finally{try{h&&!h.done&&(w=_.return)&&w.call(_)}finally{if(s)throw s.error}}return r}function UE(){for(var a=[],m=0;m<arguments.length;m++)a=a.concat(nm(arguments[m]));return a}function FE(){for(var a=0,m=0,w=arguments.length;m<w;m++)a+=arguments[m].length;for(var _=Array(a),h=0,m=0;m<w;m++)for(var r=arguments[m],s=0,i=r.length;s<i;s++,h++)_[h]=r[s];return _}function Ha(a){return this instanceof Ha?(this.v=a,this):new Ha(a)}function jE(a,m,w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _=w.apply(a,m||[]),h,r=[];return h={},s("next"),s("throw"),s("return"),h[Symbol.asyncIterator]=function(){return this},h;function s(t){_[t]&&(h[t]=function(o){return new Promise(function(d,u){r.push([t,o,d,u])>1||i(t,o)})})}function i(t,o){try{f(_[t](o))}catch(d){n(r[0][3],d)}}function f(t){t.value instanceof Ha?Promise.resolve(t.value.v).then(e,l):n(r[0][2],t)}function e(t){i("next",t)}function l(t){i("throw",t)}function n(t,o){t(o),r.shift(),r.length&&i(r[0][0],r[0][1])}}function HE(a){var m,w;return m={},_("next"),_("throw",function(h){throw h}),_("return"),m[Symbol.iterator]=function(){return this},m;function _(h,r){m[h]=a[h]?function(s){return(w=!w)?{value:Ha(a[h](s)),done:h==="return"}:r?r(s):s}:r}}function zE(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=a[Symbol.asyncIterator],w;return m?m.call(a):(a=typeof Wf=="function"?Wf(a):a[Symbol.iterator](),w={},_("next"),_("throw"),_("return"),w[Symbol.asyncIterator]=function(){return this},w);function _(r){w[r]=a[r]&&function(s){return new Promise(function(i,f){s=a[r](s),h(i,f,s.done,s.value)})}}function h(r,s,i,f){Promise.resolve(f).then(function(e){r({value:e,done:i})},s)}}function qE(a,m){return Object.defineProperty?Object.defineProperty(a,"raw",{value:m}):a.raw=m,a}function $E(a){if(a&&a.__esModule)return a;var m={};if(a!=null)for(var w in a)Object.hasOwnProperty.call(a,w)&&(m[w]=a[w]);return m.default=a,m}function WE(a){return a&&a.__esModule?a:{default:a}}function VE(a,m){if(!m.has(a))throw new TypeError("attempted to get private field on non-instance");return m.get(a)}function KE(a,m,w){if(!m.has(a))throw new TypeError("attempted to set private field on non-instance");return m.set(a,w),w}const GE=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return $f},__asyncDelegator:HE,__asyncGenerator:jE,__asyncValues:zE,__await:Ha,__awaiter:BE,__classPrivateFieldGet:VE,__classPrivateFieldSet:KE,__createBinding:NE,__decorate:ME,__exportStar:LE,__extends:PE,__generator:RE,__importDefault:WE,__importStar:$E,__makeTemplateObject:qE,__metadata:DE,__param:IE,__read:nm,__rest:TE,__spread:UE,__spreadArrays:FE,__values:Wf},Symbol.toStringTag,{value:"Module"})),ou=sc(GE);var pl={},Ji={},S0;function JE(){if(S0)return Ji;S0=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.delay=void 0;function a(m){return new Promise(w=>{setTimeout(()=>{w(!0)},m)})}return Ji.delay=a,Ji}var Sn={},vl={},Cn={},C0;function QE(){return C0||(C0=1,Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.ONE_THOUSAND=Cn.ONE_HUNDRED=void 0,Cn.ONE_HUNDRED=100,Cn.ONE_THOUSAND=1e3),Cn}var ml={},k0;function YE(){return k0||(k0=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),a.ONE_YEAR=a.FOUR_WEEKS=a.THREE_WEEKS=a.TWO_WEEKS=a.ONE_WEEK=a.THIRTY_DAYS=a.SEVEN_DAYS=a.FIVE_DAYS=a.THREE_DAYS=a.ONE_DAY=a.TWENTY_FOUR_HOURS=a.TWELVE_HOURS=a.SIX_HOURS=a.THREE_HOURS=a.ONE_HOUR=a.SIXTY_MINUTES=a.THIRTY_MINUTES=a.TEN_MINUTES=a.FIVE_MINUTES=a.ONE_MINUTE=a.SIXTY_SECONDS=a.THIRTY_SECONDS=a.TEN_SECONDS=a.FIVE_SECONDS=a.ONE_SECOND=void 0,a.ONE_SECOND=1,a.FIVE_SECONDS=5,a.TEN_SECONDS=10,a.THIRTY_SECONDS=30,a.SIXTY_SECONDS=60,a.ONE_MINUTE=a.SIXTY_SECONDS,a.FIVE_MINUTES=a.ONE_MINUTE*5,a.TEN_MINUTES=a.ONE_MINUTE*10,a.THIRTY_MINUTES=a.ONE_MINUTE*30,a.SIXTY_MINUTES=a.ONE_MINUTE*60,a.ONE_HOUR=a.SIXTY_MINUTES,a.THREE_HOURS=a.ONE_HOUR*3,a.SIX_HOURS=a.ONE_HOUR*6,a.TWELVE_HOURS=a.ONE_HOUR*12,a.TWENTY_FOUR_HOURS=a.ONE_HOUR*24,a.ONE_DAY=a.TWENTY_FOUR_HOURS,a.THREE_DAYS=a.ONE_DAY*3,a.FIVE_DAYS=a.ONE_DAY*5,a.SEVEN_DAYS=a.ONE_DAY*7,a.THIRTY_DAYS=a.ONE_DAY*30,a.ONE_WEEK=a.SEVEN_DAYS,a.TWO_WEEKS=a.ONE_WEEK*2,a.THREE_WEEKS=a.ONE_WEEK*3,a.FOUR_WEEKS=a.ONE_WEEK*4,a.ONE_YEAR=a.ONE_DAY*365}(ml)),ml}var O0;function im(){return O0||(O0=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});const m=ou;m.__exportStar(QE(),a),m.__exportStar(YE(),a)}(vl)),vl}var P0;function XE(){if(P0)return Sn;P0=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.fromMiliseconds=Sn.toMiliseconds=void 0;const a=im();function m(_){return _*a.ONE_THOUSAND}Sn.toMiliseconds=m;function w(_){return Math.floor(_/a.ONE_THOUSAND)}return Sn.fromMiliseconds=w,Sn}var T0;function ZE(){return T0||(T0=1,function(a){Object.defineProperty(a,"__esModule",{value:!0});const m=ou;m.__exportStar(JE(),a),m.__exportStar(XE(),a)}(pl)),pl}var Zn={},M0;function eS(){if(M0)return Zn;M0=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.Watch=void 0;class a{constructor(){this.timestamps=new Map}start(w){if(this.timestamps.has(w))throw new Error(`Watch already started for label: ${w}`);this.timestamps.set(w,{started:Date.now()})}stop(w){const _=this.get(w);if(typeof _.elapsed<"u")throw new Error(`Watch already stopped for label: ${w}`);const h=Date.now()-_.started;this.timestamps.set(w,{started:_.started,elapsed:h})}get(w){const _=this.timestamps.get(w);if(typeof _>"u")throw new Error(`No timestamp found for label: ${w}`);return _}elapsed(w){const _=this.get(w);return _.elapsed||Date.now()-_.started}}return Zn.Watch=a,Zn.default=a,Zn}var yl={},Qi={},I0;function tS(){if(I0)return Qi;I0=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.IWatch=void 0;class a{}return Qi.IWatch=a,Qi}var D0;function rS(){return D0||(D0=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),ou.__exportStar(tS(),a)}(yl)),yl}(function(a){Object.defineProperty(a,"__esModule",{value:!0});const m=ou;m.__exportStar(ZE(),a),m.__exportStar(eS(),a),m.__exportStar(rS(),a),m.__exportStar(im(),a)})(Bn);var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.getLocalStorage=pt.getLocalStorageOrThrow=pt.getCrypto=pt.getCryptoOrThrow=om=pt.getLocation=pt.getLocationOrThrow=wd=pt.getNavigator=pt.getNavigatorOrThrow=am=pt.getDocument=pt.getDocumentOrThrow=pt.getFromWindowOrThrow=pt.getFromWindow=void 0;function Gn(a){let m;return typeof window<"u"&&typeof window[a]<"u"&&(m=window[a]),m}pt.getFromWindow=Gn;function Ui(a){const m=Gn(a);if(!m)throw new Error(`${a} is not defined in Window`);return m}pt.getFromWindowOrThrow=Ui;function nS(){return Ui("document")}pt.getDocumentOrThrow=nS;function iS(){return Gn("document")}var am=pt.getDocument=iS;function aS(){return Ui("navigator")}pt.getNavigatorOrThrow=aS;function oS(){return Gn("navigator")}var wd=pt.getNavigator=oS;function sS(){return Ui("location")}pt.getLocationOrThrow=sS;function uS(){return Gn("location")}var om=pt.getLocation=uS;function lS(){return Ui("crypto")}pt.getCryptoOrThrow=lS;function fS(){return Gn("crypto")}pt.getCrypto=fS;function cS(){return Ui("localStorage")}pt.getLocalStorageOrThrow=cS;function dS(){return Gn("localStorage")}pt.getLocalStorage=dS;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});var sm=xd.getWindowMetadata=void 0;const B0=pt;function hS(){let a,m;try{a=B0.getDocumentOrThrow(),m=B0.getLocationOrThrow()}catch{return null}function w(){const n=a.getElementsByTagName("link"),t=[];for(let o=0;o<n.length;o++){const d=n[o],u=d.getAttribute("rel");if(u&&u.toLowerCase().indexOf("icon")>-1){const c=d.getAttribute("href");if(c)if(c.toLowerCase().indexOf("https:")===-1&&c.toLowerCase().indexOf("http:")===-1&&c.indexOf("//")!==0){let g=m.protocol+"//"+m.host;if(c.indexOf("/")===0)g+=c;else{const p=m.pathname.split("/");p.pop();const v=p.join("/");g+=v+"/"+c}t.push(g)}else if(c.indexOf("//")===0){const g=m.protocol+c;t.push(g)}else t.push(c)}}return t}function _(...n){const t=a.getElementsByTagName("meta");for(let o=0;o<t.length;o++){const d=t[o],u=["itemprop","property","name"].map(c=>d.getAttribute(c)).filter(c=>c?n.includes(c):!1);if(u.length&&u){const c=d.getAttribute("content");if(c)return c}}return""}function h(){let n=_("name","og:site_name","og:title","twitter:title");return n||(n=a.title),n}function r(){return _("description","og:description","twitter:description","keywords")}const s=h(),i=r(),f=m.origin,e=w();return{description:i,url:f,icons:e,name:s}}sm=xd.getWindowMetadata=hS;var za={},pS=a=>encodeURIComponent(a).replace(/[!'()*]/g,m=>`%${m.charCodeAt(0).toString(16).toUpperCase()}`),um="%[a-f0-9]{2}",R0=new RegExp("("+um+")|([^%]+?)","gi"),N0=new RegExp("("+um+")+","gi");function Vf(a,m){try{return[decodeURIComponent(a.join(""))]}catch{}if(a.length===1)return a;m=m||1;var w=a.slice(0,m),_=a.slice(m);return Array.prototype.concat.call([],Vf(w),Vf(_))}function vS(a){try{return decodeURIComponent(a)}catch{for(var m=a.match(R0)||[],w=1;w<m.length;w++)a=Vf(m,w).join(""),m=a.match(R0)||[];return a}}function mS(a){for(var m={"%FE%FF":"��","%FF%FE":"��"},w=N0.exec(a);w;){try{m[w[0]]=decodeURIComponent(w[0])}catch{var _=vS(w[0]);_!==w[0]&&(m[w[0]]=_)}w=N0.exec(a)}m["%C2"]="�";for(var h=Object.keys(m),r=0;r<h.length;r++){var s=h[r];a=a.replace(new RegExp(s,"g"),m[s])}return a}var yS=function(a){if(typeof a!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof a+"`");try{return a=a.replace(/\+/g," "),decodeURIComponent(a)}catch{return mS(a)}},gS=(a,m)=>{if(!(typeof a=="string"&&typeof m=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(m==="")return[a];const w=a.indexOf(m);return w===-1?[a]:[a.slice(0,w),a.slice(w+m.length)]},bS=function(a,m){for(var w={},_=Object.keys(a),h=Array.isArray(m),r=0;r<_.length;r++){var s=_[r],i=a[s];(h?m.indexOf(s)!==-1:m(s,i,a))&&(w[s]=i)}return w};(function(a){const m=pS,w=yS,_=gS,h=bS,r=p=>p==null,s=Symbol("encodeFragmentIdentifier");function i(p){switch(p.arrayFormat){case"index":return v=>(y,b)=>{const A=y.length;return b===void 0||p.skipNull&&b===null||p.skipEmptyString&&b===""?y:b===null?[...y,[l(v,p),"[",A,"]"].join("")]:[...y,[l(v,p),"[",l(A,p),"]=",l(b,p)].join("")]};case"bracket":return v=>(y,b)=>b===void 0||p.skipNull&&b===null||p.skipEmptyString&&b===""?y:b===null?[...y,[l(v,p),"[]"].join("")]:[...y,[l(v,p),"[]=",l(b,p)].join("")];case"colon-list-separator":return v=>(y,b)=>b===void 0||p.skipNull&&b===null||p.skipEmptyString&&b===""?y:b===null?[...y,[l(v,p),":list="].join("")]:[...y,[l(v,p),":list=",l(b,p)].join("")];case"comma":case"separator":case"bracket-separator":{const v=p.arrayFormat==="bracket-separator"?"[]=":"=";return y=>(b,A)=>A===void 0||p.skipNull&&A===null||p.skipEmptyString&&A===""?b:(A=A===null?"":A,b.length===0?[[l(y,p),v,l(A,p)].join("")]:[[b,l(A,p)].join(p.arrayFormatSeparator)])}default:return v=>(y,b)=>b===void 0||p.skipNull&&b===null||p.skipEmptyString&&b===""?y:b===null?[...y,l(v,p)]:[...y,[l(v,p),"=",l(b,p)].join("")]}}function f(p){let v;switch(p.arrayFormat){case"index":return(y,b,A)=>{if(v=/\[(\d*)\]$/.exec(y),y=y.replace(/\[\d*\]$/,""),!v){A[y]=b;return}A[y]===void 0&&(A[y]={}),A[y][v[1]]=b};case"bracket":return(y,b,A)=>{if(v=/(\[\])$/.exec(y),y=y.replace(/\[\]$/,""),!v){A[y]=b;return}if(A[y]===void 0){A[y]=[b];return}A[y]=[].concat(A[y],b)};case"colon-list-separator":return(y,b,A)=>{if(v=/(:list)$/.exec(y),y=y.replace(/:list$/,""),!v){A[y]=b;return}if(A[y]===void 0){A[y]=[b];return}A[y]=[].concat(A[y],b)};case"comma":case"separator":return(y,b,A)=>{const x=typeof b=="string"&&b.includes(p.arrayFormatSeparator),E=typeof b=="string"&&!x&&n(b,p).includes(p.arrayFormatSeparator);b=E?n(b,p):b;const S=x||E?b.split(p.arrayFormatSeparator).map(C=>n(C,p)):b===null?b:n(b,p);A[y]=S};case"bracket-separator":return(y,b,A)=>{const x=/(\[\])$/.test(y);if(y=y.replace(/\[\]$/,""),!x){A[y]=b&&n(b,p);return}const E=b===null?[]:b.split(p.arrayFormatSeparator).map(S=>n(S,p));if(A[y]===void 0){A[y]=E;return}A[y]=[].concat(A[y],E)};default:return(y,b,A)=>{if(A[y]===void 0){A[y]=b;return}A[y]=[].concat(A[y],b)}}}function e(p){if(typeof p!="string"||p.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function l(p,v){return v.encode?v.strict?m(p):encodeURIComponent(p):p}function n(p,v){return v.decode?w(p):p}function t(p){return Array.isArray(p)?p.sort():typeof p=="object"?t(Object.keys(p)).sort((v,y)=>Number(v)-Number(y)).map(v=>p[v]):p}function o(p){const v=p.indexOf("#");return v!==-1&&(p=p.slice(0,v)),p}function d(p){let v="";const y=p.indexOf("#");return y!==-1&&(v=p.slice(y)),v}function u(p){p=o(p);const v=p.indexOf("?");return v===-1?"":p.slice(v+1)}function c(p,v){return v.parseNumbers&&!Number.isNaN(Number(p))&&typeof p=="string"&&p.trim()!==""?p=Number(p):v.parseBooleans&&p!==null&&(p.toLowerCase()==="true"||p.toLowerCase()==="false")&&(p=p.toLowerCase()==="true"),p}function g(p,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),e(v.arrayFormatSeparator);const y=f(v),b=Object.create(null);if(typeof p!="string"||(p=p.trim().replace(/^[?#&]/,""),!p))return b;for(const A of p.split("&")){if(A==="")continue;let[x,E]=_(v.decode?A.replace(/\+/g," "):A,"=");E=E===void 0?null:["comma","separator","bracket-separator"].includes(v.arrayFormat)?E:n(E,v),y(n(x,v),E,b)}for(const A of Object.keys(b)){const x=b[A];if(typeof x=="object"&&x!==null)for(const E of Object.keys(x))x[E]=c(x[E],v);else b[A]=c(x,v)}return v.sort===!1?b:(v.sort===!0?Object.keys(b).sort():Object.keys(b).sort(v.sort)).reduce((A,x)=>{const E=b[x];return E&&typeof E=="object"&&!Array.isArray(E)?A[x]=t(E):A[x]=E,A},Object.create(null))}a.extract=u,a.parse=g,a.stringify=(p,v)=>{if(!p)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),e(v.arrayFormatSeparator);const y=E=>v.skipNull&&r(p[E])||v.skipEmptyString&&p[E]==="",b=i(v),A={};for(const E of Object.keys(p))y(E)||(A[E]=p[E]);const x=Object.keys(A);return v.sort!==!1&&x.sort(v.sort),x.map(E=>{const S=p[E];return S===void 0?"":S===null?l(E,v):Array.isArray(S)?S.length===0&&v.arrayFormat==="bracket-separator"?l(E,v)+"[]":S.reduce(b(E),[]).join("&"):l(E,v)+"="+l(S,v)}).filter(E=>E.length>0).join("&")},a.parseUrl=(p,v)=>{v=Object.assign({decode:!0},v);const[y,b]=_(p,"#");return Object.assign({url:y.split("?")[0]||"",query:g(u(p),v)},v&&v.parseFragmentIdentifier&&b?{fragmentIdentifier:n(b,v)}:{})},a.stringifyUrl=(p,v)=>{v=Object.assign({encode:!0,strict:!0,[s]:!0},v);const y=o(p.url).split("?")[0]||"",b=a.extract(p.url),A=a.parse(b,{sort:!1}),x=Object.assign(A,p.query);let E=a.stringify(x,v);E&&(E=`?${E}`);let S=d(p.url);return p.fragmentIdentifier&&(S=`#${v[s]?l(p.fragmentIdentifier,v):p.fragmentIdentifier}`),`${y}${E}${S}`},a.pick=(p,v,y)=>{y=Object.assign({parseFragmentIdentifier:!0,[s]:!1},y);const{url:b,query:A,fragmentIdentifier:x}=a.parseUrl(p,y);return a.stringifyUrl({url:b,query:h(A,v),fragmentIdentifier:x},y)},a.exclude=(p,v,y)=>{const b=Array.isArray(v)?A=>!v.includes(A):(A,x)=>!v(A,x);return a.pick(p,b,y)}})(za);const _S={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}};function YO(a,m=[]){const w=[];return Object.keys(a).forEach(_=>{if(m.length&&!m.includes(_))return;const h=a[_];w.push(...h.accounts)}),w}function lm(a,m){return a.includes(":")?[a]:m.chains||[]}const fm="base10",Wt="base16",Kf="base64pad",Ad="utf8",cm=0,ro=1,wS=0,L0=1,Gf=12,Ed=32;function XO(){const a=bd.generateKeyPair();return{privateKey:hr(a.secretKey,Wt),publicKey:hr(a.publicKey,Wt)}}function ZO(){const a=eu.randomBytes(Ed);return hr(a,Wt)}function eP(a,m){const w=bd.sharedKey(cr(a,Wt),cr(m,Wt)),_=new hA(iu.SHA256,w).expand(Ed);return hr(_,Wt)}function tP(a){const m=iu.hash(cr(a,Wt));return hr(m,Wt)}function rP(a){const m=iu.hash(cr(a,Ad));return hr(m,Wt)}function xS(a){return cr(`${a}`,fm)}function su(a){return Number(hr(a,fm))}function nP(a){const m=xS(typeof a.type<"u"?a.type:cm);if(su(m)===ro&&typeof a.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const w=typeof a.senderPublicKey<"u"?cr(a.senderPublicKey,Wt):void 0,_=typeof a.iv<"u"?cr(a.iv,Wt):eu.randomBytes(Gf),h=new yd.ChaCha20Poly1305(cr(a.symKey,Wt)).seal(_,cr(a.message,Ad));return AS({type:m,sealed:h,iv:_,senderPublicKey:w})}function iP(a){const m=new yd.ChaCha20Poly1305(cr(a.symKey,Wt)),{sealed:w,iv:_}=dm(a.encoded),h=m.open(_,w);if(h===null)throw new Error("Failed to decrypt");return hr(h,Ad)}function AS(a){if(su(a.type)===ro){if(typeof a.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return hr(g0([a.type,a.senderPublicKey,a.iv,a.sealed]),Kf)}return hr(g0([a.type,a.iv,a.sealed]),Kf)}function dm(a){const m=cr(a,Kf),w=m.slice(wS,L0),_=L0;if(su(w)===ro){const i=_+Ed,f=i+Gf,e=m.slice(_,i),l=m.slice(i,f),n=m.slice(f);return{type:w,sealed:n,iv:l,senderPublicKey:e}}const h=_+Gf,r=m.slice(_,h),s=m.slice(h);return{type:w,sealed:s,iv:r}}function aP(a,m){const w=dm(a);return ES({type:su(w.type),senderPublicKey:typeof w.senderPublicKey<"u"?hr(w.senderPublicKey,Wt):void 0,receiverPublicKey:m?.receiverPublicKey})}function ES(a){const m=a?.type||cm;if(m===ro){if(typeof a?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof a?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:m,senderPublicKey:a?.senderPublicKey,receiverPublicKey:a?.receiverPublicKey}}function oP(a){return a.type===ro&&typeof a.senderPublicKey=="string"&&typeof a.receiverPublicKey=="string"}var SS=Object.defineProperty,U0=Object.getOwnPropertySymbols,CS=Object.prototype.hasOwnProperty,kS=Object.prototype.propertyIsEnumerable,F0=(a,m,w)=>m in a?SS(a,m,{enumerable:!0,configurable:!0,writable:!0,value:w}):a[m]=w,j0=(a,m)=>{for(var w in m||(m={}))CS.call(m,w)&&F0(a,w,m[w]);if(U0)for(var w of U0(m))kS.call(m,w)&&F0(a,w,m[w]);return a};const OS="ReactNative",nn={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},PS="js";function hm(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function TS(){return!am()&&!!wd()&&navigator.product===OS}function MS(){return!hm()&&!!wd()}function Sd(){return TS()?nn.reactNative:hm()?nn.node:MS()?nn.browser:nn.unknown}function IS(a,m){let w=za.parse(a);return w=j0(j0({},w),m),a=za.stringify(w),a}function sP(){return sm()||{name:"",description:"",url:"",icons:[""]}}function DS(){if(Sd()===nn.reactNative&&typeof global<"u"&&typeof(global==null?void 0:global.Platform)<"u"){const{OS:w,Version:_}=global.Platform;return[w,_].join("-")}const a=EE();if(a===null)return"unknown";const m=a.os?a.os.replace(" ","").toLowerCase():"unknown";return a.type==="browser"?[m,a.name,a.version].join("-"):[m,a.version].join("-")}function BS(){var a;const m=Sd();return m===nn.browser?[m,((a=om())==null?void 0:a.host)||"unknown"].join(":"):m}function RS(a,m,w){const _=DS(),h=BS();return[[a,m].join("-"),[PS,w].join("-"),_,h].join("/")}function uP({protocol:a,version:m,relayUrl:w,sdkVersion:_,auth:h,projectId:r,useOnCloseEvent:s}){const i=w.split("?"),f=RS(a,m,_),e={auth:h,ua:f,projectId:r,useOnCloseEvent:s||void 0},l=IS(i[1]||"",e);return i[0]+"?"+l}function Pn(a,m){return a.filter(w=>m.includes(w)).length===a.length}function lP(a){return Object.fromEntries(a.entries())}function fP(a){return new Map(Object.entries(a))}function cP(a=Bn.FIVE_MINUTES,m){const w=Bn.toMiliseconds(a||Bn.FIVE_MINUTES);let _,h,r;return{resolve:s=>{r&&_&&(clearTimeout(r),_(s))},reject:s=>{r&&h&&(clearTimeout(r),h(s))},done:()=>new Promise((s,i)=>{r=setTimeout(()=>{i(new Error(m))},w),_=s,h=i})}}function dP(a,m,w){return new Promise(async(_,h)=>{const r=setTimeout(()=>h(new Error(w)),m);try{const s=await a;_(s)}catch(s){h(s)}clearTimeout(r)})}function pm(a,m){if(typeof m=="string"&&m.startsWith(`${a}:`))return m;if(a.toLowerCase()==="topic"){if(typeof m!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${m}`}else if(a.toLowerCase()==="id"){if(typeof m!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${m}`}throw new Error(`Unknown expirer target type: ${a}`)}function hP(a){return pm("topic",a)}function pP(a){return pm("id",a)}function vP(a){const[m,w]=a.split(":"),_={id:void 0,topic:void 0};if(m==="topic"&&typeof w=="string")_.topic=w;else if(m==="id"&&Number.isInteger(Number(w)))_.id=Number(w);else throw new Error(`Invalid target, expected id:number or topic:string, got ${m}:${w}`);return _}function mP(a,m){return Bn.fromMiliseconds((m||Date.now())+Bn.toMiliseconds(a))}function yP(a){return Date.now()>=Bn.toMiliseconds(a)}function gP(a,m){return`${a}${m?`:${m}`:""}`}function gl(a=[],m=[]){return[...new Set([...a,...m])]}async function bP({id:a,topic:m,wcDeepLink:w}){try{if(!w)return;let h=(typeof w=="string"?JSON.parse(w):w)?.href;if(typeof h!="string")return;h.endsWith("/")&&(h=h.slice(0,-1));const r=`${h}/wc?requestId=${a}&sessionTopic=${m}`,s=Sd();s===nn.browser?r.startsWith("https://")?window.open(r,"_blank","noreferrer noopener"):window.open(r,"_self","noreferrer noopener"):s===nn.reactNative&&typeof(global==null?void 0:global.Linking)<"u"&&await global.Linking.openURL(r)}catch(_){console.error(_)}}const NS="irn";function _P(a){return a?.relay||{protocol:NS}}function wP(a){const m=_S[a];if(typeof m>"u")throw new Error(`Relay Protocol not supported: ${a}`);return m}var LS=Object.defineProperty,H0=Object.getOwnPropertySymbols,US=Object.prototype.hasOwnProperty,FS=Object.prototype.propertyIsEnumerable,z0=(a,m,w)=>m in a?LS(a,m,{enumerable:!0,configurable:!0,writable:!0,value:w}):a[m]=w,jS=(a,m)=>{for(var w in m||(m={}))US.call(m,w)&&z0(a,w,m[w]);if(H0)for(var w of H0(m))FS.call(m,w)&&z0(a,w,m[w]);return a};function HS(a,m="-"){const w={},_="relay"+m;return Object.keys(a).forEach(h=>{if(h.startsWith(_)){const r=h.replace(_,""),s=a[h];w[r]=s}}),w}function xP(a){const m=a.indexOf(":"),w=a.indexOf("?")!==-1?a.indexOf("?"):void 0,_=a.substring(0,m),h=a.substring(m+1,w).split("@"),r=typeof w<"u"?a.substring(w):"",s=za.parse(r);return{protocol:_,topic:zS(h[0]),version:parseInt(h[1],10),symKey:s.symKey,relay:HS(s)}}function zS(a){return a.startsWith("//")?a.substring(2):a}function qS(a,m="-"){const w="relay",_={};return Object.keys(a).forEach(h=>{const r=w+m+h;a[h]&&(_[r]=a[h])}),_}function AP(a){return`${a.protocol}:${a.topic}@${a.version}?`+za.stringify(jS({symKey:a.symKey},qS(a.relay)))}var $S=Object.defineProperty,WS=Object.defineProperties,VS=Object.getOwnPropertyDescriptors,q0=Object.getOwnPropertySymbols,KS=Object.prototype.hasOwnProperty,GS=Object.prototype.propertyIsEnumerable,$0=(a,m,w)=>m in a?$S(a,m,{enumerable:!0,configurable:!0,writable:!0,value:w}):a[m]=w,JS=(a,m)=>{for(var w in m||(m={}))KS.call(m,w)&&$0(a,w,m[w]);if(q0)for(var w of q0(m))GS.call(m,w)&&$0(a,w,m[w]);return a},QS=(a,m)=>WS(a,VS(m));function Fi(a){const m=[];return a.forEach(w=>{const[_,h]=w.split(":");m.push(`${_}:${h}`)}),m}function YS(a){const m=[];return Object.values(a).forEach(w=>{m.push(...Fi(w.accounts))}),m}function XS(a,m){const w=[];return Object.values(a).forEach(_=>{Fi(_.accounts).includes(m)&&w.push(..._.methods)}),w}function ZS(a,m){const w=[];return Object.values(a).forEach(_=>{Fi(_.accounts).includes(m)&&w.push(..._.events)}),w}function EP(a,m){const w=lC(a,m);if(w)throw new Error(w.message);const _={};for(const[h,r]of Object.entries(a))_[h]={methods:r.methods,events:r.events,chains:r.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return _}function vm(a){return a.includes(":")}function eC(a){return vm(a)?a.split(":")[0]:a}function mm(a){var m,w,_;const h={};if(!Cd(a))return h;for(const[r,s]of Object.entries(a)){const i=vm(r)?[r]:s.chains,f=s.methods||[],e=s.events||[],l=eC(r);h[l]=QS(JS({},h[l]),{chains:gl(i,(m=h[l])==null?void 0:m.chains),methods:gl(f,(w=h[l])==null?void 0:w.methods),events:gl(e,(_=h[l])==null?void 0:_.events)})}return h}const tC={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},rC={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function en(a,m){const{message:w,code:_}=rC[a];return{message:m?`${w} ${m}`:w,code:_}}function xi(a,m){const{message:w,code:_}=tC[a];return{message:m?`${w} ${m}`:w,code:_}}function uu(a,m){return Array.isArray(a)?typeof m<"u"&&a.length?a.every(m):!0:!1}function Cd(a){return Object.getPrototypeOf(a)===Object.prototype&&Object.keys(a).length}function Rn(a){return typeof a>"u"}function or(a,m){return m&&Rn(a)?!0:typeof a=="string"&&!!a.trim().length}function kd(a,m){return m&&Rn(a)?!0:typeof a=="number"&&!isNaN(a)}function SP(a,m){const{requiredNamespaces:w}=m,_=Object.keys(a.namespaces),h=Object.keys(w);let r=!0;return Pn(h,_)?(_.forEach(s=>{const{accounts:i,methods:f,events:e}=a.namespaces[s],l=Fi(i),n=w[s];(!Pn(lm(s,n),l)||!Pn(n.methods,f)||!Pn(n.events,e))&&(r=!1)}),r):!1}function bs(a){return or(a,!1)&&a.includes(":")?a.split(":").length===2:!1}function nC(a){if(or(a,!1)&&a.includes(":")){const m=a.split(":");if(m.length===3){const w=m[0]+":"+m[1];return!!m[2]&&bs(w)}}return!1}function CP(a){if(or(a,!1))try{return typeof new URL(a)<"u"}catch{return!1}return!1}function kP(a){var m;return(m=a?.proposer)==null?void 0:m.publicKey}function OP(a){return a?.topic}function PP(a,m){let w=null;return or(a?.publicKey,!1)||(w=en("MISSING_OR_INVALID",`${m} controller public key should be a string`)),w}function W0(a){let m=!0;return uu(a)?a.length&&(m=a.every(w=>or(w,!1))):m=!1,m}function iC(a,m,w){let _=null;return uu(m)&&m.length?m.forEach(h=>{_||bs(h)||(_=xi("UNSUPPORTED_CHAINS",`${w}, chain ${h} should be a string and conform to "namespace:chainId" format`))}):bs(a)||(_=xi("UNSUPPORTED_CHAINS",`${w}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),_}function aC(a,m,w){let _=null;return Object.entries(a).forEach(([h,r])=>{if(_)return;const s=iC(h,lm(h,r),`${m} ${w}`);s&&(_=s)}),_}function oC(a,m){let w=null;return uu(a)?a.forEach(_=>{w||nC(_)||(w=xi("UNSUPPORTED_ACCOUNTS",`${m}, account ${_} should be a string and conform to "namespace:chainId:address" format`))}):w=xi("UNSUPPORTED_ACCOUNTS",`${m}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),w}function sC(a,m){let w=null;return Object.values(a).forEach(_=>{if(w)return;const h=oC(_?.accounts,`${m} namespace`);h&&(w=h)}),w}function uC(a,m){let w=null;return W0(a?.methods)?W0(a?.events)||(w=xi("UNSUPPORTED_EVENTS",`${m}, events should be an array of strings or empty array for no events`)):w=xi("UNSUPPORTED_METHODS",`${m}, methods should be an array of strings or empty array for no methods`),w}function ym(a,m){let w=null;return Object.values(a).forEach(_=>{if(w)return;const h=uC(_,`${m}, namespace`);h&&(w=h)}),w}function TP(a,m,w){let _=null;if(a&&Cd(a)){const h=ym(a,m);h&&(_=h);const r=aC(a,m,w);r&&(_=r)}else _=en("MISSING_OR_INVALID",`${m}, ${w} should be an object with data`);return _}function lC(a,m){let w=null;if(a&&Cd(a)){const _=ym(a,m);_&&(w=_);const h=sC(a,m);h&&(w=h)}else w=en("MISSING_OR_INVALID",`${m}, namespaces should be an object with data`);return w}function fC(a){return or(a.protocol,!0)}function MP(a,m){let w=!1;return m&&!a?w=!0:a&&uu(a)&&a.length&&a.forEach(_=>{w=fC(_)}),w}function IP(a){return typeof a=="number"}function DP(a){return typeof a<"u"&&typeof a!==null}function BP(a){return!(!a||typeof a!="object"||!a.code||!kd(a.code,!1)||!a.message||!or(a.message,!1))}function RP(a){return!(Rn(a)||!or(a.method,!1))}function NP(a){return!(Rn(a)||Rn(a.result)&&Rn(a.error)||!kd(a.id,!1)||!or(a.jsonrpc,!1))}function LP(a){return!(Rn(a)||!or(a.name,!1))}function UP(a,m){return!(!bs(m)||!YS(a).includes(m))}function FP(a,m,w){return or(w,!1)?XS(a,m).includes(w):!1}function jP(a,m,w){return or(w,!1)?ZS(a,m).includes(w):!1}function HP(a,m,w){let _=null;const h=cC(a),r=dC(m),s=Object.keys(h),i=Object.keys(r),f=V0(Object.keys(a)),e=V0(Object.keys(m)),l=f.filter(n=>!e.includes(n));return l.length&&(_=en("NON_CONFORMING_NAMESPACES",`${w} namespaces keys don't satisfy requiredNamespaces. + Required: ${l.toString()} + Received: ${Object.keys(m).toString()}`)),Pn(s,i)||(_=en("NON_CONFORMING_NAMESPACES",`${w} namespaces chains don't satisfy required namespaces. + Required: ${s.toString()} + Approved: ${i.toString()}`)),Object.keys(m).forEach(n=>{if(!n.includes(":")||_)return;const t=Fi(m[n].accounts);t.includes(n)||(_=en("NON_CONFORMING_NAMESPACES",`${w} namespaces accounts don't satisfy namespace accounts for ${n} + Required: ${n} + Approved: ${t.toString()}`))}),s.forEach(n=>{_||(Pn(h[n].methods,r[n].methods)?Pn(h[n].events,r[n].events)||(_=en("NON_CONFORMING_NAMESPACES",`${w} namespaces events don't satisfy namespace events for ${n}`)):_=en("NON_CONFORMING_NAMESPACES",`${w} namespaces methods don't satisfy namespace methods for ${n}`))}),_}function cC(a){const m={};return Object.keys(a).forEach(w=>{var _;w.includes(":")?m[w]=a[w]:(_=a[w].chains)==null||_.forEach(h=>{m[h]={methods:a[w].methods,events:a[w].events}})}),m}function V0(a){return[...new Set(a.map(m=>m.includes(":")?m.split(":")[0]:m))]}function dC(a){const m={};return Object.keys(a).forEach(w=>{w.includes(":")?m[w]=a[w]:Fi(a[w].accounts)?.forEach(h=>{m[h]={accounts:a[w].accounts.filter(r=>r.includes(`${h}:`)),methods:a[w].methods,events:a[w].events}})}),m}function zP(a,m){return kd(a,!1)&&a<=m.max&&a>=m.min}var gm="eip155",hC="store",bm="requestedChains",Jf="wallet_addEthereumChain",_t,oa,Bo,Qf,Od,_m,Ro,Yf,Xf,wm,_s,Pd,oi,ra,ws,Td,xs,Md,As,Id,pC=class extends C6{constructor(a){super({...a,options:{isNewChainsStale:!0,...a.options}}),tr(this,Bo),tr(this,Od),tr(this,Ro),tr(this,Xf),tr(this,_s),tr(this,oi),tr(this,ws),tr(this,xs),tr(this,As),xt(this,"id","walletConnect"),xt(this,"name","WalletConnect"),xt(this,"ready",!0),tr(this,_t,void 0),tr(this,oa,void 0),xt(this,"onAccountsChanged",m=>{m.length===0?this.emit("disconnect"):this.emit("change",{account:fn(m[0])})}),xt(this,"onChainChanged",m=>{const w=Number(m),_=this.isChainUnsupported(w);this.emit("change",{chain:{id:w,unsupported:_}})}),xt(this,"onDisconnect",()=>{kt(this,oi,ra).call(this,[]),this.emit("disconnect")}),xt(this,"onDisplayUri",m=>{this.emit("message",{type:"display_uri",data:m})}),xt(this,"onConnect",()=>{this.emit("connect",{})}),kt(this,Bo,Qf).call(this)}async connect({chainId:a,pairingTopic:m}={}){try{let w=a;if(!w){const l=this.storage?.getItem(hC)?.state?.data?.chain?.id;l&&!this.isChainUnsupported(l)?w=l:w=this.chains[0]?.id}if(!w)throw new Error("No chains found on connector.");const _=await this.getProvider();kt(this,Xf,wm).call(this);const h=kt(this,Ro,Yf).call(this);if(_.session&&h&&await _.disconnect(),!_.session||h){const e=this.chains.filter(l=>l.id!==w).map(l=>l.id);this.emit("message",{type:"connecting"}),await _.connect({pairingTopic:m,chains:[w],optionalChains:e.length?e:void 0}),kt(this,oi,ra).call(this,this.chains.map(({id:l})=>l))}const r=await _.enable(),s=fn(r[0]),i=await this.getChainId(),f=this.isChainUnsupported(i);return{account:s,chain:{id:i,unsupported:f}}}catch(w){throw/user rejected/i.test(w?.message)?new fr(w):w}}async disconnect(){const a=await this.getProvider();try{await a.disconnect()}catch(m){if(!/No matching key/i.test(m.message))throw m}finally{kt(this,_s,Pd).call(this),kt(this,oi,ra).call(this,[])}}async getAccount(){const{accounts:a}=await this.getProvider();return fn(a[0])}async getChainId(){const{chainId:a}=await this.getProvider();return a}async getProvider({chainId:a}={}){return bt(this,_t)||await kt(this,Bo,Qf).call(this),a&&await this.switchChain(a),bt(this,_t)}async getWalletClient({chainId:a}={}){const[m,w]=await Promise.all([this.getProvider({chainId:a}),this.getAccount()]),_=this.chains.find(h=>h.id===a);if(!m)throw new Error("provider is required.");return mv({account:w,chain:_,transport:Z6(m)})}async isAuthorized(){try{const[a,m]=await Promise.all([this.getAccount(),this.getProvider()]),w=kt(this,Ro,Yf).call(this);if(!a)return!1;if(w&&m.session){try{await m.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(a){const m=this.chains.find(w=>w.id===a);if(!m)throw new pn(new Error("chain not found on connector."));try{const w=await this.getProvider(),_=kt(this,xs,Md).call(this),h=kt(this,As,Id).call(this);if(!_.includes(a)&&h.includes(Jf)){await w.request({method:Jf,params:[{chainId:it(m.id),blockExplorerUrls:[m.blockExplorers?.default?.url],chainName:m.name,nativeCurrency:m.nativeCurrency,rpcUrls:[...m.rpcUrls.default.http]}]});const s=kt(this,ws,Td).call(this);s.push(a),kt(this,oi,ra).call(this,s)}return await w.request({method:"wallet_switchEthereumChain",params:[{chainId:it(a)}]}),m}catch(w){const _=typeof w=="string"?w:w?.message;throw/user rejected request/i.test(_)?new fr(w):new pn(w)}}};_t=new WeakMap;oa=new WeakMap;Bo=new WeakSet;Qf=async function(){return!bt(this,oa)&&typeof window<"u"&&Vc(this,oa,kt(this,Od,_m).call(this)),bt(this,oa)};Od=new WeakSet;_m=async function(){const{EthereumProvider:a,OPTIONAL_EVENTS:m,OPTIONAL_METHODS:w}=await Vs(()=>import("./index.es-cfd0772e.js"),[]),[_,...h]=this.chains.map(({id:r})=>r);if(_){const{projectId:r,showQrModal:s=!0,qrModalOptions:i,metadata:f,relayUrl:e}=this.options;Vc(this,_t,await a.init({showQrModal:s,qrModalOptions:i,projectId:r,optionalMethods:w,optionalEvents:m,chains:[_],optionalChains:h.length?h:void 0,rpcMap:Object.fromEntries(this.chains.map(l=>[l.id,l.rpcUrls.default.http[0]])),metadata:f,relayUrl:e}))}};Ro=new WeakSet;Yf=function(){if(kt(this,As,Id).call(this).includes(Jf)||!this.options.isNewChainsStale)return!1;const m=kt(this,ws,Td).call(this),w=this.chains.map(({id:h})=>h),_=kt(this,xs,Md).call(this);return _.length&&!_.some(h=>w.includes(h))?!1:!w.every(h=>m.includes(h))};Xf=new WeakSet;wm=function(){bt(this,_t)&&(kt(this,_s,Pd).call(this),bt(this,_t).on("accountsChanged",this.onAccountsChanged),bt(this,_t).on("chainChanged",this.onChainChanged),bt(this,_t).on("disconnect",this.onDisconnect),bt(this,_t).on("session_delete",this.onDisconnect),bt(this,_t).on("display_uri",this.onDisplayUri),bt(this,_t).on("connect",this.onConnect))};_s=new WeakSet;Pd=function(){bt(this,_t)&&(bt(this,_t).removeListener("accountsChanged",this.onAccountsChanged),bt(this,_t).removeListener("chainChanged",this.onChainChanged),bt(this,_t).removeListener("disconnect",this.onDisconnect),bt(this,_t).removeListener("session_delete",this.onDisconnect),bt(this,_t).removeListener("display_uri",this.onDisplayUri),bt(this,_t).removeListener("connect",this.onConnect))};oi=new WeakSet;ra=function(a){this.storage?.setItem(bm,a)};ws=new WeakSet;Td=function(){return this.storage?.getItem(bm)??[]};xs=new WeakSet;Md=function(){if(!bt(this,_t))return[];const a=bt(this,_t).session?.namespaces;return a?mm(a)[gm]?.chains?.map(_=>parseInt(_.split(":")[1]||""))??[]:[]};As=new WeakSet;Id=function(){if(!bt(this,_t))return[];const a=bt(this,_t).session?.namespaces;return a?mm(a)[gm]?.methods??[]:[]};function vC({rpc:a}){return function(m){const w=a(m);return!w||w.http===""?null:{chain:{...m,rpcUrls:{...m.rpcUrls,default:{http:[w.http]}}},rpcUrls:{http:[w.http],webSocket:w.webSocket?[w.webSocket]:void 0}}}}const mC="wallet_addEthereumChain";let yC=class{constructor(m,w){this.wagmi={},this.chains=[],this.namespace="eip155",this.disconnect=xx,this.getAccount=Fv,this.watchAccount=Tx,this.fetchBalance=Ox,this.getNetwork=jv,this.watchNetwork=Mx,this.switchNetwork=Px,this.fetchEnsName=Dx,this.fetchEnsAvatar=Ix,this.wagmi=m,this.chains=w}getWalletConnectConnector(){const m=this.wagmi.connectors.find(w=>w.id==="walletConnect");if(!m)throw new Error("WalletConnectConnector is required");return m}async connectWalletConnectProvider(m,w){return await m.getProvider(),new Promise(_=>{m.once("message",h=>{h.type==="display_uri"&&(w(h.data),_())})})}getConnectorById(m){const w=this.wagmi.connectors.find(_=>_.id===m);if(!w)throw new Error(`Connector for id ${m} was not found`);return w}getConnectors(){return this.wagmi.connectors.filter(m=>!m.id.includes("walletConnect"))}async connectWalletConnect(m,w){const _=this.getWalletConnectConnector(),h={connector:_};return w&&(h.chainId=w),Promise.all([p0(h),this.connectWalletConnectProvider(_,m)])}async connectConnector(m,w){const _={connector:this.getConnectorById(m)};return w&&(_.chainId=w),await p0(_)}isInjectedProviderInstalled(){return typeof window.ethereum<"u"}safeCheckInjectedProvider(m){var w;try{const _=String(m);return!!((w=window.ethereum)!=null&&w[_])}catch(_){return console.error(_),!1}}async getConnectedChainIds(){var m,w,_;const h=(w=(m=(await this.getWalletConnectConnector().getProvider()).signer)==null?void 0:m.session)==null?void 0:w.namespaces,r=(_=h?.[this.namespace])==null?void 0:_.methods;if(r!=null&&r.includes(mC))return"ALL";if(h){const s=[];return Object.keys(h).forEach(i=>{i.includes(this.namespace)&&s.push(...h[i].accounts)}),s?.map(i=>i.split(":")[1])}return"ALL"}};const gC="eip155",bC="https://rpc.walletconnect.com";function _C({projectId:a}){return vC({rpc:m=>{var w;return[1,3,4,5,10,42,56,69,97,100,137,280,324,420,42161,42220,43114,80001,421611,421613,1313161554,1313161555].includes(m.id)?{http:`${bC}/v1/?chainId=${gC}:${m.id}&projectId=${a}`}:{http:m.rpcUrls.default.http[0],webSocket:(w=m.rpcUrls.default.webSocket)==null?void 0:w[0]}}})}function wC({chains:a,projectId:m}){return[new pC({chains:a,options:{projectId:m,showQrModal:!1}}),new yv({chains:a,options:{shimDisconnect:!0}})]}const xC=Symbol(),K0=Object.getPrototypeOf,Zf=new WeakMap,AC=a=>a&&(Zf.has(a)?Zf.get(a):K0(a)===Object.prototype||K0(a)===Array.prototype),EC=a=>AC(a)&&a[xC]||null,G0=(a,m=!0)=>{Zf.set(a,m)},bl=a=>typeof a=="object"&&a!==null,Xr=new WeakMap,bo=new WeakSet,SC=(a=Object.is,m=(e,l)=>new Proxy(e,l),w=e=>bl(e)&&!bo.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),_=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},h=new WeakMap,r=(e,l,n=_)=>{const t=h.get(e);if(t?.[0]===l)return t[1];const o=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return G0(o,!0),h.set(e,[l,o]),Reflect.ownKeys(e).forEach(d=>{if(Object.getOwnPropertyDescriptor(o,d))return;const u=Reflect.get(e,d),c={value:u,enumerable:!0,configurable:!0};if(bo.has(u))G0(u,!1);else if(u instanceof Promise)delete c.value,c.get=()=>n(u);else if(Xr.has(u)){const[g,p]=Xr.get(u);c.value=r(g,p(),n)}Object.defineProperty(o,d,c)}),Object.preventExtensions(o)},s=new WeakMap,i=[1,1],f=e=>{if(!bl(e))throw new Error("object required");const l=s.get(e);if(l)return l;let n=i[0];const t=new Set,o=(S,C=++i[0])=>{n!==C&&(n=C,t.forEach(T=>T(S,C)))};let d=i[1];const u=(S=++i[1])=>(d!==S&&!t.size&&(d=S,g.forEach(([C])=>{const T=C[1](S);T>n&&(n=T)})),n),c=S=>(C,T)=>{const k=[...C];k[1]=[S,...k[1]],o(k,T)},g=new Map,p=(S,C)=>{if(t.size){const T=C[3](c(S));g.set(S,[C,T])}else g.set(S,[C])},v=S=>{var C;const T=g.get(S);T&&(g.delete(S),(C=T[1])==null||C.call(T))},y=S=>(t.add(S),t.size===1&&g.forEach(([T,k],M)=>{const P=T[3](c(M));g.set(M,[T,P])}),()=>{t.delete(S),t.size===0&&g.forEach(([T,k],M)=>{k&&(k(),g.set(M,[T]))})}),b=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e)),x=m(b,{deleteProperty(S,C){const T=Reflect.get(S,C);v(C);const k=Reflect.deleteProperty(S,C);return k&&o(["delete",[C],T]),k},set(S,C,T,k){const M=Reflect.has(S,C),P=Reflect.get(S,C,k);if(M&&(a(P,T)||s.has(T)&&a(P,s.get(T))))return!0;v(C),bl(T)&&(T=EC(T)||T);let N=T;if(T instanceof Promise)T.then(F=>{T.status="fulfilled",T.value=F,o(["resolve",[C],F])}).catch(F=>{T.status="rejected",T.reason=F,o(["reject",[C],F])});else{!Xr.has(T)&&w(T)&&(N=f(T));const F=!bo.has(N)&&Xr.get(N);F&&p(C,F)}return Reflect.set(S,C,N,k),o(["set",[C],T,P]),!0}});s.set(e,x);const E=[b,u,r,y];return Xr.set(x,E),Reflect.ownKeys(e).forEach(S=>{const C=Object.getOwnPropertyDescriptor(e,S);"value"in C&&(x[S]=e[S],delete C.value,delete C.writable),Object.defineProperty(b,S,C)}),x})=>[f,Xr,bo,a,m,w,_,h,r,s,i],[CC]=SC();function Pr(a={}){return CC(a)}function Qr(a,m,w){const _=Xr.get(a);let h;const r=[],s=_[3];let i=!1;const e=s(l=>{if(r.push(l),w){m(r.splice(0));return}h||(h=Promise.resolve().then(()=>{h=void 0,i&&m(r.splice(0))}))});return i=!0,()=>{i=!1,e()}}function kC(a,m){const w=Xr.get(a),[_,h,r]=w;return r(_,h(),m)}const Ct=Pr({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),fi={state:Ct,subscribe(a){return Qr(Ct,()=>a(Ct))},push(a,m){a!==Ct.view&&(Ct.view=a,m&&(Ct.data=m),Ct.history.push(a))},reset(a){Ct.view=a,Ct.history=[a]},replace(a){Ct.history.length>1&&(Ct.history[Ct.history.length-1]=a,Ct.view=a)},goBack(){if(Ct.history.length>1){Ct.history.pop();const[a]=Ct.history.slice(-1);Ct.view=a}},setData(a){Ct.data=a}},Pt={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",W3M_VERSION:"W3M_VERSION",W3M_PREFER_INJECTED_URL_FLAG:"w3mPreferInjected",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return Pt.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const a=navigator.userAgent.toLowerCase();return Pt.isMobile()&&(a.includes("iphone")||a.includes("ipad"))},isHttpUrl(a){return a.startsWith("http://")||a.startsWith("https://")},isArray(a){return Array.isArray(a)&&a.length>0},formatNativeUrl(a,m,w){if(Pt.isHttpUrl(a))return this.formatUniversalUrl(a,m,w);let _=a;_.includes("://")||(_=a.replaceAll("/","").replaceAll(":",""),_=`${_}://`),_.endsWith("/")||(_=`${_}/`),this.setWalletConnectDeepLink(_,w);const h=encodeURIComponent(m);return`${_}wc?uri=${h}`},formatUniversalUrl(a,m,w){if(!Pt.isHttpUrl(a))return this.formatNativeUrl(a,m,w);let _=a;_.endsWith("/")||(_=`${_}/`),this.setWalletConnectDeepLink(_,w);const h=encodeURIComponent(m);return`${_}wc?uri=${h}`},async wait(a){return new Promise(m=>{setTimeout(m,a)})},openHref(a,m){window.open(a,m,"noreferrer noopener")},setWalletConnectDeepLink(a,m){try{localStorage.setItem(Pt.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:a,name:m}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(a){try{const[m]=a.split("?");localStorage.setItem(Pt.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:m,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(Pt.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setWeb3ModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(Pt.W3M_VERSION,"2.7.0")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var a;const m=(a=fi.state.data)==null?void 0:a.Wallet;if(!m)throw new Error('Missing "Wallet" view data');return m},getSwitchNetworkRouterData(){var a;const m=(a=fi.state.data)==null?void 0:a.SwitchNetwork;if(!m)throw new Error('Missing "SwitchNetwork" view data');return m},isPreferInjectedFlag(){return typeof location<"u"?new URLSearchParams(location.search).has(Pt.W3M_PREFER_INJECTED_URL_FLAG):!1}};let _l;const Sr={ethereumClient:void 0,setEthereumClient(a){_l=a},client(){if(_l)return _l;throw new Error("ClientCtrl has no client set")}},OC=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),Bt=Pr({enabled:OC,userSessionId:"",events:[],connectedWalletId:void 0}),xm={state:Bt,subscribe(a){return Qr(Bt.events,()=>a(kC(Bt.events[Bt.events.length-1])))},initialize(){Bt.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(Bt.userSessionId=crypto.randomUUID())},setConnectedWalletId(a){Bt.connectedWalletId=a},click(a){if(Bt.enabled){const m={type:"CLICK",name:a.name,userSessionId:Bt.userSessionId,timestamp:Date.now(),data:a};Bt.events.push(m)}},track(a){if(Bt.enabled){const m={type:"TRACK",name:a.name,userSessionId:Bt.userSessionId,timestamp:Date.now(),data:a};Bt.events.push(m)}},view(a){if(Bt.enabled){const m={type:"VIEW",name:a.name,userSessionId:Bt.userSessionId,timestamp:Date.now(),data:a};Bt.events.push(m)}}},Zt=Pr({selectedChain:void 0,chains:void 0,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,isPreferInjected:!1}),Cr={state:Zt,subscribe(a){return Qr(Zt,()=>a(Zt))},setChains(a){Zt.chains=a},getSelectedChain(){const a=Sr.client().getNetwork().chain;return a&&(Zt.selectedChain=a),Zt.selectedChain},setSelectedChain(a){Zt.selectedChain=a},setIsCustomDesktop(a){Zt.isCustomDesktop=a},setIsCustomMobile(a){Zt.isCustomMobile=a},setIsDataLoaded(a){Zt.isDataLoaded=a},setIsUiLoaded(a){Zt.isUiLoaded=a},setIsPreferInjected(a){Zt.isPreferInjected=a}},_o=Pr({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,tokenContracts:void 0,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),Kr={state:_o,subscribe(a){return Qr(_o,()=>a(_o))},setConfig(a){var m,w;xm.initialize(),Cr.setIsCustomMobile(!!((m=a.mobileWallets)!=null&&m.length)),Cr.setIsCustomDesktop(!!((w=a.desktopWallets)!=null&&w.length)),Cr.setChains(Sr.client().chains),Cr.setIsPreferInjected(Sr.client().isInjectedProviderInstalled()&&Pt.isPreferInjectedFlag()),a.defaultChain&&Cr.setSelectedChain(a.defaultChain),Pt.setWeb3ModalVersionInStorage(),Object.assign(_o,a)}},PC="eip155",TC="https://rpc.walletconnect.com",MC={async getIdentity(a,m){const{projectId:w}=Kr.state,_=`${PC}:${m}`,h=`${TC}/v1/identity/${a}?chainId=${_}&projectId=${w}`;return(await fetch(h)).json()}},dt=Pr({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),IC={state:dt,subscribe(a){return Qr(dt,()=>a(dt))},getAccount(){const a=Sr.client().getAccount();dt.address=a.address,dt.isConnected=a.isConnected},async fetchProfile(a,m){var w;try{dt.profileLoading=!0,dt.profileName=null,dt.profileAvatar=null;const _=m??dt.address,h=1,r=(w=Cr.state.chains)==null?void 0:w.find(s=>s.id===h);if(_&&r){try{const s=await MC.getIdentity(_,h);dt.profileName=s.name,dt.profileAvatar=s.avatar}catch{const s=await Sr.client().fetchEnsName({address:_,chainId:h});if(dt.profileName=s,s){const i=await Sr.client().fetchEnsAvatar({name:s,chainId:h});dt.profileAvatar=i}}dt.profileAvatar&&await a(dt.profileAvatar)}}finally{dt.profileLoading=!1}},async fetchBalance(a){try{const{chain:m}=Sr.client().getNetwork(),{tokenContracts:w}=Kr.state;let _;m&&w&&(_=w[m.id]),dt.balanceLoading=!0;const h=a??dt.address;if(h){const r=await Sr.client().fetchBalance({address:h,token:_});dt.balance={amount:r.formatted,symbol:r.symbol}}}finally{dt.balanceLoading=!1}},setAddress(a){dt.address=a},setIsConnected(a){dt.isConnected=a},resetBalance(){dt.balance=void 0},resetAccount(){dt.address=void 0,dt.isConnected=!1,dt.profileName=void 0,dt.profileAvatar=void 0,dt.balance=void 0}},ec="https://explorer-api.walletconnect.com";async function wo(a,m){const w=new URL(a,ec);return w.searchParams.append("projectId",Kr.state.projectId),Object.entries(m).forEach(([_,h])=>{h&&w.searchParams.append(_,String(h))}),(await fetch(w)).json()}const Yr={async getDesktopListings(a){return wo("/w3m/v1/getDesktopListings",a)},async getMobileListings(a){return wo("/w3m/v1/getMobileListings",a)},async getInjectedListings(a){return wo("/w3m/v1/getInjectedListings",a)},async getAllListings(a){return wo("/w3m/v1/getAllListings",a)},getWalletImageUrl(a){return`${ec}/w3m/v1/getWalletImage/${a}?projectId=${Kr.state.projectId}`},getAssetImageUrl(a){return`${ec}/w3m/v1/getAssetImage/${a}?projectId=${Kr.state.projectId}`}};var DC=Object.defineProperty,J0=Object.getOwnPropertySymbols,BC=Object.prototype.hasOwnProperty,RC=Object.prototype.propertyIsEnumerable,Q0=(a,m,w)=>m in a?DC(a,m,{enumerable:!0,configurable:!0,writable:!0,value:w}):a[m]=w,NC=(a,m)=>{for(var w in m||(m={}))BC.call(m,w)&&Q0(a,w,m[w]);if(J0)for(var w of J0(m))RC.call(m,w)&&Q0(a,w,m[w]);return a};const Y0=Pt.isMobile(),er=Pr({wallets:{listings:[],total:0,page:1},injectedWallets:[],search:{listings:[],total:0,page:1},recomendedWallets:[]}),$P={state:er,async getRecomendedWallets(){const{explorerRecommendedWalletIds:a,explorerExcludedWalletIds:m}=Kr.state;if(a==="NONE"||m==="ALL"&&!a)return er.recomendedWallets;if(Pt.isArray(a)){const w={recommendedIds:a.join(",")},{listings:_}=await Yr.getAllListings(w),h=Object.values(_);h.sort((r,s)=>{const i=a.indexOf(r.id),f=a.indexOf(s.id);return i-f}),er.recomendedWallets=h}else{const w=Pt.isArray(m),_={page:1,entries:Pt.RECOMMENDED_WALLET_AMOUNT,version:2,excludedIds:w?m.join(","):void 0},{listings:h}=Y0?await Yr.getMobileListings(_):await Yr.getDesktopListings(_);er.recomendedWallets=Object.values(h)}return er.recomendedWallets},async getWallets(a){const m=NC({},a),{explorerRecommendedWalletIds:w,explorerExcludedWalletIds:_}=Kr.state,{recomendedWallets:h}=er;if(_==="ALL")return er.wallets;h.length?m.excludedIds=h.map(n=>n.id).join(","):Pt.isArray(w)&&(m.excludedIds=w.join(",")),Pt.isArray(_)&&(m.excludedIds=[m.excludedIds,_].filter(Boolean).join(","));const{page:r,search:s}=a,{listings:i,total:f}=Y0?await Yr.getMobileListings(m):await Yr.getDesktopListings(m),e=Object.values(i),l=s?"search":"wallets";return er[l]={listings:[...er[l].listings,...e],total:f,page:r??1},{listings:e,total:f}},async getInjectedWallets(){const{listings:a}=await Yr.getInjectedListings({}),m=Object.values(a);return er.injectedWallets=m,er.injectedWallets},getWalletImageUrl(a){return Yr.getWalletImageUrl(a)},getAssetImageUrl(a){return Yr.getAssetImageUrl(a)},resetSearch(){er.search={listings:[],total:0,page:1}}},ei=Pr({pairingEnabled:!1,pairingUri:"",pairingError:!1}),wl={state:ei,subscribe(a){return Qr(ei,()=>a(ei))},setPairingUri(a){ei.pairingUri=a},setPairingError(a){ei.pairingError=a},setPairingEnabled(a){ei.pairingEnabled=a}},ti=Pr({open:!1}),xl={state:ti,subscribe(a){return Qr(ti,()=>a(ti))},async open(a){return new Promise(m=>{const{isUiLoaded:w,isDataLoaded:_,isPreferInjected:h,selectedChain:r}=Cr.state,{isConnected:s}=IC.state,{enableNetworkView:i}=Kr.state;if(wl.setPairingEnabled(!0),a!=null&&a.route)fi.reset(a.route);else if(s)fi.reset("Account");else if(i)fi.reset("SelectNetwork");else if(h){Sr.client().connectConnector("injected",r?.id).catch(e=>console.error(e)),m();return}else fi.reset("ConnectWallet");const{pairingUri:f}=wl.state;if(w&&_&&(f||s))ti.open=!0,m();else{const e=setInterval(()=>{const l=Cr.state,n=wl.state;l.isUiLoaded&&l.isDataLoaded&&(n.pairingUri||s)&&(clearInterval(e),ti.open=!0,m())},200)}})},close(){ti.open=!1}};var LC=Object.defineProperty,X0=Object.getOwnPropertySymbols,UC=Object.prototype.hasOwnProperty,FC=Object.prototype.propertyIsEnumerable,Z0=(a,m,w)=>m in a?LC(a,m,{enumerable:!0,configurable:!0,writable:!0,value:w}):a[m]=w,jC=(a,m)=>{for(var w in m||(m={}))UC.call(m,w)&&Z0(a,w,m[w]);if(X0)for(var w of X0(m))FC.call(m,w)&&Z0(a,w,m[w]);return a};function HC(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const Yi=Pr({themeMode:HC()?"dark":"light"}),e2={state:Yi,subscribe(a){return Qr(Yi,()=>a(Yi))},setThemeConfig(a){const{themeMode:m,themeVariables:w}=a;m&&(Yi.themeMode=m),w&&(Yi.themeVariables=jC({},w))}},kn=Pr({open:!1,message:"",variant:"success"}),WP={state:kn,subscribe(a){return Qr(kn,()=>a(kn))},openToast(a,m){kn.open=!0,kn.message=a,kn.variant=m},closeToast(){kn.open=!1}};class zC{constructor(m,w){this.openModal=xl.open,this.closeModal=xl.close,this.subscribeModal=xl.subscribe,this.setTheme=e2.setThemeConfig,this.setDefaultChain=Cr.setSelectedChain,this.subscribeEvents=xm.subscribe,e2.setThemeConfig(m),Sr.setEthereumClient(w),Kr.setConfig(m),this.initUi()}async initUi(){if(typeof window<"u"){await Vs(()=>import("./index-23526dab.js"),["assets/index-23526dab.js","assets/if-defined-093fe0e9.js"]);const m=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",m),Cr.setIsUiLoaded(!0)}}}const Dd="2aca272d18deb10ff748260da5f78bfd",Bd=[d6,A5,h6,x5,w5,_5],{publicClient:qC}=fx(Bd,[_C({projectId:Dd})]),$C=wx({autoConnect:!0,connectors:wC({web3chains:Bd,version:1,projectId:Dd}),publicClient:qC}),tc=new yC($C,Bd);new zC({projectId:Dd,walletImages:{safe:"https://pbs.twimg.com/profile_images/1566773491764023297/IvmCdGnM_400x400.jpg"}},tc);var WC=function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("div",[w("div",{staticStyle:{"text-align":"right",margin:"10px"}},[w("w3m-core-button")],1)])},VC=[];const KC={data(){return{connected:!1,web3:null,networkId:"",contractAddrMap:{5:"0x5e2200656e30d04c936fc0af995E6c51F6EAA96B",5611:"0x304eBa9f694f5a44Ddaa48aa4481Bf08AB0bE09B"},contractABI:[{inputs:[{internalType:"address",name:"wallet",type:"address"},{internalType:"uint256",name:"feeRate",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"bytes",name:"message",type:"bytes"}],name:"Load",outputs:[{internalType:"bytes",name:"recoverID",type:"bytes"},{internalType:"bytes",name:"web3Key",type:"bytes"},{internalType:"bytes",name:"backendKey",type:"bytes"},{internalType:"bytes",name:"web3PublicKey",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"Meta",outputs:[{internalType:"uint256",name:"feeRate",type:"uint256"},{internalType:"uint256",name:"registTotal",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"bytes",name:"message",type:"bytes"},{internalType:"bytes",name:"web3PublicKey",type:"bytes"}],name:"Recover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"recoverID",type:"bytes"},{internalType:"bytes",name:"web3Key",type:"bytes"},{internalType:"bytes",name:"backendKey",type:"bytes"},{internalType:"bytes",name:"web3PublicKey",type:"bytes"}],name:"Register",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}]}},mounted(){let a=this;tc.watchAccount(function(m){a.onAccount(m)})},methods:{async onAccount(a){let m=this;const w=a.address;if(a.address!==void 0){const _=a.connector.options.getProvider(),h=new qt(_),r=await h.eth.net.getId();if(console.log("wallet connect successed: ",r,a,h,_),this.contractAddrMap[r]===void 0){this.$Modal.error({title:"unsupport network",content:"Currently supported chainId list: "+Object.keys(this.contractAddrMap)}),tc.disconnect();return}this.web3=h,this.networkId=r,this.$parent.onAccountChanged("connect",this.networkId,w),a.connector.on("change",s=>{console.log("event change: ",s),m.web3Reload("change")}),a.connector.on("disconnect",s=>{console.log("event disconnect: ",s),m.web3Reload("disconnect")}),a.connector.on("error",s=>{console.log("event error: ",s),m.web3Reload("error")})}else this.web3Reload("disconnect")},web3Reload(a){this.web3=null,this.networkId="",this.$parent.onAccountChanged(a,this.networkId,"")},getWeb3(){return this.web3},async Execute(a,m,w,_,h,r,s){console.log(this.contractAddrMap[this.networkId],this.contractABI,a,m,w,_,h);let f=new this.web3.eth.Contract(this.contractABI,this.contractAddrMap[this.networkId]).methods[m],e=this,l={};if(h.length===0?l=f():l=f(...h),_!==void 0&&_>0&&(_=qt.utils.toBN(qt.utils.toWei(_+"","ether"))),a==="call")await l.call({from:w},function(n,t){n?(console.log("Execute failed: ",n.message),s?.(n.message)):(console.log("Execute successed: ",t),r?.(t))});else if(a==="send"){const n=await l.estimateGas({from:w,value:_});console.log("gasLimit",n),await l.send({from:w,value:_,gasLimit:n}).on("transactionHash",function(t){console.log("transactionHash:",t),e.$Message.success("web3Execute run succesed: ",t)}).on("confirmation",function(t,o){}).on("receipt",function(t){console.log("Execute successed: ",t),r?.(t)}).on("error",function(t){console.log("Execute failed: ",t),s?.(t.message)})}}}},t2={};var GC=ki(KC,WC,VC,!1,JC,"45ee9560",null,null);function JC(a){for(let m in t2)this[m]=t2[m]}const QC=function(){return GC.exports}();var YC=function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("div",[w("div",{directives:[{name:"show",rawName:"v-show",value:!a.showSpin,expression:"!showSpin"}]},[w("WalletPanel",{ref:"walletPanel",attrs:{onAccountChanged:a.onAccountChanged}}),a.showTOTP?w("TOTPPanel",{ref:"totpPanel",attrs:{getSelf:a.getSelf}}):a._e(),w("HomePanel",{directives:[{name:"show",rawName:"v-show",value:a.showHomePanel&&!a.showTOTP,expression:"showHomePanel && !showTOTP"}],ref:"privatePanel",attrs:{getSelf:a.getSelf}}),w("CryptoPanel",{directives:[{name:"show",rawName:"v-show",value:a.showPanels.cryptoPanel&&!a.showTOTP,expression:"showPanels['cryptoPanel'] && !showTOTP"}],ref:"cryptoPanel",attrs:{getSelf:a.getSelf}})],1),a.showSpin?w("Spin",{attrs:{size:"large",fix:""}}):a._e()],1)},XC=[];const ZC={components:{TOTPPanel:C4,WalletPanel:QC,HomePanel:c5,CryptoPanel:y5},inject:["reload"],data(){return{connect:!1,publicKey:"",walletAddress:"",showTOTP:!1,justVerify:!1,showHomePanel:!0,showPanels:{},panelName:"",backendPublicKey:"",afterVerifyFunc:null,apiPrefix:"",loadRandom:"",loadSignature:"",showSpin:!1}},methods:{getSelf(){return this},enableSpin(a){this.showSpin=a},init(){let a=this;const m=new Go;this.enableSpin(!0),WebAssembly.instantiateStreaming(fetch("selfcrypto.wasm"),m.importObject).then(function(w){console.log("load wasm successed: ",w),m.run(w.instance),a.loadRandom=a.generatekey(32,!1),a.signTypedData(a.loadRandom,function(_){console.log("sign successed: ",_),a.loadSignature=_,a.load()})})},onAccountChanged(a,m,w){a==="connect"?(this.connect=!0,this.modelAuthID=w,this.walletAddress=w,this.init()):a==="disconnect"?(this.connect=!1,this.walletAddress=""):window.location.reload()},load(){let a=this,m=function(_,h,r,s){let i={};Load(a.walletAddress,s,h,function(f){i.data=JSON.parse(f),i.data.Data!==null&&i.data.Data!==void 0&&i.data.Data!=={}?(a.enableSpin(!1),a.backendPublicKey=i.data.Data,console.log("selfcrypto load from backend successed: ",i.data.Data),a.$refs.privatePanel.init(_,r,s)):a.wasmCallback("Load",i.data.Error,!1)})};var w=[];w.push(this.loadSignature),w.push(qt.utils.asciiToHex(this.loadRandom)),a.$refs.walletPanel.Execute("call","Load",a.walletAddress,0,w,function(_){console.log("selfcrypto load from contract successed: ",_),a.$refs.privatePanel.hasRegisted=!0;let h=qt.utils.hexToAscii(_.web3Key),r=qt.utils.hexToAscii(_.recoverID),s=qt.utils.hexToAscii(_.backendKey),i=qt.utils.hexToAscii(_.web3PublicKey);m(r,s,h,i)},function(_){a.$Message.error("selfCrypto load from contract failed"),m("","","","")})},getWalletAddress(){return this.walletAddress},getWallet(){return this.$refs.walletPanel},switchPanel(a,m,w,_){if(a==="back"||a===""){this.showPanels[m]=!1,this.showHomePanel=!this.showHomePanel;return}this.panelName=m,this.afterVerifyFunc=_;let h=this;this.showTOTP=!0,this.$nextTick(function(){h.$refs.totpPanel.init(a,h.backendPublicKey,w)})},afterVerify(a,m,w){if(this.showTOTP=!1,a===!0){if(console.log("verify successed: ",this.panelName,w),this.afterVerifyFunc!==null&&this.afterVerifyFunc!==void 0){this.afterVerifyFunc(m);return}this.panelName===""&&w!==void 0&&(this.panelName=w),this.showHomePanel=!this.showHomePanel,this.showPanels[this.panelName]=!0,this.$refs[this.panelName].init(m)}},signTypedData(a,m){var w=[{type:"string",name:"Message",value:a}];let _=this,h=this.getWalletAddress();var r=[w,h],s="eth_signTypedData";this.$refs.walletPanel.getWeb3().currentProvider.sendAsync({method:s,params:r,from:h},function(i,f){if(i||f.error){_.$Message.error("sign message failed at web3: ",a,i),console.log("sign message failed at web3: ",a,i),_.enableSpin(!1);return}m?.(f.result)})},generatekey(a,m){let w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";m===!0&&(w="0123456789");let _="";for(var h=0;h<a;h++){let r=Math.floor(Math.random()*w.length);_+=w.substring(r,r+1)}return _},wasmCallback(a,m,w){w!==void 0&&this.enableSpin(w),m===void 0||m===""?this.$Message.success("exec wasm method successed: "+a):(console.log("exec wasm method failed: ",a+", ",m),this.$Message.error("exec wasm method failed: "+a+", "+m))},httpGet(a,m,w){this.$axios.get(this.apiPrefix+a).then(function(_){m?.(_)}).catch(function(_){console.log(_)})},httpPost(a,m,w,_){this.$axios.post(this.apiPrefix+a,m).then(function(h){w?.(h)}).catch(function(h){console.log(h)})}}},r2={};var ek=ki(ZC,YC,XC,!1,tk,null,null,null);function tk(a){for(let m in r2)this[m]=r2[m]}const rk=function(){return ek.exports}();ht.use(r6);const nk=[{path:"/",name:"Index",component:rk}],ik=new r6({routes:nk});var Am={exports:{}},Em={exports:{}};/*! + * tiny-cookie - A tiny cookie manipulation plugin + * https://github.com/Alex1990/tiny-cookie + * Under the MIT license | (c) Alex Chao + */(function(a,m){(function(w,_){a.exports=_()})(rt,function(){function w(s,i,f){if(i===void 0)return w.get(s);i===null?w.remove(s):w.set(s,i,f)}w.enabled=function(){var s="__test_key",i;return document.cookie=s+"=1",i=!!document.cookie,i&&w.remove(s),i},w.get=function(s,i){if(typeof s!="string"||!s)return null;s="(?:^|; )"+_(s)+"(?:=([^;]*?))?(?:;|$)";var f=new RegExp(s),e=f.exec(document.cookie);return e!==null?i?e[1]:decodeURIComponent(e[1]):null},w.getRaw=function(s){return w.get(s,!0)},w.set=function(s,i,f,e){f!==!0&&(e=f,f=!1),e=h(e||{});var l=s+"="+(f?i:encodeURIComponent(i))+e;document.cookie=l},w.setRaw=function(s,i,f){w.set(s,i,!0,f)},w.remove=function(s){w.set(s,"a",{expires:new Date})};function _(s){return s.replace(/[.*+?^$|[\](){}\\-]/g,"\\$&")}function h(s){var i="";for(var f in s)if(s.hasOwnProperty(f)){if(f==="expires"){var e=s[f];typeof e!="object"&&(e+=typeof e=="number"?"D":"",e=r(e)),s[f]=e.toUTCString()}if(f==="secure"){s[f]&&(i+=";"+f);continue}i+=";"+f+"="+s[f]}return s.hasOwnProperty("path")||(i+=";path=/"),i}function r(s){var i=new Date,f=s.charAt(s.length-1),e=parseInt(s,10);switch(f){case"Y":i.setFullYear(i.getFullYear()+e);break;case"M":i.setMonth(i.getMonth()+e);break;case"D":i.setDate(i.getDate()+e);break;case"h":i.setHours(i.getHours()+e);break;case"m":i.setMinutes(i.getMinutes()+e);break;case"s":i.setSeconds(i.getSeconds()+e);break;default:i=new Date(s)}return i}return w})})(Em);var ak=Em.exports;(function(a,m){(function(){Number.isInteger=Number.isInteger||function(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h};var w=ak,_={install:function(h){h.prototype.$cookie=this,h.cookie=this},set:function(h,r,s){var i=s;return Number.isInteger(s)&&(i={expires:s}),w.set(h,r,i)},get:function(h){return w.get(h)},delete:function(h,r){var s={expires:-1};r!==void 0&&(s=Object.assign(r,s)),this.set(h,"",s)}};a.exports=_})()})(Am);var ok=Am.exports;const sk=zn(ok);var Rd={exports:{}},Sm=function(m,w){return function(){for(var h=new Array(arguments.length),r=0;r<h.length;r++)h[r]=arguments[r];return m.apply(w,h)}},uk=Sm,Jn=Object.prototype.toString;function Nd(a){return Jn.call(a)==="[object Array]"}function rc(a){return typeof a>"u"}function lk(a){return a!==null&&!rc(a)&&a.constructor!==null&&!rc(a.constructor)&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function fk(a){return Jn.call(a)==="[object ArrayBuffer]"}function ck(a){return typeof FormData<"u"&&a instanceof FormData}function dk(a){var m;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?m=ArrayBuffer.isView(a):m=a&&a.buffer&&a.buffer instanceof ArrayBuffer,m}function hk(a){return typeof a=="string"}function pk(a){return typeof a=="number"}function Cm(a){return a!==null&&typeof a=="object"}function No(a){if(Jn.call(a)!=="[object Object]")return!1;var m=Object.getPrototypeOf(a);return m===null||m===Object.prototype}function vk(a){return Jn.call(a)==="[object Date]"}function mk(a){return Jn.call(a)==="[object File]"}function yk(a){return Jn.call(a)==="[object Blob]"}function km(a){return Jn.call(a)==="[object Function]"}function gk(a){return Cm(a)&&km(a.pipe)}function bk(a){return typeof URLSearchParams<"u"&&a instanceof URLSearchParams}function _k(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function wk(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ld(a,m){if(!(a===null||typeof a>"u"))if(typeof a!="object"&&(a=[a]),Nd(a))for(var w=0,_=a.length;w<_;w++)m.call(null,a[w],w,a);else for(var h in a)Object.prototype.hasOwnProperty.call(a,h)&&m.call(null,a[h],h,a)}function nc(){var a={};function m(h,r){No(a[r])&&No(h)?a[r]=nc(a[r],h):No(h)?a[r]=nc({},h):Nd(h)?a[r]=h.slice():a[r]=h}for(var w=0,_=arguments.length;w<_;w++)Ld(arguments[w],m);return a}function xk(a,m,w){return Ld(m,function(h,r){w&&typeof h=="function"?a[r]=uk(h,w):a[r]=h}),a}function Ak(a){return a.charCodeAt(0)===65279&&(a=a.slice(1)),a}var Xt={isArray:Nd,isArrayBuffer:fk,isBuffer:lk,isFormData:ck,isArrayBufferView:dk,isString:hk,isNumber:pk,isObject:Cm,isPlainObject:No,isUndefined:rc,isDate:vk,isFile:mk,isBlob:yk,isFunction:km,isStream:gk,isURLSearchParams:bk,isStandardBrowserEnv:wk,forEach:Ld,merge:nc,extend:xk,trim:_k,stripBOM:Ak},ri=Xt;function n2(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Om=function(m,w,_){if(!w)return m;var h;if(_)h=_(w);else if(ri.isURLSearchParams(w))h=w.toString();else{var r=[];ri.forEach(w,function(f,e){f===null||typeof f>"u"||(ri.isArray(f)?e=e+"[]":f=[f],ri.forEach(f,function(n){ri.isDate(n)?n=n.toISOString():ri.isObject(n)&&(n=JSON.stringify(n)),r.push(n2(e)+"="+n2(n))}))}),h=r.join("&")}if(h){var s=m.indexOf("#");s!==-1&&(m=m.slice(0,s)),m+=(m.indexOf("?")===-1?"?":"&")+h}return m},Ek=Xt;function lu(){this.handlers=[]}lu.prototype.use=function(m,w,_){return this.handlers.push({fulfilled:m,rejected:w,synchronous:_?_.synchronous:!1,runWhen:_?_.runWhen:null}),this.handlers.length-1};lu.prototype.eject=function(m){this.handlers[m]&&(this.handlers[m]=null)};lu.prototype.forEach=function(m){Ek.forEach(this.handlers,function(_){_!==null&&m(_)})};var Sk=lu,Ck=Xt,kk=function(m,w){Ck.forEach(m,function(h,r){r!==w&&r.toUpperCase()===w.toUpperCase()&&(m[w]=h,delete m[r])})},Pm=function(m,w,_,h,r){return m.config=w,_&&(m.code=_),m.request=h,m.response=r,m.isAxiosError=!0,m.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},m},Al,i2;function Tm(){if(i2)return Al;i2=1;var a=Pm;return Al=function(w,_,h,r,s){var i=new Error(w);return a(i,_,h,r,s)},Al}var El,a2;function Ok(){if(a2)return El;a2=1;var a=Tm();return El=function(w,_,h){var r=h.config.validateStatus;!h.status||!r||r(h.status)?w(h):_(a("Request failed with status code "+h.status,h.config,null,h.request,h))},El}var Sl,o2;function Pk(){if(o2)return Sl;o2=1;var a=Xt;return Sl=a.isStandardBrowserEnv()?function(){return{write:function(_,h,r,s,i,f){var e=[];e.push(_+"="+encodeURIComponent(h)),a.isNumber(r)&&e.push("expires="+new Date(r).toGMTString()),a.isString(s)&&e.push("path="+s),a.isString(i)&&e.push("domain="+i),f===!0&&e.push("secure"),document.cookie=e.join("; ")},read:function(_){var h=document.cookie.match(new RegExp("(^|;\\s*)("+_+")=([^;]*)"));return h?decodeURIComponent(h[3]):null},remove:function(_){this.write(_,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Sl}var Cl,s2;function Tk(){return s2||(s2=1,Cl=function(m){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(m)}),Cl}var kl,u2;function Mk(){return u2||(u2=1,kl=function(m,w){return w?m.replace(/\/+$/,"")+"/"+w.replace(/^\/+/,""):m}),kl}var Ol,l2;function Ik(){if(l2)return Ol;l2=1;var a=Tk(),m=Mk();return Ol=function(_,h){return _&&!a(h)?m(_,h):h},Ol}var Pl,f2;function Dk(){if(f2)return Pl;f2=1;var a=Xt,m=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Pl=function(_){var h={},r,s,i;return _&&a.forEach(_.split(` +`),function(e){if(i=e.indexOf(":"),r=a.trim(e.substr(0,i)).toLowerCase(),s=a.trim(e.substr(i+1)),r){if(h[r]&&m.indexOf(r)>=0)return;r==="set-cookie"?h[r]=(h[r]?h[r]:[]).concat([s]):h[r]=h[r]?h[r]+", "+s:s}}),h},Pl}var Tl,c2;function Bk(){if(c2)return Tl;c2=1;var a=Xt;return Tl=a.isStandardBrowserEnv()?function(){var w=/(msie|trident)/i.test(navigator.userAgent),_=document.createElement("a"),h;function r(s){var i=s;return w&&(_.setAttribute("href",i),i=_.href),_.setAttribute("href",i),{href:_.href,protocol:_.protocol?_.protocol.replace(/:$/,""):"",host:_.host,search:_.search?_.search.replace(/^\?/,""):"",hash:_.hash?_.hash.replace(/^#/,""):"",hostname:_.hostname,port:_.port,pathname:_.pathname.charAt(0)==="/"?_.pathname:"/"+_.pathname}}return h=r(window.location.href),function(i){var f=a.isString(i)?r(i):i;return f.protocol===h.protocol&&f.host===h.host}}():function(){return function(){return!0}}(),Tl}var Ml,d2;function h2(){if(d2)return Ml;d2=1;var a=Xt,m=Ok(),w=Pk(),_=Om,h=Ik(),r=Dk(),s=Bk(),i=Tm();return Ml=function(e){return new Promise(function(n,t){var o=e.data,d=e.headers,u=e.responseType;a.isFormData(o)&&delete d["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(g+":"+p)}var v=h(e.baseURL,e.url);c.open(e.method.toUpperCase(),_(v,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(c){var A="getAllResponseHeaders"in c?r(c.getAllResponseHeaders()):null,x=!u||u==="text"||u==="json"?c.responseText:c.response,E={data:x,status:c.status,statusText:c.statusText,headers:A,config:e,request:c};m(n,t,E),c=null}}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(t(i("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){t(i("Network Error",e,null,c)),c=null},c.ontimeout=function(){var x="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),t(i(x,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},a.isStandardBrowserEnv()){var b=(e.withCredentials||s(v))&&e.xsrfCookieName?w.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in c&&a.forEach(d,function(x,E){typeof o>"u"&&E.toLowerCase()==="content-type"?delete d[E]:c.setRequestHeader(E,x)}),a.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),u&&u!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(x){c&&(c.abort(),t(x),c=null)}),o||(o=null),c.send(o)})},Ml}var Ot=Xt,p2=kk,Rk=Pm,Nk={"Content-Type":"application/x-www-form-urlencoded"};function v2(a,m){!Ot.isUndefined(a)&&Ot.isUndefined(a["Content-Type"])&&(a["Content-Type"]=m)}function Lk(){var a;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(a=h2()),a}function Uk(a,m,w){if(Ot.isString(a))try{return(m||JSON.parse)(a),Ot.trim(a)}catch(_){if(_.name!=="SyntaxError")throw _}return(w||JSON.stringify)(a)}var fu={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Lk(),transformRequest:[function(m,w){return p2(w,"Accept"),p2(w,"Content-Type"),Ot.isFormData(m)||Ot.isArrayBuffer(m)||Ot.isBuffer(m)||Ot.isStream(m)||Ot.isFile(m)||Ot.isBlob(m)?m:Ot.isArrayBufferView(m)?m.buffer:Ot.isURLSearchParams(m)?(v2(w,"application/x-www-form-urlencoded;charset=utf-8"),m.toString()):Ot.isObject(m)||w&&w["Content-Type"]==="application/json"?(v2(w,"application/json"),Uk(m)):m}],transformResponse:[function(m){var w=this.transitional,_=w&&w.silentJSONParsing,h=w&&w.forcedJSONParsing,r=!_&&this.responseType==="json";if(r||h&&Ot.isString(m)&&m.length)try{return JSON.parse(m)}catch(s){if(r)throw s.name==="SyntaxError"?Rk(s,this,"E_JSON_PARSE"):s}return m}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(m){return m>=200&&m<300}};fu.headers={common:{Accept:"application/json, text/plain, */*"}};Ot.forEach(["delete","get","head"],function(m){fu.headers[m]={}});Ot.forEach(["post","put","patch"],function(m){fu.headers[m]=Ot.merge(Nk)});var Ud=fu,Fk=Xt,jk=Ud,Hk=function(m,w,_){var h=this||jk;return Fk.forEach(_,function(s){m=s.call(h,m,w)}),m},Il,m2;function Mm(){return m2||(m2=1,Il=function(m){return!!(m&&m.__CANCEL__)}),Il}var y2=Xt,Dl=Hk,zk=Mm(),qk=Ud;function Bl(a){a.cancelToken&&a.cancelToken.throwIfRequested()}var $k=function(m){Bl(m),m.headers=m.headers||{},m.data=Dl.call(m,m.data,m.headers,m.transformRequest),m.headers=y2.merge(m.headers.common||{},m.headers[m.method]||{},m.headers),y2.forEach(["delete","get","head","post","put","patch","common"],function(h){delete m.headers[h]});var w=m.adapter||qk.adapter;return w(m).then(function(h){return Bl(m),h.data=Dl.call(m,h.data,h.headers,m.transformResponse),h},function(h){return zk(h)||(Bl(m),h&&h.response&&(h.response.data=Dl.call(m,h.response.data,h.response.headers,m.transformResponse))),Promise.reject(h)})},Rt=Xt,Im=function(m,w){w=w||{};var _={},h=["url","method","data"],r=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],i=["validateStatus"];function f(t,o){return Rt.isPlainObject(t)&&Rt.isPlainObject(o)?Rt.merge(t,o):Rt.isPlainObject(o)?Rt.merge({},o):Rt.isArray(o)?o.slice():o}function e(t){Rt.isUndefined(w[t])?Rt.isUndefined(m[t])||(_[t]=f(void 0,m[t])):_[t]=f(m[t],w[t])}Rt.forEach(h,function(o){Rt.isUndefined(w[o])||(_[o]=f(void 0,w[o]))}),Rt.forEach(r,e),Rt.forEach(s,function(o){Rt.isUndefined(w[o])?Rt.isUndefined(m[o])||(_[o]=f(void 0,m[o])):_[o]=f(void 0,w[o])}),Rt.forEach(i,function(o){o in w?_[o]=f(m[o],w[o]):o in m&&(_[o]=f(void 0,m[o]))});var l=h.concat(r).concat(s).concat(i),n=Object.keys(m).concat(Object.keys(w)).filter(function(o){return l.indexOf(o)===-1});return Rt.forEach(n,e),_};const Wk="axios",Vk="0.21.4",Kk="Promise based HTTP client for the browser and node.js",Gk="index.js",Jk={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},Qk={type:"git",url:"https://github.com/axios/axios.git"},Yk=["xhr","http","ajax","promise","node"],Xk="Matt Zabriskie",Zk="MIT",eO={url:"https://github.com/axios/axios/issues"},tO="https://axios-http.com",rO={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},nO={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},iO="dist/axios.min.js",aO="dist/axios.min.js",oO="./index.d.ts",sO={"follow-redirects":"^1.14.0"},uO=[{path:"./dist/axios.min.js",threshold:"5kB"}],lO={name:Wk,version:Vk,description:Kk,main:Gk,scripts:Jk,repository:Qk,keywords:Yk,author:Xk,license:Zk,bugs:eO,homepage:tO,devDependencies:rO,browser:nO,jsdelivr:iO,unpkg:aO,typings:oO,dependencies:sO,bundlesize:uO};var Dm=lO,Fd={};["object","boolean","number","function","string","symbol"].forEach(function(a,m){Fd[a]=function(_){return typeof _===a||"a"+(m<1?"n ":" ")+a}});var g2={},fO=Dm.version.split(".");function Bm(a,m){for(var w=m?m.split("."):fO,_=a.split("."),h=0;h<3;h++){if(w[h]>_[h])return!0;if(w[h]<_[h])return!1}return!1}Fd.transitional=function(m,w,_){var h=w&&Bm(w);function r(s,i){return"[Axios v"+Dm.version+"] Transitional option '"+s+"'"+i+(_?". "+_:"")}return function(s,i,f){if(m===!1)throw new Error(r(i," has been removed in "+w));return h&&!g2[i]&&(g2[i]=!0,console.warn(r(i," has been deprecated since v"+w+" and will be removed in the near future"))),m?m(s,i,f):!0}};function cO(a,m,w){if(typeof a!="object")throw new TypeError("options must be an object");for(var _=Object.keys(a),h=_.length;h-- >0;){var r=_[h],s=m[r];if(s){var i=a[r],f=i===void 0||s(i,r,a);if(f!==!0)throw new TypeError("option "+r+" must be "+f);continue}if(w!==!0)throw Error("Unknown option "+r)}}var dO={isOlderVersion:Bm,assertOptions:cO,validators:Fd},Rm=Xt,hO=Om,b2=Sk,_2=$k,cu=Im,Nm=dO,ni=Nm.validators;function no(a){this.defaults=a,this.interceptors={request:new b2,response:new b2}}no.prototype.request=function(m){typeof m=="string"?(m=arguments[1]||{},m.url=arguments[0]):m=m||{},m=cu(this.defaults,m),m.method?m.method=m.method.toLowerCase():this.defaults.method?m.method=this.defaults.method.toLowerCase():m.method="get";var w=m.transitional;w!==void 0&&Nm.assertOptions(w,{silentJSONParsing:ni.transitional(ni.boolean,"1.0.0"),forcedJSONParsing:ni.transitional(ni.boolean,"1.0.0"),clarifyTimeoutError:ni.transitional(ni.boolean,"1.0.0")},!1);var _=[],h=!0;this.interceptors.request.forEach(function(t){typeof t.runWhen=="function"&&t.runWhen(m)===!1||(h=h&&t.synchronous,_.unshift(t.fulfilled,t.rejected))});var r=[];this.interceptors.response.forEach(function(t){r.push(t.fulfilled,t.rejected)});var s;if(!h){var i=[_2,void 0];for(Array.prototype.unshift.apply(i,_),i=i.concat(r),s=Promise.resolve(m);i.length;)s=s.then(i.shift(),i.shift());return s}for(var f=m;_.length;){var e=_.shift(),l=_.shift();try{f=e(f)}catch(n){l(n);break}}try{s=_2(f)}catch(n){return Promise.reject(n)}for(;r.length;)s=s.then(r.shift(),r.shift());return s};no.prototype.getUri=function(m){return m=cu(this.defaults,m),hO(m.url,m.params,m.paramsSerializer).replace(/^\?/,"")};Rm.forEach(["delete","get","head","options"],function(m){no.prototype[m]=function(w,_){return this.request(cu(_||{},{method:m,url:w,data:(_||{}).data}))}});Rm.forEach(["post","put","patch"],function(m){no.prototype[m]=function(w,_,h){return this.request(cu(h||{},{method:m,url:w,data:_}))}});var pO=no,Rl,w2;function Lm(){if(w2)return Rl;w2=1;function a(m){this.message=m}return a.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},a.prototype.__CANCEL__=!0,Rl=a,Rl}var Nl,x2;function vO(){if(x2)return Nl;x2=1;var a=Lm();function m(w){if(typeof w!="function")throw new TypeError("executor must be a function.");var _;this.promise=new Promise(function(s){_=s});var h=this;w(function(s){h.reason||(h.reason=new a(s),_(h.reason))})}return m.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},m.source=function(){var _,h=new m(function(s){_=s});return{token:h,cancel:_}},Nl=m,Nl}var Ll,A2;function mO(){return A2||(A2=1,Ll=function(m){return function(_){return m.apply(null,_)}}),Ll}var Ul,E2;function yO(){return E2||(E2=1,Ul=function(m){return typeof m=="object"&&m.isAxiosError===!0}),Ul}var S2=Xt,gO=Sm,Lo=pO,bO=Im,_O=Ud;function Um(a){var m=new Lo(a),w=gO(Lo.prototype.request,m);return S2.extend(w,Lo.prototype,m),S2.extend(w,m),w}var pr=Um(_O);pr.Axios=Lo;pr.create=function(m){return Um(bO(pr.defaults,m))};pr.Cancel=Lm();pr.CancelToken=vO();pr.isCancel=Mm();pr.all=function(m){return Promise.all(m)};pr.spread=mO();pr.isAxiosError=yO();Rd.exports=pr;Rd.exports.default=pr;var wO=Rd.exports,xO=wO;const Fm=zn(xO);var jm={exports:{}};/*! + * Quill Editor v1.3.7 + * https://quilljs.com/ + * Copyright (c) 2014, Jason Chen + * Copyright (c) 2013, salesforce.com + */(function(a,m){(function(_,h){a.exports=h()})(typeof self<"u"?self:rt,function(){return function(w){var _={};function h(r){if(_[r])return _[r].exports;var s=_[r]={i:r,l:!1,exports:{}};return w[r].call(s.exports,s,s.exports,h),s.l=!0,s.exports}return h.m=w,h.c=_,h.d=function(r,s,i){h.o(r,s)||Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:i})},h.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return h.d(s,"a",s),s},h.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},h.p="",h(h.s=109)}([function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(17),s=h(18),i=h(19),f=h(45),e=h(46),l=h(47),n=h(48),t=h(49),o=h(12),d=h(32),u=h(33),c=h(31),g=h(1),p={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:s.default,Leaf:i.default,Embed:n.default,Scroll:f.default,Block:l.default,Inline:e.default,Text:t.default,Attributor:{Attribute:o.default,Class:d.default,Style:u.default,Store:c.default}};_.default=p},function(w,_,h){var r=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var v in p)p.hasOwnProperty(v)&&(g[v]=p[v])};return function(g,p){c(g,p);function v(){this.constructor=g}g.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=function(c){r(g,c);function g(p){var v=this;return p="[Parchment] "+p,v=c.call(this,p)||this,v.message=p,v.name=v.constructor.name,v}return g}(Error);_.ParchmentError=s;var i={},f={},e={},l={};_.DATA_KEY="__blot";var n;(function(c){c[c.TYPE=3]="TYPE",c[c.LEVEL=12]="LEVEL",c[c.ATTRIBUTE=13]="ATTRIBUTE",c[c.BLOT=14]="BLOT",c[c.INLINE=7]="INLINE",c[c.BLOCK=11]="BLOCK",c[c.BLOCK_BLOT=10]="BLOCK_BLOT",c[c.INLINE_BLOT=6]="INLINE_BLOT",c[c.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",c[c.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",c[c.ANY=15]="ANY"})(n=_.Scope||(_.Scope={}));function t(c,g){var p=d(c);if(p==null)throw new s("Unable to create "+c+" blot");var v=p,y=c instanceof Node||c.nodeType===Node.TEXT_NODE?c:v.create(g);return new v(y,g)}_.create=t;function o(c,g){return g===void 0&&(g=!1),c==null?null:c[_.DATA_KEY]!=null?c[_.DATA_KEY].blot:g?o(c.parentNode,g):null}_.find=o;function d(c,g){g===void 0&&(g=n.ANY);var p;if(typeof c=="string")p=l[c]||i[c];else if(c instanceof Text||c.nodeType===Node.TEXT_NODE)p=l.text;else if(typeof c=="number")c&n.LEVEL&n.BLOCK?p=l.block:c&n.LEVEL&n.INLINE&&(p=l.inline);else if(c instanceof HTMLElement){var v=(c.getAttribute("class")||"").split(/\s+/);for(var y in v)if(p=f[v[y]],p)break;p=p||e[c.tagName]}return p==null?null:g&n.LEVEL&p.scope&&g&n.TYPE&p.scope?p:null}_.query=d;function u(){for(var c=[],g=0;g<arguments.length;g++)c[g]=arguments[g];if(c.length>1)return c.map(function(y){return u(y)});var p=c[0];if(typeof p.blotName!="string"&&typeof p.attrName!="string")throw new s("Invalid definition");if(p.blotName==="abstract")throw new s("Cannot register abstract class");if(l[p.blotName||p.attrName]=p,typeof p.keyName=="string")i[p.keyName]=p;else if(p.className!=null&&(f[p.className]=p),p.tagName!=null){Array.isArray(p.tagName)?p.tagName=p.tagName.map(function(y){return y.toUpperCase()}):p.tagName=p.tagName.toUpperCase();var v=Array.isArray(p.tagName)?p.tagName:[p.tagName];v.forEach(function(y){(e[y]==null||p.className==null)&&(e[y]=p)})}return p}_.register=u},function(w,_,h){var r=h(51),s=h(11),i=h(3),f=h(20),e=String.fromCharCode(0),l=function(n){Array.isArray(n)?this.ops=n:n!=null&&Array.isArray(n.ops)?this.ops=n.ops:this.ops=[]};l.prototype.insert=function(n,t){var o={};return n.length===0?this:(o.insert=n,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(o.attributes=t),this.push(o))},l.prototype.delete=function(n){return n<=0?this:this.push({delete:n})},l.prototype.retain=function(n,t){if(n<=0)return this;var o={retain:n};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(o.attributes=t),this.push(o)},l.prototype.push=function(n){var t=this.ops.length,o=this.ops[t-1];if(n=i(!0,{},n),typeof o=="object"){if(typeof n.delete=="number"&&typeof o.delete=="number")return this.ops[t-1]={delete:o.delete+n.delete},this;if(typeof o.delete=="number"&&n.insert!=null&&(t-=1,o=this.ops[t-1],typeof o!="object"))return this.ops.unshift(n),this;if(s(n.attributes,o.attributes)){if(typeof n.insert=="string"&&typeof o.insert=="string")return this.ops[t-1]={insert:o.insert+n.insert},typeof n.attributes=="object"&&(this.ops[t-1].attributes=n.attributes),this;if(typeof n.retain=="number"&&typeof o.retain=="number")return this.ops[t-1]={retain:o.retain+n.retain},typeof n.attributes=="object"&&(this.ops[t-1].attributes=n.attributes),this}}return t===this.ops.length?this.ops.push(n):this.ops.splice(t,0,n),this},l.prototype.chop=function(){var n=this.ops[this.ops.length-1];return n&&n.retain&&!n.attributes&&this.ops.pop(),this},l.prototype.filter=function(n){return this.ops.filter(n)},l.prototype.forEach=function(n){this.ops.forEach(n)},l.prototype.map=function(n){return this.ops.map(n)},l.prototype.partition=function(n){var t=[],o=[];return this.forEach(function(d){var u=n(d)?t:o;u.push(d)}),[t,o]},l.prototype.reduce=function(n,t){return this.ops.reduce(n,t)},l.prototype.changeLength=function(){return this.reduce(function(n,t){return t.insert?n+f.length(t):t.delete?n-t.delete:n},0)},l.prototype.length=function(){return this.reduce(function(n,t){return n+f.length(t)},0)},l.prototype.slice=function(n,t){n=n||0,typeof t!="number"&&(t=1/0);for(var o=[],d=f.iterator(this.ops),u=0;u<t&&d.hasNext();){var c;u<n?c=d.next(n-u):(c=d.next(t-u),o.push(c)),u+=f.length(c)}return new l(o)},l.prototype.compose=function(n){var t=f.iterator(this.ops),o=f.iterator(n.ops),d=[],u=o.peek();if(u!=null&&typeof u.retain=="number"&&u.attributes==null){for(var c=u.retain;t.peekType()==="insert"&&t.peekLength()<=c;)c-=t.peekLength(),d.push(t.next());u.retain-c>0&&o.next(u.retain-c)}for(var g=new l(d);t.hasNext()||o.hasNext();)if(o.peekType()==="insert")g.push(o.next());else if(t.peekType()==="delete")g.push(t.next());else{var p=Math.min(t.peekLength(),o.peekLength()),v=t.next(p),y=o.next(p);if(typeof y.retain=="number"){var b={};typeof v.retain=="number"?b.retain=p:b.insert=v.insert;var A=f.attributes.compose(v.attributes,y.attributes,typeof v.retain=="number");if(A&&(b.attributes=A),g.push(b),!o.hasNext()&&s(g.ops[g.ops.length-1],b)){var x=new l(t.rest());return g.concat(x).chop()}}else typeof y.delete=="number"&&typeof v.retain=="number"&&g.push(y)}return g.chop()},l.prototype.concat=function(n){var t=new l(this.ops.slice());return n.ops.length>0&&(t.push(n.ops[0]),t.ops=t.ops.concat(n.ops.slice(1))),t},l.prototype.diff=function(n,t){if(this.ops===n.ops)return new l;var o=[this,n].map(function(p){return p.map(function(v){if(v.insert!=null)return typeof v.insert=="string"?v.insert:e;var y=p===n?"on":"with";throw new Error("diff() called "+y+" non-document")}).join("")}),d=new l,u=r(o[0],o[1],t),c=f.iterator(this.ops),g=f.iterator(n.ops);return u.forEach(function(p){for(var v=p[1].length;v>0;){var y=0;switch(p[0]){case r.INSERT:y=Math.min(g.peekLength(),v),d.push(g.next(y));break;case r.DELETE:y=Math.min(v,c.peekLength()),c.next(y),d.delete(y);break;case r.EQUAL:y=Math.min(c.peekLength(),g.peekLength(),v);var b=c.next(y),A=g.next(y);s(b.insert,A.insert)?d.retain(y,f.attributes.diff(b.attributes,A.attributes)):d.push(A).delete(y);break}v-=y}}),d.chop()},l.prototype.eachLine=function(n,t){t=t||` +`;for(var o=f.iterator(this.ops),d=new l,u=0;o.hasNext();){if(o.peekType()!=="insert")return;var c=o.peek(),g=f.length(c)-o.peekLength(),p=typeof c.insert=="string"?c.insert.indexOf(t,g)-g:-1;if(p<0)d.push(o.next());else if(p>0)d.push(o.next(p));else{if(n(d,o.next(1).attributes||{},u)===!1)return;u+=1,d=new l}}d.length()>0&&n(d,{},u)},l.prototype.transform=function(n,t){if(t=!!t,typeof n=="number")return this.transformPosition(n,t);for(var o=f.iterator(this.ops),d=f.iterator(n.ops),u=new l;o.hasNext()||d.hasNext();)if(o.peekType()==="insert"&&(t||d.peekType()!=="insert"))u.retain(f.length(o.next()));else if(d.peekType()==="insert")u.push(d.next());else{var c=Math.min(o.peekLength(),d.peekLength()),g=o.next(c),p=d.next(c);if(g.delete)continue;p.delete?u.push(p):u.retain(c,f.attributes.transform(g.attributes,p.attributes,t))}return u.chop()},l.prototype.transformPosition=function(n,t){t=!!t;for(var o=f.iterator(this.ops),d=0;o.hasNext()&&d<=n;){var u=o.peekLength(),c=o.peekType();if(o.next(),c==="delete"){n-=Math.min(u,n-d);continue}else c==="insert"&&(d<n||!t)&&(n+=u);d+=u}return n},w.exports=l},function(w,_){var h=Object.prototype.hasOwnProperty,r=Object.prototype.toString,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,f=function(o){return typeof Array.isArray=="function"?Array.isArray(o):r.call(o)==="[object Array]"},e=function(o){if(!o||r.call(o)!=="[object Object]")return!1;var d=h.call(o,"constructor"),u=o.constructor&&o.constructor.prototype&&h.call(o.constructor.prototype,"isPrototypeOf");if(o.constructor&&!d&&!u)return!1;var c;for(c in o);return typeof c>"u"||h.call(o,c)},l=function(o,d){s&&d.name==="__proto__"?s(o,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):o[d.name]=d.newValue},n=function(o,d){if(d==="__proto__")if(h.call(o,d)){if(i)return i(o,d).value}else return;return o[d]};w.exports=function t(){var o,d,u,c,g,p,v=arguments[0],y=1,b=arguments.length,A=!1;for(typeof v=="boolean"&&(A=v,v=arguments[1]||{},y=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});y<b;++y)if(o=arguments[y],o!=null)for(d in o)u=n(v,d),c=n(o,d),v!==c&&(A&&c&&(e(c)||(g=f(c)))?(g?(g=!1,p=u&&f(u)?u:[]):p=u&&e(u)?u:{},l(v,{name:d,newValue:t(A,p,c)})):typeof c<"u"&&l(v,{name:d,newValue:c}));return v}},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BlockEmbed=_.bubbleFormats=void 0;var r=function(){function T(k,M){for(var P=0;P<M.length;P++){var N=M[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(k,N.key,N)}}return function(k,M,P){return M&&T(k.prototype,M),P&&T(k,P),k}}(),s=function T(k,M,P){k===null&&(k=Function.prototype);var N=Object.getOwnPropertyDescriptor(k,M);if(N===void 0){var F=Object.getPrototypeOf(k);return F===null?void 0:T(F,M,P)}else{if("value"in N)return N.value;var q=N.get;return q===void 0?void 0:q.call(P)}},i=h(3),f=v(i),e=h(2),l=v(e),n=h(0),t=v(n),o=h(16),d=v(o),u=h(6),c=v(u),g=h(7),p=v(g);function v(T){return T&&T.__esModule?T:{default:T}}function y(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}function b(T,k){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:T}function A(T,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(T,k):T.__proto__=k)}var x=1,E=function(T){A(k,T);function k(){return y(this,k),b(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return r(k,[{key:"attach",value:function(){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new l.default().insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(P,N){var F=t.default.query(P,t.default.Scope.BLOCK_ATTRIBUTE);F!=null&&this.attributes.attribute(F,N)}},{key:"formatAt",value:function(P,N,F,q){this.format(F,q)}},{key:"insertAt",value:function(P,N,F){if(typeof N=="string"&&N.endsWith(` +`)){var q=t.default.create(S.blotName);this.parent.insertBefore(q,P===0?this:this.next),q.insertAt(0,N.slice(0,-1))}else s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,P,N,F)}}]),k}(t.default.Embed);E.scope=t.default.Scope.BLOCK_BLOT;var S=function(T){A(k,T);function k(M){y(this,k);var P=b(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,M));return P.cache={},P}return r(k,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(P,N){return N.length()===0?P:P.insert(N.value(),C(N))},new l.default).insert(` +`,C(this))),this.cache.delta}},{key:"deleteAt",value:function(P,N){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"deleteAt",this).call(this,P,N),this.cache={}}},{key:"formatAt",value:function(P,N,F,q){N<=0||(t.default.query(F,t.default.Scope.BLOCK)?P+N===this.length()&&this.format(F,q):s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"formatAt",this).call(this,P,Math.min(N,this.length()-P-1),F,q),this.cache={})}},{key:"insertAt",value:function(P,N,F){if(F!=null)return s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,P,N,F);if(N.length!==0){var q=N.split(` +`),z=q.shift();z.length>0&&(P<this.length()-1||this.children.tail==null?s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertAt",this).call(this,Math.min(P,this.length()-1),z):this.children.tail.insertAt(this.children.tail.length(),z),this.cache={});var O=this;q.reduce(function(R,I){return O=O.split(R,!0),O.insertAt(0,I),I.length},P+z.length)}}},{key:"insertBefore",value:function(P,N){var F=this.children.head;s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"insertBefore",this).call(this,P,N),F instanceof d.default&&F.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"length",this).call(this)+x),this.cache.length}},{key:"moveChildren",value:function(P,N){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"moveChildren",this).call(this,P,N),this.cache={}}},{key:"optimize",value:function(P){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(N&&(P===0||P>=this.length()-x)){var F=this.clone();return P===0?(this.parent.insertBefore(F,this),this):(this.parent.insertBefore(F,this.next),F)}else{var q=s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"split",this).call(this,P,N);return this.cache={},q}}}]),k}(t.default.Block);S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[c.default,t.default.Embed,p.default];function C(T){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return T==null||(typeof T.formats=="function"&&(k=(0,f.default)(k,T.formats())),T.parent==null||T.parent.blotName=="scroll"||T.parent.statics.scope!==T.statics.scope)?k:C(T.parent,k)}_.bubbleFormats=C,_.BlockEmbed=E,_.default=S},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.overload=_.expandConfig=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},s=function(){function O(R,I){var D=[],B=!0,j=!1,Q=void 0;try{for(var X=R[Symbol.iterator](),Z;!(B=(Z=X.next()).done)&&(D.push(Z.value),!(I&&D.length===I));B=!0);}catch(L){j=!0,Q=L}finally{try{!B&&X.return&&X.return()}finally{if(j)throw Q}}return D}return function(R,I){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return O(R,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function O(R,I){for(var D=0;D<I.length;D++){var B=I[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(R,B.key,B)}}return function(R,I,D){return I&&O(R.prototype,I),D&&O(R,D),R}}();h(50);var f=h(2),e=C(f),l=h(14),n=C(l),t=h(8),o=C(t),d=h(9),u=C(d),c=h(0),g=C(c),p=h(15),v=C(p),y=h(3),b=C(y),A=h(10),x=C(A),E=h(34),S=C(E);function C(O){return O&&O.__esModule?O:{default:O}}function T(O,R,I){return R in O?Object.defineProperty(O,R,{value:I,enumerable:!0,configurable:!0,writable:!0}):O[R]=I,O}function k(O,R){if(!(O instanceof R))throw new TypeError("Cannot call a class as a function")}var M=(0,x.default)("quill"),P=function(){i(O,null,[{key:"debug",value:function(I){I===!0&&(I="log"),x.default.level(I)}},{key:"find",value:function(I){return I.__quill||g.default.find(I)}},{key:"import",value:function(I){return this.imports[I]==null&&M.error("Cannot import "+I+". Are you sure it was registered?"),this.imports[I]}},{key:"register",value:function(I,D){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof I!="string"){var Q=I.attrName||I.blotName;typeof Q=="string"?this.register("formats/"+Q,I,D):Object.keys(I).forEach(function(X){B.register(X,I[X],D)})}else this.imports[I]!=null&&!j&&M.warn("Overwriting "+I+" with",D),this.imports[I]=D,(I.startsWith("blots/")||I.startsWith("formats/"))&&D.blotName!=="abstract"?g.default.register(D):I.startsWith("modules")&&typeof D.register=="function"&&D.register()}}]);function O(R){var I=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(k(this,O),this.options=N(R,D),this.container=this.options.container,this.container==null)return M.error("Invalid Quill container",R);this.options.debug&&O.debug(this.options.debug);var B=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new o.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new n.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(o.default.events.EDITOR_CHANGE,function(Q){Q===o.default.events.TEXT_CHANGE&&I.root.classList.toggle("ql-blank",I.editor.isBlank())}),this.emitter.on(o.default.events.SCROLL_UPDATE,function(Q,X){var Z=I.selection.lastRange,L=Z&&Z.length===0?Z.index:void 0;F.call(I,function(){return I.editor.update(null,X,L)},Q)});var j=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+B+"<p><br></p></div>");this.setContents(j),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(O,[{key:"addContainer",value:function(I){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof I=="string"){var B=I;I=document.createElement("div"),I.classList.add(B)}return this.container.insertBefore(I,D),I}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(I,D,B){var j=this,Q=q(I,D,B),X=s(Q,4);return I=X[0],D=X[1],B=X[3],F.call(this,function(){return j.editor.deleteText(I,D)},B,I,-1*D)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(I),this.container.classList.toggle("ql-disabled",!I)}},{key:"focus",value:function(){var I=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=I,this.scrollIntoView()}},{key:"format",value:function(I,D){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.default.sources.API;return F.call(this,function(){var Q=B.getSelection(!0),X=new e.default;if(Q==null)return X;if(g.default.query(I,g.default.Scope.BLOCK))X=B.editor.formatLine(Q.index,Q.length,T({},I,D));else{if(Q.length===0)return B.selection.format(I,D),X;X=B.editor.formatText(Q.index,Q.length,T({},I,D))}return B.setSelection(Q,o.default.sources.SILENT),X},j)}},{key:"formatLine",value:function(I,D,B,j,Q){var X=this,Z=void 0,L=q(I,D,B,j,Q),W=s(L,4);return I=W[0],D=W[1],Z=W[2],Q=W[3],F.call(this,function(){return X.editor.formatLine(I,D,Z)},Q,I,0)}},{key:"formatText",value:function(I,D,B,j,Q){var X=this,Z=void 0,L=q(I,D,B,j,Q),W=s(L,4);return I=W[0],D=W[1],Z=W[2],Q=W[3],F.call(this,function(){return X.editor.formatText(I,D,Z)},Q,I,0)}},{key:"getBounds",value:function(I){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=void 0;typeof I=="number"?B=this.selection.getBounds(I,D):B=this.selection.getBounds(I.index,I.length);var j=this.container.getBoundingClientRect();return{bottom:B.bottom-j.top,height:B.height,left:B.left-j.left,right:B.right-j.left,top:B.top-j.top,width:B.width}}},{key:"getContents",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-I,B=q(I,D),j=s(B,2);return I=j[0],D=j[1],this.editor.getContents(I,D)}},{key:"getFormat",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof I=="number"?this.editor.getFormat(I,D):this.editor.getFormat(I.index,I.length)}},{key:"getIndex",value:function(I){return I.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(I){return this.scroll.leaf(I)}},{key:"getLine",value:function(I){return this.scroll.line(I)}},{key:"getLines",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof I!="number"?this.scroll.lines(I.index,I.length):this.scroll.lines(I,D)}},{key:"getModule",value:function(I){return this.theme.modules[I]}},{key:"getSelection",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return I&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-I,B=q(I,D),j=s(B,2);return I=j[0],D=j[1],this.editor.getText(I,D)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(I,D,B){var j=this,Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:O.sources.API;return F.call(this,function(){return j.editor.insertEmbed(I,D,B)},Q,I)}},{key:"insertText",value:function(I,D,B,j,Q){var X=this,Z=void 0,L=q(I,0,B,j,Q),W=s(L,4);return I=W[0],Z=W[2],Q=W[3],F.call(this,function(){return X.editor.insertText(I,D,Z)},Q,I,D.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(I,D,B){this.clipboard.dangerouslyPasteHTML(I,D,B)}},{key:"removeFormat",value:function(I,D,B){var j=this,Q=q(I,D,B),X=s(Q,4);return I=X[0],D=X[1],B=X[3],F.call(this,function(){return j.editor.removeFormat(I,D)},B,I)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(I){var D=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.default.sources.API;return F.call(this,function(){I=new e.default(I);var j=D.getLength(),Q=D.editor.deleteText(0,j),X=D.editor.applyDelta(I),Z=X.ops[X.ops.length-1];Z!=null&&typeof Z.insert=="string"&&Z.insert[Z.insert.length-1]===` +`&&(D.editor.deleteText(D.getLength()-1,1),X.delete(1));var L=Q.compose(X);return L},B)}},{key:"setSelection",value:function(I,D,B){if(I==null)this.selection.setRange(null,D||O.sources.API);else{var j=q(I,D,B),Q=s(j,4);I=Q[0],D=Q[1],B=Q[3],this.selection.setRange(new p.Range(I,D),B),B!==o.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(I){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.default.sources.API,B=new e.default().insert(I);return this.setContents(B,D)}},{key:"update",value:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.default.sources.USER,D=this.scroll.update(I);return this.selection.update(I),D}},{key:"updateContents",value:function(I){var D=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.default.sources.API;return F.call(this,function(){return I=new e.default(I),D.editor.applyDelta(I,B)},B,!0)}}]),O}();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=o.default.events,P.sources=o.default.sources,P.version="1.3.7",P.imports={delta:e.default,parchment:g.default,"core/module":u.default,"core/theme":S.default};function N(O,R){if(R=(0,b.default)(!0,{container:O,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===P.DEFAULTS.theme)R.theme=S.default;else if(R.theme=P.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var I=(0,b.default)(!0,{},R.theme.DEFAULTS);[I,R].forEach(function(j){j.modules=j.modules||{},Object.keys(j.modules).forEach(function(Q){j.modules[Q]===!0&&(j.modules[Q]={})})});var D=Object.keys(I.modules).concat(Object.keys(R.modules)),B=D.reduce(function(j,Q){var X=P.import("modules/"+Q);return X==null?M.error("Cannot load "+Q+" module. Are you sure you registered it?"):j[Q]=X.DEFAULTS||{},j},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,b.default)(!0,{},P.DEFAULTS,{modules:B},I,R),["bounds","container","scrollingContainer"].forEach(function(j){typeof R[j]=="string"&&(R[j]=document.querySelector(R[j]))}),R.modules=Object.keys(R.modules).reduce(function(j,Q){return R.modules[Q]&&(j[Q]=R.modules[Q]),j},{}),R}function F(O,R,I,D){if(this.options.strict&&!this.isEnabled()&&R===o.default.sources.USER)return new e.default;var B=I==null?null:this.getSelection(),j=this.editor.delta,Q=O();if(B!=null&&(I===!0&&(I=B.index),D==null?B=z(B,Q,R):D!==0&&(B=z(B,I,D,R)),this.setSelection(B,o.default.sources.SILENT)),Q.length()>0){var X,Z=[o.default.events.TEXT_CHANGE,Q,j,R];if((X=this.emitter).emit.apply(X,[o.default.events.EDITOR_CHANGE].concat(Z)),R!==o.default.sources.SILENT){var L;(L=this.emitter).emit.apply(L,Z)}}return Q}function q(O,R,I,D,B){var j={};return typeof O.index=="number"&&typeof O.length=="number"?typeof R!="number"?(B=D,D=I,I=R,R=O.length,O=O.index):(R=O.length,O=O.index):typeof R!="number"&&(B=D,D=I,I=R,R=0),(typeof I>"u"?"undefined":r(I))==="object"?(j=I,B=D):typeof I=="string"&&(D!=null?j[I]=D:B=I),B=B||o.default.sources.API,[O,R,j,B]}function z(O,R,I,D){if(O==null)return null;var B=void 0,j=void 0;if(R instanceof e.default){var Q=[O.index,O.index+O.length].map(function(W){return R.transformPosition(W,D!==o.default.sources.USER)}),X=s(Q,2);B=X[0],j=X[1]}else{var Z=[O.index,O.index+O.length].map(function(W){return W<R||W===R&&D===o.default.sources.USER?W:I>=0?W+I:Math.max(R,W+I)}),L=s(Z,2);B=L[0],j=L[1]}return new p.Range(B,j-B)}_.expandConfig=N,_.overload=q,_.default=P},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function c(g,p){for(var v=0;v<p.length;v++){var y=p[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,p,v){return p&&c(g.prototype,p),v&&c(g,v),g}}(),s=function c(g,p,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,p);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:c(b,p,v)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(v)}},i=h(7),f=n(i),e=h(0),l=n(e);function n(c){return c&&c.__esModule?c:{default:c}}function t(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function o(c,g){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:c}function d(c,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);c.prototype=Object.create(g&&g.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(c,g):c.__proto__=g)}var u=function(c){d(g,c);function g(){return t(this,g),o(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"formatAt",value:function(v,y,b,A){if(g.compare(this.statics.blotName,b)<0&&l.default.query(b,l.default.Scope.BLOT)){var x=this.isolate(v,y);A&&x.wrap(b,A)}else s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,v,y,b,A)}},{key:"optimize",value:function(v){if(s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,v),this.parent instanceof g&&g.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(v,y){var b=g.order.indexOf(v),A=g.order.indexOf(y);return b>=0||A>=0?b-A:v===y?0:v<y?-1:1}}]),g}(l.default.Inline);u.allowedChildren=[u,l.default.Embed,f.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],_.default=u},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(0),s=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function f(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function e(t,o){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:t}function l(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}var n=function(t){l(o,t);function o(){return f(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o}(s.default.Text);_.default=n},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function p(v,y){for(var b=0;b<y.length;b++){var A=y[b];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(v,A.key,A)}}return function(v,y,b){return y&&p(v.prototype,y),b&&p(v,b),v}}(),s=function p(v,y,b){v===null&&(v=Function.prototype);var A=Object.getOwnPropertyDescriptor(v,y);if(A===void 0){var x=Object.getPrototypeOf(v);return x===null?void 0:p(x,y,b)}else{if("value"in A)return A.value;var E=A.get;return E===void 0?void 0:E.call(b)}},i=h(54),f=n(i),e=h(10),l=n(e);function n(p){return p&&p.__esModule?p:{default:p}}function t(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function o(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function d(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var u=(0,l.default)("quill:events"),c=["selectionchange","mousedown","mouseup","click"];c.forEach(function(p){document.addEventListener(p,function(){for(var v=arguments.length,y=Array(v),b=0;b<v;b++)y[b]=arguments[b];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){if(A.__quill&&A.__quill.emitter){var x;(x=A.__quill.emitter).handleDOM.apply(x,y)}})})});var g=function(p){d(v,p);function v(){t(this,v);var y=o(this,(v.__proto__||Object.getPrototypeOf(v)).call(this));return y.listeners={},y.on("error",u.error),y}return r(v,[{key:"emit",value:function(){u.log.apply(u,arguments),s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(b){for(var A=arguments.length,x=Array(A>1?A-1:0),E=1;E<A;E++)x[E-1]=arguments[E];(this.listeners[b.type]||[]).forEach(function(S){var C=S.node,T=S.handler;(b.target===C||C.contains(b.target))&&T.apply(void 0,[b].concat(x))})}},{key:"listenDOM",value:function(b,A,x){this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push({node:A,handler:x})}}]),v}(f.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},_.default=g},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});function r(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}var s=function i(f){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r(this,i),this.quill=f,this.options=e};s.DEFAULTS={},_.default=s},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=["error","warn","log","info"],s="warn";function i(e){if(r.indexOf(e)<=r.indexOf(s)){for(var l,n=arguments.length,t=Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];(l=console)[e].apply(l,t)}}function f(e){return r.reduce(function(l,n){return l[n]=i.bind(console,n,e),l},{})}i.level=f.level=function(e){s=e},_.default=f},function(w,_,h){var r=Array.prototype.slice,s=h(52),i=h(53),f=w.exports=function(t,o,d){return d||(d={}),t===o?!0:t instanceof Date&&o instanceof Date?t.getTime()===o.getTime():!t||!o||typeof t!="object"&&typeof o!="object"?d.strict?t===o:t==o:n(t,o,d)};function e(t){return t==null}function l(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function n(t,o,d){var u,c;if(e(t)||e(o)||t.prototype!==o.prototype)return!1;if(i(t))return i(o)?(t=r.call(t),o=r.call(o),f(t,o,d)):!1;if(l(t)){if(!l(o)||t.length!==o.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==o[u])return!1;return!0}try{var g=s(t),p=s(o)}catch{return!1}if(g.length!=p.length)return!1;for(g.sort(),p.sort(),u=g.length-1;u>=0;u--)if(g[u]!=p[u])return!1;for(u=g.length-1;u>=0;u--)if(c=g[u],!f(t[c],o[c],d))return!1;return typeof t==typeof o}},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(1),s=function(){function i(f,e,l){l===void 0&&(l={}),this.attrName=f,this.keyName=e;var n=r.Scope.TYPE&r.Scope.ATTRIBUTE;l.scope!=null?this.scope=l.scope&r.Scope.LEVEL|n:this.scope=r.Scope.ATTRIBUTE,l.whitelist!=null&&(this.whitelist=l.whitelist)}return i.keys=function(f){return[].map.call(f.attributes,function(e){return e.name})},i.prototype.add=function(f,e){return this.canAdd(f,e)?(f.setAttribute(this.keyName,e),!0):!1},i.prototype.canAdd=function(f,e){var l=r.query(f,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return l==null?!1:this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1},i.prototype.remove=function(f){f.removeAttribute(this.keyName)},i.prototype.value=function(f){var e=f.getAttribute(this.keyName);return this.canAdd(f,e)&&e?e:""},i}();_.default=s},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Code=void 0;var r=function(){function E(S,C){var T=[],k=!0,M=!1,P=void 0;try{for(var N=S[Symbol.iterator](),F;!(k=(F=N.next()).done)&&(T.push(F.value),!(C&&T.length===C));k=!0);}catch(q){M=!0,P=q}finally{try{!k&&N.return&&N.return()}finally{if(M)throw P}}return T}return function(S,C){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return E(S,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function E(S,C){for(var T=0;T<C.length;T++){var k=C[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,C,T){return C&&E(S.prototype,C),T&&E(S,T),S}}(),i=function E(S,C,T){S===null&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,C);if(k===void 0){var M=Object.getPrototypeOf(S);return M===null?void 0:E(M,C,T)}else{if("value"in k)return k.value;var P=k.get;return P===void 0?void 0:P.call(T)}},f=h(2),e=p(f),l=h(0),n=p(l),t=h(4),o=p(t),d=h(6),u=p(d),c=h(7),g=p(c);function p(E){return E&&E.__esModule?E:{default:E}}function v(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}function y(E,S){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:E}function b(E,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);E.prototype=Object.create(S&&S.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(E,S):E.__proto__=S)}var A=function(E){b(S,E);function S(){return v(this,S),y(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return S}(u.default);A.blotName="code",A.tagName="CODE";var x=function(E){b(S,E);function S(){return v(this,S),y(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return s(S,[{key:"delta",value:function(){var T=this,k=this.domNode.textContent;return k.endsWith(` +`)&&(k=k.slice(0,-1)),k.split(` +`).reduce(function(M,P){return M.insert(P).insert(` +`,T.formats())},new e.default)}},{key:"format",value:function(T,k){if(!(T===this.statics.blotName&&k)){var M=this.descendant(g.default,this.length()-1),P=r(M,1),N=P[0];N?.deleteAt(N.length()-1,1),i(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"format",this).call(this,T,k)}}},{key:"formatAt",value:function(T,k,M,P){if(k!==0&&!(n.default.query(M,n.default.Scope.BLOCK)==null||M===this.statics.blotName&&P===this.statics.formats(this.domNode))){var N=this.newlineIndex(T);if(!(N<0||N>=T+k)){var F=this.newlineIndex(T,!0)+1,q=N-F+1,z=this.isolate(F,q),O=z.next;z.format(M,P),O instanceof S&&O.formatAt(0,T-F+k-q,M,P)}}}},{key:"insertAt",value:function(T,k,M){if(M==null){var P=this.descendant(g.default,T),N=r(P,2),F=N[0],q=N[1];F.insertAt(q,k)}}},{key:"length",value:function(){var T=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` +`)?T:T+1}},{key:"newlineIndex",value:function(T){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(k)return this.domNode.textContent.slice(0,T).lastIndexOf(` +`);var M=this.domNode.textContent.slice(T).indexOf(` +`);return M>-1?T+M:-1}},{key:"optimize",value:function(T){this.domNode.textContent.endsWith(` +`)||this.appendChild(n.default.create("text",` +`)),i(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,T);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===k.statics.formats(k.domNode)&&(k.optimize(T),k.moveChildren(this),k.remove())}},{key:"replace",value:function(T){i(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replace",this).call(this,T),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(k){var M=n.default.find(k);M==null?k.parentNode.removeChild(k):M instanceof n.default.Embed?M.remove():M.unwrap()})}}],[{key:"create",value:function(T){var k=i(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this,T);return k.setAttribute("spellcheck",!1),k}},{key:"formats",value:function(){return!0}}]),S}(o.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",_.Code=A,_.default=x},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},s=function(){function O(R,I){var D=[],B=!0,j=!1,Q=void 0;try{for(var X=R[Symbol.iterator](),Z;!(B=(Z=X.next()).done)&&(D.push(Z.value),!(I&&D.length===I));B=!0);}catch(L){j=!0,Q=L}finally{try{!B&&X.return&&X.return()}finally{if(j)throw Q}}return D}return function(R,I){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return O(R,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function O(R,I){for(var D=0;D<I.length;D++){var B=I[D];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(R,B.key,B)}}return function(R,I,D){return I&&O(R.prototype,I),D&&O(R,D),R}}(),f=h(2),e=k(f),l=h(20),n=k(l),t=h(0),o=k(t),d=h(13),u=k(d),c=h(24),g=k(c),p=h(4),v=k(p),y=h(16),b=k(y),A=h(21),x=k(A),E=h(11),S=k(E),C=h(3),T=k(C);function k(O){return O&&O.__esModule?O:{default:O}}function M(O,R,I){return R in O?Object.defineProperty(O,R,{value:I,enumerable:!0,configurable:!0,writable:!0}):O[R]=I,O}function P(O,R){if(!(O instanceof R))throw new TypeError("Cannot call a class as a function")}var N=/^[ -~]*$/,F=function(){function O(R){P(this,O),this.scroll=R,this.delta=this.getDelta()}return i(O,[{key:"applyDelta",value:function(I){var D=this,B=!1;this.scroll.update();var j=this.scroll.length();return this.scroll.batchStart(),I=z(I),I.reduce(function(Q,X){var Z=X.retain||X.delete||X.insert.length||1,L=X.attributes||{};if(X.insert!=null){if(typeof X.insert=="string"){var W=X.insert;W.endsWith(` +`)&&B&&(B=!1,W=W.slice(0,-1)),Q>=j&&!W.endsWith(` +`)&&(B=!0),D.scroll.insertAt(Q,W);var G=D.scroll.line(Q),J=s(G,2),H=J[0],U=J[1],K=(0,T.default)({},(0,p.bubbleFormats)(H));if(H instanceof v.default){var te=H.descendant(o.default.Leaf,U),ee=s(te,1),ie=ee[0];K=(0,T.default)(K,(0,p.bubbleFormats)(ie))}L=n.default.attributes.diff(K,L)||{}}else if(r(X.insert)==="object"){var se=Object.keys(X.insert)[0];if(se==null)return Q;D.scroll.insertAt(Q,se,X.insert[se])}j+=Z}return Object.keys(L).forEach(function(ne){D.scroll.formatAt(Q,Z,ne,L[ne])}),Q+Z},0),I.reduce(function(Q,X){return typeof X.delete=="number"?(D.scroll.deleteAt(Q,X.delete),Q):Q+(X.retain||X.insert.length||1)},0),this.scroll.batchEnd(),this.update(I)}},{key:"deleteText",value:function(I,D){return this.scroll.deleteAt(I,D),this.update(new e.default().retain(I).delete(D))}},{key:"formatLine",value:function(I,D){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(j).forEach(function(Q){if(!(B.scroll.whitelist!=null&&!B.scroll.whitelist[Q])){var X=B.scroll.lines(I,Math.max(D,1)),Z=D;X.forEach(function(L){var W=L.length();if(!(L instanceof u.default))L.format(Q,j[Q]);else{var G=I-L.offset(B.scroll),J=L.newlineIndex(G+Z)-G+1;L.formatAt(G,J,Q,j[Q])}Z-=W})}}),this.scroll.optimize(),this.update(new e.default().retain(I).retain(D,(0,x.default)(j)))}},{key:"formatText",value:function(I,D){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(j).forEach(function(Q){B.scroll.formatAt(I,D,Q,j[Q])}),this.update(new e.default().retain(I).retain(D,(0,x.default)(j)))}},{key:"getContents",value:function(I,D){return this.delta.slice(I,I+D)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(I,D){return I.concat(D.delta())},new e.default)}},{key:"getFormat",value:function(I){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=[],j=[];D===0?this.scroll.path(I).forEach(function(X){var Z=s(X,1),L=Z[0];L instanceof v.default?B.push(L):L instanceof o.default.Leaf&&j.push(L)}):(B=this.scroll.lines(I,D),j=this.scroll.descendants(o.default.Leaf,I,D));var Q=[B,j].map(function(X){if(X.length===0)return{};for(var Z=(0,p.bubbleFormats)(X.shift());Object.keys(Z).length>0;){var L=X.shift();if(L==null)return Z;Z=q((0,p.bubbleFormats)(L),Z)}return Z});return T.default.apply(T.default,Q)}},{key:"getText",value:function(I,D){return this.getContents(I,D).filter(function(B){return typeof B.insert=="string"}).map(function(B){return B.insert}).join("")}},{key:"insertEmbed",value:function(I,D,B){return this.scroll.insertAt(I,D,B),this.update(new e.default().retain(I).insert(M({},D,B)))}},{key:"insertText",value:function(I,D){var B=this,j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D=D.replace(/\r\n/g,` +`).replace(/\r/g,` +`),this.scroll.insertAt(I,D),Object.keys(j).forEach(function(Q){B.scroll.formatAt(I,D.length,Q,j[Q])}),this.update(new e.default().retain(I).insert(D,(0,x.default)(j)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var I=this.scroll.children.head;return I.statics.blotName!==v.default.blotName||I.children.length>1?!1:I.children.head instanceof b.default}},{key:"removeFormat",value:function(I,D){var B=this.getText(I,D),j=this.scroll.line(I+D),Q=s(j,2),X=Q[0],Z=Q[1],L=0,W=new e.default;X!=null&&(X instanceof u.default?L=X.newlineIndex(Z)-Z+1:L=X.length()-Z,W=X.delta().slice(Z,Z+L-1).insert(` +`));var G=this.getContents(I,D+L),J=G.diff(new e.default().insert(B).concat(W)),H=new e.default().retain(I).concat(J);return this.applyDelta(H)}},{key:"update",value:function(I){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,j=this.delta;if(D.length===1&&D[0].type==="characterData"&&D[0].target.data.match(N)&&o.default.find(D[0].target)){var Q=o.default.find(D[0].target),X=(0,p.bubbleFormats)(Q),Z=Q.offset(this.scroll),L=D[0].oldValue.replace(g.default.CONTENTS,""),W=new e.default().insert(L),G=new e.default().insert(Q.value()),J=new e.default().retain(Z).concat(W.diff(G,B));I=J.reduce(function(H,U){return U.insert?H.insert(U.insert,X):H.push(U)},new e.default),this.delta=j.compose(I)}else this.delta=this.getDelta(),(!I||!(0,S.default)(j.compose(I),this.delta))&&(I=j.diff(this.delta,B));return I}}]),O}();function q(O,R){return Object.keys(R).reduce(function(I,D){return O[D]==null||(R[D]===O[D]?I[D]=R[D]:Array.isArray(R[D])?R[D].indexOf(O[D])<0&&(I[D]=R[D].concat([O[D]])):I[D]=[R[D],O[D]]),I},{})}function z(O){return O.reduce(function(R,I){if(I.insert===1){var D=(0,x.default)(I.attributes);return delete D.image,R.insert({image:I.attributes.image},D)}if(I.attributes!=null&&(I.attributes.list===!0||I.attributes.bullet===!0)&&(I=(0,x.default)(I),I.attributes.list?I.attributes.list="ordered":(I.attributes.list="bullet",delete I.attributes.bullet)),typeof I.insert=="string"){var B=I.insert.replace(/\r\n/g,` +`).replace(/\r/g,` +`);return R.insert(B,I.attributes)}return R.push(I)},new e.default)}_.default=F},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Range=void 0;var r=function(){function E(S,C){var T=[],k=!0,M=!1,P=void 0;try{for(var N=S[Symbol.iterator](),F;!(k=(F=N.next()).done)&&(T.push(F.value),!(C&&T.length===C));k=!0);}catch(q){M=!0,P=q}finally{try{!k&&N.return&&N.return()}finally{if(M)throw P}}return T}return function(S,C){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return E(S,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function E(S,C){for(var T=0;T<C.length;T++){var k=C[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,C,T){return C&&E(S.prototype,C),T&&E(S,T),S}}(),i=h(0),f=g(i),e=h(21),l=g(e),n=h(11),t=g(n),o=h(8),d=g(o),u=h(10),c=g(u);function g(E){return E&&E.__esModule?E:{default:E}}function p(E){if(Array.isArray(E)){for(var S=0,C=Array(E.length);S<E.length;S++)C[S]=E[S];return C}else return Array.from(E)}function v(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}var y=(0,c.default)("quill:selection"),b=function E(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;v(this,E),this.index=S,this.length=C},A=function(){function E(S,C){var T=this;v(this,E),this.emitter=C,this.scroll=S,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){T.mouseDown||setTimeout(T.update.bind(T,d.default.sources.USER),1)}),this.emitter.on(d.default.events.EDITOR_CHANGE,function(k,M){k===d.default.events.TEXT_CHANGE&&M.length()>0&&T.update(d.default.sources.SILENT)}),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,function(){if(T.hasFocus()){var k=T.getNativeRange();k!=null&&k.start.node!==T.cursor.textNode&&T.emitter.once(d.default.events.SCROLL_UPDATE,function(){try{T.setNativeRange(k.start.node,k.start.offset,k.end.node,k.end.offset)}catch{}})}}),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,function(k,M){if(M.range){var P=M.range,N=P.startNode,F=P.startOffset,q=P.endNode,z=P.endOffset;T.setNativeRange(N,F,q,z)}}),this.update(d.default.sources.SILENT)}return s(E,[{key:"handleComposition",value:function(){var C=this;this.root.addEventListener("compositionstart",function(){C.composing=!0}),this.root.addEventListener("compositionend",function(){if(C.composing=!1,C.cursor.parent){var T=C.cursor.restore();if(!T)return;setTimeout(function(){C.setNativeRange(T.startNode,T.startOffset,T.endNode,T.endOffset)},1)}})}},{key:"handleDragging",value:function(){var C=this;this.emitter.listenDOM("mousedown",document.body,function(){C.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){C.mouseDown=!1,C.update(d.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(C,T){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[C])){this.scroll.update();var k=this.getNativeRange();if(!(k==null||!k.native.collapsed||f.default.query(C,f.default.Scope.BLOCK))){if(k.start.node!==this.cursor.textNode){var M=f.default.find(k.start.node,!1);if(M==null)return;if(M instanceof f.default.Leaf){var P=M.split(k.start.offset);M.parent.insertBefore(this.cursor,P)}else M.insertBefore(this.cursor,k.start.node);this.cursor.attach()}this.cursor.format(C,T),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(C){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=this.scroll.length();C=Math.min(C,k-1),T=Math.min(C+T,k-1)-C;var M=void 0,P=this.scroll.leaf(C),N=r(P,2),F=N[0],q=N[1];if(F==null)return null;var z=F.position(q,!0),O=r(z,2);M=O[0],q=O[1];var R=document.createRange();if(T>0){R.setStart(M,q);var I=this.scroll.leaf(C+T),D=r(I,2);if(F=D[0],q=D[1],F==null)return null;var B=F.position(q,!0),j=r(B,2);return M=j[0],q=j[1],R.setEnd(M,q),R.getBoundingClientRect()}else{var Q="left",X=void 0;return M instanceof Text?(q<M.data.length?(R.setStart(M,q),R.setEnd(M,q+1)):(R.setStart(M,q-1),R.setEnd(M,q),Q="right"),X=R.getBoundingClientRect()):(X=F.domNode.getBoundingClientRect(),q>0&&(Q="right")),{bottom:X.top+X.height,height:X.height,left:X[Q],right:X[Q],top:X.top,width:0}}}},{key:"getNativeRange",value:function(){var C=document.getSelection();if(C==null||C.rangeCount<=0)return null;var T=C.getRangeAt(0);if(T==null)return null;var k=this.normalizeNative(T);return y.info("getNativeRange",k),k}},{key:"getRange",value:function(){var C=this.getNativeRange();if(C==null)return[null,null];var T=this.normalizedToRange(C);return[T,C]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(C){var T=this,k=[[C.start.node,C.start.offset]];C.native.collapsed||k.push([C.end.node,C.end.offset]);var M=k.map(function(F){var q=r(F,2),z=q[0],O=q[1],R=f.default.find(z,!0),I=R.offset(T.scroll);return O===0?I:R instanceof f.default.Container?I+R.length():I+R.index(z,O)}),P=Math.min(Math.max.apply(Math,p(M)),this.scroll.length()-1),N=Math.min.apply(Math,[P].concat(p(M)));return new b(N,P-N)}},{key:"normalizeNative",value:function(C){if(!x(this.root,C.startContainer)||!C.collapsed&&!x(this.root,C.endContainer))return null;var T={start:{node:C.startContainer,offset:C.startOffset},end:{node:C.endContainer,offset:C.endOffset},native:C};return[T.start,T.end].forEach(function(k){for(var M=k.node,P=k.offset;!(M instanceof Text)&&M.childNodes.length>0;)if(M.childNodes.length>P)M=M.childNodes[P],P=0;else if(M.childNodes.length===P)M=M.lastChild,P=M instanceof Text?M.data.length:M.childNodes.length+1;else break;k.node=M,k.offset=P}),T}},{key:"rangeToNative",value:function(C){var T=this,k=C.collapsed?[C.index]:[C.index,C.index+C.length],M=[],P=this.scroll.length();return k.forEach(function(N,F){N=Math.min(P-1,N);var q=void 0,z=T.scroll.leaf(N),O=r(z,2),R=O[0],I=O[1],D=R.position(I,F!==0),B=r(D,2);q=B[0],I=B[1],M.push(q,I)}),M.length<2&&(M=M.concat(M)),M}},{key:"scrollIntoView",value:function(C){var T=this.lastRange;if(T!=null){var k=this.getBounds(T.index,T.length);if(k!=null){var M=this.scroll.length()-1,P=this.scroll.line(Math.min(T.index,M)),N=r(P,1),F=N[0],q=F;if(T.length>0){var z=this.scroll.line(Math.min(T.index+T.length,M)),O=r(z,1);q=O[0]}if(!(F==null||q==null)){var R=C.getBoundingClientRect();k.top<R.top?C.scrollTop-=R.top-k.top:k.bottom>R.bottom&&(C.scrollTop+=k.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(C,T){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",C,T,k,M),!(C!=null&&(this.root.parentNode==null||C.parentNode==null||k.parentNode==null))){var N=document.getSelection();if(N!=null)if(C!=null){this.hasFocus()||this.root.focus();var F=(this.getNativeRange()||{}).native;if(F==null||P||C!==F.startContainer||T!==F.startOffset||k!==F.endContainer||M!==F.endOffset){C.tagName=="BR"&&(T=[].indexOf.call(C.parentNode.childNodes,C),C=C.parentNode),k.tagName=="BR"&&(M=[].indexOf.call(k.parentNode.childNodes,k),k=k.parentNode);var q=document.createRange();q.setStart(C,T),q.setEnd(k,M),N.removeAllRanges(),N.addRange(q)}}else N.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(C){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.default.sources.API;if(typeof T=="string"&&(k=T,T=!1),y.info("setRange",C),C!=null){var M=this.rangeToNative(C);this.setNativeRange.apply(this,p(M).concat([T]))}else this.setNativeRange(null);this.update(k)}},{key:"update",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.default.sources.USER,T=this.lastRange,k=this.getRange(),M=r(k,2),P=M[0],N=M[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(T,this.lastRange)){var F;!this.composing&&N!=null&&N.native.collapsed&&N.start.node!==this.cursor.textNode&&this.cursor.restore();var q=[d.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(T),C];if((F=this.emitter).emit.apply(F,[d.default.events.EDITOR_CHANGE].concat(q)),C!==d.default.sources.SILENT){var z;(z=this.emitter).emit.apply(z,q)}}}}]),E}();function x(E,S){try{S.parentNode}catch{return!1}return S instanceof Text&&(S=S.parentNode),E.contains(S)}_.Range=b,_.default=A},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function d(u,c){for(var g=0;g<c.length;g++){var p=c[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,c,g){return c&&d(u.prototype,c),g&&d(u,g),u}}(),s=function d(u,c,g){u===null&&(u=Function.prototype);var p=Object.getOwnPropertyDescriptor(u,c);if(p===void 0){var v=Object.getPrototypeOf(u);return v===null?void 0:d(v,c,g)}else{if("value"in p)return p.value;var y=p.get;return y===void 0?void 0:y.call(g)}},i=h(0),f=e(i);function e(d){return d&&d.__esModule?d:{default:d}}function l(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function n(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function t(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var o=function(d){t(u,d);function u(){return l(this,u),n(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return r(u,[{key:"insertInto",value:function(g,p){g.children.length===0?s(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"insertInto",this).call(this,g,p):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),u}(f.default.Embed);o.blotName="break",o.tagName="BR",_.default=o},function(w,_,h){var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var d in o)o.hasOwnProperty(d)&&(t[d]=o[d])};return function(t,o){n(t,o);function d(){this.constructor=t}t.prototype=o===null?Object.create(o):(d.prototype=o.prototype,new d)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(44),i=h(30),f=h(1),e=function(n){r(t,n);function t(o){var d=n.call(this,o)||this;return d.build(),d}return t.prototype.appendChild=function(o){this.insertBefore(o)},t.prototype.attach=function(){n.prototype.attach.call(this),this.children.forEach(function(o){o.attach()})},t.prototype.build=function(){var o=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(d){try{var u=l(d);o.insertBefore(u,o.children.head||void 0)}catch(c){if(c instanceof f.ParchmentError)return;throw c}})},t.prototype.deleteAt=function(o,d){if(o===0&&d===this.length())return this.remove();this.children.forEachAt(o,d,function(u,c,g){u.deleteAt(c,g)})},t.prototype.descendant=function(o,d){var u=this.children.find(d),c=u[0],g=u[1];return o.blotName==null&&o(c)||o.blotName!=null&&c instanceof o?[c,g]:c instanceof t?c.descendant(o,g):[null,-1]},t.prototype.descendants=function(o,d,u){d===void 0&&(d=0),u===void 0&&(u=Number.MAX_VALUE);var c=[],g=u;return this.children.forEachAt(d,u,function(p,v,y){(o.blotName==null&&o(p)||o.blotName!=null&&p instanceof o)&&c.push(p),p instanceof t&&(c=c.concat(p.descendants(o,v,g))),g-=y}),c},t.prototype.detach=function(){this.children.forEach(function(o){o.detach()}),n.prototype.detach.call(this)},t.prototype.formatAt=function(o,d,u,c){this.children.forEachAt(o,d,function(g,p,v){g.formatAt(p,v,u,c)})},t.prototype.insertAt=function(o,d,u){var c=this.children.find(o),g=c[0],p=c[1];if(g)g.insertAt(p,d,u);else{var v=u==null?f.create("text",d):f.create(d,u);this.appendChild(v)}},t.prototype.insertBefore=function(o,d){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(u){return o instanceof u}))throw new f.ParchmentError("Cannot insert "+o.statics.blotName+" into "+this.statics.blotName);o.insertInto(this,d)},t.prototype.length=function(){return this.children.reduce(function(o,d){return o+d.length()},0)},t.prototype.moveChildren=function(o,d){this.children.forEach(function(u){o.insertBefore(u,d)})},t.prototype.optimize=function(o){if(n.prototype.optimize.call(this,o),this.children.length===0)if(this.statics.defaultChild!=null){var d=f.create(this.statics.defaultChild);this.appendChild(d),d.optimize(o)}else this.remove()},t.prototype.path=function(o,d){d===void 0&&(d=!1);var u=this.children.find(o,d),c=u[0],g=u[1],p=[[this,o]];return c instanceof t?p.concat(c.path(g,d)):(c!=null&&p.push([c,g]),p)},t.prototype.removeChild=function(o){this.children.remove(o)},t.prototype.replace=function(o){o instanceof t&&o.moveChildren(this),n.prototype.replace.call(this,o)},t.prototype.split=function(o,d){if(d===void 0&&(d=!1),!d){if(o===0)return this;if(o===this.length())return this.next}var u=this.clone();return this.parent.insertBefore(u,this.next),this.children.forEachAt(o,this.length(),function(c,g,p){c=c.split(g,d),u.appendChild(c)}),u},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(o,d){var u=this,c=[],g=[];o.forEach(function(p){p.target===u.domNode&&p.type==="childList"&&(c.push.apply(c,p.addedNodes),g.push.apply(g,p.removedNodes))}),g.forEach(function(p){if(!(p.parentNode!=null&&p.tagName!=="IFRAME"&&document.body.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var v=f.find(p);v!=null&&(v.domNode.parentNode==null||v.domNode.parentNode===u.domNode)&&v.detach()}}),c.filter(function(p){return p.parentNode==u.domNode}).sort(function(p,v){return p===v?0:p.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(p){var v=null;p.nextSibling!=null&&(v=f.find(p.nextSibling));var y=l(p);(y.next!=v||y.next==null)&&(y.parent!=null&&y.parent.removeChild(u),u.insertBefore(y,v||void 0))})},t}(i.default);function l(n){var t=f.find(n);if(t==null)try{t=f.create(n)}catch{t=f.create(f.Scope.INLINE),[].slice.call(n.childNodes).forEach(function(d){t.domNode.appendChild(d)}),n.parentNode&&n.parentNode.replaceChild(t.domNode,n),t.attach()}return t}_.default=e},function(w,_,h){var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var d in o)o.hasOwnProperty(d)&&(t[d]=o[d])};return function(t,o){n(t,o);function d(){this.constructor=t}t.prototype=o===null?Object.create(o):(d.prototype=o.prototype,new d)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(12),i=h(31),f=h(17),e=h(1),l=function(n){r(t,n);function t(o){var d=n.call(this,o)||this;return d.attributes=new i.default(d.domNode),d}return t.formats=function(o){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return o.tagName.toLowerCase()},t.prototype.format=function(o,d){var u=e.query(o);u instanceof s.default?this.attributes.attribute(u,d):d&&u!=null&&(o!==this.statics.blotName||this.formats()[o]!==d)&&this.replaceWith(o,d)},t.prototype.formats=function(){var o=this.attributes.values(),d=this.statics.formats(this.domNode);return d!=null&&(o[this.statics.blotName]=d),o},t.prototype.replaceWith=function(o,d){var u=n.prototype.replaceWith.call(this,o,d);return this.attributes.copy(u),u},t.prototype.update=function(o,d){var u=this;n.prototype.update.call(this,o,d),o.some(function(c){return c.target===u.domNode&&c.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(o,d){var u=n.prototype.wrap.call(this,o,d);return u instanceof t&&u.statics.scope===this.statics.scope&&this.attributes.move(u),u},t}(f.default);_.default=l},function(w,_,h){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t])};return function(l,n){e(l,n);function t(){this.constructor=l}l.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(30),i=h(1),f=function(e){r(l,e);function l(){return e!==null&&e.apply(this,arguments)||this}return l.value=function(n){return!0},l.prototype.index=function(n,t){return this.domNode===n||this.domNode.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},l.prototype.position=function(n,t){var o=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return n>0&&(o+=1),[this.parent.domNode,o]},l.prototype.value=function(){var n;return n={},n[this.statics.blotName]=this.statics.value(this.domNode)||!0,n},l.scope=i.Scope.INLINE_BLOT,l}(s.default);_.default=f},function(w,_,h){var r=h(11),s=h(3),i={attributes:{compose:function(e,l,n){typeof e!="object"&&(e={}),typeof l!="object"&&(l={});var t=s(!0,{},l);n||(t=Object.keys(t).reduce(function(d,u){return t[u]!=null&&(d[u]=t[u]),d},{}));for(var o in e)e[o]!==void 0&&l[o]===void 0&&(t[o]=e[o]);return Object.keys(t).length>0?t:void 0},diff:function(e,l){typeof e!="object"&&(e={}),typeof l!="object"&&(l={});var n=Object.keys(e).concat(Object.keys(l)).reduce(function(t,o){return r(e[o],l[o])||(t[o]=l[o]===void 0?null:l[o]),t},{});return Object.keys(n).length>0?n:void 0},transform:function(e,l,n){if(typeof e!="object")return l;if(typeof l=="object"){if(!n)return l;var t=Object.keys(l).reduce(function(o,d){return e[d]===void 0&&(o[d]=l[d]),o},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(e){return new f(e)},length:function(e){return typeof e.delete=="number"?e.delete:typeof e.retain=="number"?e.retain:typeof e.insert=="string"?e.insert.length:1}};function f(e){this.ops=e,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(e){e||(e=1/0);var l=this.ops[this.index];if(l){var n=this.offset,t=i.length(l);if(e>=t-n?(e=t-n,this.index+=1,this.offset=0):this.offset+=e,typeof l.delete=="number")return{delete:e};var o={};return l.attributes&&(o.attributes=l.attributes),typeof l.retain=="number"?o.retain=e:typeof l.insert=="string"?o.insert=l.insert.substr(n,e):o.insert=l.insert,o}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var e=this.offset,l=this.index,n=this.next(),t=this.ops.slice(this.index);return this.offset=e,this.index=l,[n].concat(t)}else return[]},w.exports=i},function(w,_){var h=function(){function r(u,c){return c!=null&&u instanceof c}var s;try{s=Map}catch{s=function(){}}var i;try{i=Set}catch{i=function(){}}var f;try{f=Promise}catch{f=function(){}}function e(u,c,g,p,v){typeof c=="object"&&(g=c.depth,p=c.prototype,v=c.includeNonEnumerable,c=c.circular);var y=[],b=[],A=typeof Buffer<"u";typeof c>"u"&&(c=!0),typeof g>"u"&&(g=1/0);function x(E,S){if(E===null)return null;if(S===0)return E;var C,T;if(typeof E!="object")return E;if(r(E,s))C=new s;else if(r(E,i))C=new i;else if(r(E,f))C=new f(function(R,I){E.then(function(D){R(x(D,S-1))},function(D){I(x(D,S-1))})});else if(e.__isArray(E))C=[];else if(e.__isRegExp(E))C=new RegExp(E.source,d(E)),E.lastIndex&&(C.lastIndex=E.lastIndex);else if(e.__isDate(E))C=new Date(E.getTime());else{if(A&&Buffer.isBuffer(E))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(E.length):C=new Buffer(E.length),E.copy(C),C;r(E,Error)?C=Object.create(E):typeof p>"u"?(T=Object.getPrototypeOf(E),C=Object.create(T)):(C=Object.create(p),T=p)}if(c){var k=y.indexOf(E);if(k!=-1)return b[k];y.push(E),b.push(C)}r(E,s)&&E.forEach(function(R,I){var D=x(I,S-1),B=x(R,S-1);C.set(D,B)}),r(E,i)&&E.forEach(function(R){var I=x(R,S-1);C.add(I)});for(var M in E){var P;T&&(P=Object.getOwnPropertyDescriptor(T,M)),!(P&&P.set==null)&&(C[M]=x(E[M],S-1))}if(Object.getOwnPropertySymbols)for(var N=Object.getOwnPropertySymbols(E),M=0;M<N.length;M++){var F=N[M],q=Object.getOwnPropertyDescriptor(E,F);q&&!q.enumerable&&!v||(C[F]=x(E[F],S-1),q.enumerable||Object.defineProperty(C,F,{enumerable:!1}))}if(v)for(var z=Object.getOwnPropertyNames(E),M=0;M<z.length;M++){var O=z[M],q=Object.getOwnPropertyDescriptor(E,O);q&&q.enumerable||(C[O]=x(E[O],S-1),Object.defineProperty(C,O,{enumerable:!1}))}return C}return x(u,g)}e.clonePrototype=function(c){if(c===null)return null;var g=function(){};return g.prototype=c,new g};function l(u){return Object.prototype.toString.call(u)}e.__objToStr=l;function n(u){return typeof u=="object"&&l(u)==="[object Date]"}e.__isDate=n;function t(u){return typeof u=="object"&&l(u)==="[object Array]"}e.__isArray=t;function o(u){return typeof u=="object"&&l(u)==="[object RegExp]"}e.__isRegExp=o;function d(u){var c="";return u.global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),c}return e.__getRegExpFlags=d,e}();typeof w=="object"&&w.exports&&(w.exports=h)},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function C(T,k){var M=[],P=!0,N=!1,F=void 0;try{for(var q=T[Symbol.iterator](),z;!(P=(z=q.next()).done)&&(M.push(z.value),!(k&&M.length===k));P=!0);}catch(O){N=!0,F=O}finally{try{!P&&q.return&&q.return()}finally{if(N)throw F}}return M}return function(T,k){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return C(T,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function C(T,k){for(var M=0;M<k.length;M++){var P=k[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}return function(T,k,M){return k&&C(T.prototype,k),M&&C(T,M),T}}(),i=function C(T,k,M){T===null&&(T=Function.prototype);var P=Object.getOwnPropertyDescriptor(T,k);if(P===void 0){var N=Object.getPrototypeOf(T);return N===null?void 0:C(N,k,M)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(M)}},f=h(0),e=y(f),l=h(8),n=y(l),t=h(4),o=y(t),d=h(16),u=y(d),c=h(13),g=y(c),p=h(25),v=y(p);function y(C){return C&&C.__esModule?C:{default:C}}function b(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function A(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:C}function x(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}function E(C){return C instanceof o.default||C instanceof t.BlockEmbed}var S=function(C){x(T,C);function T(k,M){b(this,T);var P=A(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,k));return P.emitter=M.emitter,Array.isArray(M.whitelist)&&(P.whitelist=M.whitelist.reduce(function(N,F){return N[F]=!0,N},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return s(T,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(M,P){var N=this.line(M),F=r(N,2),q=F[0],z=F[1],O=this.line(M+P),R=r(O,1),I=R[0];if(i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,M,P),I!=null&&q!==I&&z>0){if(q instanceof t.BlockEmbed||I instanceof t.BlockEmbed){this.optimize();return}if(q instanceof g.default){var D=q.newlineIndex(q.length(),!0);if(D>-1&&(q=q.split(D+1),q===I)){this.optimize();return}}else if(I instanceof g.default){var B=I.newlineIndex(0);B>-1&&I.split(B+1)}var j=I.children.head instanceof u.default?null:I.children.head;q.moveChildren(I,j),q.remove()}this.optimize()}},{key:"enable",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",M)}},{key:"formatAt",value:function(M,P,N,F){this.whitelist!=null&&!this.whitelist[N]||(i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,M,P,N,F),this.optimize())}},{key:"insertAt",value:function(M,P,N){if(!(N!=null&&this.whitelist!=null&&!this.whitelist[P])){if(M>=this.length())if(N==null||e.default.query(P,e.default.Scope.BLOCK)==null){var F=e.default.create(this.statics.defaultChild);this.appendChild(F),N==null&&P.endsWith(` +`)&&(P=P.slice(0,-1)),F.insertAt(0,P,N)}else{var q=e.default.create(P,N);this.appendChild(q)}else i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,M,P,N);this.optimize()}}},{key:"insertBefore",value:function(M,P){if(M.statics.scope===e.default.Scope.INLINE_BLOT){var N=e.default.create(this.statics.defaultChild);N.appendChild(M),M=N}i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,M,P)}},{key:"leaf",value:function(M){return this.path(M).pop()||[null,-1]}},{key:"line",value:function(M){return M===this.length()?this.line(M-1):this.descendant(E,M)}},{key:"lines",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,N=function F(q,z,O){var R=[],I=O;return q.children.forEachAt(z,O,function(D,B,j){E(D)?R.push(D):D instanceof e.default.Container&&(R=R.concat(F(D,B,I))),I-=j}),R};return N(this,M,P)}},{key:"optimize",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,M,P),M.length>0&&this.emitter.emit(n.default.events.SCROLL_OPTIMIZE,M,P))}},{key:"path",value:function(M){return i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,M).slice(1)}},{key:"update",value:function(M){if(this.batch!==!0){var P=n.default.sources.USER;typeof M=="string"&&(P=M),Array.isArray(M)||(M=this.observer.takeRecords()),M.length>0&&this.emitter.emit(n.default.events.SCROLL_BEFORE_UPDATE,P,M),i(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"update",this).call(this,M.concat([])),M.length>0&&this.emitter.emit(n.default.events.SCROLL_UPDATE,P,M)}}}]),T}(e.default.Scroll);S.blotName="scroll",S.className="ql-editor",S.tagName="DIV",S.defaultChild="block",S.allowedChildren=[o.default,t.BlockEmbed,v.default],_.default=S},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.SHORTKEY=_.default=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},s=function(){function X(Z,L){var W=[],G=!0,J=!1,H=void 0;try{for(var U=Z[Symbol.iterator](),K;!(G=(K=U.next()).done)&&(W.push(K.value),!(L&&W.length===L));G=!0);}catch(te){J=!0,H=te}finally{try{!G&&U.return&&U.return()}finally{if(J)throw H}}return W}return function(Z,L){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return X(Z,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function X(Z,L){for(var W=0;W<L.length;W++){var G=L[W];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(Z,G.key,G)}}return function(Z,L,W){return L&&X(Z.prototype,L),W&&X(Z,W),Z}}(),f=h(21),e=C(f),l=h(11),n=C(l),t=h(3),o=C(t),d=h(2),u=C(d),c=h(20),g=C(c),p=h(0),v=C(p),y=h(5),b=C(y),A=h(10),x=C(A),E=h(9),S=C(E);function C(X){return X&&X.__esModule?X:{default:X}}function T(X,Z,L){return Z in X?Object.defineProperty(X,Z,{value:L,enumerable:!0,configurable:!0,writable:!0}):X[Z]=L,X}function k(X,Z){if(!(X instanceof Z))throw new TypeError("Cannot call a class as a function")}function M(X,Z){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:X}function P(X,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);X.prototype=Object.create(Z&&Z.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Z):X.__proto__=Z)}var N=(0,x.default)("quill:keyboard"),F=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",q=function(X){P(Z,X),i(Z,null,[{key:"match",value:function(W,G){return G=Q(G),["altKey","ctrlKey","metaKey","shiftKey"].some(function(J){return!!G[J]!==W[J]&&G[J]!==null})?!1:G.key===(W.which||W.keyCode)}}]);function Z(L,W){k(this,Z);var G=M(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,L,W));return G.bindings={},Object.keys(G.options.bindings).forEach(function(J){J==="list autofill"&&L.scroll.whitelist!=null&&!L.scroll.whitelist.list||G.options.bindings[J]&&G.addBinding(G.options.bindings[J])}),G.addBinding({key:Z.keys.ENTER,shiftKey:null},D),G.addBinding({key:Z.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(G.addBinding({key:Z.keys.BACKSPACE},{collapsed:!0},O),G.addBinding({key:Z.keys.DELETE},{collapsed:!0},R)):(G.addBinding({key:Z.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},O),G.addBinding({key:Z.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),G.addBinding({key:Z.keys.BACKSPACE},{collapsed:!1},I),G.addBinding({key:Z.keys.DELETE},{collapsed:!1},I),G.addBinding({key:Z.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},O),G.listen(),G}return i(Z,[{key:"addBinding",value:function(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},H=Q(W);if(H==null||H.key==null)return N.warn("Attempted to add invalid keyboard binding",H);typeof G=="function"&&(G={handler:G}),typeof J=="function"&&(J={handler:J}),H=(0,o.default)(H,G,J),this.bindings[H.key]=this.bindings[H.key]||[],this.bindings[H.key].push(H)}},{key:"listen",value:function(){var W=this;this.quill.root.addEventListener("keydown",function(G){if(!G.defaultPrevented){var J=G.which||G.keyCode,H=(W.bindings[J]||[]).filter(function(de){return Z.match(G,de)});if(H.length!==0){var U=W.quill.getSelection();if(!(U==null||!W.quill.hasFocus())){var K=W.quill.getLine(U.index),te=s(K,2),ee=te[0],ie=te[1],se=W.quill.getLeaf(U.index),ne=s(se,2),re=ne[0],Y=ne[1],V=U.length===0?[re,Y]:W.quill.getLeaf(U.index+U.length),oe=s(V,2),fe=oe[0],ce=oe[1],he=re instanceof v.default.Text?re.value().slice(0,Y):"",le=fe instanceof v.default.Text?fe.value().slice(ce):"",ae={collapsed:U.length===0,empty:U.length===0&&ee.length()<=1,format:W.quill.getFormat(U),offset:ie,prefix:he,suffix:le},ue=H.some(function(de){if(de.collapsed!=null&&de.collapsed!==ae.collapsed||de.empty!=null&&de.empty!==ae.empty||de.offset!=null&&de.offset!==ae.offset)return!1;if(Array.isArray(de.format)){if(de.format.every(function(ve){return ae.format[ve]==null}))return!1}else if(r(de.format)==="object"&&!Object.keys(de.format).every(function(ve){return de.format[ve]===!0?ae.format[ve]!=null:de.format[ve]===!1?ae.format[ve]==null:(0,n.default)(de.format[ve],ae.format[ve])}))return!1;return de.prefix!=null&&!de.prefix.test(ae.prefix)||de.suffix!=null&&!de.suffix.test(ae.suffix)?!1:de.handler.call(W,U,ae)!==!0});ue&&G.preventDefault()}}}})}}]),Z}(S.default);q.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},q.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:q.keys.TAB,format:["blockquote","indent","list"],handler:function(Z,L){if(L.collapsed&&L.offset!==0)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:q.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(Z,L){if(L.collapsed&&L.offset!==0)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:q.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(Z,L){L.format.indent!=null?this.quill.format("indent","-1",b.default.sources.USER):L.format.list!=null&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":B(!0),"outdent code-block":B(!1),"remove tab":{key:q.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(Z){this.quill.deleteText(Z.index-1,1,b.default.sources.USER)}},tab:{key:q.keys.TAB,handler:function(Z){this.quill.history.cutoff();var L=new u.default().retain(Z.index).delete(Z.length).insert(" ");this.quill.updateContents(L,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Z.index+1,b.default.sources.SILENT)}},"list empty enter":{key:q.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(Z,L){this.quill.format("list",!1,b.default.sources.USER),L.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:q.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(Z){var L=this.quill.getLine(Z.index),W=s(L,2),G=W[0],J=W[1],H=(0,o.default)({},G.formats(),{list:"checked"}),U=new u.default().retain(Z.index).insert(` +`,H).retain(G.length()-J-1).retain(1,{list:"unchecked"});this.quill.updateContents(U,b.default.sources.USER),this.quill.setSelection(Z.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:q.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(Z,L){var W=this.quill.getLine(Z.index),G=s(W,2),J=G[0],H=G[1],U=new u.default().retain(Z.index).insert(` +`,L.format).retain(J.length()-H-1).retain(1,{header:null});this.quill.updateContents(U,b.default.sources.USER),this.quill.setSelection(Z.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(Z,L){var W=L.prefix.length,G=this.quill.getLine(Z.index),J=s(G,2),H=J[0],U=J[1];if(U>W)return!0;var K=void 0;switch(L.prefix.trim()){case"[]":case"[ ]":K="unchecked";break;case"[x]":K="checked";break;case"-":case"*":K="bullet";break;default:K="ordered"}this.quill.insertText(Z.index," ",b.default.sources.USER),this.quill.history.cutoff();var te=new u.default().retain(Z.index-U).delete(W+1).retain(H.length()-2-U).retain(1,{list:K});this.quill.updateContents(te,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(Z.index-W,b.default.sources.SILENT)}},"code exit":{key:q.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(Z){var L=this.quill.getLine(Z.index),W=s(L,2),G=W[0],J=W[1],H=new u.default().retain(Z.index+G.length()-J-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(H,b.default.sources.USER)}},"embed left":z(q.keys.LEFT,!1),"embed left shift":z(q.keys.LEFT,!0),"embed right":z(q.keys.RIGHT,!1),"embed right shift":z(q.keys.RIGHT,!0)}};function z(X,Z){var L,W=X===q.keys.LEFT?"prefix":"suffix";return L={key:X,shiftKey:Z,altKey:null},T(L,W,/^$/),T(L,"handler",function(J){var H=J.index;X===q.keys.RIGHT&&(H+=J.length+1);var U=this.quill.getLeaf(H),K=s(U,1),te=K[0];return te instanceof v.default.Embed?(X===q.keys.LEFT?Z?this.quill.setSelection(J.index-1,J.length+1,b.default.sources.USER):this.quill.setSelection(J.index-1,b.default.sources.USER):Z?this.quill.setSelection(J.index,J.length+1,b.default.sources.USER):this.quill.setSelection(J.index+J.length+1,b.default.sources.USER),!1):!0}),L}function O(X,Z){if(!(X.index===0||this.quill.getLength()<=1)){var L=this.quill.getLine(X.index),W=s(L,1),G=W[0],J={};if(Z.offset===0){var H=this.quill.getLine(X.index-1),U=s(H,1),K=U[0];if(K!=null&&K.length()>1){var te=G.formats(),ee=this.quill.getFormat(X.index-1,1);J=g.default.attributes.diff(te,ee)||{}}}var ie=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Z.prefix)?2:1;this.quill.deleteText(X.index-ie,ie,b.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(X.index-ie,ie,J,b.default.sources.USER),this.quill.focus()}}function R(X,Z){var L=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Z.suffix)?2:1;if(!(X.index>=this.quill.getLength()-L)){var W={},G=0,J=this.quill.getLine(X.index),H=s(J,1),U=H[0];if(Z.offset>=U.length()-1){var K=this.quill.getLine(X.index+1),te=s(K,1),ee=te[0];if(ee){var ie=U.formats(),se=this.quill.getFormat(X.index,1);W=g.default.attributes.diff(ie,se)||{},G=ee.length()}}this.quill.deleteText(X.index,L,b.default.sources.USER),Object.keys(W).length>0&&this.quill.formatLine(X.index+G-1,L,W,b.default.sources.USER)}}function I(X){var Z=this.quill.getLines(X),L={};if(Z.length>1){var W=Z[0].formats(),G=Z[Z.length-1].formats();L=g.default.attributes.diff(G,W)||{}}this.quill.deleteText(X,b.default.sources.USER),Object.keys(L).length>0&&this.quill.formatLine(X.index,1,L,b.default.sources.USER),this.quill.setSelection(X.index,b.default.sources.SILENT),this.quill.focus()}function D(X,Z){var L=this;X.length>0&&this.quill.scroll.deleteAt(X.index,X.length);var W=Object.keys(Z.format).reduce(function(G,J){return v.default.query(J,v.default.Scope.BLOCK)&&!Array.isArray(Z.format[J])&&(G[J]=Z.format[J]),G},{});this.quill.insertText(X.index,` +`,W,b.default.sources.USER),this.quill.setSelection(X.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(Z.format).forEach(function(G){W[G]==null&&(Array.isArray(Z.format[G])||G!=="link"&&L.quill.format(G,Z.format[G],b.default.sources.USER))})}function B(X){return{key:q.keys.TAB,shiftKey:!X,format:{"code-block":!0},handler:function(L){var W=v.default.query("code-block"),G=L.index,J=L.length,H=this.quill.scroll.descendant(W,G),U=s(H,2),K=U[0],te=U[1];if(K!=null){var ee=this.quill.getIndex(K),ie=K.newlineIndex(te,!0)+1,se=K.newlineIndex(ee+te+J),ne=K.domNode.textContent.slice(ie,se).split(` +`);te=0,ne.forEach(function(re,Y){X?(K.insertAt(ie+te,W.TAB),te+=W.TAB.length,Y===0?G+=W.TAB.length:J+=W.TAB.length):re.startsWith(W.TAB)&&(K.deleteAt(ie+te,W.TAB.length),te-=W.TAB.length,Y===0?G-=W.TAB.length:J-=W.TAB.length),te+=re.length+1}),this.quill.update(b.default.sources.USER),this.quill.setSelection(G,J,b.default.sources.SILENT)}}}}function j(X){return{key:X[0].toUpperCase(),shortKey:!0,handler:function(L,W){this.quill.format(X,!W.format[X],b.default.sources.USER)}}}function Q(X){if(typeof X=="string"||typeof X=="number")return Q({key:X});if((typeof X>"u"?"undefined":r(X))==="object"&&(X=(0,e.default)(X,!1)),typeof X.key=="string")if(q.keys[X.key.toUpperCase()]!=null)X.key=q.keys[X.key.toUpperCase()];else if(X.key.length===1)X.key=X.key.toUpperCase().charCodeAt(0);else return null;return X.shortKey&&(X[F]=X.shortKey,delete X.shortKey),X}_.default=q,_.SHORTKEY=F},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function g(p,v){var y=[],b=!0,A=!1,x=void 0;try{for(var E=p[Symbol.iterator](),S;!(b=(S=E.next()).done)&&(y.push(S.value),!(v&&y.length===v));b=!0);}catch(C){A=!0,x=C}finally{try{!b&&E.return&&E.return()}finally{if(A)throw x}}return y}return function(p,v){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return g(p,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function g(p,v,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,v);if(b===void 0){var A=Object.getPrototypeOf(p);return A===null?void 0:g(A,v,y)}else{if("value"in b)return b.value;var x=b.get;return x===void 0?void 0:x.call(y)}},i=function(){function g(p,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,v,y){return v&&g(p.prototype,v),y&&g(p,y),p}}(),f=h(0),e=t(f),l=h(7),n=t(l);function t(g){return g&&g.__esModule?g:{default:g}}function o(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function d(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function u(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var c=function(g){u(p,g),i(p,null,[{key:"value",value:function(){}}]);function p(v,y){o(this,p);var b=d(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,v));return b.selection=y,b.textNode=document.createTextNode(p.CONTENTS),b.domNode.appendChild(b.textNode),b._length=0,b}return i(p,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,b){if(this._length!==0)return s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"format",this).call(this,y,b);for(var A=this,x=0;A!=null&&A.statics.scope!==e.default.Scope.BLOCK_BLOT;)x+=A.offset(A.parent),A=A.parent;A!=null&&(this._length=p.CONTENTS.length,A.optimize(),A.formatAt(x,p.CONTENTS.length,y,b),this._length=0)}},{key:"index",value:function(y,b){return y===this.textNode?0:s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"index",this).call(this,y,b)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,b=this.selection.getNativeRange(),A=void 0,x=void 0,E=void 0;if(b!=null&&b.start.node===y&&b.end.node===y){var S=[y,b.start.offset,b.end.offset];A=S[0],x=S[1],E=S[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==p.CONTENTS){var C=this.textNode.data.split(p.CONTENTS).join("");this.next instanceof n.default?(A=this.next.domNode,this.next.insertAt(0,C),this.textNode.data=p.CONTENTS):(this.textNode.data=C,this.parent.insertBefore(e.default.create(this.textNode),this),this.textNode=document.createTextNode(p.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),x!=null){var T=[x,E].map(function(M){return Math.max(0,Math.min(A.data.length,M-1))}),k=r(T,2);return x=k[0],E=k[1],{startNode:A,startOffset:x,endNode:A,endOffset:E}}}}},{key:"update",value:function(y,b){var A=this;if(y.some(function(E){return E.type==="characterData"&&E.target===A.textNode})){var x=this.restore();x&&(b.range=x)}}},{key:"value",value:function(){return""}}]),p}(e.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\uFEFF",_.default=c},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(0),s=e(r),i=h(4),f=e(i);function e(d){return d&&d.__esModule?d:{default:d}}function l(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function n(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function t(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var o=function(d){t(u,d);function u(){return l(this,u),n(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default.Container);o.allowedChildren=[f.default,i.BlockEmbed,o],_.default=o},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.ColorStyle=_.ColorClass=_.ColorAttributor=void 0;var r=function(){function c(g,p){for(var v=0;v<p.length;v++){var y=p[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,p,v){return p&&c(g.prototype,p),v&&c(g,v),g}}(),s=function c(g,p,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,p);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:c(b,p,v)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(v)}},i=h(0),f=e(i);function e(c){return c&&c.__esModule?c:{default:c}}function l(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function n(c,g){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:c}function t(c,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);c.prototype=Object.create(g&&g.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(c,g):c.__proto__=g)}var o=function(c){t(g,c);function g(){return l(this,g),n(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"value",value:function(v){var y=s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,v);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(b){return("00"+parseInt(b).toString(16)).slice(-2)}).join("")):y}}]),g}(f.default.Attributor.Style),d=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),u=new o("color","color",{scope:f.default.Scope.INLINE});_.ColorAttributor=o,_.ColorClass=d,_.ColorStyle=u},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.sanitize=_.default=void 0;var r=function(){function u(c,g){for(var p=0;p<g.length;p++){var v=g[p];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}return function(c,g,p){return g&&u(c.prototype,g),p&&u(c,p),c}}(),s=function u(c,g,p){c===null&&(c=Function.prototype);var v=Object.getOwnPropertyDescriptor(c,g);if(v===void 0){var y=Object.getPrototypeOf(c);return y===null?void 0:u(y,g,p)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(p)}},i=h(6),f=e(i);function e(u){return u&&u.__esModule?u:{default:u}}function l(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function n(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function t(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var o=function(u){t(c,u);function c(){return l(this,c),n(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return r(c,[{key:"format",value:function(p,v){if(p!==this.statics.blotName||!v)return s(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,p,v);v=this.constructor.sanitize(v),this.domNode.setAttribute("href",v)}}],[{key:"create",value:function(p){var v=s(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,p);return p=this.sanitize(p),v.setAttribute("href",p),v.setAttribute("rel","noopener noreferrer"),v.setAttribute("target","_blank"),v}},{key:"formats",value:function(p){return p.getAttribute("href")}},{key:"sanitize",value:function(p){return d(p,this.PROTOCOL_WHITELIST)?p:this.SANITIZED_URL}}]),c}(f.default);o.blotName="link",o.tagName="A",o.SANITIZED_URL="about:blank",o.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function d(u,c){var g=document.createElement("a");g.href=u;var p=g.href.slice(0,g.href.indexOf(":"));return c.indexOf(p)>-1}_.default=o,_.sanitize=d},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},s=function(){function c(g,p){for(var v=0;v<p.length;v++){var y=p[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,p,v){return p&&c(g.prototype,p),v&&c(g,v),g}}(),i=h(23),f=n(i),e=h(107),l=n(e);function n(c){return c&&c.__esModule?c:{default:c}}function t(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}var o=0;function d(c,g){c.setAttribute(g,c.getAttribute(g)!=="true")}var u=function(){function c(g){var p=this;t(this,c),this.select=g,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){p.togglePicker()}),this.label.addEventListener("keydown",function(v){switch(v.keyCode){case f.default.keys.ENTER:p.togglePicker();break;case f.default.keys.ESCAPE:p.escape(),v.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(c,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),d(this.label,"aria-expanded"),d(this.options,"aria-hidden")}},{key:"buildItem",value:function(p){var v=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),p.hasAttribute("value")&&y.setAttribute("data-value",p.getAttribute("value")),p.textContent&&y.setAttribute("data-label",p.textContent),y.addEventListener("click",function(){v.selectItem(y,!0)}),y.addEventListener("keydown",function(b){switch(b.keyCode){case f.default.keys.ENTER:v.selectItem(y,!0),b.preventDefault();break;case f.default.keys.ESCAPE:v.escape(),b.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var p=document.createElement("span");return p.classList.add("ql-picker-label"),p.innerHTML=l.default,p.tabIndex="0",p.setAttribute("role","button"),p.setAttribute("aria-expanded","false"),this.container.appendChild(p),p}},{key:"buildOptions",value:function(){var p=this,v=document.createElement("span");v.classList.add("ql-picker-options"),v.setAttribute("aria-hidden","true"),v.tabIndex="-1",v.id="ql-picker-options-"+o,o+=1,this.label.setAttribute("aria-controls",v.id),this.options=v,[].slice.call(this.select.options).forEach(function(y){var b=p.buildItem(y);v.appendChild(b),y.selected===!0&&p.selectItem(b)}),this.container.appendChild(v)}},{key:"buildPicker",value:function(){var p=this;[].slice.call(this.select.attributes).forEach(function(v){p.container.setAttribute(v.name,v.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var p=this;this.close(),setTimeout(function(){return p.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=this.container.querySelector(".ql-selected");if(p!==y&&(y?.classList.remove("ql-selected"),p!=null&&(p.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(p.parentNode.children,p),p.hasAttribute("data-value")?this.label.setAttribute("data-value",p.getAttribute("data-value")):this.label.removeAttribute("data-value"),p.hasAttribute("data-label")?this.label.setAttribute("data-label",p.getAttribute("data-label")):this.label.removeAttribute("data-label"),v))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":r(Event))==="object"){var b=document.createEvent("Event");b.initEvent("change",!0,!0),this.select.dispatchEvent(b)}this.close()}}},{key:"update",value:function(){var p=void 0;if(this.select.selectedIndex>-1){var v=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];p=this.select.options[this.select.selectedIndex],this.selectItem(v)}else this.selectItem(null);var y=p!=null&&p!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),c}();_.default=u},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(0),s=N(r),i=h(5),f=N(i),e=h(4),l=N(e),n=h(16),t=N(n),o=h(25),d=N(o),u=h(24),c=N(u),g=h(35),p=N(g),v=h(6),y=N(v),b=h(22),A=N(b),x=h(7),E=N(x),S=h(55),C=N(S),T=h(42),k=N(T),M=h(23),P=N(M);function N(F){return F&&F.__esModule?F:{default:F}}f.default.register({"blots/block":l.default,"blots/block/embed":e.BlockEmbed,"blots/break":t.default,"blots/container":d.default,"blots/cursor":c.default,"blots/embed":p.default,"blots/inline":y.default,"blots/scroll":A.default,"blots/text":E.default,"modules/clipboard":C.default,"modules/history":k.default,"modules/keyboard":P.default}),s.default.register(l.default,t.default,c.default,y.default,A.default,E.default),_.default=f.default},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(1),s=function(){function i(f){this.domNode=f,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(i.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),i.create=function(f){if(this.tagName==null)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?e=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?e=document.createElement(f):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},i.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},i.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return r.create(f)},i.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},i.prototype.deleteAt=function(f,e){var l=this.isolate(f,e);l.remove()},i.prototype.formatAt=function(f,e,l,n){var t=this.isolate(f,e);if(r.query(l,r.Scope.BLOT)!=null&&n)t.wrap(l,n);else if(r.query(l,r.Scope.ATTRIBUTE)!=null){var o=r.create(this.statics.scope);t.wrap(o),o.format(l,n)}},i.prototype.insertAt=function(f,e,l){var n=l==null?r.create("text",e):r.create(e,l),t=this.split(f);this.parent.insertBefore(n,t)},i.prototype.insertInto=function(f,e){e===void 0&&(e=null),this.parent!=null&&this.parent.children.remove(this);var l=null;f.children.insertBefore(this,e),e!=null&&(l=e.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=l)&&f.domNode.insertBefore(this.domNode,l),this.parent=f,this.attach()},i.prototype.isolate=function(f,e){var l=this.split(f);return l.split(e),l},i.prototype.length=function(){return 1},i.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},i.prototype.optimize=function(f){this.domNode[r.DATA_KEY]!=null&&delete this.domNode[r.DATA_KEY].mutations},i.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},i.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},i.prototype.replaceWith=function(f,e){var l=typeof f=="string"?r.create(f,e):f;return l.replace(this),l},i.prototype.split=function(f,e){return f===0?this:this.next},i.prototype.update=function(f,e){},i.prototype.wrap=function(f,e){var l=typeof f=="string"?r.create(f,e):f;return this.parent!=null&&this.parent.insertBefore(l,this.next),l.appendChild(this),l},i.blotName="abstract",i}();_.default=s},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(12),s=h(32),i=h(33),f=h(1),e=function(){function l(n){this.attributes={},this.domNode=n,this.build()}return l.prototype.attribute=function(n,t){t?n.add(this.domNode,t)&&(n.value(this.domNode)!=null?this.attributes[n.attrName]=n:delete this.attributes[n.attrName]):(n.remove(this.domNode),delete this.attributes[n.attrName])},l.prototype.build=function(){var n=this;this.attributes={};var t=r.default.keys(this.domNode),o=s.default.keys(this.domNode),d=i.default.keys(this.domNode);t.concat(o).concat(d).forEach(function(u){var c=f.query(u,f.Scope.ATTRIBUTE);c instanceof r.default&&(n.attributes[c.attrName]=c)})},l.prototype.copy=function(n){var t=this;Object.keys(this.attributes).forEach(function(o){var d=t.attributes[o].value(t.domNode);n.format(o,d)})},l.prototype.move=function(n){var t=this;this.copy(n),Object.keys(this.attributes).forEach(function(o){t.attributes[o].remove(t.domNode)}),this.attributes={}},l.prototype.values=function(){var n=this;return Object.keys(this.attributes).reduce(function(t,o){return t[o]=n.attributes[o].value(n.domNode),t},{})},l}();_.default=e},function(w,_,h){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t])};return function(l,n){e(l,n);function t(){this.constructor=l}l.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(12);function i(e,l){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter(function(t){return t.indexOf(l+"-")===0})}var f=function(e){r(l,e);function l(){return e!==null&&e.apply(this,arguments)||this}return l.keys=function(n){return(n.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},l.prototype.add=function(n,t){return this.canAdd(n,t)?(this.remove(n),n.classList.add(this.keyName+"-"+t),!0):!1},l.prototype.remove=function(n){var t=i(n,this.keyName);t.forEach(function(o){n.classList.remove(o)}),n.classList.length===0&&n.removeAttribute("class")},l.prototype.value=function(n){var t=i(n,this.keyName)[0]||"",o=t.slice(this.keyName.length+1);return this.canAdd(n,o)?o:""},l}(s.default);_.default=f},function(w,_,h){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t])};return function(l,n){e(l,n);function t(){this.constructor=l}l.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(12);function i(e){var l=e.split("-"),n=l.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return l[0]+n}var f=function(e){r(l,e);function l(){return e!==null&&e.apply(this,arguments)||this}return l.keys=function(n){return(n.getAttribute("style")||"").split(";").map(function(t){var o=t.split(":");return o[0].trim()})},l.prototype.add=function(n,t){return this.canAdd(n,t)?(n.style[i(this.keyName)]=t,!0):!1},l.prototype.remove=function(n){n.style[i(this.keyName)]="",n.getAttribute("style")||n.removeAttribute("style")},l.prototype.value=function(n){var t=n.style[i(this.keyName)];return this.canAdd(n,t)?t:""},l}(s.default);_.default=f},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function f(e,l){for(var n=0;n<l.length;n++){var t=l[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(e,l,n){return l&&f(e.prototype,l),n&&f(e,n),e}}();function s(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function f(e,l){s(this,f),this.quill=e,this.options=l,this.modules={}}return r(f,[{key:"init",value:function(){var l=this;Object.keys(this.options.modules).forEach(function(n){l.modules[n]==null&&l.addModule(n)})}},{key:"addModule",value:function(l){var n=this.quill.constructor.import("modules/"+l);return this.modules[l]=new n(this.quill,this.options.modules[l]||{}),this.modules[l]}}]),f}();i.DEFAULTS={modules:{}},i.themes={default:i},_.default=i},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function g(p,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,v,y){return v&&g(p.prototype,v),y&&g(p,y),p}}(),s=function g(p,v,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,v);if(b===void 0){var A=Object.getPrototypeOf(p);return A===null?void 0:g(A,v,y)}else{if("value"in b)return b.value;var x=b.get;return x===void 0?void 0:x.call(y)}},i=h(0),f=n(i),e=h(7),l=n(e);function n(g){return g&&g.__esModule?g:{default:g}}function t(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function o(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function d(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var u="\uFEFF",c=function(g){d(p,g);function p(v){t(this,p);var y=o(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,v));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(b){y.contentNode.appendChild(b)}),y.leftGuard=document.createTextNode(u),y.rightGuard=document.createTextNode(u),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return r(p,[{key:"index",value:function(y,b){return y===this.leftGuard?0:y===this.rightGuard?1:s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"index",this).call(this,y,b)}},{key:"restore",value:function(y){var b=void 0,A=void 0,x=y.data.split(u).join("");if(y===this.leftGuard)if(this.prev instanceof l.default){var E=this.prev.length();this.prev.insertAt(E,x),b={startNode:this.prev.domNode,startOffset:E+x.length}}else A=document.createTextNode(x),this.parent.insertBefore(f.default.create(A),this),b={startNode:A,startOffset:x.length};else y===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,x),b={startNode:this.next.domNode,startOffset:x.length}):(A=document.createTextNode(x),this.parent.insertBefore(f.default.create(A),this.next),b={startNode:A,startOffset:x.length}));return y.data=u,b}},{key:"update",value:function(y,b){var A=this;y.forEach(function(x){if(x.type==="characterData"&&(x.target===A.leftGuard||x.target===A.rightGuard)){var E=A.restore(x.target);E&&(b.range=E)}})}}]),p}(f.default.Embed);_.default=c},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.AlignStyle=_.AlignClass=_.AlignAttribute=void 0;var r=h(0),s=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var f={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},e=new s.default.Attributor.Attribute("align","align",f),l=new s.default.Attributor.Class("align","ql-align",f),n=new s.default.Attributor.Style("align","text-align",f);_.AlignAttribute=e,_.AlignClass=l,_.AlignStyle=n},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.BackgroundStyle=_.BackgroundClass=void 0;var r=h(0),s=f(r),i=h(26);function f(n){return n&&n.__esModule?n:{default:n}}var e=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),l=new i.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});_.BackgroundClass=e,_.BackgroundStyle=l},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.DirectionStyle=_.DirectionClass=_.DirectionAttribute=void 0;var r=h(0),s=i(r);function i(t){return t&&t.__esModule?t:{default:t}}var f={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},e=new s.default.Attributor.Attribute("direction","dir",f),l=new s.default.Attributor.Class("direction","ql-direction",f),n=new s.default.Attributor.Style("direction","direction",f);_.DirectionAttribute=e,_.DirectionClass=l,_.DirectionStyle=n},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.FontClass=_.FontStyle=void 0;var r=function(){function g(p,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,v,y){return v&&g(p.prototype,v),y&&g(p,y),p}}(),s=function g(p,v,y){p===null&&(p=Function.prototype);var b=Object.getOwnPropertyDescriptor(p,v);if(b===void 0){var A=Object.getPrototypeOf(p);return A===null?void 0:g(A,v,y)}else{if("value"in b)return b.value;var x=b.get;return x===void 0?void 0:x.call(y)}},i=h(0),f=e(i);function e(g){return g&&g.__esModule?g:{default:g}}function l(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function n(g,p){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:g}function t(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);g.prototype=Object.create(p&&p.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(g,p):g.__proto__=p)}var o={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new f.default.Attributor.Class("font","ql-font",o),u=function(g){t(p,g);function p(){return l(this,p),n(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return r(p,[{key:"value",value:function(y){return s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),p}(f.default.Attributor.Style),c=new u("font","font-family",o);_.FontStyle=c,_.FontClass=d},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.SizeStyle=_.SizeClass=void 0;var r=h(0),s=i(r);function i(l){return l&&l.__esModule?l:{default:l}}var f=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),e=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});_.SizeClass=f,_.SizeStyle=e},function(w,_,h){w.exports={align:{"":h(76),center:h(77),right:h(78),justify:h(79)},background:h(80),blockquote:h(81),bold:h(82),clean:h(83),code:h(58),"code-block":h(58),color:h(84),direction:{"":h(85),rtl:h(86)},float:{center:h(87),full:h(88),left:h(89),right:h(90)},formula:h(91),header:{1:h(92),2:h(93)},italic:h(94),image:h(95),indent:{"+1":h(96),"-1":h(97)},link:h(98),list:{ordered:h(99),bullet:h(100),check:h(101)},script:{sub:h(102),super:h(103)},strike:h(104),underline:h(105),video:h(106)}},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.getLastChangeIndex=_.default=void 0;var r=function(){function v(y,b){for(var A=0;A<b.length;A++){var x=b[A];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,b,A){return b&&v(y.prototype,b),A&&v(y,A),y}}(),s=h(0),i=t(s),f=h(5),e=t(f),l=h(9),n=t(l);function t(v){return v&&v.__esModule?v:{default:v}}function o(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function u(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var c=function(v){u(y,v);function y(b,A){o(this,y);var x=d(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b,A));return x.lastRecorded=0,x.ignoreChange=!1,x.clear(),x.quill.on(e.default.events.EDITOR_CHANGE,function(E,S,C,T){E!==e.default.events.TEXT_CHANGE||x.ignoreChange||(!x.options.userOnly||T===e.default.sources.USER?x.record(S,C):x.transform(S))}),x.quill.keyboard.addBinding({key:"Z",shortKey:!0},x.undo.bind(x)),x.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},x.redo.bind(x)),/Win/i.test(navigator.platform)&&x.quill.keyboard.addBinding({key:"Y",shortKey:!0},x.redo.bind(x)),x}return r(y,[{key:"change",value:function(A,x){if(this.stack[A].length!==0){var E=this.stack[A].pop();this.stack[x].push(E),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(E[A],e.default.sources.USER),this.ignoreChange=!1;var S=p(E[A]);this.quill.setSelection(S)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,x){if(A.ops.length!==0){this.stack.redo=[];var E=this.quill.getContents().diff(x),S=Date.now();if(this.lastRecorded+this.options.delay>S&&this.stack.undo.length>0){var C=this.stack.undo.pop();E=E.compose(C.undo),A=C.redo.compose(A)}else this.lastRecorded=S;this.stack.undo.push({redo:A,undo:E}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(x){x.undo=A.transform(x.undo,!0),x.redo=A.transform(x.redo,!0)}),this.stack.redo.forEach(function(x){x.undo=A.transform(x.undo,!0),x.redo=A.transform(x.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y}(n.default);c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function g(v){var y=v.ops[v.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(` +`):y.attributes!=null?Object.keys(y.attributes).some(function(b){return i.default.query(b,i.default.Scope.BLOCK)!=null}):!1}function p(v){var y=v.reduce(function(A,x){return A+=x.delete||0,A},0),b=v.length()-y;return g(v)&&(b-=1),b}_.default=c,_.getLastChangeIndex=p},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BaseTooltip=void 0;var r=function(){function D(B,j){for(var Q=0;Q<j.length;Q++){var X=j[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(B,X.key,X)}}return function(B,j,Q){return j&&D(B.prototype,j),Q&&D(B,Q),B}}(),s=function D(B,j,Q){B===null&&(B=Function.prototype);var X=Object.getOwnPropertyDescriptor(B,j);if(X===void 0){var Z=Object.getPrototypeOf(B);return Z===null?void 0:D(Z,j,Q)}else{if("value"in X)return X.value;var L=X.get;return L===void 0?void 0:L.call(Q)}},i=h(3),f=S(i),e=h(2),l=S(e),n=h(8),t=S(n),o=h(23),d=S(o),u=h(34),c=S(u),g=h(59),p=S(g),v=h(60),y=S(v),b=h(28),A=S(b),x=h(61),E=S(x);function S(D){return D&&D.__esModule?D:{default:D}}function C(D,B){if(!(D instanceof B))throw new TypeError("Cannot call a class as a function")}function T(D,B){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:D}function k(D,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);D.prototype=Object.create(B&&B.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(D,B):D.__proto__=B)}var M=[!1,"center","right","justify"],P=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],N=[!1,"serif","monospace"],F=["1","2","3",!1],q=["small",!1,"large","huge"],z=function(D){k(B,D);function B(j,Q){C(this,B);var X=T(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,j,Q)),Z=function L(W){if(!document.body.contains(j.root))return document.body.removeEventListener("click",L);X.tooltip!=null&&!X.tooltip.root.contains(W.target)&&document.activeElement!==X.tooltip.textbox&&!X.quill.hasFocus()&&X.tooltip.hide(),X.pickers!=null&&X.pickers.forEach(function(G){G.container.contains(W.target)||G.close()})};return j.emitter.listenDOM("click",document.body,Z),X}return r(B,[{key:"addModule",value:function(Q){var X=s(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"addModule",this).call(this,Q);return Q==="toolbar"&&this.extendToolbar(X),X}},{key:"buildButtons",value:function(Q,X){Q.forEach(function(Z){var L=Z.getAttribute("class")||"";L.split(/\s+/).forEach(function(W){if(W.startsWith("ql-")&&(W=W.slice(3),X[W]!=null))if(W==="direction")Z.innerHTML=X[W][""]+X[W].rtl;else if(typeof X[W]=="string")Z.innerHTML=X[W];else{var G=Z.value||"";G!=null&&X[W][G]&&(Z.innerHTML=X[W][G])}})})}},{key:"buildPickers",value:function(Q,X){var Z=this;this.pickers=Q.map(function(W){if(W.classList.contains("ql-align"))return W.querySelector("option")==null&&I(W,M),new y.default(W,X.align);if(W.classList.contains("ql-background")||W.classList.contains("ql-color")){var G=W.classList.contains("ql-background")?"background":"color";return W.querySelector("option")==null&&I(W,P,G==="background"?"#ffffff":"#000000"),new p.default(W,X[G])}else return W.querySelector("option")==null&&(W.classList.contains("ql-font")?I(W,N):W.classList.contains("ql-header")?I(W,F):W.classList.contains("ql-size")&&I(W,q)),new A.default(W)});var L=function(){Z.pickers.forEach(function(G){G.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,L)}}]),B}(c.default);z.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var B=this,j=this.container.querySelector("input.ql-image[type=file]");j==null&&(j=document.createElement("input"),j.setAttribute("type","file"),j.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),j.classList.add("ql-image"),j.addEventListener("change",function(){if(j.files!=null&&j.files[0]!=null){var Q=new FileReader;Q.onload=function(X){var Z=B.quill.getSelection(!0);B.quill.updateContents(new l.default().retain(Z.index).delete(Z.length).insert({image:X.target.result}),t.default.sources.USER),B.quill.setSelection(Z.index+1,t.default.sources.SILENT),j.value=""},Q.readAsDataURL(j.files[0])}}),this.container.appendChild(j)),j.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var O=function(D){k(B,D);function B(j,Q){C(this,B);var X=T(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,j,Q));return X.textbox=X.root.querySelector('input[type="text"]'),X.listen(),X}return r(B,[{key:"listen",value:function(){var Q=this;this.textbox.addEventListener("keydown",function(X){d.default.match(X,"enter")?(Q.save(),X.preventDefault()):d.default.match(X,"escape")&&(Q.cancel(),X.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),X!=null?this.textbox.value=X:Q!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Q)||""),this.root.setAttribute("data-mode",Q)}},{key:"restoreFocus",value:function(){var Q=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Q}},{key:"save",value:function(){var Q=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var X=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Q,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Q,t.default.sources.USER)),this.quill.root.scrollTop=X;break}case"video":Q=R(Q);case"formula":{if(!Q)break;var Z=this.quill.getSelection(!0);if(Z!=null){var L=Z.index+Z.length;this.quill.insertEmbed(L,this.root.getAttribute("data-mode"),Q,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(L+1," ",t.default.sources.USER),this.quill.setSelection(L+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),B}(E.default);function R(D){var B=D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return B?(B[1]||"https")+"://www.youtube.com/embed/"+B[2]+"?showinfo=0":(B=D.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(B[1]||"https")+"://player.vimeo.com/video/"+B[2]+"/":D}function I(D,B){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;B.forEach(function(Q){var X=document.createElement("option");Q===j?X.setAttribute("selected","selected"):X.setAttribute("value",Q),D.appendChild(X)})}_.BaseTooltip=O,_.default=z},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var i=[],f=0;f<arguments.length;f++)i[f]=arguments[f];this.insertBefore(i[0],null),i.length>1&&this.append.apply(this,i.slice(1))},s.prototype.contains=function(i){for(var f,e=this.iterator();f=e();)if(f===i)return!0;return!1},s.prototype.insertBefore=function(i,f){i&&(i.next=f,f!=null?(i.prev=f.prev,f.prev!=null&&(f.prev.next=i),f.prev=i,f===this.head&&(this.head=i)):this.tail!=null?(this.tail.next=i,i.prev=this.tail,this.tail=i):(i.prev=null,this.head=this.tail=i),this.length+=1)},s.prototype.offset=function(i){for(var f=0,e=this.head;e!=null;){if(e===i)return f;f+=e.length(),e=e.next}return-1},s.prototype.remove=function(i){this.contains(i)&&(i.prev!=null&&(i.prev.next=i.next),i.next!=null&&(i.next.prev=i.prev),i===this.head&&(this.head=i.next),i===this.tail&&(this.tail=i.prev),this.length-=1)},s.prototype.iterator=function(i){return i===void 0&&(i=this.head),function(){var f=i;return i!=null&&(i=i.next),f}},s.prototype.find=function(i,f){f===void 0&&(f=!1);for(var e,l=this.iterator();e=l();){var n=e.length();if(i<n||f&&i===n&&(e.next==null||e.next.length()!==0))return[e,i];i-=n}return[null,0]},s.prototype.forEach=function(i){for(var f,e=this.iterator();f=e();)i(f)},s.prototype.forEachAt=function(i,f,e){if(!(f<=0))for(var l=this.find(i),n=l[0],t=l[1],o,d=i-t,u=this.iterator(n);(o=u())&&d<i+f;){var c=o.length();i>d?e(o,i-d,Math.min(f,d+c-i)):e(o,0,Math.min(c,i+f-d)),d+=c}},s.prototype.map=function(i){return this.reduce(function(f,e){return f.push(i(e)),f},[])},s.prototype.reduce=function(i,f){for(var e,l=this.iterator();e=l();)f=i(f,e);return f},s}();_.default=r},function(w,_,h){var r=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var d in o)o.hasOwnProperty(d)&&(t[d]=o[d])};return function(t,o){n(t,o);function d(){this.constructor=t}t.prototype=o===null?Object.create(o):(d.prototype=o.prototype,new d)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(17),i=h(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},e=100,l=function(n){r(t,n);function t(o){var d=n.call(this,o)||this;return d.scroll=d,d.observer=new MutationObserver(function(u){d.update(u)}),d.observer.observe(d.domNode,f),d.attach(),d}return t.prototype.detach=function(){n.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(o,d){this.update(),o===0&&d===this.length()?this.children.forEach(function(u){u.remove()}):n.prototype.deleteAt.call(this,o,d)},t.prototype.formatAt=function(o,d,u,c){this.update(),n.prototype.formatAt.call(this,o,d,u,c)},t.prototype.insertAt=function(o,d,u){this.update(),n.prototype.insertAt.call(this,o,d,u)},t.prototype.optimize=function(o,d){var u=this;o===void 0&&(o=[]),d===void 0&&(d={}),n.prototype.optimize.call(this,d);for(var c=[].slice.call(this.observer.takeRecords());c.length>0;)o.push(c.pop());for(var g=function(b,A){A===void 0&&(A=!0),!(b==null||b===u)&&b.domNode.parentNode!=null&&(b.domNode[i.DATA_KEY].mutations==null&&(b.domNode[i.DATA_KEY].mutations=[]),A&&g(b.parent))},p=function(b){b.domNode[i.DATA_KEY]==null||b.domNode[i.DATA_KEY].mutations==null||(b instanceof s.default&&b.children.forEach(p),b.optimize(d))},v=o,y=0;v.length>0;y+=1){if(y>=e)throw new Error("[Parchment] Maximum optimize iterations reached");for(v.forEach(function(b){var A=i.find(b.target,!0);A!=null&&(A.domNode===b.target&&(b.type==="childList"?(g(i.find(b.previousSibling,!1)),[].forEach.call(b.addedNodes,function(x){var E=i.find(x,!1);g(E,!1),E instanceof s.default&&E.children.forEach(function(S){g(S,!1)})})):b.type==="attributes"&&g(A.prev)),g(A))}),this.children.forEach(p),v=[].slice.call(this.observer.takeRecords()),c=v.slice();c.length>0;)o.push(c.pop())}},t.prototype.update=function(o,d){var u=this;d===void 0&&(d={}),o=o||this.observer.takeRecords(),o.map(function(c){var g=i.find(c.target,!0);return g==null?null:g.domNode[i.DATA_KEY].mutations==null?(g.domNode[i.DATA_KEY].mutations=[c],g):(g.domNode[i.DATA_KEY].mutations.push(c),null)}).forEach(function(c){c==null||c===u||c.domNode[i.DATA_KEY]==null||c.update(c.domNode[i.DATA_KEY].mutations||[],d)}),this.domNode[i.DATA_KEY].mutations!=null&&n.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,d),this.optimize(o,d)},t.blotName="scroll",t.defaultChild="block",t.scope=i.Scope.BLOCK_BLOT,t.tagName="DIV",t}(s.default);_.default=l},function(w,_,h){var r=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o])};return function(n,t){l(n,t);function o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(18),i=h(1);function f(l,n){if(Object.keys(l).length!==Object.keys(n).length)return!1;for(var t in l)if(l[t]!==n[t])return!1;return!0}var e=function(l){r(n,l);function n(){return l!==null&&l.apply(this,arguments)||this}return n.formats=function(t){if(t.tagName!==n.tagName)return l.formats.call(this,t)},n.prototype.format=function(t,o){var d=this;t===this.statics.blotName&&!o?(this.children.forEach(function(u){u instanceof s.default||(u=u.wrap(n.blotName,!0)),d.attributes.copy(u)}),this.unwrap()):l.prototype.format.call(this,t,o)},n.prototype.formatAt=function(t,o,d,u){if(this.formats()[d]!=null||i.query(d,i.Scope.ATTRIBUTE)){var c=this.isolate(t,o);c.format(d,u)}else l.prototype.formatAt.call(this,t,o,d,u)},n.prototype.optimize=function(t){l.prototype.optimize.call(this,t);var o=this.formats();if(Object.keys(o).length===0)return this.unwrap();var d=this.next;d instanceof n&&d.prev===this&&f(o,d.formats())&&(d.moveChildren(this),d.remove())},n.blotName="inline",n.scope=i.Scope.INLINE_BLOT,n.tagName="SPAN",n}(s.default);_.default=e},function(w,_,h){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t])};return function(l,n){e(l,n);function t(){this.constructor=l}l.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(18),i=h(1),f=function(e){r(l,e);function l(){return e!==null&&e.apply(this,arguments)||this}return l.formats=function(n){var t=i.query(l.blotName).tagName;if(n.tagName!==t)return e.formats.call(this,n)},l.prototype.format=function(n,t){i.query(n,i.Scope.BLOCK)!=null&&(n===this.statics.blotName&&!t?this.replaceWith(l.blotName):e.prototype.format.call(this,n,t))},l.prototype.formatAt=function(n,t,o,d){i.query(o,i.Scope.BLOCK)!=null?this.format(o,d):e.prototype.formatAt.call(this,n,t,o,d)},l.prototype.insertAt=function(n,t,o){if(o==null||i.query(t,i.Scope.INLINE)!=null)e.prototype.insertAt.call(this,n,t,o);else{var d=this.split(n),u=i.create(t,o);d.parent.insertBefore(u,d)}},l.prototype.update=function(n,t){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,n,t)},l.blotName="block",l.scope=i.Scope.BLOCK_BLOT,l.tagName="P",l}(s.default);_.default=f},function(w,_,h){var r=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var n in l)l.hasOwnProperty(n)&&(e[n]=l[n])};return function(e,l){f(e,l);function n(){this.constructor=e}e.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(19),i=function(f){r(e,f);function e(){return f!==null&&f.apply(this,arguments)||this}return e.formats=function(l){},e.prototype.format=function(l,n){f.prototype.formatAt.call(this,0,this.length(),l,n)},e.prototype.formatAt=function(l,n,t,o){l===0&&n===this.length()?this.format(t,o):f.prototype.formatAt.call(this,l,n,t,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(s.default);_.default=i},function(w,_,h){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t])};return function(l,n){e(l,n);function t(){this.constructor=l}l.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();Object.defineProperty(_,"__esModule",{value:!0});var s=h(19),i=h(1),f=function(e){r(l,e);function l(n){var t=e.call(this,n)||this;return t.text=t.statics.value(t.domNode),t}return l.create=function(n){return document.createTextNode(n)},l.value=function(n){var t=n.data;return t.normalize&&(t=t.normalize()),t},l.prototype.deleteAt=function(n,t){this.domNode.data=this.text=this.text.slice(0,n)+this.text.slice(n+t)},l.prototype.index=function(n,t){return this.domNode===n?t:-1},l.prototype.insertAt=function(n,t,o){o==null?(this.text=this.text.slice(0,n)+t+this.text.slice(n),this.domNode.data=this.text):e.prototype.insertAt.call(this,n,t,o)},l.prototype.length=function(){return this.text.length},l.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof l&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},l.prototype.position=function(n,t){return[this.domNode,n]},l.prototype.split=function(n,t){if(t===void 0&&(t=!1),!t){if(n===0)return this;if(n===this.length())return this.next}var o=i.create(this.domNode.splitText(n));return this.parent.insertBefore(o,this.next),this.text=this.statics.value(this.domNode),o},l.prototype.update=function(n,t){var o=this;n.some(function(d){return d.type==="characterData"&&d.target===o.domNode})&&(this.text=this.statics.value(this.domNode))},l.prototype.value=function(){return this.text},l.blotName="text",l.scope=i.Scope.INLINE_BLOT,l}(s.default);_.default=f},function(w,_,h){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(i,f){return arguments.length>1&&!this.contains(i)==!f?f:s.call(this,i)}}String.prototype.startsWith||(String.prototype.startsWith=function(i,f){return f=f||0,this.substr(f,i.length)===i}),String.prototype.endsWith||(String.prototype.endsWith=function(i,f){var e=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>e.length)&&(f=e.length),f-=i.length;var l=e.indexOf(i,f);return l!==-1&&l===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var e=Object(this),l=e.length>>>0,n=arguments[1],t,o=0;o<l;o++)if(t=e[o],f.call(n,t,o,e))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(w,_){var h=-1,r=1,s=0;function i(y,b,A){if(y==b)return y?[[s,y]]:[];(A<0||y.length<A)&&(A=null);var x=n(y,b),E=y.substring(0,x);y=y.substring(x),b=b.substring(x),x=t(y,b);var S=y.substring(y.length-x);y=y.substring(0,y.length-x),b=b.substring(0,b.length-x);var C=f(y,b);return E&&C.unshift([s,E]),S&&C.push([s,S]),d(C),A!=null&&(C=g(C,A)),C=p(C),C}function f(y,b){var A;if(!y)return[[r,b]];if(!b)return[[h,y]];var x=y.length>b.length?y:b,E=y.length>b.length?b:y,S=x.indexOf(E);if(S!=-1)return A=[[r,x.substring(0,S)],[s,E],[r,x.substring(S+E.length)]],y.length>b.length&&(A[0][0]=A[2][0]=h),A;if(E.length==1)return[[h,y],[r,b]];var C=o(y,b);if(C){var T=C[0],k=C[1],M=C[2],P=C[3],N=C[4],F=i(T,M),q=i(k,P);return F.concat([[s,N]],q)}return e(y,b)}function e(y,b){for(var A=y.length,x=b.length,E=Math.ceil((A+x)/2),S=E,C=2*E,T=new Array(C),k=new Array(C),M=0;M<C;M++)T[M]=-1,k[M]=-1;T[S+1]=0,k[S+1]=0;for(var P=A-x,N=P%2!=0,F=0,q=0,z=0,O=0,R=0;R<E;R++){for(var I=-R+F;I<=R-q;I+=2){var D=S+I,B;I==-R||I!=R&&T[D-1]<T[D+1]?B=T[D+1]:B=T[D-1]+1;for(var j=B-I;B<A&&j<x&&y.charAt(B)==b.charAt(j);)B++,j++;if(T[D]=B,B>A)q+=2;else if(j>x)F+=2;else if(N){var Q=S+P-I;if(Q>=0&&Q<C&&k[Q]!=-1){var X=A-k[Q];if(B>=X)return l(y,b,B,j)}}}for(var Z=-R+z;Z<=R-O;Z+=2){var Q=S+Z,X;Z==-R||Z!=R&&k[Q-1]<k[Q+1]?X=k[Q+1]:X=k[Q-1]+1;for(var L=X-Z;X<A&&L<x&&y.charAt(A-X-1)==b.charAt(x-L-1);)X++,L++;if(k[Q]=X,X>A)O+=2;else if(L>x)z+=2;else if(!N){var D=S+P-Z;if(D>=0&&D<C&&T[D]!=-1){var B=T[D],j=S+B-D;if(X=A-X,B>=X)return l(y,b,B,j)}}}}return[[h,y],[r,b]]}function l(y,b,A,x){var E=y.substring(0,A),S=b.substring(0,x),C=y.substring(A),T=b.substring(x),k=i(E,S),M=i(C,T);return k.concat(M)}function n(y,b){if(!y||!b||y.charAt(0)!=b.charAt(0))return 0;for(var A=0,x=Math.min(y.length,b.length),E=x,S=0;A<E;)y.substring(S,E)==b.substring(S,E)?(A=E,S=A):x=E,E=Math.floor((x-A)/2+A);return E}function t(y,b){if(!y||!b||y.charAt(y.length-1)!=b.charAt(b.length-1))return 0;for(var A=0,x=Math.min(y.length,b.length),E=x,S=0;A<E;)y.substring(y.length-E,y.length-S)==b.substring(b.length-E,b.length-S)?(A=E,S=A):x=E,E=Math.floor((x-A)/2+A);return E}function o(y,b){var A=y.length>b.length?y:b,x=y.length>b.length?b:y;if(A.length<4||x.length*2<A.length)return null;function E(q,z,O){for(var R=q.substring(O,O+Math.floor(q.length/4)),I=-1,D="",B,j,Q,X;(I=z.indexOf(R,I+1))!=-1;){var Z=n(q.substring(O),z.substring(I)),L=t(q.substring(0,O),z.substring(0,I));D.length<L+Z&&(D=z.substring(I-L,I)+z.substring(I,I+Z),B=q.substring(0,O-L),j=q.substring(O+Z),Q=z.substring(0,I-L),X=z.substring(I+Z))}return D.length*2>=q.length?[B,j,Q,X,D]:null}var S=E(A,x,Math.ceil(A.length/4)),C=E(A,x,Math.ceil(A.length/2)),T;if(!S&&!C)return null;C?S?T=S[4].length>C[4].length?S:C:T=C:T=S;var k,M,P,N;y.length>b.length?(k=T[0],M=T[1],P=T[2],N=T[3]):(P=T[0],N=T[1],k=T[2],M=T[3]);var F=T[4];return[k,M,P,N,F]}function d(y){y.push([s,""]);for(var b=0,A=0,x=0,E="",S="",C;b<y.length;)switch(y[b][0]){case r:x++,S+=y[b][1],b++;break;case h:A++,E+=y[b][1],b++;break;case s:A+x>1?(A!==0&&x!==0&&(C=n(S,E),C!==0&&(b-A-x>0&&y[b-A-x-1][0]==s?y[b-A-x-1][1]+=S.substring(0,C):(y.splice(0,0,[s,S.substring(0,C)]),b++),S=S.substring(C),E=E.substring(C)),C=t(S,E),C!==0&&(y[b][1]=S.substring(S.length-C)+y[b][1],S=S.substring(0,S.length-C),E=E.substring(0,E.length-C))),A===0?y.splice(b-x,A+x,[r,S]):x===0?y.splice(b-A,A+x,[h,E]):y.splice(b-A-x,A+x,[h,E],[r,S]),b=b-A-x+(A?1:0)+(x?1:0)+1):b!==0&&y[b-1][0]==s?(y[b-1][1]+=y[b][1],y.splice(b,1)):b++,x=0,A=0,E="",S="";break}y[y.length-1][1]===""&&y.pop();var T=!1;for(b=1;b<y.length-1;)y[b-1][0]==s&&y[b+1][0]==s&&(y[b][1].substring(y[b][1].length-y[b-1][1].length)==y[b-1][1]?(y[b][1]=y[b-1][1]+y[b][1].substring(0,y[b][1].length-y[b-1][1].length),y[b+1][1]=y[b-1][1]+y[b+1][1],y.splice(b-1,1),T=!0):y[b][1].substring(0,y[b+1][1].length)==y[b+1][1]&&(y[b-1][1]+=y[b+1][1],y[b][1]=y[b][1].substring(y[b+1][1].length)+y[b+1][1],y.splice(b+1,1),T=!0)),b++;T&&d(y)}var u=i;u.INSERT=r,u.DELETE=h,u.EQUAL=s,w.exports=u;function c(y,b){if(b===0)return[s,y];for(var A=0,x=0;x<y.length;x++){var E=y[x];if(E[0]===h||E[0]===s){var S=A+E[1].length;if(b===S)return[x+1,y];if(b<S){y=y.slice();var C=b-A,T=[E[0],E[1].slice(0,C)],k=[E[0],E[1].slice(C)];return y.splice(x,1,T,k),[x+1,y]}else A=S}}throw new Error("cursor_pos is out of bounds!")}function g(y,b){var A=c(y,b),x=A[1],E=A[0],S=x[E],C=x[E+1];if(S==null)return y;if(S[0]!==s)return y;if(C!=null&&S[1]+C[1]===C[1]+S[1])return x.splice(E,2,C,S),v(x,E,2);if(C!=null&&C[1].indexOf(S[1])===0){x.splice(E,2,[C[0],S[1]],[0,S[1]]);var T=C[1].slice(S[1].length);return T.length>0&&x.splice(E+2,0,[C[0],T]),v(x,E,3)}else return y}function p(y){for(var b=!1,A=function(C){return C.charCodeAt(0)>=56320&&C.charCodeAt(0)<=57343},x=function(C){return C.charCodeAt(C.length-1)>=55296&&C.charCodeAt(C.length-1)<=56319},E=2;E<y.length;E+=1)y[E-2][0]===s&&x(y[E-2][1])&&y[E-1][0]===h&&A(y[E-1][1])&&y[E][0]===r&&A(y[E][1])&&(b=!0,y[E-1][1]=y[E-2][1].slice(-1)+y[E-1][1],y[E][1]=y[E-2][1].slice(-1)+y[E][1],y[E-2][1]=y[E-2][1].slice(0,-1));if(!b)return y;for(var S=[],E=0;E<y.length;E+=1)y[E][1].length>0&&S.push(y[E]);return S}function v(y,b,A){for(var x=b+A-1;x>=0&&x>=b-1;x--)if(x+1<y.length){var E=y[x],S=y[x+1];E[0]===S[1]&&y.splice(x,2,[E[0],E[1]+S[1]])}return y}},function(w,_){_=w.exports=typeof Object.keys=="function"?Object.keys:h,_.shim=h;function h(r){var s=[];for(var i in r)s.push(i);return s}},function(w,_){var h=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";_=w.exports=h?r:s,_.supported=r;function r(i){return Object.prototype.toString.call(i)=="[object Arguments]"}_.unsupported=s;function s(i){return i&&typeof i=="object"&&typeof i.length=="number"&&Object.prototype.hasOwnProperty.call(i,"callee")&&!Object.prototype.propertyIsEnumerable.call(i,"callee")||!1}},function(w,_){var h=Object.prototype.hasOwnProperty,r="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(r=!1));function i(e,l,n){this.fn=e,this.context=l,this.once=n||!1}function f(){this._events=new s,this._eventsCount=0}f.prototype.eventNames=function(){var l=[],n,t;if(this._eventsCount===0)return l;for(t in n=this._events)h.call(n,t)&&l.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(n)):l},f.prototype.listeners=function(l,n){var t=r?r+l:l,o=this._events[t];if(n)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var d=0,u=o.length,c=new Array(u);d<u;d++)c[d]=o[d].fn;return c},f.prototype.emit=function(l,n,t,o,d,u){var c=r?r+l:l;if(!this._events[c])return!1;var g=this._events[c],p=arguments.length,v,y;if(g.fn){switch(g.once&&this.removeListener(l,g.fn,void 0,!0),p){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,n),!0;case 3:return g.fn.call(g.context,n,t),!0;case 4:return g.fn.call(g.context,n,t,o),!0;case 5:return g.fn.call(g.context,n,t,o,d),!0;case 6:return g.fn.call(g.context,n,t,o,d,u),!0}for(y=1,v=new Array(p-1);y<p;y++)v[y-1]=arguments[y];g.fn.apply(g.context,v)}else{var b=g.length,A;for(y=0;y<b;y++)switch(g[y].once&&this.removeListener(l,g[y].fn,void 0,!0),p){case 1:g[y].fn.call(g[y].context);break;case 2:g[y].fn.call(g[y].context,n);break;case 3:g[y].fn.call(g[y].context,n,t);break;case 4:g[y].fn.call(g[y].context,n,t,o);break;default:if(!v)for(A=1,v=new Array(p-1);A<p;A++)v[A-1]=arguments[A];g[y].fn.apply(g[y].context,v)}}return!0},f.prototype.on=function(l,n,t){var o=new i(n,t||this),d=r?r+l:l;return this._events[d]?this._events[d].fn?this._events[d]=[this._events[d],o]:this._events[d].push(o):(this._events[d]=o,this._eventsCount++),this},f.prototype.once=function(l,n,t){var o=new i(n,t||this,!0),d=r?r+l:l;return this._events[d]?this._events[d].fn?this._events[d]=[this._events[d],o]:this._events[d].push(o):(this._events[d]=o,this._eventsCount++),this},f.prototype.removeListener=function(l,n,t,o){var d=r?r+l:l;if(!this._events[d])return this;if(!n)return--this._eventsCount===0?this._events=new s:delete this._events[d],this;var u=this._events[d];if(u.fn)u.fn===n&&(!o||u.once)&&(!t||u.context===t)&&(--this._eventsCount===0?this._events=new s:delete this._events[d]);else{for(var c=0,g=[],p=u.length;c<p;c++)(u[c].fn!==n||o&&!u[c].once||t&&u[c].context!==t)&&g.push(u[c]);g.length?this._events[d]=g.length===1?g[0]:g:--this._eventsCount===0?this._events=new s:delete this._events[d]}return this},f.prototype.removeAllListeners=function(l){var n;return l?(n=r?r+l:l,this._events[n]&&(--this._eventsCount===0?this._events=new s:delete this._events[n])):(this._events=new s,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=r,f.EventEmitter=f,typeof w<"u"&&(w.exports=f)},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.matchText=_.matchSpacing=_.matchNewline=_.matchBlot=_.matchAttributor=_.default=void 0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},s=function(){function se(ne,re){var Y=[],V=!0,oe=!1,fe=void 0;try{for(var ce=ne[Symbol.iterator](),he;!(V=(he=ce.next()).done)&&(Y.push(he.value),!(re&&Y.length===re));V=!0);}catch(le){oe=!0,fe=le}finally{try{!V&&ce.return&&ce.return()}finally{if(oe)throw fe}}return Y}return function(ne,re){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return se(ne,re);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function se(ne,re){for(var Y=0;Y<re.length;Y++){var V=re[Y];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(ne,V.key,V)}}return function(ne,re,Y){return re&&se(ne.prototype,re),Y&&se(ne,Y),ne}}(),f=h(3),e=k(f),l=h(2),n=k(l),t=h(0),o=k(t),d=h(5),u=k(d),c=h(10),g=k(c),p=h(9),v=k(p),y=h(36),b=h(37),A=h(13),x=k(A),E=h(26),S=h(38),C=h(39),T=h(40);function k(se){return se&&se.__esModule?se:{default:se}}function M(se,ne,re){return ne in se?Object.defineProperty(se,ne,{value:re,enumerable:!0,configurable:!0,writable:!0}):se[ne]=re,se}function P(se,ne){if(!(se instanceof ne))throw new TypeError("Cannot call a class as a function")}function N(se,ne){if(!se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:se}function F(se,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ne);se.prototype=Object.create(ne&&ne.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),ne&&(Object.setPrototypeOf?Object.setPrototypeOf(se,ne):se.__proto__=ne)}var q=(0,g.default)("quill:clipboard"),z="__ql-matcher",O=[[Node.TEXT_NODE,ie],[Node.TEXT_NODE,K],["br",J],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,te],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,ee],["li",U],["b",L.bind(L,"bold")],["i",L.bind(L,"italic")],["style",H]],R=[y.AlignAttribute,S.DirectionAttribute].reduce(function(se,ne){return se[ne.keyName]=ne,se},{}),I=[y.AlignStyle,b.BackgroundStyle,E.ColorStyle,S.DirectionStyle,C.FontStyle,T.SizeStyle].reduce(function(se,ne){return se[ne.keyName]=ne,se},{}),D=function(se){F(ne,se);function ne(re,Y){P(this,ne);var V=N(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this,re,Y));return V.quill.root.addEventListener("paste",V.onPaste.bind(V)),V.container=V.quill.addContainer("ql-clipboard"),V.container.setAttribute("contenteditable",!0),V.container.setAttribute("tabindex",-1),V.matchers=[],O.concat(V.options.matchers).forEach(function(oe){var fe=s(oe,2),ce=fe[0],he=fe[1];!Y.matchVisual&&he===te||V.addMatcher(ce,he)}),V}return i(ne,[{key:"addMatcher",value:function(Y,V){this.matchers.push([Y,V])}},{key:"convert",value:function(Y){if(typeof Y=="string")return this.container.innerHTML=Y.replace(/\>\r?\n +\</g,"><"),this.convert();var V=this.quill.getFormat(this.quill.selection.savedRange.index);if(V[x.default.blotName]){var oe=this.container.innerText;return this.container.innerHTML="",new n.default().insert(oe,M({},x.default.blotName,V[x.default.blotName]))}var fe=this.prepareMatching(),ce=s(fe,2),he=ce[0],le=ce[1],ae=Z(this.container,he,le);return Q(ae,` +`)&&ae.ops[ae.ops.length-1].attributes==null&&(ae=ae.compose(new n.default().retain(ae.length()-1).delete(1))),q.log("convert",this.container.innerHTML,ae),this.container.innerHTML="",ae}},{key:"dangerouslyPasteHTML",value:function(Y,V){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof Y=="string")this.quill.setContents(this.convert(Y),V),this.quill.setSelection(0,u.default.sources.SILENT);else{var fe=this.convert(V);this.quill.updateContents(new n.default().retain(Y).concat(fe),oe),this.quill.setSelection(Y+fe.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(Y){var V=this;if(!(Y.defaultPrevented||!this.quill.isEnabled())){var oe=this.quill.getSelection(),fe=new n.default().retain(oe.index),ce=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){fe=fe.concat(V.convert()).delete(oe.length),V.quill.updateContents(fe,u.default.sources.USER),V.quill.setSelection(fe.length()-oe.length,u.default.sources.SILENT),V.quill.scrollingContainer.scrollTop=ce,V.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Y=this,V=[],oe=[];return this.matchers.forEach(function(fe){var ce=s(fe,2),he=ce[0],le=ce[1];switch(he){case Node.TEXT_NODE:oe.push(le);break;case Node.ELEMENT_NODE:V.push(le);break;default:[].forEach.call(Y.container.querySelectorAll(he),function(ae){ae[z]=ae[z]||[],ae[z].push(le)});break}}),[V,oe]}}]),ne}(v.default);D.DEFAULTS={matchers:[],matchVisual:!0};function B(se,ne,re){return(typeof ne>"u"?"undefined":r(ne))==="object"?Object.keys(ne).reduce(function(Y,V){return B(Y,V,ne[V])},se):se.reduce(function(Y,V){return V.attributes&&V.attributes[ne]?Y.push(V):Y.insert(V.insert,(0,e.default)({},M({},ne,re),V.attributes))},new n.default)}function j(se){if(se.nodeType!==Node.ELEMENT_NODE)return{};var ne="__ql-computed-style";return se[ne]||(se[ne]=window.getComputedStyle(se))}function Q(se,ne){for(var re="",Y=se.ops.length-1;Y>=0&&re.length<ne.length;--Y){var V=se.ops[Y];if(typeof V.insert!="string")break;re=V.insert+re}return re.slice(-1*ne.length)===ne}function X(se){if(se.childNodes.length===0)return!1;var ne=j(se);return["block","list-item"].indexOf(ne.display)>-1}function Z(se,ne,re){return se.nodeType===se.TEXT_NODE?re.reduce(function(Y,V){return V(se,Y)},new n.default):se.nodeType===se.ELEMENT_NODE?[].reduce.call(se.childNodes||[],function(Y,V){var oe=Z(V,ne,re);return V.nodeType===se.ELEMENT_NODE&&(oe=ne.reduce(function(fe,ce){return ce(V,fe)},oe),oe=(V[z]||[]).reduce(function(fe,ce){return ce(V,fe)},oe)),Y.concat(oe)},new n.default):new n.default}function L(se,ne,re){return B(re,se,!0)}function W(se,ne){var re=o.default.Attributor.Attribute.keys(se),Y=o.default.Attributor.Class.keys(se),V=o.default.Attributor.Style.keys(se),oe={};return re.concat(Y).concat(V).forEach(function(fe){var ce=o.default.query(fe,o.default.Scope.ATTRIBUTE);ce!=null&&(oe[ce.attrName]=ce.value(se),oe[ce.attrName])||(ce=R[fe],ce!=null&&(ce.attrName===fe||ce.keyName===fe)&&(oe[ce.attrName]=ce.value(se)||void 0),ce=I[fe],ce!=null&&(ce.attrName===fe||ce.keyName===fe)&&(ce=I[fe],oe[ce.attrName]=ce.value(se)||void 0))}),Object.keys(oe).length>0&&(ne=B(ne,oe)),ne}function G(se,ne){var re=o.default.query(se);if(re==null)return ne;if(re.prototype instanceof o.default.Embed){var Y={},V=re.value(se);V!=null&&(Y[re.blotName]=V,ne=new n.default().insert(Y,re.formats(se)))}else typeof re.formats=="function"&&(ne=B(ne,re.blotName,re.formats(se)));return ne}function J(se,ne){return Q(ne,` +`)||ne.insert(` +`),ne}function H(){return new n.default}function U(se,ne){var re=o.default.query(se);if(re==null||re.blotName!=="list-item"||!Q(ne,` +`))return ne;for(var Y=-1,V=se.parentNode;!V.classList.contains("ql-clipboard");)(o.default.query(V)||{}).blotName==="list"&&(Y+=1),V=V.parentNode;return Y<=0?ne:ne.compose(new n.default().retain(ne.length()-1).retain(1,{indent:Y}))}function K(se,ne){return Q(ne,` +`)||(X(se)||ne.length()>0&&se.nextSibling&&X(se.nextSibling))&&ne.insert(` +`),ne}function te(se,ne){if(X(se)&&se.nextElementSibling!=null&&!Q(ne,` + +`)){var re=se.offsetHeight+parseFloat(j(se).marginTop)+parseFloat(j(se).marginBottom);se.nextElementSibling.offsetTop>se.offsetTop+re*1.5&&ne.insert(` +`)}return ne}function ee(se,ne){var re={},Y=se.style||{};return Y.fontStyle&&j(se).fontStyle==="italic"&&(re.italic=!0),Y.fontWeight&&(j(se).fontWeight.startsWith("bold")||parseInt(j(se).fontWeight)>=700)&&(re.bold=!0),Object.keys(re).length>0&&(ne=B(ne,re)),parseFloat(Y.textIndent||0)>0&&(ne=new n.default().insert(" ").concat(ne)),ne}function ie(se,ne){var re=se.data;if(se.parentNode.tagName==="O:P")return ne.insert(re.trim());if(re.trim().length===0&&se.parentNode.classList.contains("ql-clipboard"))return ne;if(!j(se.parentNode).whiteSpace.startsWith("pre")){var Y=function(oe,fe){return fe=fe.replace(/[^\u00a0]/g,""),fe.length<1&&oe?" ":fe};re=re.replace(/\r\n/g," ").replace(/\n/g," "),re=re.replace(/\s\s+/g,Y.bind(Y,!0)),(se.previousSibling==null&&X(se.parentNode)||se.previousSibling!=null&&X(se.previousSibling))&&(re=re.replace(/^\s+/,Y.bind(Y,!1))),(se.nextSibling==null&&X(se.parentNode)||se.nextSibling!=null&&X(se.nextSibling))&&(re=re.replace(/\s+$/,Y.bind(Y,!1)))}return ne.insert(re)}_.default=D,_.matchAttributor=W,_.matchBlot=G,_.matchNewline=K,_.matchSpacing=te,_.matchText=ie},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function d(u,c){for(var g=0;g<c.length;g++){var p=c[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,c,g){return c&&d(u.prototype,c),g&&d(u,g),u}}(),s=function d(u,c,g){u===null&&(u=Function.prototype);var p=Object.getOwnPropertyDescriptor(u,c);if(p===void 0){var v=Object.getPrototypeOf(u);return v===null?void 0:d(v,c,g)}else{if("value"in p)return p.value;var y=p.get;return y===void 0?void 0:y.call(g)}},i=h(6),f=e(i);function e(d){return d&&d.__esModule?d:{default:d}}function l(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function n(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function t(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var o=function(d){t(u,d);function u(){return l(this,u),n(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return r(u,[{key:"optimize",value:function(g){s(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u}(f.default);o.blotName="bold",o.tagName=["STRONG","B"],_.default=o},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.addControls=_.default=void 0;var r=function(){function T(k,M){var P=[],N=!0,F=!1,q=void 0;try{for(var z=k[Symbol.iterator](),O;!(N=(O=z.next()).done)&&(P.push(O.value),!(M&&P.length===M));N=!0);}catch(R){F=!0,q=R}finally{try{!N&&z.return&&z.return()}finally{if(F)throw q}}return P}return function(k,M){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return T(k,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function T(k,M){for(var P=0;P<M.length;P++){var N=M[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(k,N.key,N)}}return function(k,M,P){return M&&T(k.prototype,M),P&&T(k,P),k}}(),i=h(2),f=g(i),e=h(0),l=g(e),n=h(5),t=g(n),o=h(10),d=g(o),u=h(9),c=g(u);function g(T){return T&&T.__esModule?T:{default:T}}function p(T,k,M){return k in T?Object.defineProperty(T,k,{value:M,enumerable:!0,configurable:!0,writable:!0}):T[k]=M,T}function v(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}function y(T,k){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:T}function b(T,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(T,k):T.__proto__=k)}var A=(0,d.default)("quill:toolbar"),x=function(T){b(k,T);function k(M,P){v(this,k);var N=y(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,M,P));if(Array.isArray(N.options.container)){var F=document.createElement("div");S(F,N.options.container),M.container.parentNode.insertBefore(F,M.container),N.container=F}else typeof N.options.container=="string"?N.container=document.querySelector(N.options.container):N.container=N.options.container;if(!(N.container instanceof HTMLElement)){var q;return q=A.error("Container required for toolbar",N.options),y(N,q)}return N.container.classList.add("ql-toolbar"),N.controls=[],N.handlers={},Object.keys(N.options.handlers).forEach(function(z){N.addHandler(z,N.options.handlers[z])}),[].forEach.call(N.container.querySelectorAll("button, select"),function(z){N.attach(z)}),N.quill.on(t.default.events.EDITOR_CHANGE,function(z,O){z===t.default.events.SELECTION_CHANGE&&N.update(O)}),N.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var z=N.quill.selection.getRange(),O=r(z,1),R=O[0];N.update(R)}),N}return s(k,[{key:"addHandler",value:function(P,N){this.handlers[P]=N}},{key:"attach",value:function(P){var N=this,F=[].find.call(P.classList,function(z){return z.indexOf("ql-")===0});if(F){if(F=F.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[F]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[F]==null){A.warn("ignoring attaching to disabled format",F,P);return}if(l.default.query(F)==null){A.warn("ignoring attaching to nonexistent format",F,P);return}}var q=P.tagName==="SELECT"?"change":"click";P.addEventListener(q,function(z){var O=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var R=P.options[P.selectedIndex];R.hasAttribute("selected")?O=!1:O=R.value||!1}else P.classList.contains("ql-active")?O=!1:O=P.value||!P.hasAttribute("value"),z.preventDefault();N.quill.focus();var I=N.quill.selection.getRange(),D=r(I,1),B=D[0];if(N.handlers[F]!=null)N.handlers[F].call(N,O);else if(l.default.query(F).prototype instanceof l.default.Embed){if(O=prompt("Enter "+F),!O)return;N.quill.updateContents(new f.default().retain(B.index).delete(B.length).insert(p({},F,O)),t.default.sources.USER)}else N.quill.format(F,O,t.default.sources.USER);N.update(B)}),this.controls.push([F,P])}}},{key:"update",value:function(P){var N=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function(F){var q=r(F,2),z=q[0],O=q[1];if(O.tagName==="SELECT"){var R=void 0;if(P==null)R=null;else if(N[z]==null)R=O.querySelector("option[selected]");else if(!Array.isArray(N[z])){var I=N[z];typeof I=="string"&&(I=I.replace(/\"/g,'\\"')),R=O.querySelector('option[value="'+I+'"]')}R==null?(O.value="",O.selectedIndex=-1):R.selected=!0}else if(P==null)O.classList.remove("ql-active");else if(O.hasAttribute("value")){var D=N[z]===O.getAttribute("value")||N[z]!=null&&N[z].toString()===O.getAttribute("value")||N[z]==null&&!O.getAttribute("value");O.classList.toggle("ql-active",D)}else O.classList.toggle("ql-active",N[z]!=null)})}}]),k}(c.default);x.DEFAULTS={};function E(T,k,M){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+k),M!=null&&(P.value=M),T.appendChild(P)}function S(T,k){Array.isArray(k[0])||(k=[k]),k.forEach(function(M){var P=document.createElement("span");P.classList.add("ql-formats"),M.forEach(function(N){if(typeof N=="string")E(P,N);else{var F=Object.keys(N)[0],q=N[F];Array.isArray(q)?C(P,F,q):E(P,F,q)}}),T.appendChild(P)})}function C(T,k,M){var P=document.createElement("select");P.classList.add("ql-"+k),M.forEach(function(N){var F=document.createElement("option");N!==!1?F.setAttribute("value",N):F.setAttribute("selected","selected"),P.appendChild(F)}),T.appendChild(P)}x.DEFAULTS={container:null,handlers:{clean:function(){var k=this,M=this.quill.getSelection();if(M!=null)if(M.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function(N){l.default.query(N,l.default.Scope.INLINE)!=null&&k.quill.format(N,!1)})}else this.quill.removeFormat(M,t.default.sources.USER)},direction:function(k){var M=this.quill.getFormat().align;k==="rtl"&&M==null?this.quill.format("align","right",t.default.sources.USER):!k&&M==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",k,t.default.sources.USER)},indent:function(k){var M=this.quill.getSelection(),P=this.quill.getFormat(M),N=parseInt(P.indent||0);if(k==="+1"||k==="-1"){var F=k==="+1"?1:-1;P.direction==="rtl"&&(F*=-1),this.quill.format("indent",N+F,t.default.sources.USER)}},link:function(k){k===!0&&(k=prompt("Enter link URL:")),this.quill.format("link",k,t.default.sources.USER)},list:function(k){var M=this.quill.getSelection(),P=this.quill.getFormat(M);k==="check"?P.list==="checked"||P.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",k,t.default.sources.USER)}}},_.default=x,_.addControls=S},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function d(u,c){for(var g=0;g<c.length;g++){var p=c[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,c,g){return c&&d(u.prototype,c),g&&d(u,g),u}}(),s=function d(u,c,g){u===null&&(u=Function.prototype);var p=Object.getOwnPropertyDescriptor(u,c);if(p===void 0){var v=Object.getPrototypeOf(u);return v===null?void 0:d(v,c,g)}else{if("value"in p)return p.value;var y=p.get;return y===void 0?void 0:y.call(g)}},i=h(28),f=e(i);function e(d){return d&&d.__esModule?d:{default:d}}function l(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function n(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function t(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var o=function(d){t(u,d);function u(c,g){l(this,u);var p=n(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,c));return p.label.innerHTML=g,p.container.classList.add("ql-color-picker"),[].slice.call(p.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(v){v.classList.add("ql-primary")}),p}return r(u,[{key:"buildItem",value:function(g){var p=s(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"buildItem",this).call(this,g);return p.style.backgroundColor=g.getAttribute("value")||"",p}},{key:"selectItem",value:function(g,p){s(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,g,p);var v=this.label.querySelector(".ql-color-label"),y=g&&g.getAttribute("data-value")||"";v&&(v.tagName==="line"?v.style.stroke=y:v.style.fill=y)}}]),u}(f.default);_.default=o},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function d(u,c){for(var g=0;g<c.length;g++){var p=c[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,c,g){return c&&d(u.prototype,c),g&&d(u,g),u}}(),s=function d(u,c,g){u===null&&(u=Function.prototype);var p=Object.getOwnPropertyDescriptor(u,c);if(p===void 0){var v=Object.getPrototypeOf(u);return v===null?void 0:d(v,c,g)}else{if("value"in p)return p.value;var y=p.get;return y===void 0?void 0:y.call(g)}},i=h(28),f=e(i);function e(d){return d&&d.__esModule?d:{default:d}}function l(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function n(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function t(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var o=function(d){t(u,d);function u(c,g){l(this,u);var p=n(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,c));return p.container.classList.add("ql-icon-picker"),[].forEach.call(p.container.querySelectorAll(".ql-picker-item"),function(v){v.innerHTML=g[v.getAttribute("data-value")||""]}),p.defaultItem=p.container.querySelector(".ql-selected"),p.selectItem(p.defaultItem),p}return r(u,[{key:"selectItem",value:function(g,p){s(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,g,p),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),u}(f.default);_.default=o},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function f(e,l){for(var n=0;n<l.length;n++){var t=l[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(e,l,n){return l&&f(e.prototype,l),n&&f(e,n),e}}();function s(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function f(e,l){var n=this;s(this,f),this.quill=e,this.boundsContainer=l||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"}),this.hide()}return r(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(l){var n=l.left+l.width/2-this.root.offsetWidth/2,t=l.bottom+this.quill.root.scrollTop;this.root.style.left=n+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),d=this.root.getBoundingClientRect(),u=0;if(d.right>o.right&&(u=o.right-d.right,this.root.style.left=n+u+"px"),d.left<o.left&&(u=o.left-d.left,this.root.style.left=n+u+"px"),d.bottom>o.bottom){var c=d.bottom-d.top,g=l.bottom-l.top+c;this.root.style.top=t-g+"px",this.root.classList.add("ql-flip")}return u}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();_.default=i},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function C(T,k){var M=[],P=!0,N=!1,F=void 0;try{for(var q=T[Symbol.iterator](),z;!(P=(z=q.next()).done)&&(M.push(z.value),!(k&&M.length===k));P=!0);}catch(O){N=!0,F=O}finally{try{!P&&q.return&&q.return()}finally{if(N)throw F}}return M}return function(T,k){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return C(T,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function C(T,k,M){T===null&&(T=Function.prototype);var P=Object.getOwnPropertyDescriptor(T,k);if(P===void 0){var N=Object.getPrototypeOf(T);return N===null?void 0:C(N,k,M)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(M)}},i=function(){function C(T,k){for(var M=0;M<k.length;M++){var P=k[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}return function(T,k,M){return k&&C(T.prototype,k),M&&C(T,M),T}}(),f=h(3),e=v(f),l=h(8),n=v(l),t=h(43),o=v(t),d=h(27),u=v(d),c=h(15),g=h(41),p=v(g);function v(C){return C&&C.__esModule?C:{default:C}}function y(C,T){if(!(C instanceof T))throw new TypeError("Cannot call a class as a function")}function b(C,T){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:C}function A(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);C.prototype=Object.create(T&&T.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(C,T):C.__proto__=T)}var x=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],E=function(C){A(T,C);function T(k,M){y(this,T),M.modules.toolbar!=null&&M.modules.toolbar.container==null&&(M.modules.toolbar.container=x);var P=b(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,k,M));return P.quill.container.classList.add("ql-snow"),P}return i(T,[{key:"extendToolbar",value:function(M){M.container.classList.add("ql-snow"),this.buildButtons([].slice.call(M.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(M.container.querySelectorAll("select")),p.default),this.tooltip=new S(this.quill,this.options.bounds),M.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,N){M.handlers.link.call(M,!N.format.link)})}}]),T}(o.default);E.DEFAULTS=(0,e.default)(!0,{},o.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){if(T){var k=this.quill.getSelection();if(k==null||k.length==0)return;var M=this.quill.getText(k);/^\S+@\S+\.\S+$/.test(M)&&M.indexOf("mailto:")!==0&&(M="mailto:"+M);var P=this.quill.theme.tooltip;P.edit("link",M)}else this.quill.format("link",!1)}}}}});var S=function(C){A(T,C);function T(k,M){y(this,T);var P=b(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,k,M));return P.preview=P.root.querySelector("a.ql-preview"),P}return i(T,[{key:"listen",value:function(){var M=this;s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){M.root.classList.contains("ql-editing")?M.save():M.edit("link",M.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(M.linkRange!=null){var N=M.linkRange;M.restoreFocus(),M.quill.formatText(N,"link",!1,n.default.sources.USER),delete M.linkRange}P.preventDefault(),M.hide()}),this.quill.on(n.default.events.SELECTION_CHANGE,function(P,N,F){if(P!=null){if(P.length===0&&F===n.default.sources.USER){var q=M.quill.scroll.descendant(u.default,P.index),z=r(q,2),O=z[0],R=z[1];if(O!=null){M.linkRange=new c.Range(P.index-R,O.length());var I=u.default.formats(O.domNode);M.preview.textContent=I,M.preview.setAttribute("href",I),M.show(),M.position(M.quill.getBounds(M.linkRange));return}}else delete M.linkRange;M.hide()}})}},{key:"show",value:function(){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),T}(t.BaseTooltip);S.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),_.default=E},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(29),s=V(r),i=h(36),f=h(38),e=h(64),l=h(65),n=V(l),t=h(66),o=V(t),d=h(67),u=V(d),c=h(37),g=h(26),p=h(39),v=h(40),y=h(56),b=V(y),A=h(68),x=V(A),E=h(27),S=V(E),C=h(69),T=V(C),k=h(70),M=V(k),P=h(71),N=V(P),F=h(72),q=V(F),z=h(73),O=V(z),R=h(13),I=V(R),D=h(74),B=V(D),j=h(75),Q=V(j),X=h(57),Z=V(X),L=h(41),W=V(L),G=h(28),J=V(G),H=h(59),U=V(H),K=h(60),te=V(K),ee=h(61),ie=V(ee),se=h(108),ne=V(se),re=h(62),Y=V(re);function V(oe){return oe&&oe.__esModule?oe:{default:oe}}s.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":c.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":c.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":v.SizeStyle},!0),s.default.register({"formats/align":i.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":e.IndentClass,"formats/background":c.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":p.FontClass,"formats/size":v.SizeClass,"formats/blockquote":n.default,"formats/code-block":I.default,"formats/header":o.default,"formats/list":u.default,"formats/bold":b.default,"formats/code":R.Code,"formats/italic":x.default,"formats/link":S.default,"formats/script":T.default,"formats/strike":M.default,"formats/underline":N.default,"formats/image":q.default,"formats/video":O.default,"formats/list/item":d.ListItem,"modules/formula":B.default,"modules/syntax":Q.default,"modules/toolbar":Z.default,"themes/bubble":ne.default,"themes/snow":Y.default,"ui/icons":W.default,"ui/picker":J.default,"ui/icon-picker":te.default,"ui/color-picker":U.default,"ui/tooltip":ie.default},!0),_.default=s.default},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.IndentClass=void 0;var r=function(){function u(c,g){for(var p=0;p<g.length;p++){var v=g[p];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}return function(c,g,p){return g&&u(c.prototype,g),p&&u(c,p),c}}(),s=function u(c,g,p){c===null&&(c=Function.prototype);var v=Object.getOwnPropertyDescriptor(c,g);if(v===void 0){var y=Object.getPrototypeOf(c);return y===null?void 0:u(y,g,p)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(p)}},i=h(0),f=e(i);function e(u){return u&&u.__esModule?u:{default:u}}function l(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function n(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function t(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var o=function(u){t(c,u);function c(){return l(this,c),n(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return r(c,[{key:"add",value:function(p,v){if(v==="+1"||v==="-1"){var y=this.value(p)||0;v=v==="+1"?y+1:y-1}return v===0?(this.remove(p),!0):s(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"add",this).call(this,p,v)}},{key:"canAdd",value:function(p,v){return s(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,p,v)||s(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,p,parseInt(v))}},{key:"value",value:function(p){return parseInt(s(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"value",this).call(this,p))||void 0}}]),c}(f.default.Attributor.Class),d=new o("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});_.IndentClass=d},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(4),s=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function f(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function e(t,o){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:t}function l(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}var n=function(t){l(o,t);function o(){return f(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o}(s.default);n.blotName="blockquote",n.tagName="blockquote",_.default=n},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function o(d,u){for(var c=0;c<u.length;c++){var g=u[c];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}return function(d,u,c){return u&&o(d.prototype,u),c&&o(d,c),d}}(),s=h(4),i=f(s);function f(o){return o&&o.__esModule?o:{default:o}}function e(o,d){if(!(o instanceof d))throw new TypeError("Cannot call a class as a function")}function l(o,d){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:o}function n(o,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);o.prototype=Object.create(d&&d.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(o,d):o.__proto__=d)}var t=function(o){n(d,o);function d(){return e(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return r(d,null,[{key:"formats",value:function(c){return this.tagName.indexOf(c.tagName)+1}}]),d}(i.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],_.default=t},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.ListItem=void 0;var r=function(){function y(b,A){for(var x=0;x<A.length;x++){var E=A[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,A,x){return A&&y(b.prototype,A),x&&y(b,x),b}}(),s=function y(b,A,x){b===null&&(b=Function.prototype);var E=Object.getOwnPropertyDescriptor(b,A);if(E===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:y(S,A,x)}else{if("value"in E)return E.value;var C=E.get;return C===void 0?void 0:C.call(x)}},i=h(0),f=o(i),e=h(4),l=o(e),n=h(25),t=o(n);function o(y){return y&&y.__esModule?y:{default:y}}function d(y,b,A){return b in y?Object.defineProperty(y,b,{value:A,enumerable:!0,configurable:!0,writable:!0}):y[b]=A,y}function u(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function c(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function g(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var p=function(y){g(b,y);function b(){return u(this,b),c(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return r(b,[{key:"format",value:function(x,E){x===v.blotName&&!E?this.replaceWith(f.default.create(this.statics.scope)):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,x,E)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(x,E){return this.parent.isolate(this.offset(this.parent),this.length()),x===this.parent.statics.blotName?(this.parent.replaceWith(x,E),this):(this.parent.unwrap(),s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,x,E))}}],[{key:"formats",value:function(x){return x.tagName===this.tagName?void 0:s(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,x)}}]),b}(l.default);p.blotName="list-item",p.tagName="LI";var v=function(y){g(b,y),r(b,null,[{key:"create",value:function(x){var E=x==="ordered"?"OL":"UL",S=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,E);return(x==="checked"||x==="unchecked")&&S.setAttribute("data-checked",x==="checked"),S}},{key:"formats",value:function(x){if(x.tagName==="OL")return"ordered";if(x.tagName==="UL")return x.hasAttribute("data-checked")?x.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(A){u(this,b);var x=c(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,A)),E=function(C){if(C.target.parentNode===A){var T=x.statics.formats(A),k=f.default.find(C.target);T==="checked"?k.format("list","unchecked"):T==="unchecked"&&k.format("list","checked")}};return A.addEventListener("touchstart",E),A.addEventListener("mousedown",E),x}return r(b,[{key:"format",value:function(x,E){this.children.length>0&&this.children.tail.format(x,E)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(x,E){if(x instanceof p)s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,x,E);else{var S=E==null?this.length():E.offset(this),C=this.split(S);C.parent.insertBefore(x,C)}}},{key:"optimize",value:function(x){s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,x);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&E.domNode.tagName===this.domNode.tagName&&E.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(E.moveChildren(this),E.remove())}},{key:"replace",value:function(x){if(x.statics.blotName!==this.statics.blotName){var E=f.default.create(this.statics.defaultChild);x.moveChildren(E),this.appendChild(E)}s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,x)}}]),b}(t.default);v.blotName="list",v.scope=f.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[p],_.ListItem=p,_.default=v},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(56),s=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function f(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function e(t,o){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:t}function l(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}var n=function(t){l(o,t);function o(){return f(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o}(s.default);n.blotName="italic",n.tagName=["EM","I"],_.default=n},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function d(u,c){for(var g=0;g<c.length;g++){var p=c[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}return function(u,c,g){return c&&d(u.prototype,c),g&&d(u,g),u}}(),s=function d(u,c,g){u===null&&(u=Function.prototype);var p=Object.getOwnPropertyDescriptor(u,c);if(p===void 0){var v=Object.getPrototypeOf(u);return v===null?void 0:d(v,c,g)}else{if("value"in p)return p.value;var y=p.get;return y===void 0?void 0:y.call(g)}},i=h(6),f=e(i);function e(d){return d&&d.__esModule?d:{default:d}}function l(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function n(d,u){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:d}function t(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);d.prototype=Object.create(u&&u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(d,u):d.__proto__=u)}var o=function(d){t(u,d);function u(){return l(this,u),n(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return r(u,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):s(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),u}(f.default);o.blotName="script",o.tagName=["SUB","SUP"],_.default=o},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(6),s=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function f(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function e(t,o){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:t}function l(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}var n=function(t){l(o,t);function o(){return f(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o}(s.default);n.blotName="strike",n.tagName="S",_.default=n},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=h(6),s=i(r);function i(t){return t&&t.__esModule?t:{default:t}}function f(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function e(t,o){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:t}function l(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}var n=function(t){l(o,t);function o(){return f(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o}(s.default);n.blotName="underline",n.tagName="U",_.default=n},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function c(g,p){for(var v=0;v<p.length;v++){var y=p[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,p,v){return p&&c(g.prototype,p),v&&c(g,v),g}}(),s=function c(g,p,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,p);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:c(b,p,v)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(v)}},i=h(0),f=l(i),e=h(27);function l(c){return c&&c.__esModule?c:{default:c}}function n(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function t(c,g){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:c}function o(c,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);c.prototype=Object.create(g&&g.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(c,g):c.__proto__=g)}var d=["alt","height","width"],u=function(c){o(g,c);function g(){return n(this,g),t(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(v,y){d.indexOf(v)>-1?y?this.domNode.setAttribute(v,y):this.domNode.removeAttribute(v):s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,v,y)}}],[{key:"create",value:function(v){var y=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,v);return typeof v=="string"&&y.setAttribute("src",this.sanitize(v)),y}},{key:"formats",value:function(v){return d.reduce(function(y,b){return v.hasAttribute(b)&&(y[b]=v.getAttribute(b)),y},{})}},{key:"match",value:function(v){return/\.(jpe?g|gif|png)$/.test(v)||/^data:image\/.+;base64/.test(v)}},{key:"sanitize",value:function(v){return(0,e.sanitize)(v,["http","https","data"])?v:"//:0"}},{key:"value",value:function(v){return v.getAttribute("src")}}]),g}(f.default.Embed);u.blotName="image",u.tagName="IMG",_.default=u},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0});var r=function(){function c(g,p){for(var v=0;v<p.length;v++){var y=p[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,p,v){return p&&c(g.prototype,p),v&&c(g,v),g}}(),s=function c(g,p,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,p);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:c(b,p,v)}else{if("value"in y)return y.value;var A=y.get;return A===void 0?void 0:A.call(v)}},i=h(4),f=h(27),e=l(f);function l(c){return c&&c.__esModule?c:{default:c}}function n(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function t(c,g){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:c}function o(c,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);c.prototype=Object.create(g&&g.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(c,g):c.__proto__=g)}var d=["height","width"],u=function(c){o(g,c);function g(){return n(this,g),t(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,[{key:"format",value:function(v,y){d.indexOf(v)>-1?y?this.domNode.setAttribute(v,y):this.domNode.removeAttribute(v):s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,v,y)}}],[{key:"create",value:function(v){var y=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,v);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(v)),y}},{key:"formats",value:function(v){return d.reduce(function(y,b){return v.hasAttribute(b)&&(y[b]=v.getAttribute(b)),y},{})}},{key:"sanitize",value:function(v){return e.default.sanitize(v)}},{key:"value",value:function(v){return v.getAttribute("src")}}]),g}(i.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",_.default=u},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.FormulaBlot=void 0;var r=function(){function v(y,b){for(var A=0;A<b.length;A++){var x=b[A];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,b,A){return b&&v(y.prototype,b),A&&v(y,A),y}}(),s=function v(y,b,A){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,b);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:v(E,b,A)}else{if("value"in x)return x.value;var S=x.get;return S===void 0?void 0:S.call(A)}},i=h(35),f=o(i),e=h(5),l=o(e),n=h(9),t=o(n);function o(v){return v&&v.__esModule?v:{default:v}}function d(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function u(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function c(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var g=function(v){c(y,v);function y(){return d(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return r(y,null,[{key:"create",value:function(A){var x=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,A);return typeof A=="string"&&(window.katex.render(A,x,{throwOnError:!1,errorColor:"#f00"}),x.setAttribute("data-value",A)),x}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),y}(f.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var p=function(v){c(y,v),r(y,null,[{key:"register",value:function(){l.default.register(g,!0)}}]);function y(){d(this,y);var b=u(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return y}(t.default);_.FormulaBlot=g,_.default=p},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.CodeToken=_.CodeBlock=void 0;var r=function(){function A(x,E){for(var S=0;S<E.length;S++){var C=E[S];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}return function(x,E,S){return E&&A(x.prototype,E),S&&A(x,S),x}}(),s=function A(x,E,S){x===null&&(x=Function.prototype);var C=Object.getOwnPropertyDescriptor(x,E);if(C===void 0){var T=Object.getPrototypeOf(x);return T===null?void 0:A(T,E,S)}else{if("value"in C)return C.value;var k=C.get;return k===void 0?void 0:k.call(S)}},i=h(0),f=u(i),e=h(5),l=u(e),n=h(9),t=u(n),o=h(13),d=u(o);function u(A){return A&&A.__esModule?A:{default:A}}function c(A,x){if(!(A instanceof x))throw new TypeError("Cannot call a class as a function")}function g(A,x){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:A}function p(A,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);A.prototype=Object.create(x&&x.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(A,x):A.__proto__=x)}var v=function(A){p(x,A);function x(){return c(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return r(x,[{key:"replaceWith",value:function(S){this.domNode.textContent=this.domNode.textContent,this.attach(),s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,S)}},{key:"highlight",value:function(S){var C=this.domNode.textContent;this.cachedText!==C&&((C.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=S(C),this.domNode.normalize(),this.attach()),this.cachedText=C)}}]),x}(d.default);v.className="ql-syntax";var y=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),b=function(A){p(x,A),r(x,null,[{key:"register",value:function(){l.default.register(y,!0),l.default.register(v,!0)}}]);function x(E,S){c(this,x);var C=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,E,S));if(typeof C.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var T=null;return C.quill.on(l.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(T),T=setTimeout(function(){C.highlight(),T=null},C.options.interval)}),C.highlight(),C}return r(x,[{key:"highlight",value:function(){var S=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var C=this.quill.getSelection();this.quill.scroll.descendants(v).forEach(function(T){T.highlight(S.options.highlight)}),this.quill.update(l.default.sources.SILENT),C!=null&&this.quill.setSelection(C,l.default.sources.SILENT)}}}]),x}(t.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(A){var x=window.hljs.highlightAuto(A);return x.value}}(),interval:1e3},_.CodeBlock=v,_.CodeToken=y,_.default=b},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(w,_){w.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(w,_){w.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(w,_){w.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(w,_){w.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(w,_){w.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(w,_,h){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BubbleTooltip=void 0;var r=function x(E,S,C){E===null&&(E=Function.prototype);var T=Object.getOwnPropertyDescriptor(E,S);if(T===void 0){var k=Object.getPrototypeOf(E);return k===null?void 0:x(k,S,C)}else{if("value"in T)return T.value;var M=T.get;return M===void 0?void 0:M.call(C)}},s=function(){function x(E,S){for(var C=0;C<S.length;C++){var T=S[C];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(E,T.key,T)}}return function(E,S,C){return S&&x(E.prototype,S),C&&x(E,C),E}}(),i=h(3),f=c(i),e=h(8),l=c(e),n=h(43),t=c(n),o=h(15),d=h(41),u=c(d);function c(x){return x&&x.__esModule?x:{default:x}}function g(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function p(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function v(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(x){v(E,x);function E(S,C){g(this,E),C.modules.toolbar!=null&&C.modules.toolbar.container==null&&(C.modules.toolbar.container=y);var T=p(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S,C));return T.quill.container.classList.add("ql-bubble"),T}return s(E,[{key:"extendToolbar",value:function(C){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(C.container),this.buildButtons([].slice.call(C.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(C.container.querySelectorAll("select")),u.default)}}]),E}(t.default);b.DEFAULTS=(0,f.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){E?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(x){v(E,x);function E(S,C){g(this,E);var T=p(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S,C));return T.quill.on(l.default.events.EDITOR_CHANGE,function(k,M,P,N){if(k===l.default.events.SELECTION_CHANGE)if(M!=null&&M.length>0&&N===l.default.sources.USER){T.show(),T.root.style.left="0px",T.root.style.width="",T.root.style.width=T.root.offsetWidth+"px";var F=T.quill.getLines(M.index,M.length);if(F.length===1)T.position(T.quill.getBounds(M));else{var q=F[F.length-1],z=T.quill.getIndex(q),O=Math.min(q.length()-1,M.index+M.length-z),R=T.quill.getBounds(new o.Range(z,O));T.position(R)}}else document.activeElement!==T.textbox&&T.quill.hasFocus()&&T.hide()}),T}return s(E,[{key:"listen",value:function(){var C=this;r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){C.root.classList.remove("ql-editing")}),this.quill.on(l.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!C.root.classList.contains("ql-hidden")){var T=C.quill.getSelection();T!=null&&C.position(C.quill.getBounds(T))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(C){var T=r(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"position",this).call(this,C),k=this.root.querySelector(".ql-tooltip-arrow");if(k.style.marginLeft="",T===0)return T;k.style.marginLeft=-1*T-k.offsetWidth/2+"px"}}]),E}(n.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),_.BubbleTooltip=A,_.default=b},function(w,_,h){w.exports=h(63)}]).default})})(jm);var AO=jm.exports;const lr=zn(AO);/*! + * vue2-editor v2.10.3 + * (c) 2021 David Royer + * Released under the MIT License. + */var EO=[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{indent:"-1"},{indent:"+1"}],[{color:[]},{background:[]}],["link","image","video"],["clean"]],SO={props:{customModules:Array},methods:{registerCustomModules:function(m){this.customModules!==void 0&&this.customModules.forEach(function(w){m.register("modules/"+w.alias,w.module)})}}};function Uo(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uo=function(m){return typeof m}:Uo=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},Uo(a)}function Hm(a,m){if(!(a instanceof m))throw new TypeError("Cannot call a class as a function")}function C2(a,m){for(var w=0;w<m.length;w++){var _=m[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(a,_.key,_)}}function CO(a,m,w){return m&&C2(a.prototype,m),w&&C2(a,w),a}function kO(a,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(m&&m.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),m&&ac(a,m)}function ic(a){return ic=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},ic(a)}function ac(a,m){return ac=Object.setPrototypeOf||function(_,h){return _.__proto__=h,_},ac(a,m)}function OO(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function PO(a,m){return m&&(typeof m=="object"||typeof m=="function")?m:OO(a)}function k2(a,m){return TO(a)||MO(a,m)||IO()}function TO(a){if(Array.isArray(a))return a}function MO(a,m){var w=[],_=!0,h=!1,r=void 0;try{for(var s=a[Symbol.iterator](),i;!(_=(i=s.next()).done)&&(w.push(i.value),!(m&&w.length===m));_=!0);}catch(f){h=!0,r=f}finally{try{!_&&s.return!=null&&s.return()}finally{if(h)throw r}}return w}function IO(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function zm(a,m){var w=function(h){return h&&Uo(h)==="object"};return!w(a)||!w(m)?m:(Object.keys(m).forEach(function(_){var h=a[_],r=m[_];Array.isArray(h)&&Array.isArray(r)?a[_]=h.concat(r):w(h)&&w(r)?a[_]=zm(Object.assign({},h),r):a[_]=r}),a)}var DO=lr.import("blots/block/embed"),jd=function(a){kO(m,a);function m(){return Hm(this,m),PO(this,ic(m).apply(this,arguments))}return m}(DO);jd.blotName="hr";jd.tagName="hr";lr.register("formats/horizontal",jd);var BO=function(){function a(m,w){var _=this;Hm(this,a),this.quill=m,this.options=w,this.ignoreTags=["PRE"],this.matches=[{name:"header",pattern:/^(#){1,6}\s/g,action:function(r,s,i){var f=i.exec(r);if(f){var e=f[0].length;setTimeout(function(){_.quill.formatLine(s.index,0,"header",e-1),_.quill.deleteText(s.index-e,e)},0)}}},{name:"blockquote",pattern:/^(>)\s/g,action:function(r,s){setTimeout(function(){_.quill.formatLine(s.index,1,"blockquote",!0),_.quill.deleteText(s.index-2,2)},0)}},{name:"code-block",pattern:/^`{3}(?:\s|\n)/g,action:function(r,s){setTimeout(function(){_.quill.formatLine(s.index,1,"code-block",!0),_.quill.deleteText(s.index-4,4)},0)}},{name:"bolditalic",pattern:/(?:\*|_){3}(.+?)(?:\*|_){3}/g,action:function(r,s,i,f){var e=i.exec(r),l=e[0],n=e[1],t=f+e.index;r.match(/^([*_ \n]+)$/g)||setTimeout(function(){_.quill.deleteText(t,l.length),_.quill.insertText(t,n,{bold:!0,italic:!0}),_.quill.format("bold",!1)},0)}},{name:"bold",pattern:/(?:\*|_){2}(.+?)(?:\*|_){2}/g,action:function(r,s,i,f){var e=i.exec(r),l=e[0],n=e[1],t=f+e.index;r.match(/^([*_ \n]+)$/g)||setTimeout(function(){_.quill.deleteText(t,l.length),_.quill.insertText(t,n,{bold:!0}),_.quill.format("bold",!1)},0)}},{name:"italic",pattern:/(?:\*|_){1}(.+?)(?:\*|_){1}/g,action:function(r,s,i,f){var e=i.exec(r),l=e[0],n=e[1],t=f+e.index;r.match(/^([*_ \n]+)$/g)||setTimeout(function(){_.quill.deleteText(t,l.length),_.quill.insertText(t,n,{italic:!0}),_.quill.format("italic",!1)},0)}},{name:"strikethrough",pattern:/(?:~~)(.+?)(?:~~)/g,action:function(r,s,i,f){var e=i.exec(r),l=e[0],n=e[1],t=f+e.index;r.match(/^([*_ \n]+)$/g)||setTimeout(function(){_.quill.deleteText(t,l.length),_.quill.insertText(t,n,{strike:!0}),_.quill.format("strike",!1)},0)}},{name:"code",pattern:/(?:`)(.+?)(?:`)/g,action:function(r,s,i,f){var e=i.exec(r),l=e[0],n=e[1],t=f+e.index;r.match(/^([*_ \n]+)$/g)||setTimeout(function(){_.quill.deleteText(t,l.length),_.quill.insertText(t,n,{code:!0}),_.quill.format("code",!1),_.quill.insertText(_.quill.getSelection()," ")},0)}},{name:"hr",pattern:/^([-*]\s?){3}/g,action:function(r,s){var i=s.index-r.length;setTimeout(function(){_.quill.deleteText(i,r.length),_.quill.insertEmbed(i+1,"hr",!0,lr.sources.USER),_.quill.insertText(i+2,` +`,lr.sources.SILENT),_.quill.setSelection(i+2,lr.sources.SILENT)},0)}},{name:"asterisk-ul",pattern:/^(\*|\+)\s$/g,action:function(r,s,i){setTimeout(function(){_.quill.formatLine(s.index,1,"list","unordered"),_.quill.deleteText(s.index-2,2)},0)}},{name:"image",pattern:/(?:!\[(.+?)\])(?:\((.+?)\))/g,action:function(r,s,i){var f=r.search(i),e=r.match(i)[0],l=r.match(/(?:\((.*?)\))/g)[0],n=s.index-e.length-1;f!==-1&&setTimeout(function(){_.quill.deleteText(n,e.length),_.quill.insertEmbed(n,"image",l.slice(1,l.length-1))},0)}},{name:"link",pattern:/(?:\[(.+?)\])(?:\((.+?)\))/g,action:function(r,s,i){var f=r.search(i),e=r.match(i)[0],l=r.match(/(?:\[(.*?)\])/g)[0],n=r.match(/(?:\((.*?)\))/g)[0],t=s.index-e.length-1;f!==-1&&setTimeout(function(){_.quill.deleteText(t,e.length),_.quill.insertText(t,l.slice(1,l.length-1),"link",n.slice(1,n.length-1))},0)}}],this.quill.on("text-change",function(h,r,s){for(var i=0;i<h.ops.length;i++)h.ops[i].hasOwnProperty("insert")&&(h.ops[i].insert===" "?_.onSpace():h.ops[i].insert===` +`&&_.onEnter())})}return CO(a,[{key:"isValid",value:function(w,_){return typeof w<"u"&&w&&this.ignoreTags.indexOf(_)===-1}},{key:"onSpace",value:function(){var w=this.quill.getSelection();if(w){var _=this.quill.getLine(w.index),h=k2(_,2),r=h[0],s=h[1],i=r.domNode.textContent,f=w.index-s;if(this.isValid(i,r.domNode.tagName)){var e=!0,l=!1,n=void 0;try{for(var t=this.matches[Symbol.iterator](),o;!(e=(o=t.next()).done);e=!0){var d=o.value,u=i.match(d.pattern);if(u){console.log("matched:",d.name,i),d.action(i,w,d.pattern,f);return}}}catch(c){l=!0,n=c}finally{try{!e&&t.return!=null&&t.return()}finally{if(l)throw n}}}}}},{key:"onEnter",value:function(){var w=this.quill.getSelection();if(w){var _=this.quill.getLine(w.index),h=k2(_,2),r=h[0],s=h[1],i=r.domNode.textContent+" ",f=w.index-s;if(w.length=w.index++,this.isValid(i,r.domNode.tagName)){var e=!0,l=!1,n=void 0;try{for(var t=this.matches[Symbol.iterator](),o;!(e=(o=t.next()).done);e=!0){var d=o.value,u=i.match(d.pattern);if(u){console.log("matched",d.name,i),d.action(i,w,d.pattern,f);return}}}catch(c){l=!0,n=c}finally{try{!e&&t.return!=null&&t.return()}finally{if(l)throw n}}}}}}]),a}(),RO={name:"VueEditor",mixins:[SO],props:{id:{type:String,default:"quill-container"},placeholder:{type:String,default:""},value:{type:String,default:""},disabled:{type:Boolean},editorToolbar:{type:Array,default:function(){return[]}},editorOptions:{type:Object,required:!1,default:function(){return{}}},useCustomImageHandler:{type:Boolean,default:!1},useMarkdownShortcuts:{type:Boolean,default:!1}},data:function(){return{quill:null}},watch:{value:function(m){m!=this.quill.root.innerHTML&&!this.quill.hasFocus()&&(this.quill.root.innerHTML=m)},disabled:function(m){this.quill.enable(!m)}},mounted:function(){this.registerCustomModules(lr),this.registerPrototypes(),this.initializeEditor()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initializeEditor:function(){this.setupQuillEditor(),this.checkForCustomImageHandler(),this.handleInitialContent(),this.registerEditorEventListeners(),this.$emit("ready",this.quill)},setupQuillEditor:function(){var m={debug:!1,modules:this.setModules(),theme:"snow",placeholder:this.placeholder?this.placeholder:"",readOnly:this.disabled?this.disabled:!1};this.prepareEditorConfig(m),this.quill=new lr(this.$refs.quillContainer,m)},setModules:function(){var m={toolbar:this.editorToolbar.length?this.editorToolbar:EO};return this.useMarkdownShortcuts&&(lr.register("modules/markdownShortcuts",BO,!0),m.markdownShortcuts={}),m},prepareEditorConfig:function(m){Object.keys(this.editorOptions).length>0&&this.editorOptions.constructor===Object&&(this.editorOptions.modules&&typeof this.editorOptions.modules.toolbar<"u"&&delete m.modules.toolbar,zm(m,this.editorOptions))},registerPrototypes:function(){lr.prototype.getHTML=function(){return this.container.querySelector(".ql-editor").innerHTML},lr.prototype.getWordCount=function(){return this.container.querySelector(".ql-editor").innerText.length}},registerEditorEventListeners:function(){this.quill.on("text-change",this.handleTextChange),this.quill.on("selection-change",this.handleSelectionChange),this.listenForEditorEvent("text-change"),this.listenForEditorEvent("selection-change"),this.listenForEditorEvent("editor-change")},listenForEditorEvent:function(m){var w=this;this.quill.on(m,function(){for(var _=arguments.length,h=new Array(_),r=0;r<_;r++)h[r]=arguments[r];w.$emit.apply(w,[m].concat(h))})},handleInitialContent:function(){this.value&&(this.quill.root.innerHTML=this.value)},handleSelectionChange:function(m,w){!m&&w?this.$emit("blur",this.quill):m&&!w&&this.$emit("focus",this.quill)},handleTextChange:function(m,w){var _=this.quill.getHTML()==="<p><br></p>"?"":this.quill.getHTML();this.$emit("input",_),this.useCustomImageHandler&&this.handleImageRemoved(m,w)},handleImageRemoved:function(m,w){var _=this,h=this.quill.getContents(),r=h.diff(w),s=r.ops;s.map(function(i){if(i.insert&&i.insert.hasOwnProperty("image")){var f=i.insert.image;_.$emit("image-removed",f)}})},checkForCustomImageHandler:function(){this.useCustomImageHandler===!0&&this.setupCustomImageHandler()},setupCustomImageHandler:function(){var m=this.quill.getModule("toolbar");m.addHandler("image",this.customImageHandler)},customImageHandler:function(){this.$refs.fileInput.click()},emitImageInfo:function(m){var w=function(){var f=document.getElementById("file-upload");f.value=""},_=m.target.files[0],h=this.quill,r=h.getSelection(),s=r.index;this.$emit("image-added",_,h,s,w)}}};function NO(a,m,w,_,h,r,s,i,f,e){typeof s!="boolean"&&(f=i,i=s,s=!1);var l=typeof w=="function"?w.options:w;a&&a.render&&(l.render=a.render,l.staticRenderFns=a.staticRenderFns,l._compiled=!0,h&&(l.functional=!0)),_&&(l._scopeId=_);var n;if(r?(n=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__<"u"&&(u=__VUE_SSR_CONTEXT__),m&&m.call(this,f(u)),u&&u._registeredComponents&&u._registeredComponents.add(r)},l._ssrRegister=n):m&&(n=s?function(){m.call(this,e(this.$root.$options.shadowRoot))}:function(d){m.call(this,i(d))}),n)if(l.functional){var t=l.render;l.render=function(u,c){return n.call(c),t(u,c)}}else{var o=l.beforeCreate;l.beforeCreate=o?[].concat(o,n):[n]}return w}var LO=NO,UO=typeof navigator<"u"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function FO(a){return function(m,w){return jO(m,w)}}var Fl,O2={};function jO(a,m){var w=UO?m.media||"default":a,_=O2[w]||(O2[w]={ids:new Set,styles:[]});if(!_.ids.has(a)){_.ids.add(a);var h=m.source;if(m.map&&(h+=` +/*# sourceURL=`+m.map.sources[0]+" */",h+=` +/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(m.map))))+" */"),_.element||(_.element=document.createElement("style"),_.element.type="text/css",m.media&&_.element.setAttribute("media",m.media),Fl===void 0&&(Fl=document.head||document.getElementsByTagName("head")[0]),Fl.appendChild(_.element)),"styleSheet"in _.element)_.styles.push(h),_.element.styleSheet.cssText=_.styles.filter(Boolean).join(` +`);else{var r=_.ids.size-1,s=document.createTextNode(h),i=_.element.childNodes;i[r]&&_.element.removeChild(i[r]),i.length?_.element.insertBefore(s,i[r]):_.element.appendChild(s)}}}var HO=FO;const zO=RO;var qO=function(){var a=this,m=a.$createElement,w=a._self._c||m;return w("div",{staticClass:"quillWrapper"},[a._t("toolbar"),a._v(" "),w("div",{ref:"quillContainer",attrs:{id:a.id}}),a._v(" "),a.useCustomImageHandler?w("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{id:"file-upload",type:"file",accept:"image/*"},on:{change:function(_){return a.emitImageInfo(_)}}}):a._e()],2)},$O=[];const WO=function(a){a&&(a("data-v-776e788e_0",{source:`/*! + * Quill Editor v1.3.6 + * https://quilljs.com/ + * Copyright (c) 2014, Jason Chen + * Copyright (c) 2013, salesforce.com + */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li::before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:0;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li::before{content:'\\2022'}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li::before,.ql-editor ul[data-checked=true]>li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li::before{content:'\\2611'}.ql-editor ul[data-checked=false]>li::before{content:'\\2610'}.ql-editor li::before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl)::before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl::before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) '. '}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) '. '}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) '. '}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) '. '}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) '. '}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) '. '}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) '. '}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) '. '}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) '. '}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:'';display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:0 0;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:0}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item::before,.ql-snow .ql-picker.ql-header .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item::before,.ql-snow .ql-picker.ql-font .ql-picker-label::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item::before,.ql-snow .ql-picker.ql-size .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]::before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}`,map:void 0,media:void 0}),a("data-v-776e788e_1",{source:".ql-editor{min-height:200px;font-size:16px}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1px!important}.quillWrapper .ql-snow.ql-toolbar{padding-top:8px;padding-bottom:4px}.quillWrapper .ql-snow.ql-toolbar .ql-formats{margin-bottom:10px}.ql-snow .ql-toolbar button svg,.quillWrapper .ql-snow.ql-toolbar button svg{width:22px;height:22px}.quillWrapper .ql-editor ul[data-checked=false]>li::before,.quillWrapper .ql-editor ul[data-checked=true]>li::before{font-size:1.35em;vertical-align:baseline;bottom:-.065em;font-weight:900;color:#222}.quillWrapper .ql-snow .ql-stroke{stroke:rgba(63,63,63,.95);stroke-linecap:square;stroke-linejoin:initial;stroke-width:1.7px}.quillWrapper .ql-picker-label{font-size:15px}.quillWrapper .ql-snow .ql-active .ql-stroke{stroke-width:2.25px}.quillWrapper .ql-toolbar.ql-snow .ql-formats{vertical-align:top}.ql-picker:not(.ql-background){position:relative;top:2px}.ql-picker.ql-color-picker svg{width:22px!important;height:22px!important}.quillWrapper .imageResizeActive img{display:block;cursor:pointer}.quillWrapper .imageResizeActive~div svg{cursor:pointer}",map:void 0,media:void 0}))},VO=void 0,KO=void 0,GO=!1;var qm=LO({render:qO,staticRenderFns:$O},WO,zO,VO,GO,KO,HO,void 0),JO="2.10.3";function oc(a){oc.installed||(oc.installed=!0,a.component("VueEditor",qm))}var $m={install:oc,version:JO,Quill:lr,VueEditor:qm},Es=null;typeof window<"u"?Es=window.Vue:typeof global<"u"&&(Es=global.Vue);Es&&Es.use($m);ht.use(db);ht.use($m);ht.config.productionTip=!1;ht.prototype.$cookie=sk;Fm.defaults.withCredentials=!1;ht.prototype.$axios=Fm;console.log=()=>{};new ht({router:ik,render:a=>a(gb)}).$mount("#app");export{su as $,kP as A,xm as B,Cr as C,wl as D,dP as E,IC as F,uP as G,ro as H,Rn as I,mP as J,AP as K,xP as L,gP as M,xi as N,yP as O,ES as P,DP as Q,CP as R,or as S,vP as T,OP as U,oP as V,fi as W,cP as X,hP as Y,dm as Z,tP as _,e2 as a,pP as a0,TS as a1,MS as a2,hm as a3,lP as a4,fP as a5,rP as a6,_P as a7,wP as a8,uu as a9,Rs as aA,Ht as aB,yi as aC,ma as aD,C9 as aE,Ks as aF,Vr as aG,Ja as aH,ia as aI,Wr as aJ,G0 as aK,EC as aL,P2 as aM,sP as aa,Cd as ab,EP as ac,bP as ad,SP as ae,MP as af,TP as ag,lC as ah,HP as ai,BP as aj,fC as ak,PP as al,UP as am,RP as an,FP as ao,zP as ap,NP as aq,LP as ar,jP as as,IP as at,eC as au,vm as av,gl as aw,YO as ax,Vs as ay,Fe as az,Kr as b,rt as c,ou as d,sc as e,Bn as f,zn as g,Sr as h,Pt as i,nt as j,eu as k,cr as l,g0 as m,$P as n,en as o,XO as p,ZO as q,WP as r,xl as s,hr as t,eP as u,nP as v,gr as w,aP as x,iP as y,Wt as z}; diff --git a/assets/index-23526dab.js b/assets/index-23526dab.js new file mode 100644 index 0000000..c8c7ba3 --- /dev/null +++ b/assets/index-23526dab.js @@ -0,0 +1 @@ +import{i as g,n as c,b,t as f,s as m,x as l,o as P,l as V,a as ie,e as h,c as Ft}from"./if-defined-093fe0e9.js";import{a as G,B as ne,s as R,F as k,h as W,C as O,W as x,n as I,i as u,D as A,r as j,b as L}from"./index-0b6b5a8e.js";var qt=Object.defineProperty,kt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,$t=(e,r,a)=>r in e?qt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,Le=(e,r)=>{for(var a in r||(r={}))Kt.call(r,a)&&$t(e,a,r[a]);if(kt)for(var a of kt(r))Yt.call(r,a)&&$t(e,a,r[a]);return e};function Qt(){var e;const r=(e=G.state.themeMode)!=null?e:"dark",a={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[r];return{"--w3m-color-fg-1":a.foreground[1],"--w3m-color-fg-2":a.foreground[2],"--w3m-color-fg-3":a.foreground[3],"--w3m-color-bg-1":a.background[1],"--w3m-color-bg-2":a.background[2],"--w3m-color-bg-3":a.background[3],"--w3m-color-overlay":a.overlay}}function Ot(){return{"--w3m-accent-color":"#3396FF","--w3m-accent-fill-color":"#FFFFFF","--w3m-z-index":"89","--w3m-background-color":"#3396FF","--w3m-background-border-radius":"8px","--w3m-container-border-radius":"30px","--w3m-wallet-icon-border-radius":"15px","--w3m-wallet-icon-large-border-radius":"30px","--w3m-wallet-icon-small-border-radius":"7px","--w3m-input-border-radius":"28px","--w3m-button-border-radius":"10px","--w3m-notification-border-radius":"36px","--w3m-secondary-button-border-radius":"28px","--w3m-icon-button-border-radius":"50%","--w3m-button-hover-highlight-border-radius":"10px","--w3m-text-big-bold-size":"20px","--w3m-text-big-bold-weight":"600","--w3m-text-big-bold-line-height":"24px","--w3m-text-big-bold-letter-spacing":"-0.03em","--w3m-text-big-bold-text-transform":"none","--w3m-text-xsmall-bold-size":"10px","--w3m-text-xsmall-bold-weight":"700","--w3m-text-xsmall-bold-line-height":"12px","--w3m-text-xsmall-bold-letter-spacing":"0.02em","--w3m-text-xsmall-bold-text-transform":"uppercase","--w3m-text-xsmall-regular-size":"12px","--w3m-text-xsmall-regular-weight":"600","--w3m-text-xsmall-regular-line-height":"14px","--w3m-text-xsmall-regular-letter-spacing":"-0.03em","--w3m-text-xsmall-regular-text-transform":"none","--w3m-text-small-thin-size":"14px","--w3m-text-small-thin-weight":"500","--w3m-text-small-thin-line-height":"16px","--w3m-text-small-thin-letter-spacing":"-0.03em","--w3m-text-small-thin-text-transform":"none","--w3m-text-small-regular-size":"14px","--w3m-text-small-regular-weight":"600","--w3m-text-small-regular-line-height":"16px","--w3m-text-small-regular-letter-spacing":"-0.03em","--w3m-text-small-regular-text-transform":"none","--w3m-text-medium-regular-size":"16px","--w3m-text-medium-regular-weight":"600","--w3m-text-medium-regular-line-height":"20px","--w3m-text-medium-regular-letter-spacing":"-0.03em","--w3m-text-medium-regular-text-transform":"none","--w3m-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--w3m-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--w3m-success-color":"rgb(38,181,98)","--w3m-error-color":"rgb(242, 90, 103)","--w3m-overlay-background-color":"rgba(0, 0, 0, 0.3)","--w3m-overlay-backdrop-filter":"none"}}function Xt(){const{themeVariables:e}=G.state;return{"--w3m-background-image-url":e!=null&&e["--w3m-background-image-url"]?`url(${e["--w3m-background-image-url"]})`:"none"}}const w={getPreset(e){return Ot()[e]},setTheme(){const e=document.querySelector(":root"),{themeVariables:r}=G.state;if(e){const a=Le(Le(Le(Le({},Qt()),Ot()),r),Xt());Object.entries(a).forEach(([o,t])=>e.style.setProperty(o,t))}},globalCss:g`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--w3m-accent-fill-color);background:var(--w3m-accent-color)}`},Jt=g`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;justify-content:center;padding:5px;width:100px}button:active{background-color:var(--w3m-color-overlay)}button:disabled{opacity:.7}@media(hover:hover){button:hover{background-color:var(--w3m-color-overlay)}}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-accent-color);border-radius:var(--w3m-icon-button-border-radius);margin-bottom:4px}button path{fill:var(--w3m-accent-fill-color)}`;var er=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,be=(e,r,a,o)=>{for(var t=o>1?void 0:o?tr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&er(r,a,t),t};let Q=class extends m{constructor(){super(...arguments),this.icon=void 0,this.label="",this.loading=!1,this.onClick=()=>null}render(){return l`<button @click="${this.onClick}" .disabled="${!!this.loading}"><div>${this.loading?l`<w3m-spinner size="${20}" color="fill"></w3m-spinner>`:l`${this.icon}`}</div><w3m-text variant="xsmall-regular" color="accent">${this.label}</w3m-text></button>`}};Q.styles=[w.globalCss,Jt],be([c()],Q.prototype,"icon",2),be([c()],Q.prototype,"label",2),be([c()],Q.prototype,"loading",2),be([c()],Q.prototype,"onClick",2),Q=be([h("w3m-box-button")],Q);const rr=g`button{border-radius:var(--w3m-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--w3m-accent-color)}button path{fill:var(--w3m-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--w3m-color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:active::after{background-color:var(--w3m-color-overlay)}.w3m-ghost,.w3m-ghost:active::after,.w3m-outline{background-color:transparent}.w3m-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--w3m-color-overlay)}.w3m-ghost:hover::after{background-color:transparent}.w3m-ghost:hover{opacity:.5}}button:disabled{background-color:var(--w3m-color-bg-3);pointer-events:none}.w3m-ghost::after{border-color:transparent}.w3m-ghost path{fill:var(--w3m-color-fg-2)}.w3m-outline path{fill:var(--w3m-accent-color)}.w3m-outline:disabled{background-color:transparent;opacity:.5}`;var ar=Object.defineProperty,or=Object.getOwnPropertyDescriptor,se=(e,r,a,o)=>{for(var t=o>1?void 0:o?or(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ar(r,a,t),t};let F=class extends m{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const e={"w3m-icon-left":this.iconLeft!==void 0,"w3m-icon-right":this.iconRight!==void 0,"w3m-ghost":this.variant==="ghost","w3m-outline":this.variant==="outline"};let r="inverse";return this.variant==="ghost"&&(r="secondary"),this.variant==="outline"&&(r="accent"),l`<button class="${P(e)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<w3m-text variant="small-regular" color="${r}"><slot></slot></w3m-text>${this.iconRight}</button>`}};F.styles=[w.globalCss,rr],se([c()],F.prototype,"disabled",2),se([c()],F.prototype,"iconLeft",2),se([c()],F.prototype,"iconRight",2),se([c()],F.prototype,"onClick",2),se([c()],F.prototype,"variant",2),F=se([h("w3m-button")],F);const ir=g`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--w3m-button-border-radius);color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:active::after{background-color:var(--w3m-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--w3m-color-bg-3);color:var(--w3m-color-fg-3)}.w3m-secondary{color:var(--w3m-accent-color);background-color:transparent}.w3m-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--w3m-color-overlay)}}`;var nr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,Ye=(e,r,a,o)=>{for(var t=o>1?void 0:o?lr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&nr(r,a,t),t};let fe=class extends m{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const e={"w3m-secondary":this.variant==="secondary"};return l`<button ?disabled="${this.disabled}" class="${P(e)}"><slot></slot></button>`}};fe.styles=[w.globalCss,ir],Ye([c()],fe.prototype,"disabled",2),Ye([c()],fe.prototype,"variant",2),fe=Ye([h("w3m-button-big")],fe);const sr=g`:host{background-color:var(--w3m-color-bg-2);border-top:1px solid var(--w3m-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var cr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,mr=(e,r,a,o)=>{for(var t=o>1?void 0:o?dr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&cr(r,a,t),t};let Qe=class extends m{render(){return l`<div><slot></slot></div>`}};Qe.styles=[w.globalCss,sr],Qe=mr([h("w3m-info-footer")],Qe);const p={CROSS_ICON:b`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:b`<svg width="178" height="29" viewBox="0 0 178 29" id="w3m-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:b`<svg width="28" height="20" viewBox="0 0 28 20"><g clip-path="url(#a)"><path d="M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z" fill="#000000"/></g><defs><clipPath id="a"><path fill="#ffffff" d="M0 0h28v20H0z"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:b`<svg width="96" height="96" fill="none"><path fill="#fff" d="M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z"/><path stroke="#000" d="M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z"/></svg>`,BACK_ICON:b`<svg width="10" height="18" viewBox="0 0 10 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z" fill="#fff"/></svg>`,COPY_ICON:b`<svg width="24" height="24" fill="none"><path fill="#fff" fill-rule="evenodd" d="M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z" clip-rule="evenodd"/></svg>`,RETRY_ICON:b`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:b`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:b`<svg width="16" height="16" viewBox="0 0 16 16"><path d="M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z" fill="#fff"/></svg>`,ARROW_DOWN_ICON:b`<svg width="14" height="14" viewBox="0 0 14 14"><path d="M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z" fill="#fff"/></svg>`,ARROW_UP_RIGHT_ICON:b`<svg width="15" height="14" fill="none"><path d="M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,ARROW_RIGHT_ICON:b`<svg width="6" height="14" viewBox="0 0 6 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z" fill="#fff"/></svg>`,QRCODE_ICON:b`<svg width="25" height="24" viewBox="0 0 25 24"><path d="M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z" fill="#fff"/><path d="M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z" fill="#fff"/></svg>`,SCAN_ICON:b`<svg width="16" height="16" fill="none"><path fill="#fff" d="M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z"/></svg>`,CHECKMARK_ICON:b`<svg width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z" fill="#fff"/></svg>`,HELP_ETH_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#j)"><rect width="60" height="60" rx="30" fill="#987DE8"/><path fill-rule="evenodd" clip-rule="evenodd" d="m15.48 28.367 11.966-19.3c1.174-1.892 3.927-1.892 5.1 0l11.97 19.306a6 6 0 0 1 .9 3.142v.028a6 6 0 0 1-1.154 3.56L33.227 50.208c-1.599 2.188-4.864 2.188-6.461 0L15.733 35.095a6 6 0 0 1-1.154-3.538v-.029a6 6 0 0 1 .9-3.161Z" fill="#fff"/><path d="M30.84 10.112a.992.992 0 0 0-.844-.464V24.5l12.598 5.53c.081-.466-.001-.963-.27-1.398L30.84 10.112Z" fill="#643CDD"/><path d="M29.996 9.648a.991.991 0 0 0-.845.465l-11.489 18.53a1.991 1.991 0 0 0-.264 1.387l12.598-5.53V9.648Z" fill="#BDADEB"/><path d="M29.996 50.544a.994.994 0 0 0 .808-.41l11.235-15.38c.307-.434-.193-.988-.658-.72L31.49 39.71a2.998 2.998 0 0 1-1.494.398v10.437Z" fill="#643CDD"/><path d="M17.966 34.762 29.19 50.134c.2.274.503.41.807.41V40.108a2.998 2.998 0 0 1-1.493-.398l-9.884-5.676c-.468-.27-.971.292-.653.728Z" fill="#BDADEB"/><path d="M42.594 30.03 29.996 24.5v13.138a3 3 0 0 0 1.495-.399l10.149-5.83c.525-.31.856-.823.954-1.38Z" fill="#401AB3"/><path d="M29.996 37.638V24.462l-12.598 5.566c.098.564.437 1.083.974 1.392l10.13 5.82c.462.265.978.398 1.494.398Z" fill="#7C5AE2"/></g><rect class="help-img-highlight" x=".5" y=".5" width="59" height="59" rx="29.5"/><defs><clipPath id="j"><rect width="60" height="60" rx="30" fill="#fff"/></clipPath></defs></svg>`,HELP_PAINTING_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#k)"><rect width="60" height="60" rx="3" fill="#C653C6"/><path d="M52.094 47.344c0-4.246-1.436-9.557-5.885-12.4a2.876 2.876 0 0 0-1.615-3.891v-.819a4.037 4.037 0 0 0-1.34-3.007 4.75 4.75 0 0 0-2.41-6.252v-5.506c0-6.248-5.065-11.313-11.313-11.313-6.247 0-11.312 5.065-11.312 11.313v2.152a3.343 3.343 0 0 0-1.18 5.045 4.738 4.738 0 0 0-1.633 3.584 4.73 4.73 0 0 0 .956 2.858 5.218 5.218 0 0 0-2.358 6.815c-3.06 4.129-6.098 8.298-6.098 15.64 0 2.668.364 4.856.731 6.385.184.765.368 1.366.509 1.78a12.721 12.721 0 0 0 .225.611l.015.037.005.011.001.004v.002h.001l.92-.393-.92.394.26.606h38.26l.291-.49-.86-.51.86.51v-.001l.002-.002.002-.005.01-.017.035-.06.127-.225c.108-.195.26-.477.441-.835.363-.714.845-1.732 1.328-2.953.959-2.427 1.945-5.725 1.945-9.068Z" fill="#E87DE8" stroke="#fff" stroke-width="2"/><path fill-rule="evenodd" clip-rule="evenodd" d="M26.5 29.5c-3-.5-5.5-3-5.503-7l.002-7c0-.466 0-.698.026-.893a3 3 0 0 1 2.582-2.582c.195-.026.428-.026.893-.026 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.398 0 2.097 0 2.648.229a3 3 0 0 1 1.624 1.623c.228.552.228 1.25.228 2.649v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.495 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z" fill="#fff"/></g><rect class="help-img-highlight" x=".5" y=".5" width="59" height="59" rx="2.5"/><defs><clipPath id="k"><rect width="60" height="60" rx="3" fill="#fff"/></clipPath></defs></svg>`,HELP_CHART_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#l)"><path d="M0 25.01C0 15.76 0 11.133 1.97 7.678a15 15 0 0 1 5.598-5.597C11.023.11 15.648.11 24.9.11h10.2c9.251 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.597C60 11.133 60 15.758 60 25.01v10.2c0 9.252 0 13.877-1.97 17.332a15 15 0 0 1-5.598 5.598c-3.455 1.97-8.08 1.97-17.332 1.97H24.9c-9.251 0-13.877 0-17.332-1.97a14.999 14.999 0 0 1-5.597-5.598C0 49.087 0 44.462 0 35.21v-10.2Z" fill="#1DC956"/><path d="M.5 25.01c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.289a14.5 14.5 0 0 1 5.412-5.41c1.639-.936 3.579-1.418 6.289-1.661C16.822.61 20.265.61 24.9.61h10.2c4.635 0 8.078 0 10.795.245 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.579 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.795-.244 2.71-.726 4.65-1.66 6.29a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.412C1.47 50.655.988 48.716.745 46.005.5 43.288.5 39.845.5 35.21v-10.2Z" stroke="#fff" stroke-opacity=".1"/><path d="M16.109 60c-3.833-.179-6.41-.645-8.541-1.86a15 15 0 0 1-5.598-5.598C.553 50.057.155 46.967.043 41.985l4.146-1.382a4 4 0 0 0 2.48-2.39l4.654-12.409a2 2 0 0 1 2.505-1.195l2.526.842a2 2 0 0 0 2.422-1.003l2.968-5.938c.81-1.62 3.185-1.415 3.705.32l3.774 12.581a2 2 0 0 0 3.025 1.09l3.342-2.228c.27-.18.49-.422.646-.706l5.297-9.712a2 2 0 0 1 1.428-1.016l4.134-.689a2 2 0 0 1 1.61.437l3.892 3.243a2 2 0 0 0 2.694-.122l4.633-4.632C60 19.28 60 21.88 60 25.01v10.2c0 9.252 0 13.877-1.97 17.332a14.998 14.998 0 0 1-5.598 5.598c-2.131 1.215-4.708 1.681-8.54 1.86H16.108Z" fill="#2BEE6C"/><path d="M.072 43.03a112.37 112.37 0 0 1-.048-2.093l3.85-1.283a3 3 0 0 0 1.86-1.793l4.653-12.408a3 3 0 0 1 3.758-1.793l2.526.842a1 1 0 0 0 1.21-.501l2.97-5.938c1.214-2.43 4.775-2.123 5.556.48l3.774 12.58a1 1 0 0 0 1.513.545l3.341-2.227a1 1 0 0 0 .323-.353l5.298-9.712a3 3 0 0 1 2.14-1.523l4.135-.69a3 3 0 0 1 2.414.655l3.892 3.244a1 1 0 0 0 1.347-.061l5.28-5.28c.046.845.077 1.752.097 2.732l-3.962 3.962a3 3 0 0 1-4.042.183l-3.893-3.243a1 1 0 0 0-.804-.218l-4.135.689a1 1 0 0 0-.714.507l-5.297 9.712c-.233.427-.565.79-.97 1.06l-3.34 2.228a3 3 0 0 1-4.538-1.635l-3.775-12.58c-.26-.868-1.447-.97-1.852-.16l-2.969 5.937a3 3 0 0 1-3.632 1.505l-2.526-.842a1 1 0 0 0-1.252.597L7.606 38.564a5 5 0 0 1-3.1 2.988L.072 43.029Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" fill="#2BEE6C"/><path d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" fill="#fff"/><path d="M45 .283v59.654c-.63.042-1.294.074-2 .098V.185c.706.025 1.37.056 2 .098Z" fill="#fff"/><path class="help-img-highlight" d="M.5 25.01c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.289a14.5 14.5 0 0 1 5.412-5.41c1.639-.936 3.579-1.418 6.289-1.661C16.822.61 20.265.61 24.9.61h10.2c4.635 0 8.078 0 10.795.245 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.579 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.795-.244 2.71-.726 4.65-1.66 6.29a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.412C1.47 50.655.988 48.716.745 46.005.5 43.288.5 39.845.5 35.21v-10.2Z"/></g><defs><clipPath id="l"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,HELP_KEY_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#m)"><path fill="#EB8B47" d="M0 24.9c0-9.252 0-13.878 1.97-17.332A15 15 0 0 1 7.569 1.97C11.023 0 15.648 0 24.9 0h10.2c9.251 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.022 60 15.648 60 24.899v10.2c0 9.252 0 13.878-1.97 17.332a15.001 15.001 0 0 1-5.598 5.598c-3.455 1.97-8.08 1.97-17.332 1.97H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.351 0 35.1V24.9Z"/><path class="help-img-highlight" d="M.5 24.9c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.29a14.5 14.5 0 0 1 5.412-5.41C9.455 1.468 11.395.986 14.105.743 16.822.5 20.265.5 24.9.5h10.2c4.635 0 8.078 0 10.795.244 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.58 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.796-.244 2.71-.726 4.65-1.66 6.289a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.411c-.935-1.64-1.417-3.58-1.66-6.29C.5 43.178.5 39.734.5 35.1V24.9Z"/><path fill="#FF974C" stroke="#fff" stroke-width="2" d="M39.192 29.192c5.077-5.077 5.077-13.308 0-18.385-5.076-5.077-13.308-5.077-18.384 0-5.077 5.077-5.077 13.308 0 18.385l1.287 1.291c1.137 1.142 1.706 1.712 2.097 2.387.267.462.472.957.608 1.473.2.755.2 1.56.2 3.171V48.75c0 1.077 0 1.615.134 2.119a4 4 0 0 0 .407.984c.262.45.643.831 1.404 1.592l.294.295c.654.654.982.981 1.365 1.086.26.07.533.07.792 0 .383-.105.71-.432 1.365-1.086l3.478-3.479c.655-.654.982-.981 1.087-1.365a1.5 1.5 0 0 0 0-.791c-.105-.384-.432-.711-1.087-1.365l-.478-.479c-.655-.654-.982-.981-1.087-1.365a1.5 1.5 0 0 1 0-.791c.105-.384.432-.711 1.087-1.365l.478-.479c.655-.654.982-.981 1.087-1.365a1.5 1.5 0 0 0 0-.791c-.105-.384-.432-.711-1.087-1.365l-.492-.493c-.65-.65-.974-.974-1.08-1.355a1.5 1.5 0 0 1-.003-.788c.102-.382.425-.71 1.069-1.364l5.46-5.547Z"/><circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2"/></g><defs><clipPath id="m"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,HELP_USER_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#n)"><rect width="60" height="60" fill="#00ACE6" rx="30"/><path fill="#1AC6FF" stroke="#fff" stroke-width="2" d="M59 73c0 16.016-12.984 29-29 29S1 89.016 1 73c0-16.017 11-29 29-29s29 12.983 29 29ZM18.69 19.902a11 11 0 0 1 9.281-8.692 14.842 14.842 0 0 1 4.058 0 11 11 0 0 1 9.28 8.692c.178.866.322 1.75.44 2.625.132.977.132 1.968 0 2.945a39.467 39.467 0 0 1-.44 2.625 11 11 0 0 1-9.28 8.692 14.862 14.862 0 0 1-4.058 0 11 11 0 0 1-9.28-8.692 39.467 39.467 0 0 1-.44-2.625 11.004 11.004 0 0 1 0-2.945c.118-.876.262-1.759.44-2.625Z"/><circle cx="24.5" cy="23.5" r="1.5" fill="#fff"/><circle cx="35.5" cy="23.5" r="1.5" fill="#fff"/><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m31 20-3 8h4"/></g><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="29.5"/><defs><clipPath id="n"><rect width="60" height="60" fill="#fff" rx="30"/></clipPath></defs></svg>`,HELP_LOCK_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><rect width="60" height="60" fill="#C653C6" rx="3"/><path fill="#fff" d="M20.034 15.216C20 15.607 20 16.07 20 17v2.808c0 1.13 0 1.696-.2 2.11a1.78 1.78 0 0 1-.584.714c-.366.28-1.051.42-2.423.7a7.076 7.076 0 0 0-1.597.511 9.001 9.001 0 0 0-4.353 4.353C10 30.005 10 32.336 10 37c0 4.663 0 6.995.843 8.804a9.001 9.001 0 0 0 4.353 4.353C17.005 51 19.336 51 24 51h12c4.663 0 6.995 0 8.804-.843a9.001 9.001 0 0 0 4.353-4.353C50 43.995 50 41.664 50 37c0-4.663 0-6.995-.843-8.804a9.001 9.001 0 0 0-4.353-4.353 7.076 7.076 0 0 0-1.597-.511c-1.372-.28-2.057-.42-2.423-.7a1.78 1.78 0 0 1-.583-.715C40 21.505 40 20.94 40 19.809V17c0-.929 0-1.393-.034-1.784a9 9 0 0 0-8.182-8.182C31.393 7 30.93 7 30 7s-1.393 0-1.784.034a9 9 0 0 0-8.182 8.182Z"/><path fill="#E87DE8" d="M22 17c0-.929 0-1.393.044-1.784a7 7 0 0 1 6.172-6.172C28.606 9 29.071 9 30 9s1.393 0 1.784.044a7 7 0 0 1 6.172 6.172c.044.39.044.855.044 1.784v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.394-.077-1.78a4 4 0 0 0-3.143-3.143C31.394 12 30.93 12 30 12s-1.394 0-1.78.077a4 4 0 0 0-3.143 3.143C25 15.606 25 16.07 25 17v4.5a1.5 1.5 0 0 1-3 0V17Z"/><path fill="#E87DE8" fill-rule="evenodd" d="M12 36.62c0-4.317 0-6.476.92-8.088a7 7 0 0 1 2.612-2.612c1.612-.92 3.77-.92 8.088-.92h6.855c.469 0 .703 0 .906.017 2.73.222 4.364 2.438 4.619 4.983.27-2.698 2.111-5 5.015-5A6.985 6.985 0 0 1 48 31.985v5.395c0 4.317 0 6.476-.92 8.088a7 7 0 0 1-2.612 2.612c-1.612.92-3.77.92-8.088.92h-5.855c-.469 0-.703 0-.906-.017-2.73-.222-4.364-2.438-4.619-4.983-.258 2.583-1.943 4.818-4.714 4.99-.155.01-.335.01-.694.01-.55 0-.825 0-1.057-.015a7 7 0 0 1-6.52-6.52C12 42.233 12 41.958 12 41.408V36.62Zm21.24-.273a4 4 0 1 0-6.478 0c.985 1.36 1.479 2.039 1.564 2.229.178.398.176.818.174 1.247V42.5a1.5 1.5 0 0 0 3 0v-2.677c-.002-.429-.004-.85.174-1.247.085-.19.579-.87 1.565-2.229Z" clip-rule="evenodd"/><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="2.5"/></svg>`,HELP_COMPAS_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><rect width="60" height="60" fill="#1DC956" rx="30"/><circle cx="30" cy="29.999" r="3" fill="#fff"/><path fill="#2BEE6C" stroke="#fff" stroke-width="2" d="m45.316 17.9-.88-.425.88.424a7.9 7.9 0 0 1 .026-.053c.093-.192.21-.432.26-.687l-.819-.162.819.162a2 2 0 0 0-.239-1.405c-.132-.224-.32-.412-.472-.562a8.415 8.415 0 0 1-.042-.042l-.042-.042c-.15-.151-.338-.34-.562-.472l-.508.862.508-.862a2 2 0 0 0-1.405-.239c-.255.05-.495.167-.687.26l-.053.026-15.05 7.246-.108.052c-1.131.545-1.843.887-2.456 1.374a6.994 6.994 0 0 0-1.13 1.13c-.487.613-.83 1.325-1.375 2.457l-.051.108-7.247 15.05-.025.053c-.094.192-.21.431-.26.686a2 2 0 0 0 .239 1.406l.855-.505-.856.505c.133.224.321.411.473.562l.042.042.041.042c.15.151.338.34.563.472a2 2 0 0 0 1.405.239l-.195-.981.195.98c.255-.05.494-.166.686-.26l.054-.025-.419-.87.419.87 15.05-7.247.107-.051c1.132-.545 1.844-.888 2.457-1.374a7.002 7.002 0 0 0 1.13-1.13c.487-.614.83-1.325 1.374-2.457l.052-.108 7.246-15.05Z"/><path fill="#1DC956" d="m33.376 32.723-2.669-3.43-14.85 14.849.206.205a1 1 0 0 0 1.141.194l15.105-7.273a3 3 0 0 0 1.067-4.545Z"/><path fill="#86F999" d="m26.624 27.276 2.669 3.43 14.85-14.849-.206-.205a1 1 0 0 0-1.141-.194L27.69 22.731a3 3 0 0 0-1.067 4.545Z"/><circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)"/><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="29.5"/></svg>`,HELP_NOUN_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><rect width="60" height="60" fill="#794CFF" rx="3"/><path fill="#987DE8" stroke="#fff" stroke-width="2" d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z"/><path fill="#fff" d="M37.5 25h10v10h-10z"/><path fill="#4019B2" d="M42.5 25h5v10h-5z"/><path fill="#fff" d="M19.5 25h10v10h-10z"/><path fill="#4019B2" d="M24.5 25h5v10h-5z"/><path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z"/><rect class="help-img-highlight" width="59" height="59" x=".5" y=".5" rx="2.5"/></svg>`,HELP_DAO_IMG:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#o)"><path fill="#EB8B47" d="M0 24.9c0-9.252 0-13.878 1.97-17.332A15 15 0 0 1 7.569 1.97C11.023 0 15.648 0 24.9 0h10.2c9.251 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.022 60 15.648 60 24.899v10.2c0 9.252 0 13.878-1.97 17.332a15.001 15.001 0 0 1-5.598 5.598c-3.455 1.97-8.08 1.97-17.332 1.97H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.351 0 35.1V24.9Z"/><path class="help-img-highlight" d="M.5 24.9c0-4.635 0-8.078.244-10.795.244-2.71.726-4.65 1.66-6.29a14.5 14.5 0 0 1 5.412-5.41C9.455 1.468 11.395.986 14.105.743 16.822.5 20.265.5 24.9.5h10.2c4.635 0 8.078 0 10.795.244 2.71.243 4.65.725 6.29 1.66a14.5 14.5 0 0 1 5.41 5.411c.935 1.64 1.417 3.58 1.66 6.29.244 2.717.245 6.16.245 10.794v10.2c0 4.635 0 8.078-.244 10.796-.244 2.71-.726 4.65-1.66 6.289a14.5 14.5 0 0 1-5.412 5.41c-1.639.936-3.579 1.418-6.289 1.661-2.717.244-6.16.244-10.795.244H24.9c-4.635 0-8.078 0-10.795-.244-2.71-.243-4.65-.725-6.29-1.66a14.5 14.5 0 0 1-5.41-5.411c-.935-1.64-1.417-3.58-1.66-6.29C.5 43.178.5 39.734.5 35.1V24.9Z"/><path fill="#FF974C" stroke="#fff" stroke-width="2" d="M19 52c5.523 0 10-4.477 10-10s-4.477-10-10-10S9 36.477 9 42s4.477 10 10 10Z"/><path fill="#fff" fill-rule="evenodd" d="M42.844 8.326a1 1 0 0 0-1.687 0L28.978 27.463A1 1 0 0 0 29.822 29h24.357a1 1 0 0 0 .843-1.537L42.844 8.326Z" clip-rule="evenodd"/><path fill="#FF974C" fill-rule="evenodd" d="M42.335 11.646c.324.115.571.504 1.066 1.28l7.332 11.523c.562.883.843 1.325.792 1.69a1 1 0 0 1-.342.623c-.28.238-.803.238-1.85.238H34.667c-1.047 0-1.57 0-1.85-.238a1 1 0 0 1-.342-.623c-.051-.365.23-.806.792-1.69l7.332-11.523c.495-.776.742-1.165 1.066-1.28a1 1 0 0 1 .67 0ZM35 27a7 7 0 0 0 7-7 7 7 0 0 0 7 7H35Z" clip-rule="evenodd"/><path fill="#FF974C" stroke="#fff" stroke-width="2" d="M10.106 9.357c-.109.32-.107.682-.106.975V25.668c-.001.293-.003.654.106.975a2 2 0 0 0 1.251 1.25c.32.11.682.108.975.107H19c5.523 0 10-4.477 10-10S24.523 8 19 8h-6.668c-.293-.001-.654-.003-.975.106a2 2 0 0 0-1.25 1.251Z"/><circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2"/><circle cx="19" cy="41.999" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2"/></g><defs><clipPath id="o"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,SEARCH_ICON:b`<svg width="20" height="21"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" fill="#949E9E"/></svg>`,HELP_ICON:b`<svg width="11" height="17" viewBox="0 0 11 17"><path fill="#fff" d="M5.22 2.97c-1.07 0-2.25.843-2.25 2.25a.75.75 0 0 1-1.5 0c0-2.393 2.019-3.75 3.75-3.75 1.73 0 3.75 1.357 3.75 3.75 0 1.64-1.038 2.466-1.785 3.057-.802.635-1.215.984-1.215 1.693a.75.75 0 1 1-1.5 0c0-1.466.985-2.24 1.681-2.788l.103-.081C7.007 6.504 7.47 6.08 7.47 5.22c0-1.407-1.181-2.25-2.25-2.25ZM5.22 14.97a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"/></svg>`,WALLET_ICON:b`<svg width="15" height="14" fill="none" viewBox="0 0 15 14"><path fill="#fff" fill-rule="evenodd" d="M.64 9.2v-3h.001c.009-1.857.07-2.886.525-3.682a4 4 0 0 1 1.492-1.493C3.58.5 4.813.5 7.28.5h3.735c.58 0 .871 0 1.114.04A3 3 0 0 1 14.6 3.011c.04.243.04.533.04 1.114 0 .58 0 .871-.04 1.114a3 3 0 0 1-2.471 2.47c-.243.041-.533.041-1.114.041h-.777c.178.307.302.648.362 1.011.04.243.04.533.04 1.114 0 .58 0 .871-.04 1.114a3 3 0 0 1-2.471 2.47c-.243.041-.533.041-1.114.041H4.507A3.867 3.867 0 0 1 .64 9.633V9.2ZM7.28 2h3.735c.64 0 .779.005.87.02a1.5 1.5 0 0 1 1.235 1.236c.015.09.02.229.02.869s-.005.779-.02.87a1.5 1.5 0 0 1-1.236 1.235c-.09.015-.229.02-.869.02H4.023c-.697 0-1.345.21-1.883.572V6.25h.001c.004-.791.015-1.383.059-1.867.056-.629.157-.926.269-1.122a2.5 2.5 0 0 1 .932-.933c.197-.111.494-.212 1.123-.268C5.173 2 6.019 2 7.28 2Zm-.265 5.75H4.023c-1.04 0-1.883.843-1.883 1.883A2.367 2.367 0 0 0 4.507 12h2.508c.64 0 .779-.005.87-.02a1.5 1.5 0 0 0 1.235-1.236c.015-.09.02-.229.02-.869s-.005-.779-.02-.87A1.5 1.5 0 0 0 7.884 7.77c-.09-.015-.228-.02-.869-.02Z" clip-rule="evenodd"/></svg>`,NETWORK_PLACEHOLDER:b`<svg width="28" height="28" fill="none" viewBox="0 0 28 28"><mask id="p" width="26" height="28" x="1" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#D9D9D9" d="M12 1.172a4 4 0 0 1 4 0l8.124 4.69a4 4 0 0 1 2 3.465v9.381a4 4 0 0 1-2 3.464L16 26.862a4 4 0 0 1-4 0l-8.124-4.69a4 4 0 0 1-2-3.464V9.327a4 4 0 0 1 2-3.464L12 1.173Z"/></mask><g mask="url(#p)"><path id="network-placeholder-fill" fill="#fff" d="M0 0h28v28H0z"/><path id="network-placeholder-dash" stroke="#000" stroke-dasharray="2 2" d="m8.953 2.931 2.032-1.173.25.433 1.015-.586c.269-.155.553-.271.844-.35l-.13-.483a4.003 4.003 0 0 1 2.071 0l-.13.483c.293.079.576.195.845.35l1.016.586.25-.433 2.03 1.173-.25.433 2.032 1.173.25-.433 2.03 1.172-.25.433 1.016.587c.269.155.512.342.725.556l.354-.354a4.003 4.003 0 0 1 1.035 1.794l-.483.129c.078.292.12.596.12.906v1.172h.5v2.346h-.5v2.345h.5v2.345h-.5v1.173c0 .31-.042.614-.12.906l.483.13a4.003 4.003 0 0 1-1.035 1.793l-.354-.354a3.498 3.498 0 0 1-.725.556l-1.015.586.25.434-2.031 1.172-.25-.433-2.031 1.173.25.433-2.031 1.172-.25-.433-1.016.587a3.494 3.494 0 0 1-.844.35l.13.482a4.003 4.003 0 0 1-2.071 0l.13-.483a3.496 3.496 0 0 1-.845-.35l-1.015-.586-.25.433-2.032-1.172.25-.433-2.03-1.173-.25.433L4.89 22.76l.25-.434-1.015-.586a3.498 3.498 0 0 1-.725-.556l-.354.354a4.003 4.003 0 0 1-1.035-1.794l.483-.13a3.497 3.497 0 0 1-.12-.905v-1.173h-.5V15.19h.5v-2.345h-.5v-2.346h.5V9.327c0-.31.042-.614.12-.906l-.483-.13a4.003 4.003 0 0 1 1.035-1.793l.354.354c.213-.214.456-.401.725-.556l1.015-.587-.25-.433 2.031-1.172.25.433 2.031-1.173-.25-.433Z"/><path fill="#798686" stroke="#fff" d="M14.243 13.563 14 13.428l-.243.135-6.388 3.549-.024.013c-.432.24-.79.44-1.053.622-.266.184-.516.405-.636.722a1.5 1.5 0 0 0 0 1.062c.12.317.37.538.636.722.263.183.62.382 1.053.622l.024.013 3.164 1.758.088.049c1.164.646 1.857 1.032 2.607 1.162.51.09 1.033.09 1.544 0 .75-.13 1.443-.516 2.606-1.162l.09-.05 3.163-1.757.024-.013c.432-.24.79-.44 1.053-.622.266-.184.516-.405.636-.722l-.468-.177.468.177a1.5 1.5 0 0 0 0-1.062l-.468.177.468-.177c-.12-.317-.37-.538-.636-.722-.263-.183-.62-.382-1.053-.622l-.024-.013-6.388-3.55Z"/><path fill="#9EA9A9" stroke="#fff" d="M14.243 8.563 14 8.428l-.243.135-6.388 3.549-.024.013c-.432.24-.79.44-1.053.622-.266.184-.516.405-.636.722a1.5 1.5 0 0 0 0 1.062c.12.316.37.537.636.722.263.183.62.382 1.053.622l.024.013 3.164 1.758.088.049c1.164.646 1.857 1.032 2.607 1.162.51.09 1.033.09 1.544 0 .75-.13 1.443-.516 2.606-1.162l.09-.05 3.163-1.757.024-.013c.432-.24.79-.44 1.053-.622.266-.184.516-.405.636-.722l-.468-.177.468.177a1.5 1.5 0 0 0 0-1.062l-.468.177.468-.177c-.12-.316-.37-.537-.636-.722-.263-.183-.62-.382-1.053-.622l-.024-.013-6.388-3.55Z"/><path fill="#C9CFCF" stroke="#fff" d="m22.344 9.53-.468-.176.468.177a1.5 1.5 0 0 0 0-1.062l-.468.177.468-.177c-.12-.317-.37-.537-.636-.722-.263-.183-.62-.382-1.053-.622l-.024-.013-3.163-1.758-.09-.05c-1.163-.645-1.856-1.03-2.606-1.161a4.5 4.5 0 0 0-1.544 0c-.75.13-1.443.516-2.607 1.162l-.088.05-3.164 1.757-.024.013c-.432.24-.79.44-1.053.622-.266.185-.516.405-.636.722a1.5 1.5 0 0 0 0 1.062c.12.317.37.537.636.722.263.183.62.382 1.053.622l.024.013 3.164 1.758.088.049c1.164.646 1.857 1.032 2.607 1.162.51.09 1.033.09 1.544 0 .75-.13 1.443-.516 2.606-1.162l.09-.05 3.163-1.757.024-.013c.432-.24.79-.44 1.053-.622.266-.184.516-.405.636-.722Z"/></g></svg>`,WALLET_PLACEHOLDER:b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,TOKEN_PLACEHOLDER:b`<svg width="60" height="60" viewBox="0 0 60 60" fill="none"><rect id="token-placeholder-fill" width="58" height="58" x="1" y="1" fill="#fff" rx="29"/><path fill="#3B4040" stroke="#fff" stroke-width="2" d="M32 10a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v5.566c0 .357.192.685.495.875a16.001 16.001 0 0 1 4.256 3.894c.667.88.33 2.113-.627 2.665l-2.494 1.44c-.956.552-2.166.204-2.913-.609a9.12 9.12 0 1 0 .064 12.267c.739-.82 1.945-1.181 2.907-.64l2.509 1.415c.962.542 1.312 1.77.654 2.658a16 16 0 0 1-4.356 4.028c-.303.19-.495.518-.495.875V50a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-2.992c0-.602-.528-1.065-1.13-1.032-.579.032-1.16.032-1.74 0-.602-.032-1.13.43-1.13 1.032V50a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-5.566c0-.357-.192-.685-.495-.875a16 16 0 0 1 0-27.118c.303-.19.495-.517.495-.875V10a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2.992c0 .601.528 1.064 1.13 1.032.58-.032 1.161-.032 1.74 0 .602.033 1.13-.43 1.13-1.032V10Z"/><rect id="token-placeholder-dash" width="58" height="58" x="1" y="1" stroke="#000" stroke-dasharray="6 6" stroke-width="2" rx="29"/></svg>`,ACCOUNT_COPY:b`<svg width="14" height="14" fill="none" viewBox="0 0 14 14"><path fill="#fff" fill-rule="evenodd" d="M4.003 4.005c.012-1.225.074-1.936.391-2.491a3 3 0 0 1 1.12-1.12C6.204 0 7.136 0 9 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C14 2.204 14 3.136 14 5s0 2.795-.394 3.486a3 3 0 0 1-1.12 1.12c-.555.317-1.266.379-2.491.391l.002.003c-.012 1.222-.075 1.932-.391 2.486a3 3 0 0 1-1.12 1.12C7.796 14 6.864 14 5 14s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C0 11.796 0 10.864 0 9s0-2.795.394-3.486a3 3 0 0 1 1.12-1.12c.554-.316 1.264-.379 2.486-.391l.003.002ZM9 8.5c-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.045-.08-.113-.243-.154-.693C5.501 6.58 5.5 5.959 5.5 5c0-.959.001-1.58.043-2.05.04-.45.109-.613.154-.693a1.5 1.5 0 0 1 .56-.56c.08-.045.243-.113.693-.154C7.42 1.501 8.041 1.5 9 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.045.08.113.243.154.693.042.47.043 1.091.043 2.05 0 .959-.001 1.58-.043 2.05-.04.45-.109.613-.154.693a1.5 1.5 0 0 1-.56.56c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043ZM4 5.503a13.77 13.77 0 0 0-1.05.04c-.45.04-.613.109-.693.154a1.5 1.5 0 0 0-.56.56c-.045.08-.113.243-.154.693C1.501 7.42 1.5 8.041 1.5 9c0 .959.001 1.58.043 2.05.04.45.109.613.154.693a1.5 1.5 0 0 0 .56.56c.08.045.243.113.693.154.47.042 1.091.043 2.05.043.959 0 1.58-.001 2.05-.043.45-.04.613-.109.693-.154a1.5 1.5 0 0 0 .56-.56c.045-.08.113-.242.154-.693.025-.283.035-.619.04-1.05-1.534-.003-2.358-.037-2.983-.394a3 3 0 0 1-1.12-1.12c-.357-.625-.39-1.449-.394-2.983Z" clip-rule="evenodd"/></svg>`,ACCOUNT_DISCONNECT:b`<svg width="16" height="14" fill="none" viewBox="0 0 16 14"><path fill="#fff" d="M9.677 1.5h-2.61c-1.261 0-2.107.001-2.757.06-.629.056-.926.157-1.122.268a2.5 2.5 0 0 0-.933.933c-.112.196-.212.493-.269 1.122-.058.65-.06 1.496-.06 2.757v.72c0 1.26.002 2.107.06 2.756.057.63.157.927.27 1.123a2.5 2.5 0 0 0 .932.933c.196.111.493.212 1.122.268.65.059 1.496.06 2.757.06h2.61a.75.75 0 1 1 0 1.5h-2.61c-2.467 0-3.7 0-4.622-.525a4 4 0 0 1-1.493-1.493C.427 11.06.427 9.827.427 7.36v-.72c0-2.467 0-3.7.525-4.622A4 4 0 0 1 2.445.525C3.366 0 4.6 0 7.067 0h2.61a.75.75 0 1 1 0 1.5Z"/><path fill="#fff" d="M10.896 11.03a.75.75 0 0 1 0-1.06l1.793-1.793a.25.25 0 0 0-.176-.427H8.177a.75.75 0 0 1 0-1.5h4.336a.25.25 0 0 0 .176-.427L10.896 4.03a.75.75 0 0 1 1.061-1.06l3.323 3.323a1 1 0 0 1 0 1.414l-3.323 3.323a.75.75 0 0 1-1.06 0Z"/></svg>`,GLOBE_ICON:b`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`},hr=g`.w3m-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--w3m-background-border-radius) * .9);background-color:var(--w3m-background-color);background-image:var(--w3m-background-image-url);background-position:center;background-size:cover}.w3m-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--w3m-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--w3m-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--w3m-color-bg-1);box-shadow:0 0 0 1px var(--w3m-color-overlay)}button:active{background-color:var(--w3m-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--w3m-color-fg-1)}.w3m-toolbar div{display:flex}.w3m-toolbar div button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--w3m-color-fg-1)}.w3m-help-active button:first-child path{fill:var(--w3m-color-bg-1)}@media(hover:hover){button:hover{background-color:var(--w3m-color-bg-2)}}`;var pr=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,It=(e,r,a,o)=>{for(var t=o>1?void 0:o?wr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&pr(r,a,t),t};let Te=class extends m{constructor(){super(),this.isHelp=!1,this.unsubscribeRouter=void 0,this.unsubscribeRouter=x.subscribe(e=>{this.isHelp=e.view==="Help"})}disconnectedCallback(){var e;(e=this.unsubscribeRouter)==null||e.call(this)}onHelp(){x.push("Help")}logoTemplate(){var e;const r=(e=G.state.themeVariables)==null?void 0:e["--w3m-logo-image-url"];return r?l`<img src="${r}">`:p.WALLET_CONNECT_LOGO}render(){const e={"w3m-help-active":this.isHelp};return l`<div class="w3m-toolbar-placeholder"></div><div class="w3m-toolbar">${this.logoTemplate()}<div class="${P(e)}"><button @click="${this.onHelp}">${p.HELP_ICON}</button> <button @click="${R.close}">${p.CROSS_ICON}</button></div></div>`}};Te.styles=[w.globalCss,hr],It([f()],Te.prototype,"isHelp",2),Te=It([h("w3m-modal-backcard")],Te);const gr=g`main{padding:20px;padding-top:0;width:100%}`;var ur=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,br=(e,r,a,o)=>{for(var t=o>1?void 0:o?vr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ur(r,a,t),t};let Xe=class extends m{render(){return l`<main><slot></slot></main>`}};Xe.styles=[w.globalCss,gr],Xe=br([h("w3m-modal-content")],Xe);const fr=g`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--w3m-color-bg-2)}`;var xr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,Cr=(e,r,a,o)=>{for(var t=o>1?void 0:o?yr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&xr(r,a,t),t};let Je=class extends m{render(){return l`<footer><slot></slot></footer>`}};Je.styles=[w.globalCss,fr],Je=Cr([h("w3m-modal-footer")],Je);const kr=g`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.w3m-border{border-bottom:1px solid var(--w3m-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}path{fill:var(--w3m-accent-color)}`;var $r=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,xe=(e,r,a,o)=>{for(var t=o>1?void 0:o?Or(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&$r(r,a,t),t};let X=class extends m{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return l`<button class="w3m-back-btn" @click="${x.goBack}">${p.BACK_ICON}</button>`}actionBtnTemplate(){return l`<button class="w3m-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const e={"w3m-border":this.border},r=x.state.history.length>1,a=this.title?l`<w3m-text variant="big-bold">${this.title}</w3m-text>`:l`<slot></slot>`;return l`<header class="${P(e)}">${r?this.backBtnTemplate():null} ${a} ${this.onAction?this.actionBtnTemplate():null}</header>`}};X.styles=[w.globalCss,kr],xe([c()],X.prototype,"title",2),xe([c()],X.prototype,"onAction",2),xe([c()],X.prototype,"actionIcon",2),xe([c()],X.prototype,"border",2),X=xe([h("w3m-modal-header")],X);const Ir={1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00"},Er={ETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},WETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},AVAX:{icon:"30c46e53-e989-45fb-4549-be3bd4eb3b00"},FTM:{icon:"06b26297-fe0c-4733-5d6b-ffa5498aac00"},BNB:{icon:"93564157-2e8e-4ce7-81df-b264dbee9b00"},MATIC:{icon:"41d04d42-da3b-4453-8506-668cc0727900"},OP:{icon:"ab9c186a-c52f-464b-2906-ca59d760a400"},xDAI:{icon:"02b53f6a-e3d4-479e-1cb4-21178987d100"},EVMOS:{icon:"f926ff41-260d-4028-635e-91913fc28e00"},METIS:{icon:"3897a66d-40b9-4833-162f-a2c90531c900"},IOTX:{icon:"34e68754-e536-40da-c153-6ef2e7188a00"}},N={externalWallets(){let e=W.client().getConnectors();return e=e.filter(r=>r.id!=="injected"),e},manualWallets(){var e,r;const{mobileWallets:a,desktopWallets:o}=L.state,t=(e=N.recentWallet())==null?void 0:e.id,i=u.isMobile()?a:o,n=i?.filter(d=>t!==d.id);return(r=u.isMobile()?n?.map(({id:d,name:v,links:y})=>({id:d,name:v,mobile:y,links:y})):n?.map(({id:d,name:v,links:y})=>({id:d,name:v,desktop:y,links:y})))!=null?r:[]},installedInjectedWallets(){if(!W.client().isInjectedProviderInstalled())return[];const{namespace:e}=W.client(),{injectedWallets:r}=I.state;let a=r.filter(({injected:o})=>!!o.some(t=>W.client().safeCheckInjectedProvider(t.injected_id)&&t.namespace===e));return a.length>1&&(a=a.filter(({injected:o})=>!!o.map(({injected_id:i})=>i).every(i=>i!=="isMetaMask"))),a.length?a:[{name:"Browser",id:"browser",image_id:void 0}]},injectedWallets(){const{explorerExcludedWalletIds:e,explorerRecommendedWalletIds:r}=L.state,a=u.isMobile();if(e==="ALL"||a)return[];const{namespace:o}=W.client(),{injectedWallets:t}=I.state;return t.filter(({id:i,injected:n})=>{const d=u.isArray(e)?e:[],v=u.isArray(r)?r:[];return!!n.some(y=>y.namespace===o&&!d.includes(i)&&!v.includes(i))})},recentWallet(){return s.getRecentWallet()},recomendedWallets(e=!1){var r;const a=N.installedInjectedWallets().map(({id:n})=>n),o=e||(r=N.recentWallet())==null?void 0:r.id,t=[...a,o],{recomendedWallets:i}=I.state;return i.filter(n=>!t.includes(n.id))}},s={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET_INFO:"W3M_RECENT_WALLET_INFO",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",WAGMI_WALLET:"wagmi.wallet",getShadowRootElement(e,r){const a=e.renderRoot.querySelector(r);if(!a)throw new Error(`${r} not found`);return a},getWalletIcon({id:e,image_id:r}){const{walletImages:a}=L.state;return a!=null&&a[e]?a[e]:r?I.getWalletImageUrl(r):""},getWalletName(e,r=!1){return r&&e.length>8?`${e.substring(0,8)}..`:e},getChainIcon(e){var r;const a=Ir[e],{projectId:o,chainImages:t}=L.state;return(r=t?.[e])!=null?r:o&&a?I.getAssetImageUrl(a):""},getTokenIcon(e){var r,a;const o=(r=Er[e])==null?void 0:r.icon,{projectId:t,tokenImages:i}=L.state;return(a=i?.[e])!=null?a:t&&o?I.getAssetImageUrl(o):""},isMobileAnimation(){return window.innerWidth<=s.MOBILE_BREAKPOINT},async preloadImage(e){const r=new Promise((a,o)=>{const t=new Image;t.onload=a,t.onerror=o,t.src=e});return Promise.race([r,u.wait(3e3)])},getErrorMessage(e){return e instanceof Error?e.message:"Unknown Error"},debounce(e,r=500){let a;return(...o)=>{function t(){e(...o)}a&&clearTimeout(a),a=setTimeout(t,r)}},handleMobileLinking(e){const{pairingUri:r}=A.state,{mobile:a,name:o}=e,t=a?.native,i=a?.universal;s.setRecentWallet(e);function n(d){let v="";t?v=u.formatUniversalUrl(t,d,o):i&&(v=u.formatNativeUrl(i,d,o)),u.openHref(v,"_self")}n(r)},handleAndroidLinking(){const{pairingUri:e}=A.state;u.setWalletConnectAndroidDeepLink(e),u.openHref(e,"_self")},async handleUriCopy(){try{const{pairingUri:e}=A.state;await navigator.clipboard.writeText(e),j.openToast("Link copied","success")}catch{j.openToast("Failed to copy","error")}},async handleConnectorConnection(e,r){try{const{selectedChain:a}=O.state;await W.client().connectConnector(e,a?.id),R.close()}catch(a){console.error(a),r?r():j.openToast(s.getErrorMessage(a),"error")}},getCustomImageUrls(){const{chainImages:e,walletImages:r}=L.state,a=Object.values(e??{}),o=Object.values(r??{});return Object.values([...a,...o])},truncate(e,r=8){return e.length<=r?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`},generateAvatarColors(e){var r;const a=(r=e.match(/.{1,7}/g))==null?void 0:r.splice(0,5),o=[];a?.forEach(i=>{let n=0;for(let v=0;v<i.length;v+=1)n=i.charCodeAt(v)+((n<<5)-n),n=n&n;const d=[0,0,0];for(let v=0;v<3;v+=1){const y=n>>v*8&255;d[v]=y}o.push(`rgb(${d[0]}, ${d[1]}, ${d[2]})`)});const t=document.querySelector(":root");if(t){const i={"--w3m-color-av-1":o[0],"--w3m-color-av-2":o[1],"--w3m-color-av-3":o[2],"--w3m-color-av-4":o[3],"--w3m-color-av-5":o[4]};Object.entries(i).forEach(([n,d])=>t.style.setProperty(n,d))}},setRecentWallet(e){try{localStorage.setItem(s.W3M_RECENT_WALLET_INFO,JSON.stringify(e))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const e=localStorage.getItem(s.W3M_RECENT_WALLET_INFO);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(e,r){return e.toUpperCase().includes(r.toUpperCase())},openWalletExplorerUrl(){u.openHref(s.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{id:e,desktop:r,mobile:a,injected:o}=u.getWalletRouterData(),t=N.installedInjectedWallets(),i=!!o?.length,n=t.some(H=>H.id===e),d=!!r?.native,v=!!r?.universal,y=!!a?.native||!!a?.universal;return{isInjectedInstalled:n,isInjected:i,isDesktop:d,isMobile:y,isWeb:v}},goToConnectingView(e){x.setData({Wallet:e});const r=u.isMobile(),{isDesktop:a,isWeb:o,isMobile:t,isInjectedInstalled:i}=s.getCachedRouterWalletPlatforms();r?i?x.push("InjectedConnecting"):t?x.push("MobileConnecting"):o?x.push("WebConnecting"):x.push("InstallWallet"):i?x.push("InjectedConnecting"):a?x.push("DesktopConnecting"):o?x.push("WebConnecting"):t?x.push("MobileQrcodeConnecting"):x.push("InstallWallet")},getWagmiWalletType(){return localStorage.getItem(s.WAGMI_WALLET)}},Ar=g`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`;var jr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,et=(e,r,a,o)=>{for(var t=o>1?void 0:o?Pr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&jr(r,a,t),t};let ye=class extends m{constructor(){super(),this.view=x.state.view,this.prevView=x.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=x.subscribe(e=>{this.view!==e.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{const r=`${e.contentRect.height}px`;this.oldHeight!=="0px"&&ie(this.routerEl,{height:[this.oldHeight,r]},{duration:.2}),this.oldHeight=r}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,r;(e=this.unsubscribe)==null||e.call(this),(r=this.resizeObserver)==null||r.disconnect()}get routerEl(){return s.getShadowRootElement(this,".w3m-router")}get contentEl(){return s.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return l`<w3m-connect-wallet-view></w3m-connect-wallet-view>`;case"SelectNetwork":return l`<w3m-select-network-view></w3m-select-network-view>`;case"InjectedConnecting":return l`<w3m-injected-connecting-view></w3m-injected-connecting-view>`;case"DesktopConnecting":return l`<w3m-desktop-connecting-view></w3m-desktop-connecting-view>`;case"MobileConnecting":return l`<w3m-mobile-connecting-view></w3m-mobile-connecting-view>`;case"WebConnecting":return l`<w3m-web-connecting-view></w3m-web-connecting-view>`;case"MobileQrcodeConnecting":return l`<w3m-mobile-qr-connecting-view></w3m-mobile-qr-connecting-view>`;case"GetWallet":return l`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"WalletExplorer":return l`<w3m-wallet-explorer-view></w3m-wallet-explorer-view>`;case"Qrcode":return l`<w3m-qrcode-view></w3m-qrcode-view>`;case"Help":return l`<w3m-help-view></w3m-help-view>`;case"Account":return l`<w3m-account-view></w3m-account-view>`;case"SwitchNetwork":return l`<w3m-switch-network-view></w3m-switch-network-view>`;case"InstallWallet":return l`<w3m-install-wallet-view></w3m-install-wallet-view>`;default:return l`<div>Not Found</div>`}}async onChangeRoute(){await ie(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=x.state.view,ie(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return l`<div class="w3m-router"><div class="w3m-content">${this.viewTemplate()}</div></div>`}};ye.styles=[w.globalCss,Ar],et([f()],ye.prototype,"view",2),et([f()],ye.prototype,"prevView",2),ye=et([h("w3m-modal-router")],ye);const Wr=g`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--w3m-notification-border-radius);border:1px solid var(--w3m-color-overlay);background-color:var(--w3m-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--w3m-color-bg-3)}}.w3m-success path{fill:var(--w3m-accent-color)}.w3m-error path{fill:var(--w3m-error-color)}`;var Mr=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,Et=(e,r,a,o)=>{for(var t=o>1?void 0:o?Lr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Mr(r,a,t),t};let _e=class extends m{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=j.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>j.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var e;(e=this.unsubscribe)==null||e.call(this),clearTimeout(this.timeout),j.closeToast()}render(){const{message:e,variant:r}=j.state,a={"w3m-success":r==="success","w3m-error":r==="error"};return this.open?l`<div class="${P(a)}">${r==="success"?p.CHECKMARK_ICON:null} ${r==="error"?p.CROSS_ICON:null}<w3m-text variant="small-regular">${e}</w3m-text></div>`:null}};_e.styles=[w.globalCss,Wr],Et([f()],_e.prototype,"open",2),_e=Et([h("w3m-modal-toast")],_e);const Tr=g`button{padding:5px;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px;position:relative}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}button:active{background-color:var(--w3m-color-overlay)}.w3m-unsupported{opacity:.3}@media(hover:hover){button:hover{background-color:var(--w3m-color-overlay)}}`;var _r=Object.defineProperty,Nr=Object.getOwnPropertyDescriptor,Ce=(e,r,a,o)=>{for(var t=o>1?void 0:o?Nr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&_r(r,a,t),t};let J=class extends m{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId="",this.unsupported=!1}render(){const e={"w3m-unsupported":this.unsupported};return l`<button @click="${this.onClick}" class="${P(e)}"><w3m-network-image chainId="${this.chainId}"></w3m-network-image><w3m-text variant="xsmall-regular">${this.name}</w3m-text></button>`}};J.styles=[w.globalCss,Tr],Ce([c()],J.prototype,"onClick",2),Ce([c()],J.prototype,"name",2),Ce([c()],J.prototype,"chainId",2),Ce([c()],J.prototype,"unsupported",2),J=Ce([h("w3m-network-button")],J);const Dr=g`@keyframes loading{to{stroke-dashoffset:0}}:host{width:inherit;height:inherit;position:relative}path{stroke:var(--w3m-color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--w3m-color-bg-3)}#network-placeholder-dash{stroke:var(--w3m-color-overlay)}image{clip-path:path('M17.033 4.964c3.852-2.262 5.778-3.393 7.84-3.77a11.807 11.807 0 0 1 4.254 0c2.062.377 3.988 1.508 7.84 3.77l6.066 3.562c3.852 2.263 5.777 3.394 7.13 5.022a12.268 12.268 0 0 1 2.127 3.747c.71 2.006.71 4.268.71 8.793v7.124c0 4.525 0 6.787-.71 8.793a12.268 12.268 0 0 1-2.126 3.747c-1.354 1.628-3.28 2.76-7.131 5.022l-6.066 3.562c-3.852 2.262-5.778 3.393-7.84 3.771a11.814 11.814 0 0 1-4.254 0c-2.062-.378-3.988-1.509-7.84-3.77l-6.066-3.563c-3.852-2.263-5.778-3.394-7.13-5.022a12.268 12.268 0 0 1-2.127-3.747C1 40 1 37.737 1 33.212v-7.124c0-4.525 0-6.787.71-8.793a12.268 12.268 0 0 1 2.127-3.747c1.352-1.628 3.278-2.76 7.13-5.022l6.066-3.562Z')}`;var Rr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,At=(e,r,a,o)=>{for(var t=o>1?void 0:o?Zr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Rr(r,a,t),t};let Ne=class extends m{constructor(){super(...arguments),this.chainId=""}render(){const e=s.getChainIcon(this.chainId);return e?l`<svg width="54" height="59" viewBox="0 0 54 59" fill="none"><image href="${e}"/><image href="${e}" width="54" height="59"/><path d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z"/></svg>`:l`${p.NETWORK_PLACEHOLDER}`}};Ne.styles=[w.globalCss,Dr],At([c()],Ne.prototype,"chainId",2),Ne=At([h("w3m-network-image")],Ne);const Hr=.1,jt=2.5,U=7;function tt(e,r,a){return e===r?!1:(e-r<0?r-e:e-r)<=a+Hr}function Br(e,r){const a=Array.prototype.slice.call(Ft.create(e,{errorCorrectionLevel:r}).modules.data,0),o=Math.sqrt(a.length);return a.reduce((t,i,n)=>(n%o===0?t.push([i]):t[t.length-1].push(i))&&t,[])}const Sr={generate(e,r,a){const o="#141414",t="#ffffff",i=[],n=Br(e,"Q"),d=r/n.length,v=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];v.forEach(({x:E,y:C})=>{const T=(n.length-U)*d*E,$=(n.length-U)*d*C,_=.45;for(let B=0;B<v.length;B+=1){const le=d*(U-B*2);i.push(b`<rect fill="${B%2===0?o:t}" height="${le}" rx="${le*_}" ry="${le*_}" width="${le}" x="${T+d*B}" y="${$+d*B}">`)}});const y=Math.floor((a+25)/d),H=n.length/2-y/2,Z=n.length/2+y/2-1,D=[];n.forEach((E,C)=>{E.forEach((T,$)=>{if(n[C][$]&&!(C<U&&$<U||C>n.length-(U+1)&&$<U||C<U&&$>n.length-(U+1))&&!(C>H&&C<Z&&$>H&&$<Z)){const _=C*d+d/2,B=$*d+d/2;D.push([_,B])}})});const ve={};return D.forEach(([E,C])=>{ve[E]?ve[E].push(C):ve[E]=[C]}),Object.entries(ve).map(([E,C])=>{const T=C.filter($=>C.every(_=>!tt($,_,d)));return[Number(E),T]}).forEach(([E,C])=>{C.forEach(T=>{i.push(b`<circle cx="${E}" cy="${T}" fill="${o}" r="${d/jt}">`)})}),Object.entries(ve).filter(([E,C])=>C.length>1).map(([E,C])=>{const T=C.filter($=>C.some(_=>tt($,_,d)));return[Number(E),T]}).map(([E,C])=>{C.sort(($,_)=>$<_?-1:1);const T=[];for(const $ of C){const _=T.find(B=>B.some(le=>tt($,le,d)));_?_.push($):T.push([$])}return[E,T.map($=>[$[0],$[$.length-1]])]}).forEach(([E,C])=>{C.forEach(([T,$])=>{i.push(b`<line x1="${E}" x2="${E}" y1="${T}" y2="${$}" stroke="${o}" stroke-width="${d/(jt/2)}" stroke-linecap="round">`)})}),i}},Ur=g`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.w3m-dark{background-color:#fff;border-radius:var(--w3m-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:var(--w3m-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--w3m-accent-color)}svg:first-child path:last-child{stroke:var(--w3m-color-overlay)}`;var zr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,ce=(e,r,a,o)=>{for(var t=o>1?void 0:o?Vr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&zr(r,a,t),t};let q=class extends m{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e=G.state.themeMode==="light"?this.size:this.size-36;return b`<svg height="${e}" width="${e}">${Sr.generate(this.uri,e,e/4)}</svg>`}render(){const e={"w3m-dark":G.state.themeMode==="dark"};return l`<div style="${`width: ${this.size}px`}" class="${P(e)}">${this.walletId||this.imageUrl?l`<w3m-wallet-image walletId="${this.walletId}" imageId="${this.imageId}" imageUrl="${this.imageUrl}"></w3m-wallet-image>`:p.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};q.styles=[w.globalCss,Ur],ce([c()],q.prototype,"uri",2),ce([c({type:Number})],q.prototype,"size",2),ce([c()],q.prototype,"imageId",2),ce([c()],q.prototype,"walletId",2),ce([c()],q.prototype,"imageUrl",2),q=ce([h("w3m-qrcode")],q);const Gr=g`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--w3m-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--w3m-color-fg-1);background-color:var(--w3m-color-bg-3);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);caret-color:var(--w3m-accent-color)}input::placeholder{color:var(--w3m-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--w3m-accent-color)}path{fill:var(--w3m-color-fg-2)}`;var Fr=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Pt=(e,r,a,o)=>{for(var t=o>1?void 0:o?qr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Fr(r,a,t),t};let De=class extends m{constructor(){super(...arguments),this.onChange=()=>null}render(){return l`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${p.SEARCH_ICON}`}};De.styles=[w.globalCss,Gr],Pt([c()],De.prototype,"onChange",2),De=Pt([h("w3m-search-input")],De);const Kr=g`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}:host{width:100%;height:100%;display:flex;justify-content:center;align-items:center}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite}.accent{stroke:var(--w3m-accent-color)}.fill{stroke:var(--w3m-accent-fill-color)}`;var Yr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,rt=(e,r,a,o)=>{for(var t=o>1?void 0:o?Qr(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Yr(r,a,t),t};let ke=class extends m{constructor(){super(...arguments),this.color="accent",this.size=24}render(){return l`<svg viewBox="0 0 50 50" width="${this.size}" height="${this.size}"><circle class="${this.color}" cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`}};ke.styles=[w.globalCss,Kr],rt([c()],ke.prototype,"color",2),rt([c({type:Number})],ke.prototype,"size",2),ke=rt([h("w3m-spinner")],ke);const Xr=g`span{font-style:normal;font-family:var(--w3m-font-family);font-feature-settings:var(--w3m-font-feature-settings)}.w3m-xsmall-bold{font-family:var(--w3m-text-xsmall-bold-font-family);font-weight:var(--w3m-text-xsmall-bold-weight);font-size:var(--w3m-text-xsmall-bold-size);line-height:var(--w3m-text-xsmall-bold-line-height);letter-spacing:var(--w3m-text-xsmall-bold-letter-spacing);text-transform:var(--w3m-text-xsmall-bold-text-transform)}.w3m-xsmall-regular{font-family:var(--w3m-text-xsmall-regular-font-family);font-weight:var(--w3m-text-xsmall-regular-weight);font-size:var(--w3m-text-xsmall-regular-size);line-height:var(--w3m-text-xsmall-regular-line-height);letter-spacing:var(--w3m-text-xsmall-regular-letter-spacing);text-transform:var(--w3m-text-xsmall-regular-text-transform)}.w3m-small-thin{font-family:var(--w3m-text-small-thin-font-family);font-weight:var(--w3m-text-small-thin-weight);font-size:var(--w3m-text-small-thin-size);line-height:var(--w3m-text-small-thin-line-height);letter-spacing:var(--w3m-text-small-thin-letter-spacing);text-transform:var(--w3m-text-small-thin-text-transform)}.w3m-small-regular{font-family:var(--w3m-text-small-regular-font-family);font-weight:var(--w3m-text-small-regular-weight);font-size:var(--w3m-text-small-regular-size);line-height:var(--w3m-text-small-regular-line-height);letter-spacing:var(--w3m-text-small-regular-letter-spacing);text-transform:var(--w3m-text-small-regular-text-transform)}.w3m-medium-regular{font-family:var(--w3m-text-medium-regular-font-family);font-weight:var(--w3m-text-medium-regular-weight);font-size:var(--w3m-text-medium-regular-size);line-height:var(--w3m-text-medium-regular-line-height);letter-spacing:var(--w3m-text-medium-regular-letter-spacing);text-transform:var(--w3m-text-medium-regular-text-transform)}.w3m-big-bold{font-family:var(--w3m-text-big-bold-font-family);font-weight:var(--w3m-text-big-bold-weight);font-size:var(--w3m-text-big-bold-size);line-height:var(--w3m-text-big-bold-line-height);letter-spacing:var(--w3m-text-big-bold-letter-spacing);text-transform:var(--w3m-text-big-bold-text-transform)}:host(*){color:var(--w3m-color-fg-1)}.w3m-color-primary{color:var(--w3m-color-fg-1)}.w3m-color-secondary{color:var(--w3m-color-fg-2)}.w3m-color-tertiary{color:var(--w3m-color-fg-3)}.w3m-color-inverse{color:var(--w3m-accent-fill-color)}.w3m-color-accnt{color:var(--w3m-accent-color)}.w3m-color-error{color:var(--w3m-error-color)}`;var Jr=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,at=(e,r,a,o)=>{for(var t=o>1?void 0:o?ea(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Jr(r,a,t),t};let $e=class extends m{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const e={"w3m-big-bold":this.variant==="big-bold","w3m-medium-regular":this.variant==="medium-regular","w3m-small-regular":this.variant==="small-regular","w3m-small-thin":this.variant==="small-thin","w3m-xsmall-regular":this.variant==="xsmall-regular","w3m-xsmall-bold":this.variant==="xsmall-bold","w3m-color-primary":this.color==="primary","w3m-color-secondary":this.color==="secondary","w3m-color-tertiary":this.color==="tertiary","w3m-color-inverse":this.color==="inverse","w3m-color-accnt":this.color==="accent","w3m-color-error":this.color==="error"};return l`<span><slot class="${P(e)}"></slot></span>`}};$e.styles=[w.globalCss,Xr],at([c()],$e.prototype,"variant",2),at([c()],$e.prototype,"color",2),$e=at([h("w3m-text")],$e);const ta=g`div{overflow:hidden;position:relative;border-radius:50%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:50%;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}svg{width:100%;height:100%}#token-placeholder-fill{fill:var(--w3m-color-bg-3)}#token-placeholder-dash{stroke:var(--w3m-color-overlay)}`;var ra=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,Wt=(e,r,a,o)=>{for(var t=o>1?void 0:o?aa(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ra(r,a,t),t};let Re=class extends m{constructor(){super(...arguments),this.symbol=void 0}render(){var e;const r=s.getTokenIcon((e=this.symbol)!=null?e:"");return r?l`<div><img src="${r}" alt="${this.id}"></div>`:p.TOKEN_PLACEHOLDER}};Re.styles=[w.globalCss,ta],Wt([c()],Re.prototype,"symbol",2),Re=Wt([h("w3m-token-image")],Re);const oa=g`button{width:100%;height:100%;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--w3m-color-overlay)}@media(hover:hover){button:hover{background-color:var(--w3m-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--w3m-wallet-icon-border-radius);margin-bottom:5px}.w3m-sublabel{margin-top:2px}`;var ia=Object.defineProperty,na=Object.getOwnPropertyDescriptor,K=(e,r,a,o)=>{for(var t=o>1?void 0:o?na(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ia(r,a,t),t};let S=class extends m{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?l`<w3m-text class="w3m-sublabel" variant="xsmall-bold" color="tertiary">RECENT</w3m-text>`:this.installed?l`<w3m-text class="w3m-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</w3m-text>`:null}handleClick(){ne.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return l`<button @click="${this.handleClick.bind(this)}"><div><w3m-wallet-image walletId="${this.walletId}" imageId="${this.imageId}"></w3m-wallet-image><w3m-text variant="xsmall-regular">${(e=this.label)!=null?e:s.getWalletName(this.name,!0)}</w3m-text>${this.sublabelTemplate()}</div></button>`}};S.styles=[w.globalCss,oa],K([c()],S.prototype,"onClick",2),K([c()],S.prototype,"name",2),K([c()],S.prototype,"walletId",2),K([c()],S.prototype,"label",2),K([c()],S.prototype,"imageId",2),K([c()],S.prototype,"installed",2),K([c()],S.prototype,"recent",2),S=K([h("w3m-wallet-button")],S);const la=g`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--w3m-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`;var sa=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,Ze=(e,r,a,o)=>{for(var t=o>1?void 0:o?ca(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&sa(r,a,t),t};let de=class extends m{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;const r=(e=this.imageUrl)!=null&&e.length?this.imageUrl:s.getWalletIcon({id:this.walletId,image_id:this.imageId});return l`${r.length?l`<div><img src="${r}" alt="${this.id}"></div>`:p.WALLET_PLACEHOLDER}`}};de.styles=[w.globalCss,la],Ze([c()],de.prototype,"walletId",2),Ze([c()],de.prototype,"imageId",2),Ze([c()],de.prototype,"imageUrl",2),de=Ze([h("w3m-wallet-image")],de);var da=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ha=(e,r,a,o)=>{for(var t=o>1?void 0:o?ma(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&da(r,a,t),t};let Mt=class extends m{constructor(){super(),this.unwatchAccount=void 0,k.getAccount(),this.fetchProfile(),this.fetchBalance(),this.unwatchAccount=W.client().watchAccount(e=>{const{address:r,isConnected:a}=k.state;e.isConnected&&e.address!==r&&(this.fetchProfile(e.address),this.fetchBalance(e.address),k.setAddress(e.address)),e.isConnected||k.resetAccount(),a!==e.isConnected&&R.close(),!a&&e.isConnected?ne.track({name:"ACCOUNT_CONNECTED"}):a&&!e.isConnected&&ne.track({name:"ACCOUNT_DISCONNECTED"}),k.setIsConnected(e.isConnected)})}disconnectedCallback(){var e;(e=this.unwatchAccount)==null||e.call(this)}async fetchProfile(e){var r;const a=(r=O.state.chains)==null?void 0:r.find(o=>o.id===1);if(L.state.enableAccountView&&a)try{await k.fetchProfile(s.preloadImage,e)}catch(o){console.error(o),j.openToast(s.getErrorMessage(o),"error")}}async fetchBalance(e){if(L.state.enableAccountView)try{await k.fetchBalance(e)}catch(r){console.error(r),j.openToast(s.getErrorMessage(r),"error")}}};Mt=ha([h("w3m-account-context")],Mt);var pa=Object.defineProperty,wa=Object.getOwnPropertyDescriptor,Lt=(e,r,a,o)=>{for(var t=o>1?void 0:o?wa(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&pa(r,a,t),t};let ot=class extends m{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{e!=null&&e.length&&await Promise.all(e.map(async r=>s.preloadImage(r)))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){var e;if(L.state.enableExplorer){const{chains:r}=O.state;await Promise.all([I.getRecomendedWallets(),I.getInjectedWallets()]),O.setIsDataLoaded(!0);const{recomendedWallets:a}=I.state,o=N.installedInjectedWallets(),t=(e=r?.map(d=>s.getChainIcon(d.id)))!=null?e:[],i=a.map(d=>s.getWalletIcon(d)),n=o.map(d=>s.getWalletIcon(d));await this.loadImages([...t,...i,...n])}else O.setIsDataLoaded(!0)}async preloadCustomImages(){const e=s.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),j.openToast("Failed preloading","error")}}};Lt([f()],ot.prototype,"preload",2),ot=Lt([h("w3m-explorer-context")],ot);var ga=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,Tt=(e,r,a,o)=>{for(var t=o>1?void 0:o?ua(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ga(r,a,t),t};let it=class extends m{constructor(){super(),this.activeChainId=void 0,this.unwatchNetwork=void 0;const e=O.getSelectedChain();this.activeChainId=e?.id,this.unwatchNetwork=W.client().watchNetwork(r=>{const a=r.chain;a&&this.activeChainId!==a.id&&(O.setSelectedChain(a),this.activeChainId=a.id,k.resetBalance(),this.fetchBalance())})}disconnectedCallback(){var e;(e=this.unwatchNetwork)==null||e.call(this)}async fetchBalance(){if(L.state.enableAccountView)try{await k.fetchBalance()}catch(e){console.error(e),j.openToast(s.getErrorMessage(e),"error")}}};Tt([f()],it.prototype,"activeChainId",2),it=Tt([h("w3m-network-context")],it);var va=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,fa=(e,r,a,o)=>{for(var t=o>1?void 0:o?ba(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&va(r,a,t),t};let _t=class extends m{constructor(){super(),this.unsubscribeTheme=void 0,w.setTheme(),this.unsubscribeTheme=G.subscribe(w.setTheme),this.preloadThemeImages()}disconnectedCallback(){var e;(e=this.unsubscribeTheme)==null||e.call(this)}async preloadThemeImages(){try{const{themeVariables:e}=G.state,r=[e?.["--w3m-background-image-url"],e?.["--w3m-logo-image-url"]].filter(Boolean);r.length&&await Promise.all(r.map(async a=>s.preloadImage(a)))}catch{console.info("Unsuccessful attempt at preloading some images")}}};_t=fa([h("w3m-theme-context")],_t);var xa=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,Ca=(e,r,a,o)=>{for(var t=o>1?void 0:o?ya(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&xa(r,a,t),t};const ka=24e4,$a=1e3;var Nt;let Dt=class extends m{constructor(){super(),this.unwatchOptions=void 0,this.unwatchAccount=void 0,this.unwatchWcConnection=void 0,this.timeout=void 0,this.isGenerated=!1,this.selectedChainId=(Nt=O.state.selectedChain)==null?void 0:Nt.id,this.isAccountConnected=k.state.isConnected,this.lastRetry=Date.now(),this.unwatchOptions=O.subscribe(e=>{var r,a;((r=e.selectedChain)==null?void 0:r.id)!==this.selectedChainId&&(this.selectedChainId=(a=e.selectedChain)==null?void 0:a.id,this.connectAndWait())}),this.unwatchAccount=k.subscribe(e=>{(this.isAccountConnected!==e.isConnected||!this.isGenerated)&&(this.isAccountConnected=e.isConnected,this.connectAndWait())}),this.unwatchWcConnection=A.subscribe(e=>{e.pairingEnabled&&!this.isGenerated&&this.connectAndWait()})}disconnectedCallback(){var e,r,a;(e=this.unwatchOptions)==null||e.call(this),(r=this.unwatchAccount)==null||r.call(this),(a=this.unwatchWcConnection)==null||a.call(this)}async connectAndWait(){const{pairingEnabled:e}=A.state;if(clearTimeout(this.timeout),!this.isAccountConnected&&e){this.isGenerated=!0,this.timeout=setTimeout(this.connectAndWait.bind(this),ka);try{const{selectedChain:r}=O.state;await W.client().connectWalletConnect(a=>A.setPairingUri(a),r?.id)}catch(r){console.error(r),A.setPairingError(!0),j.openToast("Connection request declined","error"),Date.now()-this.lastRetry>=$a&&(this.lastRetry=Date.now(),this.connectAndWait())}}}};Dt=Ca([h("w3m-wc-connection-context")],Dt);const Oa=g`:host{all:initial}div{display:flex;align-items:center;background-color:var(--w3m-color-overlay);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);border-radius:var(--w3m-button-border-radius);padding:4px 4px 4px 8px}div button{border-radius:var(--w3m-secondary-button-border-radius);padding:4px 8px;padding-left:4px;height:auto;margin-left:10px;color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}.w3m-no-avatar{padding-left:8px}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}w3m-avatar{margin-right:6px}w3m-button-big w3m-avatar{margin-left:-5px}`;var Ia=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,nt=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ea(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Ia(r,a,t),t};let Oe=class extends m{constructor(){super(),this.balance="hide",this.avatar="show"}onOpen(){ne.click({name:"ACCOUNT_BUTTON"}),R.open({route:"Account"})}accountTemplate(){const e=this.avatar==="show";return l`${e?l`<w3m-avatar></w3m-avatar>`:null}<w3m-address-text></w3m-address-text>`}render(){const e=this.balance==="show",r={"w3m-no-avatar":this.avatar==="hide"};return e?l`<div><w3m-balance></w3m-balance><button @click="${this.onOpen}" class="${P(r)}">${this.accountTemplate()}</button></div>`:l`<w3m-button-big @click="${this.onOpen}">${this.accountTemplate()}</w3m-button-big>`}};Oe.styles=[w.globalCss,Oa],nt([c()],Oe.prototype,"balance",2),nt([c()],Oe.prototype,"avatar",2),Oe=nt([h("w3m-account-button")],Oe);const Aa=g`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;justify-content:center;padding:5px;width:100px}button:active{background-color:var(--w3m-color-overlay)}@media(hover:hover){button:hover{background-color:var(--w3m-color-overlay)}}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`;var ja=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,lt=(e,r,a,o)=>{for(var t=o>1?void 0:o?Pa(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ja(r,a,t),t};let Ie=class extends m{constructor(){super(),this.chainId=0,this.label="",this.unsubscribeNetwork=void 0;const{selectedChain:e}=O.state;this.chainId=e?.id,this.label=e?.name,this.unsubscribeNetwork=O.subscribe(({selectedChain:r})=>{this.chainId=r?.id,this.label=r?.name})}disconnectedCallback(){var e;(e=this.unsubscribeNetwork)==null||e.call(this)}onClick(){x.push("SelectNetwork")}render(){const{chains:e,selectedChain:r}=O.state,a=e?.map(i=>i.id),o=r&&a?.includes(r.id),t=e&&e.length<=1&&o;return l`<button @click="${this.onClick}" ?disabled="${t}"><w3m-network-image chainId="${V(this.chainId)}"></w3m-network-image><w3m-text variant="xsmall-regular" color="accent">${this.label}</w3m-text></button>`}};Ie.styles=[w.globalCss,Aa],lt([f()],Ie.prototype,"chainId",2),lt([f()],Ie.prototype,"label",2),Ie=lt([h("w3m-account-network-button")],Ie);const Wa=g`@keyframes slide{0%{background-position:0 0}100%{background-position:200px 0}}w3m-text{padding:1px 0}.w3m-loading{background:linear-gradient(270deg,var(--w3m-color-fg-1) 36.33%,var(--w3m-color-fg-3) 42.07%,var(--w3m-color-fg-1) 83.3%);background-size:200px 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation-name:slide;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}`;var Ma=Object.defineProperty,La=Object.getOwnPropertyDescriptor,Ee=(e,r,a,o)=>{for(var t=o>1?void 0:o?La(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Ma(r,a,t),t};let ee=class extends m{constructor(){super(),this.address=void 0,this.name=void 0,this.loading=!0,this.variant="button",this.unsubscribeAccount=void 0,this.address=k.state.address,this.name=k.state.profileName,this.loading=!!k.state.profileLoading,this.unsubscribeAccount=k.subscribe(({address:e,profileName:r,profileLoading:a})=>{this.address=e,this.name=r,this.loading=!!a})}disconnectedCallback(){var e;(e=this.unsubscribeAccount)==null||e.call(this)}render(){var e;const r=this.variant==="button",a={"w3m-loading":this.loading};return l`<w3m-text class="${P(a)}" variant="${r?"medium-regular":"big-bold"}" color="${r?"inverse":"primary"}">${this.name?this.name:s.truncate((e=this.address)!=null?e:"")}</w3m-text>`}};ee.styles=[w.globalCss,Wa],Ee([f()],ee.prototype,"address",2),Ee([f()],ee.prototype,"name",2),Ee([f()],ee.prototype,"loading",2),Ee([c()],ee.prototype,"variant",2),ee=Ee([h("w3m-address-text")],ee);const M={onConnecting(e){s.goToConnectingView(e)},onExternal(e){s.handleConnectorConnection(e)},manualWalletsTemplate(){return N.manualWallets().map(e=>l`<w3m-wallet-button walletId="${e.id}" name="${e.name}" .onClick="${()=>this.onConnecting(e)}"></w3m-wallet-button>`)},recomendedWalletsTemplate(e=!1){return N.recomendedWallets(e).map(r=>l`<w3m-wallet-button name="${r.name}" walletId="${r.id}" imageId="${r.image_id}" .onClick="${()=>this.onConnecting(r)}"></w3m-wallet-button>`)},externalWalletsTemplate(){return N.externalWallets().map(e=>l`<w3m-wallet-button name="${e.name}" walletId="${e.id}" .onClick="${()=>this.onExternal(e.id)}"></w3m-wallet-button>`)},recentWalletTemplate(){const e=N.recentWallet();if(e)return l`<w3m-wallet-button name="${e.name}" walletId="${e.id}" imageId="${e.image_id}" .recent="${!0}" .onClick="${()=>this.onConnecting(e)}"></w3m-wallet-button>`},installedInjectedWalletsTemplate(){return N.installedInjectedWallets().map(e=>l`<w3m-wallet-button .installed="${!0}" name="${e.name}" walletId="${e.id}" imageId="${e.image_id}" .onClick="${()=>this.onConnecting(e)}"></w3m-wallet-button>`)},injectedWalletsTemplate(){return N.injectedWallets().map(e=>l`<w3m-wallet-button name="${e.name}" walletId="${e.id}" imageId="${e.image_id}" .onClick="${()=>this.onConnecting(e)}"></w3m-wallet-button>`)}},Ta=g`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.w3m-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.w3m-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.w3m-track svg{margin:0 5px}w3m-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--w3m-wallet-icon-border-radius)}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-title{display:flex;align-items:center;margin-bottom:10px}.w3m-title svg{margin-right:6px}.w3m-title path{fill:var(--w3m-accent-color)}w3m-modal-footer .w3m-title{padding:0 10px}w3m-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--w3m-color-bg-1))}w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-info-footer w3m-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`;var _a=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Da=(e,r,a,o)=>{for(var t=o>1?void 0:o?Na(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&_a(r,a,t),t};let st=class extends m{onGoToQrcode(){x.push("Qrcode")}onGetWallet(){x.push("GetWallet")}render(){const{recomendedWallets:e}=I.state,r=[...e,...e],a=M.externalWalletsTemplate(),o=M.installedInjectedWalletsTemplate(),t=[...o,...a].length>0,i=u.RECOMMENDED_WALLET_AMOUNT*2;return l`<w3m-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${p.QRCODE_ICON}"></w3m-modal-header><w3m-modal-content><div class="w3m-title">${p.MOBILE_ICON}<w3m-text variant="small-regular" color="accent">WalletConnect</w3m-text></div><div class="w3m-slider"><div class="w3m-track">${[...Array(i)].map((n,d)=>{const v=r[d%r.length];return v?l`<w3m-wallet-image walletId="${v.id}" imageId="${v.image_id}"></w3m-wallet-image>`:p.WALLET_PLACEHOLDER})}</div><w3m-button-big @click="${s.handleAndroidLinking}"><w3m-text variant="medium-regular" color="inverse">Select Wallet</w3m-text></w3m-button-big></div></w3m-modal-content>${t?l`<w3m-modal-footer><div class="w3m-title">${p.WALLET_ICON}<w3m-text variant="small-regular" color="accent">Other</w3m-text></div><div class="w3m-grid">${o} ${a}</div></w3m-modal-footer>`:null}<w3m-info-footer><w3m-text color="secondary" variant="small-thin">${`Choose WalletConnect to see supported apps on your device${t?", or select from other options":""}`}</w3m-text><w3m-button variant="outline" .iconRight="${p.ARROW_UP_RIGHT_ICON}" .onClick="${()=>this.onGetWallet()}">I don't have a wallet</w3m-button></w3m-info-footer>`}};st.styles=[w.globalCss,Ta],st=Da([h("w3m-android-wallet-selection")],st);const Ra=g`@keyframes slide{0%{transform:translateX(-50px)}100%{transform:translateX(200px)}}.w3m-placeholder,img{border-radius:50%;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);display:block;position:relative;overflow:hidden!important;background-color:var(--w3m-color-av-1);background-image:radial-gradient(at 66% 77%,var(--w3m-color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--w3m-color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--w3m-color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--w3m-color-av-5) 0,transparent 50%);transform:translateZ(0)}.w3m-loader{width:50px;height:100%;background:linear-gradient(270deg,transparent 0,rgba(255,255,255,.4) 30%,transparent 100%);animation-name:slide;animation-duration:1.5s;transform:translateX(-50px);animation-iteration-count:infinite;animation-timing-function:linear;animation-delay:.55s}.w3m-small{width:24px;height:24px}.w3m-medium{width:60px;height:60px}`;var Za=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Ae=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ha(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Za(r,a,t),t};let te=class extends m{constructor(){super(),this.address=void 0,this.avatar=void 0,this.loading=!0,this.size="small",this.unsubscribeAccount=void 0,this.address=k.state.address,this.avatar=k.state.profileAvatar,this.loading=!!k.state.profileLoading,this.unsubscribeAccount=k.subscribe(({address:e,profileAvatar:r,profileLoading:a})=>{this.address=e,this.avatar=r,this.loading=!!a})}disconnectedCallback(){var e;(e=this.unsubscribeAccount)==null||e.call(this)}render(){const e={"w3m-placeholder":!0,"w3m-small":this.size==="small","w3m-medium":this.size==="medium"};return this.avatar?l`<img class="${P(e)}" src="${this.avatar}">`:this.address?(s.generateAvatarColors(this.address),l`<div class="${P(e)}">${this.loading?l`<div class="w3m-loader"></div>`:null}</div>`):null}};te.styles=[w.globalCss,Ra],Ae([f()],te.prototype,"address",2),Ae([f()],te.prototype,"avatar",2),Ae([f()],te.prototype,"loading",2),Ae([c()],te.prototype,"size",2),te=Ae([h("w3m-avatar")],te);const Ba=g`div{display:flex;align-items:center}w3m-token-image{width:28px;height:28px;margin-right:6px}`;var Sa=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,ct=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ua(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Sa(r,a,t),t};let je=class extends m{constructor(){var e,r;super(),this.symbol=void 0,this.amount=void 0,this.unsubscribeAccount=void 0,this.symbol=(e=k.state.balance)==null?void 0:e.symbol,this.amount=(r=k.state.balance)==null?void 0:r.amount,this.unsubscribeAccount=k.subscribe(({balance:a})=>{this.symbol=a?.symbol,this.amount=a?.amount})}disconnectedCallback(){var e;(e=this.unsubscribeAccount)==null||e.call(this)}render(){let e="_._";return this.amount==="0.0"?e="0":typeof this.amount=="string"&&this.amount.length>6?e=this.amount.substring(0,6):typeof this.amount=="string"&&(e=this.amount),l`<div><w3m-token-image symbol="${V(this.symbol)}"></w3m-token-image><w3m-text variant="medium-regular" color="primary">${e} ${this.symbol}</w3m-text></div>`}};je.styles=[w.globalCss,Ba],ct([f()],je.prototype,"symbol",2),ct([f()],je.prototype,"amount",2),je=ct([h("w3m-balance")],je);const za=g`:host{all:initial}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--w3m-accent-fill-color)}button:disabled svg path{fill:var(--w3m-color-fg-3)}w3m-spinner{margin:0 10px 0 0}`;var Va=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,He=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ga(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Va(r,a,t),t};let me=class extends m{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,this.modalUnsub=R.subscribe(e=>{e.open&&(this.loading=!0),e.open||(this.loading=!1)})}disconnectedCallback(){var e;(e=this.modalUnsub)==null||e.call(this)}iconTemplate(){return this.icon==="show"?p.WALLET_CONNECT_ICON:null}onClick(){k.state.isConnected?this.onDisconnect():this.onConnect()}async onConnect(){this.loading=!0,ne.click({name:"CONNECT_BUTTON"}),await R.open(),R.state.open||(this.loading=!1)}async onDisconnect(){ne.click({name:"DISCONNECT_BUTTON"}),await W.client().disconnect()}render(){return l`<w3m-button-big .disabled="${this.loading}" @click="${this.onClick}">${this.loading?l`<w3m-spinner></w3m-spinner><w3m-text variant="medium-regular" color="accent">Connecting...</w3m-text>`:l`${this.iconTemplate()}<w3m-text variant="medium-regular" color="inverse">${this.label}</w3m-text>`}</w3m-button-big>`}};me.styles=[w.globalCss,za],He([f()],me.prototype,"loading",2),He([c()],me.prototype,"label",2),He([c()],me.prototype,"icon",2),me=He([h("w3m-connect-button")],me);const Fa=g`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--w3m-accent-color);animation:loading 1s linear infinite}w3m-wallet-image{border-radius:var(--w3m-wallet-icon-large-border-radius);width:90px;height:90px}w3m-text{margin-bottom:40px}.w3m-error svg{stroke:var(--w3m-error-color)}.w3m-error use{display:none}.w3m-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.w3m-stale svg,.w3m-stale use{display:none}`;var qa=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,he=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ka(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&qa(r,a,t),t};let Y=class extends m{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,r;const a=(r=(e=G.state.themeVariables)==null?void 0:e["--w3m-wallet-icon-large-border-radius"])!=null?r:w.getPreset("--w3m-wallet-icon-large-border-radius");let o=0;a.includes("%")?o=88/100*parseInt(a,10):o=parseInt(a,10),o*=1.17;const t=317-o*1.57,i=425-o*1.8;return l`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="w3m-loader" x="2" y="2" width="106" height="106" rx="${o}"/><use xlink:href="#w3m-loader" stroke-dasharray="106 ${t}" stroke-dashoffset="${i}"></use></svg>`}render(){const e={"w3m-error":this.isError,"w3m-stale":this.isStale};return l`<div class="${P(e)}">${this.svgLoaderTemplate()}<w3m-wallet-image walletId="${V(this.walletId)}" imageId="${V(this.imageId)}"></w3m-wallet-image></div><w3m-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</w3m-text>`}};Y.styles=[w.globalCss,Fa],he([c()],Y.prototype,"walletId",2),he([c()],Y.prototype,"imageId",2),he([c()],Y.prototype,"isError",2),he([c()],Y.prototype,"isStale",2),he([c()],Y.prototype,"label",2),Y=he([h("w3m-connector-waiting")],Y);var Ya=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,pe=(e,r,a,o)=>{for(var t=o>1?void 0:o?Qa(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Ya(r,a,t),t};let re=class extends m{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.avatar="show",this.balance="hide",this.unsubscribeAccount=void 0,this.isConnected=k.state.isConnected,this.unsubscribeAccount=k.subscribe(({isConnected:e})=>{this.isConnected=e})}disconnectedCallback(){var e;(e=this.unsubscribeAccount)==null||e.call(this)}render(){const{enableAccountView:e}=L.state,r=this.balance,a=this.label,o=this.icon,t=this.avatar;return this.isConnected&&e?l`<w3m-account-button .balance="${r}" .avatar="${t}"></w3m-account-button>`:l`<w3m-connect-button label="${V(this.isConnected?"Disconnect":a)}" .icon="${o}"></w3m-connect-button>`}};pe([f()],re.prototype,"isConnected",2),pe([c()],re.prototype,"label",2),pe([c()],re.prototype,"icon",2),pe([c()],re.prototype,"avatar",2),pe([c()],re.prototype,"balance",2),re=pe([h("w3m-core-button")],re);const Xa=g`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--w3m-color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--w3m-accent-color)}`;var Ja=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,to=(e,r,a,o)=>{for(var t=o>1?void 0:o?eo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Ja(r,a,t),t};let dt=class extends m{render(){const{explorerExcludedWalletIds:e,enableExplorer:r}=L.state,a=e!=="ALL"&&r,o=M.manualWalletsTemplate(),t=M.recomendedWalletsTemplate(),i=M.externalWalletsTemplate(),n=M.recentWalletTemplate();let d=[...M.installedInjectedWalletsTemplate(),n,...i,...o,...t];d=d.filter(Boolean);const v=d.length>4||a;let y=[];v?y=d.slice(0,3):y=d;const H=!!y.length;return l`<w3m-modal-header .border="${!0}" title="Connect your wallet" .onAction="${s.handleUriCopy}" .actionIcon="${p.COPY_ICON}"></w3m-modal-header><w3m-modal-content><div class="w3m-mobile-title"><div class="w3m-subtitle">${p.MOBILE_ICON}<w3m-text variant="small-regular" color="accent">Mobile</w3m-text></div><div class="w3m-subtitle">${p.SCAN_ICON}<w3m-text variant="small-regular" color="secondary">Scan with your wallet</w3m-text></div></div><w3m-walletconnect-qr></w3m-walletconnect-qr></w3m-modal-content>${H?l`<w3m-modal-footer><div class="w3m-desktop-title">${p.DESKTOP_ICON}<w3m-text variant="small-regular" color="accent">Desktop</w3m-text></div><div class="w3m-grid">${y} ${v?l`<w3m-view-all-wallets-button></w3m-view-all-wallets-button>`:null}</div></w3m-modal-footer>`:null}`}};dt.styles=[w.globalCss,Xa],dt=to([h("w3m-desktop-wallet-selection")],dt);const ro=g`div{background-color:var(--w3m-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--w3m-color-bg-3);text-align:center}a{color:var(--w3m-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var ao=Object.defineProperty,oo=Object.getOwnPropertyDescriptor,io=(e,r,a,o)=>{for(var t=o>1?void 0:o?oo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ao(r,a,t),t};let mt=class extends m{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:r}=L.state;return e??r?l`<div><w3m-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${e?l`<a href="${e}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${e&&r?"and":null} ${r?l`<a href="${r}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</w3m-text></div>`:null}};mt.styles=[w.globalCss,ro],mt=io([h("w3m-legal-notice")],mt);const no=g`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var lo=Object.defineProperty,so=Object.getOwnPropertyDescriptor,co=(e,r,a,o)=>{for(var t=o>1?void 0:o?so(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&lo(r,a,t),t};let ht=class extends m{onQrcode(){x.push("Qrcode")}render(){const{explorerExcludedWalletIds:e,enableExplorer:r}=L.state,a=e!=="ALL"&&r,o=M.manualWalletsTemplate(),t=M.recomendedWalletsTemplate(),i=M.externalWalletsTemplate(),n=M.recentWalletTemplate();let d=[...M.installedInjectedWalletsTemplate(),n,...i,...o,...t];d=d.filter(Boolean);const v=d.length>8||a;let y=[];v?y=d.slice(0,7):y=d;const H=!!y.length;return l`<w3m-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${p.QRCODE_ICON}"></w3m-modal-header>${H?l`<w3m-modal-content><div>${y} ${v?l`<w3m-view-all-wallets-button></w3m-view-all-wallets-button>`:null}</div></w3m-modal-content>`:null}`}};ht.styles=[w.globalCss,no],ht=co([h("w3m-mobile-wallet-selection")],ht);const mo=g`:host{all:initial}.w3m-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--w3m-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--w3m-overlay-background-color);backdrop-filter:var(--w3m-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.w3m-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.w3m-active{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) var(--w3m-container-border-radius) var(--w3m-container-border-radius);border:1px solid var(--w3m-color-overlay);overflow:hidden}.w3m-card{width:100%;position:relative;border-radius:var(--w3m-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-color-bg-1);color:var(--w3m-color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) 0 0}.w3m-card{border-radius:var(--w3m-container-border-radius) var(--w3m-container-border-radius) 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:440px){.w3m-container{border:0}}`;var ho=Object.defineProperty,po=Object.getOwnPropertyDescriptor,pt=(e,r,a,o)=>{for(var t=o>1?void 0:o?po(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ho(r,a,t),t};let Pe=class extends m{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=R.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;(e=this.unsubscribeModal)==null||e.call(this)}get overlayEl(){return s.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return s.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(e){document.querySelector("body")&&(e?document.getElementById("w3m-styles")?.remove():document.head.insertAdjacentHTML("beforeend",'<style id="w3m-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>'))}onCloseModal(e){e.target===e.currentTarget&&R.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const e=s.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},r=.1,a=.2;await Promise.all([ie(this.overlayEl,{opacity:[0,1]},{delay:r,duration:a}).finished,ie(this.containerEl,e,{delay:r,duration:a}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=s.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},r=.2;await Promise.all([ie(this.overlayEl,{opacity:[1,0]},{duration:r}).finished,ie(this.containerEl,e,{duration:r}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var r;e.key==="Escape"?R.close():e.key==="Tab"&&((r=e.target)!=null&&r.tagName.includes("W3M-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0}render(){const e={"w3m-overlay":!0,"w3m-active":this.active};return l`<w3m-explorer-context></w3m-explorer-context><w3m-theme-context></w3m-theme-context><w3m-wc-connection-context></w3m-wc-connection-context><w3m-account-context></w3m-account-context><w3m-network-context></w3m-network-context><div id="w3m-modal" class="${P(e)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="w3m-container" tabindex="0">${this.open?l`<w3m-modal-backcard></w3m-modal-backcard><div class="w3m-card"><w3m-modal-router></w3m-modal-router><w3m-modal-toast></w3m-modal-toast></div>`:null}</div></div>`}};Pe.styles=[w.globalCss,mo],pt([f()],Pe.prototype,"open",2),pt([f()],Pe.prototype,"active",2),Pe=pt([h("w3m-modal")],Pe);const wo=g`:host{all:initial}w3m-network-image{margin-left:-6px;margin-right:6px;width:28px;height:28px}`;var go=Object.defineProperty,uo=Object.getOwnPropertyDescriptor,Be=(e,r,a,o)=>{for(var t=o>1?void 0:o?uo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&go(r,a,t),t};let we=class extends m{constructor(){super(),this.chainId="",this.label="",this.wrongNetwork=!1,this.unsubscribeNetwork=void 0;const{selectedChain:e}=O.state;this.onSetChainData(e),this.unsubscribeNetwork=O.subscribe(({selectedChain:r})=>{this.onSetChainData(r)})}disconnectedCallback(){var e;(e=this.unsubscribeNetwork)==null||e.call(this)}onSetChainData(e){if(e){const{chains:r}=O.state,a=r?.map(o=>o.id);this.chainId=e.id.toString(),this.wrongNetwork=!(a!=null&&a.includes(e.id)),this.label=this.wrongNetwork?"Wrong Network":e.name}}onClick(){ne.click({name:"NETWORK_BUTTON"}),R.open({route:"SelectNetwork"})}render(){var e;const{chains:r}=O.state,a=r&&r.length>1;return l`<w3m-button-big @click="${this.onClick}" ?disabled="${!a}"><w3m-network-image chainId="${V(this.chainId)}"></w3m-network-image><w3m-text variant="medium-regular" color="inverse">${(e=this.label)!=null&&e.length?this.label:"Select Network"}</w3m-text></w3m-button-big>`}};we.styles=[w.globalCss,wo],Be([f()],we.prototype,"chainId",2),Be([f()],we.prototype,"label",2),Be([f()],we.prototype,"wrongNetwork",2),we=Be([h("w3m-network-switch")],we);const vo=g`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:1px;top:0;left:0}use{stroke:var(--w3m-accent-color);animation:loading 1s linear infinite}w3m-network-image{width:92px;height:92px}w3m-text{margin-bottom:40px}.w3m-error svg{stroke:var(--w3m-error-color)}.w3m-error use{display:none}.w3m-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}`;var bo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,Se=(e,r,a,o)=>{for(var t=o>1?void 0:o?fo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&bo(r,a,t),t};let ge=class extends m{constructor(){super(...arguments),this.chainId=void 0,this.isError=!1,this.label=""}svgLoaderTemplate(){return l`<svg width="54" height="59" viewBox="0 0 54 59" fill="none" class="w3m-loader"><path id="w3m-loader-path" d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z"/><use xlink:href="#w3m-loader-path" stroke-dasharray="54 118" stroke-dashoffset="172"></use></svg>`}render(){const e={"w3m-error":this.isError};return l`<div class="${P(e)}">${this.svgLoaderTemplate()}<w3m-network-image chainId="${V(this.chainId)}"></w3m-network-image></div><w3m-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Switch declined":this.label}</w3m-text>`}};ge.styles=[w.globalCss,vo],Se([c()],ge.prototype,"chainId",2),Se([c()],ge.prototype,"isError",2),Se([c()],ge.prototype,"label",2),ge=Se([h("w3m-network-waiting")],ge);const xo=g`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}w3m-button{margin:0 5px}`;var yo=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,ae=(e,r,a,o)=>{for(var t=o>1?void 0:o?Co(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&yo(r,a,t),t};let z=class extends m{constructor(){super(...arguments),this.isMobile=!1,this.isInjected=!1,this.isInjectedInstalled=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){u.isMobile()?x.replace("MobileConnecting"):x.replace("MobileQrcodeConnecting")}onInjected(){this.isInjectedInstalled?x.replace("InjectedConnecting"):x.replace("InstallWallet")}onDesktop(){x.replace("DesktopConnecting")}onWeb(){x.replace("WebConnecting")}render(){return l`<div>${this.isRetry?l`<slot></slot>`:null} ${this.isMobile?l`<w3m-button .onClick="${this.onMobile}" .iconLeft="${p.MOBILE_ICON}" variant="outline">Mobile</w3m-button>`:null} ${this.isInjected?l`<w3m-button .onClick="${this.onInjected}" .iconLeft="${p.WALLET_ICON}" variant="outline">Browser</w3m-button>`:null} ${this.isDesktop?l`<w3m-button .onClick="${this.onDesktop}" .iconLeft="${p.DESKTOP_ICON}" variant="outline">Desktop</w3m-button>`:null} ${this.isWeb?l`<w3m-button .onClick="${this.onWeb}" .iconLeft="${p.GLOBE_ICON}" variant="outline">Web</w3m-button>`:null}</div>`}};z.styles=[w.globalCss,xo],ae([c()],z.prototype,"isMobile",2),ae([c()],z.prototype,"isInjected",2),ae([c()],z.prototype,"isInjectedInstalled",2),ae([c()],z.prototype,"isDesktop",2),ae([c()],z.prototype,"isWeb",2),ae([c()],z.prototype,"isRetry",2),z=ae([h("w3m-platform-selection")],z);const ko=g`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--w3m-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--w3m-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}button:active{background-color:var(--w3m-color-overlay)}@media(hover:hover){button:hover{background-color:var(--w3m-color-overlay)}}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--w3m-wallet-icon-border-radius)/ 2);border:1px solid var(--w3m-color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`;var $o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Io=(e,r,a,o)=>{for(var t=o>1?void 0:o?Oo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&$o(r,a,t),t};let wt=class extends m{onClick(){x.push("WalletExplorer")}render(){const{recomendedWallets:e}=I.state,r=N.manualWallets(),a=[...e,...r].reverse().slice(0,4);return l`<button @click="${this.onClick}"><div class="w3m-icons">${a.map(o=>{const t=s.getWalletIcon(o);if(t)return l`<img src="${t}">`;const i=s.getWalletIcon({id:o.id});return i?l`<img src="${i}">`:p.WALLET_PLACEHOLDER})} ${[...Array(4-a.length)].map(()=>p.WALLET_PLACEHOLDER)}</div><w3m-text variant="xsmall-regular">View All</w3m-text></button>`}};wt.styles=[w.globalCss,ko],wt=Io([h("w3m-view-all-wallets-button")],wt);const Eo=g`.w3m-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var Ao=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Ue=(e,r,a,o)=>{for(var t=o>1?void 0:o?jo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Ao(r,a,t),t};let ue=class extends m{constructor(){super(),this.walletId="",this.imageId="",this.uri="",this.unwatchWcConnection=void 0,setTimeout(()=>{const{pairingUri:e}=A.state;this.uri=e},0),this.unwatchWcConnection=A.subscribe(e=>{e.pairingUri&&(this.uri=e.pairingUri)})}disconnectedCallback(){var e;(e=this.unwatchWcConnection)==null||e.call(this)}get overlayEl(){return s.getShadowRootElement(this,".w3m-qr-container")}render(){return l`<div class="w3m-qr-container">${this.uri?l`<w3m-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${V(this.walletId)}" imageId="${V(this.imageId)}"></w3m-qrcode>`:l`<w3m-spinner></w3m-spinner>`}</div>`}};ue.styles=[w.globalCss,Eo],Ue([c()],ue.prototype,"walletId",2),Ue([c()],ue.prototype,"imageId",2),Ue([f()],ue.prototype,"uri",2),ue=Ue([h("w3m-walletconnect-qr")],ue);const Po=g`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start;padding-top:20px}.w3m-connection-badge{background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--w3m-success-color);border-radius:50%;top:50%;margin-top:-5px;box-shadow:0 1px 4px 1px var(--w3m-success-color),inset 0 0 0 1px var(--w3m-color-overlay)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}.w3m-balance{border-top:1px solid var(--w3m-color-bg-2);padding:11px 20px}`;var Wo=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,Rt=(e,r,a,o)=>{for(var t=o>1?void 0:o?Mo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Wo(r,a,t),t};let ze=class extends m{constructor(){super(...arguments),this.loading=!1}async onDisconnect(){this.loading||(this.loading=!0,await W.client().disconnect(),this.loading=!1)}async onCopyAddress(){var e;try{await navigator.clipboard.writeText((e=k.state.address)!=null?e:""),j.openToast("Address copied","success")}catch{j.openToast("Failed to copy","error")}}render(){return l`<w3m-modal-content><div class="w3m-profile"><div class="w3m-info"><w3m-avatar size="medium"></w3m-avatar><w3m-address-text variant="modal"></w3m-address-text></div><div class="w3m-connection-badge"><w3m-text variant="small-regular" color="secondary">Connected</w3m-text></div></div></w3m-modal-content><div class="w3m-balance"><w3m-balance></w3m-balance></div><w3m-modal-footer><div class="w3m-footer"><w3m-account-network-button></w3m-account-network-button><w3m-box-button label="Copy Address" .onClick="${this.onCopyAddress}" .icon="${p.ACCOUNT_COPY}"></w3m-box-button><w3m-box-button label="Disconnect" .loading="${this.loading}" .onClick="${this.onDisconnect}" .icon="${p.ACCOUNT_DISCONNECT}"></w3m-box-button></div></w3m-modal-footer>`}};ze.styles=[w.globalCss,Po],Rt([f()],ze.prototype,"loading",2),ze=Rt([h("w3m-account-view")],ze);var Lo=Object.defineProperty,To=Object.getOwnPropertyDescriptor,_o=(e,r,a,o)=>{for(var t=o>1?void 0:o?To(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Lo(r,a,t),t};let gt=class extends m{viewTemplate(){return u.isAndroid()?l`<w3m-android-wallet-selection></w3m-android-wallet-selection>`:u.isMobile()?l`<w3m-mobile-wallet-selection></w3m-mobile-wallet-selection>`:l`<w3m-desktop-wallet-selection></w3m-desktop-wallet-selection>`}render(){return l`${this.viewTemplate()}<w3m-legal-notice></w3m-legal-notice>`}};gt.styles=[w.globalCss],gt=_o([h("w3m-connect-wallet-view")],gt);const No=g`w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-text{text-align:center}`;var Do=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Zt=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ro(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Do(r,a,t),t};let Ve=class extends m{constructor(){super(),this.isError=!1,this.unwatchConnection=void 0,this.openDesktopApp(),this.unwatchConnection=A.subscribe(e=>{this.isError=e.pairingError})}disconnectedCallback(){var e;(e=this.unwatchConnection)==null||e.call(this)}onFormatAndRedirect(e){const{desktop:r,name:a}=u.getWalletRouterData(),o=r?.native;if(o){const t=u.formatNativeUrl(o,e,a);u.openHref(t,"_self")}}openDesktopApp(){A.setPairingError(!1);const{pairingUri:e}=A.state,r=u.getWalletRouterData();s.setRecentWallet(r),this.onFormatAndRedirect(e)}render(){const{name:e,id:r,image_id:a}=u.getWalletRouterData(),{isMobile:o,isInjected:t,isWeb:i}=s.getCachedRouterWalletPlatforms();return l`<w3m-modal-header title="${e}" .onAction="${s.handleUriCopy}" .actionIcon="${p.COPY_ICON}"></w3m-modal-header><w3m-modal-content><w3m-connector-waiting walletId="${r}" imageId="${a}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></w3m-connector-waiting></w3m-modal-content><w3m-info-footer><w3m-text color="secondary" variant="small-thin">${`Connection can continue loading if ${e} is not installed on your device`}</w3m-text><w3m-platform-selection .isMobile="${o}" .isInjected="${t}" .isWeb="${i}" .isRetry="${!0}"><w3m-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${p.RETRY_ICON}">Retry</w3m-button></w3m-platform-selection></w3m-info-footer>`}};Ve.styles=[w.globalCss,No],Zt([f()],Ve.prototype,"isError",2),Ve=Zt([h("w3m-desktop-connecting-view")],Ve);const Zo=g`.w3m-info-text{margin:5px 0 15px;max-width:320px;text-align:center}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--w3m-color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--w3m-color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`;var Ho=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,So=(e,r,a,o)=>{for(var t=o>1?void 0:o?Bo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Ho(r,a,t),t};let ut=class extends m{onGet(e){u.openHref(e,"_blank")}render(){const e=I.state.recomendedWallets.slice(0,5),r=N.manualWallets().slice(0,5),a=e.length,o=r.length;return l`<w3m-modal-header title="Get a wallet"></w3m-modal-header><w3m-modal-content>${a?e.map(t=>l`<div class="w3m-wallet-item"><w3m-wallet-image walletId="${t.id}" imageId="${t.image_id}"></w3m-wallet-image><div class="w3m-wallet-content"><w3m-text variant="medium-regular">${t.name}</w3m-text><w3m-button .iconRight="${p.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGet(t.homepage)}">Get</w3m-button></div></div>`):null} ${o?r.map(t=>l`<div class="w3m-wallet-item"><w3m-wallet-image walletId="${t.id}"></w3m-wallet-image><div class="w3m-wallet-content"><w3m-text variant="medium-regular">${t.name}</w3m-text><w3m-button .iconRight="${p.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGet(t.links.universal)}">Get</w3m-button></div></div>`):null}</w3m-modal-content><div class="w3m-footer-actions"><w3m-text variant="medium-regular">Not what you're looking for?</w3m-text><w3m-text variant="small-thin" color="secondary" class="w3m-info-text">With hundreds of wallets out there, there's something for everyone</w3m-text><w3m-button .onClick="${s.openWalletExplorerUrl}" .iconRight="${p.ARROW_UP_RIGHT_ICON}">Explore Wallets</w3m-button></div>`}};ut.styles=[w.globalCss,Zo],ut=So([h("w3m-get-wallet-view")],ut);const Uo=g`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px;text-align:center}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--w3m-color-overlay)}`;var zo=Object.defineProperty,Vo=Object.getOwnPropertyDescriptor,Go=(e,r,a,o)=>{for(var t=o>1?void 0:o?Vo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&zo(r,a,t),t};let vt=class extends m{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){L.state.enableExplorer?x.push("GetWallet"):s.openWalletExplorerUrl()}onLearnMore(){u.openHref(this.learnUrl,"_blank")}render(){return l`<w3m-modal-header title="What is a wallet?"></w3m-modal-header><w3m-modal-content><div class="w3m-info-container"><div class="w3m-images">${p.HELP_CHART_IMG} ${p.HELP_PAINTING_IMG} ${p.HELP_ETH_IMG}</div><w3m-text variant="medium-regular">A home for your digital assets</w3m-text><w3m-text variant="small-thin" color="secondary" class="w3m-info-text">A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.</w3m-text></div><div class="w3m-info-container"><div class="w3m-images">${p.HELP_KEY_IMG} ${p.HELP_USER_IMG} ${p.HELP_LOCK_IMG}</div><w3m-text variant="medium-regular">One login for all of web3</w3m-text><w3m-text variant="small-thin" color="secondary" class="w3m-info-text">Log in to any app by connecting your wallet. Say goodbye to countless passwords!</w3m-text></div><div class="w3m-info-container"><div class="w3m-images">${p.HELP_COMPAS_IMG} ${p.HELP_NOUN_IMG} ${p.HELP_DAO_IMG}</div><w3m-text variant="medium-regular">Your gateway to a new web</w3m-text><w3m-text variant="small-thin" color="secondary" class="w3m-info-text">With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.</w3m-text></div><div class="w3m-footer-actions"><w3m-button .onClick="${this.onGet.bind(this)}" .iconLeft="${p.WALLET_ICON}">Get a Wallet</w3m-button><w3m-button .onClick="${this.onLearnMore.bind(this)}" .iconRight="${p.ARROW_UP_RIGHT_ICON}">Learn More</w3m-button></div></w3m-modal-content>`}};vt.styles=[w.globalCss,Uo],vt=Go([h("w3m-help-view")],vt);const Fo=g`w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-text{text-align:center}`;var qo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,Ht=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ko(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&qo(r,a,t),t};let Ge=class extends m{constructor(){super(),this.isError=!1,this.connector=W.client().getConnectorById("injected"),this.openInjectedApp()}async openInjectedApp(){const{ready:e}=this.connector;e&&(this.isError=!1,await s.handleConnectorConnection("injected",()=>{this.isError=!0}))}render(){const{name:e,id:r,image_id:a}=u.getWalletRouterData(),{isMobile:o,isDesktop:t,isWeb:i}=s.getCachedRouterWalletPlatforms();return l`<w3m-modal-header title="${e}"></w3m-modal-header><w3m-modal-content><w3m-connector-waiting walletId="${r}" imageId="${a}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></w3m-connector-waiting></w3m-modal-content><w3m-info-footer><w3m-text color="secondary" variant="small-thin">Connection can be declined if multiple wallets are installed or previous request is still active</w3m-text><w3m-platform-selection .isMobile="${o}" .isDesktop="${t}" .isWeb="${i}" .isRetry="${!0}"><w3m-button .onClick="${this.openInjectedApp.bind(this)}" .disabled="${!this.isError}" .iconRight="${p.RETRY_ICON}">Retry</w3m-button></w3m-platform-selection></w3m-info-footer>`}};Ge.styles=[w.globalCss,Fo],Ht([f()],Ge.prototype,"isError",2),Ge=Ht([h("w3m-injected-connecting-view")],Ge);const Yo=g`w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-text{text-align:center}w3m-button{margin-top:15px}`;var Qo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Jo=(e,r,a,o)=>{for(var t=o>1?void 0:o?Xo(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Qo(r,a,t),t};let bt=class extends m{onInstall(e){e&&u.openHref(e,"_blank")}render(){const{name:e,id:r,image_id:a,homepage:o}=u.getWalletRouterData();return l`<w3m-modal-header title="${e}"></w3m-modal-header><w3m-modal-content><w3m-connector-waiting walletId="${r}" imageId="${a}" label="Not Detected" .isStale="${!0}"></w3m-connector-waiting></w3m-modal-content><w3m-info-footer><w3m-text color="secondary" variant="small-thin">${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}</w3m-text><w3m-button .onClick="${()=>this.onInstall(o)}" .iconLeft="${p.ARROW_DOWN_ICON}">Download</w3m-button></w3m-info-footer>`}};bt.styles=[w.globalCss,Yo],bt=Jo([h("w3m-install-wallet-view")],bt);const ei=g`w3m-wallet-image{border-radius:var(--w3m-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}w3m-info-footer{display:flex;width:100%}.w3m-app-store{justify-content:space-between}.w3m-app-store w3m-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--w3m-wallet-icon-small-border-radius)}.w3m-app-store div{display:flex;align-items:center}.w3m-app-store w3m-button{margin-right:-10px}.w3m-note{flex-direction:column;align-items:center;padding:5px 0}.w3m-note w3m-text{text-align:center}w3m-platform-selection{margin-top:-15px}.w3m-note w3m-text{margin-top:15px}.w3m-note w3m-text span{color:var(--w3m-accent-color)}`;var ti=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,Bt=(e,r,a,o)=>{for(var t=o>1?void 0:o?ri(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&ti(r,a,t),t};let Fe=class extends m{constructor(){super(),this.isError=!1,this.unwatchConnection=void 0,this.openMobileApp(),this.unwatchConnection=A.subscribe(e=>{this.isError=e.pairingError})}disconnectedCallback(){var e;(e=this.unwatchConnection)==null||e.call(this)}onFormatAndRedirect(e,r=!1){const{mobile:a,name:o}=u.getWalletRouterData(),t=a?.native,i=a?.universal;if(t&&!r){const n=u.formatNativeUrl(t,e,o);u.openHref(n,"_self")}else if(i){const n=u.formatUniversalUrl(i,e,o);u.openHref(n,"_self")}}openMobileApp(e=!1){A.setPairingError(!1);const{pairingUri:r}=A.state,a=u.getWalletRouterData();s.setRecentWallet(a),this.onFormatAndRedirect(r,e)}onGoToAppStore(e){e&&u.openHref(e,"_blank")}render(){const{name:e,id:r,image_id:a,app:o,mobile:t}=u.getWalletRouterData(),{isWeb:i}=s.getCachedRouterWalletPlatforms(),n=o?.ios,d=t?.universal;return l`<w3m-modal-header title="${e}"></w3m-modal-header><w3m-modal-content><w3m-connector-waiting walletId="${r}" imageId="${a}" label="Tap 'Open' to continue…" .isError="${this.isError}"></w3m-connector-waiting></w3m-modal-content><w3m-info-footer class="w3m-note"><w3m-platform-selection .isWeb="${i}" .isRetry="${!0}"><w3m-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${p.RETRY_ICON}">Retry</w3m-button></w3m-platform-selection>${d?l`<w3m-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></w3m-text>`:null}</w3m-info-footer><w3m-info-footer class="w3m-app-store"><div><w3m-wallet-image walletId="${r}" imageId="${a}"></w3m-wallet-image><w3m-text>${`Get ${e}`}</w3m-text></div><w3m-button .iconRight="${p.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(n)}" variant="ghost">App Store</w3m-button></w3m-info-footer>`}};Fe.styles=[w.globalCss,ei],Bt([f()],Fe.prototype,"isError",2),Fe=Bt([h("w3m-mobile-connecting-view")],Fe);const ai=g`w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-text{text-align:center}`;var oi=Object.defineProperty,ii=Object.getOwnPropertyDescriptor,ni=(e,r,a,o)=>{for(var t=o>1?void 0:o?ii(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&oi(r,a,t),t};let ft=class extends m{render(){const{name:e,id:r,image_id:a}=u.getWalletRouterData(),{isInjected:o,isDesktop:t,isWeb:i}=s.getCachedRouterWalletPlatforms();return l`<w3m-modal-header title="${e}" .onAction="${s.handleUriCopy}" .actionIcon="${p.COPY_ICON}"></w3m-modal-header><w3m-modal-content><w3m-walletconnect-qr walletId="${r}" imageId="${a}"></w3m-walletconnect-qr></w3m-modal-content><w3m-info-footer><w3m-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${e} app`}</w3m-text><w3m-platform-selection .isDesktop="${t}" .isInjected="${o}" .isWeb="${i}"></w3m-platform-selection></w3m-info-footer>`}};ft.styles=[w.globalCss,ai],ft=ni([h("w3m-mobile-qr-connecting-view")],ft);var li=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ci=(e,r,a,o)=>{for(var t=o>1?void 0:o?si(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&li(r,a,t),t};let xt=class extends m{render(){return l`<w3m-modal-header title="Scan the code" .onAction="${s.handleUriCopy}" .actionIcon="${p.COPY_ICON}"></w3m-modal-header><w3m-modal-content><w3m-walletconnect-qr></w3m-walletconnect-qr></w3m-modal-content>`}};xt.styles=[w.globalCss],xt=ci([h("w3m-qrcode-view")],xt);const di=g`div{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-info-footer w3m-text{text-align:center}`;var Gt=Object.defineProperty,mi=Object.defineProperties,hi=Object.getOwnPropertyDescriptor,pi=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Ut=(e,r,a)=>r in e?Gt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,ui=(e,r)=>{for(var a in r||(r={}))wi.call(r,a)&&Ut(e,a,r[a]);if(St)for(var a of St(r))gi.call(r,a)&&Ut(e,a,r[a]);return e},vi=(e,r)=>mi(e,pi(r)),yt=(e,r,a,o)=>{for(var t=o>1?void 0:o?hi(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Gt(r,a,t),t};let We=class extends m{constructor(){super(),this.connectedChains="ALL",this.isUnsupportedChains=!1,this.getConnectedChainIds()}async getConnectedChainIds(){this.connectedChains=await W.client().getConnectedChainIds()}async onSelectChain(e){try{const{selectedChain:r,isPreferInjected:a}=O.state,{isConnected:o}=k.state;o?r?.id===e.id?x.reset("Account"):s.getWagmiWalletType()==='"walletConnect"'?(await W.client().switchNetwork({chainId:e.id}),x.reset("Account")):x.push("SwitchNetwork",{SwitchNetwork:e}):a?(O.setSelectedChain(e),R.close()):(O.setSelectedChain(e),x.push("ConnectWallet"))}catch(r){console.error(r),j.openToast("Unsupported chain","error")}}isUnsuportedChainId(e){return typeof this.connectedChains=="string"&&this.connectedChains!=="ALL"?(this.isUnsupportedChains=!0,!0):Array.isArray(this.connectedChains)&&!this.connectedChains.includes(String(e))?(this.isUnsupportedChains=!0,!0):!1}render(){const{chains:e}=O.state,r=e?.map(o=>vi(ui({},o),{unsupported:this.isUnsuportedChainId(o.id)})),a=r?.sort((o,t)=>Number(o.unsupported)-Number(t.unsupported));return l`<w3m-modal-header title="Select network"></w3m-modal-header><w3m-modal-content><div>${a?.map(o=>l`<w3m-network-button name="${o.name}" chainId="${o.id}" .unsupported="${o.unsupported}" .onClick="${async()=>this.onSelectChain(o)}">${o.name}</w3m-network-button>`)}</div></w3m-modal-content>${this.isUnsupportedChains?l`<w3m-info-footer><w3m-text color="secondary" variant="small-thin">Your connected wallet may not support some of the networks available for this dapp</w3m-text></w3m-info-footer>`:null}`}};We.styles=[w.globalCss,di],yt([f()],We.prototype,"connectedChains",2),yt([f()],We.prototype,"isUnsupportedChains",2),We=yt([h("w3m-select-network-view")],We);const bi=g`w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-text{text-align:center}w3m-button{margin-top:15px}`;var fi=Object.defineProperty,xi=Object.getOwnPropertyDescriptor,zt=(e,r,a,o)=>{for(var t=o>1?void 0:o?xi(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&fi(r,a,t),t};let qe=class extends m{constructor(){super(),this.isError=!1,this.onSwitchNetwork()}async onSwitchNetwork(){try{this.isError=!1;const e=u.getSwitchNetworkRouterData();await W.client().switchNetwork({chainId:e.id}),O.setSelectedChain(e),x.reset("Account")}catch{this.isError=!0}}render(){const{id:e,name:r}=u.getSwitchNetworkRouterData();return l`<w3m-modal-header title="${`Connect to ${r}`}"></w3m-modal-header><w3m-modal-content><w3m-network-waiting chainId="${e}" label="Approve in your wallet" .isError="${this.isError}"></w3m-network-waiting></w3m-modal-content><w3m-info-footer><w3m-text color="secondary" variant="small-thin">Switch can be declined if chain is not supported by a wallet or previous request is still active</w3m-text><w3m-button .onClick="${this.onSwitchNetwork.bind(this)}" .disabled="${!this.isError}" .iconRight="${p.RETRY_ICON}">Try Again</w3m-button></w3m-info-footer>`}};qe.styles=[w.globalCss,bi],zt([f()],qe.prototype,"isError",2),qe=zt([h("w3m-switch-network-view")],qe);const yi=g`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(var(--w3m-color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--w3m-color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Ci=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,Me=(e,r,a,o)=>{for(var t=o>1?void 0:o?ki(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Ci(r,a,t),t};const Ct=40;let oe=class extends m{constructor(){super(...arguments),this.loading=!I.state.wallets.listings.length,this.firstFetch=!I.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=s.debounce(e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,I.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),I.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;(e=this.intersectionObserver)==null||e.disconnect()}get placeholderEl(){return s.getShadowRootElement(this,".w3m-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:e,search:r}=I.state,{listings:a,total:o}=this.search?r:e;return o<=Ct||a.length>=o}async fetchWallets(){const{wallets:e,search:r,injectedWallets:a}=I.state,{listings:o,total:t,page:i}=this.search?r:e;if(!this.endReached&&(this.firstFetch||t>Ct&&o.length<t))try{this.loading=!0;const{listings:n}=await I.getWallets({page:this.firstFetch?1:i+1,entries:Ct,search:this.search,version:2}),d=n.map(y=>s.getWalletIcon(y)),v=a.map(y=>s.getWalletIcon(y));await Promise.all([...d.map(async y=>s.preloadImage(y)),...v.map(async y=>s.preloadImage(y)),u.wait(300)]),this.endReached=this.isLastPage()}catch(n){console.error(n),j.openToast(s.getErrorMessage(n),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){u.isAndroid()?s.handleMobileLinking(e):s.goToConnectingView(e)}onSearchChange(e){const{value:r}=e.target;this.searchDebounce(r)}render(){const{wallets:e,search:r}=I.state,{listings:a}=this.search?r:e,o=this.loading&&!a.length,t=this.search.length>=3;let i=M.injectedWalletsTemplate(),n=M.manualWalletsTemplate(),d=M.recomendedWalletsTemplate(!0);t&&(i=i.filter(({values:Z})=>s.caseSafeIncludes(Z[0],this.search)),n=n.filter(({values:Z})=>s.caseSafeIncludes(Z[0],this.search)),d=d.filter(({values:Z})=>s.caseSafeIncludes(Z[0],this.search))),i=i.filter(Z=>!d.find(D=>s.caseSafeIncludes(Z.values[0],D.values[0])));const v=!this.loading&&!a.length&&!i.length&&!d.length,y=Math.max(i.length,a.length),H={"w3m-loading":o,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":v};return l`<w3m-modal-header><w3m-search-input .onChange="${this.onSearchChange.bind(this)}"></w3m-search-input></w3m-modal-header><w3m-modal-content class="${P(H)}"><div class="w3m-grid">${o?null:d} ${o?null:[...Array(y)].map((Z,D)=>l`${n[D]} ${i[D]} ${a[D]?l`<w3m-wallet-button imageId="${a[D].image_id}" name="${a[D].name}" walletId="${a[D].id}" .onClick="${()=>this.onConnect(a[D])}"></w3m-wallet-button>`:null}`)}</div><div class="w3m-placeholder-block">${v?l`<w3m-text variant="big-bold" color="secondary">No results found</w3m-text>`:null} ${!v&&this.loading?l`<w3m-spinner></w3m-spinner>`:null}</div></w3m-modal-content>`}};oe.styles=[w.globalCss,yi],Me([f()],oe.prototype,"loading",2),Me([f()],oe.prototype,"firstFetch",2),Me([f()],oe.prototype,"search",2),Me([f()],oe.prototype,"endReached",2),oe=Me([h("w3m-wallet-explorer-view")],oe);const $i=g`w3m-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}w3m-text{text-align:center}`;var Oi=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Vt=(e,r,a,o)=>{for(var t=o>1?void 0:o?Ii(r,a):r,i=e.length-1,n;i>=0;i--)(n=e[i])&&(t=(o?n(r,a,t):n(t))||t);return o&&t&&Oi(r,a,t),t};let Ke=class extends m{constructor(){super(),this.isError=!1,this.unwatchConnection=void 0,this.openWebWallet(),this.unwatchConnection=A.subscribe(e=>{this.isError=e.pairingError})}disconnectedCallback(){var e;(e=this.unwatchConnection)==null||e.call(this)}onFormatAndRedirect(e){const{desktop:r,name:a}=u.getWalletRouterData(),o=r?.universal;if(o){const t=u.formatUniversalUrl(o,e,a);u.openHref(t,"_blank")}}openWebWallet(){A.setPairingError(!1);const{pairingUri:e}=A.state,r=u.getWalletRouterData();s.setRecentWallet(r),this.onFormatAndRedirect(e)}render(){const{name:e,id:r,image_id:a}=u.getWalletRouterData(),{isMobile:o,isInjected:t,isDesktop:i}=s.getCachedRouterWalletPlatforms(),n=u.isMobile();return l`<w3m-modal-header title="${e}" .onAction="${s.handleUriCopy}" .actionIcon="${p.COPY_ICON}"></w3m-modal-header><w3m-modal-content><w3m-connector-waiting walletId="${r}" imageId="${a}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></w3m-connector-waiting></w3m-modal-content><w3m-info-footer><w3m-text color="secondary" variant="small-thin">${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}</w3m-text><w3m-platform-selection .isMobile="${o}" .isInjected="${n?!1:t}" .isDesktop="${n?!1:i}" .isRetry="${!0}"><w3m-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${p.RETRY_ICON}">Retry</w3m-button></w3m-platform-selection></w3m-info-footer>`}};Ke.styles=[w.globalCss,$i],Vt([f()],Ke.prototype,"isError",2),Ke=Vt([h("w3m-web-connecting-view")],Ke);export{Oe as W3mAccountButton,me as W3mConnectButton,re as W3mCoreButton,Pe as W3mModal,we as W3mNetworkSwitch,q as W3mQrCode}; diff --git a/assets/index-8cce0a79.js b/assets/index-8cce0a79.js new file mode 100644 index 0000000..a90fcd7 --- /dev/null +++ b/assets/index-8cce0a79.js @@ -0,0 +1 @@ +import{i as g,n as d,b as x,t as E,s as w,x as n,o as P,l as O,a as U,e as p,c as Ke}from"./if-defined-093fe0e9.js";import{X,Q as pe,N as y,G as I,i as m,Y as N,$ as Xe,c as A,C as z}from"./index-efe0fbcc.js";import"./index-0b6b5a8e.js";var Je=Object.defineProperty,Be=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Se=(e,o,r)=>o in e?Je(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,ge=(e,o)=>{for(var r in o||(o={}))et.call(o,r)&&Se(e,r,o[r]);if(Be)for(var r of Be(o))tt.call(o,r)&&Se(e,r,o[r]);return e};function ot(){var e;const o=(e=X.state.themeMode)!=null?e:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[o];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}function He(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}const h={getPreset(e){return He()[e]},setTheme(){const e=document.querySelector(":root"),{themeVariables:o}=X.state;if(e){const r=ge(ge(ge({},ot()),He()),o);Object.entries(r).forEach(([a,t])=>e.style.setProperty(a,t))}},globalCss:g`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},rt=g`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var at=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,q=(e,o,r,a)=>{for(var t=a>1?void 0:a?lt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&at(o,r,t),t};let j=class extends w{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const e={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"};let o="inverse";return this.variant==="ghost"&&(o="secondary"),this.variant==="outline"&&(o="accent"),n`<button class="${P(e)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${o}"><slot></slot></wcm-text>${this.iconRight}</button>`}};j.styles=[h.globalCss,rt],q([d({type:Boolean})],j.prototype,"disabled",2),q([d()],j.prototype,"iconLeft",2),q([d()],j.prototype,"iconRight",2),q([d()],j.prototype,"onClick",2),q([d()],j.prototype,"variant",2),j=q([p("wcm-button")],j);const it=g`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var nt=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,ue=(e,o,r,a)=>{for(var t=a>1?void 0:a?ct(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&nt(o,r,t),t};let ee=class extends w{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const e={"wcm-secondary":this.variant==="secondary"};return n`<button ?disabled="${this.disabled}" class="${P(e)}"><slot></slot></button>`}};ee.styles=[h.globalCss,it],ue([d({type:Boolean})],ee.prototype,"disabled",2),ue([d()],ee.prototype,"variant",2),ee=ue([p("wcm-button-big")],ee);const st=g`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var dt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,ht=(e,o,r,a)=>{for(var t=a>1?void 0:a?mt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&dt(o,r,t),t};let ve=class extends w{render(){return n`<div><slot></slot></div>`}};ve.styles=[h.globalCss,st],ve=ht([p("wcm-info-footer")],ve);const u={CROSS_ICON:x`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:x`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:x`<svg width="28" height="20" viewBox="0 0 28 20"><g clip-path="url(#a)"><path d="M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z" fill="#000000"/></g><defs><clipPath id="a"><path fill="#ffffff" d="M0 0h28v20H0z"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:x`<svg width="96" height="96" fill="none"><path fill="#fff" d="M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z"/><path stroke="#000" d="M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z"/></svg>`,BACK_ICON:x`<svg width="10" height="18" viewBox="0 0 10 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z" fill="#fff"/></svg>`,COPY_ICON:x`<svg width="24" height="24" fill="none"><path fill="#fff" fill-rule="evenodd" d="M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z" clip-rule="evenodd"/></svg>`,RETRY_ICON:x`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:x`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:x`<svg width="16" height="16" viewBox="0 0 16 16"><path d="M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z" fill="#fff"/></svg>`,ARROW_DOWN_ICON:x`<svg width="14" height="14" viewBox="0 0 14 14"><path d="M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z" fill="#fff"/></svg>`,ARROW_UP_RIGHT_ICON:x`<svg width="15" height="14" fill="none"><path d="M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,ARROW_RIGHT_ICON:x`<svg width="6" height="14" viewBox="0 0 6 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z" fill="#fff"/></svg>`,QRCODE_ICON:x`<svg width="25" height="24" viewBox="0 0 25 24"><path d="M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z" fill="#fff"/><path d="M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z" fill="#fff"/></svg>`,SCAN_ICON:x`<svg width="16" height="16" fill="none"><path fill="#fff" d="M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z"/></svg>`,CHECKMARK_ICON:x`<svg width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z" fill="#fff"/></svg>`,SEARCH_ICON:x`<svg width="20" height="21"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" fill="#949E9E"/></svg>`,WALLET_PLACEHOLDER:x`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,GLOBE_ICON:x`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`},wt=g`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var pt=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,ut=(e,o,r,a)=>{for(var t=a>1?void 0:a?gt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&pt(o,r,t),t};let be=class extends w{render(){return n`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${u.WALLET_CONNECT_LOGO} <button @click="${pe.close}">${u.CROSS_ICON}</button></div>`}};be.styles=[h.globalCss,wt],be=ut([p("wcm-modal-backcard")],be);const vt=g`main{padding:20px;padding-top:0;width:100%}`;var bt=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,xt=(e,o,r,a)=>{for(var t=a>1?void 0:a?ft(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&bt(o,r,t),t};let fe=class extends w{render(){return n`<main><slot></slot></main>`}};fe.styles=[h.globalCss,vt],fe=xt([p("wcm-modal-content")],fe);const yt=g`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var Ct=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Ot=(e,o,r,a)=>{for(var t=a>1?void 0:a?$t(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Ct(o,r,t),t};let xe=class extends w{render(){return n`<footer><slot></slot></footer>`}};xe.styles=[h.globalCss,yt],xe=Ot([p("wcm-modal-footer")],xe);const kt=g`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var It=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,te=(e,o,r,a)=>{for(var t=a>1?void 0:a?Et(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&It(o,r,t),t};let B=class extends w{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return n`<button class="wcm-back-btn" @click="${y.goBack}">${u.BACK_ICON}</button>`}actionBtnTemplate(){return n`<button class="wcm-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const e={"wcm-border":this.border},o=y.state.history.length>1,r=this.title?n`<wcm-text variant="big-bold">${this.title}</wcm-text>`:n`<slot></slot>`;return n`<header class="${P(e)}">${o?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}</header>`}};B.styles=[h.globalCss,kt],te([d()],B.prototype,"title",2),te([d()],B.prototype,"onAction",2),te([d()],B.prototype,"actionIcon",2),te([d({type:Boolean})],B.prototype,"border",2),B=te([p("wcm-modal-header")],B);const c={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,o){const r=e.renderRoot.querySelector(o);if(!r)throw new Error(`${o} not found`);return r},getWalletIcon({id:e,image_id:o}){const{walletImages:r}=z.state;return r!=null&&r[e]?r[e]:o?I.getWalletImageUrl(o):""},getWalletName(e,o=!1){return o?e.split(" ")[0]:e},isMobileAnimation(){return window.innerWidth<=c.MOBILE_BREAKPOINT},async preloadImage(e){const o=new Promise((r,a)=>{const t=new Image;t.onload=r,t.onerror=a,t.src=e});return Promise.race([o,m.wait(3e3)])},getErrorMessage(e){return e instanceof Error?e.message:"Unknown Error"},debounce(e,o=500){let r;return(...a)=>{function t(){e(...a)}r&&clearTimeout(r),r=setTimeout(t,o)}},handleMobileLinking(e){const{walletConnectUri:o}=A.state,{mobile:r,name:a}=e,t=r?.native,l=r?.universal;c.setRecentWallet(e);function i(s){let $="";t?$=m.formatUniversalUrl(t,s,a):l&&($=m.formatNativeUrl(l,s,a)),m.openHref($,"_self")}o&&i(o)},handleAndroidLinking(){const{walletConnectUri:e}=A.state;e&&(m.setWalletConnectAndroidDeepLink(e),m.openHref(e,"_self"))},async handleUriCopy(){const{walletConnectUri:e}=A.state;if(e)try{await navigator.clipboard.writeText(e),N.openToast("Link copied","success")}catch{N.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:e}=z.state,o=Object.values(e??{});return Object.values(o)},truncate(e,o=8){return e.length<=o?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`},setRecentWallet(e){try{localStorage.setItem(c.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const e=localStorage.getItem(c.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(e,o){return e.toUpperCase().includes(o.toUpperCase())},openWalletExplorerUrl(){m.openHref(c.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:e,mobile:o}=m.getWalletRouterData(),r=!!e?.native,a=!!e?.universal,t=!!o?.native||!!o?.universal;return{isDesktop:r,isMobile:t,isWeb:a}},goToConnectingView(e){y.setData({Wallet:e});const o=m.isMobile(),{isDesktop:r,isWeb:a,isMobile:t}=c.getCachedRouterWalletPlatforms();o?t?y.push("MobileConnecting"):a?y.push("WebConnecting"):y.push("InstallWallet"):r?y.push("DesktopConnecting"):a?y.push("WebConnecting"):t?y.push("MobileQrcodeConnecting"):y.push("InstallWallet")}},Wt=g`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var Lt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,ye=(e,o,r,a)=>{for(var t=a>1?void 0:a?Mt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Lt(o,r,t),t};let oe=class extends w{constructor(){super(),this.view=y.state.view,this.prevView=y.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=y.subscribe(e=>{this.view!==e.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{const o=`${e.contentRect.height}px`;this.oldHeight!=="0px"&&U(this.routerEl,{height:[this.oldHeight,o]},{duration:.2}),this.oldHeight=o}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,o;(e=this.unsubscribe)==null||e.call(this),(o=this.resizeObserver)==null||o.disconnect()}get routerEl(){return c.getShadowRootElement(this,".wcm-router")}get contentEl(){return c.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return n`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case"DesktopConnecting":return n`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case"MobileConnecting":return n`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case"WebConnecting":return n`<wcm-web-connecting-view></wcm-web-connecting-view>`;case"MobileQrcodeConnecting":return n`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case"WalletExplorer":return n`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case"Qrcode":return n`<wcm-qrcode-view></wcm-qrcode-view>`;case"InstallWallet":return n`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return n`<div>Not Found</div>`}}async onChangeRoute(){await U(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=y.state.view,U(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return n`<div class="wcm-router"><div class="wcm-content">${this.viewTemplate()}</div></div>`}};oe.styles=[h.globalCss,Wt],ye([E()],oe.prototype,"view",2),ye([E()],oe.prototype,"prevView",2),oe=ye([p("wcm-modal-router")],oe);const At=g`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var Rt=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,Ue=(e,o,r,a)=>{for(var t=a>1?void 0:a?Pt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Rt(o,r,t),t};let ne=class extends w{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=N.subscribe(e=>{e.open?(this.open=!0,this.timeout=setTimeout(()=>N.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var e;(e=this.unsubscribe)==null||e.call(this),clearTimeout(this.timeout),N.closeToast()}render(){const{message:e,variant:o}=N.state,r={"wcm-success":o==="success","wcm-error":o==="error"};return this.open?n`<div class="${P(r)}">${o==="success"?u.CHECKMARK_ICON:null} ${o==="error"?u.CROSS_ICON:null}<wcm-text variant="small-regular">${e}</wcm-text></div>`:null}};ne.styles=[h.globalCss,At],Ue([E()],ne.prototype,"open",2),ne=Ue([p("wcm-modal-toast")],ne);const jt=.1,ze=2.5,R=7;function Ce(e,o,r){return e===o?!1:(e-o<0?o-e:e-o)<=r+jt}function Tt(e,o){const r=Array.prototype.slice.call(Ke.create(e,{errorCorrectionLevel:o}).modules.data,0),a=Math.sqrt(r.length);return r.reduce((t,l,i)=>(i%a===0?t.push([l]):t[t.length-1].push(l))&&t,[])}const _t={generate(e,o,r){const a="#141414",t="#ffffff",l=[],i=Tt(e,"Q"),s=o/i.length,$=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];$.forEach(({x:C,y:v})=>{const k=(i.length-R)*s*C,b=(i.length-R)*s*v,W=.45;for(let L=0;L<$.length;L+=1){const F=s*(R-L*2);l.push(x`<rect fill="${L%2===0?a:t}" height="${F}" rx="${F*W}" ry="${F*W}" width="${F}" x="${k+s*L}" y="${b+s*L}">`)}});const f=Math.floor((r+25)/s),De=i.length/2-f/2,Ne=i.length/2+f/2-1,Ze=[];i.forEach((C,v)=>{C.forEach((k,b)=>{if(i[v][b]&&!(v<R&&b<R||v>i.length-(R+1)&&b<R||v<R&&b>i.length-(R+1))&&!(v>De&&v<Ne&&b>De&&b<Ne)){const W=v*s+s/2,L=b*s+s/2;Ze.push([W,L])}})});const J={};return Ze.forEach(([C,v])=>{J[C]?J[C].push(v):J[C]=[v]}),Object.entries(J).map(([C,v])=>{const k=v.filter(b=>v.every(W=>!Ce(b,W,s)));return[Number(C),k]}).forEach(([C,v])=>{v.forEach(k=>{l.push(x`<circle cx="${C}" cy="${k}" fill="${a}" r="${s/ze}">`)})}),Object.entries(J).filter(([C,v])=>v.length>1).map(([C,v])=>{const k=v.filter(b=>v.some(W=>Ce(b,W,s)));return[Number(C),k]}).map(([C,v])=>{v.sort((b,W)=>b<W?-1:1);const k=[];for(const b of v){const W=k.find(L=>L.some(F=>Ce(b,F,s)));W?W.push(b):k.push([b])}return[C,k.map(b=>[b[0],b[b.length-1]])]}).forEach(([C,v])=>{v.forEach(([k,b])=>{l.push(x`<line x1="${C}" x2="${C}" y1="${k}" y2="${b}" stroke="${a}" stroke-width="${s/(ze/2)}" stroke-linecap="round">`)})}),l}},Dt=g`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Nt=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,V=(e,o,r,a)=>{for(var t=a>1?void 0:a?Zt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Nt(o,r,t),t};let T=class extends w{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e=X.state.themeMode==="light"?this.size:this.size-36;return x`<svg height="${e}" width="${e}">${_t.generate(this.uri,e,e/4)}</svg>`}render(){const e={"wcm-dark":X.state.themeMode==="dark"};return n`<div style="${`width: ${this.size}px`}" class="${P(e)}">${this.walletId||this.imageUrl?n`<wcm-wallet-image walletId="${O(this.walletId)}" imageId="${O(this.imageId)}" imageUrl="${O(this.imageUrl)}"></wcm-wallet-image>`:u.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};T.styles=[h.globalCss,Dt],V([d()],T.prototype,"uri",2),V([d({type:Number})],T.prototype,"size",2),V([d()],T.prototype,"imageId",2),V([d()],T.prototype,"walletId",2),V([d()],T.prototype,"imageUrl",2),T=V([p("wcm-qrcode")],T);const Bt=g`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var St=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Fe=(e,o,r,a)=>{for(var t=a>1?void 0:a?Ht(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&St(o,r,t),t};let ce=class extends w{constructor(){super(...arguments),this.onChange=()=>null}render(){return n`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${u.SEARCH_ICON}`}};ce.styles=[h.globalCss,Bt],Fe([d()],ce.prototype,"onChange",2),ce=Fe([p("wcm-search-input")],ce);const Ut=g`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var zt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,qt=(e,o,r,a)=>{for(var t=a>1?void 0:a?Ft(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&zt(o,r,t),t};let $e=class extends w{render(){return n`<svg viewBox="0 0 50 50" width="24" height="24"><circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`}};$e.styles=[h.globalCss,Ut],$e=qt([p("wcm-spinner")],$e);const Vt=g`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Qt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,Oe=(e,o,r,a)=>{for(var t=a>1?void 0:a?Yt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Qt(o,r,t),t};let re=class extends w{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const e={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return n`<span><slot class="${P(e)}"></slot></span>`}};re.styles=[h.globalCss,Vt],Oe([d()],re.prototype,"variant",2),Oe([d()],re.prototype,"color",2),re=Oe([p("wcm-text")],re);const Gt=g`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Kt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,_=(e,o,r,a)=>{for(var t=a>1?void 0:a?Xt(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Kt(o,r,t),t};let M=class extends w{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?n`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>`:this.installed?n`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>`:null}handleClick(){Xe.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return n`<button @click="${this.handleClick.bind(this)}"><div><wcm-wallet-image walletId="${this.walletId}" imageId="${O(this.imageId)}"></wcm-wallet-image><wcm-text variant="xsmall-regular">${(e=this.label)!=null?e:c.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};M.styles=[h.globalCss,Gt],_([d()],M.prototype,"onClick",2),_([d()],M.prototype,"name",2),_([d()],M.prototype,"walletId",2),_([d()],M.prototype,"label",2),_([d()],M.prototype,"imageId",2),_([d({type:Boolean})],M.prototype,"installed",2),_([d({type:Boolean})],M.prototype,"recent",2),M=_([p("wcm-wallet-button")],M);const Jt=g`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var eo=Object.defineProperty,to=Object.getOwnPropertyDescriptor,se=(e,o,r,a)=>{for(var t=a>1?void 0:a?to(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&eo(o,r,t),t};let Q=class extends w{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;const o=(e=this.imageUrl)!=null&&e.length?this.imageUrl:c.getWalletIcon({id:this.walletId,image_id:this.imageId});return n`${o.length?n`<div><img src="${o}" alt="${this.id}"></div>`:u.WALLET_PLACEHOLDER}`}};Q.styles=[h.globalCss,Jt],se([d()],Q.prototype,"walletId",2),se([d()],Q.prototype,"imageId",2),se([d()],Q.prototype,"imageUrl",2),Q=se([p("wcm-wallet-image")],Q);var oo=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,qe=(e,o,r,a)=>{for(var t=a>1?void 0:a?ro(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&oo(o,r,t),t};let ke=class extends w{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{e!=null&&e.length&&await Promise.all(e.map(async o=>c.preloadImage(o)))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){if(z.state.enableExplorer){await I.getRecomendedWallets(),A.setIsDataLoaded(!0);const{recomendedWallets:e}=I.state,o=e.map(r=>c.getWalletIcon(r));await this.loadImages(o)}else A.setIsDataLoaded(!0)}async preloadCustomImages(){const e=c.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),N.openToast("Failed preloading","error")}}};qe([E()],ke.prototype,"preload",2),ke=qe([p("wcm-explorer-context")],ke);var ao=Object.defineProperty,lo=Object.getOwnPropertyDescriptor,io=(e,o,r,a)=>{for(var t=a>1?void 0:a?lo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&ao(o,r,t),t};let Ve=class extends w{constructor(){super(),this.unsubscribeTheme=void 0,h.setTheme(),this.unsubscribeTheme=X.subscribe(h.setTheme)}disconnectedCallback(){var e;(e=this.unsubscribeTheme)==null||e.call(this)}};Ve=io([p("wcm-theme-context")],Ve);const no=g`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var co=Object.defineProperty,so=Object.getOwnPropertyDescriptor,mo=(e,o,r,a)=>{for(var t=a>1?void 0:a?so(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&co(o,r,t),t};let Ie=class extends w{onGoToQrcode(){y.push("Qrcode")}render(){const{recomendedWallets:e}=I.state,o=[...e,...e],r=m.RECOMMENDED_WALLET_AMOUNT*2;return n`<wcm-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${u.QRCODE_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-title">${u.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">${[...Array(r)].map((a,t)=>{const l=o[t%o.length];return l?n`<wcm-wallet-image walletId="${l.id}" imageId="${l.image_id}"></wcm-wallet-image>`:u.WALLET_PLACEHOLDER})}</div><wcm-button-big @click="${c.handleAndroidLinking}"><wcm-text variant="medium-regular" color="inverse">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};Ie.styles=[h.globalCss,no],Ie=mo([p("wcm-android-wallet-selection")],Ie);const ho=g`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var wo=Object.defineProperty,po=Object.getOwnPropertyDescriptor,Y=(e,o,r,a)=>{for(var t=a>1?void 0:a?po(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&wo(o,r,t),t};let D=class extends w{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,o;const r=(o=(e=X.state.themeVariables)==null?void 0:e["--wcm-wallet-icon-large-border-radius"])!=null?o:h.getPreset("--wcm-wallet-icon-large-border-radius");let a=0;r.includes("%")?a=88/100*parseInt(r,10):a=parseInt(r,10),a*=1.17;const t=317-a*1.57,l=425-a*1.8;return n`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="${a}"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ${t}" stroke-dashoffset="${l}"></use></svg>`}render(){const e={"wcm-error":this.isError,"wcm-stale":this.isStale};return n`<div class="${P(e)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${O(this.walletId)}" imageId="${O(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</wcm-text>`}};D.styles=[h.globalCss,ho],Y([d()],D.prototype,"walletId",2),Y([d()],D.prototype,"imageId",2),Y([d({type:Boolean})],D.prototype,"isError",2),Y([d({type:Boolean})],D.prototype,"isStale",2),Y([d()],D.prototype,"label",2),D=Y([p("wcm-connector-waiting")],D);const K={manualWallets(){var e,o;const{mobileWallets:r,desktopWallets:a}=z.state,t=(e=K.recentWallet())==null?void 0:e.id,l=m.isMobile()?r:a,i=l?.filter(s=>t!==s.id);return(o=m.isMobile()?i?.map(({id:s,name:$,links:f})=>({id:s,name:$,mobile:f,links:f})):i?.map(({id:s,name:$,links:f})=>({id:s,name:$,desktop:f,links:f})))!=null?o:[]},recentWallet(){return c.getRecentWallet()},recomendedWallets(e=!1){var o;const r=e||(o=K.recentWallet())==null?void 0:o.id,{recomendedWallets:a}=I.state;return a.filter(t=>r!==t.id)}},Z={onConnecting(e){c.goToConnectingView(e)},manualWalletsTemplate(){return K.manualWallets().map(e=>n`<wcm-wallet-button walletId="${e.id}" name="${e.name}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`)},recomendedWalletsTemplate(e=!1){return K.recomendedWallets(e).map(o=>n`<wcm-wallet-button name="${o.name}" walletId="${o.id}" imageId="${o.image_id}" .onClick="${()=>this.onConnecting(o)}"></wcm-wallet-button>`)},recentWalletTemplate(){const e=K.recentWallet();if(e)return n`<wcm-wallet-button name="${e.name}" walletId="${e.id}" imageId="${O(e.image_id)}" .recent="${!0}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`}},go=g`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var uo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,bo=(e,o,r,a)=>{for(var t=a>1?void 0:a?vo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&uo(o,r,t),t};let Ee=class extends w{render(){const{explorerExcludedWalletIds:e,enableExplorer:o}=z.state,r=e!=="ALL"&&o,a=Z.manualWalletsTemplate(),t=Z.recomendedWalletsTemplate();let l=[Z.recentWalletTemplate(),...a,...t];l=l.filter(Boolean);const i=l.length>4||r;let s=[];i?s=l.slice(0,3):s=l;const $=!!s.length;return n`<wcm-modal-header .border="${!0}" title="Connect your wallet" .onAction="${c.handleUriCopy}" .actionIcon="${u.COPY_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">${u.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">${u.SCAN_ICON}<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${$?n`<wcm-modal-footer><div class="wcm-desktop-title">${u.DESKTOP_ICON}<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">${s} ${i?n`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};Ee.styles=[h.globalCss,go],Ee=bo([p("wcm-desktop-wallet-selection")],Ee);const fo=g`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var xo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,Co=(e,o,r,a)=>{for(var t=a>1?void 0:a?yo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&xo(o,r,t),t};let We=class extends w{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:o}=z.state;return e??o?n`<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${e?n`<a href="${e}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${e&&o?"and":null} ${o?n`<a href="${o}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</wcm-text></div>`:null}};We.styles=[h.globalCss,fo],We=Co([p("wcm-legal-notice")],We);const $o=g`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Oo=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Io=(e,o,r,a)=>{for(var t=a>1?void 0:a?ko(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Oo(o,r,t),t};let Le=class extends w{onQrcode(){y.push("Qrcode")}render(){const{explorerExcludedWalletIds:e,enableExplorer:o}=z.state,r=e!=="ALL"&&o,a=Z.manualWalletsTemplate(),t=Z.recomendedWalletsTemplate();let l=[Z.recentWalletTemplate(),...a,...t];l=l.filter(Boolean);const i=l.length>8||r;let s=[];i?s=l.slice(0,7):s=l;const $=!!s.length;return n`<wcm-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${u.QRCODE_ICON}"></wcm-modal-header>${$?n`<wcm-modal-content><div>${s} ${i?n`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};Le.styles=[h.globalCss,$o],Le=Io([p("wcm-mobile-wallet-selection")],Le);const Eo=g`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Wo=Object.defineProperty,Lo=Object.getOwnPropertyDescriptor,Me=(e,o,r,a)=>{for(var t=a>1?void 0:a?Lo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Wo(o,r,t),t};let ae=class extends w{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=pe.subscribe(e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var e;(e=this.unsubscribeModal)==null||e.call(this)}get overlayEl(){return c.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return c.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){document.querySelector("body")&&(e?document.getElementById("wcm-styles")?.remove():document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>'))}onCloseModal(e){e.target===e.currentTarget&&pe.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{const e=c.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},o=.1,r=.2;await Promise.all([U(this.overlayEl,{opacity:[0,1]},{delay:o,duration:r}).finished,U(this.containerEl,e,{delay:o,duration:r}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=c.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},o=.2;await Promise.all([U(this.overlayEl,{opacity:[1,0]},{duration:o}).finished,U(this.containerEl,e,{duration:o}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",e=>{var o;e.key==="Escape"?pe.close():e.key==="Tab"&&((o=e.target)!=null&&o.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return n`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${P(e)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open?n`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};ae.styles=[h.globalCss,Eo],Me([E()],ae.prototype,"open",2),Me([E()],ae.prototype,"active",2),ae=Me([p("wcm-modal")],ae);const Mo=g`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var Ao=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,le=(e,o,r,a)=>{for(var t=a>1?void 0:a?Ro(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Ao(o,r,t),t};let S=class extends w{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){m.isMobile()?y.replace("MobileConnecting"):y.replace("MobileQrcodeConnecting")}onDesktop(){y.replace("DesktopConnecting")}onWeb(){y.replace("WebConnecting")}render(){return n`<div>${this.isRetry?n`<slot></slot>`:null} ${this.isMobile?n`<wcm-button .onClick="${this.onMobile}" .iconLeft="${u.MOBILE_ICON}" variant="outline">Mobile</wcm-button>`:null} ${this.isDesktop?n`<wcm-button .onClick="${this.onDesktop}" .iconLeft="${u.DESKTOP_ICON}" variant="outline">Desktop</wcm-button>`:null} ${this.isWeb?n`<wcm-button .onClick="${this.onWeb}" .iconLeft="${u.GLOBE_ICON}" variant="outline">Web</wcm-button>`:null}</div>`}};S.styles=[h.globalCss,Mo],le([d({type:Boolean})],S.prototype,"isMobile",2),le([d({type:Boolean})],S.prototype,"isDesktop",2),le([d({type:Boolean})],S.prototype,"isWeb",2),le([d({type:Boolean})],S.prototype,"isRetry",2),S=le([p("wcm-platform-selection")],S);const Po=g`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var jo=Object.defineProperty,To=Object.getOwnPropertyDescriptor,_o=(e,o,r,a)=>{for(var t=a>1?void 0:a?To(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&jo(o,r,t),t};let Ae=class extends w{onClick(){y.push("WalletExplorer")}render(){const{recomendedWallets:e}=I.state,o=K.manualWallets(),r=[...e,...o].reverse().slice(0,4);return n`<button @click="${this.onClick}"><div class="wcm-icons">${r.map(a=>{const t=c.getWalletIcon(a);if(t)return n`<img src="${t}">`;const l=c.getWalletIcon({id:a.id});return l?n`<img src="${l}">`:u.WALLET_PLACEHOLDER})} ${[...Array(4-r.length)].map(()=>u.WALLET_PLACEHOLDER)}</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>`}};Ae.styles=[h.globalCss,Po],Ae=_o([p("wcm-view-all-wallets-button")],Ae);const Do=g`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var No=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,de=(e,o,r,a)=>{for(var t=a>1?void 0:a?Zo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&No(o,r,t),t};let G=class extends w{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{const{walletConnectUri:e}=A.state;this.uri=e},0)}get overlayEl(){return c.getShadowRootElement(this,".wcm-qr-container")}render(){return n`<div class="wcm-qr-container">${this.uri?n`<wcm-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${O(this.walletId)}" imageId="${O(this.imageId)}"></wcm-qrcode>`:n`<wcm-spinner></wcm-spinner>`}</div>`}};G.styles=[h.globalCss,Do],de([d()],G.prototype,"walletId",2),de([d()],G.prototype,"imageId",2),de([E()],G.prototype,"uri",2),G=de([p("wcm-walletconnect-qr")],G);var Bo=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Ho=(e,o,r,a)=>{for(var t=a>1?void 0:a?So(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Bo(o,r,t),t};let Re=class extends w{viewTemplate(){return m.isAndroid()?n`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:m.isMobile()?n`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:n`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return n`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};Re.styles=[h.globalCss],Re=Ho([p("wcm-connect-wallet-view")],Re);const Uo=g`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var zo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Qe=(e,o,r,a)=>{for(var t=a>1?void 0:a?Fo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&zo(o,r,t),t};let me=class extends w{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){const{desktop:o,name:r}=m.getWalletRouterData(),a=o?.native;if(a){const t=m.formatNativeUrl(a,e,r);m.openHref(t,"_self")}}openDesktopApp(){const{walletConnectUri:e}=A.state,o=m.getWalletRouterData();c.setRecentWallet(o),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:o,image_id:r}=m.getWalletRouterData(),{isMobile:a,isWeb:t}=c.getCachedRouterWalletPlatforms();return n`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${u.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${O(r)}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Connection can continue loading if ${e} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile="${a}" .isWeb="${t}" .isRetry="${!0}"><wcm-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${u.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};me.styles=[h.globalCss,Uo],Qe([E()],me.prototype,"isError",2),me=Qe([p("wcm-desktop-connecting-view")],me);const qo=g`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var Vo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,Yo=(e,o,r,a)=>{for(var t=a>1?void 0:a?Qo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Vo(o,r,t),t};let Pe=class extends w{onInstall(e){e&&m.openHref(e,"_blank")}render(){const{name:e,id:o,image_id:r,homepage:a}=m.getWalletRouterData();return n`<wcm-modal-header title="${e}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${O(r)}" label="Not Detected" .isStale="${!0}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}</wcm-text><wcm-button .onClick="${()=>this.onInstall(a)}" .iconLeft="${u.ARROW_DOWN_ICON}">Download</wcm-button></wcm-info-footer>`}};Pe.styles=[h.globalCss,qo],Pe=Yo([p("wcm-install-wallet-view")],Pe);const Go=g`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Ko=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Ye=(e,o,r,a)=>{for(var t=a>1?void 0:a?Xo(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&Ko(o,r,t),t};let he=class extends w{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,o=!1){const{mobile:r,name:a}=m.getWalletRouterData(),t=r?.native,l=r?.universal;if(t&&!o){const i=m.formatNativeUrl(t,e,a);m.openHref(i,"_self")}else if(l){const i=m.formatUniversalUrl(l,e,a);m.openHref(i,"_self")}}openMobileApp(e=!1){const{walletConnectUri:o}=A.state,r=m.getWalletRouterData();c.setRecentWallet(r),o&&this.onFormatAndRedirect(o,e)}onGoToAppStore(e){e&&m.openHref(e,"_blank")}render(){const{name:e,id:o,image_id:r,app:a,mobile:t}=m.getWalletRouterData(),{isWeb:l}=c.getCachedRouterWalletPlatforms(),i=a?.ios,s=t?.universal;return n`<wcm-modal-header title="${e}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${O(r)}" label="Tap 'Open' to continue…" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="${l}" .isRetry="${!0}"><wcm-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${u.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection>${s?n`<wcm-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="${o}" imageId="${O(r)}"></wcm-wallet-image><wcm-text>${`Get ${e}`}</wcm-text></div><wcm-button .iconRight="${u.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(i)}" variant="ghost">App Store</wcm-button></wcm-info-footer>`}};he.styles=[h.globalCss,Go],Ye([E()],he.prototype,"isError",2),he=Ye([p("wcm-mobile-connecting-view")],he);const Jo=g`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var er=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,or=(e,o,r,a)=>{for(var t=a>1?void 0:a?tr(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&er(o,r,t),t};let je=class extends w{render(){const{name:e,id:o,image_id:r}=m.getWalletRouterData(),{isDesktop:a,isWeb:t}=c.getCachedRouterWalletPlatforms();return n`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${u.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="${o}" imageId="${O(r)}"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${e} app`}</wcm-text><wcm-platform-selection .isDesktop="${a}" .isWeb="${t}"></wcm-platform-selection></wcm-info-footer>`}};je.styles=[h.globalCss,Jo],je=or([p("wcm-mobile-qr-connecting-view")],je);var rr=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,lr=(e,o,r,a)=>{for(var t=a>1?void 0:a?ar(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&rr(o,r,t),t};let Te=class extends w{render(){return n`<wcm-modal-header title="Scan the code" .onAction="${c.handleUriCopy}" .actionIcon="${u.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};Te.styles=[h.globalCss],Te=lr([p("wcm-qrcode-view")],Te);const ir=g`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var nr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,ie=(e,o,r,a)=>{for(var t=a>1?void 0:a?cr(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&nr(o,r,t),t};const _e=40;let H=class extends w{constructor(){super(...arguments),this.loading=!I.state.wallets.listings.length,this.firstFetch=!I.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=c.debounce(e=>{e.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=e,I.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),I.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;(e=this.intersectionObserver)==null||e.disconnect()}get placeholderEl(){return c.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([e])=>{e.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:e,search:o}=I.state,{listings:r,total:a}=this.search?o:e;return a<=_e||r.length>=a}async fetchWallets(){var e;const{wallets:o,search:r}=I.state,{listings:a,total:t,page:l}=this.search?r:o;if(!this.endReached&&(this.firstFetch||t>_e&&a.length<t))try{this.loading=!0;const i=(e=A.state.chains)==null?void 0:e.join(","),{listings:s}=await I.getWallets({page:this.firstFetch?1:l+1,entries:_e,search:this.search,version:2,chains:i}),$=s.map(f=>c.getWalletIcon(f));await Promise.all([...$.map(async f=>c.preloadImage(f)),m.wait(300)]),this.endReached=this.isLastPage()}catch(i){console.error(i),N.openToast(c.getErrorMessage(i),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){m.isAndroid()?c.handleMobileLinking(e):c.goToConnectingView(e)}onSearchChange(e){const{value:o}=e.target;this.searchDebounce(o)}render(){const{wallets:e,search:o}=I.state,{listings:r}=this.search?o:e,a=this.loading&&!r.length,t=this.search.length>=3;let l=Z.manualWalletsTemplate(),i=Z.recomendedWalletsTemplate(!0);t&&(l=l.filter(({values:f})=>c.caseSafeIncludes(f[0],this.search)),i=i.filter(({values:f})=>c.caseSafeIncludes(f[0],this.search)));const s=!this.loading&&!r.length&&!i.length,$={"wcm-loading":a,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return n`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${P($)}"><div class="wcm-grid">${a?null:l} ${a?null:i} ${a?null:r.map(f=>n`${f?n`<wcm-wallet-button imageId="${f.image_id}" name="${f.name}" walletId="${f.id}" .onClick="${()=>this.onConnect(f)}"></wcm-wallet-button>`:null}`)}</div><div class="wcm-placeholder-block">${s?n`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>`:null} ${!s&&this.loading?n`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};H.styles=[h.globalCss,ir],ie([E()],H.prototype,"loading",2),ie([E()],H.prototype,"firstFetch",2),ie([E()],H.prototype,"search",2),ie([E()],H.prototype,"endReached",2),H=ie([p("wcm-wallet-explorer-view")],H);const sr=g`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var dr=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,Ge=(e,o,r,a)=>{for(var t=a>1?void 0:a?mr(o,r):o,l=e.length-1,i;l>=0;l--)(i=e[l])&&(t=(a?i(o,r,t):i(t))||t);return a&&t&&dr(o,r,t),t};let we=class extends w{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){const{desktop:o,name:r}=m.getWalletRouterData(),a=o?.universal;if(a){const t=m.formatUniversalUrl(a,e,r);m.openHref(t,"_blank")}}openWebWallet(){const{walletConnectUri:e}=A.state,o=m.getWalletRouterData();c.setRecentWallet(o),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:o,image_id:r}=m.getWalletRouterData(),{isMobile:a,isDesktop:t}=c.getCachedRouterWalletPlatforms(),l=m.isMobile();return n`<wcm-modal-header title="${e}" .onAction="${c.handleUriCopy}" .actionIcon="${u.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${o}" imageId="${O(r)}" label="${`Continue in ${e}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile="${a}" .isDesktop="${l?!1:t}" .isRetry="${!0}"><wcm-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${u.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};we.styles=[h.globalCss,sr],Ge([E()],we.prototype,"isError",2),we=Ge([p("wcm-web-connecting-view")],we);export{ae as WcmModal,T as WcmQrCode}; diff --git a/assets/index-efe0fbcc.js b/assets/index-efe0fbcc.js new file mode 100644 index 0000000..3cd4e96 --- /dev/null +++ b/assets/index-efe0fbcc.js @@ -0,0 +1 @@ +import{aK as Q,aL as ae,aM as ie,ay as le}from"./index-0b6b5a8e.js";const J=e=>typeof e=="object"&&e!==null,C=new WeakMap,$=new WeakSet,ce=(e=Object.is,t=(o,h)=>new Proxy(o,h),s=o=>J(o)&&!$.has(o)&&(Array.isArray(o)||!(Symbol.iterator in o))&&!(o instanceof WeakMap)&&!(o instanceof WeakSet)&&!(o instanceof Error)&&!(o instanceof Number)&&!(o instanceof Date)&&!(o instanceof String)&&!(o instanceof RegExp)&&!(o instanceof ArrayBuffer),r=o=>{switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:throw o}},l=new WeakMap,c=(o,h,I=r)=>{const w=l.get(o);if(w?.[0]===h)return w[1];const b=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o));return Q(b,!0),l.set(o,[h,b]),Reflect.ownKeys(o).forEach(P=>{if(Object.getOwnPropertyDescriptor(b,P))return;const W=Reflect.get(o,P),M={value:W,enumerable:!0,configurable:!0};if($.has(W))Q(W,!1);else if(W instanceof Promise)delete M.value,M.get=()=>I(W);else if(C.has(W)){const[y,z]=C.get(W);M.value=c(y,z(),I)}Object.defineProperty(b,P,M)}),b},m=new WeakMap,f=[1,1],O=o=>{if(!J(o))throw new Error("object required");const h=m.get(o);if(h)return h;let I=f[0];const w=new Set,b=(i,a=++f[0])=>{I!==a&&(I=a,w.forEach(n=>n(i,a)))};let P=f[1];const W=(i=++f[1])=>(P!==i&&!w.size&&(P=i,y.forEach(([a])=>{const n=a[1](i);n>I&&(I=n)})),I),M=i=>(a,n)=>{const g=[...a];g[1]=[i,...g[1]],b(g,n)},y=new Map,z=(i,a)=>{if(w.size){const n=a[3](M(i));y.set(i,[a,n])}else y.set(i,[a])},G=i=>{var a;const n=y.get(i);n&&(y.delete(i),(a=n[1])==null||a.call(n))},ne=i=>(w.add(i),w.size===1&&y.forEach(([n,g],R)=>{const k=n[3](M(R));y.set(R,[n,k])}),()=>{w.delete(i),w.size===0&&y.forEach(([n,g],R)=>{g&&(g(),y.set(R,[n]))})}),H=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o)),V=t(H,{deleteProperty(i,a){const n=Reflect.get(i,a);G(a);const g=Reflect.deleteProperty(i,a);return g&&b(["delete",[a],n]),g},set(i,a,n,g){const R=Reflect.has(i,a),k=Reflect.get(i,a,g);if(R&&(e(k,n)||m.has(n)&&e(k,m.get(n))))return!0;G(a),J(n)&&(n=ae(n)||n);let B=n;if(n instanceof Promise)n.then(A=>{n.status="fulfilled",n.value=A,b(["resolve",[a],A])}).catch(A=>{n.status="rejected",n.reason=A,b(["reject",[a],A])});else{!C.has(n)&&s(n)&&(B=O(n));const A=!$.has(B)&&C.get(B);A&&z(a,A)}return Reflect.set(i,a,B,g),b(["set",[a],n,k]),!0}});m.set(o,V);const re=[H,W,c,ne];return C.set(V,re),Reflect.ownKeys(o).forEach(i=>{const a=Object.getOwnPropertyDescriptor(o,i);"value"in a&&(V[i]=o[i],delete a.value,delete a.writable),Object.defineProperty(H,i,a)}),V})=>[O,C,$,e,t,s,r,l,c,m,f],[de]=ce();function D(e={}){return de(e)}function j(e,t,s){const r=C.get(e);let l;const c=[],m=r[3];let f=!1;const o=m(h=>{if(c.push(h),s){t(c.splice(0));return}l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,o()}}function ue(e,t){const s=C.get(e),[r,l,c]=s;return c(r,l(),t)}const d=D({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),oe={state:d,subscribe(e){return j(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.5.9")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=oe.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},fe=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),u=D({enabled:fe,userSessionId:"",events:[],connectedWalletId:void 0}),pe={state:u,subscribe(e){return j(u.events,()=>e(ue(u.events[u.events.length-1])))},initialize(){u.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(u.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){u.connectedWalletId=e},click(e){if(u.enabled){const t={type:"CLICK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},track(e){if(u.enabled){const t={type:"TRACK",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}},view(e){if(u.enabled){const t={type:"VIEW",name:e.name,userSessionId:u.userSessionId,timestamp:Date.now(),data:e};u.events.push(t)}}},E=D({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),v={state:E,subscribe(e){return j(E,()=>e(E))},setChains(e){E.chains=e},setWalletConnectUri(e){E.walletConnectUri=e},setIsCustomDesktop(e){E.isCustomDesktop=e},setIsCustomMobile(e){E.isCustomMobile=e},setIsDataLoaded(e){E.isDataLoaded=e},setIsUiLoaded(e){E.isUiLoaded=e},setIsAuth(e){E.isAuth=e}},x=D({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),N={state:x,subscribe(e){return j(x,()=>e(x))},setConfig(e){var t,s;pe.initialize(),v.setChains(e.chains),v.setIsAuth(!!e.enableAuthMode),v.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),v.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign(x,e)}},F="https://explorer-api.walletconnect.com";async function K(e,t){const s=new URL(e,F);return s.searchParams.append("projectId",N.state.projectId),Object.entries(t).forEach(([r,l])=>{l&&s.searchParams.append(r,String(l))}),(await fetch(s)).json()}const S={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${F}/w3m/v1/getWalletImage/${e}?projectId=${N.state.projectId}`},getAssetImageUrl(e){return`${F}/w3m/v1/getAssetImage/${e}?projectId=${N.state.projectId}`}};var me=Object.defineProperty,X=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,Y=(e,t,s)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,we=(e,t)=>{for(var s in t||(t={}))ge.call(t,s)&&Y(e,s,t[s]);if(X)for(var s of X(t))he.call(t,s)&&Y(e,s,t[s]);return e};const Z=p.isMobile(),L=D({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Ae={state:L,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=N.state;if(e==="NONE"||t==="ALL"&&!e)return L.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await S.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),O=e.indexOf(m.id);return f-O}),L.recomendedWallets=l}else{const{chains:s,isAuth:r}=v.state,l=s?.join(","),c=p.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=Z?await S.getMobileListings(m):await S.getDesktopListings(m);L.recomendedWallets=Object.values(f)}return L.recomendedWallets},async getWallets(e){const t=we({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=N.state,{recomendedWallets:l}=L;if(r==="ALL")return L.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),v.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:O}=Z?await S.getMobileListings(t):await S.getDesktopListings(t),o=Object.values(f),h=m?"search":"wallets";return L[h]={listings:[...L[h].listings,...o],total:O,page:c??1},{listings:o,total:O}},getWalletImageUrl(e){return S.getWalletImageUrl(e)},getAssetImageUrl(e){return S.getAssetImageUrl(e)},resetSearch(){L.search={listings:[],total:0,page:1}}},_=D({open:!1}),q={state:_,subscribe(e){return j(_,()=>e(_))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=v.state;if(v.setWalletConnectUri(e?.uri),v.setChains(e?.chains),oe.reset("ConnectWallet"),s&&r)_.open=!0,t();else{const l=setInterval(()=>{const c=v.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),_.open=!0,t())},200)}})},close(){_.open=!1}};var be=Object.defineProperty,ee=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,te=(e,t,s)=>t in e?be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ie=(e,t)=>{for(var s in t||(t={}))ye.call(t,s)&&te(e,s,t[s]);if(ee)for(var s of ee(t))ve.call(t,s)&&te(e,s,t[s]);return e};function Ee(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const T=D({themeMode:Ee()?"dark":"light"}),se={state:T,subscribe(e){return j(T,()=>e(T))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(T.themeMode=t),s&&(T.themeVariables=Ie({},s))}},U=D({open:!1,message:"",variant:"success"}),Ce={state:U,subscribe(e){return j(U,()=>e(U))},openToast(e,t){U.open=!0,U.message=e,U.variant=t},closeToast(){U.open=!1}};typeof window<"u"&&(window.Buffer||(window.Buffer=ie.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}),window.global||(window.global=window));class Le{constructor(t){this.openModal=q.open,this.closeModal=q.close,this.subscribeModal=q.subscribe,this.setTheme=se.setThemeConfig,se.setThemeConfig(t),N.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await le(()=>import("./index-8cce0a79.js"),["assets/index-8cce0a79.js","assets/if-defined-093fe0e9.js","assets/index-0b6b5a8e.js","assets/index-97aa736c.css"]);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),v.setIsUiLoaded(!0)}}}const De=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:Le},Symbol.toStringTag,{value:"Module"}));export{pe as $,N as C,Ae as G,oe as N,q as Q,se as X,Ce as Y,De as a,v as c,p as i}; diff --git a/assets/index.es-cfd0772e.js b/assets/index.es-cfd0772e.js new file mode 100644 index 0000000..7dad43d --- /dev/null +++ b/assets/index.es-cfd0772e.js @@ -0,0 +1,27 @@ +import{g as gc,c as ur,d as bi,e as d1,f as ne,j as g1,w as Ml,k as Ul,l as vc,t as lo,m as v1,I as _i,A as y1,U as m1,o as Q,p as _1,q as oc,u as w1,_ as b1,P as E1,V as Oh,v as x1,x as I1,y as S1,Z as Rh,$ as P1,z as A1,E as ao,G as C1,H as ql,J as Fr,K as O1,L as R1,X as cs,M as Ft,N as tr,O as mi,Q as cr,R as T1,S as us,T as zl,Y as N1,a0 as L1,a1 as D1,a2 as kl,a3 as F1,a4 as Hl,a5 as Bl,a6 as ls,a7 as ac,a8 as io,a9 as ps,aa as $1,ab as so,ac as j1,ad as M1,ae as U1,af as q1,ag as z1,ah as Ba,ai as Th,aj as k1,ak as H1,al as B1,am as Nh,an as V1,ao as K1,ap as G1,aq as W1,ar as J1,as as Y1,at as X1,au as no,av as Vl,aw as Va,ax as Z1,ay as Q1}from"./index-0b6b5a8e.js";var yc={exports:{}},fs=typeof Reflect=="object"?Reflect:null,Lh=fs&&typeof fs.apply=="function"?fs.apply:function(i,r,n){return Function.prototype.apply.call(i,r,n)},oo;fs&&typeof fs.ownKeys=="function"?oo=fs.ownKeys:Object.getOwnPropertySymbols?oo=function(i){return Object.getOwnPropertyNames(i).concat(Object.getOwnPropertySymbols(i))}:oo=function(i){return Object.getOwnPropertyNames(i)};function em(c){console&&console.warn&&console.warn(c)}var Kl=Number.isNaN||function(i){return i!==i};function He(){He.init.call(this)}yc.exports=He;yc.exports.once=sm;He.EventEmitter=He;He.prototype._events=void 0;He.prototype._eventsCount=0;He.prototype._maxListeners=void 0;var Dh=10;function fo(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(He,"defaultMaxListeners",{enumerable:!0,get:function(){return Dh},set:function(c){if(typeof c!="number"||c<0||Kl(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");Dh=c}});He.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};He.prototype.setMaxListeners=function(i){if(typeof i!="number"||i<0||Kl(i))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+i+".");return this._maxListeners=i,this};function Gl(c){return c._maxListeners===void 0?He.defaultMaxListeners:c._maxListeners}He.prototype.getMaxListeners=function(){return Gl(this)};He.prototype.emit=function(i){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var o=i==="error",l=this._events;if(l!==void 0)o=o&&l.error===void 0;else if(!o)return!1;if(o){var d;if(r.length>0&&(d=r[0]),d instanceof Error)throw d;var y=new Error("Unhandled error."+(d?" ("+d.message+")":""));throw y.context=d,y}var w=l[i];if(w===void 0)return!1;if(typeof w=="function")Lh(w,this,r);else for(var A=w.length,F=Zl(w,A),n=0;n<A;++n)Lh(F[n],this,r);return!0};function Wl(c,i,r,n){var o,l,d;if(fo(r),l=c._events,l===void 0?(l=c._events=Object.create(null),c._eventsCount=0):(l.newListener!==void 0&&(c.emit("newListener",i,r.listener?r.listener:r),l=c._events),d=l[i]),d===void 0)d=l[i]=r,++c._eventsCount;else if(typeof d=="function"?d=l[i]=n?[r,d]:[d,r]:n?d.unshift(r):d.push(r),o=Gl(c),o>0&&d.length>o&&!d.warned){d.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+d.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=c,y.type=i,y.count=d.length,em(y)}return c}He.prototype.addListener=function(i,r){return Wl(this,i,r,!1)};He.prototype.on=He.prototype.addListener;He.prototype.prependListener=function(i,r){return Wl(this,i,r,!0)};function tm(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Jl(c,i,r){var n={fired:!1,wrapFn:void 0,target:c,type:i,listener:r},o=tm.bind(n);return o.listener=r,n.wrapFn=o,o}He.prototype.once=function(i,r){return fo(r),this.on(i,Jl(this,i,r)),this};He.prototype.prependOnceListener=function(i,r){return fo(r),this.prependListener(i,Jl(this,i,r)),this};He.prototype.removeListener=function(i,r){var n,o,l,d,y;if(fo(r),o=this._events,o===void 0)return this;if(n=o[i],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete o[i],o.removeListener&&this.emit("removeListener",i,n.listener||r));else if(typeof n!="function"){for(l=-1,d=n.length-1;d>=0;d--)if(n[d]===r||n[d].listener===r){y=n[d].listener,l=d;break}if(l<0)return this;l===0?n.shift():rm(n,l),n.length===1&&(o[i]=n[0]),o.removeListener!==void 0&&this.emit("removeListener",i,y||r)}return this};He.prototype.off=He.prototype.removeListener;He.prototype.removeAllListeners=function(i){var r,n,o;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[i]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[i]),this;if(arguments.length===0){var l=Object.keys(n),d;for(o=0;o<l.length;++o)d=l[o],d!=="removeListener"&&this.removeAllListeners(d);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[i],typeof r=="function")this.removeListener(i,r);else if(r!==void 0)for(o=r.length-1;o>=0;o--)this.removeListener(i,r[o]);return this};function Yl(c,i,r){var n=c._events;if(n===void 0)return[];var o=n[i];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?im(o):Zl(o,o.length)}He.prototype.listeners=function(i){return Yl(this,i,!0)};He.prototype.rawListeners=function(i){return Yl(this,i,!1)};He.listenerCount=function(c,i){return typeof c.listenerCount=="function"?c.listenerCount(i):Xl.call(c,i)};He.prototype.listenerCount=Xl;function Xl(c){var i=this._events;if(i!==void 0){var r=i[c];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}He.prototype.eventNames=function(){return this._eventsCount>0?oo(this._events):[]};function Zl(c,i){for(var r=new Array(i),n=0;n<i;++n)r[n]=c[n];return r}function rm(c,i){for(;i+1<c.length;i++)c[i]=c[i+1];c.pop()}function im(c){for(var i=new Array(c.length),r=0;r<i.length;++r)i[r]=c[r].listener||c[r];return i}function sm(c,i){return new Promise(function(r,n){function o(d){c.removeListener(i,l),n(d)}function l(){typeof c.removeListener=="function"&&c.removeListener("error",o),r([].slice.call(arguments))}Ql(c,i,l,{once:!0}),i!=="error"&&nm(c,o,{once:!0})})}function nm(c,i,r){typeof c.on=="function"&&Ql(c,"error",i,r)}function Ql(c,i,r,n){if(typeof c.on=="function")n.once?c.once(i,r):c.on(i,r);else if(typeof c.addEventListener=="function")c.addEventListener(i,function o(l){n.once&&c.removeEventListener(i,o),r(l)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}var vr=yc.exports;const mc=gc(vr);var po={},Gs={};Object.defineProperty(Gs,"__esModule",{value:!0});function om(c){if(typeof c!="string")throw new Error(`Cannot safe json parse value of type ${typeof c}`);try{return JSON.parse(c)}catch{return c}}Gs.safeJsonParse=om;function am(c){return typeof c=="string"?c:JSON.stringify(c,(i,r)=>typeof r>"u"?null:r)}Gs.safeJsonStringify=am;var Ds={exports:{}},Fh;function cm(){return Fh||(Fh=1,function(){let c;function i(){}c=i,c.prototype.getItem=function(r){return this.hasOwnProperty(r)?String(this[r]):null},c.prototype.setItem=function(r,n){this[r]=String(n)},c.prototype.removeItem=function(r){delete this[r]},c.prototype.clear=function(){const r=this;Object.keys(r).forEach(function(n){r[n]=void 0,delete r[n]})},c.prototype.key=function(r){return r=r||0,Object.keys(this)[r]},c.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof ur<"u"&&ur.localStorage?Ds.exports=ur.localStorage:typeof window<"u"&&window.localStorage?Ds.exports=window.localStorage:Ds.exports=new i}()),Ds.exports}var Ka={},Fs={},$h;function um(){if($h)return Fs;$h=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.IKeyValueStorage=void 0;class c{}return Fs.IKeyValueStorage=c,Fs}var $s={},jh;function hm(){if(jh)return $s;jh=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.parseEntry=void 0;const c=Gs;function i(r){var n;return[r[0],c.safeJsonParse((n=r[1])!==null&&n!==void 0?n:"")]}return $s.parseEntry=i,$s}var Mh;function lm(){return Mh||(Mh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0});const i=bi;i.__exportStar(um(),c),i.__exportStar(hm(),c)}(Ka)),Ka}Object.defineProperty(po,"__esModule",{value:!0});po.KeyValueStorage=void 0;const hs=bi,Uh=Gs,fm=hs.__importDefault(cm()),pm=lm();class ef{constructor(){this.localStorage=fm.default}getKeys(){return hs.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return hs.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(pm.parseEntry)})}getItem(i){return hs.__awaiter(this,void 0,void 0,function*(){const r=this.localStorage.getItem(i);if(r!==null)return Uh.safeJsonParse(r)})}setItem(i,r){return hs.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(i,Uh.safeJsonStringify(r))})}removeItem(i){return hs.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(i)})}}po.KeyValueStorage=ef;var dm=po.default=ef,ds={},js={},Ga={},Ms={};let qi=class{};const gm=Object.freeze(Object.defineProperty({__proto__:null,IEvents:qi},Symbol.toStringTag,{value:"Module"})),vm=d1(gm);var qh;function ym(){if(qh)return Ms;qh=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.IHeartBeat=void 0;const c=vm;class i extends c.IEvents{constructor(n){super()}}return Ms.IHeartBeat=i,Ms}var zh;function tf(){return zh||(zh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),bi.__exportStar(ym(),c)}(Ga)),Ga}var Wa={},Mi={},kh;function mm(){if(kh)return Mi;kh=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.HEARTBEAT_EVENTS=Mi.HEARTBEAT_INTERVAL=void 0;const c=ne;return Mi.HEARTBEAT_INTERVAL=c.FIVE_SECONDS,Mi.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"},Mi}var Hh;function rf(){return Hh||(Hh=1,function(c){Object.defineProperty(c,"__esModule",{value:!0}),bi.__exportStar(mm(),c)}(Wa)),Wa}var Bh;function _m(){if(Bh)return js;Bh=1,Object.defineProperty(js,"__esModule",{value:!0}),js.HeartBeat=void 0;const c=bi,i=vr,r=ne,n=tf(),o=rf();class l extends n.IHeartBeat{constructor(y){super(y),this.events=new i.EventEmitter,this.interval=o.HEARTBEAT_INTERVAL,this.interval=y?.interval||o.HEARTBEAT_INTERVAL}static init(y){return c.__awaiter(this,void 0,void 0,function*(){const w=new l(y);return yield w.init(),w})}init(){return c.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(y,w){this.events.on(y,w)}once(y,w){this.events.once(y,w)}off(y,w){this.events.off(y,w)}removeListener(y,w){this.events.removeListener(y,w)}initialize(){return c.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),r.toMiliseconds(this.interval))})}pulse(){this.events.emit(o.HEARTBEAT_EVENTS.pulse)}}return js.HeartBeat=l,js}(function(c){Object.defineProperty(c,"__esModule",{value:!0});const i=bi;i.__exportStar(_m(),c),i.__exportStar(tf(),c),i.__exportStar(rf(),c)})(ds);var Re={},Ja,Vh;function wm(){if(Vh)return Ja;Vh=1;function c(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}Ja=i;function i(r,n,o){var l=o&&o.stringify||c,d=1;if(typeof r=="object"&&r!==null){var y=n.length+d;if(y===1)return r;var w=new Array(y);w[0]=l(r);for(var A=1;A<y;A++)w[A]=l(n[A]);return w.join(" ")}if(typeof r!="string")return r;var F=n.length;if(F===0)return r;for(var K="",J=1-d,G=-1,j=r&&r.length||0,V=0;V<j;){if(r.charCodeAt(V)===37&&V+1<j){switch(G=G>-1?G:0,r.charCodeAt(V+1)){case 100:case 102:if(J>=F||n[J]==null)break;G<V&&(K+=r.slice(G,V)),K+=Number(n[J]),G=V+2,V++;break;case 105:if(J>=F||n[J]==null)break;G<V&&(K+=r.slice(G,V)),K+=Math.floor(Number(n[J])),G=V+2,V++;break;case 79:case 111:case 106:if(J>=F||n[J]===void 0)break;G<V&&(K+=r.slice(G,V));var ie=typeof n[J];if(ie==="string"){K+="'"+n[J]+"'",G=V+2,V++;break}if(ie==="function"){K+=n[J].name||"<anonymous>",G=V+2,V++;break}K+=l(n[J]),G=V+2,V++;break;case 115:if(J>=F)break;G<V&&(K+=r.slice(G,V)),K+=String(n[J]),G=V+2,V++;break;case 37:G<V&&(K+=r.slice(G,V)),K+="%",G=V+2,V++,J--;break}++J}++V}return G===-1?r:(G<j&&(K+=r.slice(G)),K)}return Ja}var Ya,Kh;function bm(){if(Kh)return Ya;Kh=1;const c=wm();Ya=o;const i=le().console||{},r={mapHttpRequest:j,mapHttpResponse:j,wrapRequestSerializer:V,wrapResponseSerializer:V,wrapErrorSerializer:V,req:j,res:j,err:J};function n(T,M){return Array.isArray(T)?T.filter(function(ve){return ve!=="!stdSerializers.err"}):T===!0?Object.keys(M):!1}function o(T){T=T||{},T.browser=T.browser||{};const M=T.browser.transmit;if(M&&typeof M.send!="function")throw Error("pino: transmit option must have a send function");const B=T.browser.write||i;T.browser.write&&(T.browser.asObject=!0);const ve=T.serializers||{},re=n(T.browser.serialize,ve);let ue=T.browser.serialize;Array.isArray(T.browser.serialize)&&T.browser.serialize.indexOf("!stdSerializers.err")>-1&&(ue=!1);const Te=["error","fatal","warn","info","debug","trace"];typeof B=="function"&&(B.error=B.fatal=B.warn=B.info=B.debug=B.trace=B),T.enabled===!1&&(T.level="silent");const qe=T.level||"info",v=Object.create(B);v.log||(v.log=ie),Object.defineProperty(v,"levelVal",{get:X}),Object.defineProperty(v,"level",{get:ce,set:k});const E={transmit:M,serialize:re,asObject:T.browser.asObject,levels:Te,timestamp:G(T)};v.levels=o.levels,v.level=qe,v.setMaxListeners=v.getMaxListeners=v.emit=v.addListener=v.on=v.prependListener=v.once=v.prependOnceListener=v.removeListener=v.removeAllListeners=v.listeners=v.listenerCount=v.eventNames=v.write=v.flush=ie,v.serializers=ve,v._serialize=re,v._stdErrSerialize=ue,v.child=U,M&&(v._logEvent=K());function X(){return this.level==="silent"?1/0:this.levels.values[this.level]}function ce(){return this._level}function k(z){if(z!=="silent"&&!this.levels.values[z])throw Error("unknown level "+z);this._level=z,l(E,v,"error","log"),l(E,v,"fatal","error"),l(E,v,"warn","error"),l(E,v,"info","log"),l(E,v,"debug","log"),l(E,v,"trace","log")}function U(z,H){if(!z)throw new Error("missing bindings for child Pino");H=H||{},re&&z.serializers&&(H.serializers=z.serializers);const Ye=H.serializers;if(re&&Ye){var Be=Object.assign({},ve,Ye),jr=T.browser.serialize===!0?Object.keys(Be):re;delete z.serializers,w([z],jr,Be,this._stdErrSerialize)}function xe(St){this._childLevel=(St._childLevel|0)+1,this.error=A(St,z,"error"),this.fatal=A(St,z,"fatal"),this.warn=A(St,z,"warn"),this.info=A(St,z,"info"),this.debug=A(St,z,"debug"),this.trace=A(St,z,"trace"),Be&&(this.serializers=Be,this._serialize=jr),M&&(this._logEvent=K([].concat(St._logEvent.bindings,z)))}return xe.prototype=this,new xe(this)}return v}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},o.stdSerializers=r,o.stdTimeFunctions=Object.assign({},{nullTime:Ee,epochTime:ge,unixTime:pe,isoTime:he});function l(T,M,B,ve){const re=Object.getPrototypeOf(M);M[B]=M.levelVal>M.levels.values[B]?ie:re[B]?re[B]:i[B]||i[ve]||ie,d(T,M,B)}function d(T,M,B){!T.transmit&&M[B]===ie||(M[B]=function(ve){return function(){const ue=T.timestamp(),Te=new Array(arguments.length),qe=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var v=0;v<Te.length;v++)Te[v]=arguments[v];if(T.serialize&&!T.asObject&&w(Te,this._serialize,this.serializers,this._stdErrSerialize),T.asObject?ve.call(qe,y(this,B,Te,ue)):ve.apply(qe,Te),T.transmit){const E=T.transmit.level||M.level,X=o.levels.values[E],ce=o.levels.values[B];if(ce<X)return;F(this,{ts:ue,methodLevel:B,methodValue:ce,transmitLevel:E,transmitValue:o.levels.values[T.transmit.level||M.level],send:T.transmit.send,val:M.levelVal},Te)}}}(M[B]))}function y(T,M,B,ve){T._serialize&&w(B,T._serialize,T.serializers,T._stdErrSerialize);const re=B.slice();let ue=re[0];const Te={};ve&&(Te.time=ve),Te.level=o.levels.values[M];let qe=(T._childLevel|0)+1;if(qe<1&&(qe=1),ue!==null&&typeof ue=="object"){for(;qe--&&typeof re[0]=="object";)Object.assign(Te,re.shift());ue=re.length?c(re.shift(),re):void 0}else typeof ue=="string"&&(ue=c(re.shift(),re));return ue!==void 0&&(Te.msg=ue),Te}function w(T,M,B,ve){for(const re in T)if(ve&&T[re]instanceof Error)T[re]=o.stdSerializers.err(T[re]);else if(typeof T[re]=="object"&&!Array.isArray(T[re]))for(const ue in T[re])M&&M.indexOf(ue)>-1&&ue in B&&(T[re][ue]=B[ue](T[re][ue]))}function A(T,M,B){return function(){const ve=new Array(1+arguments.length);ve[0]=M;for(var re=1;re<ve.length;re++)ve[re]=arguments[re-1];return T[B].apply(this,ve)}}function F(T,M,B){const ve=M.send,re=M.ts,ue=M.methodLevel,Te=M.methodValue,qe=M.val,v=T._logEvent.bindings;w(B,T._serialize||Object.keys(T.serializers),T.serializers,T._stdErrSerialize===void 0?!0:T._stdErrSerialize),T._logEvent.ts=re,T._logEvent.messages=B.filter(function(E){return v.indexOf(E)===-1}),T._logEvent.level.label=ue,T._logEvent.level.value=Te,ve(ue,T._logEvent,qe),T._logEvent=K(v)}function K(T){return{ts:0,messages:[],bindings:T||[],level:{label:"",value:0}}}function J(T){const M={type:T.constructor.name,msg:T.message,stack:T.stack};for(const B in T)M[B]===void 0&&(M[B]=T[B]);return M}function G(T){return typeof T.timestamp=="function"?T.timestamp:T.timestamp===!1?Ee:ge}function j(){return{}}function V(T){return T}function ie(){}function Ee(){return!1}function ge(){return Date.now()}function pe(){return Math.round(Date.now()/1e3)}function he(){return new Date(Date.now()).toISOString()}function le(){function T(M){return typeof M<"u"&&M}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return T(self)||T(window)||T(this)||{}}}return Ya}var Ui={},Gh;function sf(){return Gh||(Gh=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.PINO_CUSTOM_CONTEXT_KEY=Ui.PINO_LOGGER_DEFAULTS=void 0,Ui.PINO_LOGGER_DEFAULTS={level:"info"},Ui.PINO_CUSTOM_CONTEXT_KEY="custom_context"),Ui}var er={},Wh;function Em(){if(Wh)return er;Wh=1,Object.defineProperty(er,"__esModule",{value:!0}),er.generateChildLogger=er.formatChildLoggerContext=er.getLoggerContext=er.setBrowserLoggerContext=er.getBrowserLoggerContext=er.getDefaultLoggerOptions=void 0;const c=sf();function i(y){return Object.assign(Object.assign({},y),{level:y?.level||c.PINO_LOGGER_DEFAULTS.level})}er.getDefaultLoggerOptions=i;function r(y,w=c.PINO_CUSTOM_CONTEXT_KEY){return y[w]||""}er.getBrowserLoggerContext=r;function n(y,w,A=c.PINO_CUSTOM_CONTEXT_KEY){return y[A]=w,y}er.setBrowserLoggerContext=n;function o(y,w=c.PINO_CUSTOM_CONTEXT_KEY){let A="";return typeof y.bindings>"u"?A=r(y,w):A=y.bindings().context||"",A}er.getLoggerContext=o;function l(y,w,A=c.PINO_CUSTOM_CONTEXT_KEY){const F=o(y,A);return F.trim()?`${F}/${w}`:w}er.formatChildLoggerContext=l;function d(y,w,A=c.PINO_CUSTOM_CONTEXT_KEY){const F=l(y,w,A),K=y.child({context:F});return n(K,F,A)}return er.generateChildLogger=d,er}(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.pino=void 0;const i=bi,r=i.__importDefault(bm());Object.defineProperty(c,"pino",{enumerable:!0,get:function(){return r.default}}),i.__exportStar(sf(),c),i.__exportStar(Em(),c)})(Re);class xm extends qi{constructor(i){super(),this.opts=i,this.protocol="wc",this.version=2}}class Im extends qi{constructor(i,r){super(),this.core=i,this.logger=r,this.records=new Map}}class Sm{constructor(i,r){this.logger=i,this.core=r}}let Pm=class extends qi{constructor(i,r){super(),this.relayer=i,this.logger=r}},Am=class extends qi{constructor(i){super()}},Cm=class{constructor(i,r,n,o){this.core=i,this.logger=r,this.name=n}};class Om extends qi{constructor(i,r){super(),this.relayer=i,this.logger=r}}let Rm=class extends qi{constructor(i,r){super(),this.core=i,this.logger=r}},Tm=class{constructor(i,r){this.projectId=i,this.logger=r}},Nm=class{constructor(i){this.opts=i,this.protocol="wc",this.version=2}},Lm=class{constructor(i){this.client=i}};const Dm=c=>JSON.stringify(c,(i,r)=>typeof r=="bigint"?r.toString()+"n":r),Fm=c=>{const i=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=c.replace(i,'$1"$2n"$3');return JSON.parse(r,(n,o)=>typeof o=="string"&&o.match(/^\d+n$/)?BigInt(o.substring(0,o.length-1)):o)};function _c(c){if(typeof c!="string")throw new Error(`Cannot safe json parse value of type ${typeof c}`);try{return Fm(c)}catch{return c}}function Ks(c){return typeof c=="string"?c:Dm(c)||""}var wc={},nf={};(function(c){Object.defineProperty(c,"__esModule",{value:!0});var i=g1,r=Ml;c.DIGEST_LENGTH=64,c.BLOCK_SIZE=128;var n=function(){function y(){this.digestLength=c.DIGEST_LENGTH,this.blockSize=c.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return y.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},y.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},y.prototype.clean=function(){r.wipe(this._buffer),r.wipe(this._tempHi),r.wipe(this._tempLo),this.reset()},y.prototype.update=function(w,A){if(A===void 0&&(A=w.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var F=0;if(this._bytesHashed+=A,this._bufferLength>0){for(;this._bufferLength<c.BLOCK_SIZE&&A>0;)this._buffer[this._bufferLength++]=w[F++],A--;this._bufferLength===this.blockSize&&(l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(A>=this.blockSize&&(F=l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,w,F,A),A%=this.blockSize);A>0;)this._buffer[this._bufferLength++]=w[F++],A--;return this},y.prototype.finish=function(w){if(!this._finished){var A=this._bytesHashed,F=this._bufferLength,K=A/536870912|0,J=A<<3,G=A%128<112?128:256;this._buffer[F]=128;for(var j=F+1;j<G-8;j++)this._buffer[j]=0;i.writeUint32BE(K,this._buffer,G-8),i.writeUint32BE(J,this._buffer,G-4),l(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,G),this._finished=!0}for(var j=0;j<this.digestLength/8;j++)i.writeUint32BE(this._stateHi[j],w,j*8),i.writeUint32BE(this._stateLo[j],w,j*8+4);return this},y.prototype.digest=function(){var w=new Uint8Array(this.digestLength);return this.finish(w),w},y.prototype.saveState=function(){if(this._finished)throw new Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},y.prototype.restoreState=function(w){return this._stateHi.set(w.stateHi),this._stateLo.set(w.stateLo),this._bufferLength=w.bufferLength,w.buffer&&this._buffer.set(w.buffer),this._bytesHashed=w.bytesHashed,this._finished=!1,this},y.prototype.cleanSavedState=function(w){r.wipe(w.stateHi),r.wipe(w.stateLo),w.buffer&&r.wipe(w.buffer),w.bufferLength=0,w.bytesHashed=0},y}();c.SHA512=n;var o=new Int32Array([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 l(y,w,A,F,K,J,G){for(var j=A[0],V=A[1],ie=A[2],Ee=A[3],ge=A[4],pe=A[5],he=A[6],le=A[7],T=F[0],M=F[1],B=F[2],ve=F[3],re=F[4],ue=F[5],Te=F[6],qe=F[7],v,E,X,ce,k,U,z,H;G>=128;){for(var Ye=0;Ye<16;Ye++){var Be=8*Ye+J;y[Ye]=i.readUint32BE(K,Be),w[Ye]=i.readUint32BE(K,Be+4)}for(var Ye=0;Ye<80;Ye++){var jr=j,xe=V,St=ie,R=Ee,O=ge,P=pe,u=he,b=le,ee=T,fe=M,we=B,Ne=ve,De=re,Pe=ue,Pt=Te,_t=qe;if(v=le,E=qe,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=(ge>>>14|re<<32-14)^(ge>>>18|re<<32-18)^(re>>>41-32|ge<<32-(41-32)),E=(re>>>14|ge<<32-14)^(re>>>18|ge<<32-18)^(ge>>>41-32|re<<32-(41-32)),k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,v=ge&pe^~ge&he,E=re&ue^~re&Te,k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,v=o[Ye*2],E=o[Ye*2+1],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,v=y[Ye%16],E=w[Ye%16],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,X=z&65535|H<<16,ce=k&65535|U<<16,v=X,E=ce,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=(j>>>28|T<<32-28)^(T>>>34-32|j<<32-(34-32))^(T>>>39-32|j<<32-(39-32)),E=(T>>>28|j<<32-28)^(j>>>34-32|T<<32-(34-32))^(j>>>39-32|T<<32-(39-32)),k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,v=j&V^j&ie^V&ie,E=T&M^T&B^M&B,k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,b=z&65535|H<<16,_t=k&65535|U<<16,v=R,E=Ne,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=X,E=ce,k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,R=z&65535|H<<16,Ne=k&65535|U<<16,V=jr,ie=xe,Ee=St,ge=R,pe=O,he=P,le=u,j=b,M=ee,B=fe,ve=we,re=Ne,ue=De,Te=Pe,qe=Pt,T=_t,Ye%16===15)for(var Be=0;Be<16;Be++)v=y[Be],E=w[Be],k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=y[(Be+9)%16],E=w[(Be+9)%16],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,X=y[(Be+1)%16],ce=w[(Be+1)%16],v=(X>>>1|ce<<32-1)^(X>>>8|ce<<32-8)^X>>>7,E=(ce>>>1|X<<32-1)^(ce>>>8|X<<32-8)^(ce>>>7|X<<32-7),k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,X=y[(Be+14)%16],ce=w[(Be+14)%16],v=(X>>>19|ce<<32-19)^(ce>>>61-32|X<<32-(61-32))^X>>>6,E=(ce>>>19|X<<32-19)^(X>>>61-32|ce<<32-(61-32))^(ce>>>6|X<<32-6),k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,y[Be]=z&65535|H<<16,w[Be]=k&65535|U<<16}v=j,E=T,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[0],E=F[0],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[0]=j=z&65535|H<<16,F[0]=T=k&65535|U<<16,v=V,E=M,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[1],E=F[1],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[1]=V=z&65535|H<<16,F[1]=M=k&65535|U<<16,v=ie,E=B,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[2],E=F[2],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[2]=ie=z&65535|H<<16,F[2]=B=k&65535|U<<16,v=Ee,E=ve,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[3],E=F[3],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[3]=Ee=z&65535|H<<16,F[3]=ve=k&65535|U<<16,v=ge,E=re,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[4],E=F[4],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[4]=ge=z&65535|H<<16,F[4]=re=k&65535|U<<16,v=pe,E=ue,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[5],E=F[5],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[5]=pe=z&65535|H<<16,F[5]=ue=k&65535|U<<16,v=he,E=Te,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[6],E=F[6],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[6]=he=z&65535|H<<16,F[6]=Te=k&65535|U<<16,v=le,E=qe,k=E&65535,U=E>>>16,z=v&65535,H=v>>>16,v=A[7],E=F[7],k+=E&65535,U+=E>>>16,z+=v&65535,H+=v>>>16,U+=k>>>16,z+=U>>>16,H+=z>>>16,A[7]=le=z&65535|H<<16,F[7]=qe=k&65535|U<<16,J+=128,G-=128}return J}function d(y){var w=new n;w.update(y);var A=w.digest();return w.clean(),A}c.hash=d})(nf);(function(c){Object.defineProperty(c,"__esModule",{value:!0}),c.convertSecretKeyToX25519=c.convertPublicKeyToX25519=c.verify=c.sign=c.extractPublicKeyFromSecretKey=c.generateKeyPair=c.generateKeyPairFromSeed=c.SEED_LENGTH=c.SECRET_KEY_LENGTH=c.PUBLIC_KEY_LENGTH=c.SIGNATURE_LENGTH=void 0;const i=Ul,r=nf,n=Ml;c.SIGNATURE_LENGTH=64,c.PUBLIC_KEY_LENGTH=32,c.SECRET_KEY_LENGTH=64,c.SEED_LENGTH=32;function o(R){const O=new Float64Array(16);if(R)for(let P=0;P<R.length;P++)O[P]=R[P];return O}const l=new Uint8Array(32);l[0]=9;const d=o(),y=o([1]),w=o([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),A=o([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),F=o([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),K=o([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),J=o([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function G(R,O){for(let P=0;P<16;P++)R[P]=O[P]|0}function j(R){let O=1;for(let P=0;P<16;P++){let u=R[P]+O+65535;O=Math.floor(u/65536),R[P]=u-O*65536}R[0]+=O-1+37*(O-1)}function V(R,O,P){const u=~(P-1);for(let b=0;b<16;b++){const ee=u&(R[b]^O[b]);R[b]^=ee,O[b]^=ee}}function ie(R,O){const P=o(),u=o();for(let b=0;b<16;b++)u[b]=O[b];j(u),j(u),j(u);for(let b=0;b<2;b++){P[0]=u[0]-65517;for(let fe=1;fe<15;fe++)P[fe]=u[fe]-65535-(P[fe-1]>>16&1),P[fe-1]&=65535;P[15]=u[15]-32767-(P[14]>>16&1);const ee=P[15]>>16&1;P[14]&=65535,V(u,P,1-ee)}for(let b=0;b<16;b++)R[2*b]=u[b]&255,R[2*b+1]=u[b]>>8}function Ee(R,O){let P=0;for(let u=0;u<32;u++)P|=R[u]^O[u];return(1&P-1>>>8)-1}function ge(R,O){const P=new Uint8Array(32),u=new Uint8Array(32);return ie(P,R),ie(u,O),Ee(P,u)}function pe(R){const O=new Uint8Array(32);return ie(O,R),O[0]&1}function he(R,O){for(let P=0;P<16;P++)R[P]=O[2*P]+(O[2*P+1]<<8);R[15]&=32767}function le(R,O,P){for(let u=0;u<16;u++)R[u]=O[u]+P[u]}function T(R,O,P){for(let u=0;u<16;u++)R[u]=O[u]-P[u]}function M(R,O,P){let u,b,ee=0,fe=0,we=0,Ne=0,De=0,Pe=0,Pt=0,_t=0,ot=0,$e=0,Ze=0,Qe=0,at=0,ze=0,et=0,Le=0,Ve=0,ht=0,Me=0,At=0,$t=0,kt=0,Ht=0,Ut=0,Wt=0,rr=0,Mr=0,Jt=0,Kr=0,ai=0,Ii=0,lt=P[0],it=P[1],ft=P[2],pt=P[3],ct=P[4],st=P[5],Ct=P[6],Ot=P[7],dt=P[8],Rt=P[9],gt=P[10],wt=P[11],vt=P[12],Xe=P[13],Tt=P[14],Nt=P[15];u=O[0],ee+=u*lt,fe+=u*it,we+=u*ft,Ne+=u*pt,De+=u*ct,Pe+=u*st,Pt+=u*Ct,_t+=u*Ot,ot+=u*dt,$e+=u*Rt,Ze+=u*gt,Qe+=u*wt,at+=u*vt,ze+=u*Xe,et+=u*Tt,Le+=u*Nt,u=O[1],fe+=u*lt,we+=u*it,Ne+=u*ft,De+=u*pt,Pe+=u*ct,Pt+=u*st,_t+=u*Ct,ot+=u*Ot,$e+=u*dt,Ze+=u*Rt,Qe+=u*gt,at+=u*wt,ze+=u*vt,et+=u*Xe,Le+=u*Tt,Ve+=u*Nt,u=O[2],we+=u*lt,Ne+=u*it,De+=u*ft,Pe+=u*pt,Pt+=u*ct,_t+=u*st,ot+=u*Ct,$e+=u*Ot,Ze+=u*dt,Qe+=u*Rt,at+=u*gt,ze+=u*wt,et+=u*vt,Le+=u*Xe,Ve+=u*Tt,ht+=u*Nt,u=O[3],Ne+=u*lt,De+=u*it,Pe+=u*ft,Pt+=u*pt,_t+=u*ct,ot+=u*st,$e+=u*Ct,Ze+=u*Ot,Qe+=u*dt,at+=u*Rt,ze+=u*gt,et+=u*wt,Le+=u*vt,Ve+=u*Xe,ht+=u*Tt,Me+=u*Nt,u=O[4],De+=u*lt,Pe+=u*it,Pt+=u*ft,_t+=u*pt,ot+=u*ct,$e+=u*st,Ze+=u*Ct,Qe+=u*Ot,at+=u*dt,ze+=u*Rt,et+=u*gt,Le+=u*wt,Ve+=u*vt,ht+=u*Xe,Me+=u*Tt,At+=u*Nt,u=O[5],Pe+=u*lt,Pt+=u*it,_t+=u*ft,ot+=u*pt,$e+=u*ct,Ze+=u*st,Qe+=u*Ct,at+=u*Ot,ze+=u*dt,et+=u*Rt,Le+=u*gt,Ve+=u*wt,ht+=u*vt,Me+=u*Xe,At+=u*Tt,$t+=u*Nt,u=O[6],Pt+=u*lt,_t+=u*it,ot+=u*ft,$e+=u*pt,Ze+=u*ct,Qe+=u*st,at+=u*Ct,ze+=u*Ot,et+=u*dt,Le+=u*Rt,Ve+=u*gt,ht+=u*wt,Me+=u*vt,At+=u*Xe,$t+=u*Tt,kt+=u*Nt,u=O[7],_t+=u*lt,ot+=u*it,$e+=u*ft,Ze+=u*pt,Qe+=u*ct,at+=u*st,ze+=u*Ct,et+=u*Ot,Le+=u*dt,Ve+=u*Rt,ht+=u*gt,Me+=u*wt,At+=u*vt,$t+=u*Xe,kt+=u*Tt,Ht+=u*Nt,u=O[8],ot+=u*lt,$e+=u*it,Ze+=u*ft,Qe+=u*pt,at+=u*ct,ze+=u*st,et+=u*Ct,Le+=u*Ot,Ve+=u*dt,ht+=u*Rt,Me+=u*gt,At+=u*wt,$t+=u*vt,kt+=u*Xe,Ht+=u*Tt,Ut+=u*Nt,u=O[9],$e+=u*lt,Ze+=u*it,Qe+=u*ft,at+=u*pt,ze+=u*ct,et+=u*st,Le+=u*Ct,Ve+=u*Ot,ht+=u*dt,Me+=u*Rt,At+=u*gt,$t+=u*wt,kt+=u*vt,Ht+=u*Xe,Ut+=u*Tt,Wt+=u*Nt,u=O[10],Ze+=u*lt,Qe+=u*it,at+=u*ft,ze+=u*pt,et+=u*ct,Le+=u*st,Ve+=u*Ct,ht+=u*Ot,Me+=u*dt,At+=u*Rt,$t+=u*gt,kt+=u*wt,Ht+=u*vt,Ut+=u*Xe,Wt+=u*Tt,rr+=u*Nt,u=O[11],Qe+=u*lt,at+=u*it,ze+=u*ft,et+=u*pt,Le+=u*ct,Ve+=u*st,ht+=u*Ct,Me+=u*Ot,At+=u*dt,$t+=u*Rt,kt+=u*gt,Ht+=u*wt,Ut+=u*vt,Wt+=u*Xe,rr+=u*Tt,Mr+=u*Nt,u=O[12],at+=u*lt,ze+=u*it,et+=u*ft,Le+=u*pt,Ve+=u*ct,ht+=u*st,Me+=u*Ct,At+=u*Ot,$t+=u*dt,kt+=u*Rt,Ht+=u*gt,Ut+=u*wt,Wt+=u*vt,rr+=u*Xe,Mr+=u*Tt,Jt+=u*Nt,u=O[13],ze+=u*lt,et+=u*it,Le+=u*ft,Ve+=u*pt,ht+=u*ct,Me+=u*st,At+=u*Ct,$t+=u*Ot,kt+=u*dt,Ht+=u*Rt,Ut+=u*gt,Wt+=u*wt,rr+=u*vt,Mr+=u*Xe,Jt+=u*Tt,Kr+=u*Nt,u=O[14],et+=u*lt,Le+=u*it,Ve+=u*ft,ht+=u*pt,Me+=u*ct,At+=u*st,$t+=u*Ct,kt+=u*Ot,Ht+=u*dt,Ut+=u*Rt,Wt+=u*gt,rr+=u*wt,Mr+=u*vt,Jt+=u*Xe,Kr+=u*Tt,ai+=u*Nt,u=O[15],Le+=u*lt,Ve+=u*it,ht+=u*ft,Me+=u*pt,At+=u*ct,$t+=u*st,kt+=u*Ct,Ht+=u*Ot,Ut+=u*dt,Wt+=u*Rt,rr+=u*gt,Mr+=u*wt,Jt+=u*vt,Kr+=u*Xe,ai+=u*Tt,Ii+=u*Nt,ee+=38*Ve,fe+=38*ht,we+=38*Me,Ne+=38*At,De+=38*$t,Pe+=38*kt,Pt+=38*Ht,_t+=38*Ut,ot+=38*Wt,$e+=38*rr,Ze+=38*Mr,Qe+=38*Jt,at+=38*Kr,ze+=38*ai,et+=38*Ii,b=1,u=ee+b+65535,b=Math.floor(u/65536),ee=u-b*65536,u=fe+b+65535,b=Math.floor(u/65536),fe=u-b*65536,u=we+b+65535,b=Math.floor(u/65536),we=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,u=De+b+65535,b=Math.floor(u/65536),De=u-b*65536,u=Pe+b+65535,b=Math.floor(u/65536),Pe=u-b*65536,u=Pt+b+65535,b=Math.floor(u/65536),Pt=u-b*65536,u=_t+b+65535,b=Math.floor(u/65536),_t=u-b*65536,u=ot+b+65535,b=Math.floor(u/65536),ot=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=Ze+b+65535,b=Math.floor(u/65536),Ze=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=ze+b+65535,b=Math.floor(u/65536),ze=u-b*65536,u=et+b+65535,b=Math.floor(u/65536),et=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,ee+=b-1+37*(b-1),b=1,u=ee+b+65535,b=Math.floor(u/65536),ee=u-b*65536,u=fe+b+65535,b=Math.floor(u/65536),fe=u-b*65536,u=we+b+65535,b=Math.floor(u/65536),we=u-b*65536,u=Ne+b+65535,b=Math.floor(u/65536),Ne=u-b*65536,u=De+b+65535,b=Math.floor(u/65536),De=u-b*65536,u=Pe+b+65535,b=Math.floor(u/65536),Pe=u-b*65536,u=Pt+b+65535,b=Math.floor(u/65536),Pt=u-b*65536,u=_t+b+65535,b=Math.floor(u/65536),_t=u-b*65536,u=ot+b+65535,b=Math.floor(u/65536),ot=u-b*65536,u=$e+b+65535,b=Math.floor(u/65536),$e=u-b*65536,u=Ze+b+65535,b=Math.floor(u/65536),Ze=u-b*65536,u=Qe+b+65535,b=Math.floor(u/65536),Qe=u-b*65536,u=at+b+65535,b=Math.floor(u/65536),at=u-b*65536,u=ze+b+65535,b=Math.floor(u/65536),ze=u-b*65536,u=et+b+65535,b=Math.floor(u/65536),et=u-b*65536,u=Le+b+65535,b=Math.floor(u/65536),Le=u-b*65536,ee+=b-1+37*(b-1),R[0]=ee,R[1]=fe,R[2]=we,R[3]=Ne,R[4]=De,R[5]=Pe,R[6]=Pt,R[7]=_t,R[8]=ot,R[9]=$e,R[10]=Ze,R[11]=Qe,R[12]=at,R[13]=ze,R[14]=et,R[15]=Le}function B(R,O){M(R,O,O)}function ve(R,O){const P=o();let u;for(u=0;u<16;u++)P[u]=O[u];for(u=253;u>=0;u--)B(P,P),u!==2&&u!==4&&M(P,P,O);for(u=0;u<16;u++)R[u]=P[u]}function re(R,O){const P=o();let u;for(u=0;u<16;u++)P[u]=O[u];for(u=250;u>=0;u--)B(P,P),u!==1&&M(P,P,O);for(u=0;u<16;u++)R[u]=P[u]}function ue(R,O){const P=o(),u=o(),b=o(),ee=o(),fe=o(),we=o(),Ne=o(),De=o(),Pe=o();T(P,R[1],R[0]),T(Pe,O[1],O[0]),M(P,P,Pe),le(u,R[0],R[1]),le(Pe,O[0],O[1]),M(u,u,Pe),M(b,R[3],O[3]),M(b,b,A),M(ee,R[2],O[2]),le(ee,ee,ee),T(fe,u,P),T(we,ee,b),le(Ne,ee,b),le(De,u,P),M(R[0],fe,we),M(R[1],De,Ne),M(R[2],Ne,we),M(R[3],fe,De)}function Te(R,O,P){for(let u=0;u<4;u++)V(R[u],O[u],P)}function qe(R,O){const P=o(),u=o(),b=o();ve(b,O[2]),M(P,O[0],b),M(u,O[1],b),ie(R,u),R[31]^=pe(P)<<7}function v(R,O,P){G(R[0],d),G(R[1],y),G(R[2],y),G(R[3],d);for(let u=255;u>=0;--u){const b=P[u/8|0]>>(u&7)&1;Te(R,O,b),ue(O,R),ue(R,R),Te(R,O,b)}}function E(R,O){const P=[o(),o(),o(),o()];G(P[0],F),G(P[1],K),G(P[2],y),M(P[3],F,K),v(R,P,O)}function X(R){if(R.length!==c.SEED_LENGTH)throw new Error(`ed25519: seed must be ${c.SEED_LENGTH} bytes`);const O=(0,r.hash)(R);O[0]&=248,O[31]&=127,O[31]|=64;const P=new Uint8Array(32),u=[o(),o(),o(),o()];E(u,O),qe(P,u);const b=new Uint8Array(64);return b.set(R),b.set(P,32),{publicKey:P,secretKey:b}}c.generateKeyPairFromSeed=X;function ce(R){const O=(0,i.randomBytes)(32,R),P=X(O);return(0,n.wipe)(O),P}c.generateKeyPair=ce;function k(R){if(R.length!==c.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${c.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(R.subarray(32))}c.extractPublicKeyFromSecretKey=k;const U=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function z(R,O){let P,u,b,ee;for(u=63;u>=32;--u){for(P=0,b=u-32,ee=u-12;b<ee;++b)O[b]+=P-16*O[u]*U[b-(u-32)],P=Math.floor((O[b]+128)/256),O[b]-=P*256;O[b]+=P,O[u]=0}for(P=0,b=0;b<32;b++)O[b]+=P-(O[31]>>4)*U[b],P=O[b]>>8,O[b]&=255;for(b=0;b<32;b++)O[b]-=P*U[b];for(u=0;u<32;u++)O[u+1]+=O[u]>>8,R[u]=O[u]&255}function H(R){const O=new Float64Array(64);for(let P=0;P<64;P++)O[P]=R[P];for(let P=0;P<64;P++)R[P]=0;z(R,O)}function Ye(R,O){const P=new Float64Array(64),u=[o(),o(),o(),o()],b=(0,r.hash)(R.subarray(0,32));b[0]&=248,b[31]&=127,b[31]|=64;const ee=new Uint8Array(64);ee.set(b.subarray(32),32);const fe=new r.SHA512;fe.update(ee.subarray(32)),fe.update(O);const we=fe.digest();fe.clean(),H(we),E(u,we),qe(ee,u),fe.reset(),fe.update(ee.subarray(0,32)),fe.update(R.subarray(32)),fe.update(O);const Ne=fe.digest();H(Ne);for(let De=0;De<32;De++)P[De]=we[De];for(let De=0;De<32;De++)for(let Pe=0;Pe<32;Pe++)P[De+Pe]+=Ne[De]*b[Pe];return z(ee.subarray(32),P),ee}c.sign=Ye;function Be(R,O){const P=o(),u=o(),b=o(),ee=o(),fe=o(),we=o(),Ne=o();return G(R[2],y),he(R[1],O),B(b,R[1]),M(ee,b,w),T(b,b,R[2]),le(ee,R[2],ee),B(fe,ee),B(we,fe),M(Ne,we,fe),M(P,Ne,b),M(P,P,ee),re(P,P),M(P,P,b),M(P,P,ee),M(P,P,ee),M(R[0],P,ee),B(u,R[0]),M(u,u,ee),ge(u,b)&&M(R[0],R[0],J),B(u,R[0]),M(u,u,ee),ge(u,b)?-1:(pe(R[0])===O[31]>>7&&T(R[0],d,R[0]),M(R[3],R[0],R[1]),0)}function jr(R,O,P){const u=new Uint8Array(32),b=[o(),o(),o(),o()],ee=[o(),o(),o(),o()];if(P.length!==c.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${c.SIGNATURE_LENGTH} bytes`);if(Be(ee,R))return!1;const fe=new r.SHA512;fe.update(P.subarray(0,32)),fe.update(R),fe.update(O);const we=fe.digest();return H(we),v(b,ee,we),E(ee,P.subarray(32)),ue(b,ee),qe(u,b),!Ee(P,u)}c.verify=jr;function xe(R){let O=[o(),o(),o(),o()];if(Be(O,R))throw new Error("Ed25519: invalid public key");let P=o(),u=o(),b=O[1];le(P,y,b),T(u,y,b),ve(u,u),M(P,P,u);let ee=new Uint8Array(32);return ie(ee,P),ee}c.convertPublicKeyToX25519=xe;function St(R){const O=(0,r.hash)(R.subarray(0,32));O[0]&=248,O[31]&=127,O[31]|=64;const P=new Uint8Array(O.subarray(0,32));return(0,n.wipe)(O),P}c.convertSecretKeyToX25519=St})(wc);const $m="EdDSA",jm="JWT",of=".",af="base64url",Mm="utf8",Um="utf8",qm=":",zm="did",km="key",Jh="base58btc",Hm="z",Bm="K36",Vm=32;function co(c){return lo(vc(Ks(c),Mm),af)}function cf(c){const i=vc(Bm,Jh),r=Hm+lo(v1([i,c]),Jh);return[zm,km,r].join(qm)}function Km(c){return lo(c,af)}function Gm(c){return vc([co(c.header),co(c.payload)].join(of),Um)}function Wm(c){return[co(c.header),co(c.payload),Km(c.signature)].join(of)}function Yh(c=Ul.randomBytes(Vm)){return wc.generateKeyPairFromSeed(c)}async function Jm(c,i,r,n,o=ne.fromMiliseconds(Date.now())){const l={alg:$m,typ:jm},d=cf(n.publicKey),y=o+r,w={iss:d,sub:c,aud:i,iat:o,exp:y},A=Gm({header:l,payload:w}),F=wc.sign(n.secretKey,A);return Wm({header:l,payload:w,signature:F})}const Ym="PARSE_ERROR",Xm="INVALID_REQUEST",Zm="METHOD_NOT_FOUND",Qm="INVALID_PARAMS",uf="INTERNAL_ERROR",bc="SERVER_ERROR",e_=[-32700,-32600,-32601,-32602,-32603],Vs={[Ym]:{code:-32700,message:"Parse error"},[Xm]:{code:-32600,message:"Invalid Request"},[Zm]:{code:-32601,message:"Method not found"},[Qm]:{code:-32602,message:"Invalid params"},[uf]:{code:-32603,message:"Internal error"},[bc]:{code:-32e3,message:"Server error"}},hf=bc;function t_(c){return e_.includes(c)}function Xh(c){return Object.keys(Vs).includes(c)?Vs[c]:Vs[hf]}function r_(c){const i=Object.values(Vs).find(r=>r.code===c);return i||Vs[hf]}function lf(c,i,r){return c.message.includes("getaddrinfo ENOTFOUND")||c.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${i}`):c}var ff={},si={},Zh;function i_(){if(Zh)return si;Zh=1,Object.defineProperty(si,"__esModule",{value:!0}),si.isBrowserCryptoAvailable=si.getSubtleCrypto=si.getBrowerCrypto=void 0;function c(){return(ur===null||ur===void 0?void 0:ur.crypto)||(ur===null||ur===void 0?void 0:ur.msCrypto)||{}}si.getBrowerCrypto=c;function i(){const n=c();return n.subtle||n.webkitSubtle}si.getSubtleCrypto=i;function r(){return!!c()&&!!i()}return si.isBrowserCryptoAvailable=r,si}var ni={},Qh;function s_(){if(Qh)return ni;Qh=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.isBrowser=ni.isNode=ni.isReactNative=void 0;function c(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}ni.isReactNative=c;function i(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}ni.isNode=i;function r(){return!c()&&!i()}return ni.isBrowser=r,ni}(function(c){Object.defineProperty(c,"__esModule",{value:!0});const i=bi;i.__exportStar(i_(),c),i.__exportStar(s_(),c)})(ff);function pf(c=3){const i=Date.now()*Math.pow(10,c),r=Math.floor(Math.random()*Math.pow(10,c));return i+r}function Ec(c=6){return BigInt(pf(c))}function go(c,i,r){return{id:r||pf(),jsonrpc:"2.0",method:c,params:i}}function xc(c,i){return{id:c,jsonrpc:"2.0",result:i}}function vo(c,i,r){return{id:c,jsonrpc:"2.0",error:n_(i,r)}}function n_(c,i){return typeof c>"u"?Xh(uf):(typeof c=="string"&&(c=Object.assign(Object.assign({},Xh(bc)),{message:c})),typeof i<"u"&&(c.data=i),t_(c.code)&&(c=r_(c.code)),c)}class o_{}class a_ extends o_{constructor(){super()}}class c_ extends a_{constructor(i){super()}}const u_="^https?:",h_="^wss?:";function l_(c){const i=c.match(new RegExp(/^\w+:/,"gi"));if(!(!i||!i.length))return i[0]}function df(c,i){const r=l_(c);return typeof r>"u"?!1:new RegExp(i).test(r)}function el(c){return df(c,u_)}function tl(c){return df(c,h_)}function f_(c){return new RegExp("wss?://localhost(:d{2,5})?").test(c)}function gf(c){return typeof c=="object"&&"id"in c&&"jsonrpc"in c&&c.jsonrpc==="2.0"}function Ic(c){return gf(c)&&"method"in c}function yo(c){return gf(c)&&(oi(c)||$r(c))}function oi(c){return"result"in c}function $r(c){return"error"in c}class Ei extends c_{constructor(i){super(i),this.events=new vr.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(i),this.connection.connected&&this.registerEventListeners()}async connect(i=this.connection){await this.open(i)}async disconnect(){await this.close()}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async request(i,r){return this.requestStrict(go(i.method,i.params||[],i.id||Ec().toString()),r)}async requestStrict(i,r){return new Promise(async(n,o)=>{if(!this.connection.connected)try{await this.open()}catch(l){o(l)}this.events.on(`${i.id}`,l=>{$r(l)?o(l.error):n(l.result)});try{await this.connection.send(i,r)}catch(l){o(l)}})}setConnection(i=this.connection){return i}onPayload(i){this.events.emit("payload",i),yo(i)?this.events.emit(`${i.id}`,i):this.events.emit("message",{type:i.method,data:i.params})}onClose(i){i&&i.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${i.code} ${i.reason?`(${i.reason})`:""}`)),this.events.emit("disconnect")}async open(i=this.connection){this.connection===i&&this.connection.connected||(this.connection.connected&&this.close(),typeof i=="string"&&(await this.connection.open(i),i=this.connection),this.connection=this.setConnection(i),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",i=>this.onPayload(i)),this.connection.on("close",i=>this.onClose(i)),this.connection.on("error",i=>this.events.emit("error",i)),this.connection.on("register_error",i=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const p_=()=>typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:require("ws"),d_=()=>typeof window<"u",rl=c=>c.split("?")[0],il=10,g_=p_();class v_{constructor(i){if(this.url=i,this.events=new vr.EventEmitter,this.registering=!1,!tl(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);this.url=i}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async open(i=this.url){await this.register(i)}async close(){return new Promise((i,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),i()},this.socket.close()})}async send(i,r){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Ks(i))}catch(n){this.onError(i.id,n)}}register(i=this.url){if(!tl(i))throw new Error(`Provided URL is not compatible with WebSocket connection: ${i}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,o)=>{this.events.once("register_error",l=>{this.resetMaxListeners(),o(l)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return o(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=i,this.registering=!0,new Promise((r,n)=>{const o=ff.isReactNative()?void 0:{rejectUnauthorized:!f_(i)},l=new g_(i,[],o);d_()?l.onerror=d=>{const y=d;n(this.emitError(y.error))}:l.on("error",d=>{n(this.emitError(d))}),l.onopen=()=>{this.onOpen(l),r(l)}})}onOpen(i){i.onmessage=r=>this.onPayload(r),i.onclose=r=>this.onClose(r),this.socket=i,this.registering=!1,this.events.emit("open")}onClose(i){this.socket=void 0,this.registering=!1,this.events.emit("close",i)}onPayload(i){if(typeof i.data>"u")return;const r=typeof i.data=="string"?_c(i.data):i.data;this.events.emit("payload",r)}onError(i,r){const n=this.parseError(r),o=n.message||n.toString(),l=vo(i,o);this.events.emit("payload",l)}parseError(i,r=this.url){return lf(i,rl(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>il&&this.events.setMaxListeners(il)}emitError(i){const r=this.parseError(new Error(i?.message||`WebSocket connection failed for host: ${rl(this.url)}`));return this.events.emit("register_error",r),r}}var uo={exports:{}};uo.exports;(function(c,i){var r=200,n="__lodash_hash_undefined__",o=1,l=2,d=9007199254740991,y="[object Arguments]",w="[object Array]",A="[object AsyncFunction]",F="[object Boolean]",K="[object Date]",J="[object Error]",G="[object Function]",j="[object GeneratorFunction]",V="[object Map]",ie="[object Number]",Ee="[object Null]",ge="[object Object]",pe="[object Promise]",he="[object Proxy]",le="[object RegExp]",T="[object Set]",M="[object String]",B="[object Symbol]",ve="[object Undefined]",re="[object WeakMap]",ue="[object ArrayBuffer]",Te="[object DataView]",qe="[object Float32Array]",v="[object Float64Array]",E="[object Int8Array]",X="[object Int16Array]",ce="[object Int32Array]",k="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",H="[object Uint32Array]",Ye=/[\\^$.*+?()[\]{}|]/g,Be=/^\[object .+?Constructor\]$/,jr=/^(?:0|[1-9]\d*)$/,xe={};xe[qe]=xe[v]=xe[E]=xe[X]=xe[ce]=xe[k]=xe[U]=xe[z]=xe[H]=!0,xe[y]=xe[w]=xe[ue]=xe[F]=xe[Te]=xe[K]=xe[J]=xe[G]=xe[V]=xe[ie]=xe[ge]=xe[le]=xe[T]=xe[M]=xe[re]=!1;var St=typeof ur=="object"&&ur&&ur.Object===Object&&ur,R=typeof self=="object"&&self&&self.Object===Object&&self,O=St||R||Function("return this")(),P=i&&!i.nodeType&&i,u=P&&!0&&c&&!c.nodeType&&c,b=u&&u.exports===P,ee=b&&St.process,fe=function(){try{return ee&&ee.binding&&ee.binding("util")}catch{}}(),we=fe&&fe.isTypedArray;function Ne(g,x){for(var $=-1,Y=g==null?0:g.length,Ge=0,ye=[];++$<Y;){var tt=g[$];x(tt,$,g)&&(ye[Ge++]=tt)}return ye}function De(g,x){for(var $=-1,Y=x.length,Ge=g.length;++$<Y;)g[Ge+$]=x[$];return g}function Pe(g,x){for(var $=-1,Y=g==null?0:g.length;++$<Y;)if(x(g[$],$,g))return!0;return!1}function Pt(g,x){for(var $=-1,Y=Array(g);++$<g;)Y[$]=x($);return Y}function _t(g){return function(x){return g(x)}}function ot(g,x){return g.has(x)}function $e(g,x){return g?.[x]}function Ze(g){var x=-1,$=Array(g.size);return g.forEach(function(Y,Ge){$[++x]=[Ge,Y]}),$}function Qe(g,x){return function($){return g(x($))}}function at(g){var x=-1,$=Array(g.size);return g.forEach(function(Y){$[++x]=Y}),$}var ze=Array.prototype,et=Function.prototype,Le=Object.prototype,Ve=O["__core-js_shared__"],ht=et.toString,Me=Le.hasOwnProperty,At=function(){var g=/[^.]+$/.exec(Ve&&Ve.keys&&Ve.keys.IE_PROTO||"");return g?"Symbol(src)_1."+g:""}(),$t=Le.toString,kt=RegExp("^"+ht.call(Me).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=b?O.Buffer:void 0,Ut=O.Symbol,Wt=O.Uint8Array,rr=Le.propertyIsEnumerable,Mr=ze.splice,Jt=Ut?Ut.toStringTag:void 0,Kr=Object.getOwnPropertySymbols,ai=Ht?Ht.isBuffer:void 0,Ii=Qe(Object.keys,Object),lt=hr(O,"DataView"),it=hr(O,"Map"),ft=hr(O,"Promise"),pt=hr(O,"Set"),ct=hr(O,"WeakMap"),st=hr(Object,"create"),Ct=Wr(lt),Ot=Wr(it),dt=Wr(ft),Rt=Wr(pt),gt=Wr(ct),wt=Ut?Ut.prototype:void 0,vt=wt?wt.valueOf:void 0;function Xe(g){var x=-1,$=g==null?0:g.length;for(this.clear();++x<$;){var Y=g[x];this.set(Y[0],Y[1])}}function Tt(){this.__data__=st?st(null):{},this.size=0}function Nt(g){var x=this.has(g)&&delete this.__data__[g];return this.size-=x?1:0,x}function wo(g){var x=this.__data__;if(st){var $=x[g];return $===n?void 0:$}return Me.call(x,g)?x[g]:void 0}function bo(g){var x=this.__data__;return st?x[g]!==void 0:Me.call(x,g)}function Eo(g,x){var $=this.__data__;return this.size+=this.has(g)?0:1,$[g]=st&&x===void 0?n:x,this}Xe.prototype.clear=Tt,Xe.prototype.delete=Nt,Xe.prototype.get=wo,Xe.prototype.has=bo,Xe.prototype.set=Eo;function yr(g){var x=-1,$=g==null?0:g.length;for(this.clear();++x<$;){var Y=g[x];this.set(Y[0],Y[1])}}function xo(){this.__data__=[],this.size=0}function Io(g){var x=this.__data__,$=Si(x,g);if($<0)return!1;var Y=x.length-1;return $==Y?x.pop():Mr.call(x,$,1),--this.size,!0}function So(g){var x=this.__data__,$=Si(x,g);return $<0?void 0:x[$][1]}function Po(g){return Si(this.__data__,g)>-1}function Ao(g,x){var $=this.__data__,Y=Si($,g);return Y<0?(++this.size,$.push([g,x])):$[Y][1]=x,this}yr.prototype.clear=xo,yr.prototype.delete=Io,yr.prototype.get=So,yr.prototype.has=Po,yr.prototype.set=Ao;function Gr(g){var x=-1,$=g==null?0:g.length;for(this.clear();++x<$;){var Y=g[x];this.set(Y[0],Y[1])}}function ki(){this.size=0,this.__data__={hash:new Xe,map:new(it||yr),string:new Xe}}function Co(g){var x=ci(this,g).delete(g);return this.size-=x?1:0,x}function Hi(g){return ci(this,g).get(g)}function Oo(g){return ci(this,g).has(g)}function Ro(g,x){var $=ci(this,g),Y=$.size;return $.set(g,x),this.size+=$.size==Y?0:1,this}Gr.prototype.clear=ki,Gr.prototype.delete=Co,Gr.prototype.get=Hi,Gr.prototype.has=Oo,Gr.prototype.set=Ro;function Bi(g){var x=-1,$=g==null?0:g.length;for(this.__data__=new Gr;++x<$;)this.add(g[x])}function Js(g){return this.__data__.set(g,n),this}function Ys(g){return this.__data__.has(g)}Bi.prototype.add=Bi.prototype.push=Js,Bi.prototype.has=Ys;function Or(g){var x=this.__data__=new yr(g);this.size=x.size}function To(){this.__data__=new yr,this.size=0}function No(g){var x=this.__data__,$=x.delete(g);return this.size=x.size,$}function Lo(g){return this.__data__.get(g)}function Do(g){return this.__data__.has(g)}function Xs(g,x){var $=this.__data__;if($ instanceof yr){var Y=$.__data__;if(!it||Y.length<r-1)return Y.push([g,x]),this.size=++$.size,this;$=this.__data__=new Gr(Y)}return $.set(g,x),this.size=$.size,this}Or.prototype.clear=To,Or.prototype.delete=No,Or.prototype.get=Lo,Or.prototype.has=Do,Or.prototype.set=Xs;function Zs(g,x){var $=Gi(g),Y=!$&&ln(g),Ge=!$&&!Y&&ys(g),ye=!$&&!Y&&!Ge&&dn(g),tt=$||Y||Ge||ye,Lt=tt?Pt(g.length,String):[],Ce=Lt.length;for(var We in g)(x||Me.call(g,We))&&!(tt&&(We=="length"||Ge&&(We=="offset"||We=="parent")||ye&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||on(We,Ce)))&&Lt.push(We);return Lt}function Si(g,x){for(var $=g.length;$--;)if(hn(g[$][0],x))return $;return-1}function gs(g,x,$){var Y=x(g);return Gi(g)?Y:De(Y,$(g))}function Pi(g){return g==null?g===void 0?ve:Ee:Jt&&Jt in Object(g)?sn(g):jo(g)}function vs(g){return Ci(g)&&Pi(g)==y}function Ai(g,x,$,Y,Ge){return g===x?!0:g==null||x==null||!Ci(g)&&!Ci(x)?g!==g&&x!==x:Qs(g,x,$,Y,Ai,Ge)}function Qs(g,x,$,Y,Ge,ye){var tt=Gi(g),Lt=Gi(x),Ce=tt?w:Ur(g),We=Lt?w:Ur(x);Ce=Ce==y?ge:Ce,We=We==y?ge:We;var bt=Ce==ge,ir=We==ge,Dt=Ce==We;if(Dt&&ys(g)){if(!ys(x))return!1;tt=!0,bt=!1}if(Dt&&!bt)return ye||(ye=new Or),tt||dn(g)?Vi(g,x,$,Y,Ge,ye):$o(g,x,Ce,$,Y,Ge,ye);if(!($&o)){var rt=bt&&Me.call(g,"__wrapped__"),Yt=ir&&Me.call(x,"__wrapped__");if(rt||Yt){var Rr=rt?g.value():g,mr=Yt?x.value():x;return ye||(ye=new Or),Ge(Rr,mr,$,Y,ye)}}return Dt?(ye||(ye=new Or),rn(g,x,$,Y,Ge,ye)):!1}function Fo(g){if(!pn(g)||cn(g))return!1;var x=Wi(g)?kt:Be;return x.test(Wr(g))}function en(g){return Ci(g)&&fn(g.length)&&!!xe[Pi(g)]}function tn(g){if(!un(g))return Ii(g);var x=[];for(var $ in Object(g))Me.call(g,$)&&$!="constructor"&&x.push($);return x}function Vi(g,x,$,Y,Ge,ye){var tt=$&o,Lt=g.length,Ce=x.length;if(Lt!=Ce&&!(tt&&Ce>Lt))return!1;var We=ye.get(g);if(We&&ye.get(x))return We==x;var bt=-1,ir=!0,Dt=$&l?new Bi:void 0;for(ye.set(g,x),ye.set(x,g);++bt<Lt;){var rt=g[bt],Yt=x[bt];if(Y)var Rr=tt?Y(Yt,rt,bt,x,g,ye):Y(rt,Yt,bt,g,x,ye);if(Rr!==void 0){if(Rr)continue;ir=!1;break}if(Dt){if(!Pe(x,function(mr,qr){if(!ot(Dt,qr)&&(rt===mr||Ge(rt,mr,$,Y,ye)))return Dt.push(qr)})){ir=!1;break}}else if(!(rt===Yt||Ge(rt,Yt,$,Y,ye))){ir=!1;break}}return ye.delete(g),ye.delete(x),ir}function $o(g,x,$,Y,Ge,ye,tt){switch($){case Te:if(g.byteLength!=x.byteLength||g.byteOffset!=x.byteOffset)return!1;g=g.buffer,x=x.buffer;case ue:return!(g.byteLength!=x.byteLength||!ye(new Wt(g),new Wt(x)));case F:case K:case ie:return hn(+g,+x);case J:return g.name==x.name&&g.message==x.message;case le:case M:return g==x+"";case V:var Lt=Ze;case T:var Ce=Y&o;if(Lt||(Lt=at),g.size!=x.size&&!Ce)return!1;var We=tt.get(g);if(We)return We==x;Y|=l,tt.set(g,x);var bt=Vi(Lt(g),Lt(x),Y,Ge,ye,tt);return tt.delete(g),bt;case B:if(vt)return vt.call(g)==vt.call(x)}return!1}function rn(g,x,$,Y,Ge,ye){var tt=$&o,Lt=Ki(g),Ce=Lt.length,We=Ki(x),bt=We.length;if(Ce!=bt&&!tt)return!1;for(var ir=Ce;ir--;){var Dt=Lt[ir];if(!(tt?Dt in x:Me.call(x,Dt)))return!1}var rt=ye.get(g);if(rt&&ye.get(x))return rt==x;var Yt=!0;ye.set(g,x),ye.set(x,g);for(var Rr=tt;++ir<Ce;){Dt=Lt[ir];var mr=g[Dt],qr=x[Dt];if(Y)var ms=tt?Y(qr,mr,Dt,x,g,ye):Y(mr,qr,Dt,g,x,ye);if(!(ms===void 0?mr===qr||Ge(mr,qr,$,Y,ye):ms)){Yt=!1;break}Rr||(Rr=Dt=="constructor")}if(Yt&&!Rr){var Oi=g.constructor,qt=x.constructor;Oi!=qt&&"constructor"in g&&"constructor"in x&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof qt=="function"&&qt instanceof qt)&&(Yt=!1)}return ye.delete(g),ye.delete(x),Yt}function Ki(g){return gs(g,qo,nn)}function ci(g,x){var $=g.__data__;return an(x)?$[typeof x=="string"?"string":"hash"]:$.map}function hr(g,x){var $=$e(g,x);return Fo($)?$:void 0}function sn(g){var x=Me.call(g,Jt),$=g[Jt];try{g[Jt]=void 0;var Y=!0}catch{}var Ge=$t.call(g);return Y&&(x?g[Jt]=$:delete g[Jt]),Ge}var nn=Kr?function(g){return g==null?[]:(g=Object(g),Ne(Kr(g),function(x){return rr.call(g,x)}))}:Ke,Ur=Pi;(lt&&Ur(new lt(new ArrayBuffer(1)))!=Te||it&&Ur(new it)!=V||ft&&Ur(ft.resolve())!=pe||pt&&Ur(new pt)!=T||ct&&Ur(new ct)!=re)&&(Ur=function(g){var x=Pi(g),$=x==ge?g.constructor:void 0,Y=$?Wr($):"";if(Y)switch(Y){case Ct:return Te;case Ot:return V;case dt:return pe;case Rt:return T;case gt:return re}return x});function on(g,x){return x=x??d,!!x&&(typeof g=="number"||jr.test(g))&&g>-1&&g%1==0&&g<x}function an(g){var x=typeof g;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?g!=="__proto__":g===null}function cn(g){return!!At&&At in g}function un(g){var x=g&&g.constructor,$=typeof x=="function"&&x.prototype||Le;return g===$}function jo(g){return $t.call(g)}function Wr(g){if(g!=null){try{return ht.call(g)}catch{}try{return g+""}catch{}}return""}function hn(g,x){return g===x||g!==g&&x!==x}var ln=vs(function(){return arguments}())?vs:function(g){return Ci(g)&&Me.call(g,"callee")&&!rr.call(g,"callee")},Gi=Array.isArray;function Mo(g){return g!=null&&fn(g.length)&&!Wi(g)}var ys=ai||ke;function Uo(g,x){return Ai(g,x)}function Wi(g){if(!pn(g))return!1;var x=Pi(g);return x==G||x==j||x==A||x==he}function fn(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=d}function pn(g){var x=typeof g;return g!=null&&(x=="object"||x=="function")}function Ci(g){return g!=null&&typeof g=="object"}var dn=we?_t(we):en;function qo(g){return Mo(g)?Zs(g):tn(g)}function Ke(){return[]}function ke(){return!1}c.exports=Uo})(uo,uo.exports);var y_=uo.exports;const m_=gc(y_);function __(c,i){if(c.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<c.length;o++){var l=c.charAt(o),d=l.charCodeAt(0);if(r[d]!==255)throw new TypeError(l+" is ambiguous");r[d]=o}var y=c.length,w=c.charAt(0),A=Math.log(y)/Math.log(256),F=Math.log(256)/Math.log(y);function K(j){if(j instanceof Uint8Array||(ArrayBuffer.isView(j)?j=new Uint8Array(j.buffer,j.byteOffset,j.byteLength):Array.isArray(j)&&(j=Uint8Array.from(j))),!(j instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(j.length===0)return"";for(var V=0,ie=0,Ee=0,ge=j.length;Ee!==ge&&j[Ee]===0;)Ee++,V++;for(var pe=(ge-Ee)*F+1>>>0,he=new Uint8Array(pe);Ee!==ge;){for(var le=j[Ee],T=0,M=pe-1;(le!==0||T<ie)&&M!==-1;M--,T++)le+=256*he[M]>>>0,he[M]=le%y>>>0,le=le/y>>>0;if(le!==0)throw new Error("Non-zero carry");ie=T,Ee++}for(var B=pe-ie;B!==pe&&he[B]===0;)B++;for(var ve=w.repeat(V);B<pe;++B)ve+=c.charAt(he[B]);return ve}function J(j){if(typeof j!="string")throw new TypeError("Expected String");if(j.length===0)return new Uint8Array;var V=0;if(j[V]!==" "){for(var ie=0,Ee=0;j[V]===w;)ie++,V++;for(var ge=(j.length-V)*A+1>>>0,pe=new Uint8Array(ge);j[V];){var he=r[j.charCodeAt(V)];if(he===255)return;for(var le=0,T=ge-1;(he!==0||le<Ee)&&T!==-1;T--,le++)he+=y*pe[T]>>>0,pe[T]=he%256>>>0,he=he/256>>>0;if(he!==0)throw new Error("Non-zero carry");Ee=le,V++}if(j[V]!==" "){for(var M=ge-Ee;M!==ge&&pe[M]===0;)M++;for(var B=new Uint8Array(ie+(ge-M)),ve=ie;M!==ge;)B[ve++]=pe[M++];return B}}}function G(j){var V=J(j);if(V)return V;throw new Error(`Non-${i} character`)}return{encode:K,decodeUnsafe:J,decode:G}}var w_=__,b_=w_;const vf=c=>{if(c instanceof Uint8Array&&c.constructor.name==="Uint8Array")return c;if(c instanceof ArrayBuffer)return new Uint8Array(c);if(ArrayBuffer.isView(c))return new Uint8Array(c.buffer,c.byteOffset,c.byteLength);throw new Error("Unknown type, must be binary type")},E_=c=>new TextEncoder().encode(c),x_=c=>new TextDecoder().decode(c);class I_{constructor(i,r,n){this.name=i,this.prefix=r,this.baseEncode=n}encode(i){if(i instanceof Uint8Array)return`${this.prefix}${this.baseEncode(i)}`;throw Error("Unknown type, must be binary type")}}class S_{constructor(i,r,n){if(this.name=i,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(i){if(typeof i=="string"){if(i.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(i)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(i.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(i){return yf(this,i)}}class P_{constructor(i){this.decoders=i}or(i){return yf(this,i)}decode(i){const r=i[0],n=this.decoders[r];if(n)return n.decode(i);throw RangeError(`Unable to decode multibase string ${JSON.stringify(i)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const yf=(c,i)=>new P_({...c.decoders||{[c.prefix]:c},...i.decoders||{[i.prefix]:i}});class A_{constructor(i,r,n,o){this.name=i,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new I_(i,r,n),this.decoder=new S_(i,r,o)}encode(i){return this.encoder.encode(i)}decode(i){return this.decoder.decode(i)}}const mo=({name:c,prefix:i,encode:r,decode:n})=>new A_(c,i,r,n),Ws=({prefix:c,name:i,alphabet:r})=>{const{encode:n,decode:o}=b_(r,i);return mo({prefix:c,name:i,encode:n,decode:l=>vf(o(l))})},C_=(c,i,r,n)=>{const o={};for(let F=0;F<i.length;++F)o[i[F]]=F;let l=c.length;for(;c[l-1]==="=";)--l;const d=new Uint8Array(l*r/8|0);let y=0,w=0,A=0;for(let F=0;F<l;++F){const K=o[c[F]];if(K===void 0)throw new SyntaxError(`Non-${n} character`);w=w<<r|K,y+=r,y>=8&&(y-=8,d[A++]=255&w>>y)}if(y>=r||255&w<<8-y)throw new SyntaxError("Unexpected end of data");return d},O_=(c,i,r)=>{const n=i[i.length-1]==="=",o=(1<<r)-1;let l="",d=0,y=0;for(let w=0;w<c.length;++w)for(y=y<<8|c[w],d+=8;d>r;)d-=r,l+=i[o&y>>d];if(d&&(l+=i[o&y<<r-d]),n)for(;l.length*r&7;)l+="=";return l},Vt=({name:c,prefix:i,bitsPerChar:r,alphabet:n})=>mo({prefix:i,name:c,encode(o){return O_(o,n,r)},decode(o){return C_(o,n,r,c)}}),R_=mo({prefix:"\0",name:"identity",encode:c=>x_(c),decode:c=>E_(c)});var T_=Object.freeze({__proto__:null,identity:R_});const N_=Vt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var L_=Object.freeze({__proto__:null,base2:N_});const D_=Vt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var F_=Object.freeze({__proto__:null,base8:D_});const $_=Ws({prefix:"9",name:"base10",alphabet:"0123456789"});var j_=Object.freeze({__proto__:null,base10:$_});const M_=Vt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),U_=Vt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var q_=Object.freeze({__proto__:null,base16:M_,base16upper:U_});const z_=Vt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),k_=Vt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),H_=Vt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),B_=Vt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),V_=Vt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),K_=Vt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),G_=Vt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),W_=Vt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),J_=Vt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Y_=Object.freeze({__proto__:null,base32:z_,base32upper:k_,base32pad:H_,base32padupper:B_,base32hex:V_,base32hexupper:K_,base32hexpad:G_,base32hexpadupper:W_,base32z:J_});const X_=Ws({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Z_=Ws({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Q_=Object.freeze({__proto__:null,base36:X_,base36upper:Z_});const ew=Ws({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),tw=Ws({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var rw=Object.freeze({__proto__:null,base58btc:ew,base58flickr:tw});const iw=Vt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),sw=Vt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),nw=Vt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ow=Vt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var aw=Object.freeze({__proto__:null,base64:iw,base64pad:sw,base64url:nw,base64urlpad:ow});const mf=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),cw=mf.reduce((c,i,r)=>(c[r]=i,c),[]),uw=mf.reduce((c,i,r)=>(c[i.codePointAt(0)]=r,c),[]);function hw(c){return c.reduce((i,r)=>(i+=cw[r],i),"")}function lw(c){const i=[];for(const r of c){const n=uw[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);i.push(n)}return new Uint8Array(i)}const fw=mo({prefix:"🚀",name:"base256emoji",encode:hw,decode:lw});var pw=Object.freeze({__proto__:null,base256emoji:fw}),dw=_f,sl=128,gw=127,vw=~gw,yw=Math.pow(2,31);function _f(c,i,r){i=i||[],r=r||0;for(var n=r;c>=yw;)i[r++]=c&255|sl,c/=128;for(;c&vw;)i[r++]=c&255|sl,c>>>=7;return i[r]=c|0,_f.bytes=r-n+1,i}var mw=cc,_w=128,nl=127;function cc(c,n){var r=0,n=n||0,o=0,l=n,d,y=c.length;do{if(l>=y)throw cc.bytes=0,new RangeError("Could not decode varint");d=c[l++],r+=o<28?(d&nl)<<o:(d&nl)*Math.pow(2,o),o+=7}while(d>=_w);return cc.bytes=l-n,r}var ww=Math.pow(2,7),bw=Math.pow(2,14),Ew=Math.pow(2,21),xw=Math.pow(2,28),Iw=Math.pow(2,35),Sw=Math.pow(2,42),Pw=Math.pow(2,49),Aw=Math.pow(2,56),Cw=Math.pow(2,63),Ow=function(c){return c<ww?1:c<bw?2:c<Ew?3:c<xw?4:c<Iw?5:c<Sw?6:c<Pw?7:c<Aw?8:c<Cw?9:10},Rw={encode:dw,decode:mw,encodingLength:Ow},wf=Rw;const ol=(c,i,r=0)=>(wf.encode(c,i,r),i),al=c=>wf.encodingLength(c),uc=(c,i)=>{const r=i.byteLength,n=al(c),o=n+al(r),l=new Uint8Array(o+r);return ol(c,l,0),ol(r,l,n),l.set(i,o),new Tw(c,r,i,l)};class Tw{constructor(i,r,n,o){this.code=i,this.size=r,this.digest=n,this.bytes=o}}const bf=({name:c,code:i,encode:r})=>new Nw(c,i,r);class Nw{constructor(i,r,n){this.name=i,this.code=r,this.encode=n}digest(i){if(i instanceof Uint8Array){const r=this.encode(i);return r instanceof Uint8Array?uc(this.code,r):r.then(n=>uc(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ef=c=>async i=>new Uint8Array(await crypto.subtle.digest(c,i)),Lw=bf({name:"sha2-256",code:18,encode:Ef("SHA-256")}),Dw=bf({name:"sha2-512",code:19,encode:Ef("SHA-512")});var Fw=Object.freeze({__proto__:null,sha256:Lw,sha512:Dw});const xf=0,$w="identity",If=vf,jw=c=>uc(xf,If(c)),Mw={code:xf,name:$w,encode:If,digest:jw};var Uw=Object.freeze({__proto__:null,identity:Mw});new TextEncoder,new TextDecoder;const cl={...T_,...L_,...F_,...j_,...q_,...Y_,...Q_,...rw,...aw,...pw};({...Fw,...Uw});function Sf(c){return globalThis.Buffer!=null?new Uint8Array(c.buffer,c.byteOffset,c.byteLength):c}function qw(c=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Sf(globalThis.Buffer.allocUnsafe(c)):new Uint8Array(c)}function Pf(c,i,r,n){return{name:c,prefix:i,encoder:{name:c,prefix:i,encode:r},decoder:{decode:n}}}const ul=Pf("utf8","u",c=>"u"+new TextDecoder("utf8").decode(c),c=>new TextEncoder().encode(c.substring(1))),Xa=Pf("ascii","a",c=>{let i="a";for(let r=0;r<c.length;r++)i+=String.fromCharCode(c[r]);return i},c=>{c=c.substring(1);const i=qw(c.length);for(let r=0;r<c.length;r++)i[r]=c.charCodeAt(r);return i}),zw={utf8:ul,"utf-8":ul,hex:cl.base16,latin1:Xa,ascii:Xa,binary:Xa,...cl};function kw(c,i="utf8"){const r=zw[i];if(!r)throw new Error(`Unsupported encoding "${i}"`);return(i==="utf8"||i==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Sf(globalThis.Buffer.from(c,"utf-8")):r.decoder.decode(`${r.prefix}${c}`)}const Af="wc",Hw=2,Sc="core",wi=`${Af}@2:${Sc}:`,Bw={name:Sc,logger:"error"},Vw={database:":memory:"},Kw="crypto",hl="client_ed25519_seed",Gw=ne.ONE_DAY,Ww="keychain",Jw="0.3",Yw="messages",Xw="0.3",Zw=ne.SIX_HOURS,Qw="publisher",Cf="irn",eb="error",Of="wss://relay.walletconnect.com",ll="wss://relay.walletconnect.org",tb="relayer",mt={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},rb="_subscription",Us={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},ib=ne.ONE_SECOND/2,sb="2.9.0",nb=1e4,ob="0.3",ab="WALLETCONNECT_CLIENT_ID",Vr={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},cb="subscription",ub="0.3",hb=ne.FIVE_SECONDS*1e3,lb="pairing",fb="0.3",qs={wc_pairingDelete:{req:{ttl:ne.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:ne.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:ne.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:ne.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:ne.ONE_DAY,prompt:!1,tag:0},res:{ttl:ne.ONE_DAY,prompt:!1,tag:0}}},Br={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},pb="history",db="0.3",gb="expirer",Ar={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},vb="0.3",Za="verify-api",fl="https://verify.walletconnect.com";class yb{constructor(i,r){this.core=i,this.logger=r,this.keychain=new Map,this.name=Ww,this.version=Jw,this.initialized=!1,this.storagePrefix=wi,this.init=async()=>{if(!this.initialized){const n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,o)=>{this.isInitialized(),this.keychain.set(n,o),await this.persist()},this.get=n=>{this.isInitialized();const o=this.keychain.get(n);if(typeof o>"u"){const{message:l}=Q("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(l)}return o},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=i,this.logger=Re.generateChildLogger(r,this.name)}get context(){return Re.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(i){await this.core.storage.setItem(this.storageKey,Hl(i))}async getKeyChain(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?Bl(i):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}}class mb{constructor(i,r,n){this.core=i,this.logger=r,this.name=Kw,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=o=>(this.isInitialized(),this.keychain.has(o)),this.getClientId=async()=>{this.isInitialized();const o=await this.getClientSeed(),l=Yh(o);return cf(l.publicKey)},this.generateKeyPair=()=>{this.isInitialized();const o=_1();return this.setPrivateKey(o.publicKey,o.privateKey)},this.signJWT=async o=>{this.isInitialized();const l=await this.getClientSeed(),d=Yh(l),y=oc();return await Jm(y,o,Gw,d)},this.generateSharedKey=(o,l,d)=>{this.isInitialized();const y=this.getPrivateKey(o),w=w1(y,l);return this.setSymKey(w,d)},this.setSymKey=async(o,l)=>{this.isInitialized();const d=l||b1(o);return await this.keychain.set(d,o),d},this.deleteKeyPair=async o=>{this.isInitialized(),await this.keychain.del(o)},this.deleteSymKey=async o=>{this.isInitialized(),await this.keychain.del(o)},this.encode=async(o,l,d)=>{this.isInitialized();const y=E1(d),w=Ks(l);if(Oh(y)){const J=y.senderPublicKey,G=y.receiverPublicKey;o=await this.generateSharedKey(J,G)}const A=this.getSymKey(o),{type:F,senderPublicKey:K}=y;return x1({type:F,symKey:A,message:w,senderPublicKey:K})},this.decode=async(o,l,d)=>{this.isInitialized();const y=I1(l,d);if(Oh(y)){const F=y.receiverPublicKey,K=y.senderPublicKey;o=await this.generateSharedKey(F,K)}const w=this.getSymKey(o),A=S1({symKey:w,encoded:l});return _c(A)},this.getPayloadType=o=>{const l=Rh(o);return P1(l.type)},this.getPayloadSenderPublicKey=o=>{const l=Rh(o);return l.senderPublicKey?lo(l.senderPublicKey,A1):void 0},this.core=i,this.logger=Re.generateChildLogger(r,this.name),this.keychain=n||new yb(this.core,this.logger)}get context(){return Re.getLoggerContext(this.logger)}async setPrivateKey(i,r){return await this.keychain.set(i,r),i}getPrivateKey(i){return this.keychain.get(i)}async getClientSeed(){let i="";try{i=this.keychain.get(hl)}catch{i=oc(),await this.keychain.set(hl,i)}return kw(i,"base16")}getSymKey(i){return this.keychain.get(i)}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}}class _b extends Sm{constructor(i,r){super(i,r),this.logger=i,this.core=r,this.messages=new Map,this.name=Yw,this.version=Xw,this.initialized=!1,this.storagePrefix=wi,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,o)=>{this.isInitialized();const l=ls(o);let d=this.messages.get(n);return typeof d>"u"&&(d={}),typeof d[l]<"u"||(d[l]=o,this.messages.set(n,d),await this.persist()),l},this.get=n=>{this.isInitialized();let o=this.messages.get(n);return typeof o>"u"&&(o={}),o},this.has=(n,o)=>{this.isInitialized();const l=this.get(n),d=ls(o);return typeof l[d]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Re.generateChildLogger(i,this.name),this.core=r}get context(){return Re.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(i){await this.core.storage.setItem(this.storageKey,Hl(i))}async getRelayerMessages(){const i=await this.core.storage.getItem(this.storageKey);return typeof i<"u"?Bl(i):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}}class wb extends Pm{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.events=new vr.EventEmitter,this.name=Qw,this.queue=new Map,this.publishTimeout=ne.toMiliseconds(ne.TEN_SECONDS),this.queueTimeout=ne.toMiliseconds(ne.FIVE_SECONDS),this.needsTransportRestart=!1,this.publish=async(n,o,l)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:o,opts:l}});try{const d=l?.ttl||Zw,y=ac(l),w=l?.prompt||!1,A=l?.tag||0,F=l?.id||Ec().toString(),K={topic:n,message:o,opts:{ttl:d,relay:y,prompt:w,tag:A,id:F}},J=setTimeout(()=>this.queue.set(F,K),this.queueTimeout);try{await await ao(this.rpcPublish(n,o,d,y,w,A,F),this.publishTimeout),clearTimeout(J),this.relayer.events.emit(mt.publish,K)}catch{this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0;return}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:o,opts:l}})}catch(d){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(d),d}},this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.relayer=i,this.logger=Re.generateChildLogger(r,this.name),this.registerEventListeners()}get context(){return Re.getLoggerContext(this.logger)}rpcPublish(i,r,n,o,l,d,y){var w,A,F,K;const J={method:io(o.protocol).publish,params:{topic:i,message:r,ttl:n,prompt:l,tag:d},id:y};return _i((w=J.params)==null?void 0:w.prompt)&&((A=J.params)==null||delete A.prompt),_i((F=J.params)==null?void 0:F.tag)&&((K=J.params)==null||delete K.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:J}),this.relayer.request(J)}onPublish(i){this.queue.delete(i)}checkQueue(){this.queue.forEach(async i=>{const{topic:r,message:n,opts:o}=i;await this.publish(r,n,o)})}registerEventListeners(){this.relayer.core.heartbeat.on(ds.HEARTBEAT_EVENTS.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(mt.connection_stalled);return}this.checkQueue()}),this.relayer.on(mt.message_ack,i=>{this.onPublish(i.id.toString())})}}class bb{constructor(){this.map=new Map,this.set=(i,r)=>{const n=this.get(i);this.exists(i,r)||this.map.set(i,[...n,r])},this.get=i=>this.map.get(i)||[],this.exists=(i,r)=>this.get(i).includes(r),this.delete=(i,r)=>{if(typeof r>"u"){this.map.delete(i);return}if(!this.map.has(i))return;const n=this.get(i);if(!this.exists(i,r))return;const o=n.filter(l=>l!==r);if(!o.length){this.map.delete(i);return}this.map.set(i,o)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Eb=Object.defineProperty,xb=Object.defineProperties,Ib=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertySymbols,Sb=Object.prototype.hasOwnProperty,Pb=Object.prototype.propertyIsEnumerable,dl=(c,i,r)=>i in c?Eb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,zs=(c,i)=>{for(var r in i||(i={}))Sb.call(i,r)&&dl(c,r,i[r]);if(pl)for(var r of pl(i))Pb.call(i,r)&&dl(c,r,i[r]);return c},Qa=(c,i)=>xb(c,Ib(i));class Ab extends Om{constructor(i,r){super(i,r),this.relayer=i,this.logger=r,this.subscriptions=new Map,this.topicMap=new bb,this.events=new vr.EventEmitter,this.name=cb,this.version=ub,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=wi,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,o)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:o}});try{const l=ac(o),d={topic:n,relay:l};this.pending.set(n,d);const y=await this.rpcSubscribe(n,l);return this.onSubscribe(y,d),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:o}}),y}catch(l){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(l),l}},this.unsubscribe=async(n,o)=>{await this.restartToComplete(),this.isInitialized(),typeof o?.id<"u"?await this.unsubscribeById(n,o.id,o):await this.unsubscribeByTopic(n,o)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((o,l)=>{const d=new ne.Watch;d.start(this.pendingSubscriptionWatchLabel);const y=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),o(!0)),d.elapsed(this.pendingSubscriptionWatchLabel)>=hb&&(clearInterval(y),d.stop(this.pendingSubscriptionWatchLabel),l(new Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1),this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=i,this.logger=Re.generateChildLogger(r,this.name),this.clientId=""}get context(){return Re.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(i,r){let n=!1;try{n=this.getSubscription(i).topic===r}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(i,r){const n=this.topicMap.get(i);await Promise.all(n.map(async o=>await this.unsubscribeById(i,o,r)))}async unsubscribeById(i,r,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}});try{const o=ac(n);await this.rpcUnsubscribe(i,r,o);const l=tr("USER_DISCONNECTED",`${this.name}, ${i}`);await this.onUnsubscribe(i,r,l),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:i,id:r,opts:n}})}catch(o){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(o),o}}async rpcSubscribe(i,r){const n={method:io(r.protocol).subscribe,params:{topic:i}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await ao(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(mt.connection_stalled)}return ls(i+this.clientId)}async rpcBatchSubscribe(i){if(!i.length)return;const r=i[0].relay,n={method:io(r.protocol).batchSubscribe,params:{topics:i.map(o=>o.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await ao(this.relayer.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(mt.connection_stalled)}}rpcUnsubscribe(i,r,n){const o={method:io(n.protocol).unsubscribe,params:{topic:i,id:r}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:o}),this.relayer.request(o)}onSubscribe(i,r){this.setSubscription(i,Qa(zs({},r),{id:i})),this.pending.delete(r.topic)}onBatchSubscribe(i){i.length&&i.forEach(r=>{this.setSubscription(r.id,zs({},r)),this.pending.delete(r.topic)})}async onUnsubscribe(i,r,n){this.events.removeAllListeners(r),this.hasSubscription(r,i)&&this.deleteSubscription(r,n),await this.relayer.messages.del(i)}async setRelayerSubscriptions(i){await this.relayer.core.storage.setItem(this.storageKey,i)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(i,r){this.subscriptions.has(i)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:i,subscription:r}),this.addSubscription(i,r))}addSubscription(i,r){this.subscriptions.set(i,zs({},r)),this.topicMap.set(r.topic,i),this.events.emit(Vr.created,r)}getSubscription(i){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:i});const r=this.subscriptions.get(i);if(!r){const{message:n}=Q("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}deleteSubscription(i,r){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:i,reason:r});const n=this.getSubscription(i);this.subscriptions.delete(i),this.topicMap.delete(n.topic,i),this.events.emit(Vr.deleted,Qa(zs({},n),{reason:r}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(Vr.sync)}async reset(){if(this.cached.length){const i=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let r=0;r<i;r++){const n=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchSubscribe(n)}}this.events.emit(Vr.resubscribed)}async restore(){try{const i=await this.getRelayerSubscriptions();if(typeof i>"u"||!i.length)return;if(this.subscriptions.size){const{message:r}=Q("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(i){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(i)}}async batchSubscribe(i){if(!i.length)return;const r=await this.rpcBatchSubscribe(i);ps(r)&&this.onBatchSubscribe(r.map((n,o)=>Qa(zs({},i[o]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;const i=[];this.pending.forEach(r=>{i.push(r)}),await this.batchSubscribe(i)}registerEventListeners(){this.relayer.core.heartbeat.on(ds.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(mt.connect,async()=>{await this.onConnect()}),this.relayer.on(mt.disconnect,()=>{this.onDisconnect()}),this.events.on(Vr.created,async i=>{const r=Vr.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()}),this.events.on(Vr.deleted,async i=>{const r=Vr.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),await this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}async restartToComplete(){this.restartInProgress&&await new Promise(i=>{const r=setInterval(()=>{this.restartInProgress||(clearInterval(r),i())},this.pollingInterval)})}}var Cb=Object.defineProperty,gl=Object.getOwnPropertySymbols,Ob=Object.prototype.hasOwnProperty,Rb=Object.prototype.propertyIsEnumerable,vl=(c,i,r)=>i in c?Cb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,Tb=(c,i)=>{for(var r in i||(i={}))Ob.call(i,r)&&vl(c,r,i[r]);if(gl)for(var r of gl(i))Rb.call(i,r)&&vl(c,r,i[r]);return c};class Nb extends Am{constructor(i){super(i),this.protocol="wc",this.version=2,this.events=new vr.EventEmitter,this.name=tb,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.request=async r=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(r)}catch(n){throw this.logger.debug("Failed to Publish Request"),this.logger.error(n),n}},this.core=i.core,this.logger=typeof i.logger<"u"&&typeof i.logger!="string"?Re.generateChildLogger(i.logger,this.name):Re.pino(Re.getDefaultLoggerOptions({level:i.logger||eb})),this.messages=new _b(this.logger,i.core),this.subscriber=new Ab(this,this.logger),this.publisher=new wb(this,this.logger),this.relayUrl=i?.relayUrl||Of,this.projectId=i.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${ll}...`),await this.restartTransport(ll)}this.registerEventListeners(),this.initialized=!0,setTimeout(async()=>{this.subscriber.topics.length===0&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},nb)}get context(){return Re.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(i,r,n){this.isInitialized(),await this.publisher.publish(i,r,n),await this.recordMessageEvent({topic:i,message:r,publishedAt:Date.now()})}async subscribe(i,r){var n;this.isInitialized();let o=((n=this.subscriber.topicMap.get(i))==null?void 0:n[0])||"";return o||(await Promise.all([new Promise(l=>{this.subscriber.once(Vr.created,d=>{d.topic===i&&l()})}),new Promise(async l=>{o=await this.subscriber.subscribe(i,r),l()})]),o)}async unsubscribe(i,r){this.isInitialized(),await this.subscriber.unsubscribe(i,r)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(mt.transport_closed))}async transportOpen(i){if(this.transportExplicitlyClosed=!1,!this.reconnecting){this.relayUrl=i||this.relayUrl,this.reconnecting=!0;try{await Promise.all([new Promise(r=>{this.initialized||r(),this.subscriber.once(Vr.resubscribed,()=>{r()})}),await Promise.race([new Promise(async(r,n)=>{await ao(this.provider.connect(),5e3,`Socket stalled when trying to connect to ${this.relayUrl}`).catch(o=>n(o)).then(()=>r()).finally(()=>this.removeListener(mt.transport_closed,this.rejectTransportOpen))}),new Promise(r=>this.once(mt.transport_closed,this.rejectTransportOpen))])])}catch(r){this.logger.error(r);const n=r;if(!this.isConnectionStalled(n.message))throw r;this.events.emit(mt.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(i){this.transportExplicitlyClosed||this.reconnecting||(this.relayUrl=i||this.relayUrl,this.connected&&await Promise.all([new Promise(r=>{this.provider.once(Us.disconnect,()=>{r()})}),this.transportClose()]),await this.createProvider(),await this.transportOpen())}isConnectionStalled(i){return this.staleConnectionErrors.some(r=>i.includes(r))}rejectTransportOpen(){throw new Error("Attempt to connect to relay via `transportOpen` has stalled. Retrying...")}async createProvider(){const i=await this.core.crypto.signJWT(this.relayUrl);this.provider=new Ei(new v_(C1({sdkVersion:sb,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:i,useOnCloseEvent:!0}))),this.registerProviderListeners()}async recordMessageEvent(i){const{topic:r,message:n}=i;await this.messages.set(r,n)}async shouldIgnoreMessageEvent(i){const{topic:r,message:n}=i;return await this.subscriber.isSubscribed(r)?this.messages.has(r,n):!0}async onProviderPayload(i){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:i}),Ic(i)){if(!i.method.endsWith(rb))return;const r=i.params,{topic:n,message:o,publishedAt:l}=r.data,d={topic:n,message:o,publishedAt:l};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Tb({type:"event",event:r.id},d)),this.events.emit(r.id,d),await this.acknowledgePayload(i),await this.onMessageEvent(d)}else yo(i)&&this.events.emit(mt.message_ack,i)}async onMessageEvent(i){await this.shouldIgnoreMessageEvent(i)||(this.events.emit(mt.message,i),await this.recordMessageEvent(i))}async acknowledgePayload(i){const r=xc(i.id,!0);await this.provider.connection.send(r)}registerProviderListeners(){this.provider.on(Us.payload,i=>this.onProviderPayload(i)),this.provider.on(Us.connect,()=>{this.events.emit(mt.connect)}),this.provider.on(Us.disconnect,()=>{this.onProviderDisconnect()}),this.provider.on(Us.error,i=>{this.logger.error(i),this.events.emit(mt.error,i)})}registerEventListeners(){this.events.on(mt.connection_stalled,async()=>{await this.restartTransport()})}onProviderDisconnect(){this.events.emit(mt.disconnect),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.restartTransport()},ne.toMiliseconds(ib))}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}async toEstablishConnection(){if(!this.connected){if(this.connecting)return await new Promise(i=>{const r=setInterval(()=>{this.connected&&(clearInterval(r),i())},this.connectionStatusPollingInterval)});await this.restartTransport()}}}var Lb=Object.defineProperty,yl=Object.getOwnPropertySymbols,Db=Object.prototype.hasOwnProperty,Fb=Object.prototype.propertyIsEnumerable,ml=(c,i,r)=>i in c?Lb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,_l=(c,i)=>{for(var r in i||(i={}))Db.call(i,r)&&ml(c,r,i[r]);if(yl)for(var r of yl(i))Fb.call(i,r)&&ml(c,r,i[r]);return c};class _o extends Cm{constructor(i,r,n,o=wi,l=void 0){super(i,r,n,o),this.core=i,this.logger=r,this.name=n,this.map=new Map,this.version=ob,this.cached=[],this.initialized=!1,this.storagePrefix=wi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(d=>{this.getKey&&d!==null&&!_i(d)?this.map.set(this.getKey(d),d):y1(d)?this.map.set(d.id,d):m1(d)&&this.map.set(d.topic,d)}),this.cached=[],this.initialized=!0)},this.set=async(d,y)=>{this.isInitialized(),this.map.has(d)?await this.update(d,y):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:d,value:y}),this.map.set(d,y),await this.persist())},this.get=d=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:d}),this.getData(d)),this.getAll=d=>(this.isInitialized(),d?this.values.filter(y=>Object.keys(d).every(w=>m_(y[w],d[w]))):this.values),this.update=async(d,y)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:d,update:y});const w=_l(_l({},this.getData(d)),y);this.map.set(d,w),await this.persist()},this.delete=async(d,y)=>{this.isInitialized(),this.map.has(d)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:d,reason:y}),this.map.delete(d),await this.persist())},this.logger=Re.generateChildLogger(r,this.name),this.storagePrefix=o,this.getKey=l}get context(){return Re.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(i){await this.core.storage.setItem(this.storageKey,i)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(i){const r=this.map.get(i);if(!r){const{message:n}=Q("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}async persist(){await this.setDataStore(this.values)}async restore(){try{const i=await this.getDataStore();if(typeof i>"u"||!i.length)return;if(this.map.size){const{message:r}=Q("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(i){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(i)}}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}}class $b{constructor(i,r){this.core=i,this.logger=r,this.name=lb,this.version=fb,this.events=new mc,this.initialized=!1,this.storagePrefix=wi,this.ignoredPayloadTypes=[ql],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();const n=oc(),o=await this.core.crypto.setSymKey(n),l=Fr(ne.FIVE_MINUTES),d={protocol:Cf},y={topic:o,expiry:l,relay:d,active:!1},w=O1({protocol:this.core.protocol,version:this.core.version,topic:o,symKey:n,relay:d});return await this.pairings.set(o,y),await this.core.relayer.subscribe(o),this.core.expirer.set(o,l),{topic:o,uri:w}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);const{topic:o,symKey:l,relay:d}=R1(n.uri);if(this.pairings.keys.includes(o))throw new Error(`Pairing already exists: ${o}`);if(this.core.crypto.hasKeys(o))throw new Error(`Keychain already exists: ${o}`);const y=Fr(ne.FIVE_MINUTES),w={topic:o,relay:d,expiry:y,active:!1};return await this.pairings.set(o,w),await this.core.crypto.setSymKey(l,o),await this.core.relayer.subscribe(o,{relay:d}),this.core.expirer.set(o,y),n.activatePairing&&await this.activate({topic:o}),w},this.activate=async({topic:n})=>{this.isInitialized();const o=Fr(ne.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:o}),this.core.expirer.set(n,o)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);const{topic:o}=n;if(this.pairings.keys.includes(o)){const l=await this.sendRequest(o,"wc_pairingPing",{}),{done:d,resolve:y,reject:w}=cs();this.events.once(Ft("pairing_ping",l),({error:A})=>{A?w(A):y()}),await d()}},this.updateExpiry=async({topic:n,expiry:o})=>{this.isInitialized(),await this.pairings.update(n,{expiry:o})},this.updateMetadata=async({topic:n,metadata:o})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:o})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);const{topic:o}=n;this.pairings.keys.includes(o)&&(await this.sendRequest(o,"wc_pairingDelete",tr("USER_DISCONNECTED")),await this.deletePairing(o))},this.sendRequest=async(n,o,l)=>{const d=go(o,l),y=await this.core.crypto.encode(n,d),w=qs[o].req;return this.core.history.set(n,d),this.core.relayer.publish(n,y,w),d.id},this.sendResult=async(n,o,l)=>{const d=xc(n,l),y=await this.core.crypto.encode(o,d),w=await this.core.history.get(o,n),A=qs[w.request.method].res;await this.core.relayer.publish(o,y,A),await this.core.history.resolve(d)},this.sendError=async(n,o,l)=>{const d=vo(n,l),y=await this.core.crypto.encode(o,d),w=await this.core.history.get(o,n),A=qs[w.request.method]?qs[w.request.method].res:qs.unregistered_method.res;await this.core.relayer.publish(o,y,A),await this.core.history.resolve(d)},this.deletePairing=async(n,o)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,tr("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),o?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{const n=this.pairings.getAll().filter(o=>mi(o.expiry));await Promise.all(n.map(o=>this.deletePairing(o.topic)))},this.onRelayEventRequest=n=>{const{topic:o,payload:l}=n,d=l.method;if(this.pairings.keys.includes(o))switch(d){case"wc_pairingPing":return this.onPairingPingRequest(o,l);case"wc_pairingDelete":return this.onPairingDeleteRequest(o,l);default:return this.onUnknownRpcMethodRequest(o,l)}},this.onRelayEventResponse=async n=>{const{topic:o,payload:l}=n,d=(await this.core.history.get(o,l.id)).request.method;if(this.pairings.keys.includes(o))switch(d){case"wc_pairingPing":return this.onPairingPingResponse(o,l);default:return this.onUnknownRpcMethodResponse(d)}},this.onPairingPingRequest=async(n,o)=>{const{id:l}=o;try{this.isValidPing({topic:n}),await this.sendResult(l,n,!0),this.events.emit("pairing_ping",{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onPairingPingResponse=(n,o)=>{const{id:l}=o;setTimeout(()=>{oi(o)?this.events.emit(Ft("pairing_ping",l),{}):$r(o)&&this.events.emit(Ft("pairing_ping",l),{error:o.error})},500)},this.onPairingDeleteRequest=async(n,o)=>{const{id:l}=o;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit("pairing_delete",{id:l,topic:n})}catch(d){await this.sendError(l,n,d),this.logger.error(d)}},this.onUnknownRpcMethodRequest=async(n,o)=>{const{id:l,method:d}=o;try{if(this.registeredMethods.includes(d))return;const y=tr("WC_METHOD_UNSUPPORTED",d);await this.sendError(l,n,y),this.logger.error(y)}catch(y){await this.sendError(l,n,y),this.logger.error(y)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(tr("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!cr(n)){const{message:o}=Q("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(o)}if(!T1(n.uri)){const{message:o}=Q("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(o)}},this.isValidPing=async n=>{if(!cr(n)){const{message:l}=Q("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(l)}const{topic:o}=n;await this.isValidPairingTopic(o)},this.isValidDisconnect=async n=>{if(!cr(n)){const{message:l}=Q("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(l)}const{topic:o}=n;await this.isValidPairingTopic(o)},this.isValidPairingTopic=async n=>{if(!us(n,!1)){const{message:o}=Q("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(o)}if(!this.pairings.keys.includes(n)){const{message:o}=Q("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(o)}if(mi(this.pairings.get(n).expiry)){await this.deletePairing(n);const{message:o}=Q("EXPIRED",`pairing topic: ${n}`);throw new Error(o)}},this.core=i,this.logger=Re.generateChildLogger(r,this.name),this.pairings=new _o(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Re.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}registerRelayerEvents(){this.core.relayer.on(mt.message,async i=>{const{topic:r,message:n}=i;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;const o=await this.core.crypto.decode(r,n);Ic(o)?(this.core.history.set(r,o),this.onRelayEventRequest({topic:r,payload:o})):yo(o)&&(await this.core.history.resolve(o),await this.onRelayEventResponse({topic:r,payload:o}),this.core.history.delete(r,o.id))})}registerExpirerEvents(){this.core.expirer.on(Ar.expired,async i=>{const{topic:r}=zl(i.target);r&&this.pairings.keys.includes(r)&&(await this.deletePairing(r,!0),this.events.emit("pairing_expire",{topic:r}))})}}class jb extends Im{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.records=new Map,this.events=new vr.EventEmitter,this.name=pb,this.version=db,this.cached=[],this.initialized=!1,this.storagePrefix=wi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,o,l)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:o,chainId:l}),this.records.has(o.id))return;const d={id:o.id,topic:n,request:{method:o.method,params:o.params||null},chainId:l,expiry:Fr(ne.THIRTY_DAYS)};this.records.set(d.id,d),this.events.emit(Br.created,d)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;const o=await this.getRecord(n.id);typeof o.response>"u"&&(o.response=$r(n)?{error:n.error}:{result:n.result},this.records.set(o.id,o),this.events.emit(Br.updated,o))},this.get=async(n,o)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:o}),await this.getRecord(o)),this.delete=(n,o)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:o}),this.values.forEach(l=>{if(l.topic===n){if(typeof o<"u"&&l.id!==o)return;this.records.delete(l.id),this.events.emit(Br.deleted,l)}})},this.exists=async(n,o)=>(this.isInitialized(),this.records.has(o)?(await this.getRecord(o)).topic===n:!1),this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.logger=Re.generateChildLogger(r,this.name)}get context(){return Re.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const i=[];return this.values.forEach(r=>{if(typeof r.response<"u")return;const n={topic:r.topic,request:go(r.request.method,r.request.params,r.id),chainId:r.chainId};return i.push(n)}),i}async setJsonRpcRecords(i){await this.core.storage.setItem(this.storageKey,i)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(i){this.isInitialized();const r=this.records.get(i);if(!r){const{message:n}=Q("NO_MATCHING_KEY",`${this.name}: ${i}`);throw new Error(n)}return r}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(Br.sync)}async restore(){try{const i=await this.getJsonRpcRecords();if(typeof i>"u"||!i.length)return;if(this.records.size){const{message:r}=Q("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(i){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(i)}}registerEventListeners(){this.events.on(Br.created,i=>{const r=Br.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(Br.updated,i=>{const r=Br.updated;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.events.on(Br.deleted,i=>{const r=Br.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,record:i}),this.persist()}),this.core.heartbeat.on(ds.HEARTBEAT_EVENTS.pulse,()=>{this.cleanup()})}cleanup(){try{this.records.forEach(i=>{ne.toMiliseconds(i.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${i.id}`),this.delete(i.topic,i.id))})}catch(i){this.logger.warn(i)}}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}}class Mb extends Rm{constructor(i,r){super(i,r),this.core=i,this.logger=r,this.expirations=new Map,this.events=new vr.EventEmitter,this.name=gb,this.version=vb,this.cached=[],this.initialized=!1,this.storagePrefix=wi,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{const o=this.formatTarget(n);return typeof this.getExpiration(o)<"u"}catch{return!1}},this.set=(n,o)=>{this.isInitialized();const l=this.formatTarget(n),d={target:l,expiry:o};this.expirations.set(l,d),this.checkExpiry(l,d),this.events.emit(Ar.created,{target:l,expiration:d})},this.get=n=>{this.isInitialized();const o=this.formatTarget(n);return this.getExpiration(o)},this.del=n=>{if(this.isInitialized(),this.has(n)){const o=this.formatTarget(n),l=this.getExpiration(o);this.expirations.delete(o),this.events.emit(Ar.deleted,{target:o,expiration:l})}},this.on=(n,o)=>{this.events.on(n,o)},this.once=(n,o)=>{this.events.once(n,o)},this.off=(n,o)=>{this.events.off(n,o)},this.removeListener=(n,o)=>{this.events.removeListener(n,o)},this.logger=Re.generateChildLogger(r,this.name)}get context(){return Re.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(i){if(typeof i=="string")return N1(i);if(typeof i=="number")return L1(i);const{message:r}=Q("UNKNOWN_TYPE",`Target type: ${typeof i}`);throw new Error(r)}async setExpirations(i){await this.core.storage.setItem(this.storageKey,i)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Ar.sync)}async restore(){try{const i=await this.getExpirations();if(typeof i>"u"||!i.length)return;if(this.expirations.size){const{message:r}=Q("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(r),new Error(r)}this.cached=i,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(i){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(i)}}getExpiration(i){const r=this.expirations.get(i);if(!r){const{message:n}=Q("NO_MATCHING_KEY",`${this.name}: ${i}`);throw this.logger.error(n),new Error(n)}return r}checkExpiry(i,r){const{expiry:n}=r;ne.toMiliseconds(n)-Date.now()<=0&&this.expire(i,r)}expire(i,r){this.expirations.delete(i),this.events.emit(Ar.expired,{target:i,expiration:r})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((i,r)=>this.checkExpiry(r,i))}registerEventListeners(){this.core.heartbeat.on(ds.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Ar.created,i=>{const r=Ar.created;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Ar.expired,i=>{const r=Ar.expired;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()}),this.events.on(Ar.deleted,i=>{const r=Ar.deleted;this.logger.info(`Emitting ${r}`),this.logger.debug({type:"event",event:r,data:i}),this.persist()})}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}}class Ub extends Tm{constructor(i,r){super(i,r),this.projectId=i,this.logger=r,this.name=Za,this.initialized=!1,this.init=async n=>{D1()||!kl()||(this.verifyUrl=n?.verifyUrl||fl,await this.createIframe())},this.register=async n=>{var o;if(this.initialized||await this.init(),!!this.iframe)try{(o=this.iframe.contentWindow)==null||o.postMessage(n.attestationId,this.verifyUrl),this.logger.info(`postMessage sent: ${n.attestationId} ${this.verifyUrl}`)}catch{}},this.resolve=async n=>{var o;if(this.isDevEnv)return"";this.logger.info(`resolving attestation: ${n.attestationId}`);const l=this.startAbortTimer(ne.FIVE_SECONDS),d=await fetch(`${this.verifyUrl}/attestation/${n.attestationId}`,{signal:this.abortController.signal});return clearTimeout(l),d.status===200?(o=await d.json())==null?void 0:o.origin:""},this.createIframe=async()=>{try{await Promise.race([new Promise((n,o)=>{if(document.getElementById(Za))return n();const l=document.createElement("iframe");l.setAttribute("id",Za),l.setAttribute("src",`${this.verifyUrl}/${this.projectId}`),l.style.display="none",l.addEventListener("load",()=>{this.initialized=!0,n()}),l.addEventListener("error",d=>{o(d)}),document.body.append(l),this.iframe=l}),new Promise(n=>{setTimeout(()=>n("iframe load timeout"),ne.toMiliseconds(ne.ONE_SECOND/2))})])}catch(n){this.logger.error(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.error(n)}},this.logger=Re.generateChildLogger(r,this.name),this.verifyUrl=fl,this.abortController=new AbortController,this.isDevEnv=F1()&&{}.IS_VITEST}get context(){return Re.getLoggerContext(this.logger)}startAbortTimer(i){return setTimeout(()=>this.abortController.abort(),ne.toMiliseconds(i))}}var qb=Object.defineProperty,wl=Object.getOwnPropertySymbols,zb=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable,bl=(c,i,r)=>i in c?qb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,El=(c,i)=>{for(var r in i||(i={}))zb.call(i,r)&&bl(c,r,i[r]);if(wl)for(var r of wl(i))kb.call(i,r)&&bl(c,r,i[r]);return c};class Pc extends xm{constructor(i){super(i),this.protocol=Af,this.version=Hw,this.name=Sc,this.events=new vr.EventEmitter,this.initialized=!1,this.on=(n,o)=>this.events.on(n,o),this.once=(n,o)=>this.events.once(n,o),this.off=(n,o)=>this.events.off(n,o),this.removeListener=(n,o)=>this.events.removeListener(n,o),this.projectId=i?.projectId,this.relayUrl=i?.relayUrl||Of;const r=typeof i?.logger<"u"&&typeof i?.logger!="string"?i.logger:Re.pino(Re.getDefaultLoggerOptions({level:i?.logger||Bw.logger}));this.logger=Re.generateChildLogger(r,this.name),this.heartbeat=new ds.HeartBeat,this.crypto=new mb(this,this.logger,i?.keychain),this.history=new jb(this,this.logger),this.expirer=new Mb(this,this.logger),this.storage=i!=null&&i.storage?i.storage:new dm(El(El({},Vw),i?.storageOptions)),this.relayer=new Nb({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new $b(this,this.logger),this.verify=new Ub(this.projectId||"",this.logger)}static async init(i){const r=new Pc(i);await r.initialize();const n=await r.crypto.getClientId();return await r.storage.setItem(ab,n),r}get context(){return Re.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(i){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,i),this.logger.error(i.message),i}}}const Hb=Pc,Rf="wc",Tf=2,Nf="client",Ac=`${Rf}@${Tf}:${Nf}:`,ec={name:Nf,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},Bb="WALLETCONNECT_DEEPLINK_CHOICE",Vb="proposal",Lf="Proposal expired",Kb="session",eo=ne.SEVEN_DAYS,Gb="engine",ks={wc_sessionPropose:{req:{ttl:ne.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:ne.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:ne.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:ne.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:ne.ONE_DAY,prompt:!1,tag:1104},res:{ttl:ne.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:ne.ONE_DAY,prompt:!1,tag:1106},res:{ttl:ne.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:ne.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:ne.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:ne.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:ne.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:ne.ONE_DAY,prompt:!1,tag:1112},res:{ttl:ne.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:ne.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:ne.THIRTY_SECONDS,prompt:!1,tag:1115}}},tc={min:ne.FIVE_MINUTES,max:ne.SEVEN_DAYS},Wb="request",Jb=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var Yb=Object.defineProperty,Xb=Object.defineProperties,Zb=Object.getOwnPropertyDescriptors,xl=Object.getOwnPropertySymbols,Qb=Object.prototype.hasOwnProperty,eE=Object.prototype.propertyIsEnumerable,Il=(c,i,r)=>i in c?Yb(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,Pr=(c,i)=>{for(var r in i||(i={}))Qb.call(i,r)&&Il(c,r,i[r]);if(xl)for(var r of xl(i))eE.call(i,r)&&Il(c,r,i[r]);return c},rc=(c,i)=>Xb(c,Zb(i));class tE extends Lm{constructor(i){super(i),this.name=Gb,this.events=new mc,this.initialized=!1,this.ignoredPayloadTypes=[ql],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(ks)}),this.initialized=!0)},this.connect=async r=>{this.isInitialized();const n=rc(Pr({},r),{requiredNamespaces:r.requiredNamespaces||{},optionalNamespaces:r.optionalNamespaces||{}});await this.isValidConnect(n);const{pairingTopic:o,requiredNamespaces:l,optionalNamespaces:d,sessionProperties:y,relays:w}=n;let A=o,F,K=!1;if(A&&(K=this.client.core.pairing.pairings.get(A).active),!A||!K){const{topic:pe,uri:he}=await this.client.core.pairing.create();A=pe,F=he}const J=await this.client.core.crypto.generateKeyPair(),G=Pr({requiredNamespaces:l,optionalNamespaces:d,relays:w??[{protocol:Cf}],proposer:{publicKey:J,metadata:this.client.metadata}},y&&{sessionProperties:y}),{reject:j,resolve:V,done:ie}=cs(ne.FIVE_MINUTES,Lf);if(this.events.once(Ft("session_connect"),async({error:pe,session:he})=>{if(pe)j(pe);else if(he){he.self.publicKey=J;const le=rc(Pr({},he),{requiredNamespaces:he.requiredNamespaces,optionalNamespaces:he.optionalNamespaces});await this.client.session.set(he.topic,le),await this.setExpiry(he.topic,he.expiry),A&&await this.client.core.pairing.updateMetadata({topic:A,metadata:he.peer.metadata}),V(le)}}),!A){const{message:pe}=Q("NO_MATCHING_KEY",`connect() pairing topic: ${A}`);throw new Error(pe)}const Ee=await this.sendRequest(A,"wc_sessionPropose",G),ge=Fr(ne.FIVE_MINUTES);return await this.setProposal(Ee,Pr({id:Ee,expiry:ge},G)),{uri:F,approval:ie}},this.pair=async r=>(this.isInitialized(),await this.client.core.pairing.pair(r)),this.approve=async r=>{this.isInitialized(),await this.isValidApprove(r);const{id:n,relayProtocol:o,namespaces:l,sessionProperties:d}=r,y=this.client.proposal.get(n);let{pairingTopic:w,proposer:A,requiredNamespaces:F,optionalNamespaces:K}=y;w=w||"",so(F)||(F=j1(l,"approve()"));const J=await this.client.core.crypto.generateKeyPair(),G=A.publicKey,j=await this.client.core.crypto.generateSharedKey(J,G);w&&n&&(await this.client.core.pairing.updateMetadata({topic:w,metadata:A.metadata}),await this.sendResult(n,w,{relay:{protocol:o??"irn"},responderPublicKey:J}),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:w}));const V=Pr({relay:{protocol:o??"irn"},namespaces:l,requiredNamespaces:F,optionalNamespaces:K,pairingTopic:w,controller:{publicKey:J,metadata:this.client.metadata},expiry:Fr(eo)},d&&{sessionProperties:d});await this.client.core.relayer.subscribe(j),await this.sendRequest(j,"wc_sessionSettle",V);const ie=rc(Pr({},V),{topic:j,pairingTopic:w,acknowledged:!1,self:V.controller,peer:{publicKey:A.publicKey,metadata:A.metadata},controller:J});return await this.client.session.set(j,ie),await this.setExpiry(j,Fr(eo)),{topic:j,acknowledged:()=>new Promise(Ee=>setTimeout(()=>Ee(this.client.session.get(j)),500))}},this.reject=async r=>{this.isInitialized(),await this.isValidReject(r);const{id:n,reason:o}=r,{pairingTopic:l}=this.client.proposal.get(n);l&&(await this.sendError(n,l,o),await this.client.proposal.delete(n,tr("USER_DISCONNECTED")))},this.update=async r=>{this.isInitialized(),await this.isValidUpdate(r);const{topic:n,namespaces:o}=r,l=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:o}),{done:d,resolve:y,reject:w}=cs();return this.events.once(Ft("session_update",l),({error:A})=>{A?w(A):y()}),await this.client.session.update(n,{namespaces:o}),{acknowledged:d}},this.extend=async r=>{this.isInitialized(),await this.isValidExtend(r);const{topic:n}=r,o=await this.sendRequest(n,"wc_sessionExtend",{}),{done:l,resolve:d,reject:y}=cs();return this.events.once(Ft("session_extend",o),({error:w})=>{w?y(w):d()}),await this.setExpiry(n,Fr(eo)),{acknowledged:l}},this.request=async r=>{this.isInitialized(),await this.isValidRequest(r);const{chainId:n,request:o,topic:l,expiry:d}=r,y=await this.sendRequest(l,"wc_sessionRequest",{request:o,chainId:n},d),{done:w,resolve:A,reject:F}=cs(d);this.events.once(Ft("session_request",y),({error:J,result:G})=>{J?F(J):A(G)}),this.client.events.emit("session_request_sent",{topic:l,request:o,chainId:n,id:y});const K=await this.client.core.storage.getItem(Bb);return M1({id:y,topic:l,wcDeepLink:K}),await w()},this.respond=async r=>{this.isInitialized(),await this.isValidRespond(r);const{topic:n,response:o}=r,{id:l}=o;oi(o)?await this.sendResult(l,n,o.result):$r(o)&&await this.sendError(l,n,o.error),this.deletePendingSessionRequest(r.response.id,{message:"fulfilled",code:0})},this.ping=async r=>{this.isInitialized(),await this.isValidPing(r);const{topic:n}=r;if(this.client.session.keys.includes(n)){const o=await this.sendRequest(n,"wc_sessionPing",{}),{done:l,resolve:d,reject:y}=cs();this.events.once(Ft("session_ping",o),({error:w})=>{w?y(w):d()}),await l()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async r=>{this.isInitialized(),await this.isValidEmit(r);const{topic:n,event:o,chainId:l}=r;await this.sendRequest(n,"wc_sessionEvent",{event:o,chainId:l})},this.disconnect=async r=>{this.isInitialized(),await this.isValidDisconnect(r);const{topic:n}=r;if(this.client.session.keys.includes(n)){const o=Ec().toString();let l;const d=y=>{y?.id.toString()===o&&(this.client.core.relayer.events.removeListener(mt.message_ack,d),l())};await Promise.all([new Promise(y=>{l=y,this.client.core.relayer.on(mt.message_ack,d)}),this.sendRequest(n,"wc_sessionDelete",tr("USER_DISCONNECTED"),void 0,o)]),await this.deleteSession(n)}else await this.client.core.pairing.disconnect({topic:n})},this.find=r=>(this.isInitialized(),this.client.session.getAll().filter(n=>U1(n,r))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async r=>{if(r.pairingTopic)try{const n=this.client.core.pairing.pairings.get(r.pairingTopic),o=this.client.core.pairing.pairings.getAll().filter(l=>{var d,y;return((d=l.peerMetadata)==null?void 0:d.url)&&((y=l.peerMetadata)==null?void 0:y.url)===r.peer.metadata.url&&l.topic&&l.topic!==n.topic});if(o.length===0)return;this.client.logger.info(`Cleaning up ${o.length} duplicate pairing(s)`),await Promise.all(o.map(l=>this.client.core.pairing.disconnect({topic:l.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(n){this.client.logger.error(n)}},this.deleteSession=async(r,n)=>{const{self:o}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),this.client.session.delete(r,tr("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(o.publicKey)&&await this.client.core.crypto.deleteKeyPair(o.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r)},this.deleteProposal=async(r,n)=>{await Promise.all([this.client.proposal.delete(r,tr("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(r)])},this.deletePendingSessionRequest=async(r,n,o=!1)=>{await Promise.all([this.client.pendingRequest.delete(r,n),o?Promise.resolve():this.client.core.expirer.del(r)])},this.setExpiry=async(r,n)=>{this.client.session.keys.includes(r)&&await this.client.session.update(r,{expiry:n}),this.client.core.expirer.set(r,n)},this.setProposal=async(r,n)=>{await this.client.proposal.set(r,n),this.client.core.expirer.set(r,n.expiry)},this.setPendingSessionRequest=async r=>{const n=ks.wc_sessionRequest.req.ttl,{id:o,topic:l,params:d}=r;await this.client.pendingRequest.set(o,{id:o,topic:l,params:d}),n&&this.client.core.expirer.set(o,Fr(n))},this.sendRequest=async(r,n,o,l,d)=>{const y=go(n,o);if(kl()&&Jb.includes(n)){const F=ls(JSON.stringify(y));await this.client.core.verify.register({attestationId:F})}const w=await this.client.core.crypto.encode(r,y),A=ks[n].req;return l&&(A.ttl=l),d&&(A.id=d),this.client.core.history.set(r,y),this.client.core.relayer.publish(r,w,A),y.id},this.sendResult=async(r,n,o)=>{const l=xc(r,o),d=await this.client.core.crypto.encode(n,l),y=await this.client.core.history.get(n,r),w=ks[y.request.method].res;this.client.core.relayer.publish(n,d,w),await this.client.core.history.resolve(l)},this.sendError=async(r,n,o)=>{const l=vo(r,o),d=await this.client.core.crypto.encode(n,l),y=await this.client.core.history.get(n,r),w=ks[y.request.method].res;this.client.core.relayer.publish(n,d,w),await this.client.core.history.resolve(l)},this.cleanup=async()=>{const r=[],n=[];this.client.session.getAll().forEach(o=>{mi(o.expiry)&&r.push(o.topic)}),this.client.proposal.getAll().forEach(o=>{mi(o.expiry)&&n.push(o.id)}),await Promise.all([...r.map(o=>this.deleteSession(o)),...n.map(o=>this.deleteProposal(o))])},this.onRelayEventRequest=r=>{const{topic:n,payload:o}=r,l=o.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeRequest(n,o);case"wc_sessionSettle":return this.onSessionSettleRequest(n,o);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,o);case"wc_sessionExtend":return this.onSessionExtendRequest(n,o);case"wc_sessionPing":return this.onSessionPingRequest(n,o);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,o);case"wc_sessionRequest":return this.onSessionRequest(n,o);case"wc_sessionEvent":return this.onSessionEventRequest(n,o);default:return this.client.logger.info(`Unsupported request method ${l}`)}},this.onRelayEventResponse=async r=>{const{topic:n,payload:o}=r,l=(await this.client.core.history.get(n,o.id)).request.method;switch(l){case"wc_sessionPropose":return this.onSessionProposeResponse(n,o);case"wc_sessionSettle":return this.onSessionSettleResponse(n,o);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,o);case"wc_sessionExtend":return this.onSessionExtendResponse(n,o);case"wc_sessionPing":return this.onSessionPingResponse(n,o);case"wc_sessionRequest":return this.onSessionRequestResponse(n,o);default:return this.client.logger.info(`Unsupported response method ${l}`)}},this.onRelayEventUnknownPayload=r=>{const{topic:n}=r,{message:o}=Q("MISSING_OR_INVALID",`Decoded payload on topic ${n} is not identifiable as a JSON-RPC request or a response.`);throw new Error(o)},this.onSessionProposeRequest=async(r,n)=>{const{params:o,id:l}=n;try{this.isValidConnect(Pr({},n.params));const d=Fr(ne.FIVE_MINUTES),y=Pr({id:l,pairingTopic:r,expiry:d},o);await this.setProposal(l,y);const w=ls(JSON.stringify(n)),A=await this.getVerifyContext(w,y.proposer.metadata);this.client.events.emit("session_proposal",{id:l,params:y,verifyContext:A})}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.onSessionProposeResponse=async(r,n)=>{const{id:o}=n;if(oi(n)){const{result:l}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:l});const d=this.client.proposal.get(o);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:d});const y=d.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:y});const w=l.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:w});const A=await this.client.core.crypto.generateSharedKey(y,w);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:A});const F=await this.client.core.relayer.subscribe(A);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:F}),await this.client.core.pairing.activate({topic:r})}else $r(n)&&(await this.client.proposal.delete(o,tr("USER_DISCONNECTED")),this.events.emit(Ft("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(r,n)=>{const{id:o,params:l}=n;try{this.isValidSessionSettleRequest(l);const{relay:d,controller:y,expiry:w,namespaces:A,requiredNamespaces:F,optionalNamespaces:K,sessionProperties:J,pairingTopic:G}=n.params,j=Pr({topic:r,relay:d,expiry:w,namespaces:A,acknowledged:!0,pairingTopic:G,requiredNamespaces:F,optionalNamespaces:K,controller:y.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:y.publicKey,metadata:y.metadata}},J&&{sessionProperties:J});await this.sendResult(n.id,r,!0),this.events.emit(Ft("session_connect"),{session:j}),this.cleanupDuplicatePairings(j)}catch(d){await this.sendError(o,r,d),this.client.logger.error(d)}},this.onSessionSettleResponse=async(r,n)=>{const{id:o}=n;oi(n)?(await this.client.session.update(r,{acknowledged:!0}),this.events.emit(Ft("session_approve",o),{})):$r(n)&&(await this.client.session.delete(r,tr("USER_DISCONNECTED")),this.events.emit(Ft("session_approve",o),{error:n.error}))},this.onSessionUpdateRequest=async(r,n)=>{const{params:o,id:l}=n;try{this.isValidUpdate(Pr({topic:r},o)),await this.client.session.update(r,{namespaces:o.namespaces}),await this.sendResult(l,r,!0),this.client.events.emit("session_update",{id:l,topic:r,params:o})}catch(d){await this.sendError(l,r,d),this.client.logger.error(d)}},this.onSessionUpdateResponse=(r,n)=>{const{id:o}=n;oi(n)?this.events.emit(Ft("session_update",o),{}):$r(n)&&this.events.emit(Ft("session_update",o),{error:n.error})},this.onSessionExtendRequest=async(r,n)=>{const{id:o}=n;try{this.isValidExtend({topic:r}),await this.setExpiry(r,Fr(eo)),await this.sendResult(o,r,!0),this.client.events.emit("session_extend",{id:o,topic:r})}catch(l){await this.sendError(o,r,l),this.client.logger.error(l)}},this.onSessionExtendResponse=(r,n)=>{const{id:o}=n;oi(n)?this.events.emit(Ft("session_extend",o),{}):$r(n)&&this.events.emit(Ft("session_extend",o),{error:n.error})},this.onSessionPingRequest=async(r,n)=>{const{id:o}=n;try{this.isValidPing({topic:r}),await this.sendResult(o,r,!0),this.client.events.emit("session_ping",{id:o,topic:r})}catch(l){await this.sendError(o,r,l),this.client.logger.error(l)}},this.onSessionPingResponse=(r,n)=>{const{id:o}=n;setTimeout(()=>{oi(n)?this.events.emit(Ft("session_ping",o),{}):$r(n)&&this.events.emit(Ft("session_ping",o),{error:n.error})},500)},this.onSessionDeleteRequest=async(r,n)=>{const{id:o}=n;try{this.isValidDisconnect({topic:r,reason:n.params}),await Promise.all([new Promise(l=>{this.client.core.relayer.once(mt.publish,async()=>{l(await this.deleteSession(r))})}),this.sendResult(o,r,!0)]),this.client.events.emit("session_delete",{id:o,topic:r})}catch(l){this.client.logger.error(l)}},this.onSessionRequest=async(r,n)=>{const{id:o,params:l}=n;try{this.isValidRequest(Pr({topic:r},l)),await this.setPendingSessionRequest({id:o,topic:r,params:l});const d=ls(JSON.stringify(n)),y=this.client.session.get(r),w=await this.getVerifyContext(d,y.peer.metadata);this.client.events.emit("session_request",{id:o,topic:r,params:l,verifyContext:w})}catch(d){await this.sendError(o,r,d),this.client.logger.error(d)}},this.onSessionRequestResponse=(r,n)=>{const{id:o}=n;oi(n)?this.events.emit(Ft("session_request",o),{result:n.result}):$r(n)&&this.events.emit(Ft("session_request",o),{error:n.error})},this.onSessionEventRequest=async(r,n)=>{const{id:o,params:l}=n;try{this.isValidEmit(Pr({topic:r},l)),this.client.events.emit("session_event",{id:o,topic:r,params:l})}catch(d){await this.sendError(o,r,d),this.client.logger.error(d)}},this.isValidConnect=async r=>{if(!cr(r)){const{message:w}=Q("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(r)}`);throw new Error(w)}const{pairingTopic:n,requiredNamespaces:o,optionalNamespaces:l,sessionProperties:d,relays:y}=r;if(_i(n)||await this.isValidPairingTopic(n),!q1(y,!0)){const{message:w}=Q("MISSING_OR_INVALID",`connect() relays: ${y}`);throw new Error(w)}!_i(o)&&so(o)!==0&&this.validateNamespaces(o,"requiredNamespaces"),!_i(l)&&so(l)!==0&&this.validateNamespaces(l,"optionalNamespaces"),_i(d)||this.validateSessionProps(d,"sessionProperties")},this.validateNamespaces=(r,n)=>{const o=z1(r,"connect()",n);if(o)throw new Error(o.message)},this.isValidApprove=async r=>{if(!cr(r))throw new Error(Q("MISSING_OR_INVALID",`approve() params: ${r}`).message);const{id:n,namespaces:o,relayProtocol:l,sessionProperties:d}=r;await this.isValidProposalId(n);const y=this.client.proposal.get(n),w=Ba(o,"approve()");if(w)throw new Error(w.message);const A=Th(y.requiredNamespaces,o,"approve()");if(A)throw new Error(A.message);if(!us(l,!0)){const{message:F}=Q("MISSING_OR_INVALID",`approve() relayProtocol: ${l}`);throw new Error(F)}_i(d)||this.validateSessionProps(d,"sessionProperties")},this.isValidReject=async r=>{if(!cr(r)){const{message:l}=Q("MISSING_OR_INVALID",`reject() params: ${r}`);throw new Error(l)}const{id:n,reason:o}=r;if(await this.isValidProposalId(n),!k1(o)){const{message:l}=Q("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(o)}`);throw new Error(l)}},this.isValidSessionSettleRequest=r=>{if(!cr(r)){const{message:A}=Q("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${r}`);throw new Error(A)}const{relay:n,controller:o,namespaces:l,expiry:d}=r;if(!H1(n)){const{message:A}=Q("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(A)}const y=B1(o,"onSessionSettleRequest()");if(y)throw new Error(y.message);const w=Ba(l,"onSessionSettleRequest()");if(w)throw new Error(w.message);if(mi(d)){const{message:A}=Q("EXPIRED","onSessionSettleRequest()");throw new Error(A)}},this.isValidUpdate=async r=>{if(!cr(r)){const{message:w}=Q("MISSING_OR_INVALID",`update() params: ${r}`);throw new Error(w)}const{topic:n,namespaces:o}=r;await this.isValidSessionTopic(n);const l=this.client.session.get(n),d=Ba(o,"update()");if(d)throw new Error(d.message);const y=Th(l.requiredNamespaces,o,"update()");if(y)throw new Error(y.message)},this.isValidExtend=async r=>{if(!cr(r)){const{message:o}=Q("MISSING_OR_INVALID",`extend() params: ${r}`);throw new Error(o)}const{topic:n}=r;await this.isValidSessionTopic(n)},this.isValidRequest=async r=>{if(!cr(r)){const{message:w}=Q("MISSING_OR_INVALID",`request() params: ${r}`);throw new Error(w)}const{topic:n,request:o,chainId:l,expiry:d}=r;await this.isValidSessionTopic(n);const{namespaces:y}=this.client.session.get(n);if(!Nh(y,l)){const{message:w}=Q("MISSING_OR_INVALID",`request() chainId: ${l}`);throw new Error(w)}if(!V1(o)){const{message:w}=Q("MISSING_OR_INVALID",`request() ${JSON.stringify(o)}`);throw new Error(w)}if(!K1(y,l,o.method)){const{message:w}=Q("MISSING_OR_INVALID",`request() method: ${o.method}`);throw new Error(w)}if(d&&!G1(d,tc)){const{message:w}=Q("MISSING_OR_INVALID",`request() expiry: ${d}. Expiry must be a number (in seconds) between ${tc.min} and ${tc.max}`);throw new Error(w)}},this.isValidRespond=async r=>{if(!cr(r)){const{message:l}=Q("MISSING_OR_INVALID",`respond() params: ${r}`);throw new Error(l)}const{topic:n,response:o}=r;if(await this.isValidSessionTopic(n),!W1(o)){const{message:l}=Q("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(o)}`);throw new Error(l)}},this.isValidPing=async r=>{if(!cr(r)){const{message:o}=Q("MISSING_OR_INVALID",`ping() params: ${r}`);throw new Error(o)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async r=>{if(!cr(r)){const{message:y}=Q("MISSING_OR_INVALID",`emit() params: ${r}`);throw new Error(y)}const{topic:n,event:o,chainId:l}=r;await this.isValidSessionTopic(n);const{namespaces:d}=this.client.session.get(n);if(!Nh(d,l)){const{message:y}=Q("MISSING_OR_INVALID",`emit() chainId: ${l}`);throw new Error(y)}if(!J1(o)){const{message:y}=Q("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(o)}`);throw new Error(y)}if(!Y1(d,l,o.name)){const{message:y}=Q("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(o)}`);throw new Error(y)}},this.isValidDisconnect=async r=>{if(!cr(r)){const{message:o}=Q("MISSING_OR_INVALID",`disconnect() params: ${r}`);throw new Error(o)}const{topic:n}=r;await this.isValidSessionOrPairingTopic(n)},this.getVerifyContext=async(r,n)=>{const o={verified:{verifyUrl:n.verifyUrl||"",validation:"UNKNOWN",origin:n.url||""}};try{const l=await this.client.core.verify.resolve({attestationId:r,verifyUrl:n.verifyUrl});l&&(o.verified.origin=l,o.verified.validation=l===n.url?"VALID":"INVALID")}catch(l){this.client.logger.error(l)}return this.client.logger.info(`Verify context: ${JSON.stringify(o)}`),o},this.validateSessionProps=(r,n)=>{Object.values(r).forEach(o=>{if(!us(o,!1)){const{message:l}=Q("MISSING_OR_INVALID",`${n} must be in Record<string, string> format. Received: ${JSON.stringify(o)}`);throw new Error(l)}})}}isInitialized(){if(!this.initialized){const{message:i}=Q("NOT_INITIALIZED",this.name);throw new Error(i)}}registerRelayerEvents(){this.client.core.relayer.on(mt.message,async i=>{const{topic:r,message:n}=i;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;const o=await this.client.core.crypto.decode(r,n);Ic(o)?(this.client.core.history.set(r,o),this.onRelayEventRequest({topic:r,payload:o})):yo(o)?(await this.client.core.history.resolve(o),await this.onRelayEventResponse({topic:r,payload:o}),this.client.core.history.delete(r,o.id)):this.onRelayEventUnknownPayload({topic:r,payload:o})})}registerExpirerEvents(){this.client.core.expirer.on(Ar.expired,async i=>{const{topic:r,id:n}=zl(i.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,Q("EXPIRED"),!0);r?this.client.session.keys.includes(r)&&(await this.deleteSession(r,!0),this.client.events.emit("session_expire",{topic:r})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(i){if(!us(i,!1)){const{message:r}=Q("MISSING_OR_INVALID",`pairing topic should be a string: ${i}`);throw new Error(r)}if(!this.client.core.pairing.pairings.keys.includes(i)){const{message:r}=Q("NO_MATCHING_KEY",`pairing topic doesn't exist: ${i}`);throw new Error(r)}if(mi(this.client.core.pairing.pairings.get(i).expiry)){const{message:r}=Q("EXPIRED",`pairing topic: ${i}`);throw new Error(r)}}async isValidSessionTopic(i){if(!us(i,!1)){const{message:r}=Q("MISSING_OR_INVALID",`session topic should be a string: ${i}`);throw new Error(r)}if(!this.client.session.keys.includes(i)){const{message:r}=Q("NO_MATCHING_KEY",`session topic doesn't exist: ${i}`);throw new Error(r)}if(mi(this.client.session.get(i).expiry)){await this.deleteSession(i);const{message:r}=Q("EXPIRED",`session topic: ${i}`);throw new Error(r)}}async isValidSessionOrPairingTopic(i){if(this.client.session.keys.includes(i))await this.isValidSessionTopic(i);else if(this.client.core.pairing.pairings.keys.includes(i))this.isValidPairingTopic(i);else if(us(i,!1)){const{message:r}=Q("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${i}`);throw new Error(r)}else{const{message:r}=Q("MISSING_OR_INVALID",`session or pairing topic should be a string: ${i}`);throw new Error(r)}}async isValidProposalId(i){if(!X1(i)){const{message:r}=Q("MISSING_OR_INVALID",`proposal id should be a number: ${i}`);throw new Error(r)}if(!this.client.proposal.keys.includes(i)){const{message:r}=Q("NO_MATCHING_KEY",`proposal id doesn't exist: ${i}`);throw new Error(r)}if(mi(this.client.proposal.get(i).expiry)){await this.deleteProposal(i);const{message:r}=Q("EXPIRED",`proposal id: ${i}`);throw new Error(r)}}}class rE extends _o{constructor(i,r){super(i,r,Vb,Ac),this.core=i,this.logger=r}}class iE extends _o{constructor(i,r){super(i,r,Kb,Ac),this.core=i,this.logger=r}}class sE extends _o{constructor(i,r){super(i,r,Wb,Ac,n=>n.id),this.core=i,this.logger=r}}let nE=class Df extends Nm{constructor(i){super(i),this.protocol=Rf,this.version=Tf,this.name=ec.name,this.events=new vr.EventEmitter,this.on=(n,o)=>this.events.on(n,o),this.once=(n,o)=>this.events.once(n,o),this.off=(n,o)=>this.events.off(n,o),this.removeListener=(n,o)=>this.events.removeListener(n,o),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(o){throw this.logger.error(o.message),o}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(o){throw this.logger.error(o.message),o}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(o){throw this.logger.error(o.message),o}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(o){throw this.logger.error(o.message),o}},this.update=async n=>{try{return await this.engine.update(n)}catch(o){throw this.logger.error(o.message),o}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(o){throw this.logger.error(o.message),o}},this.request=async n=>{try{return await this.engine.request(n)}catch(o){throw this.logger.error(o.message),o}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(o){throw this.logger.error(o.message),o}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(o){throw this.logger.error(o.message),o}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(o){throw this.logger.error(o.message),o}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(o){throw this.logger.error(o.message),o}},this.find=n=>{try{return this.engine.find(n)}catch(o){throw this.logger.error(o.message),o}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=i?.name||ec.name,this.metadata=i?.metadata||$1();const r=typeof i?.logger<"u"&&typeof i?.logger!="string"?i.logger:Re.pino(Re.getDefaultLoggerOptions({level:i?.logger||ec.logger}));this.core=i?.core||new Hb(i),this.logger=Re.generateChildLogger(r,this.name),this.session=new iE(this.core,this.logger),this.proposal=new rE(this.core,this.logger),this.pendingRequest=new sE(this.core,this.logger),this.engine=new tE(this)}static async init(i){const r=new Df(i);return await r.initialize(),r}get context(){return Re.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(i){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(i.message),i}}};var hc={exports:{}};(function(c,i){var r=typeof self<"u"?self:ur,n=function(){function l(){this.fetch=!1,this.DOMException=r.DOMException}return l.prototype=r,new l}();(function(l){(function(d){var y={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function w(v){return v&&DataView.prototype.isPrototypeOf(v)}if(y.arrayBuffer)var A=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],F=ArrayBuffer.isView||function(v){return v&&A.indexOf(Object.prototype.toString.call(v))>-1};function K(v){if(typeof v!="string"&&(v=String(v)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(v))throw new TypeError("Invalid character in header field name");return v.toLowerCase()}function J(v){return typeof v!="string"&&(v=String(v)),v}function G(v){var E={next:function(){var X=v.shift();return{done:X===void 0,value:X}}};return y.iterable&&(E[Symbol.iterator]=function(){return E}),E}function j(v){this.map={},v instanceof j?v.forEach(function(E,X){this.append(X,E)},this):Array.isArray(v)?v.forEach(function(E){this.append(E[0],E[1])},this):v&&Object.getOwnPropertyNames(v).forEach(function(E){this.append(E,v[E])},this)}j.prototype.append=function(v,E){v=K(v),E=J(E);var X=this.map[v];this.map[v]=X?X+", "+E:E},j.prototype.delete=function(v){delete this.map[K(v)]},j.prototype.get=function(v){return v=K(v),this.has(v)?this.map[v]:null},j.prototype.has=function(v){return this.map.hasOwnProperty(K(v))},j.prototype.set=function(v,E){this.map[K(v)]=J(E)},j.prototype.forEach=function(v,E){for(var X in this.map)this.map.hasOwnProperty(X)&&v.call(E,this.map[X],X,this)},j.prototype.keys=function(){var v=[];return this.forEach(function(E,X){v.push(X)}),G(v)},j.prototype.values=function(){var v=[];return this.forEach(function(E){v.push(E)}),G(v)},j.prototype.entries=function(){var v=[];return this.forEach(function(E,X){v.push([X,E])}),G(v)},y.iterable&&(j.prototype[Symbol.iterator]=j.prototype.entries);function V(v){if(v.bodyUsed)return Promise.reject(new TypeError("Already read"));v.bodyUsed=!0}function ie(v){return new Promise(function(E,X){v.onload=function(){E(v.result)},v.onerror=function(){X(v.error)}})}function Ee(v){var E=new FileReader,X=ie(E);return E.readAsArrayBuffer(v),X}function ge(v){var E=new FileReader,X=ie(E);return E.readAsText(v),X}function pe(v){for(var E=new Uint8Array(v),X=new Array(E.length),ce=0;ce<E.length;ce++)X[ce]=String.fromCharCode(E[ce]);return X.join("")}function he(v){if(v.slice)return v.slice(0);var E=new Uint8Array(v.byteLength);return E.set(new Uint8Array(v)),E.buffer}function le(){return this.bodyUsed=!1,this._initBody=function(v){this._bodyInit=v,v?typeof v=="string"?this._bodyText=v:y.blob&&Blob.prototype.isPrototypeOf(v)?this._bodyBlob=v:y.formData&&FormData.prototype.isPrototypeOf(v)?this._bodyFormData=v:y.searchParams&&URLSearchParams.prototype.isPrototypeOf(v)?this._bodyText=v.toString():y.arrayBuffer&&y.blob&&w(v)?(this._bodyArrayBuffer=he(v.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(v)||F(v))?this._bodyArrayBuffer=he(v):this._bodyText=v=Object.prototype.toString.call(v):this._bodyText="",this.headers.get("content-type")||(typeof v=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(v)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob&&(this.blob=function(){var v=V(this);if(v)return v;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(){return this._bodyArrayBuffer?V(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Ee)}),this.text=function(){var v=V(this);if(v)return v;if(this._bodyBlob)return ge(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(pe(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(ve)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function M(v){var E=v.toUpperCase();return T.indexOf(E)>-1?E:v}function B(v,E){E=E||{};var X=E.body;if(v instanceof B){if(v.bodyUsed)throw new TypeError("Already read");this.url=v.url,this.credentials=v.credentials,E.headers||(this.headers=new j(v.headers)),this.method=v.method,this.mode=v.mode,this.signal=v.signal,!X&&v._bodyInit!=null&&(X=v._bodyInit,v.bodyUsed=!0)}else this.url=String(v);if(this.credentials=E.credentials||this.credentials||"same-origin",(E.headers||!this.headers)&&(this.headers=new j(E.headers)),this.method=M(E.method||this.method||"GET"),this.mode=E.mode||this.mode||null,this.signal=E.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&X)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(X)}B.prototype.clone=function(){return new B(this,{body:this._bodyInit})};function ve(v){var E=new FormData;return v.trim().split("&").forEach(function(X){if(X){var ce=X.split("="),k=ce.shift().replace(/\+/g," "),U=ce.join("=").replace(/\+/g," ");E.append(decodeURIComponent(k),decodeURIComponent(U))}}),E}function re(v){var E=new j,X=v.replace(/\r?\n[\t ]+/g," ");return X.split(/\r?\n/).forEach(function(ce){var k=ce.split(":"),U=k.shift().trim();if(U){var z=k.join(":").trim();E.append(U,z)}}),E}le.call(B.prototype);function ue(v,E){E||(E={}),this.type="default",this.status=E.status===void 0?200:E.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in E?E.statusText:"OK",this.headers=new j(E.headers),this.url=E.url||"",this._initBody(v)}le.call(ue.prototype),ue.prototype.clone=function(){return new ue(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new j(this.headers),url:this.url})},ue.error=function(){var v=new ue(null,{status:0,statusText:""});return v.type="error",v};var Te=[301,302,303,307,308];ue.redirect=function(v,E){if(Te.indexOf(E)===-1)throw new RangeError("Invalid status code");return new ue(null,{status:E,headers:{location:v}})},d.DOMException=l.DOMException;try{new d.DOMException}catch{d.DOMException=function(E,X){this.message=E,this.name=X;var ce=Error(E);this.stack=ce.stack},d.DOMException.prototype=Object.create(Error.prototype),d.DOMException.prototype.constructor=d.DOMException}function qe(v,E){return new Promise(function(X,ce){var k=new B(v,E);if(k.signal&&k.signal.aborted)return ce(new d.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function z(){U.abort()}U.onload=function(){var H={status:U.status,statusText:U.statusText,headers:re(U.getAllResponseHeaders()||"")};H.url="responseURL"in U?U.responseURL:H.headers.get("X-Request-URL");var Ye="response"in U?U.response:U.responseText;X(new ue(Ye,H))},U.onerror=function(){ce(new TypeError("Network request failed"))},U.ontimeout=function(){ce(new TypeError("Network request failed"))},U.onabort=function(){ce(new d.DOMException("Aborted","AbortError"))},U.open(k.method,k.url,!0),k.credentials==="include"?U.withCredentials=!0:k.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&y.blob&&(U.responseType="blob"),k.headers.forEach(function(H,Ye){U.setRequestHeader(Ye,H)}),k.signal&&(k.signal.addEventListener("abort",z),U.onreadystatechange=function(){U.readyState===4&&k.signal.removeEventListener("abort",z)}),U.send(typeof k._bodyInit>"u"?null:k._bodyInit)})}return qe.polyfill=!0,l.fetch||(l.fetch=qe,l.Headers=j,l.Request=B,l.Response=ue),d.Headers=j,d.Request=B,d.Response=ue,d.fetch=qe,Object.defineProperty(d,"__esModule",{value:!0}),d})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=n;i=o.fetch,i.default=o.fetch,i.fetch=o.fetch,i.Headers=o.Headers,i.Request=o.Request,i.Response=o.Response,c.exports=i})(hc,hc.exports);var oE=hc.exports;const Sl=gc(oE),aE={Accept:"application/json","Content-Type":"application/json"},cE="POST",Pl={headers:aE,method:cE},Al=10;class zi{constructor(i,r=!1){if(this.url=i,this.disableProviderPing=r,this.events=new vr.EventEmitter,this.isAvailable=!1,this.registering=!1,!el(i))throw new Error(`Provided URL is not compatible with HTTP connection: ${i}`);this.url=i,this.disableProviderPing=r}get connected(){return this.isAvailable}get connecting(){return this.registering}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}off(i,r){this.events.off(i,r)}removeListener(i,r){this.events.removeListener(i,r)}async open(i=this.url){await this.register(i)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(i,r){this.isAvailable||await this.register();try{const n=Ks(i),l=await(await Sl(this.url,Object.assign(Object.assign({},Pl),{body:n}))).json();this.onPayload({data:l})}catch(n){this.onError(i.id,n)}}async register(i=this.url){if(!el(i))throw new Error(`Provided URL is not compatible with HTTP connection: ${i}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,o)=>{this.events.once("register_error",l=>{this.resetMaxListeners(),o(l)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return o(new Error("HTTP connection is missing or invalid"));n()})})}this.url=i,this.registering=!0;try{if(!this.disableProviderPing){const r=Ks({id:1,jsonrpc:"2.0",method:"test",params:[]});await Sl(i,Object.assign(Object.assign({},Pl),{body:r}))}this.onOpen()}catch(r){const n=this.parseError(r);throw this.events.emit("register_error",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(i){if(typeof i.data>"u")return;const r=typeof i.data=="string"?_c(i.data):i.data;this.events.emit("payload",r)}onError(i,r){const n=this.parseError(r),o=n.message||n.toString(),l=vo(i,o);this.events.emit("payload",l)}parseError(i,r=this.url){return lf(i,r,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>Al&&this.events.setMaxListeners(Al)}}const Cl="error",uE="wss://relay.walletconnect.com",hE="wc",lE="universal_provider",Ol=`${hE}@2:${lE}:`,fE="https://rpc.walletconnect.com/v1",xi={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};var Hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lc={exports:{}};/** +* @license +* Lodash <https://lodash.com/> +* Copyright OpenJS Foundation and other contributors <https://openjsf.org/> +* Released under MIT license <https://lodash.com/license> +* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> +* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors +*/(function(c,i){(function(){var r,n="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",y="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",A=500,F="__lodash_placeholder__",K=1,J=2,G=4,j=1,V=2,ie=1,Ee=2,ge=4,pe=8,he=16,le=32,T=64,M=128,B=256,ve=512,re=30,ue="...",Te=800,qe=16,v=1,E=2,X=3,ce=1/0,k=9007199254740991,U=17976931348623157e292,z=0/0,H=4294967295,Ye=H-1,Be=H>>>1,jr=[["ary",M],["bind",ie],["bindKey",Ee],["curry",pe],["curryRight",he],["flip",ve],["partial",le],["partialRight",T],["rearg",B]],xe="[object Arguments]",St="[object Array]",R="[object AsyncFunction]",O="[object Boolean]",P="[object Date]",u="[object DOMException]",b="[object Error]",ee="[object Function]",fe="[object GeneratorFunction]",we="[object Map]",Ne="[object Number]",De="[object Null]",Pe="[object Object]",Pt="[object Promise]",_t="[object Proxy]",ot="[object RegExp]",$e="[object Set]",Ze="[object String]",Qe="[object Symbol]",at="[object Undefined]",ze="[object WeakMap]",et="[object WeakSet]",Le="[object ArrayBuffer]",Ve="[object DataView]",ht="[object Float32Array]",Me="[object Float64Array]",At="[object Int8Array]",$t="[object Int16Array]",kt="[object Int32Array]",Ht="[object Uint8Array]",Ut="[object Uint8ClampedArray]",Wt="[object Uint16Array]",rr="[object Uint32Array]",Mr=/\b__p \+= '';/g,Jt=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ai=/&(?:amp|lt|gt|quot|#39);/g,Ii=/[&<>"']/g,lt=RegExp(ai.source),it=RegExp(Ii.source),ft=/<%-([\s\S]+?)%>/g,pt=/<%([\s\S]+?)%>/g,ct=/<%=([\s\S]+?)%>/g,st=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/,Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dt=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(dt.source),gt=/^\s+/,wt=/\s/,vt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xe=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /,Nt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wo=/[()=,{}\[\]\/\s]/,bo=/\\(\\)?/g,Eo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yr=/\w*$/,xo=/^[-+]0x[0-9a-f]+$/i,Io=/^0b[01]+$/i,So=/^\[object .+?Constructor\]$/,Po=/^0o[0-7]+$/i,Ao=/^(?:0|[1-9]\d*)$/,Gr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ki=/($^)/,Co=/['\n\r\u2028\u2029\\]/g,Hi="\\ud800-\\udfff",Oo="\\u0300-\\u036f",Ro="\\ufe20-\\ufe2f",Bi="\\u20d0-\\u20ff",Js=Oo+Ro+Bi,Ys="\\u2700-\\u27bf",Or="a-z\\xdf-\\xf6\\xf8-\\xff",To="\\xac\\xb1\\xd7\\xf7",No="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lo="\\u2000-\\u206f",Do=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xs="A-Z\\xc0-\\xd6\\xd8-\\xde",Zs="\\ufe0e\\ufe0f",Si=To+No+Lo+Do,gs="['’]",Pi="["+Hi+"]",vs="["+Si+"]",Ai="["+Js+"]",Qs="\\d+",Fo="["+Ys+"]",en="["+Or+"]",tn="[^"+Hi+Si+Qs+Ys+Or+Xs+"]",Vi="\\ud83c[\\udffb-\\udfff]",$o="(?:"+Ai+"|"+Vi+")",rn="[^"+Hi+"]",Ki="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",hr="["+Xs+"]",sn="\\u200d",nn="(?:"+en+"|"+tn+")",Ur="(?:"+hr+"|"+tn+")",on="(?:"+gs+"(?:d|ll|m|re|s|t|ve))?",an="(?:"+gs+"(?:D|LL|M|RE|S|T|VE))?",cn=$o+"?",un="["+Zs+"]?",jo="(?:"+sn+"(?:"+[rn,Ki,ci].join("|")+")"+un+cn+")*",Wr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ln=un+cn+jo,Gi="(?:"+[Fo,Ki,ci].join("|")+")"+ln,Mo="(?:"+[rn+Ai+"?",Ai,Ki,ci,Pi].join("|")+")",ys=RegExp(gs,"g"),Uo=RegExp(Ai,"g"),Wi=RegExp(Vi+"(?="+Vi+")|"+Mo+ln,"g"),fn=RegExp([hr+"?"+en+"+"+on+"(?="+[vs,hr,"$"].join("|")+")",Ur+"+"+an+"(?="+[vs,hr+nn,"$"].join("|")+")",hr+"?"+nn+"+"+on,hr+"+"+an,hn,Wr,Qs,Gi].join("|"),"g"),pn=RegExp("["+sn+Hi+Js+Zs+"]"),Ci=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qo=-1,Ke={};Ke[ht]=Ke[Me]=Ke[At]=Ke[$t]=Ke[kt]=Ke[Ht]=Ke[Ut]=Ke[Wt]=Ke[rr]=!0,Ke[xe]=Ke[St]=Ke[Le]=Ke[O]=Ke[Ve]=Ke[P]=Ke[b]=Ke[ee]=Ke[we]=Ke[Ne]=Ke[Pe]=Ke[ot]=Ke[$e]=Ke[Ze]=Ke[ze]=!1;var ke={};ke[xe]=ke[St]=ke[Le]=ke[Ve]=ke[O]=ke[P]=ke[ht]=ke[Me]=ke[At]=ke[$t]=ke[kt]=ke[we]=ke[Ne]=ke[Pe]=ke[ot]=ke[$e]=ke[Ze]=ke[Qe]=ke[Ht]=ke[Ut]=ke[Wt]=ke[rr]=!0,ke[b]=ke[ee]=ke[ze]=!1;var g={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},x={"&":"&","<":"<",">":">",'"':""","'":"'"},$={"&":"&","<":"<",">":">",""":'"',"'":"'"},Y={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ge=parseFloat,ye=parseInt,tt=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs,Lt=typeof self=="object"&&self&&self.Object===Object&&self,Ce=tt||Lt||Function("return this")(),We=i&&!i.nodeType&&i,bt=We&&!0&&c&&!c.nodeType&&c,ir=bt&&bt.exports===We,Dt=ir&&tt.process,rt=function(){try{var I=bt&&bt.require&&bt.require("util").types;return I||Dt&&Dt.binding&&Dt.binding("util")}catch{}}(),Yt=rt&&rt.isArrayBuffer,Rr=rt&&rt.isDate,mr=rt&&rt.isMap,qr=rt&&rt.isRegExp,ms=rt&&rt.isSet,Oi=rt&&rt.isTypedArray;function qt(I,N,C){switch(C.length){case 0:return I.call(N);case 1:return I.call(N,C[0]);case 2:return I.call(N,C[0],C[1]);case 3:return I.call(N,C[0],C[1],C[2])}return I.apply(N,C)}function jf(I,N,C,Z){for(var de=-1,Fe=I==null?0:I.length;++de<Fe;){var jt=I[de];N(Z,jt,C(jt),I)}return Z}function _r(I,N){for(var C=-1,Z=I==null?0:I.length;++C<Z&&N(I[C],C,I)!==!1;);return I}function Mf(I,N){for(var C=I==null?0:I.length;C--&&N(I[C],C,I)!==!1;);return I}function Rc(I,N){for(var C=-1,Z=I==null?0:I.length;++C<Z;)if(!N(I[C],C,I))return!1;return!0}function ui(I,N){for(var C=-1,Z=I==null?0:I.length,de=0,Fe=[];++C<Z;){var jt=I[C];N(jt,C,I)&&(Fe[de++]=jt)}return Fe}function gn(I,N){var C=I==null?0:I.length;return!!C&&Ji(I,N,0)>-1}function zo(I,N,C){for(var Z=-1,de=I==null?0:I.length;++Z<de;)if(C(N,I[Z]))return!0;return!1}function nt(I,N){for(var C=-1,Z=I==null?0:I.length,de=Array(Z);++C<Z;)de[C]=N(I[C],C,I);return de}function hi(I,N){for(var C=-1,Z=N.length,de=I.length;++C<Z;)I[de+C]=N[C];return I}function ko(I,N,C,Z){var de=-1,Fe=I==null?0:I.length;for(Z&&Fe&&(C=I[++de]);++de<Fe;)C=N(C,I[de],de,I);return C}function Uf(I,N,C,Z){var de=I==null?0:I.length;for(Z&&de&&(C=I[--de]);de--;)C=N(C,I[de],de,I);return C}function Ho(I,N){for(var C=-1,Z=I==null?0:I.length;++C<Z;)if(N(I[C],C,I))return!0;return!1}var qf=Bo("length");function zf(I){return I.split("")}function kf(I){return I.match(Nt)||[]}function Tc(I,N,C){var Z;return C(I,function(de,Fe,jt){if(N(de,Fe,jt))return Z=Fe,!1}),Z}function vn(I,N,C,Z){for(var de=I.length,Fe=C+(Z?1:-1);Z?Fe--:++Fe<de;)if(N(I[Fe],Fe,I))return Fe;return-1}function Ji(I,N,C){return N===N?ep(I,N,C):vn(I,Nc,C)}function Hf(I,N,C,Z){for(var de=C-1,Fe=I.length;++de<Fe;)if(Z(I[de],N))return de;return-1}function Nc(I){return I!==I}function Lc(I,N){var C=I==null?0:I.length;return C?Ko(I,N)/C:z}function Bo(I){return function(N){return N==null?r:N[I]}}function Vo(I){return function(N){return I==null?r:I[N]}}function Dc(I,N,C,Z,de){return de(I,function(Fe,jt,Je){C=Z?(Z=!1,Fe):N(C,Fe,jt,Je)}),C}function Bf(I,N){var C=I.length;for(I.sort(N);C--;)I[C]=I[C].value;return I}function Ko(I,N){for(var C,Z=-1,de=I.length;++Z<de;){var Fe=N(I[Z]);Fe!==r&&(C=C===r?Fe:C+Fe)}return C}function Go(I,N){for(var C=-1,Z=Array(I);++C<I;)Z[C]=N(C);return Z}function Vf(I,N){return nt(N,function(C){return[C,I[C]]})}function Fc(I){return I&&I.slice(0,Uc(I)+1).replace(gt,"")}function lr(I){return function(N){return I(N)}}function Wo(I,N){return nt(N,function(C){return I[C]})}function _s(I,N){return I.has(N)}function $c(I,N){for(var C=-1,Z=I.length;++C<Z&&Ji(N,I[C],0)>-1;);return C}function jc(I,N){for(var C=I.length;C--&&Ji(N,I[C],0)>-1;);return C}function Kf(I,N){for(var C=I.length,Z=0;C--;)I[C]===N&&++Z;return Z}var Gf=Vo(g),Wf=Vo(x);function Jf(I){return"\\"+Y[I]}function Yf(I,N){return I==null?r:I[N]}function Yi(I){return pn.test(I)}function Xf(I){return Ci.test(I)}function Zf(I){for(var N,C=[];!(N=I.next()).done;)C.push(N.value);return C}function Jo(I){var N=-1,C=Array(I.size);return I.forEach(function(Z,de){C[++N]=[de,Z]}),C}function Mc(I,N){return function(C){return I(N(C))}}function li(I,N){for(var C=-1,Z=I.length,de=0,Fe=[];++C<Z;){var jt=I[C];(jt===N||jt===F)&&(I[C]=F,Fe[de++]=C)}return Fe}function yn(I){var N=-1,C=Array(I.size);return I.forEach(function(Z){C[++N]=Z}),C}function Qf(I){var N=-1,C=Array(I.size);return I.forEach(function(Z){C[++N]=[Z,Z]}),C}function ep(I,N,C){for(var Z=C-1,de=I.length;++Z<de;)if(I[Z]===N)return Z;return-1}function tp(I,N,C){for(var Z=C+1;Z--;)if(I[Z]===N)return Z;return Z}function Xi(I){return Yi(I)?ip(I):qf(I)}function Tr(I){return Yi(I)?sp(I):zf(I)}function Uc(I){for(var N=I.length;N--&&wt.test(I.charAt(N)););return N}var rp=Vo($);function ip(I){for(var N=Wi.lastIndex=0;Wi.test(I);)++N;return N}function sp(I){return I.match(Wi)||[]}function np(I){return I.match(fn)||[]}var op=function I(N){N=N==null?Ce:Zi.defaults(Ce.Object(),N,Zi.pick(Ce,dn));var C=N.Array,Z=N.Date,de=N.Error,Fe=N.Function,jt=N.Math,Je=N.Object,Yo=N.RegExp,ap=N.String,wr=N.TypeError,mn=C.prototype,cp=Fe.prototype,Qi=Je.prototype,_n=N["__core-js_shared__"],wn=cp.toString,Ue=Qi.hasOwnProperty,up=0,qc=function(){var e=/[^.]+$/.exec(_n&&_n.keys&&_n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),bn=Qi.toString,hp=wn.call(Je),lp=Ce._,fp=Yo("^"+wn.call(Ue).replace(dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=ir?N.Buffer:r,fi=N.Symbol,xn=N.Uint8Array,zc=En?En.allocUnsafe:r,In=Mc(Je.getPrototypeOf,Je),kc=Je.create,Hc=Qi.propertyIsEnumerable,Sn=mn.splice,Bc=fi?fi.isConcatSpreadable:r,ws=fi?fi.iterator:r,Ri=fi?fi.toStringTag:r,Pn=function(){try{var e=Fi(Je,"defineProperty");return e({},"",{}),e}catch{}}(),pp=N.clearTimeout!==Ce.clearTimeout&&N.clearTimeout,dp=Z&&Z.now!==Ce.Date.now&&Z.now,gp=N.setTimeout!==Ce.setTimeout&&N.setTimeout,An=jt.ceil,Cn=jt.floor,Xo=Je.getOwnPropertySymbols,vp=En?En.isBuffer:r,Vc=N.isFinite,yp=mn.join,mp=Mc(Je.keys,Je),Mt=jt.max,Kt=jt.min,_p=Z.now,wp=N.parseInt,Kc=jt.random,bp=mn.reverse,Zo=Fi(N,"DataView"),bs=Fi(N,"Map"),Qo=Fi(N,"Promise"),es=Fi(N,"Set"),Es=Fi(N,"WeakMap"),xs=Fi(Je,"create"),On=Es&&new Es,ts={},Ep=$i(Zo),xp=$i(bs),Ip=$i(Qo),Sp=$i(es),Pp=$i(Es),Rn=fi?fi.prototype:r,Is=Rn?Rn.valueOf:r,Gc=Rn?Rn.toString:r;function f(e){if(yt(e)&&!me(e)&&!(e instanceof Ae)){if(e instanceof br)return e;if(Ue.call(e,"__wrapped__"))return Wu(e)}return new br(e)}var rs=function(){function e(){}return function(t){if(!ut(t))return{};if(kc)return kc(t);e.prototype=t;var s=new e;return e.prototype=r,s}}();function Tn(){}function br(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}f.templateSettings={escape:ft,evaluate:pt,interpolate:ct,variable:"",imports:{_:f}},f.prototype=Tn.prototype,f.prototype.constructor=f,br.prototype=rs(Tn.prototype),br.prototype.constructor=br;function Ae(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function Ap(){var e=new Ae(this.__wrapped__);return e.__actions__=sr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=sr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=sr(this.__views__),e}function Cp(){if(this.__filtered__){var e=new Ae(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Op(){var e=this.__wrapped__.value(),t=this.__dir__,s=me(e),a=t<0,h=s?e.length:0,p=zd(0,h,this.__views__),m=p.start,_=p.end,S=_-m,L=a?_:m-1,D=this.__iteratees__,q=D.length,W=0,te=Kt(S,this.__takeCount__);if(!s||!a&&h==S&&te==S)return yu(e,this.__actions__);var oe=[];e:for(;S--&&W<te;){L+=t;for(var be=-1,ae=e[L];++be<q;){var Se=D[be],Oe=Se.iteratee,dr=Se.type,Qt=Oe(ae);if(dr==E)ae=Qt;else if(!Qt){if(dr==v)continue e;break e}}oe[W++]=ae}return oe}Ae.prototype=rs(Tn.prototype),Ae.prototype.constructor=Ae;function Ti(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var a=e[t];this.set(a[0],a[1])}}function Rp(){this.__data__=xs?xs(null):{},this.size=0}function Tp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Np(e){var t=this.__data__;if(xs){var s=t[e];return s===w?r:s}return Ue.call(t,e)?t[e]:r}function Lp(e){var t=this.__data__;return xs?t[e]!==r:Ue.call(t,e)}function Dp(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=xs&&t===r?w:t,this}Ti.prototype.clear=Rp,Ti.prototype.delete=Tp,Ti.prototype.get=Np,Ti.prototype.has=Lp,Ti.prototype.set=Dp;function Jr(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var a=e[t];this.set(a[0],a[1])}}function Fp(){this.__data__=[],this.size=0}function $p(e){var t=this.__data__,s=Nn(t,e);if(s<0)return!1;var a=t.length-1;return s==a?t.pop():Sn.call(t,s,1),--this.size,!0}function jp(e){var t=this.__data__,s=Nn(t,e);return s<0?r:t[s][1]}function Mp(e){return Nn(this.__data__,e)>-1}function Up(e,t){var s=this.__data__,a=Nn(s,e);return a<0?(++this.size,s.push([e,t])):s[a][1]=t,this}Jr.prototype.clear=Fp,Jr.prototype.delete=$p,Jr.prototype.get=jp,Jr.prototype.has=Mp,Jr.prototype.set=Up;function Yr(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var a=e[t];this.set(a[0],a[1])}}function qp(){this.size=0,this.__data__={hash:new Ti,map:new(bs||Jr),string:new Ti}}function zp(e){var t=Bn(this,e).delete(e);return this.size-=t?1:0,t}function kp(e){return Bn(this,e).get(e)}function Hp(e){return Bn(this,e).has(e)}function Bp(e,t){var s=Bn(this,e),a=s.size;return s.set(e,t),this.size+=s.size==a?0:1,this}Yr.prototype.clear=qp,Yr.prototype.delete=zp,Yr.prototype.get=kp,Yr.prototype.has=Hp,Yr.prototype.set=Bp;function Ni(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new Yr;++t<s;)this.add(e[t])}function Vp(e){return this.__data__.set(e,w),this}function Kp(e){return this.__data__.has(e)}Ni.prototype.add=Ni.prototype.push=Vp,Ni.prototype.has=Kp;function Nr(e){var t=this.__data__=new Jr(e);this.size=t.size}function Gp(){this.__data__=new Jr,this.size=0}function Wp(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function Jp(e){return this.__data__.get(e)}function Yp(e){return this.__data__.has(e)}function Xp(e,t){var s=this.__data__;if(s instanceof Jr){var a=s.__data__;if(!bs||a.length<o-1)return a.push([e,t]),this.size=++s.size,this;s=this.__data__=new Yr(a)}return s.set(e,t),this.size=s.size,this}Nr.prototype.clear=Gp,Nr.prototype.delete=Wp,Nr.prototype.get=Jp,Nr.prototype.has=Yp,Nr.prototype.set=Xp;function Wc(e,t){var s=me(e),a=!s&&ji(e),h=!s&&!a&&yi(e),p=!s&&!a&&!h&&os(e),m=s||a||h||p,_=m?Go(e.length,ap):[],S=_.length;for(var L in e)(t||Ue.call(e,L))&&!(m&&(L=="length"||h&&(L=="offset"||L=="parent")||p&&(L=="buffer"||L=="byteLength"||L=="byteOffset")||ei(L,S)))&&_.push(L);return _}function Jc(e){var t=e.length;return t?e[ha(0,t-1)]:r}function Zp(e,t){return Vn(sr(e),Li(t,0,e.length))}function Qp(e){return Vn(sr(e))}function ea(e,t,s){(s!==r&&!Lr(e[t],s)||s===r&&!(t in e))&&Xr(e,t,s)}function Ss(e,t,s){var a=e[t];(!(Ue.call(e,t)&&Lr(a,s))||s===r&&!(t in e))&&Xr(e,t,s)}function Nn(e,t){for(var s=e.length;s--;)if(Lr(e[s][0],t))return s;return-1}function ed(e,t,s,a){return pi(e,function(h,p,m){t(a,h,s(h),m)}),a}function Yc(e,t){return e&&kr(t,zt(t),e)}function td(e,t){return e&&kr(t,or(t),e)}function Xr(e,t,s){t=="__proto__"&&Pn?Pn(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}function ta(e,t){for(var s=-1,a=t.length,h=C(a),p=e==null;++s<a;)h[s]=p?r:Fa(e,t[s]);return h}function Li(e,t,s){return e===e&&(s!==r&&(e=e<=s?e:s),t!==r&&(e=e>=t?e:t)),e}function Er(e,t,s,a,h,p){var m,_=t&K,S=t&J,L=t&G;if(s&&(m=h?s(e,a,h,p):s(e)),m!==r)return m;if(!ut(e))return e;var D=me(e);if(D){if(m=Hd(e),!_)return sr(e,m)}else{var q=Gt(e),W=q==ee||q==fe;if(yi(e))return wu(e,_);if(q==Pe||q==xe||W&&!h){if(m=S||W?{}:Uu(e),!_)return S?Nd(e,td(m,e)):Td(e,Yc(m,e))}else{if(!ke[q])return h?e:{};m=Bd(e,q,_)}}p||(p=new Nr);var te=p.get(e);if(te)return te;p.set(e,m),dh(e)?e.forEach(function(ae){m.add(Er(ae,t,s,ae,e,p))}):fh(e)&&e.forEach(function(ae,Se){m.set(Se,Er(ae,t,s,Se,e,p))});var oe=L?S?ba:wa:S?or:zt,be=D?r:oe(e);return _r(be||e,function(ae,Se){be&&(Se=ae,ae=e[Se]),Ss(m,Se,Er(ae,t,s,Se,e,p))}),m}function rd(e){var t=zt(e);return function(s){return Xc(s,e,t)}}function Xc(e,t,s){var a=s.length;if(e==null)return!a;for(e=Je(e);a--;){var h=s[a],p=t[h],m=e[h];if(m===r&&!(h in e)||!p(m))return!1}return!0}function Zc(e,t,s){if(typeof e!="function")throw new wr(d);return Ns(function(){e.apply(r,s)},t)}function Ps(e,t,s,a){var h=-1,p=gn,m=!0,_=e.length,S=[],L=t.length;if(!_)return S;s&&(t=nt(t,lr(s))),a?(p=zo,m=!1):t.length>=o&&(p=_s,m=!1,t=new Ni(t));e:for(;++h<_;){var D=e[h],q=s==null?D:s(D);if(D=a||D!==0?D:0,m&&q===q){for(var W=L;W--;)if(t[W]===q)continue e;S.push(D)}else p(t,q,a)||S.push(D)}return S}var pi=Su(zr),Qc=Su(ia,!0);function id(e,t){var s=!0;return pi(e,function(a,h,p){return s=!!t(a,h,p),s}),s}function Ln(e,t,s){for(var a=-1,h=e.length;++a<h;){var p=e[a],m=t(p);if(m!=null&&(_===r?m===m&&!pr(m):s(m,_)))var _=m,S=p}return S}function sd(e,t,s,a){var h=e.length;for(s=_e(s),s<0&&(s=-s>h?0:h+s),a=a===r||a>h?h:_e(a),a<0&&(a+=h),a=s>a?0:vh(a);s<a;)e[s++]=t;return e}function eu(e,t){var s=[];return pi(e,function(a,h,p){t(a,h,p)&&s.push(a)}),s}function Bt(e,t,s,a,h){var p=-1,m=e.length;for(s||(s=Kd),h||(h=[]);++p<m;){var _=e[p];t>0&&s(_)?t>1?Bt(_,t-1,s,a,h):hi(h,_):a||(h[h.length]=_)}return h}var ra=Pu(),tu=Pu(!0);function zr(e,t){return e&&ra(e,t,zt)}function ia(e,t){return e&&tu(e,t,zt)}function Dn(e,t){return ui(t,function(s){return ti(e[s])})}function Di(e,t){t=gi(t,e);for(var s=0,a=t.length;e!=null&&s<a;)e=e[Hr(t[s++])];return s&&s==a?e:r}function ru(e,t,s){var a=t(e);return me(e)?a:hi(a,s(e))}function Xt(e){return e==null?e===r?at:De:Ri&&Ri in Je(e)?qd(e):Qd(e)}function sa(e,t){return e>t}function nd(e,t){return e!=null&&Ue.call(e,t)}function od(e,t){return e!=null&&t in Je(e)}function ad(e,t,s){return e>=Kt(t,s)&&e<Mt(t,s)}function na(e,t,s){for(var a=s?zo:gn,h=e[0].length,p=e.length,m=p,_=C(p),S=1/0,L=[];m--;){var D=e[m];m&&t&&(D=nt(D,lr(t))),S=Kt(D.length,S),_[m]=!s&&(t||h>=120&&D.length>=120)?new Ni(m&&D):r}D=e[0];var q=-1,W=_[0];e:for(;++q<h&&L.length<S;){var te=D[q],oe=t?t(te):te;if(te=s||te!==0?te:0,!(W?_s(W,oe):a(L,oe,s))){for(m=p;--m;){var be=_[m];if(!(be?_s(be,oe):a(e[m],oe,s)))continue e}W&&W.push(oe),L.push(te)}}return L}function cd(e,t,s,a){return zr(e,function(h,p,m){t(a,s(h),p,m)}),a}function As(e,t,s){t=gi(t,e),e=Hu(e,t);var a=e==null?e:e[Hr(Ir(t))];return a==null?r:qt(a,e,s)}function iu(e){return yt(e)&&Xt(e)==xe}function ud(e){return yt(e)&&Xt(e)==Le}function hd(e){return yt(e)&&Xt(e)==P}function Cs(e,t,s,a,h){return e===t?!0:e==null||t==null||!yt(e)&&!yt(t)?e!==e&&t!==t:ld(e,t,s,a,Cs,h)}function ld(e,t,s,a,h,p){var m=me(e),_=me(t),S=m?St:Gt(e),L=_?St:Gt(t);S=S==xe?Pe:S,L=L==xe?Pe:L;var D=S==Pe,q=L==Pe,W=S==L;if(W&&yi(e)){if(!yi(t))return!1;m=!0,D=!1}if(W&&!D)return p||(p=new Nr),m||os(e)?$u(e,t,s,a,h,p):Md(e,t,S,s,a,h,p);if(!(s&j)){var te=D&&Ue.call(e,"__wrapped__"),oe=q&&Ue.call(t,"__wrapped__");if(te||oe){var be=te?e.value():e,ae=oe?t.value():t;return p||(p=new Nr),h(be,ae,s,a,p)}}return W?(p||(p=new Nr),Ud(e,t,s,a,h,p)):!1}function fd(e){return yt(e)&&Gt(e)==we}function oa(e,t,s,a){var h=s.length,p=h,m=!a;if(e==null)return!p;for(e=Je(e);h--;){var _=s[h];if(m&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++h<p;){_=s[h];var S=_[0],L=e[S],D=_[1];if(m&&_[2]){if(L===r&&!(S in e))return!1}else{var q=new Nr;if(a)var W=a(L,D,S,e,t,q);if(!(W===r?Cs(D,L,j|V,a,q):W))return!1}}return!0}function su(e){if(!ut(e)||Wd(e))return!1;var t=ti(e)?fp:So;return t.test($i(e))}function pd(e){return yt(e)&&Xt(e)==ot}function dd(e){return yt(e)&&Gt(e)==$e}function gd(e){return yt(e)&&Xn(e.length)&&!!Ke[Xt(e)]}function nu(e){return typeof e=="function"?e:e==null?ar:typeof e=="object"?me(e)?cu(e[0],e[1]):au(e):Ah(e)}function aa(e){if(!Ts(e))return mp(e);var t=[];for(var s in Je(e))Ue.call(e,s)&&s!="constructor"&&t.push(s);return t}function vd(e){if(!ut(e))return Zd(e);var t=Ts(e),s=[];for(var a in e)a=="constructor"&&(t||!Ue.call(e,a))||s.push(a);return s}function ca(e,t){return e<t}function ou(e,t){var s=-1,a=nr(e)?C(e.length):[];return pi(e,function(h,p,m){a[++s]=t(h,p,m)}),a}function au(e){var t=xa(e);return t.length==1&&t[0][2]?zu(t[0][0],t[0][1]):function(s){return s===e||oa(s,e,t)}}function cu(e,t){return Sa(e)&&qu(t)?zu(Hr(e),t):function(s){var a=Fa(s,e);return a===r&&a===t?$a(s,e):Cs(t,a,j|V)}}function Fn(e,t,s,a,h){e!==t&&ra(t,function(p,m){if(h||(h=new Nr),ut(p))yd(e,t,m,s,Fn,a,h);else{var _=a?a(Aa(e,m),p,m+"",e,t,h):r;_===r&&(_=p),ea(e,m,_)}},or)}function yd(e,t,s,a,h,p,m){var _=Aa(e,s),S=Aa(t,s),L=m.get(S);if(L){ea(e,s,L);return}var D=p?p(_,S,s+"",e,t,m):r,q=D===r;if(q){var W=me(S),te=!W&&yi(S),oe=!W&&!te&&os(S);D=S,W||te||oe?me(_)?D=_:Et(_)?D=sr(_):te?(q=!1,D=wu(S,!0)):oe?(q=!1,D=bu(S,!0)):D=[]:Ls(S)||ji(S)?(D=_,ji(_)?D=yh(_):(!ut(_)||ti(_))&&(D=Uu(S))):q=!1}q&&(m.set(S,D),h(D,S,a,p,m),m.delete(S)),ea(e,s,D)}function uu(e,t){var s=e.length;if(s)return t+=t<0?s:0,ei(t,s)?e[t]:r}function hu(e,t,s){t.length?t=nt(t,function(p){return me(p)?function(m){return Di(m,p.length===1?p[0]:p)}:p}):t=[ar];var a=-1;t=nt(t,lr(se()));var h=ou(e,function(p,m,_){var S=nt(t,function(L){return L(p)});return{criteria:S,index:++a,value:p}});return Bf(h,function(p,m){return Rd(p,m,s)})}function md(e,t){return lu(e,t,function(s,a){return $a(e,a)})}function lu(e,t,s){for(var a=-1,h=t.length,p={};++a<h;){var m=t[a],_=Di(e,m);s(_,m)&&Os(p,gi(m,e),_)}return p}function _d(e){return function(t){return Di(t,e)}}function ua(e,t,s,a){var h=a?Hf:Ji,p=-1,m=t.length,_=e;for(e===t&&(t=sr(t)),s&&(_=nt(e,lr(s)));++p<m;)for(var S=0,L=t[p],D=s?s(L):L;(S=h(_,D,S,a))>-1;)_!==e&&Sn.call(_,S,1),Sn.call(e,S,1);return e}function fu(e,t){for(var s=e?t.length:0,a=s-1;s--;){var h=t[s];if(s==a||h!==p){var p=h;ei(h)?Sn.call(e,h,1):pa(e,h)}}return e}function ha(e,t){return e+Cn(Kc()*(t-e+1))}function wd(e,t,s,a){for(var h=-1,p=Mt(An((t-e)/(s||1)),0),m=C(p);p--;)m[a?p:++h]=e,e+=s;return m}function la(e,t){var s="";if(!e||t<1||t>k)return s;do t%2&&(s+=e),t=Cn(t/2),t&&(e+=e);while(t);return s}function Ie(e,t){return Ca(ku(e,t,ar),e+"")}function bd(e){return Jc(as(e))}function Ed(e,t){var s=as(e);return Vn(s,Li(t,0,s.length))}function Os(e,t,s,a){if(!ut(e))return e;t=gi(t,e);for(var h=-1,p=t.length,m=p-1,_=e;_!=null&&++h<p;){var S=Hr(t[h]),L=s;if(S==="__proto__"||S==="constructor"||S==="prototype")return e;if(h!=m){var D=_[S];L=a?a(D,S,_):r,L===r&&(L=ut(D)?D:ei(t[h+1])?[]:{})}Ss(_,S,L),_=_[S]}return e}var pu=On?function(e,t){return On.set(e,t),e}:ar,xd=Pn?function(e,t){return Pn(e,"toString",{configurable:!0,enumerable:!1,value:Ma(t),writable:!0})}:ar;function Id(e){return Vn(as(e))}function xr(e,t,s){var a=-1,h=e.length;t<0&&(t=-t>h?0:h+t),s=s>h?h:s,s<0&&(s+=h),h=t>s?0:s-t>>>0,t>>>=0;for(var p=C(h);++a<h;)p[a]=e[a+t];return p}function Sd(e,t){var s;return pi(e,function(a,h,p){return s=t(a,h,p),!s}),!!s}function $n(e,t,s){var a=0,h=e==null?a:e.length;if(typeof t=="number"&&t===t&&h<=Be){for(;a<h;){var p=a+h>>>1,m=e[p];m!==null&&!pr(m)&&(s?m<=t:m<t)?a=p+1:h=p}return h}return fa(e,t,ar,s)}function fa(e,t,s,a){var h=0,p=e==null?0:e.length;if(p===0)return 0;t=s(t);for(var m=t!==t,_=t===null,S=pr(t),L=t===r;h<p;){var D=Cn((h+p)/2),q=s(e[D]),W=q!==r,te=q===null,oe=q===q,be=pr(q);if(m)var ae=a||oe;else L?ae=oe&&(a||W):_?ae=oe&&W&&(a||!te):S?ae=oe&&W&&!te&&(a||!be):te||be?ae=!1:ae=a?q<=t:q<t;ae?h=D+1:p=D}return Kt(p,Ye)}function du(e,t){for(var s=-1,a=e.length,h=0,p=[];++s<a;){var m=e[s],_=t?t(m):m;if(!s||!Lr(_,S)){var S=_;p[h++]=m===0?0:m}}return p}function gu(e){return typeof e=="number"?e:pr(e)?z:+e}function fr(e){if(typeof e=="string")return e;if(me(e))return nt(e,fr)+"";if(pr(e))return Gc?Gc.call(e):"";var t=e+"";return t=="0"&&1/e==-ce?"-0":t}function di(e,t,s){var a=-1,h=gn,p=e.length,m=!0,_=[],S=_;if(s)m=!1,h=zo;else if(p>=o){var L=t?null:$d(e);if(L)return yn(L);m=!1,h=_s,S=new Ni}else S=t?[]:_;e:for(;++a<p;){var D=e[a],q=t?t(D):D;if(D=s||D!==0?D:0,m&&q===q){for(var W=S.length;W--;)if(S[W]===q)continue e;t&&S.push(q),_.push(D)}else h(S,q,s)||(S!==_&&S.push(q),_.push(D))}return _}function pa(e,t){return t=gi(t,e),e=Hu(e,t),e==null||delete e[Hr(Ir(t))]}function vu(e,t,s,a){return Os(e,t,s(Di(e,t)),a)}function jn(e,t,s,a){for(var h=e.length,p=a?h:-1;(a?p--:++p<h)&&t(e[p],p,e););return s?xr(e,a?0:p,a?p+1:h):xr(e,a?p+1:0,a?h:p)}function yu(e,t){var s=e;return s instanceof Ae&&(s=s.value()),ko(t,function(a,h){return h.func.apply(h.thisArg,hi([a],h.args))},s)}function da(e,t,s){var a=e.length;if(a<2)return a?di(e[0]):[];for(var h=-1,p=C(a);++h<a;)for(var m=e[h],_=-1;++_<a;)_!=h&&(p[h]=Ps(p[h]||m,e[_],t,s));return di(Bt(p,1),t,s)}function mu(e,t,s){for(var a=-1,h=e.length,p=t.length,m={};++a<h;){var _=a<p?t[a]:r;s(m,e[a],_)}return m}function ga(e){return Et(e)?e:[]}function va(e){return typeof e=="function"?e:ar}function gi(e,t){return me(e)?e:Sa(e,t)?[e]:Gu(je(e))}var Pd=Ie;function vi(e,t,s){var a=e.length;return s=s===r?a:s,!t&&s>=a?e:xr(e,t,s)}var _u=pp||function(e){return Ce.clearTimeout(e)};function wu(e,t){if(t)return e.slice();var s=e.length,a=zc?zc(s):new e.constructor(s);return e.copy(a),a}function ya(e){var t=new e.constructor(e.byteLength);return new xn(t).set(new xn(e)),t}function Ad(e,t){var s=t?ya(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function Cd(e){var t=new e.constructor(e.source,yr.exec(e));return t.lastIndex=e.lastIndex,t}function Od(e){return Is?Je(Is.call(e)):{}}function bu(e,t){var s=t?ya(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function Eu(e,t){if(e!==t){var s=e!==r,a=e===null,h=e===e,p=pr(e),m=t!==r,_=t===null,S=t===t,L=pr(t);if(!_&&!L&&!p&&e>t||p&&m&&S&&!_&&!L||a&&m&&S||!s&&S||!h)return 1;if(!a&&!p&&!L&&e<t||L&&s&&h&&!a&&!p||_&&s&&h||!m&&h||!S)return-1}return 0}function Rd(e,t,s){for(var a=-1,h=e.criteria,p=t.criteria,m=h.length,_=s.length;++a<m;){var S=Eu(h[a],p[a]);if(S){if(a>=_)return S;var L=s[a];return S*(L=="desc"?-1:1)}}return e.index-t.index}function xu(e,t,s,a){for(var h=-1,p=e.length,m=s.length,_=-1,S=t.length,L=Mt(p-m,0),D=C(S+L),q=!a;++_<S;)D[_]=t[_];for(;++h<m;)(q||h<p)&&(D[s[h]]=e[h]);for(;L--;)D[_++]=e[h++];return D}function Iu(e,t,s,a){for(var h=-1,p=e.length,m=-1,_=s.length,S=-1,L=t.length,D=Mt(p-_,0),q=C(D+L),W=!a;++h<D;)q[h]=e[h];for(var te=h;++S<L;)q[te+S]=t[S];for(;++m<_;)(W||h<p)&&(q[te+s[m]]=e[h++]);return q}function sr(e,t){var s=-1,a=e.length;for(t||(t=C(a));++s<a;)t[s]=e[s];return t}function kr(e,t,s,a){var h=!s;s||(s={});for(var p=-1,m=t.length;++p<m;){var _=t[p],S=a?a(s[_],e[_],_,s,e):r;S===r&&(S=e[_]),h?Xr(s,_,S):Ss(s,_,S)}return s}function Td(e,t){return kr(e,Ia(e),t)}function Nd(e,t){return kr(e,ju(e),t)}function Mn(e,t){return function(s,a){var h=me(s)?jf:ed,p=t?t():{};return h(s,e,se(a,2),p)}}function is(e){return Ie(function(t,s){var a=-1,h=s.length,p=h>1?s[h-1]:r,m=h>2?s[2]:r;for(p=e.length>3&&typeof p=="function"?(h--,p):r,m&&Zt(s[0],s[1],m)&&(p=h<3?r:p,h=1),t=Je(t);++a<h;){var _=s[a];_&&e(t,_,a,p)}return t})}function Su(e,t){return function(s,a){if(s==null)return s;if(!nr(s))return e(s,a);for(var h=s.length,p=t?h:-1,m=Je(s);(t?p--:++p<h)&&a(m[p],p,m)!==!1;);return s}}function Pu(e){return function(t,s,a){for(var h=-1,p=Je(t),m=a(t),_=m.length;_--;){var S=m[e?_:++h];if(s(p[S],S,p)===!1)break}return t}}function Ld(e,t,s){var a=t&ie,h=Rs(e);function p(){var m=this&&this!==Ce&&this instanceof p?h:e;return m.apply(a?s:this,arguments)}return p}function Au(e){return function(t){t=je(t);var s=Yi(t)?Tr(t):r,a=s?s[0]:t.charAt(0),h=s?vi(s,1).join(""):t.slice(1);return a[e]()+h}}function ss(e){return function(t){return ko(Sh(Ih(t).replace(ys,"")),e,"")}}function Rs(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var s=rs(e.prototype),a=e.apply(s,t);return ut(a)?a:s}}function Dd(e,t,s){var a=Rs(e);function h(){for(var p=arguments.length,m=C(p),_=p,S=ns(h);_--;)m[_]=arguments[_];var L=p<3&&m[0]!==S&&m[p-1]!==S?[]:li(m,S);if(p-=L.length,p<s)return Nu(e,t,Un,h.placeholder,r,m,L,r,r,s-p);var D=this&&this!==Ce&&this instanceof h?a:e;return qt(D,this,m)}return h}function Cu(e){return function(t,s,a){var h=Je(t);if(!nr(t)){var p=se(s,3);t=zt(t),s=function(_){return p(h[_],_,h)}}var m=e(t,s,a);return m>-1?h[p?t[m]:m]:r}}function Ou(e){return Qr(function(t){var s=t.length,a=s,h=br.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new wr(d);if(h&&!m&&Hn(p)=="wrapper")var m=new br([],!0)}for(a=m?a:s;++a<s;){p=t[a];var _=Hn(p),S=_=="wrapper"?Ea(p):r;S&&Pa(S[0])&&S[1]==(M|pe|le|B)&&!S[4].length&&S[9]==1?m=m[Hn(S[0])].apply(m,S[3]):m=p.length==1&&Pa(p)?m[_]():m.thru(p)}return function(){var L=arguments,D=L[0];if(m&&L.length==1&&me(D))return m.plant(D).value();for(var q=0,W=s?t[q].apply(this,L):D;++q<s;)W=t[q].call(this,W);return W}})}function Un(e,t,s,a,h,p,m,_,S,L){var D=t&M,q=t&ie,W=t&Ee,te=t&(pe|he),oe=t&ve,be=W?r:Rs(e);function ae(){for(var Se=arguments.length,Oe=C(Se),dr=Se;dr--;)Oe[dr]=arguments[dr];if(te)var Qt=ns(ae),gr=Kf(Oe,Qt);if(a&&(Oe=xu(Oe,a,h,te)),p&&(Oe=Iu(Oe,p,m,te)),Se-=gr,te&&Se<L){var xt=li(Oe,Qt);return Nu(e,t,Un,ae.placeholder,s,Oe,xt,_,S,L-Se)}var Dr=q?s:this,ii=W?Dr[e]:e;return Se=Oe.length,_?Oe=eg(Oe,_):oe&&Se>1&&Oe.reverse(),D&&S<Se&&(Oe.length=S),this&&this!==Ce&&this instanceof ae&&(ii=be||Rs(ii)),ii.apply(Dr,Oe)}return ae}function Ru(e,t){return function(s,a){return cd(s,e,t(a),{})}}function qn(e,t){return function(s,a){var h;if(s===r&&a===r)return t;if(s!==r&&(h=s),a!==r){if(h===r)return a;typeof s=="string"||typeof a=="string"?(s=fr(s),a=fr(a)):(s=gu(s),a=gu(a)),h=e(s,a)}return h}}function ma(e){return Qr(function(t){return t=nt(t,lr(se())),Ie(function(s){var a=this;return e(t,function(h){return qt(h,a,s)})})})}function zn(e,t){t=t===r?" ":fr(t);var s=t.length;if(s<2)return s?la(t,e):t;var a=la(t,An(e/Xi(t)));return Yi(t)?vi(Tr(a),0,e).join(""):a.slice(0,e)}function Fd(e,t,s,a){var h=t&ie,p=Rs(e);function m(){for(var _=-1,S=arguments.length,L=-1,D=a.length,q=C(D+S),W=this&&this!==Ce&&this instanceof m?p:e;++L<D;)q[L]=a[L];for(;S--;)q[L++]=arguments[++_];return qt(W,h?s:this,q)}return m}function Tu(e){return function(t,s,a){return a&&typeof a!="number"&&Zt(t,s,a)&&(s=a=r),t=ri(t),s===r?(s=t,t=0):s=ri(s),a=a===r?t<s?1:-1:ri(a),wd(t,s,a,e)}}function kn(e){return function(t,s){return typeof t=="string"&&typeof s=="string"||(t=Sr(t),s=Sr(s)),e(t,s)}}function Nu(e,t,s,a,h,p,m,_,S,L){var D=t&pe,q=D?m:r,W=D?r:m,te=D?p:r,oe=D?r:p;t|=D?le:T,t&=~(D?T:le),t&ge||(t&=~(ie|Ee));var be=[e,t,h,te,q,oe,W,_,S,L],ae=s.apply(r,be);return Pa(e)&&Bu(ae,be),ae.placeholder=a,Vu(ae,e,t)}function _a(e){var t=jt[e];return function(s,a){if(s=Sr(s),a=a==null?0:Kt(_e(a),292),a&&Vc(s)){var h=(je(s)+"e").split("e"),p=t(h[0]+"e"+(+h[1]+a));return h=(je(p)+"e").split("e"),+(h[0]+"e"+(+h[1]-a))}return t(s)}}var $d=es&&1/yn(new es([,-0]))[1]==ce?function(e){return new es(e)}:za;function Lu(e){return function(t){var s=Gt(t);return s==we?Jo(t):s==$e?Qf(t):Vf(t,e(t))}}function Zr(e,t,s,a,h,p,m,_){var S=t&Ee;if(!S&&typeof e!="function")throw new wr(d);var L=a?a.length:0;if(L||(t&=~(le|T),a=h=r),m=m===r?m:Mt(_e(m),0),_=_===r?_:_e(_),L-=h?h.length:0,t&T){var D=a,q=h;a=h=r}var W=S?r:Ea(e),te=[e,t,s,a,h,D,q,p,m,_];if(W&&Xd(te,W),e=te[0],t=te[1],s=te[2],a=te[3],h=te[4],_=te[9]=te[9]===r?S?0:e.length:Mt(te[9]-L,0),!_&&t&(pe|he)&&(t&=~(pe|he)),!t||t==ie)var oe=Ld(e,t,s);else t==pe||t==he?oe=Dd(e,t,_):(t==le||t==(ie|le))&&!h.length?oe=Fd(e,t,s,a):oe=Un.apply(r,te);var be=W?pu:Bu;return Vu(be(oe,te),e,t)}function Du(e,t,s,a){return e===r||Lr(e,Qi[s])&&!Ue.call(a,s)?t:e}function Fu(e,t,s,a,h,p){return ut(e)&&ut(t)&&(p.set(t,e),Fn(e,t,r,Fu,p),p.delete(t)),e}function jd(e){return Ls(e)?r:e}function $u(e,t,s,a,h,p){var m=s&j,_=e.length,S=t.length;if(_!=S&&!(m&&S>_))return!1;var L=p.get(e),D=p.get(t);if(L&&D)return L==t&&D==e;var q=-1,W=!0,te=s&V?new Ni:r;for(p.set(e,t),p.set(t,e);++q<_;){var oe=e[q],be=t[q];if(a)var ae=m?a(be,oe,q,t,e,p):a(oe,be,q,e,t,p);if(ae!==r){if(ae)continue;W=!1;break}if(te){if(!Ho(t,function(Se,Oe){if(!_s(te,Oe)&&(oe===Se||h(oe,Se,s,a,p)))return te.push(Oe)})){W=!1;break}}else if(!(oe===be||h(oe,be,s,a,p))){W=!1;break}}return p.delete(e),p.delete(t),W}function Md(e,t,s,a,h,p,m){switch(s){case Ve:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Le:return!(e.byteLength!=t.byteLength||!p(new xn(e),new xn(t)));case O:case P:case Ne:return Lr(+e,+t);case b:return e.name==t.name&&e.message==t.message;case ot:case Ze:return e==t+"";case we:var _=Jo;case $e:var S=a&j;if(_||(_=yn),e.size!=t.size&&!S)return!1;var L=m.get(e);if(L)return L==t;a|=V,m.set(e,t);var D=$u(_(e),_(t),a,h,p,m);return m.delete(e),D;case Qe:if(Is)return Is.call(e)==Is.call(t)}return!1}function Ud(e,t,s,a,h,p){var m=s&j,_=wa(e),S=_.length,L=wa(t),D=L.length;if(S!=D&&!m)return!1;for(var q=S;q--;){var W=_[q];if(!(m?W in t:Ue.call(t,W)))return!1}var te=p.get(e),oe=p.get(t);if(te&&oe)return te==t&&oe==e;var be=!0;p.set(e,t),p.set(t,e);for(var ae=m;++q<S;){W=_[q];var Se=e[W],Oe=t[W];if(a)var dr=m?a(Oe,Se,W,t,e,p):a(Se,Oe,W,e,t,p);if(!(dr===r?Se===Oe||h(Se,Oe,s,a,p):dr)){be=!1;break}ae||(ae=W=="constructor")}if(be&&!ae){var Qt=e.constructor,gr=t.constructor;Qt!=gr&&"constructor"in e&&"constructor"in t&&!(typeof Qt=="function"&&Qt instanceof Qt&&typeof gr=="function"&&gr instanceof gr)&&(be=!1)}return p.delete(e),p.delete(t),be}function Qr(e){return Ca(ku(e,r,Xu),e+"")}function wa(e){return ru(e,zt,Ia)}function ba(e){return ru(e,or,ju)}var Ea=On?function(e){return On.get(e)}:za;function Hn(e){for(var t=e.name+"",s=ts[t],a=Ue.call(ts,t)?s.length:0;a--;){var h=s[a],p=h.func;if(p==null||p==e)return h.name}return t}function ns(e){var t=Ue.call(f,"placeholder")?f:e;return t.placeholder}function se(){var e=f.iteratee||Ua;return e=e===Ua?nu:e,arguments.length?e(arguments[0],arguments[1]):e}function Bn(e,t){var s=e.__data__;return Gd(t)?s[typeof t=="string"?"string":"hash"]:s.map}function xa(e){for(var t=zt(e),s=t.length;s--;){var a=t[s],h=e[a];t[s]=[a,h,qu(h)]}return t}function Fi(e,t){var s=Yf(e,t);return su(s)?s:r}function qd(e){var t=Ue.call(e,Ri),s=e[Ri];try{e[Ri]=r;var a=!0}catch{}var h=bn.call(e);return a&&(t?e[Ri]=s:delete e[Ri]),h}var Ia=Xo?function(e){return e==null?[]:(e=Je(e),ui(Xo(e),function(t){return Hc.call(e,t)}))}:ka,ju=Xo?function(e){for(var t=[];e;)hi(t,Ia(e)),e=In(e);return t}:ka,Gt=Xt;(Zo&&Gt(new Zo(new ArrayBuffer(1)))!=Ve||bs&&Gt(new bs)!=we||Qo&&Gt(Qo.resolve())!=Pt||es&&Gt(new es)!=$e||Es&&Gt(new Es)!=ze)&&(Gt=function(e){var t=Xt(e),s=t==Pe?e.constructor:r,a=s?$i(s):"";if(a)switch(a){case Ep:return Ve;case xp:return we;case Ip:return Pt;case Sp:return $e;case Pp:return ze}return t});function zd(e,t,s){for(var a=-1,h=s.length;++a<h;){var p=s[a],m=p.size;switch(p.type){case"drop":e+=m;break;case"dropRight":t-=m;break;case"take":t=Kt(t,e+m);break;case"takeRight":e=Mt(e,t-m);break}}return{start:e,end:t}}function kd(e){var t=e.match(Xe);return t?t[1].split(Tt):[]}function Mu(e,t,s){t=gi(t,e);for(var a=-1,h=t.length,p=!1;++a<h;){var m=Hr(t[a]);if(!(p=e!=null&&s(e,m)))break;e=e[m]}return p||++a!=h?p:(h=e==null?0:e.length,!!h&&Xn(h)&&ei(m,h)&&(me(e)||ji(e)))}function Hd(e){var t=e.length,s=new e.constructor(t);return t&&typeof e[0]=="string"&&Ue.call(e,"index")&&(s.index=e.index,s.input=e.input),s}function Uu(e){return typeof e.constructor=="function"&&!Ts(e)?rs(In(e)):{}}function Bd(e,t,s){var a=e.constructor;switch(t){case Le:return ya(e);case O:case P:return new a(+e);case Ve:return Ad(e,s);case ht:case Me:case At:case $t:case kt:case Ht:case Ut:case Wt:case rr:return bu(e,s);case we:return new a;case Ne:case Ze:return new a(e);case ot:return Cd(e);case $e:return new a;case Qe:return Od(e)}}function Vd(e,t){var s=t.length;if(!s)return e;var a=s-1;return t[a]=(s>1?"& ":"")+t[a],t=t.join(s>2?", ":" "),e.replace(vt,`{ +/* [wrapped with `+t+`] */ +`)}function Kd(e){return me(e)||ji(e)||!!(Bc&&e&&e[Bc])}function ei(e,t){var s=typeof e;return t=t??k,!!t&&(s=="number"||s!="symbol"&&Ao.test(e))&&e>-1&&e%1==0&&e<t}function Zt(e,t,s){if(!ut(s))return!1;var a=typeof t;return(a=="number"?nr(s)&&ei(t,s.length):a=="string"&&t in s)?Lr(s[t],e):!1}function Sa(e,t){if(me(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||pr(e)?!0:Ct.test(e)||!st.test(e)||t!=null&&e in Je(t)}function Gd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Pa(e){var t=Hn(e),s=f[t];if(typeof s!="function"||!(t in Ae.prototype))return!1;if(e===s)return!0;var a=Ea(s);return!!a&&e===a[0]}function Wd(e){return!!qc&&qc in e}var Jd=_n?ti:Ha;function Ts(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||Qi;return e===s}function qu(e){return e===e&&!ut(e)}function zu(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in Je(s))}}function Yd(e){var t=Jn(e,function(a){return s.size===A&&s.clear(),a}),s=t.cache;return t}function Xd(e,t){var s=e[1],a=t[1],h=s|a,p=h<(ie|Ee|M),m=a==M&&s==pe||a==M&&s==B&&e[7].length<=t[8]||a==(M|B)&&t[7].length<=t[8]&&s==pe;if(!(p||m))return e;a&ie&&(e[2]=t[2],h|=s&ie?0:ge);var _=t[3];if(_){var S=e[3];e[3]=S?xu(S,_,t[4]):_,e[4]=S?li(e[3],F):t[4]}return _=t[5],_&&(S=e[5],e[5]=S?Iu(S,_,t[6]):_,e[6]=S?li(e[5],F):t[6]),_=t[7],_&&(e[7]=_),a&M&&(e[8]=e[8]==null?t[8]:Kt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=h,e}function Zd(e){var t=[];if(e!=null)for(var s in Je(e))t.push(s);return t}function Qd(e){return bn.call(e)}function ku(e,t,s){return t=Mt(t===r?e.length-1:t,0),function(){for(var a=arguments,h=-1,p=Mt(a.length-t,0),m=C(p);++h<p;)m[h]=a[t+h];h=-1;for(var _=C(t+1);++h<t;)_[h]=a[h];return _[t]=s(m),qt(e,this,_)}}function Hu(e,t){return t.length<2?e:Di(e,xr(t,0,-1))}function eg(e,t){for(var s=e.length,a=Kt(t.length,s),h=sr(e);a--;){var p=t[a];e[a]=ei(p,s)?h[p]:r}return e}function Aa(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Bu=Ku(pu),Ns=gp||function(e,t){return Ce.setTimeout(e,t)},Ca=Ku(xd);function Vu(e,t,s){var a=t+"";return Ca(e,Vd(a,tg(kd(a),s)))}function Ku(e){var t=0,s=0;return function(){var a=_p(),h=qe-(a-s);if(s=a,h>0){if(++t>=Te)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Vn(e,t){var s=-1,a=e.length,h=a-1;for(t=t===r?a:t;++s<t;){var p=ha(s,h),m=e[p];e[p]=e[s],e[s]=m}return e.length=t,e}var Gu=Yd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ot,function(s,a,h,p){t.push(h?p.replace(bo,"$1"):a||s)}),t});function Hr(e){if(typeof e=="string"||pr(e))return e;var t=e+"";return t=="0"&&1/e==-ce?"-0":t}function $i(e){if(e!=null){try{return wn.call(e)}catch{}try{return e+""}catch{}}return""}function tg(e,t){return _r(jr,function(s){var a="_."+s[0];t&s[1]&&!gn(e,a)&&e.push(a)}),e.sort()}function Wu(e){if(e instanceof Ae)return e.clone();var t=new br(e.__wrapped__,e.__chain__);return t.__actions__=sr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function rg(e,t,s){(s?Zt(e,t,s):t===r)?t=1:t=Mt(_e(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var h=0,p=0,m=C(An(a/t));h<a;)m[p++]=xr(e,h,h+=t);return m}function ig(e){for(var t=-1,s=e==null?0:e.length,a=0,h=[];++t<s;){var p=e[t];p&&(h[a++]=p)}return h}function sg(){var e=arguments.length;if(!e)return[];for(var t=C(e-1),s=arguments[0],a=e;a--;)t[a-1]=arguments[a];return hi(me(s)?sr(s):[s],Bt(t,1))}var ng=Ie(function(e,t){return Et(e)?Ps(e,Bt(t,1,Et,!0)):[]}),og=Ie(function(e,t){var s=Ir(t);return Et(s)&&(s=r),Et(e)?Ps(e,Bt(t,1,Et,!0),se(s,2)):[]}),ag=Ie(function(e,t){var s=Ir(t);return Et(s)&&(s=r),Et(e)?Ps(e,Bt(t,1,Et,!0),r,s):[]});function cg(e,t,s){var a=e==null?0:e.length;return a?(t=s||t===r?1:_e(t),xr(e,t<0?0:t,a)):[]}function ug(e,t,s){var a=e==null?0:e.length;return a?(t=s||t===r?1:_e(t),t=a-t,xr(e,0,t<0?0:t)):[]}function hg(e,t){return e&&e.length?jn(e,se(t,3),!0,!0):[]}function lg(e,t){return e&&e.length?jn(e,se(t,3),!0):[]}function fg(e,t,s,a){var h=e==null?0:e.length;return h?(s&&typeof s!="number"&&Zt(e,t,s)&&(s=0,a=h),sd(e,t,s,a)):[]}function Ju(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var h=s==null?0:_e(s);return h<0&&(h=Mt(a+h,0)),vn(e,se(t,3),h)}function Yu(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var h=a-1;return s!==r&&(h=_e(s),h=s<0?Mt(a+h,0):Kt(h,a-1)),vn(e,se(t,3),h,!0)}function Xu(e){var t=e==null?0:e.length;return t?Bt(e,1):[]}function pg(e){var t=e==null?0:e.length;return t?Bt(e,ce):[]}function dg(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:_e(t),Bt(e,t)):[]}function gg(e){for(var t=-1,s=e==null?0:e.length,a={};++t<s;){var h=e[t];a[h[0]]=h[1]}return a}function Zu(e){return e&&e.length?e[0]:r}function vg(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var h=s==null?0:_e(s);return h<0&&(h=Mt(a+h,0)),Ji(e,t,h)}function yg(e){var t=e==null?0:e.length;return t?xr(e,0,-1):[]}var mg=Ie(function(e){var t=nt(e,ga);return t.length&&t[0]===e[0]?na(t):[]}),_g=Ie(function(e){var t=Ir(e),s=nt(e,ga);return t===Ir(s)?t=r:s.pop(),s.length&&s[0]===e[0]?na(s,se(t,2)):[]}),wg=Ie(function(e){var t=Ir(e),s=nt(e,ga);return t=typeof t=="function"?t:r,t&&s.pop(),s.length&&s[0]===e[0]?na(s,r,t):[]});function bg(e,t){return e==null?"":yp.call(e,t)}function Ir(e){var t=e==null?0:e.length;return t?e[t-1]:r}function Eg(e,t,s){var a=e==null?0:e.length;if(!a)return-1;var h=a;return s!==r&&(h=_e(s),h=h<0?Mt(a+h,0):Kt(h,a-1)),t===t?tp(e,t,h):vn(e,Nc,h,!0)}function xg(e,t){return e&&e.length?uu(e,_e(t)):r}var Ig=Ie(Qu);function Qu(e,t){return e&&e.length&&t&&t.length?ua(e,t):e}function Sg(e,t,s){return e&&e.length&&t&&t.length?ua(e,t,se(s,2)):e}function Pg(e,t,s){return e&&e.length&&t&&t.length?ua(e,t,r,s):e}var Ag=Qr(function(e,t){var s=e==null?0:e.length,a=ta(e,t);return fu(e,nt(t,function(h){return ei(h,s)?+h:h}).sort(Eu)),a});function Cg(e,t){var s=[];if(!(e&&e.length))return s;var a=-1,h=[],p=e.length;for(t=se(t,3);++a<p;){var m=e[a];t(m,a,e)&&(s.push(m),h.push(a))}return fu(e,h),s}function Oa(e){return e==null?e:bp.call(e)}function Og(e,t,s){var a=e==null?0:e.length;return a?(s&&typeof s!="number"&&Zt(e,t,s)?(t=0,s=a):(t=t==null?0:_e(t),s=s===r?a:_e(s)),xr(e,t,s)):[]}function Rg(e,t){return $n(e,t)}function Tg(e,t,s){return fa(e,t,se(s,2))}function Ng(e,t){var s=e==null?0:e.length;if(s){var a=$n(e,t);if(a<s&&Lr(e[a],t))return a}return-1}function Lg(e,t){return $n(e,t,!0)}function Dg(e,t,s){return fa(e,t,se(s,2),!0)}function Fg(e,t){var s=e==null?0:e.length;if(s){var a=$n(e,t,!0)-1;if(Lr(e[a],t))return a}return-1}function $g(e){return e&&e.length?du(e):[]}function jg(e,t){return e&&e.length?du(e,se(t,2)):[]}function Mg(e){var t=e==null?0:e.length;return t?xr(e,1,t):[]}function Ug(e,t,s){return e&&e.length?(t=s||t===r?1:_e(t),xr(e,0,t<0?0:t)):[]}function qg(e,t,s){var a=e==null?0:e.length;return a?(t=s||t===r?1:_e(t),t=a-t,xr(e,t<0?0:t,a)):[]}function zg(e,t){return e&&e.length?jn(e,se(t,3),!1,!0):[]}function kg(e,t){return e&&e.length?jn(e,se(t,3)):[]}var Hg=Ie(function(e){return di(Bt(e,1,Et,!0))}),Bg=Ie(function(e){var t=Ir(e);return Et(t)&&(t=r),di(Bt(e,1,Et,!0),se(t,2))}),Vg=Ie(function(e){var t=Ir(e);return t=typeof t=="function"?t:r,di(Bt(e,1,Et,!0),r,t)});function Kg(e){return e&&e.length?di(e):[]}function Gg(e,t){return e&&e.length?di(e,se(t,2)):[]}function Wg(e,t){return t=typeof t=="function"?t:r,e&&e.length?di(e,r,t):[]}function Ra(e){if(!(e&&e.length))return[];var t=0;return e=ui(e,function(s){if(Et(s))return t=Mt(s.length,t),!0}),Go(t,function(s){return nt(e,Bo(s))})}function eh(e,t){if(!(e&&e.length))return[];var s=Ra(e);return t==null?s:nt(s,function(a){return qt(t,r,a)})}var Jg=Ie(function(e,t){return Et(e)?Ps(e,t):[]}),Yg=Ie(function(e){return da(ui(e,Et))}),Xg=Ie(function(e){var t=Ir(e);return Et(t)&&(t=r),da(ui(e,Et),se(t,2))}),Zg=Ie(function(e){var t=Ir(e);return t=typeof t=="function"?t:r,da(ui(e,Et),r,t)}),Qg=Ie(Ra);function ev(e,t){return mu(e||[],t||[],Ss)}function tv(e,t){return mu(e||[],t||[],Os)}var rv=Ie(function(e){var t=e.length,s=t>1?e[t-1]:r;return s=typeof s=="function"?(e.pop(),s):r,eh(e,s)});function th(e){var t=f(e);return t.__chain__=!0,t}function iv(e,t){return t(e),e}function Kn(e,t){return t(e)}var sv=Qr(function(e){var t=e.length,s=t?e[0]:0,a=this.__wrapped__,h=function(p){return ta(p,e)};return t>1||this.__actions__.length||!(a instanceof Ae)||!ei(s)?this.thru(h):(a=a.slice(s,+s+(t?1:0)),a.__actions__.push({func:Kn,args:[h],thisArg:r}),new br(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(r),p}))});function nv(){return th(this)}function ov(){return new br(this.value(),this.__chain__)}function av(){this.__values__===r&&(this.__values__=gh(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function cv(){return this}function uv(e){for(var t,s=this;s instanceof Tn;){var a=Wu(s);a.__index__=0,a.__values__=r,t?h.__wrapped__=a:t=a;var h=a;s=s.__wrapped__}return h.__wrapped__=e,t}function hv(){var e=this.__wrapped__;if(e instanceof Ae){var t=e;return this.__actions__.length&&(t=new Ae(this)),t=t.reverse(),t.__actions__.push({func:Kn,args:[Oa],thisArg:r}),new br(t,this.__chain__)}return this.thru(Oa)}function lv(){return yu(this.__wrapped__,this.__actions__)}var fv=Mn(function(e,t,s){Ue.call(e,s)?++e[s]:Xr(e,s,1)});function pv(e,t,s){var a=me(e)?Rc:id;return s&&Zt(e,t,s)&&(t=r),a(e,se(t,3))}function dv(e,t){var s=me(e)?ui:eu;return s(e,se(t,3))}var gv=Cu(Ju),vv=Cu(Yu);function yv(e,t){return Bt(Gn(e,t),1)}function mv(e,t){return Bt(Gn(e,t),ce)}function _v(e,t,s){return s=s===r?1:_e(s),Bt(Gn(e,t),s)}function rh(e,t){var s=me(e)?_r:pi;return s(e,se(t,3))}function ih(e,t){var s=me(e)?Mf:Qc;return s(e,se(t,3))}var wv=Mn(function(e,t,s){Ue.call(e,s)?e[s].push(t):Xr(e,s,[t])});function bv(e,t,s,a){e=nr(e)?e:as(e),s=s&&!a?_e(s):0;var h=e.length;return s<0&&(s=Mt(h+s,0)),Zn(e)?s<=h&&e.indexOf(t,s)>-1:!!h&&Ji(e,t,s)>-1}var Ev=Ie(function(e,t,s){var a=-1,h=typeof t=="function",p=nr(e)?C(e.length):[];return pi(e,function(m){p[++a]=h?qt(t,m,s):As(m,t,s)}),p}),xv=Mn(function(e,t,s){Xr(e,s,t)});function Gn(e,t){var s=me(e)?nt:ou;return s(e,se(t,3))}function Iv(e,t,s,a){return e==null?[]:(me(t)||(t=t==null?[]:[t]),s=a?r:s,me(s)||(s=s==null?[]:[s]),hu(e,t,s))}var Sv=Mn(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function Pv(e,t,s){var a=me(e)?ko:Dc,h=arguments.length<3;return a(e,se(t,4),s,h,pi)}function Av(e,t,s){var a=me(e)?Uf:Dc,h=arguments.length<3;return a(e,se(t,4),s,h,Qc)}function Cv(e,t){var s=me(e)?ui:eu;return s(e,Yn(se(t,3)))}function Ov(e){var t=me(e)?Jc:bd;return t(e)}function Rv(e,t,s){(s?Zt(e,t,s):t===r)?t=1:t=_e(t);var a=me(e)?Zp:Ed;return a(e,t)}function Tv(e){var t=me(e)?Qp:Id;return t(e)}function Nv(e){if(e==null)return 0;if(nr(e))return Zn(e)?Xi(e):e.length;var t=Gt(e);return t==we||t==$e?e.size:aa(e).length}function Lv(e,t,s){var a=me(e)?Ho:Sd;return s&&Zt(e,t,s)&&(t=r),a(e,se(t,3))}var Dv=Ie(function(e,t){if(e==null)return[];var s=t.length;return s>1&&Zt(e,t[0],t[1])?t=[]:s>2&&Zt(t[0],t[1],t[2])&&(t=[t[0]]),hu(e,Bt(t,1),[])}),Wn=dp||function(){return Ce.Date.now()};function Fv(e,t){if(typeof t!="function")throw new wr(d);return e=_e(e),function(){if(--e<1)return t.apply(this,arguments)}}function sh(e,t,s){return t=s?r:t,t=e&&t==null?e.length:t,Zr(e,M,r,r,r,r,t)}function nh(e,t){var s;if(typeof t!="function")throw new wr(d);return e=_e(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var Ta=Ie(function(e,t,s){var a=ie;if(s.length){var h=li(s,ns(Ta));a|=le}return Zr(e,a,t,s,h)}),oh=Ie(function(e,t,s){var a=ie|Ee;if(s.length){var h=li(s,ns(oh));a|=le}return Zr(t,a,e,s,h)});function ah(e,t,s){t=s?r:t;var a=Zr(e,pe,r,r,r,r,r,t);return a.placeholder=ah.placeholder,a}function ch(e,t,s){t=s?r:t;var a=Zr(e,he,r,r,r,r,r,t);return a.placeholder=ch.placeholder,a}function uh(e,t,s){var a,h,p,m,_,S,L=0,D=!1,q=!1,W=!0;if(typeof e!="function")throw new wr(d);t=Sr(t)||0,ut(s)&&(D=!!s.leading,q="maxWait"in s,p=q?Mt(Sr(s.maxWait)||0,t):p,W="trailing"in s?!!s.trailing:W);function te(xt){var Dr=a,ii=h;return a=h=r,L=xt,m=e.apply(ii,Dr),m}function oe(xt){return L=xt,_=Ns(Se,t),D?te(xt):m}function be(xt){var Dr=xt-S,ii=xt-L,Ch=t-Dr;return q?Kt(Ch,p-ii):Ch}function ae(xt){var Dr=xt-S,ii=xt-L;return S===r||Dr>=t||Dr<0||q&&ii>=p}function Se(){var xt=Wn();if(ae(xt))return Oe(xt);_=Ns(Se,be(xt))}function Oe(xt){return _=r,W&&a?te(xt):(a=h=r,m)}function dr(){_!==r&&_u(_),L=0,a=S=h=_=r}function Qt(){return _===r?m:Oe(Wn())}function gr(){var xt=Wn(),Dr=ae(xt);if(a=arguments,h=this,S=xt,Dr){if(_===r)return oe(S);if(q)return _u(_),_=Ns(Se,t),te(S)}return _===r&&(_=Ns(Se,t)),m}return gr.cancel=dr,gr.flush=Qt,gr}var $v=Ie(function(e,t){return Zc(e,1,t)}),jv=Ie(function(e,t,s){return Zc(e,Sr(t)||0,s)});function Mv(e){return Zr(e,ve)}function Jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new wr(d);var s=function(){var a=arguments,h=t?t.apply(this,a):a[0],p=s.cache;if(p.has(h))return p.get(h);var m=e.apply(this,a);return s.cache=p.set(h,m)||p,m};return s.cache=new(Jn.Cache||Yr),s}Jn.Cache=Yr;function Yn(e){if(typeof e!="function")throw new wr(d);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Uv(e){return nh(2,e)}var qv=Pd(function(e,t){t=t.length==1&&me(t[0])?nt(t[0],lr(se())):nt(Bt(t,1),lr(se()));var s=t.length;return Ie(function(a){for(var h=-1,p=Kt(a.length,s);++h<p;)a[h]=t[h].call(this,a[h]);return qt(e,this,a)})}),Na=Ie(function(e,t){var s=li(t,ns(Na));return Zr(e,le,r,t,s)}),hh=Ie(function(e,t){var s=li(t,ns(hh));return Zr(e,T,r,t,s)}),zv=Qr(function(e,t){return Zr(e,B,r,r,r,t)});function kv(e,t){if(typeof e!="function")throw new wr(d);return t=t===r?t:_e(t),Ie(e,t)}function Hv(e,t){if(typeof e!="function")throw new wr(d);return t=t==null?0:Mt(_e(t),0),Ie(function(s){var a=s[t],h=vi(s,0,t);return a&&hi(h,a),qt(e,this,h)})}function Bv(e,t,s){var a=!0,h=!0;if(typeof e!="function")throw new wr(d);return ut(s)&&(a="leading"in s?!!s.leading:a,h="trailing"in s?!!s.trailing:h),uh(e,t,{leading:a,maxWait:t,trailing:h})}function Vv(e){return sh(e,1)}function Kv(e,t){return Na(va(t),e)}function Gv(){if(!arguments.length)return[];var e=arguments[0];return me(e)?e:[e]}function Wv(e){return Er(e,G)}function Jv(e,t){return t=typeof t=="function"?t:r,Er(e,G,t)}function Yv(e){return Er(e,K|G)}function Xv(e,t){return t=typeof t=="function"?t:r,Er(e,K|G,t)}function Zv(e,t){return t==null||Xc(e,t,zt(t))}function Lr(e,t){return e===t||e!==e&&t!==t}var Qv=kn(sa),ey=kn(function(e,t){return e>=t}),ji=iu(function(){return arguments}())?iu:function(e){return yt(e)&&Ue.call(e,"callee")&&!Hc.call(e,"callee")},me=C.isArray,ty=Yt?lr(Yt):ud;function nr(e){return e!=null&&Xn(e.length)&&!ti(e)}function Et(e){return yt(e)&&nr(e)}function ry(e){return e===!0||e===!1||yt(e)&&Xt(e)==O}var yi=vp||Ha,iy=Rr?lr(Rr):hd;function sy(e){return yt(e)&&e.nodeType===1&&!Ls(e)}function ny(e){if(e==null)return!0;if(nr(e)&&(me(e)||typeof e=="string"||typeof e.splice=="function"||yi(e)||os(e)||ji(e)))return!e.length;var t=Gt(e);if(t==we||t==$e)return!e.size;if(Ts(e))return!aa(e).length;for(var s in e)if(Ue.call(e,s))return!1;return!0}function oy(e,t){return Cs(e,t)}function ay(e,t,s){s=typeof s=="function"?s:r;var a=s?s(e,t):r;return a===r?Cs(e,t,r,s):!!a}function La(e){if(!yt(e))return!1;var t=Xt(e);return t==b||t==u||typeof e.message=="string"&&typeof e.name=="string"&&!Ls(e)}function cy(e){return typeof e=="number"&&Vc(e)}function ti(e){if(!ut(e))return!1;var t=Xt(e);return t==ee||t==fe||t==R||t==_t}function lh(e){return typeof e=="number"&&e==_e(e)}function Xn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=k}function ut(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yt(e){return e!=null&&typeof e=="object"}var fh=mr?lr(mr):fd;function uy(e,t){return e===t||oa(e,t,xa(t))}function hy(e,t,s){return s=typeof s=="function"?s:r,oa(e,t,xa(t),s)}function ly(e){return ph(e)&&e!=+e}function fy(e){if(Jd(e))throw new de(l);return su(e)}function py(e){return e===null}function dy(e){return e==null}function ph(e){return typeof e=="number"||yt(e)&&Xt(e)==Ne}function Ls(e){if(!yt(e)||Xt(e)!=Pe)return!1;var t=In(e);if(t===null)return!0;var s=Ue.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&wn.call(s)==hp}var Da=qr?lr(qr):pd;function gy(e){return lh(e)&&e>=-k&&e<=k}var dh=ms?lr(ms):dd;function Zn(e){return typeof e=="string"||!me(e)&&yt(e)&&Xt(e)==Ze}function pr(e){return typeof e=="symbol"||yt(e)&&Xt(e)==Qe}var os=Oi?lr(Oi):gd;function vy(e){return e===r}function yy(e){return yt(e)&&Gt(e)==ze}function my(e){return yt(e)&&Xt(e)==et}var _y=kn(ca),wy=kn(function(e,t){return e<=t});function gh(e){if(!e)return[];if(nr(e))return Zn(e)?Tr(e):sr(e);if(ws&&e[ws])return Zf(e[ws]());var t=Gt(e),s=t==we?Jo:t==$e?yn:as;return s(e)}function ri(e){if(!e)return e===0?e:0;if(e=Sr(e),e===ce||e===-ce){var t=e<0?-1:1;return t*U}return e===e?e:0}function _e(e){var t=ri(e),s=t%1;return t===t?s?t-s:t:0}function vh(e){return e?Li(_e(e),0,H):0}function Sr(e){if(typeof e=="number")return e;if(pr(e))return z;if(ut(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ut(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Fc(e);var s=Io.test(e);return s||Po.test(e)?ye(e.slice(2),s?2:8):xo.test(e)?z:+e}function yh(e){return kr(e,or(e))}function by(e){return e?Li(_e(e),-k,k):e===0?e:0}function je(e){return e==null?"":fr(e)}var Ey=is(function(e,t){if(Ts(t)||nr(t)){kr(t,zt(t),e);return}for(var s in t)Ue.call(t,s)&&Ss(e,s,t[s])}),mh=is(function(e,t){kr(t,or(t),e)}),Qn=is(function(e,t,s,a){kr(t,or(t),e,a)}),xy=is(function(e,t,s,a){kr(t,zt(t),e,a)}),Iy=Qr(ta);function Sy(e,t){var s=rs(e);return t==null?s:Yc(s,t)}var Py=Ie(function(e,t){e=Je(e);var s=-1,a=t.length,h=a>2?t[2]:r;for(h&&Zt(t[0],t[1],h)&&(a=1);++s<a;)for(var p=t[s],m=or(p),_=-1,S=m.length;++_<S;){var L=m[_],D=e[L];(D===r||Lr(D,Qi[L])&&!Ue.call(e,L))&&(e[L]=p[L])}return e}),Ay=Ie(function(e){return e.push(r,Fu),qt(_h,r,e)});function Cy(e,t){return Tc(e,se(t,3),zr)}function Oy(e,t){return Tc(e,se(t,3),ia)}function Ry(e,t){return e==null?e:ra(e,se(t,3),or)}function Ty(e,t){return e==null?e:tu(e,se(t,3),or)}function Ny(e,t){return e&&zr(e,se(t,3))}function Ly(e,t){return e&&ia(e,se(t,3))}function Dy(e){return e==null?[]:Dn(e,zt(e))}function Fy(e){return e==null?[]:Dn(e,or(e))}function Fa(e,t,s){var a=e==null?r:Di(e,t);return a===r?s:a}function $y(e,t){return e!=null&&Mu(e,t,nd)}function $a(e,t){return e!=null&&Mu(e,t,od)}var jy=Ru(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=bn.call(t)),e[t]=s},Ma(ar)),My=Ru(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=bn.call(t)),Ue.call(e,t)?e[t].push(s):e[t]=[s]},se),Uy=Ie(As);function zt(e){return nr(e)?Wc(e):aa(e)}function or(e){return nr(e)?Wc(e,!0):vd(e)}function qy(e,t){var s={};return t=se(t,3),zr(e,function(a,h,p){Xr(s,t(a,h,p),a)}),s}function zy(e,t){var s={};return t=se(t,3),zr(e,function(a,h,p){Xr(s,h,t(a,h,p))}),s}var ky=is(function(e,t,s){Fn(e,t,s)}),_h=is(function(e,t,s,a){Fn(e,t,s,a)}),Hy=Qr(function(e,t){var s={};if(e==null)return s;var a=!1;t=nt(t,function(p){return p=gi(p,e),a||(a=p.length>1),p}),kr(e,ba(e),s),a&&(s=Er(s,K|J|G,jd));for(var h=t.length;h--;)pa(s,t[h]);return s});function By(e,t){return wh(e,Yn(se(t)))}var Vy=Qr(function(e,t){return e==null?{}:md(e,t)});function wh(e,t){if(e==null)return{};var s=nt(ba(e),function(a){return[a]});return t=se(t),lu(e,s,function(a,h){return t(a,h[0])})}function Ky(e,t,s){t=gi(t,e);var a=-1,h=t.length;for(h||(h=1,e=r);++a<h;){var p=e==null?r:e[Hr(t[a])];p===r&&(a=h,p=s),e=ti(p)?p.call(e):p}return e}function Gy(e,t,s){return e==null?e:Os(e,t,s)}function Wy(e,t,s,a){return a=typeof a=="function"?a:r,e==null?e:Os(e,t,s,a)}var bh=Lu(zt),Eh=Lu(or);function Jy(e,t,s){var a=me(e),h=a||yi(e)||os(e);if(t=se(t,4),s==null){var p=e&&e.constructor;h?s=a?new p:[]:ut(e)?s=ti(p)?rs(In(e)):{}:s={}}return(h?_r:zr)(e,function(m,_,S){return t(s,m,_,S)}),s}function Yy(e,t){return e==null?!0:pa(e,t)}function Xy(e,t,s){return e==null?e:vu(e,t,va(s))}function Zy(e,t,s,a){return a=typeof a=="function"?a:r,e==null?e:vu(e,t,va(s),a)}function as(e){return e==null?[]:Wo(e,zt(e))}function Qy(e){return e==null?[]:Wo(e,or(e))}function e0(e,t,s){return s===r&&(s=t,t=r),s!==r&&(s=Sr(s),s=s===s?s:0),t!==r&&(t=Sr(t),t=t===t?t:0),Li(Sr(e),t,s)}function t0(e,t,s){return t=ri(t),s===r?(s=t,t=0):s=ri(s),e=Sr(e),ad(e,t,s)}function r0(e,t,s){if(s&&typeof s!="boolean"&&Zt(e,t,s)&&(t=s=r),s===r&&(typeof t=="boolean"?(s=t,t=r):typeof e=="boolean"&&(s=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ri(e),t===r?(t=e,e=0):t=ri(t)),e>t){var a=e;e=t,t=a}if(s||e%1||t%1){var h=Kc();return Kt(e+h*(t-e+Ge("1e-"+((h+"").length-1))),t)}return ha(e,t)}var i0=ss(function(e,t,s){return t=t.toLowerCase(),e+(s?xh(t):t)});function xh(e){return ja(je(e).toLowerCase())}function Ih(e){return e=je(e),e&&e.replace(Gr,Gf).replace(Uo,"")}function s0(e,t,s){e=je(e),t=fr(t);var a=e.length;s=s===r?a:Li(_e(s),0,a);var h=s;return s-=t.length,s>=0&&e.slice(s,h)==t}function n0(e){return e=je(e),e&&it.test(e)?e.replace(Ii,Wf):e}function o0(e){return e=je(e),e&&Rt.test(e)?e.replace(dt,"\\$&"):e}var a0=ss(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),c0=ss(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),u0=Au("toLowerCase");function h0(e,t,s){e=je(e),t=_e(t);var a=t?Xi(e):0;if(!t||a>=t)return e;var h=(t-a)/2;return zn(Cn(h),s)+e+zn(An(h),s)}function l0(e,t,s){e=je(e),t=_e(t);var a=t?Xi(e):0;return t&&a<t?e+zn(t-a,s):e}function f0(e,t,s){e=je(e),t=_e(t);var a=t?Xi(e):0;return t&&a<t?zn(t-a,s)+e:e}function p0(e,t,s){return s||t==null?t=0:t&&(t=+t),wp(je(e).replace(gt,""),t||0)}function d0(e,t,s){return(s?Zt(e,t,s):t===r)?t=1:t=_e(t),la(je(e),t)}function g0(){var e=arguments,t=je(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var v0=ss(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function y0(e,t,s){return s&&typeof s!="number"&&Zt(e,t,s)&&(t=s=r),s=s===r?H:s>>>0,s?(e=je(e),e&&(typeof t=="string"||t!=null&&!Da(t))&&(t=fr(t),!t&&Yi(e))?vi(Tr(e),0,s):e.split(t,s)):[]}var m0=ss(function(e,t,s){return e+(s?" ":"")+ja(t)});function _0(e,t,s){return e=je(e),s=s==null?0:Li(_e(s),0,e.length),t=fr(t),e.slice(s,s+t.length)==t}function w0(e,t,s){var a=f.templateSettings;s&&Zt(e,t,s)&&(t=r),e=je(e),t=Qn({},t,a,Du);var h=Qn({},t.imports,a.imports,Du),p=zt(h),m=Wo(h,p),_,S,L=0,D=t.interpolate||ki,q="__p += '",W=Yo((t.escape||ki).source+"|"+D.source+"|"+(D===ct?Eo:ki).source+"|"+(t.evaluate||ki).source+"|$","g"),te="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qo+"]")+` +`;e.replace(W,function(ae,Se,Oe,dr,Qt,gr){return Oe||(Oe=dr),q+=e.slice(L,gr).replace(Co,Jf),Se&&(_=!0,q+=`' + +__e(`+Se+`) + +'`),Qt&&(S=!0,q+=`'; +`+Qt+`; +__p += '`),Oe&&(q+=`' + +((__t = (`+Oe+`)) == null ? '' : __t) + +'`),L=gr+ae.length,ae}),q+=`'; +`;var oe=Ue.call(t,"variable")&&t.variable;if(!oe)q=`with (obj) { +`+q+` +} +`;else if(wo.test(oe))throw new de(y);q=(S?q.replace(Mr,""):q).replace(Jt,"$1").replace(Kr,"$1;"),q="function("+(oe||"obj")+`) { +`+(oe?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(S?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+q+`return __p +}`;var be=Ph(function(){return Fe(p,te+"return "+q).apply(r,m)});if(be.source=q,La(be))throw be;return be}function b0(e){return je(e).toLowerCase()}function E0(e){return je(e).toUpperCase()}function x0(e,t,s){if(e=je(e),e&&(s||t===r))return Fc(e);if(!e||!(t=fr(t)))return e;var a=Tr(e),h=Tr(t),p=$c(a,h),m=jc(a,h)+1;return vi(a,p,m).join("")}function I0(e,t,s){if(e=je(e),e&&(s||t===r))return e.slice(0,Uc(e)+1);if(!e||!(t=fr(t)))return e;var a=Tr(e),h=jc(a,Tr(t))+1;return vi(a,0,h).join("")}function S0(e,t,s){if(e=je(e),e&&(s||t===r))return e.replace(gt,"");if(!e||!(t=fr(t)))return e;var a=Tr(e),h=$c(a,Tr(t));return vi(a,h).join("")}function P0(e,t){var s=re,a=ue;if(ut(t)){var h="separator"in t?t.separator:h;s="length"in t?_e(t.length):s,a="omission"in t?fr(t.omission):a}e=je(e);var p=e.length;if(Yi(e)){var m=Tr(e);p=m.length}if(s>=p)return e;var _=s-Xi(a);if(_<1)return a;var S=m?vi(m,0,_).join(""):e.slice(0,_);if(h===r)return S+a;if(m&&(_+=S.length-_),Da(h)){if(e.slice(_).search(h)){var L,D=S;for(h.global||(h=Yo(h.source,je(yr.exec(h))+"g")),h.lastIndex=0;L=h.exec(D);)var q=L.index;S=S.slice(0,q===r?_:q)}}else if(e.indexOf(fr(h),_)!=_){var W=S.lastIndexOf(h);W>-1&&(S=S.slice(0,W))}return S+a}function A0(e){return e=je(e),e&<.test(e)?e.replace(ai,rp):e}var C0=ss(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),ja=Au("toUpperCase");function Sh(e,t,s){return e=je(e),t=s?r:t,t===r?Xf(e)?np(e):kf(e):e.match(t)||[]}var Ph=Ie(function(e,t){try{return qt(e,r,t)}catch(s){return La(s)?s:new de(s)}}),O0=Qr(function(e,t){return _r(t,function(s){s=Hr(s),Xr(e,s,Ta(e[s],e))}),e});function R0(e){var t=e==null?0:e.length,s=se();return e=t?nt(e,function(a){if(typeof a[1]!="function")throw new wr(d);return[s(a[0]),a[1]]}):[],Ie(function(a){for(var h=-1;++h<t;){var p=e[h];if(qt(p[0],this,a))return qt(p[1],this,a)}})}function T0(e){return rd(Er(e,K))}function Ma(e){return function(){return e}}function N0(e,t){return e==null||e!==e?t:e}var L0=Ou(),D0=Ou(!0);function ar(e){return e}function Ua(e){return nu(typeof e=="function"?e:Er(e,K))}function F0(e){return au(Er(e,K))}function $0(e,t){return cu(e,Er(t,K))}var j0=Ie(function(e,t){return function(s){return As(s,e,t)}}),M0=Ie(function(e,t){return function(s){return As(e,s,t)}});function qa(e,t,s){var a=zt(t),h=Dn(t,a);s==null&&!(ut(t)&&(h.length||!a.length))&&(s=t,t=e,e=this,h=Dn(t,zt(t)));var p=!(ut(s)&&"chain"in s)||!!s.chain,m=ti(e);return _r(h,function(_){var S=t[_];e[_]=S,m&&(e.prototype[_]=function(){var L=this.__chain__;if(p||L){var D=e(this.__wrapped__),q=D.__actions__=sr(this.__actions__);return q.push({func:S,args:arguments,thisArg:e}),D.__chain__=L,D}return S.apply(e,hi([this.value()],arguments))})}),e}function U0(){return Ce._===this&&(Ce._=lp),this}function za(){}function q0(e){return e=_e(e),Ie(function(t){return uu(t,e)})}var z0=ma(nt),k0=ma(Rc),H0=ma(Ho);function Ah(e){return Sa(e)?Bo(Hr(e)):_d(e)}function B0(e){return function(t){return e==null?r:Di(e,t)}}var V0=Tu(),K0=Tu(!0);function ka(){return[]}function Ha(){return!1}function G0(){return{}}function W0(){return""}function J0(){return!0}function Y0(e,t){if(e=_e(e),e<1||e>k)return[];var s=H,a=Kt(e,H);t=se(t),e-=H;for(var h=Go(a,t);++s<e;)t(s);return h}function X0(e){return me(e)?nt(e,Hr):pr(e)?[e]:sr(Gu(je(e)))}function Z0(e){var t=++up;return je(e)+t}var Q0=qn(function(e,t){return e+t},0),e1=_a("ceil"),t1=qn(function(e,t){return e/t},1),r1=_a("floor");function i1(e){return e&&e.length?Ln(e,ar,sa):r}function s1(e,t){return e&&e.length?Ln(e,se(t,2),sa):r}function n1(e){return Lc(e,ar)}function o1(e,t){return Lc(e,se(t,2))}function a1(e){return e&&e.length?Ln(e,ar,ca):r}function c1(e,t){return e&&e.length?Ln(e,se(t,2),ca):r}var u1=qn(function(e,t){return e*t},1),h1=_a("round"),l1=qn(function(e,t){return e-t},0);function f1(e){return e&&e.length?Ko(e,ar):0}function p1(e,t){return e&&e.length?Ko(e,se(t,2)):0}return f.after=Fv,f.ary=sh,f.assign=Ey,f.assignIn=mh,f.assignInWith=Qn,f.assignWith=xy,f.at=Iy,f.before=nh,f.bind=Ta,f.bindAll=O0,f.bindKey=oh,f.castArray=Gv,f.chain=th,f.chunk=rg,f.compact=ig,f.concat=sg,f.cond=R0,f.conforms=T0,f.constant=Ma,f.countBy=fv,f.create=Sy,f.curry=ah,f.curryRight=ch,f.debounce=uh,f.defaults=Py,f.defaultsDeep=Ay,f.defer=$v,f.delay=jv,f.difference=ng,f.differenceBy=og,f.differenceWith=ag,f.drop=cg,f.dropRight=ug,f.dropRightWhile=hg,f.dropWhile=lg,f.fill=fg,f.filter=dv,f.flatMap=yv,f.flatMapDeep=mv,f.flatMapDepth=_v,f.flatten=Xu,f.flattenDeep=pg,f.flattenDepth=dg,f.flip=Mv,f.flow=L0,f.flowRight=D0,f.fromPairs=gg,f.functions=Dy,f.functionsIn=Fy,f.groupBy=wv,f.initial=yg,f.intersection=mg,f.intersectionBy=_g,f.intersectionWith=wg,f.invert=jy,f.invertBy=My,f.invokeMap=Ev,f.iteratee=Ua,f.keyBy=xv,f.keys=zt,f.keysIn=or,f.map=Gn,f.mapKeys=qy,f.mapValues=zy,f.matches=F0,f.matchesProperty=$0,f.memoize=Jn,f.merge=ky,f.mergeWith=_h,f.method=j0,f.methodOf=M0,f.mixin=qa,f.negate=Yn,f.nthArg=q0,f.omit=Hy,f.omitBy=By,f.once=Uv,f.orderBy=Iv,f.over=z0,f.overArgs=qv,f.overEvery=k0,f.overSome=H0,f.partial=Na,f.partialRight=hh,f.partition=Sv,f.pick=Vy,f.pickBy=wh,f.property=Ah,f.propertyOf=B0,f.pull=Ig,f.pullAll=Qu,f.pullAllBy=Sg,f.pullAllWith=Pg,f.pullAt=Ag,f.range=V0,f.rangeRight=K0,f.rearg=zv,f.reject=Cv,f.remove=Cg,f.rest=kv,f.reverse=Oa,f.sampleSize=Rv,f.set=Gy,f.setWith=Wy,f.shuffle=Tv,f.slice=Og,f.sortBy=Dv,f.sortedUniq=$g,f.sortedUniqBy=jg,f.split=y0,f.spread=Hv,f.tail=Mg,f.take=Ug,f.takeRight=qg,f.takeRightWhile=zg,f.takeWhile=kg,f.tap=iv,f.throttle=Bv,f.thru=Kn,f.toArray=gh,f.toPairs=bh,f.toPairsIn=Eh,f.toPath=X0,f.toPlainObject=yh,f.transform=Jy,f.unary=Vv,f.union=Hg,f.unionBy=Bg,f.unionWith=Vg,f.uniq=Kg,f.uniqBy=Gg,f.uniqWith=Wg,f.unset=Yy,f.unzip=Ra,f.unzipWith=eh,f.update=Xy,f.updateWith=Zy,f.values=as,f.valuesIn=Qy,f.without=Jg,f.words=Sh,f.wrap=Kv,f.xor=Yg,f.xorBy=Xg,f.xorWith=Zg,f.zip=Qg,f.zipObject=ev,f.zipObjectDeep=tv,f.zipWith=rv,f.entries=bh,f.entriesIn=Eh,f.extend=mh,f.extendWith=Qn,qa(f,f),f.add=Q0,f.attempt=Ph,f.camelCase=i0,f.capitalize=xh,f.ceil=e1,f.clamp=e0,f.clone=Wv,f.cloneDeep=Yv,f.cloneDeepWith=Xv,f.cloneWith=Jv,f.conformsTo=Zv,f.deburr=Ih,f.defaultTo=N0,f.divide=t1,f.endsWith=s0,f.eq=Lr,f.escape=n0,f.escapeRegExp=o0,f.every=pv,f.find=gv,f.findIndex=Ju,f.findKey=Cy,f.findLast=vv,f.findLastIndex=Yu,f.findLastKey=Oy,f.floor=r1,f.forEach=rh,f.forEachRight=ih,f.forIn=Ry,f.forInRight=Ty,f.forOwn=Ny,f.forOwnRight=Ly,f.get=Fa,f.gt=Qv,f.gte=ey,f.has=$y,f.hasIn=$a,f.head=Zu,f.identity=ar,f.includes=bv,f.indexOf=vg,f.inRange=t0,f.invoke=Uy,f.isArguments=ji,f.isArray=me,f.isArrayBuffer=ty,f.isArrayLike=nr,f.isArrayLikeObject=Et,f.isBoolean=ry,f.isBuffer=yi,f.isDate=iy,f.isElement=sy,f.isEmpty=ny,f.isEqual=oy,f.isEqualWith=ay,f.isError=La,f.isFinite=cy,f.isFunction=ti,f.isInteger=lh,f.isLength=Xn,f.isMap=fh,f.isMatch=uy,f.isMatchWith=hy,f.isNaN=ly,f.isNative=fy,f.isNil=dy,f.isNull=py,f.isNumber=ph,f.isObject=ut,f.isObjectLike=yt,f.isPlainObject=Ls,f.isRegExp=Da,f.isSafeInteger=gy,f.isSet=dh,f.isString=Zn,f.isSymbol=pr,f.isTypedArray=os,f.isUndefined=vy,f.isWeakMap=yy,f.isWeakSet=my,f.join=bg,f.kebabCase=a0,f.last=Ir,f.lastIndexOf=Eg,f.lowerCase=c0,f.lowerFirst=u0,f.lt=_y,f.lte=wy,f.max=i1,f.maxBy=s1,f.mean=n1,f.meanBy=o1,f.min=a1,f.minBy=c1,f.stubArray=ka,f.stubFalse=Ha,f.stubObject=G0,f.stubString=W0,f.stubTrue=J0,f.multiply=u1,f.nth=xg,f.noConflict=U0,f.noop=za,f.now=Wn,f.pad=h0,f.padEnd=l0,f.padStart=f0,f.parseInt=p0,f.random=r0,f.reduce=Pv,f.reduceRight=Av,f.repeat=d0,f.replace=g0,f.result=Ky,f.round=h1,f.runInContext=I,f.sample=Ov,f.size=Nv,f.snakeCase=v0,f.some=Lv,f.sortedIndex=Rg,f.sortedIndexBy=Tg,f.sortedIndexOf=Ng,f.sortedLastIndex=Lg,f.sortedLastIndexBy=Dg,f.sortedLastIndexOf=Fg,f.startCase=m0,f.startsWith=_0,f.subtract=l1,f.sum=f1,f.sumBy=p1,f.template=w0,f.times=Y0,f.toFinite=ri,f.toInteger=_e,f.toLength=vh,f.toLower=b0,f.toNumber=Sr,f.toSafeInteger=by,f.toString=je,f.toUpper=E0,f.trim=x0,f.trimEnd=I0,f.trimStart=S0,f.truncate=P0,f.unescape=A0,f.uniqueId=Z0,f.upperCase=C0,f.upperFirst=ja,f.each=rh,f.eachRight=ih,f.first=Zu,qa(f,function(){var e={};return zr(f,function(t,s){Ue.call(f.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),f.VERSION=n,_r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),_r(["drop","take"],function(e,t){Ae.prototype[e]=function(s){s=s===r?1:Mt(_e(s),0);var a=this.__filtered__&&!t?new Ae(this):this.clone();return a.__filtered__?a.__takeCount__=Kt(s,a.__takeCount__):a.__views__.push({size:Kt(s,H),type:e+(a.__dir__<0?"Right":"")}),a},Ae.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),_r(["filter","map","takeWhile"],function(e,t){var s=t+1,a=s==v||s==X;Ae.prototype[e]=function(h){var p=this.clone();return p.__iteratees__.push({iteratee:se(h,3),type:s}),p.__filtered__=p.__filtered__||a,p}}),_r(["head","last"],function(e,t){var s="take"+(t?"Right":"");Ae.prototype[e]=function(){return this[s](1).value()[0]}}),_r(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");Ae.prototype[e]=function(){return this.__filtered__?new Ae(this):this[s](1)}}),Ae.prototype.compact=function(){return this.filter(ar)},Ae.prototype.find=function(e){return this.filter(e).head()},Ae.prototype.findLast=function(e){return this.reverse().find(e)},Ae.prototype.invokeMap=Ie(function(e,t){return typeof e=="function"?new Ae(this):this.map(function(s){return As(s,e,t)})}),Ae.prototype.reject=function(e){return this.filter(Yn(se(e)))},Ae.prototype.slice=function(e,t){e=_e(e);var s=this;return s.__filtered__&&(e>0||t<0)?new Ae(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=_e(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Ae.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ae.prototype.toArray=function(){return this.take(H)},zr(Ae.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),h=f[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);h&&(f.prototype[t]=function(){var m=this.__wrapped__,_=a?[1]:arguments,S=m instanceof Ae,L=_[0],D=S||me(m),q=function(Se){var Oe=h.apply(f,hi([Se],_));return a&&W?Oe[0]:Oe};D&&s&&typeof L=="function"&&L.length!=1&&(S=D=!1);var W=this.__chain__,te=!!this.__actions__.length,oe=p&&!W,be=S&&!te;if(!p&&D){m=be?m:new Ae(this);var ae=e.apply(m,_);return ae.__actions__.push({func:Kn,args:[q],thisArg:r}),new br(ae,W)}return oe&&be?e.apply(this,_):(ae=this.thru(q),oe?a?ae.value()[0]:ae.value():ae)})}),_r(["pop","push","shift","sort","splice","unshift"],function(e){var t=mn[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var h=arguments;if(a&&!this.__chain__){var p=this.value();return t.apply(me(p)?p:[],h)}return this[s](function(m){return t.apply(me(m)?m:[],h)})}}),zr(Ae.prototype,function(e,t){var s=f[t];if(s){var a=s.name+"";Ue.call(ts,a)||(ts[a]=[]),ts[a].push({name:t,func:s})}}),ts[Un(r,Ee).name]=[{name:"wrapper",func:r}],Ae.prototype.clone=Ap,Ae.prototype.reverse=Cp,Ae.prototype.value=Op,f.prototype.at=sv,f.prototype.chain=nv,f.prototype.commit=ov,f.prototype.next=av,f.prototype.plant=uv,f.prototype.reverse=hv,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=lv,f.prototype.first=f.prototype.head,ws&&(f.prototype[ws]=cv),f},Zi=op();bt?((bt.exports=Zi)._=Zi,We._=Zi):Ce._=Zi}).call(Hs)})(lc,lc.exports);var pE=Object.defineProperty,dE=Object.defineProperties,gE=Object.getOwnPropertyDescriptors,Rl=Object.getOwnPropertySymbols,vE=Object.prototype.hasOwnProperty,yE=Object.prototype.propertyIsEnumerable,Tl=(c,i,r)=>i in c?pE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,to=(c,i)=>{for(var r in i||(i={}))vE.call(i,r)&&Tl(c,r,i[r]);if(Rl)for(var r of Rl(i))yE.call(i,r)&&Tl(c,r,i[r]);return c},mE=(c,i)=>dE(c,gE(i));function Cr(c,i,r){let n;const o=fc(c);return i.rpcMap&&(n=i.rpcMap[o]),n||(n=`${fE}?chainId=eip155:${o}&projectId=${r}`),n}function fc(c){return c.includes("eip155")?Number(c.split(":")[1]):Number(c)}function Ff(c){return c.map(i=>`${i.split(":")[0]}:${i.split(":")[1]}`)}function _E(c,i){const r=Object.keys(i.namespaces).filter(o=>o.includes(c));if(!r.length)return[];const n=[];return r.forEach(o=>{const l=i.namespaces[o].accounts;n.push(...l)}),n}function wE(c={},i={}){const r=Nl(c),n=Nl(i);return lc.exports.merge(r,n)}function Nl(c){var i,r,n,o;const l={};if(!so(c))return l;for(const[d,y]of Object.entries(c)){const w=Vl(d)?[d]:y.chains,A=y.methods||[],F=y.events||[],K=y.rpcMap||{},J=no(d);l[J]=mE(to(to({},l[J]),y),{chains:Va(w,(i=l[J])==null?void 0:i.chains),methods:Va(A,(r=l[J])==null?void 0:r.methods),events:Va(F,(n=l[J])==null?void 0:n.events),rpcMap:to(to({},K),(o=l[J])==null?void 0:o.rpcMap)})}return l}function bE(c){return c.includes(":")?c.split(":")[2]:c}function EE(c){const i={};for(const[r,n]of Object.entries(c)){const o=n.methods||[],l=n.events||[],d=n.accounts||[],y=Vl(r)?[r]:n.chains?n.chains:Ff(n.accounts);i[r]={chains:y,methods:o,events:l,accounts:d}}return i}const $f={},It=c=>$f[c],ic=(c,i)=>{$f[c]=i};class xE{constructor(i){this.name="polkadot",this.namespace=i.namespace,this.events=It("events"),this.client=It("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){const n=r||Cr(`${this.name}:${i}`,this.namespace);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.events.emit(xi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2])||[]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Cr(i,this.namespace);return typeof n>"u"?void 0:new Ei(new zi(n,It("disableProviderPing")))}}class IE{constructor(i){this.name="eip155",this.namespace=i.namespace,this.events=It("events"),this.client=It("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(i){switch(i.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(i);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(i.request.method)?await this.client.request(i):this.getHttpProvider().request(i.request)}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}setDefaultChain(i,r){const n=fc(i);if(!this.httpProviders[n]){const o=r||Cr(`${this.name}:${n}`,this.namespace,this.client.core.projectId);if(!o)throw new Error(`No RPC url provided for chainId: ${n}`);this.setHttpProvider(n,o)}this.chainId=n,this.events.emit(xi.DEFAULT_CHAIN_CHANGED,`${this.name}:${n}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}createHttpProvider(i,r){const n=r||Cr(`${this.name}:${i}`,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Ei(new zi(n,It("disableProviderPing")))}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;const o=fc(r);i[o]=this.createHttpProvider(o,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}getHttpProvider(){const i=this.chainId,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}async handleSwitchChain(i){var r,n;let o=i.request.params?(r=i.request.params[0])==null?void 0:r.chainId:"0x0";o=o.startsWith("0x")?o:`0x${o}`;const l=parseInt(o,16);if(this.isChainApproved(l))this.setDefaultChain(`${l}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:i.topic,request:{method:i.request.method,params:[{chainId:o}]},chainId:(n=this.namespace.chains)==null?void 0:n[0]}),this.setDefaultChain(`${l}`);else throw new Error(`Failed to switch to chain 'eip155:${l}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(i){return this.namespace.chains.includes(`${this.name}:${i}`)}}class SE{constructor(i){this.name="solana",this.namespace=i.namespace,this.events=It("events"),this.client=It("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(!this.httpProviders[i]){const n=r||Cr(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.chainId=i,this.events.emit(xi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Cr(i,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Ei(new zi(n,It("disableProviderPing")))}}class PE{constructor(i){this.name="cosmos",this.namespace=i.namespace,this.events=It("events"),this.client=It("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){const n=r||Cr(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.events.emit(xi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Cr(i,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Ei(new zi(n,It("disableProviderPing")))}}class AE{constructor(i){this.name="cip34",this.namespace=i.namespace,this.events=It("events"),this.client=It("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(this.chainId=i,!this.httpProviders[i]){const n=r||this.getCardanoRPCUrl(i);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.events.emit(xi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{const n=this.getCardanoRPCUrl(r);i[r]=this.createHttpProvider(r,n)}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}getCardanoRPCUrl(i){const r=this.namespace.rpcMap;if(r)return r[i]}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||this.getCardanoRPCUrl(i);return typeof n>"u"?void 0:new Ei(new zi(n,It("disableProviderPing")))}}class CE{constructor(i){this.name="elrond",this.namespace=i.namespace,this.events=It("events"),this.client=It("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(!this.httpProviders[i]){const n=r||Cr(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.chainId=i,this.events.emit(xi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Cr(i,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Ei(new zi(n,It("disableProviderPing")))}}class OE{constructor(i){this.name="multiversx",this.namespace=i.namespace,this.events=It("events"),this.client=It("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(i){this.namespace=Object.assign(this.namespace,i)}requestAccounts(){return this.getAccounts()}request(i){return this.namespace.methods.includes(i.request.method)?this.client.request(i):this.getHttpProvider().request(i.request)}setDefaultChain(i,r){if(!this.httpProviders[i]){const n=r||Cr(`${this.name}:${i}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${i}`);this.setHttpProvider(i,n)}this.chainId=i,this.events.emit(xi.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const i=this.namespace.chains[0];if(!i)throw new Error("ChainId not found");return i.split(":")[1]}getAccounts(){const i=this.namespace.accounts;return i?[...new Set(i.filter(r=>r.split(":")[1]===this.chainId.toString()).map(r=>r.split(":")[2]))]:[]}createHttpProviders(){const i={};return this.namespace.chains.forEach(r=>{var n;i[r]=this.createHttpProvider(r,(n=this.namespace.rpcMap)==null?void 0:n[r])}),i}getHttpProvider(){const i=`${this.name}:${this.chainId}`,r=this.httpProviders[i];if(typeof r>"u")throw new Error(`JSON-RPC provider for ${i} not found`);return r}setHttpProvider(i,r){const n=this.createHttpProvider(i,r);n&&(this.httpProviders[i]=n)}createHttpProvider(i,r){const n=r||Cr(i,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Ei(new zi(n,It("disableProviderPing")))}}var RE=Object.defineProperty,TE=Object.defineProperties,NE=Object.getOwnPropertyDescriptors,Ll=Object.getOwnPropertySymbols,LE=Object.prototype.hasOwnProperty,DE=Object.prototype.propertyIsEnumerable,Dl=(c,i,r)=>i in c?RE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,ro=(c,i)=>{for(var r in i||(i={}))LE.call(i,r)&&Dl(c,r,i[r]);if(Ll)for(var r of Ll(i))DE.call(i,r)&&Dl(c,r,i[r]);return c},sc=(c,i)=>TE(c,NE(i));class Cc{constructor(i){this.events=new mc,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=i,this.logger=typeof i?.logger<"u"&&typeof i?.logger!="string"?i.logger:Re.pino(Re.getDefaultLoggerOptions({level:i?.logger||Cl})),this.disableProviderPing=i?.disableProviderPing||!1}static async init(i){const r=new Cc(i);return await r.initialize(),r}async request(i,r){const[n,o]=this.validateChain(r);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:ro({},i),chainId:`${n}:${o}`,topic:this.session.topic})}sendAsync(i,r,n){this.request(i,n).then(o=>r(null,o)).catch(o=>r(o,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var i;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(i=this.session)==null?void 0:i.topic,reason:tr("USER_DISCONNECTED")}),await this.cleanup()}async connect(i){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(i),await this.cleanupPendingPairings(),!i.skipPairing)return await this.pair(i.pairingTopic)}on(i,r){this.events.on(i,r)}once(i,r){this.events.once(i,r)}removeListener(i,r){this.events.removeListener(i,r)}off(i,r){this.events.off(i,r)}get isWalletConnect(){return!0}async pair(i){this.shouldAbortPairingAttempt=!1;let r=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(r>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:n,approval:o}=await this.client.connect({pairingTopic:i,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await o().then(l=>{this.session=l,this.namespaces||(this.namespaces=EE(l.namespaces),this.persist("namespaces",this.namespaces))}).catch(l=>{if(l.message!==Lf)throw l;r++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(i,r){try{if(!this.session)return;const[n,o]=this.validateChain(i);this.getProvider(n).setDefaultChain(o,r)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(i={}){this.logger.info("Cleaning up inactive pairings...");const r=this.client.pairing.getAll();if(ps(r)){for(const n of r)i.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${r.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const i=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[i]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await nE.init({logger:this.providerOpts.logger||Cl,relayUrl:this.providerOpts.relayUrl||uE,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const i=[...new Set(Object.keys(this.session.namespaces).map(r=>no(r)))];ic("client",this.client),ic("events",this.events),ic("disableProviderPing",this.disableProviderPing),i.forEach(r=>{if(!this.session)return;const n=_E(r,this.session),o=Ff(n),l=wE(this.namespaces,this.optionalNamespaces),d=sc(ro({},l[r]),{accounts:n,chains:o});switch(r){case"eip155":this.rpcProviders[r]=new IE({namespace:d});break;case"solana":this.rpcProviders[r]=new SE({namespace:d});break;case"cosmos":this.rpcProviders[r]=new PE({namespace:d});break;case"polkadot":this.rpcProviders[r]=new xE({namespace:d});break;case"cip34":this.rpcProviders[r]=new AE({namespace:d});break;case"elrond":this.rpcProviders[r]=new CE({namespace:d});break;case"multiversx":this.rpcProviders[r]=new OE({namespace:d});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",i=>{this.events.emit("session_ping",i)}),this.client.on("session_event",i=>{const{params:r}=i,{event:n}=r;if(n.name==="accountsChanged"){const o=n.data;o&&ps(o)&&this.events.emit("accountsChanged",o.map(bE))}else n.name==="chainChanged"?this.onChainChanged(r.chainId):this.events.emit(n.name,n.data);this.events.emit("session_event",i)}),this.client.on("session_update",({topic:i,params:r})=>{var n;const{namespaces:o}=r,l=(n=this.client)==null?void 0:n.session.get(i);this.session=sc(ro({},l),{namespaces:o}),this.onSessionUpdate(),this.events.emit("session_update",{topic:i,params:r})}),this.client.on("session_delete",async i=>{await this.cleanup(),this.events.emit("session_delete",i),this.events.emit("disconnect",sc(ro({},tr("USER_DISCONNECTED")),{data:i.topic}))}),this.on(xi.DEFAULT_CHAIN_CHANGED,i=>{this.onChainChanged(i,!0)})}getProvider(i){if(!this.rpcProviders[i])throw new Error(`Provider not found: ${i}`);return this.rpcProviders[i]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(i=>{var r;this.getProvider(i).updateNamespace((r=this.session)==null?void 0:r.namespaces[i])})}setNamespaces(i){const{namespaces:r,optionalNamespaces:n,sessionProperties:o}=i;r&&Object.keys(r).length&&(this.namespaces=r),n&&Object.keys(n).length&&(this.optionalNamespaces=n),this.sessionProperties=o,this.persist("namespaces",r),this.persist("optionalNamespaces",n)}validateChain(i){const[r,n]=i?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[r,n];if(r&&!Object.keys(this.namespaces||{}).map(d=>no(d)).includes(r))throw new Error(`Namespace '${r}' is not configured. Please call connect() first with namespace config.`);if(r&&n)return[r,n];const o=no(Object.keys(this.namespaces)[0]),l=this.rpcProviders[o].getDefaultChain();return[o,l]}async requestAccounts(){const[i]=this.validateChain();return await this.getProvider(i).requestAccounts()}onChainChanged(i,r=!1){var n;if(!this.namespaces)return;const[o,l]=this.validateChain(i);r||this.getProvider(o).setDefaultChain(l),((n=this.namespaces[o])!=null?n:this.namespaces[`${o}:${l}`]).defaultChain=l,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",l)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(i,r){this.client.core.storage.setItem(`${Ol}/${i}`,r)}async getFromStore(i){return await this.client.core.storage.getItem(`${Ol}/${i}`)}}const FE=Cc,$E="wc",jE="ethereum_provider",ME=`${$E}@2:${jE}:`,UE="https://rpc.walletconnect.com/v1/",pc=["eth_sendTransaction","personal_sign"],qE=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],dc=["chainChanged","accountsChanged"],zE=["message","disconnect","connect"];var kE=Object.defineProperty,HE=Object.defineProperties,BE=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,VE=Object.prototype.hasOwnProperty,KE=Object.prototype.propertyIsEnumerable,$l=(c,i,r)=>i in c?kE(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,Bs=(c,i)=>{for(var r in i||(i={}))VE.call(i,r)&&$l(c,r,i[r]);if(Fl)for(var r of Fl(i))KE.call(i,r)&&$l(c,r,i[r]);return c},jl=(c,i)=>HE(c,BE(i));function ho(c){return Number(c[0].split(":")[1])}function nc(c){return`0x${c.toString(16)}`}function GE(c){const{chains:i,optionalChains:r,methods:n,optionalMethods:o,events:l,optionalEvents:d,rpcMap:y}=c;if(!ps(i))throw new Error("Invalid chains");const w={chains:i,methods:n||pc,events:l||dc,rpcMap:Bs({},i.length?{[ho(i)]:y[ho(i)]}:{})},A=l?.filter(G=>!dc.includes(G)),F=n?.filter(G=>!pc.includes(G));if(!r&&!d&&!o&&!(A!=null&&A.length)&&!(F!=null&&F.length))return{required:i.length?w:void 0};const K=A?.length&&F?.length||!r,J={chains:[...new Set(K?w.chains.concat(r||[]):r)],methods:[...new Set(w.methods.concat(o!=null&&o.length?o:qE))],events:[...new Set(w.events.concat(d||zE))],rpcMap:y};return{required:i.length?w:void 0,optional:r.length?J:void 0}}class Oc{constructor(){this.events=new vr.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=ME,this.on=(i,r)=>(this.events.on(i,r),this),this.once=(i,r)=>(this.events.once(i,r),this),this.removeListener=(i,r)=>(this.events.removeListener(i,r),this),this.off=(i,r)=>(this.events.off(i,r),this),this.parseAccount=i=>this.isCompatibleChainId(i)?this.parseAccountId(i).address:i,this.signer={},this.rpc={}}static async init(i){const r=new Oc;return await r.initialize(i),r}async request(i){return await this.signer.request(i,this.formatChainId(this.chainId))}sendAsync(i,r){this.signer.sendAsync(i,r,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(i){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(i);const{required:r,optional:n}=GE(this.rpc);try{const o=await new Promise(async(d,y)=>{var w;this.rpc.showQrModal&&((w=this.modal)==null||w.subscribeModal(A=>{!A.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),y(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(jl(Bs({namespaces:Bs({},r&&{[this.namespace]:r})},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:i?.pairingTopic})).then(A=>{d(A)}).catch(A=>{y(new Error(A.message))})});if(!o)return;this.setChainIds(this.rpc.chains);const l=Z1(o.namespaces,[this.namespace]);this.setAccounts(l),this.events.emit("connect",{chainId:nc(this.chainId)})}catch(o){throw this.signer.logger.error(o),o}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",i=>{const{params:r}=i,{event:n}=r;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",i)}),this.signer.on("chainChanged",i=>{const r=parseInt(i);this.chainId=r,this.events.emit("chainChanged",nc(this.chainId)),this.persist()}),this.signer.on("session_update",i=>{this.events.emit("session_update",i)}),this.signer.on("session_delete",i=>{this.reset(),this.events.emit("session_delete",i),this.events.emit("disconnect",jl(Bs({},tr("USER_DISCONNECTED")),{data:i.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",i=>{var r,n;this.rpc.showQrModal&&((r=this.modal)==null||r.closeModal(),(n=this.modal)==null||n.openModal({uri:i})),this.events.emit("display_uri",i)})}switchEthereumChain(i){this.request({method:"wallet_switchEthereumChain",params:[{chainId:i.toString(16)}]})}isCompatibleChainId(i){return typeof i=="string"?i.startsWith(`${this.namespace}:`):!1}formatChainId(i){return`${this.namespace}:${i}`}parseChainId(i){return Number(i.split(":")[1])}setChainIds(i){const r=i.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));r.length&&(this.chainId=r[0],this.events.emit("chainChanged",nc(this.chainId)),this.persist())}setChainId(i){if(this.isCompatibleChainId(i)){const r=this.parseChainId(i);this.chainId=r,this.switchEthereumChain(r)}}parseAccountId(i){const[r,n,o]=i.split(":");return{chainId:`${r}:${n}`,address:o}}setAccounts(i){this.accounts=i.filter(r=>this.parseChainId(this.parseAccountId(r).chainId)===this.chainId).map(r=>this.parseAccountId(r).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(i){var r,n;const o=(r=i?.chains)!=null?r:[],l=(n=i?.optionalChains)!=null?n:[],d=o.concat(l);if(!d.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const y=o.length?i?.methods||pc:[],w=o.length?i?.events||dc:[],A=i?.optionalMethods||[],F=i?.optionalEvents||[],K=i?.rpcMap||this.buildRpcMap(d,i.projectId),J=i?.qrModalOptions||void 0;return{chains:o?.map(G=>this.formatChainId(G)),optionalChains:l.map(G=>this.formatChainId(G)),methods:y,events:w,optionalMethods:A,optionalEvents:F,rpcMap:K,showQrModal:!!(i!=null&&i.showQrModal),qrModalOptions:J,projectId:i.projectId,metadata:i.metadata}}buildRpcMap(i,r){const n={};return i.forEach(o=>{n[o]=this.getRpcUrl(o,r)}),n}async initialize(i){if(this.rpc=this.getRpcConfig(i),this.chainId=this.rpc.chains.length?ho(this.rpc.chains):ho(this.rpc.optionalChains),this.signer=await FE.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:i.disableProviderPing,relayUrl:i.relayUrl,storageOptions:i.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let r;try{const{WalletConnectModal:n}=await Q1(()=>import("./index-efe0fbcc.js").then(o=>o.a),["assets/index-efe0fbcc.js","assets/index-0b6b5a8e.js","assets/index-97aa736c.css"]);r=n}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(r)try{this.modal=new r(Bs({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains},this.rpc.qrModalOptions))}catch(n){throw this.signer.logger.error(n),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(i){if(!i)return;const{chains:r,optionalChains:n,rpcMap:o}=i;r&&ps(r)&&(this.rpc.chains=r.map(l=>this.formatChainId(l)),r.forEach(l=>{this.rpc.rpcMap[l]=o?.[l]||this.getRpcUrl(l)})),n&&ps(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(l=>this.formatChainId(l)),n.forEach(l=>{this.rpc.rpcMap[l]=o?.[l]||this.getRpcUrl(l)}))}getRpcUrl(i,r){var n;return((n=this.rpc.rpcMap)==null?void 0:n[i])||`${UE}?chainId=eip155:${i}&projectId=${r||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const i=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),r=this.session.namespaces[`${this.namespace}:${i}`]?this.session.namespaces[`${this.namespace}:${i}`]:this.session.namespaces[this.namespace];this.setChainIds(i?[this.formatChainId(i)]:r?.accounts),this.setAccounts(r?.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(i){return typeof i=="string"||i instanceof String?[this.parseAccount(i)]:i.map(r=>this.parseAccount(r))}}const ix=Oc;export{ix as EthereumProvider,zE as OPTIONAL_EVENTS,qE as OPTIONAL_METHODS,dc as REQUIRED_EVENTS,pc as REQUIRED_METHODS,Oc as default}; diff --git a/index.html b/index.html index 22b7add..0c59847 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <title>SelfCrypto</title> - <script type="module" crossorigin src="/selfcrypto/assets/index-3802bcce.js"></script> + <script type="module" crossorigin src="/selfcrypto/assets/index-0b6b5a8e.js"></script> <link rel="stylesheet" href="/selfcrypto/assets/index-97aa736c.css"> </head> <body> diff --git a/web3/src/main.ts b/web3/src/main.ts index ddeeccd..71acdfb 100644 --- a/web3/src/main.ts +++ b/web3/src/main.ts @@ -36,7 +36,7 @@ axios.defaults.withCredentials = false; Vue.prototype.$axios = axios; // ignore console.log -// console.log = ()=>{} +console.log = ()=>{} // const i18n = new VueI18n({ // locale: 'en-US', // 语言标识, 通过切换locale的值来实现语言切换,this.$i18n.locale diff --git a/web3/vite.config.ts b/web3/vite.config.ts index fe832da..0485693 100644 --- a/web3/vite.config.ts +++ b/web3/vite.config.ts @@ -32,6 +32,14 @@ export default defineConfig({ cache: false, }, outDir: "../selfcrypto", + + terserOptions: { + compress: { + //生产环境时移除console + drop_console: true, + drop_debugger: true, + }, + }, }, plugins: [ // vue()