1/*! For license information please see main.d9310ec6.js.LICENSE.txt */ 2(()=>{var e={251:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},462:(e,t,n)=>{"use strict";var r=n(21208),i=n(36042),a=n(95070),o=n(13310),s=n(46566);t.J4=32,t.PX=12,t.iW=16;var l=new Uint8Array(16),c=function(){function e(e){if(this.nonceLength=t.PX,this.tagLength=t.iW,e.length!==t.J4)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(e,o.length-e.length);var s=new Uint8Array(32);r.stream(this._key,o,s,4);var l,c=t.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");l=i}else l=new Uint8Array(c);return r.streamXOR(this._key,o,t,l,4),this._authenticate(l.subarray(l.length-this.tagLength,l.length),s,l.subarray(0,l.length-this.tagLength),n),a.wipe(o),l},e.prototype.open=function(e,t,n,i){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var o=new Uint8Array(16);o.set(e,o.length-e.length);var l=new Uint8Array(32);r.stream(this._key,o,l,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,l,t.subarray(0,t.length-this.tagLength),n),!s.equal(c,t.subarray(t.length-this.tagLength,t.length)))return null;var u,d=t.length-this.tagLength;if(i){if(i.length!==d)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(d);return r.streamXOR(this._key,o,t.subarray(0,t.length-this.tagLength),u,4),a.wipe(o),u},e.prototype.clean=function(){return a.wipe(this._key),this},e.prototype._authenticate=function(e,t,n,r){var s=new i.Poly1305(t);r&&(s.update(r),r.length%16>0&&s.update(l.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(l.subarray(n.length%16));var c=new Uint8Array(8);r&&o.writeUint64LE(r.length,c),s.update(c),o.writeUint64LE(n.length,c),s.update(c);for(var u=s.digest(),d=0;d<u.length;d++)e[d]=u[d];s.clean(),a.wipe(u),a.wipe(c)},e}();t.g6=c},514:(e,t,n)=>{"use strict";var r=n(29745),i=n(28057),a=n(29310),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw new o("Can't convert object to primitive value")}},732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(88686).__exportStar(n(66643),t)},889:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},1084:(e,t,n)=>{"use strict";var r=n(93219);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1111:(e,t,n)=>{var r=n(76958),i=n(41176),a=n(1787),o=n(70231),s=n(27455);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},1352:(e,t,n)=>{"use strict";var r=n(17119);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},1404:(e,t,n)=>{var r=n(92130),i=n(39248);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,a,o,e,s))}},1440:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(96752),i=n(50582);class a extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.hash)(e);const n=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,o=new Uint8Array(a);o.set(n.length>a?e.create().update(n).digest():n);for(let r=0;r<o.length;r++)o[r]^=54;this.iHash.update(o),this.oHash=e.create();for(let r=0;r<o.length;r++)o[r]^=106;this.oHash.update(o),o.fill(0)}update(e){return(0,r.exists)(this),this.iHash.update(e),this}digestInto(e){(0,r.exists)(this),(0,r.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=a;t.hmac=(e,t,n)=>new a(e,t).update(n).digest(),t.hmac.create=(e,t)=>
2new a(e,t)},1674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(39802),i=n(2420);class a extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.hash)(e);const n=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,o=new Uint8Array(a);o.set(n.length>a?e.create().update(n).digest():n);for(let r=0;r<o.length;r++)o[r]^=54;this.iHash.update(o),this.oHash=e.create();for(let r=0;r<o.length;r++)o[r]^=106;this.oHash.update(o),o.fill(0)}update(e){return(0,r.exists)(this),this.iHash.update(e),this}digestInto(e){(0,r.exists)(this),(0,r.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=a;t.hmac=(e,t,n)=>new a(e,t).update(n).digest(),t.hmac.create=(e,t)=>new a(e,t)},1736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;const r=n(85339),i=n(98976),a=BigInt(0),o=BigInt(1),s=9007199254740991;function l(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,i.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,i.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(n){(0,i.assertArgument)(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}(0,i.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function c(e,t){const n=l(e,t);return(0,i.assert)(n>=a,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}t.fromTwos=function(e,t){const n=c(e,"value"),r=BigInt(h(t,"width"));if((0,i.assert)(n>>r===a,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-o){return-((~n&(o<<r)-o)+o)}return n},t.toTwos=function(e,t){let n=l(e,"value");const r=BigInt(h(t,"width")),s=o<<r-o;if(n<a){n=-n,(0,i.assert)(n<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~n&(o<<r)-o)+o}return(0,i.assert)(n<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),n},t.mask=function(e,t){const n=c(e,"value"),r=BigInt(h(t,"bits"));return n&(o<<r)-o},t.getBigInt=l,t.getUint=c;const u="0123456789abcdef";function d(e){if(e instanceof Uint8Array){let t="0x0";for(const n of e)t+=u[n>>4],t+=u[15&n];return BigInt(t)}return l(e)}function h(e,t){switch(typeof e){case"bigint":return(0,i.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,i.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,i.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return h(BigInt(e),t)}catch(n){(0,i.assertArgument)(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}(0,i.assertArgument)(!1,"invalid numeric value",t||"value",e)}function f(e,t){const n=c(e,"value");if(n===a){const e=null!=t?h(t,"width"):0;return new Uint8Array(e)}let r=n.toString(16);if(r.length%2&&(r="0"+r),null!=t){const n=h(t,"width");for(;r.length<2*n;)r="00"+r;(0,i.assert)(2*n===r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeArray",fault:"overflow",value:e})}const o=new Uint8Array(r.length/2);for(let i=0;i<o.length;i++){const e=2*i;o[i]=parseInt(r.substring(e,e+2),16)}return o}t.toBigInt=d,t.getNumber=h,t.toNumber=function(e){return h(d(e))},t.toBeHex=function(e,t){const n=c(e,"value");let r=n.toString(16);if(null==t)r.length%2&&(r="0"+r);else{const o=h(t,"width");
2if(0===o&&n===a)return"0x";for((0,i.assert)(2*o>=r.length,`value exceeds width (${o} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});r.length<2*o;)r="0"+r}return"0x"+r},t.toBeArray=f,t.toQuantity=function(e){let t=(0,r.hexlify)((0,r.isBytesLike)(e)?e:f(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},1787:(e,t,n)=>{var r=n(73616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ECB=void 0;const r=n(94546);class i extends r.ModeOfOperation{constructor(e){super("ECB",e,i)}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16)t.set(this.aes.encrypt(e.subarray(n,n+16)),n);return t}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16)t.set(this.aes.decrypt(e.subarray(n,n+16)),n);return t}}t.ECB=i},2231:(e,t,n)=>{"use strict";var r=n(251),i=n(56412).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},2241:e=>{"use strict";var t=function(){};e.exports=t},2269:(e,t,n)=>{var r=n(42106)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},2420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const r=n(9684),i=e=>e instanceof Uint8Array;t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>
2new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!i(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=a[e[n]];return t},t.hexToBytes=function(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const t=2*r,i=e.slice(t,t+2),a=Number.parseInt(i,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");n[r]=a}return n};function o(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function s(e){if("string"===typeof e&&(e=o(e)),!i(e))throw new Error("expected Uint8Array, got "+typeof e);return e}t.nextTick=async()=>{},t.asyncLoop=async function(e,n,r){let i=Date.now();for(let a=0;a<e;a++){r(a);const e=Date.now()-i;e>=0&&e<n||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=o,t.toBytes=s,t.concatBytes=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let a=0;return t.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");r.set(e,a),a+=e.length})),r};t.Hash=class{clone(){return this._cloneInto()}};const l={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==l.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r.crypto&&"function"===typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},2870:(e,t,n)=>{"use strict";var r=n(28057),i=n(41763),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},3023:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}},3051:(e,t,n)=>{"use strict";var r=n(34437),i=n(58668),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},3315:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",o="["+a+"]",s="\\d+",l="["+n+"]",c="["+r+"]",u="[^"+t+a+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+i+"]",p="(?:"+c+"|"+u+")",g="(?:"+f+"|"+u+")",m="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",y="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",x=v+b+("(?:\\u200d(?:"+["[^"+t+"]",d,h].join("|")+")"+v+b+")*"),w="(?:"+[l,d,h].join("|")+")"+x,k=RegExp([f+"?"+c+"+"+m+"(?="+[o,f,"$"].join("|")+")",g+"+"+y+"(?="+[o,f+p,"$"].join("|")+")",f+"?"+p+"+"+m,f+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,w].join("|"),"g");e.exports=function(e){return e.match(k)||[]}}
2,3383:(e,t,n)=>{"use strict";var r=n(46635);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},3414:(e,t,n)=>{var r=n(66689)("toUpperCase");e.exports=r},3757:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;const i=n(24839),a=n(75593),o=n(55182),s=n(31223),l="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class c extends s.JsonRpcProvider{constructor(e,t){null==e&&(e="mainnet");const n=o.Network.from(e);null==t&&(t=l);super(c.getRequest(n,t),n,{staticNetwork:n}),r(this,"apiKey",void 0),(0,i.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(t){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){const{trace:n,tx:r}=await(0,i.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==n||null==r)return null;let a,o=!1;try{a=n[0].result.output,o="Reverted"===n[0].error}catch(t){}if(a)return(0,i.assert)(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:a,reason:null,transaction:r,invocation:null,revert:null}),a;(0,i.assert)(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(e)}isCommunityResource(){return this.apiKey===l}static getRequest(e,t){null==t&&(t=l);const n=new i.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.g.alchemy.com";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"bnb":return"bnb-mainnet.g.alchemy.com";case"bnbt":return"bnb-testnet.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,i.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return n.allowGzip=!0,t===l&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("alchemy"),!0)),n}}t.AlchemyProvider=c},3794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const r=n(69687),i=n(24839),a=BigInt(0),o=BigInt(36);function s(e){const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let r=0;r<40;r++)n[r]=t[r].charCodeAt(0);const a=(0,i.getBytes)((0,r.keccak256)(n));for(let r=0;r<40;r+=2)a[r>>1]>>4>=8&&(t[r]=t[r].toUpperCase()),(15&a[r>>1])>=8&&(t[r+1]=t[r+1].toUpperCase());return"0x"+t.join("")}const l={};for(let h=0;h<10;h++)l[String(h)]=String(h);for(let h=0;h<26;h++)l[String.fromCharCode(65+h)]=String(10+h);function c(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>l[e])).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const u=function(){const e={};for(let t=0;t<36;t++){e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t)}return e}();function d(e){if((0,i.assertArgument)("string"===typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=s(e);return(0,i.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,i.assertArgument)(e.substring(2,4)===c(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=a;for(let n=0;n<e.length;n++)t=t*o+u[e[n]];return t}(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return s("0x"+t)}(0,i.assertArgument)(!1,"invalid address","address",e)}t.getAddress=d,t.getIcapAddress=function(e){let t=BigInt(d(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+c("XE00"+t)+t}},4136:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4322:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(30378)),i=a(n(11098));
2function a(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||i.default,e.exports=t.default},4559:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const i=n(69687),a=n(24839),o=n(40387);function s(e){return(1<<e)-1<<8-e&255}function l(e,t){(0,a.assertNormalize)("NFKD"),null==t&&(t=o.LangEn.wordlist());const n=t.split(e);(0,a.assertArgument)(n.length%3===0&&n.length>=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const r=new Uint8Array(Math.ceil(11*n.length/8));let l=0;for(let i=0;i<n.length;i++){let e=t.getWordIndex(n[i].normalize("NFKD"));(0,a.assertArgument)(e>=0,`invalid mnemonic word at index ${i}`,"mnemonic","[ REDACTED ]");for(let t=0;t<11;t++)e&1<<10-t&&(r[l>>3]|=1<<7-l%8),l++}const c=32*n.length/3,u=s(n.length/3),d=(0,a.getBytes)((0,i.sha256)(r.slice(0,c/8)))[0]&u;return(0,a.assertArgument)(d===(r[r.length-1]&u),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,a.hexlify)(r.slice(0,c/8))}function c(e,t){(0,a.assertArgument)(e.length%4===0&&e.length>
2=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=o.LangEn.wordlist());const n=[0];let r=11;for(let i=0;i<e.length;i++)r>8?(n[n.length-1]<<=8,n[n.length-1]|=e[i],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[i]>>8-r,n.push(e[i]&((1<<8-r)-1&255)),r+=3);const l=e.length/4,c=parseInt((0,i.sha256)(e).substring(2,4),16)&s(l);return n[n.length-1]<<=l,n[n.length-1]|=c>>8-l,t.join(n.map((e=>t.getWord(e))))}const u={};class d{constructor(e,t,n,i,s){r(this,"phrase",void 0),r(this,"password",void 0),r(this,"wordlist",void 0),r(this,"entropy",void 0),null==i&&(i=""),null==s&&(s=o.LangEn.wordlist()),(0,a.assertPrivate)(e,u,"Mnemonic"),(0,a.defineProperties)(this,{phrase:n,password:i,wordlist:s,entropy:t})}computeSeed(){const e=(0,a.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,i.pbkdf2)((0,a.toUtf8Bytes)(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,t,n){const r=l(e,n);return e=c((0,a.getBytes)(r),n),new d(u,r,e,t,n)}static fromEntropy(e,t,n){const r=(0,a.getBytes)(e,"entropy"),i=c(r,n);return new d(u,(0,a.hexlify)(r),i,t,n)}static entropyToPhrase(e,t){return c((0,a.getBytes)(e,"entropy"),t)}static phraseToEntropy(e,t){return l(e,t)}static isValidMnemonic(e,t){try{return l(e,t),!0}catch(n){}return!1}}t.Mnemonic=d},4635:(e,t,n)=>{var r=n(14759).Symbol;e.exports=r},4744:(e,t,n)=>{e.exports=n(64802)()},4846:(e,t,n)=>{"use strict";n.d(t,{E:()=>i});var r=n(7466);function i(e){return(0,r.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},4978:e=>{e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}},5084:(e,t,n)=>{"use strict";var r=n(67037),i=n(29745),a=n(44796),o=n(84056),s=n(251),l=n(46635),c=n(28057),u=n(29310),d=n(82599),h=n(67834),f=n(10715),p=n(48506),g=n(61369),m=n(11146),y=n(62554),b=n(72566),v=n(49831)("replace"),x=Math.max,w=Math.min,k=a([].concat),A=a([].push),E=a("".indexOf),S=a("".slice),P="$0"==="a".replace(/./,"$0"),C=!!/./[v]&&""===/./[v]("a","$0");o("replace",(function(e,t,n){var a=C?"$":"$0";return[function(e,n){var r=p(this),a=u(e)?m(e,v):void 0;return a?i(a,e,r,n):i(t,f(r),e,n)},function(e,i){var o=l(this),s=f(e);if("string"==typeof i&&-1===E(i,a)&&-1===E(i,"$<")){var u=n(t,o,s,i);if(u.done)return u.value}var p=c(i);p||(i=f(i));var m,v=o.global;v&&(m=o.unicode,o.lastIndex=0);for(var P,C=[];null!==(P=b(o,s))&&(A(C,P),v);){""===f(P[0])&&(o.lastIndex=g(s,h(o.lastIndex),m))}for(var O,T="",N=0,_=0;_<C.length;_++){for(var I,R=f((P=C[_])[0]),M=x(w(d(P.index),s.length),0),j=[],L=1;L<P.length;L++)A(j,void 0===(O=P[L])?O:String(O));var B=P.groups;if(p){var F=k([R],j,M,s);void 0!==B&&A(F,B),I=f(r(i,void 0,F))}else I=y(R,s,M,j,B,i);M>=N&&(T+=S(s,N,M)+I,N=M+R.length)}return T+S(s,N)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!P||C)},5088:e=>{e.exports=function(){this.__data__=[],this.size=0}},5509:(e,t,n)=>{"use strict";t.g=void 0;const r=n(72146);t.g=function(){let e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(a){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=e.getElementsByTagName("meta");for(let e=0;e<i.length;e++){const t=i[e],r=["itemprop","property","name"].map((e=>t.getAttribute(e))).filter((e=>!!e&&n.includes(e)));if(r.length&&r){const e=t.getAttribute("content");if(e)return e}}return""}const i=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e<n.length;e++){const i=n[e],a=i.getAttribute("rel");if(a&&a.toLowerCase().indexOf("icon")>-1){const e=i.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop();n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:i}}},5776:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5911:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(34547);const i=new Map;function a(e){let{fn:t,id:n,shouldSplitBatch:a,wait:o=0,sort:s}=e;const l=async()=>{const e=u();c();const n=e.map((e=>{let{args:t}=e;return t}));0!==n.length&&t(n).then((t=>{s&&Array.isArray(t)&&t.sort(s);for(let n=0;n<e.length;n++){const{resolve:r}=e[n];null===r||void 0===r||r([t[n],t])}})).catch((t=>{for(let n=0;n<e.length;n++){const{reject:r}=e[n];null===r||void 0===r||r(t)}}))},c=()=>i.delete(n),u=()=>i.get(n)||[],d=e=>i.set(n,[...u(),e]);return{flush:c,async schedule(e){const{promise:t,resolve:n,reject:i}=(0,r.Y)();(null===a||void 0===a?void 0:a([...u().map((e=>{let{args:t}=e;return t})),e]))&&l();return u().length>0?(d({args:e,resolve:n,reject:i}),t):(d({args:e,resolve:n,reject:i}),setTimeout(l,o),t)}}}}
2,6054:(e,t,n)=>{"use strict";var r=n(16298),i=n(45266),a=n(77042);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:a?function(e){return a(e)}:null},6161:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(37088).default,a=n(16668).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const o=n(65891),s=n(24839),l=BigInt(0),c=BigInt(1),u=BigInt(2),d=BigInt(27),h=BigInt(28),f=BigInt(35),p=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),g=p/u,m=Symbol.for("nodejs.util.inspect.custom"),y={};function b(e){return(0,s.zeroPadValue)((0,s.toBeArray)(e),32)}var v=new WeakMap,x=new WeakMap,w=new WeakMap,k=new WeakMap;class A{get r(){return a(v,this)}set r(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid r","value",e),i(v,this,(0,s.hexlify)(e))}get s(){return(0,s.assertArgument)(parseInt(a(x,this).substring(0,3))<8,"non-canonical s; use ._s","s",a(x,this)),a(x,this)}set s(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid s","value",e),i(x,this,(0,s.hexlify)(e))}get _s(){return a(x,this)}isValid(){return BigInt(a(x,this))<=g}get v(){return a(w,this)}set v(e){const t=(0,s.getNumber)(e,"value");(0,s.assertArgument)(27===t||28===t,"invalid v","v",e),i(w,this,t)}get networkV(){return a(k,this)}get legacyChainId(){const e=this.networkV;return null==e?null:A.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=(0,s.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,s.hexlify)(e)}get compactSerialized(){return(0,s.concat)([this.r,this.yParityAndS])}get serialized(){return(0,s.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,n,a){r(this,v,void 0),r(this,x,void 0),r(this,w,void 0),r(this,k,void 0),(0,s.assertPrivate)(e,y,"Signature"),i(v,this,t),i(x,this,n),i(w,this,a),i(k,this,null)}getCanonical(){if(this.isValid())return this;const e=p-BigInt(this._s),t=55-this.v,n=new A(y,this.r,b(e),t);return this.networkV&&i(k,n,this.networkV),n}clone(){const e=new A(y,this.r,this._s,this.v);return this.networkV&&i(k,e,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}[m](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){const t=(0,s.getBigInt)(e,"v");return t==d||t==h?l:((0,s.assertArgument)(t>=f,"invalid EIP-155 v","v",e),(t-f)/u)}static getChainIdV(e,t){return(0,s.getBigInt)(e)*u+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,s.getBigInt)(e);return t===l||t===d?27:t===c||t===h?28:((0,s.assertArgument)(t>=f,"invalid v","v",e),t&c?27:28)}static from(e){function t(t,n){(0,s.assertArgument)(t,n,"signature",e)}if(null==e)return new A(y,o.ZeroHash,o.ZeroHash,27);if("string"===typeof e){const n=(0,s.getBytes)(e,"signature");if(64===n.length){const e=(0,s.hexlify)(n.slice(0,32)),t=n.slice(32,64),r=128&t[0]?28:27;return t[0]&=127,new A(y,e,(0,s.hexlify)(t),r)}if(65===n.length){const e=(0,s.hexlify)(n.slice(0,32)),t=(0,s.hexlify)(n.slice(32,64)),r=A.getNormalizedV(n[64]);return new A(y,e,t,r)}t(!1,"invalid raw signature length")}if(e instanceof A)return e.clone();const n=e.r;t(null!=n,"missing r");const r=b(n),a=function(e,n){if(null!=e)return b(e);if(null!=n){t((0,s.isHexString)(n,32),"invalid yParityAndS");const e=(0,s.getBytes)(n);return e[0]&=127,(0,s.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:l,v:c}=function(e,n,r){if(null!=e){const t=(0,s.getBigInt)(e);return{networkV:t>=f?t:void 0,v:A.getNormalizedV(t)}}if(null!=n)return t((0,s.isHexString)(n,32),"invalid yParityAndS"),{v:128&(0,s.getBytes)(n)[0]?28:27};if(null!=r){switch((0,s.getNumber)(r,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),u=new A(y,r,a,c);return l&&i(k,u,l),t(null==e.yParity||(0,s.getNumber)(e.yParity,"sig.yParity")===u.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===u.yParityAndS,"yParityAndS mismatch"),u}}t.Signature=A},6169:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{J:()=>r})},6351:(e,t,n)=>{"use strict";function r(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${a?`.${a}`:""}`}n.d(t,{J:()=>r})}
2,6538:(e,t,n)=>{"use strict";e.exports=n(60759)},6540:(e,t,n)=>{var r=n(10366),i=n(70423),a=n(15127);e.exports=function(e,t){var n={};return t=a(t,3),i(e,(function(e,i,a){r(n,t(e,i,a),e)})),n}},6638:(e,t,n)=>{var r=n(10366),i=n(70423),a=n(15127);e.exports=function(e,t){var n={};return t=a(t,3),i(e,(function(e,i,a){r(n,i,t(e,i,a))})),n}},6794:(e,t,n)=>{e=n.nmd(e);var r=n(14759),i=n(63721),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},7256:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const r=n(85339),i=n(98976);function a(e,t,n,r,i){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let r=t+1;r<n.length&&n[r]>>6===2;r++)e++;return e}return"OVERRUN"===e?n.length-t-1:0}function o(e,n){null==n&&(n=t.Utf8ErrorFuncs.error);const i=(0,r.getBytes)(e,"bytes"),a=[];let o=0;for(;o<i.length;){const e=i[o++];if(e>>7===0){a.push(e);continue}let t=null,r=null;if(192===(224&e))t=1,r=127;else if(224===(240&e))t=2,r=2047;else{if(240!==(248&e)){o+=n(128===(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",o-1,i,a);continue}t=3,r=65535}if(o-1+t>=i.length){o+=n("OVERRUN",o-1,i,a);continue}let s=e&(1<<8-t-1)-1;for(let l=0;l<t;l++){let e=i[o];if(128!=(192&e)){o+=n("MISSING_CONTINUE",o,i,a),s=null;break}s=s<<6|63&e,o++}null!==s&&(s>1114111?o+=n("OUT_OF_RANGE",o-1-t,i,a,s):s>=55296&&s<=57343?o+=n("UTF16_SURROGATE",o-1-t,i,a,s):s<=r?o+=n("OVERLONG",o-1-t,i,a,s):a.push(s))}return a}function s(e,t){(0,i.assertArgument)("string"===typeof e,"invalid string value","str",e),null!=t&&((0,i.assertNormalize)(t),e=e.normalize(t));let n=[];for(let r=0;r<e.length;r++){const t=e.charCodeAt(r);if(t<128)n.push(t);else if(t<2048)n.push(t>>6|192),n.push(63&t|128);else if(55296==(64512&t)){r++;const a=e.charCodeAt(r);(0,i.assertArgument)(r<e.length&&56320===(64512&a),"invalid surrogate pair","str",e);const o=65536+((1023&t)<<10)+(1023&a);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)}return new Uint8Array(n)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,n,r,a){(0,i.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:a,replace:function(e,t,n,r,o){return"OVERLONG"===e?((0,i.assertArgument)("number"===typeof o,"invalid bad code point for replacement","badCodepoint",o),r.push(o),0):(r.push(65533),a(e,t,n))}}),t.toUtf8Bytes=s,t.toUtf8String=function(e,t){return o(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")},t.toUtf8CodePoints=function(e,t){return o(s(e,t))}},7466:(e,t,n)=>{"use strict";function r(e){let{strict:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&("string"===typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}n.d(t,{q:()=>r})},7486:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(81756).default,o=n(16668).default,s=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;const l=n(24839);function c(e){return JSON.parse(JSON.stringify(e))}t.getPollingSubscriber=function(e,t){return"block"===t?new g(e):(0,l.isHexString)(t,32)?new S(e,t):void(0,l.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};var u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakSet;class g{constructor(e){r(this,p),i(this,u,void 0),i(this,d,void 0),i(this,h,void 0),i(this,f,void 0),s(u,this,e),s(d,this,null),s(h,this,4e3),s(f,this,-2)}get pollingInterval(){return o(h,this)}set pollingInterval(e){s(h,this,e)}start(){o(d,this)||(s(d,this,o(u,this)._setTimeout(a(p,this,m).bind(this),o(h,this))),a(p,this,m).call(this))}stop(){o(d,this)&&(o(u,this)._clearTimeout(o(d,this)),s(d,this,null))}pause(e){this.stop(),e&&s(f,this,-2)}resume(){this.start()}}async function m(){try{const e=await o(u,this).getBlockNumber();if(-2===o(f,this))return void s(f,this,e);if(e!==o(f,this)){for(let t=o(f,this)+1;t<=e;
2t++){if(null==o(d,this))return;await o(u,this).emit("block",t)}s(f,this,e)}}catch(e){}null!=o(d,this)&&s(d,this,o(u,this)._setTimeout(a(p,this,m).bind(this),o(h,this)))}t.PollingBlockSubscriber=g;var y=new WeakMap,b=new WeakMap,v=new WeakMap;class x{constructor(e){i(this,y,void 0),i(this,b,void 0),i(this,v,void 0),s(y,this,e),s(v,this,!1),s(b,this,(e=>{this._poll(e,o(y,this))}))}async _poll(e,t){throw new Error("sub-classes must override this")}start(){o(v,this)||(s(v,this,!0),o(b,this).call(this,-2),o(y,this).on("block",o(b,this)))}stop(){o(v,this)&&(s(v,this,!1),o(y,this).off("block",o(b,this)))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=x;var w=new WeakMap,k=new WeakMap;t.PollingBlockTagSubscriber=class extends x{constructor(e,t){super(e),i(this,w,void 0),i(this,k,void 0),s(w,this,t),s(k,this,-2)}pause(e){e&&s(k,this,-2),super.pause(e)}async _poll(e,t){const n=await t.getBlock(o(w,this));null!=n&&(-2===o(k,this)?s(k,this,n.number):n.number>o(k,this)&&(t.emit(o(w,this),n.number),s(k,this,n.number)))}};var A=new WeakMap;t.PollingOrphanSubscriber=class extends x{constructor(e,t){super(e),i(this,A,void 0),s(A,this,c(t))}async _poll(e,t){throw new Error("@TODO")}};var E=new WeakMap;class S extends x{constructor(e,t){super(e),i(this,E,void 0),s(E,this,t)}async _poll(e,t){const n=await t.getTransactionReceipt(o(E,this));n&&t.emit(o(E,this),n)}}t.PollingTransactionSubscriber=S;var P=new WeakMap,C=new WeakMap,O=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;async function I(e){if(-2===o(N,this))return;const t=c(o(C,this));t.fromBlock=o(N,this)+1,t.toBlock=e;const n=await o(P,this).getLogs(t);if(0!==n.length)for(const r of n)o(P,this).emit(o(C,this),r),s(N,this,r.blockNumber);else o(N,this)<e-60&&s(N,this,e-60)}t.PollingEventSubscriber=class{constructor(e,t){r(this,_),i(this,P,void 0),i(this,C,void 0),i(this,O,void 0),i(this,T,void 0),i(this,N,void 0),s(P,this,e),s(C,this,c(t)),s(O,this,a(_,this,I).bind(this)),s(T,this,!1),s(N,this,-2)}start(){o(T,this)||(s(T,this,!0),-2===o(N,this)&&o(P,this).getBlockNumber().then((e=>{s(N,this,e)})),o(P,this).on("block",o(O,this)))}stop(){o(T,this)&&(s(T,this,!1),o(P,this).off("block",o(O,this)))}pause(e){this.stop(),e&&s(N,this,-2)}resume(){this.start()}}},7628:(e,t,n)=>{"use strict";n.d(t,{c:()=>a});var r=n(91038),i=n(6351);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.J)(e,r.eL[t])}},7889:(e,t,n)=>{var r=n(45099);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const r=n(32996),i=n(24839);let a=!1;const o=function(e){return(0,r.keccak_256)(e)};let s=o;function l(e){const t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(s(t))}t.keccak256=l,l._=o,l.lock=function(){a=!0},l.register=function(e){if(a)throw new TypeError("keccak256 is locked");s=e},Object.freeze(l)},9073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=t.OFB=t.ECB=t.CTR=t.CFB=t.CBC=t.ModeOfOperation=t.AES=void 0;var r=n(76886);Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return r.AES}});var i=n(94546);Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return i.ModeOfOperation}});var a=n(79813);Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return a.CBC}});var o=n(36978);Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return o.CFB}});var s=n(10992);Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return s.CTR}});var l=n(1945);Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return l.ECB}});var c=n(32598);Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return c.OFB}});var u=n(89336);Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return u.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return u.pkcs7Strip}})},9186:(e,t,n)=>{"use strict";n.d(t,{S:()=>I});var r=n(70399);const i=BigInt(2**32-1),a=BigInt(32);function o(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&i),l:Number(e>>a&i)}:{h:0|Number(e>>a&i),l:0|Number(e&i)}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new
2Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:a,l:s}=o(e[i],t);[n[i],r[i]]=[a,s]}return[n,r]}const l=(e,t,n)=>e<<n|t>>>32-n,c=(e,t,n)=>t<<n|e>>>32-n,u=(e,t,n)=>t<<n-32|e>>>64-n,d=(e,t,n)=>e<<n-32|t>>>64-n;var h=n(67634);const f=[],p=[],g=[],m=BigInt(0),y=BigInt(1),b=BigInt(2),v=BigInt(7),x=BigInt(256),w=BigInt(113);for(let R=0,M=y,j=1,L=0;R<24;R++){[j,L]=[L,(2*j+3*L)%5],f.push(2*(5*L+j)),p.push((R+1)*(R+2)/2%64);let e=m;for(let t=0;t<7;t++)M=(M<<y^(M>>v)*w)%x,M&b&&(e^=y<<(y<<BigInt(t))-y);g.push(e)}const[k,A]=s(g,!0),E=(e,t,n)=>n>32?u(e,t,n):l(e,t,n),S=(e,t,n)=>n>32?d(e,t,n):c(e,t,n);class P extends h.Vw{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=a,(0,r.Fe)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,h.DH)(this.state)}keccak(){h.qv||(0,h.Fc)(this.state32),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,a=n[i],o=n[i+1],s=E(a,o,1)^n[t],l=S(a,o,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=l}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=p[n],a=E(t,i,r),o=S(t,i,r),s=f[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=k[r],e[1]^=A[r]}n.fill(0)}(this.state32,this.rounds),h.qv||(0,h.Fc)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r.CC)(this);const{blockLen:t,state:n}=this,i=(e=(0,h.ZJ)(e)).length;for(let r=0;r<i;){const a=Math.min(t-this.pos,i-r);for(let t=0;t<a;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,r.CC)(this,!1),(0,r.DO)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.Ht)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new P(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const C=(e,t,n)=>(0,h.ld)((()=>new P(t,e,n))),O=C(1,136,32);var T=n(7466),N=n(32146),_=n(97168);function I(e,t){const n=t||"hex",r=O((0,T.q)(e,{strict:!1})?(0,N.ZJ)(e):e);return"bytes"===n?r:(0,_.nj)(r)}},9454:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(81756).default;Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;const a=n(24839),o=n(10569),s=n(71263),l=n(30422),c=n(23171),u=n(20232),d=n(84035),h=n(33534),f=n(97018),p=n(34378),g=n(27577),m=n(89057),y=n(55114),b=n(24839),v=new Map;v.set(0,"GENERIC_PANIC"),v.set(1,"ASSERT_FALSE"),v.set(17,"OVERFLOW"),v.set(18,"DIVIDE_BY_ZERO"),v.set(33,"ENUM_RANGE_ERROR"),v.set(34,"BAD_STORAGE_DATA"),v.set(49,"STACK_UNDERFLOW"),v.set(50,"ARRAY_RANGE_ERROR"),v.set(65,"OUT_OF_MEMORY"),v.set(81,"UNINITIALIZED_FUNCTION_CALL");const x=new RegExp(/^bytes([0-9]*)$/),w=new RegExp(/^(u?int)([0-9]*)$/);let k=null,A=1024;var E=new WeakSet;class S{constructor(){r(this,E)}getDefaultValue(e){const t=e.map((e=>i(E,this,P).call(this,m.ParamType.from(e))));return new g.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,a.assertArgumentCount)(t.length,e.length,"types/values length mismatch");const n=e.map((e=>i(E,this,P).call(this,m.ParamType.from(e)))),r=new g.TupleCoder(n,"_"),s=new o.Writer;return r.encode(s,t),s.data}decode(e,t,n){const r=e.map((e=>i(E,this,P).call(this,m.ParamType.from(e))));return new g.TupleCoder(r,"_").decode(new o.Reader(t,n,A))}static _setDefaultMaxInflation(e){(0,a.assertArgument)("number"===typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),A=e}static defaultAbiCoder(){return null==k&&(k=new S),k}static getBuiltinCallException(e,t,n){return function(e,t,n,r){let i="missing revert data",a=null,o=null;if(n){i="execution reverted";const e=(0,b.getBytes)(n);if(n=(0,b.hexlify)(n),0===e.length)i+=" (no data present; likely require(false) occurred",a="require(false)";else if(e.length%32!==4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,b.hexlify)(e.slice(0,4)))try{a=r.decode(["string"],e.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[a]},i+=`: ${JSON.stringify(a)}`}catch(l){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,b.hexlify)(e.slice(0,4)))try{const t=Number(r.decode(["uint256"],e.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[t]},a=`Panic due to ${v.get(t)||"UNKNOWN"}(${t})`,i+=`: ${a}`}catch(l){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}const s={to:t.to?(0,y.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(s.from=(0,y.getAddress)(t.from)),(0,b.makeError)(i,"CALL_EXCEPTION",{action:e,data:n,reason:a,transaction:s,invocation:null,revert:o})}(e,t,n,S.defaultAbiCoder())}}function P(e){if(e.isArray())return new l.ArrayCoder(i(E,this,P).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new g.TupleCoder(e.components.map((e=>i(E,this,P).call(this,e))),e.name);switch(e.baseType){case"address":return new s.AddressCoder(e.name);case"bool":return new c.BooleanCoder(e.name);case"string":return new p.StringCoder(e.name);case"bytes":return new u.BytesCoder(e.name);case"":return new h.NullCoder(e.name)}
2let t=e.type.match(w);if(t){let n=parseInt(t[2]||"256");return(0,a.assertArgument)(0!==n&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new f.NumberCoder(n/8,"int"===t[1],e.name)}if(t=e.type.match(x),t){let n=parseInt(t[1]);return(0,a.assertArgument)(0!==n&&n<=32,"invalid bytes length","param",e),new d.FixedBytesCoder(n,e.name)}(0,a.assertArgument)(!1,"invalid type","type",e.type)}t.AbiCoder=S},9531:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(81756).default,a=n(42459).default,o=n(16668).default,s=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const l=n(67609),c=n(85339),u=n(98976),d=n(10986),h=n(7256),f=n(11507);let p=(0,f.createGetUrl)();const g=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),m=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let y=!1;async function b(e,t){try{const t=e.match(g);if(!t)throw new Error("invalid data");return new K(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,l.decodeBase64)(t[3]):(n=t[3],(0,h.toUtf8Bytes)(n.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))))}catch(r){return new K(599,"BAD REQUEST (invalid data: URI)",{},null,new W(e))}var n}function v(e){return async function(t,n){try{const n=t.match(m);if(!n)throw new Error("invalid link");return new W(`${e}${n[2]}`)}catch(r){return new K(599,"BAD REQUEST (invalid IPFS URI)",{},null,new W(t))}}}const x={data:b,ipfs:v("https://gateway.ipfs.io/ipfs/")},w=new WeakMap;var k=new WeakMap,A=new WeakMap;class E{constructor(e){a(this,k,void 0),a(this,A,void 0),s(k,this,[]),s(A,this,!1),w.set(e,(()=>{if(!o(A,this)){s(A,this,!0);for(const e of o(k,this))setTimeout((()=>{e()}),0);s(k,this,[])}}))}addListener(e){(0,u.assert)(!o(A,this),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),o(k,this).push(e)}get cancelled(){return o(A,this)}checkSignal(){(0,u.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function S(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=E;var P=new WeakMap,C=new WeakMap,O=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,I=new WeakMap,R=new WeakMap,M=new WeakMap,j=new WeakMap,L=new WeakMap,B=new WeakMap,F=new WeakMap,D=new WeakMap,U=new WeakMap,z=new WeakSet;class W{get url(){return o(_,this)}set url(e){s(_,this,String(e))}get body(){return null==o(I,this)?null:new Uint8Array(o(I,this))}set body(e){if(null==e)s(I,this,void 0),s(R,this,void 0);else if("string"===typeof e)s(I,this,(0,h.toUtf8Bytes)(e)),s(R,this,"text/plain");else if(e instanceof Uint8Array)s(I,this,e),s(R,this,"application/octet-stream");else{if("object"!==typeof e)throw new Error("invalid body");s(I,this,(0,h.toUtf8Bytes)(JSON.stringify(e))),s(R,this,"application/json")}}hasBody(){return null!=o(I,this)}get method(){return o(T,this)?o(T,this):this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),s(T,this,String(e).toUpperCase())}get headers(){const e=Object.assign({},o(O,this));return o(M,this)&&(e.authorization=`Basic ${(0,l.encodeBase64)((0,h.toUtf8Bytes)(o(M,this)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&o(R,this)&&(e["content-type"]=o(R,this)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){o(O,this)[String(e).toLowerCase()]=String(t)}clearHeaders(){s(O,this,{})}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return o(M,this)||null}setCredentials(e,t){(0,u.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),s(M,this,`${e}:${t}`)}get allowGzip(){return o(C,this)}set allowGzip(e){s(C,this,!!e)}get allowInsecureAuthentication(){return!!o(P,this)}set allowInsecureAuthentication(e){s(P,this,!!e)}get timeout(){return o(N,this)}set timeout(e){(0,u.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),s(N,this,e)}get preflightFunc(){return o(j,this)||null}set preflightFunc(e){s(j,this,e)}get processFunc(){return o(L,this)||null}set processFunc(e){s(L,this,e)}get retryFunc(){return o(B,this)||null}set retryFunc(e){s(B,this,e)}get getUrlFunc(){return o(U,this)||p}set getUrlFunc(e){s(U,this,e)}constructor(e){r(this,z),a(this,P,void 0),a(this,C,void 0),a(this,O,void 0),a(this,T,void 0),a(this,N,void 0),a(this,_,void 0),a(this,I,void 0),a(this,R,void 0),a(this,M,void 0),a(this,j,void 0),a(this,L,void 0),a(this,B,void 0),a(this,F,void 0),a(this,D,void 0),a(this,U,void 0),s(_,this,String(e)),s(P,this,
2!1),s(C,this,!0),s(O,this,{}),s(T,this,""),s(N,this,3e5),s(D,this,{slotInterval:250,maxAttempts:12}),s(U,this,null)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${o(I,this)?(0,c.hexlify)(o(I,this)):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(o(D,this).slotInterval=e.slotInterval),null!=e.maxAttempts&&(o(D,this).maxAttempts=e.maxAttempts)}send(){return(0,u.assert)(null==o(F,this),"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),s(F,this,new E(this)),i(z,this,H).call(this,0,Q()+this.timeout,0,this,new K(0,"",{},null,this))}cancel(){(0,u.assert)(null!=o(F,this),"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=w.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();(0,u.assert)(("https"!==t||"http"!==n)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new W(e);return r.method=this.method,r.allowGzip=this.allowGzip,r.timeout=this.timeout,s(O,r,Object.assign({},o(O,this))),o(I,this)&&s(I,r,new Uint8Array(o(I,this))),s(R,r,o(R,this)),r}clone(){const e=new W(this.url);return s(T,e,o(T,this)),o(I,this)&&s(I,e,o(I,this)),s(R,e,o(R,this)),s(O,e,Object.assign({},o(O,this))),s(M,e,o(M,this)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),s(j,e,o(j,this)),s(L,e,o(L,this)),s(B,e,o(B,this)),s(D,e,Object.assign({},o(D,this))),s(U,e,o(U,this)),e}static lockConfig(){y=!0}static getGateway(e){return x[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(y)throw new Error("gateways locked");x[e]=t}static registerGetUrl(e){if(y)throw new Error("gateways locked");p=e}static createGetUrlFunc(e){return(0,f.createGetUrl)(e)}static createDataGateway(){return b}static createIpfsGatewayFunc(e){return v(e)}}async function H(e,t,n,r,a){if(e>=o(D,this).maxAttempts)return a.makeServerError("exceeded maximum retry limit");(0,u.assert)(Q()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(n);let s=this.clone();const l=(s.url.split(":")[0]||"").toLowerCase();if(l in x){const e=await x[l](s.url,S(o(F,r)));if(e instanceof K){let t=e;if(this.processFunc){S(o(F,r));try{t=await this.processFunc(s,t)}catch(g){null!=g.throttle&&"number"===typeof g.stall||t.makeServerError("error in post-processing function",g).assertOk()}}return t}s=e}this.preflightFunc&&(s=await this.preflightFunc(s));const c=await this.getUrlFunc(s,S(o(F,r)));let d=new K(c.statusCode,c.statusMessage,c.headers,c.body,r);if([301,302,307,308].indexOf(d.statusCode)>=0){try{var h;const n=d.headers.location||"";return i(z,h=s.redirect(n),H).call(h,e+1,t,0,r,d)}catch(g){}return d}if(429===d.statusCode&&(null==this.retryFunc||await this.retryFunc(s,d,e))){var f;const n=d.headers["retry-after"];let a=o(D,this).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"===typeof n&&n.match(/^[1-9][0-9]*$/)&&(a=parseInt(n)),i(z,f=s.clone(),H).call(f,e+1,t,a,r,d)}if(this.processFunc){S(o(F,r));try{d=await this.processFunc(s,d)}catch(g){var p;null!=g.throttle&&"number"===typeof g.stall||d.makeServerError("error in post-processing function",g).assertOk();let n=o(D,this).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return g.stall>=0&&(n=g.stall),i(z,p=s.clone(),H).call(p,e+1,t,n,r,d)}}return d}t.FetchRequest=W;var V=new WeakMap,G=new WeakMap,Y=new WeakMap,q=new WeakMap,X=new WeakMap,$=new WeakMap;class K{toString(){return`<FetchResponse status=${this.statusCode} body=${o(q,this)?(0,c.hexlify)(o(q,this)):"null"}>`}get statusCode(){return o(V,this)}get statusMessage(){return o(G,this)}get headers(){return Object.assign({},o(Y,this))}get body(){return null==o(q,this)?null:new Uint8Array(o(q,this))}get bodyText(){try{return null==o(q,this)?"":(0,h.toUtf8String)(o(q,this))}
2catch(e){(0,u.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,u.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,n,r,i){a(this,V,void 0),a(this,G,void 0),a(this,Y,void 0),a(this,q,void 0),a(this,X,void 0),a(this,$,void 0),s(V,this,e),s(G,this,t),s(Y,this,Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=String(n[t]),e)),{})),s(q,this,null==r?null:new Uint8Array(r)),s(X,this,i||null),s($,this,{message:""})}makeServerError(e,t){let n;n=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const r=new K(599,n,this.headers,this.body,o(X,this)||void 0);return s($,r,{message:e,error:t}),r}throwThrottleError(e,t){null==t?t=-1:(0,u.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw(0,d.defineProperties)(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=o(q,this)}get request(){return o(X,this)}ok(){return""===o($,this).message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=o($,this);""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let r=null;try{o(q,this)&&(r=(0,h.toUtf8String)(o(q,this)))}catch(i){}(0,u.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:n,responseBody:r,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function Q(){return(new Date).getTime()}t.FetchResponse=K},9684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},9950:(e,t,n)=>{"use strict";e.exports=n(32049)},10003:(e,t,n)=>{"use strict";n.d(t,{h:()=>p,k:()=>y});var r=n(89676),i=n(58418),a=n(36026),o=n(59050),s=n(78753),l=n(82651),c=n(93914),u=n(4846),d=n(21273),h=n(97168),f=n(20757);function p(e,t){if(e.length!==t.length)throw new r.YE({expectedLength:e.length,givenLength:t.length});const n=function(e){let{params:t,values:n}=e;const r=[];for(let i=0;i<t.length;i++)r.push(g({param:t[i],value:n[i]}));return r}({params:e,values:t}),i=m(n);return 0===i.length?"0x":i}function g(e){let{param:t,value:n}=e;const p=y(t.type);if(p){const[e,i]=p;return function(e,t){let{length:n,param:i}=t;const a=null===n;if(!Array.isArray(e))throw new r.dm(e);if(!a&&e.length!==n)throw new r.Nc({expectedLength:n,givenLength:e.length,type:`${i.type}[${n}]`});let o=!1;const s=[];for(let r=0;r<e.length;r++){const t=g({param:i,value:e[r]});t.dynamic&&(o=!0),s.push(t)}if(a||o){const e=m(s);if(a){const t=(0,h.cK)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,l.xW)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,l.xW)(s.map((e=>{let{encoded:t}=e;return t})))}}(n,{length:e,param:{...t,type:i}})}if("tuple"===t.type)return function(e,t){let{param:n}=t,r=!1;const i=[];for(let a=0;a<n.components.length;a++){const t=n.components[a],o=g({param:t,value:e[Array.isArray(e)?a:t.name]});i.push(o),o.dynamic&&(r=!0)}return{dynamic:r,encoded:r?m(i):(0,l.xW)(i.map((e=>{let{encoded:t}=e;return t})))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,s.P)(e))throw new i.M({address:e});return{dynamic:!1,encoded:(0,c.db)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!==typeof e)throw new a.C(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.db)((0,h.$P)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){var b;const e=t.type.startsWith("int"),[,,r="256"]=null!==(b=f.Ge.exec(t.type))&&void 0!==b?b:[];return function(e,t){let{signed:n,size:r=256}=t;if("number"===typeof r){const t=2n**(BigInt(r)-(n?1n:0n))-1n,i=n?-t-1n:0n;if(e>t||e<i)throw new o.Ty({max:t.toString(),min:i.toString(),signed:n,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,h.cK)(e,{size:32,signed:n})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,t){let{param:n}=t;const[,i]=n.type.split("bytes"),a=(0,u.E)(e);if(!i){let t=e;
2return a%32!==0&&(t=(0,c.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,l.xW)([(0,c.db)((0,h.cK)(a,{size:32})),t])}}if(a!==Number.parseInt(i))throw new r.gH({expectedSize:Number.parseInt(i),value:e});return{dynamic:!1,encoded:(0,c.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){const t=(0,h.i3)(e),n=Math.ceil((0,u.E)(t)/32),r=[];for(let i=0;i<n;i++)r.push((0,c.db)((0,d.di)(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:(0,l.xW)([(0,c.db)((0,h.cK)((0,u.E)(t),{size:32})),...r])}}(n);throw new r.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function m(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:n,encoded:r}=e[a];t+=n?32:(0,u.E)(r)}const n=[],r=[];let i=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:s}=e[a];o?(n.push((0,h.cK)(t+i,{size:32})),r.push(s),i+=(0,u.E)(s)):n.push(s)}return(0,l.xW)([...n,...r])}function y(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},10052:(e,t,n)=>{var r=n(26463),i=n(92535);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},10078:(e,t,n)=>{var r=n(29508),i=n(21536),a=n(29892);e.exports=function(e){return i(e)?a(e):r(e)}},10150:(e,t,n)=>{var r=n(45099),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},10255:e=>{"use strict";e.exports=!1},10366:(e,t,n)=>{var r=n(88925);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},10569:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(81756).default,a=n(43693).default,o=n(42459).default,s=n(16668).default,l=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;const c=n(24839);t.WordSize=32;const u=new Uint8Array(t.WordSize),d=["then"],h={},f=new WeakMap;function p(e){return f.get(e)}function g(e,t){f.set(e,t)}function m(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}function y(e,t,n){return e.indexOf(null)>=0?t.map(((e,t)=>e instanceof v?y(p(e),e,n):e)):e.reduce(((e,r,i)=>{let a=t.getValue(r);return r in e||(n&&a instanceof v&&(a=y(p(a),a,n)),e[r]=a),e}),{})}var b=new WeakMap;class v extends Array{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0];let i=t[1],a=(t[2]||[]).slice(),u=!0;r!==h&&(i=t,a=[],u=!1),super(i.length),o(this,b,void 0),i.forEac
2h(((e,t)=>{this[t]=e}));const f=a.reduce(((e,t)=>("string"===typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(g(this,Object.freeze(i.map(((e,t)=>{const n=a[t];return null!=n&&1===f.get(n)?n:null})))),l(b,this,[]),null==s(b,this)&&s(b,this),!u)return;Object.freeze(this);const y=new Proxy(this,{get:(e,t,n)=>{if("string"===typeof t){if(t.match(/^[0-9]+$/)){const n=(0,c.getNumber)(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const r=e[n];return r instanceof Error&&m(`index ${n}`,r),r}if(d.indexOf(t)>=0)return Reflect.get(e,t,n);const r=e[t];if(r instanceof Function)return function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return r.apply(this===n?e:this,i)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}});return g(y,p(this)),y}toArray(e){const t=[];return this.forEach(((n,r)=>{n instanceof Error&&m(`index ${r}`,n),e&&n instanceof v&&(n=n.toArray(e)),t.push(n)})),t}toObject(e){const t=p(this);return t.reduce(((n,r,i)=>((0,c.assert)(null!=r,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),y(t,this,e))),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=p(this),r=[],i=[];for(let a=e;a<t;a++)r.push(this[a]),i.push(n[a]);return new v(h,r,i)}filter(e,t){const n=p(this),r=[],i=[];for(let a=0;a<this.length;a++){const o=this[a];o instanceof Error&&m(`index ${a}`,o),e.call(t,o,a,this)&&(r.push(o),i.push(n[a]))}return new v(h,r,i)}map(e,t){const n=[];for(let r=0;r<this.length;r++){const i=this[r];i instanceof Error&&m(`index ${r}`,i),n.push(e.call(t,i,r,this))}return n}getValue(e){const t=p(this).indexOf(e);if(-1===t)return;const n=this[t];return n instanceof Error&&m(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,t){return new v(h,e,t)}}function x(e){let n=(0,c.toBeArray)(e);return(0,c.assert)(n.length<=t.WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:n,length:t.WordSize,offset:n.length}),n.length!==t.WordSize&&(n=(0,c.getBytesCopy)((0,c.concat)([u.slice(n.length%t.WordSize),n]))),n}t.Result=v,t.checkResultErrors=function(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let a in r){const o=e.slice();o.push(a);try{n(o,r[a])}catch(i){t.push({path:o,error:i})}}};return n([],e),t};t.Coder=class{constructor(e,t,n,r){a(this,"name",void 0),a(this,"type",void 0),a(this,"localName",void 0),a(this,"dynamic",void 0),(0,c.defineProperties)(this,{name:e,type:t,localName:n,dynamic:r},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,c.assertArgument)(!1,e,this.localName,t)}};var w=new WeakMap,k=new WeakMap,A=new WeakSet;function E(e){return s(w,this).push(e),l(k,this,s(k,this)+e.length),e.length}t.Writer=class{constructor(){r(this,A),o(this,w,void 0),o(this,k,void 0),l(w,this,[]),l(k,this,0)}get data(){return(0,c.concat)(s(w,this))}get length(){return s(k,this)}appendWriter(e){return i(A,this,E).call(this,(0,c.getBytesCopy)(e.data))}writeBytes(e){let n=(0,c.getBytesCopy)(e);const r=n.length%t.WordSize;return r&&(n=(0,c.getBytesCopy)((0,c.concat)([n,u.slice(r)]))),i(A,this,E).call(this,n)}writeValue(e){return i(A,this,E).call(this,x(e))}writeUpdatableValue(){const e=s(w,this).length;return s(w,this).push(u),l(k,this,s(k,this)+t.WordSize),t=>{s(w,this)[e]=x(t)}}};var S=new WeakMap,P=new WeakMap,C=new WeakMap,O=new WeakMap,T=new WeakMap,N=new WeakSet;class _{constructor(e,t,n){r(this,N),a(this,"allowLoose",void 0),o(this,S,void 0),o(this,P,void 0),o(this,C,void 0),o(this,O,void 0),o(this,T,void 0),(0,c.defineProperties)(this,{allowLoose:!!t}),l(S,this,(0,c.getBytesCopy)(e)),l(C,this,0),l(O,this,null),l(T,this,null!=n?n:1024),l(P,this,0)}get data(){return(0,c.hexlify)(s(S,this))}get dataLength(){return s(S,this).length}get consumed(){return s(P,this)}get bytes(){return new Uint8Array(s(S,this))}subReader(e){const t=new _(s(S,this).slice(s(P,this)+e),this.allowLoose,s(T,this));return l(O,t,this),t}readBytes(e,t){let n=i(N,this,R).call(this,0,e,!!t);return i(N,this,I).call(this,e),l(P,this,s(P,this)+n.length),n.slice(0,e)}readValue(){return(0,c.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,c.toNumber)(this.readBytes(t.WordSize))}}function I(e){var t;if(s(O,this))return i(N,t=s(O,this),I).call(t,e);l(C,this,s(C,this)+e),(0,c.assert)(s(T,this)<1||s(C,this)<=s(T,this)*this.dataLength,`c
2ompressed ABI data exceeds inflation ratio of ${s(T,this)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,c.getBytesCopy)(s(S,this)),offset:s(P,this),length:e,info:{bytesRead:s(C,this),dataLength:this.dataLength}})}function R(e,n,r){let i=Math.ceil(n/t.WordSize)*t.WordSize;return s(P,this)+i>s(S,this).length&&(this.allowLoose&&r&&s(P,this)+n<=s(S,this).length?i=n:(0,c.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,c.getBytesCopy)(s(S,this)),length:s(S,this).length,offset:s(P,this)+i})),s(S,this).slice(s(P,this),s(P,this)+i)}t.Reader=_},10690:(e,t,n)=>{"use strict";var r=n(37375),i=n(29460),a=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?i([n]):n}},10715:(e,t,n)=>{"use strict";var r=n(34959),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},10964:(e,t,n)=>{var r=n(26463),i=n(24578),a=n(12279),o=n(97059),s=n(5776),l=n(92535);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&o(h,u)&&(a(e)||i(e))}},10986:(e,t)=>{"use strict";function n(e,t,n){const r=t.split("|").map((e=>e.trim()));for(let a=0;a<r.length;a++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}const i=new Error(`invalid value for type ${t}`);throw i.code="INVALID_ARGUMENT",i.argument=`value.${n}`,i.value=e,i}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=async function(e){const t=Object.keys(e);return(await Promise.all(t.map((t=>Promise.resolve(e[t]))))).reduce(((e,n,r)=>(e[t[r]]=n,e)),{})},t.defineProperties=function(e,t,r){for(let i in t){let a=t[i];const o=r?r[i]:null;o&&n(a,o,i),Object.defineProperty(e,i,{enumerable:!0,value:a,writable:!1})}}},10992:function(e,t,n){"use strict";var r,i,a,o=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},s=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CTR=void 0;const l=n(94546);class c extends l.ModeOfOperation{constructor(e,t){super("CTR",e,c),r.set(this,void 0),i.set(this,void 0),a.set(this,void 0),o(this,a,new Uint8Array(16),"f"),s(this,a,"f").fill(0),o(this,r,s(this,a,"f"),"f"),o(this,i,16,"f"),null==t&&(t=1),"number"===typeof t?this.setCounterValue(t):this.setCounterBytes(t)}get counter(){return new Uint8Array(s(this,a,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let t=15;t>=0;--t)s(this,a,"f")[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(16!==e.length)throw new TypeError("invalid counter initial Uint8Array value length");s(this,a,"f").set(e)}increment(){for(let e=15;e>=0;e--){if(255!==s(this,a,"f")[e]){s(this,a,"f")[e]++;break}s(this,a,"f")[e]=0}}encrypt(e){var t,n;const l=new Uint8Array(e);for(let c=0;c<l.length;c++)16===s(this,i,"f")&&(o(this,r,this.aes.encrypt(s(this,a,"f")),"f"),o(this,i,0,"f"),this.increment()),l[c]^=s(this,r,"f")[(o(this,i,(n=s(this,i,"f"),t=n++,n),"f"),t)];return l}decrypt(e){return this.encrypt(e)}}t.CTR=c,r=new WeakMap,i=new WeakMap,a=new WeakMap},11098:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(30378),i=(o(r),o(n(74058))),a=o(n(88153));o(n(2241));
2function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=1073741823;t.default=function(e,t){var n,o,d="__create-react-context-"+(0,a.default)()+"__",h=function(e){function n(){var t,r;s(this,n);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return t=r=l(this,e.call.apply(e,[this].concat(a))),r.emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(r.props.value),l(r,t)}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[d]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;((a=n)===(o=r)?0!==a||1/a===1/o:a!==a&&o!==o)?i=0:(i="function"===typeof t?t(n,r):u,0!==(i|=0)&&this.emitter.set(e.value,i))}var a,o},n.prototype.render=function(){return this.props.children},n}(r.Component);h.childContextTypes=((n={})[d]=i.default.object.isRequired,n);var f=function(t){function n(){var e,r;s(this,n);for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return e=r=l(this,t.call.apply(t,[this].concat(a))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!==((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},l(r,e)}return c(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?u:t},n.prototype.componentDidMount=function(){this.context[d]&&this.context[d].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?u:e},n.prototype.componentWillUnmount=function(){this.context[d]&&this.context[d].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[d]?this.context[d].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((o={})[d]=i.default.object,o),{Provider:h,Consumer:f}},e.exports=t.default},11146:(e,t,n)=>{"use strict";var r=n(2870),i=n(73529);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},11377:(e,t,n)=>{"use strict";var r=n(251),i=n(56412).RegExp,a=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),o=a||r((function(){return!i("a","y").sticky})),s=a||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},11454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.verifyAuthorization=t.hashAuthorization=void 0;var r=n(82007);Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return r.hashAuthorization}}),Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return r.verifyAuthorization}});var i=n(11909);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return i.id}});var a=n(57651);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return a.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return a.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return a.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return a.dnsEncode}});var o=n(28089);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return o.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return o.verifyMessage}});var s=n(78645);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return s.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return s.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return s.solidityPackedSha256}});var l=n(87555);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}
2})},11507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const r=n(98976);function i(e){return async function(t,n){(0,r.assert)(null==n||!n.cancelled,"request cancelled before sending","CANCELLED");const i=t.url.split(":")[0].toLowerCase();(0,r.assert)("http"===i||"https"===i,`unsupported protocol ${i}`,"UNSUPPORTED_OPERATION",{info:{protocol:i},operation:"request"}),(0,r.assert)("https"===i||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let a=null;const o=new AbortController,s=setTimeout((()=>{a=(0,r.makeError)("request timeout","TIMEOUT"),o.abort()}),t.timeout);n&&n.addListener((()=>{a=(0,r.makeError)("request cancelled","CANCELLED"),o.abort()}));const l=Object.assign({},e,{method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:o.signal});let c;try{c=await fetch(t.url,l)}catch(f){if(clearTimeout(s),a)throw a;throw f}clearTimeout(s);const u={};c.headers.forEach(((e,t)=>{u[t.toLowerCase()]=e}));const d=await c.arrayBuffer(),h=null==d?null:new Uint8Array(d);return{statusCode:c.status,statusMessage:c.statusText,headers:u,body:h}}}t.createGetUrl=i;const a=i({});t.getUrl=async function(e,t){return a(e,t)}},11613:(e,t,n)=>{"use strict";function r(e,t){let{format:n}=t;if(!n)return{};const r={};return function t(n){const i=Object.keys(n);for(const a of i)a in e&&(r[a]=e[a]),n[a]&&"object"===typeof n[a]&&!Array.isArray(n[a])&&t(n[a])}(n(e||{})),r}n.d(t,{o:()=>r})},11909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;const r=n(69687),i=n(24839);t.id=function(e){return(0,r.keccak256)((0,i.toUtf8Bytes)(e))}},11942:(e,t,n)=>{e.exports=n(43488)()},12006:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const r=n(96752),i=n(1440),a=n(50582);function o(e,t,n,o){(0,r.hash)(e);const s=(0,a.checkOpts)({dkLen:32,asyncTick:10},o),{c:l,dkLen:c,asyncTick:u}=s;if((0,r.number)(l),(0,r.number)(c),(0,r.number)(u),l<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,a.toBytes)(t),h=(0,a.toBytes)(n),f=new Uint8Array(c),p=i.hmac.create(e,d),g=p._cloneInto().update(h);return{c:l,dkLen:c,asyncTick:u,DK:f,PRF:p,PRFSalt:g}}function s(e,t,n,r,i){return e.destroy(),t.destroy(),r&&r.destroy(),i.fill(0),n}t.pbkdf2=function(e,t,n,r){const{c:i,dkLen:l,DK:c,PRF:u,PRFSalt:d}=o(e,t,n,r);let h;const f=new Uint8Array(4),p=(0,a.createView)(f),g=new Uint8Array(u.outputLen);for(let a=1,o=0;o<l;a++,o+=u.outputLen){const e=c.subarray(o,o+u.outputLen);p.setInt32(0,a,!1),(h=d._cloneInto(h)).update(f).digestInto(g),e.set(g.subarray(0,e.length));for(let t=1;t<i;t++){u._cloneInto(h).update(g).digestInto(g);for(let t=0;t<e.length;t++)e[t]^=g[t]}}return s(u,d,c,h,g)},t.pbkdf2Async=async function(e,t,n,r){const{c:i,dkLen:l,asyncTick:c,DK:u,PRF:d,PRFSalt:h}=o(e,t,n,r);let f;const p=new Uint8Array(4),g=(0,a.createView)(p),m=new Uint8Array(d.outputLen);for(let o=1,s=0;s<l;o++,s+=d.outputLen){const e=u.subarray(s,s+d.outputLen);g.setInt32(0,o,!1),(f=h._cloneInto(f)).update(p).digestInto(m),e.set(m.subarray(0,e.length)),await(0,a.asyncLoop)(i-1,c,(()=>{d._cloneInto(f).update(m).digestInto(m);for(let t=0;t<e.length;t++)e[t]^=m[t]}))}return s(d,h,u,f,m)}},12172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const r=n(80062),i=n(50582),a=(e,t,n)=>e&t^e&n^t&n,o=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,2756
2734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);class c extends r.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let i=0;i<16;i++,t+=4)l[i]=e.getUint32(t,!1);for(let a=16;a<64;a++){const e=l[a-15],t=l[a-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,r=(0,i.rotr)(t,17)^(0,i.rotr)(t,19)^t>>>10;l[a]=r+l[a-7]+n+l[a-16]|0}let{A:n,B:r,C:s,D:c,E:u,F:d,G:h,H:f}=this;for(let g=0;g<64;g++){const e=f+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((p=u)&d^~p&h)+o[g]+l[g]|0,t=((0,i.rotr)(n,2)^(0,i.rotr)(n,13)^(0,i.rotr)(n,22))+a(n,r,s)|0;f=h,h=d,d=u,u=c+e|0,c=s,s=r,r=n,n=e+t|0}var p;n=n+this.A|0,r=r+this.B|0,s=s+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(n,r,s,c,u,d,h,f)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new u))},12279:e=>{var t=Array.isArray;e.exports=t},12791:(e,t,n)=>{var r=n(85661),i=n(81465),a=n(54467);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},12889:(e,t,n)=>{"use strict";var r=n(76040),i=n(251),a=n(93355);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},13310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17594);function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function a(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function l(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function c(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function h(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),u(e/4294967296>>>0,t,n),u(e>>>0,t,n+4),t}function f(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=i,t.writeInt16BE=i,t.writeUint16LE=a,t.writeInt16LE=a,t.readInt32BE=o,t.readUint32BE=s,t.readInt32LE=l,t.readUint32LE=c,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=o(e,t),r=o(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=l(e,t);return 4294967296*l(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintBE supp
2orts only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,a=e/8+n-1;a>=n;a--)r+=t[a]*i,i*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,a=n;a<n+e/8;a++)r+=t[a]*i,i*=256;return r},t.writeUintBE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintBE value must be an integer");for(var a=1,o=e/8+i-1;o>=i;o--)n[o]=t/a&255,a*=256;return n},t.writeUintLE=function(e,t,n,i){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var a=1,o=i;o<i+e/8;o++)n[o]=t/a&255,a*=256;return n},t.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},t.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},t.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},t.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},t.writeFloat32BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e),t},t.writeFloat32LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e,!0),t},t.writeFloat64BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e),t},t.writeFloat64LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e,!0),t}},13334:(e,t,n)=>{var r=n(29794),i=n(65724);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},13832:(e,t,n)=>{"use strict";var r=n(24029),i=n(28726).supportsDescriptors,a=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=a(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),e.get.call(n),"dy"===t)return e.get}}return r}},14015:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(37088).default,a=n(16668).default,o=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;const s=n(10986),l=n(24839),c=Symbol.for("nodejs.util.inspect.custom");class u{constructor(e){o(this,"name",void 0),(0,s.defineProperties)(this,{name:e})}[c](){return this.toString()}toString(){return`${this.name} { }`}clone(){return new u(this.name)}}t.NetworkPlugin=u;class d extends u{constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`),o(this,"effectiveBlock",void 0),o(this,"txBase",void 0),o(this,"txCreate",void 0),o(this,"txDataZero",void 0),o(this,"txDataNonzero",void 0),o(this,"txAccessListStorageKey",void 0),o(this,"txAccessListAddress",void 0);const n={effectiveBlock:e};function r(e,r){let i=(t||{})[e];null==i&&(i=r),(0,l.assertArgument)("number"===typeof i,`invalud value for ${e}`,"costs",t),n[e]=i}r("txBase",21e3),r("txCreate",32e3),r("txDataZero",4),r("txDataNonzero",16),r("txAccessListStorageKey",1900),r("txAccessListAddress",2400),(0,s.defineProperties)(this,n)}toString(){return`${this.name} { txBase: ${this.txBase}, txCreate: ${this.txCreate}, txDataZero: ${this.txDataZero}, txAccessListStorageKey: ${this.txAccessListStorageKey}, txAccessListAddress: ${this.txAccessListAddress} }`}clone(){return new d(this.effectiveBlock,this)}}t.GasCostPlugin=d;class h extends u{constructor(e,t,n){super("org.ethers.plugins.network.Ens"),o(this,"address",void 0),o(this,"targetNetwork",void 0),o(this,"universalResolver",void 0),(0,s.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t,universalResolver:n})}toString(){return`${this.name} { address: ${this.address}, targetNetwork: ${this.targetNetwork}, universalResolver: ${this.universalResolver} }`}clone(){return new h(this.address,this.targetNetwork,this.universalResolver)}}t.EnsPlugin=h;var f=new WeakMap;class p extends u{get feeDataFunc(){return a(f,this)}constructor(e){super("org.ethers.plugins.network.FeeData"),r(this,f,void 0),i(f,this,e)}async getFeeData(e){return await a(f,this).call(this,e)}clone(){return new p(a(f,this))}}t.FeeDataNetworkPlugin=p;var g=new WeakMap,m=new WeakMap;t.FetchUrlFeeDataNetworkPlugin=class extends u{get url(){return a(g,this)}get processFunc(){return a(m,this)}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),r(this,g,void 0),r(this,m,void 0),i(g,this,e),i(m,this,t)}toString(){return`${this.name} { url: ${this.url} }`}clone(){return this}}},14146:(e,t,n)=>{"use strict";var r=n(56412),i=n(87431).f,a=n(61335),o=n(24316),s=n(47709),l=n(79712),c=n(46016);e.exports=function(e,t){var n,u,d,h,f,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):r[p]&&r[p].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(f=i(n,u))&&f.value:n[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&a(h,"sham",!0),o(n,u,h,e)}}}
2,14198:(e,t,n)=>{e.exports=n(65328)()},14239:(e,t,n)=>{"use strict";n.d(t,{Ej:()=>m,Fl:()=>A,Ho:()=>f,M7:()=>p,Ty:()=>b,di:()=>g,ii:()=>k,oB:()=>d,sH:()=>h,tf:()=>y,u:()=>w,uK:()=>u,xW:()=>l,xb:()=>c});var r=n(52325),i=n(22966),a=n(90763);const o=new TextEncoder,s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`0x${t.reduce(((e,t)=>e+t.replace("0x","")),"")}`}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=`0x${Number(e)}`;return"number"===typeof t.size?(a.Sl(n,t.size),f(n,t.size)):n}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";for(let i=0;i<e.length;i++)n+=s[e[i]];const r=`0x${n}`;return"number"===typeof t.size?(a.Sl(r,t.size),p(r,t.size)):r}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n,size:r}=t,i=BigInt(e);let a;r?a=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"===typeof e&&(a=BigInt(Number.MAX_SAFE_INTEGER));const o="bigint"===typeof a&&n?-a-1n:0;if(a&&i>a||i<o){const t="bigint"===typeof e?"n":"";throw new b({max:a?`${a}${t}`:void 0,min:`${o}${t}`,signed:n,size:r,value:`${e}${t}`})}const s=`0x${(n&&i<0?(1n<<BigInt(8*r))+BigInt(i):i).toString(16)}`;return r?f(s,r):s}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(o.encode(e),t)}function f(e,t){return a.eV(e,{dir:"left",size:t})}function p(e,t){return a.eV(e,{dir:"right",size:t})}function g(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{strict:i}=r;a.kK(e,t);const o=`0x${e.replace("0x","").slice(2*(null!==t&&void 0!==t?t:0),2*(null!==n&&void 0!==n?n:e.length))}`;return i&&a.X(o,t,n),o}function m(e){return Math.ceil((e.length-2)/2)}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{strict:n=!1}=t;try{return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{strict:n=!1}=t;if(!e)throw new v(e);if("string"!==typeof e)throw new v(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new x(e);if(!e.startsWith("0x"))throw new x(e)}(e,{strict:n}),!0}catch{return!1}}class b extends r.C{constructor(e){let{max:t,min:n,signed:r,size:i,value:a}=e;super(`Number \`${a}\` is not in safe${i?` ${8*i}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}r.C;class v extends r.C{constructor(e){super(`Value \`${"object"===typeof e?i.A(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class x extends r.C{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}r.C;class w extends r.C{constructor(e){let{givenSize:t,maxSize:n}=e;super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class k extends r.C{constructor(e){let{offset:t,position:n,size:r}=e;super(`Slice ${"start"===n?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class A extends r.C{constructor(e){let{size:t,targetSize:n,type:r}=e;super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},14243:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}
2,14272:(e,t,n)=>{"use strict";var r={};r[n(49831)("toStringTag")]="z",e.exports="[object z]"===String(r)},14591:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},14759:(e,t,n)=>{var r=n(16658),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},14807:(e,t,n)=>{"use strict";n.d(t,{Bv:()=>a});var r=n(97168);const i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a(e){const t={};return"undefined"!==typeof e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>({address:e.address,r:e.r?(0,r.cK)(BigInt(e.r)):e.r,s:e.s?(0,r.cK)(BigInt(e.s)):e.s,chainId:(0,r.cK)(e.chainId),nonce:(0,r.cK)(e.nonce),..."undefined"!==typeof e.yParity?{yParity:(0,r.cK)(e.yParity)}:{},..."undefined"!==typeof e.v&&"undefined"===typeof e.yParity?{v:(0,r.cK)(e.v)}:{}})))),"undefined"!==typeof e.accessList&&(t.accessList=e.accessList),"undefined"!==typeof e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),"undefined"!==typeof e.blobs&&("string"!==typeof e.blobs[0]?t.blobs=e.blobs.map((e=>(0,r.My)(e))):t.blobs=e.blobs),"undefined"!==typeof e.data&&(t.data=e.data),"undefined"!==typeof e.from&&(t.from=e.from),"undefined"!==typeof e.gas&&(t.gas=(0,r.cK)(e.gas)),"undefined"!==typeof e.gasPrice&&(t.gasPrice=(0,r.cK)(e.gasPrice)),"undefined"!==typeof e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,r.cK)(e.maxFeePerBlobGas)),"undefined"!==typeof e.maxFeePerGas&&(t.maxFeePerGas=(0,r.cK)(e.maxFeePerGas)),"undefined"!==typeof e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,r.cK)(e.maxPriorityFeePerGas)),"undefined"!==typeof e.nonce&&(t.nonce=(0,r.cK)(e.nonce)),"undefined"!==typeof e.to&&(t.to=e.to),"undefined"!==typeof e.type&&(t.type=i[e.type]),"undefined"!==typeof e.value&&(t.value=(0,r.cK)(e.value)),t}},15116:(e,t,n)=>{"use strict";var r=n(251);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},15127:(e,t,n)=>{var r=n(79769),i=n(44104),a=n(69002),o=n(12279),s=n(78857);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},15158:e=>{"use strict";e.exports=Math.pow},15254:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(43693).default,a=n(16668).default,o=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;const s=n(55114),l=n(11454),c=n(89544),u=n(20022),d=n(24839);var h=new WeakMap;class f extends c.AbstractSigner{constructor(e,t){super(t),i(this,"address",void 0),r(this,h,void 0),(0,d.assertArgument)(e&&"function"===typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),o(h,this,e);const n=(0,u.computeAddress)(this.signingKey.publicKey);(0,d.defineProperties)(this,{address:n})}get signingKey(){return a(h,this)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new f(a(h,this),e)}async signTransaction(e){e=(0,c.copyRequest)(e);const{to:t,from:n}=await(0,d.resolveProperties)({to:e.to?(0,s.resolveAddress)(e.to,this):void 0,from:e.from?(0,s.resolveAddress)(e.from,this):void 0});null!=t&&(e.to=t),null!=n&&(e.from=n),null!=e.from&&((0,d.assertArgument)((0,s.getAddress)(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);const r=u.Transaction.from(e);return r.signature=this.signingKey.sign(r.unsignedHash),r.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign((0,l.hashMessage)(e)).serialized}authorizeSync(e){(0,d.assertArgument)("string"===typeof e.address,"invalid address for authorizeSync","auth.address",e);const t=this.signingKey.sign((0,l.hashAuthorization)(e));return Object.assign({},{address:(0,s.getAddress)(e.address),nonce:(0,d.getBigInt)(e.nonce||0),chainId:(0,d.getBigInt)(e.chainId||0)},{signature:t})}async authorize(e){return e=Object.assign({},e,{address:await(0,s.resolveAddress)(e.address,this)}),this.authorizeSync(await this.populateAuthorization(e))}async signTypedData(e,t,n){const r=await l.TypedDataEncoder.resolveNames(e,t,n,(async e=>{(0,d.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});const t=await this.provider.resolveName(e);return(0,d.assert)(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t}));return this.signingKey.sign(l.TypedDataEncoder.hash(r.domain,t,r.value)).serialized}}t.BaseWallet=f},15321:(e,t,n)=>{var r=n(14591),i=n(10964);e.exports=function(e,t){return null!=e&&i(e,t,r)}},15332:(e,t,n)=>{"use strict";var r=n(44796),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},16124:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const r=n(1674),i=n(2420),a=n(78967);function o(e){return{hash:e,hmac:function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return(0,r.hmac)(e,t,(0,i.concatBytes)(...a))},randomBytes:i.randomBytes}}t.getHash=o,t.createCurve=function(e,t){const n=t=>(0,a.weierstrass)({...e,...o(t)});return Object.freeze({...n(t),create:n})}},16195:(e,t,n)=>{var r=n(93660),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var y=e[h=c[d]],b=t[h];if(a)var v=l?a(b,y,h,t,e,s):a(y,b,h,e,t,s);if(!(void 0===v?y===b||o(y,b,n,a,s):v)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}},16212:(e,t,n)=>{var r=n(4978);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},16298:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},16494:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/index.e9f9cb493e37b7acee49.cjs"},16516:e=>{"use strict";e.exports=Math.min},16658:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},16668:(e,t,n)=>{var r=n(81756);e.exports=function(e,t){return e.get(r(e,t))},e.exports.__esModule=!0,e.exports.default=e.exports},17044:(e,t,n)=>{var r=n(23734),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},17119:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(38345)},17201:(e,t,n)=>{"use strict";n.d(t,{sc:()=>d});var r=n(70399),i=n(67634);function a(e,t,n){return e&t^e&n^t&n}class o extends i.Vw{constructor(e,t,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=(0,i.O8)(this.buffer)}update(e){(0,r.CC)(this);const{view:t,buffer:n,blockLen:a}=this,o=(e=(0,i.ZJ)(e)).length;for(let r=0;r<o;){const s=Math.min(a-this.pos,o-r);if(s!==a)n.set(e.subarray(r,r+s),this.pos),this.pos+=s,r+=s,this.pos===a&&(this.process(t,0),this.pos=0);else{const t=(0,i.O8)(e);for(;a<=o-r;r+=a)this.process(t,r)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.CC)(this),(0,r.Ht)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:a,isLE:o}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(n,0),s=0);for(let r=s;r<a;r++)t[r]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),l=r?4:0,c=r?0:4;e.setUint32(t+l,o,r),e.setUint32(t+c,s,r)}(n,a-8,BigInt(8*this.length),o),this.process(n,0);const l=(0,i.O8)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r<u;r++)l.setUint32(4*r,d[r],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}}const s=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,2756
2734187,3204031479,3329325298]),l=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class u extends o{constructor(){super(64,arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,8,!1),this.A=0|l[0],this.B=0|l[1],this.C=0|l[2],this.D=0|l[3],this.E=0|l[4],this.F=0|l[5],this.G=0|l[6],this.H=0|l[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let i=0;i<16;i++,t+=4)c[i]=e.getUint32(t,!1);for(let a=16;a<64;a++){const e=c[a-15],t=c[a-2],n=(0,i.Ow)(e,7)^(0,i.Ow)(e,18)^e>>>3,r=(0,i.Ow)(t,17)^(0,i.Ow)(t,19)^t>>>10;c[a]=r+c[a-7]+n+c[a-16]|0}let{A:n,B:r,C:o,D:l,E:u,F:d,G:h,H:f}=this;for(let g=0;g<64;g++){const e=f+((0,i.Ow)(u,6)^(0,i.Ow)(u,11)^(0,i.Ow)(u,25))+((p=u)&d^~p&h)+s[g]+c[g]|0,t=((0,i.Ow)(n,2)^(0,i.Ow)(n,13)^(0,i.Ow)(n,22))+a(n,r,o)|0;f=h,h=d,d=u,u=l+e|0,l=o,o=r,r=n,n=e+t|0}var p;n=n+this.A|0,r=r+this.B|0,o=o+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(n,r,o,l,u,d,h,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const d=(0,i.ld)((()=>new u))},17594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<<t|e>>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},17656:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(81756).default,o=n(16668).default,s=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;const l=n(11454),c=n(24839),u=n(66630),d=n(69823);var h=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakSet;class m extends d.Wordlist{constructor(e,t,n){super(e),r(this,g),i(this,h,void 0),i(this,f,void 0),i(this,p,void 0),s(h,this,t),s(f,this,n),s(p,this,null)}get _data(){return o(h,this)}_decodeWords(){return(0,u.decodeOwl)(o(h,this))}getWord(e){const t=a(g,this,y).call(this);return(0,c.assertArgument)(e>=0&&e<t.length,`invalid word index: ${e}`,"index",e),t[e]}getWordIndex(e){return a(g,this,y).call(this).indexOf(e)}}function y(){if(null==o(p,this)){const e=this._decodeWords();if((0,l.id)(e.join("\n")+"\n")!==o(f,this))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);s(p,this,e)}return o(p,this)}t.WordlistOwl=m},17989:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(37088).default,a=n(16668).default;Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;const o=n(98381),s=n(69973);var l=new WeakMap,c=new WeakMap;class u extends s.SocketProvider{get websocket(){if(null==a(c,this))throw new Error("websocket closed");return a(c,this)}constructor(e,t,n){super(t,n),r(this,l,void 0),r(this,c,void 0),"string"===typeof e?(i(l,this,(()=>new o.WebSocket(e))),i(c,this,a(l,this).call(this))):"function"===typeof e?(i(l,this,e),i(c,this,e())):(i(l,this,null),i(c,this,e)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=a(c,this)&&(a(c,this).close(),i(c,this,null)),super.destroy()}}t.WebSocketProvider=u},18212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var r=n(9454);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return r.AbiCoder}});var i=n(43274);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return i.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return i.encodeBytes32String}});var a=n(89057);Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return a.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return a.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return a.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return a.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return a.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return a.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return a.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return a.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return a.StructFragment}});var o=n(81011);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return o.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});var s=n(18500);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return s.Typed}})},18500:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(43693).default,a=n(16668).default,o=n(37088).default;
2Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;const s=n(24839),l={};function c(e,t){let n=!1;return t<0&&(n=!0,t*=-1),new f(l,`${n?"":"u"}int${t}`,e,{signed:n,width:t})}function u(e,t){return new f(l,`bytes${t||""}`,e,{size:t})}const d=Symbol.for("_ethers_typed");var h=new WeakMap;class f{constructor(e,t,n,a){i(this,"type",void 0),i(this,"value",void 0),r(this,h,void 0),i(this,"_typedSymbol",void 0),null==a&&(a=null),(0,s.assertPrivate)(l,e,"Typed"),(0,s.defineProperties)(this,{_typedSymbol:d,type:t,value:n}),o(h,this,a),this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((e=>e.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return a(h,this)}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===a(h,this)?-1:!1===a(h,this)?this.value.length:null}static from(e,t){return new f(l,e,t)}static uint8(e){return c(e,8)}static uint16(e){return c(e,16)}static uint24(e){return c(e,24)}static uint32(e){return c(e,32)}static uint40(e){return c(e,40)}static uint48(e){return c(e,48)}static uint56(e){return c(e,56)}static uint64(e){return c(e,64)}static uint72(e){return c(e,72)}static uint80(e){return c(e,80)}static uint88(e){return c(e,88)}static uint96(e){return c(e,96)}static uint104(e){return c(e,104)}static uint112(e){return c(e,112)}static uint120(e){return c(e,120)}static uint128(e){return c(e,128)}static uint136(e){return c(e,136)}static uint144(e){return c(e,144)}static uint152(e){return c(e,152)}static uint160(e){return c(e,160)}static uint168(e){return c(e,168)}static uint176(e){return c(e,176)}static uint184(e){return c(e,184)}static uint192(e){return c(e,192)}static uint200(e){return c(e,200)}static uint208(e){return c(e,208)}static uint216(e){return c(e,216)}static uint224(e){return c(e,224)}static uint232(e){return c(e,232)}static uint240(e){return c(e,240)}static uint248(e){return c(e,248)}static uint256(e){return c(e,256)}static uint(e){return c(e,256)}static int8(e){return c(e,-8)}static int16(e){return c(e,-16)}static int24(e){return c(e,-24)}static int32(e){return c(e,-32)}static int40(e){return c(e,-40)}static int48(e){return c(e,-48)}static int56(e){return c(e,-56)}static int64(e){return c(e,-64)}static int72(e){return c(e,-72)}static int80(e){return c(e,-80)}static int88(e){return c(e,-88)}static int96(e){return c(e,-96)}static int104(e){return c(e,-104)}static int112(e){return c(e,-112)}static int120(e){return c(e,-120)}static int128(e){return c(e,-128)}static int136(e){return c(e,-136)}static int144(e){return c(e,-144)}static int152(e){return c(e,-152)}static int160(e){return c(e,-160)}static int168(e){return c(e,-168)}static int176(e){return c(e,-176)}static int184(e){return c(e,-184)}static int192(e){return c(e,-192)}
2static int200(e){return c(e,-200)}static int208(e){return c(e,-208)}static int216(e){return c(e,-216)}static int224(e){return c(e,-224)}static int232(e){return c(e,-232)}static int240(e){return c(e,-240)}static int248(e){return c(e,-248)}static int256(e){return c(e,-256)}static int(e){return c(e,-256)}static bytes1(e){return u(e,1)}static bytes2(e){return u(e,2)}static bytes3(e){return u(e,3)}static bytes4(e){return u(e,4)}static bytes5(e){return u(e,5)}static bytes6(e){return u(e,6)}static bytes7(e){return u(e,7)}static bytes8(e){return u(e,8)}static bytes9(e){return u(e,9)}static bytes10(e){return u(e,10)}static bytes11(e){return u(e,11)}static bytes12(e){return u(e,12)}static bytes13(e){return u(e,13)}static bytes14(e){return u(e,14)}static bytes15(e){return u(e,15)}static bytes16(e){return u(e,16)}static bytes17(e){return u(e,17)}static bytes18(e){return u(e,18)}static bytes19(e){return u(e,19)}static bytes20(e){return u(e,20)}static bytes21(e){return u(e,21)}static bytes22(e){return u(e,22)}static bytes23(e){return u(e,23)}static bytes24(e){return u(e,24)}static bytes25(e){return u(e,25)}static bytes26(e){return u(e,26)}static bytes27(e){return u(e,27)}static bytes28(e){return u(e,28)}static bytes29(e){return u(e,29)}static bytes30(e){return u(e,30)}static bytes31(e){return u(e,31)}static bytes32(e){return u(e,32)}static address(e){return new f(l,"address",e)}static bool(e){return new f(l,"bool",!!e)}static bytes(e){return new f(l,"bytes",e)}static string(e){return new f(l,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new f(l,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"===typeof e&&"_typedSymbol"in e&&e._typedSymbol===d}static dereference(e,t){if(f.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=f},18530:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(43693).default,o=n(81756).default,s=n(16668).default,l=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;const c=n(24839),u=n(64364),d=n(55182),h=BigInt("1"),f=BigInt("2");function p(){return(new Date).getTime()}function g(e){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?{type:"bigint",value:t.toString()}:t))}const m={stallTimeout:400,priority:1,weight:1},y={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function b(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(b).join(",")+"]";if("object"===typeof e&&"function"===typeof e.toJSON)return b(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{"+t.map((t=>`${JSON.stringify(t)}:${b(e[t])}`)).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function v(e,t){if("error"in t){const e=t.error;let n;return n=(0,c.isError)(e,"CALL_EXCEPTION")?b(Object.assign({},e,{shortMessage:void 0,reason:void 0,info:void 0})):b(e),{tag:n,value:e}}const n=t.result;return{tag:b(n),value:n}}function x(e,t){const n=new Map;for(const{value:i,tag:a,weight:o}of t){const e=n.get(a)||{value:i,weight:0};e.weight+=o,n.set(a,e)}let r=null;for(const i of n.values())i.weight>=e&&(!r||i.weight>r.weight)&&(r=i);if(r)return r.value}function w(e,t){let n=0;const r=new Map;let i=null;const a=[];for(const{value:s,tag:l,weight:c}of t)if(s instanceof Error){const e=r.get(l)||{value:s,weight:0};e.weight+=c,r.set(l,e),(null==i||e.weight>i.weight)&&(i=e)}else a.push(BigInt(s)),n+=c;if(n<e)return i&&i.weight>=e?i.value:void 0;a.sort(((e,t)=>e<t?-1:t>e?1:0));const o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o]+h)/f}function k(e,t){const n=x(e,t);if(void 0!==n)return n;for(const r of t)if(r.value)return r.value}var A=new WeakMap,E=new WeakMap,S=new WeakMap,P=new WeakSet;class C extends u.AbstractProvider{constructor(e,t,n){super(t,n),r(this,P),a(this,"quorum",void 0),a(this,"eventQuorum",void 0),a(this,"eventWorkers",void 0),i(this,A,void 0),i(this,E,void 0),i(this,S,void 0),l(A,this,e.map((e=>e instanceof u.AbstractProvider?Object.assign({provider:e},m,y):Object.assign({},m,e,y)))),l(E,this,-2),l(S,this,null),n&&null!=n.quorum?this.quorum=n.quorum:this.quorum=Math.ceil(s(A,this).reduce(((e,t)=>e+=t.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,c.assertArgument)(this.quorum<=s(A,this).reduce(((e,t)=>e+t.weight),0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return s(A,this).map((e=>{const t=Object.assign({},e);for(const n in t)"_"===n[0]&&delete t[n];return t}))}async _detectNetwork(){return d.Network.from((0,c.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{const n="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(n,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}async _perform(e){if("broadcastTransaction"===e.method){const t=s(A,this).map((e=>null)),n=s(A,this).map((async(n,r)=>{let{provider:i,weight:a}=n;try{const n=await i._perform(e);t[r]=Object.assign(v(e.method,{result:n}),{weight:a})}catch(o){t[r]=Object.assign(v(e.method,{error:o}),{weight:a})}}));for(;;){const e=t.filter((e=>null!=e));for(const{value:t}of e)if(!(t instanceof Error))return t;const r=x(this.quorum,t.filter((e=>null!=e)));if((0,c.isError)(r,"INSUFFICIENT_FUNDS"))throw r;const i=n.filter(((e,n)=>null==t[n]));if(0===i.length)break;await Promise.race(i)}const r=k(this.quorum,t);if((0,c.assert)(void 0!==r,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(g)}}),r instanceof Error)throw r;return r}await o(P,this,N).call(this);const t=new Set;let n=0;for(;;){const r=o(P,this,T).call(this,t,e);if(null==r)break;
2if(n+=r.config.weight,n>=this.quorum)break}const r=await o(P,this,I).call(this,t,e);for(const i of t)i.perform&&null==i.result&&i.config.lateResponses++;return r}async destroy(){for(const{provider:e}of s(A,this))e.destroy();super.destroy()}}function O(e){const t=Array.from(e).map((e=>e.config)),n=s(A,this).slice();!function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(n),n.sort(((e,t)=>e.priority-t.priority));for(const r of n)if(!r._lastFatalError&&-1===t.indexOf(r))return r;return null}function T(e,t){const n=o(P,this,O).call(this,e);if(null==n)return null;const r={config:n,result:null,didBump:!1,perform:null,staller:null},i=p();return r.perform=(async()=>{try{n.requests++;const e=await this._translatePerform(n.provider,t);r.result={result:e}}catch(a){n.errorResponses++,r.result={error:a}}const e=p()-i;n._totalTime+=e,n.rollingDuration=.95*n.rollingDuration+.05*e,r.perform=null})(),r.staller=(async()=>{var e;await(e=n.stallTimeout,new Promise((t=>{setTimeout(t,e)}))),r.staller=null})(),e.add(r),r}async function N(){let e=s(S,this);if(!e){const t=[];s(A,this).forEach((e=>{t.push((async()=>{await async function(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{const t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=p()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}(e,0),e._lastFatalError||(e._network=await e.provider.getNetwork())})())})),l(S,this,e=(async()=>{await Promise.all(t);let e=null;for(const t of s(A,this)){if(t._lastFatalError)continue;const n=t._network;null==e?e=n.chainId:n.chainId!==e&&(0,c.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await e}async function _(e,t){const n=[];for(const r of e)if(null!=r.result){const{tag:e,value:i}=v(t.method,r.result);n.push({tag:e,value:i,weight:r.config.weight})}if(!(n.reduce(((e,t)=>e+t.weight),0)<this.quorum)){switch(t.method){case"getBlockNumber":{-2===s(E,this)&&l(E,this,Math.ceil((0,c.getNumber)(w(this.quorum,s(A,this).filter((e=>!e._lastFatalError)).map((e=>({value:e.blockNumber,tag:(0,c.getNumber)(e.blockNumber).toString(),weight:e.weight})))))));const e=function(e,t){if(1===e)return(0,c.getNumber)(w(e,t),"%internal");const n=new Map,r=(e,t)=>{const r=n.get(e)||{result:e,weight:0};r.weight+=t,n.set(e,r)};for(const{weight:o,value:s}of t){const e=(0,c.getNumber)(s);r(e-1,o),r(e,o),r(e+1,o)}let i,a=0;for(const{weight:o,result:s}of n.values())o>=e&&(o>a||null!=i&&o===a&&s>i)&&(a=o,i=s);return i}(this.quorum,n);if(void 0===e)return;return e>s(E,this)&&l(E,this,e),s(E,this)}case"getGasPrice":case"getPriorityFee":case"estimateGas":return w(this.quorum,n);case"getBlock":return"blockTag"in t&&"pending"===t.blockTag?k(this.quorum,n):x(this.quorum,n);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return x(this.quorum,n);case"broadcastTransaction":return k(this.quorum,n)}(0,c.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${g(t.method)})`})}}async function I(e,t){if(0===e.size)throw new Error("no runners?!");const n=[];let r=0;for(const a of e)a.perform&&n.push(a.perform),a.staller?n.push(a.staller):a.didBump||(a.didBump=!0,r++);const i=await o(P,this,_).call(this,e,t);if(void 0!==i){if(i instanceof Error)throw i;return i}for(let a=0;a<r;a++)o(P,this,T).call(this,e,t);return(0,c.assert)(n.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map((e=>g(e.result)))}}),await Promise.race(n),await o(P,this,I).call(this,e,t)}t.FallbackProvider=C},18707:(e,t,n)=>{"use strict";var r=n(91581);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},19147:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(16668).default,a=n(37088).default,o=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;const s=n(24839),l=n(20022),c=BigInt(0);function u(e){return null==e?null:e}function d(e){return null==e?null:e.toString()}t.FeeData=class{constructor(e,t,n){o(this,"gasPrice",void 0),o(this,"maxFeePerGas",void 0),o(this,"maxPriorityFeePerGas",void 0),(0,s.defineProperties)(this,{gasPrice:u(e),maxFeePerGas:u(t),maxPriorityFeePerGas:u(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:d(e),maxFeePerGas:d(t),maxPriorityFeePerGas:d(n)}}},t.copyRequest=function(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,s.hexlify)(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const i of n)i in e&&null!=e[i]&&(t[i]=(0,s.getBigInt)(e[i],`request.${i}`));const r="type,nonce".split(/,/);for(const i of r)i in e&&null!=e[i]&&(t[i]=(0,s.getNumber)(e[i],`request.${i}`));return e.accessList&&(t.accessList=(0,l.accessListify)(e.accessList)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobWrapperVersion"in e&&(t.blobWrapperVersion=e.blobWrapperVersion),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>(0,s.isBytesLike)(e)?(0,s.hexlify)(e):Object.assign({},e)))),t};var h=new WeakMap;class f{constructor(e,t){o(this,"provider",void 0),o(this,"number",void 0),o(this,"hash",void 0),o(this,"timestamp",void 0),o(this,"parentHash",void 0),o(this,"parentBeaconBlockRoot",void 0),o(this,"nonce",void 0),o(this,"difficulty",void 0),o(this,"gasLim
2it",void 0),o(this,"gasUsed",void 0),o(this,"stateRoot",void 0),o(this,"receiptsRoot",void 0),o(this,"transactionsRoot",void 0),o(this,"blobGasUsed",void 0),o(this,"excessBlobGas",void 0),o(this,"miner",void 0),o(this,"prevRandao",void 0),o(this,"extraData",void 0),o(this,"baseFeePerGas",void 0),r(this,h,void 0),a(h,this,e.transactions.map((e=>"string"!==typeof e?new b(e,t):e))),(0,s.defineProperties)(this,{provider:t,hash:u(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:u(e.prevRandao),extraData:e.extraData,baseFeePerGas:u(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot,transactionsRoot:e.transactionsRoot})}get transactions(){return i(h,this).map((e=>"string"===typeof e?e:e.hash))}get prefetchedTransactions(){const e=i(h,this).slice();return 0===e.length?[]:((0,s.assert)("object"===typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:i,hash:a,miner:o,prevRandao:s,nonce:l,number:c,parentHash:u,parentBeaconBlockRoot:h,stateRoot:f,receiptsRoot:p,transactionsRoot:g,timestamp:m,transactions:y}=this;return{_type:"Block",baseFeePerGas:d(e),difficulty:d(t),extraData:n,gasLimit:d(r),gasUsed:d(i),blobGasUsed:d(this.blobGasUsed),excessBlobGas:d(this.excessBlobGas),hash:a,miner:o,prevRandao:s,nonce:l,number:c,parentHash:u,timestamp:m,parentBeaconBlockRoot:h,stateRoot:f,receiptsRoot:p,transactionsRoot:g,transactions:y}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return i(h,this).length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"===typeof e)t=i(h,this)[e];else{const n=e.toLowerCase();for(const e of i(h,this)){if("string"===typeof e){if(e!==n)continue;t=e;break}if(e.hash===n){t=e;break}}}if(null==t)throw new Error("no such tx");return"string"===typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){const t=this.prefetchedTransactions;if("number"===typeof e)return t[e];e=e.toLowerCase();for(const n of t)if(n.hash===e)return n;(0,s.assertArgument)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return{orphan:"drop-block",hash:(e=this).hash,number:e.number};var e}}t.Block=f;class p{constructor(e,t){o(this,"provider",void 0),o(this,"transactionHash",void 0),o(this,"blockHash",void 0),o(this,"blockNumber",void 0),o(this,"removed",void 0),o(this,"address",void 0),o(this,"data",void 0),o(this,"topics",void 0),o(this,"index",void 0),o(this,"transactionIndex",void 0),this.provider=t;const n=Object.freeze(e.topics.slice());(0,s.defineProperties)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:n,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){const{address:e,blockHash:t,blockNumber:n,data:r,index:i,removed:a,topics:o,transactionHash:s,transactionIndex:l}=this;return{_type:"log",address:e,blockHash:t,blockNumber:n,data:r,index:i,removed:a,topics:o,transactionHash:s,transactionIndex:l}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return(0,s.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return(0,s.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,s.assert)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return{orphan:"drop-log",log:{transactionHash:(e=this).transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}};var e}}t.Log=p;var g=new WeakMap;class m{constructor(e,t){o(this,"provider",void 0),o(this,"to",void 0),o(this,"from",void 0),o(this,"contractAddress",void 0),o(this,"hash",void 0),o(this,"index",void 0),o(this,"blockHash",void 0),o(this,"blockNumber",void 0),o(this,"logsBloom",void 0),o(this,"gasUsed",void 0),o(this,"blobGasUsed",void 0),o(this,"cumulativeGasUsed",void 0),o(this,"gasPrice",void 0),o(this,"blobGasPrice",void 0),o(this,"type",void 0),o(this,"status",void 0),o(this,"root",void 0),r(this,g,void 0),a(g,this,Object.freeze(e.logs.map((e=>new p(e,t)))));let n=c;null!=e.effectiveGasPrice?n=e.effectiveGasPrice:null!=e.gasPrice&&(n=e.gasPrice),(0,s.defineProperties)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return i(g,this)}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:i,blockHash:a,blockNumber:o,logsBloom:s,logs:l,status:c,root:u}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:o,contractAddress:n,cumulativeGasUsed:d(this.cumulativeGasUsed),from:t,gasPrice:d(this.gasPrice),blobGasUsed:d(this.blobGasUsed),blobGasPrice:d(this.blobGasPrice),gasUsed:d(this.gasUsed),hash:r,index:i,logs:l,logsBloom:s,root:u,status:c,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const e=await this.provider.getBlock(this.blockHash);if(null==e)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(null==e)throw new Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return x(this)}reorderedEvent(e){return(0,s.assert)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),v(this,e)}}t.TransactionReceipt=m;var y=new WeakMap;class b{constructor(e,t){o(this,"provider",void 0),o(this,"blockNumber",void 0),o(this,"blockHash",void 0),o(this,"index",void 0),o(this,"hash",void 0),o(this,"type",void 0),o(this,"to",void 0),o(this,"from",void 0),o(this,"nonce",void 0),o(this,"gasLim
2it",void 0),o(this,"gasPrice",void 0),o(this,"maxPriorityFeePerGas",void 0),o(this,"maxFeePerGas",void 0),o(this,"maxFeePerBlobGas",void 0),o(this,"data",void 0),o(this,"value",void 0),o(this,"chainId",void 0),o(this,"signature",void 0),o(this,"accessList",void 0),o(this,"blobVersionedHashes",void 0),o(this,"authorizationList",void 0),r(this,y,void 0),this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.authorizationList=null!=e.authorizationList?e.authorizationList:null,a(y,this,-1)}toJSON(){const{blockNumber:e,blockHash:t,index:n,hash:r,type:i,to:a,from:o,nonce:s,data:l,signature:c,accessList:u,blobVersionedHashes:h}=this;return{_type:"TransactionResponse",accessList:u,blockNumber:e,blockHash:t,blobVersionedHashes:h,chainId:d(this.chainId),data:l,from:o,gasLimit:d(this.gasLimit),gasPrice:d(this.gasPrice),hash:r,maxFeePerGas:d(this.maxFeePerGas),maxPriorityFeePerGas:d(this.maxPriorityFeePerGas),maxFeePerBlobGas:d(this.maxFeePerBlobGas),nonce:s,signature:c,to:a,index:n,type:i,value:d(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){const t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;const t=this.provider.getBlock(e);if(null==t)throw new Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){const{tx:e,blockNumber:t}=await(0,s.resolveProperties)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){const n=null==e?1:e,r=null==t?0:t;let a=i(y,this),o=-1,l=-1===a;const u=async()=>{if(l)return null;const{blockNumber:e,nonce:t}=await(0,s.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce)return void(a=e);if(l)return null;const r=await this.getTransaction();if(!r||null==r.blockNumber)for(-1===o&&(o=a-3,o<i(y,this)&&(o=i(y,this)));o<=e;){if(l)return null;const t=await this.provider.getBlock(o,!0);if(null==t)return;for(const e of t)if(e===this.hash)return;for(let r=0;r<t.length;r++){const i=await t.getTransaction(r);if(i.from===this.from&&i.nonce===this.nonce){if(l)return null;const t=await this.provider.getTransactionReceipt(i.hash);if(null==t)return;if(e-t.blockNumber+1<n)return;let r="replaced";i.data===this.data&&i.to===this.to&&i.value===this.value?r="repriced":"0x"===i.data&&i.from===i.to&&i.value===c&&(r="cancelled"),(0,s.assert)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===r||"cancelled"===r,reason:r,replacement:i.replaceableTransaction(a),hash:i.hash,receipt:t})}}o++}},d=e=>{if(null==e||0!==e.status)return e;(0,s.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},h=await this.provider.getTransactionReceipt(this.hash);if(0===n)return d(h);if(h){if(1===n||await h.confirmations()>=n)return d(h)}else if(await u(),0===n)return null;const f=new Promise(((e,t)=>{const i=[],o=()=>{i.forEach((e=>e()))};if(i.push((()=>{l=!0})),r>0){const e=setTimeout((()=>{o(),t((0,s.makeError)("wait for transaction timeout","TIMEOUT"))}),r);i.push((()=>{clearTimeout(e)}))}const c=async r=>{if(await r.confirmations()>=n){o();try{e(d(r))}catch(i){t(i)}}};if(i.push((()=>{this.provider.off(this.hash,c)})),this.provider.on(this.hash,c),a>=0){const e=async()=>{try{await u()}catch(n){if((0,s.isError)(n,"TRANSACTION_REPLACED"))return o(),void t(n)}l||this.provider.once("block",e)};i.push((()=>{this.provider.off("block",e)})),this.provider.once("block",e)}}));return await f}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,s.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),x(this)}reorderedEvent(e){return(0,s.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,s.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),v(this,e)}replaceableTransaction(e){(0,s.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new b(this,this.provider);return a(y,t,e),t}}function v(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function x(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=b},19250:(e,t,n)=>{"use strict";var r=n(49995),i=n(26470),a=n(96988);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f=Object.prototype.hasOwnProperty,p={},g={};function m(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 7,187 bytes, line 2
2h((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(g,e)||!f.call(p,e)&&(h.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,v);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,v);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,v);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,A=60106,E=60107,S=60108,P=60114,C=60109,O=60110,T=60112,N=60113,_=60120,I=60115,R=60116,M=60121,j=60128,L=60129,B=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var D=Symbol.for;k=D("react.element"),A=D("react.portal"),E=D("react.fragment"),S=D("react.strict_mode"),P=D("react.profiler"),C=D("react.provider"),O=D("react.context"),T=D("react.forward_ref"),N=D("react.suspense"),_=D("react.suspense_list"),I=D("react.memo"),R=D("react.lazy"),M=D("react.block"),D("react.scope"),j=D("react.opaque.id"),L=D("react.debug_trace_mode"),B=D("react.offscreen"),F=D("react.legacy_hidden")}var U,z="function"===typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}function H(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var V=!1;function G(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function Y(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case A:return"Portal";case P:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case _:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return q(e.type);case M:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)}
vendor: 6,140 bytes, line 2
2,set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+X(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function ce(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",he="http://www.w3.org/2000/svg";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,me,ye=(me=function(e,t){if(e.namespaceURI!==he||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ve).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var Ae=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(Ae[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Pe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 3,897 bytes, line 2
2odeType?e.parentNode:e}var Ce=null,Oe=null,Te=null;function Ne(e){if(e=ri(e)){if("function"!==typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=ai(t),Ce(e.stateNode,e.type,t))}}function _e(e){Oe?Te?Te.push(e):Te=[e]:Oe=e}function Ie(){if(Oe){var e=Oe,t=Te;if(Te=Oe=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Re(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function je(){}var Le=Re,Be=!1,Fe=!1;function De(){null===Oe&&null===Te||(je(),Ie())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=ai(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var ze=!1;if(d)try{var We={};Object.defineProperty(We,"passive",{get:function(){ze=!0}}),window.addEventListener("test",We,We),window.removeEventListener("test",We,We)}catch(me){ze=!1}function He(e,t,n,r,i,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ve=!1,Ge=null,Ye=!1,qe=null,Xe={onError:function(e){Ve=!0,Ge=e}};function $e(e,t,n,r,i,a,o,s,l){Ve=!1,Ge=null,He.apply(Xe,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Ke(e)!==e)throw Error(o(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Je(i),e;if(a===r)return Je(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,ht=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function gt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&(null!==(t=ri(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function yt(e){var t=ni(e.target);if(null!==t){var n=Ke(t);
vendor: 7,425 bytes, line 2
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ri(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){bt(e)&&n.delete(t)}function xt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==st&&bt(st)&&(st=null),null!==lt&&bt(lt)&&(lt=null),null!==ct&&bt(ct)&&(ct=null),ut.forEach(vt),dt.forEach(vt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,xt)))}function kt(e){function t(t){return wt(t,e)}if(0<ot.length){wt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&wt(st,e),null!==lt&&wt(lt,e),null!==ct&&wt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<ht.length;n++)(r=ht[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ht.length&&null===(n=ht[0]).blockedOn;)yt(n),null===n.blockedOn&&ht.shift()}function At(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:At("Animation","AnimationEnd"),animationiteration:At("Animation","AnimationIteration"),animationstart:At("Animation","AnimationStart"),transitionend:At("Transition","TransitionEnd")},St={},Pt={};function Ct(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in Pt)return St[e]=n[t];return e}d&&(Pt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Ct("animationend"),Tt=Ct("animationiteration"),Nt=Ct("animationstart"),_t=Ct("transitionend"),It=new Map,Rt=new Map,Mt=["abort","abort",Ot,"animationEnd",Tt,"animationIteration",Nt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",_t,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),It.set(r,i),c(i,[r])}}(0,a.unstable_now)();var Lt=8;function Bt(e){if(0!==(1&e))return Lt=15,1;if(0!==(2&e))return Lt=14,2;if(0!==(4&e))return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):0!==(32&e)?(Lt=11,32):0!==(t=192&e)?(Lt=10,t):0!==(256&e)?(Lt=9,256):0!==(t=3584&e)?(Lt=8,t):0!==(4096&e)?(Lt=7,4096):0!==(t=4186112&e)?(Lt=6,t):0!==(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):0!==(134217728&e)?(Lt=3,134217728):0!==(t=805306368&e)?(Lt=2,t):0!==(1073741824&e)?(Lt=1,1073741824):(Lt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Lt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Lt=15;else if(0!==(a=134217727&n)){var l=a&~o;0!==l?(r=Bt(l),i=Lt):0!==(s&=a)&&(r=Bt(s),i=Lt)}else 0!==(a=n&~o)?(r=Bt(a),i=Lt):0!==s&&(r=Bt(s),i=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(Bt(t),i<=Lt)return t;Lt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Vt(t)),r|=e[n],t&=~i;return r}function Dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ut(10,t):e;case 10:return 0===(e=zt(192&~t))?Ut(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function zt(e){return e&-e}function Wt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Yt|0)|0},Gt=Math.log,Yt=Math.LN2;var qt=a.unstable_UserBlockingPriority,Xt=a.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Be||je();var i=Jt,a=Be;Be=!0;try{Me(i,e,t,n,r)}finally{(Be=a)||De()}}function Qt(e,t,n,r){Xt(qt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if($t)if((i=0===(4&t))&&0<ot.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var a=Zt(e,t,n,r);if(null===a)i&>(e,r);else{if(i){if(-1<ft.indexOf(e))return e=pt(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=mt(st,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return ct=mt(ct,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ut.set(a,mt(ut.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,dt.set(a,mt(dt.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;gt(e,r)}jr(e,t,r,null,n)}}}function Zt(e,t,n,r){var i=Pe(r);if(null!==(i=ni(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Qe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return jr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var cn,un,dn,hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=ln(hn),pn=i({},hn,{view:0,detail:0}),gn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,031 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,un=e.screenY-dn.screenY):un=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),yn=ln(mn),bn=ln(i({},mn,{dataTransfer:0})),vn=ln(i({},pn,{relatedTarget:0})),xn=ln(i({},hn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=i({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kn=ln(wn),An=ln(i({},hn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pn[e])&&!!t[e]}function On(){return Cn}var Tn=i({},pn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=ln(Tn),_n=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Rn=ln(i({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=ln(Mn),Ln=[9,13,27,32],Bn=d&&"CompositionEvent"in window,Fn=null;d&&"documentMode"in document&&(Fn=document.documentMode);var Dn=d&&"TextEvent"in window&&!Fn,Un=d&&(!Bn||Fn&&8<Fn&&11>=Fn),zn=String.fromCharCode(32),Wn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1;var Yn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yn[e.type]:"textarea"===t}function Xn(e,t,n,r){_e(r),0<(t=Br(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Kn=null;function Qn(e){Tr(e,0)}function Jn(e){if(Q(ii(e)))return e}function Zn(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){$n&&($n.detachEvent("onpropertychange",ar),Kn=$n=null)}function ar(e){if("value"===e.propertyName&&Jn(Kn)){var t=[];if(Xn(t,Kn,e,Pe(e)),e=Qn,Be)e(t);else{Be=!0;try{Re(e,t)}finally{Be=!1,De()}}}}function or(e,t,n){"focusin"===e?(ir(),Kn=n,($n=t).attachEvent("onpropertychange",ar)):"focusout"===e&&ir()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Kn)}function lr(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},dr=Object.prototype.hasOwnProperty;function hr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!dr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function gr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?gr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,vr=null,xr=null,wr=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==vr||vr!==J(r)||("selectionStart"in(r=vr)&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&hr(wr,r)||(wr=r,0<(r=Br(xr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(Mt,2);for(var Er="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<Er.length;Sr++)Rt.set(Er[Sr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Or(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,l,c){if($e.apply(this,arguments),Ve){if(!Ve)throw Error(o(198));var u=Ge;Ve=!1,Ge=null,Ye||(Ye=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Or(i,s,c),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Or(i,s,c),a=l}}}if(Ye)throw e=qe,Ye=!1,qe=null,e}function Nr(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var _r="_reactListening"+Math.random().toString(36).slice(2);
vendor: 4,497 bytes, line 2
2function Ir(e){e[_r]||(e[_r]=!0,s.forEach((function(t){Cr.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=oi(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Mr(a,e,i,t),o.add(s))}function Mr(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Qt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ni(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Le(e,t,n)}finally{Fe=!1,De()}}((function(){var r=a,i=Pe(n),o=[];e:{var s=It.get(e);if(void 0!==s){var l=fn,c=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":l=Nn;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Ot:case Tt:case Nt:l=xn;break;case _t:l=Rn;break;case"scroll":l=gn;break;case"wheel":l=jn;break;case"copy":case"cut":case"paste":l=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_n}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=r;null!==p;){var g=(f=p).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==h&&(null!=(g=Ue(p,h))&&u.push(Lr(p,g,f)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),o.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!ni(c)&&!c[ei])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ni(c):null)&&(c!==(d=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=yn,g="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=_n,g="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:ii(l),f=null==c?s:ii(c),(s=new u(g,p+"leave",l,n,i)).target=d,s.relatedTarget=f,g=null,ni(i)===r&&((u=new u(h,p+"enter",c,n,i)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Fr(f))p++;for(f=0,g=h;g;g=Fr(g))f++;for(;0<p-f;)u=Fr(u),p--;for(;0<f-p;)h=Fr(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Fr(u),h=Fr(h)}u=null}else u=null;null!==l&&Dr(o,s,l,u,!1),null!==c&&null!==d&&Dr(o,d,c,u,!0)}if("select"===(l=(s=r?ii(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Zn;else if(qn(s))if(er)m=cr;else{m=sr;var y=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=lr);switch(m&&(m=m(e,r))?Xn(o,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ie(s,"number",s.value)),y=r?ii(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(vr=y,xr=r,wr=null);break;case"focusout":wr=xr=vr=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,Ar(o,n,i);break;case"selectionchange":if(br)break;case"keydown":case"keyup":Ar(o,n,i)}var b;if(Bn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Gn?Hn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");
vendor: 5,171 bytes, line 2
2v&&(Un&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Gn&&(b=rn()):(tn="value"in(en=i)?en.value:en.textContent,Gn=!0)),0<(y=Br(r,v)).length&&(v=new An(v,e,null,n,i),o.push({event:v,listeners:y}),b?v.data=b:null!==(b=Vn(n))&&(v.data=b))),(b=Dn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Wn=!0,zn);case"textInput":return(e=t.data)===zn&&Wn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Bn&&Hn(e,t)?(e=rn(),nn=tn=en=null,Gn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Un&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Br(r,"onBeforeInput")).length&&(i=new An("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=b))}Tr(o,t)}))}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Br(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ue(e,n))&&r.unshift(Lr(e,a,i)),null!=(a=Ue(e,t))&&r.push(Lr(e,a,i))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ue(n,a))&&o.unshift(Lr(n,l,s)):i||null!=(l=Ue(n,a))&&o.push(Lr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Ur(){}var zr=null,Wr=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Gr="function"===typeof setTimeout?setTimeout:void 0,Yr="function"===typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Xr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Kr=0;var Qr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Qr,Zr="__reactProps$"+Qr,ei="__reactContainer$"+Qr,ti="__reactEvents$"+Qr;function ni(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ei]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[Jr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function ri(e){return!(e=e[Jr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ai(e){return e[Zr]||null}function oi(e){var t=e[ti];return void 0===t&&(t=e[ti]=new Set),t}var si=[],li=-1;function ci(e){return{current:e}}function ui(e){0>li||(e.current=si[li],si[li]=null,li--)}function di(e,t){li++,si[li]=e.current,e.current=t}var hi={},fi=ci(hi),pi=ci(!1),gi=hi;function mi(e,t){var n=e.type.contextTypes;if(!n)return hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function yi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bi(){ui(pi),ui(fi)}function vi(e,t,n){if(fi.current!==hi)throw Error(o(168));di(fi,t),di(pi,n)}function xi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return i({},n,r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hi,gi=fi.current,di(fi,e),di(pi,pi.current),!0}function ki(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=xi(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,ui(pi),ui(fi),di(fi,e)):ui(pi),di(pi,n)}var Ai=null,Ei=null,Si=a.unstable_runWithPriority,Pi=a.unstable_scheduleCallback,Ci=a.unstable_cancelCallback,Oi=a.unstable_shouldYield,Ti=a.unstable_requestPaint,Ni=a.unstable_now,_i=a.unstable_getCurrentPriorityLevel,Ii=a.unstable_ImmediatePriority,Ri=a.unstable_UserBlockingPriority,Mi=a.unstable_NormalPriority,ji=a.unstable_LowPriority,Li=a.unstable_IdlePriority,Bi={},Fi=void 0!==Ti?Ti:function(){},Di=null,Ui=null,zi=!1,Wi=Ni(),Hi=1e4>Wi?Ni:function(){return Ni()-Wi};function Vi(){switch(_i()){case Ii:return 99;case Ri:return 98;case Mi:return 97;case ji:return 96;case Li:return 95;default:throw Error(o(332))}}function Gi(e){switch(e){case 99:return Ii;case 98:return Ri;case 97:return Mi;case 96:return ji;case 95:return Li;default:throw Error(o(332))}}function Yi(e,t){return e=Gi(e),Si(e,t)}
vendor: 4,209 bytes, line 2
2function qi(e,t,n){return e=Gi(e),Pi(e,t,n)}function Xi(){if(null!==Ui){var e=Ui;Ui=null,Ci(e)}$i()}function $i(){if(!zi&&null!==Di){zi=!0;var e=0;try{var t=Di;Yi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Di=null}catch(n){throw null!==Di&&(Di=Di.slice(e+1)),Pi(Ii,Xi),n}finally{zi=!1}}}var Ki=w.ReactCurrentBatchConfig;function Qi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ji=ci(null),Zi=null,ea=null,ta=null;function na(){ta=ea=Zi=null}function ra(e){var t=Ji.current;ui(Ji),e.type._context._currentValue=t}function ia(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function aa(e,t){Zi=e,ta=ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Bo=!0),e.firstContext=null)}function oa(e,t){if(ta!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ta=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ea){if(null===Zi)throw Error(o(308));ea=t,Zi.dependencies={lanes:0,firstContext:t,responders:null}}else ea=ea.next=t;return e._currentValue}var sa=!1;function la(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ca(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ua(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function da(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fa(e,t,n,r){var a=e.updateQueue;sa=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?o=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var h=(d=d.updateQueue).lastBaseUpdate;h!==s&&(null===h?d.firstBaseUpdate=u:h.next=u,d.lastBaseUpdate=c)}}if(null!==o){for(h=a.baseState,s=0,d=u=c=null;;){l=o.lane;var f=o.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,g=o;switch(l=t,f=n,g.tag){case 1:if("function"===typeof(p=g.payload)){h=p.call(f,h,l);break e}h=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(l="function"===typeof(p=g.payload)?p.call(f,h,l):p)||void 0===l)break e;h=i({},h,l);break e;case 2:sa=!0}}null!==o.callback&&(e.flags|=32,null===(l=a.effects)?a.effects=[o]:l.push(o))}else f={eventTime:f,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(u=d=f,c=h):d=d.next=f,s|=l;if(null===(o=o.next)){if(null===(l=a.shared.pending))break;o=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}null===d&&(c=h),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,Ws|=s,e.lanes=s,e.memoizedState=h}}function pa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var ga=(new r.Component).refs;function ma(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ya={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),i=pl(e),a=ua(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),gl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),i=pl(e),a=ua(r,i);
2a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),da(e,a),gl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=pl(e),i=ua(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),da(e,i),gl(e,r,n)}};function ba(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!hr(n,r)||!hr(i,a))}function va(e,t,n){var r=!1,i=hi,a=t.contextType;return"object"===typeof a&&null!==a?a=oa(a):(i=yi(t)?gi:fi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):hi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ya,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function xa(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ya.enqueueReplaceState(t,t.state,null)}function wa(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ga,la(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=oa(a):(a=yi(t)?gi:fi.current,i.context=mi(e,a)),fa(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ma(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ya.enqueueReplaceState(i,i.state,null),fa(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var ka=Array.isArray;function Aa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===ga&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ea(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=ql(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ql(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Aa(e,t,n),r.return=e,r):((r=Xl(n.type,n.key,n.props,null,e.mode,r)).ref=Aa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Jl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=$l(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Ql(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Xl(t.type,t.key,t.props,null,e.mode,n)).ref=Aa(e,null,t),n.return=e,n;case A:return(t=Jl(t,e.mode,n)).return=e,t}if(ka(t)||W(t))return(t=$l(t,e.mode,n,null)).return=e,t;Ea(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===E?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null}if(ka(n)||W(n))return null!==i?null:d(e,t,n,r,null);Ea(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===E?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case A:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ka(r)||W(r))return d(t,e=e.get(n)||null,r,i,null);Ea(t,r)}return null}function g(i,o,s,l){for(var c=null,u=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=f(i,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(i,d),o=a(y,o,g),null===u?c=y:u.sibling=y,u=y,d=m}if(g===s.length)return n(i,d),c;if(null===d){for(;g<s.length;g++)null!==(d=h(i,s[g],l))&&(o=a(d,o,g),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(i,e)})),c}function m(i,s,l,c){var u=W(l);
vendor: 4,120 bytes, line 2
2if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,g=s,m=s=0,y=null,b=l.next();null!==g&&!b.done;m++,b=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var v=f(i,g,b.value,c);if(null===v){null===g&&(g=y);break}e&&g&&null===v.alternate&&t(i,g),s=a(v,s,m),null===d?u=v:d.sibling=v,d=v,g=y}if(b.done)return n(i,g),u;if(null===g){for(;!b.done;m++,b=l.next())null!==(b=h(i,b.value,c))&&(s=a(b,s,m),null===d?u=b:d.sibling=b,d=b);return u}for(g=r(i,g);!b.done;m++,b=l.next())null!==(b=p(g,i,m,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=a(b,s,m),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach((function(e){return t(i,e)})),u}return function(e,r,a,l){var c="object"===typeof a&&null!==a&&a.type===E&&null===a.key;c&&(a=a.props.children);var u="object"===typeof a&&null!==a;if(u)switch(a.$$typeof){case k:e:{for(u=a.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(a.type===E){n(e,c.sibling),(r=i(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=i(c,a.props)).ref=Aa(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===E?((r=$l(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Xl(a.type,a.key,a.props,null,e.mode,l)).ref=Aa(e,r,a),l.return=e,e=l)}return s(e);case A:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Jl(a,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Ql(a,e.mode,l)).return=e,e=r),s(e);if(ka(a))return g(e,r,a,l);if(W(a))return m(e,r,a,l);if(u&&Ea(e,a),"undefined"===typeof a&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var Pa=Sa(!0),Ca=Sa(!1),Oa={},Ta=ci(Oa),Na=ci(Oa),_a=ci(Oa);function Ia(e){if(e===Oa)throw Error(o(174));return e}function Ra(e,t){switch(di(_a,t),di(Na,e),di(Ta,Oa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Ta),di(Ta,t)}function Ma(){ui(Ta),ui(Na),ui(_a)}function ja(e){Ia(_a.current);var t=Ia(Ta.current),n=pe(t,e.type);t!==n&&(di(Na,e),di(Ta,n))}function La(e){Na.current===e&&(ui(Ta),ui(Na))}var Ba=ci(0);function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=null,Ua=null,za=!1;function Wa(e,t){var n=Gl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ha(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Va(e){if(za){var t=Ua;if(t){var n=t;if(!Ha(e,t)){if(!(t=Xr(n.nextSibling))||!Ha(e,t))return e.flags=-1025&e.flags|2,za=!1,void(Da=e);Wa(Da,n)}Da=e,Ua=Xr(t.firstChild)}else e.flags=-1025&e.flags|2,za=!1,Da=e}}function Ga(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function Ya(e){if(e!==Da)return!1;if(!za)return Ga(e),za=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Ua;t;)Wa(e,t),t=Xr(t.nextSibling);if(Ga(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ua=Xr(e.nextSibling);break e}t--}
vendor: 8,287 bytes, line 2
2else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ua=null}}else Ua=Da?Xr(e.stateNode.nextSibling):null;return!0}function qa(){Ua=Da=null,za=!1}var Xa=[];function $a(){for(var e=0;e<Xa.length;e++)Xa[e]._workInProgressVersionPrimary=null;Xa.length=0}var Ka=w.ReactCurrentDispatcher,Qa=w.ReactCurrentBatchConfig,Ja=0,Za=null,eo=null,to=null,no=!1,ro=!1;function io(){throw Error(o(321))}function ao(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function oo(e,t,n,r,i,a){if(Ja=a,Za=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ka.current=null===e||null===e.memoizedState?Ro:Mo,e=n(r,i),ro){a=0;do{if(ro=!1,!(25>a))throw Error(o(301));a+=1,to=eo=null,t.updateQueue=null,Ka.current=jo,e=n(r,i)}while(ro)}if(Ka.current=Io,t=null!==eo&&null!==eo.next,Ja=0,to=eo=Za=null,no=!1,t)throw Error(o(300));return e}function so(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===to?Za.memoizedState=to=e:to=to.next=e,to}function lo(){if(null===eo){var e=Za.alternate;e=null!==e?e.memoizedState:null}else e=eo.next;var t=null===to?Za.memoizedState:to.next;if(null!==t)to=t,eo=e;else{if(null===e)throw Error(o(310));e={memoizedState:(eo=e).memoizedState,baseState:eo.baseState,baseQueue:eo.baseQueue,queue:eo.queue,next:null},null===to?Za.memoizedState=to=e:to=to.next=e}return to}function co(e,t){return"function"===typeof t?t(e):t}function uo(e){var t=lo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=eo,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=a=null,c=i;do{var u=c.lane;if((Ja&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,Za.lanes|=u,Ws|=u}c=c.next}while(null!==c&&c!==i);null===l?a=r:l.next=s,ur(r,t.memoizedState)||(Bo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ho(e){var t=lo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ur(a,t.memoizedState)||(Bo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function fo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Ja&e)===e)&&(t._workInProgressVersionPrimary=r,Xa.push(t))),e)return n(t._source);throw Xa.push(t),Error(o(350))}function po(e,t,n,r){var i=Ms;if(null===i)throw Error(o(349));var a=t._getVersion,s=a(t._source),l=Ka.current,c=l.useState((function(){return fo(i,t,n)})),u=c[1],d=c[0];c=to;var h=e.memoizedState,f=h.refs,p=f.getSnapshot,g=h.source;h=h.subscribe;var m=Za;return e.memoizedState={refs:f,source:t,subscribe:r},l.useEffect((function(){f.getSnapshot=n,f.setSnapshot=u;var e=a(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(u(e),e=pl(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var l=31-Vt(o),c=1<<l;r[l]|=e,o&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var r=pl(m);i.mutableReadLanes|=r&i.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),ur(p,n)&&ur(g,t)&&ur(h,r)||((e={pending:null,dispatch:null,lastRenderedReducer:co,lastRenderedState:d}).dispatch=u=_o.bind(null,Za,e),c.queue=e,c.baseQueue=null,d=fo(i,t,n),c.memoizedState=c.baseState=d),d}function go(e,t,n){return po(lo(),e,t,n)}function mo(e){var t=so();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:co,lastRenderedState:e}).dispatch=_o.bind(null,Za,e),[t.memoizedState,e]}function yo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Za.updateQueue)?(t={lastEffect:null},Za.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bo(e){return e={current:e},so().memoizedState=e}function vo(){return lo().memoizedState}function xo(e,t,n,r){var i=so();Za.flags|=e,i.memoizedState=yo(1|t,n,void 0,void 0===r?null:r)}function wo(e,t,n,r){var i=lo();r=void 0===r?null:r;var a=void 0;if(null!==eo){var o=eo.memoizedState;if(a=o.destroy,null!==r&&ao(r,o.deps))return void yo(t,n,a,r)}Za.flags|=e,i.memoizedState=yo(1|t,n,a,r)}function ko(e,t){return xo(516,4,e,t)}function Ao(e,t){return wo(516,4,e,t)}function Eo(e,t){return wo(4,2,e,t)}function So(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Po(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wo(4,2,So.bind(null,t,e),n)}function Co(){}function Oo(e,t){var n=lo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ao(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function To(e,t){var n=lo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ao(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function No(e,t){var n=Vi();Yi(98>n?98:n,(function(){e(!0)})),Yi(97<n?97:n,(function(){var n=Qa.transition;Qa.transition=1;try{e(!1),t()}finally{Qa.transition=n}}))}function _o(e,t,n){var r=fl(),i=pl(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Za||null!==o&&o===Za)ro=no=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,ur(l,s))return}catch(c){}gl(e,i,r)}}var Io={readContext:oa,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useOpaqueIdentifier:io,unstable_isNewReconciler:!1},Ro={readContext:oa,useCallback:function(e,t){return so().memoizedState=[e,void 0===t?null:t],e},useContext:oa,useEffect:ko,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xo(4,2,So.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var n=so();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=so();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=_o.bind(null,Za,e),[r.memoizedState,e]},useRef:bo,useState:mo,useDebugValue:Co,useDeferredValue:function(e){var t=mo(e),n=t[0],r=t[1];return ko((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=mo(!1),t=e[0];return bo(e=No.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=so();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},po(r,e,t,n)},useOpaqueIdentifier:function(){if(za){var e=!1,t=function(e){return{$$typeof:j,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Kr++).toString(36))),Error(o(355))})),n=mo(t)[1];return 0===(2&Za.mode)&&(Za.flags|=516,yo(5,(function(){n("r:"+(Kr++).toString(36))}),void 0,null)),t}return mo(t="r:"+(Kr++).toString(36)),t},unstable_isNewReconciler:!1},Mo={readContext:oa,useCallback:Oo,useContext:oa,useEffect:Ao,useImperativeHandle:Po,useLayoutEffect:Eo,useMemo:To,useReducer:uo,useRef:vo,useState:function(){return uo(co)},useDebugValue:Co,useDeferredValue:function(e){var t=uo(co),n=t[0],r=t[1];return Ao((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=uo(co)[0];return[vo().current,e]},useMutableSource:go,useOpaqueIdentifier:function(){return uo(co)[0]},unstable_isNewReconciler:!1},jo={readContext:oa,useCallback:Oo,useContext:oa,useEffect:Ao,useImperativeHandle:Po,useLayoutEffect:Eo,useMemo:To,useReducer:ho,useRef
2:vo,useState:function(){return ho(co)},useDebugValue:Co,useDeferredValue:function(e){var t=ho(co),n=t[0],r=t[1];return Ao((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=ho(co)[0];return[vo().current,e]},useMutableSource:go,useOpaqueIdentifier:function(){return ho(co)[0]},unstable_isNewReconciler:!1},Lo=w.ReactCurrentOwner,Bo=!1;function Fo(e,t,n,r){t.child=null===e?Ca(t,null,n,r):Pa(t,e.child,n,r)}function Do(e,t,n,r,i){n=n.render;var a=t.ref;return aa(t,i),r=oo(e,t,n,r,a,i),null===e||Bo?(t.flags|=1,Fo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Uo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Yl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,zo(e,t,o,r,i,a))}return o=e.child,0===(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:hr)(i,r)&&e.ref===t.ref)?os(e,t,a):(t.flags|=1,(e=ql(o,r)).ref=t.ref,e.return=t,t.child=e)}function zo(e,t,n,r,i,a){if(null!==e&&hr(e.memoizedProps,r)&&e.ref===t.ref){if(Bo=!1,0===(a&i))return t.lanes=e.lanes,os(e,t,a);0!==(16384&e.flags)&&(Bo=!0)}return Vo(e,t,n,r,a)}function Wo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},Al(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Al(t,e),null;t.memoizedState={baseLanes:0},Al(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Al(t,r);return Fo(e,t,i,n),t.child}function Ho(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vo(e,t,n,r,i){var a=yi(n)?gi:fi.current;return a=mi(t,a),aa(t,i),n=oo(e,t,n,r,a,i),null===e||Bo?(t.flags|=1,Fo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Go(e,t,n,r,i){if(yi(n)){var a=!0;wi(t)}else a=!1;if(aa(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),va(t,n,r),wa(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=oa(c):c=mi(t,c=yi(n)?gi:fi.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==c)&&xa(t,o,r,c),sa=!1;var h=t.memoizedState;o.state=h,fa(t,r,o,i),l=t.memoizedState,s!==r||h!==l||pi.current||sa?("function"===typeof u&&(ma(t,n,u,r),l=t.memoizedState),(s=sa||ba(t,n,s,r,h,l,c))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ca(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Qi(t.type,s),o.props=c,d=t.pendingProps,h=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=oa(l):l=mi(t,l=yi(n)?gi:fi.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||h!==l)&&xa(t,o,r,l),sa=!1,h=t.memoizedState,o.state=h,fa(t,r,o,i);var p=t.memoizedState;s!==d||h!==p||pi.current||sa?("function"===typeof f&&(ma(t,n,f,r),p=t.memoizedState),(c=sa||ba(t,n,c,r,h,p,l))?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return Yo(e,t,n,r,a,i)}function Yo(e,t,n,r,i,a){Ho(e,t);var o=0!==(64&t.flags);if(!r&&!o)return i&&ki(t,n,!1),os(e,t,a);r=t.stateNode,Lo.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Pa(t,e.child,null,a),t.child=Pa(t,null,s,a)):Fo(e,t,s,a),t.memoizedState=r.state,i&&ki(t,n,!0),t.child}function qo(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Ra(e,t.containerInfo)}var Xo,$o,Ko,Qo,Jo={dehydrated:null,retryLane:0};
vendor: 4,867 bytes, line 2
2function Zo(e,t,n){var r,i=t.pendingProps,a=Ba.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),di(Ba,1&a),null===e?(void 0!==i.fallback&&Va(t),e=i.children,a=i.fallback,o?(e=es(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Jo,e):"number"===typeof i.unstable_expectedLoadTime?(e=es(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Jo,t.lanes=33554432,e):((n=Kl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=ns(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Jo,i):(n=ts(e,t,i.children,n),t.memoizedState=null,n))}function es(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Kl(t,i,0,null),n=$l(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function ts(e,t,n,r){var i=e.child;return e=i.sibling,n=ql(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ns(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0===(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ql(o,s),null!==e?r=ql(e,r):(r=$l(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function rs(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ia(e.return,t)}function is(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function as(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Fo(e,t,r.children,n),0!==(2&(r=Ba.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rs(e,n);else if(19===e.tag)rs(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(di(Ba,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),is(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}is(t,!0,n,null,a,t.lastEffect);break;case"together":is(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ws|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=ql(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ql(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ss(e,t){if(!za)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ls(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yi(t.type)&&bi(),null;case 3:return Ma(),ui(pi),ui(fi),$a(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ya(t)?t.flags|=4:r.hydrate||(t.flags|=256)),$o(t),null;case 5:La(t);var a=Ia(_a.current);if(n=t.type,null!==e&&null!=t.stateNode)Ko(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ia(Ta.current),Ya(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Zr]=s,n){case"dialog":Nr("cancel",r),Nr("close",r);break;case"iframe":case"object":case"embed":Nr("load",r);break;case"video":case"audio":for(e=0;e<Pr.length;e++)Nr(Pr[e],r);break;case"source":Nr("error",r);break;case"img":case"image":case"link":Nr("error",r),Nr("load",r);break;case"details":Nr("toggle",r);break;case"input":ee(r,s),Nr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Nr("invalid",r);break;case"textarea":le(r,s),Nr("invalid",r)}
2for(var c in Ee(n,s),e=null,s)s.hasOwnProperty(c)&&(a=s[c],"children"===c?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):l.hasOwnProperty(c)&&null!=a&&"onScroll"===c&&Nr("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Ur)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===a.nodeType?a:a.ownerDocument,e===de&&(e=fe(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Jr]=t,e[Zr]=r,Xo(e,t,!1,!1),t.stateNode=e,c=Se(n,r),n){case"dialog":Nr("cancel",e),Nr("close",e),a=r;break;case"iframe":case"object":case"embed":Nr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Pr.length;a++)Nr(Pr[a],e);a=r;break;case"source":Nr("error",e),a=r;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),a=r;break;case"details":Nr("toggle",e),a=r;break;case"input":ee(e,r),a=Z(e,r),Nr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Nr("invalid",e);break;case"textarea":le(e,r),a=se(e,r),Nr("invalid",e);break;default:a=r}Ee(n,a);var u=a;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?ke(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ye(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&be(e,d):"number"===typeof d&&be(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Nr("scroll",e):null!=d&&x(e,s,d,c))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+X(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Ur)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qo(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Ia(_a.current),Ia(Ta.current),Ya(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return ui(Ba),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ya(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ba.current)?0===Ds&&(Ds=3):(0!==Ds&&3!==Ds||(Ds=4),null===Ms||0===(134217727&Ws)&&0===(134217727&Hs)||vl(Ms,Ls))),(r||n)&&(t.flags|=4),null);case 4:return Ma(),$o(t),null===e&&Ir(t.stateNode.containerInfo),null;case 10:return ra(t),null;case 19:if(ui(Ba),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)ss(r,!1);else{if(0!==Ds||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Fa(e))){for(t.flags|=64,ss(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return di(Ba,1&Ba.current|2),t.child}e=e.sibling}null!==r.tail&&Hi()>qs&&(t.flags|=64,s=!0,ss(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Fa(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ss(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!za)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Hi()-r.renderingStartTime>qs&&1073741824!==n&&(t.flags|=64,s=!0,ss(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}
vendor: 10,434 bytes, line 2
2return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Hi(),n.sibling=null,t=Ba.current,di(Ba,s?1&t|2:1&t),n):null;case 23:case 24:return El(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function cs(e){switch(e.tag){case 1:yi(e.type)&&bi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ma(),ui(pi),ui(fi),$a(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return La(e),null;case 13:return ui(Ba),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Ba),null;case 4:return Ma(),null;case 10:return ra(e),null;case 23:case 24:return El(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Xo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$o=function(){},Ko=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ia(Ta.current);var o,s=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),s=[];break;case"option":a=ae(e,a),r=ae(e,r),s=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":a=se(e,a),r=se(e,r),s=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Ur)}for(d in Ee(n,r),n=null,a)if(!r.hasOwnProperty(d)&&a.hasOwnProperty(d)&&null!=a[d])if("style"===d){var c=a[d];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=a?a[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(o in c)!c.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&c[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Nr("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===j?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var hs="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,Js=r),ds(0,t)},n}function ps(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return ds(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),ds(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var gs="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){zl(e,n)}else t.current=null}function ys(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(o(163))}function bs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Fl(n,e),Bl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(o(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=we("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function xs(e,t){if(Ei&&"function"===typeof Ei.onCommitFiberUnmount)try{Ei.onCommitFiberUnmount(Ai,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Fl(t,n);else{r=t;try{i()}catch(a){zl(r,a)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){zl(t,a)}break;case 5:ms(t);break;case 4:Ps(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ks(e){return 5===e.tag||3===e.tag||4===e.tag}function As(e){e:{for(var t=e.return;null!==t;){if(ks(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ks(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Es(e,n,t):Ss(e,n,t)}function Es(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ur));else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function Ss(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function Ps(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,c=l;;)if(xs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(xs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Cs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var s=a[i],l=a[i+1];"style"===s?ke(n,l):"dangerouslySetInnerHTML"===s?ye(n,l):"children"===s?be(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ys=Hi(),vs(t.child,!0)),void Os(t);case 19:return void Os(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(o(163))}function Os(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new gs),t.forEach((function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ns=Math.ceil,_s=w.ReactCurrentDispatcher,Is=w.ReactCurrentOwner,Rs=0,Ms=null,js=null,
vendor: 5,969 bytes, line 2
2Ls=0,Bs=0,Fs=ci(0),Ds=0,Us=null,zs=0,Ws=0,Hs=0,Vs=0,Gs=null,Ys=0,qs=1/0;function Xs(){qs=Hi()+500}var $s,Ks=null,Qs=!1,Js=null,Zs=null,el=!1,tl=null,nl=90,rl=[],il=[],al=null,ol=0,sl=null,ll=-1,cl=0,ul=0,dl=null,hl=!1;function fl(){return 0!==(48&Rs)?Hi():-1!==ll?ll:ll=Hi()}function pl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Vi()?1:2;if(0===cl&&(cl=zs),0!==Ki.transition){0!==ul&&(ul=null!==Gs?Gs.pendingLanes:0),e=cl;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vi(),0!==(4&Rs)&&98===e?e=Ut(12,cl):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),cl),e}function gl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(o(185));if(null===(e=ml(e,t)))return null;Ht(e,t,n),e===Ms&&(Hs|=t,4===Ds&&vl(e,Ls));var r=Vi();1===t?0!==(8&Rs)&&0===(48&Rs)?xl(e):(yl(e,n),0===Rs&&(Xs(),Xi())):(0===(4&Rs)||98!==r&&99!==r||(null===al?al=new Set([e]):al.add(e)),yl(e,n)),Gs=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function yl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Vt(s),c=1<<l,u=a[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,Bt(c);var d=Lt;a[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Ms?Ls:0),t=Lt,0===r)null!==n&&(n!==Bi&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Bi&&Ci(n)}15===t?(n=xl.bind(null,e),null===Di?(Di=[n],Ui=Pi(Ii,$i)):Di.push(n),n=Bi):14===t?n=qi(99,xl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),n=qi(n,bl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bl(e){if(ll=-1,ul=cl=0,0!==(48&Rs))throw Error(o(327));var t=e.callbackNode;if(Ll()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ms?Ls:0);if(0===n)return null;var r=n,i=Rs;Rs|=16;var a=Cl();for(Ms===e&&Ls===r||(Xs(),Sl(e,r));;)try{Nl();break}catch(l){Pl(e,l)}if(na(),_s.current=a,Rs=i,null!==js?r=0:(Ms=null,Ls=0,r=Ds),0!==(zs&Hs))Sl(e,0);else if(0!==r){if(2===r&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Dt(e))&&(r=Ol(e,n))),1===r)throw t=Us,Sl(e,0),vl(e,n),yl(e,Hi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:case 5:Rl(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Ys+500-Hi())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){fl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(Rl.bind(null,e),r);break}Rl(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Vt(n);a=1<<s,(s=r[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Hi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ns(n/1960))-n)){e.timeoutHandle=Gr(Rl.bind(null,e),n);break}Rl(e);break;default:throw Error(o(329))}}return yl(e,Hi()),e.callbackNode===t?bl.bind(null,e):null}function vl(e,t){for(t&=~Vs,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function xl(e){if(0!==(48&Rs))throw Error(o(327));if(Ll(),e===Ms&&0!==(e.expiredLanes&Ls)){var t=Ls,n=Ol(e,t);0!==(zs&Hs)&&(n=Ol(e,t=Ft(e,t)))}else n=Ol(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Dt(e))&&(n=Ol(e,t))),1===n)throw n=Us,Sl(e,0),vl(e,t),yl(e,Hi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rl(e),yl(e,Hi()),null}function wl(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&(Xs(),Xi())}}function kl(e,t){var n=Rs;Rs&=-2,Rs|=8;try{return e(t)}finally{0===(Rs=n)&&(Xs(),Xi())}}function Al(e,t){di(Fs,Bs),Bs|=t,zs|=t}function El(){Bs=Fs.current,ui(Fs)}function Sl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yr(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bi();break;case 3:Ma(),ui(pi),ui(fi),$a();break;case 5:La(r);break;case 4:Ma();break;case 13:case 19:ui(Ba);break;case 10:ra(r);break;case 23:case 24:El()}n=n.return}Ms=e,js=ql(e.current,null),Ls=Bs=zs=t,Ds=0,Us=null,Vs=Hs=Ws=0}function Pl(e,t){for(;;){var n=js;try{if(na(),Ka.current=Io,no){for(var r=Za.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}no=!1}if(Ja=0,to=eo=Za=null,ro=!1,Is.current=null,null===n||null===n.return){Ds=1,Us=t,js=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Ls,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Ba.current),h=o;do{var f;if(f=13===h.tag){var p=h.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var g=h.memoizedProps;f=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(f){var m=h.updateQueue;if(null===m){var y=new Set;y.add(c),h.updateQueue=y}else m.add(c);if(0===(2&h.mode)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var b=ua(-1,1);b.tag=2,da(s,b)}s.lanes|=1;break e}l=void 0,s=t;var v=a.pingCache;if(null===v?(v=a.pingCache=new hs,l=new Set,v.set(c,l)):void 0===(l=v.get(c))&&(l=new Set,v.set(c,l)),!l.has(s)){l.add(s);var x=Wl.bind(null,a,c,s);c.then(x,x)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);l=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}
vendor: 12,213 bytes, line 2
25!==Ds&&(Ds=2),l=us(l,s),h=o;do{switch(h.tag){case 3:a=l,h.flags|=4096,t&=-t,h.lanes|=t,ha(h,fs(0,a,t));break e;case 1:a=l;var w=h.type,k=h.stateNode;if(0===(64&h.flags)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Zs||!Zs.has(k)))){h.flags|=4096,t&=-t,h.lanes|=t,ha(h,ps(h,a,t));break e}}h=h.return}while(null!==h)}Il(n)}catch(A){t=A,js===n&&null!==n&&(js=n=n.return);continue}break}}function Cl(){var e=_s.current;return _s.current=Io,null===e?Io:e}function Ol(e,t){var n=Rs;Rs|=16;var r=Cl();for(Ms===e&&Ls===t||Sl(e,t);;)try{Tl();break}catch(i){Pl(e,i)}if(na(),Rs=n,_s.current=r,null!==js)throw Error(o(261));return Ms=null,Ls=0,Ds}function Tl(){for(;null!==js;)_l(js)}function Nl(){for(;null!==js&&!Oi();)_l(js)}function _l(e){var t=$s(e.alternate,e,Bs);e.memoizedProps=e.pendingProps,null===t?Il(e):js=t,Is.current=null}function Il(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ls(n,t,Bs)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Bs)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=cs(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Ds&&(Ds=5)}function Rl(e){var t=Vi();return Yi(99,Ml.bind(null,e,t)),null}function Ml(e,t){do{Ll()}while(null!==tl);if(0!==(48&Rs))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<a;){var c=31-Vt(a),u=1<<c;i[c]=0,s[c]=-1,l[c]=-1,a&=~u}if(null!==al&&0===(24&r)&&al.has(e)&&al.delete(e),e===Ms&&(js=Ms=null,Ls=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Rs,Rs|=32,Is.current=null,zr=$t,yr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,a=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(P){l=null;break e}var d=0,h=-1,f=-1,p=0,g=0,m=s,y=null;t:for(;;){for(var b;m!==l||0!==a&&3!==m.nodeType||(h=d+a),m!==c||0!==u&&3!==m.nodeType||(f=d+u),3===m.nodeType&&(d+=m.nodeValue.length),null!==(b=m.firstChild);)y=m,m=b;for(;;){if(m===s)break t;if(y===l&&++p===a&&(h=d),y===c&&++g===u&&(f=d),null!==(b=m.nextSibling))break;y=(m=y).parentNode}m=b}l=-1===h||-1===f?null:{start:h,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;Wr={focusedElem:s,selectionRange:l},$t=!1,dl=null,hl=!1,Ks=r;do{try{jl()}catch(P){if(null===Ks)throw Error(o(330));zl(Ks,P),Ks=Ks.nextEffect}}while(null!==Ks);dl=null,Ks=r;do{try{for(s=e;null!==Ks;){var v=Ks.flags;if(16&v&&be(Ks.stateNode,""),128&v){var x=Ks.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&v){case 2:As(Ks),Ks.flags&=-3;break;case 6:As(Ks),Ks.flags&=-3,Cs(Ks.alternate,Ks);break;case 1024:Ks.flags&=-1025;break;case 1028:Ks.flags&=-1025,Cs(Ks.alternate,Ks);break;case 4:Cs(Ks.alternate,Ks);break;case 8:Ps(s,l=Ks);var k=l.alternate;ws(l),null!==k&&ws(k)}Ks=Ks.nextEffect}}catch(P){if(null===Ks)throw Error(o(330));zl(Ks,P),Ks=Ks.nextEffect}}while(null!==Ks);if(w=Wr,x=mr(),v=w.focusedElem,s=w.selectionRange,x!==v&&v&&v.ownerDocument&&gr(v.ownerDocument.documentElement,v)){null!==s&&yr(v)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in v?(v.selectionStart=x,v.selectionEnd=Math.min(w,v.value.length)):(w=(x=v.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=v.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!w.extend&&k>s&&(l=s,s=k,k=l),l=pr(v,k),a=pr(v,s),l&&a&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>s?(w.addRange(x),w.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),w.addRange(x))))),x=[];for(w=v;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof v.focus&&v.focus(),v=0;v<x.length;v++)(w=x[v]).element.scrollLeft=w.left,w.element.scrollTop=w.top}$t=!!zr,Wr=zr=null,e.current=n,Ks=r;do{try{for(v=e;null!==Ks;){var A=Ks.flags;if(36&A&&bs(v,Ks.alternate,Ks),128&A){x=void 0;var E=Ks.ref;if(null!==E){var S=Ks.stateNode;Ks.tag,x=S,"function"===typeof E?E(x):E.current=x}}Ks=Ks.nextEffect}}catch(P){if(null===Ks)throw Error(o(330));zl(Ks,P),Ks=Ks.nextEffect}}while(null!==Ks);Ks=null,Fi(),Rs=i}else e.current=n;if(el)el=!1,tl=e,nl=t;else for(Ks=r;null!==Ks;)t=Ks.nextEffect,Ks.nextEffect=null,8&Ks.flags&&((A=Ks).sibling=null,A.stateNode=null),Ks=t;if(0===(r=e.pendingLanes)&&(Zs=null),1===r?e===sl?ol++:(ol=0,sl=e):ol=0,n=n.stateNode,Ei&&"function"===typeof Ei.onCommitFiberRoot)try{Ei.onCommitFiberRoot(Ai,n,void 0,64===(64&n.current.flags))}catch(P){}if(yl(e,Hi()),Qs)throw Qs=!1,e=Js,Js=null,e;return 0!==(8&Rs)||Xi(),null}function jl(){for(;null!==Ks;){var e=Ks.alternate;hl||null===dl||(0!==(8&Ks.flags)?et(Ks,dl)&&(hl=!0):13===Ks.tag&&Ts(e,Ks)&&et(Ks,dl)&&(hl=!0));var t=Ks.flags;0!==(256&t)&&ys(e,Ks),0===(512&t)||el||(el=!0,qi(97,(function(){return Ll(),null}))),Ks=Ks.nextEffect}}function Ll(){if(90!==nl){var e=97<nl?97:nl;return nl=90,Yi(e,Dl)}return!1}function Bl(e,t){rl.push(t,e),el||(el=!0,qi(97,(function(){return Ll(),null})))}function Fl(e,t){il.push(t,e),el||(el=!0,qi(97,(function(){return Ll(),null})))}function Dl(){if(null===tl)return!1;var e=tl;if(tl=null,0!==(48&Rs))throw Error(o(331));var t=Rs;Rs|=32;var n=il;il=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===a)throw Error(o(330));zl(a,c)}}for(n=rl,rl=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(c){if(null===a)throw Error(o(330));zl(a,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Rs=t,Xi(),!0}function Ul(e,t,n){da(e,t=fs(0,t=us(n,t),1)),t=fl(),null!==(e=ml(e,1))&&(Ht(e,1,t),yl(e,t))}function zl(e,t){if(3===e.tag)Ul(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ul(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){var i=ps(n,e=us(t,e),1);if(da(n,i),i=fl(),null!==(n=ml(n,1)))Ht(n,1,i),yl(n,i);else if("function"===typeof r.componentDidCatch&&(null===Zs||!Zs.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Wl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,Ms===e&&(Ls&n)===n&&(4===Ds||3===Ds&&(62914560&Ls)===Ls&&500>Hi()-Ys?Sl(e,0):Vs|=n),yl(e,t)}function Hl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Vi()?1:2:(0===cl&&(cl=zs),0===(t=zt(62914560&~cl))&&(t=4194304))),n=fl(),null!==(e=ml(e,t))&&(Ht(e,t,n),yl(e,n))}function Vl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Gl(e,t,n,r){return new Vl(e,t,n,r)}function Yl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var n=e.alternate;return null===n?((n=Gl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Yl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return $l(n.children,i,a,t);case L:s=8,i|=16;break;case S:s=8,i|=1;break;case P:return(e=Gl(12,n,t,8|i)).elementType=P,e.type=P,e.lanes=a,e;case N:return(e=Gl(13,n,t,i)).type=N,e.elementType=N,e.lanes=a,e;case _:return(e=Gl(19,n,t,i)).elementType=_,e.lanes=a,e;case B:return Kl(n,i,a,t);case F:return(e=Gl(24,n,t,i)).elementType=F,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case O:s=9;break e;case T:s=11;break e;case I:s=14;break e;case R:s=16,r=null;break e;case M:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Gl(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function $l(e,t,n,r){return(e=Gl(7,e,r,t)).lanes=n,e}function Kl(e,t,n,r){return(e=Gl(23,e,r,t)).elementType=B,e.lanes=n,e}function Ql(e,t,n){return(e=Gl(6,e,null,t)).lanes=n,e}function Jl(e,t,n){return(t=Gl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Wt(0),this.expirationTimes=Wt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.mutableSourceEagerHydrationData=null}function ec(e,t,n,r){var i=t.current,a=fl(),s=pl(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var c=n.type;if(yi(c)){n=xi(n,c,l);break e}}n=l}else n=hi;return null===t.context?t.context=n:t.pendingContext=n,(t=ua(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),da(i,t),gl(i,s,a),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function ic(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zl(e,t,null!=n&&!0===n.hydrate),t=Gl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,la(t),e[ei]=n.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ac(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=tc(o);s.call(e)}}ec(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ic(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var l=i;
2i=function(){var e=tc(o);l.call(e)}}kl((function(){ec(t,o,e,i)}))}return tc(o)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ac(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}$s=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Bo=!0;else{if(0===(n&r)){switch(Bo=!1,t.tag){case 3:qo(t),qa();break;case 5:ja(t);break;case 1:yi(t.type)&&wi(t);break;case 4:Ra(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;di(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Zo(e,t,n):(di(Ba,1&Ba.current),null!==(t=os(e,t,n))?t.sibling:null);di(Ba,1&Ba.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return as(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),di(Ba,Ba.current),r)break;return null;case 23:case 24:return t.lanes=0,Wo(e,t,n)}return os(e,t,n)}Bo=0!==(16384&e.flags)}else Bo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,fi.current),aa(t,n),i=oo(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yi(r)){var a=!0;wi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,la(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&ma(t,r,s,e),i.updater=ya,t.stateNode=i,i._reactInternals=t,wa(t,r,e,n),t=Yo(null,t,r,!0,a,n)}else t.tag=0,Fo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"===typeof e)return Yl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===I)return 14}return 2}(i),e=Qi(i,e),a){case 0:t=Vo(null,t,i,e,n);break e;case 1:t=Go(null,t,i,e,n);break e;case 11:t=Do(null,t,i,e,n);break e;case 14:t=Uo(null,t,i,Qi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Vo(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Go(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 3:if(qo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ca(e,t),fa(t,r,null,n),(r=t.memoizedState.element)===i)qa(),t=os(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ua=Xr(t.stateNode.containerInfo.firstChild),Da=t,a=za=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Xa.push(a);for(n=Ca(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fo(e,t,r,n),qa();t=t.child}return t;case 5:return ja(t),null===e&&Va(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Vr(r,i)?s=null:null!==a&&Vr(r,a)&&(t.flags|=16),Ho(e,t),Fo(e,t,s,n),t.child;case 6:return null===e&&Va(t),null;
vendor: 5,181 bytes, line 2
2case 13:return Zo(e,t,n);case 4:return Ra(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pa(t,null,r,n):Fo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Do(e,t,r,i=t.elementType===r?i:Qi(r,i),n);case 7:return Fo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var l=t.type._context;if(di(Ji,l._currentValue),l._currentValue=a,null!==s)if(l=s.value,0===(a=ur(l,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(s.children===i.children&&!pi.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&a)){1===l.tag&&((u=ua(-1,n&-n)).tag=2,da(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ia(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,aa(t,n),r=r(i=oa(i,a.unstable_observedBits)),t.flags|=1,Fo(e,t,r,n),t.child;case 14:return a=Qi(i=t.type,t.pendingProps),Uo(e,t,i,a=Qi(i.type,a),r,n);case 15:return zo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yi(r)?(e=!0,wi(t)):e=!1,aa(t,n),va(t,r,i),wa(t,r,i,n),Yo(null,t,r,!0,e,n);case 19:return as(e,t,n);case 23:case 24:return Wo(e,t,n)}throw Error(o(156,t.tag))},ic.prototype.render=function(e){ec(e,this._internalRoot,null,null)},ic.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[ei]=null}))},tt=function(e){13===e.tag&&(gl(e,4,fl()),rc(e,4))},nt=function(e){13===e.tag&&(gl(e,67108864,fl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=fl(),n=pl(e);gl(e,n,t),rc(e,n)}},it=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ai(r);if(!i)throw Error(o(90));Q(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Re=wl,Me=function(e,t,n,r,i){var a=Rs;Rs|=4;try{return Yi(98,e.bind(null,t,n,r,i))}finally{0===(Rs=a)&&(Xs(),Xi())}},je=function(){0===(49&Rs)&&(function(){if(null!==al){var e=al;al=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,yl(e,Hi())}))}Xi()}(),Ll())},Le=function(e,t){var n=Rs;Rs|=2;try{return e(t)}finally{0===(Rs=n)&&(Xs(),Xi())}};var lc={Events:[ri,ii,ai,_e,Ie,Ll,{current:!1}]},cc={findFiberByHostInstance:ni,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{Ai=dc.inject(uc),Ei=dc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Rs;if(0!==(48&n))return e(t);Rs|=1;try{if(e)return Yi(99,e.bind(null,t))}finally{Rs=n,Xi()}},t.hydrate=function(e,t,n){if(!ac(t))throw Error(o(200));return oc(null,e,t,!0,n)},t.render=function(e,t,n){if(!ac(t))throw Error(o(200));return oc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ac(e))throw Error(o(40));return!!e._reactRootContainer&&(kl((function(){oc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ei]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ac(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return oc(e,t,n,!1,r)},t.version="17.0.1"},19394:(e,t,n)=>{"use strict";var r=n(95944),i=n(28726);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},20022:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.authorizationify=t.accessListify=void 0;var r=n(71274);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return r.accessListify}});var i=n(50799);Object.defineProperty(t,"authorizationify",{enumerable:!0,get:function(){return i.authorizationify}});var a=n(91102);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return a.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return a.recoverAddress}});var o=n(82346);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return o.Transaction}})},20144:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"address","name":"_tokenContractAddress","type":"address"},{"internalType":"uint256","name":"_annualInterestRate","type":"uint256"},{"internalType":"uint256","name":"_rewardTimeSpan","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"annualInterestRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defxToken","outputs":[{"internalType":"contract DEFX","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayEther","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getEarnedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemRewardToStaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardTimeSpan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interestRate","type":"uint256"}],"name":"setAnnualInterestRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeSpan","type":"uint256"}],"name":"setRewardTimeSpan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}
2,{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawUnusedBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]')},20220:(e,t,n)=>{var r=n(57949),i=n(98166);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},20232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;const r=n(24839),i=n(10569);class a extends i.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,r.getBytesCopy)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=a;t.BytesCoder=class extends a{constructor(e){super("bytes",e)}decode(e){return(0,r.hexlify)(super.decode(e))}}},20288:(e,t,n)=>{"use strict";n.d(t,{A7:()=>a,BG:()=>o,Fo:()=>f,K0:()=>l,Oh:()=>c,RM:()=>m,jj:()=>s,k5:()=>d,lN:()=>g,lY:()=>h,uC:()=>p,vW:()=>u});var r=n(70246),i=n(36026);class a extends i.C{constructor(){var e;let{cause:t,message:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=null===n||void 0===n||null===(e=n.replace("execution reverted: ",""))||void 0===e?void 0:e.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.C{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"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 s extends i.C{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.Q)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(s,"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 l extends i.C{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.C{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.C{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.C{constructor(){let{cause:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,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."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class h extends i.C{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.C{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}
2Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.C{constructor(e){let{cause:t}=e;super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.C{constructor(){let{cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.Q)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.Q)(n)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(g,"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 m extends i.C{constructor(e){let{cause:t}=e;super(`An error occurred while executing: ${null===t||void 0===t?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}},20475:(e,t,n)=>{var r=n(77101);e.exports=function(e){return r(this,e).has(e)}},20757:(e,t,n)=>{"use strict";n.d(t,{BD:()=>r,Ge:()=>i});const r=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^(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)?$/},20927:(e,t,n)=>{var r=n(70423),i=n(73267)(r);e.exports=i},21208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13310),i=n(95070);function a(e,t,n){for(var i=1634760805,a=857760878,o=2036477234,s=1797285236,l=n[3]<<24|n[2]<<16|n[1]<<8|n[0],c=n[7]<<24|n[6]<<16|n[5]<<8|n[4],u=n[11]<<24|n[10]<<16|n[9]<<8|n[8],d=n[15]<<24|n[14]<<16|n[13]<<8|n[12],h=n[19]<<24|n[18]<<16|n[17]<<8|n[16],f=n[23]<<24|n[22]<<16|n[21]<<8|n[20],p=n[27]<<24|n[26]<<16|n[25]<<8|n[24],g=n[31]<<24|n[30]<<16|n[29]<<8|n[28],m=t[3]<<24|t[2]<<16|t[1]<<8|t[0],y=t[7]<<24|t[6]<<16|t[5]<<8|t[4],b=t[11]<<24|t[10]<<16|t[9]<<8|t[8],v=t[15]<<24|t[14]<<16|t[13]<<8|t[12],x=i,w=a,k=o,A=s,E=l,S=c,P=u,C=d,O=h,T=f,N=p,_=g,I=m,R=y,M=b,j=v,L=0;L<20;L+=2)E=(E^=O=O+(I=(I^=x=x+E|0)>>>16|I<<16)|0)>>>20|E<<12,S=(S^=T=T+(R=(R^=w=w+S|0)>>>16|R<<16)|0)>>>20|S<<12,P=(P^=N=N+(M=(M^=k=k+P|0)>>>16|M<<16)|0)>>>20|P<<12,C=(C^=_=_+(j=(j^=A=A+C|0)>>>16|j<<16)|0)>>>20|C<<12,P=(P^=N=N+(M=(M^=k=k+P|0)>>>24|M<<8)|0)>>>25|P<<7,C=(C^=_=_+(j=(j^=A=A+C|0)>>>24|j<<8)|0)>>>25|C<<7,S=(S^=T=T+(R=(R^=w=w+S|0)>>>24|R<<8)|0)>>>25|S<<7,E=(E^=O=O+(I=(I^=x=x+E|0)>>>24|I<<8)|0)>>>25|E<<7,S=(S^=N=N+(j=(j^=x=x+S|0)>>>16|j<<16)|0)>>>20|S<<12,P=(P^=_=_+(I=(I^=w=w+P|0)>>>16|I<<16)|0)>>>20|P<<12,C=(C^=O=O+(R=(R^=k=k+C|0)>>>16|R<<16)|0)>>>20|C<<12,E=(E^=T=T+(M=(M^=A=A+E|0)>>>16|M<<16)|0)>>>20|E<<12,C=(C^=O=O+(R=(R^=k=k+C|0)>>>24|R<<8)|0)>>>25|C<<7,E=(E^=T=T+(M=(M^=A=A+E|0)>>>24|M<<8)|0)>>>25|E<<7,P=(P^=_=_+(I=(I^=w=w+P|0)>>>24|I<<8)|0)>>>25|P<<7,S=(S^=N=N+(j=(j^=x=x+S|0)>>>24|j<<8)|0)>>>25|S<<7;r.writeUint32LE(x+i|0,e,0),r.writeUint32LE(w+a|0,e,4),r.writeUint32LE(k+o|0,e,8),r.writeUint32LE(A+s|0,e,12),r.writeUint32LE(E+l|0,e,16),r.writeUint32LE(S+c|0,e,20),r.writeUint32LE(P+u|0,e,24),r.writeUint32LE(C+d|0,e,28),r.writeUint32LE(O+h|0,e,32),r.writeUint32LE(T+f|0,e,36),r.writeUint32LE(N+p|0,e,40),r.writeUint32LE(_+g|0,e,44),r.writeUint32LE(I+m|0,e,48),r.writeUint32LE(R+y|0,e,52),r.writeUint32LE(M+b|0,e,56),r.writeUint32LE(j+v|0,e,60)}function o(e,t,n,r,o){if(void 0===o&&(o=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length<n.length)throw new Error("ChaCha: destination is shorter than source");var l,c;if(0===o){if(8!==t.length&&12!==t.length)throw new Error("ChaCha nonce must be 8 or 12 bytes");c=(l=new Uint8Array(16)).length-t.length,l.set(t,c)}else{if(16!==t.length)throw new Error("ChaCha nonce with counter must be 16 bytes");l=t,c=o}for(var u=new Uint8Array(64),d=0;d<n.length;d+=64){a(u,l,e);for(var h=d;h<d+64&&h<n.length;h++)r[h]=n[h]^u[h-d];s(l,0,c)}return i.wipe(u),0===o&&i.wipe(l),r}function s(e,t,n){for(var r=1;n--;)r=r+(255&e[t])|0,e[t]=255&r,r>>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=o,t.stream=function(e,t,n,r){return void 0===r&&(r=0),i.wipe(n),o(e,t,n,n,r)}},21273:(e,t,n)=>{"use strict";n.d(t,{A1:()=>c,di:()=>o,iN:()=>u});var r=n(36712),i=n(7466),a=n(4846);function o(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.q)(e,{strict:!1})?u(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function s(e,t){if("number"===typeof t&&t>0&&t>(0,a.E)(e)-1)throw new r.ii({offset:t,position:"start",size:(0,a.E)(e)})}function l(e,t,n){if("number"===typeof t&&"number"===typeof n&&(0,a.E)(e)!==n-t)throw new r.ii({offset:n,position:"end",size:(0,a.E)(e)})}
vendor: 7,059 bytes, line 2
2function c(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const i=e.slice(t,n);return r&&l(i,t,n),i}function u(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const i=`0x${e.replace("0x","").slice(2*(null!==t&&void 0!==t?t:0),2*(null!==n&&void 0!==n?n:e.length))}`;return r&&l(i,t,n),i}},21416:(e,t,n)=>{var r=n(4635),i=n(48246),a=n(44206),o=n(49757),s=n(90943),l=n(26557),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&r;if(f||(f=l),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var m=o(f(e),f(t),r,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},21536:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},21812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.BlockscoutProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.verifyAuthorization=t.hashAuthorization=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.authorizationify=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EtherscanPlugin=t.EnsPlugin=t.Network=t.EnsResolver=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=t.toBeArray=t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=void 0;var r=n(49366);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}});var i=n(18212);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return i.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return i.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return i.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return i.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return i.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return i.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return i.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return i.Typed}});var a=n(55114);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return a.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return a.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return a.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return a.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return a.isAddressable}}
2),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return a.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return a.resolveAddress}});var o=n(65891);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return o.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return o.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return o.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return o.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return o.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return o.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return o.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}});var s=n(74652);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return s.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return s.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return s.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return s.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return s.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return s.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return s.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return s.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return s.UndecodedEventLog}});var l=n(69687);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return l.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return l.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return l.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return l.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return l.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return l.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return l.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return l.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return l.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return l.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return l.SigningKey}});var c=n(11454);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return c.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return c.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(t,"hashAuthorization",{enumerable:!0,get:function(){return c.hashAuthorization}}),Object.defineProperty(t,"verifyAuthorization",{enumerable:!0,get:function(){return c.verifyAuthorization}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return c.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return c.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return c.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return c.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return c.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return c.verifyTypedData}
2});var u=n(89544);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return u.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return u.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return u.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return u.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return u.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return u.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return u.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return u.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return u.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return u.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return u.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return u.AnkrProvider}}),Object.defineProperty(t,"BlockscoutProvider",{enumerable:!0,get:function(){return u.BlockscoutProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return u.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return u.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return u.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return u.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return u.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return u.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return u.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return u.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return u.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return u.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return u.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return u.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return u.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return u.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return u.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return u.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return u.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return u.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return u.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return u.showThrottleMessage}});var d=n(20022);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return d.accessListify}}),Object.defineProperty(t,"authorizationify",{enumerable:!0,get:function(){return d.authorizationify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return d.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return d.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return d.Transaction}});var h=n(24839);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return h.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return h.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return h.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return h.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return h.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return h.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return h.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return h.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return h.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return h.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return h.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return h.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return h.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return h.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return h.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return h.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return h.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return h.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return h.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return h.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return h.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return h.assertPrivate}}
2),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return h.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return h.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return h.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return h.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return h.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return h.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return h.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return h.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return h.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return h.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return h.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return h.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return h.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return h.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return h.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return h.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return h.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return h.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return h.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return h.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return h.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return h.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return h.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return h.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return h.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return h.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return h.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return h.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return h.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return h.uuidV4}});var f=n(71099);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return f.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return f.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return f.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return f.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return f.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return f.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return f.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return f.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return f.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return f.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return f.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return f.encryptKe
2ystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return f.encryptKeystoreJsonSync}});var p=n(23683);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return p.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return p.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return p.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return p.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return p.wordlists}})},22022:(e,t,n)=>{var r=n(4635),i=n(81581),a=n(65336),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},22253:(e,t,n)=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),o=l(a),s=l(n(2));function l(e){return e&&e.__esModule?e:{default:e}}var c="undefined"!=typeof document,u=/^[+-]?((\.\d+)|(\d+(\.\d+)?))$/,d=/^([+-]|\.0*|[+-]\.0*|[+-]?\d+\.)?$/;function h(e,t,n){var r=e[t];if("function"==typeof r){for(var i=arguments.length,a=Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];r=r.apply(void 0,a)}return void 0===r?n:r}var f=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i)));return o._isStrict=!!o.props.strict,o.state=r({btnDownHover:!1,btnDownActive:!1,btnUpHover:!1,btnUpActive:!1,stringValue:""},o._propsToState(o.props)),o.stop=o.stop.bind(o),o.onTouchEnd=o.onTouchEnd.bind(o),o.refsInput={},o.refsWrapper={},o}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"_propsToState",value:function(e){var t={};return e.hasOwnProperty("value")?(t.stringValue=String(e.value||0===e.value?e.value:"").trim(),t.value=""!==t.stringValue?this._parse(e.value):null):!this._isMounted&&e.hasOwnProperty("defaultValue")&&(t.stringValue=String(e.defaultValue||0===e.defaultValue?e.defaultValue:"").trim(),t.value=""!==e.defaultValue?this._parse(e.defaultValue):null),t}},{key:"componentWillReceiveProps",value:function(e){var t=this;this._isStrict=!!e.strict;var n=this._propsToState(e);Object.keys(n).length&&(this._ignoreValueChange=!0,this.setState(n,(function(){t._ignoreValueChange=!1})))}},{key:"componentWillUpdate",value:function(){this.saveSelection()}},{key:"componentDidUpdate",value:function(e,t){this._ignoreValueChange||t.value===this.state.value||isNaN(this.state.value)&&null!==this.state.value||this._invokeEventCallback("onChange",this.state.value,this.refsInput.value,this.refsInput),this._inputFocus&&(this.refsInput.focus(),(this.state.selectionStart||0===this.state.selectionStart)&&(this.refsInput.selectionStart=this.state.selectionStart),(this.state.selectionEnd||0===this.state.selectionEnd)&&(this.refsInput.selectionEnd=this.state.selectionEnd)),this.checkValidity()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.stop()}},{key:"componentDidMount",value:function(){var e=this;this._isMounted=!0,this.refsInput.getValueAsNumber=function(){return e.state.value||0},this.refsInput.setValue=function(t){e.setState({value:e._parse(t),stringValue:t})},!this._inputFocus&&c&&document.activeElement===this.refsInput&&(this._inputFocus=!0,this.refsInput.focus(),this._invokeEventCallback("onFocus",{target:this.refsInput,type:"focus"})),this.checkValidity()}},{key:"saveSelection",value:function(){this.state.selectionStart=this.refsInput.selectionStart,this.state.selectionEnd=this.refsInput.selectionEnd}},{key:"checkValidity",value:function(){var e=void 0,t="",n=!!this.refsInput.checkValidity,r=!(!this.props.noValidate||"false"==this.props.noValidate);this.refsInput.noValidate=r,(e=r||!n)?t="":(""===this.refsInput.pattern&&(this.refsInput.pattern=this.props.required?".+":".*"),n&&(this.refsInput.checkValidity(),(e=this.refsInput.validity.valid)||(t=this.refsInput.validationMessage)),e&&n&&this.props.maxLength&&this.refsInput.value.length>this.props.maxLength&&(t="This value is too long")),t=t||(e?"":this.refsInput.validationMessage||"Unknown Error");
2var i=this._valid!==t;this._valid=t,t?(!function(e,t){if(e.classList)return e.classList.add(t);e.className.search(new RegExp("\\b"+t+"\\b"))||(e.className=" "+t)}(this.refsWrapper,"has-error"),i&&this._invokeEventCallback("onInvalid",t,this.state.value,this.refsInput.value)):(!function(e,t){if(e.className){if(e.classList)return e.classList.remove(t);e.className=e.className.replace(new RegExp("\\b"+t+"\\b","g"),"")}}(this.refsWrapper,"has-error"),i&&this._invokeEventCallback("onValid",this.state.value,this.refsInput.value))}},{key:"_toNumber",value:function(e){var n=parseFloat(e);if(!isNaN(n)&&isFinite(n)||(n=0),this._isStrict){var r=h(this.props,"precision",null,this),i=Math.pow(10,null===r?10:r),a=+h(this.props,"min",t.defaultProps.min,this),o=+h(this.props,"max",t.defaultProps.max,this);n=Math.min(Math.max(n,a),o),n=Math.round(n*i)/i}return n}},{key:"_parse",value:function(e){return e=String(e),"function"==typeof this.props.parse?parseFloat(this.props.parse(e)):parseFloat(e)}},{key:"_format",value:function(e){var t=this._toNumber(e),n=h(this.props,"precision",null,this);return null!==n&&(t=e.toFixed(n)),t+="",this.props.format?this.props.format(t):t}},{key:"_step",value:function(e,n){var r=this._isStrict;this._isStrict=!0;var i=+h(this.props,"step",t.defaultProps.step,this,e>0?t.DIRECTION_UP:t.DIRECTION_DOWN),a=this._toNumber((this.state.value||0)+i*e);return this.props.snap&&(a=Math.round(a/i)*i),this._isStrict=r,a!==this.state.value&&(this.setState({value:a,stringValue:a+""},n),!0)}},{key:"_onKeyDown",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].persist(),this._invokeEventCallback.apply(this,["onKeyDown"].concat(t));var r=t[0];if(!r.isDefaultPrevented())if(38===r.keyCode)r.preventDefault(),this._step(r.ctrlKey||r.metaKey?.1:r.shiftKey?10:1);else if(40===r.keyCode)r.preventDefault(),this._step(r.ctrlKey||r.metaKey?-.1:r.shiftKey?-10:-1);else{var i=this.refsInput.value,a=i.length;8===r.keyCode?this.refsInput.selectionStart==this.refsInput.selectionEnd&&this.refsInput.selectionEnd>0&&i.length&&"."===i.charAt(this.refsInput.selectionEnd-1)&&(r.preventDefault(),this.refsInput.selectionStart=this.refsInput.selectionEnd=this.refsInput.selectionEnd-1):46===r.keyCode&&this.refsInput.selectionStart==this.refsInput.selectionEnd&&this.refsInput.selectionEnd<a+1&&i.length&&"."===i.charAt(this.refsInput.selectionEnd)&&(r.preventDefault(),this.refsInput.selectionStart=this.refsInput.selectionEnd=this.refsInput.selectionEnd+1)}}},{key:"stop",value:function(){this._timer&&clearTimeout(this._timer)}},{key:"increase",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments[1];this.stop(),this._step(1,r);var i=+h(this.props,"max",t.defaultProps.max,this);(isNaN(this.state.value)||+this.state.value<i)&&(this._timer=setTimeout((function(){e.increase(!0)}),n?t.SPEED:t.DELAY))}},{key:"decrease",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments[1];this.stop(),this._step(-1,r);var i=+h(this.props,"min",t.defaultProps.min,this);(isNaN(this.state.value)||+this.state.value>i)&&(this._timer=setTimeout((function(){e.decrease(!0)}),n?t.SPEED:t.DELAY))}},{key:"onMouseDown",value:function(e,t){"down"==e?this.decrease(!1,t):"up"==e&&this.increase(!1,t)}},{key:"onTouchStart",value:function(e,t){t.preventDefault(),"down"==e?this.decrease():"up"==e&&this.increase()}},{key:"onTouchEnd",value:function(e){e.preventDefault(),this.stop()}},{key:"_invokeEventCallback",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this.props[e]).call.apply(t,[null].concat(r))}}},{key:"render",value:function(){var e=this,n=this.props,i=this.state,a={},s=this.props,l=(s.step,s.min,s.max,s.precision,s.parse,s.format,s.mobile),h=(s.snap,s.componentClass),f=(s.value,s.type,s.style),p=(s.defaultValue,s.onInvalid,s.onValid,s.strict,s.noStyle),g=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(s,["step","min","max","precision","parse","format","mobile","snap","componentClass","value","type","style","defaultValue","onInvalid","onValid","strict","noStyle"]);for(var m in p=p||!1===f,t.style)a[m]=r({},t.style[m],f&&f[m]||{});var y=n.className&&/\bform-control\b/.test(n.className);"auto"==l&&(l=c&&"ontouchstart"in document),"function"==typeof l&&(l=l.call(this)),l=!!l;var b={wrap:{style:p?null:a.wrap,className:"react-numeric-input",ref:function(t){null!=t&&void 0!=t&&(e.refsWrapper=t)}
2,onMouseUp:void 0,onMouseLeave:void 0},input:r({ref:function(t){null!=t&&void 0!=t&&(e.refsInput=t)},type:"text",style:p?null:r({},a.input,y?{}:a["input:not(.form-control)"],this._inputFocus?a["input:focus"]:{})},g),btnUp:{onMouseEnter:void 0,onMouseDown:void 0,onMouseUp:void 0,onMouseLeave:void 0,onTouchStart:void 0,onTouchEnd:void 0,style:p?null:r({},a.btn,a.btnUp,n.disabled||n.readOnly?a["btn:disabled"]:i.btnUpActive?a["btn:active"]:i.btnUpHover?a["btn:hover"]:{})},btnDown:{onMouseEnter:void 0,onMouseDown:void 0,onMouseUp:void 0,onMouseLeave:void 0,onTouchStart:void 0,onTouchEnd:void 0,style:p?null:r({},a.btn,a.btnDown,n.disabled||n.readOnly?a["btn:disabled"]:i.btnDownActive?a["btn:active"]:i.btnDownHover?a["btn:hover"]:{})}},v=String(i.stringValue||(i.value||0===i.value?i.value:"")||""),x=!this._isStrict&&(this._inputFocus||!this._isMounted);x&&d.test(v)||x&&v&&!u.test(v)?b.input.value=v:i.value||0===i.value?b.input.value=this._format(i.value):b.input.value="",y&&!p&&r(b.wrap.style,a["wrap.hasFormControl"]),l&&!p&&(r(b.input.style,a["input.mobile"]),r(b.btnUp.style,a["btnUp.mobile"]),r(b.btnDown.style,a["btnDown.mobile"])),n.disabled||n.readOnly?!p&&n.disabled&&r(b.input.style,a["input:disabled"]):(r(b.wrap,{onMouseUp:this.stop,onMouseLeave:this.stop}),r(b.btnUp,{onTouchStart:this.onTouchStart.bind(this,"up"),onTouchEnd:this.onTouchEnd,onMouseEnter:function(){e.setState({btnUpHover:!0})},onMouseLeave:function(){e.stop(),e.setState({btnUpHover:!1,btnUpActive:!1})},onMouseUp:function(){e.setState({btnUpHover:!0,btnUpActive:!1})},onMouseDown:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n[0].preventDefault(),n[0].persist(),e._inputFocus=!0,e.setState({btnUpHover:!0,btnUpActive:!0},(function(){e._invokeEventCallback.apply(e,["onFocus"].concat(n)),e.onMouseDown("up")}))}}),r(b.btnDown,{onTouchStart:this.onTouchStart.bind(this,"down"),onTouchEnd:this.onTouchEnd,onMouseEnter:function(){e.setState({btnDownHover:!0})},onMouseLeave:function(){e.stop(),e.setState({btnDownHover:!1,btnDownActive:!1})},onMouseUp:function(){e.setState({btnDownHover:!0,btnDownActive:!1})},onMouseDown:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n[0].preventDefault(),n[0].persist(),e._inputFocus=!0,e.setState({btnDownHover:!0,btnDownActive:!0},(function(){e._invokeEventCallback.apply(e,["onFocus"].concat(n)),e.onMouseDown("down")}))}}),r(b.input,{onChange:function(t){var n=t.target.value,r=e._parse(n);isNaN(r)&&(r=null),e.setState({value:e._isStrict?e._toNumber(r):r,stringValue:n})},onKeyDown:this._onKeyDown.bind(this),onInput:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.saveSelection(),e._invokeEventCallback.apply(e,["onInput"].concat(n))},onSelect:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.saveSelection(),e._invokeEventCallback.apply(e,["onSelect"].concat(n))},onFocus:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n[0].persist(),e._inputFocus=!0;var i=e._parse(n[0].target.value);e.setState({value:i,stringValue:i||0===i?i+"":""},(function(){e._invokeEventCallback.apply(e,["onFocus"].concat(n))}))},onBlur:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=e._isStrict;e._isStrict=!0,n[0].persist(),e._inputFocus=!1;var a=e._parse(n[0].target.value);e.setState({value:a},(function(){e._invokeEventCallback.apply(e,["onBlur"].concat(n)),e._isStrict=i}))}}));var w=h||"input";return l?o.default.createElement("span",b.wrap,o.default.createElement(w,b.input),o.default.createElement("b",b.btnUp,o.default.createElement("i",{style:p?null:a.minus}),o.default.createElement("i",{style:p?null:a.plus})),o.default.createElement("b",b.btnDown,o.default.createElement("i",{style:p?null:a.minus}))):o.default.createElement("span",b.wrap,o.default.createElement(w,b.input),o.default.createElement("b",b.btnUp,o.default.createElement("i",{style:p?null:a.arrowUp})),o.default.createElement("b",b.btnDown,o.default.createElement("i",{style:p?null:a.arrowDown})))}}]),t}(a.Component);f.propTypes={step:s.default.oneOfType([s.default.number,s.default.func]),min:s.default.oneOfType([s.default.number,s.default.func]),max:s.default.oneOfType([s.default.number,s.default.func]),precision:s.default.oneOfType([s.default.number,s.default.func]),maxLength:s.default.number,parse:s.default.func,format:s.default.func,className:s.default.string,disabled:s.default.bool,readOnly:s.default.bool,required:s.default.bool,snap:s.default.bool,noValidate:s.default.oneOfType([s.default.bool,s.default.string]),style:s.default.oneOfType([s.default.object,s.default.bool]),noStyle:s.default.bool,type:s.default.string,pattern:s.default.string,onFocus:s.default.func,onBlur:s.default.func,onKeyDown:s.default.func,onChange:s.default.func,onInvalid:s.default.func,onValid:s.default.func,onInput:s.default.func,onSelect:s.default.func,size:s.default.oneOfType([s.default.number,s.default.string]),value:s.default.oneOfType([s.default.number,s.default.string]),defaultValue:s.default.oneOfType([s.default.number,s.default.string]),strict:s.default.bool,componentClass:s.default.string,mobile:function(e,t){var n=e[t];if(!0!==n&&!1!==n&&"auto"!==n&&"function"!=typeof n)return new Error('The "mobile" prop must be true, false, "auto" or a function')}},f.defaultProps={step:1,min:Number.MIN_SAFE_INTEGER||-9007199254740991,max:Number.MAX_SAFE_INTEGER||9007199254740991,precision:null,parse:null,format:null,mobile:"auto",strict:!1,componentClass:"input",style:{}},f.style={wrap:{position:"relative",display:"inline-block"},"wrap.hasFormControl":{display:"block"},arrowUp:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0 0.6ex 0.6ex 0.6ex",borderColor:"transparent transparent rgba(0, 0, 0, 0.7)",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},arrowDown:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0.6ex 0.6ex 0 0.6ex",borderColor:"rgba(0, 0, 0, 0.7) transparent transparent",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},plus:{position:"absolute",top:"50%",left:"50%",width:2,height:10,background:"rgba(0,0,0,.7)",margin:"-5px 0 0 -1px"},minus:{position:"absolute",top:"50%",left:"50%",width:10,height:2,background:"rgba(0,0,0,.7)",margin:"-1px 0 0 -5px"},btn:{position:"absolute",right:2,width:"2.26ex",borderColor:"rgba(0,0,0,.1)",borderStyle:"solid",textAlign:"center",cursor:"default",transition:"all 0.1s",background:"rgba(0,0,0,.1)",boxShadow:"-1px -1px 3px rgba(0,0,0,.1) inset,1px 1px 3px rgba(255,255,255,.7) inset"},btnUp:{top:2,bottom:"50%",borderRadius:"2px 2px 0 0",borderWidth:"1px 1px 0 1px"},"btnUp.mobile":{width:"3.3ex",bottom:2,boxShadow:"none",borderRadius:2,borderWidth:1},btnDown:{top:"50%",bottom:2,borderRadius:"0 0 2px 2px",borderWidth:"0 1px 1px 1px"},"btnDown.mobile":{width:"3.3ex",bottom:2,left:2,top:2,right:"auto",boxShadow:"none",borderRadius:2,borderWidth:1},"btn:hover":{background:"rgba(0,0,0,.2)"},"btn:active":{background:"rgba(0,0,0,.3)",boxShadow:"0 1px 3px rgba(0,0,0,.2) inset,-1px -1px 4px rgba(255,255,255,.5) inset"},"btn:disabled":{opacity:.5,boxShadow:"none",cursor:"not-allowed"},input:{paddingRight:"3ex",boxSizing:"border-box",fontSize:"inherit"},"input:not(.form-control)":{border:"1px solid #ccc",borderRadius:2,paddingLeft:4,display:"block",WebkitAppearance:"none",lineHeight:"normal"},"input.mobile":{paddingLeft:" 3.4ex",paddingRight:"3.4ex",textAlign:"center"},"input:focus":{},"input:disabled":{color:"rgba(0, 0, 0, 0.3)",textShadow:"0 1px 0 rgba(255, 255, 255, 0.8)"}},f.SPEED=50,f.DELAY=500,f.DIRECTION_UP="up",f.DIRECTION_DOWN="down",e.exports=f},function(e,t){e.exports=n(74804)},function(e,t){e.exports=n(11942)}])},22318:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;const r=n(9073),i=n(55114),a=n(69687),o=n(11454),s=n(24839),l=n(28070);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(t){}return!1},t.decryptCrowdsaleJson=function(e,t){const n=JSON.parse(e),c=(0,l.getPassword)(t),u=(0,i.getAddress)((0,l.spelunk)(n,"ethaddr:string!")),d=(0,l.looseArrayify)((0,l.spelunk)(n,"encseed:string!"));(0,s.assertArgument)(d&&d.length%16===0,"invalid encseed","json",e);const h=(0,s.getBytes)((0,a.pbkdf2)(c,c,2e3,32,"sha256")).slice(0,16),f=d.slice(0,16),p=d.slice(16),g=new r.CBC(h,f),m=(0,r.pkcs7Strip)((0,s.getBytes)(g.decrypt(p)));let y="";for(let r=0;r<m.length;r++)y+=String.fromCharCode(m[r]);return{address:u,privateKey:(0,o.id)(y)}}},22320:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},22434:(e,t,n)=>{var r=n(20220)(n(14759),"DataView");e.exports=r},22626:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(89676),i=n(82651),a=n(10003);const o="/docs/contract/encodeDeployData";function s(e){const{abi:t,args:n,bytecode:s}=e;if(!n||0===n.length)return s;const l=t.find((e=>"type"in e&&"constructor"===e.type));if(!l)throw new r.YW({docsPath:o});if(!("inputs"in l))throw new r.YF({docsPath:o});if(!l.inputs||0===l.inputs.length)throw new r.YF({docsPath:o});const c=(0,a.h)(l.inputs,n);return(0,i.aP)([s,c])}},22804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const r=n(82071),i=n(24839);let a=!1;const o=function(e,t,n){return(0,r.createHmac)(e,t).update(n).digest()};let s=o;function l(e,t,n){const r=(0,i.getBytes)(t,"key"),a=(0,i.getBytes)(n,"data");return(0,i.hexlify)(s(e,r,a))}t.computeHmac=l,l._=o,l.lock=function(){a=!0},l.register=function(e){if(a)throw new Error("computeHmac is locked");s=e},Object.freeze(l)},22966:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r="#__bigint";function i(e,t,n){return JSON.stringify(e,((e,n)=>"function"===typeof t?t(e,n):"bigint"===typeof n?n.toString()+r:n),n)}},23047:(e,t,n)=>{"use strict";var r;function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function u(e){var t=p();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,n)}}function d(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?g(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function k(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}var A=function(){function e(){o(this,e)}return l(e,[{key:"shadeRGBColor",value:function(e,t){var n=t.split(","),r=e<0?0:255,i=e<0?-1*e:e,a=parseInt(n[0].slice(4),10),o=parseInt(n[1],10),s=parseInt(n[2],10);return"rgb("+(Math.round((r-a)*i)+a)+","+(Math.round((r-o)*i)+o)+","+(Math.round((r-s)*i)+s)+")"}},{key:"shadeHexColor",value:function(e,t){var n=parseInt(t.slice(1),16),r=e<0?0:255,i=e<0?-1*e:e,a=n>>16,o=n>>8&255,s=255&n;return"#"+(16777216+65536*(Math.round((r-a)*i)+a)+256*(Math.round((r-o)*i)+o)+(Math.round((r-s)*i)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return e.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===w(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,n=[];for(t=0;t<e.length;t++)n[t]=e[t];return n}},{key:"extend",value:function(e,t){var n=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t});var r=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(i){n.isObject(t[i])&&i in e?r[i]=n.extend(e[i],t[i]):Object.assign(r,d({},i,t[i]))})),r}},{key:"extendArray",value:function(t,n){var r=[];return t.map((function(t){r.push(e.extend(n,t))})),r}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(t){if(e.is("Array",t)){for(var n=[],r=0;r<t.length;r++)n[r]=this.clone(t[r]);return n}if(e.is("Null",t))return null;if(e.is("Date",t))return t;if("object"===w(t)){var i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=this.clone(t[a]));return i}return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}}
2,{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var n="",r=e<0?"-":"",i=t[0].replace(".",""),a=Number(t[1])+1;if(a<0){for(n=r+"0.";a++;)n+="0";return n+i.replace(/^-/,"")}for(a-=i.length;a--;)n+="0";return i+n}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),n]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var r=0;r<n.length;r++)n[r]=parseInt(1===n[r].length?n[r]+n[r]:n[r],16);return void 0!==t&&n.push(t),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var n=[],r=2*Math.PI/t,i=0;i<t;i++){var a={};a.x=e*Math.sin(i*r),a.y=-e*Math.cos(i*r),n.push(a)}return n}},{key:"polarToCartesian",value:function(e,t,n,r){var i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=e.toString().slice();return n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,n){if(n>=e.length)for(var r=n-e.length+1;r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style.key=t[n])}},{key:"preciseAddition",value:function(e,t){var n=(String(e).split(".")[1]||"").length,r=(String(t).split(".")[1]||"").length,i=Math.pow(10,Math.max(n,r));return(Math.round(e*i)+Math.round(t*i))/i}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isMsEdge",value:function(){var e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"getGCD",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*r),t=Math.round(Math.abs(t)*r);t;){var i=t;t=e%t,e=i}return e/r}},{key:"getPrimeFactors",value:function(e){for(var t=[],n=2;e>=2;)e%n==0?(t.push(n),e/=n):n++;return t}},{key:"mod",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*r))%(t=Math.round(Math.abs(t)*r))/r}}]),e}(),E=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return l(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,n,r){e.attr(t).animate(r).attr(n)}},{key:"animateMarker",value:function(e,t,n,r){e.attr({opacity:0}
vendor: 9,650 bytes, line 2
2).animate(t,n).attr({opacity:1}).afterAll((function(){r()}))}},{key:"animateRect",value:function(e,t,n,r,i){e.attr(t).animate(r).attr(n).afterAll((function(){return i()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,r=e.j,i=e.fill,a=e.pathFrom,o=e.pathTo,s=e.speed,l=e.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(t,n,r,"line"!==c.config.chart.type||c.globals.comboCharts?i:"stroke",a,o,s,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,n,r,i,a,o,s){var l=this,c=this.w;i||(i=e.attr("pathFrom")),a||(a=e.attr("pathTo"));var u=function(e){return"radar"===c.config.chart.type&&(o=1),"M 0 ".concat(c.globals.gridHeight)};(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i=u()),(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=u()),c.globals.shouldAnimate||(o=1),e.plot(i).animate(1,c.globals.easing,s).plot(i).animate(o,c.globals.easing,s).plot(a).afterAll((function(){A.isNumber(n)?n===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==r&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),S=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==n.config.states.normal.filter?this.applyFilter(e,t,n.config.states.normal.filter.type,n.config.states.normal.filter.value):n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var n=this.w;n.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,n){var r=this,i=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,n){var r=this,i=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(n){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:r});break;case"darken":this.addDarkenFilter(e,t,{intensity:r})}}},{key:"addShadow",value:function(e,t,n){var r,i=this.w,a=n.blur,o=n.top,s=n.left,l=n.color,c=n.opacity;if((null===(r=i.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.length)>0&&-1===i.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;var u=e.flood(Array.isArray(l)?l[t]:l,c).composite(e.sourceAlpha,"in").offset(s,o).gaussianBlur(a).merge(e.source);return e.blend(e.source,u)}},{key:"dropShadow",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=t.top,o=t.left,s=t.blur,l=t.color,c=t.opacity,u=t.noUserSpaceOnUse,d=this.w;return e.unfilter(!0),A.isMsEdge()&&"radialBar"===d.config.chart.type||(null===(n=d.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.length)>0&&-1===(null===(r=d.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.indexOf(i))||(l=Array.isArray(l)?l[i]:l,e.filter((function(e){var t;t=A.isSafari()||A.isFirefox()||A.isMsEdge()?e.flood(l,c).composite(e.sourceAlpha,"in").offset(o,a).gaussianBlur(s):e.flood(l,c).composite(e.sourceAlpha,"in").offset(o,a).gaussianBlur(s).merge(e.source),e.blend(e.source,t)})),u||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,n){var r=this.w;if(void 0!==r.globals.selectedDataPoints[t]&&r.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var i=r.config.states.active.filter;"none"!==i&&this.applyFilter(e,t,i.type,i.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),P=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"roundPathCorners",value:function(e,t){function n(e,t,n){var i=t.x-e.x,a=t.y-e.y,o=Math.sqrt(i*i+a*a);return r(e,t,Math.min(1,n/o))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function a(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var o=e.split(/[,\s]/).reduce((function(e,t){var n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e}),[]).reduce((function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e}),[]),s=[];if(o.length>1){var l=a(o[0]),c=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(c=["L",l.x,l.y],o[o.length-1]=c),s.push(o[0]);for(var u=1;u<o.length;u++){var d=s[s.length-1],h=o[u],f=h==c?o[1]:o[u+1];if(f&&d&&d.length>2&&"L"==h[0]&&f.length>2&&"L"==f[0]){var p,g,m=a(d),y=a(h),b=a(f);p=n(y,m,t),g=n(y,b,t),i(h,p),h.origPoint=y,s.push(h);var v=r(p,y,.5),x=r(y,g,.5),w=["C",v.x,v.y,x.x,x.y,g.x,g.y];w.origPoint=y,s.push(w)}else s.push(h)}if(c){var k=a(s[s.length-1]);s.push(["Z"]),i(s[0],k)}}else s=o;return s.reduce((function(e,t){return e+t.join(" ")+" "}),"")}},{key:"drawLine",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:r,stroke:i,"stroke-dasharray":a,"stroke-width":o,"stroke-linecap":s})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w.globals.dom.Paper.rect();return u.attr({x:e,y:t,width:n>0?n:0,height:r>0?r:0,rx:i,ry:i,opacity:o,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),u.node.setAttribute("fill",a),u}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":n})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var n=this.w.globals.dom.Paper.circle(2*e);return null!==t&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,n=void 0===t?"":t,r=e.stroke,i=void 0===r?"#a8a8a8":r,a=e.strokeWidth,o=void 0===a?1:a,s=e.fill,l=e.fillOpacity,c=void 0===l?1:l,u=e.strokeOpacity,d=void 0===u?1:u,h=e.classes,f=e.strokeLinecap,p=void 0===f?null:f,g=e.strokeDashArray,m=void 0===g?0:g,y=this.w;return null===p&&(p=y.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(y.globals.gridHeight)),y.globals.dom.Paper.path(n).attr({fill:s,"fill-opacity":c,stroke:i,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":o,"stroke-dasharray":m,class:h})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;return null===n?r=[" L",e,t].join(" "):"H"===n?r=[" H",e].join(" "):"V"===n&&(r=[" V",t].join(" ")),r}},{key:"curve",value:function(e,t,n,r,i,a){return["C",e,t,n,r,i,a].join(" ")}},{key:"quadraticCurve",value:function(e,t,n,r){return["Q",e,t,n,r].join(" ")}},{key:"arc",value:function(e,t,n,r,i,a,o){var s="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(s="a"),[s,e,t,n,r,i,a,o].join(" ")}},{key:"renderPaths",value:function(e){var t,n=e.j,r=e.realIndex,i=e.pathFrom,a=e.pathTo,o=e.stroke,s=e.strokeWidth,l=e.strokeLinecap,c=e.f
2ill,u=e.animationDelay,d=e.initialSpeed,h=e.dataChangeSpeed,f=e.className,p=e.chartType,g=e.shouldClipToGrid,y=void 0===g||g,b=e.bindEventsOnPaths,v=void 0===b||b,x=e.drawShadow,w=void 0===x||x,k=this.w,A=new S(this.ctx),P=new E(this.ctx),C=this.w.config.chart.animations.enabled,O=C&&this.w.config.chart.animations.dynamicAnimation.enabled,T=!!(C&&!k.globals.resized||O&&k.globals.dataChanged&&k.globals.shouldAnimate);T?t=i:(t=a,k.globals.animationEnded=!0);var N,_=k.config.stroke.dashArray;N=Array.isArray(_)?_[r]:k.config.stroke.dashArray;var I=this.drawPath({d:t,stroke:o,strokeWidth:s,fill:c,fillOpacity:1,classes:f,strokeLinecap:l,strokeDashArray:N});if(I.attr("index",r),y&&("bar"===p&&!k.globals.isHorizontal||k.globals.comboCharts?I.attr({"clip-path":"url(#gridRectBarMask".concat(k.globals.cuid,")")}):I.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")})),"none"!==k.config.states.normal.filter.type)A.getDefaultFilter(I,r);else if(k.config.chart.dropShadow.enabled&&w){var R=k.config.chart.dropShadow;A.dropShadow(I,R,r)}v&&(I.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,I)),I.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,I)),I.node.addEventListener("mousedown",this.pathMouseDown.bind(this,I))),I.attr({pathTo:a,pathFrom:i});var M={el:I,j:n,realIndex:r,pathFrom:i,pathTo:a,fill:c,strokeWidth:s,delay:u};return!C||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||P.showDelayedElements():P.animatePathsGradually(m(m({},M),{},{speed:d})),k.globals.dataChanged&&O&&T&&P.animatePathsGradually(m(m({},M),{},{speed:h})),I}},{key:"drawPattern",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,n,(function(a){"horizontalLines"===e?a.line(0,0,n,0).stroke({color:r,width:i+1}):"verticalLines"===e?a.line(0,0,0,t).stroke({color:r,width:i+1}):"slantedLines"===e?a.line(0,0,t,n).stroke({color:r,width:i}):"squares"===e?a.rect(t,n).fill("none").stroke({color:r,width:i}):"circles"===e&&a.circle(t).fill("none").stroke({color:r,width:i})}))}},{key:"drawGradient",value:function(e,t,n,r,i){var a,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=A.hexToRgba(t,r)),n.length<9&&0===n.indexOf("#")&&(n=A.hexToRgba(n,i));var d=0,h=1,f=1,p=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,h=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,p=void 0!==s[3]?s[3]/100:null);var g=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(a=null===l||0===l.length?u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){e.at(d,t,r),e.at(h,n,i),e.at(f,n,i),null!==p&&e.at(p,t,r)})):u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),g){var m=u.globals.gridWidth/2,y=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?a.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:y,r:o}):a.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?a.from(0,0).to(0,1):"diagonal"===e?a.from(0,0).to(1,1):"horizontal"===e?a.from(0,1).to(1,1):"diagonal2"===e&&a.from(1,0).to(0,1);return a}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,r=e.fontSize,i=e.fontFamily,a=this.getTextRects(t,r,i),o=a.width/t.length,s=Math.floor(n/o);return n<a.width?t.slice(0,s-3)+"...":t}},{key:"drawText",value:function(e){var t=this,n=e.x,r=e.y,i=e.text,a=e.textAnchor,o=e.fontSize,s=e.fontFamily,l=e.fontWeight,c=e.foreColor,u=e.opacity,d=e.maxWidth,h=e.cssClass,f=void 0===h?"":h,p=e.isPlainText,g=void 0===p||p,y=e.dominantBaseline,b=void 0===y?"auto":y,v=this.w;void 0===i&&(i="");var x=i;a||(a="start"),c&&c.length||(c=v.config.chart.foreColor),s=s||v.config.chart.fontFamily,l=l||"regular";var w,k={maxWidth:d,fontSize:o=o||"11px",fontFamily:s};return Array.isArray(i)?w=v.globals.dom.Paper.text((function(e){for(var n=0;n<i.length;n++)x=i[n],d&&(x=t.getTextBasedOnMaxWidth(m({text:i[n]},k))),0===n?e.tspan(x):e.tspan(x).newLine()})):(d&&(x=this.getTextBasedOnMaxWidth(m({text:i},k))),w=g?v.globals.dom.Paper.plain(i):v.globals.dom.Paper.text((function(e){return e.tspan(x)}))),w.attr({x:n,y:r,"text-anchor":a,"dominant-baseline":b,"font-size":o,"font-family":s,"font-weight":l,fill:c,class:"apexcharts-text "+f}),w.node.style.fontFamily=s,w.node.style.opacity=u,w}},{key:"getMarkerPath",value:function(e,t,n,r){var i="";switch(n){case"cross":i="M ".concat(e-(r/=1.4)," ").concat(t-r," L ").concat(e+r," ").concat(t+r," M ").concat(e-r," ").concat(t+r," L ").concat(e+r," ").concat(t-r);break;case"plus":i="M ".concat(e-(r/=1.12)," ").concat(t," L ").concat(e+r," ").concat(t," M ").concat(e," ").concat(t-r," L ").concat(e," ").concat(t+r);break;case"star":case"sparkle":var a=5;r*=1.15,"sparkle"===n&&(r/=1.1,a=4);for(var o=Math.PI/a,s=0;s<=2*a;s++){var l=s*o,c=s%2==0?r:r/2;i+=(0===s?"M":"L")+(e+c*Math.sin(l))+","+(t-c*Math.cos(l))}i+="Z";break;case"triangle":i="M ".concat(e," ").concat(t-r," \n L ").concat(e+r," ").concat(t+r," \n L ").concat(e-r," ").concat(t+r," \n Z");break;case"square":case"rect":i="M ".concat(e-(r/=1.125)," ").concat(t-r," \n L ").concat(e+r," ").concat(t-r," \n L ").concat(e+r," ").concat(t+r," \n L ").concat(e-r," ").concat(t+r," \n Z");break;case"diamond":r*=1.05,i="M ".concat(e," ").concat(t-r," \n L ").concat(e+r," ").concat(t," \n L ").concat(e," ").concat(t+r," \n L ").concat(e-r," ").concat(t," \n Z");break;case"line":i="M ".concat(e-(r/=1.1)," ").concat(t," \n L ").concat(e+r," ").concat(t);break;default:r*=2,i="M ".concat(e,", ").concat(t," \n m -").concat(r/2,", 0 \n a ").concat(r/2,",").concat(r/2," 0 1,0 ").concat(r,",0 \n a ").concat(r/2,",").concat(r/2," 0 1,0 -").concat(r,",0")}return i}},{key:"drawMarkerShape",value:function(e,t,n,r,i){var a=this.drawPath({d:this.getMarkerPath(e,t,n,r,i),stroke:i.pointStrokeColor,strokeDashArray:i.pointStrokeDashArray,strokeWidth:i.pointStrokeWidth,fill:i.pointFillColor,fillOpacity:i.pointFillOpacity,strokeOpacity:i.pointStrokeOpacity});return a.attr({cx:e,cy:t,shape:i.shape,class:i.class?i.class:""}),a}},{key:"drawMarker",value:function(e,t,n){e=e||0;var r=n.pSize||0;return A.isNumber(t)||(r=0,t=0),this.drawMarkerShape(e,t,null==n?void 0:n.shape,r,m(m({},n),"line"===n.shape||"plus"===n.shape||"cross"===n.shape?{pointStrokeColor:n.pointFillColor,pointStrokeOpacity:n.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var n=this.w,r=new S(this.ctx),i=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);if("function"==typeof n.config.chart.events.dataPointMouseEnter&&n.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:n}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:n}]),("none"===n.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==n.config.states.hover.f
vendor: 4,257 bytes, line 2
2ilter.type&&!n.globals.isTouchDevice){var o=n.config.states.hover.filter;r.applyFilter(e,i,o.type,o.value)}}},{key:"pathMouseLeave",value:function(e,t){var n=this.w,r=new S(this.ctx),i=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);"function"==typeof n.config.chart.events.dataPointMouseLeave&&n.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:n}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:n}]),"none"!==n.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==n.config.states.hover.filter.type&&r.getDefaultFilter(e,i)}},{key:"pathMouseDown",value:function(e,t){var n=this.w,r=new S(this.ctx),i=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10),o="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),n.globals.selectedDataPoints[i].indexOf(a)>-1){var s=n.globals.selectedDataPoints[i].indexOf(a);n.globals.selectedDataPoints[i].splice(s,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var l=n.globals.dom.Paper.select(".apexcharts-series path").members,c=n.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),r.getDefaultFilter(e,i)}))};u(l),u(c)}e.node.setAttribute("selected","true"),o="true",void 0===n.globals.selectedDataPoints[i]&&(n.globals.selectedDataPoints[i]=[]),n.globals.selectedDataPoints[i].push(a)}if("true"===o){var d=n.config.states.active.filter;if("none"!==d)r.applyFilter(e,i,d.type,d.value);else if("none"!==n.config.states.hover.filter&&!n.globals.isTouchDevice){var h=n.config.states.hover.filter;r.applyFilter(e,i,h.type,h.value)}}else"none"!==n.config.states.active.filter.type&&("none"===n.config.states.hover.filter.type||n.globals.isTouchDevice?r.getDefaultFilter(e,i):(h=n.config.states.hover.filter,r.applyFilter(e,i,h.type,h.value)));"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:n}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});r&&o.attr("transform",r),a.globals.dom.Paper.add(o);var s=o.bbox();return i||(s=o.node.getBoundingClientRect()),o.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(e,t,n){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(var r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=n/1.1)return void(e.textContent=t.substring(0,r)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),e}(),C=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,n=[];if(0===t.globals.series.length)return n;for(var r=0;r<t.globals.series[t.globals.maxValsInArrayIndex].length;r++){for(var i=0,a=0;a<t.globals.series.length;a++)void 0!==t.globals.series[a][r]&&-1===e.indexOf(a)&&(i+=t.globals.series[a][r]);n.push(i)}return n}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,n=[];return t.globals.seriesGroups.forEach((function(r){var i=[];
vendor: 4,675 bytes, line 2
2t.config.series.forEach((function(e,n){r.indexOf(t.globals.seriesNames[n])>-1&&i.push(n)}));var a=t.globals.series.map((function(e,t){return-1===i.indexOf(t)?t:-1})).filter((function(e){return-1!==e}));n.push(e.getStackedSeriesTotals(a))})),n}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,n=[],r=[],i=[],a=e.series.length>t.yaxis.length||t.yaxis.some((function(e){return Array.isArray(e.seriesName)}));t.series.forEach((function(e,t){i.push(t),r.push(null)})),t.yaxis.forEach((function(e,t){n[t]=[]}));var o=[];t.yaxis.forEach((function(e,r){var s=!1;if(e.seriesName){var l=[];Array.isArray(e.seriesName)?l=e.seriesName:l.push(e.seriesName),l.forEach((function(e){t.series.forEach((function(t,o){if(t.name===e){var l=o;r===o||a?!a||i.indexOf(o)>-1?n[r].push([r,o]):console.warn("Series '"+t.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(n[o].push([o,r]),l=r),s=!0,-1!==(l=i.indexOf(l))&&i.splice(l,1)}}))}))}s||o.push(r)})),n=n.map((function(e,t){var n=[];return e.forEach((function(e){r[e[1]]=e[0],n.push(e[1])})),n}));for(var s=t.yaxis.length-1,l=0;l<o.length&&(s=o[l],n[s]=[],i);l++){var c=i[0];i.shift(),n[s].push(c),r[c]=s}i.forEach((function(e){n[s].push(e),r[e]=s})),e.seriesYAxisMap=n.map((function(e){return e})),e.seriesYAxisReverseMap=r.map((function(e){return e})),e.seriesYAxisMap.forEach((function(e,n){e.forEach((function(e){t.series[e]&&void 0===t.series[e].group&&(t.series[e].group="apexcharts-axis-".concat(n.toString()))}))}))}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,n){return e===n[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map((function(e,n){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach((function(e){t=Math.max(t,e.size)})),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var n=0;if(Array.isArray(e))for(var r=0;r<e.length;r++)n+=e[r];else n+=e;return n}))}},{key:"getSeriesTotalsXRange",value:function(e,t){var n=this.w;return n.globals.series.map((function(r,i){for(var a=0,o=0;o<r.length;o++)n.globals.seriesX[i][o]>e&&n.globals.seriesX[i][o]<t&&(a+=r[o]);return a}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,n){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i++){var a=e.globals.stackedSeriesTotals[i],o=0;a&&(o=100*t[i]/a),r.push(o)}else{var s=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);r.push(s)}return r}))}},{key:"getCalculatedRatios",value:function(){var e,t,n,r=this,i=this.w,a=i.globals,o=[],s=0,l=[],c=.1,u=0;if(a.yRange=[],a.isMultipleYAxis)for(var d=0;d<a.minYArr.length;d++)a.yRange.push(Math.abs(a.minYArr[d]-a.maxYArr[d])),l.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var h=0;h<a.yRange.length;h++)o.push(a.yRange[h]/a.gridHeight);if(t=a.xRange/a.gridWidth,e=a.yRange/a.gridWidth,n=a.xRange/a.gridHeight,(s=a.zRange/a.gridHeight*16)||(s=1),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),i.globals.seriesYAxisReverseMap.length>0){var f=function(e,t){var n=i.config.yaxis[i.globals.seriesYAxisReverseMap[t]],a=e<0?-1:1;return e=Math.abs(e),n.logarithmic&&(e=r.getBaseLog(n.logBase,e)),-a*e/o[t]};if(a.isMultipleYAxis){l=[];for(var p=0;p<o.length;p++)l.push(f(a.minYArr[p],p))}else(l=[]).push(f(a.minY,0)),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(c=-a.minY/e,u=a.minX/t)}else(l=[]).push(0),c=0,u=0;return{yRatio:o,invertedYRatio:e,zRatio:s,xRatio:t,invertedXRatio:n,baseLineInvertedY:c,baseLineY:l,base
2LineX:u}}},{key:"getLogSeries",value:function(e){var t=this,n=this.w;return n.globals.seriesLog=e.map((function(e,r){var i=n.globals.seriesYAxisReverseMap[r];return n.config.yaxis[i]&&n.config.yaxis[i].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(n.config.yaxis[i].logBase,e,r)})):e})),n.globals.invalidLogScale?e:n.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,n){if(t<=0)return 0;var r=this.w,i=0===r.globals.minYArr[n]?-1:this.getBaseLog(e,r.globals.minYArr[n]),a=(0===r.globals.maxYArr[n]?0:this.getBaseLog(e,r.globals.maxYArr[n]))-i;return t<1?t/a:(this.getBaseLog(e,t)-i)/a}},{key:"getLogYRatios",value:function(e){var t=this,n=this.w,r=this.w.globals;return r.yLogRatio=e.slice(),r.logYRange=r.yRange.map((function(e,i){var a=n.globals.seriesYAxisReverseMap[i];if(n.config.yaxis[a]&&t.w.config.yaxis[a].logarithmic){var o,s=-Number.MAX_VALUE,l=Number.MIN_VALUE;return r.seriesLog.forEach((function(e,t){e.forEach((function(e){n.config.yaxis[t]&&n.config.yaxis[t].logarithmic&&(s=Math.max(e,s),l=Math.min(e,l))}))})),o=Math.pow(r.yRange[i],Math.abs(l-s)/r.yRange[i]),r.yLogRatio[i]=o/r.gridHeight,o}})),r.invalidLogScale?e.slice():r.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,n,r){var i=this.w,a=[];return e.series.length>0&&t.forEach((function(t){var o=[],s=[];e.i.forEach((function(n,r){i.config.series[n].group===t&&(o.push(e.series[r]),s.push(n))})),o.length>0&&a.push(r.draw(o,n,s))})),a}}],[{key:"checkComboSeries",value:function(e,t){var n=!1,r=0,i=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||r++,void 0!==e.type&&e.type!==t&&i++})),i>0&&(n=!0),{comboBarCount:r,comboCharts:n}}},{key:"extendArrayProps",value:function(e,t,n){var r,i,a,o,s,l;return null!==(r=t)&&void 0!==r&&r.yaxis&&(t=e.extendYAxis(t,n)),null!==(i=t)&&void 0!==i&&i.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),null!==(a=t)&&void 0!==a&&null!==(o=a.annotations)&&void 0!==o&&o.xaxis&&(t=e.extendXAxisAnnotations(t)),null!==(s=t)&&void 0!==s&&null!==(l=s.annotations)&&void 0!==l&&l.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),O=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t}return l(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.w;if("vertical"===e.label.orientation){var r=null!==t?t:0,i=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(r,"']"));if(null!==i){var a=i.getBoundingClientRect();i.setAttribute("x",parseFloat(i.getAttribute("x"))-a.height+4);var o="top"===e.label.position?a.width:-a.width;i.setAttribute("y",parseFloat(i.getAttribute("y"))+o);var s=this.annoCtx.graphics.rotateAroundCenter(i),l=s.x,c=s.y;i.setAttribute("transform","rotate(-90 ".concat(l," ").concat(c,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;var r=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),i=e.getBoundingClientRect(),a=t.label.style.padding,o=a.left,s=a.right,l=a.top,c=a.bottom;if("vertical"===t.label.orientation){var u=[o,s,l,c];l=u[0],c=u[1],o=u[2],s=u[3]}var d=i.left-r.left-o,h=i.top-r.top-l,f=this.annoCtx.graphics.drawRect(d-n.globals.barPadForNumericAxis,h,i.width+o+s,i.height+l+c,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&f.node.classList.add(t.id),f}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(n,r,i){var a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(r,"']"));if(a){var o=a.parentNode,s=e.addBackgroundToAnno(a,n);s&&(o.insertBefore(s.node,a),n.label.mouseEnter&&s.node.addEventListener("mouseenter",n.label.mouseEnter.bind(e,n)),n.label.mouseLeave&&s.node.addEventListener("mouseleave",n.label.mouseLeave.bind(e,n)),n.label.click&&s.node.addEventListener("click",n.label.click.bind(e,n)))}};t.config.annotations.xaxis.forEach((function(e,t){return n(e,t,"xaxis")})),t.config.annotations.yaxis.forEach((function(e,t){return n(e,t,"yaxis")}
2)),t.config.annotations.points.forEach((function(e,t){return n(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var n,r=this.w,i="y1"===e?t.y:t.y2,a=!1;if(this.annoCtx.invertAxis){var o=r.config.xaxis.convertedCatToNumeric?r.globals.categoryLabels:r.globals.labels,s=o.indexOf(i),l=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(s+1,")"));n=l?parseFloat(l.getAttribute("y")):(r.globals.gridHeight/o.length-1)*(s+1)-r.globals.barHeight,void 0!==t.seriesIndex&&r.globals.barHeight&&(n-=r.globals.barHeight/2*(r.globals.series.length-1)-r.globals.barHeight*t.seriesIndex)}else{var c,u=r.globals.seriesYAxisMap[t.yAxisIndex][0],d=r.config.yaxis[t.yAxisIndex].logarithmic?new C(this.annoCtx.ctx).getLogVal(r.config.yaxis[t.yAxisIndex].logBase,i,u)/r.globals.yLogRatio[u]:(i-r.globals.minYArr[u])/(r.globals.yRange[u]/r.globals.gridHeight);n=r.globals.gridHeight-Math.min(Math.max(d,0),r.globals.gridHeight),a=d>r.globals.gridHeight||d<0,!t.marker||void 0!==t.y&&null!==t.y||(n=0),null!==(c=r.config.yaxis[t.yAxisIndex])&&void 0!==c&&c.reversed&&(n=d)}return"string"==typeof i&&i.includes("px")&&(n=parseFloat(i)),{yP:n,clipped:a}}},{key:"getX1X2",value:function(e,t){var n=this.w,r="x1"===e?t.x:t.x2,i=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,a=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,o=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,s=!1,l=this.annoCtx.inversedReversedAxis?(a-r)/(o/n.globals.gridWidth):(r-i)/(o/n.globals.gridWidth);return"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||n.config.chart.sparkline.enabled||(l=this.getStringX(r)),"string"==typeof r&&r.includes("px")&&(l=parseFloat(r)),null==r&&t.marker&&(l=n.globals.gridWidth),void 0!==t.seriesIndex&&n.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=n.globals.barWidth/2*(n.globals.series.length-1)-n.globals.barWidth*t.seriesIndex),l>n.globals.gridWidth?(l=n.globals.gridWidth,s=!0):l<0&&(l=0,s=!0),{x:l,clipped:s}}},{key:"getStringX",value:function(e){var t=this.w,n=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var r=t.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(e),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(r+1,")"));return i&&(n=parseFloat(i.getAttribute("x"))),n}}]),e}(),T=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new O(this.annoCtx)}return l(e,[{key:"addXaxisAnnotation",value:function(e,t,n){var r,i=this.w,a=this.helpers.getX1X2("x1",e),o=a.x,s=a.clipped,l=!0,c=e.label.text,u=e.strokeDashArray;if(A.isNumber(o)){if(null===e.x2||void 0===e.x2){if(!s){var d=this.annoCtx.graphics.drawLine(o+e.offsetX,0+e.offsetY,o+e.offsetX,i.globals.gridHeight+e.offsetY,e.borderColor,u,e.borderWidth);t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}}else{var h=this.helpers.getX1X2("x2",e);if(r=h.x,l=h.clipped,!s||!l){if(r<o){var f=o;o=r,r=f}var p=this.annoCtx.graphics.drawRect(o+e.offsetX,0+e.offsetY,r-o,i.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,u);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(!s||!l){var g=this.annoCtx.graphics.getTextRects(c,parseFloat(e.label.style.fontSize)),m="top"===e.label.position?4:"center"===e.label.position?i.globals.gridHeight/2+("vertical"===e.label.orientation?g.width/2:0):i.globals.gridHeight,y=this.annoCtx.graphics.drawText({x:o+e.label.offsetX,y:m+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?g.width/2-12:-g.width/2:0),text:c,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});y.attr({rel:n}),t.appendChild(y.node),this.annoCtx.helpers.setOrientations(e,n)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,r){e.addXaxisAnnotation(t,n.node,r)})),n}}]),e}(),N=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return l(e,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var n=this.w.globals.locale,r=this.w.config.xaxis.labels.datetimeUTC,i=["\0"].concat(v(n.months)),a=["\x01"].concat(v(n.shortMonths)),o=["\x02"].concat(v(n.days)),s=["\x03"].concat(v(n.shortDays));function l(e,t){var n=e+"";for(t=t||2;n.length<t;)n="0"+n;return n}var c=r?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(r?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+i[0])).replace(/(^|[^\\])MMM/g,"$1"+a[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var d=r?e.getUTCDate():e.getDate();
vendor: 7,326 bytes, line 2
2t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var h=r?e.getUTCHours():e.getHours(),f=h>12?h-12:0===h?12:h;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(h))).replace(/(^|[^\\])H/g,"$1"+h)).replace(/(^|[^\\])hh+/g,"$1"+l(f))).replace(/(^|[^\\])h/g,"$1"+f);var p=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var g=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var m=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var y=h<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var b=y.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var x=-e.getTimezoneOffset(),w=r||!x?"Z":x>0?"+":"-";if(!r){var k=(x=Math.abs(x))%60;w+=l(Math.floor(x/60))+":"+l(k)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var A=(r?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(s[0],"g"),s[A])).replace(new RegExp(i[0],"g"),i[u])).replace(new RegExp(a[0],"g"),a[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var r=this.w;void 0!==r.config.xaxis.min&&(e=r.config.xaxis.min),void 0!==r.config.xaxis.max&&(t=r.config.xaxis.max);var i=this.getDate(e),a=this.getDate(t),o=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,n){return this.determineDaysOfMonths(e,t)-n}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,n){var r=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=A.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),e}(),_=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return l(e,[{key:"xLabelFormat",value:function(e,t,n,r){var i=this.w;if("datetime"===i.config.xaxis.type&&void 0===i.config.xaxis.labels.formatter&&void 0===i.config.tooltip.x.formatter){var a=new N(this.ctx);return a.formatDate(a.getDate(t),i.config.tooltip.x.format)}return e(t,n,r)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,n){var r=this.w;if(A.isNumber(e))if(0!==r.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:r.globals.yValueDecimal);else{var i=e.toFixed(0);e=e==i?i:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(A.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(A.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var n=t.globals.maxX-t.globals.minX;return n>0&&n<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(n,r){void 0!==n.labels.formatter?t.globals.yLabelFormatters[r]=n.labels.formatter:t.globals.yLabelFormatters[r]=function(i){return t.globals.xyCharts?Array.isArray(i)?i.map((function(t){return e.defaultYFormatter(t,n,r)})):e.defaultYFormatter(i,n,r):i}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),I=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getLabel",value:function(e,t,n,r){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,u=void 0===e[r]?"":e[r],d=u,h=c.globals.xLabelFormatter,f=c.config.xaxis.labels.formatter,p=!1,g=new _(this.ctx),m=u;l&&(d=g.xLabelFormat(h,u,m,{i:r,dateFormatter:new N(this.ctx).formatDate,w:c}),void 0!==f&&(d=f(u,e[r],{i:r,dateFormatter:new N(this.ctx).formatDate,w:c}))),t.length>0?(i=t[r].unit,a=null,t.forEach((function(e){"month"===e.unit?a="year":"day"===e.unit?a="month":"hour"===e.unit?a="day":"minute"===e.unit&&(a="hour")})),p=a===i,n=t[r].position,d=t[r].value):"datetime"===c.config.xaxis.type&&void 0===f&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var y,b=new P(this.ctx);y=c.globals.rotateXLabels&&l?b.getTextRects(d,parseInt(s,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(d,parseInt(s,10));var v=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||o.indexOf(d)>=0&&v)&&(d=""),{x:n,text:d,textRect:y,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var r=this.w,i=r.config.xaxis.tickAmount;return"dataPoints"===i&&(i=Math.round(r.globals.gridWidth/120)),i>n||e%Math.round(n/(i+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,r,i){var a=this.w;if(0===e&&a.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&a.globals.skipLastTimelinelabel&&(t.text=""),a.config.xaxis.labels.hideOverlappingLabels&&r.length>0){var o=i[i.length-1];t.x<o.textRect.width/(a.globals.rotateXLabels?Math.abs(a.config.xaxis.labels.rotate)/12:1.01)+o.x&&(t.text="")}return t}}
2,{key:"checkForReversedLabels",value:function(e,t){var n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some((function(e){return-1===t.collapsedSeriesIndices.indexOf(e)}))}},{key:"translateYAxisIndex",value:function(e){var t=this.w,n=t.globals,r=t.config.yaxis;return n.series.length>r.length||r.some((function(e){return Array.isArray(e.seriesName)}))?e:n.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,n=t.config.yaxis[e];if(!n.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!n.showForNullSeries){var r=t.globals.seriesYAxisMap[e],i=new C(this.ctx);return r.every((function(e){return i.isSeriesNull(e)}))}return!1}},{key:"getYAxisForeColor",value:function(e,t){var n=this.w;return Array.isArray(e)&&n.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,n.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,n,r,i,a,o){var s=this.w,l=new P(this.ctx),c=s.globals.translateY+s.config.yaxis[i].labels.offsetY;if(s.globals.isBarHorizontal?c=0:"heatmap"===s.config.chart.type&&(c+=a/2),r.show&&t>0){!0===s.config.yaxis[i].opposite&&(e+=r.width);for(var u=t;u>=0;u--){var d=l.drawLine(e+n.offsetX-r.width+r.offsetX,c+r.offsetY,e+n.offsetX+r.offsetX,c+r.offsetY,r.color);o.add(d),c+=a}}}}]),e}(),R=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new O(this.annoCtx),this.axesUtils=new I(this.annoCtx)}return l(e,[{key:"addYaxisAnnotation",value:function(e,t,n){var r,i=this.w,a=e.strokeDashArray,o=this.helpers.getY1Y2("y1",e),s=o.yP,l=o.clipped,c=!0,u=!1,d=e.label.text;if(null===e.y2||void 0===e.y2){if(!l){u=!0;var h=this.annoCtx.graphics.drawLine(0+e.offsetX,s+e.offsetY,this._getYAxisAnnotationWidth(e),s+e.offsetY,e.borderColor,a,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}}else{if(r=(o=this.helpers.getY1Y2("y2",e)).yP,c=o.clipped,r>s){var f=s;s=r,r=f}if(!l||!c){u=!0;var p=this.annoCtx.graphics.drawRect(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),s-r,0,e.fillColor,e.opacity,1,e.borderColor,a);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(u){var g="right"===e.label.position?i.globals.gridWidth:"center"===e.label.position?i.globals.gridWidth/2:0,m=this.annoCtx.graphics.drawText({x:g+e.label.offsetX,y:(null!=r?r:s)+e.label.offsetY-3,text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});m.attr({rel:n}),t.appendChild(m.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach((function(t,r){t.yAxisIndex=e.axesUtils.translateYAxisIndex(t.yAxisIndex),e.axesUtils.isYAxisHidden(t.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(t.yAxisIndex)||e.addYaxisAnnotation(t,n.node,r)})),n}}]),e}(),M=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new O(this.annoCtx)}return l(e,[{key:"addPointAnnotation",value:function(e,t,n){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var r=this.helpers.getX1X2("x1",e),i=r.x,a=r.clipped,o=(r=this.helpers.getY1Y2("y1",e)).yP,s=r.clipped;if(A.isNumber(i)&&!s&&!a){var l={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},c=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,o+e.marker.offsetY,l);t.appendChild(c.node);var u=e.label.text?e.label.text:"",d=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:o+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:u,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(d.attr({rel:n}),t.appendChild(d.node),e.customSVG.SVG){var h=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});h.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(o+e.customSVG.offsetY,")")}),h.node.innerHTML=e.customSVG.SVG,t.appendChild(h.node)}if(e.image.path){var f=e.image.width?e.image.width:20,p=e.image.height?e.image.height:20;c=this.annoCtx.addImage({x:i+e.image.offsetX-f/2,y:o+e.image.offsetY-p/2,width:f,height:p,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&c.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&c.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&c.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,r){e.addPointAnnotation(t,n.node,r)})),n}}]),e}(),L={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
2ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},B=function(){function e(){o(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return l(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[L],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}}
vendor: 4,285 bytes, line 2
2,heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}}
vendor: 5,484 bytes, line 2
2,noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),F=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.graphics=new P(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new O(this),this.xAxisAnnotations=new T(this),this.yAxisAnnotations=new R(this),this.pointsAnnotations=new M(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return l(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),i=e.config.chart.animations.enabled,a=[t,n,r],o=[n.node,t.node,r.node],s=0;s<3;s++)e.globals.dom.elGraphical.add(a[s]),!i||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&o[s].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,n){e.addImage(t,n)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,n){e.addText(t,n)}))}},{key:"addXaxisAnnotation",value:function(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}},{key:"addYaxisAnnotation",value:function(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}},{key:"addPointAnnotation",value:function(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}},{key:"addText",value:function(e,t){var n=e.x,r=e.y,i=e.text,a=e.textAnchor,o=e.foreColor,s=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.cssClass,d=e.backgroundColor,h=e.borderWidth,f=e.strokeDashArray,p=e.borderRadius,g=e.borderColor,m=e.appendTo,y=void 0===m?".apexcharts-svg":m,b=e.paddingLeft,v=void 0===b?4:b,x=e.paddingRight,w=void 0===x?4:x,k=e.paddingBottom,A=void 0===k?2:k,E=e.paddingTop,S=void 0===E?2:E,P=this.w,C=this.graphics.drawText({x:n,y:r,text:i,textAnchor:a||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||P.config.chart.fontFamily,foreColor:o||P.config.chart.foreColor,cssClass:u}),O=P.globals.dom.baseEl.querySelector(y);O&&O.appendChild(C.node);var T=C.bbox();if(i){var N=this.graphics.drawRect(T.x-v,T.y-S,T.width+v+w,T.height+A+S,p,d||"transparent",1,h,g,f);O.insertBefore(N.node,C.node)}}},{key:"addImage",value:function(e,t){var n=this.w,r=e.path,i=e.x,a=void 0===i?0:i,o=e.
vendor: 4,315 bytes, line 2
2y,s=void 0===o?0:o,l=e.width,c=void 0===l?20:l,u=e.height,d=void 0===u?20:u,h=e.appendTo,f=void 0===h?".apexcharts-svg":h,p=n.globals.dom.Paper.image(r);p.size(c,d).move(a,s);var g=n.globals.dom.baseEl.querySelector(f);return g&&g.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,t,n){return void 0===this.invertAxis&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var t=e.params,n=e.pushToMemory,r=e.context,i=e.type,a=e.contextMethod,o=r,s=o.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations")),c=l.childNodes.length+1,u=new B,d=Object.assign({},"xaxis"===i?u.xAxisAnnotation:"yaxis"===i?u.yAxisAnnotation:u.pointAnnotation),h=A.extend(d,t);switch(i){case"xaxis":this.addXaxisAnnotation(h,l,c);break;case"yaxis":this.addYaxisAnnotation(h,l,c);break;case"point":this.addPointAnnotation(h,l,c)}var f=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(f,h);return p&&l.insertBefore(p.node,f),n&&s.globals.memory.methodsToExec.push({context:o,id:h.id?h.id:A.randomId(),method:a,label:"addAnnotation",params:t}),r}},{key:"clearAnnotations",value:function(e){for(var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),r=t.globals.memory.methodsToExec.length-1;r>=0;r--)"addText"!==t.globals.memory.methodsToExec[r].label&&"addAnnotation"!==t.globals.memory.methodsToExec[r].label||t.globals.memory.methodsToExec.splice(r,1);n=A.listToArray(n),Array.prototype.forEach.call(n,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var n=e.w,r=n.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(n.globals.memory.methodsToExec.map((function(e,r){e.id===t&&n.globals.memory.methodsToExec.splice(r,1)})),Array.prototype.forEach.call(r,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),D=function(e){var t,n=e.isTimeline,r=e.ctx,i=e.seriesIndex,a=e.dataPointIndex,o=e.y1,s=e.y2,l=e.w,c=l.globals.seriesRangeStart[i][a],u=l.globals.seriesRangeEnd[i][a],d=l.globals.labels[a],h=l.config.series[i].name?l.config.series[i].name:"",f=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,g={w:l,seriesIndex:i,dataPointIndex:a,start:c,end:u};"function"==typeof p&&(h=p(h,g)),null!==(t=l.config.series[i].data[a])&&void 0!==t&&t.x&&(d=l.config.series[i].data[a].x),n||"datetime"===l.config.xaxis.type&&(d=new _(r).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new N(r).formatDate,w:l})),"function"==typeof f&&(d=f(d,g)),Number.isFinite(o)&&Number.isFinite(s)&&(c=o,u=s);var m="",y="",b=l.globals.colors[i];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var v=new N(r);m=v.formatDate(v.getDate(c),l.config.tooltip.x.format),y=v.formatDate(v.getDate(u),l.config.tooltip.x.format)}else m=c,y=u;else m=l.config.tooltip.x.formatter(c),y=l.config.tooltip.x.formatter(u);return{start:c,end:u,startVal:m,endVal:y,ylabel:d,color:b,seriesName:h}},U=function(e){var t=e.color,n=e.seriesName,r=e.ylabel,i=e.start,a=e.end,o=e.seriesIndex,s=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(o);i=l.yLbFormatter(i),a=l.yLbFormatter(a);var c=l.yLbFormatter(e.w.globals.series[o][s]),u='<span class="value start-value">\n '.concat(i,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(a,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(n||"")+'</span></div><div> <span class="category">'+r+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[o].type||"rangeBar"===e.w.config.series[o].type?u:"<span>
2".concat(c,"</span>"):u)+" </div></div>"},z=function(){function e(t){o(this,e),this.opts=t}return l(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),A.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){var n=t.w.config.series[t.seriesIndex].name;return null!==e?n+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),m(m({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var n=t.seriesIndex,r=t.dataPointIndex,i=t.w,a=function(){var e=i.globals.seriesRangeStart[n][r];return i.globals.seriesRangeEnd[n][r]-e};return i.globals.comboCharts?"rangeBar"===i.config.series[n].type||"rangeArea"===i.config.series[n].type?a():e:a()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=D(m(m({},e),{},{isTimeline:!0})),n=t.color,r=t.seriesName,i=t.ylabel,a=t.startVal,o=t.endVal;return U(m(m({},e),{},{color:n,seriesName:r,ylabel:i,start:a,end:o}))}(e):function(e){var t=D(e),n=t.color,r=t.seriesName,i=t.ylabel,a=t.start,o=t.end;return U(m(m({},e),{},{color:n,seriesName:r,ylabel:i,start:a,end:o}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,n;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(n=e.plotOptions.bar)&&void 0!==n&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=D(e),n=t.color,r=t.seriesName,i=t.ylabel,a=t.start,o=t.end;return U(m(m({},e),{},{color:n,seriesName:r,ylabel:i,start:a,end:o}))}(e)}}}}},{key:"brush",value:function(e){return A.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return m(m({},e),{},{plotOptions:m(m({},e.plotOptions),{},{bar:m(m({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}}
vendor: 10,051 bytes, line 2
2,{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return A.isNumber(e)?Math.floor(e):e};var r=e.xaxis.labels.formatter,i=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(i=n.map((function(e){return Array.isArray(e)?e:String(e)}))),i&&i.length&&(e.xaxis.labels.formatter=function(e){return A.isNumber(e)?r(i[Math.floor(e)-1]):r(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,t,n,r,i){var a=e.globals.seriesCandleO[t][n],o=e.globals.seriesCandleH[t][n],s=e.globals.seriesCandleM[t][n],l=e.globals.seriesCandleL[t][n],c=e.globals.seriesCandleC[t][n];return e.config.series[t].type&&e.config.series[t].type!==i?'<div class="apexcharts-custom-tooltip">\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][n],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(r[0],': <span class="value">')+a+"</span></div>"+"<div>".concat(r[1],': <span class="value">')+o+"</span></div>"+(s?"<div>".concat(r[2],': <span class="value">')+s+"</span></div>":"")+"<div>".concat(r[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(r[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),W=function(){function e(t){o(this,e),this.opts=t}return l(e,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,r=new B,i=new z(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var a=r.init(),o={};if(n&&"object"===w(n)){var s,l,c,u,d,h,f,p,g,m,y={};y=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?i[n.chart.type]():i.line(),null!==(s=n.plotOptions)&&void 0!==s&&null!==(l=s.bar)&&void 0!==l&&l.isFunnel&&(y=i.funnel()),n.chart.stacked&&"bar"===n.chart.type&&(y=i.stackedBars()),null!==(c=n.chart.brush)&&void 0!==c&&c.enabled&&(y=i.brush(y)),null!==(u=n.plotOptions)&&void 0!==u&&null!==(d=u.line)&&void 0!==d&&d.isSlopeChart&&(y=i.slope()),n.chart.stacked&&"100%"===n.chart.stackType&&(n=i.stacked100(n)),null!==(h=n.plotOptions)&&void 0!==h&&null!==(f=h.bar)&&void 0!==f&&f.isDumbbell&&(n=i.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),(null!==(p=(n=this.checkForCatToNumericXAxis(this.chartType,y,n)).chart.sparkline)&&void 0!==p&&p.enabled||null!==(g=window.Apex.chart)&&void 0!==g&&null!==(m=g.sparkline)&&void 0!==m&&m.enabled)&&(y=i.sparkline(y)),o=A.extend(a,y)}var b=A.extend(o,window.Apex);return a=A.extend(b,n),this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var r,i,a=new z(n),o=("bar"===e||"boxPlot"===e)&&(null===(r=n.plotOptions)||void 0===r||null===(i=r.bar)||void 0===i?void 0:i.horizontal),s="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==n.xaxis.type&&"numeric"!==n.xaxis.type,c=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||s||!l||"between"===c||(n=a.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new B;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=A.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[A.extend(n.yAxis,e.yaxis)]:e.yaxis=A.extendArray(e.yaxis,n.yAxis);var r=!1;e.yaxis.forEach((function(e){e.logarithmic&&(r=!0)}));var i=e.series;return t&&!i&&(i=t.config.series),r&&i.length!==e.yaxis.length&&i.length&&(e.yaxis=i.map((function(t,r){if(t.name||(i[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=i[r].name,e.yaxis[r];var a=A.extend(n.yAxis,e.yaxis[0]);return a.show=!1,a}))),r&&i.length>1&&i.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new B;return e.annotations.yaxis=A.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new B;return e.annotations.xaxis=A.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new B;return e.annotations.points=A.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),H=function(){function e(){o(this,e)}return l(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvi
vendor: 8,128 bytes, line 2
2ded=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=A.extend({},e),t.initialSeries=A.clone(e.series),t.lastXAxis=A.clone(t.initialConfig.xaxis),t.lastYAxis=A.clone(t.initialConfig.yaxis),t}}]),e}(),V=function(){function e(t){o(this,e),this.opts=t}return l(e,[{key:"init",value:function(){var e=new W(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new H).init(e)}}}]),e}(),G=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return l(e,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,r=parseInt(t.globals.gridWidth,10),i=parseInt(t.globals.gridHeight,10),a=r>i?r:i,o=e.image,s=0,l=0;void 0===e.width&&void 0===e.height?void 0!==n.fill.image.width&&void 0!==n.fill.image.height?(s=n.fill.image.width+1,l=n.fill.image.height):(s=a+1,l=a):(s=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");P.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",o),P.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),u.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w,n=t.config.chart.type;return("bar"===n||"rangeBar"===n)&&t.config.plotOptions.bar.distributed||"heatmap"===n||"treemap"===n?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var n,r,i,a=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(o=t.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var s=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(a.fill.opacity)?a.fill.opacity[this.seriesIndex]:a.fill.opacity;e.color&&(o=e.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var c=o;if(-1===o.indexOf("rgb")?o.length<9&&(c=A.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=A.getOpacityFromRGBA(o)),e.opacity&&(l=e.opacity),"pattern"===s&&(r=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:r,fillColor:o,fillOpacity:l,defaultColor:c})),"gradient"===s&&(i=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===s){var u=a.fill.image.src,d=e.patternID?e.patternID:"",h="pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d);-1===this.patternIDs.indexOf(h)&&(this.clippedImgArea({opacity:l,image:Array.isArray(u)?e.seriesNumber<u.length?u[e.seriesNumber]:u[0]:u,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:h}),this.patternIDs.push(h)),n="url(#".concat(h,")")}else n="gradient"===s?i:"pattern"===s?r:c;return e.solid&&(n=c),n}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,n=this.opts,r=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors),void 0!==n.fillColors&&(r=[],Array.isArray(n.fillColors)?r=n.fillColors.slice():r.push(n.fillColors)),r}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,n=(e.patternFill,e.fillColor),r=e.fillOpacity,i=e.defaultColor,a=this.w.config.fill;t&&(a=t);var o=this.opts,s=new P(this.ctx),l=Array.isArray(a.pattern.strokeWidth)?a.pattern.strokeWidth[this.seriesIndex]:a.pattern.strokeWidth,c=n;return Array.isArray(a.pattern.style)?void 0!==a.pattern.style[o.seriesNumber]?s.drawPattern(a.pattern.style[o.seriesNumber],a.pattern.width,a.pattern.height,c,l,r):i:s.drawPattern(a.pattern.style,a.pattern.width,a.pattern.height,c,l,r)}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,n=e.fillOpacity,r=e.fillConfig,i=e.i,a=this.w.config.fill;r&&(a=m(m({},a),r));var o,s=this.opts,l=new P(this.ctx),c=new A,u=a.gradient.type,d=t,h=void 0===a.gradient.opacityFrom?n:Array.isArray(a.gradient.opacityFrom)?a.gradient.opacityFrom[i]:a.gradient.opacityFrom;d.indexOf("rgba")>-1&&(h=A.getOpacityFromRGBA(d));var f=void 0===a.gradient.opacityTo?n:Array.isArray(a.gradient.opacityTo)?a.gradient.opacityTo[i]:a.gradient.opacityTo;
vendor: 5,751 bytes, line 2
2if(void 0===a.gradient.gradientToColors||0===a.gradient.gradientToColors.length)o="dark"===a.gradient.shade?c.shadeColor(-1*parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?A.rgb2hex(t):t):c.shadeColor(parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?A.rgb2hex(t):t);else if(a.gradient.gradientToColors[s.seriesNumber]){var p=a.gradient.gradientToColors[s.seriesNumber];o=p,p.indexOf("rgba")>-1&&(f=A.getOpacityFromRGBA(p))}else o=t;if(a.gradient.gradientFrom&&(d=a.gradient.gradientFrom),a.gradient.gradientTo&&(o=a.gradient.gradientTo),a.gradient.inverseColors){var g=d;d=o,o=g}return d.indexOf("rgb")>-1&&(d=A.rgb2hex(d)),o.indexOf("rgb")>-1&&(o=A.rgb2hex(o)),l.drawGradient(u,d,o,h,f,s.size,a.gradient.stops,a.gradient.colorStops,i)}}]),e}(),Y=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e,t,n,r){var i,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.w,s=t,l=e,c=null,u=new P(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[t]>0||a||d)&&(c=u.group({class:a||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var h=0;h<l.x.length;h++){var f=n;1===n&&0===h&&(f=0),1===n&&1===h&&(f=1);var p="apexcharts-marker";if("line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(p+=" no-pointer-events"),(Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0)||a||d){A.isNumber(l.y[h])?p+=" w".concat(A.randomId()):p="apexcharts-nullpoint";var g=this.getMarkerConfig({cssClass:p,seriesIndex:t,dataPointIndex:f});o.config.series[s].data[f]&&(o.config.series[s].data[f].fillColor&&(g.pointFillColor=o.config.series[s].data[f].fillColor),o.config.series[s].data[f].strokeColor&&(g.pointStrokeColor=o.config.series[s].data[f].strokeColor)),void 0!==r&&(g.pSize=r),(l.x[h]<-o.globals.markers.largestSize||l.x[h]>o.globals.gridWidth+o.globals.markers.largestSize||l.y[h]<-o.globals.markers.largestSize||l.y[h]>o.globals.gridHeight+o.globals.markers.largestSize)&&(g.pSize=0),(i=u.drawMarker(l.x[h],l.y[h],g)).attr("rel",f),i.attr("j",f),i.attr("index",t),i.node.setAttribute("default-marker-size",g.pSize),new S(this.ctx).setSelectionFilter(i,t,f),this.addEvents(i),c&&c.add(i)}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([l.x[h],l.y[h]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,r=e.dataPointIndex,i=void 0===r?null:r,a=e.radius,o=void 0===a?null:a,s=e.size,l=void 0===s?null:s,c=e.strokeWidth,u=void 0===c?null:c,d=this.w,h=this.getMarkerStyle(n),f=null===l?d.globals.markers.size[n]:l,p=d.config.markers;return null!==i&&p.discrete.length&&p.discrete.map((function(e){e.seriesIndex===n&&e.dataPointIndex===i&&(h.pointStrokeColor=e.strokeColor,h.pointFillColor=e.fillColor,f=e.size,h.pointShape=e.shape)})),{pSize:null===o?f:o,pRadius:null!==o?o:p.radius,pointStrokeWidth:null!==u?u:Array.isArray(p.strokeWidth)?p.strokeWidth[n]:p.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(p.shape)?p.shape[n]:p.shape),class:t,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[n]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[n]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[n]:p.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var t=this.w,n=new P(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,n=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(n)?n[e]:n}}}]),e}(),q=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled}return l(e,[{key:"draw",value:function(e,t,n){var r=this.w,i=new P(this.ctx),a=n.realIndex,o=n.pointsPos,s=n.zRatio,l=n.elParent,c=i.group({class:"apexcharts-series-markers apexcharts-series-".concat(r.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(o.x))for(var u=0;u<o.x.length;u++){var d=t+1,h=!0;0===t&&0===u&&(d=0),0===t&&1===u&&(d=1);var f=r.globals.markers.size[a];if(s!==1/0){var p=r.config.plotOptions.bubble;f=r.globals.seriesZ[a][d],p.zScaling&&(f/=s),p.minBubbleRadius&&f<p.minBubbleRadius&&(f=p.minBubbleRadius),p.maxBubbleRadius&&f>p.maxBubbleRadius&&(f=p.maxBubbleRadius)}var g=o.x[u],m=o.y[u];if(f=f||0,null!==m&&void 0!==r.globals.series[a][d]||(h=!1),h){var y=this.drawPoint(g,m,f,a,d,t);c.add(y)}l.add(c)}}},{key:"drawPoint",value:function(e,t,n,r,i,a){var o=this.w,s=r,l=ne
2w E(this.ctx),c=new S(this.ctx),u=new G(this.ctx),d=new Y(this.ctx),h=new P(this.ctx),f=d.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:s,dataPointIndex:i,radius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[r]&&"bubble"===o.config.series[r].type?n:null}),p=u.fillPath({seriesNumber:r,dataPointIndex:i,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[r][a]}),g=h.drawMarker(e,t,f);if(o.config.series[s].data[i]&&o.config.series[s].data[i].fillColor&&(p=o.config.series[s].data[i].fillColor),g.attr({fill:p}),o.config.chart.dropShadow.enabled){var m=o.config.chart.dropShadow;c.dropShadow(g,m,r)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var y=o.config.chart.animations.speed;l.animateMarker(g,y,o.globals.easing,(function(){window.setTimeout((function(){l.animationCompleted(g)}),100)}))}return g.attr({rel:i,j:i,index:r,"default-marker-size":f.pSize}),c.setSelectionFilter(g,r,i),d.addEvents(g),g.node.classList.add("apexcharts-marker"),g}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),X=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"dataLabelsCorrection",value:function(e,t,n,r,i,a,o){var s=this.w,l=!1,c=new P(this.ctx).getTextRects(n,o),u=c.width,d=c.height;t<0&&(t=0),t>s.globals.gridHeight+d&&(t=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[r]&&(s.globals.dataLabelsRects[r]=[]),s.globals.dataLabelsRects[r].push({x:e,y:t,width:u,height:d});var h=s.globals.dataLabelsRects[r].length-2,f=void 0!==s.globals.lastDrawnDataLabelsIndexes[r]?s.globals.lastDrawnDataLabelsIndexes[r][s.globals.lastDrawnDataLabelsIndexes[r].length-1]:0;if(void 0!==s.globals.dataLabelsRects[r][h]){var p=s.globals.dataLabelsRects[r][f];(e>p.x+p.width||t>p.y+p.height||t+d<p.y||e+u<p.x)&&(l=!0)}return(0===i||a)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,n=e.type,r=e.pos,i=e.i,a=e.j,o=e.isRangeStart,s=e.strokeWidth,l=void 0===s?2:s,c=this.w,u=new P(this.ctx),d=c.config.dataLabels,h=0,f=0,p=a,g=null;if(-1!==c.globals.collapsedSeriesIndices.indexOf(i)||!d.enabled||!Array.isArray(r.x))return g;g=u.group({class:"apexcharts-data-labels"});for(var m=0;m<r.x.length;m++)if(h=r.x[m]+d.offsetX,f=r.y[m]+d.offsetY+l,!isNaN(h)){1===a&&0===m&&(p=0),1===a&&1===m&&(p=1);var y=c.globals.series[i][p];"rangeArea"===n&&(y=o?c.globals.seriesRangeStart[i][p]:c.globals.seriesRangeEnd[i][p]);var b="",v=function(e){return c.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:i,dataPointIndex:p,w:c})};"bubble"===c.config.chart.type?(b=v(y=c.globals.seriesZ[i][p]),f=r.y[m],f=new q(this.ctx).centerTextInBubble(f,i,p).y):void 0!==y&&(b=v(y));var x=c.config.dataLabels.textAnchor;c.globals.isSlopeChart&&(x=0===p?"end":p===c.config.series[i].data.length-1?"start":"middle"),this.plotDataLabelsText({x:h,y:f,text:b,i:i,j:p,parent:g,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels,textAnchor:x})}return g}},{key:"plotDataLabelsText",value:function(e){var t=this.w,n=new P(this.ctx),r=e.x,i=e.y,a=e.i,o=e.j,s=e.text,l=e.textAnchor,c=e.fontSize,u=e.parent,d=e.dataLabelsConfig,h=e.color,f=e.alwaysDrawDataLabel,p=e.offsetCorrection,g=e.className,m=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(a)<0)return m;var y={x:r,y:i,drawnextLabel:!0,textRects:null};p&&(y=this.dataLabelsCorrection(r,i,s,a,o,f,parseInt(d.style.fontSize,10))),t.globals.zoomed||(r=y.x,i=y.y),y.textRects&&(r<-20-y.textRects.width||r>t.globals.gridWidth+y.textRects.width+30)&&(s="");var b=t.globals.dataLabels.style.colors[a];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(b=t.globals.dataLabels.style.colors[o]),"function"==typeof b&&(b=b({series:t.globals.series,seriesIndex:a,dataPointIndex:o,w:t})),h&&(b=h);var v=d.offsetX,x=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(v=0,x=0),t.globals.isSlopeChart&&(0!==o&&(v=-2*d.offsetX+5),0!==o&&o!==t.config.series[a].data.length-1&&(v=0)),y.drawnextLabel){if((m=n.drawText({width:100,height:parseInt(d.style.fontSize,10),x:r+v,y:i+x,foreColor:b,textAnchor:l||d.textAnchor,text:s,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"})).attr({class:g||"apexcharts-datalabel",cx:r,cy:i}),d.dropShadow.enabled){var w=d.dropShadow;new S(this.ctx).dropShadow(m,w)}u.add(m),void 0===t.globals.lastDrawnDataLabelsIndexes[a]&&(t.globals.lastDrawnDataLabelsIndexes[a]=[]),t.globals.lastDrawnDataLabelsIndexes[a].push(o)}return m}}
2,{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,r=n.config.dataLabels.background,i=r.padding,a=r.padding/2,o=t.width,s=t.height,l=new P(this.ctx).drawRect(t.x-i,t.y-a/2,o+2*i,s+a,r.borderRadius,"transparent"!==n.config.chart.background&&n.config.chart.background?n.config.chart.background:"#fff",r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new S(this.ctx).dropShadow(l,r.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n<t.length;n++){var r=t[n],i=r.getBBox(),a=null;if(i.width&&i.height&&(a=this.addBackgroundToDataLabel(r,i)),a){r.parentNode.insertBefore(a.node,r);var o=r.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?a.attr({fill:o}):a.animate().attr({fill:o}),r.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),r=0;r<t.length;r++)n&&n.insertBefore(t[r],n.nextSibling)}}]),e}(),$=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return l(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(A.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),n=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:n}}},{key:"addCollapsedClassToSeries",value:function(e,t){var n=this.w;function r(n){for(var r=0;r<n.length;r++)n[r].index===t&&e.node.classList.add("apexcharts-series-collapsed")}r(n.globals.collapsedSeries),r(n.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w,i=A.clone(r.globals.initialSeries);r.globals.previousPaths=[],n?(r.globals.collapsedSeries=[],r.globals.ancillaryCollapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeriesIndices=[]):i=this.emptyCollapsedSeries(i),r.config.series=i,e&&(t&&(r.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n<e.length;n++)t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[]);return e}},{key:"highlightSeries",value:function(e){var t=this.w,n=this.getSeriesByName(e),r=parseInt(null==n?void 0:n.getAttribute("data:realIndex"),10),i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),a=null,o=null,s=null;if(t.globals.axisCharts||"radialBar"===t.config.chart.type)if(t.globals.axisCharts){a=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),o=t.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"));var l=t.globals.seriesYAxisReverseMap[r];s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else a=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']"));else a=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var c=0;c<i.length;c++)i[c].classList.add(this.legendInactiveClass);if(a)t.globals.axisCharts||a.parentNode.classList.remove(this.legendInactiveClass),a.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass),null!==s&&s.classList.remove(this.legendInactiveClass);else for(var u=0;u<i.length;u++)i[u].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var r=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");
2if("mousemove"===e.type){var i=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(n.globals.seriesNames[i])}else if("mouseout"===e.type)for(var a=0;a<r.length;a++)r[a].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var n=this,r=this.w,i=r.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),a=function(e){for(var t=0;t<i.length;t++)i[t].classList[e](n.legendInactiveClass)};if("mousemove"===e.type){var o=parseInt(t.getAttribute("rel"),10)-1;a("add");var s=r.config.plotOptions.heatmap.colorScale.ranges;!function(e,t){for(var r=0;r<i.length;r++){var a=Number(i[r].getAttribute("val"));a>=e.from&&(a<e.to||e.to===t&&a===t)&&i[r].classList.remove(n.legendInactiveClass)}}(s[o],s.reduce((function(e,t){return Math.max(e,t.to)}),0))}else"mouseout"===e.type&&a("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.w,r=0;if(n.config.series.length>1)for(var i=n.config.series.map((function(e,r){return e.data&&e.data.length>0&&-1===n.globals.collapsedSeriesIndices.indexOf(r)&&(!n.globals.comboCharts||0===t.length||t.length&&t.indexOf(n.config.series[r].type)>-1)?r:-1})),a="asc"===e?0:i.length-1;"asc"===e?a<i.length:a>=0;"asc"===e?a++:a--)if(-1!==i[a]){r=i[a];break}return r}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(e,t){return"bar"===e.type||"column"===e.type?t:-1})).filter((function(e){return-1!==e})):this.w.config.series.map((function(e,t){return t}))}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,n,r){for(var i=t[n].childNodes,a={type:r,paths:[],realIndex:t[n].getAttribute("data:realIndex")},o=0;o<i.length;o++)if(i[o].hasAttribute("pathTo")){var s=i[o].getAttribute("pathTo");a.paths.push({d:s})}e.globals.previousPaths.push(a)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach((function(n){for(var r,i=(r=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(r,"-series .apexcharts-series"))),a=0;a<i.length;a++)t(i,a,n)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(n.length>0)for(var r=function(t){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),r=[],i=function(e){var t=function(t){return n[e].getAttribute(t)},i={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};r.push({rect:i,color:n[e].getAttribute("color")})},a=0;a<n.length;a++)i(a);e.globals.previousPaths.push(r)},i=0;i<n.length;i++)r(i);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(n.length>0)for(var r=0;r<n.length;r++){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(r,"'] circle")),a=[],o=0;o<i.length;o++)a.push({x:i[o].getAttribute("cx"),y:i[o].getAttribute("cy"),r:i[o].getAttribute("r")});t.globals.previousPaths.push(a)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,n=new P(this.ctx),r=e.globals.svgWidth/2,i=e.globals.svgHeight/2,a="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(r=10,a="start"):"right"===t.align&&(r=e.globals.svgWidth-10,a="end"),"top"===t.verticalAlign?i=50:"bottom"===t.verticalAlign&&(i=e.globals.svgHeight-50),r+=t.offsetX,i=i+p
vendor: 4,442 bytes, line 2
2arseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var o=n.drawText({x:r,y:i,text:t.text,textAnchor:a,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(o)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,n=0;n<e.length;n++)if(0===e[n].length)for(var r=0;r<e[t.globals.maxValsInArrayIndex].length;r++)e[n].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,n=this.filteredSeriesX(),r=0;r<n.length-1;r++)if(n[r][0]!==n[r+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),K=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new C(this.ctx)}return l(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new $(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new $(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var n=this.w.config,r=this.w.globals,i="boxPlot"===n.chart.type||"boxPlot"===n.series[t].type,a=0;a<e[t].data.length;a++)if(void 0!==e[t].data[a][1]&&(Array.isArray(e[t].data[a][1])&&4===e[t].data[a][1].length&&!i?this.twoDSeries.push(A.parseNumber(e[t].data[a][1][3])):e[t].data[a].length>=5?this.twoDSeries.push(A.parseNumber(e[t].data[a][4])):this.twoDSeries.push(A.parseNumber(e[t].data[a][1])),r.dataFormatXNumeric=!0),"datetime"===n.xaxis.type){var o=new Date(e[t].data[a][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[a][0]);for(var s=0;s<e[t].data.length;s++)void 0!==e[t].data[s][2]&&(this.threeDSeries.push(e[t].data[s][2]),r.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var n=this.w.config,r=this.w.globals,i=new N(this.ctx),a=t;r.collapsedSeriesIndices.indexOf(t)>-1&&(a=this.activeSeriesIndex);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o].y&&(Array.isArray(e[t].data[o].y)?this.twoDSeries.push(A.parseNumber(e[t].data[o].y[e[t].data[o].y.length-1])):this.twoDSeries.push(A.parseNumber(e[t].data[o].y))),void 0!==e[t].data[o].goals&&Array.isArray(e[t].data[o].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[o].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var s=0;s<e[a].data.length;s++){var l="string"==typeof e[a].data[s].x,c=Array.isArray(e[a].data[s].x),u=!c&&!!i.isValidDate(e[a].data[s].x);if(l||u)if(l||n.xaxis.convertedCatToNumeric){var d=r.isBarHorizontal&&r.isRangeData;"datetime"!==n.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[a].data[s].x),isNaN(e[a].data[s].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[a].data[s].x||(r.isXNumeric=!0)):this.twoDSeriesX.push(i.parseDate(e[a].data[s].x))}else"datetime"===n.xaxis.type?this.twoDSeriesX.push(i.parseDate(e[a].data[s].x.toString())):(r.dataFormatXNumeric=!0,r.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[a].data[s].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[a].data[s].x)):(r.isXNumeric=!0,r.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[a].data[s].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var h=0;h<e[t].data.length;h++)this.threeDSeries.push(e[t].data[h].z);r.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",e,t)),n.seriesRangeStart.push(void 0===r.start?[]:r.start),n.seriesRangeEnd.push(void 0===r.end?[]:r.end
vendor: 4,720 bytes, line 2
2),n.seriesRange.push(r.rangeUniques),n.seriesRange.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,n){for(var r=0;r<e.y.length;r++)if(n!==r){var i=t.y1,a=t.y2,o=e.y[r].y1;i<=e.y[r].y2&&o<=a&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[r].rangeName)<0&&e.overlaps.push(e.y[r].rangeName))}}))}))})),r}},{key:"handleCandleStickBoxData",value:function(e,t){var n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleCandleStickBoxDataFormat("xy",e,t)),n.seriesCandleO[t]=r.o,n.seriesCandleH[t]=r.h,n.seriesCandleM[t]=r.m,n.seriesCandleL[t]=r.l,n.seriesCandleC[t]=r.c,r}},{key:"handleRangeDataFormat",value:function(e,t,n){var r=[],i=[],a=t[n].data.filter((function(e,t,n){return t===n.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}}));if("array"===e)for(var o=0;o<t[n].data.length;o++)Array.isArray(t[n].data[o])?(r.push(t[n].data[o][1][0]),i.push(t[n].data[o][1][1])):(r.push(t[n].data[o]),i.push(t[n].data[o]));else if("xy"===e)for(var s=function(e){var o=Array.isArray(t[n].data[e].y),s=A.randomId(),l=t[n].data[e].x,c={y1:o?t[n].data[e].y[0]:t[n].data[e].y,y2:o?t[n].data[e].y[1]:t[n].data[e].y,rangeName:s};t[n].data[e].rangeName=s;var u=a.findIndex((function(e){return e.x===l}));a[u].y.push(c),r.push(c.y1),i.push(c.y2)},l=0;l<t[n].data.length;l++)s(l);return{start:r,end:i,rangeUniques:a}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,n){var r=this.w,i="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[n].type,a=[],o=[],s=[],l=[],c=[];if("array"===e)if(i&&6===t[n].data[0].length||!i&&5===t[n].data[0].length)for(var u=0;u<t[n].data.length;u++)a.push(t[n].data[u][1]),o.push(t[n].data[u][2]),i?(s.push(t[n].data[u][3]),l.push(t[n].data[u][4]),c.push(t[n].data[u][5])):(l.push(t[n].data[u][3]),c.push(t[n].data[u][4]));else for(var d=0;d<t[n].data.length;d++)Array.isArray(t[n].data[d][1])&&(a.push(t[n].data[d][1][0]),o.push(t[n].data[d][1][1]),i?(s.push(t[n].data[d][1][2]),l.push(t[n].data[d][1][3]),c.push(t[n].data[d][1][4])):(l.push(t[n].data[d][1][2]),c.push(t[n].data[d][1][3])));else if("xy"===e)for(var h=0;h<t[n].data.length;h++)Array.isArray(t[n].data[h].y)&&(a.push(t[n].data[h].y[0]),o.push(t[n].data[h].y[1]),i?(s.push(t[n].data[h].y[2]),l.push(t[n].data[h].y[3]),c.push(t[n].data[h].y[4])):(l.push(t[n].data[h].y[2]),c.push(t[n].data[h].y[3])));return{o:a,h:o,m:s,l:l,c:c}}},{key:"parseDataAxisCharts",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,r=this.w.config,i=this.w.globals,a=new N(n),o=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();i.isRangeBar="rangeBar"===r.chart.type&&i.isBarHorizontal,i.hasXaxisGroups="category"===r.xaxis.type&&r.xaxis.group.groups.length>0,i.hasXaxisGroups&&(i.groups=r.xaxis.group.groups),e.forEach((function(e,t){void 0!==e.name?i.seriesNames.push(e.name):i.seriesNames.push("series-"+parseInt(t+1,10))})),this.coreUtils.setSeriesYAxisMappings();var s=[],l=v(new Set(r.series.map((function(e){return e.group}))));r.series.forEach((function(e,t){var n=l.indexOf(e.group);s[n]||(s[n]=[]),s[n].push(i.seriesNames[t])})),i.seriesGroups=s;for(var c=function(){for(var e=0;e<o.length;e++)if("string"==typeof o[e]){if(!a.isValidDate(o[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(a.parseDate(o[e]))}else t.twoDSeriesX.push(o[e])},u=0;u<e.length;u++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[u].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type&&"rangeBar"!==e[u].type&&"rangeArea"!==e[u].type||(i.isRangeData=!0,"rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type||this.handleRangeData(e,u)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,u):this.isFormatXY()&&this.handleFormatXY(e,u),"candlestick"!==r.chart.type&&"candlestick"!==e[u].type&&"boxPlot"!==r.chart.type&&"boxPlot"!==e[u].type||this.handleCandleStickBoxData(e,u),i.series.push(this.twoDSeries),i.labels.push(this.twoDSeriesX),i.seriesX.push(this.twoDSeriesX),i.seriesGoals=this.seriesGoals,u!==this.activeSeriesIndex||this.fallbackToCategory||(i.isXNumeric=!0);else{"datetime"===r.xaxis.type?(i.isXNumeric=!0,c(),i.seriesX.push(this.twoDSeriesX)):"numeric"===r.xaxis.type&&(i.isXNumeric=!0,o.length>0&&(this.twoDSeriesX=o,i.seriesX.push(this.twoDSeriesX))),i.labels.push(this.twoDSeriesX);var d=e[u].data.map((function(e){return A.parseNumber(e)}));i.series.push(d)}
2i.seriesZ.push(this.threeDSeries),void 0!==e[u].color?i.seriesColors.push(e[u].color):i.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,n=this.w.config;t.series=e.slice(),t.seriesNames=n.labels.slice();for(var r=0;r<t.series.length;r++)void 0===t.seriesNames[r]&&t.seriesNames.push("series-"+(r+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,n=this.w.globals;t.xaxis.categories.length>0?n.labels=t.xaxis.categories:t.labels.length>0?n.labels=t.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map((function(e){e.forEach((function(e){n.labels.indexOf(e.x)<0&&e.x&&n.labels.push(e.x)}))})),n.labels=Array.from(new Set(n.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new z(t).convertCatToNumericXaxis(t,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,n=this.w.config,r=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var i=n.series.map((function(e,t){return e.data.filter((function(e,t,n){return n.findIndex((function(t){return t.x===e.x}))===t}))})),a=i.reduce((function(e,t,n,r){return r[e].length>t.length?e:n}),0),o=0;o<i[a].length;o++)r.push(o+1);else for(var s=0;s<t.series[t.maxValsInArrayIndex].length;s++)r.push(s+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(r);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===r.length){r=t.axisCharts?[]:t.series.map((function(e,t){return t+1}));for(var c=0;c<e.length;c++)t.seriesX.push(r)}t.labels=r,n.xaxis.convertedCatToNumeric&&(t.categoryLabels=r.map((function(e){return n.xaxis.labels.formatter(e)}))),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,n=t.config,r=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),r.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),n.chart.stacked){var i=new $(this.ctx);r.series=i.setNullSeriesToZeroValues(r.series)}this.coreUtils.getSeriesTotals(),r.axisCharts&&(r.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),r.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),r.dataFormatXNumeric||r.isXNumeric&&("numeric"!==n.xaxis.type||0!==n.labels.length||0!==n.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var a=this.coreUtils.getCategoryLabels(r.labels),o=0;o<a.length;o++)if(Array.isArray(a[o])){r.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach((function(n,r){var i=0;n.forEach((function(t){-1!==e.globals.collapsedSeriesIndices.indexOf(t)&&i++})),i>0&&i==n.length&&t.push(r)})),e.globals.ignoreYAxisIndexes=t.map((function(e){return e}))}}]),e}(),Q=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),r=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",r*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+r)}},{key:"getSvgString",value:function(){var e=this;return new Promise((function(t){var n=e.w,r=n.config.chart.toolbar.export.width,i=n.config.chart.toolbar.export.scale||r/n.globals.svgWidth;i||(i=1);var a=e.w.globals.dom.Paper.svg(),o=e.w.globals.dom.Paper.node.cloneNode(!0);1!==i&&e.scaleSvgNode(o,i),e.convertImagesToBase64(o).then((function(){a=(new XMLSerializer).serializeToString(o),t(a.replace(/ /g," "))}))}))}},{key:"convertImagesToBase64",value:function(e){var t=this,n=e.getElementsByTagName("image"),r=Array.from(n).map((function(e){var n=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return n&&!n.startsWith("data:")?t.getBase64FromUrl(n).then((function(t){e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)})).catch((function(e){console.error("Error converting image to base64:",e)})):Promise.resolve()}));return Promise.all(r)}},{key:"getBase64FromUrl",value:function(e){return new Promise((function(t,n){var r=new Image;r.crossOrigin="Anonymous",r.onload=function(){var e=document.createElement("canvas");e.width=r.width,e.height=r.height,e.getContext("2d").drawImage(r,0,0),t(e.toDataURL())},r.onerror=n,r.src=e}))}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),n=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(r,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),n&&n[0]&&(n[0].setAttribute("y",-100),n[0].setAttribute("y1",-100),n[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){var e=this;return new Promise((function(t){e.cleanup(),e.getSvgString().then((function(e){var n=new Blob([e],{type:"image/svg+xml;charset=utf-8"});t(URL.createObjectURL(n))}))}))}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(n){var r=t.w,i=e?e.scale||e.width/r.globals.svgWidth:1;t.cleanup();var a=document.createElement("canvas");a.width=r.globals.svgWidth*i,a.height=parseInt(r.globals.dom.elWrap.style.height,10)*i;var o="transparent"!==r.config.chart.background&&r.config.chart.background?r.config.chart.background:"#fff",s=a.getContext("2d");s.fillStyle=o,s.fillRect(0,0,a.width*i,a.height*i),t.getSvgString().then((function(e){var t="data:image/svg+xml,"+encodeURIComponent(e),r=new Image;r.crossOrigin="anonymous",r.onload=function(){if(s.drawImage(r,0,0),a.msToBlob){var e=a.msToBlob();n({blob:e})}else{var t=a.toDataURL("image/png");n({imgURI:t})}},r.src=t}))}))}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then((function(t){e.triggerDownload(t,e.w.config.chart.toolbar.export.svg.f
2ilename,".svg")}))}},{key:"exportToPng",value:function(){var e=this,t=this.w.config.chart.toolbar.export.scale,n=this.w.config.chart.toolbar.export.width,r=t?{scale:t}:n?{width:n}:void 0;this.dataURI(r).then((function(t){var n=t.imgURI,r=t.blob;r?navigator.msSaveOrOpenBlob(r,e.w.globals.chartID+".png"):e.triggerDownload(n,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,n=e.series,r=e.fileName,i=e.columnDelimiter,a=void 0===i?",":i,o=e.lineDelimiter,s=void 0===o?"\n":o,l=this.w;n||(n=l.config.series);var c,u,d=[],h=[],f="",p=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),g=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.categoryFormatter?l.config.chart.toolbar.export.csv.categoryFormatter(e):"datetime"===l.config.xaxis.type&&String(e).length>=10?new Date(e).toDateString():A.isNumber(e)?e:e.split(a).join("")},m=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.valueFormatter?l.config.chart.toolbar.export.csv.valueFormatter(e):e},y=Math.max.apply(Math,v(n.map((function(e){return e.data?e.data.length:0})))),b=new K(this.ctx),x=new I(this.ctx),w=function(e){var n="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var r=l.globals.yLabelFormatters[0],i=new $(t.ctx).getActiveConfigSeriesIndex();n=r(l.globals.labels[e],{seriesIndex:i,dataPointIndex:e,w:l})}else n=x.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?n=l.config.xaxis.categories[e]:l.config.labels.length&&(n=l.config.labels[e]))}else n=l.config.labels[e];return null===n?"nullvalue":(Array.isArray(n)&&(n=n.join(" ")),A.isNumber(n)?n:n.split(a).join(""))};d.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(d.push("minimum"),d.push("q1"),d.push("median"),d.push("q3"),d.push("maximum")):"candlestick"===l.config.chart.type?(d.push("open"),d.push("high"),d.push("low"),d.push("close")):"rangeBar"===l.config.chart.type?(d.push("minimum"),d.push("maximum")):n.map((function(e,t){var n=(e.name?e.name:"series-".concat(t))+"";l.globals.axisCharts&&d.push(n.split(a).join("")?n.split(a).join(""):"series-".concat(t))})),l.globals.axisCharts||(d.push(l.config.chart.toolbar.export.csv.headerValue),h.push(d.join(a))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?n.map((function(e,t){l.globals.axisCharts?function(e,t){if(d.length&&0===t&&h.push(d.join(a)),e.data){e.data=e.data.length&&e.data||v(Array(y)).map((function(){return""}));for(var r=0;r<e.data.length;r++){d=[];var i=w(r);if("nullvalue"!==i){if(i||(b.isFormatXY()?i=n[t].data[r].x:b.isFormat2DArray()&&(i=n[t].data[r]?n[t].data[r][0]:"")),0===t){d.push(g(i));for(var o=0;o<l.globals.series.length;o++){var s,c=b.isFormatXY()?null===(s=n[o].data[r])||void 0===s?void 0:s.y:p[o][r];d.push(m(c))}}("candlestick"===l.config.chart.type||e.type&&"candlestick"===e.type)&&(d.pop(),d.push(l.globals.seriesCandleO[t][r]),d.push(l.globals.seriesCandleH[t][r]),d.push(l.globals.seriesCandleL[t][r]),d.push(l.globals.seriesCandleC[t][r])),("boxPlot"===l.config.chart.type||e.type&&"boxPlot"===e.type)&&(d.pop(),d.push(l.globals.seriesCandleO[t][r]),d.push(l.globals.seriesCandleH[t][r]),d.push(l.globals.seriesCandleM[t][r]),d.push(l.globals.seriesCandleL[t][r]),d.push(l.globals.seriesCandleC[t][r])),"rangeBar"===l.config.chart.type&&(d.pop(),d.push(l.globals.seriesRangeStart[t][r]),d.push(l.globals.seriesRangeEnd[t][r])),d.length&&h.push(d.join(a))}}}}(e,t):((d=[]).push(g(l.globals.labels[t])),d.push(m(p[t])),h.push(d.join(a)))})):(c=new Set,u={},n.forEach((function(e,t){null==e||e.data.forEach((function(e){var r,i;if(b.isFormatXY())r=e.x,i=e.y;else{if(!b.isFormat2DArray())return;r=e[0],i=e[1]}u[r]||(u[r]=Array(n.length).fill("")),u[r][t]=m(i),c.add(r)}))})),d.length&&h.push(d.join(a)),Array.from(c).sort().forEach((function(e){h.push([g(e),u[e].join(a)])}))),f+=h.join(s),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+f),r||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,n){var r=document.createElement("a");r.href=e,r.download=(t||this.w.globals.chartID)+n,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}]),e}(),J=function(){function e(t,n){o(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var r=this.w;this.axesUtils=new I(t),this.xaxisLabels=r.globals.labels.slice(),r.globals.timescaleLabels.length>0&&!r.globals.isBarHorizontal&&(this.xaxisLabels=r.globals.timescaleLabels.slice()),r.config.xaxis.overwriteCategories&&(this.xaxisLabels=r.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===r.config.xaxis.position?this.offY=0:this.offY=r.globals.gridHeight,this.offY=this.offY+r.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.xaxisBorderWidth=r.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=r.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=r.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=r.config.xaxis.axisBorder.height,this.yaxis=r.config.yaxis[0]}return l(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new P(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);for(var i=[],a=0;a<this.xaxisLabels.length;a++)i.push(this.xaxisLabels[a]);if(this.drawXAxisLabelAndGroup(!0,t,r,i,e.globals.isXNumeric,(function(e,t){return t})),e.globals.hasXaxisGroups){var o=e.globals.groups;i=[];for(var s=0;s<o.length;s++)i.push(o[s].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,r,i,!1,(function(e,t){return o[e].cols*t}),l)}if(void 0!==e.config.xaxis.title.text){var c=t.group({class:"apexcharts-xaxis-title"}),u=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(u),n.add(c)}if(e.config.xaxis.axisBorder.show){var d=e.globals.barPadForNumericAxis,h=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(h):n.add(h)}return n}},{key:"drawXAxisLabelAndGroup",value:function(e,t,n,r,i,a){var o,s=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],u=[],d=this.w,h=l.xaxisFontSize||this.xaxisFontSize,f=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,g=l.fontWeight||d.config.xaxis.labels.style.fontWeight,m=l.cssClass||d.config.xaxis.labels.style.cssClass,y=d.globals.padHorizontal,b=r.length,v="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(0===v&&b>v&&(v=b),i){var x=v>1?v-1:v;o=d.globals.gridWidth/Math.min(x,b-1),y=y+a(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/v,y=y+a(0,o)+d.config.xaxis.labels.offsetX;for(var w=function(i){var l=y-a(i,o)/2+d.config.xaxis.labels.offsetX;0===i&&1===b&&o/2===y&&1===v&&(l=d.globals.gridWidth/2);var x=s.axesUtils.getLabel(r,d.globals.timescaleLabels,l,i,c,h,e),w=28;if(d.globals.rotateXLabels&&e&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(w=w+parseFloat(h)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),x=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?s.axesUtils.checkLabelBasedOnTickamount(i,x,b):s.axesUtils.checkForOverflowingLabels(i,x,b,c,u),d.config.xaxis.labels.show){var k=t.drawText({x:x.x,y:s.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:x.text,textAnchor:"middle",fontWeight:x.isBold?600:g,fontSize:h,fontFamily:f,foreColor:Array.isArray(p)?e&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+i-1]:p[i]:p,isPlainText:!1,
vendor: 4,827 bytes, line 2
2cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(n.add(k),k.on("click",(function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:i});d.config.chart.events.xAxisLabelClick(e,s.ctx,t)}})),e){var A=document.createElementNS(d.globals.SVGNS,"title");A.textContent=Array.isArray(x.text)?x.text.join(" "):x.text,k.node.appendChild(A),""!==x.text&&(c.push(x.text),u.push(x))}}i<b-1&&(y+=a(i+1,o))},k=0;k<=b-1;k++)w(k)}},{key:"drawXaxisInversed",value:function(e){var t,n,r=this,i=this.w,a=new P(this.ctx),o=i.config.yaxis[0].opposite?i.globals.translateYAxisX[e]:0,s=a.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=a.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});s.add(l);var c=[];if(i.config.yaxis[e].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);t=i.globals.gridHeight/c.length,n=-t/2.2;var d=i.globals.yLabelFormatters[0],h=i.config.yaxis[0].labels;if(h.show)for(var f=function(o){var s=void 0===c[o]?"":c[o];s=d(s,{seriesIndex:e,dataPointIndex:o,w:i});var u=r.axesUtils.getYAxisForeColor(h.style.colors,e),f=0;Array.isArray(s)&&(f=s.length/2*parseInt(h.style.fontSize,10));var p=h.offsetX-15,g="end";r.yaxis.opposite&&(g="start"),"left"===i.config.yaxis[0].labels.align?(p=h.offsetX,g="start"):"center"===i.config.yaxis[0].labels.align?(p=h.offsetX,g="middle"):"right"===i.config.yaxis[0].labels.align&&(g="end");var m=a.drawText({x:p,y:n+t+h.offsetY-f,text:s,textAnchor:g,foreColor:Array.isArray(u)?u[o]:u,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass,maxWidth:h.maxWidth});l.add(m),m.on("click",(function(e){if("function"==typeof i.config.chart.events.xAxisLabelClick){var t=Object.assign({},i,{labelIndex:o});i.config.chart.events.xAxisLabelClick(e,r.ctx,t)}}));var y=document.createElementNS(i.globals.SVGNS,"title");if(y.textContent=Array.isArray(s)?s.join(" "):s,m.node.appendChild(y),0!==i.config.yaxis[e].labels.rotate){var b=a.rotateAroundCenter(m.node);m.node.setAttribute("transform","rotate(".concat(i.config.yaxis[e].labels.rotate," 0 ").concat(b.y,")"))}n+=t},p=0;p<=c.length-1;p++)f(p);if(void 0!==i.config.yaxis[0].title.text){var g=a.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),m=a.drawText({x:i.config.yaxis[0].title.offsetX,y:i.globals.gridHeight/2+i.config.yaxis[0].title.offsetY,text:i.config.yaxis[0].title.text,textAnchor:"middle",foreColor:i.config.yaxis[0].title.style.color,fontSize:i.config.yaxis[0].title.style.fontSize,fontWeight:i.config.yaxis[0].title.style.fontWeight,fontFamily:i.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[0].title.style.cssClass});g.add(m),s.add(g)}var y=0;this.isCategoryBarHorizontal&&i.config.yaxis[0].opposite&&(y=i.globals.gridWidth);var b=i.config.xaxis.axisBorder;if(b.show){var v=a.drawLine(i.globals.padHorizontal+b.offsetX+y,1+b.offsetY,i.globals.padHorizontal+b.offsetX+y,i.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&i.config.grid.show?this.elgrid.elGridBorders.add(v):s.add(v)}return i.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(y,c.length,i.config.yaxis[0].axisBorder,i.config.yaxis[0].axisTicks,0,t,s),s}},{key:"drawXaxisTicks",value:function(e,t,n){var r=this.w,i=e;if(!(e<0||e-2>r.globals.gridWidth)){var a=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+a+r.config.xaxis.axisTicks.height,"top"===r.config.xaxis.position&&(t=a-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){var o=new P(this.ctx).drawLine(e+r.config.xaxis.axisTicks.offsetX,a+r.config.xaxis.offsetY,i+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);n.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var i=0;i<n;i++)r=this.xaxisLabels[i].position,t.push(r);else for(var a=n,o=0;o<a;o++){var s=a;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(s-=1),r+=e.globals.gridWidth/s,t.push(r)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new P(this.ctx),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var o=0;o<r.length;
2o++){var s=t.rotateAroundCenter(r[o]);s.y=s.y-1,s.x=s.x+1,r[o].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),r[o].setAttribute("text-anchor","end"),n.setAttribute("transform","translate(0, ".concat(-10,")"));var l=r[o].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(n){t.placeTextWithEllipsis(n,n.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))}))}else!function(){for(var n=e.globals.gridWidth/(e.globals.labels.length+1),i=0;i<r.length;i++){var a=r[i].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(a,(function(e){t.placeTextWithEllipsis(e,e.textContent,n)}))}}();if(i.length>0){var c=i[i.length-1].getBBox(),u=i[0].getBBox();c.x<-20&&i[i.length-1].parentNode.removeChild(i[i.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&i[0].parentNode.removeChild(i[0]);for(var d=0;d<a.length;d++)t.placeTextWithEllipsis(a[d],a[d].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),Z=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),this.axesUtils=new I(t),this.isRangeBar=n.globals.seriesRange.length&&n.globals.isBarHorizontal,n.globals.timescaleLabels.length>0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return l(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=new P(this.ctx);e||(e=n.group({class:"apexcharts-grid"}));var r=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),i=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(i),e.add(r),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new P(this.ctx),r=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,v(e.config.stroke.width)):e.config.stroke.width,i=function(e){var n=document.createElementNS(t.SVGNS,"clipPath");return n.setAttribute("id",e),n};t.dom.elGridRectMask=i("gridRectMask".concat(t.cuid)),t.dom.elGridRectBarMask=i("gridRectBarMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=i("gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=i("forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=i("nonForecastMask".concat(t.cuid));var a=0,o=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(a=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),o=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(0,0,t.gridWidth,t.gridHeight,0,"#fff"),t.dom.elGridRectBar=n.drawRect(-r/2-a-2,-r/2-2,t.gridWidth+r+o+a+4,t.gridHeight+r+4,0,"#fff");var s=e.globals.markers.largestSize;t.dom.elGridRectMarker=n.drawRect(-s,-s,t.gridWidth+2*s,t.gridHeight+2*s,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var l=t.dom.baseEl.querySelector("defs");l.appendChild(t.dom.elGridRectMask),l.appendChild(t.dom.elGridRectBarMask),l.appendChild(t.dom.elGridRectMarkerMask),l.appendChild(t.dom.elForecastMask),l.appendChild(t.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:n,y1:r,x2:i,y2:a,xCount:o,parent:s});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var u=l.globals.groups;if(u){for(var d=0,h=0;d<t&&h<u.length;h++)d+=u[h].cols;d===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new J(this.ctx).drawXaxisTicks(n,c,l.globals.dom.elGraphical)}}}
2,{key:"_drawGridLine",value:function(e){var t=e.i,n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w,c=s.node.classList.contains("apexcharts-gridlines-horizontal"),u=l.globals.barPadForNumericAxis,d=0===r&&0===a||0===n&&0===i||r===l.globals.gridHeight&&a===l.globals.gridHeight||l.globals.isBarHorizontal&&(0===t||t===o-1),h=new P(this).drawLine(n-(c?u:0),r,i+(c?u:0),a,l.config.grid.borderColor,l.config.grid.strokeDashArray);h.node.classList.add("apexcharts-gridline"),d&&l.config.grid.show?this.elGridBorders.add(h):s.add(h)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.type,s=this.w,l=new P(this.ctx),c=s.globals.barPadForNumericAxis,u=s.config.grid[o].colors[t],d=l.drawRect(n-("row"===o?c:0),r,i+("row"===o?2*c:0),a,0,u,s.config.grid[o].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(o))}},{key:"_drawXYLines",value:function(e){var t=this,n=e.xCount,r=e.tickAmount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show){var a,o=i.globals.padHorizontal,s=i.globals.gridHeight;i.globals.timescaleLabels.length?function(e){for(var r=e.xC,i=e.x1,a=e.y1,o=e.x2,s=e.y2,l=0;l<r;l++)i=t.xaxisLabels[l].position,o=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:i,y1:a,x2:o,y2:s,xCount:n,parent:t.elgridLinesV})}({xC:n,x1:o,y1:0,x2:a,y2:s}):(i.globals.isXNumeric&&(n=i.globals.xAxisScale.result.length),function(e){for(var r=e.xC,a=e.x1,o=e.y1,s=e.x2,l=e.y2,c=0;c<r+(i.globals.isXNumeric?0:1);c++)0===c&&1===r&&1===i.globals.dataPoints&&(s=a=i.globals.gridWidth/2),t._drawGridLines({i:c,x1:a,y1:o,x2:s,y2:l,xCount:n,parent:t.elgridLinesV}),s=a+=i.globals.gridWidth/(i.globals.isXNumeric?r-1:r)}({xC:n,x1:o,y1:0,x2:a,y2:s}))}if(i.config.grid.yaxis.lines.show){var l=0,c=0,u=i.globals.gridWidth,d=r+1;this.isRangeBar&&(d=i.globals.labels.length);for(var h=0;h<d+(this.isRangeBar?1:0);h++)this._drawGridLine({i:h,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=i.globals.gridHeight/(this.isRangeBar?d:r)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show)for(var r,i=n.globals.padHorizontal,a=n.globals.gridHeight,o=0;o<t+1;o++)n.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:t+1,x1:i,y1:0,x2:r,y2:a,parent:this.elgridLinesV}),new J(this.ctx).drawXaxisTicks(i,0,n.globals.dom.elGraphical),r=i+=n.globals.gridWidth/t;if(n.config.grid.yaxis.lines.show)for(var s=0,l=0,c=n.globals.gridWidth,u=0;u<n.globals.dataPoints+1;u++)this._drawGridLine({i:u,xCount:n.globals.dataPoints+1,x1:0,y1:s,x2:c,y2:l,parent:this.elgridLinesH}),l=s+=n.globals.gridHeight/n.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,n=new P(this.ctx);this.elg=n.group({class:"apexcharts-grid"}),this.elgridLinesH=n.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=n.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=n.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var r=0;r<t.seriesYAxisMap.length&&t.ignoreYAxisIndexes.includes(r);)r++;r===t.seriesYAxisMap.length&&(r=0);var i,a,o,s,l=t.yAxisScale[r].result.length-1;!t.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(l=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(i=e.config.xaxis.tickAmount),(null===(a=t.yAxisScale)||void 0===a||null===(o=a[r])||void 0===o||null===(s=o.result)||void 0===s?void 0:s.length)>0&&"datetime"!==e.config.xaxis.type&&(i=t.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:i,tickAmount:l})):(i=l,l=t.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:l}));return this.drawGridBands(i,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/i}}},{key:"drawGridBands",value:function(e,t){var n,r,i=this,a=this.w;if((null===(n=a.config.grid.row.colors)||void 0===n?void 0:n.length)>0&&function(e,n,r,o,s,l){for(var c=0,u=0;c<n;c++,u++)u>
2=a.config.grid.row.colors.length&&(u=0),i._drawGridBandRect({c:u,x1:0,y1:o,x2:s,y2:l,type:"row"}),o+=a.globals.gridHeight/t}(0,t,0,0,a.globals.gridWidth,a.globals.gridHeight/t),(null===(r=a.config.grid.column.colors)||void 0===r?void 0:r.length)>0){var o=a.globals.isBarHorizontal||"on"!==a.config.xaxis.tickPlacement||"category"!==a.config.xaxis.type&&!a.config.xaxis.convertedCatToNumeric?e:e-1;a.globals.isXNumeric&&(o=a.globals.xAxisScale.result.length-1);for(var s=a.globals.padHorizontal,l=a.globals.padHorizontal+a.globals.gridWidth/o,c=a.globals.gridHeight,u=0,d=0;u<e;u++,d++){var h;d>=a.config.grid.column.colors.length&&(d=0),"datetime"===a.config.xaxis.type&&(s=this.xaxisLabels[u].position,l=((null===(h=this.xaxisLabels[u+1])||void 0===h?void 0:h.position)||a.globals.gridWidth)-this.xaxisLabels[u].position),this._drawGridBandRect({c:d,x1:s,y1:0,x2:l,y2:c,type:"column"}),s+=a.globals.gridWidth/o}}}}]),e}(),ee=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.coreUtils=new C(this.ctx)}return l(e,[{key:"niceScale",value:function(e,t){var n,r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=1e-11,l=this.w,c=l.globals;c.isBarHorizontal?(n=l.config.xaxis,r=Math.max((c.svgWidth-100)/25,2)):(n=l.config.yaxis[o],r=Math.max((c.svgHeight-100)/15,2)),A.isNumber(r)||(r=10),i=void 0!==n.min&&null!==n.min,a=void 0!==n.max&&null!==n.min;var u=void 0!==n.stepSize&&null!==n.stepSize,d=void 0!==n.tickAmount&&null!==n.tickAmount,h=d?n.tickAmount:c.niceScaleDefaultTicks[Math.min(Math.round(r/2),c.niceScaleDefaultTicks.length-1)];if(c.isMultipleYAxis&&!d&&c.multiAxisTickAmount>0&&(h=c.multiAxisTickAmount,d=!0),h="dataPoints"===h?c.dataPoints-1:Math.abs(Math.round(h)),(e===Number.MIN_VALUE&&0===t||!A.isNumber(e)&&!A.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=A.isNumber(n.min)?n.min:0,t=A.isNumber(n.max)?n.max:e+h,c.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var f=t;t=e,e=f}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);var p=[];h<1&&(h=1);var g=h,m=Math.abs(t-e);!i&&e>0&&e/m<.15&&(e=0,i=!0),!a&&t<0&&-t/m<.15&&(t=0,a=!0);var y=(m=Math.abs(t-e))/g,b=y,v=Math.floor(Math.log10(b)),x=Math.pow(10,v),w=Math.ceil(b/x);if(y=b=(w=c.niceScaleAllowedMagMsd[0===c.yValueDecimal?0:1][w])*x,c.isBarHorizontal&&n.stepSize&&"datetime"!==n.type?(y=n.stepSize,u=!0):u&&(y=n.stepSize),u&&n.forceNiceScale){var k=Math.floor(Math.log10(y));y*=Math.pow(10,v-k)}if(i&&a){var E=m/g;if(d)if(u)if(0!=A.mod(m,y)){var S=A.getGCD(y,E);y=E/S<10?S:E}else 0==A.mod(y,E)?y=E:(E=y,d=!1);else y=E;else if(u)0==A.mod(m,y)?E=y:y=E;else if(0==A.mod(m,y))E=y;else{E=m/(g=Math.ceil(m/y));var P=A.getGCD(m,y);m/P<r&&(E=P),y=E}g=Math.round(m/y)}else{if(i||a){if(a)if(d)e=t-y*g;else{var C=e;e=y*Math.floor(e/y),Math.abs(t-e)/A.getGCD(m,y)>r&&(e=t-y*h,e+=y*Math.floor((C-e)/y))}else if(i)if(d)t=e+y*g;else{var O=t;t=y*Math.ceil(t/y),Math.abs(t-e)/A.getGCD(m,y)>r&&(t=e+y*h,t+=y*Math.ceil((O-t)/y))}}else if(c.isMultipleYAxis&&d){var T=y*Math.floor(e/y),N=T+y*g;N<t&&(y*=2),N=t,t=(e=T)+y*g,m=Math.abs(t-e),e>0&&e<Math.abs(N-t)&&(e=0,t=y*g),t<0&&-t<Math.abs(T-e)&&(t=0,e=-y*g)}else e=y*Math.floor(e/y),t=y*Math.ceil(t/y);m=Math.abs(t-e),y=A.getGCD(m,y),g=Math.round(m/y)}if(d||i||a||(g=Math.ceil((m-s)/(y+s)))>16&&A.getPrimeFactors(g).length<2&&g++,!d&&n.forceNiceScale&&0===c.yValueDecimal&&g>m&&(g=m,y=Math.round(m/g)),g>r&&(!d&&!u||n.forceNiceScale)){var _=A.getPrimeFactors(g),I=_.length-1,R=g;e:for(var M=0;M<I;M++)for(var j=0;j<=I-M;j++){for(var L=Math.min(j+M,I),B=R,F=1,D=j;D<=L;D++)F*=_[D];if((B/=F)<r){R=B;break e}}y=R===g?m:m/R,g=Math.round(m/y)}c.isMultipleYAxis&&0==c.multiAxisTickAmount&&c.ignoreYAxisIndexes.indexOf(o)<0&&(c.multiAxisTickAmount=g);var U=e-y,z=y*s;do{U+=y,p.push(A.stripNumber(U,7))}while(t-U>z);return{result:p,niceMin:p[0],niceMax:p[p.length-1]}}},{key:"linearScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=Math.abs(t-e),o=[];if(e===t)return{result:o=[e],niceMin:o[0],niceMax:o[o.length-1]};"dataPoints"===(n=this._adjustTicksForSmallRange(n,r,a))&&(n=this.w.globals.dataPoints-1),i||(i=a/n),i=Math.round(10*(i+Number.EPSILON))/10,n===Number.MAX_VALUE&&(n=5,i=1);for(var s=e;n>=0;)o.push(s),s=A.preciseAddition(s,i),n-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],i=Math.ceil(Math.log(t)/Math.log(n)+1),a=Math.floor(Math.log(e)/Math.log(n));a<i;a++)r.push(Math.pow(n,a));return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],i=Math.log(t)/Math.log(n),a=Math.log(e)/Math.log(n),o=i-a,s=Math.round(o),l=o/s,c=0,u=a;c<s;c++,u+=l)r.push(Math.pow(n,u));return r.push(Math.pow(n,i)),{result:r,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,n){var r=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var i=Number(this.w.config.yaxis[t].labels.formatter(1));
2A.isNumber(i)&&0===this.w.globals.yValueDecimal&&(r=Math.ceil(n))}return r<e?r:e}},{key:"setYScaleForIndex",value:function(e,t,n){var r=this.w.globals,i=this.w.config,a=r.isBarHorizontal?i.xaxis:i.yaxis[e];void 0===r.yAxisScale[e]&&(r.yAxisScale[e]=[]);var o=Math.abs(n-t);a.logarithmic&&o<=5&&(r.invalidLogScale=!0),a.logarithmic&&o>5?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=a.forceNiceScale?this.logarithmicScaleNice(t,n,a.logBase):this.logarithmicScale(t,n,a.logBase)):n!==-Number.MAX_VALUE&&A.isNumber(n)&&t!==Number.MAX_VALUE&&A.isNumber(t)?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.niceScale(t,n,e)):r.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var n=this.w,r=n.globals,i=Math.abs(t-e);if(t!==-Number.MAX_VALUE&&A.isNumber(t)){var a=r.xTickAmount+1;i<10&&i>1&&(a=i),r.xAxisScale=this.linearScale(e,t,a,0,n.config.xaxis.stepSize)}else r.xAxisScale=this.linearScale(0,10,10);return r.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,n=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var r=n.seriesYAxisMap,i=n.minYArr,a=n.maxYArr;n.allSeriesCollapsed=!0,n.barGroups=[],r.forEach((function(r,o){var s=[];r.forEach((function(e){var n=t.series[e].group;s.indexOf(n)<0&&s.push(n)})),r.length>0?function(){var l,c,u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=u,f=d;if(t.chart.stacked)!function(){var e=new Array(n.dataPoints).fill(0),i=[],a=[],p=[];s.forEach((function(){i.push(e.map((function(){return Number.MIN_VALUE}))),a.push(e.map((function(){return Number.MIN_VALUE}))),p.push(e.map((function(){return Number.MIN_VALUE})))}));for(var g=function(e){!l&&t.series[r[e]].type&&(l=t.series[r[e]].type);var u=r[e];c=t.series[u].group?t.series[u].group:"axis-".concat(o),!(n.collapsedSeriesIndices.indexOf(u)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(u)<0)||(n.allSeriesCollapsed=!1,s.forEach((function(e,r){if(t.series[u].group===e)for(var o=0;o<n.series[u].length;o++){var s=n.series[u][o];s>=0?a[r][o]+=s:p[r][o]+=s,i[r][o]+=s,h=Math.min(h,s),f=Math.max(f,s)}}))),"bar"!==l&&"column"!==l||n.barGroups.push(c)},m=0;m<r.length;m++)g(m);l||(l=t.chart.type),"bar"===l||"column"===l?s.forEach((function(e,t){u=Math.min(u,Math.min.apply(null,p[t])),d=Math.max(d,Math.max.apply(null,a[t]))})):(s.forEach((function(e,t){h=Math.min(h,Math.min.apply(null,i[t])),f=Math.max(f,Math.max.apply(null,i[t]))})),u=h,d=f),u===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}();else for(var p=0;p<r.length;p++){var g=r[p];u=Math.min(u,i[g]),d=Math.max(d,a[g]),!(n.collapsedSeriesIndices.indexOf(g)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(g)<0)||(n.allSeriesCollapsed=!1)}void 0!==t.yaxis[o].min&&(u="function"==typeof t.yaxis[o].min?t.yaxis[o].min(u):t.yaxis[o].min),void 0!==t.yaxis[o].max&&(d="function"==typeof t.yaxis[o].max?t.yaxis[o].max(d):t.yaxis[o].max),n.barGroups=n.barGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.setYScaleForIndex(o,u,d),r.forEach((function(e){i[e]=n.yAxisScale[o].niceMin,a[e]=n.yAxisScale[o].niceMax}))}():e.setYScaleForIndex(o,0,-Number.MAX_VALUE)}))}}]),e}(),te=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.scales=new ee(t)}return l(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w.config,a=this.w.globals,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===r&&(r=e+1);var l=a.series,c=l,u=l;"candlestick"===i.chart.type?(c=a.seriesCandleL,u=a.seriesCandleH):"boxPlot"===i.chart.type?(c=a.seriesCandleO,u=a.seriesCandleC):a.isRangeData&&(c=a.seriesRangeStart,u=a.seriesRangeEnd);var d=!1;if(a.seriesX.length>=r){var h,f=null===(h=a.brushSource)||void 0===h?void 0:h.w.config.chart.brush;(i.chart.zoom.enabled&&i.chart.zoom.autoScaleYaxis||null!=f&&f.enabled&&null!=f&&f.autoScaleYaxis)&&(d=!0)}for(var p=e;p<r;p++){a.dataPoints=Math.max(a.dataPoints,l[p].length);var g=i.series[p].type;a.categoryLabels.length&&(a.dataPoints=a.categoryLabels.filter((function(e){return void 0!==e})).length),a.labels.length&&"datetime"!==i.xaxis.type&&0!==a.series.reduce((function(e,t){return e+t.length}),0)&&(a.dataPoints=Math.max(a.dataPoints,a.labels.length));var m=0,y=l[p].length-1;if(d){if(i.xaxis.min)for(;m<y&&a.seriesX[p][m]<i.xaxis.min;m++);if(i.xaxis.max)for(;y>m&&a.seriesX[p][y]>i.xaxis.max;y--);}for(var b=m;b<=y&&b<a.series[p].length;b++){var v=l[p][b];if(null!==v&&A.isNumber(v)){switch(void 0!==u[p][b]&&(o=Math.max(o,u[p][b]),t=Math.min(t,u[p][b])),void 0!==c[p][b]&&(t=Math.min(t,c[p][b]),n=Math.max(n,c[p][b])),g){case"candlestick":void 0!==a.seriesCandleC[p][b]&&(o=Math.max(o,a.seriesCandleH[p][b]),t=Math.min(t,a.seriesCandleL[p][b]));break;case"boxPlot":void 0!==a.seriesCandleC[p][b]&&(o=Math.max(o,a.seriesCandleC[p][b]),t=Math.min(t,a.seriesCandleO[p][b]))}g&&"candlestick"!==g&&"boxPlot"!==g&&"rangeArea"!==g&&"rangeBar"!==g&&(o=Math.max(o,a.series[p][b]),t=Math.min(t,a.series[p][b])),n=o,a.seriesGoals[p]&&a.seriesGoals[p][b]&&Array.isArray(a.seriesGoals[p][b])&&a.seriesGoals[p][b].forEach((function(e){s!==Number.MIN_VALUE&&(s=Math.min(s,e.value),t=s),o=Math.max(o,e.value),n=o})),A.isFloat(v)&&(v=A.noExponents(v),a.yValueDecimal=Math.max(a.yValueDecimal,v.toString().split(".")[1].length)),s>c[p][b]&&c[p][b]<0&&(s=c[p][b])}else a.hasNullValues=!0}"bar"!==g&&"column"!==g||(s<0&&o<0&&(o=0,n=Math.max(n,0)),s===Number.MIN_VALUE&&(s=0,t=Math.min(t,0)))}return"rangeBar"===i.chart.type&&a.seriesRangeStart.length&&a.isBarHorizontal&&(s=t),"bar"===i.chart.type&&(s<0&&o<0&&(o=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:o,lowestY:t,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n,r=Number.MAX_VALUE;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(var i=0;i<e.series.length;i++)n=this.getMinYMaxY(i),e.minYArr[i]=n.lowestY,e.maxYArr[i]=n.highestY,r=Math.min(r,n.lowestY)}return n=this.getMinYMaxY(0,r,null,e.series.length),"bar"===t.chart.type?(e.minY=n.minY,e.maxY=n.maxY):(e.minY=n.lowestY,e.maxY=n.highestY),r=n.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"===t.chart.type||"area"===t.chart.type||"scatter"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&r!==-Number.MAX_VALUE&&r!==e.maxY&&(e.minY=r):e.minY=e.minY!==Number.MIN_VALUE?Math.min(n.minY,e.minY):n.minY,t.yaxis.forEach((function(t,n){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[n]=t.max:"function"==typeof t.max&&(e.maxYArr[n]=t.max(e.isMultipleYAxis?e.maxYArr[n]:e.maxY)),e.maxY=e.maxYArr[n]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[n]=t.min:"function"==typeof t.min&&(e.minYArr[n]=t.min(e.isMultipleYAxis?e.minYArr[n]===Number.MIN_VALUE?0:e.minYArr[n]:e.minY)),e.minY=e.minYArr[n])})),e.isBarHorizontal&&["min","max"].forEach((function(n){void 0!==t.xaxis[n]&&"number"==typeof t.xaxis[n]&&("min"===n?e.minY=t.xaxis[n]:e.maxY=t.xa
2xis[n])})),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=r):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach((function(n){switch(n.type||t.chart.type){case"bar":case"column":e.barGroups.push(n.group);break;case"line":e.lineGroups.push(n.group);break;case"area":e.areaGroups.push(n.group)}})),e.barGroups=e.barGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.lineGroups=e.lineGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.areaGroups=e.areaGroups.filter((function(e,t,n){return n.indexOf(e)===t})),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,n="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var n=0;n<e.labels[t].length;n++)null!==e.labels[t][n]&&A.isNumber(e.labels[t][n])&&(e.maxX=Math.max(e.maxX,e.labels[t][n]),e.initialMaxX=Math.max(e.maxX,e.labels[t][n]),e.minX=Math.min(e.minX,e.labels[t][n]),e.initialMinX=Math.min(e.minX,e.labels[t][n]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var r=10;if(void 0===t.xaxis.tickAmount)r=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(r=e.dataPoints-1),r>e.dataPoints&&0!==e.dataPoints&&(r=e.dataPoints-1);else if("dataPoints"===t.xaxis.tickAmount){if(e.series.length>1&&(r=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var i=e.maxX-e.minX;i<30&&(r=i-1)}}else r=t.xaxis.tickAmount;if(e.xTickAmount=r,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var a=[],o=e.minX-1;o<e.maxX;o++)a.push(o+1);e.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,r,r,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,r-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var n=0;n<e.seriesZ[t].length;n++)null!==e.seriesZ[t][n]&&A.isNumber(e.seriesZ[t][n])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][n]),e.minZ=Math.min(e.minZ,e.seriesZ[t][n]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var n=new N(this.ctx);if("datetime"===t.xaxis.type){var r=n.getDate(e.minX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()-2):r.setDate(r.getDate()-2),e.minX=new Date(r).getTime();var i=n.getDate(e.maxX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()+2):i.setDate(i.getDate()+2),e.maxX=new Date(i).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach((function(t,n){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var r=t.slice();r.sort((function(e,t){return e-t})),r.forEach((function(t,n){if(n>0){var i=t-r[n-1];i>0&&(e.minXDiff=Math.min(i,e.minXDiff))}})),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var n=t.seriesGroups;n.length||(n=[this.w.globals.seriesNames.map((function(e){return e}))]);var r={},i={};
2n.forEach((function(n){r[n]=[],i[n]=[],e.w.config.series.map((function(e,r){return n.indexOf(t.seriesNames[r])>-1?r:null})).filter((function(e){return null!==e})).forEach((function(a){for(var o=0;o<t.series[t.maxValsInArrayIndex].length;o++){var s,l,c,u;void 0===r[n][o]&&(r[n][o]=0,i[n][o]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(s=e.w.config.series)||void 0===s||null===(l=s[a])||void 0===l?void 0:l.type)||"column"===(null===(c=e.w.config.series)||void 0===c||null===(u=c[a])||void 0===u?void 0:u.type)))&&null!==t.series[a][o]&&A.isNumber(t.series[a][o])&&(t.series[a][o]>0?r[n][o]+=parseFloat(t.series[a][o])+1e-4:i[n][o]+=parseFloat(t.series[a][o]))}}))})),Object.entries(r).forEach((function(e){var n=b(e,1)[0];r[n].forEach((function(e,a){t.maxY=Math.max(t.maxY,r[n][a]),t.minY=Math.min(t.minY,i[n][a])}))}))}}}]),e}(),ne=function(){function e(t,n){o(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var r=this.w;this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.axisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===r.config.xaxis.position?r.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new I(t)}return l(e,[{key:"drawYaxis",value:function(e){var t=this.w,n=new P(this.ctx),r=t.config.yaxis[e].labels.style,i=r.fontSize,a=r.fontFamily,o=r.fontWeight,s=n.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(t.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return s;var l=n.group({class:"apexcharts-yaxis-texts-g"});s.add(l);var c=t.globals.yAxisScale[e].result.length-1,u=t.globals.gridHeight/c,d=t.globals.yLabelFormatters[e],h=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){var f=t.globals.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?f=0:"heatmap"===t.config.chart.type&&(f-=u/2),f+=parseInt(i,10)/3;for(var p=c;p>=0;p--){var g=d(h[p],p,t),m=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&0!==t.config.yaxis.length&&(m*=-1);var y=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),b=this.axesUtils.getYAxisForeColor(r.colors,e),v=Array.isArray(b)?b[p]:b,x=A.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map((function(e){return e.textContent})),w=n.drawText({x:m,y:f,text:x.includes(g)&&!t.config.yaxis[e].labels.showDuplicates?"":g,textAnchor:y,fontSize:i,fontFamily:a,fontWeight:o,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:v,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(r.cssClass)});l.add(w),this.addTooltip(w,g),0!==t.config.yaxis[e].labels.rotate&&this.rotateLabel(n,w,firstLabel,t.config.yaxis[e].labels.rotate),f+=u}}return this.addYAxisTitle(n,s,e),this.addAxisBorder(n,s,e,c,u),s}},{key:"getTextAnchor",value:function(e,t){return"left"===e?"start":"center"===e?"middle":"right"===e?"end":t?"start":"end"}},{key:"addTooltip",value:function(e,t){var n=document.createElementNS(this.w.globals.SVGNS,"title");n.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(n)}},{key:"rotateLabel",value:function(e,t,n,r){var i=e.rotateAroundCenter(n.node),a=e.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(".concat(r," ").concat(i.x," ").concat(a.y,")"))}},{key:"addYAxisTitle",value:function(e,t,n){var r=this.w;if(void 0!==r.config.yaxis[n].title.text){var i=e.group({class:"apexcharts-yaxis-title"}),a=r.config.yaxis[n].opposite?r.globals.translateYAxisX[n]:0,o=e.drawText({x:a,y:r.globals.gridHeight/2+r.globals.translateY+r.config.yaxis[n].title.offsetY,text:r.config.yaxis[n].title.text,textAnchor:"end",foreColor:r.config.yaxis[n].title.style.color,fontSize:r.config.yaxis[n].title.style.fontSize,fontWeight:r.config.yaxis[n].title.style.fontWeight,fontFamily:r.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(r.config.yaxis[n].title.style.cssClass)});i.add(o),t.add(i)}}},{key:"addAxisBorder",value:function(e,t,n,r,i){var a=this.w,o=a.config.yaxis[n].axisBorder,s=31+o.offsetX;if(a.config.yaxis[n].opposite&&(s=-31-o.offsetX),o.show){var l=e.drawLine(s,a.globals.translateY+o.offsetY-2,s,a.globals.gridHeight+a.globals.translateY+o.offsetY+2,o.color,0,o.width);t.add(l)}a.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(s,r,o,a.config.yaxis[n].axisTicks,n,i,t)}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new P(this.ctx),r=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),i=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});r.add(i);var a=t.globals.yAxisScale[e].result.length-1,o=t.globals.gridWidth/a+.1,s=o+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=this.axesUtils.checkForRever
2sedLabels(e,t.globals.yAxisScale[e].result.slice()),u=t.globals.timescaleLabels;if(u.length>0&&(this.xaxisLabels=u.slice(),a=(c=u.slice()).length),t.config.xaxis.labels.show)for(var d=u.length?0:a;u.length?d<u.length:d>=0;u.length?d++:d--){var h=l(c[d],d,t),f=t.globals.gridWidth+t.globals.padHorizontal-(s-o+t.config.xaxis.labels.offsetX);if(u.length){var p=this.axesUtils.getLabel(c,u,f,d,this.drawnLabels,this.xaxisFontSize);f=p.x,h=p.text,this.drawnLabels.push(p.text),0===d&&t.globals.skipFirstTimelinelabel&&(h=""),d===c.length-1&&t.globals.skipLastTimelinelabel&&(h="")}var g=n.drawText({x:f,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:h,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(t.config.xaxis.labels.style.cssClass)});i.add(g),g.tspan(h),this.addTooltip(g,h),s+=o}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new P(this.ctx),r=t.config.xaxis.axisBorder;if(r.show){var i=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(i-=15);var a=n.drawLine(t.globals.padHorizontal+i+r.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,r.color,0,r.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(a):e.add(a)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new P(this.ctx);if(void 0!==t.config.xaxis.title.text){var r=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),i=n.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(t.config.xaxis.title.style.cssClass)});r.add(i),e.add(r)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,r=new P(this.ctx),i=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),a=i?i.getBoundingClientRect():{width:0,height:0},o=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),s=o?o.getBoundingClientRect():{width:0,height:0};if(o){var l=this.xPaddingForYAxisTitle(e,a,s,t);o.setAttribute("x",l.xPos-(t?10:0));var c=r.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,n,r){var i=this.w,a=0,o=10;return void 0===i.config.yaxis[e].title.text||e<0?{xPos:a,padd:0}:(r?a=t.width+i.config.yaxis[e].title.offsetX+n.width/2+o/2:(a=-1*t.width+i.config.yaxis[e].title.offsetX+o/2+n.width/2,i.globals.isBarHorizontal&&(
2o=25,a=-1*t.width-i.config.yaxis[e].title.offsetX-o)),{xPos:a,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,r=0,i=0,a=18,o=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.forEach((function(s,l){var c=n.globals.ignoreYAxisIndexes.includes(l)||!s.show||s.floating||0===e[l].width,u=e[l].width+t[l].width;s.opposite?n.globals.isBarHorizontal?(i=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[l]=i-s.labels.offsetX):(i=n.globals.gridWidth+n.globals.translateX+o,c||(o+=u+20),n.globals.translateYAxisX[l]=i-s.labels.offsetX+20):(r=n.globals.translateX-a,c||(a+=u+20),n.globals.translateYAxisX[l]=r+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;A.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((function(t,n){var r=e.config.yaxis[n];if(r&&!r.floating&&void 0!==r.labels.align){var i=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),a=A.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"))),o=i.getBoundingClientRect();a.forEach((function(e){e.setAttribute("text-anchor",r.labels.align)})),"left"!==r.labels.align||r.opposite?"center"===r.labels.align?i.setAttribute("transform","translate(".concat(o.width/2*(r.opposite?1:-1),", 0)")):"right"===r.labels.align&&r.opposite&&i.setAttribute("transform","translate(".concat(o.width,", 0)")):i.setAttribute("transform","translate(-".concat(o.width,", 0)"))}}))}}]),e}(),re=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.documentEvent=A.bind(this.documentEvent,this)}return l(e,[{key:"addEventListener",value:function(e,t){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var r=n.globals.events[e].indexOf(t);-1!==r&&n.globals.events[e].splice(r,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var r=n.globals.events[e],i=r.length,a=0;a<i;a++)r[a].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,n=this.ctx,r=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach((function(e){r.addEventListener(e,(function(e){var r=Object.assign({},t,{seriesIndex:t.globals.axisCharts?t.globals.capturedSeriesIndex:0,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,n,r):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,n,r):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,n,r),n.ctx.events.fireEvent("click",[e,n,r]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(n){t.globals.dom.baseEl.addEventListener(n,e.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,n=e.target.className;if("click"===e.type){var r=t.globals.dom.baseEl.querySelector(".apexcharts-menu");r&&r.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==n&&r.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),ie=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=t.filter((function(t){return t.name===e}))[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var r=A.extend(L,n);this.w.globals.locale=r.options}}]),e}(),ae=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"drawAxis",value:function(e,t){var n,r,i=this,a=this.w.globals,o=this.w.config,s=new J(this.ctx,t),l=new ne(this.ctx,t);a.axisCharts&&"radar"!==e&&(a.isBarHorizontal?(r=l.drawYaxisInversed(0),n=s.drawXaxisInversed(0),a.dom.elGraphical.add(n),a.dom.elGraphical.add(r)):(n=s.drawXaxis(),a.dom.elGraphical.add(n),o.yaxis.map((function(e,t){if(-1===a.ignoreYAxisIndexes.indexOf(t)&&(r=l.drawYaxis(t),a.dom.Paper.add(r),"back"===i.w.config.grid.position)){var n=a.dom.Paper.children()[1];n.remove(),a.dom.Paper.add(n)}}))))}}]),e}(),oe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new P(this.ctx),n=new S(this.ctx),r=e.config.xaxis.crosshairs.fill.gradient,i=e.config.xaxis.crosshairs.dropShadow,a=e.config.xaxis.crosshairs.fill.type,o=r.colorFrom,s=r.colorTo,l=r.opacityFrom,c=r.opacityTo,u=r.stops,d=i.enabled,h=i.left,f=i.top,p=i.blur,g=i.color,m=i.opacity,y=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===a&&(y=t.drawGradient("vertical",o,s,l,c,null,u,null));var b=t.drawRect();1===e.config.xaxis.crosshairs.width&&(b=t.drawLine());var v=e.globals.gridHeight;(!A.isNumber(v)||v<0)&&(v=0);var x=e.config.xaxis.crosshairs.width;(!A.isNumber(x)||x<0)&&(x=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:v,width:x,height:v,fill:y,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(b=n.dropShadow(b,{left:h,top:f,blur:p,color:g,opacity:m})),e.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new P(this.ctx),n=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var i=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);i.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(i)}var a=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(a)}}]),e}(),se=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,r=n.config;if(0!==r.responsive.length){var i=r.responsive.slice();i.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var a=new W({}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>r){var s=A.clone(n.globals.initialConfig);s.series=A.clone(n.config.series);var l=C.extendArrayProps(a,s,n);e=A.extend(l,e),e=A.extend(n.config,e),t.overrideResponsiveOptions(e)}else for(var c=0;c<i.length;c++)o<i[c].breakpoint&&(e=C.extendArrayProps(a,i[c].options,n),e=A.extend(n.config,e),t.overrideResponsiveOptions(e))};if(e){var s=C.extendArrayProps(a,e,n);s=A.extend(n.config,s),o(s=A.extend(s,e))}else o({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new W(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),le=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return l(e,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return"treemap"===t.type&&n.treemap&&n.treemap.distributed||"heatmap"===t.type&&n.heatmap&&n.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return n.bar&&n.bar.distributed&&("bar"===t.type||"rangeBar"===t.type)}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,t=new A;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode));var n=v(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(n),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,t));var r=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],r),this.applyDataLabelsColors(r),this.applyRadarPolygonsColors(),this.applyMarkersColors(r)}},{key:"getColors",value:function(e){var t=this,n=this.w;return e&&0!==e.length?Array.isArray(e)&&e.length>0&&"function"==typeof e[0]?(this.isColorFn=!0,n.config.series.map((function(r,i){var a=e[i]||e[0];return"function"==typeof a?a({value:n.globals.axisCharts?n.globals.series[i][0]||0:n.globals.series[i],seriesIndex:i,dataPointIndex:i,w:t.w}):a}))):e:this.predefined()}},{key:"applySeriesColors",value:function(e,t){e.forEach((function(e,n){e&&(t[n]=e)}))}},{key:"getMonochromeColors",value:function(e,t,n){var r=e.color,
2i=e.shadeIntensity,a=e.shadeTo,o=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,s=1/(o/i),l=0;return Array.from({length:o},(function(){var e="dark"===a?n.shadeColor(-1*l,r):n.shadeColor(l,r);return l+=s,e}))}},{key:"applyColorTypes",value:function(e,t){var n=this,r=this.w;e.forEach((function(e){r.globals[e].colors=void 0===r.config[e].colors?n.isColorFn?r.config.colors:t:r.config[e].colors.slice(),n.pushExtraColors(r.globals[e].colors)}))}},{key:"applyDataLabelsColors",value:function(e){var t=this.w;t.globals.dataLabels.style.colors=void 0===t.config.dataLabels.style.colors?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#424242":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var t=this.w;t.globals.markers.colors=void 0===t.config.markers.colors?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=t||r.globals.series.length;if(null===n&&(n=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===r.config.chart.type&&r.config.plotOptions.heatmap&&r.config.plotOptions.heatmap.colorScale.inverse),n&&r.globals.series.length&&(i=r.globals.series[r.globals.maxValsInArrayIndex].length*r.globals.series.length),e.length<i)for(var a=i-e.length,o=0;o<a;o++)e.push(e[o])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,n="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",r="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=r,e.theme.palette=n,e}},{key:"predefined",value:function(){var e={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return e[this.w.config.theme.palette]||e.default}}]),e}(),ce=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,n="title"===e?t.config.title:t.config.subtitle,r=t.globals.svgWidth/2,i=n.offsetY,a="middle";if("left"===n.align?(r=10,a="start"):"right"===n.align&&(r=t.globals.svgWidth-10,a="end"),r+=n.offsetX,i=i+p
vendor: 1,535 bytes, line 2
2arseInt(n.style.fontSize,10)+n.margin/2,void 0!==n.text){var o=new P(this.ctx).drawText({x:r,y:i,text:n.text,textAnchor:a,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});o.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(o)}}}]),e}(),ue=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return l(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,n=0,r=0,i="title"===e?t.config.title.floating:t.config.subtitle.floating,a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==a&&!i){var o=a.getBoundingClientRect();n=o.width,r=t.globals.axisCharts?o.height+5:o.height}return{width:n,height:r}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var n=Object.assign({},A.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:0===n.height?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,t=this.w,n=[];t.config.series.forEach((function(i,a){i.data.forEach((function(i,o){var s;
2s=t.globals.series[a][o],r=t.config.dataLabels.formatter(s,{ctx:e.dCtx.ctx,seriesIndex:a,dataPointIndex:o,w:t}),n.push(r)}))}));var r=A.getLargestStringFromArr(n),i=new P(this.dCtx.ctx),a=t.config.dataLabels.style,o=i.getTextRects(r,parseInt(a.fontSize),a.fontFamily);return{width:1.05*o.width,height:o.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var r=t.map((function(e,t){return Array.isArray(e)?e.length:1})),i=Math.max.apply(Math,v(r));n=t[r.indexOf(i)]}return n}}]),e}(),de=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return l(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,n=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===n.length&&(n=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var r=this.getxAxisTimeScaleLabelsCoords();e={width:r.width,height:r.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var i=t.globals.xLabelFormatter,a=A.getLargestStringFromArr(n),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,n);
vendor: 4,095 bytes, line 2
2t.globals.isBarHorizontal&&(o=a=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var s=new _(this.dCtx.ctx),l=a;a=s.xLabelFormat(i,a,l,{i:void 0,dateFormatter:new N(this.dCtx.ctx).formatDate,w:t}),o=s.xLabelFormat(i,o,l,{i:void 0,dateFormatter:new N(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===a||""===String(a).trim())&&(o=a="1");var c=new P(this.dCtx.ctx),u=c.getTextRects(a,t.config.xaxis.labels.style.fontSize),d=u;if(a!==o&&(d=c.getTextRects(o,t.config.xaxis.labels.style.fontSize)),(e={width:u.width>=d.width?u.width:d.width,height:u.height>=d.height?u.height:d.height}).width*n.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var h=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};u=h(a),a!==o&&(d=h(o)),e.height=(u.height>d.height?u.height:d.height)/1.5,e.width=u.width>d.width?u.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var n,r=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,i=t.globals.groups.map((function(e){return e.title})),a=A.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,i),s=new P(this.dCtx.ctx),l=s.getTextRects(a,r),c=l;return a!==o&&(c=s.getTextRects(o,r)),n={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,n=0;if(void 0!==e.config.xaxis.title.text){var r=new P(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,n=r.height}return{width:t,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map((function(e){return e.value})),r=n.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new P(this.dCtx.ctx).getTextRects(r,t.config.xaxis.labels.style.fontSize)).width*n.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,n=this.w,r=n.globals,i=n.config,a=i.xaxis.type,o=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;var s=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,l=function(e,s){i.yaxis.length>1&&function(e){return-1!==r.collapsedSeriesIndices.indexOf(e)}(s)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var s=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+o/1.75-t.dCtx.yAxisWidthRight,c=s.position-o/1.75+t.dCtx.yAxisWidthLeft,u="right"===n.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>r.svgWidth-r.translateX-u&&(r.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type?10:o/1.75)&&(r.skipFirstTimelinelabel=!0)}else"datetime"===a?t.dCtx.gridPad.right<o&&!r.rotateXLabels&&(r.skipLastTimelinelabel=!0):"datetime"!==a&&t.dCtx.gridPad.right<o/2-t.dCtx.yAxisWidthRight&&!r.rotateXLabels&&!n.config.xaxis.labels.trim&&(t.dCtx.xPadRight=o/2+1)}(e)};i.yaxis.forEach((function(e,n){s?(t.dCtx.gridPad.left<o&&(t.dCtx.xPadLeft=o/2+1),t.dCtx.xPadRight=o/2+1):l(e,n)}))}}]),e}(),he=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}
2return l(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,n=[],r=10,i=new I(this.dCtx.ctx);return t.config.yaxis.map((function(a,o){var s={seriesIndex:o,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[o],c=0;if(!i.isYAxisHidden(o)&&a.labels.show&&void 0!==a.labels.minWidth&&(c=a.labels.minWidth),!i.isYAxisHidden(o)&&a.labels.show&&l.result.length){var u=t.globals.yLabelFormatters[o],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,h=l.result.reduce((function(e,t){var n,r;return(null===(n=String(u(e,s)))||void 0===n?void 0:n.length)>(null===(r=String(u(t,s)))||void 0===r?void 0:r.length)?e:t}),d),f=h=u(h,s);if(void 0!==h&&0!==h.length||(h=l.niceMax),t.globals.isBarHorizontal){r=0;var p=t.globals.labels.slice();h=A.getLargestStringFromArr(p),h=u(h,{seriesIndex:o,dataPointIndex:-1,w:t}),f=e.dCtx.dimHelpers.getLargestStringFromMultiArr(h,p)}var g=new P(e.dCtx.ctx),m="rotate(".concat(a.labels.rotate," 0 0)"),y=g.getTextRects(h,a.labels.style.fontSize,a.labels.style.fontFamily,m,!1),b=y;h!==f&&(b=g.getTextRects(f,a.labels.style.fontSize,a.labels.style.fontFamily,m,!1)),n.push({width:(c>b.width||c>y.width?c:b.width>y.width?b.width:y.width)+r,height:b.height>y.height?b.height:y.height})}else n.push({width:0,height:0})})),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,n=[];return t.config.yaxis.map((function(t,r){if(t.show&&void 0!==t.title.text){var i=new P(e.dCtx.ctx),a="rotate(".concat(t.title.rotate," 0 0)"),o=i.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,a,!1);n.push({width:o.width,height:o.height})}else n.push({width:0,height:0})})),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,r=0,i=e.globals.yAxisScale.length>1?10:0,a=new I(this.dCtx.ctx),o=function(o,s){var l=e.config.yaxis[s].floating,c=0;o.width>0&&!l?(c=o.width+i,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(s)&&(c=c-o.width-i)):c=l||a.isYAxisHidden(s)?0:5,e.config.yaxis[s].opposite?r+=c:n+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){o(e,t)})),e.globals.yTitleCoords.map((function(e,t){o(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=r,t}}]),e}(),fe=function(){function e(t){o(this,e),this.w=t.w,this.dCtx=t}return l(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,n=t.config,r=t.globals;if(r.noData||r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.series.length)return 0;var i=function(e){return["bar","rangeBar","candlestick","boxPlot"].includes(e)},a=n.chart.type,o=0,s=i(a)?n.series.length:1;r.comboBarCount>0&&(s=r.comboBarCount),r.collapsedSeries.forEach((function(e){i(e.type)&&(s-=1)})),n.chart.stacked&&(s=1);var l=i(a)||r.comboBarCount>0,c=Math.abs(r.initialMaxX-r.initialMinX);if(l&&r.isXNumeric&&!r.isBarHorizontal&&s>0&&0!==c){c<=3&&(c=r.dataPoints);var u=c/e,d=r.minXDiff&&r.minXDiff/u>0?r.minXDiff/u:0;d>e/2&&(d/=2),(o=d*parseInt(n.plotOptions.bar.columnWidth,10)/100)<1&&(o=1),r.barPadForNumericAxis=o}return o}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,r=this.dCtx.isSparkline||!n.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==t.config[i].text?r+=t.config[i].margin:r+=e.dCtx.isSparkline||!n.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||n.axisCharts||(r+=10);var i=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),a=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight-=i.height+a.height+r,n.translateY+=i.height+a.height+r}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,r=new I(this.dCtx.ctx);n.config.yaxis.forEach((function(i,a){-1!==n.globals.ignoreYAxisIndexes.indexOf(a)||i.floating||r.isYAxisHidden(a)||(i.opposite&&(n.globals.translateX-=t[a].width+e[a].width+parseInt(i.labels.style.fontSize,10)/1.2+12),n.globals.translateX<2&&(n.globals.translateX=2))}))}}]),e}(),pe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ue(this),this.dimYAxis=new he(this),this.dimXAxis=new de(this),this.dimGrid=new fe(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return l(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,n=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var r=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,v(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>
20)&&Object.entries(this.gridPad).forEach((function(t){var n=b(t,2),r=n[0],i=n[1];e.gridPad[r]=Math.max(i,e.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(r/2,this.gridPad.top),this.gridPad.bottom=Math.max(r/2,this.gridPad.bottom)),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*i,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(i>0?i:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,r=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();n.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,n){t.globals.yLabelsCoords.push({width:r[n].width,index:n}),t.globals.yTitleCoords.push({width:i[n].width,index:n})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var a=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,s,o),n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-s.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-a.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var u=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,u=0),this.isSparkline||"treemap"===t.config.chart.type||this.dimXAxis.additionalPaddingXLabels(a);var d=function(){n.translateX=l+e.datalabelsCoords.width,n.gridHeight=n.svgHeight-e.lgRect.height-c-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-l-2*e.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(u=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=u,d();break;case"top":n.translateY=this.lgRect.height+u,d();break;case"left":n.translateY=u,n.translateX=this.lgRect.width+l+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width;break;case"right":n.translateY=u,n.translateX=l+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,r),new ne(this.ctx).setYAxisXPosition(r,i)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,r=0;e.config.legend.show&&!e.config.legend.floating&&(r=20);var i="pie"===n.chart.type||"polarArea"===n.chart.type||"donut"===n.chart.type?"pie":"radialBar",a=n.plotOptions[i].offsetY,o=n.plotOptions[i].offsetX;if(!n.legend.show||n.legend.floating){t.gridHeight=t.svgHeight;var s=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(s,t.gridHeight),t.translateY=a,void(t.translateX=o+(t.svgWidth-t.gridWidth)/2)}switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=a-10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+a+10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-r,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+this.lgRect.width+r;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-r-5,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var r=this.w,i=r.globals.hasXaxisGroups?2:1,a=n.height+e.height+t.height,o=r.globals.isMultiLineX?1.2:r.globals.LINE_HEIGHT_RATIO,s=r.globals.rotateXLabels?22:10,l=r.globals.rotateXLabels&&"bottom"===r.config.legend.position?10:0;this.xAxisHeight=a*o+i*s+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeight<r.config.xaxis.labels.minHeight&&(this.xAxisHeight=r.config.xaxis.labels.minHeight),r.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,u=0;r.config.yaxis.forEach((function(e){c+=e.labels.minWidth,u+=e.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>u&&(this.yAxisWidth=u)}}]),e}(),ge=function(){function e(t){o(this,e),this.w=t.w,this.lgCtx=t}return l(e,[{key:"getLegendStyles",value:function(){var e,t,n,r=document.createElement("style");r.setAttribute("type","text/css");var i=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(n=t.chart)||void 0===n?void 0:n.nonce)||this.w.config.chart.nonce;i&&r.setAttribute("nonce",i);var a=document.createTextNode("\n .apexcharts-flip-y {\n transform: scaleY(-1) translateY(-100%);\n transform-origin: top;\n transform-box: fill-box;\n }\n .apexcharts-flip-x {\n transform: scaleX(-1);\n transform-origin: center;\n transform-box: fill-box;\n }\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n }\n\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return r.appendChild(a),r}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;
2return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var n=this,r=this.w;if(r.globals.axisCharts||"radialBar"===r.config.chart.type){r.globals.resized=!0;var i=null,a=null;r.globals.risingSeries=[],r.globals.axisCharts?(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),a=parseInt(i.getAttribute("data:realIndex"),10)):(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),a=parseInt(i.getAttribute("rel"),10)-1),t?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){n.riseCollapsedSeries(e.cs,e.csi,a)})):this.hideSeries({seriesEl:i,realIndex:a})}else{var o=r.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),s=r.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=r.config.plotOptions.pie.donut.labels;new P(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var t=e.realIndex,n=this.w,r=n.globals,i=A.clone(n.config.series);if(r.axisCharts){var a=n.config.yaxis[r.seriesYAxisReverseMap[t]],o={index:t,data:i[t].data.slice(),type:i[t].type||n.config.chart.type};if(a&&a.show&&a.showAlways)r.ancillaryCollapsedSeriesIndices.indexOf(t)<0&&(r.ancillaryCollapsedSeries.push(o),r.ancillaryCollapsedSeriesIndices.push(t));else if(r.collapsedSeriesIndices.indexOf(t)<0){r.collapsedSeries.push(o),r.collapsedSeriesIndices.push(t);var s=r.risingSeries.indexOf(t);r.risingSeries.splice(s,1)}}else r.collapsedSeries.push({index:t,data:i[t]}),r.collapsedSeriesIndices.push(t);return r.allSeriesCollapsed=r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.config.series.length,this._getSeriesBasedOnCollapsedState(i)}},{key:"hideSeries",value:function(e){for(var t=e.seriesEl,n=e.realIndex,r=this.w,i=this.getSeriesAfterCollapsing({realIndex:n}),a=t.childNodes,o=0;o<a.length;o++)a[o].classList.contains("apexcharts-series-markers-wrap")&&(a[o].classList.contains("apexcharts-hide")?a[o].classList.remove("apexcharts-hide"):a[o].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,n){var r=this.w,i=A.clone(r.config.series);if(e.length>0){for(var a=0;a<e.length;a++)e[a].index===n&&(r.globals.axisCharts?i[n].data=e[a].data.slice():i[n]=e[a].data,i[n].hidden=!1,e.splice(a,1),t.splice(a,1),r.globals.risingSeries.push(n));i=this._getSeriesBasedOnCollapsedState(i),this.lgCtx.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,n=0;return t.globals.axisCharts?e.forEach((function(r,i){t.globals.collapsedSeriesIndices.indexOf(i)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0||(e[i].data=[],n++)})):e.forEach((function(r,i){!t.globals.collapsedSeriesIndices.indexOf(i)<0&&(e[i]=0,n++)})),t.globals.allSeriesCollapsed=n===e.length,e}}]),e}(),me=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new ge(this)}return l(e,[{key:"init",value:function(){var e=this.w,t=e.globals,n=e.config,r=n.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1;if(this.legendHelpers.appendToForeignObject(),(r||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),"bottom"===n.legend.position||"top"===n.legend.position?this.legendAlignHorizontal():"right"!==n.legend.position&&"left"!==n.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,n=e.fillcolor,r=this.w,i=document.createElement("span");i.classList.add("apexcharts-legend-marker");var a=r.config.legend.markers.shape||r.config.markers.shape,o=a;Array.isArray(a)&&(o=a[t]);var s=Array.isArray(r.config.legend.markers.size)?parseFloat(r.config.legend.markers.size[t]):parseFloat(r.config.legend.markers.size),l=Array.isArray(r.config.legend.markers.offsetX)?parseFloat(r.config.legend.markers.offsetX[t]):parseFloat(r.config.legend.markers.offsetX),c=Array.isArray(r.config.legend.markers.offsetY)?parseFloat(r.config.legend.markers.offsetY[t]):parseFloat(r.config.legend.markers.offsetY),u=Array.isArray(r.config.legend.markers.strokeWidth)?parseFloat(r.config.legend.markers.strokeWidth[t]):parseFloat(r.config.legend.markers.strokeWidth),d=i.style;if(d.height=2*(s+u)+"px",d.width=2*(s+u)+"px",d.left=l+"px",d.top=c+"px",r.config.legend.markers.customHTML)d.background="transparent",d.color=n[t],Array.isArray(r.config.legend.markers.customHTML)?r.config.legend.markers.customHTML[t]&&(i.innerHTML=r.config.legend.markers.customHTML[t]()):i.innerHTML=r.config.legend.markers.customHTML();else{var h=new Y(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(o),seriesIndex:t,strokeWidth:u,size:s}),f=SVG(i).size("100%","100%"),p=new P(this.ctx).drawMarker(0,0,m(m({},h),{},{pointFillColor:Array.isArray(n)?n[t]:h.pointFillColor,shape:o}));SVG.select(".apexcharts-legend-marker.apexcharts-marker").members.forEac
vendor: 9,930 bytes, line 2
2h((function(e){e.node.classList.contains("apexcharts-marker-triangle")?e.node.style.transform="translate(50%, 45%)":e.node.style.transform="translate(50%, 50%)"})),f.add(p)}return i}},{key:"drawLegends",value:function(){var e=this,t=this.w,n=t.config.legend.fontFamily,r=t.globals.seriesNames,i=t.config.legend.markers.fillColors?t.config.legend.markers.fillColors.slice():t.globals.colors.slice();if("heatmap"===t.config.chart.type){var a=t.config.plotOptions.heatmap.colorScale.ranges;r=a.map((function(e){return e.name?e.name:e.from+" - "+e.to})),i=a.map((function(e){return e.color}))}else this.isBarsDistributed&&(r=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(r=t.config.legend.customLegendItems);for(var o=t.globals.legendFormatter,s=t.config.legend.inverseOrder,l=s?r.length-1:0;s?l>=0:l<=r.length-1;s?l--:l++){var c,u=o(r[l],{seriesIndex:l,w:t}),d=!1,h=!1;if(t.globals.collapsedSeries.length>0)for(var f=0;f<t.globals.collapsedSeries.length;f++)t.globals.collapsedSeries[f].index===l&&(d=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<t.globals.ancillaryCollapsedSeriesIndices.length;p++)t.globals.ancillaryCollapsedSeriesIndices[p]===l&&(h=!0);var g=this.createLegendMarker({i:l,fillcolor:i});P.setAttrs(g,{rel:l+1,"data:collapsed":d||h}),(d||h)&&g.classList.add("apexcharts-inactive-legend");var m=document.createElement("div"),y=document.createElement("span");y.classList.add("apexcharts-legend-text"),y.innerHTML=Array.isArray(u)?u.join(" "):u;var b=t.config.legend.labels.useSeriesColors?t.globals.colors[l]:Array.isArray(t.config.legend.labels.colors)?null===(c=t.config.legend.labels.colors)||void 0===c?void 0:c[l]:t.config.legend.labels.colors;b||(b=t.config.chart.foreColor),y.style.color=b,y.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",y.style.fontWeight=t.config.legend.fontWeight,y.style.fontFamily=n||t.config.chart.fontFamily,P.setAttrs(y,{rel:l+1,i:l,"data:default-text":encodeURIComponent(u),"data:collapsed":d||h}),m.appendChild(g),m.appendChild(y);var v=new C(this.ctx);t.config.legend.showForZeroSeries||0===v.getSeriesTotalByIndex(l)&&v.seriesHaveSameValues(l)&&!v.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&m.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||v.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&m.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(m),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),m.classList.add("apexcharts-legend-series"),m.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",P.setAttrs(m,{rel:l+1,seriesName:A.escapeString(r[l]),"data:collapsed":d||h}),(d||h)&&m.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||m.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&0===t.config.legend.customLegendItems.length&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var n=this.w,r=n.globals.dom.elLegendWrap,i=r.clientHeight,a=0,o=0;if("bottom"===n.config.legend.position)o=n.globals.svgHeight-Math.min(i,n.globals.svgHeight/2)-5;else if("top"===n.config.legend.position){var s=new pe(this.ctx),l=s.dimHelpers.getTitleSubtitleCoords("title").height,c=s.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=(l>0?l-10:0)+(c>0?c-10:0)}r.style.position="absolute",a=a+e+n.config.legend.offsetX,o=o+t+n.config.legend.offsetY,r.style.left=a+"px",r.style.top=o+"px","right"===n.config.legend.position&&(r.style.left="auto",r.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach((function(e){r.style[e]&&(r.style[e]=parseInt(n.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=new pe(this.ctx),n=t.dimHelpers.getTitleSubtitleCoords("title"),r=t.dimHelpers.getTitleSubtitleCoords("subtitle"),i=0;"top"===e.config.legend.position&&(i=n.height+r.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,i)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),n=0;"left"===e.config.legend.position&&(n=20),"right"===e.config.legend.position&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,n=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(n){var r=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,r,this.w]),new $(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new $(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,r="true"===e.target.getAttribute("data:collapsed"),i=this.w.config.chart.events.legendClick;"function"==typeof i&&i(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var a=this.w.config.legend.markers.onClick;"function"==typeof a&&e.target.classList.contains("apexcharts-legend-marker")&&(a(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,r)}}}]),e}(),ye=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return l(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},r=n();if(r.setAttribute("class","apexcharts-toolbar"),r.style.top=t.config.chart.toolbar.offsetY+"px",r.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(r),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i<this.t.customIcons.length;i++)this.elCustomIcons.push(n());var a=[],o=function(n,r,i){var o=n.toLowerCase();e.t[o]&&t.config.chart.zoom.enabled&&a.push({el:r,icon:"string"==typeof e.t[o]?e.t[o]:i,title:e.localeValues[n],class:"apexcharts-".concat(o,"-icon")})};o("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),o("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var s=function(n){e.t[n]&&t.config.chart[n].enabled&&a.push({el:"zoom"===n?e.elZoom:e.elSelection,icon:"string"==typeof e.t[n]?e.t[n]:"zoom"===n?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===n?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})};s("zoom"),s("selection"),this.t.pan&&t.config.chart.zoom.enabled&&a.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08
20-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&a.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)a.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});a.forEach((function(e,t){e.index&&A.moveIndexInArray(a,t,e.index)}));for(var c=0;c<a.length;c++)P.setAttrs(a[c].el,{class:a[c].class,title:a[c].title}),a[c].el.innerHTML=a[c].icon,r.appendChild(a[c].el);this._createHamburgerMenu(r),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),P.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],n=0;n<t.length;n++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[n].innerHTML=t[n].title,P.setAttrs(this.elMenuItems[n],{class:"apexcharts-menu-item ".concat(t[n].name),title:t[n].title}),this.elMenu.appendChild(this.elMenuItems[n])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))}));for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls();var n="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,r="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[r]=!t.w.globals[r],n.classList.contains(t.ctx.toolbar.selectedClass)?n.classList.remove(t.ctx.toolbar.selectedClass):n.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,n="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEac
vendor: 5,289 bytes, line 2
2h((function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(t){t&&t.classList.remove(e.selectedClass)}))}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,n=(this.minX+t)/2,r=(this.maxX+t)/2,i=this._getNewMinXMaxX(n,r);e.globals.disableZoomIn||this.zoomUpdateOptions(i.minX,i.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,n=this.minX-(t-this.minX),r=this.maxX-(t-this.maxX),i=this._getNewMinXMaxX(n,r);e.globals.disableZoomOut||this.zoomUpdateOptions(i.minX,i.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var n=this.w;if(void 0!==e||void 0!==t){if(!(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=n.globals.dataPoints),t-e<2))){var r={min:e,max:t},i=this.getBeforeZoomRange(r);i&&(r=i.xaxis);var a={xaxis:r},o=A.clone(n.globals.initialConfig.yaxis);n.config.chart.group||(a.yaxis=o),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(a,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(r,o)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var n=null;return"function"==typeof this.ev.beforeZoom&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),n}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout((function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(e){var t=this.w,n=new Q(this.ctx);switch(e){case"svg":n.exportToSVG(this.ctx);break;case"png":n.exportToPng(this.ctx);break;case"csv":n.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach((function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var n=t.config.chart.events.beforeResetZoom(e,t);n&&e.updateHelpers.revertDefaultAxisMinMax(n)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var r=e.ctx.series.emptyCollapsedSeries(A.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(r,t.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),be=function(){f(t,ye);var e=u(t);function t(n){var r;return o(this,t),(r=e.call(this,n)).ctx=n,r.w=n.w,r.dragged=!1,r.graphics=new P(r.ctx),r.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],r.clientX=0,r.clientY=0,r.startX=0,r.endX=0,r.dragX=0,r.startY=0,r.endY=0,r.dragY=0,r.moveDirection="none",r.debounceTimer=null,r.debounceDelay=100,r.wheelDelay=400,r}return l(t,[{key:"init",value:function(e){var t=this,n=e.xyRatios,r=this.w,i=this;this.xyRatios=n,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=r.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),r.globals.dom.elGraphical.add(this.zoomRect),r.globals.dom.elGraphical.add(this.selectionRect),"x"===r.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:r.globals.gridWidth,maxY:r.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===r.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:r.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=r.globals.dom.baseEl.querySelector("".concat(r.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(e){t.hoverArea.addEventListener(e,i.svgMouseEvents.bind(i,n),{capture:!1,passive:!0})}
2)),r.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",i.mouseWheelEvent.bind(i),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var n=this.w,r=this,i=this.ctx.toolbar,a=n.globals.zoomEnabled?n.config.chart.zoom.type:n.config.chart.selection.type,o=n.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,i.enableZoomPanFromToolbar("pan"===o?"zoom":"pan")):this.shiftWasPressed&&(i.enableZoomPanFromToolbar(o),this.shiftWasPressed=!1),t.target){var s,l=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(s=t.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||s&&s.contains("apexcharts-toolbar"))){if(r.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,r.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which){var c=r.gridRect.getBoundingClientRect();r.startX=r.clientX-c.left,r.startY=r.clientY-c.top,r.dragged=!1,r.w.globals.mousedown=!0}if(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(r.dragged=!0,n.globals.panEnabled?(n.globals.selection=null,r.w.globals.mousedown&&r.panDragging({context:r,zoomtype:a,xyRatios:e})):(r.w.globals.mousedown&&n.globals.zoomEnabled||r.w.globals.mousedown&&n.globals.selectionEnabled)&&(r.selection=r.selectionDrawing({context:r,zoomtype:a}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type){var u,d=null===(u=r.gridRect)||void 0===u?void 0:u.getBoundingClientRect();d&&r.w.globals.mousedown&&(r.endX=r.clientX-d.left,r.endY=r.clientY-d.top,r.dragX=Math.abs(r.endX-r.startX),r.dragY=Math.abs(r.endY-r.startY),(n.globals.zoomEnabled||n.globals.selectionEnabled)&&r.selectionDrawn({context:r,zoomtype:a}),n.globals.panEnabled&&n.config.xaxis.convertedCatToNumeric&&r.delayedPanScrolled()),n.globals.zoomEnabled&&r.hideSelectionRect(this.selectionRect),r.dragged=!1,r.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"mouseWheelEvent",value:function(e){var t=this,n=this.w;e.preventDefault();var r=Date.now();r-n.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),n.globals.lastWheelExecution=r),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){r-n.globals.lastWheelExecution>t.wheelDelay&&(t.executeMouseWheelZoom(e),n.globals.lastWheelExecution=r)}),this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(e){var t,n=this.w;this.minX=n.globals.isRangeBar?n.globals.minY:n.globals.minX,this.maxX=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;var r=null===(t=this.gridRect)||void 0===t?void 0:t.getBoundingClientRect();if(r){var i,a,o,s=(e.clientX-r.left)/r.width,l=this.minX,c=this.maxX,u=c-l;if(e.deltaY<0){var d=l+s*u;a=d-(i=.5*u)/2,o=d+i/2}else a=l-(i=1.5*u)/2,o=c+i/2;if(!n.globals.isRangeBar){a=Math.max(a,n.globals.initialMinX),o=Math.min(o,n.globals.initialMaxX);var h=.01*(n.globals.initialMaxX-n.globals.initialMinX);if(o-a<h){var f=(a+o)/2;a=f-h/2,o=f+h/2}}var p=this._getNewMinXMaxX(a,o);isNaN(p.minX)||isNaN(p.maxX)||this.zoomUpdateOptions(p.minX,p.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var e=this.w;if(this.selectionRect){var t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var n=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,r=e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-n;e.globals.isRangeBar&&(n=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,r=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var i={x:n,y:0,width:r,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(i),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.he
vendor: 4,330 bytes, line 2
2ight,a=e.translateX,o=void 0===a?0:a,s=e.translateY,l=void 0===s?0:s,c=this.w,u=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var h={transform:"translate("+o+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(r<0&&(r=1),u.attr({x:t,y:n,width:r,height:i,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),P.setAttrs(u.node,h)),c.globals.selectionEnabled&&(d.attr({x:t,y:n,width:r>0?r:0,height:i>0?i:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),P.setAttrs(d.node,h))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t,n=e.context,r=e.zoomtype,i=this.w,a=n,o=this.gridRect.getBoundingClientRect(),s=a.startX-1,l=a.startY,c=!1,u=!1,d=a.clientX-o.left-s,h=a.clientY-o.top-l;return Math.abs(d+s)>i.globals.gridWidth?d=i.globals.gridWidth-s:a.clientX-o.left<0&&(d=s),s>a.clientX-o.left&&(c=!0,d=Math.abs(d)),l>a.clientY-o.top&&(u=!0,h=Math.abs(h)),t="x"===r?{x:c?s-d:s,y:0,width:d,height:i.globals.gridHeight}:"y"===r?{x:0,y:u?l-h:l,width:i.globals.gridWidth,height:h}:{x:c?s-d:s,y:u?l-h:l,width:d,height:h},a.drawSelectionRect(t),a.selectionDragging("resizing"),t}},{key:"selectionDragging",value:function(e,t){var n=this,r=this.w,i=this.xyRatios,a=this.selectionRect,o=0;"resizing"===e&&(o=30);var s=function(e){return parseFloat(a.node.getAttribute(e))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};r.globals.selection=l,"function"==typeof r.config.chart.events.selection&&r.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e,t,o,s,l=n.gridRect.getBoundingClientRect(),c=a.node.getBoundingClientRect();r.globals.isRangeBar?(e=r.globals.yAxisScale[0].niceMin+(c.left-l.left)*i.invertedYRatio,t=r.globals.yAxisScale[0].niceMin+(c.right-l.left)*i.invertedYRatio,o=0,s=1):(e=r.globals.xAxisScale.niceMin+(c.left-l.left)*i.xRatio,t=r.globals.xAxisScale.niceMin+(c.right-l.left)*i.xRatio,o=r.globals.yAxisScale[0].niceMin+(l.bottom-c.bottom)*i.yRatio[0],s=r.globals.yAxisScale[0].niceMax-(c.top-l.top)*i.yRatio[0]);var u={xaxis:{min:e,max:t},yaxis:{min:o,max:s}};r.config.chart.events.selection(n.ctx,u),r.config.chart.brush.enabled&&void 0!==r.config.chart.events.brushScrolled&&r.config.chart.events.brushScrolled(n.ctx,u)}),o))}},{key:"selectionDrawn",value:function(e){var t=e.context,n=e.zoomtype,r=this.w,i=t,a=this.xyRatios,o=this.ctx.toolbar;if(i.startX>i.endX){var s=i.startX;i.startX=i.endX,i.endX=s}if(i.startY>i.endY){var l=i.startY;i.startY=i.endY,i.endY=l}var c=void 0,u=void 0;r.globals.isRangeBar?(c=r.globals.yAxisScale[0].niceMin+i.startX*a.invertedYRatio,u=r.globals.yAxisScale[0].niceMin+i.endX*a.invertedYRatio):(c=r.globals.xAxisScale.niceMin+i.startX*a.xRatio,u=r.globals.xAxisScale.niceMin+i.endX*a.xRatio);var d=[],h=[];if(r.config.yaxis.forEach((function(e,t){var n=r.globals.seriesYAxisMap[t][0];d.push(r.globals.yAxisScale[t].niceMax-a.yRatio[n]*i.startY),h.push(r.globals.yAxisScale[t].niceMax-a.yRatio[n]*i.endY)})),i.dragged&&(i.dragX>10||i.dragY>10)&&c!==u)if(r.globals.zoomEnabled){var f=A.clone(r.globals.initialConfig.yaxis),p=A.clone(r.globals.initialConfig.xaxis);if(r.globals.zoomed=!0,r.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=r.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==n&&"x"!==n||(p={min:c,max:u}),"xy"!==n&&"y"!==n||f.forEach((function(e,t){f[t].min=h[t],f[t].max=d[t]})),o){var g=o.getBeforeZoomRange(p,f);g&&(p=g.xaxis?g.xaxis:p,f=g.yaxis?g.yaxis:f)}var m={xaxis:p};r.config.chart.group||(m.yaxis=f),i.ctx.updateHelpers._updateOptions(m,!1,i.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof r.config.chart.events.zoomed&&o.zoomCallback(p,f)}else if(r.globals.selectionEnabled){var y,b=null;y={min:c,max:u}
vendor: 7,847 bytes, line 2
2,"xy"!==n&&"y"!==n||(b=A.clone(r.config.yaxis)).forEach((function(e,t){b[t].min=h[t],b[t].max=d[t]})),r.globals.selection=i.selection,"function"==typeof r.config.chart.events.selection&&r.config.chart.events.selection(i.ctx,{xaxis:y,yaxis:b})}}},{key:"panDragging",value:function(e){var t=e.context,n=this.w,r=t;if(void 0!==n.globals.lastClientPosition.x){var i=n.globals.lastClientPosition.x-r.clientX,a=n.globals.lastClientPosition.y-r.clientY;Math.abs(i)>Math.abs(a)&&i>0?this.moveDirection="left":Math.abs(i)>Math.abs(a)&&i<0?this.moveDirection="right":Math.abs(a)>Math.abs(i)&&a>0?this.moveDirection="up":Math.abs(a)>Math.abs(i)&&a<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:r.clientX,y:r.clientY};var o=n.globals.isRangeBar?n.globals.minY:n.globals.minX,s=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||r.panScrolled(o,s)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,n=e.globals.maxX,r=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+r,n=e.globals.maxX+r):"right"===this.moveDirection&&(t=e.globals.minX-r,n=e.globals.maxX-r),t=Math.floor(t),n=Math.floor(n),this.updateScrolledChart({xaxis:{min:t,max:n}},t,n)}},{key:"panScrolled",value:function(e,t){var n=this.w,r=this.xyRatios,i=A.clone(n.globals.initialConfig.yaxis),a=r.xRatio,o=n.globals.minX,s=n.globals.maxX;n.globals.isRangeBar&&(a=r.invertedYRatio,o=n.globals.minY,s=n.globals.maxY),"left"===this.moveDirection?(e=o+n.globals.gridWidth/15*a,t=s+n.globals.gridWidth/15*a):"right"===this.moveDirection&&(e=o-n.globals.gridWidth/15*a,t=s-n.globals.gridWidth/15*a),n.globals.isRangeBar||(e<n.globals.initialMinX||t>n.globals.initialMaxX)&&(e=o,t=s);var l={xaxis:{min:e,max:t}};n.config.chart.group||(l.yaxis=i),this.updateScrolledChart(l,e,t)}},{key:"updateScrolledChart",value:function(e,t,n){var r=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof r.config.chart.events.scrolled&&r.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:n}})}}]),t}(),ve=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return l(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,r=e.clientX,i=e.clientY,a=this.w,o=n.getBoundingClientRect(),s=o.width,l=o.height,c=s/(a.globals.dataPoints-1),u=l/a.globals.dataPoints,d=this.hasBars();!a.globals.comboCharts&&!d||a.config.xaxis.convertedCatToNumeric||(c=s/a.globals.dataPoints);var h=r-o.left-a.globals.barPadForNumericAxis,f=i-o.top;h<0||f<0||h>s||f>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):a.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):a.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(h/c),g=Math.floor(f/u);d&&!a.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(h/c),p-=1);var m=null,y=null,b=a.globals.seriesXvalues.map((function(e){return e.filter((function(e){return A.isNumber(e)}))})),v=a.globals.seriesYvalues.map((function(e){return e.filter((function(e){return A.isNumber(e)}))}));if(a.globals.isXNumeric){var x=this.ttCtx.getElGrid().getBoundingClientRect(),w=h*(x.width/s),k=f*(x.height/l);m=(y=this.closestInMultiArray(w,k,b,v)).index,p=y.j,null!==m&&(b=a.globals.seriesXvalues[m],p=(y=this.closestInArray(w,b)).index)}return a.globals.capturedSeriesIndex=null===m?-1:m,(!p||p<1)&&(p=0),a.globals.isBarHorizontal?a.globals.capturedDataPointIndex=g:a.globals.capturedDataPointIndex=p,{capturedSeries:m,j:a.globals.isBarHorizontal?g:p,hoverX:h,hoverY:f}}},{key:"closestInMultiArray",value:function(e,t,n,r){var i=this.w,a=0,o=null,s=-1;i.globals.series.length>1?a=this.getFirstActiveXArray(n):o=0;var l=n[a][0],c=Math.abs(e-l);if(n.forEach((function(t){t.forEach((function(t,n){var r=Math.abs(e-t);r<=c&&(c=r,s=n)}))})),-1!==s){var u=r[a][s],d=Math.abs(t-u);o=a,r.forEach((function(e,n){var r=Math.abs(t-e[s]);r<=d&&(d=r,o=n)}))}return{index:o,j:s}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,n=0,r=e.map((function(e,t){return e.length>0?t:-1})),i=0;i<r.length;i++)if(-1!==r[i]&&-1===t.globals.collapsedSeriesIndices.indexOf(i)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)){n=r[i];break}return n}},{key:"closestInArray",value:function(e,t){for(var n=t[0],r=null,i=Math.abs(e-n),a=0;a<t.length;a++){var o=Math.abs(e-t[a]);o<i&&(i=o,r=a)}return{index:r}}},{key:"isXoverlap",value:function(e){var t=[],n=this.w.globals.seriesX.filter((function(e){return void 0!==e[0]}));if(n.length>0)for(var r=0;r<n.length-1;r++)void 0!==n[r][e]&&void 0!==n[r+1][e]&&n[r][e]!==n[r+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,n=0;n<t.length-1;n++)if(t[n].data.length!==t[n+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return v(e).reduce((function(e,t){return e+t.getBBox().height}),0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=v(e)).sort((function(e,t){var n=Number(e.getAttribute("data:realIndex")),r=Number(t.getAttribute("data:realIndex"));return r<n?1:r>n?-1:0}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var n=Number(e.getAttribute("cx")),r=Number(e.getAttribute("cy")),i=e.getAttribute("shape");return new P(this.ctx).getMarkerPath(n,r,i,t)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,n=t.config.markers.hover.size;return void 0===n&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,n=this.ttCtx;0===n.allTooltipSeriesGroups.length&&(n.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var r=n.allTooltipSeriesGroups,i=0;i<r.length;i++)"enable"===e?(r[i].classList.add("apexcharts-active"),r[i].style.display=t.config.tooltip.items.display):(r[i].classList.remove("apexcharts-active"),r[i].style.display="none")}}]),e}(),xe=function(){function e(t){o(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new ve(t)}return l(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,n=void 0===t||t,r=e.ttItems,i=e.i,a=void 0===i?0:i,o=e.j,s=void 0===o?null:o,l=e.y1,c=e.y2,u=e.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:a,j:s,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(n,a);var h=this.getValuesToPrint({i:a,j:s});this.printLabels({i:a,j:s,values:h,ttItems:r,shared:n,e:u});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,n=this,r=e.i,i=e.j,a=e.values,o=e.ttItems,s=e.shared,l=e.e,c=this.w,u=[],d=function(e){return c.globals.seriesGoals[e]&&c.globals.seriesGoals[e][i]&&Array.isArray(c.globals.seriesGoals[e][i])},h=a.xVal,f=a.zVal,p=a.xAxisTTVal,g="",y=c.globals.colors[r];null!==i&&c.config.plotOptions.bar.distributed&&(y=c.globals.colors[i]);for(var b=function(e,a){var b=n.getFormatters(r);
2g=n.getSeriesName({fn:b.yLbTitleFormatter,index:r,seriesIndex:r,j:i}),"treemap"===c.config.chart.type&&(g=b.yLbTitleFormatter(String(c.config.series[r].data[i].x),{series:c.globals.series,seriesIndex:r,dataPointIndex:i,w:c}));var v=c.config.tooltip.inverseOrder?a:e;if(c.globals.axisCharts){var x=function(e){var t,n,r,a;return c.globals.isRangeData?b.yLbFormatter(null===(t=c.globals.seriesRangeStart)||void 0===t||null===(n=t[e])||void 0===n?void 0:n[i],{series:c.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:i,w:c})+" - "+b.yLbFormatter(null===(r=c.globals.seriesRangeEnd)||void 0===r||null===(a=r[e])||void 0===a?void 0:a[i],{series:c.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:i,w:c}):b.yLbFormatter(c.globals.series[e][i],{series:c.globals.series,seriesIndex:e,dataPointIndex:i,w:c})};if(s)b=n.getFormatters(v),g=n.getSeriesName({fn:b.yLbTitleFormatter,index:v,seriesIndex:r,j:i}),y=c.globals.colors[v],t=x(v),d(v)&&(u=c.globals.seriesGoals[v][i].map((function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:v,dataPointIndex:i,w:c})}})));else{var w,k=null==l||null===(w=l.target)||void 0===w?void 0:w.getAttribute("fill");k&&(-1!==k.indexOf("url")?-1!==k.indexOf("Pattern")&&(y=c.globals.dom.baseEl.querySelector(k.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):y=k),t=x(r),d(r)&&Array.isArray(c.globals.seriesGoals[r][i])&&(u=c.globals.seriesGoals[r][i].map((function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:r,dataPointIndex:i,w:c})}})))}}null===i&&(t=b.yLbFormatter(c.globals.series[r],m(m({},c),{},{seriesIndex:r,dataPointIndex:r}))),n.DOMHandling({i:r,t:v,j:i,ttItems:o,values:{val:t,goalVals:u,xVal:h,xAxisTTVal:p,zVal:f},seriesName:g,shared:s,pColor:y})},v=0,x=c.globals.series.length-1;v<c.globals.series.length;v++,x--)b(v,x)}},{key:"getFormatters",value:function(e){var t,n=this.w,r=n.globals.yLabelFormatters[e];return void 0!==n.globals.ttVal?Array.isArray(n.globals.ttVal)?(r=n.globals.ttVal[e]&&n.globals.ttVal[e].formatter,t=n.globals.ttVal[e]&&n.globals.ttVal[e].title&&n.globals.ttVal[e].title.formatter):(r=n.globals.ttVal.formatter,"function"==typeof n.globals.ttVal.title.formatter&&(t=n.globals.ttVal.title.formatter)):t=n.config.tooltip.y.title.formatter,"function"!=typeof r&&(r=n.globals.yLabelFormatters[0]?n.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e}),{yLbFormatter:r,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,n=e.index,r=e.seriesIndex,i=e.j,a=this.w;return t(String(a.globals.seriesNames[n]),{series:a.globals.series,seriesIndex:r,dataPointIndex:i,w:a})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,n=e.j,r=e.ttItems,i=e.values,a=e.seriesName,o=e.shared,s=e.pColor,l=this.w,c=this.ttCtx,u=i.val,d=i.goalVals,h=i.xVal,f=i.xAxisTTVal,p=i.zVal,g=null;g=r[t].children,l.config.tooltip.fillSeriesColor&&(r[t].style.backgroundColor=s,g[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=h),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==f?f:h);var m=r[t].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=a||"");var y=r[t].querySelector(".apexcharts-tooltip-text-y-value");y&&(y.innerHTML=void 0!==u?u:""),g[0]&&g[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(s=l.config.tooltip.marker.fillColors[t]),g[0].style.backgroundColor=s),l.config.tooltip.marker.show||(g[0].style.display="none");var b=r[t].querySelector(".apexcharts-tooltip-text-goals-label"),v=r[t].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[t]){var x=function(){var e="<div >",t="<div>";d.forEach((function(n,r){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(n.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(n.attrs.name,"</div>"),t+="<div>".concat(n.val,"</div>")})),b.innerHTML=e+"</div>",v.innerHTML=t+"</div>"};o?l.globals.seriesGoals[t][n]&&Array.isArray(l.globals.seriesGoals[t][n])?x():(b.innerHTML="",v.innerHTML=""):x()}else b.innerHTML="",v.innerHTML="";if(null!==p&&(r[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,r[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),o&&g[0]){if(l.config.tooltip.hideEmptySeries){var w=r[t].querySelector(".apexcharts-tooltip-marker"),k=r[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(u)?(w.style.display="none",k.style.display="none"):(w.style.display="block",k.style.display="block")}null==u||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)?g[0].parentNode.style.display="none":g[0].parentNode.style.display=l.config.tooltip.items.display}else Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)&&(g[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var n=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var r=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));r&&(r.classList.add("apexcharts-active"),r.style.display=n.config.tooltip.items.display)}}}
vendor: 25,071 bytes, line 2
2,{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,r=this.w,i=this.ctx.series.filteredSeriesX(),a="",o="",s=null,l=null,c={series:r.globals.series,seriesIndex:t,dataPointIndex:n,w:r},u=r.globals.ttZFormatter;null===n?l=r.globals.series[t]:r.globals.isXNumeric&&"treemap"!==r.config.chart.type?(a=i[t][n],0===i[t].length&&(a=i[this.tooltipUtil.getFirstActiveXArray(i)][n])):a=new K(this.ctx).isFormatXY()?void 0!==r.config.series[t].data[n]?r.config.series[t].data[n].x:"":void 0!==r.globals.labels[n]?r.globals.labels[n]:"";var d=a;return a=r.globals.isXNumeric&&"datetime"===r.config.xaxis.type?new _(this.ctx).xLabelFormat(r.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new N(this.ctx).formatDate,w:this.w}):r.globals.isBarHorizontal?r.globals.yLabelFormatters[0](d,c):r.globals.xLabelFormatter(d,c),void 0!==r.config.tooltip.x.formatter&&(a=r.globals.ttKeyFormatter(d,c)),r.globals.seriesZ.length>0&&r.globals.seriesZ[t].length>0&&(s=u(r.globals.seriesZ[t][n],r)),o="function"==typeof r.config.xaxis.tooltip.formatter?r.globals.xaxisTooltipFormatter(d,c):a,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(a)?a.join(" "):a,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:s}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,r=e.y1,i=e.y2,a=e.w,o=this.ttCtx.getElTooltip(),s=a.config.tooltip.custom;Array.isArray(s)&&s[t]&&(s=s[t]),o.innerHTML=s({ctx:this.ctx,series:a.globals.series,seriesIndex:t,dataPointIndex:n,y1:r,y2:i,w:a})}}]),e}(),we=function(){function e(t){o(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return l(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.ttCtx,r=this.w,i=n.getElXCrosshairs(),a=e-n.xcrosshairsWidth/2,o=r.globals.labels.slice().length;if(null!==t&&(a=r.globals.gridWidth/o*t),null===i||r.globals.isBarHorizontal||(i.setAttribute("x",a),i.setAttribute("x1",a),i.setAttribute("x2",a),i.setAttribute("y2",r.globals.gridHeight),i.classList.add("apexcharts-active")),a<0&&(a=0),a>r.globals.gridWidth&&(a=r.globals.gridWidth),n.isXAxisTooltipEnabled){var s=a;"tickWidth"!==r.config.xaxis.crosshairs.width&&"barWidth"!==r.config.xaxis.crosshairs.width||(s=a+n.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&P.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&P.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;if(null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth){n.xaxisTooltip.classList.add("apexcharts-active");var r,i=n.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e))e+=t.globals.translateX,r=new P(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=r.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=i+"px"}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;null===n.yaxisTTEls&&(n.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var r=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),i=t.globals.translateY+r,a=n.yaxisTTEls[e].getBoundingClientRect().height,o=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(o-=26),i-=a/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=i+"px",n.yaxisTTEls[e].style.left=o+t.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=this.ttCtx,a=i.getElTooltip(),o=i.tooltipRect,s=null!==n?parseFloat(n):1,l=parseFloat(e)+s+5,c=parseFloat(t)+s/2;if(l>r.globals.gridWidth/2&&(l=l-o.ttWidth-s-10),l>r.globals.gridWidth-o.ttWidth-10&&(l=r.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),r.config.tooltip.followCursor){var u=i.getElGrid().getBoundingClientRect();(l=i.e.clientX-u.left)>r.globals.gridWidth/2&&(l-=i.tooltipRect.ttWidth),(c=i.e.clientY+r.globals.translateY-u.top)>r.globals.gridHeight/2&&(c-=i.tooltipRect.ttHeight)}else r.globals.isBarHorizontal||o.ttHeight/2+c>r.globals.gridHeight&&(c=r.globals.gridHeight-o.ttHeight+r.globals.translateY);isNaN(l)||(l+=r.globals.translateX,a.style.left=l+"px",a.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,r=this.ttCtx;if(n.globals.markers.size[e]>0)for(var i=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),a=0;a<i.length;a++)parseInt(i[a].getAttribute("rel"),10)===t&&(r.marker.resetPointsSize(),r.marker.enlargeCurrentPoint(t,i[a]));else r.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var n,r,i,a,o=this.w,s=this.ttCtx,l=new P(this.ctx),c=o.globals.pointsArray,u=s.tooltipUtil.getHoverMarkerSize(t),d=o.config.series[t].type;if(!d||"column"!==d&&"candlestick"!==d&&"boxPlot"!==d){i=null===(n=c[t][e])||void 0===n?void 0:n[0],a=(null===(r=c[t][e])||void 0===r?void 0:r[1])||0;var h=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(h&&a<o.globals.gridHeight&&a>0){var f=h.getAttribute("shape"),p=l.getMarkerPath(i,a,f,1.5*u);h.setAttribute("d",p)}this.moveXCrosshairs(i),s.fixedTooltip||this.moveTooltip(i,a,u)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,r=n.w,i=0,a=0,o=r.globals.pointsArray,s=new $(this.ctx),l=new P(this.ctx);t=s.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var c=n.tooltipUtil.getHoverMarkerSize(t);o[t]&&(i=o[t][e][0],a=o[t][e][1]);var u=n.tooltipUtil.getAllMarkers();if(null!==u)for(var d=0;d<r.globals.series.length;d++){var h=o[d];if(r.globals.comboCharts&&void 0===h&&u.splice(d,0,null),h&&h.length){var f=o[d][e][1],p=void 0;u[d].setAttribute("cx",i);var g=u[d].getAttribute("shape");if("rangeArea"===r.config.chart.type&&!r.globals.comboCharts){var m=e+r.globals.series[d].length;p=o[d][m][1],f-=Math.abs(f-p)/2}if(null!==f&&!isNaN(f)&&f<r.globals.gridHeight+c&&f+c>0){var y=l.getMarkerPath(i,f,g,c);u[d].setAttribute("d",y)}else u[d].setAttribute("d","")}}this.moveXCrosshairs(i),n.fixedTooltip||this.moveTooltip(i,a||r.globals.gridHeight,c)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var n=this.w,r=this.ttCtx,i=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length,a=i>=2&&i%2==0?Math.floor(i/2):Math.floor(i/2)+1;n.globals.isBarHorizontal&&(a=new $(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(a,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"']"));o||"number"!=typeof t||(o=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var s=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,c=o?parseFloat(o.getAttribute("barWidth")):0,u=r.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(o&&!d&&(s-=i%2!=0?c/2:0),o&&d&&n.globals.comboCharts&&(s-=c/2)):n.globals.isBarHorizontal||(s=r.xAxisTicksPositions[e-1]+r.dataPointsDividedWidth/2,isNaN(s)&&(s=r.xAxisTicksPositions[e]-r.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?l-=r.tooltipRect.ttHeight:n.config.tooltip.followCursor?l=r.e.clientY-u.top-r.tooltipRect.ttHeight/2:l+r.tooltipRect.ttHeight+15>n.globals.gridHeight&&(l=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(s),r.fixedTooltip||this.moveTooltip(s,l||n.globals.gridHeight)}}]),e}(),ke=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new we(t)}return l(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new P(this.ctx),n=new Y(this.ctx),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");r=v(r),e.config.chart.stacked&&r.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var i=0;i<r.length;i++){var a=r[i].querySelector(".apexcharts-series-markers-wrap");if(null!==a){var o=void 0,s="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(s+=" no-pointer-events");var l=n.getMarkerConfig({cssClass:s,seriesIndex:Number(a.getAttribute("data:realIndex"))});(o=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(o.node),a.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w;"bubble"!==i.config.chart.type&&this.newPointSize(e,t);var a=t.getAttribute("cx"),o=t.getAttribute("cy");if(null!==n&&null!==r&&(a=n,o=r),this.tooltipPosition.moveXCrosshairs(a),!this.fixedTooltip){if("radar"===i.config.chart.type){var s=this.ttCtx.getElGrid().getBoundingClientRect();a=this.ttCtx.e.clientX-s.left}this.tooltipPosition.moveTooltip(a,o,i.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,r=this.ttCtx,i=e,a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=t.config.markers.hover.size,s=0;s<a.length;s++){var l=a[s].getAttribute("rel"),c=a[s].getAttribute("index");if(void 0===o&&(o=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),i===parseInt(l,10)){n.newPointSize(i,a[s]);var u=a[s].getAttribute("cx"),d=a[s].getAttribute("cy");n.tooltipPosition.moveXCrosshairs(u),r.fixedTooltip||n.tooltipPosition.moveTooltip(u,d,o)}else n.oldPointSize(a[s])}}},{key:"newPointSize",value:function(e,t){var n=this.w,r=n.config.markers.hover.size,i=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==i.getAttribute("default-marker-size")){var a=parseInt(i.getAttribute("index"),10);void 0===r&&(r=n.globals.markers.size[a]+n.config.markers.hover.sizeOffset),r<0&&(r=0);var o=this.ttCtx.tooltipUtil.getPathFromPoint(t,r);t.setAttribute("d",o)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),n=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",n)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var n=parseFloat(e[t].getAttribute("default-marker-size"));if(A.isNumber(n)&&n>=0){var r=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],n);e[t].setAttribute("d",r)}else e[t].setAttribute("d","M0,0")}}}]),e}(),Ae=function(){function e(t){o(this,e),this.w=t.w;var n=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&"rangeBar"===n.config.chart.type&&n.config.plotOptions.bar.rangeBarGroupRows}return l(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,n=e.opt,r=e.x,i=e.y,a=e.type,o=this.ttCtx,s=this.w;if(t.target.classList.contains("apexcharts-".concat(a,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),u=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),h=this.getAttr(t,"width"),f=this.getAttr(t,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:l,j:c,shared:!1,e:t}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=c,r=u+o.tooltipRect.ttWidth/2+h,i=d+o.tooltipRect.ttHeight/2-f/2,o.tooltipPosition.moveXCrosshairs(u+h/2),r>s.globals.gridWidth/2&&(r=u-o.tooltipRect.ttWidth/2+h),o.w.config.tooltip.followCursor){var p=s.globals.dom.elWrap.getBoundingClientRect();r=s.globals.clientX-p.left-(r>s.globals.gridWidth/2?o.tooltipRect.ttWidth:0),i=s.globals.clientY-p.top-(i>s.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:r,y:i}}},{key:"handleMarkerTooltip",value:function(e){var t,n,r=e.e,i=e.opt,a=e.x,o=e.y,s=this.w,l=this.ttCtx;if(r.target.classList.contains("apexcharts-marker")){var c=parseInt(i.paths.getAttribute("cx"),10),u=parseInt(i.paths.getAttribute("cy"),10),d=parseFloat(i.paths.getAttribute("val"));if(n=parseInt(i.paths.getAttribute("rel"),10),t=parseInt(i.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=A.findAncestor(i.paths,"apexcharts-series");h&&(t=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:t,j:n,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:r}),"mouseup"===r.type&&l.markerClick(r,t,n),s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=n,a=c,o=u+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();o=l.e.clientY+s.globals.translateY-f.top}d<0&&(o=u),l.marker.enlargeCurrentPoint(n,i.paths,a,o)}return{x:a,y:o}}},{key:"handleBarTooltip",value:function(e){var t,n,r=e.e,i=e.opt,a=this.w,o=this.ttCtx,s=o.getElTooltip(),l=0,c=0,u=0,d=this.getBarTooltipXY({e:r,opt:i});t=d.i;var h=d.j;a.globals.capturedSeriesIndex=t,a.globals.capturedDataPointIndex=h,a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!a.config.tooltip.shared?(c=d.x,u=d.y,n=Array.isArray(a.config.stroke.width)?a.config.stroke.width[t]:a.config.stroke.width,l=c):a.globals.comboCharts||a.config.tooltip.shared||(l/=2),isNaN(u)&&(u=a.globals.svgHeight-o.tooltipRect.ttHeight);var f=parseInt(i.paths.parentNode.getAttribute("data:realIndex"),10);if(a.globals.isMultipleYAxis?a.config.yaxis[f]&&a.config.yaxis[f].reversed:a.config.yaxis[0].reversed,c+o.tooltipRect.ttWidth>a.globals.gridWidth?c-=o.tooltipRect.ttWidth:c<0&&(c=0),o.w.config.tooltip.followCursor){var p=o.getElGrid().getBoundingClientRect();u=o.e.clientY-p.top}null===o.tooltip&&(o.tooltip=a.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),a.config.tooltip.shared||(a.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+n/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(u=u+a.globals.translateY-o.tooltipRect.ttHeight/2,s.style.left=c+a.globals.translateX+"px",s.style.top=u+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,n=e.e,r=e.opt,i=this.w,a=null,o=this.ttCtx,s=0,l=0,c=0,u=0,d=0,h=n.target.classList;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){var f=n.target,p=f.getBoundingClientRect(),g=r.elGrid.getBoundingClientRect(),m=p.height;d=p.height;var y=p.width,b=parseInt(f.getAttribute("cx"),10),v=parseInt(f.getAttribute("cy"),10);u=parseFloat(f.getAttribute("barWidth"));var x="touchmove"===n.type?n.touches[0].clientX:n.clientX;a=parseInt(f.getAttribute("j"),10),s=parseInt(f.parentNode.getAttribute("rel"),10)-1;var w=f.getAttribute("data-range-y1"),k=f.getAttribute("data-range-y2");i.globals.comboCharts&&(s=parseInt(f.parentNode.getAttribute("data:realIndex"),10));var A=function(e){return i.globals.isXNumeric?b-y/2:t.isVerticalGroupedRangeBar?b+y/2:b-o.dataPointsDividedWidth+y/2},E=function(){return v-o.dataPointsDividedHeight+m/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:s,j:a,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!o.showOnIntersect&&i.config.tooltip.shared,e:n}),i.config.tooltip.followCursor?i.globals.isBarHorizontal?(l=x-g.left+15,c=E()):(l=A(),c=n.clientY-g.top-o.tooltipRect.ttHeight/2-15):i.globals.isBarHorizontal?((l=b)<o.xyRatios.baseLineInvertedY&&(l=b-o.tooltipRect.ttWidth),c=E()):(l=A(),c=v)}return{x:l,y:c,barHeight:d,barWidth:u,i:s,j:a}}}]),e}(),Ee=function(){function e(t){o(this,e),this.w=t.w,this.ttCtx=t}return l(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,n="bottom"===e.config.xaxis.position;t.xaxisOffY=n?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var r=n?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",i=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),i.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,n=0;n<e.config.yaxis.length;n++){var r=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;t.yaxisOffX=r?e.globals.gridWidth+1:1;var i="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,r?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),a=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(t.yaxisTooltip),0===n&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[n]=document.createElement("div"),t.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[n]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,n=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var r=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==r&&"barWidth"===e.config.xaxis.crosshairs.width){var i=parseFloat(r.getAttribute("barWidth"));t.xcrosshairsWidth=i}else if("tickWidth"===e.config.xaxis.crosshairs.width){var a=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/a}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/o}else if("barWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s){var l=parseFloat(s.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==n&&t.xcrosshairsWidth>0&&n.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,n){var r=this.ttCtx,i=this.w,a=i.globals,o=a.seriesYAxisMap[e];if(r.yaxisTooltips[e]&&o.length>0){var s=a.yLabelFormatters[e],l=r.getElGrid().getBoundingClientRect(),c=o[0],u=0;n.yRatio.length>1&&(u=c);var d=(t-l.top)*n.yRatio[u],h=a.maxYArr[c]-a.minYArr[c],f=a.minYArr[c]+(h-d);i.config.yaxis[e].reversed&&(f=a.maxYArr[c]-(h-d)),r.tooltipPosition.moveYCrosshairs(t-l.top),r.yaxisTooltipText[e].innerHTML=s(f),r.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),Se=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new ve(this),this.tooltipLabels=new xe(this),this.tooltipPosition=new we(this),this.marker=new ke(this),this.intersect=new Ae(this),this.axesTooltip=new Ee(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return l(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,n){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&n.classList.add(t.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(n),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var r=new J(this.ctx);this.xAxisTicksPositions=r.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var i=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(i=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(i),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,r=[],i=this.getElTooltip(),a=function(a){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(a)),o.style.order=n.config.tooltip.inverseOrder?e-a:a+1;var s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker"),s.style.backgroundColor=n.globals.colors[a],o.appendChild(s);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(n);var r=document.createElement("span");r.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(r),l.appendChild(t)})),o.appendChild(l),i.appendChild(o),r.push(o)},o=0;o<e;o++)a(o);return r}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,n=this.getElTooltip(),r=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),i="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,a=e.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var s,l=[],c=[],u={hoverArea:a,elGrid:o,tooltipEl:n,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(i?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):r?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),s&&s.length))for(var d=0;d<s.length;d++)l.push(s[d].getAttribute("cy")),c.push(s[d].getAttribute("cx"));
vendor: 8,512 bytes, line 2
2if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||r&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([a],u);else if(r&&!e.globals.comboCharts||i&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(h,u)}if(this.showOnIntersect){var f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),n=t.getBoundingClientRect(),r=n.width+10,i=n.height+10,a=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(a=a+e.globals.svgWidth-r+10),s.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-i-10),t.style.left=a+"px",t.style.top=o+"px",{x:a,y:o,ttWidth:r,ttHeight:i}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var n=this,r=function(r){var i={paths:e[r],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[r].addEventListener(t,n.onSeriesHover.bind(n,i),{capture:!1,passive:!0})}))},i=0;i<e.length;i++)r(i)}},{key:"onSeriesHover",value:function(e,t){var n=this,r=Date.now()-this.lastHoverTime;r>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){n.seriesHover(e,t)}),100-r))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var r=[],i=this.w;i.config.chart.group&&(r=this.ctx.getGroupedCharts()),i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||0===i.globals.dataPoints)||(r.length?r.forEach((function(r){var i=n.getElTooltip(r),a={paths:e.paths,tooltipEl:i,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:r.w.globals.tooltip.ttItems};r.w.globals.minX===n.w.globals.minX&&r.w.globals.maxX===n.w.globals.maxX&&r.w.globals.tooltip.seriesHoverByContext({chartCtx:r,ttCtx:r.w.globals.tooltip,opt:a,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,n=e.ttCtx,r=e.opt,i=e.e,a=t.w,o=this.getElTooltip(t);o&&(n.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},n.e=i,!n.tooltipUtil.hasBars()||a.globals.comboCharts||n.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new $(t).toggleSeriesOnHover(i,i.target.parentNode),n.fixedTooltip&&n.drawFixedTooltipRect(),a.globals.axisCharts?n.axisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,n,r=e.e,i=e.opt,a=this.w,o=i.elGrid.getBoundingClientRect(),s="touchmove"===r.type?r.touches[0].clientX:r.clientX,l="touchmove"===r.type?r.touches[0].clientY:r.clientY;if(this.clientY=l,this.clientX=s,a.globals.capturedSeriesIndex=-1,a.globals.capturedDataPointIndex=-1,l<o.top||l>o.top+o.height)this.handleMouseOut(i);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){var c=parseInt(i.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(i)}var u=this.getElTooltip(),d=this.getElXCrosshairs(),h=[];a.config.chart.group&&(h=this.ctx.getSyncedCharts());var f=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===r.type||"touchmove"===r.type||"mouseup"===r.type){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),f&&!this.showOnIntersect||h.length>1)this.handleStickyTooltip(r,s,l,i);else if("heatmap"===a.config.chart.type||"treemap"===a.config.chart.type){var g=this.intersect.handleHeatTreeTooltip({e:r,opt:i,x:t,y:n,type:a.config.chart.type});t=g.x,n=g.y,u.style.left=t+"px",u.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:r,opt:i}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:r,opt:i,x:t,y:n});if(this.yaxisTooltips.length)for(var m=0;m<a.config.yaxis.length;m++)this.axesTooltip.drawYaxisTooltipText(m,l,this.xyRatios);a.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),i.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==r.type&&"touchend"!==r.type||this.handleMouseOut(i)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,n=e.opt,r=e.tooltipRect,i=this.w,a=n.paths.getAttribute("rel"),o=this.getElTooltip(),s=i.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){i.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:parseInt(a,10)-1,shared:!1});var l=i.globals.clientX-s.left-r.ttWidth/2,c=i.globals.clientY-s.top-r.ttHeight-10;if(o.style.left=l+"px",o.style.top=c+"px",i.config.legend.tooltipHoverFormatter){var u=a-1,d=(0,i.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:i});this.legendLabels[u].innerHTML=d}}else"mouseout"!==t.type&&"touchend"!==t.type||(o.classList.remove("apexcharts-active"),i.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),i.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})))}},{key:"handleStickyTooltip",value:function(e,t,n,r){var i=this.w,a=this.tooltipUtil.getNearestValues({context:this,hoverArea:r.hoverArea,elGrid:r.elGrid,clientX:t,clientY:n}),o=a.j,s=a.capturedSeries;i.globals.collapsedSeriesIndices.includes(s)&&(s=null);var l=r.elGrid.getBoundingClientRect();if(a.hoverX<0||a.hoverX>l.width)this.handleMouseOut(r);else if(null!==s)this.handleStickyCapturedSeries(e,s,r,o);else if(this.tooltipUtil.isXoverlap(o)||i.globals.isBarHorizontal){var c=i.globals.series.findIndex((function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,c,o,r.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,n,r){var i=this.w;if(this.tConfig.shared||null!==i.globals.series[t][r]){if(void 0!==i.globals.series[t][r])this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,n.ttItems):this.create(e,this,t,r,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(r)){var a=i.globals.series.findIndex((function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,a,r,n.ttItems)}}else this.handleMouseOut(n)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new P(this.ctx),n=e.globals.dom.Paper.select(".apexcharts-bar-area"),r=0;r<n.length;r++)t.pathMouseLeave(n[r])}},{key:"handleMouseOut",value:function(e){var t=this.w,n=this.getElXCrosshairs();if(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==n&&n.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var r=0;r<this.yaxisTTEls.length;r++)this.yaxisTTEls[r].classList.remove("apexcharts-active")}
2t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"markerClick",value:function(e,t,n){var r=this.w;"function"==typeof r.config.chart.events.markerClick&&r.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}])}},{key:"create",value:function(e,t,n,r,i){var a,o,s,l,c,u,d,h,f,p,g,y,b,v,x,w,k=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,A=this.w,E=t;"mouseup"===e.type&&this.markerClick(e,n,r),null===k&&(k=this.tConfig.shared);var S=this.tooltipUtil.hasMarkers(n),C=this.tooltipUtil.getElBars();if(A.config.legend.tooltipHoverFormatter){var O=A.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var N=0;N<T.length;N++){var _=T[N],I=parseInt(_.getAttribute("i"),10),R=decodeURIComponent(_.getAttribute("data:default-text")),M=O(R,{seriesIndex:k?I:n,dataPointIndex:r,w:A});if(k)_.innerHTML=A.globals.collapsedSeriesIndices.indexOf(I)<0?M:R;else if(_.innerHTML=I===n?M:R,n===I)break}}var j=m(m({ttItems:i,i:n,j:r},void 0!==(null===(a=A.globals.seriesRange)||void 0===a||null===(o=a[n])||void 0===o||null===(s=o[r])||void 0===s||null===(l=s.y[0])||void 0===l?void 0:l.y1)&&{y1:null===(c=A.globals.seriesRange)||void 0===c||null===(u=c[n])||void 0===u||null===(d=u[r])||void 0===d||null===(h=d.y[0])||void 0===h?void 0:h.y1}),void 0!==(null===(f=A.globals.seriesRange)||void 0===f||null===(p=f[n])||void 0===p||null===(g=p[r])||void 0===g||null===(y=g.y[0])||void 0===y?void 0:y.y2)&&{y2:null===(b=A.globals.seriesRange)||void 0===b||null===(v=b[n])||void 0===v||null===(x=v[r])||void 0===x||null===(w=x.y[0])||void 0===w?void 0:w.y2});if(k){if(E.tooltipLabels.drawSeriesTexts(m(m({},j),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),S)A.globals.markers.largestSize>0?E.marker.enlargePoints(r):E.tooltipPosition.moveDynamicPointsOnHover(r);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(C),this.barSeriesHeight>0)){var L=new P(this.ctx),B=A.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(r,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(r,n);for(var F=0;F<B.length;F++)L.pathMouseEnter(B[F])}}else E.tooltipLabels.drawSeriesTexts(m({shared:!1},j)),this.tooltipUtil.hasBars()&&E.tooltipPosition.moveStickyTooltipOverBars(r,n),S&&E.tooltipPosition.moveMarkers(n,r)}}]),e}(),Pe=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return l(e,[{key:"handleBarDataLabels",value:function(e){var t,n,r=e.x,i=e.y,a=e.y1,o=e.y2,s=e.i,l=e.j,c=e.realIndex,u=e.columnGroupIndex,d=e.series,h=e.barHeight,f=e.barWidth,p=e.barXPosition,g=e.barYPosition,y=e.visibleSeries,b=e.renderedPath,v=this.w,x=new P(this.barCtx.ctx),w=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[c]:this.barCtx.strokeWidth;v.globals.isXNumeric&&!v.globals.isBarHorizontal?(t=r+parseFloat(f*(y+1)),n=i+parseFloat(h*(y+1))-w):(t=r+parseFloat(f*y),n=i+parseFloat(h*y));var k,A,E=null,S=r,C=i,O=v.config.dataLabels,T=this.barCtx.barOptions.dataLabels,N=this.barCtx.barOptions.dataLabels.total;void 0!==g&&this.barCtx.isRangeBar&&(n=g,C=g),void 0!==p&&this.barCtx.isVerticalGroupedRangeBar&&(t=p,S=p);var _=O.offsetX,I=O.offsetY,R={width:0,height:0};if(v.config.dataLabels.enabled){var M=v.globals.series[s][l];R=x.getTextRects(v.config.dataLabels.formatter?v.config.dataLabels.formatter(M,m(m({},v),{},{seriesIndex:s,dataPointIndex:l,w:v})):v.globals.yLabelFormatters[0](M),parseFloat(O.style.fontSize))}var j={x:r,y:i,i:s,j:l,realIndex:c,columnGroupIndex:u,renderedPath:b,bcx:t,bcy:n,barHeight:h,barWidth:f,textRects:R,strokeWidth:w,dataLabelsX:S,dataLabelsY:C,dataLabelsConfig:O,barDataLabelsConfig:T,barTotalDataLabelsConfig:N,offX:_,offY:I};return A=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(j):this.calculateColumnsDataLabelsPosition(j),b.attr({cy:A.bcy,cx:A.bcx,j:l,val:v.globals.series[s][l],barHeight:h,barWidth:f}),k=this.drawCalculatedDataLabels({x:A.dataLabelsX,y:A.dataLabelsY,val:this.barCtx.isRangeBar?[a,o]:"100%"===v.config.chart.stackType?d[c][l]:v.globals.series[c][l],i:c,j:l,barWidth:f,barHeight:h,textRects:R,dataLabelsConfig:O}),v.config.chart.stacked&&N.enabled&&(E=this.drawTotalDataLabels({x:A.totalDataLabelsX,y:A.totalDataLabelsY,barWidth:f,barHeight:h,realIndex:c,textAnchor:A.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:c,j:l}),dataLabelsConfig:O,barTotalDataLabelsConfig:N})),{dataLabels:k,totalDataLabels:E}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,n=e.j,r
2=this.w,i=this.barCtx.stackedSeriesTotals[n];return this.totalFormatter&&(i=this.totalFormatter(i,m(m({},r),{},{seriesIndex:t,dataPointIndex:n,w:r}))),i}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t=this.w,n=e.i,r=e.j,i=e.realIndex;e.columnGroupIndex;var a,o,s=e.y,l=e.bcx,c=e.barWidth,u=e.barHeight,d=e.textRects,h=e.dataLabelsX,f=e.dataLabelsY,p=e.dataLabelsConfig,g=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,y=e.strokeWidth,b=e.offX,v=e.offY,x=l;u=Math.abs(u);var w="vertical"===t.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:n,j:r}).zeroEncounters;l-=y/2;var A=t.globals.gridWidth/t.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?h+=c/2:(h=t.globals.isXNumeric?l-c/2+b:l-A+c/2+b,k>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(h-=c*k)),w&&(h=h+d.height/2-y/2-2);var E=t.globals.series[n][r]<0,S=s;switch(this.barCtx.isReversed&&(S=s+(E?u:-u)),g.position){case"center":f=w?E?S-u/2+v:S+u/2-v:E?S-u/2+d.height/2+v:S+u/2+d.height/2-v;break;case"bottom":f=w?E?S-u+v:S+u-v:E?S-u+d.height+y+v:S+u-d.height/2+y-v;break;case"top":f=w?E?S+v:S-v:E?S-d.height/2-v:S+d.height+v}if(this.barCtx.lastActiveBarSerieIndex===i&&m.enabled){var C=new P(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:i,j:r}),p.fontSize);a=E?S-C.height/2-v-m.offsetY+18:S+C.height+v+m.offsetY-18;var O=A;o=x+(t.globals.isXNumeric?-c*t.globals.barGroups.length/2:t.globals.barGroups.length*c/2-(t.globals.barGroups.length-1)*c-O)+m.offsetX}return t.config.chart.stacked||(f<0?f=0+y:f+d.height/3>t.globals.gridHeight&&(f=t.globals.gridHeight-y)),{bcx:l,bcy:s,dataLabelsX:h,dataLabelsY:f,totalDataLabelsX:o,totalDataLabelsY:a,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,n=e.x,r=e.i,i=e.j,a=e.realIndex,o=e.bcy,s=e.barHeight,l=e.barWidth,c=e.textRects,u=e.dataLabelsX,d=e.strokeWidth,h=e.dataLabelsConfig,f=e.barDataLabelsConfig,p=e.barTotalDataLabelsConfig,g=e.offX,m=e.offY,y=t.globals.gridHeight/t.globals.dataPoints;l=Math.abs(l);var b,v,x=o-(this.barCtx.isRangeBar?0:y)+s/2+c.height/2+m-3,w="start",k=t.globals.series[r][i]<0,A=n;switch(this.barCtx.isReversed&&(A=n+(k?-l:l),w=k?"start":"end"),f.position){case"center":u=k?A+l/2-g:Math.max(c.width/2,A-l/2)+g;break;case"bottom":u=k?A+l-d-g:A-l+d+g;break;case"top":u=k?A-d-g:A-d+g}if(this.barCtx.lastActiveBarSerieIndex===a&&p.enabled){var E=new P(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:i}),h.fontSize);k?(b=A-d-g-p.offsetX,w="end"):b=A+g+p.offsetX+(this.barCtx.isReversed?-(l+d):d),v=x-c.height/2+E.height/2+p.offsetY+d}return t.config.chart.stacked||("start"===h.textAnchor?u-c.width<0?u=k?c.width+d:d:u+c.width>t.globals.gridWidth&&(u=k?t.globals.gridWidth-d:t.globals.gridWidth-c.width-d):"middle"===h.textAnchor?u-c.width/2<0?u=c.width/2+d:u+c.width/2>t.globals.gridWidth&&(u=t.globals.gridWidth-c.width/2-d):"end"===h.textAnchor&&(u<1?u=c.width+d:u+1>t.globals.gridWidth&&(u=t.globals.gridWidth-c.width-d))),{bcx:n,bcy:o,dataLabelsX:u,dataLabelsY:x,totalDataLabelsX:b,totalDataLabelsY:v,totalDataLabelsAnchor:w}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,i=e.i,a=e.j,o=e.textRects,s=e.barHeight,l=e.barWidth,c=e.dataLabelsConfig,u=this.w,d="rotate(0)";"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(t,", ").concat(n,")"));var h=new X(this.barCtx.ctx),f=new P(this.barCtx.ctx),p=c.formatter,g=null,y=u.globals.collapsedSeriesIndices.indexOf(i)>-1;if(c.enabled&&!y){g=f.group({class:"apexcharts-data-labels",transform:d});var b="";void 0!==r&&(b=p(r,m(m({},u),{},{seriesIndex:i,dataPointIndex:a,w:u}))),!r&&u.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b="");var v=u.globals.series[i][a]<0,x=u.config.plotOptions.bar.dataLabels.position;"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&("top"===x&&(c.textAnchor=v?"end":"start"),"center"===x&&(c.textAnchor="middle"),"bottom"===x&&(c.textAnchor=v?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<f.getTextRects(b,parseFloat(c.style.fontSize)).width&&(b=""),u.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(l)&&(b=""):o.height/1.6>Math.abs(s)&&(b=""));var w=m({},c);this.barCtx.isHorizontal&&r<0&&("start"===c.textAnchor?w.textAnchor="end":"end"===c.textAnchor&&(w.textAnchor="start")),h.plotDataLabelsText({x:t,y:n,text:b,i:i,j:a,parent:g,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0}
2)}return g}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,i=e.realIndex,a=e.textAnchor,o=e.barTotalDataLabelsConfig;this.w;var s,l=new P(this.barCtx.ctx);return o.enabled&&void 0!==t&&void 0!==n&&this.barCtx.lastActiveBarSerieIndex===i&&(s=l.drawText({x:t,y:n,foreColor:o.style.color,text:r,textAnchor:a,fontFamily:o.style.fontFamily,fontSize:o.style.fontSize,fontWeight:o.style.fontWeight})),s}}]),e}(),Ce=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t}return l(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var r=0;r<e[n].length;r++)t.globals.seriesX[n][r]>t.globals.minX&&t.globals.seriesX[n][r]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.globals.series),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,n,r,i,a,o,s,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var u=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)i=(n=l.globals.gridHeight/c)/u,l.globals.isXNumeric&&(i=(n=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),i=i*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(i=parseInt(this.barCtx.barOptions.barHeight,10)),s=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(s=l.globals.gridWidth/2),t=(n-i*this.barCtx.seriesLen)/2;else{if(r=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(r=l.globals.gridWidth/l.globals.dataPoints),a=r/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(r=l.globals.minXDiff/d),(a=r/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(a=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(a=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),e=l.globals.padHorizontal+(r-a*this.barCtx.seriesLen)/2}return l.globals.barHeight=i,l.globals.barWidth=a,{x:e,y:t,yDivision:n,xDivision:r,barHeight:i,barWidth:a,zeroH:o,zeroW:s}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]}))}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]}))}},{key:"getPathFillColor",value:function(e,t,n,r){var i,a,o,s,l,c=this.w,u=this.barCtx.ctx.fill,d=null,h=this.barCtx.barOptions.distributed?n:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(r){e[t][n]>=r.from&&e[t][n]<=r.to&&(d=r.color)})),null!==(i=c.config.series[t].data[n])&&void 0!==i&&i.fillColor&&(d=c.config.series[t].data[n].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?h:r,dataPointIndex:n,color:d,value:e[t][n],fillConfig:null===(a=c.config.series[t].data[n])||void 0===a?void 0:a.fill,fillType:null!==(o=c.config.series[t].data[n])&&void 0!==o&&null!==(s=o.fill)&&void 0!==s&&s.type?null===(l=c.config.series[t].data[n])||void 0===l?void 0:l.fill.type:Array.isArray(c.config.fill.type)?c.config.fill.type[r]:c.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,n){var r=0,i=this.w;return this.barCtx.series[e][t]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,i.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),r}},{key:"createBorderRadiusArr",value:function(e){var t=this.w,n=!this.w.config.chart.stacked||"last"!==t.config.plotOptions.bar.borderRadiusWhenStacked||t.config.plotOptions.bar.borderRadius<=0,r=e.length,i=e[0].length,a=Array.from({length:r},(function(){return Array(i).fill(n?"top":"none")}));if(n)return a;for(var o=0;o<i;o++){for(var s=[],l=[],u=0,d=0;d<r;d++){var h=e[d][o];h>0?(s.push(d),u++):h<0&&(l.push(d),u++)}if(s.length>0&&0===l.length)if(1===s.length)a[s[0]][o]="both";else{var f,p=s[0],g=s[s.length-1],m=c(s);try{for(m.s();!(f=m.n()).done;){var y=f.value;a[y][o]=y===p?"bottom":y===g?"top":"none"}}catch(e){m.e(e)}finally{m.f()}}else if(l.length>0&&0===s.length)if(1===l.length)a[l[0]][o]="both";else{var b,v=l[0],x=l[l.length-1],w=c(l);try{for(w.s();!(b=w.n()).done;){var k=b.value;a[k][o]=k===v?"bottom":k===x?"top":"none"}}catch(e){w.e(e)}finally{w.f()}}else if(s.length>0&&l.length>0){var A,E=s[s.length-1],S=c(s);try{for(S.s();!(A=S.n()).done;){var P=A.value;a[P][o]=P===E?"top":"none"}}catch(e){S.e(e)}finally{S.f()}var C,O=l[l.length-1],T=c(l);try{for(T.s();!(C=T.n()).done;){var N=C.value;a[N][o]=N===O?"bottom":"none"}}catch(e){T.e(e)}finally{T.f()}}else 1===u&&(a[s[0]||l[0]][o]="both")}return a}}
2,{key:"barBackground",value:function(e){var t=e.j,n=e.i,r=e.x1,i=e.x2,a=e.y1,o=e.y2,s=e.elSeries,l=this.w,c=new P(this.barCtx.ctx),u=new $(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===n){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],h=c.drawRect(void 0!==r?r:0,void 0!==a?a:0,void 0!==i?i:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,n=e.barWidth,r=e.barXPosition,i=e.y1,a=e.y2,o=e.strokeWidth,s=e.isReversed,l=e.series,c=e.seriesGroup,u=e.realIndex,d=e.i,h=e.j,f=e.w,p=new P(this.barCtx.ctx);(o=Array.isArray(o)?o[u]:o)||(o=0);var g=n,m=r;null!==(t=f.config.series[u].data[h])&&void 0!==t&&t.columnWidthOffset&&(m=r-f.config.series[u].data[h].columnWidthOffset/2,g=n+f.config.series[u].data[h].columnWidthOffset);var y=o/2,b=m+y,v=m+g-y,x=(l[d][h]>=0?1:-1)*(s?-1:1);i+=.001-y*x,a+=.001+y*x;var w=p.move(b,i),k=p.move(b,i),A=p.line(v,i);if(f.globals.previousPaths.length>0&&(k=this.barCtx.getPreviousPath(u,h,!1)),w=w+p.line(b,a)+p.line(v,a)+A+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),k=k+p.line(b,i)+A+A+A+A+A+p.line(b,i)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),"none"!==this.arrBorderRadius[u][h]&&(w=p.roundPathCorners(w,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var E=this.barCtx;(E=this.barCtx[c]).yArrj.push(a-y*x),E.yArrjF.push(Math.abs(i-a+o*x)),E.yArrjVal.push(this.barCtx.series[d][h])}return{pathTo:w,pathFrom:k}}},{key:"getBarpaths",value:function(e){var t,n=e.barYPosition,r=e.barHeight,i=e.x1,a=e.x2,o=e.strokeWidth,s=e.isReversed,l=e.series,c=e.seriesGroup,u=e.realIndex,d=e.i,h=e.j,f=e.w,p=new P(this.barCtx.ctx);(o=Array.isArray(o)?o[u]:o)||(o=0);var g=n,m=r;null!==(t=f.config.series[u].data[h])&&void 0!==t&&t.barHeightOffset&&(g=n-f.config.series[u].data[h].barHeightOffset/2,m=r+f.config.series[u].data[h].barHeightOffset);var y=o/2,b=g+y,v=g+m-y,x=(l[d][h]>=0?1:-1)*(s?-1:1);i+=.001+y*x,a+=.001-y*x;var w=p.move(i,b),k=p.move(i,b);f.globals.previousPaths.length>0&&(k=this.barCtx.getPreviousPath(u,h,!1));var A=p.line(i,v);if(w=w+p.line(a,b)+p.line(a,v)+A+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),k=k+p.line(i,b)+A+A+A+A+A+p.line(i,b)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),"none"!==this.arrBorderRadius[u][h]&&(w=p.roundPathCorners(w,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var E=this.barCtx;(E=this.barCtx[c]).xArrj.push(a+y*x),E.xArrjF.push(Math.abs(i-a-o*x)),E.xArrjVal.push(this.barCtx.series[d][h])}return{pathTo:w,pathFrom:k}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,n=this.w,r=0;r<t.length;r++){for(var i=0,a=0;a<t[n.globals.maxValsInArrayIndex].length;a++)i+=t[r][a];0===i&&this.barCtx.zeroSerieses.push(r)}}},{key:"getXForValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:t;return null!=e&&(r=t-e/this.barCtx.yRatio[n]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[n]:0)),r}},{key:"getGoalValues",value:function(e,t,n,r,i,a){var o=this,s=this.w,l=[],c=function(r,i){var s;l.push((d(s={},e,"x"===e?o.getXForValue(r,t,!1):o.getYForValue(r,n,a,!1)),d(s,"attrs",i),s))};if(s.globals.seriesGoals[r]&&s.globals.seriesGoals[r][i]&&Array.isArray(s.globals.seriesGoals[r][i])&&s.globals.seriesGoals[r][i].forEach((function(e){c(e.value,e)})),this.barCtx.barOptions.isDumbbell&&s.globals.seriesRange.length){var u=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:s.globals.colors,h={strokeHeight:"x"===e?0:s.globals.markers.size[r],strokeWidth:"x"===e?s.globals.markers.size[r]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(u[r])?u[r][0]:u[r]};c(s.globals.seriesRangeStart[r][i],h),c(s.globals.seriesRangeEnd[r][i],m(m({},h),{},{strokeColor:Array.isArray(u[r])?u[r][1]:u[r]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,r=e.goalX,i=e.goalY,a=e.barWidth,o=e.barHeight,s=new P(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach((function(e){if(e.x>=-1&&e.x<=s.w.globals.gridWidth+1){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:o/2,r=n+t
2+o/2;c=s.drawLine(e.x,r-2*t,e.x,r,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)}})):Array.isArray(i)&&i.forEach((function(e){if(e.y>=-1&&e.y<=s.w.globals.gridHeight+1){var n=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:a/2,r=t+n+a/2;c=s.drawLine(r-2*n,e.y,r,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)}})),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,n=e.currPaths,r=e.color,i=this.w,a=t.x,o=t.x1,s=t.barYPosition,l=n.x,c=n.x1,u=n.barYPosition,d=s+n.barHeight,h=new P(this.barCtx.ctx),f=new A,p=h.move(o,d)+h.line(a,d)+h.line(l,u)+h.line(c,u)+h.line(o,d)+("around"===i.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[realIndex][j]?" Z":" z");return h.drawPath({d:p,fill:f.shadeColor(.5,A.rgb2hex(r)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t,n=e.i,r=e.j,i=this.w,a=0,o=0;return(i.config.plotOptions.bar.horizontal?i.globals.series.map((function(e,t){return t})):(null===(t=i.globals.columnSeries)||void 0===t?void 0:t.i.map((function(e){return e})))||[]).forEach((function(e){var t=i.globals.seriesPercent[e][r];t&&a++,e<n&&0===t&&o++})),{nonZeroColumns:a,zeroEncounters:o}}},{key:"getGroupIndex",value:function(e){var t=this.w,n=t.globals.seriesGroups.findIndex((function(n){return n.indexOf(t.globals.seriesNames[e])>-1})),r=this.barCtx.columnGroupIndices,i=r.indexOf(n);return i<0&&(r.push(n),i=r.length-1),{groupIndex:n,columnGroupIndex:i}}}]),e}(),Oe=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.barOptions=r.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=r.config.stroke.width,this.isNullValue=!1,this.isRangeBar=r.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!r.globals.isBarHorizontal&&r.globals.seriesRange.length&&r.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var i=new $(this.ctx);this.lastActiveBarSerieIndex=i.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var a=i.getBarSeriesIndices(),s=new C(this.ctx);this.stackedSeriesTotals=s.getStackedSeriesTotals(this.w.config.series.map((function(e,t){return-1===a.indexOf(t)?t:-1})).filter((function(e){return-1!==e}))),this.barHelpers=new Ce(this)}return l(e,[{key:"draw",value:function(e,t){var n=this.w,r=new P(this.ctx),i=new C(this.ctx,n);e=i.getLogSeries(e),this.series=e,this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var a=r.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var o=0,s=0;o<e.length;o++,s++){var l,c,u,d,h=void 0,f=void 0,p=[],g=[],y=n.globals.comboCharts?t[o]:o,b=this.barHelpers.getGroupIndex(y).columnGroupIndex,v=r.group({class:"apexcharts-series",rel:o+1,seriesName:A.escapeString(n.globals.seriesNames[y]),"data:realIndex":y});this.ctx.series.addCollapsedClassToSeries(v,y),e[o].length>0&&(this.visibleI=this.visibleI+1);var x=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[y],this.translationsIndex=y);var k=this.translationsIndex;this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var E=this.barHelpers.initialPositions();f=E.y,x=E.barHeight,c=E.yDivision,d=E.zeroW,h=E.x,w=E.barWidth,l=E.xDivision,u=E.zeroH,this.horizontal||g.push(h+w/2);var S=r.group({class:"apexcharts-datalabels","data:realIndex":y});n.globals.delayedElements.push({el:S.node}),S.node.classList.add("apexcharts-element-hidden");var O=r.group({class:"apexcharts-bar-goals-markers"}),T=r.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:T.node}),T.node.classList.add("apexcharts-element-hidden");for(var N=0;N<e[o].length;N++){var _=this.barHelpers.getStrokeWidth(o,N,y),I=null,R={indexes:{i:o,j:N,realIndex:y,translationsIndex:k,bc:s},x:h,y:f,strokeWidth:_,elSeries:v};this.isHorizontal?(I=this.drawBarPaths(m(m({},R),{}
2,{barHeight:x,zeroW:d,yDivision:c})),w=this.series[o][N]/this.invertedYRatio):(I=this.drawColumnPaths(m(m({},R),{},{xDivision:l,barWidth:w,zeroH:u})),x=this.series[o][N]/this.yRatio[k]);var M=this.barHelpers.getPathFillColor(e,o,N,y);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&N>0){var j=this.barHelpers.drawBarShadow({color:"string"==typeof M&&-1===(null==M?void 0:M.indexOf("url"))?M:A.hexToRgba(n.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:I});j&&T.add(j)}this.pathArr.push(I);var L=this.barHelpers.drawGoalLine({barXPosition:I.barXPosition,barYPosition:I.barYPosition,goalX:I.goalX,goalY:I.goalY,barHeight:x,barWidth:w});L&&O.add(L),f=I.y,h=I.x,N>0&&g.push(h+w/2),p.push(f),this.renderSeries({realIndex:y,pathFill:M,j:N,i:o,columnGroupIndex:b,pathFrom:I.pathFrom,pathTo:I.pathTo,strokeWidth:_,elSeries:v,x:h,y:f,series:e,barHeight:Math.abs(I.barHeight?I.barHeight:x),barWidth:Math.abs(I.barWidth?I.barWidth:w),elDataLabelsWrap:S,elGoalsMarkers:O,elBarShadows:T,visibleSeries:this.visibleI,type:"bar"})}n.globals.seriesXvalues[y]=g,n.globals.seriesYvalues[y]=p,a.add(v)}return a}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,r=e.lineFill,i=e.j,a=e.i,o=e.columnGroupIndex,s=e.pathFrom,l=e.pathTo,c=e.strokeWidth,u=e.elSeries,d=e.x,h=e.y,f=e.y1,p=e.y2,g=e.series,m=e.barHeight,y=e.barWidth,b=e.barXPosition,v=e.barYPosition,x=e.elDataLabelsWrap,w=e.elGoalsMarkers,k=e.elBarShadows,A=e.visibleSeries,E=e.type,C=e.classes,O=this.w,T=new P(this.ctx);if(!r){var N="function"==typeof O.globals.stroke.colors[t]?function(e){var t,n=O.config.stroke.colors;return Array.isArray(n)&&n.length>0&&((t=n[e])||(t=""),"function"==typeof t)?t({value:O.globals.series[e][i],dataPointIndex:i,w:O}):t}(t):O.globals.stroke.colors[t];r=this.barOptions.distributed?O.globals.stroke.colors[i]:N}O.config.series[a].data[i]&&O.config.series[a].data[i].strokeColor&&(r=O.config.series[a].data[i].strokeColor),this.isNullValue&&(n="none");var _=i/O.config.chart.animations.animateGradually.delay*(O.config.chart.animations.speed/O.globals.dataPoints)/2.4,I=T.renderPaths({i:a,j:i,realIndex:t,pathFrom:s,pathTo:l,stroke:r,strokeWidth:c,strokeLineCap:O.config.stroke.lineCap,fill:n,animationDelay:_,initialSpeed:O.config.chart.animations.speed,dataChangeSpeed:O.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(E,"-area ").concat(C),chartType:E});I.attr("clip-path","url(#gridRectBarMask".concat(O.globals.cuid,")"));var R=O.config.forecastDataPoints;R.count>0&&i>=O.globals.dataPoints-R.count&&(I.node.setAttribute("stroke-dasharray",R.dashArray),I.node.setAttribute("stroke-width",R.strokeWidth),I.node.setAttribute("fill-opacity",R.fillOpacity)),void 0!==f&&void 0!==p&&(I.attr("data-range-y1",f),I.attr("data-range-y2",p)),new S(this.ctx).setSelectionFilter(I,t,i),u.add(I);var M=new Pe(this).handleBarDataLabels({x:d,y:h,y1:f,y2:p,i:a,j:i,series:g,realIndex:t,columnGroupIndex:o,barHeight:m,barWidth:y,barXPosition:b,barYPosition:v,renderedPath:I,visibleSeries:A});return null!==M.dataLabels&&x.add(M.dataLabels),M.totalDataLabels&&x.add(M.totalDataLabels),u.add(x),w&&u.add(w),k&&u.add(k),u}},{key:"drawBarPaths",value:function(e){var t,n=e.indexes,r=e.barHeight,i=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.yDivision,c=e.elSeries,u=this.w,d=n.i,h=n.j;if(u.globals.isXNumeric)t=(s=(u.globals.seriesX[d][h]-u.globals.minX)/this.invertedXRatio-r)+r*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var f=0,p=0;u.globals.seriesPercent.forEach((function(e,t){e[h]&&f++,t<d&&0===e[h]&&p++})),f>0&&(r=this.seriesLen*r/f),t=s+r*this.visibleI,t-=r*p}else t=s+r*this.visibleI;this.isFunnel&&(a-=(this.barHelpers.getXForValue(this.series[d][h],a)-a)/2),o=this.barHelpers.getXForValue(this.series[d][h],a);var g=this.barHelpers.getBarpaths({barYPosition:t,barHeight:r,x1:a,x2:o,strokeWidth:i,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,i:d,j:h,w:u});return u.globals.isXNumeric||(s+=l),this.barHelpers.barBackground({j:h,i:d,y1:t-r*this.visibleI,y2:r*this.seriesLen,elSeries:c}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x1:a,x:o,y:s,goalX:this.barHelpers.getGoalValues("x",a,null,d,h),barYPosition:t,barHeight:r}}},{key:"drawColumnPaths",value:function(e){var t,n=e.indexes,r=e.x,i=e.y,a=e.xDivision,o=e.barWidth,s=e.zeroH,l=e.strokeWidth,c=e.elSeries,u=this.w,d=n.realIndex,h=n.translationsIndex,f=n.i,p=n.j,g=n.bc;if(u.globals.isXNumeric){var m=this.getBarXForNumericXAxis({x:r,j:p,realIndex:d,barWidth:o});r=m.x,t=m.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var y=this.barHelpers.getZeroValueEncounters({i:f,j:p}),b=y.nonZeroColumns,v=y.zeroEncounters;b>
20&&(o=this.seriesLen*o/b),t=r+o*this.visibleI,t-=o*v}else t=r+o*this.visibleI;i=this.barHelpers.getYForValue(this.series[f][p],s,h);var x=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:o,y1:s,y2:i,strokeWidth:l,isReversed:this.isReversed,series:this.series,realIndex:d,i:f,j:p,w:u});return u.globals.isXNumeric||(r+=a),this.barHelpers.barBackground({bc:g,j:p,i:f,x1:t-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:c}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:r,y:i,goalY:this.barHelpers.getGoalValues("y",null,s,f,p,h),barXPosition:t,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,n=e.barWidth,r=e.realIndex,i=e.j,a=this.w,o=r;return a.globals.seriesX[r].length||(o=a.globals.maxValsInArrayIndex),a.globals.seriesX[o][i]&&(t=(a.globals.seriesX[o][i]-a.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:t+n*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var n,r=this.w,i=0;i<r.globals.previousPaths.length;i++){var a=r.globals.previousPaths[i];a.paths&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==r.globals.previousPaths[i].paths[t]&&(n=r.globals.previousPaths[i].paths[t].d)}return n}}]),e}(),Te=function(){f(t,Oe);var e=u(t);function t(){return o(this,t),e.apply(this,arguments)}return l(t,[{key:"draw",value:function(e,t){var n=this,r=this.w;this.graphics=new P(this.ctx),this.bar=new Oe(this.ctx,this.xyRatios);var i=new C(this.ctx,r);e=i.getLogSeries(e),this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===r.config.chart.stackType&&(e=r.globals.comboCharts?t.map((function(e){return r.globals.seriesPercent[e]})):r.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var a=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),o=0,s=0,l=function(i,l){var c=void 0,u=void 0,d=void 0,h=void 0,f=r.globals.comboCharts?t[i]:i,p=n.barHelpers.getGroupIndex(f),g=p.groupIndex,y=p.columnGroupIndex;n.groupCtx=n[r.globals.seriesGroups[g]];var b=[],v=[],x=0;n.yRatio.length>1&&(n.yaxisIndex=r.globals.seriesYAxisReverseMap[f][0],x=f),n.isReversed=r.config.yaxis[n.yaxisIndex]&&r.config.yaxis[n.yaxisIndex].reversed;var w=n.graphics.group({class:"apexcharts-series",seriesName:A.escapeString(r.globals.seriesNames[f]),rel:i+1,"data:realIndex":f});n.ctx.series.addCollapsedClassToSeries(w,f);var k=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":f}),E=n.graphics.group({class:"apexcharts-bar-goals-markers"}),S=0,P=0,C=n.initialPositions(o,s,c,u,d,h,x);s=C.y,S=C.barHeight,u=C.yDivision,h=C.zeroW,o=C.x,P=C.barWidth,c=C.xDivision,d=C.zeroH,r.globals.barHeight=S,r.globals.barWidth=P,n.barHelpers.initializeStackedXYVars(n),1===n.groupCtx.prevY.length&&n.groupCtx.prevY[0].every((function(e){return isNaN(e)}))&&(n.groupCtx.prevY[0]=n.groupCtx.prevY[0].map((function(){return d})),n.groupCtx.prevYF[0]=n.groupCtx.prevYF[0].map((function(){return 0})));for(var O=0;O<r.globals.dataPoints;O++){var T=n.barHelpers.getStrokeWidth(i,O,f),N={indexes:{i:i,j:O,realIndex:f,translationsIndex:x,bc:l},strokeWidth:T,x:o,y:s,elSeries:w,columnGroupIndex:y,seriesGroup:r.globals.seriesGroups[g]},_=null;n.isHorizontal?(_=n.drawStackedBarPaths(m(m({},N),{},{zeroW:h,barHeight:S,yDivision:u})),P=n.series[i][O]/n.invertedYRatio):(_=n.drawStackedColumnPaths(m(m({},N),{},{xDivision:c,barWidth:P,zeroH:d})),S=n.series[i][O]/n.yRatio[x]);var I=n.barHelpers.drawGoalLine({barXPosition:_.barXPosition,barYPosition:_.barYPosition,goalX:_.goalX,goalY:_.goalY,barHeight:S,barWidth:P});I&&E.add(I),s=_.y,o=_.x,b.push(o),v.push(s);var R=n.barHelpers.getPathFillColor(e,i,O,f),M="";r.globals.isBarHorizontal?"bottom"===n.barHelpers.arrBorderRadius[f][O]&&r.globals.series[f][O]>0&&(M="apexcharts-flip-x"):"bottom"===n.barHelpers.arrBorderRadius[f][O]&&r.globals.series[f][O]>0&&(M="apexcharts-flip-y"),w=n.renderSeries({realIndex:f,pathFill:R,j:O,i:i,columnGroupIndex:y,pathFrom:_.pathFrom,pathTo:_.pathTo,strokeWidth:T,elSeries:w,x:o,y:s,series:e,barHeight:S,barWidth:P,elDataLabelsWrap:k,elGoalsMarkers:E,type:"bar",visibleSeries:y,classes:M})}r.globals.seriesXvalues[f]=b,r.globals.seriesYvalues[f]=v,n.groupCtx.prevY.push(n.groupCtx.yArrj),n.groupCtx.prevYF.push(n.groupCtx.yArrjF),n.groupCtx.prevYVal.push(n.groupCtx.yArrjVal),n.groupCtx.prevX.push(n.groupCtx.xArrj),n.groupCtx.prevXF.push(n.groupCtx.xArrjF),n.groupCtx.prevXVal.push(n.groupCtx.xArrjVal),a.add(w)},c=0,u=0;c<e.length;c++,u++)l(c,u);return a}},{key:"initialPositions",value:function(e,t,n,r,i,a,o){var s,l,c=this.w;if(this.isHorizontal){r=c.globals.gridHeight/c.globals.dataPoints;
vendor: 14,650 bytes, line 2
2var u=c.config.plotOptions.bar.barHeight;s=-1===String(u).indexOf("%")?parseInt(u,10):r*parseInt(u,10)/100,a=c.globals.padHorizontal+(this.isReversed?c.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(r-s)/2}else{l=n=c.globals.gridWidth/c.globals.dataPoints;var d=c.config.plotOptions.bar.columnWidth;c.globals.isXNumeric&&c.globals.dataPoints>1?l=(n=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(d).indexOf("%")?l=parseInt(d,10):l*=parseInt(d,10)/100,i=this.isReversed?this.baseLineY[o]:c.globals.gridHeight-this.baseLineY[o],e=c.globals.padHorizontal+(n-l)/2}var h=c.globals.barGroups.length||1;return{x:e,y:t,yDivision:r,xDivision:n,barHeight:s/h,barWidth:l/h,zeroH:i,zeroW:a}}},{key:"drawStackedBarPaths",value:function(e){for(var t,n=e.indexes,r=e.barHeight,i=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.columnGroupIndex,c=e.seriesGroup,u=e.yDivision,d=e.elSeries,h=this.w,f=s+l*r,p=n.i,g=n.j,m=n.realIndex,y=n.translationsIndex,b=0,v=0;v<this.groupCtx.prevXF.length;v++)b+=this.groupCtx.prevXF[v][g];var x;if((x=c.indexOf(h.config.series[m].name))>0){var w=a;this.groupCtx.prevXVal[x-1][g]<0?w=this.series[p][g]>=0?this.groupCtx.prevX[x-1][g]+b-2*(this.isReversed?b:0):this.groupCtx.prevX[x-1][g]:this.groupCtx.prevXVal[x-1][g]>=0&&(w=this.series[p][g]>=0?this.groupCtx.prevX[x-1][g]:this.groupCtx.prevX[x-1][g]-b+2*(this.isReversed?b:0)),t=w}else t=a;o=null===this.series[p][g]?t:t+this.series[p][g]/this.invertedYRatio-2*(this.isReversed?this.series[p][g]/this.invertedYRatio:0);var k=this.barHelpers.getBarpaths({barYPosition:f,barHeight:r,x1:t,x2:o,strokeWidth:i,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,seriesGroup:c,i:p,j:g,w:h});return this.barHelpers.barBackground({j:g,i:p,y1:f,y2:r,elSeries:d}),s+=u,{pathTo:k.pathTo,pathFrom:k.pathFrom,goalX:this.barHelpers.getGoalValues("x",a,null,p,g,y),barXPosition:t,barYPosition:f,x:o,y:s}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.y,i=e.xDivision,a=e.barWidth,o=e.zeroH,s=e.columnGroupIndex,l=e.seriesGroup,c=e.elSeries,u=this.w,d=t.i,h=t.j,f=t.bc,p=t.realIndex,g=t.translationsIndex;if(u.globals.isXNumeric){var m=u.globals.seriesX[p][h];m||(m=0),n=(m-u.globals.minX)/this.xRatio-a/2*u.globals.barGroups.length}for(var y,b=n+s*a,v=0,x=0;x<this.groupCtx.prevYF.length;x++)v+=isNaN(this.groupCtx.prevYF[x][h])?0:this.groupCtx.prevYF[x][h];var w=d;if(l&&(w=l.indexOf(u.globals.seriesNames[p])),w>0&&!u.globals.isXNumeric||w>0&&u.globals.isXNumeric&&u.globals.seriesX[p-1][h]===u.globals.seriesX[p][h]){var k,A,E,S=Math.min(this.yRatio.length+1,p+1);if(void 0!==this.groupCtx.prevY[w-1]&&this.groupCtx.prevY[w-1].length)for(var P=1;P<S;P++){var C;if(!isNaN(null===(C=this.groupCtx.prevY[w-P])||void 0===C?void 0:C[h])){E=this.groupCtx.prevY[w-P][h];break}}for(var O=1;O<S;O++){var T,N;if((null===(T=this.groupCtx.prevYVal[w-O])||void 0===T?void 0:T[h])<0){A=this.series[d][h]>=0?E-v+2*(this.isReversed?v:0):E;break}if((null===(N=this.groupCtx.prevYVal[w-O])||void 0===N?void 0:N[h])>=0){A=this.series[d][h]>=0?E:E+v-2*(this.isReversed?v:0);break}}void 0===A&&(A=u.globals.gridHeight),y=null!==(k=this.groupCtx.prevYF[0])&&void 0!==k&&k.every((function(e){return 0===e}))&&this.groupCtx.prevYF.slice(1,w).every((function(e){return e.every((function(e){return isNaN(e)}))}))?o:A}else y=o;r=this.series[d][h]?y-this.series[d][h]/this.yRatio[g]+2*(this.isReversed?this.series[d][h]/this.yRatio[g]:0):y;var _=this.barHelpers.getColumnPaths({barXPosition:b,barWidth:a,y1:y,y2:r,yRatio:this.yRatio[g],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:d,j:h,w:u});return this.barHelpers.barBackground({bc:f,j:h,i:d,x1:b,x2:a,elSeries:c}),{pathTo:_.pathTo,pathFrom:_.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,h),barXPosition:b,x:u.globals.isXNumeric?n:n+i,y:r}}}]),t}(),Ne=function(){f(t,Oe);var e=u(t);function t(){return o(this,t),e.apply(this,arguments)}return l(t,[{key:"draw",value:function(e,t,n){var r=this,i=this.w,a=new P(this.ctx),o=i.globals.comboCharts?t:i.config.chart.type,s=new G(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=i.config.plotOptions.bar.horizontal;var l=new C(this.ctx,i);e=l.getLogSeries(e),this.series=e,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var c=a.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),u=function(t){r.isBoxPlot="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[t].type;var o,l,u,d,h=void 0,f=void 0,p=[],g=[],y=i.globals.comboCharts?n[t]:t,b=r.barHelpers.getGroupIndex(y).columnGroupIndex,v=a.group({class:"apexcharts-series",seriesName:A.escapeString(i.globals.seriesNames[y]),rel:t+1,"data:realIndex":y});r.ctx.series.addCollapsedClassToSeries(v,y),e[t].length>0&&(r.visibleI=r.visibleI+1);var x,w,k=0;r.yRatio.length>1&&(r.yaxisIndex=i.globals.seriesYAxisReverseMap[y][0],k=y);var E=r.barHelpers.initialPositions();f=E.y,x=E.barHeight,l=E.yDivision,d=E.zeroW,h=E.x,w=E.barWidth,o=E.xDivision,u=E.zeroH,g.push(h+w/2);for(var S=a.group({class:"apexcharts-datalabels","data:realIndex":y}),P=function(n){var a=r.barHelpers.getStrokeWidth(t,n,y),c=null,A={indexes:{i:t,j:n,realIndex:y,translationsIndex:k},x:h,y:f,strokeWidth:a,elSeries:v};c=r.isHorizontal?r.drawHorizontalBoxPaths(m(m({},A),{},{yDivision:l,barHeight:x,zeroW:d})):r.drawVerticalBoxPaths(m(m({},A),{},{xDivision:o,barWidth:w,zeroH:u})),f=c.y,h=c.x,n>0&&g.push(h+w/2),p.push(f),c.pathTo.forEach((function(o,l){var u=!r.isBoxPlot&&r.candlestickOptions.wick.useFillColor?c.color[l]:i.globals.stroke.colors[t],d=s.fillPath({seriesNumber:y,dataPointIndex:n,color:c.color[l],value:e[t][n]});r.renderSeries({realIndex:y,pathFill:d,lineFill:u,j:n,i:t,pathFrom:c.pathFrom,pathTo:o,strokeWidth:a,elSeries:v,x:h,y:f,series:e,columnGroupIndex:b,barHeight:x,barWidth:w,elDataLabelsWrap:S,visibleSeries:r.visibleI,type:i.config.chart.type})}))},C=0;C<i.globals.dataPoints;C++)P(C);i.globals.seriesXvalues[y]=g,i.globals.seriesYvalues[y]=p,c.add(v)},d=0;d<e.length;d++)u(d);return c}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,n=e.x;e.y;var r=e.xDivision,i=e.barWidth,a=e.zeroH,o=e.strokeWidth,s=this.w,l=new P(this.ctx),c=t.i,u=t.j,d=!0,h=s.config.plotOptions.candlestick.colors.upward,f=s.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[t.translationsIndex],m=t.realIndex,y=this.getOHLCValue(m,u),b=a,v=a;y.o>y.c&&(d=!1);var x=Math.min(y.o,y.c),w=Math.max(y.o,y.c),k=y.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[m][u]-s.globals.minX)/this.xRatio-i/2);var A=n+i*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(x=a,w=a):(x=a-x/g,w=a-w/g,b=a-y.h/g,v=a-y.l/g,k=a-y.m/g);var E=l.move(A,a),S=l.move(A+i/2,x);return s.globals.previousPaths.length>0&&(S=this.getPreviousPath(m,u,!0)),E=this.isBoxPlot?[l.move(A,x)+l.line(A+i/2,x)+l.line(A+i/2,b)+l.line(A+i/4,b)+l.line(A+i-i/4,b)+l.line(A+i/2,b)+l.line(A+i/2,x)+l.line(A+i,x)+l.line(A+i,k)+l.line(A,k)+l.line(A,x+o/2),l.move(A,k)+l.line(A+i,k)+l.line(A+i,w)+l.line(A+i/2,w)+l.line(A+i/2,v)+l.line(A+i-i/4,v)+l.line(A+i/4,v)+l.line(A+i/2,v)+l.line(A+i/2,w)+l.line(A,w)+l.line(A,k)+"z"]:[l.move(A,w)+l.line(A+i/2,w)+l.line(A+i/2,b)+l.line(A+i/2,w)+l.line(A+i,w)+l.line(A+i,x)+l.line(A+i/2,x)+l.line(A+i/2,v)+l.line(A+i/2,x)+l.line(A,x)+l.line(A,w-o/2)],S+=l.move(A,x),s.globals.isXNumeric||(n+=r),{pathTo:E,pathFrom:S,x:n,y:w,barXPosition:A,color:this.isBoxPlot?p:d?[h]:[f]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var n=e.y,r=e.yDivision,i=e.barHeight,a=e.zeroW,o=e.strokeWidth,s=this.w,l=new P(this.ctx),c=t.i,u=t.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var h=this.invertedYRatio,f=t.realIndex,p=this.getOHLCValue(f,u),g=a,m=a,y=Math.min(p.o,p.c),b=Math.max(p.o,p.c),v=p.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[f][u]-s.globals.minX)/this.invertedXRatio-i/2);var x=n+i*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(y=a,b=a):(y=a+y/h,b=a+b/h,g=a+p.h/h,m=a+p.l/h,v=a+p.m/h);var w=l.move(a,x),k=l.move(y,x+i/2);return s.globals.previousPaths.length>0&&(k=this.getPreviousPath(f,u,!0)),w=[l.move(y,x)+l.line(y,x+i/2)+l.line(g,x+i/2)+l.line(g,x+i/2-i/4)+l.line(g,x+i/2+i/4)+l.line(g,x+i/2)+l.line(y,x+i/2)+l.line(y,x+i)+l.line(v,x+i)+l.line(v,x)+l.line(y+o/2,x),l.move(v,x)+l.line(v,x+i)+l.line(b,x+i)+l.line(b,x+i/2)+l.line(m,x+i/2)+l.line(m,x+i-i/4)+l.line(m,x+i/4)+l.line(m,x+i/2)+l.line(b,x+i/2)+l.line(b,x)+l.line(v,x)+"z"],k+=l.move(y,x),s.globals.isXNumeric||(n+=r),{pathTo:w,pathFrom:k,x:b,y:n,barYPosition:x,color:d}}},{key:"getOHLCValue",value:function(e,t){var n=this.w;return{o:this.isBoxPlot?n.globals.seriesCandleH[e][t]:n.globals.seriesCandleO[e][t],h:this.isBoxPlot?n.globals.seriesCandleO[e][t]:n.globals.seriesCandleH[e][t],m:n.globals.seriesCandleM[e][t],l:this.isBoxPlot?n.globals.seriesCandleC[e][t]:n.globals.seriesCandleL[e][t],c:this.isBoxPlot?n.globals.seriesCandleL[e][t]:n.globals.seriesCandleC[e][t]}}}]),t}(),_e=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map((function(e,n){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,n,r){var i=this.w,a=1,o=i.config.plotOptions[e].shadeIntensity,s=this.determineColor(e,t,n);i.globals.hasNegs||r?a=i.config.plotOptions[e].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*o):(1-s.percent/100)*(1.25*o):s.percent<=0?1-(1+s.percent/100)*o:(1-s.percent/100)*o:(a=1-s.percent/100,"treemap"===e&&(a=(1-s.percent/100)*(1.25*o)));var l=s.color,c=new A;if(i.config.plotOptions[e].enableShades)if("dark"===this.w.config.theme.mode){var u=c.shadeColor(-1*a,s.color);l=A.hexToRgba(A.isColorHex(u)?u:A.rgb2hex(u),i.config.fill.opacity)}else{var d=c.shadeColor(a,s.color);l=A.hexToRgba(A.isColorHex(d)?d:A.rgb2hex(d),i.config.fill.opacity)}return{color:l,colorProps:s}}},{key:"determineColor",value:function(e,t,n){var r=this.w,i=r.globals.series[t][n],a=r.config.plotOptions[e],o=a.colorScale.inverse?n:t;a.distributed&&"treemap"===r.config.chart.type&&(o=n);var s=r.globals.colors[o],l=null,c=Math.min.apply(Math,v(r.globals.series[t])),u=Math.max.apply(Math,v(r.globals.series[t]));a.distributed||"heatmap"!==e||(c=r.globals.minY,u=r.globals.maxY),void 0!==a.colorScale.min&&(c=a.colorScale.min<r.globals.minY?a.colorScale.min:r.globals.minY,u=a.colorScale.max>r.globals.maxY?a.colorScale.max:r.globals.maxY);var d=Math.abs(u)+Math.abs(c),h=100*i/(0===d?d-1e-6:d);return a.colorScale.ranges.length>0&&a.colorScale.ranges.map((function(e,t){if(i>=e.from&&i<=e.to){s=e.color,l=e.foreColor?e.foreColor:null,c=e.from,u=e.to;var n=Math.abs(u)+Math.abs(c);h=100*i/(0===n?n-1e-6:n)}})),{color:s,foreColor:l,percent:h}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,r=e.y,i=e.i,a=e.j,o=e.colorProps,s=e.fontSize,l=this.w.config.dataLabels,c=new P(this.ctx),u=new X(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var h=l.offsetX,f=l.offsetY,p=n+h,g=r+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:g,text:t,i:i,j:a,color:o.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new P(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Ie=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new _e(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return l(e,[{key:"draw",value:function(e){var t=this.w,n=new P(this.ctx),r=n.group({class:"apexcharts-heatmap"});r.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var i=t.globals.gridWidth/t.globals.dataPoints,a=t.globals.gridHeight/t.globals.series.length,o=0,s=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var c=s?0:l.length-1;s?c<l.length:c>=0;s?c++:c--){var u=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:A.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new S(this.ctx).dropShadow(u,d,c)}for(var h=0,f=t.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[c].length;p++){var g=this.helpers.getShadeColor(t.config.chart.type,c,p,this.negRange),m=g.color,y=g.colorProps;"image"===t.config.fill.type&&(m=new G(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:t.globals.hasNegs?y.percent<0?1-(1+y.percent/100):f+y.percent/100:y.percent/100,patternID:A.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:i,height:t.config.fill.image.height?t.config.fill.image.height:a}));var b=this.rectRadius,v=n.drawRect(h,o,i,a,b);if(v.attr({cx:h,cy:o}),v.node.classList.add("apexcharts-heatmap-rect"),u.add(v),v.attr({fill:m,i:c,index:c,j:p,val:e[c][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?m:t.globals.stroke.colors[0],color:m}),this.helpers.addListeners(v),t.config.chart.animations.enabled&&!t.globals.dataChanged){var x=1;t.globals.resized||(x=t.config.chart.animations.speed),this.animateHeatMap(v,h,o,i,a,x)}if(t.globals.dataChanged){var w=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){w=this.dynamicAnim.speed;var k=t.globals.previousPaths[c]&&t.globals.previousPaths[c][p]&&t.globals.previousPaths[c][p].color;k||(k="rgba(255, 255, 255, 0)"),this.animateHeatColor(v,A.isColorHex(k)?k:A.rgb2hex(k),A.isColorHex(m)?m:A.rgb2hex(m),w)}}var E=(0,t.config.dataLabels.formatter)(t.globals.series[c][p],{value:t.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:t}),C=this.helpers.calculateDataLabels({text:E,x:h+i/2,y:o+a/2,i:c,j:p,colorProps:y,series:l});null!==C&&u.add(C),h+=i}o+=a,r.add(u)}var O=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?O.unshift(""):O.push(""),t.globals.yAxisScale[0].result=O,r}},{key:"animateHeatMap",value:function(e,t,n,r,i,a){var o=new E(this.ctx);
2o.animateRect(e,{x:t+r/2,y:n+i/2,width:0,height:0},{x:t,y:n,width:r,height:i},a,(function(){o.animationCompleted(e)}))}},{key:"animateHeatColor",value:function(e,t,n,r){e.attr({fill:t}).animate(r).attr({fill:n})}}]),e}(),Re=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"drawYAxisTexts",value:function(e,t,n,r){var i=this.w,a=i.config.yaxis[0],o=i.globals.yLabelFormatters[0];return new P(this.ctx).drawText({x:e+a.labels.offsetX,y:t+a.labels.offsetY,text:o(r,n),textAnchor:"middle",fontSize:a.labels.style.fontSize,fontFamily:a.labels.style.fontFamily,foreColor:Array.isArray(a.labels.style.colors)?a.labels.style.colors[n]:a.labels.style.colors})}}]),e}(),Me=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=Math.min(n.globals.gridWidth,n.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,"radialBar"===n.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(n.config.plotOptions.pie.endAngle-n.config.plotOptions.pie.startAngle),this.initialAngle=n.config.plotOptions.pie.startAngle%this.fullAngle,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-(n.config.chart.sparkline.enabled?0:n.config.chart.dropShadow.blur),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size,10)/100;var r=n.config.plotOptions.pie.customScale,i=n.globals.gridWidth/2,a=n.globals.gridHeight/2;this.translateX=i-i*r,this.translateY=a-a*r,this.dataLabelsGroup=new P(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(r,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return l(e,[{key:"draw",value:function(e){var t=this,n=this.w,r=new P(this.ctx),i=r.group({class:"apexcharts-pie"});if(n.globals.noData)return i;for(var a=0,o=0;o<e.length;o++)a+=A.negToZero(e[o]);var s=[],l=r.group();0===a&&(a=1e-5),e.forEach((function(e){t.maxY=Math.max(t.maxY,e)})),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),"back"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i);for(var c=0;c<e.length;c++){var u=this.fullAngle*A.negToZero(e[c])/a;s.push(u),"polarArea"===this.chartType?(s[c]=this.fullAngle/e.length,this.sliceSizes.push(n.globals.radialSize*e[c]/this.maxY)):this.sliceSizes.push(n.globals.radialSize)}if(n.globals.dataChanged){for(var d,h=0,f=0;f<n.globals.previousPaths.length;f++)h+=A.negToZero(n.globals.previousPaths[f]);for(var p=0;p<n.globals.previousPaths.length;p++)d=this.fullAngle*A.negToZero(n.globals.previousPaths[p])/h,this.prevSectorAngleArr.push(d)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){var g=r.drawCircle(this.donutSize);g.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:"transparent"}),l.add(g)}var m=this.drawArcs(s,e);
vendor: 3,176 bytes, line 2
2if(this.sliceLabels.forEach((function(e){m.add(e)})),l.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n.config.plotOptions.pie.customScale,")")}),l.add(m),i.add(l),this.donutDataLabels.show){var y=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});i.add(y)}return"front"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i),i}},{key:"drawArcs",value:function(e,t){var n=this.w,r=new S(this.ctx),i=new P(this.ctx),a=new G(this.ctx),o=i.group({class:"apexcharts-slices"}),s=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0;for(var d=0;d<e.length;d++){var h=i.group({class:"apexcharts-series apexcharts-pie-series",seriesName:A.escapeString(n.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});o.add(h),l=u,c=(s=c)+e[d],u=l+this.prevSectorAngleArr[d];var f=c<s?this.fullAngle+c-s:c-s,p=a.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:t[d]}),g=this.getChangedPath(l,u),m=i.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:n.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(m.attr({index:0,j:d}),r.setSelectionFilter(m,0,d),n.config.chart.dropShadow.enabled){var y=n.config.chart.dropShadow;r.dropShadow(m,y,d)}this.addListeners(m,this.donutDataLabels),P.setAttrs(m.node,{"data:angle":f,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":t[d]});var b={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?b=A.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize/1.25+n.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle):"donut"===this.chartType&&(b=A.polarToCartesian(this.centerX,this.centerY,(n.globals.radialSize+this.donutSize)/2+n.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle)),h.add(m);var v=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged?this.animBeginArr.push(0):(0===(v=f/this.fullAngle*n.config.chart.animations.speed)&&(v=1),this.animDur=v+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&n.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:s,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:n.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:s,i:d,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:v}),n.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.node.addEventListener("mouseup",this.pieClicked.bind(this,d)),void 0!==n.globals.selectedDataPoints[0]&&n.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),n.config.dataLabels.enabled){var x=b.x,w=b.y,k=100*f/this.fullAngle+"%";if(0!==f&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[d]){var E=n.config.dataLabels.formatter;
vendor: 5,354 bytes, line 2
2void 0!==E&&(k=E(n.globals.seriesPercent[d][0],{seriesIndex:d,w:n}));var C=n.globals.dataLabels.style.colors[d],O=i.group({class:"apexcharts-datalabels"}),T=i.drawText({x:x,y:w,text:k,textAnchor:"middle",fontSize:n.config.dataLabels.style.fontSize,fontFamily:n.config.dataLabels.style.fontFamily,fontWeight:n.config.dataLabels.style.fontWeight,foreColor:C});if(O.add(T),n.config.dataLabels.dropShadow.enabled){var N=n.config.dataLabels.dropShadow;r.dropShadow(T,N)}T.node.classList.add("apexcharts-pie-label"),n.config.chart.animations.animate&&!1===n.globals.resized&&(T.node.classList.add("apexcharts-pie-label-delay"),T.node.style.animationDelay=n.config.chart.animations.speed/940+"s"),this.sliceLabels.push(O)}}}return o}},{key:"addListeners",value:function(e,t){var n=new P(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var n=this.w,r=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,i=r,a=t.startAngle,o=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(a=t.prevEndAngle,i=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===n.config.series.length-1&&(r+o>this.fullAngle?t.endAngle=t.endAngle-(r+o):r+o<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(r+o)))),r===this.fullAngle&&(r=this.fullAngle-.01),this.animateArc(e,a,o,r,i,t)}},{key:"animateArc",value:function(e,t,n,r,i,a){var o,s=this,l=this.w,c=new E(this.ctx),u=a.size;(isNaN(t)||isNaN(i))&&(t=n,i=r,a.dur=0);var d=r,h=n,f=t<n?this.fullAngle+t-n:t-n;l.globals.dataChanged&&a.shouldSetPrevPaths&&a.prevEndAngle&&(o=s.getPiePath({me:s,startAngle:a.prevStartAngle,angle:a.prevEndAngle<a.prevStartAngle?this.fullAngle+a.prevEndAngle-a.prevStartAngle:a.prevEndAngle-a.prevStartAngle,size:u}),e.attr({d:o})),0!==a.dur?e.animate(a.dur,l.globals.easing,a.animBeginArr[a.i]).afterAll((function(){"pie"!==s.chartType&&"donut"!==s.chartType&&"polarArea"!==s.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":s.strokeWidth}),a.i===l.config.series.length-1&&c.animationCompleted(e)})).during((function(l){d=f+(r-f)*l,a.animateStartingPos&&(d=i+(r-i)*l,h=t-i+(n-(t-i))*l),o=s.getPiePath({me:s,startAngle:h,angle:d,size:u}),e.node.setAttribute("data:pathOrig",o),e.attr({d:o})})):(o=s.getPiePath({me:s,startAngle:h,angle:r,size:u}),a.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",o),e.attr({d:o,"stroke-width":s.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,n=this.w,r=this,i=r.sliceSizes[e]+(n.config.plotOptions.pie.expandOnClick?4:0),a=n.globals.dom.Paper.select(".apexcharts-".concat(r.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==a.attr("data:pieClicked")){var o=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(o,(function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)})),n.globals.capturedDataPointIndex=e,a.attr("data:pieClicked","true");var s=parseInt(a.attr("data:startAngle"),10),l=parseInt(a.attr("data:angle"),10);t=r.getPiePath({me:r,startAngle:s,angle:l,size:i}),360!==l&&a.plot(t)}else{a.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(a.node,this.donutDataLabels);var c=a.attr("data:pathOrig");a.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var n="";return this.dynamicAnim&&this.w.globals.dataChanged&&(n=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),n}},{key:"getPiePath",value:function(e){var t,n=e.me,r=e.startAngle,i=e.angle,a=e.size,o=new P(this.ctx),s=r,l=Math.PI*(s-90)/180,c=i+r;Math.ceil(c)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var u=Math.PI*(c-90)/180,d=n.centerX+a*Math.cos(l),h=n.centerY+a*Math.sin(l),f=n.centerX+a*Math.cos(u),p=n.centerY+a*Math.sin(u),g=A.polarToCartesian(n.centerX,n.centerY,n.donutSize,c),m=A.polarToCartesian(n.centerX,n.centerY,n.donutSize,s),y=i>180?1:0,b=["M",d,h,"A",a,a,0,y,1,f,p];return t="donut"===n.chartType?[].concat(b,["L",g.x,g.y,"A",n.donutSize,n.donutSize,0,y,0,m.x,m.y,"L",d,h,"z"]).join(" "):"pie"===n.chartType||"polarArea"===n.chartType?[].concat(b,["L",n.centerX,n.centerY,"L",d,h]).join(" "):[].concat(b).join(" "),o.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new ee(this.ctx),r=new P(this.ctx),i=new Re(this.ctx),a=r.group(),o=r.group(),s=n.niceScale(0,Math.ceil(this.maxY),0),l=s.result.reverse(),c=s.result.length;this.maxY=s.niceMax;for(var u=t.globals.radialSize,d=u/(c-1),h=0;h<c-1;h++){var f=r.drawCircle(u);if(f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.r
vendor: 13,345 bytes, line 2
2ings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=i.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,h,l[h]);o.add(p)}a.add(f),u-=d}this.drawSpokes(e),e.add(a),e.add(o)}},{key:"renderInnerDataLabels",value:function(e,t,n){var r=this.w,i=new P(this.ctx),a=t.total.show;e.node.innerHTML="",e.node.style.opacity=n.opacity;var o,s,l=n.centerX,c=this.donutDataLabels.total.label?n.centerY:n.centerY-n.centerY/6;o=void 0===t.name.color?r.globals.colors[0]:t.name.color;var u=t.name.fontSize,d=t.name.fontFamily,h=t.name.fontWeight;s=void 0===t.value.color?r.config.chart.foreColor:t.value.color;var f=t.value.formatter,p="",g="";if(a?(o=t.total.color,u=t.total.fontSize,d=t.total.fontFamily,h=t.total.fontWeight,g=this.donutDataLabels.total.label?t.total.label:"",p=t.total.formatter(r)):1===r.globals.series.length&&(p=f(r.globals.series[0],r),g=r.globals.seriesNames[0]),g&&(g=t.name.formatter(g,t.total.show,r)),t.name.show){var m=i.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:g,textAnchor:"middle",foreColor:o,fontSize:u,fontWeight:h,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),e.add(m)}if(t.value.show){var y=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=i.drawText({x:l,y:c+y,text:p,textAnchor:"middle",foreColor:s,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),e.add(b)}return e}},{key:"printInnerLabels",value:function(e,t,n,r){var i,a=this.w;r?i=void 0===e.name.color?a.globals.colors[parseInt(r.parentNode.getAttribute("rel"),10)-1]:e.name.color:a.globals.series.length>1&&e.total.show&&(i=e.total.color);var o=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,a),r||"function"!=typeof e.total.formatter||(n=e.total.formatter(a));var l=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,l,a):"",null!==o&&(o.textContent=t),null!==s&&(s.textContent=n),null!==o&&(o.style.fill=i)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,r=e.getAttribute("data:value"),i=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,i,r,e);var a=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==a&&(a.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,r=new P(this.ctx),i=n.config.plotOptions.polarArea.spokes;if(0!==i.strokeWidth){for(var a=[],o=360/n.globals.series.length,s=0;s<n.globals.series.length;s++)a.push(A.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize,n.config.plotOptions.pie.startAngle+o*s));a.forEach((function(n,a){var o=r.drawLine(n.x,n.y,t.centerX,t.centerY,Array.isArray(i.connectorColors)?i.connectorColors[a]:i.connectorColors);e.add(o)}))}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0],n=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.select(".apexcharts-radialbar, .apexcharts-pie").members[0].add(n)}}}]),e}(),je=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new P(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.gridHeight:n.globals.gridWidth,this.isLog=n.config.yaxis[0].logarithmic,this.logBase=n.config.yaxis[0].logBase,this.coreUtils=new C(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,n.globals.maxY,0):n.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):n.globals.minY,this.polygons=n.config.plotOptions.radar.polygons,this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-n.config.chart.dropShadow.blur,n.config.xaxis.labels.show&&(this.size=this.size-n.globals.xAxisLabelsWidth/1.75),void 0!==n.config.plotOptions.radar.size&&(this.size=n.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return l(e,[{key:"draw",value:function(e){var t=this,n=this.w,r=new G(this.ctx),i=[],a=new X(this.ctx);e.length&&(this.dataPointsLen=e[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=n.globals.gridWidth/2,s=n.globals.gridHeight/2,l=o+n.config.plotOptions.radar.offsetX,c=s+n.config.plotOptions.radar.offsetY,u=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(c||0,")")}),d=[],h=null,f=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((function(e,o){var s=e.length===n.globals.dataPoints,l=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":s,seriesName:A.escapeString(n.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});t.dataRadiusOfPercent[o]=[],t.dataRadius[o]=[],t.angleArr[o]=[],e.forEach((function(e,n){var r=Math.abs(t.maxValue-t.minValue);e-=t.minValue,t.isLog&&(e=t.coreUtils.getLogVal(t.logBase,e,0)),t.dataRadiusOfPercent[o][n]=e/r,t.dataRadius[o][n]=t.dataRadiusOfPercent[o][n]*t.size,t.angleArr[o][n]=n*t.disAngle})),d=t.getDataPointsPos(t.dataRadius[o],t.angleArr[o]);var c=t.createPaths(d,{x:0,y:0});h=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),f=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":o}),n.globals.delayedElements.push({el:h.node,index:o});var u={i:o,realIndex:o,animationDelay:o,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[o],strokeLineCap:n.config.stroke.lineCap},p=null;n.globals.previousPaths.length>0&&(p=t.getPreviousPath(o));for(var g=0;g<c.linePathsTo.length;g++){var y=t.graphics.renderPaths(m(m({},u),{},{pathFrom:null===p?c.linePathsFrom[g]:p,pathTo:c.linePathsTo[g],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[o]:t.strokeWidth,fill:"none",drawShadow:!1}));l.add(y);var b=r.fillPath({seriesNumber:o}),v=t.graphics.renderPaths(m(m({},u),{},{pathFrom:null===p?c.areaPathsFrom[g]:p,pathTo:c.areaPathsTo[g],strokeWidth:0,fill:b,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var x=new S(t.ctx),w=n.config.chart.dropShadow;x.dropShadow(v,Object.assign({},w,{noUserSpaceOnUse:!0}),o)}l.add(v)}e.forEach((function(e,r){var i=new Y(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:r}),s=t.graphics.drawMarker(d[r].x,d[r].y,i);s.attr("rel",r),s.attr("j",r),s.attr("index",o),s.node.setAttribute("default-marker-size",i.pSize);var c=t.graphics.group({class:"apexcharts-series-markers"});c&&c.add(s),h.add(c),l.add(h);var u=n.config.dataLabels;if(u.enabled){var p=u.formatter(n.globals.series[o][r],{seriesIndex:o,dataPointIndex:r,w:n});a.plotDataLabelsText({x:d[r].x,y:d[r].y,text:p,textAnchor:"middle",i:o,j:o,parent:f,offsetCorrection:!1,dataLabelsConfig:m({},u)})}l.add(f)})),i.push(l)})),this.drawPolygons({parent:u}),n.config.xaxis.labels.show){var p=this.drawXAxisTexts();u.add(p)}return i.forEach((function(e){u.add(e)})),u.add(this.yaxisLabels),u}},{key:"drawPolygons",value:function(e){for(var t=this,n=this.w,r=e.parent,i=new Re(this.ctx),a=n.globals.yAxisScale[0].result.reverse(),o=a.length,s=[],l=this.size/(o-1),c=0;c<o;c++)s[c]=l*c;s.reverse();var u=[],d=[];s.forEach((function(e,n){var r=A.getPolygonPos(e,t.dataPointsLen),i="";r.forEach((function(e,r){if(0===n){var a=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[r]:t.polygons.connectorColors);d.push(a)}0===r&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),i+=e.x+","+e.y+" "})),u.push(i)})),u.forEach((function(e,i){var a=t.polygons.strokeColors,o=t.polygons.strokeWidth,s=t.graphics.drawPolygon(e,Array.isArray(a)?a[i]:a,Array.isArray(o)?o[i]:o,n.globals.radarPolygons.fill.colors[i]);r.add(s)})),d.forEach((function(e){r.add(e)})),n.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(e,n){var r=i.drawYAxisTexts(e.x,e.y,n,a[n]);t.yaxisLabels.add(r)}))}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,n=t.config.xaxis.labels,r=this.graphics.group({class:"apexcharts-xaxis"}),i=A.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach((function(a,o){var s=t.config.xaxis.labels.formatter,l=new X(e.ctx);if(i[o]){var c=e.getTextPos(i[o],e.size),u=s(a,{seriesIndex:-1,dataPointIndex:o,w:t});l.plotDataLabelsText({x:c.newX,y:c.newY,text:u,textAnchor:c.textAnchor,i:o,j:o,parent:r,className:"apexcharts-xaxis-label",color:Array.isArray(n.style.colors)&&n.style.colors[o]?n.style.colors[o]:"#a8a8a8",dataLabelsConfig:m({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1}).on("click",(function(n){if("function"==typeof t.config.chart.events.xAxisLabelClick){var r=Object.assign({},t,{labelIndex:o});t.config.chart.events.xAxisLabelClick(n,e.ctx,r)}}))}})),r}},{key:"createPaths",value:function(e,t){var n=this,r=[],i=[],a=[],o=[];if(e.length){i=[this.graphics.move(t.x,t.y)],o=[this.graphics.move(t.x,t.y)];var s=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((function(t,r){s+=n.graphics.line(t.x,t.y),l+=n.graphics.line(t.x,t.y),r===e.length-1&&(s+="Z",l+="Z")})),r.push(s),a.push(l)}return{linePathsFrom:i,linePathsTo:r,areaPathsFrom:o,areaPathsTo:a}}},{key:"getTextPos",value:function(e,t){var n="middle",r=e.x,i=e.y;return Math.abs(e.x)>=10?e.x>0?(n="start",r+=10):e.x<0&&(n="end",r-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?i-=10:e.y>0&&(i+=10)),{textAnchor:n,newX:r,newY:i}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,r=0;r<t.globals.previousPaths.length;r++){var i=t.globals.previousPaths[r];i.paths.length>0&&parseInt(i.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[r].paths[0]&&(n=t.globals.previousPaths[r].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var r=[],i=0;i<n;i++){var a={};a.x=e[i]*Math.sin(t[i]),a.y=-e[i]*Math.cos(t[i]),r.push(a)}return r}}]),e}(),Le=function(){f(t,Me);var e=u(t);function t(n){var r;o(this,t),(r=e.call(this,n)).ctx=n,r.w=n.w,r.animBeginArr=[0],r.animDur=0;var i=r.w;return r.startAngle=i.config.plotOptions.radialBar.startAngle,r.endAngle=i.config.plotOptions.radialBar.endAngle,r.totalAngle=Math.abs(i.config.plotOptions.radialBar.endAngle-i.config.plotOptions.radialBar.startAngle),r.trackStartAngle=i.config.plotOptions.radialBar.track.startAngle,r.trackEndAngle=i.config.plotOptions.radialBar.track.endAngle,r.barLabels=r.w.config.plotOptions.radialBar.barLabels,r.donutDataLabels=r.w.config.plotOptions.radialBar.dataLabels,r.radialDataLabels=r.donutDataLabels,r.trackStartAngle||(r.trackStartAngle=r.startAngle),r.trackEndAngle||(r.trackEndAngle=r.endAngle),360===r.endAngle&&(r.endAngle=359.99),r.margin=parseInt(i.config.plotOptions.radialBar.track.margin,10),r.onBarLabelClick=r.onBarLabelClick.bind(a(r)),r}return l(t,[{key:"draw",value:function(e){var t=this.w,n=new P(this.ctx),r=n.group({class:"apexcharts-radialbar"});if(t.globals.noData)return r;var i=n.group(),a=this.defaultSize/2,o=t.globals.gridWidth/2,s=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(s=s-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:s,centerX:o,centerY:a,colorArr:l,series:e});i.add(c)}var u=this.drawArcs({size:s,centerX:o,centerY:a,colorArr:l,series:e}),d=360;t.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var h=(360-d)/360;if(t.globals.radialSize=s-s*h,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=f*h}return i.add(u.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),r.add(i),r}},{key:"drawTracks",value:function(e){var t=this.w,n=new P(this.ctx),r=n.group({class:"apexcharts-tracks"}),i=new S(this.ctx),a=new G(this.ctx),o=this.getStrokeWidth(e);e.size=e.size-o/2;for(var s=0;s<e.series.length;s++){var l=n.group({class:"apexcharts-radialbar-track apexcharts-track"});r.add(l),l.attr({rel:s+1}),e.size=e.size-o-this.margin;var c=t.config.plotOptions.radialBar.track,u=a.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),d=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(d)>=360&&(h=360-Math.abs(this.startAngle)-.1);var f=n.drawPath({d:"",stroke:u,strokeWidth:o*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.op
vendor: 11,704 bytes, line 2
2acity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;i.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:e.centerX,centerY:e.centerY,endAngle:h,startAngle:d,size:e.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return r}},{key:"drawArcs",value:function(e){var t=this.w,n=new P(this.ctx),r=new G(this.ctx),i=new S(this.ctx),a=n.group(),o=this.getStrokeWidth(e);e.size=e.size-o/2;var s=t.config.plotOptions.radialBar.hollow.background,l=e.size-o*e.series.length-this.margin*e.series.length-o*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(e,a,l,s));var u=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:s||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;i.dropShadow(u,d)}var h=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(h=0);var f=null;if(this.radialDataLabels.show){var p=t.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0];f=this.renderInnerDataLabels(p,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:h})}"back"===t.config.plotOptions.radialBar.hollow.position&&(a.add(u),f&&a.add(f));var g=!1;t.config.plotOptions.radialBar.inverseOrder&&(g=!0);for(var m=g?e.series.length-1:0;g?m>=0:m<e.series.length;g?m--:m++){var y=n.group({class:"apexcharts-series apexcharts-radial-series",seriesName:A.escapeString(t.globals.seriesNames[m])});a.add(y),y.attr({rel:m+1,"data:realIndex":m}),this.ctx.series.addCollapsedClassToSeries(y,m),e.size=e.size-o-this.margin;var b=r.fillPath({seriesNumber:m,size:e.size,value:e.series[m]}),v=this.startAngle,x=void 0,w=A.negToZero(e.series[m]>100?100:e.series[m])/100,k=Math.round(this.totalAngle*w)+this.startAngle,E=void 0;t.globals.dataChanged&&(x=this.startAngle,E=Math.round(this.totalAngle*A.negToZero(t.globals.previousPaths[m])/100)+x),Math.abs(k)+Math.abs(v)>360&&(k-=.01),Math.abs(E)+Math.abs(x)>360&&(E-=.01);var C=k-v,O=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[m]:t.config.stroke.dashArray,T=n.drawPath({d:"",stroke:b,strokeWidth:o,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+m,strokeDashArray:O});if(P.setAttrs(T.node,{"data:angle":C,"data:value":e.series[m]}),t.config.chart.dropShadow.enabled){var N=t.config.chart.dropShadow;i.dropShadow(T,N,m)}if(i.setSelectionFilter(T,0,m),this.addListeners(T,this.radialDataLabels),y.add(T),T.attr({index:0,j:m}),this.barLabels.enabled){var _=A.polarToCartesian(e.centerX,e.centerY,e.size,v),I=this.barLabels.formatter(t.globals.seriesNames[m],{seriesIndex:m,w:t}),R=["apexcharts-radialbar-label"];this.barLabels.onClick||R.push("apexcharts-no-click");var M=this.barLabels.useSeriesColors?t.globals.colors[m]:t.config.chart.foreColor;M||(M=t.config.chart.foreColor);var j=_.x+this.barLabels.offsetX,L=_.y+this.barLabels.offsetY,B=n.drawText({x:j,y:L,text:I,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:M,cssClass:R.join(" ")});B.on("click",this.onBarLabelClick),B.attr({rel:m+1}),0!==v&&B.attr({"transform-origin":"".concat(j," ").concat(L),transform:"rotate(".concat(v," 0 0)")}),y.add(B)}var F=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(F=t.config.chart.animations.speed),t.globals.dataChanged&&(F=t.config.chart.animations.dynamicAnimation.speed),this.animDur=F/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(T,{centerX:e.centerX,centerY:e.centerY,endAngle:k,startAngle:v,prevEndAngle:E,prevStartAngle:x,size:e.size,i:m,totalItems:2,animBeginArr:this.animBeginArr,dur:F,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:a,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(e){var t=new P(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,n,r){var i=this.w,a=new G(this.ctx),o=A.randomId(),s=i.config.plotOptions.radialBar.hollow.image;if(i.config.plotOptions.radialBar.hollow.imageClipped)a.clippedImgArea({width:n,height:n,image:s,patternID:"pattern".concat(i.globals.cuid).concat(o)}),r="url(#pattern".concat(i.globals.cuid).concat(o,")");else{var l=i.config.plotOptions.radialBar.hollow.imageWidth,c=i.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-t.width/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+i.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(u)}else{var d=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-l/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+i.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(d)}}return r}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(e){var t=parseInt(e.target.getAttribute("rel"),10)-1,n=this.barLabels.onClick,r=this.w;n&&n(r.globals.seriesNames[t],{w:r,seriesIndex:t})}}]),t}(),Be=function(){f(t,Oe);var e=u(t);function t(){return o(this,t),e.apply(this,arguments)}return l(t,[{key:"draw",value:function(e,t){var n=this.w,r=new P(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var i=r.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),a=0;a<e.length;a++){var o,s,l,c,u=void 0,d=void 0,h=n.globals.comboCharts?t[a]:a,f=this.barHelpers.getGroupIndex(h).columnGroupIndex,p=r.group({class:"apexcharts-series",seriesName:A.escapeString(n.globals.seriesNames[h]),rel:a+1,"data:realIndex":h});this.ctx.series.addCollapsedClassToSeries(p,h),e[a].length>0&&(this.visibleI=this.visibleI+1);var g=0,y=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[h][0],b=h);var v=this.barHelpers.initialPositions();d=v.y,c=v.zeroW,u=v.x,y=v.barWidth,g=v.barHeight,o=v.xDivision,s=v.yDivision,l=v.zeroH;for(var x=r.group({class:"apexcharts-datalabels","data:realIndex":h}),w=r.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<n.globals.dataPoints;k++){var E=this.barHelpers.getStrokeWidth(a,k,h),S=this.seriesRangeStart[a][k],C=this.seriesRangeEnd[a][k],O=null,T=null,N=null,_={x:u,y:d,strokeWidth:E,elSeries:p},I=this.seriesLen;if(n.config.plotOptions.bar.rangeBarGroupRows&&(I=1),void 0===n.config.series[a].data[k])break;if(this.isHorizontal){N=d+g*this.visibleI;var R=(s-g*I)/2;if(n.config.series[a].data[k].x){var M=this.detectOverlappingBars({i:a,j:k,barYPosition:N,srty:R,barHeight:g,yDivision:s,initPositions:v});g=M.barHeight,N=M.barYPosition}y=(O=this.drawRangeBarPaths(m({indexes:{i:a,j:k,realIndex:h},barHeight:g,barYPosition:N,zeroW:c,yDivision:s,y1:S,y2:C},_))).barWidth}else{n.globals.isXNumeric&&(u=(n.globals.seriesX[a][k]-n.globals.minX)/this.xRatio-y/2),T=u+y*this.visibleI;var j=(o-y*I)/2;if(n.config.series[a].data[k].x){var L=this.detectOverlappingBars({i:a,j:k,barXPosition:T,srtx:j,barWidth:y,xDivision:o,initPositions:v});y=L.barWidth,T=L.barXPosition}g=(O=this.drawRangeColumnPaths(m({indexes:{i:a,j:k,realIndex:h,translationsIndex:b},barWidth:y,barXPosition:T,zeroH:l,xDivision:o},_))).barHeight}var B=this.barHelpers.drawGoalLine({barXPosition:O.barXPosition,barYPosition:N,goalX:O.goalX,goalY:O.goalY,barHeight:g,barWidth:y});B&&w.add(B),d=O.y,u=O.x;var F=this.barHelpers.getPathFillColor(e,a,k,h),D=n.globals.stroke.colors[h];this.renderSeries({realIndex:h,pathFill:F,lineFill:D,j:k,i:a,x:u,y:d,y1:S,y2:C,pathFrom:O.pathFrom,pathTo:O.pathTo,strokeWidth:E,elSeries:p,series:e,barHeight:g,barWidth:y,barXPosition:T,barYPosition:N,columnGroupIndex:f,elDataLabelsWrap:x,elGoalsMarkers:w,visibleSeries:this.visibleI,type:"rangebar"})}i.add(p)}return i}},{key:"detectOverlappingBars",value:function(e){var t=e.i,n=e.j,r=e.barYPosition,i=e.barXPosition,a=e.srty,o=e.srtx,s=e.barHeight,l=e.barWidth,c=e.yDivision,u=e.xDivision,d=e.initPositions,h=this.w,f=[],p=h.config.series[t].data[n].rangeName,g=h.config.series[t].data[n].x,m=Array.isArray(g)?g.join(" "):g,y=h.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(m),b=h.globals.seriesRange[t].findIndex((function(e){return e.x===m&&e.overlaps.length>0}));return this.isHorizontal?(r=h.config.plotOptions.bar.rangeBarGroupRows?a+c*y:a+s*this.visibleI+c*y,b>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(r=(s=d.barHeight/f.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+s*(this.visibleI+f.indexOf(p))+c*y)):(y>-1&&!h.globals.timescaleLabels.length&&(i=h.config.plotOptions.bar.rangeBarGroupRows?o+u*y:o+l*this.visibleI+u*y),b>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(i=(l=d.barWidth/f.length)*this.visibleI+u*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+f.indexOf(p))+u*y)),{barYPosition:r,barXPosition:i,barHeight:s,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.xDivision,i=e.barWidth,a=e.barXPosition,o=e.zeroH,s=this.w,l=t.i,c=t.j,u=t.realIndex,d=t.translationsIndex,h=this.yRatio[d],f=this.getRangeValue(u,c),p=Math.min(f.start,f.end),g=Math.max(f.start,f.end);void 0===this.series[l][c]||null===this.series[l][c]?p=o:(p=o-p/h,g=o-g/h);var m=Math.abs(g-p),y=this.barHelpers.getColumnPaths({barXPosition:a,barWidth:i,y1:p,y2:g,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u,i:u,j:c,w:s});if(s.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:n,j:c,realIndex:u,barWidth:i});n=b.x,a=b.barXPosition}else n+=r;return{pathTo:y.pathTo,pathFrom:y.pathFrom,barHeight:m,x:n,y:f.start<0&&f.end<0?p:g,goalY:this.barHelpers.getGoalValues("y",null,o,l,c,d),barXPosition:a}}},{key:"preventBarOverflow",value:function(e){var t=this.w;return e<0&&(e=0),e>t.globals.gridWidth&&(e=t.globals.gridWidth),e}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,n=e.y,r=e.y1,i=e.y2,a=e.yDivision,o=e.barHeight,s=e.barYPosition,l=e.zeroW,c=this.w,u=t.realIndex,d=t.j,h=this.preventBarOverflow(l+r/this.invertedYRatio),f=this.preventBarOverflow(l+i/this.invertedYRatio),p=this.getRangeValue(u,d),g=Math.abs(f-h),m=this.barHelpers.getBarpaths({barYPosition:s,barHeight:o,x1:h,x2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:u,realIndex:u,j:d,w:c});return c.globals.isXNumeric||(n+=a),{pathTo:m.pathTo,pathFrom:m.pathFrom,barWidth:g,x:p.start<0&&p.end<0?h:f,goalX:this.barHelpers.getGoalValues("x",l,null,u,d),y:n}}},{key:"getRangeValue",value:function(e,t){var n=this.w;return{start:n.globals.seriesRangeStart[e][t],end:n.globals.seriesRangeEnd[e][t]}}}]),t}(),Fe=function(){function e(t){o(this,e),this.w=t.w,this.lineCtx=t}return l(e,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if(("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[e])&&new C(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var r=t[e].slice();r[r.length-1]=r[r.length-1]+1e-6,t[e]=r}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,r=e.x,i=e.y,a=e.i,o=e.j,s=e.prevY,l=this.w,c=[],u=[];
2if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[n][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),u.push(A.isNumber(t[a][0])?s+l.config.markers.offsetY:null),c.push(r+l.config.markers.offsetX),u.push(A.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null)}else c.push(r+l.config.markers.offsetX),u.push(A.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null);return{x:c,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,r=e.realIndex,i=this.w,a=0;a<i.globals.previousPaths.length;a++){var o=i.globals.previousPaths[a];("line"===o.type||"area"===o.type)&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(r,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[a].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,n=i.globals.previousPaths[a].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[a].paths[1]&&(t=i.globals.previousPaths[a].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n,r,i=e.i,a=e.realIndex,o=e.series,s=e.prevY,l=e.lineYPosition,c=e.translationsIndex,u=this.w,d=u.config.chart.stacked&&!u.globals.comboCharts||u.config.chart.stacked&&u.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[a])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[a])||void 0===n?void 0:n.type));if(void 0!==(null===(r=o[i])||void 0===r?void 0:r[0]))s=(l=d&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-o[i][0]/this.lineCtx.yRatio[c]+2*(this.lineCtx.isReversed?o[i][0]/this.lineCtx.yRatio[c]:0);else if(d&&i>0&&void 0===o[i][0])for(var h=i-1;h>=0;h--)if(null!==o[h][0]&&void 0!==o[h][0]){s=l=this.lineCtx.prevSeriesY[h][0];break}return{prevY:s,lineYPosition:l}}}]),e}(),De=function(e){var t=function(e){for(var t,n,r,i,a=function(e){for(var t=[],n=e[0],r=e[1],i=t[0]=ze(n,r),a=1,o=e.length-1;a<o;a++)n=r,r=e[a+1],t[a]=.5*(i+(i=ze(n,r)));return t[a]=i,t}(e),o=e.length-1,s=[],l=0;l<o;l++)r=ze(e[l],e[l+1]),Math.abs(r)<1e-6?a[l]=a[l+1]=0:(i=(t=a[l]/r)*t+(n=a[l+1]/r)*n)>9&&(i=3*r/Math.sqrt(i),a[l]=i*t,a[l+1]=i*n);for(var c=0;c<=o;c++)i=(e[Math.min(o,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+a[c]*a[c])),s.push([i||0,a[c]*i||0]);return s}(e),n=e[1],r=e[0],i=[],a=t[1],o=t[0];i.push(r,[r[0]+o[0],r[1]+o[1],n[0]-a[0],n[1]-a[1],n[0],n[1]]);for(var s=2,l=t.length;s<l;s++){var c=e[s],u=t[s];i.push([c[0]-u[0],c[1]-u[1],c[0],c[1]])}return i},Ue=function(e,t,n){var r=e.slice(t,n);if(t){if(n-t>1&&r[1].length<6){var i=r[0].length;r[1]=[2*r[0][i-2]-r[0][i-4],2*r[0][i-1]-r[0][i-3]].concat(r[1])}r[0]=r[0].slice(-2)}return r};function ze(e,t){return(t[1]-e[1])/(t[0]-e[0])}var We=function(){function e(t,n,r){o(this,e),this.ctx=t,this.w=t.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r,this.scatter=new q(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Fe(this),this.markers=new Y(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return l(e,[{key:"draw",value:function(e,t,n,r){var i,a=this.w,o=new P(this.ctx),s=a.globals.comboCharts?t:a.config.chart.type,l=o.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),c=new C(this.ctx,a);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=c.getLogSeries(e),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var u=[],d=0;d<e.length;d++){e=this.lineHelpers.sameValueSeriesFix(d,e);var h=a.globals.comboCharts?n[d]:d,f=this.yRatio.length>1?h:0;this._initSerieVariables(e,d,h);var p=[],g=[],y=[],b=a.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),a.globals.isXNumeric&&a.globals.seriesX.length>0&&(b=(a.globals.seriesX[h][0]-a.globals.minX)/this.xRatio),y.push(b);var v,x=b,w=void 0,k=x,A=this.zeroY,E=this.zeroY;A=this.lineHelpers.determineFirstPrevY({i:d,realIndex:h,series:e,prevY:A,lineYPosition:0,translationsIndex:f}).prevY,"monotoneCubic"===a.config.stroke.curve&&null===e[d][0]?p.push(null):p.push(A),v=A,"rangeArea"===s&&(w=E=this.lineHelpers.determineFirstPrevY({i:d,realIndex:h,series:r,prevY:E,lineYPosition:0,translationsIndex:f}).prevY,g.push(null!==p[0]?E:null));var S=this._calculatePathsFrom({type:s,series:e,i:d,realIndex:h,translationsIndex:f,prevX:k,prevY:A,prevY2:E}),O=[p[0]],T=[g[0]],N={type:s,series:e,realIndex:h,translationsIndex:f,i:d,x:b,y:1,pX:x,pY:v,pathsFrom:S,linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:y,yArrj:p,y2Arrj:g,seriesRangeEnd:r},_=this._iterateOverDataPoints(m(m({},N),{},{iterations:"rangeArea"===s?e[d].length-1:void 0,isRangeStart:!0}));if("rangeArea"===s){for(var I=this._calculatePathsFrom({series:r,i:d,realIndex:h,prevX:k,prevY:E}),R=this._iterateOverDataPoints(m(m({},N),{},{series:r,xArrj:[b],yArrj:O,y2Arrj:T,pY:w,areaPaths:_.areaPaths,pathsFrom:I,iterations:r[d].length-1,isRangeStart:!1})),M=_.linePaths.length/2,j=0;j<M;j++)_.linePaths[j]=R.linePaths[j+M]+_.linePaths[j];_.linePaths.splice(M),_.pathFromLine=R.pathFromLine+_.pathFromLine}else _.pathFromArea+="z";this._handlePaths({type:s,realIndex:h,i:d,paths:_}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),u.push(this.elSeries)}if(void 0!==(null===(i=a.config.series[0])||void 0===i?void 0:i.zIndex)&&u.sort((function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.
2node.getAttribute("zIndex"))})),a.config.chart.stacked)for(var L=u.length-1;L>=0;L--)l.add(u[L]);else for(var B=0;B<u.length;B++)l.add(u[B]);return l}},{key:"_initSerieVariables",value:function(e,t,n){var r=this.w,i=new P(this.ctx);this.xDivision=r.globals.gridWidth/(r.globals.dataPoints-("on"===r.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(r.config.stroke.width)?r.config.stroke.width[n]:r.config.stroke.width;var a=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[n],a=n),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.globals.gridHeight-this.baseLineY[a]-(this.isReversed?r.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[a]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.globals.gridHeight||"end"===r.config.plotOptions.area.fillTo)&&(this.areaBottomY=r.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=i.group({class:"apexcharts-series",zIndex:void 0!==r.config.series[n].zIndex?r.config.series[n].zIndex:n,seriesName:A.escapeString(r.globals.seriesNames[n])}),this.elPointsMain=i.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),this.elDataLabelsWrap=i.group({class:"apexcharts-datalabels","data:realIndex":n});var o=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,n,r,i,a=e.type,o=e.series,s=e.i,l=e.realIndex,c=e.translationsIndex,u=e.prevX,d=e.prevY,h=e.prevY2,f=this.w,p=new P(this.ctx);if(null===o[s][0]){for(var g=0;g<o[s].length;g++)if(null!==o[s][g]){u=this.xDivision*g,d=this.zeroY-o[s][g]/this.yRatio[c],t=p.move(u,d),n=p.move(u,this.areaBottomY);break}}else t=p.move(u,d),"rangeArea"===a&&(t=p.move(u,h)+p.line(u,d)),n=p.move(u,this.areaBottomY)+p.line(u,d);if(r=p.move(0,this.zeroY)+p.line(0,this.zeroY),i=p.move(0,this.zeroY)+p.line(0,this.zeroY),f.globals.previousPaths.length>0){var m=this.lineHelpers.checkPreviousPaths({pathFromLine:r,pathFromArea:i,realIndex:l});r=m.pathFromLine,i=m.pathFromArea}return{prevX:u,prevY:d,linePath:t,areaPath:n,pathFromLine:r,pathFromArea:i}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,r=e.i,i=e.paths,a=this.w,o=new P(this.ctx),s=new G(this.ctx);this.prevSeriesY.push(i.yArrj),a.globals.seriesXvalues[n]=i.xArrj,a.globals.seriesYvalues[n]=i.yArrj;var l=a.config.forecastDataPoints;if(l.count>0&&"rangeArea"!==t){var c=a.globals.seriesXvalues[n][a.globals.seriesXvalues[n].length-l.count-1],u=o.drawRect(c,0,a.globals.gridWidth,a.globals.gridHeight,0);a.globals.dom.elForecastMask.appendChild(u.node);var d=o.drawRect(0,0,c,a.globals.gridHeight,0);a.globals.dom.elNonForecastMask.appendChild(d.node)}this.pointsChart||a.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var h={i:r,realIndex:n,animationDelay:r,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var f=s.fillPath({seriesNumber:n}),p=0;p<i.areaPaths.length;p++){var g=o.renderPaths(m(m({},h),{},{pathFrom:i.pathFromArea,pathTo:i.areaPaths[p],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:f}));this.elSeries.add(g)}if(a.config.stroke.show&&!this.pointsChart){var y=null;if("line"===t)y=s.fillPath({seriesNumber:n,i:r});else if("solid"===a.config.stroke.fill.type)y=a.globals.stroke.colors[n];else{var b=a.config.fill;a.config.fill=a.config.stroke.fill,y=s.fillPath({seriesNumber:n,i:r}),a.config.fill=b}for(var v=0;v<i.linePaths.length;v++){var x=y;"rangeArea"===t&&(x=s.fillPath({seriesNumber:n}));var w=m(m({},h),{},{pathFrom:i.pathFromLine,pathTo:i.linePaths[v],stroke:y,strokeWidth:this.strokeWidth,strokeLineCap:a.config.stroke.lineCap,fill:"rangeArea"===t?x:"none"}),k=o.renderPaths(w);if(this.elSeries.add(k),k.attr("fill-rule","evenodd"),l.count>0&&"rangeArea"!==t){var A=o.renderPaths(w);A.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&A.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(A),A.attr("clip-path","url(#forecastMask".concat(a.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(a.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,n,r=this,i=e.type,a=e.series,o=e.iterations,s=e.realIndex,l=e.translationsIndex,c=e.i,u=e.x,d=e.y,h=e.pX,f=e.pY,p=e.pathsFrom,g=e.linePaths,m=e.areaPaths,y=e.seriesIndex,b=e.lineYPosition,v=e.xArrj,x=e.
2yArrj,w=e.y2Arrj,k=e.isRangeStart,E=e.seriesRangeEnd,S=this.w,C=new P(this.ctx),O=this.yRatio,T=p.prevY,N=p.linePath,_=p.areaPath,I=p.pathFromLine,R=p.pathFromArea,M=A.isNumber(S.globals.minYArr[s])?S.globals.minYArr[s]:S.globals.minY;o||(o=S.globals.dataPoints>1?S.globals.dataPoints-1:S.globals.dataPoints);var j=function(e,t){return t-e/O[l]+2*(r.isReversed?e/O[l]:0)},L=d,B=S.config.chart.stacked&&!S.globals.comboCharts||S.config.chart.stacked&&S.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[s])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[s])||void 0===n?void 0:n.type)),F=S.config.stroke.curve;Array.isArray(F)&&(F=Array.isArray(y)?F[y[c]]:F[c]);for(var D,U=0,z=0;z<o;z++){var W=void 0===a[c][z+1]||null===a[c][z+1];if(S.globals.isXNumeric){var H=S.globals.seriesX[s][z+1];void 0===S.globals.seriesX[s][z+1]&&(H=S.globals.seriesX[s][o-1]),u=(H-S.globals.minX)/this.xRatio}else u+=this.xDivision;b=B&&c>0&&S.globals.collapsedSeries.length<S.config.series.length-1?this.prevSeriesY[function(e){for(var t=e;t>0;t--){if(!(S.globals.collapsedSeriesIndices.indexOf((null==y?void 0:y[t])||t)>-1))return t;t--}return 0}(c-1)][z+1]:this.zeroY,W?d=j(M,b):(d=j(a[c][z+1],b),"rangeArea"===i&&(L=j(E[c][z+1],b))),v.push(u),!W||"smooth"!==S.config.stroke.curve&&"monotoneCubic"!==S.config.stroke.curve?(x.push(d),w.push(L)):(x.push(null),w.push(null));var V=this.lineHelpers.calculatePoints({series:a,x:u,y:d,realIndex:s,i:c,j:z,prevY:T}),G=this._createPaths({type:i,series:a,i:c,realIndex:s,j:z,x:u,y:d,y2:L,xArrj:v,yArrj:x,y2Arrj:w,pX:h,pY:f,pathState:U,segmentStartX:D,linePath:N,areaPath:_,linePaths:g,areaPaths:m,curve:F,isRangeStart:k});m=G.areaPaths,g=G.linePaths,h=G.pX,f=G.pY,U=G.pathState,D=G.segmentStartX,_=G.areaPath,N=G.linePath,!this.appendPathFrom||"monotoneCubic"===F&&"rangeArea"===i||(I+=C.line(u,this.zeroY),R+=C.line(u,this.zeroY)),this.handleNullDataPoints(a,V,c,z,s),this._handleMarkersAndLabels({type:i,pointsPos:V,i:c,j:z,realIndex:s,isRangeStart:k})}return{yArrj:x,xArrj:v,pathFromArea:R,areaPaths:m,pathFromLine:I,linePaths:g,linePath:N,areaPath:_}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,r=e.isRangeStart,i=e.i,a=e.j,o=e.realIndex,s=this.w,l=new X(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:o,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{s.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(n,o,a+1);null!==c&&this.elPointsMain.add(c)}var u=l.drawDataLabel({type:t,isRangeStart:r,pos:n,i:o,j:a+1});null!==u&&this.elDataLabelsWrap.add(u)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,r=e.i;e.realIndex;var i,a=e.j,o=e.x,s=e.y,l=e.xArrj,c=e.yArrj,u=e.y2,d=e.y2Arrj,h=e.pX,f=e.pY,p=e.pathState,g=e.segmentStartX,m=e.linePath,y=e.areaPath,b=e.linePaths,v=e.areaPaths,x=e.curve,w=e.isRangeStart,k=new P(this.ctx),A=this.areaBottomY,E="rangeArea"===t,S="rangeArea"===t&&w;switch(x){case"monotoneCubic":var C=w?c:d;switch(p){case 0:if(null===C[a+1])break;p=1;case 1:if(!(E?l.length===n[r].length:a===n[r].length-2))break;case 2:var O=w?l:l.slice().reverse(),T=w?C:C.slice().reverse(),N=(i=T,O.map((function(e,t){return[e,i[t]]})).filter((function(e){return null!==e[1]}))),_=N.length>1?De(N):N,I=[];E&&(S?v=N:I=v.reverse());var R=0,M=0;if(function(e,t){for(var n=function(e){var t=[],n=0;return e.forEach((function(e){null!==e?n++:n>0&&(t.push(n),n=0)})),n>0&&t.push(n),t}(e),r=[],i=0,a=0;i<n.length;a+=n[i++])r[i]=Ue(t,a,a+n[i]);return r}(T,_).forEach((function(e){R++;var t=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n],i=r.length;i>4?(t+="C".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]),t+=", ".concat(r[4],", ").concat(r[5])):i>2&&(t+="S".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]))}return t}(e),n=M,r=(M+=e.length)-1;S?m=k.move(N[n][0],N[n][1])+t:E?m=k.move(I[n][0],I[n][1])+k.line(N[n][0],N[n][1])+t+k.line(I[r][0],I[r][1]):(m=k.move(N[n][0],N[n][1])+t,y=m+k.line(N[r][0],A)+k.line(N[n][0],A)+"z",v.push(y)),b.push(m)})),E&&R>1&&!S){var j=b.slice(R).reverse();
2b.splice(R),j.forEach((function(e){return b.push(e)}))}p=0}break;case"smooth":var L=.35*(o-h);if(null===n[r][a])p=0;else switch(p){case 0:if(g=h,m=S?k.move(h,d[a])+k.line(h,f):k.move(h,f),y=k.move(h,f),null===n[r][a+1]){b.push(m),v.push(y);break}if(p=1,a<n[r].length-2){var B=k.curve(h+L,f,o-L,s,o,s);m+=B,y+=B;break}case 1:if(null===n[r][a+1])m+=S?k.line(h,u):k.move(h,f),y+=k.line(h,A)+k.line(g,A)+"z",b.push(m),v.push(y),p=-1;else{var F=k.curve(h+L,f,o-L,s,o,s);m+=F,y+=F,a>=n[r].length-2&&(S&&(m+=k.curve(o,s,o,s,o,u)+k.move(o,u)),y+=k.curve(o,s,o,s,o,A)+k.line(g,A)+"z",b.push(m),v.push(y),p=-1)}}h=o,f=s;break;default:var D=function(e,t,n){var r=[];switch(e){case"stepline":r=k.line(t,null,"H")+k.line(null,n,"V");break;case"linestep":r=k.line(null,n,"V")+k.line(t,null,"H");break;case"straight":r=k.line(t,n)}return r};if(null===n[r][a])p=0;else switch(p){case 0:if(g=h,m=S?k.move(h,d[a])+k.line(h,f):k.move(h,f),y=k.move(h,f),null===n[r][a+1]){b.push(m),v.push(y);break}if(p=1,a<n[r].length-2){var U=D(x,o,s);m+=U,y+=U;break}case 1:if(null===n[r][a+1])m+=S?k.line(h,u):k.move(h,f),y+=k.line(h,A)+k.line(g,A)+"z",b.push(m),v.push(y),p=-1;else{var z=D(x,o,s);m+=z,y+=z,a>=n[r].length-2&&(S&&(m+=k.line(o,u)),y+=k.line(o,A)+k.line(g,A)+"z",b.push(m),v.push(y),p=-1)}}h=o,f=s}return{linePaths:b,areaPaths:v,pX:h,pY:f,pathState:p,segmentStartX:g,linePath:m,areaPath:y}}},{key:"handleNullDataPoints",value:function(e,t,n,r,i){var a=this.w;if(null===e[n][r]&&a.config.markers.showNullDataPoints||1===e[n].length){var o=this.strokeWidth-a.config.markers.strokeWidth/2;o>0||(o=0);var s=this.markers.plotChartMarkers(t,i,r+1,o,!0);null!==s&&this.elPointsMain.add(s)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,n,r,i){this.xoffset=t,this.yoffset=n,this.height=i,this.width=r,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,n=[],r=this.xoffset,i=this.yoffset,o=a(e)/this.height,s=a(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)n.push([r,i,r+o,i+e[t]/o]),i+=e[t]/o;else for(t=0;t<e.length;t++)n.push([r,i,r+e[t]/s,i+s]),r+=e[t]/s;return n},this.cutArea=function(t){var n;if(this.width>=this.height){var r=t/this.height,i=this.width-r;n=new e(this.xoffset+r,this.yoffset,i,this.height)}else{var a=t/this.width,o=this.height-a;n=new e(this.xoffset,this.yoffset+a,this.width,o)}return n}}function t(t,r,i,o,s){o=void 0===o?0:o,s=void 0===s?0:s;var l=n(function(e,t){var n,r=[],i=t/a(e);for(n=0;n<e.length;n++)r[n]=e[n]*i;return r}(t,r*i),[],new e(o,s,r,i),[]);return function(e){var t,n,r=[];for(t=0;t<e.length;t++)for(n=0;n<e[t].length;n++)r.push(e[t][n]);return r}(l)}function n(e,t,i,o){var s,l,c;if(0!==e.length)return s=i.shortestEdge(),function(e,t,n){var i;return 0===e.length||((i=e.slice()).push(t),r(e,n)>=r(i,n))}(t,l=e[0],s)?(t.push(l),n(e.slice(1),t,i,o)):(c=i.cutArea(a(t),o),o.push(i.getCoordinates(t)),n(e,[],c,o)),o;o.push(i.getCoordinates(t))}function r(e,t){var n=Math.min.apply(Math,e),r=Math.max.apply(Math,e),i=a(e);return Math.max(Math.pow(t,2)*r/Math.pow(i,2),Math.pow(i,2)/(Math.pow(t,2)*n))}function i(e){return e&&e.constructor===Array}function a(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t];return n}function o(e){var t,n=0;if(i(e[0]))for(t=0;t<e.length;t++)n+=o(e[t]);else n=a(e);return n}return function e(n,r,a,s,l){s=void 0===s?0:s,l=void 0===l?0:l;var c,u,d=[],h=[];if(i(n[0])){for(u=0;u<n.length;u++)d[u]=o(n[u]);for(c=t(d,r,a,s,l),u=0;u<n.length;u++)h.push(e(n[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else h=t(n,r,a,s,l);return h}}();var He,Ve,Ge=function(){function e(t,n){o(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new _e(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return l(e,[{key:"draw",value:function(e){var t=this,n=this.w,r=new P(this.ctx),i=new G(this.ctx),a=r.group({class:"apexcharts-treemap"});if(n.globals.noData)return a;var o=[];return e.forEach((function(e){var t=e.map((function(e){return Math.abs(e)}));o.push(t)})),this.negRange=this.helpers.checkColorRange(),n.config.series.forEac
2h((function(e,n){e.data.forEach((function(e){Array.isArray(t.labels[n])||(t.labels[n]=[]),t.labels[n].push(e.x)}))})),window.TreemapSquared.generate(o,n.globals.gridWidth,n.globals.gridHeight).forEach((function(o,s){var l=r.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:A.escapeString(n.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});if(n.config.chart.dropShadow.enabled){var c=n.config.chart.dropShadow;new S(t.ctx).dropShadow(a,c,s)}var u=r.group({class:"apexcharts-data-labels"});o.forEach((function(a,o){var c=a[0],u=a[1],d=a[2],h=a[3],f=r.drawRect(c,u,d-c,h-u,n.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?g:n.globals.stroke.colors[s]);f.attr({cx:c,cy:u,index:s,i:s,j:o,width:d-c,height:h-u});var p=t.helpers.getShadeColor(n.config.chart.type,s,o,t.negRange),g=p.color;void 0!==n.config.series[s].data[o]&&n.config.series[s].data[o].fillColor&&(g=n.config.series[s].data[o].fillColor);var m=i.fillPath({color:g,seriesNumber:s,dataPointIndex:o});f.node.classList.add("apexcharts-treemap-rect"),f.attr({fill:m}),t.helpers.addListeners(f);var y={x:c+(d-c)/2,y:u+(h-u)/2,width:0,height:0},b={x:c,y:u,width:d-c,height:h-u};if(n.config.chart.animations.enabled&&!n.globals.dataChanged){var v=1;n.globals.resized||(v=n.config.chart.animations.speed),t.animateTreemap(f,y,b,v)}if(n.globals.dataChanged){var x=1;t.dynamicAnim.enabled&&n.globals.shouldAnimate&&(x=t.dynamicAnim.speed,n.globals.previousPaths[s]&&n.globals.previousPaths[s][o]&&n.globals.previousPaths[s][o].rect&&(y=n.globals.previousPaths[s][o].rect),t.animateTreemap(f,y,b,x))}var w=t.getFontSize(a),k=n.config.dataLabels.formatter(t.labels[s][o],{value:n.globals.series[s][o],seriesIndex:s,dataPointIndex:o,w:n});"truncate"===n.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(n.config.dataLabels.style.fontSize,10),k=t.truncateLabels(k,w,c,u,d,h));var A=null;n.globals.series[s][o]&&(A=t.helpers.calculateDataLabels({text:k,x:(c+d)/2,y:(u+h)/2+t.strokeWidth/2+w/3,i:s,j:o,colorProps:p,fontSize:w,series:e})),n.config.dataLabels.enabled&&A&&t.rotateToFitLabel(A,w,k,c,u,d,h),l.add(f),null!==A&&l.add(A)})),l.add(u),a.add(l)})),a}},{key:"getFontSize",value:function(e){var t,n,r=this.w,i=function e(t){var n,r=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)r+=e(t[n]);else for(n=0;n<t.length;n++)r+=t[n].length;return r}(this.labels)/function e(t){var n,r=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)r+=e(t[n]);else for(n=0;n<t.length;n++)r+=1;return r}(this.labels);return t=(e[2]-e[0])*(e[3]-e[1]),n=Math.pow(t,.5),Math.min(n/i,parseInt(r.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,n,r,i,a,o){var s=new P(this.ctx),l=s.getTextRects(n,t);if(l.width+this.w.config.stroke.width+5>a-r&&l.width<=o-i){var c=s.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,n,r,i,a){var o=new P(this.ctx),s=o.getTextRects(e,t).width+this.w.config.stroke.width+5>i-n&&a-r>i-n?a-r:i-n,l=o.getTextBasedOnMaxWidth({text:e,maxWidth:s,fontSize:t});return e.length!==l.length&&s/t<5?"":l}},{key:"animateTreemap",value:function(e,t,n,r){var i=new E(this.ctx);i.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:n.x,y:n.y,width:n.width,height:n.height},r,(function(){i.animationCompleted(e)}))}}]),e}(),Ye=10/86400,qe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return l(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var i=new N(this.ctx),a=(t-e)/864e5;this.determineInterval(a),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,a<Ye?r.globals.disableZoomIn=!0:a>5e4&&(r.globals.disableZoomOut=!0);var o=i.getTimeUnitsfromTimestamp(e,t,this.utc),s=r.globals.gridWidth/a,l=s/24,c=l/60,u=c/60,d=Math.floor(24*a),h=Math.floor(1440*a),f=Math.floor(86400*a),p=Math.floor(a),g=Math.floor(a/30),y=Math.floor(a/365),b={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},v={firstVal:b,currentMillisecond:b.minMillisecond,currentSecond:b.minSecond,currentMinute:b.minMinute,currentHour:b.minHour,currentMonthDate:b.minDate,currentDate:b.minDate,currentMonth:b.minMonth,currentYear:b.minYear,daysWidthOnXAxis:s,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:u,numberOfSeconds:f,numberOfMinutes:h,numberOfHours:d,numberOfDays:p,numberOfMonths:g,numberOfYears:y};switch(this.tickInterval){case"years":this.generateYearScale(v);break;case"months":case"half_year":this.generateMonthScale(v);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(v);break;case"hours":this.generateHourScale(v);break;case"minutes_fives":case"minutes":this.generateMinuteScale(v);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(v)}var x=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?m(m({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?m(m({},t),{},{value:e.value}):"minute"===e.unit?m(m({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?m(m({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return x.filter((function(e){var t=1,i=Math.ceil(r.globals.gridWidth/120),a=e.value;void 0!==r.config.xaxis.tickAmount&&(i=r.config.xaxis.tickAmount),x.length>i&&(t=Math.floor(x.length/i));var o=!1,s=!1;switch(n.tickInterval){case"years":"year"===e.unit&&(o=!0);break;case"half_year":t=7,"year"===e.unit&&(o=!0);break;case"months":t=1,"year"===e.unit&&(o=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(o=!0),30===a&&(s=!0);break;case"months_days":t=10,"month"===e.unit&&(o=!0),30===a&&(s=!0);break;case"week_days":t=8,"month"===e.unit&&(o=!0);break;case"days":t=1,"month"===e.unit&&(o=!0);break;case"hours":"day"===e.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":a%5!=0&&(s=!0);break;case"seconds_tens":a%10!=0&&(s=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!s)return!0}
vendor: 6,430 bytes, line 2
2else if((a%t==0||o)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,r=this.formatDates(e),i=this.removeOverlappingTS(r);n.globals.timescaleLabels=i.slice(),new pe(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,n=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,i=e.daysWidthOnXAxis,a=e.numberOfYears,o=t.minYear,s=0,l=new N(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var u=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);s=(l.determineDaysOfYear(t.minYear)-u+1)*i,o=t.minYear+1,this.timeScaleArray.push({position:s,value:o,unit:c,year:o,month:A.monthMod(n+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:s,value:o,unit:c,year:r,month:A.monthMod(n+1)});for(var d=o,h=s,f=0;f<a;f++)d++,h=l.determineDaysOfYear(d-1)*i+h,this.timeScaleArray.push({position:h,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,n=e.currentMonthDate,r=e.currentMonth,i=e.currentYear,a=e.daysWidthOnXAxis,o=e.numberOfMonths,s=r,l=0,c=new N(this.ctx),u="month",d=0;if(t.minDate>1){l=(c.determineDaysOfMonths(r+1,t.minYear)-n+1)*a,s=A.monthMod(r+1);var h=i+d,f=A.monthMod(s),p=s;0===s&&(u="year",p=h,f=1,h+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:u,year:h,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:u,year:i,month:A.monthMod(r)});for(var g=s+1,m=l,y=0,b=1;y<o;y++,b++){0===(g=A.monthMod(g))?(u="year",d+=1):u="month";var v=this._getYear(i,g,d);m=c.determineDaysOfMonths(g,v)*a+m;var x=0===g?v:g;this.timeScaleArray.push({position:m,value:x,unit:u,year:v,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,i=e.hoursWidthOnXAxis,a=e.numberOfDays,o=new N(this.ctx),s="day",l=t.minDate+1,c=l,u=function(e,t,n){return e>o.determineDaysOfMonths(t+1,n)?(c=1,s="month",h=t+=1,t):t},d=(24-t.minHour)*i,h=l,f=u(c,n,r);0===t.minHour&&1===t.minDate?(d=0,h=A.monthMod(t.minMonth),s="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,l=t.minDate,h=l,f=u(c=l,n,r)),this.timeScaleArray.push({position:d,value:h,unit:s,year:this._getYear(r,f,0),month:A.monthMod(f),day:c});for(var p=d,g=0;g<a;g++){s="day",f=u(c+=1,f,this._getYear(r,f,0));var m=this._getYear(r,f,0);p=24*i+p;var y=1===c?A.monthMod(f):c;this.timeScaleArray.push({position:p,value:y,unit:s,year:m,month:A.monthMod(f),day:y})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,n=e.currentDate,r=e.currentMonth,i=e.currentYear,a=e.minutesWidthOnXAxis,o=e.numberOfHours,s=new N(this.ctx),l="hour",c=function(e,t){return e>s.determineDaysOfMonths(t+1,i)&&(g=1,t+=1),{month:t,date:g}},u=function(e,t){return e>s.determineDaysOfMonths(t+1,i)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),h=d*a,f=t.minHour+1,p=f;60===d&&(h=0,p=f=t.minHour);var g=n;p>=24&&(p=0,g+=1,l="day");var m=c(g,r).month;m=u(g,m),this.timeScaleArray.push({position:h,value:f,unit:l,day:g,hour:p,year:i,month:A.monthMod(m)}),p++;for(var y=h,b=0;b<o;b++){l="hour",p>=24&&(p=0,l="day",m=c(g+=1,m).month,m=u(g,m));var v=this._getYear(i,m,0);y=60*a+y;var x=0===p?g:p;this.timeScaleArray.push({position:y,value:x,unit:l,hour:p,day:g,year:v,month:A.monthMod(m)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,u=e.numberOfMinutes,d=r+1,h=a,f=o,p=s,g=i,m=(60-n-t/1e3)*c,y=0;y<u;y++)d>=60&&(d=0,24===(g+=1)&&(g=0)),this.timeScaleArray.push({position:m,value:d,unit:"minute",hour:g,minute:d,day:h,year:this._getYear(p,f,0),month:A.monthMod(f)}),m+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,u=n+1,d=r,h=a,f=o,p=s,g=i,m=(1e3-t)/1e3*l,y=0;y<c;y++)u>=60&&(u=0,++d>=60&&(d=0,24===++g&&(g=0))),this.timeScaleArray.push({position:m,value:u,unit:"second",hour:g,minute:d,second:u,day:h,year:this._getYear(p,f,0),month:A.monthMod(f)}),m+=l,u++}},{key:"createRawDateString",value:function(e,t){var n=e.year;return 0===e.month&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?n+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?n+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?n+=":"+("0"+t).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?n+=":"+("0"+t).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var t=this,n=this.w;return e.map((function(e){var r=e.value.toString(),i=new N(t.ctx),a=t.createRawDateString(e,r),o=i.getDate(i.parseDate(a));if(t.utc||(o=i.getDate(i.parseDateWithTimezone(a))),void 0===n.config.xaxis.labels.format){var s="dd MMM",l=n.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(s=l.year),"month"===e.unit&&(s=l.month),"day"===e.unit&&(s=l.day),"hour"===e.unit&&(s=l.hour),"minute"===e.unit&&(s=l.minute),"second"===e.unit&&(s=l.second),r=i.formatDate(o,s)}else r=i.formatDate(o,n.config.xaxis.labels.format);return{dateString:a,position:e.position,value:r,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,n=this,r=new P(this.ctx),i=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(i=!0,t=r.getTextRects(e[0].value).width);var a=0,o=e.map((function(o,s){if(s>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var l=i?t:r.getTextRects(e[a].value).width,c=e[a].position;return o.position>c+l+10?(a=s,o):null}return o}
2));return o.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),e}(),Xe=function(){function e(t,n){o(this,e),this.ctx=n,this.w=n.w,this.el=t}return l(e,[{key:"setupElements",value:function(){var e=this.w,t=e.globals,n=e.config,r=n.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(r),t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(r),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(r)&&n.plotOptions.bar.horizontal,t.chartClass=".apexcharts".concat(t.chartID),t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),P.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas ".concat(t.chartClass.substring(1))}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(n.chart.offsetX,", ").concat(n.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==n.theme.mode||n.chart.background?"light"!==n.theme.mode||n.chart.background?n.chart.background:"#fff":"#424242",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),P.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,r=this.ctx,i=n.config,a=n.globals,o={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},column:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},s=i.chart.type||"line",l=null,c=0;a.series.forEach((function(t,r){var i=e[r].type||s;o[i]?("rangeArea"===i?(o[i].series.push(a.seriesRangeStart[r]),o[i].seriesRangeEnd.push(a.seriesRangeEnd[r])):o[i].series.push(t),o[i].i.push(r),"column"!==i&&"bar"!==i||(n.globals.columnSeries=o.column)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(i)?l=i:"bar"===i?(o.column.series.push(t),o.column.i.push(r)):console.warn("You have specified an unrecognized series type (".concat(i,").")),s!==i&&"scatter"!==i&&c++})),c>0&&(l&&console.warn("Chart or series type ".concat(l," cannot appear with other chart or series types.")),o.column.series.length>0&&i.plotOptions.bar.horizontal&&(c-=o.column.series.length,o.column={series:[],i:[]},n.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),a.comboCharts||(a.comboCharts=c>0);var u=new We(r,t),d=new Ne(r,t);r.pie=new Me(r);var h=new Le(r);r.rangeBar=new Be(r,t);var f=new je(r),p=[];if(a.comboCharts){var g,m,y=new C(r);if(o.area.series.length>0&&(g=p).push.apply(g,v(y.drawSeriesByGroup(o.area,a.areaGroups,"area",u))),o.column.series.length>0)if(i.chart.stacked){var b=new Te(r,t);p.push(b.draw(o.column.series,o.column.i))}else r.bar=new Oe(r,t),p.push(r.bar.draw(o.column.series,o.column.i));if(o.rangeArea.series.length>0&&p.push(u.draw(o.rangeArea.series,"rangeArea",o.rangeArea.i,o.rangeArea.seriesRangeEnd)),o.line.series.length>0&&(m=p).push.apply(m,v(y.drawSeriesByGroup(o.line,a.lineGroups,"line",u))),o.candlestick.series.length>0&&p.push(d.draw(o.candlestick.series,"candlestick",o.candlestick.i)),o.boxPlot.series.length>0&&p.push(d.draw(o.boxPlot.series,"boxPlot",o.boxPlot.i)),o.rangeBar.series.length>0&&p.push(r.rangeBar.draw(o.rangeBar.series,o.rangeBar.i)),o.scatter.series.length>0){var x=new We(r,t,!0);p.push(x.draw(o.scatter.series,"scatter",o.scatter.i))}if(o.bubble.series.length>0){var w=new We(r,t,!0);p.push(w.draw(o.bubble.series,"bubble",o.bubble.i))}}else switch(i.chart.type){case"line":p=u.draw(a.series,"line");break;case"area":p=u.draw(a.series,"area");break;case"bar":i.chart.stacked?p=new Te(r,t).draw(a.series):(r.bar=new Oe(r,t),p=r.bar.draw(a.series));break;case"candlestick":p=new Ne(r,t).draw(a.series,"candlestick");break;case"boxPlot":p=new Ne(r,t).draw(a.series,i.chart.type);break;case"rangeBar":p=r.rangeBar.draw(a.series);break;case"rangeArea":p=u.draw(a.seriesRangeStart,"rangeArea",void 0,a.seriesRangeEnd);break;case"heatmap":p=new Ie(r,t).draw(a.series);break;case"treemap":p=new Ge(r,t).draw(a.series);break;case"pie":case"donut":case"polarArea":p=r.pie.draw(a.series);break;case"radialBar":p=h.draw(a.series);break;case"radar":p=f.draw(a.series);break;default:p=u.draw(a.series)}return p}},{key:"setSVGDimensions",value:function(){var e=this.w,t=e.globals,n=e.config;n.chart.width=n.chart.width||"100%",n.chart.height=n.chart.height||"auto",t.svgWidth=n.chart.width,t.svgHeight=n.chart.height;var r=A.getDimensions(this.el),i=n.chart.width.toString().split(/[0-9]+/g).pop();"%"===i?A.isNumber(r[0])&&(0===r[0].width&&(r=A.getDimensions(this.el.parentNode)),t.svgWidth=r[0]*parseInt(n.chart.width,10)/100):"px"!==i&&""!==i||(t.svgWidth=parseInt(n.chart.width,10));var a=String(n.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===a){var o=A.getDimensions(this.el.parentNode);
2t.svgHeight=o[1]*parseInt(n.chart.height,10)/100}else t.svgHeight=parseInt(n.chart.height,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),P.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==a){var s=n.chart.sparkline.enabled?0:t.axisCharts?n.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(t.svgHeight+s,"px")}t.dom.elWrap.style.width="".concat(t.svgWidth,"px"),t.dom.elWrap.style.height="".concat(t.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n=e.translateX;P.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(n,", ").concat(t,")")})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,r=e.config.chart.sparkline.enabled?1:15;r+=e.config.grid.padding.bottom,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(n=new me(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var i=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),a=2.05*e.globals.radialSize;if(i&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var o=A.getBoundingClientRect(i);a=o.bottom;var s=o.bottom-o.top;a=Math.max(2.05*e.globals.radialSize,s)}var l=Math.ceil(a+t.translateY+n+r);t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).includes("%")||(t.dom.elWrap.style.height="".concat(l,"px"),P.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(l,"px"))}},{key:"coreCalculations",value:function(){new te(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(){return[]}))},n=new H,r=this.w.globals;n.initGlobalVars(r),r.seriesXvalues=t(),r.seriesYvalues=t()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,t=null;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new oe(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new oe(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new qe(this.ctx);var n=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}t=new C(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var n=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];n.forEach((function(t){var n=ApexCharts.getChartByID(t);n.w.globals.brushSource=e.ctx,"function"!=typeof n.w.config.chart.events.zoomed&&(n.w.config.chart.events.zoomed=function(){return e.updateSourceChart(n)}),"function"!=typeof n.w.config.chart.events.scrolled&&(n.w.config.chart.events.scrolled=function(){return e.updateSourceChart(n)})})),t.config.chart.events.selection=function(e,t){n.forEach((function(e){ApexCharts.getChartByID(e).ctx.updateHelpers._updateOptions({xaxis:{min:t.xaxis.min,max:t.xaxis.max}},!1,!1,!1,!1)}))}}}}]),e}(),$e=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(o){var s=[t.ctx];i&&(s=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(s=[t.ctx],t.ctx.w.globals.isExecCalled=!1),s.forEac
vendor: 5,371 bytes, line 2
2h((function(i,l){var c=i.w;if(c.globals.shouldAnimate=r,n||(c.globals.resized=!0,c.globals.dataChanged=!0,r&&i.series.getPreviousPaths()),e&&"object"===w(e)&&(i.config=new W(e),e=C.extendArrayProps(i.config,e,c),i.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,c.config=A.extend(c.config,e),a&&(c.globals.lastXAxis=e.xaxis?A.clone(e.xaxis):[],c.globals.lastYAxis=e.yaxis?A.clone(e.yaxis):[],c.globals.initialConfig=A.extend({},c.config),c.globals.initialSeries=A.clone(c.config.series),e.series))){for(var u=0;u<c.globals.collapsedSeriesIndices.length;u++){var d=c.config.series[c.globals.collapsedSeriesIndices[u]];c.globals.collapsedSeries[u].data=c.globals.axisCharts?d.data.slice():d}for(var h=0;h<c.globals.ancillaryCollapsedSeriesIndices.length;h++){var f=c.config.series[c.globals.ancillaryCollapsedSeriesIndices[h]];c.globals.ancillaryCollapsedSeries[h].data=c.globals.axisCharts?f.data.slice():f}i.series.emptyCollapsedSeries(c.config.series)}return i.update(e).then((function(){l===s.length-1&&o(i)}))}))}))}},{key:"_updateSeries",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(i){var a,o=n.w;return o.globals.shouldAnimate=t,o.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(a=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(a=[{data:[]}]),o.config.series=a):o.config.series=e.slice(),r&&(o.globals.initialConfig.series=A.clone(o.config.series),o.globals.initialSeries=A.clone(o.config.series)),n.ctx.update().then((function(){i(n.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var n=this.w,r=n.config.series[t];return m(m({},n.config.series[t]),{},{name:e.name?e.name:null==r?void 0:r.name,color:e.color?e.color:null==r?void 0:r.color,type:e.type?e.type:null==r?void 0:r.type,group:e.group?e.group:null==r?void 0:r.group,hidden:void 0!==e.hidden?e.hidden:null==r?void 0:r.hidden,data:e.data?e.data:null==r?void 0:r.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,r=null,i=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(t,"'], ").concat(i," circle[j='").concat(t,"'], ").concat(i," rect[j='").concat(t,"']")).members[0]:void 0===t&&(r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(e,"']")).members[0],"pie"!==n.config.chart.type&&"polarArea"!==n.config.chart.type&&"donut"!==n.config.chart.type||this.ctx.pie.pieClicked(e)),r?(new P(this.ctx).pathMouseDown(r,null),r.node?r.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(n){void 0!==e.xaxis[n]&&(t.config.xaxis[n]=e.xaxis[n],t.globals.lastXAxis[n]=e.xaxis[n])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var n=new z(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,n=this.w,r=n.globals.lastXAxis,i=n.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(i=e.yaxis),n.config.xaxis.min=r.min,n.config.xaxis.max=r.max;n.config.yaxis.map((function(e,r){n.globals.zoomed||void 0!==i[r]?function(e){void 0!==i[e]&&(n.config.yaxis[e].min=i[e].min,n.config.yaxis[e].max=i[e].max)}(r):void 0!==t.ctx.opts.yaxis[r]&&(e.min=t.ctx.opts.yaxis[r].min,e.max=t.ctx.opts.yaxis[r].max)}))}}]),e}();He="undefined"!=typeof window?window:void 0,Ve=function(e,t){var n=(void 0!==this?this:e).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.dev",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(e){return"Svgjs"+u(e)+n.did++},n.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},n.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var r=e.length-1;r>=0;r--)if(e[r])for(var i in t)e[r].prototype[i]=t[i];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},n.adopt=function(t){return t?t.instance?t.instance:((r="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[u(t.nodeName)]?new(n[u(t.nodeName)]):new n.Element(t)).type=t.nodeName,r.node=t,t.instance=r,r instanceof n.Doc&&r.namespace().defs(),r.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),r):null;var r},n.prepare=function(){var e=t.getElementsByTagName("body")[0],r=(e?new n.Doc(e):n.adopt(t.documentElement).nested()).size(2,0);n.parser={body:e||t.documentElement,draw:r.style("opacity:0;position:absolute;
2left:-100%;top:-100%;overflow:hidden").node,poly:r.polyline().node,path:r.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},t.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){for(var n=e.length,r=[],i=0;i<n;i++)r.push(t(e[i]));return r},filter:function(e,t){for(var n=e.length,r=[],i=0;i<n;i++)t(e[i])&&r.push(e[i]);return r},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},n.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},n.Color=function(e){var t,r;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?n.regex.isRgb.test(e)?(t=n.regex.rgb.exec(e.replace(n.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):n.regex.isHex.test(e)&&(t=n.regex.hex.exec(4==(r=e).length?["#",r.substring(1,2),r.substring(1,2),r.substring(2,3),r.substring(2,3),r.substring(3,4),r.substring(3,4)].join(""):r),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===w(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+d(this.r)+d(this.g)+d(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new n.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var r={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]}},i="mlhvqtcsaz".split(""),a=0,o=i.length;a<o;++a)r[i[a]]=function(e){return function(t,n,i){if("H"==e)t[0]=t[0]+n.x;else if("V"==e)t[0]=t[0]+n.y;else if("A"==e)t[5]=t[5]+n.x,t[6]=t[6]+n.y;else for(var a=0,o=t.length;a<o;++a)t[a]=t[a]+(a%2?n.y:n.x);if(r&&"function"==typeof r[e])return r[e](t,n,i)}}(i[a].toUpperCase());n.PathArray=function(e,t){n.Array.call(this,e,t||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t][0],null!=e[t][1]&&(r+=e[t][1],null!=e[t][2]&&(r+=" ",r+=e[t][2],null!=e[t][3]&&(r+=" ",r+=e[t][3],r+=" ",r+=e[t][4],null!=e[t][5]&&(r+=" ",r+=e[t][5],r+=" ",r+=e[t][6],null!=e[t][7]&&(r+=" ",r+=e[t][7])))));return r+" "}(this.value)},move:function(e,t){var n=this.bbox();return n.x,n.y,this},at:function(e){if(!this.destination)return this;for(var t=this.value,r=this.destination.value,i=[],a=new n.PathArray,o=0,s=t.length;o<s;o++){i[o]=[t[o][0]];for(var l=1,c=t[o].length;l<c;l++)i[o][l]=t[o][l]+(r[o][l]-t[o][l])*e;"A"===i[o][0]&&(i[o][4]=+(0!=i[o][4]),i[o][5]=+(0!=i[o][5]))}return a.value=i,a},parse:function(e){if(e instanceof n.PathArray)return e.valueOf();var t,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(n.regex.numbersWithDots,l).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):e.reduce((function(e,t){return[].concat.call(e,t)}),[]);var a=[],o=new n.Point,s=new n.Point,c=0,u=e.length;do{n.regex.isPathLetter.test(e[c])?(t=e[c],++c):"M"==t?t="L":"m"==t&&(t="l"),a.push(r[t].call(null,e.slice(c,c+=i[t.toUpperCase()]).map(parseFloat),o,s))}while(u>c);return a},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.unit)}
vendor: 10,202 bytes, line 2
2,extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var r=h(this,e,t);return this.width(new n.Number(r.width)).height(new n.Number(r.height))},clone:function(e){this.writeDataToDom();var t=g(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},parent:function(t){var r=this;if(!r.node.parentNode)return null;if(r=n.adopt(r.node.parentNode),!t)return r;for(;r&&r.node instanceof e.SVGElement;){if("string"==typeof t?r.matches(t):r instanceof t)return r;if(!r.node.parentNode||"#document"==r.node.parentNode.nodeName)return null;r=n.adopt(r.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(e){var t=[],n=this;do{if(!(n=n.parent(e))||!n.node)break;t.push(n)}while(n.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var r=t.createElementNS("http://www.w3.org/2000/svg","svg");if(!(e&&this instanceof n.Parent))return r.appendChild(e=t.createElementNS("http://www.w3.org/2000/svg","svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),r.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");r.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var i=0,a=r.firstChild.childNodes.length;i<a;i++)this.node.appendChild(r.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(e){return this.dom=e,this},is:function(e){return function(e,t){return e instanceof t}(this,e)}}}),n.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,r){return new n.MorphObj(t,r).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,r){"object"===w(e)&&(t=e.ease,r=e.delay,e=e.duration);var i=new n.Situation({duration:e||1e3,delay:r||0,ease:n.easing[t||"-"]||t});return this.queue(i),this},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var r in t.animations){e=this.target()[r](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[r])||(t.animations[r]=[t.animations[r]]);for(var i=e.length;i--;)t.animations[r][i]instanceof n.Number&&(e[i]=new n.Number(e[i])),t.animations[r][i]=e[i].morph(t.animations[r][i])}for(var r in t.attrs)t.attrs[r]=new n.MorphObj(this.target().attr(r),t.attrs[r]);for(var r in t.styles)t.styles[r]=new n.MorphObj(this.target().style(r),t.styles[r]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var n=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!n&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function n(r){r.detail.situation==t&&(e.call(this,t),this.off("finished.fx",n))})),this._callStart()},during:function(e){var t=this.last(),r=function(r){r.detail.situation==t&&e.call(this,r.detail.pos,n.morph(r.detail.pos),r.detail.eased,t)};return this.target().off("during.fx",r).on("during.fx",r),this.after((function(){this.off("during.fx",r)})),this._callStart()},afterAll:function(e){var t=function t(n){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,n){return this.last()[n||"animations"][e]=t,this._callStart()},step:function(e){var t,n,r;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),n=Math.floor(t),!0===this.situation.loops||n<this.situation.loops?(this.pos=t-n,r=this.situation.loop,this.situation.loop=n):(this.absPos=this.situation.loops,this.pos=1,r=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-r)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var i=this.situation.ease(this.pos);for(var a in this.situation.once)a>this.lastPos&&a<=i&&(this.situation.once[a].call(this.target(),this.pos,i),delete this.situation.once[a]);return this.active&&this.target().fire("during",{pos:this.pos,eased:i,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=i,this):this},eachAt:function(){var e,t=this,r=this.target(),i=this.situation;for(var a in i.animations)e=[].concat(i.animations[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r[a].apply(r,e);for(var a in i.attrs)e=[a].concat(i.attrs[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.attr.apply(r,e);for(var a in i.styles)e=[a].concat(i.styles[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.style.apply(r,e);if(i.transforms.length){e=i.initialTransformation,a=0;for(var o=i.transforms.length;a<o;a++){var s=i.transforms[a];s instanceof n.Matrix?e=s.relative?e.multiply((new n.Matrix).morph(s).at(i.ease(this.pos))):e.morph(s).at(i.ease(this.pos)):(s.relative||s.und
vendor: 5,995 bytes, line 2
2o(e.extract()),e=e.multiply(s.at(i.ease(this.pos))))}r.matrix(e)}return this},once:function(e,t,n){var r=this.last();return n||(e=r.ease(e)),r.once[e]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(e,t,r){return(this.fx||(this.fx=new n.FX(this))).animate(e,t,r)},delay:function(e){return(this.fx||(this.fx=new n.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),n.MorphObj=n.invent({create:function(e,t){return n.Color.isColor(t)?new n.Color(e).morph(t):n.regex.delimiter.test(e)?n.regex.pathLetters.test(e)?new n.PathArray(e).morph(t):new n.Array(e).morph(t):n.regex.numberAndUnit.test(t)?new n.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(e,t,n){if("object"===w(e))for(var r in e)this.attr(r,e[r]);else this.add(e,t,"attrs");return this},plot:function(e,t,n,r){return 4==arguments.length?this.plot([e,t,n,r]):this.add("plot",new(this.target().morphArray)(e))}}),n.Box=n.invent({create:function(e,t,r,i){if(!("object"!==w(e)||e instanceof n.Element))return n.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);var a;4==arguments.length&&(this.x=e,this.y=t,this.width=r,this.height=i),null==(a=this).x&&(a.x=0,a.y=0,a.width=0,a.height=0),a.w=a.width,a.h=a.height,a.x2=a.x+a.width,a.y2=a.y+a.height,a.cx=a.x+a.width/2,a.cy=a.y+a.height/2}}),n.BBox=n.invent({create:function(e){if(n.Box.apply(this,[].slice.call(arguments)),e instanceof n.Element){var r;try{if(!t.documentElement.contains){for(var i=e.node;i.parentNode;)i=i.parentNode;if(i!=t)throw new Error("Element not in the dom")}r=e.node.getBBox()}catch(t){if(e instanceof n.Shape){n.parser.draw||n.prepare();var a=e.clone(n.parser.draw.instance).show();a&&a.node&&"function"==typeof a.node.getBBox&&(r=a.node.getBBox()),a&&"function"==typeof a.remove&&a.remove()}else r={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}n.Box.call(this,r)}},inherit:n.Box,parent:n.Element,construct:{bbox:function(){return new n.BBox(this)}}}),n.BBox.prototype.constructor=n.BBox,n.Matrix=n.invent({create:function(e){var t=p([1,0,0,1,0,0]);e=null===e?t:e instanceof n.Element?e.matrixify():"string"==typeof e?p(e.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?p([].slice.call(arguments)):Array.isArray(e)?p(e):e&&"object"===w(e)?e:t;for(var r=y.length-1;r>=0;--r)this[y[r]]=null!=e[y[r]]?e[y[r]]:t[y[r]]},extend:{extract:function(){var e=f(this,0,1);f(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(e){return this.destination=new n.Matrix(e),this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=y.length-1;t>=0;t--)e[y[t]]=this[y[t]];return e},toString:function(){return"matrix("+m(this.a)+","+m(this.b)+","+m(this.c)+","+m(this.d)+","+m(this.e)+","+m(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,t){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===w(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,t,r){if(null==e){for(e={},r=(t=this.node.attributes).length-1;r>=0;r--)e[t[r].nodeName]=n.regex.isNumber.test(t[r].nodeValue)?parseFloat(t[r].nodeValue):t[r].nodeValue;return e}if("object"===w(e))for(var i in e)this.attr(i,e[i]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof n.Image&&(t=this.doc().defs().pattern(0,0,(function(){this.add(t)})))),"number"==typeof t?t=new n.Number(t):n.Color.isColor(t)?t=new n.Color(t):Array.isArray(t)&&(t=new n.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof r?this.node.setAttributeNS(r,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),n.extend(n.Element,{transform:function(e,t){var r;return"object"!==w(e)?(r=new n.Matrix(this).extract(),"string"==typeof e?r[e]:r):(r=new n.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(r=t?r.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",r))}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map((function(e){return parseFloat(e)}))]}
vendor: 19,959 bytes, line 2
2)).reduce((function(e,t){return"matrix"==t[0]?e.multiply(p(t[1])):e[t[0]].apply(e,t[1])}),new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),n=e.screenCTM().inverse();return this.addTo(e).untransform().transform(n.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[n];else if(e&&"object"===w(e))for(n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[this.arguments[n]];this.inversed=!1,!0===t&&(this.inversed=!0)}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.extend(n.Element,{style:function(e,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===w(e))for(var r in e)this.style(r,e[r]);else{if(!n.regex.isCss.test(e))return this.node.style[c(e)];for(e=e.split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/)}));t=e.pop();)this.style(t[0],t[1])}else this.node.style[c(e)]=null===t||n.regex.isBlank.test(t)?"":t;return this}}),n.Parent=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),(function(e){return n.adopt(e)}))},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var r=this.children(),i=0,a=r.length;i<a;i++)r[i]instanceof n.Element&&e.apply(r[i],[i,r]),t&&r[i]instanceof n.Container&&r[i].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),n.extend(n.Parent,{ungroup:function(e,t){return 0===t||this instanceof n.Defs||this.node==n.parser.draw||(e=e||(this instanceof n.Doc?this:this.parent(n.Parent)),t=t||1/0,this.each((function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(e,t-1):this.toParent(e)})),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),n.Container=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Parent}),n.ViewBox=n.invent({parent:n.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(e){n.Element.prototype[e]=function(t){return n.on(this.node,e,t),this}})),n.listeners=[],n.handlerMap=[],n.listenerId=0,n.on=function(e,t,r,i,a){var o=r.bind(i||e.instance||e),s=(n.handlerMap.indexOf(e)+1||n.handlerMap.push(e))-1,l=t.split(".")[0],c=t.split(".")[1]||"*";n.listeners[s]=n.listeners[s]||{},n.listeners[s][l]=n.listeners[s][l]||{},n.listeners[s][l][c]=n.listeners[s][l][c]||{},r._svgjsListenerId||(r._svgjsListenerId=++n.listenerId),n.listeners[s][l][c][r._svgjsListenerId]=o,e.addEventListener(l,o,a||{passive:!1})},n.off=function(e,t,r){var i=n.handlerMap.indexOf(e),a=t&&t.split(".")[0],o=t&&t.split(".")[1],s="";if(-1!=i)if(r){if("function"==typeof r&&(r=r._svgjsListenerId),!r)return;n.listeners[i][a]&&n.listeners[i][a][o||"*"]&&(e.removeEventListener(a,n.listeners[i][a][o||"*"][r],!1),delete n.listeners[i][a][o||"*"][r])}else if(o&&a){if(n.listeners[i][a]&&n.listeners[i][a][o]){for(var l in n.listeners[i][a][o])n.off(e,[a,o].join("."),l);delete n.listeners[i][a][o]}}else if(o)for(var c in n.listeners[i])for(var s in n.listeners[i][c])o===s&&n.off(e,[c,o].join("."));else if(a){if(n.listeners[i][a]){for(var s in n.listeners[i][a])n.off(e,[a,s].join("."));delete n.listeners[i][a]}}else{for(var c in n.listeners[i])n.off(e,c);delete n.listeners[i],delete n.handlerMap[i]}},n.extend(n.Element,{on:function(e,t,r,i){return n.on(this.node,e,t,r,i),this},off:function(e,t){return n.off(this.node,e,t),this},fire:function(t,r){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new n.CustomEvent(t,{detail:r,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),n.Defs=n.invent({create:"defs",inherit:n.Container}),n.G=n.invent({create:"g",inherit:n.Container,extend:{x:function(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(e){e&&("svg"==(e="string"==typeof e?t.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,n.create("svg")),e.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:n.Container,extend:{namespace:function(){return this.attr({xmlns:n.ns,version:"1.1"}).attr("xmlns:xlink",n.xlink,n.xmlns).attr("xmlns:svgjs",n.svgjs,n.xmlns)},defs:function(){var e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(e):this._defs=new n.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,n.parser.draw&&!n.parser.draw.parentNode&&this.node.appendChild(n.parser.draw),this},clone:function(e){this.writeDataToDom();var t=this.node,n=g(t.cloneNode(!0));return e?(e.node||e).appendChild(n.node):t.parentNode.insertBefore(n.node,t.nextSibling),n}}}),n.extend(n.Element,{}),n.Gradient=n.invent({create:function(e){this.constructor.call(this,n.create(e+"Gradient")),this.type=e},inherit:n.Container,extend:{at:function(e,t,r){return this.put(new n.Stop).update(e,t,r)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,r){return"transform"==e&&(e="gradientTransform"),n.Container.prototype.attr.call(this,e,t,r)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),n.extend(n.Gradient,n.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(e),fy:new n.Number(t)}):this.attr({x1:new n.Number(e),y1:new n.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(e),cy:new n.Number(t)}):this.attr({x2:new n.Number(e),y2:new n.Number(t)})}}),n.extend(n.Defs,{gradient:function(e,t){return this.put(new n.Gradient(e)).update(t)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(e){return("number"==typeof e||e instanceof n.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new n.Number(e.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,r){return"transform"==e&&(e="patternTransform"),n.Container.prototype.attr.call(this,e,t,r)}},construct:{pattern:function(e,t,n){return this.defs().pattern(e,t,n)}}}),n.extend(n.Defs,{pattern:function(e,t,r){return this.put(new n.Pattern).update(r).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element}),n.Symbol=n.invent({create:"symbol",inherit:n.Container,construct:{symbol:function(){return this.put(new n.Symbol)}}}),n.Use=n.invent({create:"use",inherit:n.Shape,extend:{element:function(e,t){return this.attr("href",(t||"")+"#"+e,n.xlink)}},construct:{use:function(e,t){return this.put(new n.Use).element(e,t)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(e,t){return this.put(new n.Rect).size(e,t)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(e){return this.put(new n.Circle).rx(new n.Number(e).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(e,t){return this.put(new n.Ellipse).size(e,t).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),n.extend(n.Circle,n.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new n.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new n.Number(e).divide(2))},size:function(e,t){var r=h(this,e,t);return this.rx(new n.Number(r.width).divide(2)).ry(new n.Number(r.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(e,t,r,i){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:r,y2:i}:new n.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var n=h(this,e,t);return this.attr(this.array().size(n.width,n.height).toLine())}},construct:{line:function(e,t,r,i){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=e?[e,t,r,i]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(e){return this.put(new n.Polyline).plot(e||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(e){return this.put(new n.Polygon).plot(e||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new n.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var n=h(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new n.PathArray(e))},clear:function(){return delete this._array,this}},construct:{path:function(e){return this.put(new n.Path).plot(e||new n.PathArray)}}}),n.Image=n.invent({create:"image",inherit:n.Shape,extend:{load:function(t){if(!t)return this;var r=this,i=new e.Image;return n.on(i,"load",(function(){n.off(i);var e=r.parent(n.Pattern);null!==e&&(0==r.width()&&0==r.height()&&r.size(i.width,i.height),e&&0==e.width()&&0==e.height()&&e.size(r.width(),r.height()),"function"==typeof r._loaded&&r._loaded.call(r,{width:i.width,height:i.height,ratio:i.width/i.height,url:t}))})),n.on(i,"error",(function(e){n.off(i),"function"==typeof r._error&&r._error.call(r,e)})),this.attr("href",i.src=this.src=t,n.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,r){return this.put(new n.Image).load(e).size(t||0,r||t||0)}}}),n.Text=n.invent({create:function(){this.constructor.call(this,n.create("text")),this.dom.leading=new n.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",n.defaults.attrs["font-family"])},inherit:n.Shape,extend:{x:function(e){return null==e?this.attr("x"):this.attr("x",e)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,r=0,i=t.length;r<i;++r)0!=r&&3!=t[r].nodeType&&1==n.adopt(t[r]).dom.newLined&&(e+="\n"),e+=t[r].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{r=0;for(var a=(e=e.split("\n")).length;r<a;r++)this.tspan(e[r]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new n.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=n.utils.map(n.utils.filterSVGElements(e.childNodes),(function(e){return n.adopt(e)}));return new n.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,r=0,i=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?r+=i:(this.attr("dy",i+r),r=0))})),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new n.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new n.Text).text(e)},plain:function(e){return this.put(new n.Text).plain(e)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(n.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,r=new n.Tspan;return!1===this._build&&this.clear(),t.appendChild(r.node),r.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,array:function(){var e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),n=null;return t&&(n=t.plot(e)),null==e?n:this},track:function(){var e=this.textPath();if(e)return e.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}});var s={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"==t?e:e+"-"+t}};function l(e,t,r,i){return r+i.replace(n.regex.dots," .")}function c(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function h(e,t,n){if(null==t||null==n){var r=e.bbox();null==t?t=r.width/r.height*n:null==n&&(n=r.height/r.width*t)}return{width:t,height:n}}function f(e,t,n){return{x:t*e.a+n*e.c+0,y:t*e.b+n*e.d+0}}function p(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function g(t){for(var r=t.childNodes.length-1;r>=0;r--)t.childNodes[r]instanceof e.SVGElement&&g(t.childNodes[r]);return n.adopt(t).id(n.eid(t.nodeName))}function m(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||n.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var r=s[e].length-1;r>=0;r--)null!=t[s[e][r]]&&this.attr(s.prefix(e,s[e][r]),t[s[e][r]]);return this},n.extend(n.Element,n.FX,t)})),n.extend(n.Element,n.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.Set=n.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,n=e.length;t<n;t++)this.members.push(e[t]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,n=this.members.length;t<n;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){n.Set.prototype[e]=function(){for(var t=0,r=this.members.length;t<r;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new n.FX.Set(this)):this}})),e=[],n.FX.prototype)"function"==typeof n.FX.prototype[t]&&"function"!=typeof n.FX.Set.prototype[t]&&e.push(t);e.forEach((function(e){n.FX.Set.prototype[e]=function(){for(var t=0,n=this.set.members.length;t<n;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}}))},n.extend(n.Element,{}),n.extend(n.Element,{remember:function(e,t){if("object"===w(arguments[0]))for(var n in e)this.remember(n,e[n]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var r=t.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(r)},n.select=function(e,r){return new n.Set(n.utils.map((r||t).querySelectorAll(e),(function(e){return n.adopt(e)})))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var y="abcdef".split("");
vendor: 9,494 bytes, line 2
2if("function"!=typeof e.CustomEvent){var b=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};b.prototype=e.Event.prototype,n.CustomEvent=b}else n.CustomEvent=e.CustomEvent;return n},void 0!==(r=function(){return Ve(He,He.document)}.call(t,n,t,e))&&(e.exports=r),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,n){return this.put(new SVG.BlendEffect(e,t,n))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,n){return this.put(new SVG.CompositeEffect(e,t,n))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,n){return this.put(new SVG.DiffuseLightingEffect(e,t,n))},displacementMap:function(e,t,n,r,i){return this.put(new SVG.DisplacementMapEffect(e,t,n,r,i))},specularLighting:function(e,t,n,r){return this.put(new SVG.SpecularLightingEffect(e,t,n,r))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,n,r,i){return this.put(new SVG.TurbulenceEffect(e,t,n,r,i))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,n){return this.parent()&&this.parent().diffuseLighting(e,t,n).in(this)},displacementMap:function(e,t,n,r){return this.parent()&&this.parent().displacementMap(this,e,t,n,r)},specularLighting:function(e,t,n,r){return this.parent()&&this.parent().specularLighting(e,t,n,r).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,n,r,i){return this.parent()&&this.parent().turbulence(e,t,n,r,i).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,n){this.attr({in:e,in2:t,mode:n||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=i(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=i(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,n){this.attr({in:e,in2:t,operator:n})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,n,r,i){this.attr({in:e,in2:t,scale:n,xChannelSelector:r,yChannelSelector:i})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",function(e){if(!Array.isArray(e))return e;for(var t=0,n=e.length,r=[];t<n;t++)r.push(e[t]);return r.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,n,r,i){this.attr({numOctaves:t,seed:n,stitchTiles:r,baseFrequency:e,type:i})}},n={merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each((function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))}))}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var n=0;n<e.length;n++)e[n]instanceof SVG.MergeNode?this.put(e[n]):this.put(new SVG.MergeNode(e[n]))}},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(e){this[e]=new(SVG["Func"+e.toUpperCase()])("identity"),this.rgb.add(this[e]),this.node.appendChild(this[e].node)}.bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(e,t,n){this.attr({surfaceScale:e,diffuseConstant:t,kernelUnitLength:n})},specularLighting:function(e,t,n,r){this.attr({surfaceScale:e,diffuseConstant:t,specularExponent:n,kernelUnitLength:r})}},r={distantLight:function(e,t){this.attr({azimuth:e,elevation:t})},pointLight:function(e,t,n){this.attr({x:e,y:t,z:n})},spotLight:function(e,t,n,r,i,a){this.attr({x:e,y:t,z:n,pointsAtX:r,pointsAtY:i,pointsAtZ:a})},mergeNode:function(e){this.attr("in",e)}};function i(e){return Array.isArray(e)&&(e=new SVG.Array(e)),e.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function a(){var e=function(){};for(var t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var n in arguments[t])e(arguments[t][n],n,arguments[t])}["r","g","b","a"].forEach((function(e){r["Func"+e.toUpperCase()]=function(e){switch(this.attr("type",e),e){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}})),a(t,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),a(n,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),a(r,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(e){return e instanceof SVG.MergeNode?this.add(e,0):this.add(new SVG.MergeNode(e),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",e)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function e(e,i,a,o,s,l,c){for(var u=e.slice(i,a||c),d=o.slice(s,l||c),h=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};u[h]=t.call(f,u[h]),d[h]=t.call(p,d[h]),u[h][0]!=d[h][0]||"M"==u[h][0]||"A"==u[h][0]&&(u[h][4]!=d[h][4]||u[h][5]!=d[h][5])?(Array.prototype.splice.apply(u,[h,1].c
vendor: 6,096 bytes, line 2
2oncat(r.call(f,u[h]))),Array.prototype.splice.apply(d,[h,1].concat(r.call(p,d[h])))):(u[h]=n.call(f,u[h]),d[h]=n.call(p,d[h])),++h!=u.length||h!=d.length;)h==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),h==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:u,dest:d}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function n(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function r(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":t=function(e,t){var n,r,i,a,o,s,l,c,u,d,h,f,p,g,m,y,b,v,x,w,k,A,E,S,P,C,O=Math.abs(t[1]),T=Math.abs(t[2]),N=t[3]%360,_=t[4],I=t[5],R=t[6],M=t[7],j=new SVG.Point(e),L=new SVG.Point(R,M),B=[];if(0===O||0===T||j.x===L.x&&j.y===L.y)return[["C",j.x,j.y,L.x,L.y,L.x,L.y]];for((r=(n=new SVG.Point((j.x-L.x)/2,(j.y-L.y)/2).transform((new SVG.Matrix).rotate(N))).x*n.x/(O*O)+n.y*n.y/(T*T))>1&&(O*=r=Math.sqrt(r),T*=r),i=(new SVG.Matrix).rotate(N).scale(1/O,1/T).rotate(-N),j=j.transform(i),s=(a=[(L=L.transform(i)).x-j.x,L.y-j.y])[0]*a[0]+a[1]*a[1],o=Math.sqrt(s),a[0]/=o,a[1]/=o,l=s<4?Math.sqrt(1-s/4):0,_===I&&(l*=-1),c=new SVG.Point((L.x+j.x)/2+l*-a[1],(L.y+j.y)/2+l*a[0]),u=new SVG.Point(j.x-c.x,j.y-c.y),d=new SVG.Point(L.x-c.x,L.y-c.y),h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1),f=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(f*=-1),I&&h>f&&(f+=2*Math.PI),!I&&h<f&&(f-=2*Math.PI),y=[],b=h,p=(f-h)/(g=Math.ceil(2*Math.abs(h-f)/Math.PI)),m=4*Math.tan(p/4)/3,k=0;k<=g;k++)x=Math.cos(b),v=Math.sin(b),w=new SVG.Point(c.x+x,c.y+v),y[k]=[new SVG.Point(w.x+m*v,w.y-m*x),w,new SVG.Point(w.x-m*v,w.y+m*x)],b+=p;for(y[0][0]=y[0][1].clone(),y[y.length-1][2]=y[y.length-1][1].clone(),i=(new SVG.Matrix).rotate(N).scale(O,T).rotate(-N),k=0,A=y.length;k<A;k++)y[k][0]=y[k][0].transform(i),y[k][1]=y[k][1].transform(i),y[k][2]=y[k][2].transform(i);for(k=1,A=y.length;k<A;k++)E=(w=y[k-1][2]).x,S=w.y,P=(w=y[k][0]).x,C=w.y,R=(w=y[k][1]).x,M=w.y,B.push(["C",E,S,P,C,R,M]);return B}(this.pos,e),e=t[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function i(e,t){if(!1===t)return!1;for(var n=t,r=e.length;n<r;++n)if("M"==e[n][0])return n;return!1}SVG.extend(SVG.PathArray,{morph:function(t){for(var n=this.value,r=this.parse(t),a=0,o=0,s=!1,l=!1;!1!==a||!1!==o;){var c;s=i(n,!1!==a&&a+1),l=i(r,!1!==o&&o+1),!1===a&&(a=0==(c=new SVG.PathArray(u.start).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===o&&(o=0==(c=new SVG.PathArray(u.dest).bbox()).height||0==c.width?r.push(r[0])-1:r.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var u=e(n,a,s,r,o,l);n=n.slice(0,a).concat(u.start,!1===s?[]:n.slice(s)),r=r.slice(0,o).concat(u.dest,!1===l?[]:r.slice(l)),a=!1!==s&&a+u.start.length,o=!1!==l&&o+u.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=r,this}})}(),function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.init=function(e,t){var n=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",(function(e){n.start(e)})),this.el.on("touchstart.drag",(function(e){n.start(e)}))},e.prototype.transformPoint=function(e,t){var n=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=n.clientX-(t||0),this.p.y=n.clientY,this.p.matrixTransform(this.m)},e.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},e.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var n,r=this.getBBox();if(this.el instanceof SVG.Text)switch(n=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":n/=2;break;case"start":n=0}this.startPoints={point:this.transformPoint(e,n),box:r,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(e){t.drag(e)})),SVG.on(window,"touchmove.drag",(function(e){t.drag(e)})),SVG.on(window,"mouseup.drag",(function(e){t.end(e)})),SVG.on(window,"touchend.drag",(function(e){t.end(e)})),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},e.prototype.drag=function(e){var t=this.getBBox(),n=this.transformPoint(e),r=this.startPoints.box.x+n.x-this.startPoints.point.x,i=this.startPoints.box.y+n.y-this.startPoints.point.y,a=this.constraint,o=n.x-this.startPoints.point.x,s=n.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:n,m:this.m,handler:this}),this.el.event().defaultPrevented)return n;if("function"==typeof a){var l=a.call(this.el,r,i,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(r):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(i):!1!==l.y&&this.el.y(l.y)}else"object"==typeof a&&(null!=a.minX&&r<a.minX?o=(r=a.minX)-this.startPoints.box.x:null!=a.maxX&&r>a.maxX-t.width&&(o=(r=a.maxX-t.width)-this.startPoints.box.x),null!=a.minY&&i<a.minY?s=(i=a.minY)-this.startPoints.box.y:null!=a.maxY&&i>a.maxY-t.height&&(s=(i=a.maxY-t.height)-this.startPoints.box.y),null!=a.snapToGri
vendor: 9,381 bytes, line 2
2d&&(r-=r%a.snapToGrid,i-=i%a.snapToGrid,o-=o%a.snapToGrid,s-=s%a.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:s},!0):this.el.move(r,i));return n},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,n){"function"!=typeof t&&"object"!=typeof t||(n=t,t=!0);var r=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?r.init(n||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,n){var r="string"!=typeof e?e:t[e];return n?r/2:r},this.pointCoords=function(e,t){var n=this.pointsList[e];return{x:this.pointCoord(n[0],t,"t"===e||"b"===e),y:this.pointCoord(n[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var n=this.el.bbox();this.options={};var r=this.el.selectize.defaults.points;for(var i in this.el.selectize.defaults)this.options[i]=this.el.selectize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);var a=["points","pointsExclude"];for(var i in a){var o=this.options[a[i]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===a[i]&&(o=o?r:[]),this.options[a[i]]=o}this.options.points=[r,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),n=0,r=t.length;n<r;++n){var i=function(t){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var r=n.pageX||n.touches[0].pageX,i=n.pageY||n.touches[0].pageY;e.el.fire("point",{x:r,y:i,i:t,event:n})}}(n),a=this.drawPoint(t[n][0],t[n][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",i).on("mousedown",i);this.pointSelection.set.add(a)}},e.prototype.drawPoint=function(e,t){var n=this.options.pointType;switch(n){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof n)return n.call(this,e,t);throw new Error("Unknown "+n+" point type!")}},e.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},e.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},e.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each((function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])}))},e.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map((function(n,r){var i=e.pointCoords(n,t);e.rectSelection.set.get(r+1).center(i.x,i.y)})),this.options.rotationPoint){var n=this.rectSelection.set.length();this.rectSelection.set.get(n-1).center(t.width/2,20)}},e.prototype.selectRect=function(e){var t=this,n=this.el.bbox();function r(e){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var r=n.pageX||n.touches[0].pageX,i=n.pageY||n.touches[0].pageY;t.el.fire(e,{x:r,y:i,event:n})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(n.width,n.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(e,i){var a=t.pointCoords(e,n),o=t.drawPoint(a.x,a.y).attr("class",t.options.classPoints+"_"+e).on("mousedown",r(e)).on("touchstart",r(e));t.rectSelection.set.add(o)})),this.rectSelection.set.each((function(){this.addClass(t.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var i=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var n=e.pageX||e.touches[0].pageX,r=e.pageY||e.touches[0].pageY;t.el.fire("rot",{x:n,y:r,event:e})},a=this.drawPoint(n.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",i).on("mousedown",i);this.rectSelection.set.add(a)}},e.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},e.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){e.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(e){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){e.handler()}))},e.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each((function(){this.remove()})),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each((function(){this.remove()})),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,n){return"object"==typeof t&&(n=t,t=!0),(this.remember("_selectHandler")||new e(this)).init(void 0===t||t,n||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function e(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}e.prototype.transformPoint=function(e,t,n){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(n||this.m)},e.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},e.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var n in this.options={},this.el.resize.defaults)this.options[n]=this.el.resize.defaults[n],void 0!==e[n]&&(this.options[n]=e[n]);this.el.on("lt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rb.resize",(function(e){t.resize(e||window.event)})),this.el.on("lb.resize",(function(e){t.resize(e||window.event)})),this.el.on("t.resize",(function(e){t.resize(e||window.event)})),this.el.on("r.resize",(function(e){t.resize(e||window.event)})),this.el.on("b.resize",(function(e){t.resize(e||window.event)})),this.el.on("l.resize",(function(e){t.resize(e||window.event)})),this.el.on("rot.resize",(function(e){t.resize(e||window.event)})),this.el.on("point.resize",(function(e){t.resize(e||window.event)})),this.update()}},e.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},e.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var n=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(n.x,n.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==e.detail.i){var r=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[r[e.detail.i][0],r[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(e,t){var n=this.snapToGri
vendor: 4,549 bytes, line 2
2d(e,t);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y+n[1]).size(this.parameters.box.width-n[0],this.parameters.box.height-n[1])}};break;case"rt":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).size(this.parameters.box.width+n[0],this.parameters.box.height-n[1])}};break;case"rb":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+n[0],this.parameters.box.height+n[1])}};break;case"lb":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).size(this.parameters.box.width-n[0],this.parameters.box.height+n[1])}};break;case"t":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).height(this.parameters.box.height-n[1])}};break;case"r":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+n[0])}};break;case"b":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+n[1])}};break;case"l":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).width(this.parameters.box.width-n[0])}};break;case"rot":this.calc=function(e,t){var n=e+this.parameters.p.x,r=t+this.parameters.p.y,i=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),a=Math.atan2(r-this.parameters.box.y-this.parameters.box.height/2,n-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(a-i)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var n=this.snapToGrid(e,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),r=this.el.array().valueOf();r[this.parameters.i][0]=this.parameters.pointCoords[0]+n[0],r[this.parameters.i][1]=this.parameters.pointCoords[1]+n[1],this.el.plot(r)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),n=this.transformPoint(t.x,t.y),r=n.x-this.parameters.p.x,i=n.y-this.parameters.p.y;this.lastUpdateCall=[r,i],this.calc(r,i),this.el.fire("resizing",{dx:r,dy:i,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")}
vendor: 4,799 bytes, line 2
2,e.prototype.snapToGrid=function(e,t,n,r){var i;return void 0!==r?i=[(n+e)%this.options.snapToGrid,(r+t)%this.options.snapToGrid]:(n=null==n?3:n,i=[(this.parameters.box.x+e+(1&n?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&n?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(i[0]-=this.options.snapToGrid),t<0&&(i[1]-=this.options.snapToGrid),e-=Math.abs(i[0])<this.options.snapToGrid/2?i[0]:i[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(i[1])<this.options.snapToGrid/2?i[1]:i[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,n,r)},e.prototype.constraintToBox=function(e,t,n,r){var i,a,o=this.options.constraint||{};return void 0!==r?(i=n,a=r):(i=this.parameters.box.x+(1&n?0:this.parameters.box.width),a=this.parameters.box.y+(2&n?0:this.parameters.box.height)),void 0!==o.minX&&i+e<o.minX&&(e=o.minX-i),void 0!==o.maxX&&i+e>o.maxX&&(e=o.maxX-i),void 0!==o.minY&&a+t<o.minY&&(t=o.minY-a),void 0!==o.maxY&&a+t>o.maxY&&(t=o.maxY-a),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var n=e.slice(),r=this.parameters.box.width/this.parameters.box.height,i=this.parameters.box.width+e[0],a=this.parameters.box.height-e[1],o=i/a;return o<r?(n[1]=i/r-this.parameters.box.height,t&&(n[1]=-n[1])):o>r&&(n[0]=this.parameters.box.width-a*r,t&&(n[0]=-n[0])),n},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Ke=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new E(this.ctx),this.ctx.axes=new ae(this.ctx),this.ctx.core=new Xe(this.ctx.el,this.ctx),this.ctx.config=new W({}),this.ctx.data=new K(this.ctx),this.ctx.grid=new Z(this.ctx),this.ctx.graphics=new P(this.ctx),this.ctx.coreUtils=new C(this.ctx),this.ctx.crosshairs=new oe(this.ctx),this.ctx.events=new re(this.ctx),this.ctx.exports=new Q(this.ctx),this.ctx.fill=new G(this.ctx),this.ctx.localization=new ie(this.ctx),this.ctx.options=new B,this.ctx.responsive=new se(this.ctx),this.ctx.series=new $(this.ctx),this.ctx.theme=new le(this.ctx),this.ctx.formatters=new _(this.ctx),this.ctx.titleSubtitle=new ce(this.ctx),this.ctx.legend=new me(this.ctx),this.ctx.toolbar=new ye(this.ctx),this.ctx.tooltip=new Se(this.ctx),this.ctx.dimensions=new pe(this.ctx),this.ctx.updateHelpers=new $e(this.ctx),this.ctx.zoomPanSelection=new be(this.ctx),this.ctx.w.globals.tooltip=new Se(this.ctx)}}]),e}(),Qe=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each((function(){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,r=this.w.globals.dom.Paper.node;r.parentNode&&r.parentNode.parentNode&&!n&&(r.parentNode.parentNode.style.minHeight="unset");var i=this.w.globals.dom.baseEl;i&&this.ctx.eventList.forEach((function(e){i.removeEventListener(e,t.ctx.events.documentEvent)}));var a=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(a.Paper),a.Paper.remove(),a.elWrap=null,a.elGraphical=null,a.elLegendWrap=null,a.elLegendForeign=null,a.baseEl=null,a.elGridRect=null,a.elGridRectMask=null,a.elGridRectBarMask=null,a.elGridRectMarkerMask=null,a.elForecastMask=null,a.elNonForecastMask=null,a.elDefs=null}}]),e}
2(),Je=new WeakMap,Ze=function(){function e(t,n){o(this,e),this.opts=n,this.ctx=this,this.w=new V(n).init(),this.el=t,this.w.globals.cuid=A.randomId(),this.w.globals.chartID=this.w.config.chart.id?A.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ke(this).initModules(),this.create=A.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return l(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,n){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var r=e.w.config.chart.events.beforeMount;"function"==typeof r&&r(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var n=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var r=e.getBoundingClientRect();"none"!==e.style.display&&0!==r.width||(n=!0)}var i=new ResizeObserver((function(r){n&&t.call(e,r),n=!0}));e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return i.observe(e)})):i.observe(e),Je.set(t,i)}(e.el.parentNode,e.parentResizeHandler);var i=e.el.getRootNode&&e.el.getRootNode(),a=A.is("ShadowRoot",i),o=e.el.ownerDocument,s=a?i.getElementById("apexcharts-css"):o.getElementById("apexcharts-css");if(!s){var l;(s=document.createElement("style")).id="apexcharts-css",s.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n direction: ltr !important;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, .7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\
2n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}
2\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,\n.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,\n.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,\n.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>
2div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}\n';var c=(null===(l=e.opts.chart)||void 0===l?void 0:l.nonce)||e.w.config.chart.nonce;c&&s.setAttribute("nonce",c),a?i.prepend(s):o.head.appendChild(s)}var u=e.create(e.w.config.series,{});if(!u)return t(e);e.mount(u).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(u)})).catch((function(e){n(e)}))}else n(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var n=this,r=this.w;new Ke(this).initModules();var i=this.w.globals;if(i.noData=!1,i.animationEnded=!1,this.responsive.checkResponsiveConfig(t),r.config.xaxis.convertedCatToNumeric&&new z(r.config).convertCatToNumericXaxis(r.config,this.ctx),null===this.el)return i.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===r.config.chart.type&&(r.config.grid.show=!1,r.config.yaxis[0].show=!1),0===i.svgWidth)return i.animationEnded=!0,null;var a=e;e.forEach((function(e,t){e.hidden&&(a=n.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))}));var o=C.checkComboSeries(a,r.config.chart.type);i.comboCharts=o.comboCharts,i.comboBarCount=o.comboBarCount;var s=a.every((function(e){return e.data&&0===e.data.length}));(0===a.length||s&&i.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(a),this.theme.init(),new Y(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),i.noData&&i.collapsedSeries.length!==i.series.length&&!r.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),i.axisCharts&&(this.core.coreCalculations(),"category"!==r.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=r.globals.minX,this.ctx.toolbar.maxX=r.globals.maxX),this.formatters.heatmapLabelFormatters(),new C(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var c=this.core.plotChartType(a,l),u=new X(this);return u.bringForward(),r.config.dataLabels.background.enabled&&u.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:c,xyRatios:l,dimensions:{plot:{left:r.globals.translateX,top:r.globals.translateY,width:r.globals.gridWidth,height:r.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this,r=n.w;return new Promise((function(i,a){if(null===n.el)return a(new Error("Not enough data to display or target element not found"));(null===t||r.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new Z(n);var o,s,l=n.grid.drawGrid();if(n.annotations=new F(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),"back"===r.config.grid.position&&(l&&r.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&r.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)r.globals.dom.elGraphical.add(t.elGraph[c]);else r.globals.dom.elGraphical.add(t.elGraph);"front"===r.config.grid.position&&(l&&r.globals.dom.elGraphical.add(l.el),null!=l&&null!==(s=l.elGridBorders)&&void 0!==s&&s.node&&r.globals.dom.elGraphical.add(l.elGridBorders)),"front"===r.config.xaxis.crosshairs.position&&n.crosshairs.drawXCrosshairs(),"front"===r.config.yaxis[0].crosshairs.position&&n.crosshairs.drawYCrosshairs(),"treemap"!==r.config.chart.type&&n.axes.drawAxis(r.config.chart.type,l);var u=new J(e.ctx,l),d=new ne(e.ctx,l);if(null!==l&&(u.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),r.config.yaxis.map((function(e,t){-1===r.globals.ignoreYAxisIndexes.indexOf(t)&&d.yAxisTitleRotate(t,e.opposite)}))),n.annotations.drawAxesAnnotations(),!r.globals.noData){if(r.config.tooltip.enabled&&!r.globals.noData&&n.w.globals.tooltip.drawTooltip(t.xyRatios),r.globals.axisCharts&&(r.globals.isXNumeric||r.config.xaxis.convertedCatToNumeric||r.globals.isRangeBar))(r.config.chart.zoom.enabled||r.config.chart.selection&&r.config.chart.selection.enabled||r.config.chart.pan&&r.config.chart.pan.enabled)&&n.zoomPanSelection.init({xyRatios:t.xyRatios});else{var h=r.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(e){h[e]=!1}))}r.config.chart.toolbar.show&&!r.globals.allSeriesCollapsed&&n.toolbar.createToolbar()}r.globals.memory.methodsToExec.length>
vendor: 7,361 bytes, line 2
20&&r.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),r.globals.axisCharts||r.globals.noData||n.core.resizeNonAxisCharts(),i(n)}))}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Je.get(e))&&(t.disconnect(),Je.delete(e));var n=this.w.config.chart.id;n&&Apex._chartInstances.forEach((function(e,t){e.id===A.escapeString(n)&&Apex._chartInstances.splice(t,1)})),new Qe(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,n){return t.updateHelpers._extendSeries(e,n)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,r,i,a)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w.config.series.slice();return r.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,n)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var r=n.w.config.series.slice(),i=0;i<r.length;i++)if(null!==e[i]&&void 0!==e[i])for(var a=0;a<e[i].data.length;a++)r[i].data.push(e[i].data[a]);return n.w.config.series=r,t&&(n.w.globals.initialSeries=A.clone(n.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise((function(n,r){new Qe(t.ctx).clear({isUpdating:!0});var i=t.create(t.w.config.series,e);if(!i)return n(t);t.mount(i).then((function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,n(t)})).catch((function(e){r(e)}))}))}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach((function(e){t.push(e)}))),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter((function(e){if(e.group)return!0})).map((function(t){return e.w.config.chart.group===t.group?t.chart:e}))}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addXaxisAnnotationExternal(e,t,r)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addYaxisAnnotationExternal(e,t,r)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addPointAnnotationExternal(e,t,r)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this;t&&(n=t),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new te(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new te(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Q(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Q(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=A.escapeString(e);if(Apex._chartInstances){var n=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return n&&n.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),n=0;n<t.length;n++)new e(t[n],JSON.parse(t[n].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var n=this.getChartByID(e);if(n){n.w.globals.isExecCalled=!0;var r=null;if(-1!==n.publicMethods.indexOf(t)){for(var i=arguments.length,a=new Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];r=n[t].apply(n,a)}return r}}},{key:"merge",value:function(e,t){return A.extend(e,t)}}]),e}();e.exports=Ze}
2,23089:(e,t,n)=>{"use strict";var r=n(38635),i=n(48506);e.exports=function(e){return r(i(e))}},23171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;const r=n(18500),i=n(10569);class a extends i.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=r.Typed.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}t.BooleanCoder=a},23580:e=>{var t=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=t},23683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var r=n(69823);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return r.Wordlist}});var i=n(40387);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return i.LangEn}});var a=n(17656);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return a.WordlistOwl}});var o=n(50041);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return o.WordlistOwlA}});var s=n(76131);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return s.wordlists}})},23726:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(43693).default,a=n(16668).default,o=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const s=n(10986);var l=new WeakMap;t.EventPayload=class{constructor(e,t,n){i(this,"filter",void 0),i(this,"emitter",void 0),r(this,l,void 0),o(l,this,t),(0,s.defineProperties)(this,{emitter:e,filter:n})}async removeListener(){null!=a(l,this)&&await this.emitter.off(this.filter,a(l,this))}}},23734:(e,t,n)=>{var r=n(42434);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},23780:e=>{"use strict";e.exports=RangeError},23873:(e,t,n)=>{"use strict";var r=n(10255),i=n(56412),a=n(47709),o="__core-js_shared__",s=e.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.42.0",mode:r?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},23876:(e,t,n)=>{"use strict";var r=n(26429),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<o.length;++m){var y=o[m];if(!a[y]&&(!r||!r[y])&&(!g||!g[y])&&(!s||!s[y])){var b=h(n,y);try{c(t,y,b)}catch(v){}}}}return t}},23887:(e,t,n)=>{"use strict";var r=n(76989),i=n(31264),a=n(63110);e.exports=function(){return a(r,i,arguments)}},24029:(e,t,n)=>{"use strict";var r=n(84700),i=n(37277),a=Object;e.exports=r((function(){if(null==this||this!==a(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e}),"get flags",!0)},24316:(e,t,n)=>{"use strict";var r=n(28057),i=n(27149),a=n(61463),o=n(47709);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&a(n,c,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},24433:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}
2,24489:(e,t,n)=>{var r=n(25535),i=n(1404);e.exports=function(e,t,n,a){var o=n.length,s=o,l=!a;if(null==e)return!s;for(e=Object(e);o--;){var c=n[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var u=(c=n[o])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(a)var p=a(d,h,u,e,t,f);if(!(void 0===p?i(h,d,3,a,f):p))return!1}}return!0}},24553:(e,t,n)=>{"use strict";var r=n(91555);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},24567:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24578:(e,t,n)=>{var r=n(73012),i=n(39248),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},24596:(e,t,n)=>{"use strict";var r=n(43693).default,i=n(42459).default,a=n(16668).default,o=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;const s=n(18212),l=n(55114),c=n(19147),u=n(24839),d=n(68178),h=BigInt(0);function f(e){return e&&"function"===typeof e.call}function p(e){return e&&"function"===typeof e.estimateGas}function g(e){return e&&"function"===typeof e.resolveName}function m(e){return e&&"function"===typeof e.sendTransaction}function y(e){if(null!=e){if(g(e))return e;if(e.provider)return e.provider}}var b=new WeakMap;class v{constructor(e,t,n){if(i(this,b,void 0),r(this,"fragment",void 0),(0,u.defineProperties)(this,{fragment:t}),t.inputs.length<n.length)throw new Error("too many arguments");const a=x(e.runner,"resolveName"),s=g(a)?a:null;o(b,this,async function(){const r=await Promise.all(t.inputs.map(((e,t)=>null==n[t]?null:e.walkAsync(n[t],((e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map((e=>(0,l.resolveAddress)(e,s)))):(0,l.resolveAddress)(t,s):t)))));return e.interface.encodeFilterTopics(t,r)}())}getTopicFilter(){return a(b,this)}}function x(e,t){return null==e?null:"function"===typeof e[t]?e:e.provider&&"function"===typeof e.provider[t]?e.provider:null}function w(e){return null==e?null:e.provider||null}async function k(e,t){const n=s.Typed.dereference(e,"overrides");(0,u.assertArgument)("object"===typeof n,"invalid overrides parameter","overrides",e);const r=(0,c.copyRequest)(n);return(0,u.assertArgument)(null==r.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),(0,u.assertArgument)(null==r.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}async function A(e,t,n){const r=x(e,"resolveName"),i=g(r)?r:null;return await Promise.all(t.map(((e,t)=>e.walkAsync(n[t],((e,t)=>(t=s.Typed.dereference(t,e),"address"===e?(0,l.resolveAddress)(t,i):t))))))}function E(e){const t=async function(t){const n=await k(t,["data"]);n.to=await e.getAddress(),n.from&&(n.from=await(0,l.resolveAddress)(n.from,y(e.runner)));const r=e.interface,i=(0,u.getBigInt)(n.value||h,"overrides.value")===h,a="0x"===(n.data||"0x");!r.fallback||r.fallback.payable||!r.receive||a||i||(0,u.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,u.assertArgument)(r.fallback||a,"cannot send data to receive-only contract","overrides.data",n.data);const o=r.receive||r.fallback&&r.fallback.payable;return(0,u.assertArgument)(o||i,"cannot send value to non-payable fallback","overrides.value",n.value),(0,u.assertArgument)(r.fallback||a,"cannot send data to receive-only contract","overrides.data",n.data),n},n=async function(n){const r=e.runner;(0,u.assert)(m(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const i=await r.sendTransaction(await t(n)),a=w(e.runner);return new d.ContractTransactionResponse(e.interface,a,i)},r=async e=>await n(e);return(0,u.defineProperties)(r,{_contract:e,estimateGas:async function(n){const r=x(e.runner,"estimateGas");return(0,u.assert)(p(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await t(n))},populateTransaction:t,send:n,staticCall:async function(n){const r=x(e.runner,"call");(0,u.assert)(f(r),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const i=await t(n);try{return await r.call(i)}catch(a){if((0,u.isCallException)(a)&&a.data)throw e.interface.makeError(a.data,i);throw a}}}),r}t.copyOverrides=k,t.resolveArgs=A;const S=Symbol.for("_ethersInternal_contract"),P=new WeakMap;function C(e){return P.get(e[S])}async function O(e,t){let n,r=null;if(Array.isArray(t)){const r=function(t){if((0,u.isHexString)(t,32))return t;const n=e.interface.getEvent(t);return(0,u.assertArgument)(n,"unknown fragment","name",t),n.topicHash};n=t.map((e=>null==e?null:Array.isArray(e)?e.map(r):r(e)))}else"*"===t?n=[null]:"string"===typeof t?(0,u.isHexString)(t,32)?n=[t]:(r=e.interface.getEvent(t),(0,u.assertArgument)(r,"unknown fragment","event",t),n=[r.topicHash]):(i=t)&&"object"===typeof i&&"getTopicFilter"in i&&"function"===typeof i.getTopicFilter&&i.fragment?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):(0,u.assertArgument)(!1,"unknown event name","event",t);var i;n=n.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()}));return{fragment:r,tag:n.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&"),topics:n}}async function T(e,t){const{subs:n}=C(e);return n.get((await O(e,t)).tag)||null}async function N(e,t,n){const r=w(e.runner);(0,u.assert)(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:i,tag:a,topics:o}=await O(e,n),{addr:s,subs:l}=C(e);let c=l.get(a);if(!c){const t={address:s||e,topics:o},u=t=>{let r=i;if(null==r)try{r=e.interface.getEvent(t.topics[0])}catch(a){}if(r){const a=r,o=i?e.interface.decodeEventLog(i,t.data,t.topics):[];I(e,n,o,(r=>new d.ContractEventPayload(e,r,n,a,t)))}else I(e,n,[],(r=>new d.ContractUnknownEventPayload(e,r,n,t)))};let h=[];c={tag:a,listeners:[],start:()=>{h.length||h.push(r.on(t,u))},stop:async()=>
2{if(0==h.length)return;let e=h;h=[],await Promise.all(e),r.off(t,u)}},l.set(a,c)}return c}let _=Promise.resolve();async function I(e,t,n,r){try{await _}catch(a){}const i=async function(e,t,n,r){await _;const i=await T(e,t);if(!i)return!1;const o=i.listeners.length;return i.listeners=i.listeners.filter((t=>{let{listener:i,once:o}=t;const s=Array.from(n);r&&s.push(r(o?null:i));try{i.call(e,...s)}catch(a){}return!o})),0===i.listeners.length&&(i.stop(),C(e).subs.delete(i.tag)),o>0}(e,t,n,r);return _=i,await i}const R=["then"];class M{constructor(e,t,n,i){r(this,"target",void 0),r(this,"interface",void 0),r(this,"runner",void 0),r(this,"filters",void 0),r(this,S,void 0),r(this,"fallback",void 0),(0,u.assertArgument)("string"===typeof e||(0,l.isAddressable)(e),"invalid value for Contract target","target",e),null==n&&(n=null);const a=s.Interface.from(t);let o;(0,u.defineProperties)(this,{target:e,runner:n,interface:a}),Object.defineProperty(this,S,{value:{}});let c=null,h=null;if(i){const e=w(n);h=new d.ContractTransactionResponse(this.interface,e,i)}let f=new Map;if("string"===typeof e)if((0,u.isHexString)(e))c=e,o=Promise.resolve(e);else{const t=x(n,"resolveName");if(!g(t))throw(0,u.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=t.resolveName(e).then((t=>{if(null==t)throw(0,u.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return C(this).addr=t,t}))}else o=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return C(this).addr=e,e}));var p,m;p=this,m={addrPromise:o,addr:c,deployTx:h,subs:f},P.set(p[S],m);const y=new Proxy({},{get:(e,t,n)=>{if("symbol"===typeof t||R.indexOf(t)>=0)return Reflect.get(e,t,n);try{return this.getEvent(t)}catch(r){if(!(0,u.isError)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>R.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,u.defineProperties)(this,{filters:y}),(0,u.defineProperties)(this,{fallback:a.receive||a.fallback?E(this):null}),new Proxy(this,{get:(e,t,n)=>{if("symbol"===typeof t||t in e||R.indexOf(t)>=0)return Reflect.get(e,t,n);try{return e.getFunction(t)}catch(r){if(!(0,u.isError)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>"symbol"===typeof t||t in e||R.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new M(this.target,this.interface,e)}attach(e){return new M(e,this.interface,this.runner)}async getAddress(){return await C(this).addrPromise}async getDeployedCode(){const e=w(this.runner);(0,u.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();
2if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=w(this.runner);return(0,u.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,n)=>{const r=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",r)}catch(i){n(i)}};r()}))}deploymentTransaction(){return C(this).deployTx}getFunction(e){"string"!==typeof e&&(e=e.format());const t=function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const a=e.interface.getFunction(t,r);return(0,u.assert)(a,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),a},r=async function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];const a=n(...r);let o={};if(a.inputs.length+1===r.length&&(o=await k(r.pop()),o.from&&(o.from=await(0,l.resolveAddress)(o.from,y(e.runner)))),a.inputs.length!==r.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const s=await A(e.runner,a.inputs,r);return Object.assign({},o,await(0,u.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(a,s)}))},i=async function(){const e=await o(...arguments);return 1===e.length?e[0]:e},a=async function(){const t=e.runner;(0,u.assert)(m(t),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await t.sendTransaction(await r(...arguments)),i=w(e.runner);return new d.ContractTransactionResponse(e.interface,i,n)},o=async function(){const t=x(e.runner,"call");(0,u.assert)(f(t),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const i=await r(...arguments);let a="0x";try{a=await t.call(i)}catch(s){if((0,u.isCallException)(s)&&s.data)throw e.interface.makeError(s.data,i);throw s}const o=n(...arguments);return e.interface.decodeFunctionResult(o,a)},s=async function(){return n(...arguments).constant?await i(...arguments):await a(...arguments)};return(0,u.defineProperties)(s,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:async function(){const t=x(e.runner,"estimateGas");return(0,u.assert)(p(t),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await t.estimateGas(await r(...arguments))},populateTransaction:r,send:a,staticCall:i,staticCallResult:o}),Object.defineProperty(s,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getFunction(t);return(0,u.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),s}(this,e);return t}getEvent(e){return"string"!==typeof e&&(e=e.format()),function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const a=e.interface.getEvent(t,r);return(0,u.assert)(a,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),a},r=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return new v(e,n(...r),r)};return(0,u.defineProperties)(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getEvent(t);return(0,u.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),r}(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){null==t&&(t=0),null==n&&(n="latest");const{addr:r,addrPromise:i}=C(this),a=r||await i,{fragment:o,topics:s}=await O(this,e),l={address:a,topics:s,fromBlock:t,toBlock:n},h=w(this.runner);return(0,u.assert)(h,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await h.getLogs(l)).map((e=>{let t=o;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(n){}if(t)try{return new d.EventLog(e,this.interface,t)}catch(n){return new d.UndecodedEventLog(e,n)}return new c.Log(e,h)}))}async on(e,t){const n=await N(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await N(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return await I(this,e,n,null)}async listenerCount(e){if(e){const t=await T(this,e);return t?t.listeners.length:0}const{subs:t}=C(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const t=await T(this,e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}const{subs:t}=C(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map((e=>{let{listener:t}=e;return t})));return n}async off(e,t){const n=await T(this,e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return null!=t&&0!==n.listeners.length||(n.stop(),C(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await T(this,e);if(!t)return this;t.stop(),C(this).subs.delete(t.tag)}else{const{subs:e}=C(this);for(const{tag:t,stop:n}of e.values())n(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends M{constructor(t){super(t,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}}}static from(e,t,n){null==n&&(n=null);return new this(e,t,n)}}t.BaseContract=M;
2class j extends(function(){return M}()){}t.Contract=j},24714:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;const i=n(18212),a=n(55114),o=n(24839),s=n(24596);class l{constructor(e,t,n){r(this,"interface",void 0),r(this,"bytecode",void 0),r(this,"runner",void 0);const a=i.Interface.from(e);t instanceof Uint8Array||("object"===typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,o.hexlify)((0,o.getBytes)(t)),(0,o.defineProperties)(this,{bytecode:t,interface:a,runner:n||null})}attach(e){return new s.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(){let e={};const t=this.interface.deploy;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(t.inputs.length+1===r.length&&(e=await(0,s.copyOverrides)(r.pop())),t.inputs.length!==r.length)throw new Error("incorrect number of arguments to constructor");const a=await(0,s.resolveArgs)(this.runner,t.inputs,r),l=(0,o.concat)([this.bytecode,this.interface.encodeDeploy(a)]);return Object.assign({},e,{data:l})}async deploy(){const e=await this.getDeployTransaction(...arguments);(0,o.assert)(this.runner&&"function"===typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const t=await this.runner.sendTransaction(e),n=(0,a.getCreateAddress)(t);return new s.BaseContract(n,this.interface,this.runner,t)}connect(e){return new l(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,o.assertArgument)(null!=e,"bad compiler output","output",e),"string"===typeof e&&(e=JSON.parse(e));const n=e.abi;let r="";return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}}t.ContractFactory=l}
2,24839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var r=n(52123);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return r.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return r.encodeBase58}});var i=n(67609);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return i.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return i.encodeBase64}});var a=n(85339);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return a.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return a.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return a.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return a.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return a.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return a.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return a.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return a.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return a.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return a.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return a.zeroPadBytes}});var o=n(98976);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return o.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return o.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return o.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return o.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return o.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return o.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return o.makeError}});var s=n(23726);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return s.EventPayload}});var l=n(9531);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return l.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return l.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return l.FetchCancelSignal}});var c=n(66104);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return c.FixedNumber}});var u=n(1736);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return u.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return u.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return u.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return u.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return u.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return u.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return u.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return u.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return u.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return u.toQuantity}});var d=n(10986);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}});var h=n(63120);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return h.decodeRlp}});var f=n(34648);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return f.encodeRlp}});var p=n(58616);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return p.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return p.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return p.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return p.parseUnits}});var g=n(7256);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return g.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return g.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return g.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return g.Utf8ErrorFuncs}});var m=n(78716);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return m.uuidV4}})}
vendor: 6,700 bytes, line 2
2,25112:(e,t,n)=>{var r=n(62621)(Object.keys,Object);e.exports=r},25531:(e,t,n)=>{var r=n(22434),i=n(81465),a=n(30202),o=n(57887),s=n(94801),l=n(22022),c=n(29131),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),y=c(a),b=c(o),v=c(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=p||i&&x(new i)!=u||a&&x(a.resolve())!=d||o&&x(new o)!=h||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return u;case y:return d;case b:return h;case v:return f}return t}),e.exports=x},25535:(e,t,n)=>{var r=n(85661),i=n(44710),a=n(78384),o=n(87379),s=n(80799),l=n(12791);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},26094:(e,t,n)=>{var r=n(22320),i=n(10964);e.exports=function(e,t){return null!=e&&i(e,t,r)}},26104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return"undefined"!==typeof e.saveState&&"undefined"!==typeof e.restoreState&&"undefined"!==typeof e.cleanSavedState}},26429:(e,t,n)=>{"use strict";e.exports=n(68577)},26463:(e,t,n)=>{var r=n(12279),i=n(65916),a=n(17044),o=n(54008);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},26470:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var a,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(s[c]=a[c]);if(t){o=t(a);for(var u=0;u<o.length;u++)r.call(a,o[u])&&(s[o[u]]=a[o[u]])}}return s}},26557:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},26823:(e,t,n)=>{var r=n(77101);e.exports=function(e){return r(this,e).get(e)}},26875:(e,t,n)=>{"use strict";var r=n(26470),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=b.prototype=new y;v.constructor=b,r(v,m.prototype),v.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:x.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+P(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+P(s=e[c],c);l+=C(s,t,n,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,u=r+P(s,c++),o);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function _(){var e=N.current;if(null===e)throw Error(f(321));return e}var I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(f(143));return e}}
2,t.Component=m,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(f(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return _().useCallback(e,t)},t.useContext=function(e,t){return _().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return _().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return _().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return _().useLayoutEffect(e,t)},t.useMemo=function(e,t){return _().useMemo(e,t)},t.useReducer=function(e,t,n){return _().useReducer(e,t,n)},t.useRef=function(e){return _().useRef(e)},t.useState=function(e){return _().useState(e)},t.version="17.0.1"},27149:(e,t,n)=>{"use strict";var r=n(76040),i=n(12889),a=n(43626),o=n(46635),s=n(55829),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},27455:(e,t,n)=>{var r=n(73616);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},27577:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;const i=n(10986),a=n(18500),o=n(10569),s=n(30422);class l extends o.Coder{constructor(e,t){let n=!1;const a=[];e.forEach((e=>{e.dynamic&&(n=!0),a.push(e.type)}));super("tuple","tuple("+a.join(",")+")",t,n),r(this,"coders",void 0),(0,i.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))})),Object.freeze(e)}encode(e,t){const n=a.Typed.dereference(t,"tuple");return(0,s.pack)(e,this.coders,n)}decode(e){return(0,s.unpack)(e,this.coders)}}t.TupleCoder=l},27837:e=>{"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},27839:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(30543),a=Object.keys,o=a?function(e){return a(e)}:n(70225),s=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},27856:e=>{"use strict";e.exports=Math.round},27980:(e,t,n)=>{var r=n(27839),i=n(80046),a=n(28619),o=n(92157),s=n(70955),l=n(94866),c=Date.prototype.getTime;function u(e,t,n){var f=n||{};return!!(f.strict?a(e,t):e===t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?f.strict?a(e,t):e==t:function(e,t,n){var a,f;if(typeof e!==typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var p=o(e),g=o(t);if(p!==g)return!1;if(p||g)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var m=h(e),y=h(t);if(m!==y)return!1;if(m||y){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}if(typeof e!==typeof t)return!1;try{var b=r(e),v=r(t)}
2catch(x){return!1}if(b.length!==v.length)return!1;for(b.sort(),v.sort(),a=b.length-1;a>=0;a--)if(b[a]!=v[a])return!1;for(a=b.length-1;a>=0;a--)if(!u(e[f=b[a]],t[f],n))return!1;return!0}(e,t,f))}function d(e){return null===e||void 0===e}function h(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=u},28057:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},28070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;const r=n(24839);function i(e){return"string"!==typeof e||e.startsWith("0x")||(e="0x"+e),(0,r.getBytesCopy)(e)}t.looseArrayify=i,t.zpad=function(e,t){for(e=String(e);e.length<t;)e="0"+e;return e},t.getPassword=function(e){return"string"===typeof e?(0,r.toUtf8Bytes)(e,"NFKC"):(0,r.getBytesCopy)(e)},t.spelunk=function(e,t){const n=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,r.assertArgument)(null!=n,"invalid path","path",t);const a=n[1],o=n[3],s="!"===n[4];let l=e;for(const r of a.toLowerCase().split(".")){if(Array.isArray(l)){if(!r.match(/^[0-9]+$/))break;l=l[parseInt(r)]}else if("object"===typeof l){let e=null;for(const t in l)if(t.toLowerCase()===r){e=l[t];break}l=e}else l=null;if(null==l)break}if((0,r.assertArgument)(!s||null!=l,"missing required value","path",a),o&&null!=l){if("int"===o){if("string"===typeof l&&l.match(/^-?[0-9]+$/))return parseInt(l);if(Number.isSafeInteger(l))return l}if("number"===o&&"string"===typeof l&&l.match(/^-?[0-9.]*$/))return parseFloat(l);if("data"===o&&"string"===typeof l)return i(l);if("array"===o&&Array.isArray(l))return l;if(o===typeof l)return l;(0,r.assertArgument)(!1,`wrong type found for ${o} `,"path",a)}return l}},28089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;const r=n(69687),i=n(65891),a=n(20022),o=n(24839);function s(e){return"string"===typeof e&&(e=(0,o.toUtf8Bytes)(e)),(0,r.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(i.MessagePrefix),(0,o.toUtf8Bytes)(String(e.length)),e]))}t.hashMessage=s,t.verifyMessage=function(e,t){const n=s(e);return(0,a.recoverAddress)(n,t)}},28317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransactionResponse=t.formatTransactionReceipt=t.formatReceiptLog=t.formatBlock=t.formatLog=t.formatUint256=t.formatHash=t.formatData=t.formatBoolean=t.object=t.arrayOf=t.allowNull=void 0;const r=n(55114),i=n(69687),a=n(20022),o=n(24839),s=BigInt(0);function l(e,t){return function(n){return null==n?t:e(n)}}function c(e,t){return n=>{if(t&&null==n)return null;if(!Array.isArray(n))throw new Error("not an array");return n.map((t=>e(t)))}}function u(e,t){return n=>{const r={};for(const a in e){let s=a;if(t&&a in t&&!(s in n))for(const e of t[a])if(e in n){s=e;break}try{const t=e[a](n[s]);void 0!==t&&(r[a]=t)}catch(i){const e=i instanceof Error?i.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${a} (${e})`,"BAD_DATA",{value:n})}}return r}}function d(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function h(e){return(0,o.assertArgument)((0,o.isHexString)(e,!0),"invalid data","value",e),e}function f(e){return(0,o.assertArgument)((0,o.isHexString)(e,32),"invalid hash","value",e),e}t.allowNull=l,t.arrayOf=c,t.object=u,t.formatBoolean=d,t.formatData=h,t.formatHash=f,t.formatUint256=function(e){if(!(0,o.isHexString)(e))throw new Error("invalid uint256");return(0,o.zeroPadValue)(e,32)};const p=u({address:r.getAddress,blockHash:f,blockNumber:o.getNumber,data:h,index:o.getNumber,removed:l(d,!1),topics:c(f),transactionHash:f,transactionIndex:o.getNumber},{index:["logIndex"]});t.formatLog=function(e){return p(e)};const g=u({hash:l(f),parentHash:f,parentBeaconBlockRoot:l(f,null),number:o.getNumber,timestamp:o.getNumber,nonce:l(h),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,stateRoot:l(f,null),receiptsRoot:l(f,null),transactionsRoot:l(f,null),blobGasUsed:l(o.getBigInt,null),excessBlobGas:l(o.getBigInt,null),miner:l(r.getAddress),prevRandao:l(f,null),extraData:h,baseFeePerGas:l(o.getBigInt)},{prevRandao:["mixHash"]});t.formatBlock=function(e){const t=g(e);return t.transactions=e.transactions.map((e=>"string"===typeof e?e:v(e))),t};const m=u({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:f,address:r.getAddress,topics:c(f),data:h,index:o.getNumber,blockHash:f},{index:["logIndex"]});function y(e){return m(e)}t.formatReceiptLog=y;
2const b=u({to:l(r.getAddress,null),from:l(r.getAddress,null),contractAddress:l(r.getAddress,null),index:o.getNumber,root:l(o.hexlify),gasUsed:o.getBigInt,blobGasUsed:l(o.getBigInt,null),logsBloom:l(h),blockHash:f,hash:f,logs:c(y),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:l(o.getBigInt),blobGasPrice:l(o.getBigInt,null),status:l(o.getNumber),type:l(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function v(e){e.to&&(0,o.getBigInt)(e.to)===s&&(e.to="0x0000000000000000000000000000000000000000");const t=u({hash:f,index:l(o.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,o.getNumber)(e),accessList:l(a.accessListify,null),blobVersionedHashes:l(c(f,!0),null),authorizationList:l(c((e=>{let t;if(e.signature)t=e.signature;else{let n=e.yParity;"0x1b"===n?n=0:"0x1c"===n&&(n=1),t=Object.assign({},e,{yParity:n})}return{address:(0,r.getAddress)(e.address),chainId:(0,o.getBigInt)(e.chainId),nonce:(0,o.getBigInt)(e.nonce),signature:i.Signature.from(t)}}),!1),null),blockHash:l(f,null),blockNumber:l(o.getNumber,null),transactionIndex:l(o.getNumber,null),from:r.getAddress,gasPrice:l(o.getBigInt),maxPriorityFeePerGas:l(o.getBigInt),maxFeePerGas:l(o.getBigInt),maxFeePerBlobGas:l(o.getBigInt,null),gasLimit:o.getBigInt,to:l(r.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:h,creates:l(r.getAddress,null),chainId:l(o.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,r.getCreateAddress)(t)),1!==e.type&&2!==e.type||null!=e.accessList||(t.accessList=[]),e.signature?t.signature=i.Signature.from(e.signature):t.signature=i.Signature.from(e),null==t.chainId){const e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,o.getBigInt)(t.blockHash)===s&&(t.blockHash=null),t}t.formatTransactionReceipt=function(e){return b(e)},t.formatTransactionResponse=v},28619:(e,t,n)=>{"use strict";var r=n(28726),i=n(43629),a=n(27837),o=n(95944),s=n(19394),l=i(o(),Object);r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},28726:(e,t,n)=>{"use strict";var r=n(27839),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=n(29411),l=n(47734)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==a.call(i)||!r())return;var i;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],n[a[s]])};u.supportsDescriptors=!!l,e.exports=u},29131:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},29310:(e,t,n)=>{"use strict";var r=n(28057);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},29343:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},29411:(e,t,n)=>{"use strict";var r=n(96709),i=n(57430),a=n(37277),o=n(24553);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new a("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!o&&o(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},29460:(e,t,n)=>{"use strict";var r=n(76989),i=n(37277),a=n(97858),o=n(63110);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return o(r,a,e)}},29508:e=>{e.exports=function(e){return e.split("")}},29745:(e,t,n)=>{"use strict";var r=n(15116),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},29794:(e,t,n)=>{var r=n(24567);e.exports=function(e){return e===e&&!r(e)}},29892:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[a,o,s].join("|")+")"+c+l+")*"),d="(?:"+[a+r+"?",r,o,s,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(h)||[]}}
2,30202:(e,t,n)=>{var r=n(20220)(n(14759),"Promise");e.exports=r},30247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const r=n(66115),i=n(24839);let a=!1;const o=function(e){return(0,r.ripemd160)(e)};let s=o;function l(e){const t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(s(t))}t.ripemd160=l,l._=o,l.lock=function(){a=!0},l.register=function(e){if(a)throw new TypeError("ripemd160 is locked");s=e},Object.freeze(l)},30378:(e,t,n)=>{"use strict";e.exports=n(75045)},30421:(e,t,n)=>{"use strict";var r=n(44796),i=n(51889),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},30422:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;const i=n(24839),a=n(18500),o=n(10569),s=n(83606);function l(e,t,n){let r=[];if(Array.isArray(n))r=n;else if(n&&"object"===typeof n){let e={};r=t.map((t=>{const r=t.localName;return(0,i.assert)(r,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),(0,i.assert)(!e[r],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[r]=!0,n[r]}))}else(0,i.assertArgument)(!1,"invalid tuple value","tuple",n);(0,i.assertArgument)(t.length===r.length,"types/value length mismatch","tuple",n);let a=new o.Writer,s=new o.Writer,l=[];t.forEach(((e,t)=>{let n=r[t];if(e.dynamic){let t=s.length;e.encode(s,n);let r=a.writeUpdatableValue();l.push((e=>{r(e+t)}))}else e.encode(a,n)})),l.forEach((e=>{e(a.length)}));let c=e.appendWriter(a);return c+=e.appendWriter(s),c}function c(e,t){let n=[],r=[],a=e.subReader(0);return t.forEach((t=>{let o=null;if(t.dynamic){let n=e.readIndex(),r=a.subReader(n);try{o=t.decode(r)}catch(s){if((0,i.isError)(s,"BUFFER_OVERRUN"))throw s;o=s,o.baseType=t.name,o.name=t.localName,o.type=t.type}}else try{o=t.decode(e)}catch(s){if((0,i.isError)(s,"BUFFER_OVERRUN"))throw s;o=s,o.baseType=t.name,o.name=t.localName,o.type=t.type}if(void 0==o)throw new Error("investigate");n.push(o),r.push(t.localName||null)})),o.Result.fromItems(n,r)}t.pack=l,t.unpack=c;class u extends o.Coder{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),r(this,"coder",void 0),r(this,"length",void 0),(0,i.defineProperties)(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n<this.length;n++)t.push(e);return t}encode(e,t){const n=a.Typed.dereference(t,"array");Array.isArray(n)||this._throwError("expected array value",n);let r=this.length;-1===r&&(r=n.length,e.writeValue(n.length)),(0,i.assertArgumentCount)(n.length,r,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let i=0;i<n.length;i++)o.push(this.coder);return l(e,o,n)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,i.assert)(t*o.WordSize<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*o.WordSize,length:e.dataLength}));let n=[];for(let r=0;r<t;r++)n.push(new s.AnonymousCoder(this.coder));return c(e,n)}}t.ArrayCoder=u},30543:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},31223:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(81756).default,o=n(37088).default,s=n(16668).default,l=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;const c=n(18212),u=n(55114),d=n(11454),h=n(20022),f=n(24839),p=n(64364),g=n(69491),m=n(55182),y=n(60722),b=n(7486),v="bigint,boolean,function,number,string,symbol".split(/,/g);function x(e){if(null==e||v.indexOf(typeof e)>=0)return e;if("function"===typeof e.getAddress)return e;if(Array.isArray(e))return e.map(x);if("object"===typeof e)return Object.keys(e).reduce(((t,n)=>(t[n]=e[n],t)),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function w(e){return new Promise((t=>{setTimeout(t,e)}))}function k(e){return e?e.toLowerCase():e}function A(e){return e&&"number"===typeof e.pollingInterval}const E={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class S extends g.AbstractSigner{constructor(e,t){super(e),l(this,"address",void 0),t=(0,u.getAddress)(t),(0,f.defineProperties)(this,{address:t})}connect(e){(0,f.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const t=x(e),n=[];if(t.from){const r=t.from;n.push((async()=>{const n=await(0,u.resolveAddress)(r,this.provider);(0,f.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n})())}else t.from=this.address;if(null==t.gasLimit&&n.push((async()=>
2{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){const e=t.to;n.push((async()=>{t.to=await(0,u.resolveAddress)(e,this.provider)})())}n.length&&await Promise.all(n);const r=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[r])}async sendTransaction(e){const t=await this.provider.getBlockNumber(),n=await this.sendUncheckedTransaction(e);return await new Promise(((e,r)=>{const i=[1e3,100];let a=0;const o=async()=>{try{const r=await this.provider.getTransaction(n);if(null!=r)return void e(r.replaceableTransaction(t))}catch(s){if((0,f.isError)(s,"CANCELLED")||(0,f.isError)(s,"BAD_DATA")||(0,f.isError)(s,"NETWORK_ERROR")||(0,f.isError)(s,"UNSUPPORTED_OPERATION"))return null==s.info&&(s.info={}),s.info.sendTransactionHash=n,void r(s);if((0,f.isError)(s,"INVALID_ARGUMENT")&&(a++,null==s.info&&(s.info={}),s.info.sendTransactionHash=n,a>10))return void r(s);this.provider.emit("error",(0,f.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:s}))}this.provider._setTimeout((()=>{o()}),i.pop()||4e3)};o()}))}async signTransaction(e){const t=x(e);if(t.from){const n=await(0,u.resolveAddress)(t.from,this.provider);(0,f.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n}else t.from=this.address;const n=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[n])}async signMessage(e){const t="string"===typeof e?(0,f.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,f.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,n){const r=x(n),i=await d.TypedDataEncoder.resolveNames(e,t,r,(async e=>{const t=await(0,u.resolveAddress)(e);return(0,f.assertArgument)(null!=t,"TypedData does not support null address","value",e),t}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(d.TypedDataEncoder.getPayload(i.domain,t,i.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const t="string"===typeof e?(0,f.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,f.hexlify)(t)])}}t.JsonRpcSigner=S;var P=new WeakMap,C=new WeakMap,O=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,I=new WeakMap,R=new WeakSet;class M extends p.AbstractProvider{constructor(e,t){super(e,t),r(this,R),i(this,P,void 0),i(this,C,void 0),i(this,O,void 0),i(this,T,void 0),i(this,N,void 0),i(this,_,void 0),i(this,I,void 0),o(C,this,1),o(P,this,Object.assign({},E,t||{})),o(O,this,[]),o(T,this,null),o(_,this,null),o(I,this,null);{let e=null;const t=new Promise((t=>{e=t}));o(N,this,{promise:t,resolve:e})}const n=this._getOption("staticNetwork");"boolean"===typeof n?((0,f.assertArgument)(!n||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),n&&null!=e&&o(_,this,m.Network.from(e))):n&&((0,f.assertArgument)(null==e||n.matches(e),"staticNetwork MUST match network object","options",t),o(_,this,n))}_getOption(e){return s(P,this)[e]}get _network(){return(0,f.assert)(s(_,this),"network is not available yet","NETWORK_ERROR"),s(_,this)}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,f.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=await this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}const t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(s(_,this))return s(_,this)}return s(I,this)?await s(I,this):this.ready?(o(I,this,(async()=>{try{const e=m.Network.from((0,f.getBigInt)(await this.send("eth_chainId",[])));return o(I,this,null),e}catch(e){throw o(I,this,null),e}})()),await s(I,this)):(o(I,this,(async(e,t)=>{const n={id:(o(C,this,(e=s(C,this),t=e++,e)),t),method:"eth_chainId",params:[],jsonrpc:"2.0"};let r;
2this.emit("debug",{action:"sendRpcPayload",payload:n});try{r=(await this._send(n))[0],o(I,this,null)}catch(i){throw o(I,this,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:r}),"result"in r)return m.Network.from((0,f.getBigInt)(r.result));throw this.getRpcError(n,r)})()),await s(I,this))}_start(){null!=s(N,this)&&null!=s(N,this).resolve&&(s(N,this).resolve(),o(N,this,null),(async()=>{for(;null==s(_,this)&&!this.destroyed;)try{o(_,this,await this._detectNetwork())}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,f.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await w(1e3)}a(R,this,j).call(this)})())}async _waitUntilReady(){if(null!=s(N,this))return await s(N,this).promise}_getSubscriber(e){return"pending"===e.type?new y.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new b.PollingEventSubscriber(this,e.filter):new y.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new p.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==s(N,this)}getRpcTransaction(e){const t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((n=>{if(null==e[n])return;let r=n;"gasLimit"===n&&(r="gas"),t[r]=(0,f.toQuantity)((0,f.getBigInt)(e[n],`tx.${n}`))})),["from","to","data"].forEach((n=>{null!=e[n]&&(t[n]=(0,f.hexlify)(e[n]))})),e.accessList&&(t.accessList=(0,h.accessListify)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map((e=>e.toLowerCase()))),e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>{const t=(0,h.authorizationify)(e);return{address:t.address,nonce:(0,f.toQuantity)(t.nonce),chainId:(0,f.toQuantity)(t.chainId),yParity:(0,f.toQuantity)(t.signature.yParity),r:(0,f.toQuantity)(t.signature.r),s:(0,f.toQuantity)(t.signature.s)}}))),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[k(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[k(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[k(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[k(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(k):e.filter.address=k(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){const{method:n}=e,{error:r}=t;if("eth_estimateGas"===n&&r.message){const t=r.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,f.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:r}});if(t.match(/nonce/i)&&t.match(/too low/i))return(0,f.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:e.params[0],info:{payload:e,error:r}})}if("eth_call"===n||"eth_estimateGas"===n){const t=D(r),i=c.AbiCoder.getBuiltinCallException("eth_call"===n?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:r,payload:e},i}const i=JSON.stringify(function(e){const t=[];return U(e,t),t}(r));if("string"===typeof r.message&&r.message.match(/user denied|ethers-user-denied/i)){const t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,f.makeError)("user rejected action","ACTION_REJECTED",{action:t[n]||"unknown",reason:"rejected",info:{payload:e,error:r}})}if("eth_sendRawTransaction"===n||"eth_sendTransaction"===n){const t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,f.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:r}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,f.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:r}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,f.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:r}});if(i.match(/only replay-protected/i))return(0,f.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:n,info:{transaction:t,info:{error:r}}})}let a=!!i.match(/the method .* does not exist/i);return a||r&&r.details&&r.details.startsWith("Unauthorized method:")&&(a=!0),a?(0,f.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:r,payload:e}}
2):(0,f.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:r,payload:e})}send(e,t){var n,r;if(this.destroyed)return Promise.reject((0,f.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const i=(o(C,this,(n=s(C,this),r=n++,n)),r),l=new Promise(((n,r)=>{s(O,this).push({resolve:n,reject:r,payload:{method:e,params:t,id:i,jsonrpc:"2.0"}})}));return a(R,this,j).call(this),l}async getSigner(e){null==e&&(e=0);const t=this.send("eth_accounts",[]);if("number"===typeof e){const n=await t;if(e>=n.length)throw new Error("no such account");return new S(this,n[e])}const{accounts:n}=await(0,f.resolveProperties)({network:this.getNetwork(),accounts:t});e=(0,u.getAddress)(e);for(const r of n)if((0,u.getAddress)(r)===e)return new S(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((e=>new S(this,e)))}destroy(){s(T,this)&&(clearTimeout(s(T,this)),o(T,this,null));for(const{payload:e,reject:t}of s(O,this))t((0,f.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));o(O,this,[]),super.destroy()}}function j(){if(s(T,this))return;const e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");o(T,this,setTimeout((()=>{o(T,this,null);const e=s(O,this);for(o(O,this,[]);e.length;){const t=[e.shift()];for(;e.length&&t.length!==s(P,this).batchMaxCount;){t.push(e.shift());if(JSON.stringify(t.map((e=>e.payload))).length>s(P,this).batchMaxSize){e.unshift(t.pop());break}}(async()=>{const e=1===t.length?t[0].payload:t.map((e=>e.payload));this.emit("debug",{action:"sendRpcPayload",payload:e});try{const n=await this._send(e);this.emit("debug",{action:"receiveRpcResult",result:n});for(const{resolve:e,reject:r,payload:i}of t){if(this.destroyed){r((0,f.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:i.method}));continue}const t=n.filter((e=>e.id===i.id))[0];if(null!=t)"error"in t?r(this.getRpcError(i,t)):e(t.result);else{const e=(0,f.makeError)("missing response for request","BAD_DATA",{value:n,info:{payload:i}});this.emit("error",e),r(e)}}}catch(n){this.emit("debug",{action:"receiveRpcError",error:n});for(const{reject:e}of t)e(n)}})()}}),e))}t.JsonRpcApiProvider=M;var L=new WeakMap;class B extends M{constructor(e,t){super(e,t),i(this,L,void 0);let n=this._getOption("pollingInterval");null==n&&(n=E.pollingInterval),o(L,this,n)}_getSubscriber(e){const t=super._getSubscriber(e);return A(t)&&(t.pollingInterval=s(L,this)),t}get pollingInterval(){return s(L,this)}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");o(L,this,e),this._forEachSubscriber((e=>{A(e)&&(e.pollingInterval=s(L,this))}))}}t.JsonRpcApiPollingProvider=B;var F=new WeakMap;function D(e){if(null==e)return null;if("string"===typeof e.message&&e.message.match(/revert/i)&&(0,f.isHexString)(e.data))return{message:e.message,data:e.data};if("object"===typeof e){for(const t in e){const n=D(e[t]);if(n)return n}return null}if("string"===typeof e)try{return D(JSON.parse(e))}catch(t){}return null}function U(e,t){if(null!=e){if("string"===typeof e.message&&t.push(e.message),"object"===typeof e)for(const n in e)U(e[n],t);if("string"===typeof e)try{return U(JSON.parse(e),t)}catch(n){}}}t.JsonRpcProvider=class extends B{constructor(e,t,n){null==e&&(e="http://localhost:8545"),super(t,n),i(this,F,void 0),o(F,this,"string"===typeof e?new f.FetchRequest(e):e.clone())}_getConnection(){return s(F,this).clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){const t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");const n=await t.send();n.assertOk();let r=n.bodyJson;return Array.isArray(r)||(r=[r]),r}}},31264:e=>{"use strict";e.exports=Function.prototype.apply},31560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88686);r.__exportStar(n(91359),t),r.__exportStar(n(86367),t)},31712:(e,t,n)=>{var r="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",o=/^\[object .+?Constructor\]$/,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")();var u=Array.prototype,d=Function.prototype,h=Object.prototype,f=c["__core-js_shared__"],p=function(){var e=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||"");
2return e?"Symbol(src)_1."+e:""}(),g=d.toString,m=h.hasOwnProperty,y=h.toString,b=RegExp("^"+g.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=u.splice,x=O(c,"Map"),w=O(Object,"create");function k(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function A(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!==n&&r!==r)return i;return-1}function P(e){if(!N(e)||function(e){return!!p&&p in e}(e))return!1;var t=function(e){var t=N(e)?y.call(e):"";return t==i||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?b:o;return t.test(function(e){if(null!=e){try{return g.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function C(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function O(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return P(n)?n:void 0}function T(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(T.Cache||E),n}function N(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}k.prototype.clear=function(){this.__data__=w?w(null):{}},k.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},k.prototype.get=function(e){var t=this.__data__;if(w){var n=t[e];return n===r?void 0:n}return m.call(t,e)?t[e]:void 0},k.prototype.has=function(e){var t=this.__data__;return w?void 0!==t[e]:m.call(t,e)},k.prototype.set=function(e,t){return this.__data__[e]=w&&void 0===t?r:t,this},A.prototype.clear=function(){this.__data__=[]},A.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0)&&(n==t.length-1?t.pop():v.call(t,n,1),!0)},A.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},A.prototype.has=function(e){return S(this.__data__,e)>-1},A.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},E.prototype.clear=function(){this.__data__={hash:new k,map:new(x||A),string:new k}},E.prototype.delete=function(e){return C(this,e).delete(e)},E.prototype.get=function(e){return C(this,e).get(e)},E.prototype.has=function(e){return C(this,e).has(e)},E.prototype.set=function(e,t){return C(this,e).set(e,t),this},T.Cache=E,e.exports=T},31761:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<i&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,g=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(m=!1,x(e),!g)if(null!==r(c))g=!0,R(k);else{var t=r(u);null!==t&&M(w,t.startTime-e)}}function k(e,n){g=!1,m&&(m=!1,b(P),P=-1),p=!0;var a=f;try{for(x(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!T());){var o=h.callback;if("function"===typeof o){h.callback=null,f=h.priorityLevel;var s=o(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?h.callback=s:h===r(c)&&i(c),x(n)}else i(c);h=r(c)}if(null!==h)var l=!0;else{var d=r(u);null!==d&&M(w,d.startTime-n),l=!1}return l}finally{h=null,f=a,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,E=!1,S=null,P=-1,C=5,O=-1;function T(){return!(t.unstable_now()-O<C)}function N(){if(null!==S){var e=t.unstable_now();O=e;var n=!0;try{n=S(!0,e)}finally{n?A():(E=!1,S=null)}}else E=!1}if("function"===typeof v)A=function(){v(N)};else if("undefined"!==typeof MessageChannel){var _=new MessageChannel,I=_.port2;_.port1.onmessage=N,A=function(){I.postMessage(null)}}else A=function(){y(N,0)};function R(e){S=e,E||(E=!0,A())}function M(e,n){P=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,R(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(m?(b(P),P=-1):m=!0,M(w,a-o))):(e.sortIndex=s,n(c,e),g||p||(g=!0,R(k))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},31781:(e,t,n)=>{"use strict";var r=n(44796);e.exports=r({}.isPrototypeOf)},32011:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
2ing","toString","valueOf"]},32049:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var x=v.prototype=new b;x.constructor=v,g(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,A={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,i)&&!E.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:A.current}}function P(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return o=o(l=e),e=""===a?"."+O(l,0):a,w(o)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),T(o,t,i,"",(function(e){return e}))):null!=o&&(P(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+O(s=e[c],c);l+=T(s,t,i,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,u=a+O(s,c++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function N(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function _(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},R={transition:null},M={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:R,ReactCurrentOwner:A};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}}
2,t.Component=y,t.Fragment=i,t.Profiler=o,t.PureComponent=v,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=A.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},32146:(e,t,n)=>{"use strict";n.d(t,{Af:()=>f,ZJ:()=>c,aT:()=>h});var r=n(36026),i=n(7466),a=n(93914),o=n(53187),s=n(97168);const l=new TextEncoder;function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?function(e,t){const n=(0,s.cK)(e,t);return h(n)}(e,t):"boolean"===typeof e?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Uint8Array(1);if(n[0]=Number(e),"number"===typeof t.size)return(0,o.Sl)(n,{size:t.size}),(0,a.eV)(n,{size:t.size});return n}(e,t):(0,i.q)(e)?h(e,t):f(e,t)}const u={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;t.size&&((0,o.Sl)(n,{size:t.size}),n=(0,a.eV)(n,{dir:"right",size:t.size}));let i=n.slice(2);i.length%2&&(i=`0${i}`);const s=i.length/2,l=new Uint8Array(s);for(let a=0,o=0;a<s;a++){const e=d(i.charCodeAt(o++)),t=d(i.charCodeAt(o++));if(void 0===e||void 0===t)throw new r.C(`Invalid byte sequence ("${i[o-2]}${i[o-1]}" in "${i}").`);l[a]=16*e+t}return l}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=l.encode(e);return"number"===typeof t.size?((0,o.Sl)(n,{size:t.size}),(0,a.eV)(n,{dir:"right",size:t.size})):n}},32490:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(93074);const i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.B4({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.B4({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=null!==t&&void 0!==t?t:this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=null!==e&&void 0!==e?e:this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=null!==t&&void 0!==t?t:e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function a(e){let{recursiveReadLimit:t=8192}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},32598:function(e,t,n){"use strict";var r,i,a,o=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},s=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};
2Object.defineProperty(t,"__esModule",{value:!0}),t.OFB=void 0;const l=n(94546);class c extends l.ModeOfOperation{constructor(e,t){if(super("OFB",e,c),r.set(this,void 0),i.set(this,void 0),a.set(this,void 0),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");o(this,r,new Uint8Array(t),"f")}else o(this,r,new Uint8Array(16),"f");o(this,i,this.iv,"f"),o(this,a,16,"f")}get iv(){return new Uint8Array(s(this,r,"f"))}encrypt(e){var t,n;if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e);for(let l=0;l<r.length;l++)16===s(this,a,"f")&&(o(this,i,this.aes.encrypt(s(this,i,"f")),"f"),o(this,a,0,"f")),r[l]^=s(this,i,"f")[(o(this,a,(n=s(this,a,"f"),t=n++,n),"f"),t)];return r}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(e)}}t.OFB=c,r=new WeakMap,i=new WeakMap,a=new WeakMap},32654:(e,t,n)=>{"use strict";var r=n(9950),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},32996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const r=n(96752),i=n(99717),a=n(50582),[o,s,l]=[[],[],[]],c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let A=0,E=u,S=1,P=0;A<24;A++){[S,P]=[P,(2*S+3*P)%5],o.push(2*(5*P+S)),s.push((A+1)*(A+2)/2%64);let e=c;for(let t=0;t<7;t++)E=(E<<u^(E>>h)*p)%f,E&d&&(e^=u<<(u<<BigInt(t))-u);l.push(e)}const[g,m]=(0,i.split)(l,!0),y=(e,t,n)=>n>32?(0,i.rotlBH)(e,t,n):(0,i.rotlSH)(e,t,n),b=(e,t,n)=>n>32?(0,i.rotlBL)(e,t,n):(0,i.rotlSL)(e,t,n);function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,a=n[i],o=n[i+1],s=y(a,o,1)^n[t],l=b(a,o,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=l}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=s[n],a=y(t,i,r),l=b(t,i,r),c=o[n];t=e[c],i=e[c+1],e[c]=a,e[c+1]=l}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=g[r],e[1]^=m[r]}n.fill(0)}t.keccakP=v;class x extends a.Hash{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,r.exists)(this);const{blockLen:t,state:n}=this,i=(e=(0,a.toBytes)(e)).length;for(let r=0;r<i;){const a=Math.min(t-this.pos,i-r);for(let t=0;t<a;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,r.exists)(this,!1),(0,r.bytes)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new x(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}t.Keccak=x;const w=(e,t,n)=>(0,a.wrapConstructor)((()=>new x(t,e,n)));t.sha3_224=w(6,144,28),t.sha3_256=w(6,136,32),t.sha3_384=w(6,104,48),t.sha3_512=w(6,72,64),t.keccak_224=w(1,144,28),t.keccak_256=w(1,136,32),t.keccak_384=w(1,104,48),t.keccak_512=w(1,72,64);const k=(e,t,n)=>(0,a.wrapXOFConstructorWithOpts)((function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new x(t,e,void 0===r.dkLen?n:r.dkLen,!0)}));t.shake128=k(31,168,16),t.shake256=k(31,136,32)},33077:(e,t,n)=>{var r=n(45099);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},33417:(e,t,n)=>{"use strict";n.d(t,{LX:()=>r,WN:()=>i,nP:()=>a});const r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
2602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",a="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
2603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},33534:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;const r=n(10569),i=new Uint8Array([]);class a extends r.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(i)}decode(e){return e.readBytes(0),null}}t.NullCoder=a},33641:(e,t,n)=>{"use strict";var r=n(96643);e.exports=r("document","documentElement")},33670:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(19250)},34378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;const r=n(7256),i=n(18500),a=n(20232);class o extends a.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,r.toUtf8Bytes)(i.Typed.dereference(t,"string")))}decode(e){return(0,r.toUtf8String)(super.decode(e))}}t.StringCoder=o},34437:(e,t,n)=>{"use strict";var r=n(23873);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},34520:(e,t,n)=>{"use strict";t.Tc=t.TZ=t.wE=t.Xx=void 0;const r=n(86022),i=n(95070);function a(e){const t=new Float64Array(16);if(e)for(let n=0;n<e.length;n++)t[n]=e[n];return t}t.Xx=32,t.wE=32;const o=new Uint8Array(32);o[0]=9;const s=a([56129,1]);function l(e){let t=1;for(let n=0;n<16;n++){let r=e[n]+t+65535;t=Math.floor(r/65536),e[n]=r-65536*t}e[0]+=t-1+37*(t-1)}function c(e,t,n){const r=~(n-1);for(let i=0;i<16;i++){const n=r&(e[i]^t[i]);e[i]^=n,t[i]^=n}}function u(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]+n[r]}function d(e,t,n){for(let r=0;r<16;r++)e[r]=t[r]-n[r]}function h(e,t,n){let r,i,a=0,o=0,s=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,g=0,m=0,y=0,b=0,v=0,x=0,w=0,k=0,A=0,E=0,S=0,P=0,C=0,O=0,T=0,N=0,_=0,I=0,R=0,M=0,j=0,L=n[0],B=n[1],F=n[2],D=n[3],U=n[4],z=n[5],W=n[6],H=n[7],V=n[8],G=n[9],Y=n[10],q=n[11],X=n[12],$=n[13],K=n[14],Q=n[15];r=t[0],a+=r*L,o+=r*B,s+=r*F,l+=r*D,c+=r*U,u+=r*z,d+=r*W,h+=r*H,f+=r*V,p+=r*G,g+=r*Y,m+=r*q,y+=r*X,b+=r*$,v+=r*K,x+=r*Q,r=t[1],o+=r*L,s+=r*B,l+=r*F,c+=r*D,u+=r*U,d+=r*z,h+=r*W,f+=r*H,p+=r*V,g+=r*G,m+=r*Y,y+=r*q,b+=r*X,v+=r*$,x+=r*K,w+=r*Q,r=t[2],s+=r*L,l+=r*B,c+=r*F,u+=r*D,d+=r*U,h+=r*z,f+=r*W,p+=r*H,g+=r*V,m+=r*G,y+=r*Y,b+=r*q,v+=r*X,x+=r*$,w+=r*K,k+=r*Q,r=t[3],l+=r*L,c+=r*B,u+=r*F,d+=r*D,h+=r*U,f+=r*z,p+=r*W,g+=r*H,m+=r*V,y+=r*G,b+=r*Y,v+=r*q,x+=r*X,w+=r*$,k+=r*K,A+=r*Q,r=t[4],c+=r*L,u+=r*B,d+=r*F,h+=r*D,f+=r*U,p+=r*z,g+=r*W,m+=r*H,y+=r*V,b+=r*G,v+=r*Y,x+=r*q,w+=r*X,k+=r*$,A+=r*K,E+=r*Q,r=t[5],u+=r*L,d+=r*B,h+=r*F,f+=r*D,p+=r*U,g+=r*z,m+=r*W,y+=r*H,b+=r*V,v+=r*G,x+=r*Y,w+=r*q,k+=r*X,A+=r*$,E+=r*K,S+=r*Q,r=t[6],d+=r*L,h+=r*B,f+=r*F,p+=r*D,g+=r*U,m+=r*z,y+=r*W,b+=r*H,v+=r*V,x+=r*G,w+=r*Y,k+=r*q,A+=r*X,E+=r*$,S+=r*K,P+=r*Q,r=t[7],h+=r*L,f+=r*B,p+=r*F,g+=r*D,m+=r*U,y+=r*z,b+=r*W,v+=r*H,x+=r*V,w+=r*G,k+=r*Y,A+=r*q,E+=r*X,S+=r*$,P+=r*K,C+=r*Q,r=t[8],f+=r*L,p+=r*B,g+=r*F,m+=r*D,y+=r*U,b+=r*z,v+=r*W,x+=r*H,w+=r*V,k+=r*G,A+=r*Y,E+=r*q,S+=r*X,P+=r*$,C+=r*K,O+=r*Q,r=t[9],p+=r*L,g+=r*B,m+=r*F,y+=r*D,b+=r*U,v+=r*z,x+=r*W,w+=r*H,k+=r*V,A+=r*G,E+=r*Y,S+=r*q,P+=r*X,C+=r*$,O+=r*K,T+=r*Q,r=t[10],g+=r*L,m+=r*B,y+=r*F,b+=r*D,v+=r*U,x+=r*z,w+=r*W,k+=r*H,A+=r*V,E+=r*G,S+=r*Y,P+=r*q,C+=r*X,O+=r*$,T+=r*K,N+=r*Q,r=t[11],m+=r*L,y+=r*B,b+=r*F,v+=r*D,x+=r*U,w+=r*z,k+=r*W,A+=r*H,E+=r*V,S+=r*G,P+=r*Y,C+=r*q,O+=r*X,T+=r*$,N+=r*K,_+=r*Q,r=t[12],y+=r*L,b+=r*B,v+=r*F,x+=r*D,w+=r*U,k+=r*z,A+=r*W,E+=r*H,S+=r*V,P+=r*G,C+=r*Y,O+=r*q,T+=r*X,N+=r*$,_+=r*K,I+=r*Q,r=t[13],b+=r*L,v+=r*B,x+=r*F,w+=r*D,k+=r*U,A+=r*z,E+=r*W,S+=r*H,P+=r*V,C+=r*G,O+=r*Y,T+=r*q,N+=r*X,_+=r*$,I+=r*K,R+=r*Q,r=t[14],v+=r*L,x+=r*B,w+=r*F,k+=r*D,A+=r*U,E+=r*z,S+=r*W,P+=r*H,C+=r*V,O+=r*G,T+=r*Y,N+=r*q,_+=r*X,I+=r*$,R+=r*K,M+=r*Q,r=t[15],x+=r*L,w+=r*B,k+=r*F,A+=r*D,E+=r*U,S+=r*z,P+=r*W,C+=r*H,O+=r*V,T+=r*G,N+=r*Y,_+=r*q,I+=r*X,R+=r*$,M+=r*K,j+=r*Q,a+=38*w,o+=38*k,s+=38*A,l+=38*E,c+=38*S,u+=38*P,d+=38*C,h+=38*O,f+=38*T,p+=38*N,g+=38*_,m+=38*I,y+=38*R,b+=38*M,v+=38*j,i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=x+i+65535,i=Math.floor(r/65536),x=r-65536*i,a+=i-1+37*(i-1),i=1,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=x+i+65535,i=Math.floor(r/65536),x=r-65536*i,a+=i-1+37*(i-1),e[0]=a,e[1]=o,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11
2]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=x}function f(e,t){h(e,t,t)}function p(e,t){const n=new Uint8Array(32),r=new Float64Array(80),i=a(),o=a(),p=a(),g=a(),m=a(),y=a();for(let a=0;a<31;a++)n[a]=e[a];n[31]=127&e[31]|64,n[0]&=248,function(e,t){for(let n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}(r,t);for(let a=0;a<16;a++)o[a]=r[a];i[0]=g[0]=1;for(let a=254;a>=0;--a){const e=n[a>>>3]>>>(7&a)&1;c(i,o,e),c(p,g,e),u(m,i,p),d(i,i,p),u(p,o,g),d(o,o,g),f(g,m),f(y,i),h(i,p,i),h(p,o,m),u(m,i,p),d(i,i,p),f(o,i),d(p,g,y),h(i,p,s),u(i,i,g),h(p,p,i),h(i,g,y),h(g,o,r),f(o,m),c(i,o,e),c(p,g,e)}for(let a=0;a<16;a++)r[a+16]=i[a],r[a+32]=p[a],r[a+48]=o[a],r[a+64]=g[a];const b=r.subarray(32),v=r.subarray(16);!function(e,t){const n=a();for(let r=0;r<16;r++)n[r]=t[r];for(let r=253;r>=0;r--)f(n,n),2!==r&&4!==r&&h(n,n,t);for(let r=0;r<16;r++)e[r]=n[r]}(b,b),h(v,v,b);const x=new Uint8Array(32);return function(e,t){const n=a(),r=a();for(let i=0;i<16;i++)r[i]=t[i];l(r),l(r),l(r);for(let i=0;i<2;i++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,c(r,n,1-e)}for(let i=0;i<16;i++)e[2*i]=255&r[i],e[2*i+1]=r[i]>>8}(x,v),x}function g(e){return p(e,o)}function m(e){if(e.length!==t.wE)throw new Error(`x25519: seed must be ${t.wE} bytes`);const n=new Uint8Array(e);return{publicKey:g(n),secretKey:n}}t.TZ=function(e){const t=(0,r.randomBytes)(32,e),n=m(t);return(0,i.wipe)(t),n},t.Tc=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.length!==t.Xx)throw new Error("X25519: incorrect secret key length");if(n.length!==t.Xx)throw new Error("X25519: incorrect public key length");const i=p(e,n);if(r){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw new Error("X25519: invalid shared key")}return i}},34547:(e,t,n)=>{"use strict";function r(){let e=()=>{},t=()=>{};return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}n.d(t,{Y:()=>r})},34632:(e,t,n)=>{var r=n(81840);e.exports=p,e.exports.parse=a,e.exports.compile=function(e,t){return l(a(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,r=[],a=0,s=0,l="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],h=n[1],f=n.index;if(l+=e.slice(s,f),s=f+d.length,h)l+=h[1];else{var p=e[s],g=n[2],m=n[3],y=n[4],b=n[5],v=n[6],x=n[7];l&&(r.push(l),l="");var w=null!=g&&null!=p&&p!==g,k="+"===v||"*"===v,A="?"===v||"*"===v,E=g||c,S=y||b,P=g||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:m||a++,prefix:g||"",delimiter:E,optional:A,repeat:k,partial:w,asterisk:!!x,pattern:S?u(S):x?".*":o(E,P)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function o(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",h(t)));return function(t,i){for(var a="",o=t||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,h=o[u.name];if(null==h){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(d=l(h[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(h),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function h(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,a=!1!==n.end,o="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)o+=c(l);else{var u=c(l.prefix),f="(?:"+l.pattern+")";t.push(l),l.repeat&&(f+="(?:"+u+f+")*"),o+=f=l.optional?l.partial?u+"("+f+")?":"(?:"+u+"("+f+"))?":u+"("+f+")"}}var p=c(n.delimiter||"/"),g=o.slice(-p.length)===p;
2return i||(o=(g?o.slice(0,-p.length):o)+"(?:"+p+"(?=$))?"),o+=a?"$":i&&g?"":"(?="+p+"|$)",d(new RegExp("^"+o,h(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return d(new RegExp("(?:"+r.join("|")+")",h(n)),t)}(e,t,n):function(e,t,n){return f(a(e,n),t,n)}(e,t,n)}},34648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const r=n(85339);function i(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function a(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(a(e))})),t.length<=55)return t.unshift(192+t.length),t;const n=i(t.length);return n.unshift(247+n.length),n.concat(t)}const t=Array.prototype.slice.call((0,r.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const n=i(t.length);return n.unshift(183+n.length),n.concat(t)}const o="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const n of a(e))t+=o[n>>4],t+=o[15&n];return t}},34959:(e,t,n)=>{"use strict";var r=n(14272),i=n(28057),a=n(15332),o=n(49831)("toStringTag"),s=Object,l="Arguments"===a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),o))?n:l?a(t):"Object"===(r=a(t))&&i(t.callee)?"Arguments":r}},34960:e=>{"use strict";e.exports=Math.abs},35550:(e,t,n)=>{"use strict";var r=n(93175);e.exports=function(){return r()&&!!Symbol.toStringTag}},35639:e=>{e.exports=function(e){return function(t){return e(t)}}},35815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!==typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let n=0;n<t.length;n+=65536)this._crypto.getRandomValues(t.subarray(n,n+Math.min(t.length-n,65536)));return t}}},36014:(e,t,n)=>{var r=n(54008),i=n(3414);e.exports=function(e){return i(r(e).toLowerCase())}},36026:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});const r="2.29.1";let i={getDocsUrl:e=>{let{docsBaseUrl:t,docsPath:n="",docsSlug:r}=e;return n?`${null!==t&&void 0!==t?t:"https://viem.sh"}${n}${r?`#${r}`:""}`:void 0},version:`viem@${r}`};class a extends Error{constructor(e){var t,n,o;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=s.cause instanceof a?s.cause.details:null!==(c=s.cause)&&void 0!==c&&c.message?s.cause.message:s.details;var c;const u=s.cause instanceof a&&s.cause.docsPath||s.docsPath,d=null===(t=(n=i).getDocsUrl)||void 0===t?void 0:t.call(n,{...s,docsPath:u});super([e||"An error occurred.","",...s.metaMessages?[...s.metaMessages,""]:[],...d?[`Docs: ${d}`]:[],...l?[`Details: ${l}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),s.cause?{cause:s.cause}:void 0),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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=l,this.docsPath=u,this.metaMessages=s.metaMessages,this.name=null!==(o=s.name)&&void 0!==o?o:this.name,this.shortMessage=e,this.version=r}walk(e){return o(this,e)}}function o(e,t){return null!==t&&void 0!==t&&t(e)?e:e&&"object"===typeof e&&"cause"in e&&void 0!==e.cause?o(e.cause,t):t?null:e}},36042:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(46566),i=n(95070);t.DIGEST_LENGTH=16;var a=function(){function e(e){this.digestLength=t.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 n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=e[4]|e[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var a=e[6]|e[7]<<8;this._r[3]=8191&(i>>>7|a<<9);var o=e[8]|e[9]<<8;this._r[4]=255&(a>>>4|o<<12),this._r[5]=o>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(o>>>14|s<<2);var l=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|l<<5);var c=e[14]|e[15]<<8;this._r[8]=8191&(l>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,i=this._h[0],a=this._h[1],o=this._h[2],s=this._h[3],l=this._h[4],c=this._h[5],u=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],g=this._r[1],m=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],x=this._r[6],w=this._r[7],k=this._r[8],A=this._r[9];n>=16;){var E=e[t+0]|e[t+1]<<8;i+=8191&E;var S=e[t+2]|e[t+3]<<8;a+=8191&(E>>>13|S<<3);var P=e[t+4]|e[t+5]<<8;o+=8191&(S>>>10|P<<6);var C=e[t+6]|e[t+7]<<8;s+=8191&(P>>>7|C<<9);var O=e[t+8]|e[t+9]<<8;l+=8191&(C>>>4|O<<12),c+=O>>>1&8191;var T=e[t+10]|e[t+11]<<8;u+=8191&(O>>>14|T<<2);var N=e[t+12]|e[t+13]<<8;d+=8191&(T>>>11|N<<5);var _=e[t+14]|e[t+15]<<8,I=0,R=I;R+=i*p,R+=a*(5*A),R+=o*(5*k),R+=s*(5*w),I=(R+=l*(5*x))>>>13,R&=8191,R+=c*(5*v),R+=u*(5*b),R+=d*(5*y),R+=(h+=8191&(N>>>8|_<<8))*(5*m);var M=I+=(R+=(f+=_>>>5|r)*(5*g))>>>13;M+=i*g,M+=a*p,M+=o*(5*A),M+=s*(5*k),I=(M+=l*(5*w))>>>13,M&=8191,M+=c*(5*x),M+=u*(5*v),M+=d*(5*b),M+=h*(5*y),I+=(M+=f*(5*m))>>>13,M&=8191;var j=I;j+=i*m,j+=a*g,j+=o*p,j+=s*(5*A),I=(j+=l*(5*k))>>>13,j&=8191,j+=c*(5*w),j+=u*(5*x),j+=d*(5*v),j+=h*(5*b);var L=I+=(j+=f*(5*y))>>>13;L+=i*y,L+=a*m,L+=o*g,L+=s*p,I=(L+=l*(5*A))>>>13,L&=8191,L+=c*(5*k),L+=u*(5*w),L+=d*(5*x),L+=h*(5*v);var B=I+=(L+=f*(5*b))>>>13;B+=i*b,B+=a*y,B+=o*m,B+=s*g,I=(B+=l*p)>>>13,B&=8191,B+=c*(5*A),B+=u*(5*k),B+=d*(5*w),B+=h*(5*x);var F=I+=(B+=f*(5*v))>>>13;F+=i*v,F+=a*b,F+=o*y,F+=s*m,I=(F+=l*g)>>>13,F&=8191,F+=c*p,F+=u*(5*A),F+=d*(5*k),F+=h*(5*w);var D=I+=(F+=f*(5*x))>>>13;D+=i*x,D+=a*v,D+=o*b,D+=s*y,I=(D+=l*m)>>>13,D&=8191,D+=c*g,D+=u*p,D+=d*(5*A),D+=h*(5*k);var U=I+=(D+=f*(5*w))>>>13;U+=i*w,U+=a*x,U+=o*v,U+=s*b,I=(U+=l*y)>>>13,U&=8191,U+=c*m,U+=u*g,U+=d*p,U+=h*(5*A);var z=I+=(U+=f*(5*k))>>>13;z+=i*k,z+=a*w,z+=o*x,z+=s*v,I=(z+=l*b)>>>13,z&=8191,z+=c*y,z+=u*m,z+=d*g,z+=h*p;var W=I+=(z+=f*(5*A))>>>13;W+=i*A,W+=a*k,W+=o*w,W+=s*x,I=(W+=l*v)>>>13,W&=8191,W+=c*b,W+=u*y,W+=d*m,W+=h*g,i=R=8191&(I=(I=((I+=(W+=f*p)>>>13)<<2)+I|0)+(R&=8191)|0),a=M+=I>>>=13,o=j&=8191,s=L&=8191,l=B&=8191,c=F&=8191,u=D&=8191,d=U&=8191,h=z&=8191,f=W&=8191,t+=16,n-=16}this._h[0]=i,this._h[1]=a,this._h[2]=o,this._h[3]=s,this._h[4]=l,this._h[5]=c,this._h[6]=u,this._h[7]=d,this._h[8]=h,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,i,a,o=new Uint16Array(10);if(this._leftover){for(a=this._leftover,this._buffer[a++]=1;a<16;a++)this._buffer[a]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,a=2;a<10;a++)this._h[a]+=n,n=this._h[a]>>>13,this._h[a]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,o[0]=this._h[0]+5,n=o[0]>>>13,o[0]&=8191,a=1;a<10;a++)o[a]=this._h[a]+n,n=o[a]>>>13,o[a]&=8191;for(o[9]-=8192,r=(1^n)-1,a=0;a<10;a++)o[a]&=r;for(r=~r,a=0;a<10;a++)this._h[a]=this._h[a]&r|o[a];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,a=1;a<8;a++)i=(this._h[a]+this._pad[a]|0)+(i>>>16)|0,this._h[a]=65535&i;return e[t+0]=this._h[0]>>>
20,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[n+i];if(r-=t,n+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(r>=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(i=0;i<r;i++)this._buffer[this._leftover+i]=e[n+i];this._leftover+=r}return this},e.prototype.digest=function(){if(this._finished)throw new Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return i.wipe(this._buffer),i.wipe(this._r),i.wipe(this._h),i.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=a,t.oneTimeAuth=function(e,t){var n=new a(e);n.update(t);var r=n.digest();return n.clean(),r},t.equal=function(e,n){return e.length===t.DIGEST_LENGTH&&n.length===t.DIGEST_LENGTH&&r.equal(e,n)}},36104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const r=n(82071);let i=!1;const a=function(e){return new Uint8Array((0,r.randomBytes)(e))};let o=a;function s(e){return o(e)}t.randomBytes=s,s._=a,s.lock=function(){i=!0},s.register=function(e){if(i)throw new Error("randomBytes is locked");o=e},Object.freeze(s)},36140:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284),i=n(63662),a=n(85501);function o(){o=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,a){var o=RegExp(e,r);return t.set(o,a||t.get(e)),(0,i.A)(o,n.prototype)}function s(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var a=0;void 0===e[i[a]]&&a+1<i.length;)a++;t[n]=e[i[a]]}return t}),Object.create(null))}return(0,a.A)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=s(n,this);var r=n.indices;r&&(r.groups=s(r,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var a=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)(>|$)/g,(function(e,t,n){if(""===n)return e;var r=a[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""})))}if("function"==typeof i){var o=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,r.A)(e[e.length-1])&&(e=[].slice.call(e)).push(s(e,o)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},o.apply(this,arguments)}},36669:(e,t,n)=>{var r=n(54467),i=n(62274),a=n(69757);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},36712:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>a,NV:()=>o,ii:()=>i});var r=n(36026);class i extends r.C{constructor(e){let{offset:t,position:n,size:r}=e;super(`Slice ${"start"===n?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class a extends r.C{constructor(e){let{size:t,targetSize:n,type:r}=e;super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends r.C{constructor(e){let{size:t,targetSize:n,type:r}=e;super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}}},36978:function(e,t,n){"use strict";var r,i,a,o,s=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},l=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};
2Object.defineProperty(t,"__esModule",{value:!0}),t.CFB=void 0;const c=n(94546);class u extends c.ModeOfOperation{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(super("CFB",e,u),r.add(this),i.set(this,void 0),a.set(this,void 0),!Number.isInteger(n)||n%8)throw new TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:n}}),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");s(this,i,new Uint8Array(t),"f")}else s(this,i,new Uint8Array(16),"f");s(this,a,this.iv,"f")}get iv(){return new Uint8Array(l(this,i,"f"))}encrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");const t=this.segmentSize/8,n=new Uint8Array(e);for(let i=0;i<n.length;i+=t){const e=this.aes.encrypt(l(this,a,"f"));for(let r=0;r<t;r++)n[i+r]^=e[r];l(this,r,"m",o).call(this,n.subarray(i))}return n}decrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");const t=this.segmentSize/8,n=new Uint8Array(e);for(let i=0;i<n.length;i+=t){const s=this.aes.encrypt(l(this,a,"f"));for(let e=0;e<t;e++)n[i+e]^=s[e];l(this,r,"m",o).call(this,e.subarray(i))}return n}}t.CFB=u,i=new WeakMap,a=new WeakMap,r=new WeakSet,o=function(e){const t=this.segmentSize/8;l(this,a,"f").set(l(this,a,"f").subarray(t)),l(this,a,"f").set(e.subarray(0,t),16-t)}},37036:(e,t,n)=>{"use strict";var r=n(74971);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
2;return n.PropTypes=n,n}},37088:(e,t,n)=>{var r=n(81756);e.exports=function(e,t,n){return e.set(r(e,t),n),n},e.exports.__esModule=!0,e.exports.default=e.exports},37277:e=>{"use strict";e.exports=TypeError},37375:(e,t,n)=>{"use strict";var r,i=n(66954),a=n(86953),o=n(63123),s=n(23780),l=n(68768),c=n(57430),u=n(37277),d=n(91619),h=n(34960),f=n(98974),p=n(72938),g=n(16516),m=n(15158),y=n(27856),b=n(18707),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(t){}},w=n(24553),k=n(96709),A=function(){throw new u},E=w?function(){try{return A}catch(e){try{return w(arguments,"callee").get}catch(t){return A}}}():A,S=n(90757)(),P=n(6054),C=n(45266),O=n(16298),T=n(31264),N=n(97858),_={},I="undefined"!==typeof Uint8Array&&P?P(Uint8Array):r,R={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":S&&P?P([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"===typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":_,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":S&&P?P(P([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&S&&P?P((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&S&&P?P((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&P?P(""[Symbol.iterator]()):r,"%Symbol%":S?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":I,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":T,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":C,"%Math.abs%":h,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":m,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":O};if(P)try{null.error}catch(q){var M=P(P(q));R["%Error.prototype%"]=M}var j=function e(t){var n;if("%AsyncFunction%"===t)n=x("async function () {}");else if("%GeneratorFunction%"===t)n=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=x("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&P&&(n=P(i.prototype))}return R[t]=n,n},L={__proto__:null,"%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"]},B=n(76989),F=n(42155),D=B.call(N,Array.prototype.concat),U=B.call(T,Array.prototype.splice),z=B.call(N,String.prototype.replace),W=B.call(N,String.prototype.slice),H=B.call(N,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,Y=function(e,t){var n,r=e;if(F(L,r)&&(r="%"+(n=L[r])[0]+"%"),F(R,r)){var i=R[r];if(i===_&&(i=j(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=W(e,0,1),n=W(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,V,(function(e,t,n,i){r[r.length]=n?z(i,G,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=Y("%"+r+"%",t),a=i.name,o=i.value,s=!1,l=i.alias;l&&(r=l[0],U(n,D([0,1],l)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],p=W(f,0,1),g=W(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==f&&h||(s=!0),F(R,a="%"+(r+="."+f)+"%"))o=R[a];
2else if(null!=o){if(!(f in o)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=n.length){var m=w(o,f);o=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:o[f]}else h=F(o,f),o=o[f];h&&!s&&(R[a]=o)}}return o}},37405:(e,t,n)=>{var r=n(44102),i=n(24578),a=n(12279),o=n(6794),s=n(97059),l=n(71641),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&i(e),d=!n&&!u&&o(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},37462:(e,t,n)=>{var r=n(82161),i=n(25112),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},38183:(e,t,n)=>{var r=n(22022),i=n(5776),a=n(39248),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},38259:(e,t,n)=>{"use strict";var r=n(37375),i=n(29411),a=n(47734)(),o=n(24553),s=n(37277),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(a?i(e,"length",t,!0,!0):i(e,"length",t)),e}},38345:(e,t,n)=>{"use strict";var r=n(9950),i=n(75340);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function g(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInl
2ine readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=M&&e[M]||e["@@iterator"])?e:null}var L,B=Object.assign;function F(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var D=!1;function U(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case A:return"Fragment";case k:return"Portal";case S:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)}
vendor: 31,559 bytes, line 2
2,set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ae(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ae=null,Ee=null;function Se(e){if(e=vi(e)){if("function"!==typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=wi(t),ke(e.stateNode,e.type,t))}}function Pe(e){Ae?Ee?Ee.push(e):Ee=[e]:Ae=e}function Ce(){if(Ae){var e=Ae,t=Ee;if(Ee=Ae=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Oe(e,t){return e(t)}function Te(){}var Ne=!1;function _e(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Oe(e,t,n)}finally{Ne=!1,(null!==Ae||null!==Ee)&&(Te(),Ce())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Re=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ue){Re=!1}function je(e,t,n,r,i,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Le=!1,Be=null,Fe=!1,De=null,Ue={onError:function(e){Le=!0,Be=e}};function ze(e,t,n,r,i,a,o,s,l){Le=!1,Be=null,je.apply(Ue,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(We(e)!==e)throw Error(a(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ve(i),e;if(o===r)return Ve(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Xe=i.unstable_cancelCallback,$e=i.unstable_shouldYield,Ke=i.unstable_requestPaint,Qe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=dt(s):0!==(a&=o)&&(r=dt(a))}else 0!==(o=n&~i)?r=dt(o):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var vt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,kt,At,Et,St,Pt=!1,Ct=[],Ot=null,Tt=null,Nt=null,_t=new Map,It=new Map,Rt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Lt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=vi(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Bt(e){var t=bi(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void St(e.priority,(function(){At(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=vi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Dt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Pt=!1,null!==Ot&&Ft(Ot)&&(Ot=null),null!==Tt&&Ft(Tt)&&(Tt=null),null!==Nt&&Ft(Nt)&&(Nt=null),_t.forEach(Dt),It.forEach(Dt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Wt(e){function t(t){return zt(t,e)}if(0<Ct.length){zt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&zt(Ot,e),null!==Tt&&zt(Tt,e),null!==Nt&&zt(Nt,e),_t.forEach(t),It.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Rt.shift()}var Ht=x.ReactCurrentBatchConfig,Vt=!0;function Gt(e,t,n,r){var i=vt,a=Ht.transition;Ht.transition=null;try{vt=1,qt(e,t,n,r)}finally{vt=i,Ht.transition=a}}function Yt(e,t,n,r){var i=vt,a=Ht.transition;Ht.transition=null;try{vt=4,qt(e,t,n,r)}finally{vt=i,Ht.transition=a}}function qt(e,t,n,r){if(Vt){var i=$t(e,t,n,r);if(null===i)Vr(e,t,r,Xt,n),jt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ot=Lt(Ot,e,t,n,r,i),!0;case"dragenter":return Tt=Lt(Tt,e,t,n,r,i),!0;case"mouseover":return Nt=Lt(Nt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return _t.set(a,Lt(_t.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,It.set(a,Lt(It.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==i;){var a=vi(i);if(null!==a&&wt(a),null===(a=$t(e,t,n,r))&&Vr(e,t,r,Xt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Xt=null;function $t(e,t,n,r){if(Xt=null,null!==(e=bi(e=we(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Qt?Qt.value:Qt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=B({},cn,{view:0,detail:0}),hn=an(dn),fn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=an(fn),gn=an(B({},fn,{dataTransfer:0})),mn=an(B({},dn,{relatedTarget:0})),yn=an(B({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=B({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),xn=an(B({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function Sn(){return En}var Pn=B({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(Pn),On=an(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=an(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Nn=an(B({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=B({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=an(_n),Rn=[9,13,27,32],Mn=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Ln=u&&"TextEvent"in window&&!jn,Bn=u&&(!Mn||jn&&8<jn&&11>=jn),Fn=String.fromCharCode(32),Dn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Gn(e,t,n,r){Pe(r),0<(t=Yr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,qn=null;function Xn(e){Fr(e,0)}function $n(e){if(q(xi(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Yn&&(Yn.detachEvent("onpropertychange",nr),qn=Yn=null)}function nr(e){if("value"===e.propertyName&&$n(qn)){var t=[];Gn(t,qn,e,we(e)),_e(Xn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Yn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(qn)}function ar(e,t){if("click"===e)return $n(t)}function or(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=ur(n,a);var o=ur(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,br=null,vr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==mr||mr!==X(r)||("selectionStart"in(r=mr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Yr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Ar={},Er={};function Sr(e){if(Ar[e])return Ar[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Ar[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Pr=Sr("animationend"),Cr=Sr("animationiteration"),Or=Sr("animationstart"),Tr=Sr("transitionend"),Nr=new Map,_r="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Nr.set(e,t),l(t,[e])}for(var Rr=0;Rr<_r.length;Rr++){var Mr=_r[Rr];Ir(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Ir(Pr,"onAnimationEnd"),Ir(Cr,"onAnimationIteration"),Ir(Or,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,c){if(ze.apply(this,arguments),Le){if(!Le)throw Error(a(198));var u=Be;Le=!1,Be=null,Fe||(Fe=!0,De=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Br(i,s,c),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Br(i,s,c),a=l}}}if(Fe)throw e=De,Fe=!1,De=null,e}function Dr(e,t){var n=t[gi];void 0===n&&(n=t[gi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[zr]){e[zr]=!0,o.forEach((function(t){"selectionchange"!==t&&(Lr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Kt(t)){case 1:var i=Gt;break;case 4:i=Yt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=bi(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}_e((function(){var r=a,i=we(n),o=[];e:{var s=Nr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Pr:case Cr:case Or:l=yn;break;case Tr:l=Nn;break;case"scroll":l=hn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=r;null!==p;){var g=(f=p).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==h&&(null!=(g=Ie(p,h))&&u.push(Gr(p,g,f)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),o.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!bi(c)&&!c[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bi(c):null)&&(c!==(d=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,g="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,g="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:xi(l),f=null==c?s:xi(c),(s=new u(g,p+"leave",l,n,i)).target=d,s.relatedTarget=f,g=null,bi(i)===r&&((u=new u(h,p+"enter",c,n,i)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(h=c,p=0,f=u=l;f;f=qr(f))p++;for(f=0,g=h;g;g=qr(g))f++;for(;0<p-f;)u=qr(u),p--;for(;0<f-p;)h=qr(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=qr(u),h=qr(h)}u=null}else u=null;null!==l&&Xr(o,s,l,u,!1),null!==c&&null!==d&&Xr(o,d,c,u,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Kn;else if(Vn(s))if(Qn)m=or;else{m=ir;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);
vendor: 1,499 bytes, line 2
2switch(m&&(m=m(e,r))?Gn(o,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?xi(r):window,e){case"focusin":(Vn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,br=null);break;case"focusout":br=yr=mr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,xr(o,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(o,n,i)}var b;if(Mn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Wn?Un(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Bn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Wn&&(b=en()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Wn=!0)),0<(y=Yr(r,v)).length&&(v=new xn(v,e,null,n,i),o.push({event:v,listeners:y}),b?v.data=b:null!==(b=zn(n))&&(v.data=b))),(b=Ln?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Mn&&Un(e,t)?(e=en(),Zt=Jt=Qt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;
vendor: 84,714 bytes, line 2
2case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Yr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=b))}Fr(o,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ie(e,n))&&r.unshift(Gr(e,a,i)),null!=(a=Ie(e,t))&&r.push(Gr(e,a,i))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ie(n,a))&&o.unshift(Gr(n,l,s)):i||null!=(l=Ie(n,a))&&o.push(Gr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var $r=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace($r,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(a(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,oi="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Wt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,gi="__reactEvents$"+di,mi="__reactListeners$"+di,yi="__reactHandles$"+di;function bi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[hi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function vi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wi(e){return e[fi]||null}var ki=[],Ai=-1;function Ei(e){return{current:e}}function Si(e){0>Ai||(e.current=ki[Ai],ki[Ai]=null,Ai--)}function Pi(e,t){Ai++,ki[Ai]=e.current,e.current=t}var Ci={},Oi=Ei(Ci),Ti=Ei(!1),Ni=Ci;function _i(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ii(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ri(){Si(Ti),Si(Oi)}function Mi(e,t,n){if(Oi.current!==Ci)throw Error(a(168));Pi(Oi,t),Pi(Ti,n)}function ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,H(e)||"Unknown",i));return B({},n,r)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Ni=Oi.current,Pi(Oi,e),Pi(Ti,Ti.current),!0}function Bi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ji(e,t,Ni),r.__reactInternalMemoizedMergedChildContext=e,Si(Ti),Si(Oi),Pi(Oi,e)):Si(Ti),Pi(Ti,n)}var Fi=null,Di=!1,Ui=!1;function zi(e){null===Fi?Fi=[e]:Fi.push(e)}function Wi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=vt;try{var n=Fi;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Di=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),qe(Ze,Wi),i}finally{vt=t,Ui=!1}}return null}var Hi=[],Vi=0,Gi=null,Yi=0,qi=[],Xi=0,$i=null,Ki=1,Qi="";function Ji(e,t){Hi[Vi++]=Yi,Hi[Vi++]=Gi,Gi=e,Yi=t}function Zi(e,t,n){qi[Xi++]=Ki,qi[Xi++]=Qi,qi[Xi++]=$i,$i=e;var r=Ki;e=Qi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ki=1<<32-ot(t)+i|n<<i|r,Qi=a+e}else Ki=1<<a|n<<i|r,Qi=e}function ea(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function ta(e){for(;e===Gi;)Gi=Hi[--Vi],Hi[Vi]=null,Yi=Hi[--Vi],Hi[Vi]=null;for(;e===$i;)$i=qi[--Xi],qi[Xi]=null,Qi=qi[--Xi],qi[Xi]=null,Ki=qi[--Xi],qi[Xi]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=_c(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$i?{id:Ki,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=_c(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function la(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ca(e){if(ia){var t=ra;if(t){var n=t;if(!sa(e,t)){if(la(e))throw Error(a(418));t=ci(n.nextSibling);var r=na;t&&sa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ia)return ua(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(la(e))throw ha(),Error(a(418));for(;t;)oa(e,t),t=ci(t.nextSibling)}if(ua(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ci(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ra;e;)e=ci(e.nextSibling)}function fa(){ra=na=null,ia=!1}function pa(e){null===aa?aa=[e]:aa.push(e)}var ga=x.ReactCurrentBatchConfig;function ma(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ya(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ba(e){return(0,e._init)(e._payload)}function va(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Bc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===A?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===I&&ba(a)===t.type)?((r=i(t,n.props)).ref=ma(e,t,n),r.return=e,r):((r=Mc(n.type,n.key,n.props,null,e.mode,r)).ref=ma(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=jc(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Bc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Mc(t.type,t.key,t.props,null,e.mode,n)).ref=ma(e,null,t),n.return=e,n;case k:return(t=Fc(t,e.mode,n)).return=e,t;case I:return h(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;ya(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(e,t,n,r):null;case k:return n.key===i?u(e,t,n,r):null;case I:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||j(n))return null!==i?null:d(e,t,n,r,null);ya(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case I:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,i,null);ya(t,r)}return null}function g(i,a,s,l){for(var c=null,u=null,d=a,g=a=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=f(i,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(i,d),a=o(y,a,g),null===u?c=y:u.sibling=y,u=y,d=m}if(g===s.length)return n(i,d),ia&&Ji(i,g),c;if(null===d){for(;g<s.length;g++)null!==(d=h(i,s[g],l))&&(a=o(d,a,g),null===u?c=d:u.sibling=d,u=d);return ia&&Ji(i,g),c}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=o(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(i,e)})),ia&&Ji(i,g),c}function m(i,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,g=s,m=s=0,y=null,b=l.next();null!==g&&!b.done;m++,b=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var v=f(i,g,b.value,c);if(null===v){null===g&&(g=y);break}e&&g&&null===v.alternate&&t(i,g),s=o(v,s,m),null===d?u=v:d.sibling=v,d=v,g=y}if(b.done)return n(i,g),ia&&Ji(i,m),u;if(null===g){for(;!b.done;m++,b=l.next())null!==(b=h(i,b.value,c))&&(s=o(b,s,m),null===d?u=b:d.sibling=b,d=b);return ia&&Ji(i,m),u}for(g=r(i,g);!b.done;m++,b=l.next())null!==(b=p(g,i,m,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),s=o(b,s,m),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach((function(e){return t(i,e)})),ia&&Ji(i,m),u}return function e(r,a,o,l){if("object"===typeof o&&null!==o&&o.type===A&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case w:e:{for(var c=o.key,u=a;null!==u;){if(u.key===c){if((c=o.type)===A){if(7===u.tag){n(r,u.sibling),(a=i(u,o.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&ba(c)===u.type){n(r,u.sibling),(a=i(u,o.props)).ref=ma(r,u,o),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}o.type===A?((a=jc(o.props.children,r.mode,l,o.key)).return=r,r=a):((l=Mc(o.type,o.key,o.props,null,r.mode,l)).ref=ma(r,a,o),l.return=r,r=l)}return s(r);case k:e:{for(u=o.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(o,r.mode,l)).return=r,r=a}return s(r);case I:return e(r,a,(u=o._init)(o._payload),l)}if(te(o))return g(r,a,o,l);if(j(o))return m(r,a,o,l);ya(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Bc(o,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var xa=va(!0),wa=va(!1),ka=Ei(null),Aa=null,Ea=null,Sa=null;function Pa(){Sa=Ea=Aa=null}function Ca(e){var t=ka.current;Si(ka),e._currentValue=t}function Oa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ta(e,t){Aa=e,Sa=Ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(vs=!0),e.firstContext=null)}function Na(e){var t=e._currentValue;if(Sa!==e)if(e={context:e,memoizedValue:t,next:null},null===Ea){if(null===Aa)throw Error(a(308));Ea=e,Aa.dependencies={lanes:0,firstContext:e}}else Ea=Ea.next=e;return t}var _a=null;function Ia(e){null===_a?_a=[e]:_a.push(e)}function Ra(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ia(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ma(e,r)}function Ma(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Ol)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ma(e,n)}return null===(i=r.interleaved)?(t.next=t,Ia(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ma(e,n)}function Ua(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wa(e,t,n,r){var i=e.updateQueue;ja=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===o?a=c:o.next=c,o=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=i.baseState;for(o=0,u=c=l=null,s=a;;){var h=s.lane,f=s.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(h=t,f=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=g.payload)?p.call(f,d,h):p)||void 0===h)break e;d=B({},d,h);break e;case 2:ja=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Ll|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var Va={},Ga=Ei(Va),Ya=Ei(Va),qa=Ei(Va);function Xa(e){if(e===Va)throw Error(a(174));return e}function $a(e,t){switch(Pi(qa,t),Pi(Ya,e),Pi(Ga,Va),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Si(Ga),Pi(Ga,t)}function Ka(){Si(Ga),Si(Ya),Si(qa)}function Qa(e){Xa(qa.current);var t=Xa(Ga.current),n=le(t,e.type);t!==n&&(Pi(Ya,e),Pi(Ga,n))}function Ja(e){Ya.current===e&&(Si(Ga),Si(Ya))}var Za=Ei(0);function eo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var to=[];function no(){for(var e=0;e<to.length;e++)to[e]._workInProgressVersionPrimary=null;to.length=0}var ro=x.ReactCurrentDispatcher,io=x.ReactCurrentBatchConfig,ao=0,oo=null,so=null,lo=null,co=!1,uo=!1,ho=0,fo=0;function po(){throw Error(a(321))}function go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function mo(e,t,n,r,i,o){if(ao=o,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ro.current=null===e||null===e.memoizedState?Zo:es,e=n(r,i),uo){o=0;do{if(uo=!1,ho=0,25<=o)throw Error(a(301));o+=1,lo=so=null,t.updateQueue=null,ro.current=ts,e=n(r,i)}while(uo)}if(ro.current=Jo,t=null!==so&&null!==so.next,ao=0,lo=so=oo=null,co=!1,t)throw Error(a(300));return e}function yo(){var e=0!==ho;return ho=0,e}function bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lo?oo.memoizedState=lo=e:lo=lo.next=e,lo}function vo(){if(null===so){var e=oo.alternate;e=null!==e?e.memoizedState:null}else e=so.next;var t=null===lo?oo.memoizedState:lo.next;if(null!==t)lo=t,so=e;else{if(null===e)throw Error(a(310));e={memoizedState:(so=e).memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},null===lo?oo.memoizedState=lo=e:lo=lo.next=e}return lo}function xo(e,t){return"function"===typeof t?t(e):t}function wo(e){var t=vo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=so,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,c=null,u=o;do{var d=u.lane;if((ao&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=r):c=c.next=h,oo.lanes|=d,Ll|=d}u=u.next}while(null!==u&&u!==o);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(vs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,oo.lanes|=o,Ll|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ko(e){var t=vo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sr(o,t.memoizedState)||(vs=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ao(){}function Eo(e,t){var n=oo,r=vo(),i=t(),o=!sr(r.memoizedState,i);if(o&&(r.memoizedState=i,vs=!0),r=r.queue,Lo(Co.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==lo&&1&lo.memoizedState.tag){if(n.flags|=2048,_o(9,Po.bind(null,n,r,i,t),void 0,null),null===Tl)throw Error(a(349));0!==(30&ao)||So(n,t,i)}return i}function So(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Po(e,t,n,r){t.value=n,t.getSnapshot=r,Oo(t)&&To(e)}function Co(e,t,n){return n((function(){Oo(t)&&To(e)}))}function Oo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function To(e){var t=Ma(e,1);null!==t&&nc(t,e,1,-1)}function No(e){var t=bo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:e},t.queue=e,e=e.dispatch=Xo.bind(null,oo,e),[t.memoizedState,e]}function _o(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oo.updateQueue)?(t={lastEffect:null,stores:null},oo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Io(){return vo().memoizedState}function Ro(e,t,n,r){var i=bo();oo.flags|=e,i.memoizedState=_o(1|t,n,void 0,void 0===r?null:r)}function Mo(e,t,n,r){var i=vo();r=void 0===r?null:r;var a=void 0;if(null!==so){var o=so.memoizedState;if(a=o.destroy,null!==r&&go(r,o.deps))return void(i.memoizedState=_o(t,n,a,r))}oo.flags|=e,i.memoizedState=_o(1|t,n,a,r)}function jo(e,t){return Ro(8390656,8,e,t)}function Lo(e,t){return Mo(2048,8,e,t)}function Bo(e,t){return Mo(4,2,e,t)}function Fo(e,t){return Mo(4,4,e,t)}function Do(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Uo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Mo(4,4,Do.bind(null,t,e),n)}function zo(){}function Wo(e,t){var n=vo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ho(e,t){var n=vo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vo(e,t,n){return 0===(21&ao)?(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),oo.lanes|=n,Ll|=n,e.baseState=!0),t)}function Go(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=io.transition;io.transition={};try{e(!1),t()}finally{vt=n,io.transition=r}}function Yo(){return vo().memoizedState}function qo(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$o(e))Ko(t,n);else if(null!==(n=Ra(e,t,n,r))){nc(n,e,r,ec()),Qo(n,t,r)}}function Xo(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($o(e))Ko(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,o)){var l=t.interleaved;return null===l?(i.next=i,Ia(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Ra(e,t,i,r))&&(nc(n,e,r,i=ec()),Qo(n,t,r))}}function $o(e){var t=e.alternate;return e===oo||null!==t&&t===oo}function Ko(e,t){uo=co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qo(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Jo={readContext:Na,useCallback:po,useContext:po,useEffect:po,useImperativeHandle:po,useInsertionEffect:po,useLayoutEffect:po,useMemo:po,useReducer:po,useRef:po,useState:po,useDebugValue:po,useDeferredValue:po,useTransition:po,useMutableSource:po,useSyncExternalStore:po,useId:po,unstable_isNewReconciler:!1},Zo={readContext:Na,useCallback:function(e,t){return bo().memoizedState=[e,void 0===t?null:t],e},useContext:Na,useEffect:jo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ro(4194308,4,Do.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ro(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ro(4,2,e,t)},useMemo:function(e,t){var n=bo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qo.bind(null,oo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bo().memoizedState=e},useState:No,useDebugValue:zo,useDeferredValue:function(e){return bo().memoizedState=e},useTransition:function(){var e=No(!1),t=e[0];return e=Go.bind(null,e[1]),bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oo,i=bo();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Tl)throw Error(a(349));0!==(30&ao)||So(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,jo(Co.bind(null,r,o,e),[e]),r.flags|=2048,_o(9,Po.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=bo(),t=Tl.identifierPrefix;if(ia){var n=Qi;t=":"+t+"R"+(n=(Ki&~(1<<32-ot(Ki)-1)).toString(32)+n),0<(n=ho++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Na,useCallback:Wo,useContext:Na,useEffect:Lo,useImperativeHandle:Uo,useInsertionEffect:Bo,useLayoutEffect:Fo,useMemo:Ho,useReducer:wo,useRef:Io,useState:function(){return wo(xo)},useDebugValue:zo,useDeferredValue:function(e){return Vo(vo(),so.memoizedState,e)},useTransition:function(){return[wo(xo)[0],vo().memoizedState]},useMutableSource:Ao,useSyncExternalStore:Eo,useId:Yo,unstable_isNewReconciler:!1},ts={readContext:Na,useCallback:Wo,useContext:Na,useEffect:Lo,useImperativeHandle:Uo,useInsertionEffect:Bo,useLayoutEffect:Fo,useMemo:Ho,useReducer:ko,useRef:Io,useState:function(){return ko(xo)},useDebugValue:zo,useDeferredValue:function(e){var t=vo();return null===so?t.memoizedState=e:Vo(t,so.memoizedState,e)},useTransition:function(){return[ko(xo)[0],vo().memoizedState]},useMutableSource:Ao,useSyncExternalStore:Eo,useId:Yo,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),a=Fa(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Da(e,a,i))&&(nc(t,e,i,r),Ua(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),a=Fa(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Da(e,a,i))&&(nc(t,e,i,r),Ua(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fa(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Da(e,i,r))&&(nc(t,e,r,n),Ua(t,e,r))}};function as(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,a))}function os(e,t,n){var r=!1,i=Ci,a=t.contextType;return"object"===typeof a&&null!==a?a=Na(a):(i=Ii(t)?Ni:Oi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?_i(e,i):Ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},La(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Na(a):(a=Ii(t)?Ni:Oi.current,i.context=_i(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(rs(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),Wa(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Fa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Gl=r),ds(0,t)},n}function ps(e,t,n){(n=Fa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fa(-1,1)).tag=2,Da(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=x.ReactCurrentOwner,vs=!1;function xs(e,t,n,r){t.child=null===e?wa(t,null,n,r):xa(t,e.child,n,r)}function ws(e,t,n,r,i){n=n.render;var a=t.ref;return Ta(t,i),r=mo(e,t,n,r,a,i),n=yo(),null===e||vs?(ia&&n&&ea(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function ks(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||Ic(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,As(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(o,r)&&e.ref===t.ref)return Vs(e,t,i)}return t.flags|=1,(e=Rc(a,r)).ref=t.ref,e.return=t,t.child=e}function As(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(lr(a,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,Vs(e,t,i);0!==(131072&e.flags)&&(vs=!0)}}return Ps(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pi(Rl,Il),Il|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pi(Rl,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Pi(Rl,Il),Il|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Pi(Rl,Il),Il|=r;return xs(e,t,i,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,i){var a=Ii(n)?Ni:Oi.current;return a=_i(t,a),Ta(t,i),n=mo(e,t,n,r,a,i),r=yo(),null===e||vs?(ia&&r&&ea(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function Cs(e,t,n,r,i){if(Ii(n)){var a=!0;Li(t)}else a=!1;if(Ta(t,i),null===t.stateNode)Hs(e,t),os(t,n,r),ls(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=Na(c):c=_i(t,c=Ii(n)?Ni:Oi.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;d||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,o,r,c),ja=!1;var h=t.memoizedState;o.state=h,Wa(t,r,o,i),l=t.memoizedState,s!==r||h!==l||Ti.current||ja?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=ja||as(t,n,s,r,h,l,c))?(d||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ba(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),o.props=c,d=t.pendingProps,h=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=Na(l):l=_i(t,l=Ii(n)?Ni:Oi.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,o,r,l),ja=!1,h=t.memoizedState,o.state=h,Wa(t,r,o,i);var p=t.memoizedState;s!==d||h!==p||Ti.current||ja?("function"===typeof f&&(rs(t,n,f,r),p=t.memoizedState),(c=ja||as(t,n,c,r,h,p,l)||!1)?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,a,i)}function Os(e,t,n,r,i,a){Ss(e,t);var o=0!==(128&t.flags);if(!r&&!o)return i&&Bi(t,n,!1),Vs(e,t,a);r=t.stateNode,bs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=xa(t,e.child,null,a),t.child=xa(t,null,s,a)):xs(e,t,s,a),t.memoizedState=r.state,i&&Bi(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?Mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mi(0,t.context,!1),$a(e,t.containerInfo)}function Ns(e,t,n,r,i){return fa(),pa(i),t.flags|=256,xs(e,t,n,r),t.child}var _s,Is,Rs,Ms,js={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bs(e,t,n){var r,i=t.pendingProps,o=Za.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Pi(Za,1&o),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Lc(l,i,0,null),e=jc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=js,e):Fs(t,l));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Ds(e,t,s,r=us(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Lc({mode:"visible",children:r.children},i,0,null),(o=jc(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&xa(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=js,o);if(0===(1&t.mode))return Ds(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Ds(e,t,s,r=us(o=Error(a(419)),r,void 0))}if(l=0!==(s&e.childLanes),vs||l){if(null!==(r=Tl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Ma(e,i),nc(r,e,i,-1))}return gc(),Ds(e,t,s,r=us(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=ci(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(qi[Xi++]=Ki,qi[Xi++]=Qi,qi[Xi++]=$i,Ki=e.id,Qi=e.overflow,$i=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,o,n);if(s){s=i.fallback,l=t.mode,r=(o=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Rc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=Rc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=Rc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ds(e,t,n,r){return null!==r&&pa(r),xa(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oa(e.return,t,n)}function zs(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Ws(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=Za.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Pi(Za,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===eo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===eo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,a);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Rc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Ii(t.type)&&Ri(),Ys(t),null;case 3:return r=t.stateNode,Ka(),Si(Ti),Si(Oi),no(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(oc(aa),aa=null))),Is(e,t),Ys(t),null;case 5:Ja(t);var i=Xa(qa.current);if(n=t.type,null!==e&&null!=t.stateNode)Rs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Ys(t),null}if(e=Xa(Ga.current),da(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[hi]=t,r[fi]=o,e=0!==(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(i=0;i<jr.length;i++)Dr(jr[i],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":K(r,o),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Dr("invalid",r);break;case"textarea":ie(r,o),Dr("invalid",r)}for(var l in be(n,o),i=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==o.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Dr("scroll",r)}switch(n){case"input":Y(r),Z(r,o,!0);break;case"textarea":Y(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[fi]=r,_s(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),i=r;break;case"iframe":case"object":case"embed":Dr("load",e),i=r;break;case"video":case"audio":for(i=0;i<jr.length;i++)Dr(jr[i],e);i=r;break;case"source":Dr("error",e),i=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),i=r;break;case"details":Dr("toggle",e),i=r;break;case"input":K(e,r),i=$(e,r),Dr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Dr("invalid",e)}for(o in be(n,i),c=i)if(c.hasOwnProperty(o)){var u=c[o];"style"===o?me(e,u):"dangerouslySetInnerHTML"===o?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===o?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=u&&"onScroll"===o&&Dr("scroll",e):null!=u&&v(e,o,u,l))}switch(n){case"input":Y(e),Z(e,r,!1);break;case"textarea":Y(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=Xa(qa.current),Xa(Ga.current),da(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Ys(t),null;case 13:if(Si(Za),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&0!==(1&t.mode)&&0===(128&t.flags))ha(),fa(),t.flags|=98560,o=!1;else if(o=da(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[hi]=t}else fa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),o=!1}else null!==aa&&(oc(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&Za.current)?0===Ml&&(Ml=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return Ka(),Is(e,t),null===e&&Wr(t.stateNode.containerInfo),Ys(t),null;case 10:return Ca(t.type._context),Ys(t),null;case 19:if(Si(Za),null===(o=t.memoizedState))return Ys(t),null;if(r=0!==(128&t.flags),null===(l=o.rendering))if(r)Gs(o,!1);else{if(0!==Ml||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=eo(e))){for(t.flags|=128,Gs(o,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pi(Za,1&Za.current|2),t.child}e=e.sibling}null!==o.tail&&Qe()>Wl&&(t.flags|=128,r=!0,Gs(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=eo(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ia)return Ys(t),null}else 2*Qe()-o.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,Gs(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Qe(),t.sibling=null,n=Za.current,Pi(Za,r?1&n|2:1&n),t):(Ys(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Il)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Xs(e,t){switch(ta(t),t.tag){case 1:return Ii(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ka(),Si(Ti),Si(Oi),no(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(Si(Za),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));fa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(Za),null;case 4:return Ka(),null;case 10:return Ca(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}_s=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(){},Rs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Xa(Ga.current);var a,o=null;switch(n){case"input":i=$(e,i),r=$(e,r),o=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(u in be(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(o=o||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(o=o||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Dr("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Ms=function(e,t,n,r){n!==r&&(t.flags|=4)};var $s=!1,Ks=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&el(t,n,a)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[gi],delete t[mi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ks||Zs(n,t);case 6:var r=ul,i=dl;ul=null,hl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Wt(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,hl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!==(2&a)||0!==(4&a))&&el(n,t,o),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Ks&&(Zs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ec(n,t,s)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,hl(e,t,n),Ks=r):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));fl(o,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Ec(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(m){Ec(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Ec(e,e.return,m)}}break;case 1:gl(t,e),yl(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(gl(t,e),yl(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(m){Ec(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===o.type&&null!=o.name&&Q(i,o),ve(l,s);var u=ve(l,o);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?me(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):v(i,d,h,u)}switch(l){case"input":J(i,o);break;case"textarea":ae(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?ne(i,!!o.multiple,p,!1):f!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[fi]=o}catch(m){Ec(e,e.return,m)}}break;case 6:if(gl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){Ec(e,e.return,m)}}break;case 3:if(gl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(m){Ec(e,e.return,m)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(zl=Qe())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,gl(t,e),Ks=u):gl(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Zs(f,f.return);var g=f.stateNode;if("function"===typeof g.componentWillUnmount){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Ec(r,n,m)}}break;case 5:Zs(f,f.return);break;case 22:if(null!==f.memoizedState){wl(h);continue}}null!==p?(p.return=f,Js=p):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"===typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=h.stateNode,s=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(m){Ec(e,e.return,m)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Ec(e,e.return,m)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),yl(e),4&r&&pl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(a(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,vl(e,t,n)}function vl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||$s;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=$s;var c=Ks;if($s=o,(Ks=l)&&!c)for(Js=i;null!==Js;)l=(o=Js).child,22===o.tag&&null!==o.memoizedState?kl(i):null!==l?(l.return=o,Js=l):kl(i);for(;null!==a;)Js=a,vl(a,t,n),a=a.sibling;Js=i,$s=s,Ks=c}xl(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,Js=a):xl(e)}}function xl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Ha(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ha(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Wt(h)}}}break;default:throw Error(a(163))}Ks||512&t.flags&&il(t)}catch(f){Ec(t,t.return,f)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ec(t,i,l)}}var a=t.return;try{il(t)}catch(l){Ec(t,a,l)}break;case 5:var o=t.return;try{il(t)}catch(l){Ec(t,o,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Al,El=Math.ceil,Sl=x.ReactCurrentDispatcher,Pl=x.ReactCurrentOwner,Cl=x.ReactCurrentBatchConfig,Ol=0,Tl=null,Nl=null,_l=0,Il=0,Rl=Ei(0),Ml=0,jl=null,Ll=0,Bl=0,Fl=0,Dl=null,Ul=null,zl=0,Wl=1/0,Hl=null,Vl=!1,Gl=null,Yl=null,ql=!1,Xl=null,$l=0,Kl=0,Ql=null,Jl=-1,Zl=0;function ec(){return 0!==(6&Ol)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Ol)&&0!==_l?_l&-_l:null!==ga.transition?(0===Zl&&(Zl=gt()),Zl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nc(e,t,n,r){if(50<Kl)throw Kl=0,Ql=null,Error(a(185));yt(e,n,r),0!==(2&Ol)&&e===Tl||(e===Tl&&(0===(2&Ol)&&(Bl|=n),4===Ml&&sc(e,_l)),rc(e,r),1===n&&0===Ol&&0===(1&t.mode)&&(Wl=Qe()+500,Di&&Wi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,l=i[o];-1===l?0!==(s&n)&&0===(s&r)||(i[o]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=ht(e,e===Tl?_l:0);if(0===r)null!==n&&Xe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Xe(n),1===t)0===e.tag?function(e){Di=!0,zi(e)}(lc.bind(null,e)):zi(lc.bind(null,e)),oi((function(){0===(6&Ol)&&Wi()})),n=null;else{switch(xt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Zl=0,0!==(6&Ol))throw Error(a(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=ht(e,e===Tl?_l:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var i=Ol;Ol|=2;var o=pc();for(Tl===e&&_l===t||(Hl=null,Wl=Qe()+500,hc(e,t));;)try{bc();break}catch(l){fc(e,l)}Pa(),Sl.current=o,Ol=i,null!==Nl?t=0:(Tl=null,_l=0,t=Ml)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ac(e,i))),1===t)throw n=jl,hc(e,0),sc(e,r),rc(e,Qe()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!sr(a(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=mc(e,r))&&(0!==(o=pt(e))&&(r=o,t=ac(e,o))),1===t))throw n=jl,hc(e,0),sc(e,r),rc(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:wc(e,Ul,Hl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Qe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(wc.bind(null,e,Ul,Hl),t);break}wc(e,Ul,Hl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ri(wc.bind(null,e,Ul,Hl),r);break}wc(e,Ul,Hl);break;default:throw Error(a(329))}}}return rc(e,Qe()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=Dl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Ul,Ul=n,null!==t&&oc(t)),e}function oc(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function sc(e,t){for(t&=~Fl,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Ol))throw Error(a(327));kc();var t=ht(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=jl,hc(e,0),sc(e,t),rc(e,Qe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Ul,Hl),rc(e,Qe()),null}function cc(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Wl=Qe()+500,Di&&Wi())}}function uc(e){null!==Xl&&0===Xl.tag&&0===(6&Ol)&&kc();var t=Ol;Ol|=1;var n=Cl.transition,r=vt;try{if(Cl.transition=null,vt=1,e)return e()}finally{vt=r,Cl.transition=n,0===(6&(Ol=t))&&Wi()}}function dc(){Il=Rl.current,Si(Rl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ri();break;case 3:Ka(),Si(Ti),Si(Oi),no();break;case 5:Ja(r);break;case 4:Ka();break;case 13:case 19:Si(Za);break;case 10:Ca(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Tl=e,Nl=e=Rc(e.current,null),_l=Il=t,Ml=0,jl=null,Fl=Bl=Ll=0,Ul=Dl=null,null!==_a){for(t=0;t<_a.length;t++)if(null!==(r=(n=_a[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}_a=null}return e}function fc(e,t){for(;;){var n=Nl;try{if(Pa(),ro.current=Jo,co){for(var r=oo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}co=!1}if(ao=0,lo=so=oo=null,uo=!1,ho=0,Pl.current=null,null===n||null===n.return){Ml=1,jl=t,Nl=null;break}e:{var o=e,s=n.return,l=n,c=t;if(t=_l,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&gs(o,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){gs(o,u,t),gc();break e}c=Error(a(426))}else if(ia&&1&l.mode){var y=ms(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),ys(y,s,l,0,t),pa(cs(c,l));break e}}o=c=cs(c,l),4!==Ml&&(Ml=2),null===Dl?Dl=[o]:Dl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,za(o,fs(0,c,t));break e;case 1:l=c;var b=o.type,v=o.stateNode;if(0===(128&o.flags)&&("function"===typeof b.getDerivedStateFromError||null!==v&&"function"===typeof v.componentDidCatch&&(null===Yl||!Yl.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,za(o,ps(o,l,t));break e}}o=o.return}while(null!==o)}xc(n)}catch(x){t=x,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function pc(){var e=Sl.current;return Sl.current=Jo,null===e?Jo:e}function gc(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Tl||0===(268435455&Ll)&&0===(268435455&Bl)||sc(Tl,_l)}function mc(e,t){var n=Ol;Ol|=2;var r=pc();for(Tl===e&&_l===t||(Hl=null,hc(e,t));;)try{yc();break}catch(i){fc(e,i)}if(Pa(),Ol=n,Sl.current=r,null!==Nl)throw Error(a(261));return Tl=null,_l=0,Ml}function yc(){for(;null!==Nl;)vc(Nl)}function bc(){for(;null!==Nl&&!$e();)vc(Nl)}function vc(e){var t=Al(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?xc(e):Nl=t,Pl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,Il)))return void(Nl=n)}else{if(null!==(n=Xs(n,t)))return n.flags&=32767,void(Nl=n);if(null===e)return Ml=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Ml&&(Ml=5)}function wc(e,t,n){var r=vt,i=Cl.transition;try{Cl.transition=null,vt=1,function(e,t,n,r){do{kc()}while(null!==Xl);if(0!==(6&Ol))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===Tl&&(Nl=Tl=null,_l=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Tc(tt,(function(){return kc(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Cl.transition,Cl.transition=null;var s=vt;vt=1;var l=Ol;Ol|=4,Pl.current=null,function(e,t){if(ei=Vt,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=s+i),h!==o||0!==r&&3!==h.nodeType||(c=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===i&&(l=s),f===o&&++d===r&&(c=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Vt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),y);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(w){Ec(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=tl,tl=!1}(e,n),ml(n,e),pr(ti),Vt=!!ei,ti=ei=null,e.current=n,bl(n,e,i),Ke(),Ol=l,vt=s,Cl.transition=o}else e.current=n;if(ql&&(ql=!1,Xl=e,$l=i),o=e.pendingLanes,0===o&&(Yl=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vl)throw Vl=!1,e=Gl,Gl=null,e;0!==(1&$l)&&0!==e.tag&&kc(),o=e.pendingLanes,0!==(1&o)?e===Ql?Kl++:(Kl=0,Ql=e):Kl=0,Wi()}(e,t,n,r)}finally{Cl.transition=i,vt=r}return null}function kc(){if(null!==Xl){var e=xt($l),t=Cl.transition,n=vt;try{if(Cl.transition=null,vt=16>e?16:e,null===Xl)var r=!1;else{if(e=Xl,Xl=null,$l=0,0!==(6&Ol))throw Error(a(331));var i=Ol;for(Ol|=4,Js=e.current;null!==Js;){var o=Js,s=o.child;if(0!==(16&Js.flags)){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(al(d),d===u){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var g=o.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Js=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Js=s;else e:for(;null!==Js;){if(0!==(2048&(o=Js).flags))switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var b=o.sibling;if(null!==b){b.return=o.return,Js=b;break e}Js=o.return}}var v=e.current;for(Js=v;null!==Js;){var x=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Js=x;else e:for(s=v;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(k){Ec(l,l.return,k)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Ol=i,Wi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(k){}r=!0}return r}finally{vt=n,Cl.transition=t}}return!1}function Ac(e,t,n){e=Da(e,t=fs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(yt(e,1,t),rc(e,t))}function Ec(e,t,n){if(3===e.tag)Ac(e,e,n);else for(;null!==t;){if(3===t.tag){Ac(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){t=Da(t,e=ps(t,e=cs(n,e),1),1),e=ec(),null!==t&&(yt(t,1,e),rc(t,e));break}}t=t.return}}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(_l&n)===n&&(4===Ml||3===Ml&&(130023424&_l)===_l&&500>Qe()-zl?hc(e,0):Fl|=n),rc(e,t)}function Pc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ma(e,t))&&(yt(e,t,n),rc(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(e,n)}function Oc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Pc(e,n)}function Tc(e,t){return qe(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _c(e,t,n,r){return new Nc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var n=e.alternate;return null===n?((n=_c(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mc(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Ic(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case A:return jc(n.children,i,o,t);case E:s=8,i|=8;break;case S:return(e=_c(12,n,t,2|i)).elementType=S,e.lanes=o,e;case T:return(e=_c(13,n,t,i)).elementType=T,e.lanes=o,e;case N:return(e=_c(19,n,t,i)).elementType=N,e.lanes=o,e;case R:return Lc(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:s=10;break e;case C:s=9;break e;case O:s=11;break e;case _:s=14;break e;case I:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=_c(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function jc(e,t,n,r){return(e=_c(7,e,r,t)).lanes=n,e}function Lc(e,t,n,r){return(e=_c(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Bc(e,t,n){return(e=_c(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=_c(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,i,a,o,s,l){return e=new Dc(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=_c(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},La(a),e}function zc(e){if(!e)return Ci;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ii(n))return ji(e,n,t)}return t}function Wc(e,t,n,r,i,a,o,s,l){return(e=Uc(n,r,!0,e,0,a,0,s,l)).context=zc(null),n=e.current,(a=Fa(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Da(n,a,i),e.current.lanes=i,yt(e,i,r),rc(e,r),e}function Hc(e,t,n,r){var i=t.current,a=ec(),o=tc(i);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fa(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Da(i,t,o))&&(nc(e,i,o,a),Ua(e,i,o)),o}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}Al=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)vs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),fa();break;case 5:Qa(t);break;case 1:Ii(t.type)&&Li(t);break;case 4:$a(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Pi(ka,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Pi(Za,1&Za.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Bs(e,t,n):(Pi(Za,1&Za.current),null!==(e=Vs(e,t,n))?e.sibling:null);Pi(Za,1&Za.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Pi(Za,Za.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Vs(e,t,n)}(e,t,n);vs=0!==(131072&e.flags)}else vs=!1,ia&&0!==(1048576&t.flags)&&Zi(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=_i(t,Oi.current);Ta(t,n),i=mo(null,t,r,e,i,n);var o=yo();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ii(r)?(o=!0,Li(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,La(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=Os(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Ic(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===O)return 11;if(e===_)return 14}return 2}(r),e=ns(r,e),i){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=Cs(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=ks(null,t,r,ns(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ps(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 1:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 3:e:{if(Ts(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Ba(e,t),Wa(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ns(e,t,r,n,i=cs(Error(a(423)),t));break e}if(r!==i){t=Ns(e,t,r,n,i=cs(Error(a(424)),t));break e}for(ra=ci(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=wa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fa(),r===i){t=Vs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return Qa(t),null===e&&ca(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==o&&ni(r,o)&&(t.flags|=32),Ss(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Bs(e,t,n);case 4:return $a(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xa(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ws(e,t,r,i=t.elementType===r?i:ns(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Pi(ka,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===i.children&&!Ti.current){t=Vs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===o.tag){(c=Fa(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),Oa(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Oa(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ta(t,n),r=r(i=Na(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=ns(r=t.type,t.pendingProps),ks(e,t,r,i=ns(r.type,i),n);case 15:return As(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ns(r,i),Hs(e,t),t.tag=1,Ii(r)?(e=!0,Li(t)):e=!1,Ta(t,n),os(t,r,i),ls(t,r,i,n),Os(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var qc="function"===typeof reportError?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}function $c(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"===typeof i){var s=i;i=function(){var e=Vc(o);s.call(e)}}Hc(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=Vc(o);a.call(e)}}var o=Wc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=o,e[pi]=o.current,Wr(8===e.nodeType?e.parentNode:e),uc(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Vc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[pi]=l.current,Wr(8===e.nodeType?e.parentNode:e),uc((function(){Hc(t,l,n,r)})),l}(n,t,e,i,r);return Vc(o)}$c.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},$c.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Hc(null,e,null,null)})),t[pi]=null}},$c.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Bt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,Qe()),0===(6&Ol)&&(Wl=Qe()+500,Wi()))}break;case 13:uc((function(){var t=Ma(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Yc(e,1)}},kt=function(e){if(13===e.tag){var t=Ma(e,134217728);if(null!==t)nc(t,e,134217728,ec());Yc(e,134217728)}},At=function(e){if(13===e.tag){var t=tc(e),n=Ma(e,t);if(null!==n)nc(n,e,t,ec());Yc(e,t)}},Et=function(){return vt},St=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=wi(r);if(!i)throw Error(a(90));q(r),J(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=cc,Te=uc;var eu={usingClientEntryPoint:!1,Events:[vi,xi,wi,Pe,Ce,cc]},tu={findFiberByHostInstance:bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;
2if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),at=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(a(299));var n=!1,r="",i=qc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Xc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(a(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=qc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,i,0,o,s),e[pi]=t.current,Wr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new $c(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(a(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},38462:(e,t,n)=>{"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=n(9950),a=n(17119),o=n(82339),s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setFocusTrapElement=function(e){n.focusTrapElement=e},"undefined"!==typeof document&&(n.previouslyFocusedElement=document.activeElement),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1};for(var n in e)e.hasOwnProperty(n)&&"returnFocusOnDeactivate"!==n&&(t[n]=e[n]);var r=a.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t={returnFocus:this.props.focusTrapOptions.returnFocusOnDeactivate||!1};this.focusTrap.deactivate(t)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"render",value:function(){var e=this,t=i.Children.only(this.props.children);
2return i.cloneElement(t,{ref:function(n){e.setFocusTrapElement(n),"function"===typeof t.ref&&t.ref(n)}})}}]),t}(i.Component);s.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:o},e.exports=s},38635:(e,t,n)=>{"use strict";var r=n(44796),i=n(251),a=n(15332),o=Object,s=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?s(e,""):o(e)}:o},39088:(e,t,n)=>{"use strict";var r=n(44796),i=n(30421),a=n(23089),o=n(98709).indexOf,s=n(54801),l=r([].push);e.exports=function(e,t){var n,r=a(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);for(;t.length>c;)i(r,n=t[c++])&&(~o(u,n)||l(u,n));return u}},39248:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},39365:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"address","name":"_dexRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amountA","type":"uint256"},{"internalType":"uint256","name":"_amountB","type":"uint256"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayEther","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllocationData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getDepositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getDepositedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getEarnedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxFarmAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountDEFX","type":"uint256"},{"internalType":"uint256","name":"_amountUSDT","type":"uint256"}],"name":"getQuote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}
2,{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenA","type":"address"},{"internalType":"address","name":"_tokenB","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_maxRewardRate","type":"uint256"},{"internalType":"uint256","name":"_minRewardRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMaxRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMinRate","type":"uint256"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"uint256[]","name":"_allocations","type":"uint256[]"},{"internalType":"bool","name":"_activate","type":"bool"}],"name":"initFarm","outputs":[],"stateMutability":"nonpayable","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":"bool","name":"_active","type":"bool"}],"name":"setFarmStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"uint256[]","name":"_allocations","type":"uint256[]"}],"name":"updateAllocationData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxRewardRate","type":"uint256"},{"internalType":"uint256","name":"_minRewardRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMaxRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMinRate","type":"uint256"}],"name":"updateRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]')},39452:(e,t,n)=>{"use strict";t.A=g;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=u(e)&&"function"!=typeof e)return{default:e};if((t=l(t))&&t.has(e))return t.get(e);var n,r,i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&((r=a?Object.getOwnPropertyDescriptor(e,n):null)&&(r.get||r.set)?Object.defineProperty(i,n,r):i[n]=e[n]);return i.default=e,t&&t.set(e,i),i}(n(9950)),i=s(n(23047)),a=s(n(11942)),o=["type","width","height","series","options"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e){var t,n;return"function"!=typeof WeakMap?null:(t=new WeakMap,n=new WeakMap,(l=function(e){return e?n:t})(e))}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)!{}.hasOwnProperty.call(r,n)||(e[n]=r[n])}return e}).apply(null,arguments)}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){return e=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if(n=n.call(e,t||"default"),"object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string"),"symbol"==u(e)?e:e+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(e!==t){if("object"!==u(e)||null===e||"object"!==u(t)||null===t)return!1;if(!n.has(e)&&!n.has(t)){n.add(e),n.add(t);var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var a=0,o=r;a<o.length;a++){var s=o[a];if(!i.includes(s)||!p(e[s],t[s],n))return!1}}}return!0}function g(e){function t(e){return e&&"object"===u(e)&&!Array.isArray(e)}var n=void 0===(m=e.type)?"line":m,a=void 0===(m=e.width)?"100%":m,s=void 0===(m=e.height)?"auto":m,l=e.series,d=e.options,m=function(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};var n,r={};for(n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),a=0;a<i.length;a++)n=i[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}(e,o),y=(0,r.useRef)(null),b=(0,r.useRef)(null),v=(0,r.useRef)(),x=((0,r.useEffect)((function(){v.current=d;var e=y.current;return b.current=new i.default(e,x()),b.current.render(),function(){b.current&&"function"==typeof b.current.destroy&&b.current.destroy()}}),[]),(0,r.useEffect)((function(){var e=!p(b.current.w.config.series,l),t=!p(v.current,d)||s!==b.current.opts.chart.height||a!==b.current.opts.chart.width;(e||t)&&(!e||t?b.current.updateOptions(x()):b.current.updateSeries(l)),v.current=d}),[d,l,s,a]),function(){return w(d,{chart:{type:n,height:s,width:a},series:l})}),w=function(e,n){var r=h({},e);return t(e)&&t(n)&&Object.keys(n).forEach((function(i){t(n[i])&&i in e?r[i]=w(e[i],n[i]):Object.assign(r,f({},i,n[i]))})),r};e=function(e,t){var n=h({},e);return t.forEach((function(e){delete n[e]})),n}(m,Object.keys(g.propTypes));return r.default.createElement("div",c({ref:y},e))}g.propTypes={type:a.default.string.isRequired,series:a.default.array.isRequired,options:a.default.object.isRequired,width:a.default.oneOfType([a.default.string,a.default.number]),height:a.default.oneOfType([a.default.string,a.default.number])}},39510:(e,t,n)=>{"use strict";n.d(t,{W:()=>c});var r=n(71125),i=n(89676),a=n(21273),o=n(66455),s=n(70539),l=n(69679);function c(e){const{abi:t,data:n}=e,c=(0,a.di)(n,0,4);if("0x"===c)throw new i.O;const u=[...t||[],r.Mc,r.J9].find((e=>"error"===e.type&&c===(0,o.V)((0,l.B)(e))));if(!u)throw new i.Wq(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.n)(u.inputs,(0,a.di)(n,4)):void 0,errorName:u.name}}},39557:(e,t,n)=>{"use strict";var r=n(29745),i=n(29310),a=n(72097),o=n(11146),s=n(514),l=n(49831),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||a(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},39802:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function r(e){if("boolean"!==typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function a(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=n,t.bool=r,t.bytes=i,t.hash=a,t.exists=o,t.output=s;const l={number:n,bool:r,bytes:i,hash:a,exists:o,output:s};t.default=l},39897:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},39923:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},39940:(e,t,n)=>{"use strict";var r=n(9950),i=n(6538);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=i.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c((function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,a(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(o=e,t):(o=e,s=n)}var o,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,i]);var f=o(e,d[0],d[1]);return l((function(){h.hasValue=!0,h.value=f}),[f]),u(f),f}},40101:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(14239);function i(e){return{address:e.address,amount:r.oB(e.amount),index:r.oB(e.index),validatorIndex:r.oB(e.validatorIndex)}}function a(e){return{..."bigint"===typeof e.baseFeePerGas&&{baseFeePerGas:r.oB(e.baseFeePerGas)},..."bigint"===typeof e.blobBaseFee&&{blobBaseFee:r.oB(e.blobBaseFee)},..."string"===typeof e.feeRecipient&&{feeRecipient:e.feeRecipient}
2,..."bigint"===typeof e.gasLimit&&{gasLimit:r.oB(e.gasLimit)},..."bigint"===typeof e.number&&{number:r.oB(e.number)},..."bigint"===typeof e.prevRandao&&{prevRandao:r.oB(e.prevRandao)},..."bigint"===typeof e.time&&{time:r.oB(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i)}}}},40387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;const r=n(17656);let i=null;class a extends r.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp [email protected]#T2O}
2OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|[email protected])[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==i&&(i=new a),i}}t.LangEn=a},40738:(e,t,n)=>{var r=n(1111),i=n(85661),a=n(81465);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},41176:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},41397:function(e,t,n){var r;e=n.nmd(e),function(){var i,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,f=1/0,p=9007199254740991,g=NaN,m=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],b="[object Arguments]",v="[object Array]",x="[object Boolean]",w="[object Date]",k="[object Error]",A="[object Function]",E="[object GeneratorFunction]",S="[object Map]",P="[object Number]",C="[object Object]",O="[object Promise]",T="[object RegExp]",N="[object Set]",_="[object String]",I="[object Symbol]",R="[object WeakMap]",M="[object ArrayBuffer]",j="[object DataView]",L="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",D="[object Int16Array]",U="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",G=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,K=RegExp(X.source),Q=RegExp($.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),oe=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,066 bytes, line 2
27f]/g,ke=/($^)/,Ae=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Pe="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",_e="['\u2019]",Ie="["+Ee+"]",Re="["+Ne+"]",Me="["+Se+"]",je="\\d+",Le="["+Pe+"]",Be="["+Ce+"]",Fe="[^"+Ee+Ne+je+Pe+Ce+Oe+"]",De="\\ud83c[\\udffb-\\udfff]",Ue="[^"+Ee+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",We="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Oe+"]",Ve="\\u200d",Ge="(?:"+Be+"|"+Fe+")",Ye="(?:"+He+"|"+Fe+")",qe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Xe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Me+"|"+De+")"+"?",Ke="["+Te+"]?",Qe=Ke+$e+("(?:"+Ve+"(?:"+[Ue,ze,We].join("|")+")"+Ke+$e+")*"),Je="(?:"+[Le,ze,We].join("|")+")"+Qe,Ze="(?:"+[Ue+Me+"?",Me,ze,We,Ie].join("|")+")",et=RegExp(_e,"g"),tt=RegExp(Me,"g"),nt=RegExp(De+"(?="+De+")|"+Ze+Qe,"g"),rt=RegExp([He+"?"+Be+"+"+qe+"(?="+[Re,He,"$"].join("|")+")",Ye+"+"+Xe+"(?="+[Re,He+Ge,"$"].join("|")+")",He+"?"+Ge+"+"+qe,He+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Je].join("|"),"g"),it=RegExp("["+Ve+Ee+Se+Te+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],st=-1,lt={};lt[L]=lt[B]=lt[F]=lt[D]=lt[U]=lt[z]=lt[W]=lt[H]=lt[V]=!0,lt[b]=lt[v]=lt[M]=lt[x]=lt[j]=lt[w]=lt[k]=lt[A]=lt[S]=lt[P]=lt[C]=lt[T]=lt[N]=lt[_]=lt[R]=!1;var ct={};ct[b]=ct[v]=ct[M]=ct[j]=ct[x]=ct[w]=ct[L]=ct[B]=ct[F]=ct[D]=ct[U]=ct[S]=ct[P]=ct[C]=ct[T]=ct[N]=ct[_]=ct[I]=ct[z]=ct[W]=ct[H]=ct[V]=!0,ct[k]=ct[A]=ct[R]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=ft||pt||Function("return this")(),mt=t&&!t.nodeType&&t,yt=mt&&e&&!e.nodeType&&e,bt=yt&&yt.exports===mt,vt=bt&&ft.process,xt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,kt=xt&&xt.isDate,At=xt&&xt.isMap,Et=xt&&xt.isRegExp,St=xt&&xt.isSet,Pt=xt&&xt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Rt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Lt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Bt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ft(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ut=qt("length");function zt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Wt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Ht(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Wt(e,Gt,n)}function Vt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Gt(e){return e!==e}function Yt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:g}function qt(e){return function(t){return null==t?i:t[e]}}function Xt(e){return function(t){return null==e?i:e[t]}}function $t(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Kt(e,t){for(var n,r=-1,a=e.length;++r<a;){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,mn(e)+1).replace(oe,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return jt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var an=Xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
2c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function ln(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n];o!==t&&o!==s||(e[n]=s,a[i++]=n)}return a}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ut(e)}function gn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var yn=Xt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var bn=function e(t){var n=(t=null==t?gt:bn.defaults(gt.Object(),t,bn.pick(gt,ot))).Array,r=t.Date,se=t.Error,Ee=t.Function,Se=t.Math,Pe=t.Object,Ce=t.RegExp,Oe=t.String,Te=t.TypeError,Ne=n.prototype,_e=Ee.prototype,Ie=Pe.prototype,Re=t["__core-js_shared__"],Me=_e.toString,je=Ie.hasOwnProperty,Le=0,Be=function(){var e=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Ie.toString,De=Me.call(Pe),Ue=gt._,ze=Ce("^"+Me.call(je).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=bt?t.Buffer:i,He=t.Symbol,Ve=t.Uint8Array,Ge=We?We.allocUnsafe:i,Ye=un(Pe.getPrototypeOf,Pe),qe=Pe.create,Xe=Ie.propertyIsEnumerable,$e=Ne.splice,Ke=He?He.isConcatSpreadable:i,Qe=He?He.iterator:i,Je=He?He.toStringTag:i,Ze=function(){try{var e=da(Pe,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,it=r&&r.now!==gt.Date.now&&r.now,ut=t.setTimeout!==gt.setTimeout&&t.setTimeout,ft=Se.ceil,pt=Se.floor,mt=Pe.getOwnPropertySymbols,yt=We?We.isBuffer:i,vt=t.isFinite,xt=Ne.join,Ut=un(Pe.keys,Pe),Xt=Se.max,vn=Se.min,xn=r.now,wn=t.parseInt,kn=Se.random,An=Ne.reverse,En=da(t,"DataView"),Sn=da(t,"Map"),Pn=da(t,"Promise"),Cn=da(t,"Set"),On=da(t,"WeakMap"),Tn=da(Pe,"create"),Nn=On&&new On,_n={},In=Ba(En),Rn=Ba(Sn),Mn=Ba(Pn),jn=Ba(Cn),Ln=Ba(On),Bn=He?He.prototype:i,Fn=Bn?Bn.valueOf:i,Dn=Bn?Bn.toString:i;function Un(e){if(ts(e)&&!Vo(e)&&!(e instanceof Vn)){if(e instanceof Hn)return e;if(je.call(e,"__wrapped__"))return Fa(e)}return new Hn(e)}var zn=function(){function e(){}return function(t){if(!es(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Wn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Yn(e);this.size=t.size}function Kn(e,t){var n=Vo(e),r=!n&&Ho(e),i=!n&&!r&&Xo(e),a=!n&&!r&&!i&&cs(e),o=n||r||i||a,s=o?Qt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!je.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ba(c,l))||s.push(c);return s}function Qn(e){var t=e.length;return t?e[Xr(0,t-1)]:i}function Jn(e,t){return Ma(Ti(e),sr(t,0,e.length))}function Zn(e){return Ma(Ti(e))}function er(e,t,n){(n!==i&&!Uo(e[t],n)||n===i&&!(t in e))&&ar(e,t,n)}function tr(e,t,n){var r=e[t];je.call(e,t)&&Uo(r,n)&&(n!==i||t in e)||ar(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Uo(e[n][0],t))return n;return-1}function rr(e,t,n,r){return hr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function ir(e,t){return e&&Ni(t,_s(t),e)}function ar(e,t,n){"__proto__"==t&&Ze?Ze(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,a=t.length,o=n(a),s=null==e;++r<a;)o[r]=s?i:Ps(e,t[r]);return o}function sr(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function lr(e,t,n,r,a,o){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!es(e))return e;var d=Vo(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ti(e,s)}else{var h=pa(e),f=h==A||h==E;if(Xo(e))return Ai(e,l);if(h==C||h==b||f&&!a){if(s=c||f?{}:ma(e),!l)return c?function(e,t){return Ni(e,fa(e),t)}(e,function(e,t){return e&&Ni(t,Is(t),e)}(s,e)):function(e,t){return Ni(e,ha(e),t)}(e,ir(s,e))}else{if(!ct[h])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case M:return Ei(e);case x:case w:return new r(+e);case j:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case B:case F:case D:case U:case z:case W:case H:case V:return Si(e,n);case S:return new r;case P:case _:return new r(e);case T:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case I:return i=e,Fn?Pe(Fn.call(i)):{}}var i}(e,h,l)}}o||(o=new $n);var p=o.get(e);if(p)return p;o.set(e,s),os(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,o))})):ns(e)&&e.forEach((function(r,i){s.set(i,lr(r,t,n,i,e,o))}));var g=d?i:(u?c?ia:ra:c?Is:_s)(e);return Tt(g||e,(function(r,i){g&&(r=e[i=r]),tr(s,i,lr(r,t,n,i,e,o))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Pe(e);r--;){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Te(a);return Na((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,a=Rt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=jt(t,Zt(n))),r?(a=Mt,o=!1):t.length>=200&&(a=tn,o=!1,t=new Xn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d===d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}Un.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=Wn.prototype,Un.prototype.constructor=Un,Hn.prototype=zn(Wn.prototype),Hn.prototype.constructor=Hn,Vn.prototype=zn(Wn.prototype),Vn.prototype.constructor=Vn,Gn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Gn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===o?i:n}return je.call(t,e)?t[e]:i},Gn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==i:je.call(t,e)},Gn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===i?o:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?i:t[n][1]},Yn.prototype.has=function(e){return nr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Sn||Yn),string:new Gn}},qn.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ca(this,e).get(e)},qn.prototype.has=function(e){return ca(this,e).has(e)},qn.prototype.set=function(e,t){var n=ca(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,o),this},Xn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Yn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var hr=Ri(xr),fr=Ri(wr,!0);function pr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],s=t(o);
vendor: 2,430 bytes, line 2
2if(null!=s&&(l===i?s===s&&!ls(s):n(s,l)))var l=s,c=o}return c}function mr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=ya),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Lt(i,s):r||(i[i.length]=s)}return i}var br=Mi(),vr=Mi(!0);function xr(e,t){return e&&br(e,t,_s)}function wr(e,t){return e&&vr(e,t,_s)}function kr(e,t){return It(t,(function(t){return Qo(e[t])}))}function Ar(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&n<r;)e=e[La(t[n++])];return n&&n==r?e:i}function Er(e,t,n){var r=t(e);return Vo(e)?r:Lt(r,n(e))}function Sr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Pe(e)?function(e){var t=je.call(e,Je),n=e[Je];try{e[Je]=i;var r=!0}catch(o){}var a=Fe.call(e);r&&(t?e[Je]=n:delete e[Je]);return a}(e):function(e){return Fe.call(e)}(e)}function Pr(e,t){return e>t}function Cr(e,t){return null!=e&&je.call(e,t)}function Or(e,t){return null!=e&&t in Pe(e)}function Tr(e,t,r){for(var a=r?Mt:Rt,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=jt(h,Zt(t))),u=vn(h.length,u),c[l]=!r&&(t||o>=120&&h.length>=120)?new Xn(l&&h):i}h=e[0];var f=-1,p=c[0];e:for(;++f<o&&d.length<u;){var g=h[f],m=t?t(g):g;if(g=r||0!==g?g:0,!(p?tn(p,m):a(d,m,r))){for(l=s;--l;){var y=c[l];if(!(y?tn(y,m):a(e[l],m,r)))continue e}p&&p.push(m),d.push(g)}}return d}function Nr(e,t,n){var r=null==(e=Ca(e,t=vi(t,e)))?e:e[La($a(t))];return null==r?i:Ct(r,e,n)}function _r(e){return ts(e)&&Sr(e)==b}function Ir(e,t,n,r,a){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,a,o){var s=Vo(e),l=Vo(t),c=s?v:pa(e),u=l?v:pa(t),d=(c=c==b?C:c)==C,h=(u=u==b?C:u)==C,f=c==u;if(f&&Xo(e)){if(!Xo(t))return!1;s=!0,d=!1}if(f&&!d)return o||(o=new $n),s||cs(e)?ta(e,t,n,r,a,o):function(e,t,n,r,i,a,o){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case x:case w:case P:return Uo(+e,+t);case k:return e.name==t.name&&e.message==t.message;case T:case _:return e==t+"";case S:var s=cn;case N:var l=1&r;if(s||(s=hn),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=ta(s(e),s(t),r,i,a,o);return o.delete(e),u;case I:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,r,a,o);if(!(1&n)){var p=d&&je.call(e,"__wrapped__"),g=h&&je.call(t,"__wrapped__");
vendor: 17,060 bytes, line 2
2if(p||g){var m=p?e.value():e,y=g?t.value():t;return o||(o=new $n),a(m,y,n,r,o)}}if(!f)return!1;return o||(o=new $n),function(e,t,n,r,a,o){var s=1&n,l=ra(e),c=l.length,u=ra(t),d=u.length;if(c!=d&&!s)return!1;var h=c;for(;h--;){var f=l[h];if(!(s?f in t:je.call(t,f)))return!1}var p=o.get(e),g=o.get(t);if(p&&g)return p==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);var y=s;for(;++h<c;){var b=e[f=l[h]],v=t[f];if(r)var x=s?r(v,b,f,t,e,o):r(b,v,f,e,t,o);if(!(x===i?b===v||a(b,v,n,r,o):x)){m=!1;break}y||(y="constructor"==f)}if(m&&!y){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,n,r,a,o)}(e,t,n,r,Ir,a))}function Rr(e,t,n,r){var a=n.length,o=a,s=!r;if(null==e)return!o;for(e=Pe(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var c=(l=n[a])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new $n;if(r)var f=r(u,d,c,e,t,h);if(!(f===i?Ir(d,u,3,r,h):f))return!1}}return!0}function Mr(e){return!(!es(e)||function(e){return!!Be&&Be in e}(e))&&(Qo(e)?ze:be).test(Ba(e))}function jr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Vo(e)?zr(e[0],e[1]):Ur(e):hl(e)}function Lr(e){if(!Aa(e))return Ut(e);var t=[];for(var n in Pe(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Br(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Pe(e))t.push(n);return t}(e);var t=Aa(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Dr(e,t){var r=-1,i=Yo(e)?n(e.length):[];return hr(e,(function(e,n,a){i[++r]=t(e,n,a)})),i}function Ur(e){var t=ua(e);return 1==t.length&&t[0][2]?Sa(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function zr(e,t){return xa(e)&&Ea(t)?Sa(La(e),t):function(n){var r=Ps(n,e);return r===i&&r===t?Cs(n,e):Ir(t,r,3)}}function Wr(e,t,n,r,a){e!==t&&br(t,(function(o,s){if(a||(a=new $n),es(o))!function(e,t,n,r,a,o,s){var l=Oa(e,n),c=Oa(t,n),u=s.get(c);if(u)return void er(e,n,u);var d=o?o(l,c,n+"",e,t,s):i,h=d===i;if(h){var f=Vo(c),p=!f&&Xo(c),g=!f&&!p&&cs(c);d=c,f||p||g?Vo(l)?d=l:qo(l)?d=Ti(l):p?(h=!1,d=Ai(c,!0)):g?(h=!1,d=Si(c,!0)):d=[]:is(c)||Ho(c)?(d=l,Ho(l)?d=ys(l):es(l)&&!Qo(l)||(d=ma(c))):h=!1}h&&(s.set(c,d),a(d,c,r,o,s),s.delete(c));er(e,n,d)}(e,t,s,n,Wr,r,a);else{var l=r?r(Oa(e,s),o,s+"",e,t,a):i;l===i&&(l=o),er(e,s,l)}}),Is)}function Hr(e,t){var n=e.length;if(n)return ba(t+=t<0?n:0,n)?e[t]:i}function Vr(e,t,n){t=t.length?jt(t,(function(e){return Vo(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e})):[rl];var r=-1;t=jt(t,Zt(la()));var i=Dr(e,(function(e,n,i){var a=jt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var l=Pi(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ar(e,o);n(s,o)&&Zr(a,vi(o,e),s)}return a}function Yr(e,t,n,r){var i=r?Vt:Ht,a=-1,o=t.length,s=e;for(e===t&&(t=Ti(t)),n&&(s=jt(e,Zt(n)));++a<o;)for(var l=0,c=t[a],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&$e.call(s,l,1),$e.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ba(i)?$e.call(e,i,1):di(e,i)}}return e}function Xr(e,t){return e+pt(kn()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return _a(Pa(e,t,rl),e+"")}function Qr(e){return Qn(Us(e))}function Jr(e,t){var n=Us(e);return Ma(n,sr(t,0,n.length))}function Zr(e,t,n,r){if(!es(e))return e;for(var a=-1,o=(t=vi(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var c=La(t[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=s){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=es(d)?d:ba(t[a+1])?[]:{})}tr(l,c,u),l=l[c]}return e}var ei=Nn?function(e,t){return Nn.set(e,t),e}:rl,ti=Ze?function(e,t){return Ze(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function ni(e){return Ma(Us(e))}function ri(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=n(a);++i<a;)o[i]=e[i+t];return o}function ii(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!ls(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return oi(e,t,rl,n)}function oi(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!==t,l=null===t,c=ls(t),u=t===i;a<o;){var d=pt((a+o)/2),h=n(e[d]),f=h!==i,p=null===h,g=h===h,m=ls(h);if(s)var y=r||g;else y=u?g&&(r||f):l?g&&f&&(r||!p):c?g&&f&&!p&&(r||!m):!p&&!m&&(r?h<=t:h<t);y?a=d+1:o=d}return vn(o,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Uo(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function li(e){return"number"==typeof e?e:ls(e)?g:+e}function ci(e){if("string"==typeof e)return e;if(Vo(e))return jt(e,ci)+"";if(ls(e))return Dn?Dn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=Rt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=Mt;else if(a>=200){var c=t?null:$i(e);if(c)return hn(c);o=!1,i=tn,l=new Xn}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function di(e,t){var n=-1,r=(t=vi(t,e)).length;if(!r)return!0;for(;++n<r;){var i=La(t[n]);if("__proto__"===i&&!je.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var a=Ca(e,t);return null==a||delete a[La($a(t))]}function hi(e,t,n,r){return Zr(e,t,n(Ar(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ri(e,r?0:a,r?a+1:i):ri(e,r?a+1:0,r?i:a)}function pi(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Bt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function gi(e,t,r){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var a=-1,o=n(i);++a<i;)for(var s=e[a],l=-1;++l<i;)l!=a&&(o[a]=dr(o[a]||s,e[l],t,r));return ui(yr(o,1),t,r)}function mi(e,t,n){for(var r=-1,a=e.length,o=t.length,s={};++r<a;){var l=r<o?t[r]:i;n(s,e[r],l)}return s}function yi(e){return qo(e)?e:[]}function bi(e){return"function"==typeof e?e:rl}function vi(e,t){return Vo(e)?e:xa(e,t)?[e]:ja(bs(e))}var xi=Kr;function wi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ri(e,t,n)}var ki=nt||function(e){return gt.clearTimeout(e)};function Ai(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Si(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Pi(e,t){if(e!==t){var n=e!==i,r=null===e,a=e===e,o=ls(e),s=t!==i,l=null===t,c=t===t,u=ls(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!u&&e<t||u&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}function Ci(e,t,r,i){for(var a=-1,o=e.length,s=r.length,l=-1,c=t.length,u=Xt(o-s,0),d=n(c+u),h=!i;++l<c;)d[l]=t[l];for(;++a<s;)(h||a<o)&&(d[r[a]]=e[a]);for(;u--;)d[l++]=e[a++];return d}function Oi(e,t,r,i){for(var a=-1,o=e.length,s=-1,l=r.length,c=-1,u=t.length,d=Xt(o-l,0),h=n(d+u),f=!i;++a<d;)h[a]=e[a];for(var p=a;++c<u;)h[p+c]=t[c];for(;++s<l;)(f||a<o)&&(h[p+r[s]]=e[a++]);return h}function Ti(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ni(e,t,n,r){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),a?ar(n,l,c):tr(n,l,c)}return n}function _i(e,t){return function(n,r){var i=Vo(n)?Ot:rr,a=t?t():{};return i(n,e,la(r,2),a)}}function Ii(e){return Kr((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&va(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=Pe(t);++r<a;){var l=n[r];l&&e(t,l,r,o)}return t}))}function Ri(e,t){return function(n,r){if(null==n)return n;if(!Yo(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Pe(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Mi(e){return function(t,n,r){for(var i=-1,a=Pe(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function ji(e){return function(t){var n=ln(t=bs(t))?gn(t):i,r=n?n[0]:t.charAt(0),a=n?wi(n,1).join(""):t.slice(1);return r[e]()+a}}function Li(e){return function(t){return Bt(Qs(Hs(t).replace(et,"")),e,"")}}function Bi(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 n=zn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Fi(e){return function(t,n,r){var a=Pe(t);if(!Yo(t)){var o=la(n,3);t=_s(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,r);return s>-1?a[o?t[s]:s]:i}}function Di(e){return na((function(t){var n=t.length,r=n,o=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Te(a);if(o&&!l&&"wrapper"==oa(s))var l=new Hn([],!0)}for(r=l?r:n;++r<n;){var c=oa(s=t[r]),u="wrapper"==c?aa(s):i;l=u&&wa(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[oa(u[0])].apply(l,u[3]):1==s.length&&wa(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Vo(r))return l.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function Ui(e,t,r,a,o,s,l,c,u,h){var f=t&d,p=1&t,g=2&t,m=24&t,y=512&t,b=g?i:Bi(e);return function d(){for(var v=arguments.length,x=n(v),w=v;w--;)x[w]=arguments[w];if(m)var k=sa(d),A=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,k);if(a&&(x=Ci(x,a,o,m)),s&&(x=Oi(x,s,l,m)),v-=A,m&&v<h){var E=dn(x,k);return qi(e,t,Ui,d.placeholder,r,x,E,c,u,h-v)}var S=p?r:this,P=g?S[e]:e;return v=x.length,c?x=function(e,t){var n=e.length,r=vn(t.length,n),a=Ti(e);for(;r--;){var o=t[r];e[r]=ba(o,n)?a[o]:i}return e}(x,c):y&&v>1&&x.reverse(),f&&u<v&&(x.length=u),this&&this!==gt&&this instanceof d&&(P=b||Bi(P)),P.apply(S,x)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Wi(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=li(n),r=li(r)),a=e(n,r)}return a}}function Hi(e){return na((function(t){return t=jt(t,Zt(la())),Kr((function(n){var r=this;return e(t,(function(e){return Ct(e,r,n)}))}))}))}function Vi(e,t){var n=(t=t===i?" ":ci(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,ft(e/pn(t)));return ln(t)?wi(gn(r),0,e).join(""):r.slice(0,e)}function Gi(e){return function(t,r,a){return a&&"number"!=typeof a&&va(t,r,a)&&(r=a=i),t=fs(t),r===i?(r=t,t=0):r=fs(r),function(e,t,r,i){for(var a=-1,o=Xt(ft((t-e)/(r||1)),0),s=n(o);o--;)s[i?o:++a]=e,e+=r;return s}(t,r,a=a===i?t<r?1:-1:fs(a),e)}}function Yi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ms(t),n=ms(n)),e(t,n)}}function qi(e,t,n,r,a,o,s,l,d,h){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var p=[e,t,a,f?o:i,f?s:i,f?i:o,f?i:s,l,d,h],g=n.apply(i,p);return wa(e)&&Ta(g,p),g.placeholder=r,Ia(g,e,t)}function Xi(e){var t=Se[e];return function(e,n){if(e=ms(e),(n=null==n?0:vn(ps(n),292))&&vt(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $i=Cn&&1/hn(new Cn([,-0]))[1]==f?function(e){return new Cn(e)}:ll;function Ki(e){return function(t){var n=pa(t);return n==S?cn(t):n==N?fn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qi(e,t,r,o,f,p,g,m){var y=2&t;if(!y&&"function"!=typeof e)throw new Te(a);var b=o?o.length:0;if(b||(t&=-97,o=f=i),g=g===i?g:Xt(ps(g),0),m=m===i?m:ps(m),b-=f?f.length:0,t&u){var v=o,x=f;o=f=i}var w=y?i:aa(e),k=[e,t,r,o,f,v,x,p,g,m];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,o=r==d&&8==n||r==d&&n==h&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ci(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Oi(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(k,w),e=k[0],t=k[1],r=k[2],o=k[3],f=k[4],!(m=k[9]=k[9]===i?y?0:e.length:Xt(k[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||t==l?function(e,t,r){var a=Bi(e);return function o(){for(var s=arguments.length,l=n(s),c=s,u=sa(o);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<r?qi(e,t,Ui,o.placeholder,i,l,d,i,i,r-s):Ct(this&&this!==gt&&this instanceof o?a:e,this,l)}}(e,t,m):t!=c&&33!=t||f.length?Ui.apply(i,k):function(e,t,r,i){var a=1&t,o=Bi(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==gt&&this instanceof t?o:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++s];return Ct(h,a?r:this,d)}}(e,t,r,o);else var A=function(e,t,n){var r=1&t,i=Bi(e);return function t(){return(this&&this!==gt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Ia((w?ei:Ta)(A,k),e,t)}function Ji(e,t,n,r){return e===i||Uo(e,Ie[n])&&!je.call(r,n)?t:e}function Zi(e,t,n,r,a,o){return es(e)&&es(t)&&(o.set(t,e),Wr(e,t,i,Zi,o),o.delete(t)),e}function ea(e){return is(e)?i:e}function ta(e,t,n,r,a,o){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new Xn:i;for(o.set(e,t),o.set(t,e);++h<l;){var g=e[h],m=t[h];if(r)var y=s?r(m,g,h,t,e,o):r(g,m,h,e,t,o);if(y!==i){if(y)continue;f=!1;break}if(p){if(!Dt(t,(function(e,t){if(!tn(p,t)&&(g===e||a(g,e,n,r,o)))return p.push(t)}))){f=!1;break}}else if(g!==m&&!a(g,m,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function na(e){return _a(Pa(e,i,Va),e+"")}function ra(e){return Er(e,_s,ha)}function ia(e){return Er(e,Is,fa)}var aa=Nn?function(e){return Nn.get(e)}:ll;function oa(e){for(var t=e.name+"",n=_n[t],r=je.call(_n,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function sa(e){return(je.call(Un,"placeholder")?Un:e).placeholder}function la(){var e=Un.iteratee||il;return e=e===il?jr:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ua(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ea(i)]}return t}function da(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Mr(n)?n:i}var ha=mt?function(e){return null==e?[]:(e=Pe(e),It(mt(e),(function(t){return Xe.call(e,t)})))}:gl,fa=mt?function(e){for(var t=[];e;)Lt(t,ha(e)),e=Ye(e);return t}:gl,pa=Sr;function ga(e,t,n){for(var r=-1,i=(t=vi(t,e)).length,a=!1;++r<i;){var o=La(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&Zo(i)&&ba(o,i)&&(Vo(e)||Ho(e))}function ma(e){return"function"!=typeof e.constructor||Aa(e)?{}:zn(Ye(e))}function ya(e){return Vo(e)||Ho(e)||!!(Ke&&e&&e[Ke])}function ba(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function va(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Yo(n)&&ba(t,n.length):"string"==r&&t in n)&&Uo(n[t],e)}function xa(e,t){if(Vo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Pe(t))}function wa(e){var t=oa(e),n=Un[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=aa(n);return!!r&&e===r[0]}(En&&pa(new En(new ArrayBuffer(1)))!=j||Sn&&pa(new Sn)!=S||Pn&&pa(Pn.resolve())!=O||Cn&&pa(new Cn)!=N||On&&pa(new On)!=R)&&(pa=function(e){var t=Sr(e),n=t==C?e.constructor:i,r=n?Ba(n):"";if(r)switch(r){case In:return j;case Rn:return S;case Mn:return O;case jn:return N;case Ln:return R}return t});var ka=Re?Qo:ml;function Aa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Ea(e){return e===e&&!es(e)}function Sa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Pe(n)))}}function Pa(e,t,r){return t=Xt(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=Xt(i.length-t,0),s=n(o);++a<o;)s[a]=i[t+a];a=-1;for(var l=n(t+1);++a<t;)l[a]=i[a];return l[t]=r(s),Ct(e,this,l)}}function Ca(e,t){return t.length<2?e:Ar(e,ri(t,0,-1))}function Oa(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ta=Ra(ei),Na=ut||function(e,t){return gt.setTimeout(e,t)},_a=Ra(ti);
vendor: 4,159 bytes, line 2
2function Ia(e,t,n){var r=t+"";return _a(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(y,(function(n){var r="_."+n[0];t&n[1]&&!Rt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Ra(e){var t=0,n=0;return function(){var r=xn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ma(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n<t;){var o=Xr(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var ja=function(e){var t=Mo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(fe,"$1"):n||e)})),t}));function La(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ba(e){if(null!=e){try{return Me.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Fa(e){if(e instanceof Vn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Ti(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Da=Kr((function(e,t){return qo(e)?dr(e,yr(t,1,qo,!0)):[]})),Ua=Kr((function(e,t){var n=$a(t);return qo(n)&&(n=i),qo(e)?dr(e,yr(t,1,qo,!0),la(n,2)):[]})),za=Kr((function(e,t){var n=$a(t);return qo(n)&&(n=i),qo(e)?dr(e,yr(t,1,qo,!0),i,n):[]}));function Wa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);return i<0&&(i=Xt(r+i,0)),Wt(e,la(t,3),i)}function Ha(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=ps(n),a=n<0?Xt(r+a,0):vn(a,r-1)),Wt(e,la(t,3),a,!0)}function Va(e){return(null==e?0:e.length)?yr(e,1):[]}function Ga(e){return e&&e.length?e[0]:i}var Ya=Kr((function(e){var t=jt(e,yi);return t.length&&t[0]===e[0]?Tr(t):[]})),qa=Kr((function(e){var t=$a(e),n=jt(e,yi);return t===$a(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Tr(n,la(t,2)):[]})),Xa=Kr((function(e){var t=$a(e),n=jt(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,i,t):[]}));function $a(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ka=Kr(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var Ja=na((function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,jt(t,(function(e){return ba(e,n)?+e:e})).sort(Pi)),r}));function Za(e){return null==e?e:An.call(e)}var eo=Kr((function(e){return ui(yr(e,1,qo,!0))})),to=Kr((function(e){var t=$a(e);return qo(t)&&(t=i),ui(yr(e,1,qo,!0),la(t,2))})),no=Kr((function(e){var t=$a(e);return t="function"==typeof t?t:i,ui(yr(e,1,qo,!0),i,t)}));function ro(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(qo(e))return t=Xt(e.length,t),!0})),Qt(t,(function(t){return jt(e,qt(t))}))}function io(e,t){if(!e||!e.length)return[];var n=ro(e);return null==t?n:jt(n,(function(e){return Ct(t,i,e)}))}var ao=Kr((function(e,t){return qo(e)?dr(e,t):[]})),oo=Kr((function(e){return gi(It(e,qo))})),so=Kr((function(e){var t=$a(e);return qo(t)&&(t=i),gi(It(e,qo),la(t,2))})),lo=Kr((function(e){var t=$a(e);return t="function"==typeof t?t:i,gi(It(e,qo),i,t)})),co=Kr(ro);var uo=Kr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,io(e,n)}));function ho(e){var t=Un(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var po=na((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&ba(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fo,args:[a],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));var go=_i((function(e,t,n){je.call(e,n)?++e[n]:ar(e,n,1)}));var mo=Fi(Wa),yo=Fi(Ha);function bo(e,t){return(Vo(e)?Tt:hr)(e,la(t,3))}function vo(e,t){return(Vo(e)?Nt:fr)(e,la(t,3))}var xo=_i((function(e,t,n){je.call(e,n)?e[n].push(t):ar(e,n,[t])}));var wo=Kr((function(e,t,r){var i=-1,a="function"==typeof t,o=Yo(e)?n(e.length):[];return hr(e,(function(e){o[++i]=a?Ct(t,e,r):Nr(e,t,r)})),o})),ko=_i((function(e,t,n){ar(e,n,t)}));
vendor: 13,170 bytes, line 2
2function Ao(e,t){return(Vo(e)?jt:Dr)(e,la(t,3))}var Eo=_i((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var So=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&va(e,t[0],t[1])?t=[]:n>2&&va(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,yr(t,1),[])})),Po=it||function(){return gt.Date.now()};function Co(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qi(e,d,i,i,i,i,t)}function Oo(e,t){var n;if("function"!=typeof t)throw new Te(a);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var To=Kr((function(e,t,n){var r=1;if(n.length){var i=dn(n,sa(To));r|=c}return Qi(e,r,t,n,i)})),No=Kr((function(e,t,n){var r=3;if(n.length){var i=dn(n,sa(No));r|=c}return Qi(t,r,e,n,i)}));function _o(e,t,n){var r,o,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Te(a);function g(t){var n=r,a=o;return r=o=i,d=t,l=e.apply(a,n)}function m(e){var n=e-u;return u===i||n>=t||n<0||f&&e-d>=s}function y(){var e=Po();if(m(e))return b(e);c=Na(y,function(e){var n=t-(e-u);return f?vn(n,s-(e-d)):n}(e))}function b(e){return c=i,p&&r?g(e):(r=o=i,l)}function v(){var e=Po(),n=m(e);if(r=arguments,o=this,u=e,n){if(c===i)return function(e){return d=e,c=Na(y,t),h?g(e):l}(u);if(f)return ki(c),c=Na(y,t),g(u)}return c===i&&(c=Na(y,t)),l}return t=ms(t)||0,es(n)&&(h=!!n.leading,s=(f="maxWait"in n)?Xt(ms(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),v.cancel=function(){c!==i&&ki(c),d=0,r=u=o=c=i},v.flush=function(){return c===i?l:b(Po())},v}var Io=Kr((function(e,t){return ur(e,1,t)})),Ro=Kr((function(e,t,n){return ur(e,ms(t)||0,n)}));function Mo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Mo.Cache||qn),n}function jo(e){if("function"!=typeof e)throw new Te(a);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)}}Mo.Cache=qn;var Lo=xi((function(e,t){var n=(t=1==t.length&&Vo(t[0])?jt(t[0],Zt(la())):jt(yr(t,1),Zt(la()))).length;return Kr((function(r){for(var i=-1,a=vn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return Ct(e,this,r)}))})),Bo=Kr((function(e,t){var n=dn(t,sa(Bo));return Qi(e,c,i,t,n)})),Fo=Kr((function(e,t){var n=dn(t,sa(Fo));return Qi(e,u,i,t,n)})),Do=na((function(e,t){return Qi(e,h,i,i,i,t)}));function Uo(e,t){return e===t||e!==e&&t!==t}var zo=Yi(Pr),Wo=Yi((function(e,t){return e>=t})),Ho=_r(function(){return arguments}())?_r:function(e){return ts(e)&&je.call(e,"callee")&&!Xe.call(e,"callee")},Vo=n.isArray,Go=wt?Zt(wt):function(e){return ts(e)&&Sr(e)==M};function Yo(e){return null!=e&&Zo(e.length)&&!Qo(e)}function qo(e){return ts(e)&&Yo(e)}var Xo=yt||ml,$o=kt?Zt(kt):function(e){return ts(e)&&Sr(e)==w};function Ko(e){if(!ts(e))return!1;var t=Sr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qo(e){if(!es(e))return!1;var t=Sr(e);return t==A||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jo(e){return"number"==typeof e&&e==ps(e)}function Zo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=At?Zt(At):function(e){return ts(e)&&pa(e)==S};function rs(e){return"number"==typeof e||ts(e)&&Sr(e)==P}function is(e){if(!ts(e)||Sr(e)!=C)return!1;var t=Ye(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==De}var as=Et?Zt(Et):function(e){return ts(e)&&Sr(e)==T};var os=St?Zt(St):function(e){return ts(e)&&pa(e)==N};function ss(e){return"string"==typeof e||!Vo(e)&&ts(e)&&Sr(e)==_}function ls(e){return"symbol"==typeof e||ts(e)&&Sr(e)==I}var cs=Pt?Zt(Pt):function(e){return ts(e)&&Zo(e.length)&&!!lt[Sr(e)]};var us=Yi(Fr),ds=Yi((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Yo(e))return ss(e)?gn(e):Ti(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=pa(e);return(t==S?cn:t==N?hn:Us)(e)}function fs(e){return e?(e=ms(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ps(e){var t=fs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(ps(e),0,m):0}function ms(e){if("number"==typeof e)return e;if(ls(e))return g;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||ve.test(e)?ht(e.slice(2),n?2:8):me.test(e)?g:+e}function ys(e){return Ni(e,Is(e))}function bs(e){return null==e?"":ci(e)}var vs=Ii((function(e,t){if(Aa(t)||Yo(t))Ni(t,_s(t),e);else for(var n in t)je.call(t,n)&&tr(e,n,t[n])})),xs=Ii((function(e,t){Ni(t,Is(t),e)})),ws=Ii((function(e,t,n,r){Ni(t,Is(t),e,r)})),ks=Ii((function(e,t,n,r){Ni(t,_s(t),e,r)})),As=na(or);var Es=Kr((function(e,t){e=Pe(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&va(t[0],t[1],a)&&(r=1);++n<r;)for(var o=t[n],s=Is(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===i||Uo(d,Ie[u])&&!je.call(e,u))&&(e[u]=o[u])}return e})),Ss=Kr((function(e){return e.push(i,Zi),Ct(Ms,i,e)}));function Ps(e,t,n){var r=null==e?i:Ar(e,t);return r===i?n:r}function Cs(e,t){return null!=e&&ga(e,t,Or)}var Os=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),el(rl)),Ts=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),la),Ns=Kr(Nr);function _s(e){return Yo(e)?Kn(e):Lr(e)}function Is(e){return Yo(e)?Kn(e,!0):Br(e)}var Rs=Ii((function(e,t,n){Wr(e,t,n)})),Ms=Ii((function(e,t,n,r){Wr(e,t,n,r)})),js=na((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=vi(t,e),r||(r=t.length>1),t})),Ni(e,ia(e),n),r&&(n=lr(n,7,ea));for(var i=t.length;i--;)di(n,t[i]);return n}));var Ls=na((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=jt(ia(e),(function(e){return[e]}));return t=la(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Ki(_s),Ds=Ki(Is);function Us(e){return null==e?[]:en(e,_s(e))}var zs=Li((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Ks(bs(e).toLowerCase())}function Hs(e){return(e=bs(e))&&e.replace(we,an).replace(tt,"")}var Vs=Li((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Gs=Li((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=ji("toLowerCase");var qs=Li((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Li((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var $s=Li((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=ji("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Js=Kr((function(e,t){try{return Ct(e,i,t)}catch(n){return Ko(n)?n:new se(n)}})),Zs=na((function(e,t){return Tt(t,(function(t){t=La(t),ar(e,t,To(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Di(),nl=Di(!0);function rl(e){return e}function il(e){return jr("function"==typeof e?e:lr(e,1))}var al=Kr((function(e,t){return function(n){return Nr(n,e,t)}})),ol=Kr((function(e,t){return function(n){return Nr(e,n,t)}}));function sl(e,t,n){var r=_s(t),i=kr(t,r);null!=n||es(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=kr(t,_s(t)));var a=!(es(n)&&"chain"in n)||!!n.chain,o=Qo(e);return Tt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ti(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function ll(){}var cl=Hi(jt),ul=Hi(_t),dl=Hi(Dt);function hl(e){return xa(e)?qt(La(e)):function(e){return function(t){return Ar(t,e)}}(e)}var fl=Gi(),pl=Gi(!0);function gl(){return[]}function ml(){return!1}var yl=Wi((function(e,t){return e+t}),0),bl=Xi("ceil"),vl=Wi((function(e,t){return e/t}),1),xl=Xi("floor");var wl=Wi((function(e,t){return e*t}),1),kl=Xi("round"),Al=Wi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Te(a);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Co,Un.assign=vs,Un.assignIn=xs,Un.assignInWith=ws,Un.assignWith=ks,Un.at=As,Un.before=Oo,Un.bind=To,Un.bindAll=Zs,Un.bindKey=No,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vo(e)?e:[e]},Un.chain=ho,Un.chunk=function(e,t,r){t=(r?va(e,t,r):t===i)?1:Xt(ps(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,l=n(ft(a/t));o<a;)l[s++]=ri(e,o,o+=t);return l},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Lt(Vo(r)?Ti(r):[r],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=la();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Te(a);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Ct(i[0],this,n))return Ct(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=_s(e);return function(n){return cr(n,e,t)}}(lr(e,1))},Un.constant=el,Un.countBy=go,Un.create=function(e,t){var n=zn(e);return null==t?n:ir(n,t)},Un.curry=function e(t,n,r){var a=Qi(t,8,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Un.curryRight=function e(t,n,r){var a=Qi(t,l,i,i,i,i,i,n=r?i:n);return a.placeholder=e.placeholder,a},Un.debounce=_o,Un.defaults=Es,Un.defaultsDeep=Ss,Un.defer=Io,Un.delay=Ro,Un.difference=Da,Un.differenceBy=Ua,Un.differenceWith=za,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=n||t===i?1:ps(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,0,(t=r-(t=n||t===i?1:ps(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?fi(e,la(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?fi(e,la(t,3),!0):[]},Un.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&va(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=ps(n))<0&&(n=-n>a?0:a+n),(r=r===i||r>a?a:ps(r))<0&&(r+=a),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Vo(e)?It:mr)(e,la(t,3))},Un.flatMap=function(e,t){return yr(Ao(e,t),1)},Un.flatMapDeep=function(e,t){return yr(Ao(e,t),f)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:ps(n),yr(Ao(e,t),n)},Un.flatten=Va,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:ps(t)):[]},Un.flip=function(e){return Qi(e,512)},Un.flow=tl,Un.flowRight=nl,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];ar(r,i[0],i[1])}return r},Un.functions=function(e){return null==e?[]:kr(e,_s(e))},Un.functionsIn=function(e){return null==e?[]:kr(e,Is(e))},Un.groupBy=xo,Un.initial=function(e){return(null==e?0:e.length)?ri(e,0,-1):[]},Un.intersection=Ya,Un.intersectionBy=qa,Un.intersectionWith=Xa,Un.invert=Os,Un.invertBy=Ts,Un.invokeMap=wo,Un.iteratee=il,Un.keyBy=ko,Un.keys=_s,Un.keysIn=Is,Un.map=Ao,Un.mapKeys=function(e,t){var n={};return t=la(t,3),xr(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=la(t,3),xr(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(lr(e,1))},Un.matchesProperty=function(e,t){return zr(e,lr(t,1))},Un.memoize=Mo,Un.merge=Rs,Un.mergeWith=Ms,Un.method=al,Un.methodOf=ol,Un.mixin=sl,Un.negate=jo,Un.nthArg=function(e){return e=ps(e),Kr((function(t){return Hr(t,e)}))},Un.omit=js,Un.omitBy=function(e,t){return Bs(e,jo(la(t)))},Un.once=function(e){return Oo(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Vo(t)||(t=null==t?[]:[t]),Vo(n=r?i:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Un.over=cl,Un.overArgs=Lo,Un.overEvery=ul,Un.overSome=dl,Un.partial=Bo,Un.partialRight=Fo,Un.partition=Eo,Un.pick=Ls,Un.pickBy=Bs,Un.property=hl,Un.propertyOf=function(e){return function(t){return null==e?i:Ar(e,t)}},Un.pull=Ka,Un.pullAll=Qa,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,la(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,i,n):e},Un.pullAt=Ja,Un.range=fl,Un.rangeRight=pl,Un.rearg=Do,Un.reject=function(e,t){return(Vo(e)?It:mr)(e,jo(la(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=la(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return qr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Te(a);return Kr(e,t=t===i?t:ps(t))},Un.reverse=Za,Un.sampleSize=function(e,t,n){return t=(n?va(e,t,n):t===i)?1:ps(t),(Vo(e)?Jn:Jr)(e,t)},Un.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Zr(e,t,n,r)},Un.shuffle=function(e){return(Vo(e)?Zn:ni)(e)}
vendor: 4,223 bytes, line 2
2,Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&va(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===i?r:ps(n)),ri(e,t,n)):[]},Un.sortBy=So,Un.sortedUniq=function(e){return e&&e.length?si(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?si(e,la(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&va(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=ci(t))&&ln(e)?wi(gn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Te(a);return t=null==t?0:Xt(ps(t),0),Kr((function(n){var r=n[t],i=wi(n,0,t);return r&&Lt(i,r),Ct(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===i?1:ps(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ri(e,(t=r-(t=n||t===i?1:ps(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?fi(e,la(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?fi(e,la(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Te(a);return es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_o(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=fo,Un.toArray=hs,Un.toPairs=Fs,Un.toPairsIn=Ds,Un.toPath=function(e){return Vo(e)?jt(e,La):ls(e)?[e]:Ti(ja(bs(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=Vo(e),i=r||Xo(e)||cs(e);if(t=la(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:es(e)&&Qo(a)?zn(Ye(e)):{}}return(i?Tt:xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Co(e,1)},Un.union=eo,Un.unionBy=to,Un.unionWith=no,Un.uniq=function(e){return e&&e.length?ui(e):[]},Un.uniqBy=function(e,t){return e&&e.length?ui(e,la(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=ro,Un.unzipWith=io,Un.update=function(e,t,n){return null==e?e:hi(e,t,bi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,bi(n),r)},Un.values=Us,Un.valuesIn=function(e){return null==e?[]:en(e,Is(e))},Un.without=ao,Un.words=Qs,Un.wrap=function(e,t){return Bo(bi(t),e)},Un.xor=oo,Un.xorBy=so,Un.xorWith=lo,Un.zip=co,Un.zipObject=function(e,t){return mi(e||[],t||[],tr)},Un.zipObjectDeep=function(e,t){return mi(e||[],t||[],Zr)},Un.zipWith=uo,Un.entries=Fs,Un.entriesIn=Ds,Un.extend=xs,Un.extendWith=ws,sl(Un,Un),Un.add=yl,Un.attempt=Js,Un.camelCase=zs,Un.capitalize=Ws,Un.ceil=bl,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))===n?n:0),t!==i&&(t=(t=ms(t))===t?t:0),sr(ms(e),t,n)},Un.clone=function(e){return lr(e,4)},Un.cloneDeep=function(e){return lr(e,5)},Un.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||cr(e,t,_s(t))},Un.deburr=Hs,Un.defaultTo=function(e,t){return null==e||e!==e?t:e},Un.divide=vl,Un.endsWith=function(e,t,n){e=bs(e),t=ci(t);var r=e.length,a=n=n===i?r:sr(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Un.eq=Uo,Un.escape=function(e){return(e=bs(e))&&Q.test(e)?e.replace($,on):e},Un.escapeRegExp=function(e){return(e=bs(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=Vo(e)?_t:pr;return n&&va(e,t,n)&&(t=i),r(e,la(t,3))},Un.find=mo,Un.findIndex=Wa,Un.findKey=function(e,t){return zt(e,la(t,3),xr)},Un.findLast=yo,Un.findLastIndex=Ha,Un.findLastKey=function(e,t){return zt(e,la(t,3),wr)},Un.floor=xl,Un.forEach=bo,Un.forEachRight=vo,Un.forIn=function(e,t){return null==e?e:br(e,la(t,3),Is)},Un.forInRight=function(e,t){return null==e?e:vr(e,la(t,3),Is)},Un.forOwn=function(e,t){return e&&xr(e,la(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,la(t,3))},Un.get=Ps,Un.gt=zo,Un.gte=Wo,Un.has=function(e,t){return null!=e&&ga(e,t,Cr)},Un.hasIn=Cs,Un.head=Ga,Un.identity=rl,Un.includes=function(e,t,n,r){e=Yo(e)?e:Us(e),n=n&&!r?ps(n):0;var i=e.length;return n<0&&(n=Xt(i+n,0)),ss(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ps(n);
vendor: 5,146 bytes, line 2
2return i<0&&(i=Xt(r+i,0)),Ht(e,t,i)},Un.inRange=function(e,t,n){return t=fs(t),n===i?(n=t,t=0):n=fs(n),function(e,t,n){return e>=vn(t,n)&&e<Xt(t,n)}(e=ms(e),t,n)},Un.invoke=Ns,Un.isArguments=Ho,Un.isArray=Vo,Un.isArrayBuffer=Go,Un.isArrayLike=Yo,Un.isArrayLikeObject=qo,Un.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Sr(e)==x},Un.isBuffer=Xo,Un.isDate=$o,Un.isElement=function(e){return ts(e)&&1===e.nodeType&&!is(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Yo(e)&&(Vo(e)||"string"==typeof e||"function"==typeof e.splice||Xo(e)||cs(e)||Ho(e)))return!e.length;var t=pa(e);if(t==S||t==N)return!e.size;if(Aa(e))return!Lr(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ir(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Ir(e,t,i,n):!!r},Un.isError=Ko,Un.isFinite=function(e){return"number"==typeof e&&vt(e)},Un.isFunction=Qo,Un.isInteger=Jo,Un.isLength=Zo,Un.isMap=ns,Un.isMatch=function(e,t){return e===t||Rr(e,t,ua(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Rr(e,t,ua(t),n)},Un.isNaN=function(e){return rs(e)&&e!=+e},Un.isNative=function(e){if(ka(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=rs,Un.isObject=es,Un.isObjectLike=ts,Un.isPlainObject=is,Un.isRegExp=as,Un.isSafeInteger=function(e){return Jo(e)&&e>=-9007199254740991&&e<=p},Un.isSet=os,Un.isString=ss,Un.isSymbol=ls,Un.isTypedArray=cs,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return ts(e)&&pa(e)==R},Un.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Sr(e)},Un.join=function(e,t){return null==e?"":xt.call(e,t)},Un.kebabCase=Vs,Un.last=$a,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=ps(n))<0?Xt(r+a,0):vn(a,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Wt(e,Gt,a,!0)},Un.lowerCase=Gs,Un.lowerFirst=Ys,Un.lt=us,Un.lte=ds,Un.max=function(e){return e&&e.length?gr(e,rl,Pr):i},Un.maxBy=function(e,t){return e&&e.length?gr(e,la(t,2),Pr):i},Un.mean=function(e){return Yt(e,rl)},Un.meanBy=function(e,t){return Yt(e,la(t,2))},Un.min=function(e){return e&&e.length?gr(e,rl,Fr):i},Un.minBy=function(e,t){return e&&e.length?gr(e,la(t,2),Fr):i},Un.stubArray=gl,Un.stubFalse=ml,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wl,Un.nth=function(e,t){return e&&e.length?Hr(e,ps(t)):i},Un.noConflict=function(){return gt._===this&&(gt._=Ue),this},Un.noop=ll,Un.now=Po,Un.pad=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Vi(pt(i),n)+e+Vi(ft(i),n)},Un.padEnd=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?e+Vi(t-r,n):e},Un.padStart=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?Vi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bs(e).replace(oe,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&va(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fs(e),t===i?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=kn();return vn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Xr(e,t)},Un.reduce=function(e,t,n){var r=Vo(e)?Bt:$t,i=arguments.length<3;return r(e,la(t,4),n,i,hr)},Un.reduceRight=function(e,t,n){var r=Vo(e)?Ft:$t,i=arguments.length<3;return r(e,la(t,4),n,i,fr)},Un.repeat=function(e,t,n){return t=(n?va(e,t,n):t===i)?1:ps(t),$r(bs(e),t)},Un.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,a=(t=vi(t,e)).length;for(a||(a=1,e=i);++r<a;){var o=null==e?i:e[La(t[r])];o===i&&(r=a,o=n),e=Qo(o)?o.call(e):o}return e},Un.round=kl,Un.runInContext=e,Un.sample=function(e){return(Vo(e)?Qn:Qr)(e)},Un.size=function(e){if(null==e)return 0;if(Yo(e))return ss(e)?pn(e):e.length;var t=pa(e);return t==S||t==N?e.size:Lr(e).length},Un.snakeCase=qs,Un.some=function(e,t,n){var r=Vo(e)?Dt:ii;return n&&va(e,t,n)&&(t=i),r(e,la(t,3))},Un.sortedIndex=function(e,t){return ai(e,t)},Un.sortedIndexBy=function(e,t,n){return oi(e,t,la(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Uo(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ai(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return oi(e,t,la(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(Uo(e[n],t))return n}return-1},Un.startCase=Xs,Un.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:sr(ps(n),0,e.length),t=ci(t),e.slice(n,n+t.length)==t},Un.subtract=Al,Un.sum=function(e){return e&&e.length?Kt(e,rl):0},Un.sumBy=function(e,t){return e&&e.length?Kt(e,la(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&va(e,t,n)&&(t=i),e=bs(e),t=ks({},t,r,Ji);var a=ks({},t.imports,r.imports,Ji),o=_s(a),s=en(a,o);Tt(o,(function(e){if(he.test(e))throw new se("Invalid `imports` option passed into `_.template`")}));
vendor: 7,783 bytes, line 2
2var l,c,u=0,d=t.interpolate||ke,h="__p += '",f=Ce((t.escape||ke).source+"|"+d.source+"|"+(d===ee?pe:ke).source+"|"+(t.evaluate||ke).source+"|$","g"),p="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(f,(function(t,n,r,i,a,o){return r||(r=i),h+=e.slice(u,o).replace(Ae,sn),n&&(l=!0,h+="' +\n__e("+n+") +\n'"),a&&(c=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=o+t.length,t})),h+="';\n";var g=je.call(t,"variable")&&t.variable;if(g){if(he.test(g))throw new se("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(c?h.replace(G,""):h).replace(Y,"$1").replace(q,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=Js((function(){return Ee(o,p+"return "+h).apply(i,s)}));if(m.source=h,Ko(m))throw m;return m},Un.times=function(e,t){if((e=ps(e))<1||e>p)return[];var n=m,r=vn(e,m);t=la(t),e-=m;for(var i=Qt(r,t);++n<e;)t(n);return i},Un.toFinite=fs,Un.toInteger=ps,Un.toLength=gs,Un.toLower=function(e){return bs(e).toLowerCase()},Un.toNumber=ms,Un.toSafeInteger=function(e){return e?sr(ps(e),-9007199254740991,p):0===e?e:0},Un.toString=bs,Un.toUpper=function(e){return bs(e).toUpperCase()},Un.trim=function(e,t,n){if((e=bs(e))&&(n||t===i))return Jt(e);if(!e||!(t=ci(t)))return e;var r=gn(e),a=gn(t);return wi(r,nn(r,a),rn(r,a)+1).join("")},Un.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ci(t)))return e;var r=gn(e);return wi(r,0,rn(r,gn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===i))return e.replace(oe,"");if(!e||!(t=ci(t)))return e;var r=gn(e);return wi(r,nn(r,gn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(es(t)){var a="separator"in t?t.separator:a;n="length"in t?ps(t.length):n,r="omission"in t?ci(t.omission):r}var o=(e=bs(e)).length;if(ln(e)){var s=gn(e);o=s.length}if(n>=o)return e;var l=n-pn(r);if(l<1)return r;var c=s?wi(s,0,l).join(""):e.slice(0,l);if(a===i)return c+r;if(s&&(l+=c.length-l),as(a)){if(e.slice(l).search(a)){var u,d=c;for(a.global||(a=Ce(a.source,bs(ge.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(ci(a),l)!=l){var f=c.lastIndexOf(a);f>-1&&(c=c.slice(0,f))}return c+r},Un.unescape=function(e){return(e=bs(e))&&K.test(e)?e.replace(X,yn):e},Un.uniqueId=function(e){var t=++Le;return bs(e)+t},Un.upperCase=$s,Un.upperFirst=Ks,Un.each=bo,Un.eachRight=vo,Un.first=Ga,sl(Un,function(){var e={};return xr(Un,(function(t,n){je.call(Un.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Un.VERSION="4.18.1",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Tt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:Xt(ps(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:la(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(rl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Nr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(jo(la(e)))},Vn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},xr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Un[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Vn,c=s[0],u=l||Vo(t),d=function(e){var t=a.apply(Un,Lt([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,g=l&&!f;if(!o&&u){t=g?t:new Vn(this);var m=e.apply(t,s);return m.__actions__.push({func:fo,args:[d],thisArg:i}),new Hn(m,h)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Vo(i)?i:[],e)}return this[n]((function(n){return t.apply(Vo(n)?n:[],e)}))}})),xr(Vn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";je.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[Ui(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Vo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=vn(t,e+o);break;case"takeRight":e=Xt(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,h=0,f=vn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return pi(e,this.__actions__);var p=[];e:for(;l--&&h<f;){for(var g=-1,m=e[c+=t];++g<d;){var y=u[g],b=y.iteratee,v=y.type,x=b(m);if(2==v)m=x;else if(!x){if(1==v)continue e;break e}}p[h++]=m}return p},Un.prototype.at=po,Un.prototype.chain=function(){return ho(this)},Un.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Fa(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:fo,args:[Za],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(Za)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Qe&&(Un.prototype[Qe]=function(){return this}),Un}();gt._=bn,(r=function(){return bn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},41763:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}}
2,41939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const r=n(85125),i=n(50638);const a=i.bytesToNumberBE;function o(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function s(e,t){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function l(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected")}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function u(e,t,n,r){l(e),l(t),c(n),t.length>255&&(t=r((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:a,blockLen:u}=r,d=Math.ceil(n/a);if(d>255)throw new Error("Invalid xmd length");const h=(0,i.concatBytes)(t,o(t.length,1)),f=o(0,u),p=o(n,2),g=new Array(d),m=r((0,i.concatBytes)(f,e,p,o(0,1),h));g[0]=r((0,i.concatBytes)(m,o(1,1),h));for(let l=1;l<=d;l++){const e=[s(m,g[l-1]),o(l+1,1),h];g[l]=r((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...g).slice(0,n)}function d(e,t,n,r,a){if(l(e),l(t),c(n),t.length>255){const e=Math.ceil(2*r/8);t=a.create({dkLen:e}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:n}).update(e).update(o(n,2)).update(t).update(o(t.length,1)).digest()}function h(e,t,n){(0,i.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:s,m:h,hash:f,expand:p,DST:g}=n;l(e),c(t);const m=function(e){if(e instanceof Uint8Array)return e;if("string"===typeof e)return(0,i.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(g),y=o.toString(2).length,b=Math.ceil((y+s)/8),v=t*h*b;let x;if("xmd"===p)x=u(e,m,v,f);else if("xof"===p)x=d(e,m,v,s,f);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');x=e}const w=new Array(t);for(let i=0;i<t;i++){const e=new Array(h);for(let t=0;t<h;t++){const n=b*(t+i*h),s=x.subarray(n,n+b);e[t]=(0,r.mod)(a(s),o)}w[i]=e}return w}t.expand_message_xmd=u,t.expand_message_xof=d,t.hash_to_field=h,t.isogenyMap=function(e,t){const n=t.map((e=>Array.from(e).reverse()));return(t,r)=>{const[i,a,o,s]=n.map((n=>n.reduce(((n,r)=>e.add(e.mul(n,t),r)))));return t=e.div(i,a),r=e.mul(r,e.div(o,s)),{x:t,y:r}}},t.createHasher=function(e,t,n){if("function"!==typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(r,i){const a=h(r,2,{...n,DST:n.DST,...i}),o=e.fromAffine(t(a[0])),s=e.fromAffine(t(a[1])),l=o.add(s).clearCofactor();return l.assertValidity(),l},encodeToCurve(r,i){const a=h(r,1,{...n,DST:n.encodeDST,...i}),o=e.fromAffine(t(a[0])).clearCofactor();return o.assertValidity(),o}}}},41971:(e,t,n)=>{var r=n(20927);e.exports=function(e,t,n,i){return r(e,(function(e,r,a){t(i,e,n(e),a)})),i}},42106:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},42155:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=n(76989);e.exports=a.call(r,i)},42311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const r=n(69687),i=n(24839),a=n(3794);t.getCreateAddress=function(e){const t=(0,a.getAddress)(e.from);let n=(0,i.getBigInt)(e.nonce,"tx.nonce").toString(16);return n="0"===n?"0x":n.length%2?"0x0"+n:"0x"+n,(0,a.getAddress)((0,i.dataSlice)((0,r.keccak256)((0,i.encodeRlp)([t,n])),12))},t.getCreate2Address=function(e,t,n){const o=(0,a.getAddress)(e),s=(0,i.getBytes)(t,"salt"),l=(0,i.getBytes)(n,"initCodeHash");return(0,i.assertArgument)(32===s.length,"salt must be 32 bytes","salt",t),(0,i.assertArgument)(32===l.length,"initCodeHash must be 32 bytes","initCodeHash",n),(0,a.getAddress)((0,i.dataSlice)((0,r.keccak256)((0,i.concat)(["0xff",o,s,l])),12))}},42434:(e,t,n)=>{var r=n(54467);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},42459:(e,t,n)=>{var r=n(97101);e.exports=function(e,t,n){r(e,t),t.set(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},42918:(e,t,n)=>{"use strict";n.d(t,{c:()=>c});var r=n(6169);const i=2n**256n-1n;var a=n(58418),o=n(20288),s=n(85038),l=n(78753);function c(e){const{account:t,gasPrice:n,maxFeePerGas:c,maxPriorityFeePerGas:u,to:d}=e,h=t?(0,r.J)(t):void 0;if(h&&!(0,l.P)(h.address))throw new a.M({address:h.address});if(d&&!(0,l.P)(d))throw new a.M({address:d});if("undefined"!==typeof n&&("undefined"!==typeof c||"undefined"!==typeof u))throw new s.n3;if(c&&c>i)throw new o.BG({maxFeePerGas:c});if(u&&c&&u>c)throw new o.lN({maxFeePerGas:c,maxPriorityFeePerGas:u})}}
2,42923:(e,t,n)=>{"use strict";var r=n(44796),i=n(82599),a=n(10715),o=n(48506),s=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,d=a(o(t)),h=i(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=l(d,h))<55296||r>56319||h+1===f||(u=l(d,h+1))<56320||u>57343?e?s(d,h):r:e?c(d,h,h+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},42970:(e,t,n)=>{"use strict";var r=n(2870),i=n(51889),a=n(38635),o=n(44330),s=TypeError,l="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,u){var d=i(t),h=a(d),f=o(d);if(r(n),0===f&&c<2)throw new s(l);var p=e?f-1:0,g=e?-1:1;if(c<2)for(;;){if(p in h){u=h[p],p+=g;break}if(p+=g,e?p<0:f<=p)throw new s(l)}for(;e?p>=0:f>p;p+=g)p in h&&(u=n(u,h[p],p,d));return u}};e.exports={left:c(!1),right:c(!0)}},43088:(e,t,n)=>{var r="Expected a function",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),h=Object.prototype.toString,f=Math.max,p=Math.min,g=function(){return d.Date.now()};function m(e,t,n){var i,a,o,s,l,c,u=0,d=!1,h=!1,m=!0;if("function"!=typeof e)throw new TypeError(r);function v(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n)}function x(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-u>=o}function w(){var e=g();if(x(e))return k(e);l=setTimeout(w,function(e){var n=t-(e-c);return h?p(n,o-(e-u)):n}(e))}function k(e){return l=void 0,m&&i?v(e):(i=a=void 0,s)}function A(){var e=g(),n=x(e);if(i=arguments,a=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),d?v(e):s}(c);if(h)return l=setTimeout(w,t),v(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=b(t)||0,y(n)&&(d=!!n.leading,o=(h="maxWait"in n)?f(b(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m),A.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=a=l=void 0},A.flush=function(){return void 0===l?s:k(g())},A}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=o.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(r);return y(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),m(e,t,{leading:i,maxWait:t,trailing:a})}},43274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;const r=n(24839);t.encodeBytes32String=function(e){const t=(0,r.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,r.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){const t=(0,r.getBytes)(e,"bytes");if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let n=31;for(;0===t[n-1];)n--;return(0,r.toUtf8String)(t.slice(0,n))}},43488:(e,t,n)=>{"use strict";var r=n(93959);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
2;return n.PropTypes=n,n}},43626:(e,t,n)=>{"use strict";var r=n(76040),i=n(251);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},43629:(e,t,n)=>{"use strict";var r=n(38259),i=n(96709),a=n(29460),o=n(23887);e.exports=function(e){var t=a(arguments),n=e.length-(arguments.length-1);return r(t,1+(n>0?n:0),!0)},i?i(e.exports,"apply",{value:o}):e.exports.apply=o},43693:(e,t,n)=>{var r=n(77736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},44102:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},44104:(e,t,n)=>{var r=n(1404),i=n(87946),a=n(15321),o=n(65916),s=n(29794),l=n(14243),c=n(92535);e.exports=function(e,t){return o(e)&&s(t)?l(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},44206:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},44330:(e,t,n)=>{"use strict";var r=n(67834);e.exports=function(e){return r(e.length)}},44349:(e,t,n)=>{var r=n(45099);e.exports=function(e){return r(this.__data__,e)>-1}},44414:(e,t,n)=>{"use strict";e.exports=n(32654)},44469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const r=n(24839),i=n(3794);function a(e){return e&&"function"===typeof e.getAddress}async function o(e,t){const n=await t;return null!=n&&"0x0000000000000000000000000000000000000000"!==n||((0,r.assert)("string"!==typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,r.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,i.getAddress)(n)}t.isAddressable=a,t.isAddress=function(e){try{return(0,i.getAddress)(e),!0}catch(t){}return!1},t.resolveAddress=function(e,t){return"string"===typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,i.getAddress)(e):((0,r.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),o(e,t.resolveName(e))):a(e)?o(e,e.getAddress()):e&&"function"===typeof e.then?o(e,e):void(0,r.assertArgument)(!1,"unsupported addressable value","target",e)}},44493:(e,t,n)=>{"use strict";n.d(t,{X:()=>y,J:()=>m});var r=n(59863),i=n(71125),a=n(89676),o=n(21273),s=n(66455),l=n(70539),c=n(69679);var u=n(82651),d=n(10003),h=n(63898);const f="/docs/contract/encodeErrorResult";function p(e){const{abi:t,errorName:n,args:r}=e;let i=t[0];if(n){const e=(0,h.iY)({abi:t,args:r,name:n});if(!e)throw new a.yy(n,{docsPath:f});i=e}if("error"!==i.type)throw new a.yy(void 0,{docsPath:f});const o=(0,c.B)(i),l=(0,s.V)(o);let p="0x";if(r&&r.length>0){if(!i.inputs)throw new a.ZP(i.name,{docsPath:f});p=(0,d.h)(i.inputs,r)}return(0,u.aP)([l,p])}const g="/docs/contract/encodeFunctionResult";const m="x-batch-gateway:true";async function y(e){const{data:t,ccipRequest:n}=e,{args:[u]}=function(e){const{abi:t,data:n}=e,r=(0,o.di)(n,0,4),i=t.find((e=>"function"===e.type&&r===(0,s.V)((0,c.B)(e))));if(!i)throw new a.EB(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:i.name,args:"inputs"in i&&i.inputs&&i.inputs.length>0?(0,l.n)(i.inputs,(0,o.di)(n,4)):void 0}}({abi:r.b2,data:t}),f=[],m=[];return await Promise.all(u.map((async(e,t)=>{try{m[t]=await n(e),f[t]=!1}catch(o){f[t]=!0,m[t]="HttpRequestError"===(a=o).name&&a.status?p({abi:r.b2,errorName:"HttpError",args:[a.status,a.shortMessage]}):p({abi:[i.Mc],errorName:"Error",args:["shortMessage"in a?a.shortMessage:a.message]})}var a}))),function(e){const{abi:t,functionName:n,result:r}=e;let i=t[0];if(n){const e=(0,h.iY)({abi:t,name:n});if(!e)throw new a.Iz(n,{docsPath:g});i=e}if("function"!==i.type)throw new a.Iz(void 0,{docsPath:g});if(!i.outputs)throw new a.MR(i.name,{docsPath:g});const o=(()=>{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[r];if(Array.isArray(r))return r;throw new a.dm(r)})();return(0,d.h)(i.outputs,o)}({abi:r.b2,functionName:"query",result:[f,m]})}},44710:(e,t,n)=>{var r=n(85661);e.exports=function(){this.__data__=new r,this.size=0}},44754:(e,t)=>
2{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},44796:(e,t,n)=>{"use strict";var r=n(15116),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=r?o:function(e){return function(){return a.apply(e,arguments)}}},45073:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},45099:(e,t,n)=>{var r=n(44206);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},45211:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}},45266:(e,t,n)=>{"use strict";var r=n(66954);e.exports=r.getPrototypeOf||null},46016:(e,t,n)=>{"use strict";var r=n(251),i=n(28057),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},46566:(e,t)=>{"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r<e.length;r++)n|=e[r]^t[r];return 1&n-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},46635:(e,t,n)=>{"use strict";var r=n(29310),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},46671:(e,t,n)=>{"use strict";n.d(t,{p:()=>u});var r=n(82651),i=n(10003),a=n(89676),o=n(66455),s=n(69679),l=n(63898);const c="/docs/contract/encodeFunctionData";function u(e){const{args:t}=e,{abi:n,functionName:u}=1===e.abi.length&&null!==(d=e.functionName)&&void 0!==d&&d.startsWith("0x")?e:function(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const e=(0,l.iY)({abi:t,args:n,name:r});if(!e)throw new a.Iz(r,{docsPath:c});i=e}if("function"!==i.type)throw new a.Iz(void 0,{docsPath:c});return{abi:[i],functionName:(0,o.V)((0,s.B)(i))}}(e);var d;const h=n[0],f=u,p="inputs"in h&&h.inputs?(0,i.h)(h.inputs,null!==t&&void 0!==t?t:[]):void 0;return(0,r.aP)([f,null!==p&&void 0!==p?p:"0x"])}},46851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const r=n(95070);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=n(99432);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const n=new Uint8Array(e);for(let r=0;r<n.length;r++)n[r]=t[r];return(0,r.wipe)(t),n}}},46860:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},47281:(e,t,n)=>{"use strict";n.d(t,{xW:()=>v,sH:()=>qe,dI:()=>Xe});var r={};n.r(r),n.d(r,{identity:()=>_});var i={};n.r(i),n.d(i,{base2:()=>I});var a={};n.r(a),n.d(a,{base8:()=>R});var o={};n.r(o),n.d(o,{base10:()=>M});var s={};n.r(s),n.d(s,{base16:()=>j,base16upper:()=>L});var l={};n.r(l),n.d(l,{base32:()=>B,base32hex:()=>z,base32hexpad:()=>H,base32hexpadupper:()=>V,base32hexupper:()=>W,base32pad:()=>D,base32padupper:()=>U,base32upper:()=>F,base32z:()=>G});var c={};n.r(c),n.d(c,{base36:()=>Y,base36upper:()=>q});var u={};n.r(u),n.d(u,{base58btc:()=>X,base58flickr:()=>$});var d={};n.r(d),n.d(d,{base64:()=>K,base64pad:()=>Q,base64url:()=>J,base64urlpad:()=>Z});var h={};n.r(h),n.d(h,{base256emoji:()=>re});var f={};n.r(f),n.d(f,{sha256:()=>Oe,sha512:()=>Te});var p={};n.r(p),n.d(p,{identity:()=>_e});var g={};n.r(g),n.d(g,{code:()=>Re,decode:()=>je,encode:()=>Me,name:()=>Ie});var m={};function y(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?y(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function v(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const n=b(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return y(n)}
2n.r(m),n.d(m,{code:()=>De,decode:()=>ze,encode:()=>Ue,name:()=>Fe});var x=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var a=e.charAt(i),o=a.charCodeAt(0);if(255!==n[o])throw new TypeError(a+" is ambiguous");n[o]=i}var s=e.length,l=e.charAt(0),c=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(e){if("string"!==typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===l;)r++,t++;for(var a=(e.length-t)*c+1>>>0,o=new Uint8Array(a);e[t];){var u=n[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=a-1;(0!==u||d<i)&&-1!==h;h--,d++)u+=s*o[h]>>>0,o[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var f=a-i;f!==a&&0===o[f];)f++;for(var p=new Uint8Array(r+(a-f)),g=r;f!==a;)p[g++]=o[f++];return p}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,a=t.length;i!==a&&0===t[i];)i++,n++;for(var o=(a-i)*u+1>>>0,c=new Uint8Array(o);i!==a;){for(var d=t[i],h=0,f=o-1;(0!==d||h<r)&&-1!==f;f--,h++)d+=256*c[f]>>>0,c[f]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var p=o-r;p!==o&&0===c[p];)p++;for(var g=l.repeat(n);p<o;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw new Error(`Non-${t} character`)}}};const w=x,k=(new Uint8Array(0),e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")});class A{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class E{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return P(this,e)}}class S{constructor(e){this.decoders=e}or(e){return P(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const P=(e,t)=>new S({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class C{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new A(e,t,n),this.decoder=new E(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const O=e=>{let{name:t,prefix:n,encode:r,decode:i}=e;return new C(t,n,r,i)},T=e=>{let{prefix:t,name:n,alphabet:r}=e;const{encode:i,decode:a}=w(r,n);return O({prefix:t,name:n,encode:i,decode:e=>k(a(e))})},N=e=>{let{name:t,prefix:n,bitsPerChar:r,alphabet:i}=e;return O({prefix:n,name:t,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<<n)-1;let a="",o=0,s=0;for(let l=0;l<e.length;++l)for(s=s<<8|e[l],o+=8;o>n;)o-=n,a+=t[i&s>>o];if(o&&(a+=t[i&s<<n-o]),r)for(;a.length*n&7;)a+="=";return a})(e,i,r),decode:e=>((e,t,n,r)=>{const i={};for(let u=0;u<t.length;++u)i[t[u]]=u;let a=e.length;for(;"="===e[a-1];)--a;const o=new Uint8Array(a*n/8|0);let s=0,l=0,c=0;for(let u=0;u<a;++u){const t=i[e[u]];if(void 0===t)throw new SyntaxError(`Non-${r} character`);l=l<<n|t,s+=n,s>=8&&(s-=8,o[c++]=255&l>>s)}if(s>=n||255&l<<8-s)throw new SyntaxError("Unexpected end of data");return o}
2)(e,i,r,t)})},_=O({prefix:"\0",name:"identity",encode:e=>{return t=e,(new TextDecoder).decode(t);var t},decode:e=>(e=>(new TextEncoder).encode(e))(e)}),I=N({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),R=N({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),M=T({prefix:"9",name:"base10",alphabet:"0123456789"}),j=N({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),L=N({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),B=N({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),F=N({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),D=N({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),U=N({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),z=N({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),W=N({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),H=N({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),V=N({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),G=N({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Y=T({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),q=T({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),X=T({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),$=T({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),K=N({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Q=N({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),J=N({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Z=N({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ee=Array.from("\ud83d\ude80\ud83e\ude90\u2604\ud83d\udef0\ud83c\udf0c\ud83c\udf11\ud83c\udf12\ud83c\udf13\ud83c\udf14\ud83c\udf15\ud83c\udf16\ud83c\udf17\ud83c\udf18\ud83c\udf0d\ud83c\udf0f\ud83c\udf0e\ud83d\udc09\u2600\ud83d\udcbb\ud83d\udda5\ud83d\udcbe\ud83d\udcbf\ud83d\ude02\u2764\ud83d\ude0d\ud83e\udd23\ud83d\ude0a\ud83d\ude4f\ud83d\udc95\ud83d\ude2d\ud83d\ude18\ud83d\udc4d\ud83d\ude05\ud83d\udc4f\ud83d\ude01\ud83d\udd25\ud83e\udd70\ud83d\udc94\ud83d\udc96\ud83d\udc99\ud83d\ude22\ud83e\udd14\ud83d\ude06\ud83d\ude44\ud83d\udcaa\ud83d\ude09\u263a\ud83d\udc4c\ud83e\udd17\ud83d\udc9c\ud83d\ude14\ud83d\ude0e\ud83d\ude07\ud83c\udf39\ud83e\udd26\ud83c\udf89\ud83d\udc9e\u270c\u2728\ud83e\udd37\ud83d\ude31\ud83d\ude0c\ud83c\udf38\ud83d\ude4c\ud83d\ude0b\ud83d\udc97\ud83d\udc9a\ud83d\ude0f\ud83d\udc9b\ud83d\ude42\ud83d\udc93\ud83e\udd29\ud83d\ude04\ud83d\ude00\ud83d\udda4\ud83d\ude03\ud83d\udcaf\ud83d\ude48\ud83d\udc47\ud83c\udfb6\ud83d\ude12\ud83e\udd2d\u2763\ud83d\ude1c\ud83d\udc8b\ud83d\udc40\ud83d\ude2a\ud83d\ude11\ud83d\udca5\ud83d\ude4b\ud83d\ude1e\ud83d\ude29\ud83d\ude21\ud83e\udd2a\ud83d\udc4a\ud83e\udd73\ud83d\ude25\ud83e\udd24\ud83d\udc49\ud83d\udc83\ud83d\ude33\u270b\ud83d\ude1a\ud83d\ude1d\ud83d\ude34\ud83c\udf1f\ud83d\ude2c\ud83d\ude43\ud83c\udf40\ud83c\udf37\ud83d\ude3b\ud83d\ude13\u2b50\u2705\ud83e\udd7a\ud83c\udf08\ud83d\ude08\ud83e\udd18\ud83d\udca6\u2714\ud83d\ude23\ud83c\udfc3\ud83d\udc90\u2639\ud83c\udf8a\ud83d\udc98\ud83d\ude20\u261d\ud83d\ude15\ud83c\udf3a\ud83c\udf82\ud83c\udf3b\ud83d\ude10\ud83d\udd95\ud83d\udc9d\ud83d\ude4a\ud83d\ude39\ud83d\udde3\ud83d\udcab\ud83d\udc80\ud83d\udc51\ud83c\udfb5\ud83e\udd1e\ud83d\ude1b\ud83d\udd34\ud83d\ude24\ud83c\udf3c\ud83d\ude2b\u26bd\ud83e\udd19\u2615\ud83c\udfc6\ud83e\udd2b\ud83d\udc48\ud83d\ude2e\ud83d\ude46\ud83c\udf7b\ud83c\udf43\ud83d\udc36\ud83d\udc81\ud83d\ude32\ud83c\udf3f\ud83e\udde1\ud83c\udf81\u26a1\ud83c\udf1e\ud83c\udf88\u274c\u270a\ud83d\udc4b\ud83d\ude30\ud83e\udd28\ud83d\ude36\ud83e\udd1d\ud83d\udeb6\ud83d\udcb0\ud83c\udf53\ud83d\udca2\ud83e\udd1f\ud83d\ude41\ud83d\udea8\ud83d\udca8\ud83e\udd2c\u2708\ud83c\udf80\ud83c\udf7a\ud83e\udd13\ud83d\ude19\ud83d\udc9f\ud83c\udf31\ud83d\ude16\ud83d\udc76\ud83e\udd74\u25b6\u27a1\u2753\ud83d\udc8e\ud83d\udcb8\u2b07\ud83d\ude28\ud83c\udf1a\ud83e\udd8b\ud83d\ude37\ud83d\udd7a\u26a0\ud83d\ude45\ud83d\ude1f\ud83d\ude35\ud83d\udc4e\ud83e\udd32\ud83e\udd20\ud83e\udd27\ud83d\udccc\ud83d\udd35\ud83d\udc85\ud83e\uddd0\ud83d\udc3e\ud83c\udf52\ud83d\ude17\ud83e\udd11\ud83c\udf0a\ud83e\udd2f\ud83d\udc37\u260e\ud83d\udca7\ud83d\ude2f\ud83d\udc86\ud83d\udc46\ud83c\udfa4\ud83d\ude47\ud83c\udf51\u2744\ud83c\udf34\ud83d\udca3\ud83d\udc38\ud83d\udc8c\ud83d\udccd\ud83e\udd40\ud83e\udd22\ud83d\udc45\ud83d\udca1\ud83d\udca9\ud83d\udc50\ud83d\udcf8\ud83d\udc7b\ud83e\udd10\ud83e\udd2e\ud83c\udfbc\ud83e\udd75\ud83d\udea9\ud83c\udf4e\ud83c\udf4a\ud83d\udc7c\ud83d\udc8d\ud83d\udce3\ud83e\udd42"),te=ee.reduce(((e,t,n)=>(e[n]=t,e)),[]),ne=ee.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]);const re=O({prefix:"\ud83d\ude80",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=te[t]),"")},decode:function(e){const t=[];for(const n of e){const e=ne[n.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${n}`);t.push(e)}return new Uint8Array(t)}});var ie=function e(t,n,r){n=n||[];var i=r=r||0;for(;t>=se;)n[r++]=255&t|ae,t/=128;for(;t&oe;)n[r++]=255&t|ae,t>>>=7;return n[r]=0|t,e.bytes=r-i+1,n},ae=128,oe=-128,se=Math.pow(2,31);
2var le=function e(t,n){var r,i=0,a=0,o=n=n||0,s=t.length;do{if(o>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[o++],i+=a<28?(r&ue)<<a:(r&ue)*Math.pow(2,a),a+=7}while(r>=ce);return e.bytes=o-n,i},ce=128,ue=127;var de=Math.pow(2,7),he=Math.pow(2,14),fe=Math.pow(2,21),pe=Math.pow(2,28),ge=Math.pow(2,35),me=Math.pow(2,42),ye=Math.pow(2,49),be=Math.pow(2,56),ve=Math.pow(2,63);const xe={encode:ie,decode:le,encodingLength:function(e){return e<de?1:e<he?2:e<fe?3:e<pe?4:e<ge?5:e<me?6:e<ye?7:e<be?8:e<ve?9:10}},we=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return xe.encode(e,t,n),t},ke=e=>xe.encodingLength(e),Ae=(e,t)=>{const n=t.byteLength,r=ke(e),i=r+ke(n),a=new Uint8Array(i+n);return we(e,a,0),we(n,a,r),a.set(t,i),new Ee(e,n,t,a)};class Ee{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}const Se=e=>{let{name:t,code:n,encode:r}=e;return new Pe(t,n,r)};class Pe{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?Ae(this.code,t):t.then((e=>Ae(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Ce=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Oe=Se({name:"sha2-256",code:18,encode:Ce("SHA-256")}),Te=Se({name:"sha2-512",code:19,encode:Ce("SHA-512")}),Ne=k,_e={code:0,name:"identity",encode:Ne,digest:e=>Ae(0,Ne(e))},Ie="raw",Re=85,Me=e=>k(e),je=e=>k(e),Le=new TextEncoder,Be=new TextDecoder,Fe="json",De=512,Ue=e=>Le.encode(JSON.stringify(e)),ze=e=>JSON.parse(Be.decode(e));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID");const We={...r,...i,...a,...o,...s,...l,...c,...u,...d,...h};function He(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const Ve=He("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),Ge=He("ascii","a",(e=>{let t="a";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}),(e=>{const t=b((e=e.substring(1)).length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t})),Ye={utf8:Ve,"utf-8":Ve,hex:We.base16,latin1:Ge,ascii:Ge,binary:Ge,...We};function qe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";const n=Ye[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${e}`):y(globalThis.Buffer.from(e,"utf-8"))}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";const n=Ye[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},47709:(e,t,n)=>{"use strict";var r=n(56412),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},47734:(e,t,n)=>{"use strict";var r=n(96709),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},48246:(e,t,n)=>{var r=n(14759).Uint8Array;e.exports=r},48283:(e,t,n)=>{"use strict";n.d(t,{I:()=>i,R:()=>r});const r=e=>e,i=e=>e},48438:(e,t,n)=>{"use strict";var r=n(91470),i=n(95070),a=function(){function e(e,t,n,i){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var a=r.hmac(this._hash,n,t);this._hmac=new r.HMAC(e,a),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>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},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n<t.length;n++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[n]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),i.wipe(this._buffer),i.wipe(this._counter),this._bufpos=0},e}();t.i=a},48506:(e,t,n)=>{"use strict";var r=n(73529),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},48607:function(e,t,n){e.exports=function(e){"use strict";function t(e,t){return e(t={exports:{}},t.exports),t.exports}function n(e){return e&&e.default||e}e=e&&e.hasOwnProperty("default")?e.default:e;var r={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 6,636 bytes, line 2
2ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},i=t((function(e){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[r[n]]=n);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in i)if(i.hasOwnProperty(a)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=i[a].channels,s=i[a].labels;delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:o}),Object.defineProperty(i[a],"labels",{value:s})}function l(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}i.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o;return s===o?t=0:r===s?t=(i-a)/l:i===s?t=2+(a-r)/l:a===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},i.rgb.hsv=function(e){var t,n,r,i,a,o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?i=a=0:(a=u/c,t=d(o),n=d(s),r=d(l),o===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*c]},i.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var n=t[e];if(n)return n;var i,a=1/0;for(var o in r)if(r.hasOwnProperty(o)){var s=l(e,r[o]);s<a&&(a=s,i=o)}return i},i.keyword.rgb=function(e){return r[e]},i.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},i.hsl.rgb=function(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(r=o+1/3*-(c-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*a;return i},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=a<=1?a:2-a,[t,100*(0===r?2*i/(a+i):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){var t,n,r,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[i,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},i.hwb.rgb=function(e){var t,n,r,i,a,o,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),0!==(1&t)&&(r=1-r),i=c+r*((n=1-u)-c),t){default:case 6:case 0:a=n,o=i,s=c;break;case 1:a=i,o=n,s=c;break;case 2:a=c,o=n,s=i;break;case 3:a=c,o=i,s=n;break;case 4:a=i,o=c,s=n;break;case 5:a=n,o=c,s=i}return[255*a,255*o,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},i.xyz.rgb=function(e){var t,n,r,i=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*i+1.8758*a+.0415*o,r=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},i.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},i.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];
vendor: 27,683 bytes, line 2
2return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.max(Math.max(n,r),i),o=Math.min(Math.min(n,r),i),s=a-o;return t=s<=0?0:a===n?(r-i)/s%6:a===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i=[0,0,0],a=t%1*6,o=a%1,s=1-o,l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function a(){for(var e={},t=Object.keys(i),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function o(e){var t=a(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),o=Object.keys(i[r]),s=o.length,l=0;l<s;l++){var c=o[l],u=t[c];-1===u.distance&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(c))}return t}function s(e,t){return function(n){return t(e(n))}}function l(e,t){for(var n=[t[e].parent,e],r=i[t[e].parent][e],a=t[e].parent;t[a].parent;)n.unshift(t[a].parent),r=s(i[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}i.rgb,i.hsl,i.hsv,i.hwb,i.cmyk,i.xyz,i.lab,i.lch,i.hex,i.keyword,i.ansi16,i.ansi256,i.hcg,i.apple,i.gray;var c=function(e){for(var t=o(e),n={},r=Object.keys(t),i=r.length,a=0;a<i;a++){var s=r[a];null!==t[s].parent&&(n[s]=l(s,t))}return n},u={};function d(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function h(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Object.keys(i).forEach((function(e){u[e]={},Object.defineProperty(u[e],"channels",{value:i[e].channels}),Object.defineProperty(u[e],"labels",{value:i[e].labels});var t=c(e);Object.keys(t).forEach((function(n){var r=t[n];u[e][n]=h(r),u[e][n].raw=d(r)}))}));var f=u,p={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},g={getRgba:m,getHsla:y,getRgb:v,getHsl:x,getHwb:b,getAlpha:w,hexString:k,rgbString:A,rgbaString:E,percentString:S,percentaString:P,hslString:C,hslaString:O,hwbString:T,keyword:N};function m(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,a=/(\w+)/,o=[0,0,0],s=1,l=e.match(t),c="";if(l){c=(l=l[1])[3];for(var u=0;u<o.length;u++)o[u]=parseInt(l[u]+l[u],16);c&&(s=Math.round(parseInt(c+c,16)/255*100)/100)}else if(l=e.match(n)){for(c=l[2],l=l[1],u=0;u<o.length;u++)o[u]=parseInt(l.slice(2*u,2*u+2),16);c&&(s=Math.round(parseInt(c,16)/255*100)/100)}else if(l=e.match(r)){for(u=0;u<o.length;u++)o[u]=parseInt(l[u+1]);s=parseFloat(l[4])}else if(l=e.match(i)){for(u=0;u<o.length;u++)o[u]=Math.round(2.55*parseFloat(l[u+1]));s=parseFloat(l[4])}else if(l=e.match(a)){if("transparent"==l[1])return[0,0,0,0];if(!(o=p[l[1]]))return}for(u=0;u<o.length;u++)o[u]=_(o[u],0,255);return s=s||0==s?_(s,0,1):1,o[3]=s,o}}function y(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[_(parseInt(n[1]),0,360),_(parseFloat(n[2]),0,100),_(parseFloat(n[3]),0,100),_(isNaN(r)?1:r,0,1)]}}}function b(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[_(parseInt(n[1]),0,360),_(parseFloat(n[2]),0,100),_(parseFloat(n[3]),0,100),_(isNaN(r)?1:r,0,1)]}}}function v(e){var t=m(e);return t&&t.slice(0,3)}function x(e){var t=y(e);return t&&t.slice(0,3)}function w(e){var t=m(e);return t||(t=y(e))||(t=b(e))?t[3]:void 0}function k(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+I(e[0])+I(e[1])+I(e[2])+(t>=0&&t<1?I(Math.round(255*t)):"")}function A(e,t){return t<1||e[3]&&e[3]<1?E(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function E(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function S(e,t){return t<1||e[3]&&e[3]<1?P(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"}function P(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function C(e,t){return t<1||e[3]&&e[3]<1?O(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function O(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function T(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function N(e){return R[e.slice(0,3)]}function _(e,t,n){return Math.min(Math.max(t,e),n)}function I(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var R={};for(var M in p)R[p[M]]=M;var j=function(e){return e instanceof j?e:this instanceof j?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof e?(t=g.getRgba(e))?this.setValues("rgb",t):(t=g.getHsla(e))?this.setValues("hsl",t):(t=g.getHwb(e))&&this.setValues("hwb",t):"object"===typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new j(e);var t};j.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return g.hexString(this.values.rgb)},rgbString:function(){return g.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return g.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return g.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return g.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return g.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return g.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return g.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,i=void 0===t?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new j,r=this.values,i=n.values;for(var a in r)r.hasOwnProperty(a)&&(e=r[a],"[object Array]"===(t={}.toString.call(e))?i[a]=e.slice(0):"[object Number]"===t?i[a]=e:console.error("unexpected color value:",e));return n}},j.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},j.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},j.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},j.prototype.setValues=function(e,t){var n,r,i=this.values,a=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)i[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)i[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[a[e][0]]){var l=a[e];for(n=0;n<e.length;n++)i[e][n]=t[l[n]];s=t.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===s?i.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(o[e][n],i[e][n])),i[e][n]=Math.round(r);for(var c in a)c!==e&&(i[c]=f[e][c](i[e]));return!0},j.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"===typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},j.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:(n===r[t]||(r[t]=n,this.setValues(e,r)),this)},"undefined"!==typeof window&&(window.Color=j);var L=j;function B(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var F={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null===e||"undefined"===typeof e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"===typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return"undefined"===typeof e?t:e},valueAtIndexOrDefault:function(e,t,n){return F.valueOrDefault(F.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var i,a,o;if(F.isArray(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(F.isObject(e))for(a=(o=Object.keys(e)).length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])},arrayEquals:function(e,t){var n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i instanceof Array&&a instanceof Array){if(!F.arrayEquals(i,a))return!1}else if(i!==a)return!1;return!0},clone:function(e){if(F.isArray(e))return e.map(F.clone);if(F.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=F.clone(e[n[i]]);return t}return e},_merger:function(e,t,n,r){if(B(e)){var i=t[e],a=n[e];F.isObject(i)&&F.isObject(a)?F.merge(i,a,r):t[e]=F.clone(a)}},_mergerIf:function(e,t,n){if(B(e)){var r=t[e],i=n[e];F.isObject(r)&&F.isObject(i)?F.mergeIf(r,i):t.hasOwnProperty(e)||(t[e]=F.clone(i))}},merge:function(e,t,n){var r,i,a,o,s,l=F.isArray(t)?t:[t],c=l.length;if(!F.isObject(e))return e;for(r=(n=n||{}).merger||F._merger,i=0;i<c;++i)if(t=l[i],F.isObject(t))for(s=0,o=(a=Object.keys(t)).length;s<o;++s)r(a[s],e,t,n);return e},mergeIf:function(e,t){return F.merge(e,t,{merger:F._mergerIf})},extend:Object.assign||function(e){return F.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=F.inherits,e&&F.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,r){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},D=F;F.callCallback=F.callback,F.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},F.getValueOrDefault=F.valueOrDefault,F.getValueAtIndexOrDefault=F.valueAtIndexOrDefault;var U={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2===(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-U.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*U.easeInBounce(2*e):.5*U.easeOutBounce(2*e-1)+.5}},z={effects:U};D.easingEffects=U;var W=Math.PI,H=W/180,V=2*W,G=W/2,Y=W/4,q=2*W/3,X={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,a){if(a){var o=Math.min(a,i/2,r/2),s=t+o,l=n+o,c=t+r-o,u=n+i-o;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,o,-W,-G),e.arc(c,l,o,-G,0),e.arc(c,u,o,0,G),e.arc(s,u,o,G,W)):s<c?(e.moveTo(s,n),e.arc(c,l,o,-G,G),e.arc(s,l,o,G,W+G)):l<u?(e.arc(s,l,o,-W,0),e.arc(s,u,o,0,W)):e.arc(s,l,o,-W,W),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)},drawPoint:function(e,t,n,r,i,a){var o,s,l,c,u,d=(a||0)*H;if(t&&"object"===typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(r,i),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,i,n,0,V),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(d)*n,i-Math.cos(d)*n),d+=q,e.lineTo(r+Math.sin(d)*n,i-Math.cos(d)*n),d+=q,e.lineTo(r+Math.sin(d)*n,i-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+Y)*c,l=Math.sin(d+Y)*c,e.arc(r-s,i-l,u,d-W,d-G),e.arc(r+l,i-s,u,d-G,d),e.arc(r+s,i+l,u,d,d+G),e.arc(r-l,i+s,u,d+G,d+W),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*n,e.rect(r-c,i-c,2*c,2*c);break}d+=Y;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,i-l),e.lineTo(r+l,i-s),e.lineTo(r+s,i+l),e.lineTo(r-l,i+s),e.closePath();break;case"crossRot":d+=Y;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,i-l),e.lineTo(r+s,i+l),e.moveTo(r+l,i-s),e.lineTo(r-l,i+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,i-l),e.lineTo(r+s,i+l),e.moveTo(r+l,i-s),e.lineTo(r-l,i+s),d+=Y,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,i-l),e.lineTo(r+s,i+l),e.moveTo(r+l,i-s),e.lineTo(r-l,i+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,i-l),e.lineTo(r+s,i+l);break;case"dash":e.moveTo(r,i),e.lineTo(r+Math.cos(d)*n,i+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var i=n.steppedLine;if(i){if("middle"===i){var a=(t.x+n.x)/2;e.lineTo(a,r?n.y:t.y),e.lineTo(a,r?t.y:n.y)}else"after"===i&&!r||"after"!==i&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},$=X;D.clear=X.clear,D.drawRoundedRectangle=function(e){e.beginPath(),X.roundedRect.apply(X,arguments)};var K={_set:function(e,t){return D.merge(this[e]||(this[e]={}),t)}};K._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var Q=K,J=D.valueOrDefault;function Z(e){return!e||D.isNullOrUndef(e.size)||D.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}var ee={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,r,i;return D.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,i=+e.left||0):t=n=r=i=+e||0,{top:t,right:n,bottom:r,left:i,height:t+r,width:i+n}},_parseFont:function(e){var t=Q.global,n=J(e.fontSize,t.defaultFontSize),r={family:J(e.fontFamily,t.defaultFontFamily),lineHeight:D.options.toLineHeight(J(e.lineHeight,t.defaultLineHeight),n),size:n,style:J(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=Z(r),r},resolve:function(e,t,n,r){var i,a,o,s=!0;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==t&&"function"===typeof o&&(o=o(t),s=!1),void 0!==n&&D.isArray(o)&&(o=o[n],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}},te={_factorize:function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},ne=te;D.log10=te.log10;var re=function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},ie=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},ae=D,oe=z,se=$,le=ee,ce=ne,ue={getRtlAdapter:function(e,t,n){return e?re(t,n):ie()},overrideTextDirection:function(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};function de(e,t,n,r){var i,a,o,s,l,c,u,d,h,f=Object.keys(n);for(i=0,a=f.length;i<a;++i)if(c=n[o=f[i]],t.hasOwnProperty(o)||(t[o]=c),(s=t[o])!==c&&"_"!==o[0]){if
vendor: 4,113 bytes, line 2
2(e.hasOwnProperty(o)||(e[o]=s),(u=typeof c)===typeof(l=e[o]))if("string"===u){if((d=L(l)).valid&&(h=L(c)).valid){t[o]=h.mix(d,r).rgbString();continue}}else if(ae.isFinite(l)&&ae.isFinite(c)){t[o]=l+(c-l)*r;continue}t[o]=c}}ae.easing=oe,ae.canvas=se,ae.options=le,ae.math=ce,ae.rtl=ue;var he=function(e){ae.extend(this,e),this.initialize.apply(this,arguments)};ae.extend(he.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=ae.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,i=t._view;return n&&1!==e?(i||(i=t._view={}),r||(r=t._start={}),de(r,i,n,e),t):(t._view=ae.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ae.isNumber(this._model.x)&&ae.isNumber(this._model.y)}}),he.extend=ae.inherits;var fe=he,pe=fe.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),ge=pe;Object.defineProperty(pe.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(pe.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),Q._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ae.noop,onComplete:ae.noop}});var me={animations:[],request:null,addAnimation:function(e,t,n,r){var i,a,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),i=0,a=o.length;i<a;++i)if(o[i].chart===e)return void(o[i]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=ae.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=ae.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,r,i=this.animations,a=0;a<i.length;)t=(e=i[a]).chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),ae.callback(e.render,[t,e],t),ae.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(ae.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(a,1)):++a}},ye=ae.options.resolve,be=["push","pop","shift","splice","unshift"];function ve(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),be.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),i=r.apply(this,t);return ae.each(e._chartjs.listeners,(function(e){"function"===typeof e[n]&&e[n].apply(e,t)})),i}})})))}function xe(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(be.forEach((function(t){delete e[t]})),delete e._chartjs)}}var we=function(e,t){this.initialize(e,t)};ae.extend(we.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,r=n.scales,i=e.getDataset(),a=n.options.scales;null!==t.xAxisID&&t.xAxisID in r&&!i.xAxisID||(t.xAxisID=i.xAxisID||a.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in r&&!i.yAxisID||(t.yAxisID=i.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID}
vendor: 17,309 bytes, line 2
2,_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&xe(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),i=n.getDataset().data||[],a=r.data;for(e=0,t=i.length;e<t;++e)a[e]=a[e]||n.createMetaData(e);r.dataset=r.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]);e._data!==n&&(e._data&&xe(e._data,e),n&&Object.isExtensible(n)&&ve(n,e),e._data=n),e.resyncElements()},_configure:function(){var e=this;e._config=ae.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&ae._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:ae.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,i=0;i<r;++i)n[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},getStyle:function(e){var t,n=this,r=n.getMeta(),i=r.dataset;return n._configure(),i&&void 0===e?t=n._resolveDatasetElementOptions(i||{}):(e=e||0,t=n._resolveDataElementOptions(r.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,r,i,a,o=this,s=o.chart,l=o._config,c=e.custom||{},u=s.options.elements[o.datasetElementType.prototype._type]||{},d=o._datasetElementOptions,h={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(n=0,r=d.length;n<r;++n)i=d[n],a=t?"hover"+i.charAt(0).toUpperCase()+i.slice(1):i,h[i]=ye([c[a],l[a],u[a]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,r=e&&e.custom,i=n._cachedDataOpts;if(i&&!r)return i;var a,o,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},g={cacheable:!r};if(r=r||{},ae.isArray(h))for(o=0,s=h.length;o<s;++o)f[l=h[o]]=ye([r[l],u[l],d[l]],p,t,g);else for(o=0,s=(a=Object.keys(h)).length;o<s;++o)f[l=a[o]]=ye([r[l],u[h[l]],u[l],d[l]],p,t,g);return g.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){ae.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},i=e._model,a=ae.getHoverColor;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=ye([r.hoverBackgroundColor,t.hoverBackgroundColor,a(i.backgroundColor)],void 0,n),i.borderColor=ye([r.hoverBorderColor,t.hoverBorderColor,a(i.borderColor)],void 0,n),i.borderWidth=ye([r.hoverBorderWidth,t.hoverBorderWidth,i.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,r,i,a,o=this.getMeta().dataset,s={};if(o){for(a=o._model,i=this._resolveDatasetElementOptions(o,!0),e=0,t=(r=Object.keys(i)).length;e<t;++e)s[n=r[e]]=a[n],a[n]=i[n];o.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,r=t.data.length,i=n.length;i<r?t.data.splice(i,r-i):i>r&&e.insertElements(r,i-r)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),we.extend=ae.inherits;var ke=we,Ae=2*Math.PI;function Ee(e,t){var n=t.startAngle,r=t.endAngle,i=t.pixelMargin,a=i/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,n-a,r+a),t.innerRadius>i?(a=i/t.innerRadius,e.arc(o,s,t.innerRadius-i,r+a,n-a,!0)):e.arc(o,s,i,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function Se(e,t,n,r){var i,a=n.endAngle;for(r&&(n.endAngle=n.startAngle+Ae,Ee(e,n),n.endAngle=a,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=Ae,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+Ae,n.startAngle,!0),i=0;i<n.fullCircles;++i)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+Ae),i=0;i<n.fullCircles;++i)e.stroke()}function Pe(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&Se(e,t,n,r),r&&Ee(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}Q._set("global",{elements:{arc:{backgroundColor:Q.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Ce=fe.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=ae.getAngleFromPoint(n,{x:e,y:t}),i=r.angle,a=r.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=Ae;for(;i>s;)i-=Ae;for(;i<o;)i+=Ae;var l=i>=o&&i<=s,c=a>=n.innerRadius&&a<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/Ae)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+Ae,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;e<i.fullCircles;++e)t.fill();i.endAngle=i.startAngle+n.circumference%Ae}t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&Pe(t,n,i),t.restore()}}),Oe=ae.valueOrDefault,Te=Q.global.defaultColor;Q._set("global",{elements:{line:{tension:.4,backgroundColor:Te,borderWidth:3,borderColor:Te,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Ne=fe.extend({_type:"line",draw:function(){var e,t,n,r=this,i=r._view,a=r._chart.ctx,o=i.spanGaps,s=r._children.slice(),l=Q.global,c=l.elements.line,u=-1,d=r._loop;if(s.length){if(r._loop){for(e=0;e<s.length;++e)if(t=ae.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=o;break}d&&s.push(s[0])}for(a.save(),a.lineCap=i.borderCapStyle||c.borderCapStyle,a.setLineDash&&a.setLineDash(i.borderDash||c.borderDash),a.lineDashOffset=Oe(i.borderDashOffset,c.borderDashOffset),a.lineJoin=i.borderJoinStyle||c.borderJoinStyle,a.lineWidth=Oe(i.borderWidth,c.borderWidth),a.strokeStyle=i.borderColor||l.defaultColor,a.beginPath(),(n=s[0]._view).skip||(a.moveTo(n.x,n.y),u=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===u?ae.previousItem(s,e):s[u],n.skip||(u!==e-1&&!o||-1===u?a.moveTo(n.x,n.y):ae.canvas.lineTo(a,t._view,n),u=e);d&&a.closePath(),a.stroke(),a.restore()}}}),_e=ae.valueOrDefault,Ie=Q.global.defaultColor;function Re(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function Me(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius}Q._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Ie,borderColor:Ie,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var je=fe.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Re,inXRange:Re,inYRange:Me,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,i=t.rotation,a=t.radius,o=t.x,s=t.y,l=Q.global,c=l.defaultColor;t.skip||(void 0===e||ae.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=_e(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,ae.canvas.drawPoint(n,r,a,o,s,i))}}),Le=Q.global.defaultColor;function Be(e){return e&&void 0!==e.width}function Fe(e){var t,n,r,i,a;return Be(e)?(a=e.width/2,t=e.x-a,n=e.x+a,r=Math.min(e.y,e.base),i=Math.max(e.y,e.base)):(a=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-a,i=e.y+a),{left:t,top:r,right:n,bottom:i}}function De(e,t,n){return e===t?n:e===n?t:e}function Ue(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=De(t,"left","right")):e.base<e.y&&(t=De(t,"bottom","top")),n[t]=!0,n):n}function ze(e,t,n){var r,i,a,o,s=e.borderWidth,l=Ue(e);return ae.isObject(s)?(r=+s.top||0,i=+s.right||0,a=+s.bottom||0,o=+s.left||0):r=i=a=o=+s||0,{t:l.top||r<0?0:r>n?n:r,r:l.right||i<0?0:i>t?t:i,b:l.bottom||a<0?0:a>n?n:a,l:l.left||o<0?0:o>t?t:o}}function We(e){var t=Fe(e),n=t.right-t.left,r=t.bottom-t.top,i=ze(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}function He(e,t,n){var r=null===t,i=null===n,a=!(!e||r&&i)&&Fe(e);return a&&(r||t>=a.left&&t<=a.right)&&(i||n>=a.top&&n<=a.bottom)}Q._set("global",{elements:{rectangle:{backgroundColor:Le,borderColor:Le,borderSkipped:"bottom",borderWidth:0}}});var Ve=fe.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=We(t),r=n.outer,i=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return He(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Be(n)?He(n,e,null):He(n,null,t)},inXRange:function(e){return He(this._view,e,null)},inYRange:function(e){return He(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Be(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Be(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ge={},Ye=Ce,qe=Ne,Xe=je,$e=Ve;Ge.Arc=Ye,Ge.Line=qe,Ge.Point=Xe,Ge.Rectangle=$e;var Ke=ae._deprecated,Qe=ae.valueOrDefault;function Je(e,t){var n,r,i,a,o=e._length;for(i=1,a=t.length;i<a;++i)o=Math.min(o,Math.abs(t[i]-t[i-1]));for(i=0,a=e.getTicks().length;i<a;++i)r=e.getPixelForTick(i),o=i>0?Math.min(o,Math.abs(r-n)):o,n=r;return o}function Ze(e,t,n){var r,i,a=n.barThickness,o=t.stackCount,s=t.pixels[e],l=ae.isNullOrUndef(a)?Je(t.scale,t.pixels):-1;return ae.isNullOrUndef(a)?(r=l*n.categoryPercentage,i=n.barPercentage):(r=a*o,i=1),{chunk:r/o,ratio:i,start:s-r/2}}function et(e,t,n){var r,i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=n.categoryPercentage;return null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o),r=a-(a-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}Q._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),Q._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var tt=ke.extend({dataElementType:Ge.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ke.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Ke("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Ke("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Ke("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Ke("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Ke("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this,i=r.getMeta().data;for(r._ruler=r.getRuler(),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e)},updateElement:function(e,t,n){var r=this,i=r.getMeta(),a=r.getDataset(),o=r._resolveDataElementOptions(e,t);e._xScale=r.getScaleForId(i.xAxisID),e._yScale=r.getScaleForId(i.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:a.label,label:r.chart.data.labels[t]},ae.isArray(a.data[t])&&(e._model.borderSkipped=null),r._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,r){var i=this,a=e._model,o=i._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),c=i._ruler||i.getRuler(),u=i.calculateBarValuePixels(i.index,t,r),d=i.calculateBarIndexPixels(i.index,t,c,r);a.horizontal=l,a.base=n?s:u.base,a.x=l?n?s:u.head:d.center,a.y=l?d.center:n?s:u.head,a.height=l?d.size:void 0,a.width=l?void 0:d.size},_getStacks:function(e){var t,n,r=this,i=r._getIndexScale(),a=i._getMatchingVisibleMetas(r._type),o=i.options.stacked,s=a.length,l=[];for(t=0;t<s&&(n=a[t],(!1===o||-1===l.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&l.push(n.stack),n.index!==e);++t);return l},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this,r=n._getIndexScale(),i=[];for(e=0,t=n.getMeta().data.length;e<t;++e)i.push(r.getPixelForValue(null,e,n.index));return{pixels:i,start:r._startPixel,end:r._endPixel,stackCount:n.getStackCount(),scale:r}},calculateBarValuePixels:function(e,t,n){var r,i,a,o,s,l,c,u=this,d=u.chart,h=u._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,g=h._getMatchingVisibleMetas(u._type),m=h._parseValue(p[e].data[t]),y=n.minBarLength,b=h.options.stacked,v=u.getMeta().stack,x=void 0===m.start?0:m.max>=0&&m.min>=0?m.min:m.max,w=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,k=g.length;if(b||void 0===b&&void 0!==v)for(r=0;r<k&&(i=g[r]).index!==e;++r)i.stack===v&&(a=void 0===(c=h._parseValue(p[i.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&a<0||m.max>=0&&a>0)&&(x+=a));return o=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+w))-o,void 0!==y&&Math.abs(l)<y&&(l=y,s=w>=0&&!f||w<0&&f?o-y:o+y),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var i=this,a="flex"===r.barThickness?et(t,n,r):Ze(t,n,r),o=i.getStackIndex(e,i.getMeta().stack),s=a.start+a.chunk*o+a.chunk/2,l=Math.min(Qe(r.maxBarThickness,1/0),a.chunk*a.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),r=e.getMeta().data,i=e.getDataset(),a=r.length,o=0;for(ae.canvas.clipArea(t.ctx,t.chartArea);o<a;++o){var s=n._parseValue(i.data[o]);isNaN(s.min)||isNaN(s.max)||r[o].draw()}ae.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=ae.extend({},ke.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,r=e._getValueScale().options;return t.barPercentage=Qe(n.barPercentage,t.barPercentage),t.barThickness=Qe(n.barThickness,t.barThickness),t.categoryPercentage=Qe(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Qe(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Qe(r.minBarLength,t.minBarLength),t}}),nt=ae.valueOrDefault,rt=ae.options.resolve;Q._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var it=ke.extend({dataElementType:Ge.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroun
2dColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;ae.each(n,(function(n,r){t.updateElement(n,r,e)}))},updateElement:function(e,t,n){var r=this,i=r.getMeta(),a=e.custom||{},o=r.getScaleForId(i.xAxisID),s=r.getScaleForId(i.yAxisID),l=r._resolveDataElementOptions(e,t),c=r.getDataset().data[t],u=r.index,d=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"===typeof c?c:NaN,t,u),h=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=o,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:a.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=ae.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=nt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=nt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=nt(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,r=n.chart,i=n.getDataset(),a=e.custom||{},o=i.data[t]||{},s=ke.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:r,dataIndex:t,dataset:i,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=ae.extend({},s)),s.radius=rt([a.radius,o.r,n._config.radius,r.options.elements.point.radius],l,t),s}}),at=ae.valueOrDefault,ot=Math.PI,st=2*ot,lt=ot/2;Q._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,r,i=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(i.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return i.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var i=e.getDatasetMeta(0),a=i.controller.getStyle(r);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,i,a=t.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n<r;++n)(i=o.getDatasetMeta(n)).data[a]&&(i.data[a].hidden=!i.data[a].hidden);o.update()}},cutoutPercentage:50,rotation:-lt,circumference:st,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return ae.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var ct=ke.extend({dataElementType:Ge.Arc,linkScales:ae.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r,i,a=this,o=a.chart,s=o.chartArea,l=o.options,c=1,u=1,d=0,h=0,f=a.getMeta(),p=f.data,g=l.cutoutPercentage/100||0,m=l.circumference,y=a._getRingWeight(a.index);if(m<st){var b=l.rotation%st,v=(b+=b>=ot?-st:b<-ot?st:0)+m,x=Math.cos(b),w=Math.sin(b),k=Math.cos(v),A=Math.sin(v),E=b<=0&&v>=0||v>=st,S=b<=lt&&v>=lt||v>=st+lt,P=b<=-lt&&v>=-lt||v>=ot+lt,C=b===-ot||v>=ot?-1:Math.min(x,x*g,k,k*g),O=P?-1:Math.min(w,w*g,A,A*g),T=E?1:Math.max(x,x*g,k,k*g),N=S?1:Math.max(w,w*g,A,A*g);c=(T-C)/2,u=(N-O)/2,d=-(T+C)/2,h=-(N+O)/2}for(r=0,i=p.length;r<i;++r)p[r]._options=a._resolveDataElementOptions(p[r],r);for(o.borderWidth=a.getMaxBorderWidth(),t=(s.right-s.left-o.borderWidth)/c,n=(s.bottom-s.top-o.borderWidth)/u,o.outerRadius=Math.max(Math.min(t,n)/2,0),o.innerRadius=Math.max(o.outerRadius*g,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(a._getVisibleDatasetWeightTotal()||1),o.offsetX=d*o.outerRadius,o.offsetY=h*o.outerRadius,f.total=a.c
vendor: 3,770 bytes, line 2
2alculateTotal(),a.outerRadius=o.outerRadius-o.radiusLength*a._getRingWeightOffset(a.index),a.innerRadius=Math.max(a.outerRadius-o.radiusLength*y,0),r=0,i=p.length;r<i;++r)a.updateElement(p[r],r,e)},updateElement:function(e,t,n){var r=this,i=r.chart,a=i.chartArea,o=i.options,s=o.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=o.rotation,d=o.rotation,h=r.getDataset(),f=n&&s.animateRotate||e.hidden?0:r.calculateCircumference(h.data[t])*(o.circumference/st),p=n&&s.animateScale?0:r.innerRadius,g=n&&s.animateScale?0:r.outerRadius,m=e._options||{};ae.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+i.offsetX,y:c+i.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:g,innerRadius:p,label:ae.valueAtIndexOrDefault(h.label,t,i.data.labels[t])}});var y=e._model;n&&s.animateRotate||(y.startAngle=0===t?o.rotation:r.getMeta().data[t-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return ae.each(n.data,(function(n,i){e=t.data[i],isNaN(e)||n.hidden||(r+=Math.abs(e))})),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?st*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,i,a,o,s,l,c=this,u=0,d=c.chart;if(!e)for(t=0,n=d.data.datasets.length;t<n;++t)if(d.isDatasetVisible(t)){e=(r=d.getDatasetMeta(t)).data,t!==c.index&&(a=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)i=e[t],a?(a._configure(),o=a._resolveDataElementOptions(i,t)):o=i._options,"inner"!==o.borderAlign&&(s=o.borderWidth,u=(l=o.hoverBorderWidth)>(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,r=ae.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=at(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=at(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=at(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(at(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});Q._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),Q._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var ut=tt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),dt=ae.valueOrDefault,ht=ae.options.resolve,ft=ae.canvas._isPointInArea;function pt(e,t){var n=e&&e.options.ticks||{},r=n.reverse,i=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:r?a:i,end:r?i:a}}function gt(e,t,n){var r=n/2,i=pt(e,r),a=pt(t,r);return{top:a.end,right:i.end,bottom:a.start,left:i.start}}function mt(e){var t,n,r,i;return ae.isObject(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i}}Q._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var yt=ke.extend({datasetElementType:Ge.Line,dataElementType:Ge.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
2dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,r=this,i=r.getMeta(),a=i.dataset,o=i.data||[],s=r.chart.options,l=r._config,c=r._showLine=dt(l.showLine,s.showLines);for(r._xScale=r.getScaleForId(i.xAxisID),r._yScale=r.getScaleForId(i.yAxisID),c&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=r._yScale,a._datasetIndex=r.index,a._children=o,a._model=r._resolveDatasetElementOptions(a),a.pivot()),t=0,n=o.length;t<n;++t)r.updateElement(o[t],t,e);for(c&&0!==a._model.tension&&r.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var r,i,a=this,o=a.getMeta(),s=e.custom||{},l=a.getDataset(),c=a.index,u=l.data[t],d=a._xScale,h=a._yScale,f=o.dataset._model,p=a._resolveDataElementOptions(e,t);r=d.getPixelForValue("object"===typeof u?u:NaN,t,c),i=n?h.getBasePixel():a.calculatePointY(u,t,c),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=c,e._index=t,e._model={x:r,y:i,skip:s.skip||isNaN(r)||isNaN(i),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:dt(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,r=e.custom||{},i=t.chart.options,a=i.elements.line,o=ke.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=dt(n.spanGaps,i.spanGaps),o.tension=dt(n.lineTension,a.tension),o.steppedLine=ht([r.steppedLine,n.steppedLine,a.stepped]),o.clip=mt(dt(n.clip,gt(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,n){var r,i,a,o,s,l,c,u=this,d=u.chart,h=u._yScale,f=0,p=0;if(h.options.stacked){for(s=+h.getRightValue(e),c=(l=d._getSortedVisibleDatasetMetas()).length,r=0;r<c&&(a=l[r]).index!==n;++r)i=d.data.datasets[a.index],"line"===a.type&&a.yAxisID===h.id&&((o=+h.getRightValue(i.data[t]))<0?p+=o||0:f+=o||0);return s<0?h.getPixelForValue(p+s):h.getPixelForValue(f+s)}return h.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,i=this,a=i.chart,o=i.getMeta(),s=o.dataset._model,l=a.chartArea,c=o.data||[];function u(e,t,n){return Math.max(Math.min(e,n),t)}if(s.spanGaps&&(c=c.filter((function(e){return!e._model.skip}))),"monotone"===s.cubicInterpolationMode)ae.splineCurveMonotone(c);else for(e=0,t=c.length;e<t;++e)n=c[e]._model,r=ae.splineCurve(ae.previousItem(c,e)._model,n,ae.nextItem(c,e)._model,s.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(a.options.elements.line.capBezierPoints)for(e=0,t=c.length;e<t;++e)n=c[e]._model,ft(n,l)&&(e>0&&ft(c[e-1]._model,l)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,l.left,l.right),n.controlPointPreviousY=u(n.controlPointPreviousY,l.top,l.bottom)),e<c.length-1&&ft(c[e+1]._model,l)&&(n.controlPointNextX=u(n.controlPointNextX,l.left,l.right),n.controlPointNextY=u(n.controlPointNextY,l.top,l.bottom)))},draw:function(){var e,t=this,n=t.chart,r=t.getMeta(),i=r.data||[],a=n.chartArea,o=n.canvas,s=0,l=i.length;for(t._showLine&&(e=r.dataset._model.clip,ae.canvas.clipArea(n.ctx,{left:!1===e.left?0:a.left-e.left,right:!1===e.right?o.width:a.right+e.right,top:!1===e.top?0:a.top-e.top,bottom:!1===e.bottom?o.height:a.bottom+e.bottom}),r.dataset.draw(),ae.canvas.unclipArea(n.ctx));s<l;++s)i[s].draw(a)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ae.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=dt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=dt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=dt(n.hoverBorderWidth,n.borderWidth),t.radius=dt(n.hoverRadius,n.radius)}}),bt=ae.options.resolve;Q._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,r,i=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(i.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return i.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var i=e.getDatasetMeta(0),a=i.controller.getStyle(r);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,i,a=t.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n<r;++n)(i=o.getDatasetMeta(n)).data[a].hidden=!i.data[a].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var vt=ke.extend({dataElementType:Ge.Arc,linkScales:ae.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
2dColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r,i=this,a=i.getDataset(),o=i.getMeta(),s=i.chart.options.startAngle||0,l=i._starts=[],c=i._angles=[],u=o.data;for(i._updateRadius(),o.count=i.countVisibleElements(),t=0,n=a.data.length;t<n;t++)l[t]=s,r=i._computeAngle(t),c[t]=r,s+=r;for(t=0,n=u.length;t<n;++t)u[t]._options=i._resolveDataElementOptions(u[t],t),i.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(i/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,i=r.chart,a=r.getDataset(),o=i.options,s=o.animation,l=i.scale,c=i.data.labels,u=l.xCenter,d=l.yCenter,h=o.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(a.data[t]),p=r._starts[t],g=p+(e.hidden?0:r._angles[t]),m=s.animateScale?0:l.getDistanceFromCenterForValue(a.data[t]),y=e._options||{};ae.extend(e,{_datasetIndex:r.index,_index:t,_scale:l,_model:{backgroundColor:y.backgroundColor,borderColor:y.borderColor,borderWidth:y.borderWidth,borderAlign:y.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?m:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:g,label:ae.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return ae.each(t.data,(function(t,r){isNaN(e.data[r])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=ae.getHoverColor,i=ae.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=i(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=i(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=i(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),i=t.getMeta();if(isNaN(r.data[e])||i.data[e].hidden)return 0;var a={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return bt([t.chart.options.elements.arc.angle,2*Math.PI/n],a,e)}});Q._set("pie",ae.clone(Q.doughnut)),Q._set("pie",{cutoutPercentage:0});var xt=ct,wt=ae.valueOrDefault;Q._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var kt=ke.extend({datasetElementType:Ge.Line,dataElementType:Ge.Point,linkScales:ae.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
2dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r=this,i=r.getMeta(),a=i.dataset,o=i.data||[],s=r.chart.scale,l=r._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=s,a._datasetIndex=r.index,a._children=o,a._loop=!0,a._model=r._resolveDatasetElementOptions(a),a.pivot(),t=0,n=o.length;t<n;++t)r.updateElement(o[t],t,e);for(r.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var r=this,i=e.custom||{},a=r.getDataset(),o=r.chart.scale,s=o.getPointPositionForValue(t,a.data[t]),l=r._resolveDataElementOptions(e,t),c=r.getMeta().dataset._model,u=n?o.xCenter:s.x,d=n?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=r.index,e._index=t,e._model={x:u,y:d,skip:i.skip||isNaN(u)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:wt(i.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,r=ke.prototype._resolveDatasetElementOptions.apply(e,arguments);return r.spanGaps=wt(t.spanGaps,n.spanGaps),r.tension=wt(t.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var e,t,n,r,i=this,a=i.getMeta(),o=i.chart.chartArea,s=a.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}for(a.dataset._model.spanGaps&&(s=s.filter((function(e){return!e._model.skip}))),e=0,t=s.length;e<t;++e)n=s[e]._model,r=ae.splineCurve(ae.previousItem(s,e,!0)._model,n,ae.nextItem(s,e,!0)._model,n.tension),n.controlPointPreviousX=l(r.previous.x,o.left,o.right),n.controlPointPreviousY=l(r.previous.y,o.top,o.bottom),n.controlPointNextX=l(r.next.x,o.left,o.right),n.controlPointNextY=l(r.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ae.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=wt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=wt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=wt(n.hoverBorderWidth,n.borderWidth),t.radius=wt(n.hoverRadius,n.radius)}});Q._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),Q._set("global",{datasets:{scatter:{showLine:!1}}});var At={bar:tt,bubble:it,doughnut:ct,horizontalBar:ut,line:yt,polarArea:vt,pie:xt,radar:kt,scatter:yt};function Et(e,t){return e.native?{x:e.x,y:e.y}:ae.getRelativePosition(e,t)}function St(e,t){var n,r,i,a,o,s,l=e._getSortedVisibleDatasetMetas();for(r=0,a=l.length;r<a;++r)for(i=0,o=(n=l[r].data).length;i<o;++i)(s=n[i])._view.skip||t(s)}function Pt(e,t){var n=[];return St(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function Ct(e,t,n,r){var i=Number.POSITIVE_INFINITY,a=[];return St(e,(function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=r(t,o);s<i?(a=[e],i=s):s===i&&a.push(e)}})),a}function Ot(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function Tt(e,t,n){var r=Et(t,e);n.axis=n.axis||"x";var i=Ot(n.axis),a=n.intersect?Pt(e,r):Ct(e,r,!1,i),o=[];return a.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[a[0]._index];t&&!t._view.skip&&o.push(t)})),o):[]}var Nt={modes:{single:function(e,t){var n=Et(t,e),r=[];return St(e,(function(e){if(e.inRange(n.x,n.y))return r.push(e),r})),r.slice(0,1)},label:Tt,index:Tt,dataset:function(e,t,n){var r=Et(t,e);n.axis=n.axis||"xy";var i=Ot(n.axis),a=n.intersect?Pt(e,r):Ct(e,r,!1,i);return a.length>0&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return Tt(e,t,{intersect:!1})},point:function(e,t){return Pt(e,Et(t,e))},nearest:function(e,t,n){var r=Et(t,e);n.axis=n.axis||"xy";var i=Ot(n.axis);return Ct(e,r,n.intersect,i)},x:function(e,t,n){var r=Et(t,e),i=[],a=!1;return St(e,(function(e){e.inXRange(r.x)&&i.push(e),e.inRange(r.x,r.y)&&(a=!0)})),n.intersect&&!a&&(i=[]),i},y:function(e,t,n){var r=Et(t,e),i=[],a=!1;return St(e,(function(e){e.inYRange(r.y)&&i.push(e),e.inRange(r.x,r.y)&&(a=!0)})),n.intersect&&!a&&(i=[]),i}}},_t=ae.extend;function It(e,t){return ae.where(e,(function(e){return e.pos===t}))}function Rt(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function Mt(e){var t,n,r,i=[];for(t=0,n=(e||[]).length;t<n;++t)r=e[t],i.push({index:t,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return i}function jt(e,t){var n,r,i;for(n=0,r=e.length;n<r;++n)(i=e[n]).width=i.horizontal?i.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,i.height=i.horizontal&&t.hBoxMaxHeight}function Lt(e){var t=Mt(e),n=Rt(It(t,"left"),!0),r=Rt(It(t,"right")),i=Rt(It(t,"top"),!0),a=Rt(It(t,"bottom"));return{leftAndTop:n.concat(i),rightAndBottom:r.concat(a),chartArea:It(t,"chartArea"),vertical:n.concat(r),horizontal:i.concat(a)}}function Bt(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Ft(e,t,n){var r,i,a=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?a.height:a.width,e[n.pos]+=n.size,a.getPadding){var s=a.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.r
vendor: 4,255 bytes, line 2
2ight=Math.max(o.right,s.right)}if(r=t.outerWidth-Bt(o,e,"left","right"),i=t.outerHeight-Bt(o,e,"top","bottom"),r!==e.w||i!==e.h){e.w=r,e.h=i;var l=n.horizontal?[r,e.w]:[i,e.h];return l[0]!==l[1]&&(!isNaN(l[0])||!isNaN(l[1]))}}function Dt(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ut(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function zt(e,t,n){var r,i,a,o,s,l,c=[];for(r=0,i=e.length;r<i;++r)(o=(a=e[r]).box).update(a.width||t.w,a.height||t.h,Ut(a.horizontal,t)),Ft(t,n,a)&&(l=!0,c.length&&(s=!0)),o.fullWidth||c.push(a);return s&&zt(c,t,n)||l}function Wt(e,t,n){var r,i,a,o,s=n.padding,l=t.x,c=t.y;for(r=0,i=e.length;r<i;++r)o=(a=e[r]).box,a.horizontal?(o.left=o.fullWidth?s.left:t.left,o.right=o.fullWidth?n.outerWidth-s.right:t.left+t.w,o.top=c,o.bottom=c+o.height,o.width=o.right-o.left,c=o.bottom):(o.left=l,o.right=l+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,l=o.right);t.x=l,t.y=c}Q._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Ht={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,i=["fullWidth","position","weight"],a=i.length,o=0;o<a;++o)r=i[o],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},i=ae.options.toPadding(r.padding),a=t-i.width,o=n-i.height,s=Lt(e.boxes),l=s.vertical,c=s.horizontal,u=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,vBoxMaxWidth:a/2/l.length,hBoxMaxHeight:o/2}),d=_t({maxPadding:_t({},i),w:a,h:o,x:i.left,y:i.top},i);jt(l.concat(c),u),zt(l,d,u),zt(c,d,u)&&zt(l,d,u),Dt(d),Wt(s.leftAndTop,d,u),d.x+=d.w,d.y+=d.h,Wt(s.rightAndBottom,d,u),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},ae.each(s.chartArea,(function(t){var n=t.box;_t(n,e.chartArea),n.update(d.w,d.h)}))}}},Vt={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Gt="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Yt=n(Object.freeze({__proto__:null,default:Gt})),qt="$chartjs",Xt="chartjs-",$t=Xt+"size-monitor",Kt=Xt+"render-monitor",Qt=Xt+"render-animation",Jt=["animationstart","webkitAnimationStart"],Zt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function en(e,t){var n=ae.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}function tn(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[qt]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var a=en(e,"width");void 0!==a&&(e.width=a)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=en(e,"height");
2void 0!==a&&(e.height=o)}return e}var nn=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}()&&{passive:!0};function rn(e,t,n){e.addEventListener(t,n,nn)}function an(e,t,n){e.removeEventListener(t,n,nn)}function on(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function sn(e,t){var n=Zt[e.type]||e.type,r=ae.getRelativePosition(e,t);return on(n,t,r.x,r.y,e)}function ln(e,t){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,ae.requestAnimFrame.call(window,(function(){n=!1,e.apply(t,r)})))}}function cn(e){var t=document.createElement("div");return t.className=e||"",t}function un(e){var t=1e6,n=cn($t),r=cn($t+"-expand"),i=cn($t+"-shrink");r.appendChild(cn()),i.appendChild(cn()),n.appendChild(r),n.appendChild(i),n._reset=function(){r.scrollLeft=t,r.scrollTop=t,i.scrollLeft=t,i.scrollTop=t};var a=function(){n._reset(),e()};return rn(r,"scroll",a.bind(r,"expand")),rn(i,"scroll",a.bind(i,"shrink")),n}function dn(e,t){var n=e[qt]||(e[qt]={}),r=n.renderProxy=function(e){e.animationName===Qt&&t()};ae.each(Jt,(function(t){rn(e,t,r)})),n.reflow=!!e.offsetParent,e.classList.add(Kt)}function hn(e){var t=e[qt]||{},n=t.renderProxy;n&&(ae.each(Jt,(function(t){an(e,t,n)})),delete t.renderProxy),e.classList.remove(Kt)}function fn(e,t,n){var r=e[qt]||(e[qt]={}),i=r.resizer=un(ln((function(){if(r.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,a=i?i.clientWidth:0;t(on("resize",n)),i&&i.clientWidth<a&&n.canvas&&t(on("resize",n))}})));dn(e,(function(){if(r.resizer){var t=e.parentNode;t&&t!==i.parentNode&&t.insertBefore(i,t.firstChild),i._reset()}}))}function pn(e){var t=e[qt]||{},n=t.resizer;delete t.resizer,hn(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function gn(e,t){var n=e[qt]||(e[qt]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(t)),e.appendChild(r)}}var mn={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;gn(t.host?t:document.head,Yt)}},acquireContext:function(e,t){"string"===typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),tn(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[qt]){var n=t[qt].initial;["height","width"].forEach((function(e){var r=n[e];ae.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)})),ae.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[qt]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var i=n[qt]||(n[qt]={});rn(r,t,(i.proxies||(i.proxies={}))[e.id+"_"+t]=function(t){n(sn(t,e))})}else fn(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var i=((n[qt]||{}).proxies||{})[e.id+"_"+t];i&&an(r,t,i)}else pn(r)}};ae.addEvent=rn,ae.removeEvent=an;var yn=mn._enabled?mn:Vt,bn=ae.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},yn);Q._set("global",{plugins:{}});var vn={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,i,a,o,s,l=this.descriptors(e),c=l.length;for(r=0;r<c;++r)if("function"===typeof(s=(a=(i=l[r]).plugin)[t])&&((o=[e].concat(n||[])).push(i.options),!1===s.apply(a,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],i=e&&e.config||{},a=i.options&&i.options.plugins||{};
vendor: 4,300 bytes, line 2
2return this._plugins.concat(i.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,i=a[t];!1!==i&&(!0===i&&(i=ae.clone(Q.global.plugins[t])),n.push(e),r.push({plugin:e,options:i||{}}))}})),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},xn={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=ae.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?ae.merge(Object.create(null),[Q.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=ae.extend(n.defaults[e],t))},addScalesToLayout:function(e){ae.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,Ht.addBox(e,t)}))}},wn=ae.valueOrDefault,kn=ae.rtl.getRtlAdapter;Q._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ae.noop,title:function(e,t){var n="",r=t.labels,i=r?r.length:0;if(e.length>0){var a=e[0];a.label?n=a.label:a.xLabel?n=a.xLabel:i>0&&a.index<i&&(n=r[a.index])}return n},afterTitle:ae.noop,beforeBody:ae.noop,beforeLabel:ae.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),ae.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ae.noop,afterBody:ae.noop,beforeFooter:ae.noop,footer:ae.noop,afterFooter:ae.noop}}});var An={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,a=0;for(t=0,n=e.length;t<n;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest:function(e,t){var n,r,i,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=ae.distanceBetweenPoints(t,c);u<s&&(s=u,i=l)}}if(i){var d=i.tooltipPosition();a=d.x,o=d.y}return{x:a,y:o}}};function En(e,t){return t&&(ae.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Sn(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Pn(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,i=e._datasetIndex,a=e._chart.getDatasetMeta(i).controller,o=a._getIndexScale(),s=a._getValueScale();return{xLabel:t?t.getLabelForIndex(r,i):"",yLabel:n?n.getLabelForIndex(r,i):"",label:o?""+o.getLabelForIndex(r,i):"",value:s?""+s.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:e._model.x,y:e._model.y}}function Cn(e){var t=Q.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:wn(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:wn(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:wn(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:wn(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:wn(e.titleFontStyle,t.defaultFontStyle),titleFontSize:wn(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:wn(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:wn(e.footerFontStyle,t.defaultFontStyle),footerFontSize:wn(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackgroun
vendor: 2,062 bytes, line 2
2d:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function On(e,t){var n=e._chart.ctx,r=2*t.yPadding,i=0,a=t.body,o=a.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);o+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;r+=s*c,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=o*u,r+=o?(o-1)*t.bodySpacing:0,r+=l?t.footerMarginTop:0,r+=l*d,r+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){i=Math.max(i,n.measureText(e).width+h)};return n.font=ae.fontString(c,t._titleFontStyle,t._titleFontFamily),ae.each(t.title,f),n.font=ae.fontString(u,t._bodyFontStyle,t._bodyFontFamily),ae.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,ae.each(a,(function(e){ae.each(e.before,f),ae.each(e.lines,f),ae.each(e.after,f)})),h=0,n.font=ae.fontString(d,t._footerFontStyle,t._footerFontFamily),ae.each(t.footer,f),{width:i+=2*t.xPadding,height:r}}function Tn(e,t){var n,r,i,a,o,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=h},r=function(e){return e>h}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",i(s.x)&&(u="center",d=o(s.y))):r(s.x)&&(u="right",a(s.x)&&(u="center",d=o(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:u,yAlign:p.yAlign?p.yAlign:d}}function Nn(e,t,n,r){var i=e.x,a=e.y,o=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=o+s,h=l+s;return"right"===c?i-=t.width:"center"===c&&((i-=t.width/2)+t.width>r.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===u?a+=d:a-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?i+=d:"right"===c&&(i-=d):"left"===c?
vendor: 4,488 bytes, line 2
2i-=h:"right"===c&&(i+=h),{x:i,y:a}}function _n(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function In(e){return En([],Sn(e))}var Rn=fe.extend({initialize:function(){this._model=Cn(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),r=t.title.apply(e,arguments),i=t.afterTitle.apply(e,arguments),a=[];return a=En(a,Sn(n)),a=En(a,Sn(r)),a=En(a,Sn(i))},getBeforeBody:function(){return In(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return ae.each(e,(function(e){var a={before:[],lines:[],after:[]};En(a.before,Sn(r.beforeLabel.call(n,e,t))),En(a.lines,r.label.call(n,e,t)),En(a.after,Sn(r.afterLabel.call(n,e,t))),i.push(a)})),i},getAfterBody:function(){return In(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),a=[];return a=En(a,Sn(n)),a=En(a,Sn(r)),a=En(a,Sn(i))},update:function(e){var t,n,r=this,i=r._options,a=r._model,o=r._model=Cn(i),s=r._active,l=r._data,c={xAlign:a.xAlign,yAlign:a.yAlign},u={x:a.x,y:a.y},d={width:a.width,height:a.height},h={x:a.caretX,y:a.caretY};if(s.length){o.opacity=1;var f=[],p=[];h=An[i.position].call(r,s,r._eventPosition);var g=[];for(t=0,n=s.length;t<n;++t)g.push(Pn(s[t]));i.filter&&(g=g.filter((function(e){return i.filter(e,l)}))),i.itemSort&&(g=g.sort((function(e,t){return i.itemSort(e,t,l)}))),ae.each(g,(function(e){f.push(i.callbacks.labelColor.call(r,e,r._chart)),p.push(i.callbacks.labelTextColor.call(r,e,r._chart))})),o.title=r.getTitle(g,l),o.beforeBody=r.getBeforeBody(g,l),o.body=r.getBody(g,l),o.afterBody=r.getAfterBody(g,l),o.footer=r.getFooter(g,l),o.x=h.x,o.y=h.y,o.caretPadding=i.caretPadding,o.labelColors=f,o.labelTextColors=p,o.dataPoints=g,u=Nn(o,d=On(this,o),c=Tn(this,d),r._chart)}else o.opacity=0;return o.xAlign=c.xAlign,o.yAlign=c.yAlign,o.x=u.x,o.y=u.y,o.width=d.width,o.height=d.height,o.caretX=h.x,o.caretY=h.y,r._model=o,e&&i.custom&&i.custom.call(r,o),r},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,a,o,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,g=t.width,m=t.height;if("center"===h)s=p+m/2,"left"===d?(i=(r=f)-c,a=r,o=s+c,l=s-c):(i=(r=f+g)+c,a=r,o=s-c,l=s+c);else if("left"===d?(r=(i=f+u+c)-c,a=i+c):"right"===d?(r=(i=f+g-u-c)-c,a=i+c):(r=(i=n.caretX)-c,a=i+c),"top"===h)s=(o=p)-c,l=o;else{s=(o=p+m)+c,l=o;var y=a;a=r,r=y}return{x1:r,x2:i,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var r,i,a,o=t.title,s=o.length;if(s){var l=kn(t.rtl,t.x,t.width);for(e.x=_n(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,i=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=ae.fontString(r,t._titleFontStyle,t._titleFontFamily),a=0;a<s;++a)n.fillText(o[a],l.x(e.x),e.y+r/2),e.y+=r+i,a+1===s&&(e.y+=t.titleMarginBottom-i)}},drawBody:function(e,t,n){var r,i,a,o,s,l,c,u,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,g=t.displayColors,m=0,y=g?_n(t,"left"):0,b=kn(t.rtl,t.x,t.width),v=function(t){n.fillText(t,b.x(e.x+m),e.y+d/2),e.y+=d+h},x=b.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=ae.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=_n(t,x),n.fillStyle=t.bodyFontColor,ae.each(t.beforeBody,v),m=g&&"right"!==x?"center"===f?d/2+1:d+2:0,s=0,c=p.length;s<c;++s){for(r=p[s],i=t.labelTextColors[s],a=t.labelColors[s],n.fillStyle=i,ae.each(r.before,v),l=0,u=(o=r.lines).length;l<u;++l){if(g){var w=b.x(y);n.fillStyle=t.legendColorBackground,n.fillRect(b.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=a.borderColor,n.strokeRect(b.leftForLtr(w,d),e.y,d,d),n.fillStyle=a.backgroundColor,n.fillRect(b.leftForLtr(b.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=i}v(o[l])}ae.each(r.after,v)}m=0,ae.each(t.afterBody,v),e.y-=h},drawFooter:function(e,t,n){var r,i,a=t.footer,o=a.length;if(o){var s=kn(t.rtl,t.x,t.width);for(e.x=_n(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",r=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=ae.fontString(r,t._footerFontStyle,t._footerFontFamily),i=0;i<o;++i)n.fillText(a[i],s.x(e.x),e.y+r/2),e.y+=r+t.footerSpacing}}
vendor: 4,626 bytes, line 2
2,drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var i=t.xAlign,a=t.yAlign,o=e.x,s=e.y,l=r.width,c=r.height,u=t.cornerRadius;n.beginPath(),n.moveTo(o+u,s),"top"===a&&this.drawCaret(e,r),n.lineTo(o+l-u,s),n.quadraticCurveTo(o+l,s,o+l,s+u),"center"===a&&"right"===i&&this.drawCaret(e,r),n.lineTo(o+l,s+c-u),n.quadraticCurveTo(o+l,s+c,o+l-u,s+c),"bottom"===a&&this.drawCaret(e,r),n.lineTo(o+u,s+c),n.quadraticCurveTo(o,s+c,o,s+c-u),"center"===a&&"left"===i&&this.drawCaret(e,r),n.lineTo(o,s+u),n.quadraticCurveTo(o,s,o+u,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,a=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(r,t,e,n),r.y+=t.yPadding,ae.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),ae.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),(r=!ae.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),Mn=An,jn=Rn;jn.positioners=Mn;var Ln=ae.valueOrDefault;function Bn(){return ae.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,a,o,s=n[e].length;for(t[e]||(t[e]=[]),i=0;i<s;++i)o=n[e][i],a=Ln(o.type,"xAxes"===e?"category":"linear"),i>=t[e].length&&t[e].push({}),!t[e][i].type||o.type&&o.type!==t[e][i].type?ae.merge(t[e][i],[xn.getScaleDefaults(a),o]):ae.merge(t[e][i],o)}else ae._merger(e,t,n,r)}})}function Fn(){return ae.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||Object.create(null),a=n[e];"scales"===e?t[e]=Bn(i,a):"scale"===e?t[e]=ae.merge(i,[xn.getScaleDefaults(a.type),a]):ae._merger(e,t,n,r)}})}function Dn(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Fn(Q.global,Q[e.type],e.options||{}),e}function Un(e){var t=e.options;ae.each(e.scales,(function(t){Ht.removeBox(e,t)})),t=Fn(Q.global,Q[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function zn(e,t,n){var r,i=function(e){return e.id===r};do{r=t+n++}while(ae.findIndex(e,i)>=0);return r}function Wn(e){return"top"===e||"bottom"===e}function Hn(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}Q._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Vn=function(e,t){return this.construct(e,t),this};ae.extend(Vn.prototype,{construct:function(e,t){var n=this;t=Dn(t);var r=bn.acquireContext(e,t),i=r&&r.canvas,a=i&&i.height,o=i&&i.width;n.id=ae.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=o,n.height=a,n.aspectRatio=a?o/a:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Vn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return vn.notify(e,"beforeInit"),ae.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),vn.notify(e,"afterInit"),e},clear:function(){return ae.canvas.clear(this),this},stop:function(){return me.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(ae.getMaximumWidth(r))),o=Math.max(0,Math.floor(i?a/i:ae.getMaximumHeight(r)));if((t.width!==a||t.height!==o)&&(r.width=t.width=a,r.height=t.height=o,r.style.width=a+"px",r.style.height=o+"px",ae.retinaScale(t,n.devicePixelRatio),!e)){var s={width:a,height:o};vn.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;
vendor: 14,075 bytes, line 2
2ae.each(t.xAxes,(function(e,n){e.id||(e.id=zn(t.xAxes,"x-axis-",n))})),ae.each(t.yAxes,(function(e,n){e.id||(e.id=zn(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ae.each(r,(function(t){var r=t.options,a=r.id,o=Ln(r.type,t.dtype);Wn(r.position)!==Wn(t.dposition)&&(r.position=t.dposition),i[a]=!0;var s=null;if(a in n&&n[a].type===o)(s=n[a]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=xn.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),ae.each(i,(function(e,t){e||delete n[t]})),e.scales=n,xn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],i=n.data.datasets;for(e=0,t=i.length;e<t;e++){var a=i[e],o=n.getDatasetMeta(e),s=a.type||n.config.type;if(o.type&&o.type!==s&&(n.destroyDatasetMeta(e),o=n.getDatasetMeta(e)),o.type=s,o.order=a.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var l=At[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(n,e),r.push(o.controller)}}return r},resetElements:function(){var e=this;ae.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,r=this;if(e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]}),Un(r),vn._invalidate(r),!1!==vn.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var i=r.buildOrUpdateControllers();for(t=0,n=r.data.datasets.length;t<n;t++)r.getDatasetMeta(t).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&ae.each(i,(function(e){e.reset()})),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],vn.notify(r,"afterUpdate"),r._layers.sort(Hn("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var e=this;!1!==vn.notify(e,"beforeLayout")&&(Ht.update(this,this.width,this.height),e._layers=[],ae.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),vn.notify(e,"afterScaleUpdate"),vn.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==vn.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);vn.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),r={meta:n,index:e};!1!==vn.notify(t,"beforeDatasetUpdate",[r])&&(n.controller._update(),vn.notify(t,"afterDatasetUpdate",[r]))},render:function(e){var t=this;e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=Ln(e.duration,n&&n.duration),i=e.lazy;if(!1!==vn.notify(t,"beforeRender")){var a=function(e){vn.notify(t,"afterRender"),ae.callback(n&&n.onComplete,[e],t)};if(n&&r){var o=new ge({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=ae.easing.effects[t.easing],r=t.currentStep,i=r/t.numSteps;e.draw(n(i),i,r)},onAnimationProgress:n.onProgress,onAnimationComplete:a});me.addAnimation(t,o,r,i)}else t.draw(),a(new ge({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,r=this;if(r.clear(),ae.isNullOrUndef(e)&&(e=1),r.transition(e),!(r.width<=0||r.height<=0)&&!1!==vn.notify(r,"beforeDraw",[e])){for(n=r._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(r.chartArea);for(r.drawDatasets(e);t<n.length;++t)n[t].draw(r.chartArea);r._drawTooltip(e),vn.notify(r,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,r=(t.data.datasets||[]).length;n<r;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,r=this,i=[];for(t=0,n=(r.data.datasets||[]).length;t<n;++t)e&&!r.isDatasetVisible(t)||i.push(r.getDatasetMeta(t));return i.sort(Hn("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,r=this;if(!1!==vn.notify(r,"beforeDatasetsDraw",[e])){for(n=(t=r._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)r.drawDataset(t[n],e);vn.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,r={meta:e,index:e.index,easingValue:t};!1!==vn.notify(n,"beforeDatasetDraw",[r])&&(e.controller.draw(t),vn.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==vn.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),vn.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return Nt.modes.single(this,e)},getElementsAtEvent:function(e){return Nt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Nt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=Nt.modes[t];return"function"===typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return Nt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"===typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),ae.canvas.clear(n),bn.releaseContext(n.ctx),n.canvas=null,n.ctx=null),vn.notify(n,"destroy"),delete Vn.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new jn({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};ae.each(e.options.events,(function(r){bn.addEventListener(e,r,n),t[r]=n})),e.options.responsive&&(n=function(){e.resize()},bn.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,ae.each(t,(function(t,n){bn.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var r,i,a,o=n?"set":"remove";for(i=0,a=e.length;i<a;++i)(r=e[i])&&this.getDatasetMeta(r._datasetIndex).controller[o+"HoverStyle"](r);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==vn.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),vn.notify(t,"afterEvent",[e]);var i=t._bufferedRequest;return i?t.render(i):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,n=t.options||{},r=n.hover,i=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,r.mode,r),ae.callback(n.onHover||n.hover.onHover,[e.native,t.active],t),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,r.mode,!1),t.active.length&&r.mode&&t.updateHoverStyle(t.active,r.mode,!0),i=!ae.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,i}}),Vn.instances={};var Gn=Vn;Vn.Controller=Vn,Vn.types={},ae.configMerge=Fn,ae.scaleMerge=Bn;var Yn=function(){function e(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return void 0!==e&&null!==e&&"none"!==e}function n(n,r,i){var a=document.defaultView,o=ae._getParentNode(n),s=a.getComputedStyle(n)[r],l=a.getComputedStyle(o)[r],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,i):d,u?e(l,o,i):d):"none"}ae.where=function(e,t){if(ae.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return ae.each(e,(function(e){t(e)&&n.push(e)})),n},ae.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,i=e.length;r<i;++r)if(t.call(n,e[r],r,e))return r;return-1},ae.findNextWhere=function(e,t,n){ae.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var i=e[r];if(t(i))return i}},ae.findPreviousWhere=function(e,t,n){ae.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var i=e[r];if(t(i))return i}},ae.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae.almostEquals=function(e,t,n){return Math.abs(e-t)<n},ae.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},ae.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},ae.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},ae.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},ae.toRadians=function(e){return e*(Math.PI/180)},ae.toDegrees=function(e){return e*(180/Math.PI)},ae._decimalPlaces=function(e){if(ae.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},ae.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:i}},ae.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ae.aliasPixel=function(e){return e%2===0?0:.5},ae._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,i=n/2;return Math.round((t-i)*r)/r+i},ae.splineCurve=function(e,t,n,r){var i=e.skip?t:e,a=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),c=s/(s+l),u=l/(s+l),d=r*(c=isNaN(c)?0:c),h=r*(u=isNaN(u)?0:u);return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}},ae.EPSILON=Number.EPSILON||1e-14,ae.splineCurveMonotone=function(e){var t,n,r,i,a,o,s,l,c,u=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=u.length;for(t=0;t<d;++t)if(!(r=u[t]).model.skip){if(n=t>0?u[t-1]:null,(i=t<d-1?u[t+1]:null)&&!i.model.skip){var h=i.model.x-r.model.x;r.deltaK=0!==h?(i.model.y-r.model.y)/h:0}!n||n.model.skip?r.mK=r.deltaK:!i||i.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<d-1;++t)r=u[t],i=u[t+1],r.model.skip||i.model.skip||(ae.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=i.mK=0:(a=r.mK/r.deltaK,o=i.mK/r.deltaK,(l=Math.pow(a,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),r.mK=a*s*r.deltaK,i.mK=o*s*r.deltaK)));for(t=0;t<d;++t)(r=u[t]).model.skip||(n=t>0?u[t-1]:null,i=t<d-1?u[t+1]:null,n&&!n.model.skip&&(c=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-c,r.model.controlPointPreviousY=r.model.y-c*r.mK),i&&!i.model.skip&&(c=(i.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+c,r.model.controlPointNextY=r.model.y+c*r.mK))},ae.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},ae.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},ae.niceNum=function(e,t){var n=Math.floor(ae.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},ae.requestAnimFrame="undefined"===typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},ae.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,a=e.target||e.srcElement,o=a.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(ae.getStyle(a,"padding-left")),c=parseFloat(ae.getStyle(a,"padding-top")),u=parseFloat(ae.getStyle(a,"padding-right")),d=parseFloat(ae.getStyle(a,"padding-bottom")),h=o.right-o.left-l-u,f=o.bottom-o.top-c-d;return{x:n=Math.round((n-o.left-l)/h*a.width/t.currentDevicePixelRatio),y:r=Math.round((r-o.top-c)/f*a.height/t.currentDevicePixelRatio)}},ae.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},ae.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},ae._calculatePadding=function(e,t,n){return(t=ae.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},ae._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},ae.getMaximumWidth=function(e){var t=ae._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-ae._calculatePadding(t,"padding-left",n)-ae._calculatePadding(t,"padding-right",n),i=ae.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},ae.getMaximumHeight=function(e){var t=ae._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-ae._calculatePadding(t,"padding-top",n)-ae._calculatePadding(t,"padding-bottom",n),i=ae.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},ae.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},ae.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!==typeof window&&window.devicePixelRatio||1;
vendor: 53,998 bytes, line 2
2if(1!==n){var r=e.canvas,i=e.height,a=e.width;r.height=i*n,r.width=a*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=a+"px")}},ae.fontString=function(e,t,n){return t+" "+e+"px "+n},ae.longestText=function(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.font=t;var o,s,l,c,u,d=0,h=n.length;for(o=0;o<h;o++)if(void 0!==(c=n[o])&&null!==c&&!0!==ae.isArray(c))d=ae.measureText(e,i,a,d,c);else if(ae.isArray(c))for(s=0,l=c.length;s<l;s++)void 0===(u=c[s])||null===u||ae.isArray(u)||(d=ae.measureText(e,i,a,d,u));var f=a.length/2;if(f>n.length){for(o=0;o<f;o++)delete i[a[o]];a.splice(0,f)}return d},ae.measureText=function(e,t,n,r,i){var a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r},ae.numberOfLabelLines=function(e){var t=1;return ae.each(e,(function(e){ae.isArray(e)&&e.length>t&&(t=e.length)})),t},ae.color=L?function(e){return e instanceof CanvasGradient&&(e=Q.global.defaultColor),L(e)}:function(e){return console.error("Color.js not found!"),e},ae.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ae.color(e).saturate(.5).darken(.1).rgbString()}};function qn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Xn(e){this.options=e||{}}ae.extend(Xn.prototype,{formats:qn,parse:qn,format:qn,add:qn,diff:qn,startOf:qn,endOf:qn,_create:function(e){return e}}),Xn.override=function(e){ae.extend(Xn.prototype,e)};var $n={_date:Xn},Kn={formatters:{values:function(e){return ae.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=ae.log10(Math.abs(r)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=ae.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(i);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(ae.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},Qn=ae.isArray,Jn=ae.isNullOrUndef,Zn=ae.valueOrDefault,er=ae.valueAtIndexOrDefault;function tr(e,t){for(var n=[],r=e.length/t,i=0,a=e.length;i<a;i+=r)n.push(e[Math.floor(i)]);return n}function nr(e,t,n){var r,i=e.getTicks().length,a=Math.min(t,i-1),o=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel,c=1e-6;if(!(n&&(r=1===i?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(a-1))/2,(o+=a<t?r:-r)<s-c||o>l+c)))return o}function rr(e,t){ae.each(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}function ir(e,t,n,r){var i,a,o,s,l,c,u,d,h,f,p,g,m,y=n.length,b=[],v=[],x=[],w=0,k=0;for(i=0;i<y;++i){if(s=n[i].label,l=n[i].major?t.major:t.minor,e.font=c=l.string,u=r[c]=r[c]||{data:{},gc:[]},d=l.lineHeight,h=f=0,Jn(s)||Qn(s)){if(Qn(s))for(a=0,o=s.length;a<o;++a)p=s[a],Jn(p)||Qn(p)||(h=ae.measureText(e,u.data,u.gc,h,p),f+=d)}else h=ae.measureText(e,u.data,u.gc,h,s),f=d;b.push(h),v.push(f),x.push(d/2),w=Math.max(h,w),k=Math.max(f,k)}function A(e){return{width:b[e]||0,height:v[e]||0,offset:x[e]||0}}return rr(r,y),g=b.indexOf(w),m=v.indexOf(k),{first:A(0),last:A(y-1),widest:A(g),highest:A(m)}}function ar(e){return e.drawTicks?e.tickMarkLength:0}function or(e){var t,n;return e.display?(t=ae.options._parseFont(e),n=ae.options.toPadding(e.padding),t.lineHeight+n.height):0}function sr(e,t){return ae.extend(ae.options._parseFont({fontFamily:Zn(t.fontFamily,e.fontFamily),fontSize:Zn(t.fontSize,e.fontSize),fontStyle:Zn(t.fontStyle,e.fontStyle),lineHeight:Zn(t.lineHeight,e.lineHeight)}),{color:ae.options.resolve([t.fontColor,e.fontColor,Q.global.defaultFontColor])})}function lr(e){var t=sr(e,e.minor);return{minor:t,major:e.major.enabled?sr(e,e.major):t}}function cr(e){var t,n,r,i=[];for(n=0,r=e.length;n<r;++n)"undefined"!==typeof(t=e[n])._index&&i.push(t);return i}function ur(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}function dr(e,t,n,r){var i,a,o,s,l=ur(e),c=(t.length-1)/r;if(!l)return Math.max(c,1);for(o=0,s=(i=ae.math._factorize(l)).length-1;o<s;o++)if((a=i[o])>c)return a;return Math.max(c,1)}function hr(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}function fr(e,t,n){var r,i,a=0,o=t[0];for(n=Math.ceil(n),r=0;r<e.length;r++)i=e[r],r===o?(i._index=r,o=t[++a*n]):delete i.label}function pr(e,t,n,r){var i,a,o,s,l=Zn(n,0),c=Math.min(Zn(r,e.length),e.length),u=0;for(t=Math.ceil(t),r&&(t=(i=r-n)/Math.floor(i/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(a=Math.max(l,0);a<c;a++)o=e[a],a===s?(o._index=a,u++,s=Math.round(l+u*t)):delete o.label}Q._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Kn.formatters.values,minor:{},major:{}}});var gr=fe.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){ae.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,i,a,o,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=ae.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],r=0,i=l.ticks.length;r<i;++r)o.push({value:l.ticks[r],major:!1});return l._ticks=o,s=u<o.length,a=l._convertTicksToLabels(s?tr(o,u):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?l._autoSkip(o):o,s&&(a=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=a,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e},afterUpdate:function(){ae.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ae.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){ae.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ae.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ae.noop,afterDataLimits:function(){ae.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ae.callback(this.options.beforeBuildTicks,[this])},buildTicks:ae.noop,afterBuildTicks:function(e){var t=this;return Qn(e)&&e.length?ae.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=ae.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){ae.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){ae.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ae.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,r,i,a,o,s=this,l=s.options,c=l.ticks,u=s.getTicks().length,d=c.minRotation||0,h=c.maxRotation,f=d;!s._isVisible()||!c.display||d>=h||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=l.offset?s.maxWidth/u:r/(u-1))&&(i=r/(u-(l.offset?.5:1)),a=s.maxHeight-ar(l.gridLines)-c.padding-or(l.scaleLabel),o=Math.sqrt(t*t+n*n),f=ae.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(a/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){ae.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ae.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,i=r.ticks,a=r.scaleLabel,o=r.gridLines,s=e._isVisible(),l="bottom"===r.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=ar(o)+or(a)),c?s&&(t.height=ar(o)+or(a)):t.height=e.maxHeight,i.display&&s){var u=lr(i),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,g=d.highest,m=.4*u.minor.lineHeight,y=i.padding;if(c){var b=0!==e.labelRotation,v=ae.toRadians(e.labelRotation),x=Math.cos(v),w=Math.sin(v),k=w*p.width+x*(g.height-(b?g.offset:0))+(b?0:m);t.height=Math.min(e.maxHeight,t.height+k+y);var A,E,S=e.getPixelForTick(0)-e.left,P=e.right-e.getPixelForTick(e.getTicks().length-1);b?(A=l?x*h.width+w*h.offset:w*(h.height-h.offset),E=l?w*(f.height-f.offset):x*f.width+w*f.offset):(A=h.width/2,E=f.width/2),e.paddingLeft=Math.max((A-S)*e.width/(e.width-S),0)+3,e.paddingRight=Math.max((E-P)*e.width/(e.width-P),0)+3}else{var C=i.mirror?0:p.width+y+m;t.width=Math.min(e.maxWidth,t.width+C),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){ae.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Jn(e))return NaN;if(("number"===typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,i=this;for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),n=0,r=e.length;n<r;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=ir(e.ctx,lr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,r,i;return Qn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),r=Math.min(t,n),i=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),r=e,i=e),{min:r,max:i,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:ae.noop,getPixelForValue:ae.noop,getValueForPixel:ae.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,r=t._ticks.length,i=1/Math.max(r-(n?0:1),1);return e<0||e>r-1?null:t.getPixelForDecimal(e*i+(n?i/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r,i,a=this,o=a.options.ticks,s=a._length,l=o.maxTicksLimit||s/a._tickSize()+1,c=o.major.enabled?hr(e):[],u=c.length,d=c[0],h=c[u-1];if(u>l)return fr(e,c,u/l),cr(e);if(r=dr(c,e,s,l),u>0){for(t=0,n=u-1;t<n;t++)pr(e,r,c[t],c[t+1]);return i=u>1?(h-d)/(u-1):null,pr(e,r,ae.isNullOrUndef(i)?0:d-i,d),pr(e,r,h,ae.isNullOrUndef(i)?e.length:h+i),cr(e)}return pr(e,r),cr(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=ae.toRadians(e.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=e._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return e.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i},_isVisible:function(){var e,t,n,r=this,i=r.chart,a=r.options.display;if("auto"!==a)return!!a;for(e=0,t=i.data.datasets.length;e<t;++e)if(i.isDatasetVisible(e)&&((n=i.getDatasetMeta(e)).xAxisID===r.id||n.yAxisID===r.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,r,i,a,o,s,l,c,u,d,h,f,p,g,m,y,b=this,v=b.chart,x=b.options,w=x.gridLines,k=x.position,A=w.offsetGridLines,E=b.isHorizontal(),S=b._ticksToDraw,P=S.length+(A?1:0),C=ar(w),O=[],T=w.drawBorder?er(w.lineWidth,0,0):0,N=T/2,_=ae._alignPixel,I=function(e){return _(v,e,T)};for("top"===k?(t=I(b.bottom),s=b.bottom-C,c=t-N,d=I(e.top)+N,f=e.bottom):"bottom"===k?(t=I(b.top),d=e.top,f=I(e.bottom)-N,s=t+N,c=b.top+C):"left"===k?(t=I(b.right),o=b.right-C,l=t-N,u=I(e.left)+N,h=e.right):(t=I(b.left),u=e.left,h=I(e.right)-N,o=t+N,l=b.left+C),n=0;n<P;++n)r=S[n]||{},Jn(r.label)&&n<S.length||(n===b.zeroLineIndex&&x.offset===A?(p=w.zeroLineWidth,g=w.zeroLineColor,m=w.zeroLineBorderDash||[],y=w.zeroLineBorderDashOffset||0):(p=er(w.lineWidth,n,1),g=er(w.color,n,"rgba(0,0,0,0.1)"),m=w.borderDash||[],y=w.borderDashOffset||0),void 0!==(i=nr(b,r._index||n,A))&&(a=_(v,i,p),E?o=l=u=h=a:s=c=d=f=a,O.push({tx1:o,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:h,y2:f,width:p,color:g,borderDash:m,borderDashOffset:y})));return O.ticksLength=P,O.borderValue=t,O},_computeLabelItems:function(){var e,t,n,r,i,a,o,s,l,c,u,d,h=this,f=h.options,p=f.ticks,g=f.position,m=p.mirror,y=h.isHorizontal(),b=h._ticksToDraw,v=lr(p),x=p.padding,w=ar(f.gridLines),k=-ae.toRadians(h.labelRotation),A=[];for("top"===g?(a=h.bottom-w-x,o=k?"left":"center"):"bottom"===g?(a=h.top+w+x,o=k?"right":"center"):"left"===g?(i=h.right-(m?0:w)-x,o=m?"left":"right"):(i=h.left+(m?0:w)+x,o=m?"right":"left"),e=0,t=b.length;e<t;++e)r=(n=b[e]).label,Jn(r)||(s=h.getPixelForTick(n._index||e)+p.labelOffset,c=(l=n.major?v.major:v.minor).lineHeight,u=Qn(r)?r.length:1,y?(i=s,d="top"===g?((k?1:.5)-u)*c:(k?0:.5)*c):(a=s,d=(1-u)*c/2),A.push({x:i,y:a,rotation:k,label:r,font:l,textOffset:d,textAlign:o}));return A},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var r,i,a,o,s,l=t.ctx,c=t.chart,u=ae._alignPixel,d=n.drawBorder?er(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(a=0,o=h.length;a<o;++a)r=(s=h[a]).width,i=s.color,r&&i&&(l.save(),l.lineWidth=r,l.strokeStyle=i,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,p,g,m,y=d,b=er(n.lineWidth,h.ticksLength-1,1),v=h.borderValue;t.isHorizontal()?(f=u(c,t.left,y)-y/2,p=u(c,t.right,b)+b/2,g=m=v):(g=u(c,t.top,y)-y/2,m=u(c,t.bottom,b)+b/2,f=p=v),l.lineWidth=d,l.strokeStyle=er(n.color,0),l.beginPath(),l.moveTo(f,g),l.lineTo(p,m),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,r,i,a,o,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,r=u.length;t<r;++t){if(o=(a=u[t]).font,c.save(),c.translate(a.x,a.y),c.rotate(a.rotation),c.font=o.string,c.fillStyle=o.color,c.textBaseline="middle",c.textAlign=a.textAlign,s=a.label,l=a.textOffset,Qn(s))for(n=0,i=s.length;n<i;++n)c.fillText(""+s[n],0,l),l+=o.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,r=n.scaleLabel;if(r.display){var i,a,o=Zn(r.fontColor,Q.global.defaultFontColor),s=ae.options._parseFont(r),l=ae.options.toPadding(r.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())i=e.left+e.width/2,a="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var h="left"===u;i=h?e.left+c+l.top:e.right-c-l.top,a=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(i,a),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(r.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,r=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==r&&e.draw===e._draw?[{z:r,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!e||r.type===e)&&(n?r.xAxisID===t.id:r.yAxisID===t.id)}))}});gr.prototype._draw=gr.prototype.draw;var mr=gr,yr=ae.isNullOrUndef,br={position:"bottom"},vr=mr.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),r=t.options.ticks,i=r.min,a=r.max,o=0,s=n.length-1;void 0!==i&&(e=n.indexOf(i))>=0&&(o=e),void 0!==a&&(e=n.indexOf(a))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;mr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,i,a,o=this;return yr(t)||yr(n)||(e=o.chart.data.datasets[n].data[t]),yr(e)||(r=o.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(i=o._getLabels(),e=ae.valueOrDefault(r,e),t=-1!==(a=i.indexOf(e))?a:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),xr=br;vr._defaults=xr;var wr=ae.noop,kr=ae.isNullOrUndef;function Ar(e,t){var n,r,i,a,o=[],s=1e-14,l=e.stepSize,c=l||1,u=e.maxTicks-1,d=e.min,h=e.max,f=e.precision,p=t.min,g=t.max,m=ae.niceNum((g-p)/u/c)*c;if(m<s&&kr(d)&&kr(h))return[p,g];(a=Math.ceil(g/m)-Math.floor(p/m))>u&&(m=ae.niceNum(a*m/u/c)*c),l||kr(f)?n=Math.pow(10,ae._decimalPlaces(m)):(n=Math.pow(10,f),m=Math.ceil(m*n)/n),r=Math.floor(p/m)*m,i=Math.ceil(g/m)*m,l&&(!kr(d)&&ae.almostWhole(d/m,m/1e3)&&(r=d),!kr(h)&&ae.almostWhole(h/m,m/1e3)&&(i=h)),a=(i-r)/m,a=ae.almostEquals(a,Math.round(a),m/1e3)?Math.round(a):Math.ceil(a),r=Math.round(r*n)/n,i=Math.round(i*n)/n,o.push(kr(d)?r:d);for(var y=1;y<a;++y)o.push(Math.round((r+y*m)*n)/n);return o.push(kr(h)?i:h),o}var Er=mr.extend({getRightValue:function(e){return"string"===typeof e?+e:mr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=ae.sign(e.min),r=ae.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==a&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,i=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wr,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:ae.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=Ar(r,e);e.handleDirectionalChanges(),e.max=ae.max(i),e.min=ae.min(i),t.reverse?(i.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),mr.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),r=t.min,i=t.max;mr.prototype._configure.call(t),t.options.offset&&n.length&&(r-=e=(i-r)/Math.max(n.length-1,1)/2,i+=e),t._startValue=r,t._endValue=i,t._valueRange=i-r}}),Sr={position:"left",ticks:{callback:Kn.formatters.linear}},Pr=0,Cr=1;function Or(e,t,n){var r=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[r]&&(e[r]={pos:[],neg:[]}),e[r]}function Tr(e,t,n,r){var i,a,o=e.options,s=Or(t,o.stacked,n),l=s.pos,c=s.neg,u=r.length;for(i=0;i<u;++i)a=e._parseValue(r[i]),isNaN(a.min)||isNaN(a.max)||n.data[i].hidden||(l[i]=l[i]||0,c[i]=c[i]||0,o.relativePoints?l[i]=100:a.min<0||a.max<0?c[i]+=a.min:l[i]+=a.max)}function Nr(e,t,n){var r,i,a=n.length;for(r=0;r<a;++r)i=e._parseValue(n[r]),isNaN(i.min)||isNaN(i.max)||t.data[r].hidden||(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}var _r=Er.extend({determineDataLimits:function(){var e,t,n,r,i=this,a=i.options,o=i.chart.data.datasets,s=i._getMatchingVisibleMetas(),l=a.stacked,c={},u=s.length;if(i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<u;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<u;++e)n=o[(t=s[e]).index].data,l?Tr(i,c,t,n):Nr(i,t,n);ae.each(c,(function(e){r=e.pos.concat(e.neg),i.min=Math.min(i.min,ae.min(r)),i.max=Math.max(i.max,ae.max(r))})),i.min=ae.isFinite(i.min)&&!isNaN(i.min)?i.min:Pr,i.max=ae.isFinite(i.max)&&!isNaN(i.max)?i.max:Cr,i.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=ae.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Ir=Sr;_r._defaults=Ir;var Rr=ae.valueOrDefault,Mr=ae.math.log10;function jr(e,t){var n,r,i=[],a=Rr(e.min,Math.pow(10,Math.floor(Mr(t.min)))),o=Math.floor(Mr(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===a?(n=Math.floor(Mr(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),i.push(a),a=r*Math.pow(10,n)):(n=Math.floor(Mr(a)),r=Math.floor(a/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(a),10===++r&&(r=1,l=++n>=0?1:l),a=Math.round(r*Math.pow(10,n)*l)/l}while(n<o||n===o&&r<s);var c=Rr(e.max,a);return i.push(c),i}var Lr={position:"left",ticks:{callback:Kn.formatters.logarithmic}};function Br(e,t){return ae.isFinite(e)&&e>=0?e:t}var Fr=mr.extend({determineDataLimits:function(){var e,t,n,r,i,a,o=this,s=o.options,l=o.chart,c=l.data.datasets,u=o.isHorizontal();function d(e){return u?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<c.length;e++){var p=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),i=0,a=(r=c[e].data).length;i<a;i++){var g=f[p];n=o._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||t.data[i].hidden||n.min<0||n.max<0||(g[i]=g[i]||0,g[i]+=n.max)}}ae.each(f,(function(e){if(e.length>0){var t=ae.min(e),n=ae.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}}))}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(i=0,a=(r=c[e].data).length;i<a;i++)n=o._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||t.data[i].hidden||n.min<0||n.max<0||(o.min=Math.min(n.min,o.min),o.max=Math.max(n.max,o.max),0!==n.min&&(o.minNotZero=Math.min(n.min,o.minNotZero)));o.min=ae.isFinite(o.min)?o.min:null,o.max=ae.isFinite(o.max)?o.max:null,o.minNotZero=ae.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=1,r=10;e.min=Br(t.min,e.min),e.max=Br(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Mr(e.min))-1),e.max=Math.pow(10,Math.floor(Mr(e.max))+1)):(e.min=n,e.max=r)),null===e.min&&(e.min=Math.pow(10,Math.floor(Mr(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Mr(e.min))+1):r),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Mr(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Br(t.min),max:Br(t.max)},i=e.ticks=jr(r,e);e.max=ae.max(i),e.min=ae.min(i),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),mr.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Mr(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;mr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Rr(e.options.ticks.fontSize,Q.global.defaultFontSize)/e._length),e._startValue=Mr(t),e._valueOffset=n,e._valueRange=(Mr(e.max)-Mr(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Mr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Dr=Lr;Fr._defaults=Dr;var Ur=ae.valueOrDefault,zr=ae.valueAtIndexOrDefault,Wr=ae.options.resolve,Hr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Kn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Vr(e){var t=e.ticks;return t.display&&e.display?Ur(t.fontSize,Q.global.defaultFontSize)+2*t.backdropPaddingY:0}function Gr(e,t,n){return ae.isArray(n)?{w:ae.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function Yr(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function qr(e){var t,n,r,i=ae.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=i.string,e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(t=0;t<s;t++){r=e.getPointPosition(t,e.drawingArea+5),n=Gr(e.ctx,i.lineHeight,e.pointLabels[t]),e._pointLabelSizes[t]=n;var l=e.getIndexAngle(t),c=ae.toDegrees(l)%360,u=Yr(c,r.x,n.w,0,180),d=Yr(c,r.y,n.h,90,270);u.start<a.l&&(a.l=u.start,o.l=l),u.end>a.r&&(a.r=u.end,o.r=l),d.start<a.t&&(a.t=d.start,o.t=l),d.end>a.b&&(a.b=d.end,o.b=l)}e.setReductions(e.drawingArea,a,o)}function Xr(e){return 0===e||180===e?"center":e<180?"left":"right"}function $r(e,t,n,r){var i,a,o=n.y+r/2;if(ae.isArray(t))for(i=0,a=t.length;i<a;++i)e.fillText(t[i],n.x,o),o+=r;else e.fillText(t,n.x,o)}function Kr(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Qr(e){var t=e.ctx,n=e.options,r=n.pointLabels,i=Vr(n),a=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=ae.options._parseFont(r);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,c=e.getPointPosition(s,a+l+5),u=zr(r.fontColor,s,Q.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),h=ae.toDegrees(d);t.textAlign=Xr(h),Kr(h,e._pointLabelSizes[s],c),$r(t,e.pointLabels[s],c,o.lineHeight)}t.restore()}function Jr(e,t,n,r){var i,a=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=zr(t.color,r-1),c=zr(t.lineWidth,r-1);if((o||s)&&l&&c){if(a.save(),a.strokeStyle=l,a.lineWidth=c,a.setLineDash&&(a.setLineDash(t.borderDash||[]),a.lineDashOffset=t.borderDashOffset||0),a.beginPath(),o)a.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{i=e.getPointPosition(0,n),a.moveTo(i.x,i.y);for(var u=1;u<s;u++)i=e.getPointPosition(u,n),a.lineTo(i.x,i.y)}a.closePath(),a.stroke(),a.restore()}}function Zr(e){return ae.isNumber(e)?e:0}var ei=Er.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Vr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;ae.each(t.data.datasets,(function(i,a){if(t.isDatasetVisible(a)){var o=t.getDatasetMeta(a);ae.each(i.data,(function(t,i){var a=+e.getRightValue(t);isNaN(a)||o.data[i].hidden||(n=Math.min(a,n),r=Math.max(a,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Vr(this.options))},convertTicksToLabels:function(){var e=this;Er.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=ae.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?qr(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),a=Math.max(t.r-r.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Zr(i),a=Zr(a),o=Zr(o),s=Zr(s),r.drawingArea=Math.min(Math.floor(e-(i+a)/2),Math.floor(e-(o+s)/2)),r.setCenterPoint(i,a,o,s)},setCenterPoint:function(e,t,n,r){var i=this,a=i.width-t-i.drawingArea,o=e+i.drawingArea,s=n+i.drawingArea,l=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((o+a)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(ae.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,r=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,r=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&r<0?r:n>0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,i=r.ctx,a=r.options,o=a.gridLines,s=a.angleLines,l=Ur(s.lineWidth,o.lineWidth),c=Ur(s.color,o.color);if(a.pointLabels.display&&Qr(r),o.display&&ae.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),Jr(r,o,t,n))})),s.display&&l&&c){for(i.save(),i.lineWidth=l,i.strokeStyle=c,i.setLineDash&&(i.setLineDash(Wr([s.borderDash,o.borderDash,[]])),i.lineDashOffset=Wr([s.borderDashOffset,o.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(a.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,i,a=e.getIndexAngle(0),o=ae.options._parseFont(n),s=Ur(n.fontColor,Q.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",ae.each(e.ticks,(function(a,l){(0!==l||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(i=t.measureText(a).width,t.fillStyle=n.backdropColor,t.fillRect(-i/2-n.backdropPaddingX,-r-o.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(a,0,-r))})),t.restore()}},_drawTitle:ae.noop}),ti=Hr;ei._defaults=ti;var ni=ae._deprecated,ri=ae.options.resolve,ii=ae.valueOrDefault,ai=Number.MIN_SAFE_INTEGER||-9007199254740991,oi=Number.MAX_SAFE_INTEGER||9007199254740991,si={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},li=Object.keys(si);function ci(e,t){return e-t}function ui(e){var t,n,r,i={},a=[];for(t=0,n=e.length;t<n;++t)i[r=e[t]]||(i[r]=!0,a.push(r));return a}function di(e){return ae.valueOrDefault(e.time.min,e.ticks.min)}function hi(e){return ae.valueOrDefault(e.time.max,e.ticks.max)}function fi(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var i,a,o,s,l,c=[],u=[t];for(i=0,a=e.length;i<a;++i)(s=e[i])>t&&s<n&&u.push(s);for(u.push(n),i=0,a=u.length;i<a;++i)l=u[i+1],o=u[i-1],s=u[i],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||c.push({time:s,pos:i/(a-1)});return c}function pi(e,t,n){for(var r,i,a,o=0,s=e.length-1;o>=0&&o<=s;){if(i=e[(r=o+s>>1)-1]||null,a=e[r],!i)return{lo:null,hi:a};if(a[t]<n)o=r+1;else{if(!(i[t]>n))return{lo:i,hi:a};s=r-1}}return{lo:a,hi:null}}function gi(e,t,n,r){var i=pi(e,t,n),a=i.lo?i.hi?i.lo:e[e.length-2]:e[0],o=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=o[t]-a[t],l=s?(n-a[t])/s:0,c=(o[r]-a[r])*l;return a[r]+c}function mi(e,t){var n=e._adapter,r=e.options.time,i=r.parser,a=i||r.format,o=t;return"function"===typeof i&&(o=i(o)),ae.isFinite(o)||(o="string"===typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(i||"function"!==typeof a||(o=a(t),ae.isFinite(o)||(o=n.parse(o))),o)}function yi(e,t){if(ae.isNullOrUndef(t))return null;var n=e.options.time,r=mi(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function bi(e,t,n,r){var i,a,o,s=li.length;for(i=li.indexOf(e);i<s-1;++i)if(o=(a=si[li[i]]).steps?a.steps:oi,a.common&&Math.ceil((n-t)/(o*a.size))<=r)return li[i];return li[s-1]}function vi(e,t,n,r,i){var a,o;for(a=li.length-1;a>=li.indexOf(n);a--)if(o=li[a],si[o].common&&e._adapter.diff(i,r,o)>=t-1)return o;return li[n?li.indexOf(n):0]}function xi(e){for(var t=li.indexOf(e)+1,n=li.length;t<n;++t)if(si[li[t]].common)return li[t]}function wi(e,t,n,r){var i,a=e._adapter,o=e.options,s=o.time,l=s.unit||bi(s.minUnit,t,n,r),c=ri([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=t,h=[];if(u&&(d=+a.startOf(d,"isoWeek",u)),d=+a.startOf(d,u?"day":l),a.diff(n,t,l)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(i=d;i<n;i=+a.add(i,c,l))h.push(i);return i!==n&&"ticks"!==o.bounds||h.push(i),h}function ki(e,t,n,r,i){var a,o,s=0,l=0;return i.offset&&t.length&&(a=gi(e,"time",t[0],"pos"),s=1===t.length?1-a:(gi(e,"time",t[1],"pos")-a)/2,o=gi(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-gi(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}function Ai(e,t,n,r){var i,a,o=e._adapter,s=+o.startOf(t[0].value,r),l=t[t.length-1].value;for(i=s;i<=l;i=+o.add(i,1,r))(a=n[i])>=0&&(t[a].major=!0);return t}function Ei(e,t,n){var r,i,a=[],o={},s=t.length;for(r=0;r<s;++r)o[i=t[r]]=r,a.push({value:i,major:!1});return 0!==s&&n?Ai(e,a,o,n):a}var Si={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Pi=mr.extend({initialize:function(){this.mergeTicksOptions(),mr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new $n._date(t.adapters.date);return ni("time scale",n.format,"time.format","time.parser"),ni("time scale",n.min,"time.min","ticks.min"),ni("time scale",n.max,"time.max","ticks.max"),ae.mergeIf(n.displayFormats,r.formats()),mr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),mr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,i,a,o,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",h=oi,f=ai,p=[],g=[],m=[],y=s._getLabels();for(e=0,n=y.length;e<n;++e)m.push(yi(s,y[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(i=l.data.datasets[e].data,ae.isObject(i[0]))for(g[e]=[],t=0,r=i.length;t<r;++t)a=yi(s,i[t]),p.push(a),g[e][t]=a;else g[e]=m.slice(0),o||(p=p.concat(m),o=!0);else g[e]=[];m.length&&(h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=n>1?ui(p).sort(ci):p.sort(ci),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=yi(s,di(u))||h,f=yi(s,hi(u))||f,h=h===oi?+c.startOf(Date.now(),d):h,f=f===ai?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var e,t,n,r=this,i=r.min,a=r.max,o=r.options,s=o.ticks,l=o.time,c=r._timestamps,u=[],d=r.getLabelCapacity(i),h=s.source,f=o.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:wi(r,i,a,d),"ticks"===o.bounds&&c.length&&(i=c[0],a=c[c.length-1]),i=yi(r,di(o))||i,a=yi(r,hi(o))||a,e=0,t=c.length;e<t;++e)(n=c[e])>=i&&n<=a&&u.push(n);return r.min=i,r.max=a,r._unit=l.unit||(s.autoSkip?bi(l.minUnit,r.min,r.max,d):vi(r,u.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?xi(r._unit):void 0,r._table=fi(r._timestamps.data,i,a,f),r._offsets=ki(r._table,u,i,a,o),s.reverse&&u.reverse(),Ei(r,u,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,i=n.chart.data,a=n.options.time,o=i.labels&&e<i.labels.length?i.labels[e]:"",s=i.datasets[t].data[e];return ae.isObject(s)&&(o=n.getRightValue(s)),a.tooltipFormat?r.format(mi(n,o),a.tooltipFormat):"string"===typeof o?o:r.format(mi(n,o),a.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var i=this,a=i._adapter,o=i.options,s=o.time.displayFormats,l=s[i._unit],c=i._majorUnit,u=s[c],d=n[t],h=o.ticks,f=c&&u&&d&&d.major,p=a.format(e,r||(f?u:l)),g=f?h.major:h.minor,m=ri([g.callback,g.userCallback,h.callback,h.userCallback]);return m?m(p,t,n):p},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this,n=t._offsets,r=gi(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+r)*n.factor)},getPixelForValue:function(e,t,n){var r=this,i=null;if(void 0!==t&&void 0!==n&&(i=r._timestamps.datasets[n][t]),null===i&&(i=yi(r,e)),null!==i)return r.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end,i=gi(t._table,"pos",r,"time");return t._adapter._create(i)},_getLabelSize:function(e){var t=this,n=t.options.ticks,r=t.ctx.measureText(e).width,i=ae.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=ii(n.fontSize,Q.global.defaultFontSize);return{w:r*a+s*o,h:r*o+s*a}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=t.tickFormatFunction(e,0,Ei(t,[e],t._majorUnit),i),o=t._getLabelSize(a),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&s--,s>0?s:1}}),Ci=Si;Pi._defaults=Ci;var Oi={category:vr,linear:_r,logarithmic:Fr,radialLinear:ei,time:Pi},Ti={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};$n._date.override("function"===typeof e?{_id:"moment",formats:function(){return Ti},parse:function(t,n){return"string"===typeof t&&"string"===typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),Q._set("global",{plugins:{filler:{propagate:!0}}});var Ni={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t)&&r.dataset._children||[],a=i.length||0;return a?function(e,t){return t<a&&i[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return ae.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function _i(e,t,n){var r,i=e._model||{},a=i.fill;if(void 0===a&&(a=!!i.backgroundColor),!1===a||null===a)return!1;if(!0===a)return"origin";if(r=parseFloat(a,10),isFinite(r)&&Math.floor(r)===r)return"-"!==a[0]&&"+"!==a[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function Ii(e){var t,n=e.el._model||{},r=e.el._scale||{},i=e.fill,a=null;if(isFinite(i))return null;if("start"===i?a=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?a=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:r.getBasePixel&&(a=r.getBasePixel()),void 0!==a&&null!==a){if(void 0!==a.x&&void 0!==a.y)return a;if(ae.isFinite(a))return{x:(t=r.isHorizontal())?a:null,y:t?null:a}}return null}function Ri(e){var t,n,r,i,a,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,r=o.getPointPositionForValue(0,t),i=0;i<l;++i)a="start"===c||"end"===c?o.getPointPositionForValue(i,"start"===c?t:n):o.getBasePosition(i),s.gridLines.circular&&(a.cx=r.x,a.cy=r.y,a.angle=o.getIndexAngle(i)-Math.PI/2),u.push(a);return u}function Mi(e){return(e.el._scale||{}).getPointPositionForValue?Ri(e):Ii(e)}function ji(e,t,n){var r,i=e[t].fill,a=[t];if(!n)return i;for(;!1!==i&&-1===a.indexOf(i);){if(!isFinite(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;a.push(i),i=r.fill}return!1}function Li(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Ni[n](e))}function Bi(e){return e&&!e.skip}function Fi(e,t,n,r,i){var a,o,s,l;if(r&&i){for(e.moveTo(t[0].x,t[0].y),a=1;a<r;++a)ae.canvas.lineTo(e,t[a-1],t[a]);if(void 0===n[0].angle)for(e.lineTo(n[i-1].x,n[i-1].y),a=i-1;a>0;--a)ae.canvas.lineTo(e,n[a],n[a-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),a=i-1;a>0;--a)e.arc(o,s,l,n[a].angle,n[a-1].angle,!0)}}function Di(e,t,n,r,i,a){var o,s,l,c,u,d,h,f,p=t.length,g=r.spanGaps,m=[],y=[],b=0,v=0;for(e.beginPath(),o=0,s=p;o<s;++o)u=n(c=t[l=o%p]._view,l,r),d=Bi(c),h=Bi(u),a&&void 0===f&&d&&(s=p+(f=o+1)),d&&h?(b=m.push(c),v=y.push(u)):b&&v&&(g?(d&&m.push(c),h&&y.push(u)):(Fi(e,m,y,b,v),b=v=0,m=[],y=[]));Fi(e,m,y,b,v),e.closePath(),e.fillStyle=i,e.fill()}var Ui={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,i,a,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(r=0;r<o;++r)a=null,(i=(n=e.getDatasetMeta(r)).dataset)&&i._model&&i instanceof Ge.Line&&(a={visible:e.isDatasetVisible(r),fill:_i(i,r,o),chart:e,el:i}),n.$filler=a,l.push(a);for(r=0;r<o;++r)(a=l[r])&&(a.fill=ji(l,r,s),a.boundary=Mi(a),a.mapper=Li(a))},beforeDatasetsDraw:function(e){var t,n,r,i,a,o,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(i=(r=t.el)._view,a=r._children||[],o=t.mapper,s=i.backgroundColor||Q.global.defaultColor,o&&s&&a.length&&(ae.canvas.clipArea(c,e.chartArea),Di(c,a,o,i,s,r._loop),ae.canvas.unclipArea(c)))}},zi=ae.rtl.getRtlAdapter,Wi=ae.noop,Hi=ae.valueOrDefault;function Vi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}Q._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,i=document.createElement("ul"),a=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,n=a.length;t<n;t++)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[t].backgroundColor,a[t].label&&r.appendChild(document.createTextNode(a[t].label));return i.outerHTML}});var Gi=fe.extend({initialize:function(e){var t=this;ae.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Wi,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Wi,beforeSetDimensions:Wi,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Wi,beforeBuildLabels:Wi,buildLabels:function(){var e=this,t=e.options.labels||{},n=ae.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Wi,beforeFit:Wi,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,i=e.ctx,a=ae.options._parseFont(n),o=a.size,s=e.legendHitBoxes=[],l=e.minSize,c=e.isHorizontal();if(c?(l.width=e.maxWidth,l.height=r?10:0):(l.width=r?10:0,l.height=e.maxHeight),r){if(i.font=a.string,c){var u=e.lineWidths=[0],d=0;i.textAlign="left",i.textBaseline="middle",ae.each(e.legendItems,(function(e,t){var r=Vi(n,o)+o/2+i.measureText(e.text).width;(0===t||u[u.length-1]+r+2*n.padding>l.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:o},u[u.length-1]+=r+n.padding})),l.height+=d}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],g=n.padding,m=0,y=0;ae.each(e.legendItems,(function(e,t){var r=Vi(n,o)+o/2+i.measureText(e.text).width;t>0&&y+o+2*h>l.height&&(g+=m+n.padding,f.push(m),p.push(y),m=0,y=0),m=Math.max(m,r),y+=o+h,s[t]={left:0,top:0,width:r,height:o}})),g+=m,f.push(m),p.push(y),l.width+=g}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Wi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=Q.global,i=r.defaultColor,a=r.elements.line,o=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=zi(t.rtl,e.left,e.minSize.width),h=e.ctx,f=Hi(n.fontColor,r.defaultFontColor),p=ae.options._parseFont(n),g=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var m=Vi(n,g),y=e.legendHitBoxes,b=function(e,t,r){if(!(isNaN(m)||m<=0)){h.save();var o=Hi(r.lineWidth,a.borderWidth);if(h.fillStyle=Hi(r.fillStyle,i),h.lineCap=Hi(r.lineCap,a.borderCapStyle),h.lineDashOffset=Hi(r.lineDashOffset,a.borderDashOffset),h.lineJoin=Hi(r.lineJoin,a.borderJoinStyle),h.lineWidth=o,h.strokeStyle=Hi(r.strokeStyle,i),h.setLineDash&&h.setLineDash(Hi(r.lineDash,a.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=d.xPlus(e,m/2),c=t+g/2;ae.canvas.drawPoint(h,r.pointStyle,s,l,c,r.rotation)}else h.fillRect(d.leftForLtr(e,m),t,m,g),0!==o&&h.strokeRect(d.leftForLtr(e,m),t,m,g);h.restore()}},v=function(e,t,n,r){var i=g/2,a=d.xPlus(e,m+i),o=t+i;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(d.xPlus(a,r),o),h.stroke())},x=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},w=e.isHorizontal();u=w?{x:e.left+x(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+x(o,s[0]),line:0},ae.rtl.overrideTextDirection(e.ctx,t.textDirection);var k=g+n.padding;ae.each(e.legendItems,(function(t,r){var i=h.measureText(t.text).width,a=m+g/2+i,f=u.x,p=u.y;d.setWidth(e.minSize.width),w?r>0&&f+a+n.padding>e.left+e.minSize.width&&(p=u.y+=k,u.line++,f=u.x=e.left+x(l,c[u.line])):r>0&&p+k>e.top+e.minSize.height&&(f=u.x=f+e.columnWidths[u.line]+n.padding,u.line++,p=u.y=e.top+x(o,s[u.line]));var A=d.x(f);b(A,p,t),y[r].left=d.leftForLtr(A,y[r].width),y[r].top=p,v(A,p,t,i),w?u.x+=a+n.padding:u.y+=k})),ae.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,i,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(i=a.legendHitBoxes,n=0;n<i.length;++n)if(e>=(r=i[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return a.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===i?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Yi(e,t){var n=new Gi({ctx:e.ctx,options:t,chart:e});Ht.configure(e,n,t),Ht.addBox(e,n),e.legend=n}var qi={id:"legend",_element:Gi,beforeInit:function(e){var t=e.options.legend;t&&Yi(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(ae.mergeIf(t,Q.global.legend),n?(Ht.configure(e,n,t),n.options=t):Yi(e,t)):n&&(Ht.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Xi=ae.noop;Q._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var $i=fe.extend({initialize:function(e){var t=this;ae.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:Xi,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Xi,beforeSetDimensions:Xi,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Xi,beforeBuildLabels:Xi,buildLabels:Xi,afterBuildLabels:Xi,beforeFit:Xi,fit:function(){var e,t=this,n=t.options,r=t.minSize={},i=t.isHorizontal();n.display?(e=(ae.isArray(n.text)?n.text.length:1)*ae.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=i?t.maxWidth:e,t.height=r.height=i?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Xi,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,i,a,o=ae.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=ae.valueOrDefault(n.fontColor,Q.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(i=d+(f-d)/2,a=u+l,r=f-d):(i="left"===n.position?d+l:f-l,a=u+(h-u)/2,r=h-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(i,a),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(ae.isArray(p))for(var g=0,m=0;m<p.length;++m)t.fillText(p[m],0,g,r),g+=s;else t.fillText(p,0,0,r);
2t.restore()}}});function Ki(e,t){var n=new $i({ctx:e.ctx,options:t,chart:e});Ht.configure(e,n,t),Ht.addBox(e,n),e.titleBlock=n}var Qi={},Ji=Ui,Zi=qi,ea={id:"title",_element:$i,beforeInit:function(e){var t=e.options.title;t&&Ki(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(ae.mergeIf(t,Q.global.title),n?(Ht.configure(e,n,t),n.options=t):Ki(e,t)):n&&(Ht.removeBox(e,n),delete e.titleBlock)}};for(var ta in Qi.filler=Ji,Qi.legend=Zi,Qi.title=ea,Gn.helpers=ae,Yn(),Gn._adapters=$n,Gn.Animation=ge,Gn.animationService=me,Gn.controllers=At,Gn.DatasetController=ke,Gn.defaults=Q,Gn.Element=fe,Gn.elements=Ge,Gn.Interaction=Nt,Gn.layouts=Ht,Gn.platform=bn,Gn.plugins=vn,Gn.Scale=mr,Gn.scaleService=xn,Gn.Ticks=Kn,Gn.Tooltip=jn,Gn.helpers.each(Oi,(function(e,t){Gn.scaleService.registerScaleType(t,e,e._defaults)})),Qi)Qi.hasOwnProperty(ta)&&Gn.plugins.register(Qi[ta]);Gn.platform.initialize();var na=Gn;return"undefined"!==typeof window&&(window.Chart=Gn),Gn.Chart=Gn,Gn.Legend=Qi.legend._element,Gn.Title=Qi.title._element,Gn.pluginService=Gn.plugins,Gn.PluginBase=Gn.Element.extend({}),Gn.canvasHelpers=Gn.helpers.canvas,Gn.layoutService=Gn.layouts,Gn.LinearScaleBase=Er,Gn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Gn[e]=function(t,n){return new Gn(t,Gn.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),na}(function(){try{return n(59051)}catch(e){}}())},48738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,a(n)))}return e}function a(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},49076:(e,t,n)=>{var r=n(10366),i=n(86942)((function(e,t,n){r(e,n,t)}));e.exports=i},49366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.17.0"},49757:(e,t,n)=>{var r=n(36669),i=n(56010),a=n(63445);e.exports=function(e,t,n,o,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var y=e[p],b=t[p];if(o)var v=c?o(b,y,p,t,e,l):o(y,b,p,e,t,l);if(void 0!==v){if(v)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!a(m,t)&&(y===e||s(y,e,n,o,l)))return m.push(t)}))){g=!1;break}}else if(y!==b&&!s(y,b,n,o,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},49831:(e,t,n)=>{"use strict";var r=n(56412),i=n(34437),a=n(30421),o=n(58668),s=n(93219),l=n(1084),c=r.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(e){return a(u,e)||(u[e]=s&&a(c,e)?c[e]:d("Symbol."+e)),u[e]}},49995:(e,t,n)=>{"use strict";e.exports=n(96066)},50041:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(16668).default,a=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;const o=n(17656),s=n(67867);var l=new WeakMap;class c extends o.WordlistOwl{constructor(e,t,n,i){super(e,t,i),r(this,l,void 0),a(l,this,n)}get _accent(){return i(l,this)}_decodeWords(){return(0,s.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=c},50184:(e,t,n)=>{var r=n(22022),i=n(39248);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},50582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const r=n(69778),i=e=>e instanceof Uint8Array;t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>
2new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!i(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=a[e[n]];return t},t.hexToBytes=function(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const t=2*r,i=e.slice(t,t+2),a=Number.parseInt(i,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");n[r]=a}return n};function o(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function s(e){if("string"===typeof e&&(e=o(e)),!i(e))throw new Error("expected Uint8Array, got "+typeof e);return e}t.nextTick=async()=>{},t.asyncLoop=async function(e,n,r){let i=Date.now();for(let a=0;a<e;a++){r(a);const e=Date.now()-i;e>=0&&e<n||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=o,t.toBytes=s,t.concatBytes=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let a=0;return t.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");r.set(e,a),a+=e.length})),r};t.Hash=class{clone(){return this._cloneInto()}};const l={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==l.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r.crypto&&"function"===typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},50638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;const n=BigInt(0),r=BigInt(1),i=BigInt(2),a=e=>e instanceof Uint8Array,o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if(!a(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=o[e[n]];return t}function l(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function c(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function u(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const t=2*r,i=e.slice(t,t+2),a=Number.parseInt(i,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");n[r]=a}return n}function d(e,t){return u(e.toString(16).padStart(2*t,"0"))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let i=0;return t.forEach((e=>{if(!a(e))throw new Error("Uint8Array expected");r.set(e,i),i+=e.length})),r}t.bytesToHex=s,t.numberToHexUnpadded=l,t.hexToNumber=c,t.hexToBytes=u,t.bytesToNumberBE=function(e){return c(s(e))},t.bytesToNumberLE=function(e){if(!a(e))throw new Error("Uint8Array expected");return c(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return u(l(e))},t.ensureBytes=function(e,t,n){let r;if("string"===typeof t)try{r=u(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else{if(!a(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}const i=r.length;if("number"===typeof n&&i!==n)throw new Error(`${e} expected ${n} bytes, got ${i}`);return r},t.concatBytes=h,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},t.utf8ToBytes=function(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))},t.bitLen=function(e){let t;for(t=0;e>n;e>>=r,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&r};t.bitSet=(e,t,i)=>e|(i?r:n)<<BigInt(t);t.bitMask=e=>(i<<BigInt(e-1))-r;const f=e=>new Uint8Array(e),p=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,n){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof n)throw new Error("hmacFn must be a function");let r=f(e),i=f(e),a=0;const o=()=>{r.fill(1),i.fill(0),a=0},s=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return n(i,r,...t)},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f();i=s(p([0]),e),r=s(),0!==e.length&&(i=s(p([1]),e),r=s())},c=()=>
2{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){r=s();const t=r.slice();n.push(t),e+=r.length}return h(...n)};return(e,t)=>{let n;for(o(),l(e);!(n=t(c()));)l();return o(),n}};const g={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(t,n,r)=>{const i=g[n];if("function"!==typeof i)throw new Error(`Invalid validator "${n}", expected function`);const a=e[t];if((!r||void 0!==a)&&!i(a,e))throw new Error(`Invalid param ${String(t)}=${a} (${typeof a}), expected ${n}`)};for(const[i,a]of Object.entries(t))r(i,a,!1);for(const[i,a]of Object.entries(n))r(i,a,!0);return e}},50799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authorizationify=void 0;const r=n(55114),i=n(69687),a=n(24839);t.authorizationify=function(e){return{address:(0,r.getAddress)(e.address),nonce:(0,a.getBigInt)(null!=e.nonce?e.nonce:0),chainId:(0,a.getBigInt)(null!=e.chainId?e.chainId:0),signature:i.Signature.from(e.signature)}}},50806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const r=n(51268),i=n(2420),a=(e,t,n)=>e&t^e&n^t&n,o=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]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);class c extends r.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let i=0;i<16;i++,t+=4)l[i]=e.getUint32(t,!1);for(let a=16;a<64;a++){const e=l[a-15],t=l[a-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,r=(0,i.rotr)(t,17)^(0,i.rotr)(t,19)^t>>>10;l[a]=r+l[a-7]+n+l[a-16]|0}let{A:n,B:r,C:s,D:c,E:u,F:d,G:h,H:f}=this;for(let g=0;g<64;g++){const e=f+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((p=u)&d^~p&h)+o[g]+l[g]|0,t=((0,i.rotr)(n,2)^(0,i.rotr)(n,13)^(0,i.rotr)(n,22))+a(n,r,s)|0;f=h,h=d,d=u,u=c+e|0,c=s,s=r,r=n,n=e+t|0}var p;n=n+this.A|0,r=r+this.B|0,s=s+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(n,r,s,c,u,d,h,f)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new u))},50878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88686);r.__exportStar(n(31560),t),r.__exportStar(n(70737),t),r.__exportStar(n(732),t),r.__exportStar(n(69064),t)},51170:(e,t,n)=>{var r=n(59189)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},51268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const r=n(39802),i=n(2420);class a extends i.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,r.exists)(this);const{view:t,buffer:n,blockLen:a}=this,o=(e=(0,i.toBytes)(e)).length;for(let r=0;r<o;){const s=Math.min(a-this.pos,o-r);if(s!==a)n.set(e.subarray(r,r+s),this.pos),this.pos+=s,r+=s,this.pos===a&&(this.process(t,0),this.pos=0);else{const t=(0,i.createView)(e);for(;a<=o-r;r+=a)this.process(t,r)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.exists)(this),(0,r.output)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:a,isLE:o}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(n,0),s=0);for(let r=s;r<a;r++)t[r]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),l=r?4:0,c=r?0:4;e.setUint32(t+l,o,r),e.setUint32(t+c,s,r)}(n,a-8,BigInt(8*this.length),o),this.process(n,0);const l=(0,i.createView)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r<u;r++)l.setUint32(4*r,d[r],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}}t.SHA2=a}
2,51889:(e,t,n)=>{"use strict";var r=n(48506),i=Object;e.exports=function(e){return i(r(e))}},51915:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesired","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"reserveIn","type":"uint256"},{"internalType":"uint256","name":"reserveOut","type":"uint256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}
2,{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityETHSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermit","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens","outputs":[{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"approveMax","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"removeLiquidityWithPermit","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"}
2,{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactETHForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForETHSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokensSupportingFeeOnTransferTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactETH","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]')},52123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const r=n(85339),i=n(98976),a=n(1736),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let s=null;function l(e){if(null==s){s={};for(let e=0;e<58;e++)s[o[e]]=BigInt(e)}const t=s[e];return(0,i.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const c=BigInt(0),u=BigInt(58);t.encodeBase58=function(e){const t=(0,r.getBytes)(e);let n=(0,a.toBigInt)(t),i="";for(;n;)i=o[Number(n%u)]+i,n/=u;for(let r=0;r<t.length&&!t[r];r++)i=o[0]+i;return i},t.decodeBase58=function(e){let t=c;for(let n=0;n<e.length;n++)t*=u,t+=l(e[n]);return t}},52325:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});
2class r extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(e=>{if(t.cause instanceof r){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return null!==(e=t.cause)&&void 0!==e&&e.message?t.cause.message:t.details})(),i=t.cause instanceof r&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${null!==i&&void 0!==i?i:""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||i?["",n?`Details: ${n}`:void 0,i?`See: ${a}`:void 0]:[]].filter((e=>"string"===typeof e)).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{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,"shortMessage",{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,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=n,this.docs=a,this.docsPath=i,this.shortMessage=e}walk(e){return i(this,e)}}function i(e,t){return null!==t&&void 0!==t&&t(e)?e:e&&"object"===typeof e&&"cause"in e&&e.cause?i(e.cause,t):t?null:e}},52551:e=>{function t(e,t){var n=e.length,r=new Array(n),i={},a=n,o=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));a--;)i[a]||l(e[a],a,new Set);return r;function l(e,t,a){if(a.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(h){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var u=o.get(e)||new Set;if(t=(u=Array.from(u)).length){a.add(e);do{var d=u[--t];l(d,s.get(d),a)}while(t);a.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=t},52745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="\u039e",t.MessagePrefix="\x19Ethereum Signed Message:\n"},53044:(e,t,n)=>{"use strict";e.exports=n(39940)},53074:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const r=n(35815),i=n(46851);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new r.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},53187:(e,t,n)=>{"use strict";n.d(t,{IQ:()=>d,ME:()=>u,Nx:()=>c,Sl:()=>s,uU:()=>l});var r=n(59050),i=n(4846),a=n(53415),o=n(32146);function s(e,t){let{size:n}=t;if((0,i.E)(e)>n)throw new r.u({givenSize:(0,i.E)(e),maxSize:n})}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n}=t;t.size&&s(e,{size:t.size});const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(t.size&&(s(n,{size:t.size}),n=(0,a.B)(n)),"0x00"===(0,a.B)(n))return!1;if("0x01"===(0,a.B)(n))return!0;throw new r.H2(n)}function u(e){return Number(l(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.aT)(e);return t.size&&(s(n,{size:t.size}),n=(0,a.B)(n,{dir:"right"})),(new TextDecoder).decode(n)}},53415:(e,t,n)=>{"use strict";function r(e){let{dir:t="left"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?e.replace("0x",""):e,r=0;for(let i=0;i<n.length-1&&"0"===n["left"===t?i:n.length-i-1].toString();
2i++)r++;return n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"===typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}n.d(t,{B:()=>r})},53540:(e,t,n)=>{"use strict";var r=n(39088),i=n(32011).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},54008:(e,t,n)=>{var r=n(91582);e.exports=function(e){return null==e?"":r(e)}},54039:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},54197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;const r=n(71446),i=r.__importStar(n(21812));t.ethers=i,r.__exportStar(n(21812),t)},54467:(e,t,n)=>{var r=n(40738),i=n(70708),a=n(26823),o=n(20475),s=n(77859);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},54761:(e,t,n)=>{var r=n(87518),i=n(12279);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},54801:e=>{"use strict";e.exports={}},55114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var r=n(3794);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return r.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return r.getIcapAddress}});var i=n(42311);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return i.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return i.getCreate2Address}});var a=n(44469);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return a.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return a.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return a.resolveAddress}})},55182:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(16668).default,a=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;const o=n(20022),s=n(24839),l=n(14015),c=Symbol.for("nodejs.util.inspect.custom"),u=new Map;var d=new WeakMap,h=new WeakMap,f=new WeakMap;class p{constructor(e,t){r(this,d,void 0),r(this,h,void 0),r(this,f,void 0),a(d,this,e),a(h,this,(0,s.getBigInt)(t)),a(f,this,new Map)}[c](){return this.toString()}toString(){const e=[];for(const t of i(f,this).values())e.push(t.toString());return`Network { name: ${this.name}, chainId: ${this.chainId}, plugins: [ ${e.join(", ")} ] }`}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return i(d,this)}set name(e){a(d,this,e)}get chainId(){return i(h,this)}set chainId(e){a(h,this,(0,s.getBigInt)(e,"chainId"))}matches(e){if(null==e)return!1;if("string"===typeof e){try{return this.chainId===(0,s.getBigInt)(e)}catch(t){}return this.name===e}if("number"===typeof e||"bigint"===typeof e){try{return this.chainId===(0,s.getBigInt)(e)}catch(t){}return!1}if("object"===typeof e){if(null!=e.chainId){try{return this.chainId===(0,s.getBigInt)(e.chainId)}catch(t){}return!1}return null!=e.name&&this.name===e.name}return!1}get plugins(){return Array.from(i(f,this).values())}attachPlugin(e){if(i(f,this).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return i(f,this).set(e.name,e.clone()),this}getPlugin(e){return i(f,this).get(e)||null}getPlugins(e){return this.plugins.filter((t=>t.name.split("#")[0]===e))}clone(){const e=new p(this.name,this.chainId);return this.plugins.forEach((t=>{e.attachPlugin(t.clone())})),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new l.GasCostPlugin;let n=t.txBase;if(null==e.to&&(n+=t.txCreate),e.data)for(let r=2;r<e.data.length;r+=2)"00"===e.data.substring(r,r+2)?n+=t.txDataZero:n+=t.txDataNonzero;if(e.accessList){const r=(0,o.accessListify)(e.accessList);for(const e in r)n+=t.txAccessListAddress+t.txAccessListStorageKey*r[e].storageKeys.length}return n}static from(e){if(function(){if(y)return;function e(e,t,n){const r=function(){const r=new p(e,t);return null!=n.ensNetwork&&r.attachPlugin(new l.EnsPlugin(null,n.ensNetwork,n.ensUniversalResolver)),r.attachPlugin(new l.GasCostPlugin),(n.plugins||[]).forEac
2h((e=>{r.attachPlugin(e)})),r};p.register(e,r),p.register(t,r),n.altNames&&n.altNames.forEach((e=>{p.register(e,r)}))}y=!0;const t="0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe";e("mainnet",1,{ensUniversalResolver:t,ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensUniversalResolver:t,ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("filecoin",314,{}),e("filecoin-calibration",314159,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[m("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[m("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1})}(),null==e)return p.from("mainnet");if("number"===typeof e&&(e=BigInt(e)),"string"===typeof e||"bigint"===typeof e){const t=u.get(e);if(t)return t();if("bigint"===typeof e)return new p("unknown",e);(0,s.assertArgument)(!1,"unknown network","network",e)}if("function"===typeof e.clone){return e.clone()}if("object"===typeof e){(0,s.assertArgument)("string"===typeof e.name&&"number"===typeof e.chainId,"invalid network object name or chainId","network",e);const t=new p(e.name,e.chainId),n=e;return(n.ensAddress||null!=n.ensNetwork||n.ensUniversalResolver)&&t.attachPlugin(new l.EnsPlugin(n.ensAddress,n.ensNetwork,n.ensUniversalResolver)),t}(0,s.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"===typeof e&&(e=BigInt(e));const n=u.get(e);n&&(0,s.assertArgument)(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),u.set(e,t)}}function g(e,t){const n=String(e);if(!n.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);const r=n.split(".");if(1===r.length&&r.push(""),2!==r.length)throw new Error(`invalid gwei value: ${e}`);for(;r[1].length<t;)r[1]+="0";if(r[1].length>9){let e=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||e++,r[1]=e.toString()}return BigInt(r[0]+r[1])}function m(e){return new l.FetchUrlFeeDataNetworkPlugin(e,(async(e,t,n)=>{let r;n.setHeader("User-Agent","ethers");try{const[t,i]=await Promise.all([n.send(),e()]);r=t;const a=r.bodyJson.standard;return{gasPrice:i.gasPrice,maxFeePerGas:g(a.maxFee,9),maxPriorityFeePerGas:g(a.maxPriorityFee,9)}}catch(i){(0,s.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}}))}t.Network=p;let y=!1},55628:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(89676),i=n(70539),a=n(63898);const o="/docs/contract/decodeFunctionResult";function s(e){const{abi:t,args:n,functionName:s,data:l}=e;let c=t[0];if(s){const e=(0,a.iY)({abi:t,args:n,name:s});if(!e)throw new r.Iz(s,{docsPath:o});c=e}if("function"!==c.type)throw new r.Iz(void 0,{docsPath:o});if(!c.outputs)throw new r.MR(c.name,{docsPath:o});const u=(0,i.n)(c.outputs,l);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},55829:(e,t,n)=>{"use strict";var r=n(39557),i=n(72097);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},56010:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},56412:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},56461:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;const i=n(24839),a=n(75593),o=n(55182),s=n(31223),l="919b412a057b5e9c9b6dce193c5a60242d6efadb";class c extends s.JsonRpcProvider{constructor(e,t){null==e&&(e="mainnet");const n=o.Network.from(e);null==t&&(t=l);
2super(c.getRequest(n,t),n,{staticNetwork:n}),r(this,"token",void 0),(0,i.defineProperties)(this,{token:t})}_getProvider(e){try{return new c(e,this.token)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.token===l}static getRequest(e,t){null==t&&(t=l);const n=new i.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,i.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===l&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("QuickNodeProvider"),!0)),n}}t.QuickNodeProvider=c},56808:(e,t,n)=>{var r=n(36014),i=n(59189)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},57430:e=>{"use strict";e.exports=SyntaxError},57651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;const r=n(69687),i=n(24839),a=n(16494),o=new Uint8Array(32);function s(e){return(0,i.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function l(e){const t=(0,i.toUtf8Bytes)(c(e)),n=[];if(0===e.length)return n;let r=0;for(let i=0;i<t.length;i++){46===t[i]&&(n.push(s(t.slice(r,i))),r=i+1)}return(0,i.assertArgument)(r<t.length,"invalid ENS name; empty component","name",e),n.push(s(t.slice(r))),n}function c(e){try{if(0===e.length)throw new Error("empty label");return(0,a.ens_normalize)(e)}catch(t){(0,i.assertArgument)(!1,`invalid ENS name (${t.message})`,"name",e)}}o.fill(0),t.ensNormalize=c,t.isValidName=function(e){try{return 0!==l(e).length}catch(t){}return!1},t.namehash=function(e){(0,i.assertArgument)("string"===typeof e,"invalid ENS name; not a string","name",e),(0,i.assertArgument)(e.length,"invalid ENS name (empty label)","name",e);let t=o;const n=l(e);for(;n.length;)t=(0,r.keccak256)((0,i.concat)([t,(0,r.keccak256)(n.pop())]));return(0,i.hexlify)(t)},t.dnsEncode=function(e,t){const n=null!=t?t:63;return(0,i.assertArgument)(n<=255,"DNS encoded label cannot exceed 255","length",n),(0,i.hexlify)((0,i.concat)(l(e).map((t=>{(0,i.assertArgument)(t.length<=n,`label ${JSON.stringify(e)} exceeds ${n} bytes`,"name",e);const r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r}))))+"00"}},57887:(e,t,n)=>{var r=n(20220)(n(14759),"Set");e.exports=r},57949:(e,t,n)=>{var r=n(93008),i=n(73306),a=n(24567),o=n(29131),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?h:s).test(o(e))}},58324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0;t.IpcSocketProvider=undefined},58418:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(36026);class i extends r.C{constructor(e){let{address:t}=e;super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},58616:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const r=n(98976),i=n(66104),a=n(1736),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(e,t){let n=18;if("string"===typeof t){const e=o.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,a.getNumber)(t,"unit"));return i.FixedNumber.fromValue(e,n,{decimals:n,width:512}).toString()}function l(e,t){(0,r.assertArgument)("string"===typeof e,"value must be a string","value",e);let n=18;if("string"===typeof t){const e=o.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,a.getNumber)(t,"unit"));return i.FixedNumber.fromString(e,{decimals:n,width:512}).value}t.formatUnits=s,t.parseUnits=l,t.formatEther=function(e){return s(e,18)},t.parseEther=function(e){return l(e,18)}},58650:(e,t,n)=>{"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(9950),a=s(i),o=s(n(11942));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){if(this.chartist)try{this.chartist.detach()}
2catch(e){throw new Error("Internal chartist error",e)}}},{key:"componentDidMount",value:function(){this.updateChart(this.props)}},{key:"componentDidUpdate",value:function(){this.updateChart(this.props)}},{key:"updateChart",value:function(e){var t=n(60834),r=e.type,i=e.data,a=e.options||{},o=e.responsiveOptions||[],s=void 0;if(this.chartist)this.chartist.update(i,a,o);else if(this.chartist=new t[r](this.chart,i,a,o),e.listener)for(s in e.listener)e.listener.hasOwnProperty(s)&&this.chartist.on(s,e.listener[s]);return this.chartist}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.style,o=t.children,s=t.data,l=t.type,c=o&&i.Children.map(o,(function(e){return(0,i.cloneElement)(e,{type:l,data:s})}));return a.default.createElement("div",{className:"ct-chart "+(n||""),ref:function(t){return e.chart=t},style:r},c)}}]),t}(i.Component);l.propTypes={type:o.default.oneOf(["Line","Bar","Pie"]).isRequired,data:o.default.object.isRequired,className:o.default.string,options:o.default.object,responsiveOptions:o.default.array,style:o.default.object}},58668:(e,t,n)=>{"use strict";var r=n(44796),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},58735:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var o=i.apply(null,n);o&&e.push(o)}else if("object"===a)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},59050:(e,t,n)=>{"use strict";n.d(t,{H2:()=>o,Ty:()=>i,u:()=>s,xO:()=>a});var r=n(36026);class i extends r.C{constructor(e){let{max:t,min:n,signed:r,size:i,value:a}=e;super(`Number "${a}" is not in safe ${i?`${8*i}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}}class a extends r.C{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends r.C{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}r.C;class s extends r.C{constructor(e){let{givenSize:t,maxSize:n}=e;super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}},59051:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return ir(e,t,n,r,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidOffset:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=g()),e._pf}function y(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=m(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidOffset&&!t.invali
2dWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function b(e){var t=p(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=r.momentProperties=[],x=!1;function w(e,t){var n,r,i,a=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)c(i=t[r=v[n]])||(e[r]=i);return e}function k(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,r.updateOffset(this),x=!1)}function A(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function E(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"===typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}E(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var P={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),P[e]||(E(t+"\n"+(new Error).stack),P[e]=!0)}function O(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;var T={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function N(e){return"string"===typeof e?T[e]||T[e.toLowerCase()]:void 0}function _(e){var t,n,r={};for(n in e)s(e,n)&&(t=N(n))&&(r[t]=e[n]);return r}var I={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function R(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:I[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function M(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\e)|(\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},F={};function D(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return M(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,n,r=e.match(j);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=U(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=O(r[i])?r[i].call(t,e):r[i];return a}}function W(e,t){if(!e.isValid())return e.localeData().invalidDate();var n="$"+(t=H(t,e.localeData()));return s(B,n)||(B[n]=z(t)),B[n](e)}function H(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var V,G=/\d/,Y=/\d\d/,q=/\d{3}/,X=/\d{4}/,$=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,ee=/\d{1,4}/,te=/[+-]?\d{1,6}/,ne=/\d+/,re=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,oe=/[+-]?\d+(\.\d{1,3})?/,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le=/^[1-9]\d?/,ce=/^([1-9]\d|\d)/;
2function ue(e,t,n){V[e]=O(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return s(V,e)?V[e](t._strict,t._locale):new RegExp(he(e))}function he(e){return fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ge(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=pe(t)),n}V={};var me={};function ye(e,t){var n,r,i=t;for("string"===typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=ge(e)}),r=e.length,n=0;n<r;n++)me[e[n]]=i}function be(e,t){ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function ve(e,t,n){null!=t&&s(me,e)&&me[e](t,n._a,n,e)}function xe(e){return e%4===0&&e%100!==0||e%400===0}var we=0,ke=1,Ae=2,Ee=3,Se=4,Pe=5,Ce=6,Oe=7,Te=8;function Ne(e){return xe(e)?366:365}D("Y",0,0,(function(){var e=this.year();return e<=9999?M(e,4):"+"+e})),D(0,["YY",2],0,(function(){return this.year()%100})),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),ue("Y",re),ue("YY",K,Y),ue("YYYY",ee,X),ue("YYYYY",te,$),ue("YYYYYY",te,$),ye(["YYYYY","YYYYYY"],we),ye("YYYY",(function(e,t){t[we]=2===e.length?r.parseTwoDigitYear(e):ge(e)})),ye("YY",(function(e,t){t[we]=r.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[we]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ge(e)+(ge(e)>68?1900:2e3)};var _e,Ie=Me("FullYear",!0);function Re(){return xe(this.year())}function Me(e,t){return function(n){return null!=n?(Le(this,e,n),r.updateOffset(this,t),this):je(this,e)}}function je(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Le(e,t,n){var r,i,a,o,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=29!==(s=e.date())||1!==o||xe(a)?s:28,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function Be(e){return O(this[e=N(e)])?this[e]():this}function Fe(e,t){if("object"===typeof e){var n,r=R(e=_(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=N(e)]))return this[e](t);return this}function De(e,t){return(e%t+t)%t}function Ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=De(t,12);return e+=(t-n)/12,1===n?xe(e)?29:28:31-n%7%2}_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},D("M",["MM",2],"Mo",(function(){return this.month()+1})),D("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),D("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ue("M",K,le),ue("MM",K,Y),ue("MMM",(function(e,t){return t.monthsShortRegex(e)})),ue("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[ke]=ge(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ke]=i:m(n).invalidMonth=e}));var ze="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),We="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),He=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ve=se,Ge=se,Ye=["monthsParse","longMonthsParse","shortMonthsParse","monthsRegex","monthsShortRegex","monthsStrictRegex","monthsShortStrictRegex"];function qe(e,t){var n,r;for(n=0;n<Ye.length;n++)s(t,r=Ye[n])||delete e["_"+r]}function Xe(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||He).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function $e(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[He.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ke(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=_e.call(this._shortMonthsParse,o))?i:null:-1!==(i=_e.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=_e.call(this._shortMonthsParse,o))||-1!==(i=_e.call(this._longMonthsParse,o))?i:null:-1!==(i=_e.call(this._longMonthsParse,o))||-1!==(i=_e.call(this._shortMonthsParse,o))?i:null}function Qe(e,t,n){var r,i,a;if(this._monthsParseExact)return Ke.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Je(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ge(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,Ue(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Ze(e){return null!=e?(Je(this,e),r.updateOffset(this,!0),this):je(this,"Month")}function et(){return Ue(this.year(),this.month())}function tt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||rt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Ve),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function nt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||rt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ge),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function rt(){function e(e,t){return t.length-e.length}var t,n,r,i,a=[],o=[],s=[];for(t=0;t<12;t++)n=p([2e3,t]),r=fe(this.monthsShort(n,"")),i=fe(this.months(n,"")),a.push(r),o.push(i),s.push(i),s.push(r);a.sort(e),o.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function it(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function at(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}D("d",0,"do","day"),D("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),D("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),D("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),D("eHHmm",0,0,(function(){return""+this.weekday()+M(this.hours(),2)+M(this.minutes(),2)}
2)),ue("d",K),ue("e",K),ue("E",K),ue("eHHmm",J),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,r){t[r]=ge(e)})),be("eHHmm",(function(e,t,n){var r=e.length-4;t.e=ge(e.substr(0,r)),n._a[Ee]=ge(e.substr(r,2)),n._a[Se]=ge(e.substr(r+2))}));var st,lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ct="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),dt=se,ht=se,ft=se,pt=["weekdaysParse","fullWeekdaysParse","shortWeekdaysParse","minWeekdaysParse","weekdaysRegex","weekdaysShortRegex","weekdaysMinRegex","weekdaysStrictRegex","weekdaysShortStrictRegex","weekdaysMinStrictRegex"];function gt(e,t){var n,r;for(n=0;n<pt.length;n++)s(t,r=pt[n])||delete e["_"+r]}function mt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ot(n,this._week.dow):e?n[e.day()]:n}function yt(e){return!0===e?ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function bt(e){return!0===e?ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function vt(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=_e.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=_e.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=_e.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=_e.call(this._weekdaysParse,o))||-1!==(i=_e.call(this._shortWeekdaysParse,o))||-1!==(i=_e.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=_e.call(this._shortWeekdaysParse,o))||-1!==(i=_e.call(this._weekdaysParse,o))||-1!==(i=_e.call(this._minWeekdaysParse,o))?i:null:-1!==(i=_e.call(this._minWeekdaysParse,o))||-1!==(i=_e.call(this._weekdaysParse,o))||-1!==(i=_e.call(this._shortWeekdaysParse,o))?i:null}function xt(e,t,n){var r,i,a;if(this._weekdaysParseExact)return vt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function wt(e){if(!this.isValid())return null!=e?this:NaN;var t=je(this,"Day");return null!=e?(e=it(e,this.localeData()),this.add(e-t,"d")):t}function kt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function At(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=at(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Et(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ct.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=dt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function St(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ct.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ht),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Pt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ct.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ct(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=fe(this.weekdaysMin(n,"")),i=fe(this.weekdaysShort(n,"")),a=fe(this.weekdays(n,"")),o.push(r),s.push(i),l.push(a),c.push(r),c.push(i),c.push(a);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ot(e){var t,n;for(n in qe(this,e),gt(this,e),e)s(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Tt(e,t){var n,r=f({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function Nt(e){null!=e&&this.set(e)}st=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var _t={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function It(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}var Rt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Mt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()],r=this._longDateFormatCache;return t||!n?t:r&&r[e]&&r[e].formatUpper===n?r[e].format:(t=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),r||(r=this._longDateFormatCache={}),r[e]={formatUpper:n,format:t},t)}var jt="Invalid date";function Lt(){return this._invalidDate}var Bt="%d",Ft=/\d{1,2}/;function Dt(e){return this._ordinal.replace("%d",e)}var Ut={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function zt(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Wt(e,t,n,r){return this.postformat(zt.call(this,e,t,n,r))}function Ht(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}function Vt(e,t){return this.postformat(Ht.call(this,e,t))}function Gt(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Yt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qt(e,t,n){var r=7+t-n;return-(7+Yt(e,0,r).getUTCDay()-t)%7+r-1}function Xt(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+qt(e,r,i);return s<=0?o=Ne(a=e-1)+s:s>Ne(e)?(a=e+1,o=s-Ne(e)):(a=e,o=s),{year:a,dayOfYear:o}}function $t(e,t,n,r){var i,a,o=qt(e,n,r),s=Math.floor((t-o-1)/7)+1;return s<1?i=s+Jt(a=e-1,n,r):s>Jt(e,n,r)?(i=s-Jt(e,n,r),a=e+1):(a=e,i=s),{week:i,year:a}}function Kt(e,t,n){return $t(e.year(),e.dayOfYear(),t,n)}function Qt(e,t,n,r,i){return $t(e,Math.round((Yt(e,t,n)-Yt(e,0,1))/864e5)+1,r,i)}function Jt(e,t,n){var r=qt(e,t,n),i=qt(e+1,t,n);return(Ne(e)-r+i)/7}function Zt(e){return Kt(e,this._week.dow,this._week.doy).week}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),ue("w",K,le),ue("ww",K,Y),ue("W",K,le),ue("WW",K,Y),be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ge(e)}
vendor: 7,245 bytes, line 2
2));var en={dow:0,doy:6};function tn(){return this._week.dow}function nn(){return this._week.doy}function rn(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function an(e){var t=Kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function on(){return this.hours()%12||12}function sn(){return this.hours()||24}function ln(e,t){D(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function cn(e,t){return t._meridiemParse}function un(e){return"p"===(e+"").toLowerCase().charAt(0)}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,on),D("k",["kk",2],0,sn),D("hmm",0,0,(function(){return""+on.apply(this)+M(this.minutes(),2)})),D("hmmss",0,0,(function(){return""+on.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)})),D("Hmm",0,0,(function(){return""+this.hours()+M(this.minutes(),2)})),D("Hmmss",0,0,(function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)})),ln("a",!0),ln("A",!1),ue("a",cn),ue("A",cn),ue("H",K,ce),ue("h",K,le),ue("k",K,le),ue("HH",K,Y),ue("hh",K,Y),ue("kk",K,Y),ue("hmm",Q),ue("hmmss",J),ue("Hmm",Q),ue("Hmmss",J),ye(["H","HH"],Ee),ye(["k","kk"],(function(e,t,n){var r=ge(e);t[Ee]=24===r?0:r})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[Ee]=ge(e),m(n).bigHour=!0})),ye("hmm",(function(e,t,n){var r=e.length-2;t[Ee]=ge(e.substr(0,r)),t[Se]=ge(e.substr(r)),m(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ee]=ge(e.substr(0,r)),t[Se]=ge(e.substr(r,2)),t[Pe]=ge(e.substr(i)),m(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var r=e.length-2;t[Ee]=ge(e.substr(0,r)),t[Se]=ge(e.substr(r))})),ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ee]=ge(e.substr(0,r)),t[Se]=ge(e.substr(r,2)),t[Pe]=ge(e.substr(i))}));var dn=/[ap]\.?m?\.?/i,hn=Me("Hours",!0);function fn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var pn,gn={calendar:_t,longDateFormat:Rt,invalidDate:jt,ordinal:Bt,dayOfMonthOrdinalParse:Ft,relativeTime:Ut,months:ze,monthsShort:We,week:en,weekdays:lt,weekdaysMin:ut,weekdaysShort:ct,meridiemParse:dn},mn={},yn={};function bn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function vn(e){return e?e.toLowerCase().replace("_","-"):e}function xn(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=vn(e[a]).split("-")).length,n=(n=vn(e[a+1]))?n.split("-"):null;t>0;){if(r=kn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&bn(i,n)>=t-1)break;t--}a++}return pn}function wn(e){return"string"===typeof e&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(e)}function kn(t){var n,r=null;if(s(mn,t))return mn[t];if(n=vn(t),s(mn,n))return mn[n];if(e&&e.exports&&wn(n))try{r=pn._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),An(r)}catch(i){mn[n]=null}return s(mn,n)?mn[n]:void 0}function An(e,t){var n;return e&&((n=c(t)?Pn(e):En(e,t))?pn=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),pn._abbr}function En(e,t){if(null!==t){var n,r=gn;if(t.abbr=e,null!=mn[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=mn[e]._config;else if(null!=t.parentLocale)if(null!=mn[t.parentLocale])r=mn[t.parentLocale]._config;else{if(null==(n=kn(t.parentLocale)))return yn[t.parentLocale]||(yn[t.parentLocale]=[]),yn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return mn[e]=new Nt(Tt(r,t)),yn[e]&&yn[e].forEach((function(e){En(e.name,e.config)})),An(e),mn[e]}return delete mn[e],null}function Sn(e,t){var n,r=kn(e),i=gn;return null!=r&&(e=r._abbr),null!=t?(null!=mn[e]&&null!=mn[e].parentLocale?mn[e].set(Tt(mn[e]._config,t)):(null!=r&&(i=r._config),t=Tt(i,t),null==r&&(t.abbr=e),(n=new Nt(t)).parentLocale=mn[e],mn[e]=n),An(e)):null!=mn[e]&&(null!=mn[e].parentLocale?(mn[e]=mn[e].parentLocale,e===An()&&An(e)):null!=mn[e]&&delete mn[e]),mn[e]}function Pn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return pn;if(!a(e)){if(t=kn(e))return t;e=[e]}return xn(e)}function Cn(){return st(mn)}function On(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[ke]<0||n[ke]>11?ke:n[Ae]<1||n[Ae]>Ue(n[we],n[ke])?Ae:n[Ee]<0||n[Ee]>24||24===n[Ee]&&(0!==n[Se]||0!==n[Pe]||0!==n[Ce])?Ee:n[Se]<0||n[Se]>59?Se:n[Pe]<0||n[Pe]>59?Pe:n[Ce]<0||n[Ce]>999?Ce:-1,m(e)._overflowDayOfYear&&(t<we||t>Ae)&&(t=Ae),m(e)._overflowWeeks&&-1===t&&(t=Oe),m(e)._overflowWeekday&&-1===t&&(t=Te),m(e).overflow=t),e}var Tn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/Z|[+-]\d\d(?::?\d\d)?/,In=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Rn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mn=/^\/?Date\((-?\d+)/i,jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ln={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Bn(e){var t,n,r,i,a,o,s=e._i,l=Tn.exec(s)||Nn.exec(s),c=In.length,u=Rn.length;if(l){for(m(e).iso=!0,t=0,n=c;t<n;t++)if(In[t][1].exec(l[1])){i=In[t][0],r=!1!==In[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Rn[t][1].exec(l[3])){a=(l[2]||" ")+Rn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(l[4]){if(!_n.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Qn(e)}else e._isValid=!1}function Fn(e,t,n,r,i,a){var o=[Dn(e),We.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Dn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Un(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function zn(e,t,n){return!e||ct.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Wn(e,t,n){if(e)return Ln[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Hn(e){var t,n=jn.exec(Un(e._i));if(n){if(t=Fn(n[4],n[3],n[2],n[5],n[6],n[7]),!zn(n[1],t,e))return;e._a=t,e._tzm=Wn(n[8],n[9],n[10]),e._d=Yt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Vn(e){var t=Mn.exec(e._i);
2null===t?(Bn(e),!1===e._isValid&&(delete e._isValid,Hn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Gn(e,t,n){return null!=e?e:null!=t?t:n}function Yn(e,t,n){var i=Object.prototype.hasOwnProperty.call(e,"_isDefaultDatePartsForWeek"),a=e._isDefaultDatePartsForWeek;e._isDefaultDatePartsForWeek=!!n;try{return r._getDefaultDateParts(e,t,n)}finally{i?e._isDefaultDatePartsForWeek=a:delete e._isDefaultDatePartsForWeek}}function qn(e){var t=e._defaultDatePartsNow;return t?(t.hasValue||(t.value=r.now(),t.hasValue=!0),t.value):r.now()}function Xn(e,t,n){var r=n||e._isDefaultDatePartsForWeek,i=r?ar(t):new Date(t);return r?[i.year(),i.month(),i.date()]:e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function $n(e){var t,n,r,i,a,o,s,l=[];if(!e._d){for(null!=e._a[we]&&null!=e._a[ke]&&null!=e._a[Ae]||(i=Yn(e,r=qn(e))),e._w&&null==e._a[Ae]&&null==e._a[ke]&&Kn(e,Yn(e,r,!0)),null!=e._dayOfYear&&(o=null!=e._a[we]?e._a[we]:i[we],(e._dayOfYear>Ne(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Yt(o,0,e._dayOfYear),e._a[ke]=n.getUTCMonth(),e._a[Ae]=n.getUTCDate()),s=null==e._a[we]||null==e._a[ke]||null==e._a[Ae],t=0;t<3&&null==e._a[t];++t)e._a[t]=l[t]=i[t];for(;t<7;t++)e._a[t]=l[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ee]&&0===e._a[Se]&&0===e._a[Pe]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[Ee]=0),e._d=(e._useUTC?Yt:Gt).apply(null,l),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ee]=24),e._w&&"undefined"!==typeof e._w.d&&!s&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function Kn(e,t){var n,r,i,a,o,s,l,c,u;null!=(n=e._w).GG||null!=n.W||null!=n.E?(o=1,s=4,r=Gn(n.GG,e._a[we],Qt(t[we],t[ke],t[Ae],1,4).year),i=Gn(n.W,1),((a=Gn(n.E,1))<1||a>7)&&(c=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,u=Qt(t[we],t[ke],t[Ae],o,s),r=Gn(n.gg,e._a[we],u.year),i=Gn(n.w,u.week),null!=n.d?((a=n.d)<0||a>6)&&(c=!0):null!=n.e?(a=n.e+o,(n.e<0||n.e>6)&&(c=!0)):a=o),i<1||i>Jt(r,o,s)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(l=Xt(r,i,a,o,s),e._a[we]=l.year,e._dayOfYear=l.dayOfYear)}function Qn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,a,o,s,l,c=""+e._i,u=c.length,d=0;for(l=(i=H(e._f,e._locale).match(j)||[]).length,t=0;t<l;t++)a=i[t],(n=(c.match(de(a,e))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&m(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),d+=n.length),F[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),ve(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=u-d,c.length>0&&m(e).unusedInput.push(c),e._a[Ee]<=12&&!0===m(e).bigHour&&e._a[Ee]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Ee]=Jn(e._locale,e._a[Ee],e._meridiem),null!==(s=m(e).era)&&(e._a[we]=e._locale.erasConvertYear(s,e._a[we])),$n(e),On(e)}else Hn(e);else Bn(e)}function Jn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Zn(e){var t,n,r,i,a,o,s=!1,l={},c=e._f.length;if(0===c)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<c;i++)a=0,o=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._defaultDatePartsNow=l,t._f=e._f[i],Qn(t),y(t)&&(o=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(s=!0));f(e,n||t)}function er(e){if(!e._d){var t=_(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),$n(e)}}function tr(e){var t=new k(On(nr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function nr(e){var t=e._i,n=e._f;return e._locale=e._locale||Pn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new k(On(t)):(d(t)?e._d=t:a(n)?Zn(e):n?Qn(e):rr(e),y(e)||(e._d=null),e))}function rr(e){var t=e._i;c(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Vn(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),$n(e)):o(t)?er(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}function ir(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,tr(s)}function ar(e,t,n,r){return ir(e,t,n,r,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r._getDefaultDateParts=Xn,r.ISO_8601=function(){},r.RFC_2822=function(){};var or=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=ar.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),sr=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=ar.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function lr(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return ar();for(r=0;r<t.length;++r)if(A(t[r])){n=t[r];break}if(!n)return b();for(++r;r<t.length;++r)!A(t[r])||t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function cr(){return lr("isBefore",[].slice.call(arguments,0))}function ur(){return lr("isAfter",[].slice.call(arguments,0))}var dr=function(){return Date.now?Date.now():+new Date},hr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fr(e){var t,n,r=!1,i=hr.length;for(t in e)if(s(e,t)&&(-1===_e.call(hr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[hr[n]]){if(r)return!1;parseFloat(e[hr[n]])!==ge(e[hr[n]])&&(r=!0)}return!0}function pr(){return this._isValid}function gr(){return Fr(NaN)}function mr(e){var t=_(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=fr(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=Pn(),this._bubble()}function yr(e){return e instanceof mr}function br(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function vr(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)ge(e[r])!==ge(t[r])&&o++;return o+a}function xr(e,t){D(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+M(~~(e/60),2)+t+M(~~e%60,2)}))}xr("Z",":"),xr("ZZ",""),ue("Z",ae),ue("ZZ",ae),ye(["Z","ZZ"],(function(e,t,n){var r=kr(ae,e);n._useUTC=!0,n._tzm=r,null===r&&(m(n).invalidOffset=e)}));var wr=/([\+\-]|\d\d)/gi;function kr(e,t){var n,r,i=(t||"").match(e);return null===i?null:(r=60*(n=((i[i.length-1]||[])+"").match(wr)||["-",0,0])[1]+ge(n[2]),ge(n[2])>59||("+"===n[0]?r>840:r>720)?null:0===r?0:"+"===n[0]?r:-r)}function Ar(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(A(e)||d(e)?e.valueOf():ar(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):ar(e).local()}function Er(e){return-Math.round(e._d.getTimezoneOffset())}function Sr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=kr(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Er(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Hr(this,Fr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Er(this)}function Pr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Cr(e){return this.utcOffset(0,e)}function Or(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Er(this),"m")),this}function Tr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=kr(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Nr(e){return!!this.isValid()&&(e=e?ar(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ir(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=nr(t))._a?(e=t._isUTC?p(t._a):ar(t._a),this._isDSTShifted=this.isValid()&&vr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Rr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function jr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Lr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Br=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fr(e,t){var n,r,i,a=e,o=null;return yr(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Lr.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:ge(o[Ae])*n,h:ge(o[Ee])*n,m:ge(o[Se])*n,s:ge(o[Pe])*n,ms:ge(br(1e3*o[Ce]))*n}):(o=Br.exec(e))?(n="-"===o[1]?-1:1,a={y:Dr(o[2],n),M:Dr(o[3],n),w:Dr(o[4],n),d:Dr(o[5],n),h:Dr(
vendor: 4,338 bytes, line 2
2o[6],n),m:Dr(o[7],n),s:Dr(o[8],n)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(i=zr(ar(a.from),ar(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new mr(a),yr(e)&&s(e,"_locale")&&(r._locale=e._locale),yr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Dr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ur(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zr(e,t){var n;return e.isValid()&&t.isValid()?(t=Ar(t,e),e.isBefore(t)?n=Ur(e,t):((n=Ur(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Hr(this,Fr(n,r),e),this}}function Hr(e,t,n,i){var a=t._milliseconds,o=br(t._days),s=br(t._months);e.isValid()&&(i=null==i||i,s&&Je(e,je(e,"Month")+s*n),o&&Le(e,"Date",je(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,o||s))}Fr.fn=mr.prototype,Fr.invalid=gr;var Vr=Wr(1,"add"),Gr=Wr(-1,"subtract");function Yr(e){return"string"===typeof e||e instanceof String}function qr(e){return A(e)||d(e)||Yr(e)||u(e)||$r(e)||Xr(e)||null===e||void 0===e}function Xr(e){var t,n,r=o(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=a.length;for(t=0;t<c;t+=1)n=a[t],i=i||s(e,n);return r&&i}function $r(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Yr(e)})).length),t&&n}function Kr(e){var t,n,r=o(e)&&!l(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||s(e,n);return r&&i}function Qr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Jr(e,t){1===arguments.length&&(arguments[0]?qr(arguments[0])?(e=arguments[0],t=void 0):Kr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||ar(),i=Ar(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(O(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,ar(n)))}function Zr(){return new k(this)}function ei(e,t){var n=A(e)?e:ar(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function ti(e,t){var n=A(e)?e:ar(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function ni(e,t,n,r){var i=A(e)?e:ar(e),a=A(t)?t:ar(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function ri(e,t){var n,r=A(e)?e:ar(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function ii(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ai(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function oi(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Ar(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":a=si(this,r)/12;break;case"month":a=si(this,r);break;case"quarter":a=si(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:pe(a)}function si(e,t){if(e.date()<t.date())return-si(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function li(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ci(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;
vendor: 7,306 bytes, line 2
2return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ui(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function di(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function hi(e,t){return this.isValid()&&(A(e)&&e.isValid()||ar(e).isValid())?Fr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fi(e){return this.from(ar(),e)}function pi(e,t){return this.isValid()&&(A(e)&&e.isValid()||ar(e).isValid())?Fr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gi(e){return this.to(ar(),e)}function mi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=Pn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var yi=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function bi(){return this._locale}var vi=1e3,xi=60*vi,wi=60*xi,ki=3506328*wi;function Ai(e,t){return(e%t+t)%t}function Ei(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ki:new Date(e,t,n).valueOf()}function Si(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ki:Date.UTC(e,t,n)}function Pi(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Si:Ei,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ai(t+(this._isUTC?0:this.utcOffset()*xi),wi);break;case"minute":t=this._d.valueOf(),t-=Ai(t,xi);break;case"second":t=this._d.valueOf(),t-=Ai(t,vi)}return this._d.setTime(t),r.updateOffset(this,!0),this}function Ci(e){var t,n;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Si:Ei,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=wi-Ai(t+(this._isUTC?0:this.utcOffset()*xi),wi)-1;break;case"minute":t=this._d.valueOf(),t+=xi-Ai(t,xi)-1;break;case"second":t=this._d.valueOf(),t+=vi-Ai(t,vi)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function Oi(){return this._d.valueOf()-6e4*(this._offset||0)}function Ti(){return Math.floor(this.valueOf()/1e3)}function Ni(){return new Date(this.valueOf())}function _i(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ii(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ri(){return this.isValid()?this.toISOString():null}function Mi(){return y(this)}function ji(){return f({},m(this))}function Li(){return m(this).overflow}function Bi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Fi(e,t){var n,i,a,o=this._eras||Pn("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"===typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Di(e,t,n){var r,i,a,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(a=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(a===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([a,o,s].indexOf(e)>=0)return l[r]}function Ui(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function zi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Wi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Hi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Vi(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Gi(e){return s(this,"_erasNameRegex")||Ji.call(this),e?this._erasNameRegex:this._erasRegex}function Yi(e){return s(this,"_erasAbbrRegex")||Ji.call(this),e?this._erasAbbrRegex:this._erasRegex}function qi(e){return s(this,"_erasNarrowRegex")||Ji.call(this),e?this._erasNarrowRegex:this._erasRegex}function Xi(e,t){return t.erasAbbrRegex(e)}function $i(e,t){return t.erasNameRegex(e)}function Ki(e,t){return t.erasNarrowRegex(e)}function Qi(e,t){return t._eraYearOrdinalRegex||ne}function Ji(){var e,t,n,r,i,a=[],o=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=fe(c[e].name),r=fe(c[e].abbr),i=fe(c[e].narrow),o.push(n),a.push(r),s.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Zi(e,t){D(0,[e,e.length],0,t)}function ea(e){return oa.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ta(e){return oa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function na(){return Jt(this.year(),1,4)}function ra(){return Jt(this.isoWeekYear(),1,4)}function ia(){var e=this.localeData()._week;return Jt(this.year(),e.dow,e.doy)}function aa(){var e=this.localeData()._week;return Jt(this.weekYear(),e.dow,e.doy)}function oa(e,t,n,r,i){var a;return null==e?Kt(this,r,i).year:(t>
vendor: 9,538 bytes, line 2
2(a=Jt(e,r,i))&&(t=a),sa.call(this,e,t,n,r,i))}function sa(e,t,n,r,i){var a=Xt(e,t,n,r,i),o=Yt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function la(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),ue("N",Xi),ue("NN",Xi),ue("NNN",Xi),ue("NNNN",$i),ue("NNNNN",Ki),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e})),ue("y",ne),ue("yy",ne),ue("yyy",ne),ue("yyyy",ne),ue("yo",Qi),ye(["y","yy","yyy","yyyy"],we),ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,i):t[we]=parseInt(e,10)})),D(0,["gg",2],0,(function(){return this.weekYear()%100})),D(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Zi("gggg","weekYear"),Zi("ggggg","weekYear"),Zi("GGGG","isoWeekYear"),Zi("GGGGG","isoWeekYear"),ue("G",re),ue("g",re),ue("GG",K,Y),ue("gg",K,Y),ue("GGGG",ee,X),ue("gggg",ee,X),ue("GGGGG",te,$),ue("ggggg",te,$),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ge(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),D("Q",0,"Qo","quarter"),ue("Q",G),ye("Q",(function(e,t){t[ke]=3*(ge(e)-1)})),D("D",["DD",2],"Do","date"),ue("D",K,le),ue("DD",K,Y),ue("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],Ae),ye("Do",(function(e,t){t[Ae]=ge(e.match(K)[0])}));var ca=Me("Date",!0);function ua(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}D("DDD",["DDDD",3],"DDDo","dayOfYear"),ue("DDD",Z),ue("DDDD",q),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ge(e)})),D("m",["mm",2],0,"minute"),ue("m",K,ce),ue("mm",K,Y),ye(["m","mm"],Se);var da=Me("Minutes",!1);D("s",["ss",2],0,"second"),ue("s",K,ce),ue("ss",K,Y),ye(["s","ss"],Pe);var ha,fa,pa=Me("Seconds",!1);for(D("S",0,0,(function(){return~~(this.millisecond()/100)})),D(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),D(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),D(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),D(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),D(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),D(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ue("S",Z,G),ue("SS",Z,Y),ue("SSS",Z,q),ha="SSSS";ha.length<=9;ha+="S")ue(ha,ne);function ga(e,t){t[Ce]=ge(1e3*("0."+e))}for(ha="S";ha.length<=9;ha+="S")ye(ha,ga);function ma(){return this._isUTC?"UTC":""}function ya(){return this._isUTC?"Coordinated Universal Time":""}fa=Me("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");var ba=k.prototype;function va(e){return ar(1e3*e)}function xa(){return ar.apply(null,arguments).parseZone()}function wa(e){return e}ba.add=Vr,ba.calendar=Jr,ba.clone=Zr,ba.diff=oi,ba.endOf=Ci,ba.format=di,ba.from=hi,ba.fromNow=fi,ba.to=pi,ba.toNow=gi,ba.get=Be,ba.invalidAt=Li,ba.isAfter=ei,ba.isBefore=ti,ba.isBetween=ni,ba.isSame=ri,ba.isSameOrAfter=ii,ba.isSameOrBefore=ai,ba.isValid=Mi,ba.lang=yi,ba.locale=mi,ba.localeData=bi,ba.max=sr,ba.min=or,ba.parsingFlags=ji,ba.set=Fe,ba.startOf=Pi,ba.subtract=Gr,ba.toArray=_i,ba.toObject=Ii,ba.toDate=Ni,ba.toISOString=ci,ba.inspect=ui,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ba[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ba.toJSON=Ri,ba.toString=li,ba.unix=Ti,ba.valueOf=Oi,ba.creationData=Bi,ba.eraName=zi,ba.eraNarrow=Wi,ba.eraAbbr=Hi,ba.eraYear=Vi,ba.year=Ie,ba.isLeapYear=Re,ba.weekYear=ea,ba.isoWeekYear=ta,ba.quarter=ba.quarters=la,ba.month=Ze,ba.daysInMonth=et,ba.week=ba.weeks=rn,ba.isoWeek=ba.isoWeeks=an,ba.weeksInYear=ia,ba.weeksInWeekYear=aa,ba.isoWeeksInYear=na,ba.isoWeeksInISOWeekYear=ra,ba.date=ca,ba.day=ba.days=wt,ba.weekday=kt,ba.isoWeekday=At,ba.dayOfYear=ua,ba.hour=ba.hours=hn,ba.minute=ba.minutes=da,ba.second=ba.seconds=pa,ba.millisecond=ba.milliseconds=fa,ba.utcOffset=Sr,ba.utc=Cr,ba.local=Or,ba.parseZone=Tr,ba.hasAlignedHourOffset=Nr,ba.isDST=_r,ba.isLocal=Rr,ba.isUtcOffset=Mr,ba.isUtc=jr,ba.isUTC=jr,ba.zoneAbbr=ma,ba.zoneName=ya,ba.dates=S("dates accessor is deprecated. Use date instead.",ca),ba.months=S("months accessor is deprecated. Use month instead",Ze),ba.years=S("years accessor is deprecated. Use year instead",Ie),ba.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pr),ba.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ir);var ka=Nt.prototype;function Aa(e,t,n,r){var i=Pn(),a=p().set(r,t);return i[n](a,e)}function Ea(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Aa(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Aa(e,r,n,"month");return i}function Sa(e,t,n,r){"boolean"===typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=Pn(),o=e?a._week.dow:0,s=[];if(null!=n)return Aa(t,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=Aa(t,(i+o)%7,r,"day");return s}function Pa(e,t){return Ea(e,t,"months")}function Ca(e,t){return Ea(e,t,"monthsShort")}function Oa(e,t,n){return Sa(e,t,n,"weekdays")}function Ta(e,t,n){return Sa(e,t,n,"weekdaysShort")}function Na(e,t,n){return Sa(e,t,n,"weekdaysMin")}ka.calendar=It,ka.longDateFormat=Mt,ka.invalidDate=Lt,ka.ordinal=Dt,ka.preparse=wa,ka.postformat=wa,ka.relativeTime=Wt,ka.pastFuture=Vt,ka.set=Ot,ka.eras=Fi,ka.erasParse=Di,ka.erasConvertYear=Ui,ka.erasAbbrRegex=Yi,ka.erasNameRegex=Gi,ka.erasNarrowRegex=qi,ka.months=Xe,ka.monthsShort=$e,ka.monthsParse=Qe,ka.monthsRegex=nt,ka.monthsShortRegex=tt,ka.week=Zt,ka.firstDayOfYear=nn,ka.firstDayOfWeek=tn,ka.weekdays=mt,ka.weekdaysMin=bt,ka.weekdaysShort=yt,ka.weekdaysParse=xt,ka.weekdaysRegex=Et,ka.weekdaysShortRegex=St,ka.weekdaysMinRegex=Pt,ka.isPM=un,ka.meridiem=fn,An("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ge(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",An),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",Pn);var _a=Math.abs;function Ia(){var e=this._data;return this._milliseconds=_a(this._milliseconds),this._days=_a(this._days),this._months=_a(this._months),e.milliseconds=_a(e.milliseconds),e.seconds=_a(e.seconds),e.minutes=_a(e.minutes),e.hours=_a(e.hours),e.months=_a(e.months),e.years=_a(e.years),this}function Ra(e,t,n,r){var i=Fr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ma(e,t){return Ra(this,e,t,1)}function ja(e,t){return Ra(this,e,t,-1)}function La(e){return e<0?Math.floor(e):Math.ceil(e)}function Ba(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*La(Da(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=pe(a/1e3),l.seconds=e%60,t=pe(e/60),l.minutes=t%60,n=pe(t/60),l.hours=n%24,o+=pe(n/24),s+=i=pe(Fa(o)),o-=La(Da(i)),r=pe(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Fa(e){return 4800*e/146097}function Da(e){return 146097*e/4800}function Ua(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Fa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Da(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function za(e){return function(){return this.as(e)}}var Wa=za("ms"),Ha=za("s"),Va=za("m"),Ga=za("h"),Ya=za("d"),qa=za("w"),Xa=za("M"),$a=za("Q"),Ka=za("y"),Qa=Wa;function Ja(){return Fr(this)}function Za(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function eo(e){return function(){return this.isValid()?this._data[e]:NaN}}var to=eo("milliseconds"),no=eo("seconds"),ro=eo("minutes"),io=eo("hours"),ao=eo("days"),oo=eo("months"),so=eo("years");function lo(){return pe(this.days()/7)}var co=Math.round,uo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ho(e,t,n,r,i){return zt.call(i,t||1,!!n,e,r)}function fo(e,t,n,r){var i=Fr(e).abs(),a=co(i.as("s")),o=co(i.as("m")),s=co(i.as("h")),l=co(i.as("d")),c=co(i.as("M")),u=co(i.as("w")),d=co(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,ho.apply(null,h)}function po(e){return void 0===e?co:"function"===typeof e&&(co=e,!0)}function go(e,t){return void 0!==uo[e]&&(void 0===t?uo[e]:(uo[e]=t,"
2s"===e&&(uo.ss=t-1),!0))}function mo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=uo;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(a=f(f({},uo),t||{}),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=fo(this,!i,a,n=this.localeData()),i&&(r=Ht.call(n,+this,r)),n.postformat(r)}var yo=Math.abs;function bo(e){return(e>0)-(e<0)||+e}function vo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,s,l=yo(this._milliseconds)/1e3,c=yo(this._days),u=yo(this._months),d=this.asSeconds();return d?(e=pe(l/60),t=pe(e/60),l%=60,e%=60,n=pe(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=bo(this._months)!==bo(d)?"-":"",o=bo(this._days)!==bo(d)?"-":"",s=bo(this._milliseconds)!==bo(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var xo=mr.prototype;return xo.isValid=pr,xo.abs=Ia,xo.add=Ma,xo.subtract=ja,xo.as=Ua,xo.asMilliseconds=Wa,xo.asSeconds=Ha,xo.asMinutes=Va,xo.asHours=Ga,xo.asDays=Ya,xo.asWeeks=qa,xo.asMonths=Xa,xo.asQuarters=$a,xo.asYears=Ka,xo.valueOf=Qa,xo._bubble=Ba,xo.clone=Ja,xo.get=Za,xo.milliseconds=to,xo.seconds=no,xo.minutes=ro,xo.hours=io,xo.days=ao,xo.weeks=lo,xo.months=oo,xo.years=so,xo.humanize=mo,xo.toISOString=vo,xo.toString=vo,xo.toJSON=vo,xo.locale=mi,xo.localeData=bi,xo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vo),xo.lang=yi,D("X",0,0,"unix"),D("x",0,0,"valueOf"),ue("x",re),ue("X",oe),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(ge(e))})),r.version="2.31.0",i(ar),r.fn=ba,r.min=cr,r.max=ur,r.now=dr,r.utc=p,r.unix=va,r.months=Pa,r.isDate=d,r.locale=An,r.invalid=b,r.duration=Fr,r.isMoment=A,r.weekdays=Oa,r.parseZone=xa,r.localeData=Pn,r.isDuration=yr,r.monthsShort=Ca,r.weekdaysMin=Na,r.defineLocale=En,r.updateLocale=Sn,r.locales=Cn,r.weekdaysShort=Ta,r.normalizeUnits=N,r.relativeTimeRounding=po,r.relativeTimeThreshold=go,r.calendarFormat=Qr,r.prototype=ba,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},59189:(e,t,n)=>{var r=n(61516),i=n(91454),a=n(71047),o=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(a(i(t).replace(o,"")),e,"")}}},59191:(e,t,n)=>{"use strict";var r=n(29745),i=n(44796),a=n(10715),o=n(3383),s=n(11377),l=n(34437),c=n(74876),u=n(75897).get,d=n(2231),h=n(67170),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=i("".charAt),y=i("".indexOf),b=i("".replace),v=i("".slice),x=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(x||k||w||d||h)&&(g=function(e){var t,n,i,s,l,d,h,A=this,E=u(A),S=a(e),P=E.raw;if(P)return P.lastIndex=A.lastIndex,t=r(g,P,S),A.lastIndex=P.lastIndex,t;var C=E.groups,O=w&&A.sticky,T=r(o,A),N=A.source,_=0,I=S;if(O&&(T=b(T,"y",""),-1===y(T,"g")&&(T+="g"),I=v(S,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&"\n"!==m(S,A.lastIndex-1))&&(N="(?: "+N+")",I=" "+I,_++),n=new RegExp("^(?:"+N+")",T)),k&&(n=new RegExp("^"+N+"$(?!\\s)",T)),x&&(i=A.lastIndex),s=r(p,O?n:A,I),O?s?(s.input=v(s.input,_),s[0]=v(s[0],_),s.index=A.lastIndex,A.lastIndex+=s[0].length):A.lastIndex=0:x&&s&&(A.lastIndex=A.global?s.index+s[0].length:i),k&&s&&s.length>1&&r(f,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&C)for(s.groups=d=c(null),l=0;l<C.length;l++)d[(h=C[l])[0]]=s[h[1]];return s}),e.exports=g},59363:(e,t,n)=>{"use strict";n.d(t,{T:()=>oe});var r=n(36140),i=n(64199);const a=(0,r.A)(/^error ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)$/,{name:1,parameters:2});const o=(0,r.A)(/^event ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)$/,{name:1,parameters:2});const s=(0,r.A)(/^function ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)(?: (external|public{1}))?(?: (pure|view|nonpayable|payable{1}))?(?: returns\s?\((.*?)\))?$/,{name:1,parameters:2,scope:3,stateMutability:4,returns:5});const l=(0,r.A)(/^struct ([a-zA-Z$_][a-zA-Z0-9$_]*) \{(.*?)\}$/,{name:1,properties:2});function c(e){return l.test(e)}function u(e){return(0,i.Yv)(l,e)}const d=(0,r.A)(/^constructor\((.*?)\)(?:\s(payable{1}))?$/,{parameters:1,stateMutability:2});const h=(0,r.A)(/^fallback\(\) external(?:\s(payable{1}))?$/,{stateMutability:1});const f=/^receive\(\) external payable$/;new Set(["memory","indexed","storage","calldata"]);const p=new Set(["indexed"]),g=new Set(["calldata","memory","storage"]);
2class m extends Error{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.cause instanceof m?n.cause.details:null!==(t=n.cause)&&void 0!==t&&t.message?n.cause.message:n.details,i=n.cause instanceof m&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),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:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=e}}class y extends m{constructor(e){let{type:t}=e;super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class b extends m{constructor(e){let{type:t}=e;super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class v extends m{constructor(e){let{param:t}=e;super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class x extends m{constructor(e){let{param:t,name:n}=e;super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class w extends m{constructor(e){let{param:t,type:n,modifier:r}=e;super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class k extends m{constructor(e){let{param:t,type:n,modifier:r}=e;super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class A extends m{constructor(e){let{abiParameter:t}=e;super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class E extends m{constructor(e){let{signature:t,type:n}=e;super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class S extends m{constructor(e){let{signature:t}=e;super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class P extends m{constructor(e){let{signature:t}=e;super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class C extends m{constructor(e){let{type:t}=e;super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class O extends m{constructor(e){let{current:t,depth:n}=e;super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const T=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e){return s.test(e)}(e))return function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){return(0,i.Yv)(s,e)}(e);if(!r)throw new E({signature:e,type:"function"});const a=j(r.parameters),o=[],l=a.length;for(let i=0;i<l;i++)o.push(M(a[i],{modifiers:g,structs:n,type:"function"}));const c=[];if(r.returns){const e=j(r.returns),t=e.length;for(let r=0;r<t;r++)c.push(M(e[r],{modifiers:g,structs:n,type:"function"}))}return{name:r.name,type:"function",stateMutability:null!==(t=r.stateMutability)&&void 0!==t?t:"nonpayable",inputs:o,outputs:c}}(e,t);if(function(e){return o.test(e)}(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e){return(0,i.Yv)(o,e)}(e);if(!n)throw new E({signature:e,type:"event"});const r=j(n.parameters),a=[],s=r.length;for(let i=0;i<s;i++)a.push(M(r[i],{modifiers:p,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:a}}(e,t);if(function(e){return a.test(e)}(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e){return(0,i.Yv)(a,e)}(e);if(!n)throw new E({signature:e,type:"error"});const r=j(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(M(r[i],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}(e,t);if(function(e){return d.test(e)}(e))return function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){return(0,i.Yv)(d,e)}(e);if(!r)throw new E({signature:e,type:"constructor"});const a=j(r.parameters),o=[],s=a.length;for(let i=0;i<s;i++)o.push(M(a[i],{structs:n,type:"constructor"}));return{type:"constructor",stateMutability:null!==(t=r.stateMutability)&&void 0!==t?t:"nonpayable",inputs:o}}(e,t);if(function(e){return h.test(e)}(e))return function(e){var t;const n=function(e){return(0,i.Yv)(h,e)}(e);if(!n)throw new E({signature:e,type:"fallback"});return{type:"fallback",stateMutability:null!==(t=n.stateMutability)&&void 0!==t?t:"nonpayable"}}(e);if(function(e){return f.test(e)}(e))return{type:"receive",stateMutability:"payable"};throw new S({signature:e})}const _=(0,r.A)(/^([a-zA-Z$_][a-zA-Z0-9$_]*)((?:\[\d*?\])+?)?(?:\s(calldata|indexed|memory|storage{1}))?(?:\s([a-zA-Z$_][a-zA-Z0-9$_]*))?$/,{type:1,array:2,modifier:3,name:4}),I=(0,r.A)(/^\((.+?)\)((?:\[\d*?\])+?)?(?:\s(calldata|indexed|memory|storage{1}))?(?:\s([a-zA-Z$_][a-zA-Z0-9$_]*))?$/,{type:1,array:2,modifier:3,name:4}),R=/^u?int$/;function M(e,t){var n,r;const a=function(e,t,n){let r="";if(n)for(const i of Object.entries(n)){if(!i)continue;let e="";for(const t of i[1])e+=`[${t.type}${t.name?`:${t.name}`:""}]`;r+=`(${i[0]}{${e}})`}return t?`${t}:${e}${r}`:e}(e,null===t||void 0===t?void 0:t.type,null===t||void 0===t?void 0:t.structs);if(T.has(a))return T.get(a);const o=i.wj.test(e),s=(0,i.Yv)(o?I:_,e);if(!s)throw new v({param:e});if(s.name&&function(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||i.BD.test(e)||i.Ge.test(e)||B.test(e)}(s.name))throw new x({param:e,name:s.name});const l=s.name?{name:s.name}:{},c="indexed"===s.modifier?{indexed:!0}:{},u=null!==(n=null===t||void 0===t?void 0:t.structs)&&void 0!==n?n:{};let d,h={};if(o){d="tuple";const e=j(s.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(M(e[r],{structs:u}));h={components:t}}else if(s.type in u)d="tuple",h={components:u[s.type]};else if(R.test(s.type))d=`${s.type}256`;else if(d=s.type,"struct"!==(null===t||void 0===t?void 0:t.type)&&!L(d))throw new b({type:d});if(s.modifier){var f,p;if(null===t||void 0===t||null===(f=t.modifiers)||void 0===f||null===(p=f.has)||void 0===p||!p.call(f,s.modifier))throw new w({param:e,type:null===t||void 0===t?void 0:t.type,modifier:s.modifier});if(g.has(s.modifier)&&!function(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}(d,!!s.array))throw new k({param:e,type:null===t||void 0===t?void 0:t.type,modifier:s.modifier})}const m={type:`${d}${null!==(r=s.array)&&void 0!==r?r:""}`,...l,...c,...h};
2return T.set(a,m),m}function j(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=e.trim().length;for(let a=0;a<i;a++){const i=e[a],o=e.slice(a+1);switch(i){case",":return 0===r?j(o,[...t,n.trim()]):j(o,t,`${n}${i}`,r);case"(":return j(o,t,`${n}${i}`,r+1);case")":return j(o,t,`${n}${i}`,r-1);default:return j(o,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new O({current:n,depth:r});return t.push(n.trim()),t}function L(e){return"address"===e||"bool"===e||"function"===e||"string"===e||i.BD.test(e)||i.Ge.test(e)}const B=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const F=(0,r.A)(/^([a-zA-Z$_][a-zA-Z0-9$_]*)((?:\[\d*?\])+?)?$/,{type:1,array:2});function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const r=[],a=e.length;for(let s=0;s<a;s++){const a=e[s];if(i.wj.test(a.type))r.push(a);else{const e=(0,i.Yv)(F,a.type);if(null===e||void 0===e||!e.type)throw new A({abiParameter:a});const{array:s,type:l}=e;if(l in t){var o;if(n.has(l))throw new C({type:l});r.push({...a,type:`tuple${null!==s&&void 0!==s?s:""}`,components:D(null!==(o=t[l])&&void 0!==o?o:[],t,new Set([...n,l]))})}else{if(!L(l))throw new y({type:l});r.push(a)}}}return r}function U(e){const t=function(e){const t={},n=e.length;for(let o=0;o<n;o++){const n=e[o];if(!c(n))continue;const r=u(n);if(!r)throw new E({signature:n,type:"struct"});const i=r.properties.split(";"),a=[],s=i.length;for(let e=0;e<s;e++){const t=i[e].trim();if(!t)continue;const n=M(t,{type:"struct"});a.push(n)}if(!a.length)throw new P({signature:n});t[r.name]=a}const r={},i=Object.entries(t),a=i.length;for(let o=0;o<a;o++){const[e,n]=i[o];r[e]=D(n,t)}return r}(e),n=[],r=e.length;for(let i=0;i<r;i++){const r=e[i];c(r)||n.push(N(r,t))}return n}var z=n(40101),W=n(6169),H=n(59863);const V="0x82ad56cb";var G=n(33417),Y=n(36026),q=n(67935),X=n(78802),$=n(55628),K=n(22626),Q=n(46671),J=n(60049),Z=n(97168),ee=n(97484),te=n(11613),ne=n(14807),re=n(5911),ie=n(95995),ae=n(42918);async function oe(e,t){var r;const{account:i=e.account,batch:a=Boolean(null===(r=e.batch)||void 0===r?void 0:r.multicall),blockNumber:o,blockTag:s="latest",accessList:l,blobs:c,blockOverrides:u,code:d,data:h,factory:f,factoryData:p,gas:g,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:x,to:w,value:k,stateOverride:A,...E}=t,S=i?(0,W.J)(i):void 0;if(d&&(f||p))throw new Y.C("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(d&&w)throw new Y.C("Cannot provide both `code` & `to` as parameters.");const P=d&&h,C=f&&p&&w&&h,O=P||C,T=P?function(e){const{code:t,data:n}=e;return(0,K.m)({abi:U(["constructor(bytes, bytes)"]),bytecode:G.LX,args:[t,n]})}({code:d,data:h}):C?function(e){const{data:t,factory:n,factoryData:r,to:i}=e;return(0,K.m)({abi:U(["constructor(address, bytes, address, bytes)"]),bytecode:G.WN,args:[i,t,n,r]})}({data:h,factory:f,factoryData:p,to:w}):h;try{var N;(0,ae.c)(t);const n=("bigint"===typeof o?(0,Z.cK)(o):void 0)||s,r=u?z.J(u):void 0,i=(0,ie.yH)(A),d=null===(N=e.chain)||void 0===N||null===(N=N.formatters)||void 0===N||null===(N=N.transactionRequest)||void 0===N?void 0:N.format,h=(d||ne.Bv)({...(0,te.o)(E,{format:d}),from:null===S||void 0===S?void 0:S.address,accessList:l,blobs:c,data:T,gas:g,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:b,maxPriorityFeePerGas:v,nonce:x,to:O?void 0:w,value:k});if(a&&function(e){let{request:t}=e;const{data:n,to:r,...i}=t;return!!n&&(!n.startsWith(V)&&(!!r&&!(Object.values(i).filter((e=>"undefined"!==typeof e)).length>0)))}({request:h})&&!i&&!r)try{return await async function(e,t){var n;const{batchSize:r=1024,wait:i=0}="object"===typeof(null===(n=e.batch)||void 0===n?void 0:n.multicall)?e.batch.multicall:{},{blockNumber:a,blockTag:o="latest",data:s,multicallAddress:l,to:c}=t;let u=l;if(!u){if(!e.chain)throw new q.YE;u=(0,J.M)({blockNumber:a,chain:e.chain,contract:"multicall3"})}const d="bigint"===typeof a?(0,Z.cK)(a):void 0,h=d||o,{schedule:f}=(0,re.u)({id:`${e.uid}.${h}`,wait:i,shouldSplitBatch(e){const t=e.reduce(((e,t)=>{let{data:n}=t;return e+(n.length-2)}),0);return t>2*r},fn:async t=>{const n=t.map((e=>
2({allowFailure:!0,callData:e.data,target:e.to}))),r=(0,Q.p)({abi:H.v2,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:r,to:u},h]});return(0,$.e)({abi:H.v2,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:p,success:g}]=await f({data:s,to:c});if(!g)throw new X.$S({data:p});return"0x"===p?{data:void 0}:{data:p}}(e,{...h,blockNumber:o,blockTag:s})}catch(_){if(!(_ instanceof q.YE)&&!(_ instanceof q.rj))throw _}const f=(()=>{const e=[h,n];return i&&r?[...e,i,r]:i?[...e,i]:r?[...e,{},r]:e})(),p=await e.request({method:"eth_call",params:f});return"0x"===p?{data:void 0}:{data:p}}catch(_){const r=function(e){var t;if(!(e instanceof Y.C))return;const n=e.walk();return"object"===typeof(null===n||void 0===n?void 0:n.data)?null===(t=n.data)||void 0===t?void 0:t.data:n.data}(_),{offchainLookup:i,offchainLookupSignature:a}=await n.e(825).then(n.bind(n,56825));if(!1!==e.ccipRead&&(null===r||void 0===r?void 0:r.slice(0,10))===a&&w)return{data:await i(e,{data:r,to:w})};if(O&&"0x101bb98d"===(null===r||void 0===r?void 0:r.slice(0,10)))throw new X.Po({factory:f});throw(0,ee.d)(_,{...t,account:S,chain:e.chain})}}},59418:(e,t,n)=>{var r=n(1404);e.exports=function(e,t){return r(e,t)}},59699:(e,t,n)=>{"use strict";var r=n(14146),i=n(59191);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},59788:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var r=n(36026),i=n(20288);function a(e,t){const n=(e.details||"").toLowerCase(),a=e instanceof r.C?e.walk((e=>(null===e||void 0===e?void 0:e.code)===i.A7.code)):e;return a instanceof r.C?new i.A7({cause:e,message:a.details}):i.A7.nodeMessage.test(n)?new i.A7({cause:e,message:e.details}):i.BG.nodeMessage.test(n)?new i.BG({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):i.jj.nodeMessage.test(n)?new i.jj({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):i.K0.nodeMessage.test(n)?new i.K0({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.Oh.nodeMessage.test(n)?new i.Oh({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.vW.nodeMessage.test(n)?new i.vW({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):i.k5.nodeMessage.test(n)?new i.k5({cause:e}):i.lY.nodeMessage.test(n)?new i.lY({cause:e,gas:null===t||void 0===t?void 0:t.gas}):i.Fo.nodeMessage.test(n)?new i.Fo({cause:e,gas:null===t||void 0===t?void 0:t.gas}):i.uC.nodeMessage.test(n)?new i.uC({cause:e}):i.lN.nodeMessage.test(n)?new i.lN({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas,maxPriorityFeePerGas:null===t||void 0===t?void 0:t.maxPriorityFeePerGas}):new i.RM({cause:e})}},59863:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>o,Rm:()=>c,SJ:()=>l,_:()=>u,b2:()=>i,oX:()=>s,v2:()=>r});const r=[{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"}],i=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],a=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],o=[...a,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...a,{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"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],l=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{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"}]}],u=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},59962:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"address","name":"_dexRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"}
2,{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amountToken","type":"uint256"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayEther","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllocationData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getDepositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getDepositedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getEarnedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxFarmAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountDEFX","type":"uint256"},{"internalType":"uint256","name":"_amountETH","type":"uint256"}],"name":"getQuote","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalPendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address[]","name":"_usdPricePath","type":"address[]"},{"internalType":"uint256","name":"_maxRewardRate","type":"uint256"},{"internalType":"uint256","name":"_minRewardRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMaxRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMinRate","type":"uint256"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"uint256[]","name":"_allocations","type":"uint256[]"},{"internalType":"bool","name":"_activate","type":"bool"}],"name":"initFarm","outputs":[],"stateMutability":"nonpayable","type":"function"}
2,{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setFarmStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_prices","type":"uint256[]"},{"internalType":"uint256[]","name":"_allocations","type":"uint256[]"}],"name":"updateAllocationData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxRewardRate","type":"uint256"},{"internalType":"uint256","name":"_minRewardRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMaxRate","type":"uint256"},{"internalType":"uint256","name":"_ratioMinRate","type":"uint256"}],"name":"updateRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_newUsdPricePath","type":"address[]"}],"name":"updateUsdPricePath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"},{"internalType":"uint256","name":"_slippage","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]')},60049:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(67935);function i(e){var t;let{blockNumber:n,chain:i,contract:a}=e;const o=null===i||void 0===i||null===(t=i.contracts)||void 0===t?void 0:t[a];if(!o)throw new r.rj({chain:i,contract:{name:a}});if(n&&o.blockCreated&&o.blockCreated>n)throw new r.rj({blockNumber:n,chain:i,contract:{name:a,blockCreated:o.blockCreated}});return o.address}},60299:e=>{e.exports=function(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}},60722:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(16668).default,o=n(81756).default,s=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;const l=n(24839),c=n(7486);var u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,g=new WeakMap,m=new WeakSet;class y{constructor(e){r(this,m),i(this,u,void 0),i(this,d,void 0),i(this,h,void 0),i(this,f,void 0),i(this,p,void 0),i(this,g,void 0),s(u,this,e),s(d,this,null),s(h,this,o(m,this,b).bind(this)),s(f,this,!1),s(p,this,null),s(g,this,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}
2start(){a(f,this)||(s(f,this,!0),o(m,this,b).call(this,-2))}stop(){a(f,this)&&(s(f,this,!1),s(g,this,!0),o(m,this,v).call(this),a(u,this).off("block",a(h,this)))}pause(e){e&&o(m,this,v).call(this),a(u,this).off("block",a(h,this))}resume(){this.start()}}async function b(e){try{null==a(d,this)&&s(d,this,this._subscribe(a(u,this)));let e=null;try{e=await a(d,this)}catch(t){if(!(0,l.isError)(t,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==t.operation)throw t}if(null==e)return s(d,this,null),void a(u,this)._recoverSubscriber(this,this._recover(a(u,this)));const n=await a(u,this).getNetwork();if(a(p,this)||s(p,this,n),a(p,this).chainId!==n.chainId)throw new Error("chaid changed");if(a(g,this))return;const r=await a(u,this).send("eth_getFilterChanges",[e]);await this._emitResults(a(u,this),r)}catch(t){console.log("@TODO",t)}a(u,this).once("block",a(h,this))}function v(){const e=a(d,this);e&&(s(d,this,null),e.then((e=>{a(u,this).destroyed||a(u,this).send("eth_uninstallFilter",[e])})))}t.FilterIdSubscriber=y;var x=new WeakMap;t.FilterIdEventSubscriber=class extends y{constructor(e,t){var n;super(e),i(this,x,void 0),s(x,this,(n=t,JSON.parse(JSON.stringify(n))))}_recover(e){return new c.PollingEventSubscriber(e,a(x,this))}async _subscribe(e){return await e.send("eth_newFilter",[a(x,this)])}async _emitResults(e,t){for(const n of t)e.emit(a(x,this),e._wrapLog(n,e._network))}};t.FilterIdPendingSubscriber=class extends y{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}},60759:(e,t,n)=>{"use strict";var r=n(9950);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),o((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},60780:(e,t,n)=>{"use strict";t.N1=void 0;var r=l(n(9950)),i=l(n(11942)),a=l(n(48607)),o=l(n(59418)),s=l(n(49076));function l(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function y(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"===typeof t))return t;return x(e)}(this,n)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
2function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A="undefined"!==typeof process&&{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DEFAULTAUTH:"fakebackend",REACT_APP_APIKEY:"",REACT_APP_AUTHDOMAIN:"",REACT_APP_DATABASEURL:"",REACT_APP_PROJECTID:"",REACT_APP_STORAGEBUCKET:"",REACT_APP_MESSAGINGSENDERID:"",REACT_APP_APPID:"",REACT_APP_MEASUREMENTID:""}&&"production",E=function(e){y(n,e);var t=v(n);function n(){var e;return p(this,n),k(x(e=t.call(this)),"handleOnClick",(function(t){var n=e.chartInstance,r=e.props,i=r.getDatasetAtEvent,a=r.getElementAtEvent,o=r.getElementsAtEvent,s=r.onElementsClick;i&&i(n.getDatasetAtEvent(t),t),a&&a(n.getElementAtEvent(t),t),o&&o(n.getElementsAtEvent(t),t),s&&s(n.getElementsAtEvent(t),t)})),k(x(e),"ref",(function(t){e.element=t})),e.chartInstance=void 0,e}return m(n,[{key:"componentDidMount",value:function(){this.renderChart()}},{key:"componentDidUpdate",value:function(){if(this.props.redraw)return this.destroyChart(),void this.renderChart();this.updateChart()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,i=t.plugins,a=t.legend,s=t.height,l=t.width;if(!0===e.redraw)return!0;if(s!==e.height||l!==e.width)return!0;if(n!==e.type)return!0;if(!(0,o.default)(a,e.legend))return!0;if(!(0,o.default)(r,e.options))return!0;var c=this.transformDataProp(e);return!(0,o.default)(this.shadowDataProp,c)||!(0,o.default)(i,e.plugins)}},{key:"componentWillUnmount",value:function(){this.destroyChart()}},{key:"transformDataProp",value:function(e){var t=e.data;return"function"==typeof t?t(this.element):t}},{key:"memoizeDataProps",value:function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=f(f({},e),{},{datasets:e.datasets&&e.datasets.map((function(e){return f({},e)}))}),this.saveCurrentDatasets(),e}}},{key:"checkDatasets",value:function(e){var t="production"!==A&&"prod"!==A,r=this.props.datasetKeyProvider!==n.getLabelAsKey,i=e.length>1;if(t&&i&&!r){var a=!1;e.forEach((function(e){e.label||(a=!0)})),a&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}}},{key:"getCurrentDatasets",value:function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]}},{key:"saveCurrentDatasets",value:function(){var e=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(t){e.datasets[e.props.datasetKeyProvider(t)]=t}))}},{key:"updateChart",value:function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=a.default.helpers.configMerge(this.chartInstance.options,t));var r=this.getCurrentDatasets(),i=n.datasets||[];this.checkDatasets(r);var o=(0,s.default)(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=i.map((function(t){var n=o[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type&&t.data){n.data.splice(t.data.length),t.data.forEach((function(e,r){n.data[r]=t.data[r]}));t.data;var r=d(t,["data"]);return f(f({},n),r)}return t}));n.datasets;var l=d(n,["datasets"]);this.chartInstance.config.data=f(f({},this.chartInstance.config.data),l),this.chartInstance.update()}}},{key:"renderChart",value:function(){var e=this.props,t=e.options,r=e.legend,i=e.type,s=e.plugins,l=this.element,c=this.memoizeDataProps();"undefined"===typeof r||(0,o.default)(n.defaultProps.legend,r)||(t.legend=r),this.chartInstance=new a.default(l,{type:i,data:c,options:t,plugins:s})}},{key:"destroyChart",value:function(){if(this.chartInstance){this.saveCurrentDatasets();var e=Object.values(this.datasets);this.chartInstance.config.data.datasets=e,this.chartInstance.destroy()}}},{key:"render",value:function(){var e=this.props,t=e.height,n=e.width,i=e.id;return r.default.createElement("canvas",{ref:this.ref,height:t,width:n,id:i,onClick:this.handleOnClick})}}]),n}(r.default.Component);k(E,"getLabelAsKey",(function(e){return e.label}
2)),k(E,"propTypes",{data:i.default.oneOfType([i.default.object,i.default.func]).isRequired,getDatasetAtEvent:i.default.func,getElementAtEvent:i.default.func,getElementsAtEvent:i.default.func,height:i.default.number,legend:i.default.object,onElementsClick:i.default.func,options:i.default.object,plugins:i.default.arrayOf(i.default.object),redraw:i.default.bool,type:function(e,t,n){if(!a.default.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:i.default.number,datasetKeyProvider:i.default.func}),k(E,"defaultProps",{legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:E.getLabelAsKey}),r.default.Component,r.default.Component;var S=function(e){y(n,e);var t=v(n);function n(){return p(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this;return r.default.createElement(E,c({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))}}]),n}(r.default.Component);t.N1=S,r.default.Component,r.default.Component,r.default.Component,r.default.Component,r.default.Component,r.default.Component,a.default.defaults},60834:function(e,t,n){var r,i;i=this,r=function(){return i.Chartist=function(){var e={version:"0.11.4"};return function(e,t){"use strict";var n=e.window,r=e.document;t.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},t.noop=function(e){return e},t.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},t.extend=function(e){var n,r,i;for(e=e||{},n=1;n<arguments.length;n++)for(var a in r=arguments[n])i=r[a],e[a]="object"!==typeof i||null===i||i instanceof Array?i:t.extend(e[a],i);return e},t.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},t.ensureUnit=function(e,t){return"number"===typeof e&&(e+=t),e},t.quantity=function(e){if("string"===typeof e){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},t.querySelector=function(e){return e instanceof Node?e:r.querySelector(e)},t.times=function(e){return Array.apply(null,new Array(e))},t.sum=function(e,t){return e+(t||0)},t.mapMultiply=function(e){return function(t){return t*e}},t.mapAdd=function(e){return function(t){return t+e}},t.serialMap=function(e,n){var r=[],i=Math.max.apply(null,e.map((function(e){return e.length})));return t.times(i).forEach((function(t,i){var a=e.map((function(e){return e[i]}));r[i]=n.apply(null,a)})),r},t.roundWithPrecision=function(e,n){var r=Math.pow(10,n||t.precision);return Math.round(e*r)/r},t.precision=8,t.escapingMap={"&":"&","<":"<",">":">",'"':""","'":"'"},t.serialize=function(e){return null===e||void 0===e?e:("number"===typeof e?e=""+e:"object"===typeof e&&(e=JSON.stringify({data:e})),Object.keys(t.escapingMap).reduce((function(e,n){return t.replaceAll(e,n,t.escapingMap[n])}),e))},t.deserialize=function(e){if("string"!==typeof e)return e;e=Object.keys(t.escapingMap).reduce((function(e,n){return t.replaceAll(e,t.escapingMap[n],n)}),e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(n){}return e},t.createSvg=function(e,n,r,i){var a;return n=n||"100%",r=r||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter((function(e){return e.getAttributeNS(t.namespaces.xmlns,"ct")})).forEach((function(t){e.removeChild(t)})),(a=new t.Svg("svg").attr({width:n,height:r}).addClass(i))._node.style.width=n,a._node.style.height=r,e.appendChild(a._node),a},t.normalizeData=function(e,n,r){var i,a={raw:e,normalized:{}};return a.normalized.series=t.getDataArray({series:e.series||[]},n,r),i=a.normalized.series.every((function(e){return e instanceof Array}))?Math.max.apply(null,a.normalized.series.map((function(e){return e.length}))):a.normalized.series.length,a.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(a.normalized.labels,t.times(Math.max(0,i-a.normalized.labels.length)).map((function(){return""}))),n&&t.reverseData(a.normalized),a},t.safeHasProperty=function(e,t){return null!==e&&"object"===typeof e&&e.hasOwnProperty(t)},t.isDataHoleValue=function(e){return null===e||void 0===e||"number"===typeof e&&isNaN(e)},t.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"===typeof e.series[t]&&void 0!==e.series[t].data?e.series[t].data.reverse():e.series[t]instanceof Array&&e.series[t].reverse()},t.getDataArray=function(e,n,r){function i(e){if(t.safeHasProperty(e,"value"))return i(e.value);if(t.safeHasProperty(e,"data"))return i(e.data);if(e instanceof Array)return e.map(i);if(!t.isDataHoleValue(e)){if(r){var n={};return"string"===typeof r?n[r]=t.getNumberOrUndefined(e):n.y=t.getNumberOrUndefined(e),n.x=e.hasOwnProperty("x")?t.getNumberOrUndefined(e.x):n.x,n.y=e.hasOwnProperty("y")?t.getNumberOrUndefined(e.y):n.y,n}return t.getNumberOrUndefined(e)}}return e.series.map(i)},t.normalizePadding=function(e,t){return t=t||0,"number"===typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"===typeof e.top?e.top:t,right:"number"===typeof e.right?e.right:t,bottom:"number"===typeof e.bottom?e.bottom:t,left:"number"===typeof e.left?e.left:t}},t.getMetaData=function(e,t){var n=e.data?e.data[t]:e[t];return n?n.meta:void 0},t.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},t.projectLength=function(e,t,n){return t/n.range*e},t.getAvailableHeight=function(e,n){return Math.max((t.quantity(n.height).value||e.height())-(n.chartPadding.top+n.chartPadding.bottom)-n.axisX.offset,0)},t.getHighLow=function(e,n,r){var i={high:void 0===(n=t.extend({},n,r?n["axis"+r.toUpperCase()]:{})).high?-Number.MAX_VALUE:+n.high,low:void 0===n.low?Number.MAX_VALUE:+n.low},a=void 0===n.high,o=void 0===n.low;function s(e){if(void 0!==e)if(e instanceof Array)for(var t=0;t<e.length;t++)s(e[t]);else{var n=r?+e[r]:+e;a&&n>i.high&&(i.high=n),o&&n<i.low&&(i.low=n)}}return(a||o)&&s(e),(n.referenceValue||0===n.referenceValue)&&(i.high=Math.max(n.referenceValue,i.high),i.low=Math.min(n.referenceValue,i.low)),i.high<=i.low&&(0===i.low?i.high=1:i.low<0?i.high=0:(i.high>0||(i.high=1),i.low=0)),i},t.isNumeric=function(e){return null!==e&&isFinite(e)},t.isFalseyButZero=function(e){return!e&&0!==e},t.getNumberOrUndefined=function(e){return t.isNumeric(e)?+e:void 0},t.isMultiValue=function(e){return"object"===typeof e&&("x"in e||"y"in e)},t.getMultiValue=function(e,n){return t.isMultiValue(e)?t.getNumberOrUndefined(e[n||"y"]):t.getNumberOrUndefined(e)},t.rho=function(e){if(1===e)return e;function t(e,n){return e%n===0?n:t(n,e%n)}function n(e){return e*e+1}var r,i=2,a=2;if(e%2===0)return 2;do{i=n(i)%e,a=n(n(a))%e,r=t(Math.abs(i-a),e)}while(1===r);return r},t.getBounds=function(e,n,r,i){var a,o,s,l=0,c={high:n.high,low:n.low};c.valueRange=c.high-c.low,c.oom=t.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var u=t.projectLength(e,c.step,c)<r,d=i?t.rho(c.range):0;if(i&&t.projectLength(e,1,c)>=r)c.step=1;else if(i&&d<c.step&&t.projectLength(e,d,c)>=r)c.step=d;else for(;;){if(u&&t.projectLength(e,c.step,c)<=r)c.step*=2;else{if(u||!(t.projectLength(e,c.step/2,c)>=r))break;if(c.step/=2,i&&c.step%1!==0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var h=2221e-19;function f(e,t){return e===(e+=t)&&(e*=1+(t>0?h:-h)),e}for(c.step=Math.max(c.step,h),o=c.min,s=c.max;o+c.step<=c.low;)o=f(o,c.step);for(;s-c.step>=c.high;)s=f(s,-c.step);c.min=o,c.max=s,c.range=c.max-c.min;var p=[];for(a=c.min;a<=c.max;a=f(a,c.step)){var g=t.roundWithPrecision(a);g!==p[p.length-1]&&p.push(g)}return c.values=p,c},t.polarToCartesian=function(e,t,n,r){var i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},t.createChartRect=function(e,n,r){var i=!(!n.axisX&&!n.axisY),a=i?n.axisY.offset:0,o=i?n.axisX.offset:0,s=e.width()||t.quantity(n.width).value||0,l=e.height()||t.quantity(n.height).value||0,c=t.normalizePadding(n.chartPadding,r);s=Math.max(s,a+c.left+c.right),l=Math.max(l,o+c.top+c.bottom);var u={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return i?("start"===n.axisX.position?(u.y2=c.top+o,u.y1=Math.max(l-c.bottom,u.y2+1)):(u.y2=c.top,u.y1=Math.max(l-c.bottom-o,u.y2+1)),"start"===n.axisY.position?(u.x1=c.left+a,u.x2=Math.max(s-c.right,u.x1+1)):(u.x1=c.left,u.x2=Math.max(s-c.right-a,u.x1+1))):(u.x1=c.left,u.x2=Math.max(s-c.right,u.x1+1),u.y2=c.top,u.y1=Math.max(l-c.bottom,u.y2+1)),u},t.createGrid=function(e,n,r,i,a,o,s,l){var c={};c[r.units.pos+"1"]=e,c[r.units.pos+"2"]=e,c[r.counterUnits.pos+"1"]=i,c[r.counterUnits.pos+"2"]=i+a;var u=o.elem("line",c,s.join(" "));l.emit("draw",t.extend({type:"grid",axis:r,index:n,group:o,element:u},c))}
2,t.createGridBackground=function(e,t,n,r){var i=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:i})},t.createLabel=function(e,n,i,a,o,s,l,c,u,d,h){var f,p={};if(p[o.units.pos]=e+l[o.units.pos],p[o.counterUnits.pos]=l[o.counterUnits.pos],p[o.units.len]=n,p[o.counterUnits.len]=Math.max(0,s-10),d){var g=r.createElement("span");g.className=u.join(" "),g.setAttribute("xmlns",t.namespaces.xhtml),g.innerText=a[i],g.style[o.units.len]=Math.round(p[o.units.len])+"px",g.style[o.counterUnits.len]=Math.round(p[o.counterUnits.len])+"px",f=c.foreignObject(g,t.extend({style:"overflow: visible;"},p))}else f=c.elem("text",p,u.join(" ")).text(a[i]);h.emit("draw",t.extend({type:"label",axis:o,index:i,group:c,element:f,text:a[i]},p))},t.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){var r=t.series[e.name];return r.hasOwnProperty(n)?r[n]:t[n]}return t[n]},t.optionsProvider=function(e,r,i){var a,o,s=t.extend({},e),l=[];function c(e){var l=a;if(a=t.extend({},s),r)for(o=0;o<r.length;o++)n.matchMedia(r[o][0]).matches&&(a=t.extend(a,r[o][1]));i&&e&&i.emit("optionsChanged",{previousOptions:l,currentOptions:a})}function u(){l.forEach((function(e){e.removeListener(c)}))}
2if(!n.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(r)for(o=0;o<r.length;o++){var d=n.matchMedia(r[o][0]);d.addListener(c),l.push(d)}return c(),{removeMediaQueryListeners:u,getCurrentOptions:function(){return t.extend({},a)}}},t.splitIntoSegments=function(e,n,r){var i={increasingX:!1,fillHoles:!1};r=t.extend({},i,r);for(var a=[],o=!0,s=0;s<e.length;s+=2)void 0===t.getMultiValue(n[s/2].value)?r.fillHoles||(o=!0):(r.increasingX&&s>=2&&e[s]<=e[s-2]&&(o=!0),o&&(a.push({pathCoordinates:[],valueData:[]}),o=!1),a[a.length-1].pathCoordinates.push(e[s],e[s+1]),a[a.length-1].valueData.push(n[s/2]));return a}}(this||n.g,e),function(e,t){"use strict";t.Interpolation={},t.Interpolation.none=function(e){var n={fillHoles:!1};return e=t.extend({},n,e),function(n,r){for(var i=new t.Svg.Path,a=!0,o=0;o<n.length;o+=2){var s=n[o],l=n[o+1],c=r[o/2];void 0!==t.getMultiValue(c.value)?(a?i.move(s,l,!1,c):i.line(s,l,!1,c),a=!1):e.fillHoles||(a=!0)}return i}},t.Interpolation.simple=function(e){var n={divisor:2,fillHoles:!1};e=t.extend({},n,e);var r=1/Math.max(1,e.divisor);return function(n,i){for(var a,o,s,l=new t.Svg.Path,c=0;c<n.length;c+=2){var u=n[c],d=n[c+1],h=(u-a)*r,f=i[c/2];void 0!==f.value?(void 0===s?l.move(u,d,!1,f):l.curve(a+h,o,u-h,d,u,d,!1,f),a=u,o=d,s=f):e.fillHoles||(a=u=s=void 0)}return l}},t.Interpolation.cardinal=function(e){var n={tension:1,fillHoles:!1};e=t.extend({},n,e);var r=Math.min(1,Math.max(0,e.tension)),i=1-r;return function n(a,o){var s=t.splitIntoSegments(a,o,{fillHoles:e.fillHoles});if(s.length){if(s.length>1){var l=[];return s.forEach((function(e){l.push(n(e.pathCoordinates,e.valueData))})),t.Svg.Path.join(l)}if(a=s[0].pathCoordinates,o=s[0].valueData,a.length<=4)return t.Interpolation.none()(a,o);for(var c,u=(new t.Svg.Path).move(a[0],a[1],!1,o[0]),d=0,h=a.length;h-2*!c>d;d+=2){var f=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];c?d?h-4===d?f[3]={x:+a[0],y:+a[1]}:h-2===d&&(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[h-2],y:+a[h-1]}:h-4===d?f[3]=f[2]:d||(f[0]={x:+a[d],y:+a[d+1]}),u.curve(r*(-f[0].x+6*f[1].x+f[2].x)/6+i*f[2].x,r*(-f[0].y+6*f[1].y+f[2].y)/6+i*f[2].y,r*(f[1].x+6*f[2].x-f[3].x)/6+i*f[2].x,r*(f[1].y+6*f[2].y-f[3].y)/6+i*f[2].y,f[2].x,f[2].y,!1,o[(d+2)/2])}return u}return t.Interpolation.none()([])}},t.Interpolation.monotoneCubic=function(e){var n={fillHoles:!1};return e=t.extend({},n,e),function n(r,i){var a=t.splitIntoSegments(r,i,{fillHoles:e.fillHoles,increasingX:!0});if(a.length){if(a.length>1){var o=[];return a.forEach((function(e){o.push(n(e.pathCoordinates,e.valueData))})),t.Svg.Path.join(o)}if(r=a[0].pathCoordinates,i=a[0].valueData,r.length<=4)return t.Interpolation.none()(r,i);var s,l,c=[],u=[],d=r.length/2,h=[],f=[],p=[],g=[];for(s=0;s<d;s++)c[s]=r[2*s],u[s]=r[2*s+1];for(s=0;s<d-1;s++)p[s]=u[s+1]-u[s],g[s]=c[s+1]-c[s],f[s]=p[s]/g[s];for(h[0]=f[0],h[d-1]=f[d-2],s=1;s<d-1;s++)0===f[s]||0===f[s-1]||f[s-1]>0!==f[s]>0?h[s]=0:(h[s]=3*(g[s-1]+g[s])/((2*g[s]+g[s-1])/f[s-1]+(g[s]+2*g[s-1])/f[s]),isFinite(h[s])||(h[s]=0));for(l=(new t.Svg.Path).move(c[0],u[0],!1,i[0]),s=0;s<d-1;s++)l.curve(c[s]+g[s]/3,u[s]+h[s]*g[s]/3,c[s+1]-g[s]/3,u[s+1]-h[s+1]*g[s]/3,c[s+1],u[s+1],!1,i[s+1]);return l}return t.Interpolation.none()([])}},t.Interpolation.step=function(e){var n={postpone:!0,fillHoles:!1};return e=t.extend({},n,e),function(n,r){for(var i,a,o,s=new t.Svg.Path,l=0;l<n.length;l+=2){var c=n[l],u=n[l+1],d=r[l/2];void 0!==d.value?(void 0===o?s.move(c,u,!1,d):(e.postpone?s.line(c,a,!1,o):s.line(i,u,!1,d),s.line(c,u,!1,d)),i=c,a=u,o=d):e.fillHoles||(i=a=o=void 0)}return s}}}(this||n.g,e),function(e,t){"use strict";t.EventEmitter=function(){var e=[];function t(t,n){e[t]=e[t]||[],e[t].push(n)}function n(t,n){e[t]&&(n?(e[t].splice(e[t].indexOf(n),1),0===e[t].length&&delete e[t]):delete e[t])}function r(t,n){e[t]&&e[t].forEach((function(e){e(n)})),e["*"]&&e["*"].forEach((function(e){e(t,n)}))}return{addEventHandler:t,removeEventHandler:n,emit:r}}}(this||n.g,e),function(e,t){"use strict";function n(e){var t=[];if(e.length)for(var n=0;n<e.length;n++)t.push(e[n]);return t}function r(e,n){var r=n||this.prototype||t.Class,i=Object.create(r);t.Class.cloneDefinitions(i,e);var a=function(){var e,n=i.constructor||function(){};
2return e=this===t?Object.create(i):this,n.apply(e,Array.prototype.slice.call(arguments,0)),e};return a.prototype=i,a.super=r,a.extend=this.extend,a}function i(){var e=n(arguments),t=e[0];return e.splice(1,e.length-1).forEach((function(e){Object.getOwnPropertyNames(e).forEach((function(n){delete t[n],Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))})),t}t.Class={extend:r,cloneDefinitions:i}}(this||n.g,e),function(e,t){"use strict";var n=e.window;function r(e,n,r){return e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=t.extend({},r?this.options:this.defaultOptions,n),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this}function i(){return this.initializeTimeoutId?n.clearTimeout(this.initializeTimeoutId):(n.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this}function a(e,t){return this.eventEmitter.addEventHandler(e,t),this}function o(e,t){return this.eventEmitter.removeEventHandler(e,t),this}function s(){n.addEventListener("resize",this.resizeListener),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(e){e instanceof Array?e[0](this,e[1]):e(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}function l(e,n,r,i,a){this.container=t.querySelector(e),this.data=n||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=r,this.options=i,this.responsiveOptions=a,this.eventEmitter=t.EventEmitter(),this.supportsForeignObject=t.Svg.isSupported("Extensibility"),this.supportsAnimations=t.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(s.bind(this),0)}t.Base=t.Class.extend({constructor:l,optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:r,detach:i,on:a,off:o,version:t.version,supportsForeignObject:!1})}(this||n.g,e),function(e,t){"use strict";var n=e.document;function r(e,r,i,a,o){e instanceof Element?this._node=e:(this._node=n.createElementNS(t.namespaces.svg,e),"svg"===e&&this.attr({"xmlns:ct":t.namespaces.ct})),r&&this.attr(r),i&&this.addClass(i),a&&(o&&a._node.firstChild?a._node.insertBefore(this._node,a._node.firstChild):a._node.appendChild(this._node))}function i(e,n){return"string"===typeof e?n?this._node.getAttributeNS(n,e):this._node.getAttribute(e):(Object.keys(e).forEach(function(n){if(void 0!==e[n])if(-1!==n.indexOf(":")){var r=n.split(":");this._node.setAttributeNS(t.namespaces[r[0]],n,e[n])}else this._node.setAttribute(n,e[n])}.bind(this)),this)}function a(e,n,r,i){return new t.Svg(e,n,r,this,i)}function o(){return this._node.parentNode instanceof SVGElement?new t.Svg(this._node.parentNode):null}function s(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new t.Svg(e)}function l(e){var n=this._node.querySelector(e);return n?new t.Svg(n):null}function c(e){var n=this._node.querySelectorAll(e);return n.length?new t.Svg.List(n):null}function u(){return this._node}function d(e,r,i,a){if("string"===typeof e){var o=n.createElement("div");o.innerHTML=e,e=o.firstChild}e.setAttribute("xmlns",t.namespaces.xmlns);var s=this.elem("foreignObject",r,i,a);return s._node.appendChild(e),s}function h(e){return this._node.appendChild(n.createTextNode(e)),this}function f(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}function p(){return this._node.parentNode.removeChild(this._node),this.parent()}function g(e){return this._node.parentNode.replaceChild(e._node,this._node),e}function m(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this}function y(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]}function b(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter((function(e,t,n){return n.indexOf(e)===t})).join(" ")),this}function v(e){var t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter((function(e){return-1===t.indexOf(e)})).join(" ")),this}function x(){return this._node.setAttribute("class",""),this}function w(){return this._node.getBoundingClientRect().height}function k(){return this._node.getBoundingClientRect().width}function A(e,n,r){return void 0===n&&(n=!0),Object.keys(e).forEach(function(i){function a(e,n){var a,o,s,l={};e.easing&&(s=e.easing instanceof Array?e.easing:t.Svg.Easing[e.easing],delete e.easing),e.begin=t.ensureUnit(e.begin,"ms"),e.dur=t.ensureUnit(e.dur,"ms"),s&&(e.calcMode="spline",e.keySplines=s.join(" "),e.keyTimes="0;1"),n&&(e.fill="freeze",l[i]=e.from,this.attr(l),o=t.quantity(e.begin||0).value,e.begin="indefinite"),a=this.elem("animate",t.extend({attributeName:i},e)),n&&setTimeout(function(){try{a._node.beginElement()}catch(t){l[i]=e.to,this.attr(l),a.remove()}}.bind(this),o),r&&a._node.addEventListener("beginEvent",function(){r.emit("animationBegin",{element:this,animate:a._node,params:e})}.bind(this)),a._node.addEventListener("endEvent",function(){r&&r.emit("animationEnd",{element:this,animate:a._node,params:e}),n&&(l[i]=e.to,this.attr(l),a.remove())}.bind(this))}
2e[i]instanceof Array?e[i].forEach(function(e){a.bind(this)(e,!1)}.bind(this)):a.bind(this)(e[i],n)}.bind(this)),this}t.Svg=t.Class.extend({constructor:r,attr:i,elem:a,parent:o,root:s,querySelector:l,querySelectorAll:c,getNode:u,foreignObject:d,text:h,empty:f,remove:p,replace:g,append:m,classes:y,addClass:b,removeClass:v,removeAllClasses:x,height:w,width:k,animate:A}),t.Svg.isSupported=function(e){return n.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")};var E={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};function S(e){var n=this;this.svgElements=[];for(var r=0;r<e.length;r++)this.svgElements.push(new t.Svg(e[r]));Object.keys(t.Svg.prototype).filter((function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)})).forEach((function(e){n[e]=function(){var r=Array.prototype.slice.call(arguments,0);return n.svgElements.forEach((function(n){t.Svg.prototype[e].apply(n,r)})),n}}))}t.Svg.Easing=E,t.Svg.List=t.Class.extend({constructor:S})}(this||n.g,e),function(e,t){"use strict";var n={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},r={accuracy:3};function i(e,n,r,i,a,o){var s=t.extend({command:a?e.toLowerCase():e.toUpperCase()},n,o?{data:o}:{});r.splice(i,0,s)}function a(e,t){e.forEach((function(r,i){n[r.command.toLowerCase()].forEach((function(n,a){t(r,n,i,a,e)}))}))}function o(e,n){this.pathElements=[],this.pos=0,this.close=e,this.options=t.extend({},r,n)}function s(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos}function l(e){return this.pathElements.splice(this.pos,e),this}function c(e,t,n,r){return i("M",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this}function u(e,t,n,r){return i("L",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this}function d(e,t,n,r,a,o,s,l){return i("C",{x1:+e,y1:+t,x2:+n,y2:+r,x:+a,y:+o},this.pathElements,this.pos++,s,l),this}function h(e,t,n,r,a,o,s,l,c){return i("A",{rx:+e,ry:+t,xAr:+n,lAf:+r,sf:+a,x:+o,y:+s},this.pathElements,this.pos++,l,c),this}function f(e){var r=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e}),[]);"Z"===r[r.length-1][0].toUpperCase()&&r.pop();var i=r.map((function(e){var r=e.shift(),i=n[r.toLowerCase()];return t.extend({command:r},i.reduce((function(t,n,r){return t[n]=+e[r],t}),{}))})),a=[this.pos,0];return Array.prototype.push.apply(a,i),Array.prototype.splice.apply(this.pathElements,a),this.pos+=i.length,this}function p(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,r){var i=n[r.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(r[t]*e)/e:r[t]}.bind(this));return t+r.command+i.join(",")}.bind(this),"")+(this.close?"Z":"")}function g(e,t){return a(this.pathElements,(function(n,r){n[r]*="x"===r[0]?e:t})),this}function m(e,t){return a(this.pathElements,(function(n,r){n[r]+="x"===r[0]?e:t})),this}function y(e){return a(this.pathElements,(function(t,n,r,i,a){var o=e(t,n,r,i,a);(o||0===o)&&(t[n]=o)})),this}function b(e){var n=new t.Svg.Path(e||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map((function(e){return t.extend({},e)})),n.options=t.extend({},this.options),n}function v(e){var n=[new t.Svg.Path];
2return this.pathElements.forEach((function(r){r.command===e.toUpperCase()&&0!==n[n.length-1].pathElements.length&&n.push(new t.Svg.Path),n[n.length-1].pathElements.push(r)})),n}function x(e,n,r){for(var i=new t.Svg.Path(n,r),a=0;a<e.length;a++)for(var o=e[a],s=0;s<o.pathElements.length;s++)i.pathElements.push(o.pathElements[s]);return i}t.Svg.Path=t.Class.extend({constructor:o,position:s,remove:l,move:c,line:u,curve:d,arc:h,scale:g,translate:m,transform:y,parse:f,stringify:p,clone:b,splitByCommand:v}),t.Svg.Path.elementDescriptions=n,t.Svg.Path.join=x}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};function r(e,t,r,i){this.units=e,this.counterUnits=e===n.x?n.y:n.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=r,this.options=i}function i(e,n,r,i,a){var o=i["axis"+this.units.pos.toUpperCase()],s=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(o.labelInterpolationFnc);s.forEach(function(c,u){var d,h={x:0,y:0};d=s[u+1]?s[u+1]-c:Math.max(this.axisLength-c,30),t.isFalseyButZero(l[u])&&""!==l[u]||("x"===this.units.pos?(c=this.chartRect.x1+c,h.x=i.axisX.labelOffset.x,"start"===i.axisX.position?h.y=this.chartRect.padding.top+i.axisX.labelOffset.y+(r?5:20):h.y=this.chartRect.y1+i.axisX.labelOffset.y+(r?5:20)):(c=this.chartRect.y1-c,h.y=i.axisY.labelOffset.y-(r?d:0),"start"===i.axisY.position?h.x=r?this.chartRect.padding.left+i.axisY.labelOffset.x:this.chartRect.x1-10:h.x=this.chartRect.x2+i.axisY.labelOffset.x+10),o.showGrid&&t.createGrid(c,u,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[i.classNames.grid,i.classNames[this.units.dir]],a),o.showLabel&&t.createLabel(c,d,u,l,this,o.offset,h,n,[i.classNames.label,i.classNames[this.units.dir],"start"===o.position?i.classNames[o.position]:i.classNames.end],r,a))}.bind(this))}t.Axis=t.Class.extend({constructor:r,createGridAndLabels:i,projectValue:function(e,t,n){throw new Error("Base axis can't be instantiated!")}}),t.Axis.units=n}(this||n.g,e),function(e,t){"use strict";function n(e,n,r,i){var a=i.highLow||t.getHighLow(n,i,e.pos);this.bounds=t.getBounds(r[e.rectEnd]-r[e.rectStart],a,i.scaleMinSpace||20,i.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},t.AutoScaleAxis.super.constructor.call(this,e,r,this.bounds.values,i)}function r(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}e.window,e.document,t.AutoScaleAxis=t.Axis.extend({constructor:n,projectValue:r})}(this||n.g,e),function(e,t){"use strict";function n(e,n,r,i){var a=i.highLow||t.getHighLow(n,i,e.pos);this.divisor=i.divisor||1,this.ticks=i.ticks||t.times(this.divisor).map(function(e,t){return a.low+(a.high-a.low)/this.divisor*t}.bind(this)),this.ticks.sort((function(e,t){return e-t})),this.range={min:a.low,max:a.high},t.FixedScaleAxis.super.constructor.call(this,e,r,this.ticks,i),this.stepLength=this.axisLength/this.divisor}function r(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}e.window,e.document,t.FixedScaleAxis=t.Axis.extend({constructor:n,projectValue:r})}(this||n.g,e),function(e,t){"use strict";function n(e,n,r,i){t.StepAxis.super.constructor.call(this,e,r,i.ticks,i);var a=Math.max(1,i.ticks.length-(i.stretch?1:0));this.stepLength=this.axisLength/a}function r(e,t){return this.stepLength*t}e.window,e.document,t.StepAxis=t.Axis.extend({constructor:n,projectValue:r})}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackgroun
2d:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};function r(e){var r=t.normalizeData(this.data,e.reverseData,!0);this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart);var i,a,o=this.svg.elem("g").addClass(e.classNames.gridGroup),s=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),c=t.createChartRect(this.svg,e,n.padding);i=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,r.normalized.series,c,t.extend({},e.axisX,{ticks:r.normalized.labels,stretch:e.fullWidth})):e.axisX.type.call(t,t.Axis.units.x,r.normalized.series,c,e.axisX),a=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,r.normalized.series,c,t.extend({},e.axisY,{high:t.isNumeric(e.high)?e.high:e.axisY.high,low:t.isNumeric(e.low)?e.low:e.axisY.low})):e.axisY.type.call(t,t.Axis.units.y,r.normalized.series,c,e.axisY),i.createGridAndLabels(o,l,this.supportsForeignObject,e,this.eventEmitter),a.createGridAndLabels(o,l,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(o,c,e.classNames.gridBackground,this.eventEmitter),r.raw.series.forEach(function(n,o){var l=s.elem("g");l.attr({"ct:series-name":n.name,"ct:meta":t.serialize(n.meta)}),l.addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(o)].join(" "));var u=[],d=[];r.normalized.series[o].forEach(function(e,s){var l={x:c.x1+i.projectValue(e,s,r.normalized.series[o]),y:c.y1-a.project
2Value(e,s,r.normalized.series[o])};u.push(l.x,l.y),d.push({value:e,valueIndex:s,meta:t.getMetaData(n,s)})}.bind(this));var h={lineSmooth:t.getSeriesOption(n,e,"lineSmooth"),showPoint:t.getSeriesOption(n,e,"showPoint"),showLine:t.getSeriesOption(n,e,"showLine"),showArea:t.getSeriesOption(n,e,"showArea"),areaBase:t.getSeriesOption(n,e,"areaBase")},f=("function"===typeof h.lineSmooth?h.lineSmooth:h.lineSmooth?t.Interpolation.monotoneCubic():t.Interpolation.none())(u,d);if(h.showPoint&&f.pathElements.forEach(function(r){var s=l.elem("line",{x1:r.x,y1:r.y,x2:r.x+.01,y2:r.y},e.classNames.point).attr({"ct:value":[r.data.value.x,r.data.value.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(r.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:r.data.value,index:r.data.valueIndex,meta:r.data.meta,series:n,seriesIndex:o,axisX:i,axisY:a,group:l,element:s,x:r.x,y:r.y})}.bind(this)),h.showLine){var p=l.elem("path",{d:f.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.normalized.series[o],path:f.clone(),chartRect:c,index:o,series:n,seriesIndex:o,seriesMeta:n.meta,axisX:i,axisY:a,group:l,element:p})}if(h.showArea&&a.range){var g=Math.max(Math.min(h.areaBase,a.range.max),a.range.min),m=c.y1-a.project
2Value(g);f.splitByCommand("M").filter((function(e){return e.pathElements.length>1})).map((function(e){var t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,m).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,m)})).forEach(function(t){var s=l.elem("path",{d:t.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.normalized.series[o],path:t.clone(),series:n,seriesIndex:o,axisX:i,axisY:a,chartRect:c,index:o,group:l,element:s})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:a.bounds,chartRect:c,axisX:i,axisY:a,svg:this.svg,options:e})}function i(e,r,i,a){t.Line.super.constructor.call(this,e,r,n,t.extend({},n,i),a)}t.Line=t.Base.extend({constructor:i,createChart:r})}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};function r(e){var r,i;e.distributeSeries?(r=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y")).normalized.series=r.normalized.series.map((function(e){return[e]})):r=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y"),this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var a=this.svg.elem("g").addClass(e.classNames.gridGroup),o=this.svg.elem("g"),s=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&0!==r.normalized.series.length){var l=t.serialMap(r.normalized.series,(function(){return Array.prototype.slice.call(arguments).map((function(e){return e})).reduce((function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}}),{x:0,y:0})}));i=t.getHighLow([l],e,e.horizontalBars?"x":"y")}else i=t.getHighLow(r.normalized.series,e,e.horizontalBars?"x":"y");i.high=+e.high||(0===e.high?0:i.high),i.low=+e.low||(0===e.low?0:i.low);var c,u,d,h,f,p=t.createChartRect(this.svg,e,n.padding);u=e.distributeSeries&&e.stackBars?r.normalized.labels.slice(0,1):r.normalized.labels,e.horizontalBars?(c=h=void 0===e.axisX.type?new t.AutoScaleAxis(t.Axis.units.x,r.normalized.series,p,t.extend({},e.axisX,{highLow:i,referenceValue:0})):e.axisX.type.call(t,t.Axis.units.x,r.normalized.series,p,t.extend({},e.axisX,{highLow:i,referenceValue:0})),d=f=void 0===e.axisY.type?new t.StepAxis(t.Axis.units.y,r.normalized.series,p,{ticks:u}):e.axisY.type.call(t,t.Axis.units.y,r.normalized.series,p,e.axisY)):(d=h=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,r.normalized.series,p,{ticks:u}):e.axisX.type.call(t,t.Axis.units.x,r.normalized.series,p,e.axisX),c=f=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,r.normalized.series,p,t.extend({},e.axisY,{highLow:i,referenceValue:0})):e.axisY.type.call(t,t.Axis.units.y,r.normalized.series,p,t.extend({},e.axisY,{highLow:i,referenceValue:0})));var g=e.horizontalBars?p.x1+c.projectValue(0):p.y1-c.projectValue(0),m=[];d.createGridAndLabels(a,s,this.supportsForeignObject,e,this.eventEmitter),c.createGridAndLabels(a,s,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(a,p,e.classNames.gridBackground,this.eventEmitter),r.raw.series.forEach(function(n,i){var a,s,l=i-(r.raw.series.length-1)/2;a=e.distributeSeries&&!e.stackBars?d.axisLength/r.normalized.series.length/2:e.distributeSeries&&e.stackBars?d.axisLength/2:d.axisLength/r.normalized.series[i].length/2,(s=o.elem("g")).attr({"ct:series-name":n.name,"ct:meta":t.serialize(n.meta)}),s.addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(i)].join(" ")),r.normalized.series[i].forEac
2h(function(o,u){var y,b,v,x;if(x=e.distributeSeries&&!e.stackBars?i:e.distributeSeries&&e.stackBars?0:u,y=e.horizontalBars?{x:p.x1+c.projectValue(o&&o.x?o.x:0,u,r.normalized.series[i]),y:p.y1-d.projectValue(o&&o.y?o.y:0,x,r.normalized.series[i])}:{x:p.x1+d.projectValue(o&&o.x?o.x:0,x,r.normalized.series[i]),y:p.y1-c.projectValue(o&&o.y?o.y:0,u,r.normalized.series[i])},d instanceof t.StepAxis&&(d.options.stretch||(y[d.units.pos]+=a*(e.horizontalBars?-1:1)),y[d.units.pos]+=e.stackBars||e.distributeSeries?0:l*e.seriesBarDistance*(e.horizontalBars?-1:1)),v=m[u]||g,m[u]=v-(g-y[d.counterUnits.pos]),void 0!==o){var w={};w[d.units.pos+"1"]=y[d.units.pos],w[d.units.pos+"2"]=y[d.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(w[d.counterUnits.pos+"1"]=g,w[d.counterUnits.pos+"2"]=y[d.counterUnits.pos]):(w[d.counterUnits.pos+"1"]=v,w[d.counterUnits.pos+"2"]=m[u]),w.x1=Math.min(Math.max(w.x1,p.x1),p.x2),w.x2=Math.min(Math.max(w.x2,p.x1),p.x2),w.y1=Math.min(Math.max(w.y1,p.y2),p.y1),w.y2=Math.min(Math.max(w.y2,p.y2),p.y1);var k=t.getMetaData(n,u);b=s.elem("line",w,e.classNames.bar).attr({"ct:value":[o.x,o.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(k)}),this.eventEmitter.emit("draw",t.extend({type:"bar",value:o,index:u,meta:k,series:n,seriesIndex:i,axisX:h,axisY:f,chartRect:p,group:s,element:b},w))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:p,axisX:h,axisY:f,svg:this.svg,options:e})}function i(e,r,i,a){t.Bar.super.constructor.call(this,e,r,n,t.extend({},n,i),a)}t.Bar=t.Base.extend({constructor:i,createChart:r})}(this||n.g,e),function(e,t){"use strict";e.window,e.document;var n={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:t.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function r(e,t,n){var r=t.x>e.x;return r&&"explode"===n||!r&&"implode"===n?"start":r&&"implode"===n||!r&&"explode"===n?"end":"middle"}function i(e){var i,a,o,s,l,c=t.normalizeData(this.data),u=[],d=e.startAngle;this.svg=t.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),a=t.createChartRect(this.svg,e,n.padding),o=Math.min(a.width()/2,a.height()/2),l=e.total||c.normalized.series.reduce((function(e,t){return e+t}),0);var h=t.quantity(e.donutWidth);"%"===h.unit&&(h.value*=o/100),o-=e.donut&&!e.donutSolid?h.value/2:0,s="outside"===e.labelPosition||e.donut&&!e.donutSolid?o:"center"===e.labelPosition?0:e.donutSolid?o-h.value/2:o/2,s+=e.labelOffset;var f={x:a.x1+a.width()/2,y:a.y2+a.height()/2},p=1===c.raw.series.filter((function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e})).length;c.raw.series.forEach(function(e,t){u[t]=this.svg.elem("g",null,null)}.bind(this)),e.showLabel&&(i=this.svg.elem("g",null,null)),c.raw.series.forEach(function(n,a){if(0!==c.normalized.series[a]||!e.ignoreEmptyValues){u[a].attr({"ct:series-name":n.name}),u[a].addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(a)].join(" "));var g=l>0?d+c.normalized.series[a]/l*360:0,m=Math.max(0,d-(0===a||p?0:.2));g-m>=359.99&&(g=m+359.99);var y,b,v,x=t.polarToCartesian(f.x,f.y,o,m),w=t.polarToCartesian(f.x,f.y,o,g),k=new t.Svg.Path(!e.donut||e.donutSolid).move(w.x,w.y).arc(o,o,0,g-d>180,0,x.x,x.y);e.donut?e.donutSolid&&(v=o-h.value,y=t.polarToCartesian(f.x,f.y,v,d-(0===a||p?0:.2)),b=t.polarToCartesian(f.x,f.y,v,g),k.line(y.x,y.y),k.arc(v,v,0,g-d>180,1,b.x,b.y)):k.line(f.x,f.y);var A=e.classNames.slicePie;e.donut&&(A=e.classNames.sliceDonut,e.donutSolid&&(A=e.classNames.sliceDonutSolid));var E=u[a].elem("path",{d:k.stringify()},A);if(E.attr({"ct:value":c.normalized.series[a],"ct:meta":t.serialize(n.meta)}),e.donut&&!e.donutSolid&&(E._node.style.strokeWidth=h.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[a],totalDataSum:l,index:a,meta:n.meta,series:n,group:u[a],element:E,path:k.clone(),center:f,radius:o,startAngle:d,endAngle:g}),e.showLabel){var S,P;S=1===c.raw.series.length?{x:f.x,y:f.y}:t.polarToCartesian(f.x,f.y,s,d+(g-d)/2),P=c.normalized.labels&&!t.isFalseyButZero(c.normalized.labels[a])?c.normalized.labels[a]:c.normalized.series[a];var C=e.labelInterpolationFnc(P,a);if(C||0===C){var O=i.elem("text",{dx:S.x,dy:S.y,"text-anchor":r(f,S,e.labelDirection)},e.classNames.label).text(""+C);this.eventEmitter.emit("draw",{type:"label",index:a,group:i,element:O,text:""+C,x:S.x,y:S.y})}}d=g}}.bind(this)),this.eventEmitter.emit("created",{chartRect:a,svg:this.svg,options:e})}function a(e,r,i,a){t.Pie.super.constructor.call(this,e,r,n,t.extend({},n,i),a)}t.Pie=t.Base.extend({constructor:a,createChart:i,determineAnchorPosition:r})}(this||n.g,e),e}()}.apply(t,[]),void 0===r||(e.exports=r)},60863:(e,t,n)=>{"use strict";e.exports=n(65355)}
2,60954:(e,t,n)=>{"use strict";var r=n(251);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},61335:(e,t,n)=>{"use strict";var r=n(76040),i=n(27149),a=n(4136);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},61369:(e,t,n)=>{"use strict";var r=n(42923).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},61463:(e,t,n)=>{"use strict";var r=n(44796),i=n(251),a=n(28057),o=n(30421),s=n(76040),l=n(61706).CONFIGURABLE,c=n(82774),u=n(75897),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),y=r([].join),b=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),b&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return o(r,"source")||(r.source=y(v,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return a(this)&&h(this).source||c(this)}),"toString")},61516:e=>{e.exports=function(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}},61570:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},61706:(e,t,n)=>{"use strict";var r=n(76040),i=n(30421),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},61990:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const i=n(69687),a=n(24839),o=n(15254),s=n(65250),l=n(22318),c=n(77134),u=n(4559);function d(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}class h extends o.BaseWallet{constructor(e,t){"string"!==typeof e||e.startsWith("0x")||(e="0x"+e),super("string"===typeof e?new i.SigningKey(e):e,t)}connect(e){return new h(this.signingKey,e)}async encrypt(e,t){const n={address:this.address,privateKey:this.privateKey};return await(0,c.encryptKeystoreJson)(n,e,{progressCallback:t})}encryptSync(e){const t={address:this.address,privateKey:this.privateKey};return(0,c.encryptKeystoreJsonSync)(t,e)}static async fromEncryptedJson(e,t,n){let r=null;return(0,c.isKeystoreJson)(e)?r=await(0,c.decryptKeystoreJson)(e,t,n):(0,l.isCrowdsaleJson)(e)&&(n&&(n(0),await d(0)),r=(0,l.decryptCrowdsaleJson)(e,t),n&&(n(1),await d(0))),f.call(h,r)}static fromEncryptedJsonSync(e,t){let n=null;return(0,c.isKeystoreJson)(e)?n=(0,c.decryptKeystoreJsonSync)(e,t):(0,l.isCrowdsaleJson)(e)?n=(0,l.decryptCrowdsaleJson)(e,t):(0,a.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),f.call(h,n)}static createRandom(e){const t=s.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){const n=s.HDNodeWallet.fromPhrase(e);return t?n.connect(t):n}}function f(e){if((0,a.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){const t=u.Mnemonic.fromEntropy(e.mnemonic.entropy),n=s.HDNodeWallet.fromMnemonic(t,e.mnemonic.path);if(n.address===e.address&&n.privateKey===e.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const t=new r(e.privateKey);return(0,a.assertArgument)(t.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),t}r=h,t.Wallet=h},62019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;const r=n(24839),i=n(55182),a=n(31223);class o extends a.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");const t=i.Network.from(e);(0,r.assertArgument)("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}t.CloudflareProvider=o},62274:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}
2,62554:(e,t,n)=>{"use strict";var r=n(44796),i=n(51889),a=Math.floor,o=r("".charAt),s=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=u;return void 0!==d&&(d=i(d),g=c),s(h,g,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var h=a(u/10);return 0===h?i:h<=p?void 0===r[h-1]?o(s,1):r[h-1]+o(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},62621:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},63110:(e,t,n)=>{"use strict";var r=n(76989),i=n(31264),a=n(97858),o=n(96265);e.exports=o||r.call(a,i)},63120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const r=n(85339),i=n(98976),a=n(85339);function o(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function s(e,t,n){let r=0;for(let i=0;i<n;i++)r=256*r+e[t+i];return r}function l(e,t,n,r){const a=[];for(;n<t+1+r;){const o=c(e,n);a.push(o.result),n+=o.consumed,(0,i.assert)(n<=t+1+r,"child data too short","BUFFER_OVERRUN",{buffer:e,length:r,offset:t})}return{consumed:1+r,result:a}}function c(e,t){(0,i.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});const n=t=>{(0,i.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const r=e[t]-247;n(t+1+r);const i=s(e,t+1,r);return n(t+1+r+i),l(e,t,t+1+r,r+i)}if(e[t]>=192){const r=e[t]-192;return n(t+1+r),l(e,t,t+1,r)}if(e[t]>=184){const i=e[t]-183;n(t+1+i);const a=s(e,t+1,i);n(t+1+i+a);return{consumed:1+i+a,result:(0,r.hexlify)(e.slice(t+1+i,t+1+i+a))}}if(e[t]>=128){const i=e[t]-128;n(t+1+i);return{consumed:1+i,result:(0,r.hexlify)(e.slice(t+1,t+1+i))}}return{consumed:1,result:o(e[t])}}t.decodeRlp=function(e){const t=(0,a.getBytes)(e,"data"),n=c(t,0);return(0,i.assertArgument)(n.consumed===t.length,"unexpected junk after rlp payload","data",e),n.result}},63123:e=>{"use strict";e.exports=EvalError},63360:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const r=n(50806),i=n(2420),a=n(85125),o=n(78967),s=n(50638),l=n(41939),c=n(16124),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(1),f=BigInt(2),p=(e,t)=>(e+t/f)/t;function g(e){const t=u,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),l=BigInt(44),c=BigInt(88),d=e*e*e%t,h=d*d*e%t,p=(0,a.pow2)(h,n,t)*h%t,g=(0,a.pow2)(p,n,t)*h%t,y=(0,a.pow2)(g,f,t)*d%t,b=(0,a.pow2)(y,i,t)*y%t,v=(0,a.pow2)(b,o,t)*b%t,x=(0,a.pow2)(v,l,t)*v%t,w=(0,a.pow2)(x,c,t)*x%t,k=(0,a.pow2)(w,l,t)*v%t,A=(0,a.pow2)(k,n,t)*h%t,E=(0,a.pow2)(A,s,t)*b%t,S=(0,a.pow2)(E,r,t)*d%t,P=(0,a.pow2)(S,f,t);if(!m.eql(m.sqr(P),e))throw new Error("Cannot find square root");return P}const m=(0,a.Field)(u,void 0,void 0,{sqrt:g});t.secp256k1=(0,c.createCurve)({a:BigInt(0),b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=n,s=BigInt("0x100000000000000000000000000000000"),l=p(o*e,t),c=p(-r*e,t);let u=(0,a.mod)(e-l*n-c*i,t),f=(0,a.mod)(-l*r-c*o,t);const g=u>s,m=f>s;if(g&&(u=t-u),m&&(f=t-f),u>s||f>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:u,k2neg:m,k2:f}}}},r.sha256);const y=BigInt(0),b=e=>"bigint"===typeof e&&y<e&&e<u,v={};function x(e){let t=v[e];if(void 0===t){const n=(0,r.sha256)(Uint8Array.from(e,(e=>e.charCodeAt(0))));t=(0,s.concatBytes)(n,n),v[e]=t}for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(0,r.sha256)((0,s.concatBytes)(t,...i))}const w=e=>e.toRawBytes(!0).slice(1),k=e=>(0,s.numberToBytesBE)(e,32),A=e=>(0,a.mod)(e,u),E=e=>(0,a.mod)(e,d),S=t.secp256k1.ProjectivePoint;function P(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),r=S.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:E(-n),bytes:w(r)}}function C(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=A(e*e);let n=g(A(t*e+BigInt(7)));n%f!==y&&(n=A(-n));const r=new S(e,n,h);return r.assertValidity(),r}function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return E((0,s.bytesToNumberBE)(x("BIP0340/challenge",...t)))}function T(e){return P(e).bytes}function N(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,i.randomBytes)(32);const r=(0,s.ensureBytes)("message",e),{bytes:a,scalar:o}=P(t),l=(0,s.ensureBytes)("auxRand",n,32),c=k(o^(0,s.bytesToNumberBE)(x("BIP0340/aux",l))),u=x("BIP0340/nonce",c,a,r),d=E((0,s.bytesToNumberBE)(u));if(d===y)throw new Error("sign failed: k is zero");const{bytes:h,scalar:f}=P(d),p=O(h,a,r),g=new Uint8Array(64);if(g.set(h,0),g.set(k(E(f+p*o)),32),!_(g,r,a))throw new Error("sign: Invalid signature produced");return g}function _(e,t,n){const r=(0,s.ensureBytes)("signature",e,64),i=(0,s.ensureBytes)("message",t),a=(0,s.ensureBytes)("publicKey",n,32);try{const e=C((0,s.bytesToNumberBE)(a)),t=(0,s.bytesToNumberBE)(r.subarray(0,32));if(!b(t))return!1;const n=(0,s.bytesToNumberBE)(r.subarray(32,64));if(!("bigint"===typeof(u=n)&&y<u&&u<d))return!1;
2const h=O(k(t),w(e),i),f=(o=e,l=n,c=E(-h),S.BASE.multiplyAndAddUnsafe(o,l,c));return!(!f||!f.hasEvenY()||f.toAffine().x!==t)}catch(h){return!1}var o,l,c,u}t.schnorr={getPublicKey:T,sign:N,verify:_,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:C,pointToBytes:w,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:x,mod:a.mod}};const I=(()=>(0,l.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),R=(()=>(0,o.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))(),M=(()=>(0,l.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=R(m.create(e[0]));return I(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}))();t.hashToCurve=M.hashToCurve,t.encodeToCurve=M.encodeToCurve},63445:e=>{e.exports=function(e,t){return e.has(t)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},63721:e=>{e.exports=function(){return!1}},63898:(e,t,n)=>{"use strict";n.d(t,{iY:()=>l});var r=n(89676),i=n(7466),a=n(78753),o=n(71905),s=n(66455);function l(e){const{abi:t,args:n=[],name:a}=e,l=(0,i.q)(a,{strict:!1}),d=t.filter((e=>l?"function"===e.type?(0,s.V)(e)===a:"event"===e.type&&(0,o.h)(e)===a:"name"in e&&e.name===a));if(0===d.length)return;if(1===d.length)return d[0];let h;for(const i of d){if(!("inputs"in i))continue;if(!n||0===n.length){if(!i.inputs||0===i.inputs.length)return i;continue}if(!i.inputs)continue;if(0===i.inputs.length)continue;if(i.inputs.length!==n.length)continue;if(n.every(((e,t)=>{const n="inputs"in i&&i.inputs[t];return!!n&&c(e,n)}))){if(h&&"inputs"in h&&h.inputs){const e=u(i.inputs,h.inputs,n);if(e)throw new r.nM({abiItem:i,type:e[0]},{abiItem:h,type:e[1]})}h=i}}return h||d[0]}function c(e,t){const n=typeof e,r=t.type;switch(r){case"address":return(0,a.P)(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in t?Object.values(t.components).every(((t,n)=>c(Object.values(e)[n],t))):/^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(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(e)&&e.every((e=>c(e,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function u(e,t,n){for(const r in e){const i=e[r],o=t[r];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return u(i.components,o.components,n[r]);const s=[i.type,o.type];if(!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&(0,a.P)(n[r],{strict:!1}))return s}}},64059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_W
2EEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},64122:(e,t,n)=>{"use strict";var r=n(56412),i=n(28057),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},64123:(e,t,n)=>{var r=n(14759)["__core-js_shared__"];e.exports=r},64199:(e,t,n)=>{"use strict";function r(e,t){const n=e.exec(t);return null===n||void 0===n?void 0:n.groups}n.d(t,{BD:()=>i,Ge:()=>a,Yv:()=>r,wj:()=>o});const i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,a=/^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)?$/,o=/^\(.+?\).*?$/},64267:(e,t,n)=>{var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,h=Math.max,f=Math.min,p=function(){return u.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||o.test(e)?s(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,a,o,s,l,c=0,u=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,a=i;return r=i=void 0,c=t,o=e.apply(a,n)}function v(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function x(){var e=p();if(v(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?f(n,a-(e-c)):n}(e))}function w(e){return s=void 0,y&&r?b(e):(r=i=void 0,o)}function k(){var e=p(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(x,t),u?b(e):o}(l);if(d)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),o}return t=m(t)||0,g(n)&&(u=!!n.leading,a=(d="maxWait"in n)?h(m(n.maxWait)||0,t):a,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},k.flush=function(){return void 0===s?o:w(p())},k}},64364:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(81756).default,o=n(16668).default,s=n(37088).default,l=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;const c=n(55114),u=n(20022),d=n(24839),h=n(75431),f=n(28317),p=n(55182),g=n(19147),m=n(7486),y=BigInt(2);function b(e){return new Promise((t=>{setTimeout(t,e)}))}function v(e){return e&&"function"===typeof e.then}function x(e,t){return e+":"+JSON.stringify(t,((e,t)=>{if(null==t)return"null";if("bigint"===typeof t)return`bigint:${t.toString()}`;if("string"===typeof t)return t.toLowerCase();if("object"===typeof t&&!Array.isArray(t)){const e=Object.keys(t);return e.sort(),e.reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}))}class w{constructor(e){l(this,"name",void 0),(0,d.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function k(e){return(e=Array.from(new Set(e).values())).sort(),e}async function A(e,t){if(null==e)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"===typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,d.isHexString)(e,32)){const t=e.toLowerCase();return{type:"transaction",tag:x("tx",{hash:t}),hash:t}}if(e.orphan){const t=e;return{type:"orphan",tag:x("orphan",t),filter:(n=t,JSON.parse(JSON.stringify(n)))}}var n;if(e.address||e.topics){const n=e,r={topics:(n.topics||[]).map((e=>null==e?null:Array.isArray(e)?k(e.map((e=>e.toLowerCase()))):e.toLowerCase()))};if(n.address){const e=[],i=[],a=n=>{(0,d.isHexString)(n)?e.push(n):i.push((async()=>{e.push(await(0,c.resolveAddress)(n,t))})())};Array.isArray(n.address)?n.address.forEach(a):a(n.address),i.length&&await Promise.all(i),r.address=k(e.map((e=>e.toLowerCase())))}return{filter:r,tag:x("event",r),type:"event"}}(0,d.assertArgument)(!1,"unknown ProviderEvent","event",e)}function E(){return(new Date).getTime()}t.UnmanagedSubscriber=w;const S={cacheTimeout:250,pollingInterval:4e3};var P=new WeakMap,C=new WeakMap,O=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,I=new WeakMap,R=new WeakMap,M=new WeakMap,j=new WeakMap,L=new WeakMap,B=new WeakMap,F=new WeakMap,D=new WeakMap,U=new WeakSet;function z(){let e=o(B,this);if(0===e)return 0;const t=o(F,this),n=E();t.push(n);const r=n-1e3;for(;t.length&&t[0]<r;)t.shift();return t.length<e?0:t[0]+1e3-n}async function W(e){const t=o(D,this).cacheTimeout;if(t<0){const t=a(U,this,z).call(this);return t&&await b(t),await this._perform(e)}const n=x(e.method,e);let r=o(I,this).get(n);if(!r){const i=a(U,this,z).call(this);i&&await b(i),r=this._perform(e),o(I,this).set(n,r),setTimeout((()=>{o(I,this).get(n)===r&&o(I,this).delete(n)}),t)}return await r}async function H(e,t,n){(0,d.assert)(n<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});const r=(0,g.copyRequest)(e);try{const e=a(U,this,z).call(this);return e&&await b(e),(0,d.hexlify)(await this._perform({method:"call",transaction:r,blockTag:t}))}catch(i){if(!this.disableCcipRead&&(0,d.isCallException)(i)&&i.data&&n>=0&&"latest"===t&&null!=r.to&&"0x556f1830"===(0,d.dataSlice)(i.data,0,4)){const e=i.data,o=await(0,c.resolveAddress)(r.to,this);let s;try{s=function(e){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,d.assert)((0,d.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=(0,d.dataSlice)(e,0,32);(0,d.assert)((0,d.dataSlice)(n,0,12)===(0,d.dataSlice)(te,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,d.dataSlice)(n,12);try{const n=[],r=(0,d.getNumber)((0,d.dataSlice)(e,32,64)),i=(0,d.getNumber)((0,d.dataSlice)(e,r,r+32)),a=(0,d.dataSlice)(e,r+32);for(let e=0;e<i;e++){const t=$(a,32*e);if(null==t)throw new Error("abort");n.push(t)}t.urls=n}catch(i){(0,d.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const n=K(e,64);if(null==n)throw new Error("abort");t.calldata=n}catch(i){(0,d.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,d.assert)((0,d.dataSlice)(e,100,128)===(0,d.dataSlice)(te,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,d.dataSlice)(e,96,100);try{const n=K(e,128);if(null==n)throw new Error("abort");t.extraData=n}catch(i){(0,d.assert)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}
2return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map((e=>t[e])),t}((0,d.dataSlice)(i.data,4))}catch(i){(0,d.assert)(!1,i.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:r,info:{data:e}})}(0,d.assert)(s.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:e,reason:"OffchainLookup",transaction:r,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:s.errorArgs}});const l=await this.ccipReadFetch(r,s.calldata,s.urls);(0,d.assert)(null!=l,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:r,info:{data:i.data,errorArgs:s.errorArgs}});const u={to:o,data:(0,d.concat)([s.selector,ee([l,s.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const e=await a(U,this,H).call(this,u,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:e}),e}catch(i){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:i}),i}}throw i}}async function V(e){const{value:t}=await(0,d.resolveProperties)({network:this.getNetwork(),value:e});return t}async function G(e,t,n){let r=this._getAddress(t),i=this._getBlockTag(n);return"string"===typeof r&&"string"===typeof i||([r,i]=await Promise.all([r,i])),await a(U,this,V).call(this,a(U,this,W).call(this,Object.assign(e,{address:r,blockTag:i})))}async function Y(e,t){if((0,d.isHexString)(e,32))return await a(U,this,W).call(this,{method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return"string"!==typeof n&&(n=await n),await a(U,this,W).call(this,{method:"getBlock",blockTag:n,includeTransactions:t})}async function q(e,t){let n=await A(e,this);return"event"===n.type&&t&&t.length>0&&!0===t[0].removed&&(n=await A({orphan:"drop-log",log:t[0]},this)),o(P,this).get(n.tag)||null}async function X(e){const t=await A(e,this),n=t.tag;let r=o(P,this).get(n);if(!r){r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},o(P,this).set(n,r)}return r}function $(e,t){try{const n=K(e,t);if(n)return(0,d.toUtf8String)(n)}catch(n){}return null}function K(e,t){if("0x"===e)return null;try{const n=(0,d.getNumber)((0,d.dataSlice)(e,t,t+32)),r=(0,d.getNumber)((0,d.dataSlice)(e,n,n+32));return(0,d.dataSlice)(e,n+32,n+32+r)}catch(n){}return null}function Q(e){const t=(0,d.toBeArray)(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function J(e){if(e.length%32===0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}t.AbstractProvider=class{constructor(e,t){if(r(this,U),i(this,P,void 0),i(this,C,void 0),i(this,O,void 0),i(this,T,void 0),i(this,N,void 0),i(this,_,void 0),i(this,I,void 0),i(this,R,void 0),i(this,M,void 0),i(this,j,void 0),i(this,L,void 0),i(this,B,void 0),i(this,F,void 0),i(this,D,void 0),s(D,this,Object.assign({},S,t||{})),"any"===e)s(_,this,!0),s(N,this,null);else if(e){const t=p.Network.from(e);s(_,this,!1),s(N,this,Promise.resolve(t)),setTimeout((()=>{this.emit("network",t,null)}),0)}else s(_,this,!1),s(N,this,null);s(R,this,-1),s(I,this,new Map),s(P,this,new Map),s(C,this,new Map),s(O,this,null),s(T,this,!1),s(M,this,1),s(j,this,new Map),s(L,this,!1),s(B,this,0),s(F,this,[])}get _requestRate(){const e=o(B,this);return 0==e?null:e}set _requestRate(e){(null==e||e<0)&&(e=0),s(B,this,(0,d.getNumber)(e))}get pollingInterval(){return o(D,this).pollingInterval}get provider(){return this}get plugins(){return Array.from(o(C,this).values())}attachPlugin(e){if(o(C,this).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return o(C,this).set(e.name,e.connect(this)),this}getPlugin(e){return o(C,this).get(e)||null}get disableCcipRead(){return o(L,this)}set disableCcipRead(e){s(L,this,!!e)}async ccipReadFetch(e,t,n){if(this.disableCcipRead||0===n.length||null==e.to)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let s=0;s<n.length;s++){const t=n[s],l=t.replace("{sender}",r).replace("{data}",i),c=new d.FetchRequest(l);-1===t.indexOf("{data}")&&(c.body={data:i,sender:r}
2),this.emit("debug",{action:"sendCcipReadFetchRequest",request:c,index:s,urls:n});let u,h="unknown error";try{u=await c.send()}catch(o){a.push(o.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:c,result:{error:o}});continue}try{const e=u.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:c,result:e}),e.data;e.message&&(h=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:c,result:e})}catch(o){}(0,d.assert)(u.statusCode<400||u.statusCode>=500,`response not found during CCIP fetch: ${h}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:t,errorMessage:h}}),a.push(h)}(0,d.assert)(!1,`error encountered during CCIP fetch: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new g.Block((0,f.formatBlock)(e),this)}_wrapLog(e,t){return new g.Log((0,f.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new g.TransactionReceipt((0,f.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new g.TransactionResponse((0,f.formatTransactionResponse)(e),this)}_detectNetwork(){(0,d.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,d.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=(0,d.getNumber)(await a(U,this,W).call(this,{method:"getBlockNumber"}),"%response");return o(R,this)>=0&&s(R,this,e),e}_getAddress(e){return(0,c.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,d.isHexString)(e)?(0,d.isHexString)(e,32)?e:(0,d.toQuantity)(e):("bigint"===typeof e&&(e=(0,d.getNumber)(e,"blockTag")),"number"===typeof e?e>=0?(0,d.toQuantity)(e):o(R,this)>=0?(0,d.toQuantity)(o(R,this)+e):this.getBlockNumber().then((t=>(0,d.toQuantity)(t+e))):void(0,d.assertArgument)(!1,"invalid blockTag","blockTag",e))}_getFilter(e){const t=(e.topics||[]).map((e=>null==e?null:Array.isArray(e)?k(e.map((e=>e.toLowerCase()))):e.toLowerCase())),n="blockHash"in e?e.blockHash:void 0,r=(e,r,i
2)=>{let a;switch(e.length){case 0:break;case 1:a=e[0];break;default:e.sort(),a=e}if(n&&(null!=r||null!=i))throw new Error("invalid filter");const o={};return a&&(o.address=a),t.length&&(o.topics=t),r&&(o.fromBlock=r),i&&(o.toBlock=i),n&&(o.blockHash=n),o};let i,a,o=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)o.push(this._getAddress(s));else o.push(this._getAddress(e.address));return"fromBlock"in e&&(i=this._getBlockTag(e.fromBlock)),"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),o.filter((e=>"string"!==typeof e)).length||null!=i&&"string"!==typeof i||null!=a&&"string"!==typeof a?Promise.all([Promise.all(o),i,a]).then((e=>r(e[0],e[1],e[2]))):r(o,i,a)}_getTransactionRequest(e){const t=(0,g.copyRequest)(e),n=[];if(["to","from"].forEach((e=>{if(null==t[e])return;const r=(0,c.resolveAddress)(t[e],this);v(r)?n.push(async function(){t[e]=await r}()):t[e]=r})),null!=t.blockTag){const e=this._getBlockTag(t.blockTag);v(e)?n.push(async function(){t.blockTag=await e}()):t.blockTag=e}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(null==o(N,this)){const e=(async()=>{try{const e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw o(N,this)===e&&s(N,this,null),t}})();return s(N,this,e),(await e).clone()}const e=o(N,this),[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(o(_,this)?(this.emit("network",n,t),o(N,this)===e&&s(N,this,Promise.resolve(n))):(0,d.assert)(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:t,gasPrice:n,priorityFee:r}=await(0,d.resolveProperties)({_block:a(U,this,Y).call(this,"latest",!1),gasPrice:(async()=>{try{const e=await a(U,this,W).call(this,{method:"getGasPrice"});return(0,d.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{const e=await a(U,this,W).call(this,{method:"getPriorityFee"});return(0,d.getBigInt)(e,"%response")}catch(e){}return null})()});let i=null,o=null;const s=this._wrapBlock(t,e);return s&&s.baseFeePerGas&&(o=null!=r?r:BigInt("1000000000"),i=s.baseFeePerGas*y+o),new g.FeeData(n,i,o)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const e=new d.FetchRequest(n.url),r=await n.processFunc(t,this,e);return new g.FeeData(r.gasPrice,r.maxFeePerGas,r.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return v(t)&&(t=await t),(0,d.getBigInt)(await a(U,this,W).call(this,{method:"estimateGas",transaction:t}),"%response")}async call(e){const{tx:t,blockTag:n}=await(0,d.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await a(U,this,V).call(this,a(U,this,H).call(this,t,n,e.enableCcipRead?0:-1))}async getBalance(e,t){return(0,d.getBigInt)(await a(U,this,G).call(this,{method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,d.getNumber)(await a(U,this,G).call(this,{method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,d.hexlify)(await a(U,this,G).call(this,{method:"getCode"},e,t))}async getStorage(e,t,n){const r=(0,d.getBigInt)(t,"position");return(0,d.hexlify)(await a(U,this,G).call(this,{method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await(0,d.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=u.Transaction.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,r).replaceableTransaction(t)}async getBlock(e,t){const{network:n,params:r}=await(0,d.resolveProperties)({network:this.getNetwork(),params:a(U,this,Y).call(this,e,!!t)});return null==r?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await(0,d.resolveProperties)({network:this.getNetwork(),params:a(U,this,W).call(this,{method:"getTransaction",hash:e})});return null==n?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await(0,d.resolveProperties)({network:this.getNetwork(),params:a(U,this,W).call(this,{method:"getTransactionReceipt",hash:e})});if(null==n)return null;if(null==n.gasPrice&&null==n.effectiveGasPrice){const t=await a(U,this,W).call(this,{method:"getTransaction",hash:e});if(null==t)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await(0,d.resolveProperties)({network:this.getNetwork(),result:a(U,this,W).call(this,{method:"getTransactionResult",hash:e})});return null==t?null:(0,d.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);v(t)&&(t=await t);const{network:n,params:r}=await(0,d.resolveProperties)({network:this.getNetwork(),params:a(U,this,W).call(this,{method:"getLogs",filter:t})});return r.map((e=>this._wrapLog(e,n)))}_getProvider(e){(0,d.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await h.EnsResolver.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e,t){const n=await this.getResolver(e);return n?await n.getAddress(t):null}async lookupAddress(e,t){return await h.EnsResolver.lookupAddress(this,e,t)}async waitForTransaction(e,t,n){const r=null!=t?t:1;return 0===r?this.getTransactionReceipt(e):new Promise((async(t,i)=>{let a=null;const o=async n=>{try{const i=await this.getTransactionReceipt(e);
2if(null!=i&&n-i.blockNumber+1>=r)return t(i),void(a&&(clearTimeout(a),a=null))}catch(i){console.log("EEE",i)}this.once("block",o)};null!=n&&(a=setTimeout((()=>{null!=a&&(a=null,this.off("block",o),i((0,d.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),n)),o(await this.getBlockNumber())}))}async waitForBlock(e){(0,d.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=o(j,this).get(e);t&&(t.timer&&clearTimeout(t.timer),o(j,this).delete(e))}_setTimeout(e,t){var n,r;null==t&&(t=0);const i=(s(M,this,(n=o(M,this),r=n++,n)),r),a=()=>{o(j,this).delete(i),e()};if(this.paused)o(j,this).set(i,{timer:null,func:a,time:t});else{const e=setTimeout(a,t);o(j,this).set(i,{timer:e,func:a,time:E()})}return i}_forEachSubscriber(e){for(const t of o(P,this).values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new w(e.type);case"block":{const e=new m.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new m.PollingBlockTagSubscriber(this,e.type);case"event":return new m.PollingEventSubscriber(this,e.filter);case"transaction":return new m.PollingTransactionSubscriber(this,e.hash);case"orphan":return new m.PollingOrphanSubscriber(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of o(P,this).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),null!=o(O,this)&&t.pause(o(O,this));break}}async on(e,t){const n=await a(U,this,X).call(this,e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,null!=o(O,this)&&n.subscriber.pause(o(O,this))),this}async once(e,t){const n=await a(U,this,X).call(this,e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,null!=o(O,this)&&n.subscriber.pause(o(O,this))),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=await a(U,this,q).call(this,e,n);if(!i||0===i.listeners.length)return!1;const s=i.listeners.length;return i.listeners=i.listeners.filter((t=>{let{listener:r,once:i}=t;const a=new d.EventPayload(this,i?null:r,e);try{r.call(this,...n,a)}catch(o){}return!i})),0===i.listeners.length&&(i.started&&i.subscriber.stop(),o(P,this).delete(i.tag)),s>0}async listenerCount(e){if(e){const t=await a(U,this,q).call(this,e);return t?t.listeners.length:0}let t=0;for(const{listeners:n}of o(P,this).values())t+=n.length;return t}async listeners(e){if(e){const t=await a(U,this,q).call(this,e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}let t=[];for(const{listeners:n}of o(P,this).values())t=t.concat(n.map((e=>{let{listener:t}=e;return t})));return t}async off(e,t){const n=await a(U,this,q).call(this,e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return t&&0!==n.listeners.length||(n.started&&n.subscriber.stop(),o(P,this).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await a(U,this,X).call(this,e);n&&r.stop(),o(P,this).delete(t)}else for(const[t,{started:n,subscriber:r}]of o(P,this))n&&r.stop(),o(P,this).delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return o(T,this)}destroy(){this.removeAllListeners();for(const e of o(j,this).keys())this._clearTimeout(e);s(T,this,!0)}get paused(){return null!=o(O,this)}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(s(R,this,-1),null!=o(O,this)){if(o(O,this)==!!e)return;(0,d.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((t=>t.pause(e))),s(O,this,!!e);for(const t of o(j,this).values())t.timer&&clearTimeout(t.timer),t.time=E()-t.time}resume(){if(null!=o(O,this)){this._forEachSubscriber((e=>e.resume())),s(O,this,null);for(const e of o(j,this).values()){let t=e.time;t<0&&(t=0),e.time=E(),setTimeout(e.func,t)}}}};const Z=new Uint8Array([]);function ee(e){const t=[];let n=0;for(let r=0;r<e.length;r++)t.push(Z),n+=32;for(let r=0;r<e.length;r++){const i=(0,d.getBytes)(e[r]);t[r]=Q(n),t.push(Q(i.length)),t.push(J(i)),n+=32+32*Math.ceil(i.length/32)}return(0,d.concat)(t)}const te="0x0000000000000000000000000000000000000000000000000000000000000000"}
2,64802:(e,t,n)=>{"use strict";var r=n(24433);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},65250:(e,t,n)=>{"use strict";var r,i=n(93312).default,a=n(43693).default,o=n(81756).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;const s=n(69687),l=n(89544),c=n(20022),u=n(24839),d=n(40387),h=n(15254),f=n(4559),p=n(77134);t.defaultPath="m/44'/60'/0'/0/0";const g=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),m=2147483648,y=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function b(e,t){let n="";for(;e;)n="0123456789abcdef"[e%16]+n,e=Math.trunc(e/16);for(;n.length<2*t;)n="0"+n;return"0x"+n}function v(e){const t=(0,u.getBytes)(e),n=(0,u.dataSlice)((0,s.sha256)((0,s.sha256)(t)),0,4),r=(0,u.concat)([t,n]);return(0,u.encodeBase58)(r)}const x={};function w(e,t,n,r){const i=new Uint8Array(37);e&m?((0,u.assert)(null!=r,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),i.set((0,u.getBytes)(r),1)):i.set((0,u.getBytes)(n));for(let o=24;o>=0;o-=8)i[33+(o>>3)]=e>>24-o&255;const a=(0,u.getBytes)((0,s.computeHmac)("sha512",t,i));return{IL:a.slice(0,32),IR:a.slice(32)}}function k(e,t){const n=t.split("/");(0,u.assertArgument)(n.length>0,"invalid path","path",t),"m"===n[0]&&((0,u.assertArgument)(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),n.shift());let r=e;for(let i=0;i<n.length;i++){const e=n[i];if(e.match(/^[0-9]+'$/)){const t=parseInt(e.substring(0,e.length-1));(0,u.assertArgument)(t<m,"invalid path index",`path[${i}]`,e),r=r.deriveChild(m+t)}else if(e.match(/^[0-9]+$/)){const t=parseInt(e);(0,u.assertArgument)(t<m,"invalid path index",`path[${i}]`,e),r=r.deriveChild(t)}else(0,u.assertArgument)(!1,"invalid path component",`path[${i}]`,e)}return r}var A=new WeakSet;class E extends h.BaseWallet{constructor(e,t,n,r,o,l,c,d,h){super(t,h),i(this,A),a(this,"publicKey",void 0),a(this,"fingerprint",void 0),a(this,"parentFingerprint",void 0),a(this,"mnemonic",void 0),a(this,"chainCode",void 0),a(this,"path",void 0),a(this,"index",void 0),a(this,"depth",void 0),(0,u.assertPrivate)(e,x,"HDNodeWallet"),(0,u.defineProperties)(this,{publicKey:t.compressedPublicKey});const f=(0,u.dataSlice)((0,s.ripemd160)((0,s.sha256)(this.publicKey)),0,4);(0,u.defineProperties)(this,{parentFingerprint:n,fingerprint:f,chainCode:r,path:o,index:l,depth:c}),(0,u.defineProperties)(this,{mnemonic:d})}connect(e){return new E(x,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}async encrypt(e,t){return await(0,p.encryptKeystoreJson)(o(A,this,S).call(this),e,{progressCallback:t})}encryptSync(e){return(0,p.encryptKeystoreJsonSync)(o(A,this,S).call(this),e)}get extendedKey(){return(0,u.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),v((0,u.concat)(["0x0488ADE4",b(this.depth,1),this.parentFingerprint,b(this.index,4),this.chainCode,(0,u.concat)(["0x00",this.privateKey])]))}hasPath(){return null!=this.path}neuter(){return new C(x,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const t=(0,u.getNumber)(e,"index");(0,u.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(2147483647&t),t&m&&(n+="'"));const{IR:r,IL:i}=w(t,this.chainCode,this.publicKey,this.privateKey),a=new s.SigningKey((0,u.toBeHex)(((0,u.toBigInt)(i)+BigInt(this.privateKey))%y,32));return new E(x,a,this.fingerprint,(0,u.hexlify)(r),n,t,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return k(this,e)}static fromExtendedKey(e){const t=(0,u.toBeArray)((0,u.decodeBase58)(e));(0,u.assertArgument)(82===t.length||v(t.slice(0,78))===e,"invali
2d extended key","extendedKey","[ REDACTED ]");const n=t[4],r=(0,u.hexlify)(t.slice(5,9)),i=parseInt((0,u.hexlify)(t.slice(9,13)).substring(2),16),a=(0,u.hexlify)(t.slice(13,45)),o=t.slice(45,78);switch((0,u.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const e=(0,u.hexlify)(o);return new C(x,(0,c.computeAddress)(e),e,r,a,null,i,n,null)}case"0x0488ade4":case"0x04358394 ":if(0!==o[0])break;return new E(x,new s.SigningKey(o.slice(1)),r,a,null,i,n,null,null)}(0,u.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,n,r){null==e&&(e=""),null==n&&(n=t.defaultPath),null==r&&(r=d.LangEn.wordlist());const i=f.Mnemonic.fromEntropy((0,s.randomBytes)(16),e,r);return P.call(E,i.computeSeed(),i).derivePath(n)}static fromMnemonic(e,n){return n||(n=t.defaultPath),P.call(E,e.computeSeed(),e).derivePath(n)}static fromPhrase(e,n,r,i){null==n&&(n=""),null==r&&(r=t.defaultPath),null==i&&(i=d.LangEn.wordlist());const a=f.Mnemonic.fromPhrase(e,n,i);return P.call(E,a.computeSeed(),a).derivePath(r)}static fromSeed(e){return P.call(E,e,null)}}function S(){const e={address:this.address,privateKey:this.privateKey},t=this.mnemonic;return this.path&&t&&"en"===t.wordlist.locale&&""===t.password&&(e.mnemonic={path:this.path,locale:"en",entropy:t.entropy}),e}function P(e,t){(0,u.assertArgument)((0,u.isBytesLike)(e),"invalid seed","seed","[REDACTED]");const n=(0,u.getBytes)(e,"seed");(0,u.assertArgument)(n.length>=16&&n.length<=64,"invalid seed","seed","[REDACTED]");const i=(0,u.getBytes)((0,s.computeHmac)("sha512",g,n)),a=new s.SigningKey((0,u.hexlify)(i.slice(0,32)));return new r(x,a,"0x00000000",(0,u.hexlify)(i.slice(32)),"m",0,0,t,null)}r=E,t.HDNodeWallet=E;class C extends l.VoidSigner{constructor(e,t,n,r,i,o,l,c,d){super(t,d),a(this,"publicKey",void 0),a(this,"fingerprint",void 0),a(this,"parentFingerprint",void 0),a(this,"chainCode",void 0),a(this,"path",void 0),a(this,"index",void 0),a(this,"depth",void 0),(0,u.assertPrivate)(e,x,"HDNodeVoidWallet"),(0,u.defineProperties)(this,{publicKey:n});const h=(0,u.dataSlice)((0,s.ripemd160)((0,s.sha256)(n)),0,4);(0,u.defineProperties)(this,{publicKey:n,fingerprint:h,parentFingerprint:r,chainCode:i,path:o,index:l,depth:c})}connect(e){return new C(x,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return(0,u.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),v((0,u.concat)(["0x0488B21E",b(this.depth,1),this.parentFingerprint,b(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){const t=(0,u.getNumber)(e,"index");(0,u.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(2147483647&t),t&m&&(n+="'"));const{IR:r,IL:i}=w(t,this.chainCode,this.publicKey,null),a=s.SigningKey.addPoints(i,this.publicKey,!0),o=(0,c.computeAddress)(a);return new C(x,o,a,this.fingerprint,(0,u.hexlify)(r),n,t,this.depth+1,this.provider)}derivePath(e){return k(this,e)}}t.HDNodeVoidWallet=C,t.getAccountPath=function(e){const t=(0,u.getNumber)(e,"index");return(0,u.assertArgument)(t>=0&&t<m,"invalid account index","index",t),`m/44'/60'/${t}'/0/0`},t.getIndexedAccountPath=function(e){const t=(0,u.getNumber)(e,"index");return(0,u.assertArgument)(t>=0&&t<m,"invalid account index","index",t),`m/44'/60'/0'/0/${t}`}},65270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0;t.decodeBits=function(e,t){const n=(1<<e)-1,r=[];let i=0,a=0,o=0;for(let s=0;s<t.length;s++)for(i=i<<6|")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".indexOf(t[s]),a+=6;a>=e;){const t=i>>a-e;i&=(1<<a-e)-1,a-=e,0===t?o+=n:(r.push(t+o),o=0)}return r}},65328:(e,t,n)=>{"use strict";var r=n(54039);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;
2var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},65336:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},65355:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case s:case o:case h:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case p:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return y(e)===c}},65664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const r=n(85125),i=n(50638),a=BigInt(0),o=BigInt(1);t.wNAF=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,i=t;for(;n>a;)n&o&&(r=r.add(i)),i=i.double(),n>>=o;return r},precomputeWindow(e,t){const{windows:n,windowSize:i}=r(t),a=[];let o=e,s=o;for(let r=0;r<n;r++){s=o,a.push(s);for(let e=1;e<i;e++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,i,a){const{windows:s,windowSize:l}=r(t);let c=e.ZERO,u=e.BASE;const d=BigInt(2**t-1),h=2**t,f=BigInt(t);for(let e=0;e<s;e++){const t=e*l;let r=Number(a&d);a>>=f,r>l&&(r-=h,a+=o);const s=t,p=t+Math.abs(r)-1,g=e%2!==0,m=r<0;0===r?u=u.add(n(g,i[s])):c=c.add(n(m,i[p]))}return{p:c,f:u}},wNAFCached(e,t,n,r){const i=e._WINDOW_SIZE||1;let a=t.get(e);return a||(a=this.precomputeWindow(e,i),1!==i&&t.set(e,r(a))),this.wNAF(i,a,n)}}},t.validateBasic=function(e){return(0,r.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},65724:(e,t,n)=>{var r=n(37405),i=n(37462),a=n(97840);e.exports=function(e){return a(e)?r(e):i(e)}},65891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var r=n(39923);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return r.ZeroAddress}});var i=n(96867);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return i.ZeroHash}});var a=n(39897);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return a.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return a.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return a.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return a.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return a.MaxInt256}});var o=n(52745);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}})},65916:(e,t,n)=>{var r=n(12279),i=n(50184),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},66104:(e,t,n)=>{"use strict";var r,i=n(93312).default,a=n(42459).default,o=n(43693).default,s=n(81756).default,l=n(16668).default,c=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const u=n(85339),d=n(98976),h=n(1736),f=n(10986),p=BigInt(-1),g=BigInt(0),m=
2BigInt(1),y=BigInt(5),b={};let v="0000";for(;v.length<80;)v+=v;function x(e){let t=v;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function w(e,t,n){const r=BigInt(t.width);if(t.signed){const t=m<<r-m;(0,d.assert)(null==n||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=e>g?(0,h.fromTwos)((0,h.mask)(e,r),r):-(0,h.fromTwos)((0,h.mask)(-e,r),r)}else{const t=m<<r;(0,d.assert)(null==n||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=(e%t+t)%t&t-m}return e}function k(e){"number"===typeof e&&(e=`fixed128x${e}`);let t=!0,n=128,r=18;if("string"===typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,d.assertArgument)(i,"invalid fixed format","format",e),t="u"!==i[1],n=parseInt(i[2]),r=parseInt(i[3])}else if(e){const i=e,a=(e,t,n)=>null==i[e]?n:((0,d.assertArgument)(typeof i[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,i[e]),i[e]);t=a("signed","boolean",t),n=a("width","number",n),r=a("decimals","number",r)}(0,d.assertArgument)(n%8===0,"invalid FixedNumber width (not byte aligned)","format.width",n),(0,d.assertArgument)(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r);return{signed:t,width:n,decimals:r,name:(t?"":"u")+"fixed"+String(n)+"x"+String(r)}}var A=new WeakMap,E=new WeakMap,S=new WeakMap,P=new WeakSet;class C{constructor(e,t,n){i(this,P),o(this,"format",void 0),a(this,A,void 0),a(this,E,void 0),a(this,S,void 0),o(this,"_value",void 0),(0,d.assertPrivate)(e,b,"FixedNumber"),c(E,this,t),c(A,this,n);const r=function(e,t){let n="";e<g&&(n="-",e*=p);let r=e.toString();if(0===t)return n+r;for(;r.length<=t;)r=v+r;const i=r.length-t;for(r=r.substring(0,i)+"."+r.substring(i);"0"===r[0]&&"."!==r[1];)r=r.substring(1);for(;"0"===r[r.length-1]&&"."!==r[r.length-2];)r=r.substring(0,r.length-1);return n+r}(t,n.decimals);(0,f.defineProperties)(this,{format:n.name,_value:r}),c(S,this,x(n.decimals))}get signed(){return l(A,this).signed}get width(){return l(A,this).width}get decimals(){return l(A,this).decimals}get value(){return l(E,this)}addUnsafe(e){return s(P,this,N).call(this,e)}add(e){return s(P,this,N).call(this,e,"add")}subUnsafe(e){return s(P,this,_).call(this,e)}sub(e){return s(P,this,_).call(this,e,"sub")}mulUnsafe(e){return s(P,this,I).call(this,e)}mul(e){return s(P,this,I).call(this,e,"mul")}mulSignal(e){s(P,this,O).call(this,e);const t=l(E,this)*l(E,e);return(0,d.assert)(t%l(S,this)===g,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),s(P,this,T).call(this,t/l(S,this),"mulSignal")}divUnsafe(e){return s(P,this,R).call(this,e)}div(e){return s(P,this,R).call(this,e,"div")}divSignal(e){(0,d.assert)(l(E,e)!==g,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),s(P,this,O).call(this,e);const t=l(E,this)*l(S,this);return(0,d.assert)(t%l(E,e)===g,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),s(P,this,T).call(this,t/l(E,e),"divSignal")}cmp(e){let t=this.value,n=e.value;const r=this.decimals-e.decimals;return r>0?n*=x(r):r<0&&(t*=x(-r)),t<n?-1:t>n?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=l(E,this);return l(E,this)<g&&(e-=l(S,this)-m),e=l(E,this)/l(S,this)*l(S,this),s(P,this,T).call(this,e,"floor")}ceiling(){let e=l(E,this);return l(E,this)>g&&(e+=l(S,this)-m),e=l(E,this)/l(S,this)*l(S,this),s(P,this,T).call(this,e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,n=y*x(t-1);let r=this.value+n;const i=x(t);return r=r/i*i,w(r,l(A,this),"round"),new C(b,r,l(A,this))}isZero(){return l(E,this)===g}isNegative(){return l(E,this)<g}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return C.fromString(this.toString(),e)}static fromValue(e,t,n){const r=null==t?0:(0,h.getNumber)(t),i=k(n);let a=(0,h.getBigInt)(e,"value");const o=r-i.decimals;if(o>0){const t=x(o);(0,d.assert)(a%t===g,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),a/=t}else o<0&&(a*=x(-o));return w(a,i,"fromValue"),new C(b,a,i)}static fromString(e,t){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,d.assertArgument)(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const r=k(t);let i=n[2]||"0",a=n[3]||"";for(;a.length<r.decimals;)a+=v;(0,d.assert)(a.substring(r.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),a=a.substring(0,r.decimals);const o=BigInt(n[1]+i+a);return w(o,r,"fromString"),new C(b,o,r)}static fromBytes(e,t){let n=(0,h.toBigInt)((0,u.getBytes)(e,"value"));const r=k(t);return r.signed&&(n=(0,h.fromTwos)(n,r.width)),w(n,r,"fromBytes"),new C(b,n,r)}}function O(e){(0,d.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}function T(e,t){return e=w(e,l(A,this),t),new r(b,e,l(A,this))}function N(e,t){return s(P,this,O).call(this,e),s(P,this,T).call(this,l(E,this)+l(E,e),t)}function _(e,t){return s(P,this,O).call(this,e),s(P,this,T).call(this,l(E,this)-l(E,e),t)}function I(e,t){return s(P,this,O).call(this,e),s(P,this,T).call(this,l(E,this)*l(E,e)/l(S,this),t)}function R(e,t){return(0,d.assert)(l(E,e)!==g,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),s(P,this,O).call(this,e),s(P,this,T).call(this,l(E,this)*l(S,this)/l(E,e),t)}r=C,t.FixedNumber=C},66115:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const r=n(80062),i=n(50582),a=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=Uint8Array.from({length:16},((e,t)=>t));let s=[o],l=[o.map((e=>(9*e+5)%16))];for(let b=0;b<4;b++)for(let e of[s,l])e.push(e[b].map((e=>a[e])));const c=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),u=s.map(((e,t)=>e.map((e=>c[t][e])))),d=l.map(((e,t)=>e.map((e=>c[t][e])))),h=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),f=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),p=(e,t)=>e<<t|e>>>32-t;function g(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const m=new Uint32Array(16);class y extends r.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:i}=this;return[e,t,n,r,i]}set(e,t,n,r,i){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|i}process(e,t){for(let s=0;s<16;s++,t+=4)m[s]=e.getUint32(t,!0);let n=0|this.h0,r=n,i=0|this.h1,a=i,o=0|this.h2,c=o,y=0|this.h3,b=y,v=0|this.h4,x=v;for(let w=0;w<5;w++){const e=4-w,t=h[w],k=f[w],A=s[w],E=l[w],S=u[w],P=d[w];for(let r=0;r<16;r++){const e=p(n+g(w,i,o,y)+m[A[r]]+t,S[r])+v|0;n=v,v=y,y=0|p(o,10),o=i,i=e}for(let n=0;n<16;n++){const t=p(r+g(e,a,c,b)+m[E[n]]+k,P[n])+x|0;r=x,x=b,b=0|p(c,10),c=a,a=t}}this.set(this.h1+o+b|0,this.h2+y+x|0,this.h3+v+r|0,this.h4+n+a|0,this.h0+i+c|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=y,t.ripemd160=(0,i.wrapConstructor)((()=>new y))},66455:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(21273),i=n(84982);const a=e=>(0,r.di)((0,i.k)(e),0,4)},66630:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;const r=n(24839),i=" !#$%&'()*+,-./<=>?@[]^_`{|}~",a=/^[a-z]*$/i;function o(e,t){let n=97;return e.reduce(((e,r)=>(r===t?n++:r.match(a)?e.push(String.fromCharCode(n)+r):(n=97,e.push(r)),e)),[])}function s(e,t){for(let a=28;a>=0;a--)e=e.split(i[a]).join(t.substring(2*a,2*a+2));const n=[],r=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,((e,t,r,i)=>{if(r)for(let a=parseInt(r);a>=0;a--)n.push(";");else n.push(t.toLowerCase());return""}));if(r)throw new Error(`leftovers: ${JSON.stringify(r)}`);return o(o(n,";"),":")}t.decode=s,t.decodeOwl=function(e){return(0,r.assertArgument)("0"===e[0],"unsupported auwl data","data",e),s(e.substring(59),e.substring(1,59))}},66643:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;t.IWatch=class{}},66689:(e,t,n)=>{var r=n(16212),i=n(21536),a=n(10078),o=n(54008);e.exports=function(e){return function(t){t=o(t);var n=i(t)?a(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},66814:function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=11)}([function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(14)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(16)()}).call(t,n(2))},function(t,n){t.exports=e},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.reduce((function(e,t){return e+t}))/e.length}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,a,o,s,l){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,a,o,s,l],d=0;(c=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(2))},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Math.min.apply(Math,e)}},function(e,t,n){"use strict";(function(t){var r=n(4);if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!==typeof console&&console.error(a);try{throw new Error(a)}catch(o){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];i.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(2))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Math.max.apply(Math,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(3),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=(0,a.default)(e),n=e.map((function(e){return Math.pow(e-t,2)})),r=(0,a.default)(n);return Math.sqrt(r)}},function(e,t,n){e.exports=n(12)},function(e,t,n){"use strict";e.exports=n(13)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SparklinesText=t.SparklinesNormalBand=t.SparklinesReferenceLine=t.SparklinesSpots=t.SparklinesBars=t.SparklinesCurve=t.SparklinesLine=t.Sparklines=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=g(n(0)),a=n(1),o=g(a),s=g(n(17)),l=g(n(18)),c=g(n(19)),u=g(n(20)),d=g(n(21)),h=g(n(22)),f=g(n(27)),p=g(n(28));function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.data,n=e.limit,r=e.width,i=e.height,a=e.svgWidth,s=e.svgHeight,l=e.preserveAspectRatio,c=e.margin,u=e.style,d=e.max,h=e.min;if(0===t.length)return null;var f=(0,p.default)({data:t,limit:n,width:r,height:i,margin:c,max:d,min:h}),g={style:u,viewBox:"0 0 "+r+" "+i,preserveAspectRatio:l};return a>0&&(g.width=a),s>0&&(g.height=s),o.default.createElement("svg",g,o.default.Children.map(this.props.children,(function(e){return o.default.cloneElement(e,{data:t,points:f,width:r,height:i,margin:c})}
2)))}}]),t}(a.PureComponent);m.propTypes={data:i.default.array,limit:i.default.number,width:i.default.number,height:i.default.number,svgWidth:i.default.number,svgHeight:i.default.number,preserveAspectRatio:i.default.string,margin:i.default.number,style:i.default.object,min:i.default.number,max:i.default.number,onMouseMove:i.default.func},m.defaultProps={data:[],width:240,height:60,preserveAspectRatio:"none",margin:2},t.Sparklines=m,t.SparklinesLine=l.default,t.SparklinesCurve=c.default,t.SparklinesBars=u.default,t.SparklinesSpots=d.default,t.SparklinesReferenceLine=h.default,t.SparklinesNormalBand=f.default,t.SparklinesText=s.default},function(e,t,n){"use strict";(function(t){var r=n(4),i=n(5),a=n(8),o=n(6),s=n(15);e.exports=function(e,n){var l="function"===typeof Symbol&&Symbol.iterator,c="<<anonymous>>",u={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:f(r.thatReturnsNull),arrayOf:function(e){return f((function(t,n,r,i,a){if("function"!==typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new h("Invalid "+i+" `"+a+"` of type `"+m(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,i,a+"["+l+"]",o);if(c instanceof Error)return c}return null}))},element:f((function(t,n,r,i,a){var o=t[n];return e(o)?null:new h("Invalid "+i+" `"+a+"` of type `"+m(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return f((function(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||c;return new h("Invalid "+i+" `"+a+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:c)+"` supplied to `"+r+"`, expected instance of `"+o+"`.")}var s;return null}))},node:f((function(e,t,n,r,i){return g(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,n,r,i,a){if("function"!==typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],l=m(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected an object.");for(var c in s)if(s.hasOwnProperty(c)){var u=e(s,c,r,i,a+"."+c,o);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?f((function(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(d(o,e[s]))return null;return new h("Invalid "+i+" `"+a+"` of value `"+o+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!==typeof i)return a(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",b(i),n),r.thatReturnsNull}return f((function(t,n,r,i,a){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,i,a,o))return null;return new h("Invalid "+i+" `"+a+"` supplied to `"+r+"`.")}))},shape:function(e){return f((function(t,n,r,i,a){var s=t[n],l=m(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var d=u(s,c,r,i,a+"."+c,o);if(d)return d}}return null}))}};function d(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function h(e){this.message=e,this.stack=""}function f(e){if("production"!==t.env.NODE_ENV)var r={},s=0;function l(l,u,d,f,p,g,m){if(f=f||c,g=g||d,m!==o)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var y=f+":"+d;!r[y]&&s<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,f),r[y]=!0,s++)}return null==u[d]?l?null===u[d]?new h("The "+p+" `"+g+"` is marked as required in `"+f+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(u,d,f,p,g)}var u=l.bind(null,!1);return u.isRequired=l.bind(null,!0),u}function p(e){return f((function(t,n,r,i,a,o){var s=t[n];return m(s)!==e?new h("Invalid "+i+" `"+a+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!g(r.value))return!1}else for(;!(r=i.next()).done;){var a=r.value;if(a&&!g(a[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function y(e){if("undefined"===typeof e||null===e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=s,u.PropTypes=u,u}}).call(t,n(2))},function(e,t,n){"use strict";
2(function(t){if("production"!==t.env.NODE_ENV)var r=n(5),i=n(8),a=n(6),o={};e.exports=function(e,n,s,l,c){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{r("function"===typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",s,u),d=e[u](n,u,l,s,null,a)}catch(f){d=f}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",s,u,typeof d),d instanceof Error&&!(d.message in o)){o[d.message]=!0;var h=c?c():"";i(!1,"Failed %s type: %s%s",s,d.message,null!=h?h:"")}}}}).call(t,n(2))},function(e,t,n){"use strict";var r=n(4),i=n(5),a=n(6);e.exports=function(){function e(e,t,n,r,o,s){s!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.point,n=e.text,r=e.fontSize,i=e.fontFamily,o=t.x,s=t.y;return a.default.createElement("g",null,a.default.createElement("text",{x:o,y:s,fontFamily:i||"Verdana",fontSize:r||10},n))}}]),t}(a.default.Component);s.propTypes={text:i.default.string,point:i.default.object,fontSize:i.default.number,fontFamily:i.default.string},s.defaultProps={text:"",point:{x:0,y:0}},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.data,n=e.points,r=(e.width,e.height),i=e.margin,o=e.color,s=e.style,l=e.onMouseMove,c=n.map((function(e){return[e.x,e.y]})).reduce((function(e,t){return e.concat(t)})),u=[n[n.length-1].x,r-i,i,r-i,i,n[0].y],d=c.concat(u),h={stroke:o||s.stroke||"slategray",strokeWidth:s.strokeWidth||"1",strokeLinejoin:s.strokeLinejoin||"round",strokeLinecap:s.strokeLinecap||"round",fill:"none"},f={stroke:s.stroke||"none",strokeWidth:"0",fillOpacity:s.fillOpacity||".1",fill:s.fill||o||"slategray",pointerEvents:"auto"},p=n.map((function(e,n){return a.default.createElement("circle",{key:n,cx:e.x,cy:e.y,r:2,style:f,onMouseEnter:function(r){return l("enter",t[n],e)},onClick:function(r){return l("click",t[n],e)}})}));return a.default.createElement("g",null,p,a.default.createElement("polyline",{points:d.join(" "),style:f}),a.default.createElement("polyline",{points:c.join(" "),style:h}))}}]),t}(a.default.Component);s.propTypes={color:i.default.string,style:i.default.object},s.defaultProps={style:{},onMouseMove:function(){}},t.default=s},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.points,n=(e.width,e.height),r=e.margin,i=e.color,o=e.style,s=e.divisor,l=void 0===s?.25:s,c=void 0,u=t.map((function(e){return function(e){var t=void 0;if(c){var n=(e.x-c.x)*l;t=["C",c.x+n,c.y,e.x-n,e.y,e.x,e.y]}else t=[e.x,e.y];return c=e,t}(e)})).reduce((function(e,t){return e.concat(t)})),d=["L"+t[t.length-1].x,n-r,r,n-r,r,t[0].y],h=u.concat(d),f={stroke:i||o.stroke||"slategray",strokeWidth:o.strokeWidth||"1",strokeLinejoin:o.strokeLinejoin||"round",strokeLinecap:o.strokeLinecap||"round",fill:"none"},p={stroke:o.stroke||"none",strokeWidth:"0",fillOpacity:o.fillOpacity||".1",fill:o.fill||i||"slategray"};return a.default.createElement("g",null,a.default.createElement("path",{d:"M"+h.join(" "),style:p}),a.default.createElement("path",{d:"M"+u.join(" "),style:f}))}}]),t}(a.default.Component);s.propTypes={color:i.default.string,style:i.default.object},s.defaultProps={style:{}},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(1));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.points,r=t.height,i=t.style,o=t.barWidth,s=t.margin,l=t.onMouseMove,c=1*(i&&i.strokeWidth||0),u=s?2*s:0,d=o||(n&&n.length>=2?Math.max(0,n[1].x-n[0].x-c-u):0);return a.default.createElement("g",{transform:"scale(1,-1)"},n.map((function(t,n){return a.default.createElement("rect",{key:n,x:t.x-(d+c)/2,y:-r,width:d,height:Math.max(0,r-t.y),style:i,onMouseMove:l&&l.bind(e,t)})})))}}]),t}(a.default.Component);s.propTypes={points:i.default.arrayOf(i.default.object),height:i.default.number,style:i.default.object,barWidth:i.default.number,margin:i.default.number,onMouseMove:i.default.func},s.defaultProps={style:{fill:"slategray"}},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=o(n(0)),a=o(n(1));
2function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"lastDirection",value:function(e){return Math.sign=Math.sign||function(e){return e>0?1:-1},e.length<2?0:Math.sign(e[e.length-2].y-e[e.length-1].y)}},{key:"render",value:function(){var e=this.props,t=e.points,n=(e.width,e.height,e.size),r=e.style,i=e.spotColors,o=a.default.createElement("circle",{cx:t[0].x,cy:t[0].y,r:n,style:r}),s=a.default.createElement("circle",{cx:t[t.length-1].x,cy:t[t.length-1].y,r:n,style:r||{fill:i[this.lastDirection(t)]}});return a.default.createElement("g",null,r&&o,s)}}]),t}(a.default.Component);s.propTypes={size:i.default.number,style:i.default.object,spotColors:i.default.object},s.defaultProps={size:2,spotColors:{"-1":"red",0:"black",1:"green"}},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(1)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(23));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.points,n=e.margin,r=e.type,i=e.style,s=e.value,l=t.map((function(e){return e.y})),c="custom"==r?s:o[r](l);return a.default.createElement("line",{x1:t[0].x,y1:c+n,x2:t[t.length-1].x,y2:c+n,style:i})}}]),t}(a.default.Component);l.propTypes={type:i.default.oneOf(["max","min","mean","avg","median","custom"]),value:i.default.number,style:i.default.object},l.defaultProps={type:"mean",style:{stroke:"red",strokeOpacity:.75,strokeDasharray:"2, 2"}},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.variance=t.stdev=t.median=t.midRange=t.avg=t.mean=t.max=t.min=void 0;var r=c(n(7)),i=c(n(3)),a=c(n(24)),o=c(n(25)),s=c(n(10)),l=c(n(26));function c(e){return e&&e.__esModule?e:{default:e}}t.min=r.default,t.max=r.default,t.mean=i.default,t.avg=i.default,t.midRange=a.default,t.median=o.default,t.stdev=s.default,t.variance=l.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(7)),i=a(n(9));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return(0,i.default)(e)-(0,r.default)(e)/2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.sort((function(e,t){return e-t}))[Math.floor(e.length/2)]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(3),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=(0,a.default)(e),n=e.map((function(e){return Math.pow(e-t,2)}));return(0,a.default)(n)}},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(0)),a=l(n(1)),o=l(n(3)),s=l(n(10));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.points,n=e.margin,r=e.style,i=t.map((function(e){return e.y})),l=(0,o.default)(i),c=(0,s.default)(i);return a.default.createElement("rect",{x:t[0].x,y:l-c+n,width:t[t.length-1].x-t[0].x,height:2*s.default,style:r})}}]),t}(a.default.Component);c.propTypes={style:i.default.object},c.defaultProps={style:{fill:"red",fillOpacity:.1}},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(7)),i=a(n(9));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.data,n=e.limit,a=e.width,o=void 0===a?1:a,s=e.height,l=void 0===s?1:s,c=e.margin,u=void 0===c?0:c,d=e.max,h=void 0===d?(0,i.default)(t):d,f=e.min,p=void 0===f?(0,r.default)(t):f,g=t.length;n&&n<g&&(t=t.slice(g-n));var m=(l-2*u)/(h-p||2),y=(o-2*u)/((n||g)-(g>1?1:0));return t.map((function(e,t){return{x:t*y+u,y:(h===p?1:h-e)*m+u}}))}}])},e.exports=r(n(9950))},66954:e=>{"use strict";e.exports=Object},67037:(e,t,n)=>{"use strict";var r=n(15116),i=Function.prototype,a=i.apply,o=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},67170:(e,t,n)=>{"use strict";var r=n(251),i=n(56412).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},67572:(e,t,n)=>{"use strict";var r=n(14146),i=n(42970).left,a=n(60954),o=n(78563);r({target:"Array",proto:!0,forced:!n(95877)&&o>79&&o<83||!a("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},67609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const r=n(85339);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return(0,r.getBytes)(t)},t.encodeBase64=function(e){const t=(0,r.getBytes)(e);let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n)}},67634:(e,t,n)=>{"use strict";n.d(t,{Vw:()=>f,Fc:()=>u,Id:()=>h,O8:()=>o,qv:()=>l,po:()=>g,Ow:()=>s,ZJ:()=>d,DH:()=>a,ld:()=>p});const r="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;var i=n(70399);function a(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function o(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function s(e,t){return e<<32-t|e>>>t}const l=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function c(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function u(e){for(let t=0;t<e.length;t++)e[t]=c(e[t])}"function"===typeof Uint8Array.from([]).toHex&&Uint8Array.fromHex;function d(e){return"string"===typeof e&&(e=function(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),(0,i.DO)(e),e}function h(){let e=0;for(let n=0;n<arguments.length;n++){const t=n<0||arguments.length<=n?void 0:arguments[n];(0,i.DO)(t),e+=t.length}const t=new Uint8Array(e);for(let n=0,r=0;n<arguments.length;n++){const e=n<0||arguments.length<=n?void 0:arguments[n];t.set(e,r),r+=e.length}return t}class f{clone(){return this._cloneInto()}}function p(e){const t=t=>e().update(d(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r&&"function"===typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"===typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}},67834:(e,t,n)=>{"use strict";var r=n(82599),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},67867:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;const r=n(24839),i=n(65270),a=n(66630);t.decodeOwlA=function(e,t){let n=(0,a.decodeOwl)(e).join(",");return t.split(/,/g).forEach((e=>{const a=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,r.assertArgument)(null!==a,"internal error parsing accents","accents",t);let o=0;const s=(0,i.decodeBits)(parseInt(a[3]),a[4]),l=parseInt(a[2]),c=new RegExp(`([${a[1]}])`,"g");n=n.replace(c,((e,t)=>(0===--s[o]&&(t=String.fromCharCode(t.charCodeAt(0),l),o++),t)))})),n.split(",")}},67935:(e,t,n)=>{"use strict";n.d(t,{EH:()=>a,YE:()=>s,jF:()=>o,rj:()=>i});var r=n(36026);class i extends r.C{constructor(e){let{blockNumber:t,chain:n,contract:r}=e;super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class a extends r.C{constructor(e){let{chain:t,currentChainId:n}=e;super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} \u2013 ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} \u2013 ${t.name}`],name:"ChainMismatchError"})}}class o extends r.C{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("\n"),{name:"ChainNotFoundError"})}}class s extends r.C{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}r.C},68178:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(16668).default,a=n(37088).default,o=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ContractEventPayload=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.UndecodedEventLog=t.EventLog=void 0;const s=n(19147),l=n(24839);class c extends s.Log{constructor(e,t,n){super(e,e.provider),o(this,"interface",void 0),o(this,"fragment",void 0),o(this,"args",void 0);const r=t.decodeEventLog(n,e.data,e.topics);(0,l.defineProperties)(this,{args:r,fragment:n,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.EventLog=c;class u extends s.Log{constructor(e,t){super(e,e.provider),o(this,"error",void 0),(0,l.defineProperties)(this,{error:t})}}t.UndecodedEventLog=u;var d=new WeakMap;class h extends s.TransactionReceipt{constructor(e,t,n){super(n,t),r(this,d,void 0),a(d,this,e)}get logs(){return super.logs.map((e=>{const t=e.topics.length?i(d,this).getEvent(e.topics[0]):null;if(t)try{return new c(e,i(d,this),t)}catch(n){return new u(e,n)}return e}))}}t.ContractTransactionReceipt=h;var f=new WeakMap;class p extends s.TransactionResponse{constructor(e,t,n){super(n,t),r(this,f,void 0),a(f,this,e)}async wait(e,t){const n=await super.wait(e,t);return null==n?null:new h(i(f,this),this.provider,n)}}t.ContractTransactionResponse=p;class g extends l.EventPayload{constructor(e,t,n,r){super(e,t,n),o(this,"log",void 0),(0,l.defineProperties)(this,{log:r})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}t.ContractUnknownEventPayload=g;t.ContractEventPayload=class extends g{constructor(e,t,n,r,i){super(e,t,n,new c(i,e.interface,r));const a=e.interface.decodeEventLog(r,this.log.data,this.log.topics);(0,l.defineProperties)(this,{args:a,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},68577:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case o:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===s||e===o||e===f||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},68768:e=>{"use strict";e.exports=ReferenceError},68881:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;a<r.length;a++){var o=r[a],s=e[o];(i?-1!==t.indexOf(o):t(o,s,e))&&(n[o]=s)}return n}},69002:e=>{e.exports=function(e){return e}}
2,69064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88686);r.__exportStar(n(44754),t),r.__exportStar(n(64059),t)},69491:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(81756).default,a=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;const o=n(55114),s=n(20022),l=n(24839),c=n(19147);function u(e,t){if(e.provider)return e.provider;(0,l.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function d(e,t){let n=(0,c.copyRequest)(t);if(null!=n.to&&(n.to=(0,o.resolveAddress)(n.to,e)),null!=n.from){const t=n.from;n.from=Promise.all([e.getAddress(),(0,o.resolveAddress)(t,e)]).then((e=>{let[t,n]=e;return(0,l.assertArgument)(t.toLowerCase()===n.toLowerCase(),"transaction from mismatch","tx.from",n),t}))}else n.from=e.getAddress();return await(0,l.resolveProperties)(n)}class h{constructor(e){a(this,"provider",void 0),(0,l.defineProperties)(this,{provider:e||null})}async getNonce(e){return u(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await d(this,e)}async populateTransaction(e){const t=u(this,"populateTransaction"),n=await d(this,e);null==n.nonce&&(n.nonce=await this.getNonce("pending")),null==n.gasLimit&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(null!=n.chainId){const t=(0,l.getBigInt)(n.chainId);(0,l.assertArgument)(t===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const i=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas;if(null==n.gasPrice||2!==n.type&&!i?0!==n.type&&1!==n.type||!i||(0,l.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e):(0,l.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas)if(0===n.type||1===n.type){const e=await t.getFeeData();(0,l.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice)}else{const e=await t.getFeeData();if(null==n.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(n.authorizationList&&n.authorizationList.length?n.type=4:n.type=2,null!=n.gasPrice){const e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,l.assert)(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice),n.type=0):(0,l.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2!==n.type&&3!==n.type&&4!==n.type||(null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else n.type=2;return await(0,l.resolveProperties)(n)}async populateAuthorization(e){const t=Object.assign({},e);return null==t.chainId&&(t.chainId=(await u(this,"getNetwork").getNetwork()).chainId),null==t.nonce&&(t.nonce=await this.getNonce()),t}async estimateGas(e){return u(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return u(this,"call").call(await this.populateCall(e))}async resolveName(e){const t=u(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){const t=u(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=s.Transaction.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}authorize(e){(0,l.assert)(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}}t.AbstractSigner=h;var f=new WeakSet;class p extends h{constructor(e,t){super(t),r(this,f),a(this,"address",void 0),(0,l.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new p(this.address,e)}async signTransaction(e){i(f,this,g).call(this,"transactions","signTransaction")}async signMessage(e){i(f,this,g).call(this,"messages","signMessage")}
2async signTypedData(e,t,n){i(f,this,g).call(this,"typed-data","signTypedData")}}function g(e,t){(0,l.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}t.VoidSigner=p},69679:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,B:()=>i});var r=n(89676);function i(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.d_(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`}function a(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?e.map((e=>function(e,t){let{includeName:n}=t;if(e.type.startsWith("tuple"))return`(${a(e.components,{includeName:n})})${e.type.slice(5)}`;return e.type+(n&&e.name?` ${e.name}`:"")}(e,{includeName:t}))).join(t?", ":","):""}},69687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const r=n(22804);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return r.computeHmac}});const i=n(8333);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return i.keccak256}});const a=n(30247);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return a.ripemd160}});const o=n(76274);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}});const s=n(36104);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return s.randomBytes}});const l=n(71596);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return l.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return l.scryptSync}});const c=n(91127);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return c.sha512}});var u=n(98258);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return u.SigningKey}});var d=n(6161);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return d.Signature}}),t.lock=function(){r.computeHmac.lock(),i.keccak256.lock(),o.pbkdf2.lock(),s.randomBytes.lock(),a.ripemd160.lock(),l.scrypt.lock(),l.scryptSync.lock(),c.sha256.lock(),c.sha512.lock(),s.randomBytes.lock()}},69757:e=>{e.exports=function(e){return this.__data__.has(e)}},69778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},69823:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;const i=n(24839);t.Wordlist=class{constructor(e){r(this,"locale",void 0),(0,i.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}},69973:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(37088).default,a=n(16668).default;Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;const o=n(64364),s=n(24839),l=n(31223);var c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap;class p{get filter(){return JSON.parse(a(u,this))}constructor(e,t){r(this,c,void 0),r(this,u,void 0),r(this,d,void 0),r(this,h,void 0),r(this,f,void 0),i(c,this,e),i(u,this,JSON.stringify(t)),i(d,this,null),i(h,this,null),i(f,this,null)}start(){i(d,this,a(c,this).send("eth_subscribe",this.filter).then((e=>(a(c,this)._register(e,this),e))))}stop(){a(d,this).then((e=>{a(c,this).destroyed||a(c,this).send("eth_unsubscribe",[e])})),i(d,this,null)}pause(e){(0,s.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),i(h,this,!!e)}resume(){i(h,this,null)}_handleMessage(e){if(null!=a(d,this)&&null===a(h,this)){let t=a(f,this);t=null==t?this._emit(a(c,this),e):t.then((async()=>{await this._emit(a(c,this),e)})),i(f,this,t.then((()=>{a(f,this)===t&&i(f,this,null)})))}}async _emit(e,t){throw new Error("sub-classes must implemente this; _emit")}}t.SocketSubscriber=p;class g extends p{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}t.SocketBlockSubscriber=g;class m extends p{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=m;var y=new WeakMap;class b extends p{get logFilter(){return JSON.parse(a(y,this))}constructor(e,t){super(e,["logs",t]),r(this,y,void 0),i(y,this,JSON.stringify(t))}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=b;var v=new WeakMap,x=new WeakMap,w=new WeakMap;class k extends l.JsonRpcApiProvider{constructor(e,t){const n=Object.assign({},null!=t?t:{});(0,s.assertArgument)(null==n.batchMaxCount||1===n.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),n.batchMaxCount=1,null==n.staticNetwork&&(n.staticNetwork=!0),super(e,n),r(this,v,void 0),r(this,x,void 0),r(this,w,void 0),i(v,this,new Map),i(x,this,new Map),i(w,this,new Map)}
2_getSubscriber(e){switch(e.type){case"close":return new o.UnmanagedSubscriber("close");case"block":return new g(this);case"pending":return new m(this);case"event":return new b(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new o.UnmanagedSubscriber("drop-log")}return super._getSubscriber(e)}_register(e,t){a(x,this).set(e,t);const n=a(w,this).get(e);if(n){for(const e of n)t._handleMessage(e);a(w,this).delete(e)}}async _send(e){(0,s.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise(((t,n)=>{a(v,this).set(e.id,{payload:e,resolve:t,reject:n})}));return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&"object"===typeof t&&"id"in t){const e=a(v,this).get(t.id);if(null==e)return void this.emit("error",(0,s.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));a(v,this).delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",(0,s.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));{const e=t.params.subscription,n=a(x,this).get(e);if(n)n._handleMessage(t.params.result);else{let n=a(w,this).get(e);null==n&&(n=[],a(w,this).set(e,n)),n.push(t.params.result)}}}}async _write(e){throw new Error("sub-classes must override this")}}t.SocketProvider=k},70225:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(30543),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),h=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)h.push(String(m));else for(var y in e)p&&"prototype"===y||!i.call(e,y)||h.push(String(y));if(l)for(var b=function(e){if("undefined"===typeof window||!f)return d(e);try{return d(e)}catch(t){return!1}}(e),v=0;v<u.length;++v)b&&"constructor"===u[v]||!i.call(e,u[v])||h.push(u[v]);return h}}e.exports=r},70231:(e,t,n)=>{var r=n(73616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},70246:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var r=n(91038),i=n(6351);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,i.J)(e,r.sz[t])}},70399:(e,t,n)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function i(e){if(!((t=e)instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name))throw new Error("Uint8Array expected");for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(r.length>0&&!r.includes(e.length))throw new Error("Uint8Array expected of length "+r+", got length="+e.length)}function a(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}n.d(t,{CC:()=>o,DO:()=>i,Fe:()=>r,Ht:()=>s,sd:()=>a})}
2,70423:(e,t,n)=>{var r=n(93031),i=n(65724);e.exports=function(e,t){return e&&r(e,t,i)}},70539:(e,t,n)=>{"use strict";n.d(t,{n:()=>b});var r=n(89676),i=n(94441),a=n(32490),o=n(4846),s=n(21273),l=n(53415),c=n(59050),u=n(53187),d=n(97168);function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,u.Sl)(e,{size:t.size});const n=(0,d.My)(e,t);return(0,u.uU)(n,t)}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("undefined"!==typeof t.size&&((0,u.Sl)(n,{size:t.size}),n=(0,l.B)(n)),n.length>1||n[0]>1)throw new c.xO(n);return Boolean(n[0])}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,u.Sl)(e,{size:t.size});const n=(0,d.My)(e,t);return(0,u.ME)(n,t)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return"undefined"!==typeof t.size&&((0,u.Sl)(n,{size:t.size}),n=(0,l.B)(n,{dir:"right"})),(new TextDecoder).decode(n)}var m=n(32146),y=n(10003);function b(e,t){const n="string"===typeof t?(0,m.aT)(t):t,i=(0,a.l)(n);if(0===(0,o.E)(n)&&e.length>0)throw new r.O;if((0,o.E)(t)&&(0,o.E)(t)<32)throw new r.Iy({data:"string"===typeof t?t:(0,d.My)(t),params:e,size:(0,o.E)(t)});let s=0;const l=[];for(let r=0;r<e.length;++r){const t=e[r];i.setPosition(s);const[n,a]=v(i,t,{staticPosition:0});s+=a,l.push(n)}return l}function v(e,t,n){let{staticPosition:a}=n;const o=(0,y.k)(t.type);if(o){const[n,r]=o;return function(e,t,n){let{length:r,staticPosition:i}=n;if(!r){const n=i+p(e.readBytes(w)),r=n+x;e.setPosition(n);const a=p(e.readBytes(x)),o=k(t);let s=0;const l=[];for(let i=0;i<a;++i){e.setPosition(r+(o?32*i:s));const[n,a]=v(e,t,{staticPosition:r});s+=a,l.push(n)}return e.setPosition(i+32),[l,32]}if(k(t)){const n=i+p(e.readBytes(w)),a=[];for(let i=0;i<r;++i){e.setPosition(n+32*i);const[r]=v(e,t,{staticPosition:n});a.push(r)}return e.setPosition(i+32),[a,32]}let a=0;const o=[];for(let s=0;s<r;++s){const[n,r]=v(e,t,{staticPosition:i+a});a+=r,o.push(n)}return[o,a]}(e,{...t,type:r},{length:n,staticPosition:a})}if("tuple"===t.type)return function(e,t,n){let{staticPosition:r}=n;const i=0===t.components.length||t.components.some((e=>{let{name:t}=e;return!t})),a=i?[]:{};let o=0;if(k(t)){const n=r+p(e.readBytes(w));for(let r=0;r<t.components.length;++r){const s=t.components[r];e.setPosition(n+o);const[l,c]=v(e,s,{staticPosition:n});o+=c,a[i?r:null===s||void 0===s?void 0:s.name]=l}return e.setPosition(r+32),[a,32]}for(let s=0;s<t.components.length;++s){const n=t.components[s],[l,c]=v(e,n,{staticPosition:r});a[i?s:null===n||void 0===n?void 0:n.name]=l,o+=c}return[a,o]}(e,t,{staticPosition:a});if("address"===t.type)return function(e){const t=e.readBytes(32);return[(0,i.o)((0,d.My)((0,s.A1)(t,-20))),32]}(e);if("bool"===t.type)return function(e){return[f(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith("bytes"))return function(e,t,n){let{staticPosition:r}=n;const[i,a]=t.type.split("bytes");if(!a){const t=p(e.readBytes(32));e.setPosition(r+t);const n=p(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const i=e.readBytes(n);return e.setPosition(r+32),[(0,d.My)(i),32]}const o=(0,d.My)(e.readBytes(Number.parseInt(a),32));return[o,32]}(e,t,{staticPosition:a});if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),i=e.readBytes(32);return[r>48?h(i,{signed:n}):p(i,{signed:n}),32]}(e,t);if("string"===t.type)return function(e,t){let{staticPosition:n}=t;const r=p(e.readBytes(32)),i=n+r;e.setPosition(i);const a=p(e.readBytes(32));if(0===a)return e.setPosition(n+32),["",32];const o=e.readBytes(a,32),s=g((0,l.B)(o));return e.setPosition(n+32),[s,32]}(e,{staticPosition:a});throw new r.j(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const x=32,w=32;function k(e){var t;const{type:n}=e;if("string"===n)return!0;if("bytes"===n)return!0;if(n.endsWith("[]"))return!0;if("tuple"===n)return null===(t=e.components)||void 0===t?void 0:t.some(k);const r=(0,y.k)(e.type);return!(!r||!k({...e,type:r[1]}))}},70708:(e,t,n)=>{var r=n(77101);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},70737:(e,t)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class n{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if("undefined"!==typeof t.elapsed)throw new Error(`Watch already stopped for label: ${e}`);const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if("undefined"===typeof t)throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=n,t.default=n},70776:e=>{"use strict";var t=function(){return"string"===typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(i){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"===typeof r&&""!==function(){}.bind().name},e.exports=t},70955:(e,t,n)=>{"use strict";var r=n(28726),i=n(43629),a=n(24029),o=n(13832),s=n(81506),l=i(o());r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},71047:(e,t,n)=>{var r=n(71443),i=n(98300),a=n(54008),o=n(3315);e.exports=function(e,t,n){return e=a(e),void 0===(t=n?void 0:t)?i(e)?o(e):r(e):e.match(t)||[]}},71099:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var r=n(15254);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return r.BaseWallet}});var i=n(65250);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return i.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return i.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return i.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return i.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return i.HDNodeVoidWallet}});var a=n(22318);Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return a.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return a.decryptCrowdsaleJson}});var o=n(77134);Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return o.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return o.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return o.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.encryptKeystoreJsonSync}});var s=n(4559);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return s.Mnemonic}});var l=n(61990);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return l.Wallet}})},71113:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},71125:(e,t,n)=>{"use strict";n.d(t,{J9:()=>a,Mc:()=>i,fD:()=>r});const r={1:"An `assert` condition failed.",17:"Arithmetic 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."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},a={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},71263:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;const r=n(55114),i=n(1736),a=n(18500),o=n(10569);class s extends o.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=a.Typed.dereference(t,"string");try{n=(0,r.getAddress)(n)}catch(i){return this._throwError(i.message,t)}return e.writeValue(n)}decode(e){return(0,r.getAddress)((0,i.toBeHex)(e.readValue(),20))}}t.AddressCoder=s},71274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const r=n(55114),i=n(24839);function a(e,t){return{address:(0,r.getAddress)(e),storageKeys:t.map(((e,t)=>((0,i.assertArgument)((0,i.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}t.accessListify=function(e){if(Array.isArray(e))return e.map(((t,n)=>Array.isArray(t)?((0,i.assertArgument)(2===t.length,"invalid slot set",`value[${n}]`,t),a(t[0],t[1])):((0,i.assertArgument)(null!=t&&"object"===typeof t,"invalid address-slot set","value",e),a(t.address,t.storageKeys))));(0,i.assertArgument)(null!=e&&"object"===typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return a(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},71443:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},71446:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>M,__assign:()=>a,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>P,__await:()=>A,__awaiter:()=>p,__classPrivateFieldGet:()=>_,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>I,__createBinding:()=>m,__decorate:()=>s,__disposeResources:()=>L,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>i,__generator:()=>g,__importDefault:()=>N,__importStar:()=>
2T,__makeTemplateObject:()=>C,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>v,__rest:()=>o,__runInitializers:()=>u,__setFunctionName:()=>h,__spread:()=>x,__spreadArray:()=>k,__spreadArrays:()=>w,__values:()=>b,default:()=>B});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,i,a){function o(e){if(void 0!==e&&"function"!==typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),h=!1,f=n.length-1;f>=0;f--){var p={};for(var g in r)p[g]="access"===g?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var m=(0,n[f])("accessor"===l?{get:d.get,set:d.set}:d[c],p);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!==typeof m)throw new TypeError("Object expected");(s=o(m.get))&&(d.get=s),(s=o(m.set))&&(d.set=s),(s=o(m.init))&&i.unshift(s)}else(s=o(m))&&("field"===l?i.unshift(s):d[c]=s)}u&&Object.defineProperty(u,r.name,d),h=!0}function u(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"===typeof e?e:"".concat(e)}function h(e,t,n){return"symbol"===typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function g(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
vendor: 4,506 bytes, line 2
2i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function b(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function x(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function k(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function A(e){return this instanceof A?(this.v=e,this):new A(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r=Object.create(("function"===typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),r[Symbol.asyncIterator]=function(){return this},r;function o(e,t){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))},t&&(r[e]=t(r[e])))}function s(e,t){try{(n=i[e](t)).value instanceof A?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(r){u(a[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:A(e[r](t)),done:!1}:i?i(t):t}:i}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return O(t,e),t}function N(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function I(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function R(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}function M(e,t,n){if(null!==t&&void 0!==t){if("object"!==typeof t&&"function"!==typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!==typeof r)throw new TypeError("Object not disposable.");
2i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var j="function"===typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new j(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,(function(e){return t(e),i()}))}else r|=1}catch(o){t(o)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}const B={__extends:i,__assign:a,__rest:o,__decorate:s,__param:l,__metadata:f,__awaiter:p,__generator:g,__createBinding:m,__exportStar:y,__values:b,__read:v,__spread:x,__spreadArrays:w,__spreadArray:k,__await:A,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:P,__makeTemplateOb
2ject:C,__importStar:T,__importDefault:N,__classPrivateFieldGet:_,__classPrivateFieldSet:I,__classPrivateFieldIn:R,__addDisposableResource:M,__disposeResources:L}},71515:e=>{e.exports=function(){return[]}},71596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const r=n(92264),i=n(24839);let a=!1,o=!1;const s=async function(e,t,n,i,a,o,s){return await(0,r.scryptAsync)(e,t,{N:n,r:i,p:a,dkLen:o,onProgress:s})},l=function(e,t,n,i,a,o){return(0,r.scrypt)(e,t,{N:n,r:i,p:a,dkLen:o})};let c=s,u=l;async function d(e,t,n,r,a,o,s){const l=(0,i.getBytes)(e,"passwd"),u=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(await c(l,u,n,r,a,o,s))}function h(e,t,n,r,a,o){const s=(0,i.getBytes)(e,"passwd"),l=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(u(s,l,n,r,a,o))}t.scrypt=d,d._=s,d.lock=function(){o=!0},d.register=function(e){if(o)throw new Error("scrypt is locked");c=e},Object.freeze(d),t.scryptSync=h,h._=l,h.lock=function(){a=!0},h.register=function(e){if(a)throw new Error("scryptSync is locked");u=e},Object.freeze(h)},71641:(e,t,n)=>{var r=n(38183),i=n(35639),a=n(82479),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},71905:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});const r=n(84982).k},72097:(e,t,n)=>{"use strict";var r=n(96643),i=n(28057),a=n(31781),o=n(1084),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},72146:(e,t)=>{"use strict";function n(e){let t;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function r(e){const t=n(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},72566:(e,t,n)=>{"use strict";var r=n(29745),i=n(46635),a=n(28057),o=n(15332),s=n(59191),l=TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===o(e))return r(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},72938:e=>{"use strict";e.exports=Math.max},73012:(e,t,n)=>{var r=n(22022),i=n(39248);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},73207:e=>{"use strict";e.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]')},73267:(e,t,n)=>{var r=n(97840);
2e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},73306:(e,t,n)=>{var r=n(64123),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},73475:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;const i=n(24839),a=n(75593),o=n(55182),s=n(31223),l=n(17989),c="84842078b09946638c03157f83405213";class u extends l.WebSocketProvider{constructor(e,t){const n=new d(e,t),a=n._getConnection();(0,i.assert)(!a.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});super(a.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),n._network),r(this,"projectId",void 0),r(this,"projectSecret",void 0),(0,i.defineProperties)(this,{projectId:n.projectId,projectSecret:n.projectSecret})}isCommunityResource(){return this.projectId===c}}t.InfuraWebSocketProvider=u;class d extends s.JsonRpcProvider{constructor(e,t,n){null==e&&(e="mainnet");const a=o.Network.from(e);null==t&&(t=c),null==n&&(n=null);super(d.getRequest(a,t,n),a,{staticNetwork:a}),r(this,"projectId",void 0),r(this,"projectSecret",void 0),(0,i.defineProperties)(this,{projectId:t,projectSecret:n})}_getProvider(e){try{return new d(e,this.projectId,this.projectSecret)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.projectId===c}static getWebSocketProvider(e,t){return new u(e,t)}static getRequest(e,t,n){null==t&&(t=c),null==n&&(n=null);const r=new i.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":case"base-goerli":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bsc-mainnet.infura.io";case"bnbt":return"bsc-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,i.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return r.allowGzip=!0,n&&r.setCredentials("",n),t===c&&(r.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("InfuraProvider"),!0)),r}}t.InfuraProvider=d},73529:e=>{"use strict";e.exports=function(e){return null===e||void 0===e}},73616:(e,t,n)=>{var r=n(20220)(Object,"create");e.exports=r},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},74058:(e,t,n)=>{e.exports=n(37036)()},74118:(e,t,n)=>{"use strict";var r=n(82599),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},74625:(e,t)=>{"use strict";var n,r,i,a;if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},i=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,f=window.clearTimeout;if("undefined"!==typeof console){var p=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,y=-1,b=5,v=0;t.unstable_shouldYield=function(){return t.unstable_now()>=v},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();v=e+b;try{m(!0,e)?w.postMessage(null):(g=!1,m=null)}catch(n){throw w.postMessage(null),n}}else g=!1},n=function(e){m=e,g||(g=!0,w.postMessage(null))},r=function(e,n){y=h((function(){e(t.unstable_now())}),n)},i=function(){f(y),y=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<S(i,t)))break e;e[r]=t,e[n]=i,n=r}}function A(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>S(o,n))void 0!==l&&0>S(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>S(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],C=[],O=1,T=null,N=3,_=!1,I=!1,R=!1;function M(e){for(var t=A(C);null!==t;){if(null===t.callback)E(C);else{if(!(t.startTime<=e))break;E(C),t.sortIndex=t.expirationTime,k(P,t)}t=A(C)}}function j(e){if(R=!1,M(e),!I)if(null!==A(P))I=!0,n(L);else{var t=A(C);null!==t&&r(j,t.startTime-e)}}
2function L(e,n){I=!1,R&&(R=!1,i()),_=!0;var a=N;try{for(M(n),T=A(P);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"===typeof o){T.callback=null,N=T.priorityLevel;var s=o(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?T.callback=s:T===A(P)&&E(P),M(n)}else E(P);T=A(P)}if(null!==T)var l=!0;else{var c=A(C);null!==c&&r(j,c.startTime-n),l=!1}return l}finally{T=null,N=a,_=!1}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||_||(I=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return A(P)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:O++,callback:a,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,k(C,e),null===A(P)&&e===A(C)&&(R?i():R=!0,r(j,o-s))):(e.sortIndex=l,k(P,e),I||_||(I=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},74652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var r=n(24596);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return r.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return r.Contract}});var i=n(24714);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return i.ContractFactory}});var a=n(68178);Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return a.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return a.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return a.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return a.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return a.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return a.UndecodedEventLog}})},74786:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;const i=n(24839),a=n(75593),o=n(55182),s=n(31223),l="62e1ad51b37b8e00394bda3b";class c extends s.JsonRpcProvider{constructor(e,t,n){null==e&&(e="mainnet");const a=o.Network.from(e);null==t&&(t=l),null==n&&(n=null);const s={staticNetwork:a};super(c.getRequest(a,t,n),a,s),r(this,"applicationId",void 0),r(this,"applicationSecret",void 0),(0,i.defineProperties)(this,{applicationId:t,applicationSecret:n})}_getProvider(e){try{return new c(e,this.applicationId,this.applicationSecret)}catch(t){}return super._getProvider(e)}static getRequest(e,t,n){null==t&&(t=l);const r=new i.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,i.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v1/lb/${t}`);return r.allowGzip=!0,n&&r.setCredentials("",n),t===l&&(r.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("PocketProvider"),!0)),r}isCommunityResource(){return this.applicationId===l}}t.PocketProvider=c}
2,74804:(e,t,n)=>{"use strict";e.exports=n(94751)},74876:(e,t,n)=>{"use strict";var r,i=n(46635),a=n(78133),o=n(32011),s=n(54801),l=n(33641),c=n(93355),u=n(3051),d="prototype",h="script",f=u("IE_PROTO"),p=function(){},g=function(e){return"<"+h+">"+e+"</"+h+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?m(r):function(){var e,t=c("iframe"),n="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F}():m(r);for(var e=o.length;e--;)delete y[d][o[e]];return y()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=i(e),n=new p,p[d]=null,n[f]=e):n=y(),void 0===t?n:a.f(n,t)}},74971:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},75045:(e,t,n)=>{"use strict";var r=n(26470),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=b.prototype=new y;v.constructor=b,r(v,m.prototype),v.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:x.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+P(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+P(s=e[c],c);l+=C(s,t,n,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,u=r+P(s,c++),o);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function _(){var e=N.current;if(null===e)throw Error(f(321));return e}var I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(f(143));return e}}
2,t.Component=m,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(f(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return _().useCallback(e,t)},t.useContext=function(e,t){return _().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return _().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return _().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return _().useLayoutEffect(e,t)},t.useMemo=function(e,t){return _().useMemo(e,t)},t.useReducer=function(e,t,n){return _().useReducer(e,t,n)},t.useRef=function(e){return _().useRef(e)},t.useState=function(e){return _().useState(e)},t.version="17.0.1"},75071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;const r=n(24839),i=n(89370),a=n(3757),o=n(96119),s=n(62019),l=n(75611),c=n(73475),u=n(56461),d=n(18530),h=n(31223),f=n(55182),p=n(17989);const g="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});const n=e=>"-"!==t[e]&&("string"===typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"===typeof e&&e.match(/^https?:/))return new h.JsonRpcProvider(e);if("string"===typeof e&&e.match(/^wss?:/)||(m=e)&&"function"===typeof m.send&&"function"===typeof m.close)return new p.WebSocketProvider(e);var m;let y=null;try{y=f.Network.from(e)}catch(x){}const b=[];if(n("publicPolygon")&&y&&("matic"===y.name?b.push(new h.JsonRpcProvider("https://polygon-rpc.com/",y,{staticNetwork:y})):"matic-amoy"===y.name&&b.push(new h.JsonRpcProvider("https://rpc-amoy.polygon.technology/",y,{staticNetwork:y}))),n("alchemy"))try{b.push(new a.AlchemyProvider(e,t.alchemy))}catch(x){}if(n("ankr")&&null!=t.ankr)try{b.push(new i.AnkrProvider(e,t.ankr))}catch(x){}if(n("chainstack"))try{b.push(new o.ChainstackProvider(e,t.chainstack))}catch(x){}if(n("cloudflare"))try{b.push(new s.CloudflareProvider(e))}catch(x){}if(n("etherscan"))try{b.push(new l.EtherscanProvider(e,t.etherscan))}catch(x){}if(n("infura"))try{let n,r=t.infura;"object"===typeof r&&(n=r.projectSecret,r=r.projectId),b.push(new c.InfuraProvider(e,r,n))}catch(x){}if(n("quicknode"))try{let n=t.quicknode;b.push(new u.QuickNodeProvider(e,n))}catch(x){}if((0,r.assert)(b.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===b.length)return b[0];let v=Math.floor(b.length/2);return v>2&&(v=2),y&&-1!==g.indexOf(y.name)&&(v=1),t&&t.quorum&&(v=t.quorum),new d.FallbackProvider(b,void 0,{quorum:v})}},75340:(e,t,n)=>{"use strict";e.exports=n(31761)},75431:(e,t,n)=>{"use strict";var r,i=n(93312).default,a=n(42459).default,o=n(81756).default,s=n(16668).default,l=n(37088).default,c=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;const u=n(55114),d=n(65891),h=n(74652),f=n(11454),p=n(24839),g=BigInt(60);function m(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,p.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class y{constructor(e){c(this,"name",void 0),(0,p.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}t.MulticoinProviderPlugin=y;t.BasicMulticoinProviderPlugin=class extends y{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const b=new RegExp("^(ipfs)://(.*)$","i"),v=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),b,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function x(e){return e===g||e>=2147483648&&e<=4294967295}var w=new WeakMap,k=new WeakMap,A=new WeakSet;class E{constructor(e,t,n,r){i(this,A),c(this,"provider",void 0),c(this,"address",void 0),c(this,"name",void 0),a(this,w,void 0),a(this,k,void 0),(0,p.defineProperties)(this,{provider:e,address:t,name:n}),l(w,this,null!=r?Promise.resolve(r):null),l(k,this,new h.Contract(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)","function name(bytes32) view returns (string)"],e))}async supportsWildcard(){return null==s(w,this)&&l(w,this,(async()=>{try{return await s(k,this).supportsInterface("0x9061b923")}catch(e){if((0,p.isError)(e,"CALL_EXCEPTION"))return!1;throw l(w,this,null),e}})()),await s(w,this)}async getAddress(e){const t=null==e?g:(0,p.getBigInt)(e);if(t===g)try{const e=await o(A,this,S).call(this,"addr(bytes32)");return null==e||e===d.ZeroAddress?null:e}catch(i){if((0,p.isError)(i,"CALL_EXCEPTION"))return null;throw i}if(x(t)){const e=await o(A,this,S).call(this,"addr(bytes32,uint)",[t]);return(0,p.isHexString)(e,20)?(0,u.getAddress)(e):null}if(t>=0&&t<2147483648){let e=t+BigInt(2147483648);const n=await o(A,this,S).call(this,"addr(bytes32,uint)",[e]);if((0,p.isHexString)(n,20))return(0,u.getAddress)(n)}let n=null;for(const a of this.provider.plugins)if(a instanceof y&&t<=2147483648&&a.supportsCoinType(Number(t))){n=a;break}if(null==n)return null;const r=await o(A,this,S).call(this,"addr(bytes32,uint)",[t]);if(null==r||"0x"===r)return null;if(t<2147483648){const e=await n.decodeAddress(Number(t),r);if(null!=e)return e}(0,p.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:r}})}async getText(e){const t=await o(A,this,S).call(this,"text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){const e=await o(A,this,S).call(this,"contenthash(bytes32)");if(null==e||"0x"===e)return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e="e3010170"===t[1]?"ipfs":"ipns",n=parseInt(t[4],16);if(t[5].length===2*n)return`${e}://${(0,p.encodeBase58)("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return`bzz://${n[1]}`;(0,p.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getName(){return await o(A,this,S).call(this,"name(bytes32)")}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(null==n)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:n});for(let r=0;r<v.length;r++){const i=n.match(v[r]);if(null==i)continue;const a=i[1].toLowerCase();switch(a){case"https":case"data":return e.push({type:"url",value:n}),{linkage:e,url:n};case"ipfs":{const t=m(n);return e.push({type:"ipfs",value:n}),e.push({type:"url",value:t}),{linkage:e,url:t}}case"erc721":case"erc1155":{const r="erc721"===a?"tokenURI(uint256)":"uri(uint256)";e.push({type:a,value:n});const o=await this.getAddress();if(null==o)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const s=(i[2]||"").split("/");if(2!==s.length)return e.push({type:`!${a}caip`,value:i[2]||""}),{url:null,linkage:e};
2const l=s[1],c=new h.Contract(s[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===a){const t=await c.ownerOf(l);if(o!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===a){const t=await c.balanceOf(o,l);if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let u=await c[r](l);if(null==u||"0x"===u)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:u}),"erc1155"===a&&(u=u.replace("{id}",(0,p.toBeHex)(l,32).substring(2)),e.push({type:"metadata-url-expanded",value:u})),u.match(/^ipfs:/i)&&(u=m(u)),e.push({type:"metadata-url",value:u});let d={};const f=await new p.FetchRequest(u).send();f.assertOk();try{d=f.bodyJson}catch(t){try{e.push({type:"!metadata",value:f.bodyText})}catch(t){const n=f.body;return n&&e.push({type:"!metadata",value:(0,p.hexlify)(n)}),{url:null,linkage:e}}return{url:null,linkage:e}}if(!d)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(d)});let g=d.image;if("string"!==typeof g)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(g.match(/^(https:\/\/|data:)/i));else{if(null==g.match(b))return e.push({type:"!imageUrl-ipfs",value:g}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:g}),g=m(g)}return e.push({type:"url",value:g}),{linkage:e,url:g}}}}}catch(t){}return{linkage:e,url:null}}static async getEnsAddress(e){const t=await e.getNetwork(),n=t.getPlugin("org.ethers.plugins.network.Ens");return(0,p.assert)(n,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),n.address}static async getUniversalResolverAddress(e){const t=(await e.getNetwork()).getPlugin("org.ethers.plugins.network.Ens");return t&&t.universalResolver?t.universalResolver:null}static async lookupAddress(e,t,n){const r=null==n?g:(0,p.getBigInt)(n);x(r)&&(t=(0,u.getAddress)(t));const i=await C(e);if(i)try{const e=(await i.reverse(t,r,{enableCcipRead:!0})).primary;return(0,f.isValidName)(e)?e:null}catch(a){if((0,p.isError)(a,"CALL_EXCEPTION")&&"ResolverNotFound(bytes)"===a.reason)return null;throw a}(0,p.assert)(r===g,"lookupAddress coinType requires ENS Universal Resolver","UNSUPPORTED_OPERATION",{operation:"lookupAddress"});try{const n=await E.fromName(e,`${t.toLowerCase().substring(2)}.addr.reverse`);if(!n)return null;const r=await n.getName();if(null==r||!(0,f.isValidName)(r))return null;return await e.resolveName(r)!==t?null:r}catch(o){if((0,p.isError)(o,"BAD_DATA")&&"0x"===o.value)return null;if((0,p.isError)(o,"CALL_EXCEPTION"))return null;throw o}}static async fromName(e,t){const n=await C(e);if(n){let r;try{r=(0,f.dnsEncode)((0,f.ensNormalize)(t),255)}catch(i){return null}const a=await n.requireResolver(r);return new E(e,a.resolver,t,a.extended)}let r=t;for(;;){if(""===r||"."===r)return null;if("eth"!==t&&"eth"===r)return null;const n=await P.call(E,e,r);if(null!=n){const i=new E(e,n,t);return r===t||await i.supportsWildcard()?i:null}r=r.split(".").slice(1).join(".")}}}async function S(e,t){t=(t||[]).slice();const n=s(k,this).interface;t.unshift((0,f.namehash)(this.name));let r=null;await this.supportsWildcard()&&(r=n.getFunction(e),(0,p.assert)(r,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,f.dnsEncode)(this.name,255),n.encodeFunctionData(r,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{const i=await s(k,this)[e](...t);return r?n.decodeFunctionResult(r,i)[0]:i}catch(i){if(!(0,p.isError)(i,"CALL_EXCEPTION"))throw i}return null}async function P(e,t){const n=await r.getEnsAddress(e);try{const r=new h.Contract(n,["function resolver(bytes32) view returns (address)"],e),i=await r.resolver((0,f.namehash)(t),{enableCcipRead:!0});return i===d.ZeroAddress?null:i}catch(i){throw i}return null}async function C(e){const t=await E.getUniversalResolverAddress(e);return t?new h.Contract(t,["function requireResolver(bytes) view returns ((bytes name, uint256 offset, bytes32 node, address resolver, bool extended))","function findResolver(bytes) view returns (address resolver, bytes32 node, uint offset)","function resolve(bytes name, bytes data) view returns (bytes result, address resolver)","function reverse(bytes name, uint coinType) view returns (string primary, address resolver, address reverseResolver)","error ResolverNotFound(bytes name)","error ResolverNotContract(bytes name, address resolver)","error Rever
2seAddressMismatch(string primary, bytes primaryAddress)","error HttpError(uint16 statusCode, string statusMessage)"],e):null}r=E,t.EnsResolver=E},75438:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,a||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,a),!0;case 6:return u.fn.call(u.context,t,r,i,a,o),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},75593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;const n=new Set;t.showThrottleMessage=function(e){n.has(e)||(n.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},75611:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(16668).default,a=n(37088).default,o=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;const s=n(18212),l=n(74652),c=n(20022),u=n(24839),d=n(64364),h=n(55182),f=n(14015),p=n(75593),g="1 11155111 17000 560048 2741 11124 33111 33139 42170 42161 421614 43114 43113 8453 84532 80069 80094 199 1029 81457 168587773 56 97 42220 11142220 252 2523 100 999 737373 747474 59144 59141 5000 5003 43521 143 10143 1287 1284 1285 10 111
255420 204 5611 80002 137 534352 534351 1329 1328 146 14601 988 2201 1923 1924 167013 167000 130 1301 480 4801 51 50 324 300".split(/ /g);const m="org.ethers.plugins.provider.Etherscan";class y extends f.NetworkPlugin{constructor(e){super(m),o(this,"baseUrl",void 0),(0,u.defineProperties)(this,{baseUrl:e})}clone(){return new y(this.baseUrl)}}t.EtherscanPlugin=y;const b=["enableCcipRead"];let v=1;var x=new WeakMap;class w extends d.AbstractProvider{constructor(e,t){const n=null!=t?t:null;super(),o(this,"network",void 0),o(this,"apiKey",void 0),r(this,x,void 0);const i=h.Network.from(e);(0,u.assertArgument)(g.indexOf(`${i.chainId}`)>=0,"unsupported network","network",i),a(x,this,i.getPlugin(m)),(0,u.defineProperties)(this,{apiKey:n,network:i})}getBaseUrl(){if(i(x,this))return i(x,this).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,u.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(e,t){let n=Object.keys(t).reduce(((e,n)=>{const r=t[n];return null!=r&&(e+=`&${n}=${r}`),e}),"");return this.apiKey&&(n+=`&apikey=${this.apiKey}`),`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}&module=${e}${n}`}getPostUrl(){return`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t.chainid=this.network.chainId,t}async detectNetwork(){return this.network}async fetch(e,t,n){const r=v++,i=n?this.getPostUrl():this.getUrl(e,t),a=n?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:r,url:i,payload:a});const o=new u.FetchRequest(i);o.setThrottleParams({slotInterval:1e3}),o.retryFunc=(e,t,n)=>(this.isCommunityResource()&&(0,p.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),o.processFunc=async(t,n)=>{const i=n.hasBody()?JSON.parse((0,u.toUtf8String)(n.body)):{},a=("string"===typeof i.result?i.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?i&&0==i.status&&"NOTOK"==i.message&&a&&(this.emit("debug",{action:"receiveError",id:r,reason:"proxy-NOTOK",error:i}),n.throwThrottleError(i.result,2e3)):a&&(this.emit("debug",{action:"receiveError",id:r,reason:"null result",error:i.result}),n.throwThrottleError(i.result,2e3)),n},a&&(o.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),o.body=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"));const s=await o.send();try{s.assertOk()}catch(c){this.emit("debug",{action:"receiveError",id:r,error:c,reason:"assertOk"}),(0,u.assert)(!1,"response error","SERVER_ERROR",{request:o,response:s})}s.hasBody()||(this.emit("debug",{action:"receiveError",id:r,error:"missing body",reason:"null body"}),(0,u.assert)(!1,"missing response","SERVER_ERROR",{request:o,response:s}));const l=JSON.parse((0,u.toUtf8String)(s.body));return"proxy"===e?("2.0"!=l.jsonrpc&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"invalid JSON-RPC"}),(0,u.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:o,response:s,info:{result:l}}
2)),l.error&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"JSON-RPC error"}),(0,u.assert)(!1,"error response","SERVER_ERROR",{request:o,response:s,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):0!=l.status||"No records found"!==l.message&&"No transactions found"!==l.message?((1!=l.status||"string"===typeof l.message&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:r,result:l}),(0,u.assert)(!1,"error response","SERVER_ERROR",{request:o,response:s,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):(this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result)}_getTransactionPostData(e){const t={};for(let n in e){if(b.indexOf(n)>=0)continue;if(null==e[n])continue;let r=e[n];if(("type"!==n||0!==r)&&("blockTag"!==n||"latest"!==r)){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n])r=(0,u.toQuantity)(r);else if("accessList"===n)r="["+(0,c.accessListify)(r).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]";else if("blobVersionedHashes"===n){if(0===r.length)continue;(0,u.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else r=(0,u.hexlify)(r);t[n]=r}}return t}_checkError(e,t,n){let r="";if((0,u.isError)(t,"SERVER_ERROR")){try{r=t.info.result.error.message}catch(i){}if(!r)try{r=t.info.message}catch(i){}}if("estimateGas"===e.method&&!r.match(/revert/i)&&r.match(/insufficient funds/i)&&(0,u.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&r.match(/execution reverted/i)){let n="";try{n=t.info.result.error.data}catch(t){}const r=s.AbiCoder.getBuiltinCallException(e.method,e.transaction,n);throw r.info={request:e,error:t},r}if(r&&"broadcastTransaction"===e.method){const t=c.Transaction.from(e.signedTransaction);r.match(/replacement/i)&&r.match(/underpriced/i)&&(0,u.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),r.match(/insufficient funds/)&&(0,u.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,u.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>this._checkError(e,t,e.signedTransaction)));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});(0,u.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let t=this._getAddress(e);var n;(n=t)&&"function"===typeof n.then&&(t=await t);try{const e=await this.fetch("contract",{action:"getabi",address:t}),n=JSON.parse(e);return new l.Contract(t,n,this)}catch(r){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=w},75655:(e,t,n)=>{"use strict";n.d(t,{bE:()=>I,ny:()=>Wt,Lp:()=>L,Xw:()=>Se,Wx:()=>ve,K3:()=>xe,x0:()=>Y,Yc:()=>X,ov:()=>H,iu:()=>$,w:()=>q,hE:()=>Ce,gO:()=>Ae,jU:()=>ge,AD:()=>ke,QJ:()=>He,TZ:()=>z,tw:()=>W,Zz:()=>T,lF:()=>fe,w4:()=>he,jT:()=>Ne,Gu:()=>ot,a:()=>Re,n6:()=>Ie,aZ:()=>et,Hj:()=>st,n3:()=>Te,EN:()=>V,AL:()=>G,Bd:()=>ue,nW:()=>tt,Xq:()=>Lt,_d:()=>Pe,Ll:()=>le,sc:()=>Dt,CT:()=>mt,lV:()=>ce,HN:()=>ft,mr:()=>yt,V7:()=>J,b0:()=>ut,OP:()=>lt,tk:()=>bt,X3:()=>Tt,FR:()=>It,Al:()=>Ct,Fi:()=>Et,tL:()=>Rt,z2:()=>jt,oK:()=>Mt,aF:()=>ct,Te:()=>Ot,ku:()=>St,V9:()=>Pt,iV:()=>Nt,Hb:()=>Ft,es:()=>At,M8:()=>_t,Qh:()=>dt,AY:()=>gt,h0:()=>ye,TR:()=>Oe,bR:()=>rt,PU:()=>be,_Y:()=>O,c8:()=>Ee,ko:()=>nt,wY:()=>ze,bb:()=>Ut,C5:()=>K,Aw:()=>Q});var r=n(462),i=n(48438),a=n(86022),o=n(78166),s=n(34520),l=n(47281),c=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},u=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},d=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},h=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},f=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},p=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},g=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,m=3,y=[["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;
2\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",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],b=[["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 v(e){return e?w(e):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new p:"undefined"!==typeof navigator?w(navigator.userAgent):"undefined"!==typeof process&&process.version?new d(process.version.slice(1)):null}function x(e){return""!==e&&y.reduce((function(t,n){var r=n[0],i=n[1];if(t)return t;var a=i.exec(e);return!!a&&[r,a]}),!1)}function w(e){var t=x(e);if(!t)return null;var n=t[0],r=t[1];if("searchbot"===n)return new f;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<m&&(i=c(c([],i,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(m-i.length),!0)):i=[];var a=i.join("."),o=function(e){for(var t=0,n=b.length;t<n;t++){var r=b[t],i=r[0];if(r[1].exec(e))return i}return null}(e),s=g.exec(e);return s&&s[1]?new h(n,a,o,s[1]):new u(n,a,o)}var k=n(50878),A=n(72146),E=n(5509),S=n(78830);const P={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},C=":";function O(e){const[t,n]=e.split(C);return{namespace:t,reference:n}}function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return Object.keys(e).forEach((r=>{if(t.length&&!t.includes(r))return;const i=e[r];n.push(...i.accounts)})),n}function N(e,t){return e.includes(":")?[e]:t.chains||[]}const _="base10",I="base16",R="base64pad",M="utf8",j=0,L=1,B=0,F=1,D=12,U=32;function z(){const e=s.TZ();return{privateKey:(0,l.dI)(e.secretKey,I),publicKey:(0,l.dI)(e.publicKey,I)}}function W(){const e=(0,a.randomBytes)(U);return(0,l.dI)(e,I)}function H(e,t){const n=s.Tc((0,l.sH)(e,I),(0,l.sH)(t,I),!0),r=new i.i(o.aD,n).expand(U);return(0,l.dI)(r,I)}function V(e){const t=(0,o.tW)((0,l.sH)(e,I));return(0,l.dI)(t,I)}function G(e){const t=(0,o.tW)((0,l.sH)(e,M));return(0,l.dI)(t,I)}function Y(e){return Number((0,l.dI)(e,_))}function q(e){const t=function(e){return(0,l.sH)(`${e}`,_)}(typeof e.type<"u"?e.type:j);if(Y(t)===L&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?(0,l.sH)(e.senderPublicKey,I):void 0,i=typeof e.iv<"u"?(0,l.sH)(e.iv,I):(0,a.randomBytes)(D);
2return function(e){if(Y(e.type)===L){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return(0,l.dI)((0,l.xW)([e.type,e.senderPublicKey,e.iv,e.sealed]),R)}return(0,l.dI)((0,l.xW)([e.type,e.iv,e.sealed]),R)}({type:t,sealed:new r.g6((0,l.sH)(e.symKey,I)).seal(i,(0,l.sH)(e.message,M)),iv:i,senderPublicKey:n})}function X(e){const t=new r.g6((0,l.sH)(e.symKey,I)),{sealed:n,iv:i}=$(e.encoded),a=t.open(i,n);if(null===a)throw new Error("Failed to decrypt");return(0,l.dI)(a,M)}function $(e){const t=(0,l.sH)(e,R),n=t.slice(B,F),r=F;if(Y(n)===L){const e=r+U,i=e+D,a=t.slice(r,e),o=t.slice(e,i);return{type:n,sealed:t.slice(i),iv:o,senderPublicKey:a}}const i=r+D,a=t.slice(r,i);return{type:n,sealed:t.slice(i),iv:a}}function K(e,t){const n=$(e);return Q({type:Y(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?(0,l.dI)(n.senderPublicKey,I):void 0,receiverPublicKey:null===t||void 0===t?void 0:t.receiverPublicKey})}function Q(e){const t=(null===e||void 0===e?void 0:e.type)||j;if(t===L){if(typeof(null===e||void 0===e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null===e||void 0===e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null===e||void 0===e?void 0:e.senderPublicKey,receiverPublicKey:null===e||void 0===e?void 0:e.receiverPublicKey}}function J(e){return e.type===L&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var Z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ie=(e,t)=>{for(var n in t||(t={}))te.call(t,n)&&re(e,n,t[n]);if(ee)for(var n of ee(t))ne.call(t,n)&&re(e,n,t[n]);return e};const ae="ReactNative",oe={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},se="js";function le(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function ce(){return!(0,A.getDocument)()&&!!(0,A.getNavigator)()&&navigator.product===ae}function ue(){return!le()&&!!(0,A.getNavigator)()&&!!(0,A.getDocument)()}function de(){return ce()?oe.reactNative:le()?oe.node:ue()?oe.browser:oe.unknown}function he(){var e;try{return ce()&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Application)<"u"?null==(e=n.g.Application)?void 0:e.applicationId:void 0}catch{return}}function fe(){return(0,E.g)()||{name:"",description:"",url:"",icons:[""]}}function pe(e,t,r){const i=function(){if(de()===oe.reactNative&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Platform)<"u"){const{OS:e,Version:t}=n.g.Platform;return[e,t].join("-")}const e=v();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),a=function(){var e;const t=de();return t===oe.browser?[t,(null==(e=(0,A.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[se,r].join("-"),i,a].join("/")}function ge(e){let{protocol:t,version:n,relayUrl:r,sdkVersion:i,auth:a,projectId:o,useOnCloseEvent:s,bundleId:l}=e;const c=r.split("?"),u={auth:a,ua:pe(t,n,i),projectId:o,useOnCloseEvent:s||void 0,origin:l||void 0},d=function(e,t){let n=S.parse(e);return n=ie(ie({},n),t),S.stringify(n)}(c[1]||"",u);return c[0]+"?"+d}function me(e,t){return e.filter((e=>t.includes(e))).length===e.length}function ye(e){return Object.fromEntries(e.entries())}function be(e){return new Map(Object.entries(e))}function ve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k.FIVE_MINUTES,t=arguments.length>1?arguments[1]:void 0;const n=(0,k.toMiliseconds)(e||k.FIVE_MINUTES);let r,i,a;return{resolve:e=>{a&&r&&(clearTimeout(a),r(e))},reject:e=>{a&&i&&(clearTimeout(a),i(e))},done:()=>new Promise(((e,o)=>{a=setTimeout((()=>{o(new Error(t))}),n),r=e,i=o}))}}function xe(e,t,n){return new Promise((async(r,i)=>{const a=setTimeout((()=>i(new Error(n))),t);try{r(await e)}catch(o){i(o)}clearTimeout(a)}))}function we(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw new Error(`Unknown expirer target type: ${e}`)}function ke(e){return we("topic",e)}function Ae(e){return we("id",e)}function Ee(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error(`Invalid target, expected id:number or topic:string, got ${t}:${n}`);r.id=Number(n)}return r}function Se(e,t){return(0,k.fromMiliseconds)((t||Date.now())+(0,k.toMiliseconds)(e))}function Pe(e){return Date.now()>=(0,k.toMiliseconds)(e)}function Ce(e,t){return`${e}${t?`:${t}`:""}`}function Oe(){return[...new Set([...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]])]}async function Te(e){let{id:t,topic:r,wcDeepLink:i}=e;try{if(!i)return;const e="string"==typeof i?JSON.parse(i):i;let a=null===e||void 0===e?void 0:e.href;if("string"!=typeof a)return;a.endsWith("/")&&(a=a.slice(0,-1));const o=`${a}/wc?requestId=${t}&sessionTopic=${r}`,s=de();s===oe.browser?o.startsWith("https://")?window.open(o,"_blank","noreferrer noopener"):window.open(o,"_self","noreferrer noopener"):s===oe.reactNative&&typeof(null==n.g?void 0:n.g.Linking)<"u"&&await n.g.Linking.openURL(o)}catch(a){console.error(a)}}async function Ne(e,t){try{return await e.getItem(t)||(ue()?localStorage.getItem(t):void 0)}catch(n){console.error(n)}}const _e="irn";function Ie(e){return(null===e||void 0===e?void 0:e.relay)||{protocol:_e}}function Re(e){const t=P[e];if(typeof t>"u")throw new Error(`Relay Protocol not supported: ${e}`);return t}var Me=Object.defineProperty,je=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Fe=(e,t,n)=>t in e?Me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,De=(e,t)=>{for(var n in t||(t={}))Le.call(t,n)&&Fe(e,n,t[n]);if(je)for(var n of je(t))Be.call(t,n)&&Fe(e,n,t[n]);return e};function Ue(e){const t={},n="relay"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-");return Object.keys(e).forEach((r=>{if(r.startsWith(n)){const i=r.replace(n,""),a=e[r];t[i]=a}})),t}function ze(e){const t=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),i=e.substring(t+1,n).split("@"),a=typeof n<"u"?e.substring(n):"",o=S.parse(a);return{protocol:r,topic:We(i[0]),version:parseInt(i[1],10),symKey:o.symKey,relay:Ue(o)}}function We(e){return e.startsWith("//")?e.substring(2):e}function He(e){return`${e.protocol}
2:${e.topic}@${e.version}?`+S.stringify(De({symKey:e.symKey},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";const n={};return Object.keys(e).forEach((r=>{const i="relay"+t+r;e[r]&&(n[i]=e[r])})),n}(e.relay)))}var Ve=Object.defineProperty,Ge=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ke=(e,t,n)=>t in e?Ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qe=(e,t)=>{for(var n in t||(t={}))Xe.call(t,n)&&Ke(e,n,t[n]);if(qe)for(var n of qe(t))$e.call(t,n)&&Ke(e,n,t[n]);return e},Je=(e,t)=>Ge(e,Ye(t));function Ze(e){const t=[];return e.forEach((e=>{const[n,r]=e.split(":");t.push(`${n}:${r}`)})),t}function et(e,t){const n=Et(e,t);if(n)throw new Error(n.message);const r={};for(const[i,a]of Object.entries(e))r[i]={methods:a.methods,events:a.events,chains:a.accounts.map((e=>`${e.split(":")[0]}:${e.split(":")[1]}`))};return r}function tt(e){return e.includes(":")}function nt(e){return tt(e)?e.split(":")[0]:e}function rt(e){var t,n,r;const i={};if(!ct(e))return i;for(const[a,o]of Object.entries(e)){const e=tt(a)?[a]:o.chains,s=o.methods||[],l=o.events||[],c=nt(a);i[c]=Je(Qe({},i[c]),{chains:Oe(e,null==(t=i[c])?void 0:t.chains),methods:Oe(s,null==(n=i[c])?void 0:n.methods),events:Oe(l,null==(r=i[c])?void 0:r.events)})}return i}const it={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}},at={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 ot(e,t){const{message:n,code:r}=at[e];return{message:t?`${n} ${t}`:n,code:r}}function st(e,t){const{message:n,code:r}=it[e];return{message:t?`${n} ${t}`:n,code:r}}function lt(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function ct(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function ut(e){return typeof e>"u"}function dt(e,t){return!(!t||!ut(e))||"string"==typeof e&&!!e.trim().length}function ht(e,t){return!(!t||!ut(e))||"number"==typeof e&&!isNaN(e)}function ft(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),i=Object.keys(n);let a=!0;return!!me(i,r)&&(r.forEach((t=>{const{accounts:r,methods:i,events:o}=e.namespaces[t],s=Ze(r),l=n[t];(!me(N(t,l),s)||!me(l.methods,i)||!me(l.events,o))&&(a=!1)})),a)}
2function pt(e){return!(!dt(e,!1)||!e.includes(":"))&&2===e.split(":").length}function gt(e){if(dt(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function mt(e){var t;return null==(t=null===e||void 0===e?void 0:e.proposer)?void 0:t.publicKey}function yt(e){return null===e||void 0===e?void 0:e.topic}function bt(e,t){let n=null;return dt(null===e||void 0===e?void 0:e.publicKey,!1)||(n=ot("MISSING_OR_INVALID",`${t} controller public key should be a string`)),n}function vt(e){let t=!0;return lt(e)?e.length&&(t=e.every((e=>dt(e,!1)))):t=!1,t}function xt(e,t,n){let r=null;return Object.entries(e).forEach((e=>{let[i,a]=e;if(r)return;const o=function(e,t,n){let r=null;return lt(t)&&t.length?t.forEach((e=>{r||pt(e)||(r=st("UNSUPPORTED_CHAINS",`${n}, chain ${e} should be a string and conform to "namespace:chainId" format`))})):pt(e)||(r=st("UNSUPPORTED_CHAINS",`${n}, 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"] }`)),r}(i,N(i,a),`${t} ${n}`);o&&(r=o)})),r}function wt(e,t){let n=null;return lt(e)?e.forEach((e=>{n||function(e){if(dt(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&pt(e)}}return!1}(e)||(n=st("UNSUPPORTED_ACCOUNTS",`${t}, account ${e} should be a string and conform to "namespace:chainId:address" format`))})):n=st("UNSUPPORTED_ACCOUNTS",`${t}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),n}function kt(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return vt(null===e||void 0===e?void 0:e.methods)?vt(null===e||void 0===e?void 0:e.events)||(n=st("UNSUPPORTED_EVENTS",`${t}, events should be an array of strings or empty array for no events`)):n=st("UNSUPPORTED_METHODS",`${t}, methods should be an array of strings or empty array for no methods`),n}(e,`${t}, namespace`);r&&(n=r)})),n}function At(e,t,n){let r=null;if(e&&ct(e)){const i=kt(e,t);i&&(r=i);const a=xt(e,t,n);a&&(r=a)}else r=ot("MISSING_OR_INVALID",`${t}, ${n} should be an object with data`);return r}function Et(e,t){let n=null;if(e&&ct(e)){const r=kt(e,t);r&&(n=r);const i=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=wt(null===e||void 0===e?void 0:e.accounts,`${t} namespace`);r&&(n=r)})),n}(e,t);i&&(n=i)}else n=ot("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return n}function St(e){return dt(e.protocol,!0)}function Pt(e,t){let n=!1;return t&&!e?n=!0:e&<(e)&&e.length&&e.forEach((e=>{n=St(e)})),n}function Ct(e){return"number"==typeof e}function Ot(e){return typeof e<"u"&&null!==typeof e}function Tt(e){return!(!e||"object"!=typeof e||!e.code||!ht(e.code,!1)||!e.message||!dt(e.message,!1))}function Nt(e){return!(ut(e)||!dt(e.method,!1))}function _t(e){return!(ut(e)||ut(e.result)&&ut(e.error)||!ht(e.id,!1)||!dt(e.jsonrpc,!1))}function It(e){return!(ut(e)||!dt(e.name,!1))}function Rt(e,t){return!(!pt(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...Ze(e.accounts))})),t}(e).includes(t))}function Mt(e,t,n){return!!dt(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Ze(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function jt(e,t,n){return!!dt(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{Ze(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function Lt(e,t,n){let r=null;const i=function(e){const t={};return Object.keys(e).forEach((n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((r=>{t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),a=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const r=Ze(e[n].accounts);null===r||void 0===r||r.forEach((r=>{t[r]={accounts:e[n].accounts.filter((e=>e.includes(`${r}:`))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),o=Object.keys(i),s=Object.keys(a),l=Bt(Object.keys(e)),c=Bt(Object.keys(t)),u=l.filter((e=>!c.includes(e)));return u.length&&(r=ot("NON_CONFORMING_NAMESPACES",`${n} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(t).toString()}`)),me(o,s)||(r=ot("NON_CONFORMING_NAMESPACES",`${n} namespaces chains don't satisfy required namespaces.\n Required: ${o.toString()}\n Approved: ${s.toString()}`)),Object.keys(t).forEach((e=>{if(!e.includes(":")||r)return;const i=Ze(t[e].accounts);i.includes(e)||(r=ot("NON_CONFORMING_NAMESPACES",`${n} namespaces accounts don't satisfy namespace accounts for ${e}\n Required: ${e}\n Approved: ${i.toString()}`))})),o.forEach((e=>{r||(me(i[e].methods,a[e].methods)?me(i[e].events,a[e].events)||(r=ot("NON_CONFORMING_NAMESPACES",`${n} namespaces events don't satisfy namespace events for ${e}`)):r=ot("NON_CONFORMING_NAMESPACES",`${n} namespaces methods don't satisfy namespace methods for ${e}`))})),r}function Bt(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function Ft(e,t){return ht(e,!1)&&e<=t.max&&e>=t.min}function Dt(){const e=de();return new Promise((t=>{switch(e){case oe.browser:t(function(){var e;return ue()&&(null===(e=navigator)||void 0===e?void 0:e.onLine)}());break;case oe.reactNative:t(async function(){if(ce()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo){const e=await(null==n.g?void 0:n.g.NetInfo.fetch());return null===e||void 0===e?void 0:e.isConnected}return!0}());break;case oe.node:default:t(!0)}}))}function Ut(e){switch(de()){case oe.browser:!function(e){!ce()&&ue()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case oe.reactNative:!function(e){var t;ce()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo&&(null===(t=n.g)||void 0===t||t.NetInfo.addEventListener((t=>e(null===t||void 0===t?void 0:t.isConnected))))}(e);case oe.node:}}const zt={};class Wt{static get(e){return zt[e]}static set(e,t){zt[e]=t}static delete(e){delete zt[e]}}},75897:(e,t,n)=>{"use strict";var r,i,a,o=n(64122),s=n(56412),l=n(29310),c=n(61335),u=n(30421),d=n(23873),h=n(3051),f=n(54801),p="Object already initialized",g
2=s.TypeError,m=s.WeakMap;if(o||d.state){var y=d.state||(d.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new g(p);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},a=function(e){return y.has(e)}}else{var b=h("state");f[b]=!0,r=function(e,t){if(u(e,b))throw new g(p);return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},76040:(e,t,n)=>{"use strict";var r=n(251);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},76102:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},76131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0;const r=n(40387);t.wordlists={en:r.LangEn.wordlist()}},76274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const r=n(82071),i=n(24839);let a=!1;const o=function(e,t,n,i,a){return(0,r.pbkdf2Sync)(e,t,n,i,a)};let s=o;function l(e,t,n,r,a){const o=(0,i.getBytes)(e,"password"),l=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(s(o,l,n,r,a))}t.pbkdf2=l,l._=o,l.lock=function(){a=!0},l.register=function(e){if(a)throw new Error("pbkdf2 is locked");s=e},Object.freeze(l)},76886:function(e,t){"use strict";var n,r,i,a=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},o=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.AES=void 0;const s={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],c=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3
2025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],h=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,111
25438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],f=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],p=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428
2677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],m=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,18625348
268,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],b=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,6454
201037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],v=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],x=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,12
201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],w=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],k=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861
vendor: 4,969 bytes, line 2
2748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(e){const t=[];for(let n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}class E{get key(){return a(this,n,"f").slice()}constructor(e){if(n.set(this,void 0),r.set(this,void 0),i.set(this,void 0),!(this instanceof E))throw Error("AES must be instanitated with `new`");o(this,n,new Uint8Array(e),"f");const t=s[this.key.length];if(null==t)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");o(this,i,[],"f"),o(this,r,[],"f");for(let n=0;n<=t;n++)a(this,i,"f").push([0,0,0,0]),a(this,r,"f").push([0,0,0,0]);const u=4*(t+1),d=this.key.length/4,h=A(this.key);let f;for(let n=0;n<d;n++)f=n>>2,a(this,i,"f")[f][n%4]=h[n],a(this,r,"f")[t-f][n%4]=h[n];let p,g=0,m=d;for(;m<u;){if(p=h[d-1],h[0]^=c[p>>16&255]<<24^c[p>>8&255]<<16^c[255&p]<<8^c[p>>24&255]^l[g]<<24,g+=1,8!=d)for(let t=1;t<d;t++)h[t]^=h[t-1];else{for(let e=1;e<d/2;e++)h[e]^=h[e-1];p=h[d/2-1],h[d/2]^=c[255&p]^c[p>>8&255]<<8^c[p>>16&255]<<16^c[p>>24&255]<<24;for(let e=d/2+1;e<d;e++)h[e]^=h[e-1]}let e,n,o=0;for(;o<d&&m<u;)e=m>>2,n=m%4,a(this,i,"f")[e][n]=h[o],a(this,r,"f")[t-e][n]=h[o++],m++}for(let n=1;n<t;n++)for(let e=0;e<4;e++)p=a(this,r,"f")[n][e],a(this,r,"f")[n][e]=v[p>>24&255]^x[p>>16&255]^w[p>>8&255]^k[255&p]}encrypt(e){if(16!=e.length)throw new TypeError("invalid plaintext size (must be 16 bytes)");const t=a(this,i,"f").length-1,n=[0,0,0,0];let r=A(e);for(let l=0;l<4;l++)r[l]^=a(this,i,"f")[0][l];for(let l=1;l<t;l++){for(let e=0;e<4;e++)n[e]=d[r[e]>>24&255]^h[r[(e+1)%4]>>16&255]^f[r[(e+2)%4]>>8&255]^p[255&r[(e+3)%4]]^a(this,i,"f")[l][e];r=n.slice()}const o=new Uint8Array(16);let s=0;for(let l=0;l<4;l++)s=a(this,i,"f")[t][l],o[4*l]=255&(c[r[l]>>24&255]^s>>24),o[4*l+1]=255&(c[r[(l+1)%4]>>16&255]^s>>16),o[4*l+2]=255&(c[r[(l+2)%4]>>8&255]^s>>8),o[4*l+3]=255&(c[255&r[(l+3)%4]]^s);return o}decrypt(e){if(16!=e.length)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const t=a(this,r,"f").length-1,n=[0,0,0,0];let i=A(e);for(let l=0;l<4;l++)i[l]^=a(this,r,"f")[0][l];for(let l=1;l<t;l++){for(let e=0;e<4;e++)n[e]=g[i[e]>>24&255]^m[i[(e+3)%4]>>16&255]^y[i[(e+2)%4]>>8&255]^b[255&i[(e+1)%4]]^a(this,r,"f")[l][e];i=n.slice()}const o=new Uint8Array(16);let s=0;for(let l=0;l<4;l++)s=a(this,r,"f")[t][l],o[4*l]=255&(u[i[l]>>24&255]^s>>24),o[4*l+1]=255&(u[i[(l+3)%4]>>16&255]^s>>16),o[4*l+2]=255&(u[i[(l+2)%4]>>8&255]^s>>8),o[4*l+3]=255&(u[255&i[(l+1)%4]]^s);return o}}t.AES=E,n=new WeakMap,r=new WeakMap,i=new WeakMap},76958:(e,t,n)=>{var r=n(73616);e.exports=function(){this.__data__=r?r(null):{},this.size=0}}
2,76989:(e,t,n)=>{"use strict";var r=n(78307);e.exports=Function.prototype.bind||r},77042:(e,t,n)=>{"use strict";var r,i=n(29460),a=n(24553);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var o=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=o&&"function"===typeof o.get?i([o.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},77101:(e,t,n)=>{var r=n(94672);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},77134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;const r=n(9073),i=n(55114),a=n(69687),o=n(20022),s=n(24839),l=n(28070),c=n(49366),u="m/44'/60'/0'/0/0";function d(e,t){const n=(0,s.getBytes)(t),c=(0,l.spelunk)(e,"crypto.ciphertext:data!"),d=(0,s.hexlify)((0,a.keccak256)((0,s.concat)([n.slice(16,32),c]))).substring(2);(0,s.assertArgument)(d===(0,l.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const h=function(e,t,n){if("aes-128-ctr"===(0,l.spelunk)(e,"crypto.cipher:string")){const i=(0,l.spelunk)(e,"crypto.cipherparams.iv:data!"),a=new r.CTR(t,i);return(0,s.hexlify)(a.decrypt(n))}(0,s.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,n.slice(0,16),c),f=(0,o.computeAddress)(h);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),(0,s.assertArgument)((0,i.getAddress)(t)===f,"keystore address/privateKey mismatch","address",e.address)}const p={address:f,privateKey:h};if("0.1"===(0,l.spelunk)(e,"x-ethers.version:string")){const t=n.slice(32,64),i=(0,l.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),a=(0,l.spelunk)(e,"x-ethers.mnemonicCounter:data!"),o=new r.CTR(t,a);p.mnemonic={path:(0,l.spelunk)(e,"x-ethers.path:string")||u,locale:(0,l.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,s.hexlify)((0,s.getBytes)(o.decrypt(i)))}}return p}function h(e){const t=(0,l.spelunk)(e,"crypto.kdf:string");if(t&&"string"===typeof t){if("scrypt"===t.toLowerCase()){const n=(0,l.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,l.spelunk)(e,"crypto.kdfparams.n:int!"),i=(0,l.spelunk)(e,"crypto.kdfparams.r:int!"),a=(0,l.spelunk)(e,"crypto.kdfparams.p:int!");(0,s.assertArgument)(r>0&&0===(r&r-1),"invalid kdf.N","kdf.N",r),(0,s.assertArgument)(i>0&&a>0,"invalid kdf","kdf",t);const o=(0,l.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,s.assertArgument)(32===o,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:n,N:r,r:i,p:a,dkLen:64}}if("pbkdf2"===t.toLowerCase()){const t=(0,l.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,l.spelunk)(e,"crypto.kdfparams.prf:string!"),r=n.split("-").pop();(0,s.assertArgument)("sha256"===r||"sha512"===r,"invalid kdf.pdf","kdf.pdf",n);const i=(0,l.spelunk)(e,"crypto.kdfparams.c:int!"),a=(0,l.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,s.assertArgument)(32===a,"invalid kdf.dklen","kdf.dklen",a),{name:"pbkdf2",salt:t,count:i,dkLen:a,algorithm:r}}}(0,s.assertArgument)(!1,"unsupported key-derivation function","kdf",t)}function f(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function p(e){const t=null!=e.salt?(0,s.getBytes)(e.salt,"options.salt"):(0,a.randomBytes)(32);let n=1<<17,r=8,i=1;return e.scrypt&&(e.scrypt.N&&(n=e.scrypt.N),e.scrypt.r&&(r=e.scrypt.r),e.scrypt.p&&(i=e.scrypt.p)),(0,s.assertArgument)("number"===typeof n&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),(0,s.assertArgument)("number"===typeof r&&r>0&&Number.isSafeInteger(r),"invalid scrypt r parameter","options.r",r),(0,s.assertArgument)("number"===typeof i&&i>0&&Number.isSafeInteger(i),"invalid scrypt p parameter","options.p",i),{name:"scrypt",dkLen:32,salt:t,N:n,r:r,p:i}}function g(e,t,n,i){const o=(0,s.getBytes)(n.privateKey,"privateKey"),d=null!=i.iv?(0,s.getBytes)(i.iv,"options.iv"):(0,a.randomBytes)(16);(0,s.assertArgument)(16===d.length,"invalid options.iv length","options.iv",i.iv);const h=null!=i.uuid?(0,s.getBytes)(i.uuid,"options.uuid"):(0,a.randomBytes)(16);(0,s.assertArgument)(16===h.length,"invalid options.uuid length","options.uuid",i.iv);const f=e.slice(0,16),p=e.slice(16,32),g=new r.CTR(f,d),m=(0,s.getBytes)(g.encrypt(o)),y=(0,a.keccak256)((0,s.concat)([p,m])),b={address:n.address.substring(2).toLowerCase(),id:(0,s.uuidV4)(h),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,s.hexlify)(d).substring(2)},ciphertext:(0,s.hexlify)(m).substring(2),kdf:"scrypt",kdfparams:{salt:(0,s.hexlify)(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:y.substring(2)}};if(n.mnemonic){const t=null!=i.client?i.client:`ethers/${c.version}`,o=n.mnemonic.path||u,d=n.mnemonic.locale||"en",h=e.slice(32,64),f=(0,s.getBytes)(n.mnemonic.entropy,"account.mnemonic.entropy"),p=(0,a.randomBytes)(16),g=new r.CTR(h,p),m=(0,s.getBytes)(g.encrypt(f)),y=new Date,v="UTC--"+(y.getUTCFullYear()+"-"+(0,l.zpad)(y.getUTCMonth()+1,2)+"-"+(0,l.zpad)(y.getUTCDate(),2)+"T"+(0,l.zpad)(y.getUTCHours(),2)+"-"+(0,l.zpad)(y.getUTCMinutes(),2)+"-"+(0,l.zpad)(y.getUTCSeconds(),2)+".0Z")+"--"+b.address;b["x-ethers"]={client:t,gethFilename:v,path:o,locale:d,mnemonicCounter:(0,s.hexlify)(p).substring(2),mnemonicCiphertext:(0,s.hexlify)(m).substring(2),version:"0.1"}}return JSON.stringify(b)}t.isKeystoreJson=function(e){try{const t=JSON.parse(e);if(3===(null!=t.version?parseInt(t.version):0))return!0}catch(t){}return!1},t.decryptKeystoreJsonSync=function(e,t){const n=JSON.parse(e),r=(0,l.getPassword)(t),i=h(n);if("pbkdf2"===i.name){const{salt:e,count:t,dkLen:o,algorithm:s}
2=i;return d(n,(0,a.pbkdf2)(r,e,t,o,s))}(0,s.assert)("scrypt"===i.name,"cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:c,r:u,p:f,dkLen:p}=i;return d(n,(0,a.scryptSync)(r,o,c,u,f,p))},t.decryptKeystoreJson=async function(e,t,n){const r=JSON.parse(e),i=(0,l.getPassword)(t),o=h(r);if("pbkdf2"===o.name){n&&(n(0),await f(0));const{salt:e,count:t,dkLen:s,algorithm:l}=o,c=(0,a.pbkdf2)(i,e,t,s,l);return n&&(n(1),await f(0)),d(r,c)}(0,s.assert)("scrypt"===o.name,"cannot be reached","UNKNOWN_ERROR",{params:o});const{salt:c,N:u,r:p,p:g,dkLen:m}=o;return d(r,await(0,a.scrypt)(i,c,u,p,g,m,n))},t.encryptKeystoreJsonSync=function(e,t,n){null==n&&(n={});const r=(0,l.getPassword)(t),i=p(n),o=(0,a.scryptSync)(r,i.salt,i.N,i.r,i.p,64);return g((0,s.getBytes)(o),i,e,n)},t.encryptKeystoreJson=async function(e,t,n){null==n&&(n={});const r=(0,l.getPassword)(t),i=p(n),o=await(0,a.scrypt)(r,i.salt,i.N,i.r,i.p,64,n.progressCallback);return g((0,s.getBytes)(o),i,e,n)}},77736:(e,t,n)=>{var r=n(73738).default,i=n(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},77859:(e,t,n)=>{var r=n(77101);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},78133:(e,t,n)=>{"use strict";var r=n(76040),i=n(43626),a=n(27149),o=n(46635),s=n(23089),l=n(83636);t.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=s(t),i=l(t),c=i.length,u=0;c>u;)a.f(e,n=i[u++],r[n]);return e}},78166:(e,t,n)=>{"use strict";var r=n(13310),i=n(95070);t.On=32,t.cS=64;var a=function(){function e(){this.digestLength=t.On,this.blockSize=t.cS,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 e.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},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,i=t/536870912|0,a=t<<3,o=t%64<56?64:128;this._buffer[n]=128;for(var l=n+1;l<o-8;l++)this._buffer[l]=0;r.writeUint32BE(i,this._buffer,o-8),r.writeUint32BE(a,this._buffer,o-4),s(this._temp,this._state,this._buffer,0,o),this._finished=!0}for(l=0;l<this.digestLength/4;l++)r.writeUint32BE(this._state[l],e,4*l);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.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}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){i.wipe(e.state),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.aD=a;var o=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,2756
2734187,3204031479,3329325298]);function s(e,t,n,i,a){for(;a>=64;){for(var s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],h=t[5],f=t[6],p=t[7],g=0;g<16;g++){var m=i+4*g;e[g]=r.readUint32BE(n,m)}for(g=16;g<64;g++){var y=e[g-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[g-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[g]=(b+e[g-7]|0)+(v+e[g-16]|0)}for(g=0;g<64;g++){b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(p+(o[g]+e[g]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&l^s&c^l&c)|0;p=f,f=h,h=d,d=u+b|0,u=c,c=l,l=s,s=b+v|0}t[0]+=s,t[1]+=l,t[2]+=c,t[3]+=u,t[4]+=d,t[5]+=h,t[6]+=f,t[7]+=p,i+=64,a-=64}return i}t.tW=function(e){var t=new a;t.update(e);var n=t.digest();return t.clean(),n}},78307:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var a,o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments,1),s=n(0,i.length-o.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(a=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var t=i.apply(this,r(o,arguments));return Object(t)===t?t:this}return i.apply(e,r(o,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,a.prototype=new u,u.prototype=null}return a}},78384:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},78563:(e,t,n)=>{"use strict";var r,i,a=n(56412),o=n(80979),s=a.process,l=a.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},78645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;const r=n(55114),i=n(69687),a=n(24839),o=new RegExp("^bytes([0-9]+)$"),s=new RegExp("^(u?int)([0-9]*)$"),l=new RegExp("^(.*)\\[([0-9]*)\\]$");function c(e,t,n){switch(e){case"address":return n?(0,a.getBytes)((0,a.zeroPadValue)(t,32)):(0,a.getBytes)((0,r.getAddress)(t));case"string":return(0,a.toUtf8Bytes)(t);case"bytes":return(0,a.getBytes)(t);case"bool":return t=t?"0x01":"0x00",n?(0,a.getBytes)((0,a.zeroPadValue)(t,32)):(0,a.getBytes)(t)}let i=e.match(s);if(i){let r="int"===i[1],o=parseInt(i[2]||"256");return(0,a.assertArgument)((!i[2]||i[2]===String(o))&&o%8===0&&0!==o&&o<=256,"invalid number type","type",e),n&&(o=256),r&&(t=(0,a.toTwos)(t,o)),(0,a.getBytes)((0,a.zeroPadValue)((0,a.toBeArray)(t),o/8))}if(i=e.match(o),i){const r=parseInt(i[1]);return(0,a.assertArgument)(String(r)===i[1]&&0!==r&&r<=32,"invalid bytes type","type",e),(0,a.assertArgument)((0,a.dataLength)(t)===r,`invalid value for ${e}`,"value",t),n?(0,a.getBytes)((0,a.zeroPadBytes)(t,32)):t}if(i=e.match(l),i&&Array.isArray(t)){const n=i[1],r=parseInt(i[2]||String(t.length));(0,a.assertArgument)(r===t.length,`invalid array length for ${e}`,"value",t);const o=[];return t.forEach((function(e){o.push(c(n,e,!0))})),(0,a.getBytes)((0,a.concat)(o))}(0,a.assertArgument)(!1,"invalid type","type",e)}function u(e,t){(0,a.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(c(e,t[r]))})),(0,a.hexlify)((0,a.concat)(n))}t.solidityPacked=u,t.solidityPackedKeccak256=function(e,t){return(0,i.keccak256)(u(e,t))},t.solidityPackedSha256=function(e,t){return(0,i.sha256)(u(e,t))}},78716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const r=n(85339);t.uuidV4=function(e){const t=(0,r.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=(0,r.hexlify)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},78753:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(3023),i=n(94441);const a=/^0x[a-fA-F0-9]{40}$/,o=new r.A(8192);function s(e,t){const{strict:n=!0}=null!==t&&void 0!==t?t:{},r=`${e}.${n}`;if(o.has(r))return o.get(r);const s=!!a.test(e)&&(e.toLowerCase()===e||!n||(0,i.o)(e)===e);return o.set(r,s),s}}
2,78802:(e,t,n)=>{"use strict";n.d(t,{zX:()=>y,bG:()=>b,M:()=>v,rR:()=>x,Po:()=>w,$S:()=>k});var r=n(6169),i=n(71125),a=n(39510),o=n(69679),s=n(83855);function l(e){let{abiItem:t,args:n,includeFunctionName:r=!0,includeName:i=!1}=e;if("name"in t&&"inputs"in t&&t.inputs)return`${r?t.name:""}(${t.inputs.map(((e,t)=>`${i&&e.name?`${e.name}: `:""}${"object"===typeof n[t]?(0,s.A)(n[t]):n[t]}`)).join(", ")})`}var c=n(63898),u=n(7628),d=n(70246),h=n(89676),f=n(36026),p=n(87939),g=n(85038),m=n(48283);class y extends f.C{constructor(e,t){var n;let{account:i,docsPath:a,chain:o,data:s,gas:l,gasPrice:c,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:m,to:y,value:b,stateOverride:v}=t;const x=i?(0,r.J)(i):void 0;let w=(0,g.aO)({from:null===x||void 0===x?void 0:x.address,to:y,value:"undefined"!==typeof b&&`${(0,u.c)(b)} ${(null===o||void 0===o||null===(n=o.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:s,gas:l,gasPrice:"undefined"!==typeof c&&`${(0,d.Q)(c)} gwei`,maxFeePerGas:"undefined"!==typeof h&&`${(0,d.Q)(h)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof f&&`${(0,d.Q)(f)} gwei`,nonce:m});v&&(w+=`\n${(0,p.uj)(v)}`),super(e.shortMessage,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",w].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class b extends f.C{constructor(e,t){var n;let{abi:r,args:i,contractAddress:a,docsPath:s,functionName:u,sender:d}=t;const h=(0,c.iY)({abi:r,args:i,name:u}),f=h?l({abiItem:h,args:i,includeFunctionName:!1,includeName:!1}):void 0,p=h?(0,o.B)(h,{includeName:!0}):void 0,y=(0,g.aO)({address:a&&(0,m.R)(a),function:p,args:f&&"()"!==f&&`${[...Array(null!==(n=null===u||void 0===u?void 0:u.length)&&void 0!==n?n:0).keys()].map((()=>" ")).join("")}${f}`,sender:d});super(e.shortMessage||`An unknown error occurred while executing the contract function "${u}".`,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],y&&"Contract Call:",y].filter(Boolean),name:"ContractFunctionExecutionError"}),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}),this.abi=r,this.args=i,this.cause=e,this.contractAddress=a,this.functionName=u,this.sender=d}}class v extends f.C{constructor(e){let t,n,r,s,c,{abi:u,data:d,functionName:f,message:p}=e;if(d&&"0x"!==d)try{n=(0,a.W)({abi:u,data:d});const{abiItem:e,errorName:t,args:c}=n;if("Error"===t)s=c[0];else if("Panic"===t){const[e]=c;s=i.fD[e]}else{var g;const n=e?(0,o.B)(e,{includeName:!0}):void 0,i=e&&c?l({abiItem:e,args:c,includeFunctionName:!1,includeName:!1}):void 0;r=[n?`Error: ${n}`:"",i&&"()"!==i?` ${[...Array(null!==(g=null===t||void 0===t?void 0:t.length)&&void 0!==g?g:0).keys()].map((()=>" ")).join("")}${i}`:""]}}catch(m){t=m}else p&&(s=p);t instanceof h.Wq&&(c=t.signature,r=[`Unable to decode signature "${c}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${c}.`]),super(s&&"execution reverted"!==s||c?[`The contract function "${f}" reverted with the following ${c?"signature":"reason"}:`,s||c].join("\n"):`The contract function "${f}" reverted.`,{cause:t,metaMessages:r,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n,this.raw=d,this.reason=s,this.signature=c}}class x extends f.C{constructor(e){let{functionName:t}=e;super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class w extends f.C{constructor(e){let{factory:t}=e;super("Deployment for counterfactual contract call failed"+(t?` for factory "${t}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class k extends f.C{constructor(e){let{data:t,message:n}=e;super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}},78830:(e,t,n)=>{"use strict";const r=n(76102),i=n(96844),a=n(83942),o=n(68881),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"===typeof n&&n.includes(e.arrayFormatSeparator),a="string"===typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=a?u(n,e):n;const o=i||a?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=o};case"bracket-separator":return(t,n,r)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(r[t]=n?u(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],a):r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,o]=a(t.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:u(o,t),n(u(e,t),o,r)}for(const i of Object.keys(r)){const e=r[i];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=p(e[n],t);else r[i]=p(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,e),t,c(i,e)].join("")]:[[r,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};
2for(const o of Object.keys(e))n(o)||(i[o]=e[o]);const a=Object.keys(i);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=a(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=h(e.url).split("?")[0]||"",i=t.extract(e.url),a=t.parse(i,{sort:!1}),o=Object.assign(a,e.query);let l=t.stringify(o,n);l&&(l=`?${l}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${l}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:a,fragmentIdentifier:l}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:o(a,n),fragmentIdentifier:l},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},78857:(e,t,n)=>{var r=n(29343),i=n(84753),a=n(65916),o=n(92535);e.exports=function(e){return a(e)?r(o(e)):i(e)}},78967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const r=n(85125),i=n(50638),a=n(50638),o=n(65664);const{bytesToNumberBE:s,hexToBytes:l}=i;t.DER={Err:class extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},_parseInt(e){const{Err:n}=t.DER;if(e.length<2||2!==e[0])throw new n("Invalid signature integer tag");const r=e[1],i=e.subarray(2,r+2);if(!r||i.length!==r)throw new n("Invalid signature integer: wrong length");if(128&i[0])throw new n("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:s(i),l:e.subarray(r+2)}},toSig(e){const{Err:n}=t.DER,r="string"===typeof e?l(e):e;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let i=r.length;if(i<2||48!=r[0])throw new n("Invalid signature tag");if(r[1]!==i-2)throw new n("Invalid signature: incorrect length");const{d:a,l:o}=t.DER._parseInt(r.subarray(2)),{d:s,l:c}=t.DER._parseInt(o);if(c.length)throw new n("Invalid signature: left bytes after parsing");return{r:a,s:s}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},r=t(n(e.s)),i=t(n(e.r)),a=r.length/2,o=i.length/2,s=n(a),l=n(o);return`30${n(o+a+4)}02${l}${i}02${s}${r}`}};const c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(e){const t=function(e){const t=(0,o.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:a}=t;if(n){if(!r.eql(a,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==typeof n||"bigint"!==typeof n.beta||"function"!==typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,s=t.toBytes||((e,t,r)=>{const a=t.toAffine();return i.concatBytes(Uint8Array.from([4]),n.toBytes(a.x),n.toBytes(a.y))}),l=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function d(e){const{a:r,b:i}=t,a=n.sqr(e),o=n.mul(a,e);return n.add(n.add(o,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function f(e){return"bigint"===typeof e&&c<e&&e<t.n}function p(e){if(!f(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function g(e){const{allowedPrivateKeyLengths:n,nByteLength:o,wrapPrivateKey:s,n:l}=t;if(n&&"bigint"!==typeof e){if(e instanceof Uint8Array&&(e=i.bytesToHex(e)),"string"!==typeof e||!n.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*o,"0")}let c;try{c="bigint"===typeof e?e:i.bytesToNumberBE((0,a.ensureBytes)("private key",e,o))}catch(u){throw new Error(`private key must be ${o} bytes, hex or bigint, not ${typeof e}`)}return s&&(c=r.mod(c,l)),p(c),c}const m=new Map;function y(e){if(!(e instanceof b))throw new Error("ProjectivePoint expected")}class b{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required")}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error("invalid affine point");if(e instanceof b)throw new Error("projective point not allowed");const i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?b.ZERO:new b(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(l((0,a.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(g(e))}_setWindowSize(e){this._WINDOW_SIZE=e,m.delete(this)}
2assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const i=n.sqr(r),a=d(e);if(!n.eql(i,a))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){y(e);const{px:t,py:r,pz:i}=this,{px:a,py:o,pz:s}=e,l=n.eql(n.mul(t,s),n.mul(a,i)),c=n.eql(n.mul(r,s),n.mul(o,i));return l&&c}negate(){return new b(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,i=n.mul(r,h),{px:a,py:o,pz:s}=this;let l=n.ZERO,c=n.ZERO,u=n.ZERO,d=n.mul(a,a),f=n.mul(o,o),p=n.mul(s,s),g=n.mul(a,o);return g=n.add(g,g),u=n.mul(a,s),u=n.add(u,u),l=n.mul(e,u),c=n.mul(i,p),c=n.add(l,c),l=n.sub(f,c),c=n.add(f,c),c=n.mul(l,c),l=n.mul(g,l),u=n.mul(i,u),p=n.mul(e,p),g=n.sub(d,p),g=n.mul(e,g),g=n.add(g,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,p),d=n.mul(d,g),c=n.add(c,d),p=n.mul(o,s),p=n.add(p,p),d=n.mul(p,g),l=n.sub(l,d),u=n.mul(p,f),u=n.add(u,u),u=n.add(u,u),new b(l,c,u)}add(e){y(e);const{px:r,py:i,pz:a}=this,{px:o,py:s,pz:l}=e;let c=n.ZERO,u=n.ZERO,d=n.ZERO;const f=t.a,p=n.mul(t.b,h);let g=n.mul(r,o),m=n.mul(i,s),v=n.mul(a,l),x=n.add(r,i),w=n.add(o,s);x=n.mul(x,w),w=n.add(g,m),x=n.sub(x,w),w=n.add(r,a);let k=n.add(o,l);return w=n.mul(w,k),k=n.add(g,v),w=n.sub(w,k),k=n.add(i,a),c=n.add(s,l),k=n.mul(k,c),c=n.add(m,v),k=n.sub(k,c),d=n.mul(f,w),c=n.mul(p,v),d=n.add(c,d),c=n.sub(m,d),d=n.add(m,d),u=n.mul(c,d),m=n.add(g,g),m=n.add(m,g),v=n.mul(f,v),w=n.mul(p,w),m=n.add(m,v),v=n.sub(g,v),v=n.mul(f,v),w=n.add(w,v),g=n.mul(m,w),u=n.add(u,g),g=n.mul(k,w),c=n.mul(x,c),c=n.sub(c,g),g=n.mul(x,m),d=n.mul(k,d),d=n.add(d,g),new b(c,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return x.wNAFCached(this,m,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}))}multiplyUnsafe(e){const r=b.ZERO;if(e===c)return r;if(p(e),e===u)return this;const{endo:i}=t;if(!i)return x.unsafeLadder(this,e);let{k1neg:a,k1:o,k2neg:s,k2:l}=i.splitScalar(e),d=r,h=r,f=this;for(;o>c||l>c;)o&u&&(d=d.add(f)),l&u&&(h=h.add(f)),f=f.double(),o>>=u,l>>=u;return a&&(d=d.negate()),s&&(h=h.negate()),h=new b(n.mul(h.px,i.beta),h.py,h.pz),d.add(h)}multiply(e){p(e);let r,i,a=e;const{endo:o}=t;if(o){const{k1neg:e,k1:t,k2neg:s,k2:l}=o.splitScalar(a);let{p:c,f:u}=this.wNAF(t),{p:d,f:h}=this.wNAF(l);c=x.constTimeNegate(e,c),d=x.constTimeNegate(s,d),d=new b(n.mul(d.px,o.beta),d.py,d.pz),r=c.add(d),i=u.add(h)}else{const{p:e,f:t}=this.wNAF(a);r=e,i=t}return b.normalizeZ([r,i])[0]}multiplyAndAddUnsafe(e,t,n){const r=b.BASE,i=(e,t)=>t!==c&&t!==u&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),a=i(this,t).add(i(e,n));return a.is0()?void 0:a}toAffine(e){const{px:t,py:r,pz:i}=this,a=this.is0();null==e&&(e=a?n.ONE:n.inv(i));const o=n.mul(t,e),s=n.mul(r,e),l=n.mul(i,e);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw new Error("invZ was invalid");return{x:o,y:s}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===u)return!0;if(n)return n(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===u?this:n?n(b,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),s(b,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return i.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,n.ONE),b.ZERO=new b(n.ZERO,n.ONE,n.ZERO);const v=t.nBitLength,x=(0,o.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:d,isWithinCurveOrder:f}}function g(e,t){const n=e.ORDER;let r=c;for(let h=n-u;h%d===c;h/=d)r+=u;const i=r,a=d<<i-u-u,o=a*d,s=(n-u)/o,l=(s-u)/d,p=o-u,g=a,m=e.pow(t,s),y=e.pow(t,(s+u)/d);let b=(t,n)=>{let r=m,a=e.pow(n,p),o=e.sqr(a);o=e.mul(o,n);let s=e.mul(t,o);s=e.pow(s,l),s=e.mul(s,a),a=e.mul(s,n),o=e.mul(s,t);let c=e.mul(o,a);s=e.pow(c,g);let h=e.eql(s,e.ONE);a=e.mul(o,y),s=e.mul(c,r),o=e.cmov(a,o,h),c=e.cmov(s,c,h);for(let l=i;l>u;l--){let t=l-d;t=d<<t-u;let n=e.pow(c,t);const i=e.eql(n,e.ONE);a=e.mul(o,r),r=e.mul(r,r),n=e.mul(c,r),o=e.cmov(a,o,i),c=e.cmov(n,c,i)}return{isValid:h,value:o}};
2if(e.ORDER%f===h){const n=(e.ORDER-h)/f,r=e.sqrt(e.neg(t));b=(t,i)=>{let a=e.sqr(i);const o=e.mul(t,i);a=e.mul(a,o);let s=e.pow(a,n);s=e.mul(s,o);const l=e.mul(s,r),c=e.mul(e.sqr(s),i),u=e.eql(c,t);return{isValid:u,value:e.cmov(l,s,u)}}}return b}t.weierstrassPoints=p,t.weierstrass=function(e){const n=function(e){const t=(0,o.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:l}=n,d=s.BYTES+1,h=2*s.BYTES+1;function f(e){return r.mod(e,l)}function g(e){return r.invert(e,l)}const{ProjectivePoint:m,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:v}=p({...n,toBytes(e,t,n){const r=t.toAffine(),a=s.toBytes(r.x),o=i.concatBytes;return n?o(Uint8Array.from([t.hasEvenY()?2:3]),a):o(Uint8Array.from([4]),a,s.toBytes(r.y))},fromBytes(e){const t=e.length,n=e[0],r=e.subarray(1);if(t!==d||2!==n&&3!==n){if(t===h&&4===n){return{x:s.fromBytes(r.subarray(0,s.BYTES)),y:s.fromBytes(r.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${d} compressed bytes or ${h} uncompressed bytes`)}{const e=i.bytesToNumberBE(r);if(!(c<(a=e)&&a<s.ORDER))throw new Error("Point is not on curve");const t=b(e);let o=s.sqrt(t);return 1===(1&n)!==((o&u)===u)&&(o=s.neg(o)),{x:e,y:o}}var a}}),x=e=>i.bytesToHex(i.numberToBytesBE(e,n.nByteLength));function w(e){return e>l>>u}const k=(e,t,n)=>i.bytesToNumberBE(e.slice(t,n));class A{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,a.ensureBytes)("compactSignature",e,2*t),new A(k(e,0,t),k(e,t,2*t))}static fromDER(e){const{r:n,s:r}=t.DER.toSig((0,a.ensureBytes)("DER",e));return new A(n,r)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new A(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:r,recovery:i}=this,o=C((0,a.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const l=2===i||3===i?t+n.n:t;if(l>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const c=0===(1&i)?"02":"03",u=m.fromHex(c+x(l)),d=g(l),h=f(-o*d),p=f(r*d),y=m.BASE.multiplyAndAddUnsafe(u,h,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new A(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return x(this.r)+x(this.s)}}const E={isValidPrivateKey(e){try{return y(e),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const e=r.getMinHashLength(n.n);return r.mapHashToField(n.randomBytes(e),n.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function S(e){const t=e instanceof Uint8Array,n="string"===typeof e,r=(t||n)&&e.length;return t?r===d||r===h:n?r===2*d||r===2*h:e instanceof m}const P=n.bits2int||function(e){const t=i.bytesToNumberBE(e),r=8*e.length-n.nBitLength;return r>0?t>>BigInt(r):t},C=n.bits2int_modN||function(e){return f(P(e))},O=i.bitMask(n.nBitLength);function T(e){if("bigint"!==typeof e)throw new Error("bigint expected");if(!(c<=e&&e<O))throw new Error(`bigint expected < 2^${n.nBitLength}`);return i.numberToBytesBE(e,n.nByteLength)}function N(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(["recovered","canonical"].some((e=>e in r)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:l}=n;let{lowS:d,prehash:h,extraEntropy:p}=r;null==d&&(d=!0),e=(0,a.ensureBytes)("msgHash",e),h&&(e=(0,a.ensureBytes)("prehashed msgHash",o(e)));const b=C(e),x=y(t),k=[T(x),T(b)];if(null!=p){const e=!0===p?l(s.BYTES):p;k.push((0,a.ensureBytes)("extraEntropy",e))}const E=i.concatBytes(...k),S=b;return{seed:E,k2sig:function(e){const t=P(e);
2if(!v(t))return;const n=g(t),r=m.BASE.multiply(t).toAffine(),i=f(r.x);if(i===c)return;const a=f(n*f(S+i*x));if(a===c)return;let o=(r.x===i?0:2)|Number(r.y&u),s=a;return d&&w(a)&&(s=function(e){return w(e)?f(-e):e}(a),o^=1),new A(i,s,o)}}}const _={lowS:n.lowS,prehash:!1},I={lowS:n.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(S(e))throw new Error("first arg must be private key");if(!S(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(y(e)).toRawBytes(n)},sign:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;const{seed:a,k2sig:o}=N(e,t,r),s=n;return i.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(a,o)},verify:function(e,r,i){var o;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I;const l=e;if(r=(0,a.ensureBytes)("msgHash",r),i=(0,a.ensureBytes)("publicKey",i),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:u}=s;let d,h;try{if("string"===typeof l||l instanceof Uint8Array)try{d=A.fromDER(l)}catch(E){if(!(E instanceof t.DER.Err))throw E;d=A.fromCompact(l)}else{if("object"!==typeof l||"bigint"!==typeof l.r||"bigint"!==typeof l.s)throw new Error("PARSE");{const{r:e,s:t}=l;d=new A(e,t)}}h=m.fromHex(i)}catch(S){if("PARSE"===S.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&d.hasHighS())return!1;u&&(r=n.hash(r));const{r:p,s:y}=d,b=C(r),v=g(y),x=f(b*v),w=f(p*v),k=null===(o=m.BASE.multiplyAndAddUnsafe(h,x,w))||void 0===o?void 0:o.toAffine();return!!k&&f(k.x)===p},ProjectivePoint:m,Signature:A,utils:E}},t.SWUFpSqrtRatio=g,t.mapToCurveSimpleSWU=function(e,t){if(r.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=g(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let i,a,o,s,l,c,u,d;i=e.sqr(r),i=e.mul(i,t.Z),a=e.sqr(i),a=e.add(a,i),o=e.add(a,e.ONE),o=e.mul(o,t.B),s=e.cmov(t.Z,e.neg(a),!e.eql(a,e.ZERO)),s=e.mul(s,t.A),a=e.sqr(o),c=e.sqr(s),l=e.mul(c,t.A),a=e.add(a,l),a=e.mul(a,o),c=e.mul(c,s),l=e.mul(c,t.B),a=e.add(a,l),u=e.mul(i,o);const{isValid:h,value:f}=n(a,c);d=e.mul(i,r),d=e.mul(d,f),u=e.cmov(u,o,h),d=e.cmov(d,f,h);const p=e.isOdd(r)===e.isOdd(d);return d=e.cmov(e.neg(d),d,p),u=e.div(u,s),{x:u,y:d}}}},79712:(e,t,n)=>{"use strict";var r=n(30421),i=n(83859),a=n(87431),o=n(27149);e.exports=function(e,t,n){for(var s=i(t),l=o.f,c=a.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},79769:(e,t,n)=>{var r=n(24489),i=n(13334),a=n(14243);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},79779:(e,t,n)=>{"use strict";n.d(t,{Ci:()=>o,J8:()=>l,MU:()=>u,Oz:()=>c,Pr:()=>s});var r=n(83855),i=n(36026),a=n(48283);class o extends i.C{constructor(e){let{body:t,cause:n,details:i,headers:o,status:s,url:l}=e;super("HTTP request failed.",{cause:n,details:i,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,a.I)(l)}`,t&&`Request body: ${(0,r.A)(t)}`].filter(Boolean),name:"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=t,this.headers=o,this.status=s,this.url=l}}class s extends i.C{constructor(e){let{body:t,cause:n,details:i,url:o}=e;super("WebSocket request failed.",{cause:n,details:i,metaMessages:[`URL: ${(0,a.I)(o)}`,t&&`Request body: ${(0,r.A)(t)}`].filter(Boolean),name:"WebSocketRequestError"})}}class l extends i.C{constructor(e){let{body:t,error:n,url:i}=e;super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${(0,a.I)(i)}`,`Request body: ${(0,r.A)(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data}}class c extends i.C{constructor(){let{url:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,a.I)(e)}
2`].filter(Boolean),name:"SocketClosedError"})}}class u extends i.C{constructor(e){let{body:t,url:n}=e;super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,a.I)(n)}`,`Request body: ${(0,r.A)(t)}`],name:"TimeoutError"})}}},79813:function(e,t,n){"use strict";var r,i,a=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},o=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CBC=void 0;const s=n(94546);class l extends s.ModeOfOperation{constructor(e,t){if(super("ECC",e,l),r.set(this,void 0),i.set(this,void 0),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");a(this,r,new Uint8Array(t),"f")}else a(this,r,new Uint8Array(16),"f");a(this,i,this.iv,"f")}get iv(){return new Uint8Array(o(this,r,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){for(let t=0;t<16;t++)o(this,i,"f")[t]^=e[n+t];a(this,i,this.aes.encrypt(o(this,i,"f")),"f"),t.set(o(this,i,"f"),n)}return t}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){const r=this.aes.decrypt(e.subarray(n,n+16));for(let a=0;a<16;a++)t[n+a]=r[a]^o(this,i,"f")[a],o(this,i,"f")[a]=e[n+a]}return t}}t.CBC=l,r=new WeakMap,i=new WeakMap},80046:(e,t,n)=>{"use strict";var r=n(35550)(),i=n(10690)("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!a(e)||null!==e&&"object"===typeof e&&"length"in e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},80062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const r=n(96752),i=n(50582);class a extends i.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,r.exists)(this);const{view:t,buffer:n,blockLen:a}=this,o=(e=(0,i.toBytes)(e)).length;for(let r=0;r<o;){const s=Math.min(a-this.pos,o-r);if(s!==a)n.set(e.subarray(r,r+s),this.pos),this.pos+=s,r+=s,this.pos===a&&(this.process(t,0),this.pos=0);else{const t=(0,i.createView)(e);for(;a<=o-r;r+=a)this.process(t,r)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.exists)(this),(0,r.output)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:a,isLE:o}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(n,0),s=0);for(let r=s;r<a;r++)t[r]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),l=r?4:0,c=r?0:4;e.setUint32(t+l,o,r),e.setUint32(t+c,s,r)}(n,a-8,BigInt(8*this.length),o),this.process(n,0);const l=(0,i.createView)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r<u;r++)l.setUint32(4*r,d[r],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}}t.SHA2=a},80347:(e,t,n)=>{"use strict";var r=n(56412),i=n(80979),a=n(15332),o=function(e){return i.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},80799:e=>{e.exports=function(e){return this.__data__.has(e)}},80979:(e,t,n)=>{"use strict";var r=n(56412).navigator,i=r&&r.userAgent;e.exports=i?String(i):""},81011:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(81756).default,o=n(16668).default,s=n(37088).default,l=n(43693).default;
2Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;const c=n(69687),u=n(11454),d=n(24839),h=n(9454),f=n(10569);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return f.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return f.Result}});const p=n(89057),g=n(18500);class m{constructor(e,t,n){l(this,"fragment",void 0),l(this,"name",void 0),l(this,"signature",void 0),l(this,"topic",void 0),l(this,"args",void 0);const r=e.name,i=e.format();(0,d.defineProperties)(this,{fragment:e,name:r,signature:i,topic:t,args:n})}}t.LogDescription=m;class y{constructor(e,t,n,r){l(this,"fragment",void 0),l(this,"name",void 0),l(this,"args",void 0),l(this,"signature",void 0),l(this,"selector",void 0),l(this,"value",void 0);const i=e.name,a=e.format();(0,d.defineProperties)(this,{fragment:e,name:i,args:n,signature:a,selector:t,value:r})}}t.TransactionDescription=y;class b{constructor(e,t,n){l(this,"fragment",void 0),l(this,"name",void 0),l(this,"args",void 0),l(this,"signature",void 0),l(this,"selector",void 0);const r=e.name,i=e.format();(0,d.defineProperties)(this,{fragment:e,name:r,args:n,signature:i,selector:t})}}t.ErrorDescription=b;class v{static isIndexed(e){return!(!e||!e._isIndexed)}constructor(e){l(this,"hash",void 0),l(this,"_isIndexed",void 0),(0,d.defineProperties)(this,{hash:e,_isIndexed:!0})}}t.Indexed=v;const x={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},w={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&x[e.toString()]&&(t=x[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};var k=new WeakMap,A=new WeakMap,E=new WeakMap,S=new WeakMap,P=new WeakSet;class C{constructor(e){r(this,P),l(this,"fragments",void 0),l(this,"deploy",void 0),l(this,"fallback",void 0),l(this,"receive",void 0),i(this,k,void 0),i(this,A,void 0),i(this,E,void 0),i(this,S,void 0);let t=[];t="string"===typeof e?JSON.parse(e):e,s(E,this,new Map),s(k,this,new Map),s(A,this,new Map);const n=[];for(const r of t)try{n.push(p.Fragment.from(r))}catch(u){console.log(`[Warning] Invalid Fragment ${JSON.stringify(r)}:`,u.message)}(0,d.defineProperties)(this,{fragments:Object.freeze(n)});let a=null,c=!1;s(S,this,this.getAbiCoder()),this.fragments.forEach(((e,t)=>{let n;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,d.defineProperties)(this,{deploy:e});case"fallback":return void(0===e.inputs.length?c=!0:((0,d.assertArgument)(!a||e.payable!==a.payable,"conflicting fallback fragments",`fragments[${t}]`,e),a=e,c=a.payable));case"function":n=o(E,this);break;case"event":n=o(A,this);break;case"error":n=o(k,this);break;default:return}const r=e.format();n.has(r)||n.set(r,e)})),this.deploy||(0,d.defineProperties)(this,{deploy:p.ConstructorFragment.from("constructor()")}),(0,d.defineProperties)(this,{fallback:a,receive:c})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return h.AbiCoder.defaultAbiCoder()}getFunctionName(e){const t=a(P,this,O).call(this,e,null,!1);return(0,d.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!a(P,this,O).call(this,e,null,!1)}getFunction(e,t){return a(P,this,O).call(this,e,t||null,!0)}forEachFunction(e){const t=Array.from(o(E,this).keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(o(E,this).get(r),n)}}getEventName(e){const t=a(P,this,T).call(this,e,null,!1);return(0,d.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!a(P,this,T).call(this,e,null,!1)}getEvent(e,t){return a(P,this,T).call(this,e,t||null,!0)}forEachEvent(e){const t=Array.from(o(A,this).keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(o(A,this).get(r),n)}}getError(e,t){if((0,d.isHexString)(e)){const t=e.toLowerCase();if(w[t])return p.ErrorFragment.from(w[t].signature);for(const e of o(k,this).values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const t=[];for(const[n,r]of o(k,this))n.split("(")[0]===e&&t.push(r);if(0===t.length)return"Error"===e?p.ErrorFragment.from("error Error(string)"):"Panic"===e?p.ErrorFragment.from("error Panic(uint256)"):null;if(t.length>1){const n=t.map((e=>JSON.stringify(e.format()))).join(", ");(0,d.assertArgument)(!1,`ambiguous error description (i.e. ${n})`,"name",e)}return t[0]}if("Error(string)"===(e=p.ErrorFragment.from(e).format()))return p.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===e)return p.ErrorFragment.from("error Panic(uint256)");const n=o(k,this).get(e);return n||null}forEachError(e){const t=Array.from(o(k,this).keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(o(k,this).get(r),n)}}_decodeParams(e,t){return o(S,this).decode(e,t)}_encodeParams(e,t){return o(S,this).encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,d.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,d.assertArgument)((0,d.dataSlice)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,d.dataSlice)(t,4))}encodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,d.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,d.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,d.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,d.assertArgument)((0,d.dataSlice)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,d.dataSlice)(t,4))}encodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,d.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,d.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,d.assertArgument)(t,"unknown function","fragment",e),e=t}let n="invalid length for result data";const r=(0,d.getBytesCopy)(t);if(r.length%32===0)try{return o(S,this).decode(e.outputs,r)}catch(i){n="could not decode result data"}(0,d.assert)(!1,n,"BAD_DATA",{value:(0,d.hexlify)(r),info:{method:e.name,signature:e.format()}})}makeError(e,t){const n=(0,d.getBytes)(e,"data"),r=h.AbiCoder.getBuiltinCallException("call",t,n);if(r.message.startsWith("execution reverted (unknown custom error)")){const e=(0,d.hexlify)(n.slice(0,4)),t=this.getError(e);
2if(t)try{const e=o(S,this).decode(t.inputs,n.slice(4));r.revert={name:t.name,signature:t.format(),args:e},r.reason=r.revert.signature,r.message=`execution reverted: ${r.reason}`}catch(a){r.message="execution reverted (coult not decode custom error)"}}const i=this.parseTransaction(t);return i&&(r.invocation={method:i.name,signature:i.signature,args:i.args}),r}encodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,d.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,d.hexlify)(o(S,this).encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,d.assertArgument)(t,"unknown event","eventFragment",e),e=t}(0,d.assert)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});const n=[];e.anonymous||n.push(e.topicHash);const r=(e,t)=>"string"===e.type?(0,u.id)(t):"bytes"===e.type?(0,c.keccak256)((0,d.hexlify)(t)):("bool"===e.type&&"boolean"===typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,d.toBeHex)(t):e.type.match(/^bytes/)?t=(0,d.zeroPadBytes)(t,32):"address"===e.type&&o(S,this).encode(["address"],[t]),(0,d.zeroPadValue)((0,d.hexlify)(t),32));for(t.forEach(((t,i)=>{const a=e.inputs[i];a.indexed?null==t?n.push(null):"array"===a.baseType||"tuple"===a.baseType?(0,d.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?n.push(t.map((e=>r(a,e)))):n.push(r(a,t)):(0,d.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+a.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,d.assertArgument)(t,"unknown event","eventFragment",e),e=t}const n=[],r=[],i=[];return e.anonymous||n.push(e.topicHash),(0,d.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach(((e,a)=>{const s=t[a];if(e.indexed)if("string"===e.type)n.push((0,u.id)(s));else if("bytes"===e.type)n.push((0,c.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(o(S,this).encode([e.type],[s]))}else r.push(e),i.push(s)})),{data:o(S,this).encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"===typeof e){const t=this.getEvent(e);(0,d.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=n&&!e.anonymous){const t=e.topicHash;(0,d.assertArgument)((0,d.isHexString)(n[0],32)&&n[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],i=[],a=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(p.ParamType.from({type:"bytes32",name:e.name})),a.push(!0)):(r.push(e),a.push(!1)):(i.push(e),a.push(!1))}));const s=null!=n?o(S,this).decode(r,(0,d.concat)(n)):null,l=o(S,this).decode(i,t,!0),c=[],u=[];let h=0,g=0;return e.inputs.forEach(((e,t)=>{let n=null;if(e.indexed)if(null==s)n=new v(null);else if(a[t])n=new v(s[g++]);else try{n=s[g++]}catch(r){n=r}else try{n=l[h++]}catch(r){n=r}c.push(n),u.push(e.name||null)})),f.Result.fromItems(c,u)}parseTransaction(e){const t=(0,d.getBytes)(e.data,"tx.data"),n=(0,d.getBigInt)(null!=e.value?e.value:0,"tx.value"),r=this.getFunction((0,d.hexlify)(t.slice(0,4)));if(!r)return null;const i=o(S,this).decode(r.inputs,t.slice(4));return new y(r,r.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new m(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=(0,d.hexlify)(e),n=this.getError((0,d.dataSlice)(t,0,4));if(!n)return null;const r=o(S,this).decode(n.inputs,(0,d.dataSlice)(t,4));return new b(n,n.selector,r)}static from(e){return e instanceof C?e:"string"===typeof e?new C(JSON.parse(e)):"function"===typeof e.formatJson?new C(e.formatJson()):"function"===typeof e.format?new C(e.format("json")):new C(e)}}function O(e,t,n){if((0,d.isHexString)(e)){const t=e.toLowerCase();for(const e of o(E,this).values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of o(E,this))t.split("(")[0]===e&&r.push(n);if(t){const e=t.length>0?t[t.length-1]:null;let n=t.length,i=!0;g.Typed.isTyped(e)&&"overrides"===e.type&&(i=!1,n--);for(let t=r.length-1;t>=0;t--){const e=r[t].inputs.length;e===n||i&&e===n-1||r.splice(t,1)}for(let a=r.length-1;a>=0;a--){const e=r[a].inputs;for(let n=0;n<t.length;n++)if(g.Typed.isTyped(t[n])){if(n>=e.length){if("overrides"===t[n].type)continue;r.splice(a,1);break}if(t[n].type!==e[n].baseType){r.splice(a,1);break}}}}if(1===r.length&&t&&t.length!==r[0].inputs.length){const e=t[t.length-1];(null==e||Array.isArray(e)||"object"!==typeof e)&&r.splice(0,1)}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,d.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return r[0]}const r=o(E,this).get(p.FunctionFragment.from(e).format());return r||null}function T(e,t,n){if((0,d.isHexString)(e)){const t=e.toLowerCase();for(const e of o(A,this).values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of o(A,this))t.split("(")[0]===e&&r.push(n);if(t){for(let e=r.length-1;e>=0;e--)r[e].inputs.length<t.length&&r.splice(e,1);for(let e=r.length-1;e>=0;e--){const n=r[e].inputs;for(let i=0;i<t.length;i++)if(g.Typed.isTyped(t[i])&&t[i].type!==n[i].baseType){r.splice(e,1);break}}}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,d.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return r[0]}const r=o(A,this).get(p.EventFragment.from(e).format());return r||null}t.Interface=C},81465:(e,t,n)=>{var r=n(20220)(n(14759),"Map");e.exports=r},81506:(e,t,n)=>{"use strict";var r=n(28726).supportsDescriptors,i=n(13832),a=n(24553),o=Object.defineProperty,s=n(86953),l=n(6054),c=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),n=a(t,"flags");return n&&n.get===e||o(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},81581:(e,t,n)=>{var r=n(4635),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},81656:(e,t,n)=>{"use strict";e.exports=n(26875)},81756:e=>{e.exports=function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")},e.exports.__esModule=!0,e.exports.default=e.exports},81840:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},82007:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.verifyAuthorization=t.hashAuthorization=void 0;const r=n(55114),i=n(69687),a=n(20022),o=n(24839);function s(e){return(0,o.assertArgument)("string"===typeof e.address,"invalid address for hashAuthorization","auth.address",e),(0,i.keccak256)((0,o.concat)(["0x05",(0,o.encodeRlp)([null!=e.chainId?(0,o.toBeArray)(e.chainId):"0x",(0,r.getAddress)(e.address),null!=e.nonce?(0,o.toBeArray)(e.nonce):"0x"])]))}t.hashAuthorization=s,t.verifyAuthorization=function(e,t){return(0,a.recoverAddress)(s(e),t)}},82071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const r=n(1440),i=n(12006),a=n(12172),o=n(93769),s=n(24839);const l=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}(),c=l.crypto||l.msCrypto;t.createHash=function(e){switch(e){case"sha256":return a.sha256.create();case"sha512":return o.sha512.create()}(0,s.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){const n={sha256:a.sha256,sha512:o.sha512}[e];return(0,s.assertArgument)(null!=n,"invalid hmac algorithm","algorithm",e),r.hmac.create(n,t)},t.pbkdf2Sync=function(e,t,n,r,l){const c={sha256:a.sha256,sha512:o.sha512}[l];return(0,s.assertArgument)(null!=c,"invalid pbkdf2 algorithm","algorithm",l),(0,i.pbkdf2)(c,e,t,{c:n,dkLen:r})},t.randomBytes=function(e){(0,s.assert)(null!=c,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,s.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);const t=new Uint8Array(e);return c.getRandomValues(t),t}},82161:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},82339:(e,t,n)=>{var r=n(82564),i=n(95644),a=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}();function o(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,s="string"===typeof e?n.querySelector(e):e,l=i({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),c={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},u={activate:function(e){if(c.active)return;x(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:l.onActivate;t&&t();return h(),u},deactivate:d,pause:function(){if(c.paused||!c.active)return;c.paused=!0,f()},unpause:function(){if(!c.paused||!c.active)return;c.paused=!1,h()}};return u;function d(e){if(c.active){f(),c.active=!1,c.paused=!1,a.deactivateTrap(u);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:l.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:l.returnFocusOnDeactivate)&&o((function(){w(c.nodeFocusedBeforeActivation)})),u}}function h(){if(c.active)return a.activateTrap(u),x(),o((function(){w(g())})),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",m,!0),n.addEventListener("touchstart",m,!0),n.addEventListener("click",v,!0),n.addEventListener("keydown",b,!0),u}function f(){if(c.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",v,!0),n.removeEventListener("keydown",b,!0),u}function p(e){var t=l[e],r=t;if(!t)return null;if("string"===typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"===typeof t&&!(r=t()))throw new Error("`"+e+"` did n
2ot return a node");return r}function g(){var e;if(!(e=null!==p("initialFocus")?p("initialFocus"):s.contains(n.activeElement)?n.activeElement:c.firstTabbableNode||p("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function m(e){s.contains(e.target)||(l.clickOutsideDeactivates?d({returnFocus:!r.isFocusable(e.target)}):e.preventDefault())}function y(e){s.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(c.mostRecentlyFocusedNode||g()))}function b(e){if(!1!==l.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void d();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(x(),e.shiftKey&&e.target===c.firstTabbableNode)return e.preventDefault(),void w(c.lastTabbableNode);if(!e.shiftKey&&e.target===c.lastTabbableNode)e.preventDefault(),w(c.firstTabbableNode)}(e)}function v(e){l.clickOutsideDeactivates||s.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function x(){var e=r(s);c.firstTabbableNode=e[0]||g(),c.lastTabbableNode=e[e.length-1]||g()}function w(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),c.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(e)&&e.select()):w(g()))}}},82346:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(81756).default,o=n(37088).default,s=n(16668).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.splitBlobCells=void 0;const l=n(55114),c=n(39923),u=n(69687),d=n(24839),h=n(71274),f=n(50799),p=n(91102),g=BigInt(0),m=BigInt(2),y=BigInt(27),b=BigInt(28),v=BigInt(35),x=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),w=Symbol.for("nodejs.util.inspect.custom"),k=131072,A=128;function E(e,t){let n=e.toString(16);for(;n.length<2;)n="0"+n;return n+=(0,u.sha256)(t).substring(4),"0x"+n}function S(e){return"0x"===e?null:(0,l.getAddress)(e)}function P(e,t){try{return(0,h.accessListify)(e)}catch(n){(0,d.assertArgument)(!1,n.message,t,e)}}function C(e,t){try{if(!Array.isArray(e))throw new Error("authorizationList: invalid array");const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(!Array.isArray(r))throw new Error(`authorization[${n}]: invalid array`);if(6!==r.length)throw new Error(`authorization[${n}]: wrong length`);if(!r[1])throw new Error(`authorization[${n}]: null address`);t.push({address:S(r[1]),nonce:T(r[2],"nonce"),chainId:T(r[0],"chainId"),signature:u.Signature.from({yParity:O(r[3],"yParity"),r:(0,d.zeroPadValue)(r[4],32),s:(0,d.zeroPadValue)(r[5],32)})})}return t}catch(n){(0,d.assertArgument)(!1,n.message,t,e)}}function O(e,t){return"0x"===e?0:(0,d.getNumber)(e,t)}function T(e,t){if("0x"===e)return g;const n=(0,d.getBigInt)(e,t);return(0,d.assertArgument)(n<=x,"value exceeds uint size",t,n),n}function N(e,t){const n=(0,d.getBigInt)(e,"value"),r=(0,d.toBeArray)(n);return(0,d.assertArgument)(r.length<=32,"value too large",`tx.${t}`,n),r}function _(e){return(0,h.accessListify)(e).map((e=>[e.address,e.storageKeys]))}function I(e,t){(0,d.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let n=0;n<e.length;n++)(0,d.assertArgument)((0,d.isHexString)(e[n],32),"invalid ${ param } hash",`value[${n}]`,e[n]);return e}function R(e,t){let n;try{if(n=O(t[0],"yParity"),0!==n&&1!==n)throw new Error("bad yParity")}catch(o){(0,d.assertArgument)(!1,"invalid yParity","yParity",t[0])}const r=(0,d.zeroPadValue)(t[1],32),i=(0,d.zeroPadValue)(t[2],32),a=u.Signature.from({r:r,s:i,yParity:n});e.signature=a}t.splitBlobCells=function(e,t){null==t&&(t=A);const n=[],r=(0,d.getBytes)(e),i=r.length/t;for(let a=0;a<r.length;a+=i)n.push((0,d.hexlify)(r.subarray(a,a+i)));return n};var M=new WeakMap,j=new WeakMap,L=new WeakMap,B=new WeakMap,F=new WeakMap,D=new WeakMap,U=new WeakMap,z=new WeakMap,W=new WeakMap,H=new WeakMap,V=new WeakMap,G=new WeakMap,Y=new WeakMap,q=new WeakMap,X=new WeakMap,$=new WeakMap,K=new WeakMap,Q=new WeakMap,J=new WeakSet;class Z{get type(){return s(M,this)}set type(e){switch(e){case null:o(M,this,null);break;case 0:case"legacy":o(M,this,0);break;case 1:case"berlin":case"eip-2930":o(M,this,1);break;
2case 2:case"london":case"eip-1559":o(M,this,2);break;case 3:case"cancun":case"eip-4844":o(M,this,3);break;case 4:case"pectra":case"eip-7702":o(M,this,4);break;default:(0,d.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){const e=s(j,this);return null==e&&3===this.type?c.ZeroAddress:e}set to(e){o(j,this,null==e?null:(0,l.getAddress)(e))}get nonce(){return s(B,this)}set nonce(e){o(B,this,(0,d.getNumber)(e,"value"))}get gasLimit(){return s(F,this)}set gasLimit(e){o(F,this,(0,d.getBigInt)(e))}get gasPrice(){const e=s(D,this);return null!=e||0!==this.type&&1!==this.type?e:g}set gasPrice(e){o(D,this,null==e?null:(0,d.getBigInt)(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=s(U,this);return null==e?2===this.type||3===this.type?g:null:e}set maxPriorityFeePerGas(e){o(U,this,null==e?null:(0,d.getBigInt)(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=s(z,this);return null==e?2===this.type||3===this.type?g:null:e}set maxFeePerGas(e){o(z,this,null==e?null:(0,d.getBigInt)(e,"maxFeePerGas"))}get data(){return s(L,this)}set data(e){o(L,this,(0,d.hexlify)(e))}get value(){return s(W,this)}set value(e){o(W,this,(0,d.getBigInt)(e,"value"))}get chainId(){return s(H,this)}set chainId(e){o(H,this,(0,d.getBigInt)(e))}get signature(){return s(V,this)||null}set signature(e){o(V,this,null==e?null:u.Signature.from(e))}isValid(){const e=this.signature;if(e&&!e.isValid())return!1;const t=this.authorizationList;if(t)for(const n of t)if(!n.signature.isValid())return!1;return!0}get accessList(){const e=s(G,this)||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){o(G,this,null==e?null:(0,h.accessListify)(e))}get authorizationList(){const e=s(K,this)||null;return null==e&&4===this.type?[]:e}set authorizationList(e){o(K,this,null==e?null:e.map((e=>(0,f.authorizationify)(e))))}get maxFeePerBlobGas(){const e=s(Y,this);return null==e&&3===this.type?g:e}set maxFeePerBlobGas(e){o(Y,this,null==e?null:(0,d.getBigInt)(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=s(q,this);return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,d.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,d.assertArgument)((0,d.isHexString)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}o(q,this,e)}get blobs(){return null==s($,this)?null:s($,this).map((e=>Object.assign({},e)))}set blobs(e){if(null==e)return void o($,this,null);const t=[],n=[];for(let r=0;r<e.length;r++){const i=e[r];if((0,d.isBytesLike)(i)){(0,d.assert)(s(X,this),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,d.getBytes)(i);if((0,d.assertArgument)(e.length<=k,"blob is too large",`blobs[${r}]`,i),e.length!==k){const t=new Uint8Array(k);t.set(e),e=t}const a=s(X,this).blobToKzgCommitment(e),o=(0,d.hexlify)(s(X,this).computeBlobKzgProof(e,a));t.push({data:(0,d.hexlify)(e),commitment:(0,d.hexlify)(a),proof:o}),n.push(E(1,a))}else{const e=(0,d.hexlify)(i.data),r=(0,d.hexlify)(i.commitment),a=(0,d.hexlify)(i.proof);t.push({data:e,commitment:r,proof:a}),n.push(E(1,r))}}o($,this,t),o(q,this,n)}get kzg(){return s(X,this)}set kzg(e){o(X,this,null==e?null:function(e){return{blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"===typeof e.blobToKzgCommitment)return(0,d.getBytes)(e.blobToKzgCommitment((0,d.hexlify)(t)))}else if("blobToKzgCommitment"in e&&"function"===typeof e.blobToKzgCommitment)return(0,d.getBytes)(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"===typeof e.blobToKZGCommitment)return(0,d.getBytes)(e.blobToKZGCommitment((0,d.hexlify)(t)));(0,d.assertArgument)(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,n)=>"computeBlobProof"in e&&"function"===typeof e.computeBlobProof?(0,d.getBytes)(e.computeBlobProof((0,d.hexlify)(t),(0,d.hexlify)(n))):"computeBlobKzgProof"in e&&"function"===typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,n):"c
2omputeBlobKZGProof"in e&&"function"===typeof e.computeBlobKZGProof?(0,d.getBytes)(e.computeBlobKZGProof((0,d.hexlify)(t),(0,d.hexlify)(n))):void(0,d.assertArgument)(!1,"unsupported KZG library","kzg",e)}}(e))}get blobWrapperVersion(){return s(Q,this)}set blobWrapperVersion(e){o(Q,this,e)}constructor(){r(this,J),i(this,M,void 0),i(this,j,void 0),i(this,L,void 0),i(this,B,void 0),i(this,F,void 0),i(this,D,void 0),i(this,U,void 0),i(this,z,void 0),i(this,W,void 0),i(this,H,void 0),i(this,V,void 0),i(this,G,void 0),i(this,Y,void 0),i(this,q,void 0),i(this,X,void 0),i(this,$,void 0),i(this,K,void 0),i(this,Q,void 0),o(M,this,null),o(j,this,null),o(B,this,0),o(F,this,g),o(D,this,null),o(U,this,null),o(z,this,null),o(L,this,"0x"),o(W,this,g),o(H,this,g),o(V,this,null),o(G,this,null),o(Y,this,null),o(q,this,null),o(X,this,null),o($,this,null),o(K,this,null),o(Q,this,null)}get hash(){return null==this.signature?null:(0,u.keccak256)(a(J,this,ee).call(this,!0,!1))}get unsignedHash(){return(0,u.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,p.recoverAddress)(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return null==this.signature?null:u.SigningKey.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return null!=this.signature}get serialized(){return a(J,this,ee).call(this,!0,!0)}get unsignedSerialized(){return a(J,this,ee).call(this,!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,n=null!=this.accessList,r=null!=s(Y,this)||s(q,this);null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,d.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,d.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,d.assert)(0!==this.type||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return null!=this.type?i.push(this.type):this.authorizationList&&this.authorizationList.length?i.push(4):t?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):(r&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return Z.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[w](){return this.toString()}toString(){const e=[],t=t=>{let n=this[t];"string"===typeof n&&(n=JSON.stringify(n)),e.push(`${t}: ${n}`)};this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),null!=this.chainId&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));const n=this.authorizationList;if(n){const t=[];for(const e of n){const n=[];n.push(`address: ${JSON.stringify(e.address)}`),null!=e.nonce&&n.push(`nonce: ${e.nonce}`),null!=e.chainId&&n.push(`chainId: ${e.chainId}`),e.signature&&n.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${n.join(", ")} }`)}e.push(`authorizations: [ ${t.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(e){if(null==e)return new Z;if("string"===typeof e){const t=(0,d.getBytes)(e);if(t[0]>=127)return Z.from(function(e){const t=(0,d.decodeRlp)(e);(0,d.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const n={type:0,nonce:O(t[0],"nonce"),gasPrice:T(t[1],"gasPrice"),gasLimit:T(t[2],"gasLimit"),to:S(t[3]),value:T(t[4],"value"),data:(0,d.hexlify)(t[5]),chainId:g};if(6===t.length)return n;const r=T(t[6],"v"),i=T(t[7],"r"),a=T(t[8],"s");if(i===g&&a===g)n.chainId=r;else{let e=(r-v)/m;e<g&&(e=g),n.chainId=e,(0,d.assertArgument)(e!==g||r===y||r===b,"non-canonical legacy v","v",t[6]),n.signature=u.Signature.from({r:(0,d.zeroPadValue)(t[7],32),s:(0,d.zeroPadValue)(t[8],32),v:r})}return n}(t));switch(t[0]){case 1:return Z.from(function(e){const t=(0,d.decodeRlp)((0,d.getBytes)(e).slice(1));(0,d.assertArgument)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,d.hexlify)(e));const n={type:1,chainId:T(t[0],"chainId"),nonce:O(t[1],"nonce"),gasPrice:T(t[2],"gasPrice"),gasLimit:T(t[3],"gasLim
2it"),to:S(t[4]),value:T(t[5],"value"),data:(0,d.hexlify)(t[6]),accessList:P(t[7],"accessList")};return 8===t.length||R(n,t.slice(8)),n}(t));case 2:return Z.from(function(e){const t=(0,d.decodeRlp)((0,d.getBytes)(e).slice(1));(0,d.assertArgument)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,d.hexlify)(e));const n={type:2,chainId:T(t[0],"chainId"),nonce:O(t[1],"nonce"),maxPriorityFeePerGas:T(t[2],"maxPriorityFeePerGas"),maxFeePerGas:T(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:T(t[4],"gasLimit"),to:S(t[5]),value:T(t[6],"value"),data:(0,d.hexlify)(t[7]),accessList:P(t[8],"accessList")};return 9===t.length||R(n,t.slice(9)),n}(t));case 3:return Z.from(function(e){let t=(0,d.decodeRlp)((0,d.getBytes)(e).slice(1)),n="3",r=null,i=null;if(4===t.length&&Array.isArray(t[0])){n="3 (network format)";const e=t[1],r=t[2],a=t[3];(0,d.assertArgument)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,d.assertArgument)(Array.isArray(r),"invalid network format: commitments not an array","fields[2]",r),(0,d.assertArgument)(Array.isArray(a),"invalid network format: proofs not an array","fields[3]",a),(0,d.assertArgument)(e.length===r.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,d.assertArgument)(e.length===a.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let n=0;n<t[1].length;n++)i.push({data:e[n],commitment:r[n],proof:a[n]});t=t[0]}else if(5===t.length&&Array.isArray(t[0])){n="3 (EIP-7594 network format)",r=(0,d.getNumber)(t[1]);const e=t[2],a=t[3],o=t[4];(0,d.assertArgument)(1===r,`unsupported EIP-7594 network format version: ${r}`,"fields[1]",r),(0,d.assertArgument)(Array.isArray(e),"invalid EIP-7594 network format: blobs not an array","fields[2]",e),(0,d.assertArgument)(Array.isArray(a),"invalid EIP-7594 network format: commitments not an array","fields[3]",a),(0,d.assertArgument)(Array.isArray(o),"invalid EIP-7594 network format: proofs not an array","fields[4]",o),(0,d.assertArgument)(e.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,d.assertArgument)(e.length*A===o.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let t=0;t<e.length;t++){const n=[];for(let e=0;e<A;e++)n.push(o[t*A+e]);i.push({data:e[t],commitment:a[t],proof:(0,d.concat)(n)})}t=t[0]}(0,d.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${n}`,"data",(0,d.hexlify)(e));const a={type:3,chainId:T(t[0],"chainId"),nonce:O(t[1],"nonce"),maxPriorityFeePerGas:T(t[2],"maxPriorityFeePerGas"),maxFeePerGas:T(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:T(t[4],"gasLimit"),to:S(t[5]),value:T(t[6],"value"),data:(0,d.hexlify)(t[7]),accessList:P(t[8],"accessList"),maxFeePerBlobGas:T(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10],blobWrapperVersion:r};i&&(a.blobs=i),(0,d.assertArgument)(null!=a.to,`invalid address for transaction type: ${n}`,"data",e),(0,d.assertArgument)(Array.isArray(a.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let o=0;o<a.blobVersionedHashes.length;o++)(0,d.assertArgument)((0,d.isHexString)(a.blobVersionedHashes[o],32),`invalid blobVersionedHash at index ${o}: must be length 32`,"data",e);return 11===t.length||R(a,t.slice(11)),a}(t));case 4:return Z.from(function(e){const t=(0,d.decodeRlp)((0,d.getBytes)(e).slice(1));(0,d.assertArgument)(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",(0,d.hexlify)(e));const n={type:4,chainId:T(t[0],"chainId"),nonce:O(t[1],"nonce"),maxPriorityFeePerGas:T(t[2],"maxPriorityFeePerGas"),maxFeePerGas:T(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:T(t[4],"gasLimit"),to:S(t[5]),value:T(t[6],"value"),data:(0,d.hexlify)(t[7]),accessList:P(t[8],"accessList"),authorizationList:C(t[9],"authorizationList")};return 10===t.length||R(n,t.slice(10)),n}(t))}(0,d.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new Z;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLim
2it&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=u.Signature.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.authorizationList&&(t.authorizationList=e.authorizationList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobWrapperVersion&&(t.blobWrapperVersion=e.blobWrapperVersion),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,d.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,d.assertArgument)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,d.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,d.assertArgument)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}function ee(e,t){(0,d.assert)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){const n=[N(e.nonce,"nonce"),N(e.gasPrice||0,"gasPrice"),N(e.gasLimit,"gasLimit"),e.to||"0x",N(e.value,"value"),e.data];let r=g;if(e.chainId!=g)r=(0,d.getBigInt)(e.chainId,"tx.chainId"),(0,d.assertArgument)(!t||null==t.networkV||t.legacyChainId===r,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){const t=e.signature.legacyChainId;null!=t&&(r=t)}if(!t)return r!==g&&(n.push((0,d.toBeArray)(r)),n.push("0x"),n.push("0x")),(0,d.encodeRlp)(n);let i=BigInt(27+t.yParity);return r!==g?i=u.Signature.getChainIdV(r,t.v):BigInt(t.v)!==i&&(0,d.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",t),n.push((0,d.toBeArray)(i)),n.push((0,d.toBeArray)(t.r)),n.push((0,d.toBeArray)(t._s)),(0,d.encodeRlp)(n)}(this,n);case 1:return function(e,t){const n=[N(e.chainId,"chainId"),N(e.nonce,"nonce"),N(e.gasPrice||0,"gasPrice"),N(e.gasLimit,"gasLimit"),e.to||"0x",N(e.value,"value"),e.data,_(e.accessList||[])];return t&&(n.push(N(t.yParity,"recoveryParam")),n.push((0,d.toBeArray)(t.r)),n.push((0,d.toBeArray)(t.s))),(0,d.concat)(["0x01",(0,d.encodeRlp)(n)])}(this,n);case 2:return function(e,t){const n=[N(e.chainId,"chainId"),N(e.nonce,"nonce"),N(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),N(e.maxFeePerGas||0,"maxFeePerGas"),N(e.gasLimit,"gasLimit"),e.to||"0x",N(e.value,"value"),e.data,_(e.accessList||[])];return t&&(n.push(N(t.yParity,"yParity")),n.push((0,d.toBeArray)(t.r)),n.push((0,d.toBeArray)(t.s))),(0,d.concat)(["0x02",(0,d.encodeRlp)(n)])}(this,n);case 3:return function(e,t,n){const r=[N(e.chainId,"chainId"),N(e.nonce,"nonce"),N(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),N(e.maxFeePerGas||0,"maxFeePerGas"),N(e.gasLimit,"gasLimit"),e.to||c.ZeroAddress,N(e.value,"value"),e.data,_(e.accessList||[]),N(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),I(e.blobVersionedHashes||[],"blobVersionedHashes")];if(t&&(r.push(N(t.yParity,"yParity")),r.push((0,d.toBeArray)(t.r)),r.push((0,d.toBeArray)(t.s)),n)){if(null!=e.blobWrapperVersion){const t=(0,d.toBeArray)(e.blobWrapperVersion),i=[];for(const{proof:e}of n){const t=(0,d.getBytes)(e),n=t.length/A;for(let e=0;e<t.length;e+=n)i.push(t.subarray(e,e+n))}return(0,d.concat)(["0x03",(0,d.encodeRlp)([r,t,n.map((e=>e.data)),n.map((e=>e.commitment)),i])])}return(0,d.concat)(["0x03",(0,d.encodeRlp)([r,n.map((e=>e.data)),n.map((e=>e.commitment)),n.map((e=>e.proof))])])}return(0,d.concat)(["0x03",(0,d.encodeRlp)(r)])}(this,n,t?this.blobs:null);case 4:return function(e,t){const n=[N(e.chainId,"chainId"),N(e.nonce,"nonce"),N(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),N(e.maxFeePerGas||0,"maxFeePerGas"),N(e.gasLimit,"gasLimit"),e.to||"0x",N(e.value,"value"),e.data,_(e.accessList||[]),(r=e.authorizationList||[],r.map((e=>[N(e.chainId,"chainId"),e.address,N(e.nonce,"nonce"),N(e.signature.yParity,"yParity"),(0,d.toBeArray)(e.signature.r),(0,d.toBeArray)(e.signature._s)])))];var r;return t&&(n.push(N(t.yParity,"yParity")),n.push((0,d.toBeArray)(t.r)),n.push((0,d.toBeArray)(t.s))),(0,d.concat)(["0x04",(0,d.encodeRlp)(n)])}(this,n)}(0,d.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}t.Transaction=Z},82479:(e,t,n)=>{e=n.nmd(e);var r=n(16658),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").t
2ypes;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},82564:e=>{var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"===typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function i(e,t){t=t||{};var i,o,s,u=[],h=[],f=new d(e.ownerDocument||e),p=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(p=Array.prototype.slice.apply(p)).unshift(e),i=0;i<p.length;i++)a(o=p[i],f)&&(0===(s=l(o))?u.push(o):h.push({documentOrder:i,tabIndex:s,node:o}));return h.sort(c).map((function(e){return e.node})).concat(u)}function a(e,t){return!(!o(e,t)||function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(t);return!n||n===e}(e)}(e)||l(e)<0)}function o(e,t){return t=t||new d(e.ownerDocument||e),!(e.disabled||function(e){return u(e)&&"hidden"===e.type}(e)||t.isUntouchable(e))}i.isTabbable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,n)&&a(e,t)},i.isFocusable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,s)&&o(e,t)};var s=t.concat("iframe").join(",");function l(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function c(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"INPUT"===e.tagName}function d(e){this.doc=e,this.cache=[]}d.prototype.hasDisplayNone=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n]}(this.cache,(function(t){return t===e}));if(n)return n[1];var r=!1;return"none"===(t=t||this.doc.defaultView.getComputedStyle(e)).display?r=!0:e.parentNode&&(r=this.hasDisplayNone(e.parentNode)),this.cache.push([e,r]),r},d.prototype.isUntouchable=function(e){if(e===this.doc.documentElement)return!1;var t=this.doc.defaultView.getComputedStyle(e);return!!this.hasDisplayNone(e,t)||"hidden"===t.visibility},e.exports=i},82599:(e,t,n)=>{"use strict";var r=n(71113);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},82651:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e[0]?i(e):function(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(e)}function i(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}n.d(t,{aP:()=>i,xW:()=>r})},82774:(e,t,n)=>{"use strict";var r=n(44796),i=n(28057),a=n(23873),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},83606:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;const i=n(10569);class a extends i.Coder{constructor(e){super(e.name,e.type,"_",e.dynamic),r(this,"coder",void 0),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}t.AnonymousCoder=a},83636:(e,t,n)=>{"use strict";var r=n(39088),i=n(32011);e.exports=Object.keys||function(e){return r(e,i)}},83855:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(e,t,n)=>JSON.stringify(e,((e,n)=>{const r="bigint"===typeof n?n.toString():n;return"function"===typeof t?t(e,r):r}),n)},83859:(e,t,n)=>{"use strict";var r=n(96643),i=n(44796),a=n(53540),o=n(889),s=n(46635),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},83942:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},84035:(e,t,n)=>{"use strict";var r=n(43693).default;
2Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;const i=n(24839),a=n(18500),o=n(10569);class s extends o.Coder{constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),r(this,"size",void 0),(0,i.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=(0,i.getBytesCopy)(a.Typed.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return(0,i.hexlify)(e.readBytes(this.size))}}t.FixedBytesCoder=s},84056:(e,t,n)=>{"use strict";n(59699);var r=n(29745),i=n(24316),a=n(59191),o=n(251),s=n(49831),l=n(61335),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),p=f&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var g=/./[h],m=t(h,""[e],(function(e,t,n,i,o){var s=t.exec;return s===a||s===u.exec?f&&!o?{done:!0,value:r(g,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(u,h,m[1])}d&&l(u[h],"sham",!0)}},84259:(e,t,n)=>{"use strict";n.d(t,{secp256k1:()=>Re});var r=n(17201),i=n(70399),a=n(67634);class o extends a.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,i.sd)(e);const n=(0,a.ZJ)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,o=new Uint8Array(r);o.set(n.length>r?e.create().update(n).digest():n);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=e.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),o.fill(0)}update(e){return(0,i.CC)(this),this.iHash.update(e),this}digestInto(e){(0,i.CC)(this),(0,i.DO)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const s=(e,t,n)=>new o(e,t).update(n).digest();s.create=(e,t)=>new o(e,t);const l=BigInt(0),c=BigInt(1);function u(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function d(e){if(!u(e))throw new Error("Uint8Array expected")}function h(e,t){if("boolean"!==typeof t)throw new Error(e+" boolean expected, got "+t)}function f(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function p(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?l:BigInt("0x"+e)}const g="function"===typeof Uint8Array.from([]).toHex&&"function"===typeof Uint8Array.fromHex,m=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function y(e){if(d(e),g)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=m[e[n]];return t}const b=48,v=57,x=65,w=70,k=97,A=102;function E(e){return e>=b&&e<=v?e-b:e>=x&&e<=w?e-(x-10):e>=k&&e<=A?e-(k-10):void 0}function S(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);if(g)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const t=E(e.charCodeAt(a)),n=E(e.charCodeAt(a+1));if(void 0===t||void 0===n){const t=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+a)}r[i]=16*t+n}return r}function P(e){return p(y(e))}function C(e){return d(e),p(y(Uint8Array.from(e).reverse()))}function O(e,t){return S(e.toString(16).padStart(2*t,"0"))}function T(e,t){return O(e,t).reverse()}function N(e,t,n){let r;if("string"===typeof t)try{r=S(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else{if(!u(t))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(t)}const i=r.length;if("number"===typeof n&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return r}function _(){let e=0;for(let n=0;n<arguments.length;n++){const t=n<0||arguments.length<=n?void 0:arguments[n];d(t),e+=t.length}const t=new Uint8Array(e);for(let n=0,r=0;n<arguments.length;n++){const e=n<0||arguments.length<=n?void 0:arguments[n];t.set(e,r),r+=e.length}return t}const I=e=>"bigint"===typeof e&&l<=e;function R(e,t,n){return I(e)&&I(t)&&I(n)&&t<=e&&e<n}function M(e,t,n,r){if(!R(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}const j=e=>(c<<BigInt(e))-c,L=e=>new Uint8Array(e),B=e=>Uint8Array.from(e);const F={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||u(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(t,n,r)=>{const i=F[n];if("function"!==typeof i)throw new Error("invalid validator function");const a=e[t];if((!r||void 0!==a)&&!i(a,e))throw new Error("param "+String(t)+" is invali
2d. Expected "+n+", got "+a)};for(const[i,a]of Object.entries(t))r(i,a,!1);for(const[i,a]of Object.entries(n))r(i,a,!0);return e}function U(e){const t=new WeakMap;return function(n){const r=t.get(n);if(void 0!==r)return r;for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];const s=e(n,...a);return t.set(n,s),s}}const z=BigInt(0),W=BigInt(1),H=BigInt(2),V=BigInt(3),G=BigInt(4),Y=BigInt(5),q=BigInt(8);function X(e,t){const n=e%t;return n>=z?n:t+n}function $(e,t,n){if(t<z)throw new Error("invalid exponent, negatives unsupported");if(n<=z)throw new Error("invalid modulus");if(n===W)return z;let r=W;for(;t>z;)t&W&&(r=r*e%n),e=e*e%n,t>>=W;return r}function K(e,t,n){let r=e;for(;t-- >z;)r*=r,r%=n;return r}function Q(e,t){if(e===z)throw new Error("invert: expected non-zero number");if(t<=z)throw new Error("invert: expected positive modulus, got "+t);let n=X(e,t),r=t,i=z,a=W,o=W,s=z;for(;n!==z;){const e=r/n,t=r%n,l=i-o*e,c=a-s*e;r=n,n=t,i=o,a=s,o=l,s=c}if(r!==W)throw new Error("invert: does not exist");return X(i,t)}function J(e){if(e%G===V){const t=(e+W)/G;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}if(e%q===Y){const t=(e-Y)/q;return function(e,n){const r=e.mul(n,H),i=e.pow(r,t),a=e.mul(n,i),o=e.mul(e.mul(a,H),i),s=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(s),n))throw new Error("Cannot find square root");return s}}return function(e){const t=(e-W)/H;let n,r,i;for(n=e-W,r=0;n%H===z;n/=H,r++);for(i=H;i<e&&$(i,t,e)!==e-W;i++)if(i>1e3)throw new Error("Cannot find square root: likely non-prime P");if(1===r){const t=(e+W)/G;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}const a=(n+W)/H;return function(e,o){if(e.pow(o,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let s=r,l=e.pow(e.mul(e.ONE,i),n),c=e.pow(o,a),u=e.pow(o,n);for(;!e.eql(u,e.ONE);){if(e.eql(u,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(u);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const n=e.pow(l,W<<BigInt(s-t-1));l=e.sqr(n),c=e.mul(c,n),u=e.mul(u,l),s=t}return c}}(e)}const Z=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ee(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function te(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=z)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:a}=ee(e,t);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let o;const s=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:a,MASK:j(i),ZERO:z,ONE:W,create:t=>X(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return z<=t&&t<e},is0:e=>e===z,isOdd:e=>(e&W)===W,neg:t=>X(-t,e),eql:(e,t)=>e===t,sqr:t=>X(t*t,e),add:(t,n)=>X(t+n,e),sub:(t,n)=>X(t-n,e),mul:(t,n)=>X(t*n,e),pow:(e,t)=>function(e,t,n){if(n<z)throw new Error("invalid exponent, negatives unsupported");if(n===z)return e.ONE;if(n===W)return t;let r=e.ONE,i=t;for(;n>z;)n&W&&(r=e.mul(r,i)),i=e.sqr(i),n>>=W;return r}(s,e,t),div:(t,n)=>X(t*Q(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>Q(t,e),sqrt:r.sqrt||(t=>(o||(o=J(e)),o(s,t))),invertBatch:e=>function(e,t){const n=new Array(t.length),r=t.reduce(((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r))),e.ONE),i=e.inv(r);return t.reduceRight(((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r))),i),n}(s,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?T(e,a):O(e,a),fromBytes:e=>{if(e.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+e.length);return n?C(e):P(e)}});return Object.freeze(s)}function ne(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function re(e){const t=ne(e);return t+Math.ceil(t/2)}const ie=BigInt(0),ae=BigInt(1);function oe(e,t){const n=t.negate();return e?n:t}function se(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function le(e,t){se(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:j(e),maxNumber:n,shiftBy:BigInt(e)}}function ce(e,t,n){const{windowSize:r,mask:i,maxNumber:a,shiftBy:o}=n;let s=Number(e&i),l=e>>o;s>r&&(s-=a,l+=ae);const c=t*r;return{nextN:l,offset:c+Math.abs(s)-1,isZero:0===s,isNeg:s<0,isNegF:t%2!==0,offsetF:c}}function ue(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach(((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)}))}function de(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach(((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)}))}const he=new WeakMap,fe=new WeakMap;function pe(e){return fe.get(e)||1}function ge(e,t,n,r){if(ue(n,e),de(r,t),n.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const i=e.ZERO,a=function(e){let t;for(t=0;e>l;e>>=c,t+=1);return t}(BigInt(n.length)),o=a>12?a-3:a>4?a-2:a?2:1,s=j(o),u=new Array(Number(s)+1).fill(i);let d=i;for(let l=Math.floor((t.BITS-1)/o)*o;l>=0;l-=o){u.fill(i);for(let t=0;t<r.length;t++){const e=r[t],i=Number(e>>BigInt(l)&s);u[i]=u[i].add(n[t])}let e=i;for(let t=u.length-1,n=i;t>0;t--)n=n.add(u[t]),e=e.add(n);if(d=d.add(e),0!==l)for(let t=0;t<o;t++)d=d.double()}return d}function me(e){return D(e.Fp,Z.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),D(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ee(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function ye(e){void 0!==e.lowS&&h("lowS",e.lowS),void 0!==e.prehash&&h("prehash",e.prehash)}
2class be extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}}const ve={Err:be,_tlv:{encode:(e,t)=>{const{Err:n}=ve;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=f(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const a=r>127?f(i.length/2|128):"";return f(e)+a+i+t},decode(e,t){const{Err:n}=ve;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++];let a=0;if(!!(128&i)){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const o=t.subarray(r,r+e);if(o.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===o[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of o)a=a<<8|t;if(r+=e,a<128)throw new n("tlv.decode(long): not minimal encoding")}else a=i;const o=t.subarray(r,r+a);if(o.length!==a)throw new n("tlv.decode: wrong value length");return{v:o,l:t.subarray(r+a)}}},_int:{encode(e){const{Err:t}=ve;if(e<xe)throw new t("integer: negative integers are not allowed");let n=f(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=ve;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return P(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=ve,i=N("signature",e),{v:a,l:o}=r.decode(48,i);if(o.length)throw new t("invalid signature: left bytes after parsing");const{v:s,l:l}=r.decode(2,a),{v:c,l:u}=r.decode(2,l);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(c)}},hexFromSig(e){const{_tlv:t,_int:n}=ve,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}},xe=BigInt(0),we=BigInt(1),ke=(BigInt(2),BigInt(3));BigInt(4);function Ae(e){const t=function(e){const t=me(e);D(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if("object"!==typeof n||"bigint"!==typeof n.beta||"function"!==typeof n.splitScalar)throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,r=te(t.n,t.nBitLength),i=t.toBytes||((e,t,r)=>{const i=t.toAffine();return _(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),a=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function o(e){const{a:r,b:i}=t,a=n.sqr(e),o=n.mul(a,e);return n.add(n.add(o,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function s(e){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:i,n:a}=t;if(n&&"bigint"!==typeof e){if(u(e)&&(e=y(e)),"string"!==typeof e||!n.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*r,"0")}let o;try{o="bigint"===typeof e?e:P(N("private key",e,r))}catch(s){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof e)}return i&&(o=X(o,a)),M("private key",o,we,a),o}function l(e){if(!(e instanceof f))throw new Error("ProjectivePoint expected")}const c=U(((e,t)=>{const{px:r,py:i,pz:a}=e;if(n.eql(a,n.ONE))return{x:r,y:i};const o=e.is0();null==t&&(t=o?n.ONE:n.inv(a));const s=n.mul(r,t),l=n.mul(i,t),c=n.mul(a,t);if(o)return{x:n.ZERO,y:n.ZERO};if(!n.eql(c,n.ONE))throw new Error("invZ was invalid");return{x:s,y:l}})),d=U((e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:r,y:i}=e.toAffine();if(!n.isValid(r)||!n.isValid(i))throw new Error("bad point: x or y not FE");const a=n.sqr(i),s=o(r);if(!n.eql(a,s))throw new Error("bad point: equation left != right");
vendor: 2,715 bytes, line 2
2if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class f{constructor(e,t,r){if(null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required");this.px=e,this.py=t,this.pz=r,Object.freeze(this)}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error("invalid affine point");if(e instanceof f)throw new Error("projective point not allowed");const i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?f.ZERO:new f(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(f.fromAffine)}static fromHex(e){const t=f.fromAffine(a(N("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return f.BASE.multiply(s(e))}static msm(e,t){return ge(f,r,e,t)}_setWindowSize(e){g.setWindowSize(this,e)}assertValidity(){d(this)}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){l(e);const{px:t,py:r,pz:i}=this,{px:a,py:o,pz:s}=e,c=n.eql(n.mul(t,s),n.mul(a,i)),u=n.eql(n.mul(r,s),n.mul(o,i));return c&&u}negate(){return new f(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,i=n.mul(r,ke),{px:a,py:o,pz:s}=this;let l=n.ZERO,c=n.ZERO,u=n.ZERO,d=n.mul(a,a),h=n.mul(o,o),p=n.mul(s,s),g=n.mul(a,o);return g=n.add(g,g),u=n.mul(a,s),u=n.add(u,u),l=n.mul(e,u),c=n.mul(i,p),c=n.add(l,c),l=n.sub(h,c),c=n.add(h,c),c=n.mul(l,c),l=n.mul(g,l),u=n.mul(i,u),p=n.mul(e,p),g=n.sub(d,p),g=n.mul(e,g),g=n.add(g,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,p),d=n.mul(d,g),c=n.add(c,d),p=n.mul(o,s),p=n.add(p,p),d=n.mul(p,g),l=n.sub(l,d),u=n.mul(p,h),u=n.add(u,u),u=n.add(u,u),new f(l,c,u)}add(e){l(e);const{px:r,py:i,pz:a}=this,{px:o,py:s,pz:c}=e;let u=n.ZERO,d=n.ZERO,h=n.ZERO;const p=t.a,g=n.mul(t.b,ke);let m=n.mul(r,o),y=n.mul(i,s),b=n.mul(a,c),v=n.add(r,i),x=n.add(o,s);v=n.mul(v,x),x=n.add(m,y),v=n.sub(v,x),x=n.add(r,a);let w=n.add(o,c);return x=n.mul(x,w),w=n.add(m,b),x=n.sub(x,w),w=n.add(i,a),u=n.add(s,c),w=n.mul(w,u),u=n.add(y,b),w=n.sub(w,u),h=n.mul(p,x),u=n.mul(g,b),h=n.add(u,h),u=n.sub(y,h),h=n.add(y,h),d=n.mul(u,h),y=n.add(m,m),y=n.add(y,m),b=n.mul(p,b),x=n.mul(g,x),y=n.add(y,b),b=n.sub(m,b),b=n.mul(p,b),x=n.add(x,b),m=n.mul(y,x),d=n.add(d,m),m=n.mul(w,x),u=n.mul(v,u),u=n.sub(u,m),m=n.mul(v,y),h=n.mul(w,h),h=n.add(h,m),new f(u,d,h)}subtract(e){return this.add(e.negate())}is0(){return this.equals(f.ZERO)}wNAF(e){return g.wNAFCached(this,e,f.normalizeZ)}multiplyUnsafe(e){const{endo:r,n:i}=t;M("scalar",e,xe,i);const a=f.ZERO;if(e===xe)return a;
2if(this.is0()||e===we)return this;if(!r||g.hasPrecomputes(this))return g.wNAFCachedUnsafe(this,e,f.normalizeZ);let{k1neg:o,k1:s,k2neg:l,k2:c}=r.splitScalar(e),u=a,d=a,h=this;for(;s>xe||c>xe;)s&we&&(u=u.add(h)),c&we&&(d=d.add(h)),h=h.double(),s>>=we,c>>=we;return o&&(u=u.negate()),l&&(d=d.negate()),d=new f(n.mul(d.px,r.beta),d.py,d.pz),u.add(d)}multiply(e){const{endo:r,n:i}=t;let a,o;if(M("scalar",e,we,i),r){const{k1neg:t,k1:i,k2neg:s,k2:l}=r.splitScalar(e);let{p:c,f:u}=this.wNAF(i),{p:d,f:h}=this.wNAF(l);c=g.constTimeNegate(t,c),d=g.constTimeNegate(s,d),d=new f(n.mul(d.px,r.beta),d.py,d.pz),a=c.add(d),o=u.add(h)}else{const{p:t,f:n}=this.wNAF(e);a=t,o=n}return f.normalizeZ([a,o])[0]}multiplyAndAddUnsafe(e,t,n){const r=f.BASE,i=(e,t)=>t!==xe&&t!==we&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),a=i(this,t).add(i(e,n));return a.is0()?void 0:a}toAffine(e){return c(this,e)}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===we)return!0;if(n)return n(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===we?this:n?n(f,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return h("isCompressed",e),this.assertValidity(),i(f,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return h("isCompressed",e),y(this.toRawBytes(e))}}f.BASE=new f(t.Gx,t.Gy,n.ONE),f.ZERO=new f(n.ZERO,n.ONE,n.ZERO);const p=t.nBitLength,g=(m=f,b=t.endo?Math.ceil(p/2):p,{constTimeNegate:oe,hasPrecomputes:e=>1!==pe(e),unsafeLadder(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.ZERO,r=e;for(;t>ie;)t&ae&&(n=n.add(r)),r=r.double(),t>>=ae;return n},precomputeWindow(e,t){const{windows:n,windowSize:r}=le(t,b),i=[];let a=e,o=a;for(let s=0;s<n;s++){o=a,i.push(o);for(let e=1;e<r;e++)o=o.add(a),i.push(o);a=o.double()}return i},wNAF(e,t,n){let r=m.ZERO,i=m.BASE;const a=le(e,b);for(let o=0;o<a.windows;o++){const{nextN:e,offset:s,isZero:l,isNeg:c,isNegF:u,offsetF:d}=ce(n,o,a);n=e,l?i=i.add(oe(u,t[d])):r=r.add(oe(c,t[s]))}return{p:r,f:i}},wNAFUnsafe(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.ZERO;const i=le(e,b);for(let a=0;a<i.windows&&n!==ie;a++){const{nextN:e,offset:o,isZero:s,isNeg:l}=ce(n,a,i);if(n=e,!s){const e=t[o];r=r.add(l?e.negate():e)}}return r}
2,getPrecomputes(e,t,n){let r=he.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&he.set(t,n(r))),r},wNAFCached(e,t,n){const r=pe(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){const i=pe(e);return 1===i?this.unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)},setWindowSize(e,t){se(t,b),fe.set(e,t),he.delete(e)}});var m,b;return{CURVE:t,ProjectivePoint:f,normPrivateKeyToScalar:s,weierstrassEquation:o,isWithinCurveOrder:function(e){return R(e,we,t.n)}}}function Ee(e){const t=function(e){const t=me(e);return D(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,i=n.BYTES+1,a=2*n.BYTES+1;function o(e){return X(e,r)}function s(e){return Q(e,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:c,weierstrassEquation:d,isWithinCurveOrder:f}=Ae({...t,toBytes(e,t,r){const i=t.toAffine(),a=n.toBytes(i.x),o=_;return h("isCompressed",r),r?o(Uint8Array.from([t.hasEvenY()?2:3]),a):o(Uint8Array.from([4]),a,n.toBytes(i.y))},fromBytes(e){const t=e.length,r=e[0],o=e.subarray(1);if(t!==i||2!==r&&3!==r){if(t===a&&4===r){return{x:n.fromBytes(o.subarray(0,n.BYTES)),y:n.fromBytes(o.subarray(n.BYTES,2*n.BYTES))}}throw new Error("invalid Point, expected length of "+i+", or uncompressed "+a+", got "+t)}{const e=P(o);if(!R(e,we,n.ORDER))throw new Error("Point is not on curve");const t=d(e);let i;try{i=n.sqrt(t)}catch(s){const e=s instanceof Error?": "+s.message:"";throw new Error("Point is not on curve"+e)}return 1===(1&r)!==((i&we)===we)&&(i=n.neg(i)),{x:e,y:i}}}}),p=e=>y(O(e,t.nByteLength));function g(e){return e>r>>we}const m=(e,t,n)=>P(e.slice(t,n));class b{constructor(e,t,n){M("r",e,we,r),M("s",t,we,r),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){const n=t.nByteLength;return e=N("compactSignature",e,2*n),new b(m(e,0,n),m(e,n,2*n))}static fromDER(e){const{r:t,s:n}=ve.toSig(N("DER",e));return new b(t,n)}assertValidity(){}addRecoveryBit(e){return new b(this.r,this.s,e)}recoverPublicKey(e){const{r:r,s:i,recovery:a}=this,c=k(N("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw new Error("recovery id invalid");const u=2===a||3===a?r+t.n:r;if(u>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=0===(1&a)?"02":"03",h=l.fromHex(d+p(u)),f=s(u),g=o(-c*f),m=o(i*f),y=l.BASE.multiplyAndAddUnsafe(h,g,m);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new b(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return S(this.toDERHex())}toDERHex(){return ve.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return S(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}const v={isValidPrivateKey(e){try{return c(e),!0}catch(t){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{const e=re(t.n);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.length,i=ne(t),a=re(t);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const o=X(n?C(e):P(e),t-W)+W;return n?T(o,i):O(o,i)}(t.randomBytes(e),t.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function x(e){const t=u(e),n="string"===typeof e,r=(t||n)&&e.length;return t?r===i||r===a:n?r===2*i||r===2*a:e instanceof l}const w=t.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const n=P(e),r=8*e.length-t.nBitLength;return r>0?n>>BigInt(r):n},k=t.bits2int_modN||function(e){return o(w(e))},A=j(t.nBitLength);function E(e){return M("num < 2^"+t.nBitLength,e,xe,A),O(e,t.nByteLength)}function I(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F;if(["recovered","canonical"].some((e=>e in i)))throw new Error("sign() legacy options not supported");const{hash:a,randomBytes:u}=t;let{lowS:d,prehash:h,extraEntropy:p}=i;null==d&&(d=!0),e=N("msgHash",e),ye(i),h&&(e=N("prehashed msgHash",a(e)));const m=k(e),y=c(r),v=[E(y),E(m)];if(null!=p&&!1!==p){const e=!0===p?u(n.BYTES):p;v.push(N("extraEntropy",e))}const x=_(...v),A=m;return{seed:x,k2sig:function(e){const t=w(e);if(!f(t))return;const n=s(t),r=l.BASE.multiply(t).toAffine(),i=o(r.x);if(i===xe)return;const a=o(n*o(A+i*y));if(a===xe)return;let c=(r.x===i?0:2)|Number(r.y&we),u=a;return d&&g(a)&&(u=function(e){return g(e)?o(-e):e}(a),c^=1),new b(i,u,c)}}}const F={lowS:t.lowS,prehash:!1},U={lowS:t.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return l.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(x(e))throw new Error("first arg must be private key");if(!x(t))throw new Error("second arg must be public key");return l.fromHex(t).multiply(c(e)).toRawBytes(n)},sign:function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F;const{seed:i,k2sig:a}=I(e,n,r),o=t,s=function(e,t,n){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof n)throw new Error("hmacFn must be a function");let r=L(e),i=L(e),a=0;const o=()=>{r.fill(1),i.fill(0),a=0},s=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return n(i,r,...t)},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L(0);i=s(B([0]),e),r=s(),0!==e.length&&(i=s(B([1]),e),r=s())},c=()=>
2{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){r=s();const t=r.slice();n.push(t),e+=r.length}return _(...n)};return(e,t)=>{let n;for(o(),l(e);!(n=t(c()));)l();return o(),n}}(o.hash.outputLen,o.nByteLength,o.hmac);return s(i,a)},verify:function(e,n,r){var i;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U;const c=e;n=N("msgHash",n),r=N("publicKey",r);const{lowS:d,prehash:h,format:f}=a;if(ye(a),"strict"in a)throw new Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw new Error("format must be compact or der");const p="string"===typeof c||u(c),g=!p&&!f&&"object"===typeof c&&null!==c&&"bigint"===typeof c.r&&"bigint"===typeof c.s;if(!p&&!g)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let m,y;try{if(g&&(m=new b(c.r,c.s)),p){try{"compact"!==f&&(m=b.fromDER(c))}catch(C){if(!(C instanceof ve.Err))throw C}m||"der"===f||(m=b.fromCompact(c))}y=l.fromHex(r)}catch(O){return!1}if(!m)return!1;if(d&&m.hasHighS())return!1;h&&(n=t.hash(n));const{r:v,s:x}=m,w=k(n),A=s(x),E=o(w*A),S=o(v*A),P=null===(i=l.BASE.multiplyAndAddUnsafe(y,E,S))||void 0===i?void 0:i.toAffine();return!!P&&o(P.x)===v},ProjectivePoint:l,Signature:b,utils:v}}function Se(e){return{hash:e,hmac:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return s(e,t,(0,a.Id)(...r))},randomBytes:a.po}}const Pe=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Ce=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Oe=BigInt(1),Te=BigInt(2),Ne=(e,t)=>(e+t/Te)/t;function _e(e){const t=Pe,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),s=BigInt(44),l=BigInt(88),c=e*e*e%t,u=c*c*e%t,d=K(u,n,t)*u%t,h=K(d,n,t)*u%t,f=K(h,Te,t)*c%t,p=K(f,i,t)*f%t,g=K(p,a,t)*p%t,m=K(g,s,t)*g%t,y=K(m,l,t)*m%t,b=K(y,s,t)*g%t,v=K(b,n,t)*u%t,x=K(v,o,t)*p%t,w=K(x,r,t)*c%t,k=K(w,Te,t);if(!Ie.eql(Ie.sqr(k),e))throw new Error("Cannot find square root");return k}const Ie=te(Pe,void 0,void 0,{sqrt:_e}),Re=function(e,t){const n=t=>Ee({...e,...Se(t)});return{...n(t),create:n}}({a:BigInt(0),b:BigInt(7),Fp:Ie,n:Ce,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=Ce,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Oe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,o=BigInt("0x100000000000000000000000000000000"),s=Ne(a*e,t),l=Ne(-r*e,t);let c=X(e-s*n-l*i,t),u=X(-s*r-l*a,t);const d=c>o,h=u>o;if(d&&(c=t-c),h&&(u=t-u),c>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:u}}}},r.sc);BigInt(0);Re.ProjectivePoint},84700:(e,t,n)=>{"use strict";var r=n(29411),i=n(47734)(),a=n(70776).functionsHaveConfigurableNames(),o=n(37277);e.exports=function(e,t){if("function"!==typeof e)throw new o("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!a||(i?r(e,"name",t,!0,!0):r(e,"name",t)),e}},84753:(e,t,n)=>{var r=n(10052);e.exports=function(e){return function(t){return r(t,e)}}},84982:(e,t,n)=>{"use strict";n.d(t,{k:()=>f});var r=n(32146),i=n(9186);const a=e=>(0,i.S)((0,r.ZJ)(e));var o=n(36140),s=n(64199);const l=(0,o.A)(/^tuple((\[(\d*)\])*)$/,{array:1});function c(e){let t=e.type;if(l.test(e.type)&&"components"in e){var n;t="(";const r=e.components.length;for(let n=0;n<r;n++){t+=c(e.components[n]),n<r-1&&(t+=", ")}const i=(0,s.Yv)(l,e.type);return t+=`)${null!==(n=null===i||void 0===i?void 0:i.array)&&void 0!==n?n:""}`,c({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function u(e){let t="";const n=e.length;for(let r=0;r<n;r++){t+=c(e[r]),r!==n-1&&(t+=", ")}return t}var d=n(36026);const h=e=>function(e){let t=!0,n="",r=0,i="",a=!1;for(let o=0;o<e.length;o++){const s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t)if(0!==r)" "!==s?(i+=s,n+=s):","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){a=!0;break}}if(!a)throw new d.C("Unable to normalize signature.");return i}("string"===typeof e?e:function(e){var t;return"function"===e.type?`function ${e.name}
2(${u(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${null!==(t=e.outputs)&&void 0!==t&&t.length?` returns (${u(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${u(e.inputs)})`:"error"===e.type?`error ${e.name}(${u(e.inputs)})`:"constructor"===e.type?`constructor(${u(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable"}(e));function f(e){return t=h(e),a(t);var t}},85038:(e,t,n)=>{"use strict";n.d(t,{$s:()=>c,Kc:()=>d,Kz:()=>u,Vg:()=>l,WA:()=>h,aO:()=>o,n3:()=>s});var r=n(7628),i=n(70246),a=n(36026);function o(e){const t=Object.entries(e).map((e=>{let[t,n]=e;return void 0===n||!1===n?null:[t,n]})).filter(Boolean),n=t.reduce(((e,t)=>{let[n]=t;return Math.max(e,n.length)}),0);return t.map((e=>{let[t,r]=e;return` ${`${t}:`.padEnd(n+1)} ${r}`})).join("\n")}class s extends a.C{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}a.C;class l extends a.C{constructor(e){let{transaction:t}=e;super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}a.C;a.C;a.C;class c extends a.C{constructor(e,t){var n;let{account:a,docsPath:s,chain:l,data:c,gas:u,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:f,nonce:p,to:g,value:m}=t;const y=o({chain:l&&`${null===l||void 0===l?void 0:l.name} (id: ${null===l||void 0===l?void 0:l.id})`,from:null===a||void 0===a?void 0:a.address,to:g,value:"undefined"!==typeof m&&`${(0,r.c)(m)} ${(null===l||void 0===l||null===(n=l.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:c,gas:u,gasPrice:"undefined"!==typeof d&&`${(0,i.Q)(d)} gwei`,maxFeePerGas:"undefined"!==typeof h&&`${(0,i.Q)(h)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof f&&`${(0,i.Q)(f)} gwei`,nonce:p});super(e.shortMessage,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",y].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class u extends a.C{constructor(e){let{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a}=e,o="Transaction";r&&void 0!==a&&(o=`Transaction at block time "${r}" at index "${a}"`),t&&void 0!==a&&(o=`Transaction at block hash "${t}" at index "${a}"`),n&&void 0!==a&&(o=`Transaction at block number "${n}" at index "${a}"`),i&&(o=`Transaction with hash "${i}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class d extends a.C{constructor(e){let{hash:t}=e;super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class h extends a.C{constructor(e){let{hash:t}=e;super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},85125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;const r=n(50638),i=BigInt(0),a=BigInt(1),o=BigInt(2),s=BigInt(3),l=BigInt(4),c=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const n=e%t;return n>=i?n:t+n}function h(e,t,n){if(n<=i||t<i)throw new Error("Expected power/modulo > 0");if(n===a)return i;let r=a;for(;t>i;)t&a&&(r=r*e%n),e=e*e%n,t>>=a;return r}function f(e,t){if(e===i||t<=i)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=d(e,t),r=t,o=i,s=a,l=a,c=i;for(;n!==i;){const e=r/n,t=r%n,i=o-l*e,a=s-c*e;r=n,n=t,o=l,s=c,l=i,c=a}if(r!==a)throw new Error("invert: does not exist");return d(o,t)}function p(e){const t=(e-a)/o;let n,r,s;for(n=e-a,r=0;n%o===i;n/=o,r++);for(s=o;s<e&&h(s,t,e)!==e-a;s++);if(1===r){const t=(e+a)/l;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}const c=(n+a)/o;return function(e,i){if(e.pow(i,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let o=r,l=e.pow(e.mul(e.ONE,s),n),u=e.pow(i,c),d=e.pow(i,n);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<o&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const n=e.pow(l,a<<BigInt(o-t-1));l=e.sqr(n),u=e.mul(u,n),d=e.mul(d,l),o=t}return u}}function g(e){if(e%l===s){const t=(e+a)/l;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}if(e%u===c){const t=(e-c)/u;return function(e,n){const r=e.mul(n,o),i=e.pow(r,t),a=e.mul(n,i),s=e.mul(e.mul(a,o),i),l=e.mul(a,e.sub(s,e.ONE));if(!e.eql(e.sqr(l),n))throw new Error("Cannot find square root");return l}}return p(e)}t.mod=d,t.pow=h,t.pow2=function(e,t,n){let r=e;for(;t-- >i;)r*=r,r%=n;return r},t.invert=f,t.tonelliShanks=p,t.FpSqrt=g;t.isNegativeLE=(e,t)=>(d(e,t)&a)===a;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(e,t,n){if(n<i)throw new Error("Expected power > 0");if(n===i)return e.ONE;if(n===a)return t;let r=e.ONE,o=t;for(;n>i;)n&a&&(r=e.mul(r,o)),o=e.sqr(o),n>>=a;return r}function b(e,t){const n=new Array(t.length),r=t.reduce(((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r))),e.ONE),i=e.inv(r);return t.reduceRight(((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r))),i),n}function v(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function x(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function w(e){const t=x(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=m.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,r.validateObject)(e,t)},t.FpPow=y,t.FpInvertBatch=b,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"===typeof n?f(n,e.ORDER):e.inv(n))},t.FpIsSquare=function(e){const t=(e.ORDER-a)/o;return n=>{const r=e.pow(n,t);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},t.nLength=v,t.Field=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=i)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:l}=v(e,t);if(l>2048)throw new Error("Field lengths over 2048 bytes are not supported");const c=g(e),u=Object.freeze({ORDER:e,BITS:s,BYTES:l,MASK:(0,r.bitMask)(s),ZERO:i,ONE:a,create:t=>d(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return i<=t&&t<e},is0:e=>e===i,isOdd:e=>(e&a)===a,neg:t=>d(-t,e),eql:(e,t)=>
2e===t,sqr:t=>d(t*t,e),add:(t,n)=>d(t+n,e),sub:(t,n)=>d(t-n,e),mul:(t,n)=>d(t*n,e),pow:(e,t)=>y(u,e,t),div:(t,n)=>d(t*f(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>f(t,e),sqrt:o.sqrt||(e=>c(u,e)),invertBatch:e=>b(u,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,r.numberToBytesLE)(e,l):(0,r.numberToBytesBE)(e,l),fromBytes:e=>{if(e.length!==l)throw new Error(`Fp.fromBytes: expected ${l}, got ${e.length}`);return n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=(e=(0,r.ensureBytes)("privateHash",e)).length,o=v(t).nByteLength+8;if(o<24||i<o||i>1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${i}`);return d(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-a)+a},t.getFieldBytesLength=x,t.getMinHashLength=w,t.mapHashToField=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=e.length,o=x(t),s=w(t);if(i<16||i<s||i>1024)throw new Error(`expected ${s}-1024 bytes of input, got ${i}`);const l=d(n?(0,r.bytesToNumberBE)(e):(0,r.bytesToNumberLE)(e),t-a)+a;return n?(0,r.numberToBytesLE)(l,o):(0,r.numberToBytesBE)(l,o)}},85339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;const r=n(98976);function i(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if("string"===typeof e&&e.length%2===0&&e.match(/^0x[0-9a-f]*$/i)){const t=new Uint8Array((e.length-2)/2);let n=2;for(let r=0;r<t.length;r++)t[r]=parseInt(e.substring(n,n+2),16),n+=2;return t}(0,r.assertArgument)(!1,"invalid BytesLike value",t||"value",e)}function a(e,t){return i(e,t,!1)}function o(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(("number"!==typeof t||e.length===2+2*t)&&(!0!==t||e.length%2===0))}t.getBytes=a,t.getBytesCopy=function(e,t){return i(e,t,!0)},t.isHexString=o,t.isBytesLike=function(e){return o(e,!0)||e instanceof Uint8Array};const s="0123456789abcdef";function l(e){const t=a(e);let n="0x";for(let r=0;r<t.length;r++){const e=t[r];n+=s[(240&e)>>4]+s[15&e]}return n}function c(e,t,n){const i=a(e);(0,r.assert)(t>=i.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(i),length:t,offset:t+1});const o=new Uint8Array(t);return o.fill(0),n?o.set(i,t-i.length):o.set(i,0),l(o)}t.hexlify=l,t.concat=function(e){return"0x"+e.map((e=>l(e).substring(2))).join("")},t.dataLength=function(e){return o(e,!0)?(e.length-2)/2:a(e).length},t.dataSlice=function(e,t,n){const i=a(e);return null!=n&&n>i.length&&(0,r.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:i,length:i.length,offset:n}),l(i.slice(null==t?0:t,null==n?i.length:n))},t.stripZerosLeft=function(e){let t=l(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return c(e,t,!0)},t.zeroPadBytes=function(e,t){return c(e,t,!1)}},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(63662);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},85661:(e,t,n)=>{var r=n(5088),i=n(10150),a=n(7889),o=n(44349),s=n(33077);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},86022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const r=n(53074),i=n(13310),a=n(95070);function o(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaultRandomSource).randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(){const e=o(4,arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultRandomSource),n=(0,i.readUint32LE)(e);return(0,a.wipe)(e),n};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function l(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const l=n.length,c=256-256%l;for(;e>0;){const t=o(Math.ceil(256*e/c),r);for(let r=0;r<t.length&&e>0;r++){const a=t[r];a<c&&(i+=n.charAt(a%l),e--)}(0,a.wipe)(t)}return i}t.randomString=l,t.randomStringForEntropy=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;return l(Math.ceil(e/(Math.log(n.length)/Math.LN2)),n,r)}},86367:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const r=n(69064);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},86942:(e,t,n)=>{var r=n(60299),i=n(41971),a=n(15127),o=n(12279);e.exports=function(e,t){return function(n,s){var l=o(n)?r:i,c=t?t():{};return l(n,e,a(s,2),c)}}},86953:e=>{"use strict";e.exports=Error},87197:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(58418),i=n(78753);function a(e,t){if(!(0,i.P)(e,{strict:!1}))throw new r.M({address:e});if(!(0,i.P)(t,{strict:!1}))throw new r.M({address:t});return e.toLowerCase()===t.toLowerCase()}},87252:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"uint256","name":"_bridgeFee","type":"uint256"},{"internalType":"uint256","name":"_targetTransferFee","type":"uint256"},{"internalType":"uint256","name":"_nativeTransferFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"string","name":"recipientAccountHash","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CrossChainTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"txHash","type":"string"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"CrossChainTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"accountsForAssets","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetHashes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_assetHash","type":"string"},{"internalType":"string","name":"_accountHash","type":"string"},{"internalType":"string","name":"_assetName","type":"string"},{"internalType":"string","name":"_assetSymbol","type":"string"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"bridgeAsset","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"string","name":"_assetHash","type":"string"},{"internalType":"string","name":"_accountHash","type":"string"}],"name":"bridgeErc20Token","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"bridgeFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_txHash","type":"string"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"confirmTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"erc20Tokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintErc20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nativeTransferFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}
2,{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"pendingCrossChainTransfers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"pendingSignedTxs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"removeBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_txHash","type":"string"}],"name":"revertTransferFromNativeChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_txHash","type":"string"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"revertTransferToNativeChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setBridgeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governor","type":"address"}],"name":"setGovernor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setNativeTransferFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTargetTransferFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"targetTransferFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_txHash","type":"string"},{"internalType":"string","name":"_signature","type":"string"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"transferFromNativeChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"string","name":"_recipientAccountHash","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToNativeChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]')},87379:e=>{e.exports=function(e){return this.__data__.get(e)}},87431:(e,t,n)=>{"use strict";var r=n(76040),i=n(29745),a=n(45073),o=n(4136),s=n(23089),l=n(55829),c=n(30421),u=n(12889),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return o(!i(a.f,e,t),e[t])}},87518:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},87555:(e,t,n)=>{"use strict";var r=n(93312).default,i=n(42459).default,a=n(43693).default,o=n(81756).default,s=n(37088).default,l=n(16668).default;Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;const c=n(55114),u=n(69687),d=n(20022),h=n(24839),f=n(11909),p=new Uint8Array(32);p.fill(0);const g=BigInt(-1),m=BigInt(0),y=BigInt(1),b=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const v=(0,h.toBeHex)(y,32),x=(0,h.toBeHex)(m,32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},k=["name","version","chainId","verifyingContract","salt"];function A(e){return function(t){return(0,h.assertArgument)("string"===typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const E={name:A("name"),version:A("version"),chainId:function(e){const t=(0,h.getBigInt)(e,"domain.chainId");return(0,h.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):(0,h.toQuantity)(t)},verifyingContract:function(e){try{return(0,c.getAddress)(e).toLowerCase()}catch(t){}(0,h.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){const t=(0,h.getBytes)(e,"domain.salt");return(0,h.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,h.hexlify)(t)}};function S(e){{const t=e.match(/^(u?)int(\d+)$/);if(t){const n=""===t[1],r=parseInt(t[2]);(0,h.assertArgument)(r%8===0&&0!==r&&r<=256&&t[2]===String(r),"invalid numeric width","type",e);const i=(0,h.mask)(b,n?r-1:r),a=n?(i+y)*g:m;return function(t){const r=(0,h.getBigInt)(t,"value");return(0,h.assertArgument)(r>=a&&r<=i,`value out-of-bounds for ${e}`,"value",r),(0,h.toBeHex)(n?(0,h.toTwos)(r,256):r,32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0,h.assertArgument)(0!==n&&n<=32&&t[1]===String(n),"invalid bytes width","type",e),function(t){const r=(0,h.getBytes)(t);return(0,h.assertArgument)(r.length===n,`invalid length for ${e}`,"value",t),function(e){const t=(0,h.getBytes)(e),n=t.length%32;return n?(0,h.concat)([t,p.slice(n)]):(0,h.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,h.zeroPadValue)((0,c.getAddress)(e),32)};case"bool":return function(e){return e?v:x};case"bytes":return function(e){return(0,u.keccak256)(e)};case"string":return function(e){return(0,f.id)(e)}}return null}function P(e,t){return`${e}(${t.map((e=>{let{name:t,type:n}=e;return n+" "+t})).join(",")})`}function C(e){const t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}var O=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;class I{get types(){return JSON.parse(l(O,this))}constructor(e){r(this,_),a(this,"primaryType",void 0),i(this,O,void 0),i(this,T,void 0),i(this,N,void 0),s(T,this,new Map),s(N,this,new Map);const t=new Map,n=new Map,o=new Map,c={};Object.keys(e).forEach((r=>{c[r]=e[r].map((t=>{let{name:n,type:r}=t,{base:i,index:a}=C(r);return"int"!==i||e.int||(i="int256"),"uint"!==i||e.uint||(i="uint256"),{name:n,type:i+(a||"")}})),t.set(r,new Set),n.set(r,[]),o.set(r,new Set)})),s(O,this,JSON.stringify(c));for(const r in c){const i=new Set;for(const a of c[r]){(0,h.assertArgument)(!i.has(a.name),`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(r)}`,"types",e),i.add(a.name);const o=C(a.type).base;(0,h.assertArgument)(o!==r,`circular type reference to ${JSON.stringify(o)}`,"types",e);S(o)||((0,h.assertArgument)(n.has(o),`unknown type ${JSON.stringify(o)}`,"types",e),n.get(o).push(r),t.get(r).add(o))}}const u=Array.from(n.keys()).filter((e=>0===n.get(e).length));(0,h.assertArgument)(0!==u.length,"missing primary type","types",e),(0,h.assertArgument)(1===u.length,`ambiguous primary types or unused types: ${u.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,h.defineProperties)(this,{primaryType:u[0]}),function r(i,a){(0,h.assertArgument)(!a.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),a.add(i);for(const e of t.get(i))if(n.has(e)){r(e,a);for(const t of a)o.get(t).add(e)}a.delete(i)}(this.primaryType,new Set);for(const[r,i]of o){const e=Array.from(i);e.sort(),l(T,this).set(r,P(r,c[r])+e.map((e=>P(e,c[e]))).join(""))}}getEncoder(e){let t=l(N,this).get(e);return t||(t=o(_,this,R).call(this,e),l(N,this).set(e,t)),t}encodeType(e){const t=l(T,this).get(e);return(0,h.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,u.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(S(e))return n(e,t);const r=C(e).array;if(r)return(0,h.assertArgument)(-1===r.count||r.count===t.length,`array length mismatch; expected length ${r.count}`,"value",t),t.map((e=>this._visit(r.prefix,e,n)));const i=this.types[e];if(i)return i.reduce(((e,r)=>{let{name:i,type:a}=r;return e[i]=this._visit(a,t[i],n),e}),{});(0,h.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new I(e)}static getPrimaryType(e){return I.from(e).primaryType}static hashStruct(e,t,n){return I.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(null==e[n])continue;const r=w[n];(0,h.assertArgument)(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>k.indexOf(e.name)-k.indexOf(t.name))),I.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return(0,h.concat)(["0x1901",I.hashDomain(e),I.from(t).hash(n)])}static hash(e,t,n){return(0,u.keccak256)(I.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)null==e[o]&&delete e[o];const i={};e.verifyingContract&&!(0,h.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=I.from(t);a.visit(n,((e,t)=>("address"!==e||(0,h.isHexString)(t,20)||(i[t]="0x"),t)));for(const o in i)i[o]=await r(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),{domain:e,value:n=a.visit(n,((e,t)=>"address"===e&&i[t]?i[t]:t))}}static getPayload(e,t,n){I.hashDomain(e);const r={},i=[];
2k.forEach((t=>{const n=e[t];null!=n&&(r[t]=E[t](n),i.push({name:t,type:w[t]}))}));const a=I.from(t);t=a.types;const o=Object.assign({},t);return(0,h.assertArgument)(null==o.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),o.EIP712Domain=i,a.encode(n),{types:o,domain:r,primaryType:a.primaryType,message:a.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,h.hexlify)((0,h.getBytes)(t));if(e.match(/^u?int/))return(0,h.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,h.assertArgument)("string"===typeof t,"invalid string","value",t),t}(0,h.assertArgument)(!1,"unsupported type","type",e)}))}}}function R(e){{const t=S(e);if(t)return t}const t=C(e).array;if(t){const e=t.prefix,n=this.getEncoder(e);return r=>{(0,h.assertArgument)(-1===t.count||t.count===r.length,`array length mismatch; expected length ${t.count}`,"value",r);let i=r.map(n);return l(T,this).has(e)&&(i=i.map(u.keccak256)),(0,u.keccak256)((0,h.concat)(i))}}const n=this.types[e];if(n){const t=(0,f.id)(l(T,this).get(e));return e=>{const r=n.map((t=>{let{name:n,type:r}=t;const i=this.getEncoder(r)(e[n]);return l(T,this).has(r)?(0,u.keccak256)(i):i}));return r.unshift(t),(0,h.concat)(r)}}(0,h.assertArgument)(!1,`unknown type: ${e}`,"type",e)}t.TypedDataEncoder=I,t.verifyTypedData=function(e,t,n,r){return(0,d.recoverAddress)(I.hash(e,t,n),r)}},87939:(e,t,n)=>{"use strict";n.d(t,{Hi:()=>i,ft:()=>a,uj:()=>s});var r=n(36026);class i extends r.C{constructor(e){let{address:t}=e;super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class a extends r.C{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function o(e){return e.reduce(((e,t)=>{let{slot:n,value:r}=t;return`${e} ${n}: ${r}\n`}),"")}function s(e){return e.reduce(((e,t)=>{let{address:n,...r}=t,i=`${e} ${n}:\n`;return r.nonce&&(i+=` nonce: ${r.nonce}\n`),r.balance&&(i+=` balance: ${r.balance}\n`),r.code&&(i+=` code: ${r.code}\n`),r.state&&(i+=" state:\n",i+=o(r.state)),r.stateDiff&&(i+=" stateDiff:\n",i+=o(r.stateDiff)),i})," State Override:\n").slice(0,-1)}},87946:(e,t,n)=>{var r=n(10052);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},88153:(e,t,n)=>{"use strict";var r="__global_unique_id__";e.exports=function(){return n.g[r]=(n.g[r]||0)+1}},88627:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(43693).default,a=n(16668).default,o=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;const s=n(24839),l=n(69491);var c=new WeakMap,u=new WeakMap;class d extends l.AbstractSigner{constructor(e){super(e.provider),i(this,"signer",void 0),r(this,c,void 0),r(this,u,void 0),(0,s.defineProperties)(this,{signer:e}),o(c,this,null),o(u,this,0)}async getAddress(){return this.signer.getAddress()}connect(e){return new d(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==a(c,this)&&o(c,this,super.getNonce("pending"));const e=a(u,this);return await a(c,this)+e}return super.getNonce(e)}increment(){var e;o(u,this,(e=a(u,this),e++,e))}reset(){o(u,this,0),o(c,this,null)}async sendTransaction(e){const t=this.getNonce("pending");return this.increment(),(e=await this.signer.populateTransaction(e)).nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,n){return this.signer.signTypedData(e,t,n)}}t.NonceManager=d},88686:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>a,__asyncDelegator:()=>x,__asyncGenerator:()=>v,__asyncValues:()=>w,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>P,__createBinding:()=>h,__decorate:()=>s,__exportStar:()=>f,__extends:()=>i,__generator:()=>d,__importDefault:()=>E,__importStar:()=>
2A,__makeTemplateObject:()=>k,__metadata:()=>c,__param:()=>l,__read:()=>g,__rest:()=>o,__spread:()=>m,__spreadArrays:()=>y,__values:()=>p});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function h(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function f(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(r){u(a[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function x(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
2function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},88925:(e,t,n)=>{var r=n(20220),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},88974:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(o,"$2")})))}function d(e){return e.match(n)||[""]}function h(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function f(e){return!h(e)&&(function(e){return e.match(i)&&!e.match(r)}(e)||function(e){return a.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,a=e;r<i-1;){var o=t[r];if("__proto__"===o||"constructor"===o||"prototype"===o)return e;a=a[t[r++]]}a[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(h(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,a,o,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(f(r)&&(r='"'+r+'"'),a=!(o=h(r))&&/^\d+$/.test(r),t.call(n,r,o,a,i,e))}(Array.isArray(e)?e:d(e),t,n)}}},89001:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BlockscoutProvider=void 0;const i=n(24839),a=n(55182),o=n(31223);class s extends o.JsonRpcProvider{constructor(e,t){null==e&&(e="mainnet");const n=a.Network.from(e);null==t&&(t="proapi_gwcAAagyQKJ4r2KrAATyyCshiyUEpWfr2x7aKDOWFc56ZY8mBFcT9KZuP5Ce2jIfr_kHzUm");super(s.getRequest(n),n,{staticNetwork:n}),r(this,"apiKey",void 0),(0,i.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new s(e,this.apiKey)}catch(t){}return super._getProvider(e)}isCommunityResource(){return null===this.apiKey}getRpcRequest(e){const t=super.getRpcRequest(e);return t&&"eth_estimateGas"===t.method&&1==t.args.length&&(t.args=t.args.slice(),t.args.push("latest")),t}getRpcError(e,t){const n=t?t.error:null;if(n&&-32015===n.code&&!(0,i.isHexString)(n.data||"",!0)){const e={"assert(false)":"01","arithmetic underflow or overflow":"11","division or modulo by zero":"12","out-of-bounds array access; popping on an empty array":"31","out-of-bounds access of an array or bytesN":"32"};let t="";"VM execution error."===n.message?t=e[n.data]||"":e[n.message||""]&&(t=e[n.message||""]),t&&(n.message+=` (reverted: ${n.data})`,n.data="0x4e487b7100000000000000000000000000000000000000000000000000000000000000"+t)}else n&&-32e3===n.code&&"wrong transaction nonce"===n.message&&(n.message+=" (nonce too low)");return super.getRpcError(e,t)}static getRequest(e){const t=new i.FetchRequest(function(e){switch(e){case"mainnet":return"https://eth.blockscout.com/api/eth-rpc";case"sepolia":return"https://eth-sepolia.blockscout.com/api/eth-rpc";case"holesky":return"https://eth-holesky.blockscout.com/api/eth-rpc";case"classic":return"https://etc.blockscout.com/api/eth-rpc";case"arbitrum":return"https://arbitrum.blockscout.com/api/eth-rpc";case"base":return"https://base.blockscout.com/api/eth-rpc";case"base-sepolia":return"https://base-sepolia.blockscout.com/api/eth-rpc";case"matic":return"https://polygon.blockscout.com/api/eth-rpc";case"optimism":return"https://optimism.blockscout.com/api/eth-rpc";case"optimism-sepolia":return"https://optimism-sepolia.blockscout.com/api/eth-rpc";case"xdai":return"https://gnosis.blockscout.com/api/eth-rpc"}(0,i.assertArgument)(!1,"unsupported network","network",e)}(e.name));return t.allowGzip=!0,t}}t.BlockscoutProvider=s},89045:(e,t,n)=>{var r=n(73738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},89057:(e,t,n)=>{"use strict";var r,i=n(43693).default,a=n(93312).default,o=n(42459).default,s=n(81756).default,l=n(37088).default,c=n(16668).default;
2Object.defineProperty(t,"__esModule",{value:!0}),t.StructFragment=t.FunctionFragment=t.FallbackFragment=t.ConstructorFragment=t.EventFragment=t.ErrorFragment=t.NamedFragment=t.Fragment=t.ParamType=void 0;const u=n(24839),d=n(11454);function h(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const f=h("external public payable override".split(" ")),p="constant external internal payable private public pure view override",g=h(p.split(" ")),m="constructor error event fallback function receive struct",y=h(m.split(" ")),b="calldata memory storage payable indexed",v=h(b.split(" ")),x=h([m,b,"tuple returns",p].join(" ").split(" ")),w={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},k=new RegExp("^(\\s*)"),A=new RegExp("^([0-9]+)"),E=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),S=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),P=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var C=new WeakMap,O=new WeakMap,T=new WeakSet;class N{get offset(){return c(C,this)}get length(){return c(O,this).length-c(C,this)}constructor(e){a(this,T),o(this,C,void 0),o(this,O,void 0),l(C,this,0),l(O,this,e.slice())}clone(){return new N(c(O,this))}reset(){l(C,this,0)}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=s(T,this,_).call(this,c(C,this)+1,e.match+1);return l(C,this,e.match+1),t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;c(C,this)<e.match-1;){const e=this.peek().linkNext;t.push(s(T,this,_).call(this,c(C,this)+1,e)),l(C,this,e)}return l(C,this,e.match+1),t}peek(){if(c(C,this)>=c(O,this).length)throw new Error("out-of-bounds");return c(O,this)[c(C,this)]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){var e;const t=this.peek();return l(C,this,(e=c(C,this),e++,e)),t}toString(){const e=[];for(let t=c(C,this);t<c(O,this).length;t++){const n=c(O,this)[t];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new r(c(O,this).slice(e,t).map((t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e})))))}function I(e){const t=[],n=t=>{const n=a<e.length?JSON.stringify(e[a]):"$EOI";throw new Error(`invalid token ${n} at ${a}: ${t}`)};let r=[],i=[],a=0;for(;a<e.length;){let o=e.substring(a),s=o.match(k);s&&(a+=s[1].length,o=e.substring(a));const l={depth:r.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:a,value:-1};t.push(l);let c=w[o[0]]||"";if(c){if(l.type=c,l.text=o[0],a++,"OPEN_PAREN"===c)r.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==c)0===r.length&&n("no matching open bracket"),l.match=r.pop(),t[l.match].match=t.length-1,l.depth--,l.linkBack=i.pop(),t[l.linkBack].linkNext=t.length-1;else if("COMMA"===c)l.linkBack=i.pop(),t[l.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===c)l.type="BRACKET";else if("CLOSE_BRACKET"===c){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=(0,u.getNumber)(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(s=o.match(E),s){if(l.text=s[1],a+=l.text.length,x.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(P)){l.type="TYPE";continue}l.type="ID"}else{if(s=o.match(A),!s)throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${a}`);l.text=s[1],l.type="NUMBER",a+=l.text.length}}return new N(t.map((e=>Object.freeze(e))))}function R(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function M(e,t){if(t.peekKeyword(y)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function j(e,t){const n=new Set;for(;;
2){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function L(e){let t=j(e,g);return R(t,h("constant payable nonpayable".split(" "))),R(t,h("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function B(e,t){return e.popParams().map((e=>J.from(e,t)))}function F(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,u.getBigInt)(e.pop().text);throw new Error("invalid gas")}return null}function D(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}r=N;const U=new RegExp(/^(.*)\[([0-9]*)\]$/);function z(e){const t=e.match(P);if((0,u.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);(0,u.assertArgument)(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);(0,u.assertArgument)(0!==n&&n<=256&&n%8===0,"invalid numeric width","type",e)}return e}const W={},H=Symbol.for("_ethers_internal"),V="_ParamTypeInternal",G="_ErrorInternal",Y="_EventInternal",q="_ConstructorInternal",X="_FallbackInternal",$="_FunctionInternal",K="_StructInternal";var Q=new WeakSet;class J{constructor(e,t,n,r,o,s,l,c){if(a(this,Q),i(this,"name",void 0),i(this,"type",void 0),i(this,"baseType",void 0),i(this,"indexed",void 0),i(this,"components",void 0),i(this,"arrayLength",void 0),i(this,"arrayChildren",void 0),(0,u.assertPrivate)(e,W,"ParamType"),Object.defineProperty(this,H,{value:V}),s&&(s=Object.freeze(s.slice())),"array"===r){if(null==l||null==c)throw new Error("")}else if(null!=l||null!=c)throw new Error("");if("tuple"===r){if(null==s)throw new Error("")}else if(null!=s)throw new Error("");(0,u.defineProperties)(this,{name:t,type:n,baseType:r,indexed:o,components:s,arrayLength:l,arrayChildren:c})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"===typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map((t=>t.format(e))).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map((e=>n.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map(((e,r)=>n.components[r].walk(e,t)))}return t(this.type,e)}async walkAsync(e,t){const n=[],r=[e];return s(Q,this,Z).call(this,n,e,t,(e=>{r[0]=e})),n.length&&await Promise.all(n),r[0]}static from(e,t){if(J.isParamType(e))return e;if("string"===typeof e)try{return J.from(I(e),t)}catch(o){(0,u.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof N){let n="",r="",i=null;j(e,h(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",i=e.popParams().map((e=>J.from(e))),n=`tuple(${i.map((e=>e.format())).join(",")})`):(n=z(e.popType("TYPE")),r=n);let a=null,o=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();a=new J(W,"",n,r,null,i,o,a),o=t.value,n+=t.text,r="array",i=null}let s=null;if(j(e,v).has("indexed")){if(!t)throw new Error("");s=!0}
2const l=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new J(W,l,n,r,s,i,o,a)}const n=e.name;(0,u.assertArgument)(!n||"string"===typeof n&&n.match(S),"invalid name","obj.name",n);let r=e.indexed;null!=r&&((0,u.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),r=!!r);let i=e.type,a=i.match(U);if(a){const t=parseInt(a[2]||"-1"),o=J.from({type:a[1],components:e.components});return new J(W,n||"",i,"array",r,null,t,o)}if("tuple"===i||i.startsWith("tuple(")||i.startsWith("(")){const t=null!=e.components?e.components.map((e=>J.from(e))):null;return new J(W,n||"",i,"tuple",r,t,null,null)}return i=z(e.type),new J(W,n||"",i,i,r,null,null,null)}static isParamType(e){return e&&e[H]===V}}function Z(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const i=this.arrayChildren,a=t.slice();return a.forEach(((t,r)=>{s(Q,i,Z).call(i,e,t,n,(e=>{a[r]=e}))})),void r(a)}if(this.isTuple()){const i=this.components;let a;if(Array.isArray(t))a=t.slice();else{if(null==t||"object"!==typeof t)throw new Error("invalid tuple value");a=i.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(a.length!==this.components.length)throw new Error("array is wrong length");return a.forEach(((t,r)=>{var o;s(Q,o=i[r],Z).call(o,e,t,n,(e=>{a[r]=e}))})),void r(a)}const i=n(this.type,t);i.then?e.push(async function(){r(await i)}()):r(i)}t.ParamType=J;class ee{constructor(e,t,n){i(this,"type",void 0),i(this,"inputs",void 0),(0,u.assertPrivate)(e,W,"Fragment"),n=Object.freeze(n.slice()),(0,u.defineProperties)(this,{type:t,inputs:n})}static from(e){if("string"===typeof e){try{ee.from(JSON.parse(e))}catch(t){}return ee.from(I(e))}if(e instanceof N){switch(e.peekKeyword(y)){case"constructor":return ae.from(e);case"error":return re.from(e);case"event":return ie.from(e);case"fallback":case"receive":return oe.from(e);case"function":return se.from(e);case"struct":return le.from(e)}}else if("object"===typeof e){switch(e.type){case"constructor":return ae.from(e);case"error":return re.from(e);case"event":return ie.from(e);case"fallback":case"receive":return oe.from(e);case"function":return se.from(e);case"struct":return le.from(e)}(0,u.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,u.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return ae.isFragment(e)}static isError(e){return re.isFragment(e)}static isEvent(e){return ie.isFragment(e)}static isFunction(e){return se.isFragment(e)}static isStruct(e){return le.isFragment(e)}}t.Fragment=ee;class te extends ee{constructor(e,t,n,r){super(e,t,r),i(this,"name",void 0),(0,u.assertArgument)("string"===typeof n&&n.match(S),"invalid identifier","name",n),r=Object.freeze(r.slice()),(0,u.defineProperties)(this,{name:n})}}function ne(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}t.NamedFragment=te;class re extends te{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,H,{value:G})}get selector(){return(0,d.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+ne(e,this.inputs)),t.join(" ")}static from(e){if(re.isFragment(e))return e;if("string"===typeof e)return re.from(I(e));if(e instanceof N){const t=M("error",e),n=B(e);return D(e),new re(W,t,n)}return new re(W,e.name,e.inputs?e.inputs.map(J.from):[])}static isFragment(e){return e&&e[H]===G}}t.ErrorFragment=re;class ie extends te{constructor(e,t,n,r){super(e,"event",t,n),i(this,"anonymous",void 0),Object.defineProperty(this,H,{value:Y}),(0,u.defineProperties)(this,{anonymous:r})}get topicHash(){return(0,d.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];
2return"sighash"!==e&&t.push("event"),t.push(this.name+ne(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){t=(t||[]).map((e=>J.from(e)));return new ie(W,e,t,!1).topicHash}static from(e){if(ie.isFragment(e))return e;if("string"===typeof e)try{return ie.from(I(e))}catch(t){(0,u.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof N){const t=M("event",e),n=B(e,!0),r=!!j(e,h(["anonymous"])).has("anonymous");return D(e),new ie(W,t,n,r)}return new ie(W,e.name,e.inputs?e.inputs.map((e=>J.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[H]===Y}}t.EventFragment=ie;class ae extends ee{constructor(e,t,n,r,a){super(e,t,n),i(this,"payable",void 0),i(this,"gas",void 0),Object.defineProperty(this,H,{value:q}),(0,u.defineProperties)(this,{payable:r,gas:a})}format(e){if((0,u.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[`constructor${ne(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(ae.isFragment(e))return e;if("string"===typeof e)try{return ae.from(I(e))}catch(t){(0,u.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof N){j(e,h(["constructor"]));const t=B(e),n=!!j(e,f).has("payable"),r=F(e);return D(e),new ae(W,"constructor",t,n,r)}return new ae(W,"constructor",e.inputs?e.inputs.map(J.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[H]===q}}t.ConstructorFragment=ae;class oe extends ee{constructor(e,t,n){super(e,"fallback",t),i(this,"payable",void 0),Object.defineProperty(this,H,{value:X}),(0,u.defineProperties)(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(oe.isFragment(e))return e;if("string"===typeof e)try{return oe.from(I(e))}catch(t){(0,u.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof N){const t=e.toString(),n=e.peekKeyword(h(["fallback","receive"]));(0,u.assertArgument)(n,"type must be fallback or receive","obj",t);if("receive"===e.popKeyword(h(["fallback","receive"]))){const t=B(e);return(0,u.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),j(e,h(["payable"])),D(e),new oe(W,[],!0)}let r=B(e);r.length?(0,u.assertArgument)(1===r.length&&"bytes"===r[0].type,"invalid fallback inputs","obj.inputs",r.map((e=>e.format("minimal"))).join(", ")):r=[J.from("bytes")];const i=L(e);if((0,u.assertArgument)("nonpayable"===i||"payable"===i,"fallback cannot be constants","obj.stateMutability",i),j(e,h(["returns"])).has("returns")){const t=B(e);(0,u.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return D(e),new oe(W,r,"payable"===i)}if("receive"===e.type)return new oe(W,[],!0);if("fallback"===e.type){const t=[J.from("bytes")],n="payable"===e.stateMutability;return new oe(W,t,n)}(0,u.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[H]===X}}t.FallbackFragment=oe;class se extends te{constructor(e,t,n,r,a,o){super(e,"function",t,r),i(this,"constant",void 0),i(this,"outputs",void 0),i(this,"stateMutability",void 0),i(this,"payable",void 0),i(this,"gas",void 0),Object.defineProperty(this,H,{value:$}),a=Object.freeze(a.slice());const s="view"===n||"pure"===n,l="payable"===n;(0,u.defineProperties)(this,{constant:s,gas:o,outputs:a,payable:l,stateMutability:n})}get selector(){return(0,d.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+ne(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(ne(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){t=(t||[]).map((e=>J.from(e)));return new se(W,e,"view",t,[],null).selector}static from(e){if(se.isFragment(e))return e;if("string"===typeof e)try{return se.from(I(e))}catch(n){(0,u.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof N){const t=M("function",e),n=B(e),r=L(e);let i=[];j(e,h(["returns"])).has("returns")&&(i=B(e));const a=F(e);return D(e),new se(W,t,r,n,i,a)}let t=e.stateMutability;return null==t&&(t="payable","boolean"===typeof e.constant?(t="view",e.constant||(t="payable","boolean"!==typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!==typeof e.payable||e.payable||(t="nonpayable")),new se(W,e.name,t,e.inputs?e.inputs.map(J.from):[],e.outputs?e.outputs.map(J.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[H]===$}}
2t.FunctionFragment=se;class le extends te{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,H,{value:K})}format(){throw new Error("@TODO")}static from(e){if("string"===typeof e)try{return le.from(I(e))}catch(t){(0,u.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof N){const t=M("struct",e),n=B(e);return D(e),new le(W,t,n)}return new le(W,e.name,e.inputs?e.inputs.map(J.from):[])}static isFragment(e){return e&&e[H]===K}}t.StructFragment=le},89336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=void 0,t.pkcs7Pad=function(e){const t=16-e.length%16,n=new Uint8Array(e.length+t);n.set(e);for(let r=e.length;r<n.length;r++)n[r]=t;return n},t.pkcs7Strip=function(e){if(e.length<16)throw new TypeError("PKCS#7 invalid length");const t=e[e.length-1];if(t>16)throw new TypeError("PKCS#7 padding byte out of range");const n=e.length-t;for(let r=0;r<t;r++)if(e[n+r]!==t)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(e.subarray(0,n))}},89370:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;const i=n(24839),a=n(75593),o=n(55182),s=n(31223),l="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class c extends s.JsonRpcProvider{constructor(e,t){null==e&&(e="mainnet");const n=o.Network.from(e);null==t&&(t=l);const a={polling:!0,staticNetwork:n};super(c.getRequest(n,t),n,a),r(this,"apiKey",void 0),(0,i.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(t){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=l);const n=new i.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"filecoin":return"rpc.ankr.com/filecoin";case"filecoin-calibration":return"rpc.ankr.com/filecoin_testnet";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,i.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===l&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("AnkrProvider"),!0)),n}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===l}}t.AnkrProvider=c},89444:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"address","name":"_tokenContractAddress","type":"address"},{"internalType":"uint256[]","name":"_seedScheduleEvents","type":"uint256[]"},{"internalType":"uint256[]","name":"_seedSchedulePercentages","type":"uint256[]"},{"internalType":"uint256[]","name":"_privateScheduleEvents","type":"uint256[]"},{"internalType":"uint256[]","name":"_privateSchedulePercentages","type":"uint256[]"},{"internalType":"address[]","name":"_investors","type":"address[]"},{"internalType":"uint256[]","name":"_seedInvestments","type":"uint256[]"},{"internalType":"uint256[]","name":"_privateInvestments","type":"uint256[]"},{"internalType":"uint256[]","name":"_withdrawnTokens","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"defxToken","outputs":[{"internalType":"contract DEFX","name":"","type":"address"}],"stateMutability":"view","type":"function"}
2,{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayEther","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_investor","type":"address"}],"name":"getAvailableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRestricted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"privateInvestments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"privateSchedule","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"seedInvestments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seedSchedule","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRestricted","type":"bool"}],"name":"setRestrictedState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawRestrictedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_investor","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokensToInvestor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawnTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]')},89544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.BlockscoutProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var r=n(64364);Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return r.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return r.UnmanagedSubscriber}});var i=n(69491);Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return i.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return i.VoidSigner}});var a=n(75593);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return a.showThrottleMessage}});var o=n(75071);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return o.getDefaultProvider}});var s=n(75431);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return s.EnsRes
2olver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return s.MulticoinProviderPlugin}});var l=n(55182);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return l.Network}});var c=n(88627);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}});var u=n(14015);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}});var d=n(19147);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return d.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return d.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return d.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return d.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return d.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return d.copyRequest}});var h=n(18530);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return h.FallbackProvider}});var f=n(31223);Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return f.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return f.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return f.JsonRpcSigner}});var p=n(93690);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return p.BrowserProvider}});var g=n(3757);Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return g.AlchemyProvider}});var m=n(89001);Object.defineProperty(t,"BlockscoutProvider",{enumerable:!0,get:function(){return m.BlockscoutProvider}});var y=n(89370);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return y.AnkrProvider}});var b=n(62019);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return b.CloudflareProvider}});var v=n(96119);Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return v.ChainstackProvider}});var x=n(75611);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return x.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return x.EtherscanPlugin}});var w=n(73475);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return w.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return w.InfuraWebSocketProvider}});var k=n(74786);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return k.PocketProvider}});var A=n(56461);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return A.QuickNodeProvider}});const E=n(58324);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return E.IpcSocketProvider}});var S=n(69973);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return S.SocketProvider}});var P=n(17989);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return P.WebSocketProvider}});var C=n(69973);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return C.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return C.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return C.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return C.SocketEventSubscriber}})},89676:(e,t,n)=>{"use strict";n.d(t,{BI:()=>A,EB:()=>w,Iy:()=>l,Iz:()=>v,MR:()=>x,M_:()=>b,Nc:()=>u,O:()=>c,Wq:()=>g,YE:()=>h,YF:()=>s,YW:()=>o,ZP:()=>f,_z:()=>m,d_:()=>T,dm:()=>O,fo:()=>E,gH:()=>d,j:()=>C,kE:()=>y,l3:()=>S,nK:()=>P,nM:()=>k,yy:()=>p});var r=n(69679),i=n(4846),a=n(36026);class o extends a.C{constructor(e){let{docsPath:t}=e;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("\n"),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class s extends a.C{constructor(e){let{docsPath:t}=e;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("\n"),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}a.C;class l extends a.C{constructor(e){let{data:t,params:n,size:i}=e;super([`Data size of ${i} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,r.A)(n,{includeName:!0})})`,`Data: ${t} (${i} bytes)`],name:"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=t,this.params=n,this.size=i}}class c extends a.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class u extends a.C{constructor(e){let{expectedLength:t,givenLength:n,type:r}=e;super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}
2`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.C{constructor(e){let{expectedSize:t,value:n}=e;super(`Size of bytes "${n}" (bytes${(0,i.E)(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class h extends a.C{constructor(e){let{expectedLength:t,givenLength:n}=e;super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class f extends a.C{constructor(e,t){let{docsPath:n}=t;super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class p extends a.C{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:t,name:"AbiErrorNotFoundError"})}}class g extends a.C{constructor(e,t){let{docsPath:n}=t;super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:n,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class m extends a.C{constructor(e){let{docsPath:t}=e;super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends a.C{constructor(e,t){let{docsPath:n}=t;super([`Encoded event signature "${e}" 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=${e}.`].join("\n"),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class b extends a.C{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t,name:"AbiEventNotFoundError"})}}class v extends a.C{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class x extends a.C{constructor(e,t){let{docsPath:n}=t;super([`Function "${e}" 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("\n"),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class w extends a.C{constructor(e,t){let{docsPath:n}=t;super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join("\n"),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class k extends a.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class A extends a.C{constructor(e){let{expectedSize:t,givenSize:n}=e;super(`Expected bytes${t}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}}class E extends a.C{constructor(e){let{abiItem:t,data:n,params:i,size:a}=e;super([`Data size of ${a} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,r.A)(i,{includeName:!0})})`,`Data: ${n} (${a} bytes)`],name:"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=t,this.data=n,this.params=i,this.size=a}}class S extends a.C{constructor(e){let{abiItem:t,param:n}=e;super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${(0,r.B)(t,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class P extends a.C{constructor(e,t){let{docsPath:n}=t;super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:n,name:"InvalidAbiEncodingType"})}}class C extends a.C{constructor(e,t){let{docsPath:n}=t;super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:n,name:"InvalidAbiDecodingType"})}}class O extends a.C{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class T extends a.C{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}a.C},90703:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"address","name":"_tokenContractAddress","type":"address"},{"internalType":"uint256","name":"_annualInterestRate","type":"uint256"},{"internalType":"uint256","name":"_rewardTimeSpan","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}
2,{"inputs":[],"name":"annualInterestRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defxToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayEther","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"drainStrayTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getEarnedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"}],"name":"getStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemRewardToStaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardTimeSpan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interestRate","type":"uint256"}],"name":"setAnnualInterestRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeSpan","type":"uint256"}],"name":"setRewardTimeSpan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawUnusedBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]')},90757:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(93175);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},90763:(e,t,n)=>{"use strict";n.d(t,{Sl:()=>i,X:()=>o,eV:()=>s,kK:()=>a});var r=n(14239);function i(e,t){if(r.Ej(e)>t)throw new r.u({givenSize:r.Ej(e),maxSize:t})}function a(e,t){if("number"===typeof t&&t>0&&t>r.Ej(e)-1)throw new r.ii({offset:t,position:"start",size:r.Ej(e)})}function o(e,t,n){if("number"===typeof t&&"number"===typeof n&&r.Ej(e)!==n-t)throw new r.ii({offset:n,position:"end",size:r.Ej(e)})}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dir:n,size:i=32}=t;if(0===i)return e;const a=e.replace("0x","");if(a.length>2*i)throw new r.Fl({size:Math.ceil(a.length/2),targetSize:i,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*i,"0")}`}},90943:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}
2,91038:(e,t,n)=>{"use strict";n.d(t,{eL:()=>r,sz:()=>i});const r={gwei:9,wei:18},i={ether:-9,wei:9}},91102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const r=n(55114),i=n(69687);function a(e){let t;return t="string"===typeof e?i.SigningKey.computePublicKey(e,!1):e.publicKey,(0,r.getAddress)((0,i.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=a,t.recoverAddress=function(e,t){return a(i.SigningKey.recoverPublicKey(e,t))}},91127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const r=n(82071),i=n(24839),a=function(e){return(0,r.createHash)("sha256").update(e).digest()},o=function(e){return(0,r.createHash)("sha512").update(e).digest()};let s=a,l=o,c=!1,u=!1;function d(e){const t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(s(t))}function h(e){const t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(l(t))}t.sha256=d,d._=a,d.lock=function(){c=!0},d.register=function(e){if(c)throw new Error("sha256 is locked");s=e},Object.freeze(d),t.sha512=h,h._=o,h.lock=function(){u=!0},h.register=function(e){if(u)throw new Error("sha512 is locked");l=e},Object.freeze(d)},91359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},91454:(e,t,n)=>{var r=n(2269),i=n(54008),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
27f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(a,r).replace(o,"")}},91470:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(26104),i=n(46566),a=n(95070),o=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var i=0;i<n.length;i++)n[i]^=54;this._inner.update(n);for(i=0;i<n.length;i++)n[i]^=106;this._outer.update(n),r.isSerializableHash(this._inner)&&r.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),a.wipe(n)}return e.prototype.reset=function(){if(!r.isSerializableHash(this._inner)||!r.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},e.prototype.clean=function(){r.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),r.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?(this._outer.finish(e),this):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0,this)},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!r.isSerializableHash(this._inner))throw new Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!r.isSerializableHash(this._inner)||!r.isSerializableHash(this._outer))throw new Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!r.isSerializableHash(this._inner))throw new Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=o,t.hmac=function(e,t,n){var r=new o(e,t);r.update(n);var i=r.digest();return r.clean(),i},t.equal=i.equal},91555:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},91581:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},91582:(e,t,n)=>{var r=n(4635),i=n(61570),a=n(12279),o=n(50184),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},91619:e=>{"use strict";e.exports=URIError},92130:(e,t,n)=>{var r=n(25535),i=n(49757),a=n(21416),o=n(16195),s=n(25531),l=n(12279),c=n(6794),u=n(71641),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var b=l(e),v=l(t),x=b?h:s(e),w=v?h:s(t),k=(x=x==d?f:x)==f,A=(w=w==d?f:w)==f,E=x==w;if(E&&c(e)){if(!c(t))return!1;b=!0,k=!1}if(E&&!k)return y||(y=new r),b||u(e)?i(e,t,n,g,m,y):a(e,t,x,n,g,m,y);if(!(1&n)){var S=k&&p.call(e,"__wrapped__"),P=A&&p.call(t,"__wrapped__");
2if(S||P){var C=S?e.value():e,O=P?t.value():t;return y||(y=new r),m(C,O,n,g,y)}}return!!E&&(y||(y=new r),o(e,t,n,g,m,y))}},92157:(e,t,n)=>{"use strict";var r,i=n(10690),a=n(35550)(),o=n(42155),s=n(24553);if(a){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u};"symbol"===typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),r=function(e){if(!e||"object"!==typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&o(t,"value")))return!1;try{l(e,d)}catch(n){return n===c}}}else{var h=i("Object.prototype.toString");r=function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===h(e)}}e.exports=r},92264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const r=n(96752),i=n(12172),a=n(12006),o=n(50582),s=(e,t)=>e<<t|e>>>32-t;function l(e,t,n,r,i,a){let o=e[t++]^n[r++],l=e[t++]^n[r++],c=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],h=e[t++]^n[r++],f=e[t++]^n[r++],p=e[t++]^n[r++],g=e[t++]^n[r++],m=e[t++]^n[r++],y=e[t++]^n[r++],b=e[t++]^n[r++],v=e[t++]^n[r++],x=e[t++]^n[r++],w=e[t++]^n[r++],k=e[t++]^n[r++],A=o,E=l,S=c,P=u,C=d,O=h,T=f,N=p,_=g,I=m,R=y,M=b,j=v,L=x,B=w,F=k;for(let D=0;D<8;D+=2)C^=s(A+j|0,7),_^=s(C+A|0,9),j^=s(_+C|0,13),A^=s(j+_|0,18),I^=s(O+E|0,7),L^=s(I+O|0,9),E^=s(L+I|0,13),O^=s(E+L|0,18),B^=s(R+T|0,7),S^=s(B+R|0,9),T^=s(S+B|0,13),R^=s(T+S|0,18),P^=s(F+M|0,7),N^=s(P+F|0,9),M^=s(N+P|0,13),F^=s(M+N|0,18),E^=s(A+P|0,7),S^=s(E+A|0,9),P^=s(S+E|0,13),A^=s(P+S|0,18),T^=s(O+C|0,7),N^=s(T+O|0,9),C^=s(N+T|0,13),O^=s(C+N|0,18),M^=s(R+I|0,7),_^=s(M+R|0,9),I^=s(_+M|0,13),R^=s(I+_|0,18),j^=s(F+B|0,7),L^=s(j+F|0,9),B^=s(L+j|0,13),F^=s(B+L|0,18);i[a++]=o+A|0,i[a++]=l+E|0,i[a++]=c+S|0,i[a++]=u+P|0,i[a++]=d+C|0,i[a++]=h+O|0,i[a++]=f+T|0,i[a++]=p+N|0,i[a++]=g+_|0,i[a++]=m+I|0,i[a++]=y+R|0,i[a++]=b+M|0,i[a++]=v+j|0,i[a++]=x+L|0,i[a++]=w+B|0,i[a++]=k+F|0}function c(e,t,n,r,i){let a=r+0,o=r+16*i;for(let s=0;s<16;s++)n[o+s]=e[t+16*(2*i-1)+s];for(let s=0;s<i;s++,a+=16,t+=16)l(n,o,e,t,n,a),s>0&&(o+=16),l(n,a,e,t+=16,n,o)}function u(e,t,n){const s=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:l,r:c,p:u,dkLen:d,asyncTick:h,maxmem:f,onProgress:p}=s;if((0,r.number)(l),(0,r.number)(c),(0,r.number)(u),(0,r.number)(d),(0,r.number)(h),(0,r.number)(f),void 0!==p&&"function"!==typeof p)throw new Error("progressCb should be function");const g=128*c,m=g/4;if(l<=1||0!==(l&l-1)||l>=2**(g/8)||l>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(u<0||u>137438953440/g)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const y=g*(l+u);if(y>f)throw new Error(`Scrypt: parameters too large, ${y} (128 * r * (N + p)) > ${f} (maxmem)`);const b=(0,a.pbkdf2)(i.sha256,e,t,{c:1,dkLen:g*u}),v=(0,o.u32)(b),x=(0,o.u32)(new Uint8Array(g*l)),w=(0,o.u32)(new Uint8Array(g));let k=()=>{};if(p){const e=2*l*u,t=Math.max(Math.floor(e/1e4),1);let n=0;k=()=>{n++,!p||n%t&&n!==e||p(n/e)}}return{N:l,r:c,p:u,dkLen:d,blockSize32:m,V:x,B32:v,B:b,tmp:w,blockMixCb:k,asyncTick:h}}function d(e,t,n,r,o){const s=(0,a.pbkdf2)(i.sha256,e,n,{c:1,dkLen:t});return n.fill(0),r.fill(0),o.fill(0),s}t.scrypt=function(e,t,n){const{N:r,r:i,p:a,dkLen:o,blockSize32:s,V:l,B32:h,B:f,tmp:p,blockMixCb:g}=u(e,t,n);for(let u=0;u<a;u++){const e=s*u;for(let t=0;t<s;t++)l[t]=h[e+t];for(let t=0,n=0;t<r-1;t++)c(l,n,l,n+=s,i),g();c(l,(r-1)*s,h,e,i),g();for(let t=0;t<r;t++){const t=h[e+s-16]%r;for(let n=0;n<s;n++)p[n]=h[e+n]^l[t*s+n];c(p,0,h,e,i),g()}}return d(e,o,f,l,p)},t.scryptAsync=async function(e,t,n){const{N:r,r:i,p:a,dkLen:s,blockSize32:l,V:h,B32:f,B:p,tmp:g,blockMixCb:m,asyncTick:y}=u(e,t,n);for(let u=0;u<a;u++){const e=l*u;for(let n=0;n<l;n++)h[n]=f[e+n];let t=0;await(0,o.asyncLoop)(r-1,y,(()=>{c(h,t,h,t+=l,i),m()})),c(h,(r-1)*l,f,e,i),m(),await(0,o.asyncLoop)(r,y,(()=>{const t=f[e+l-16]%r;for(let n=0;n<l;n++)g[n]=f[e+n]^h[t*l+n];c(g,0,f,e,i),m()}))}return d(e,s,p,h,g)}},92535:(e,t,n)=>{var r=n(50184);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},93008:(e,t,n)=>{var r=n(22022),i=n(24567);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},93031:(e,t,n)=>{var r=n(45211)();e.exports=r}
2,93074:(e,t,n)=>{"use strict";n.d(t,{B4:()=>i,SK:()=>a,hX:()=>o});var r=n(36026);class i extends r.C{constructor(e){let{offset:t}=e;super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class a extends r.C{constructor(e){let{length:t,position:n}=e;super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends r.C{constructor(e){let{count:t,limit:n}=e;super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}},93175:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},93219:(e,t,n)=>{"use strict";var r=n(78563),i=n(251),a=n(56412).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},93312:(e,t,n)=>{var r=n(97101);e.exports=function(e,t){r(e,t),t.add(e)},e.exports.__esModule=!0,e.exports.default=e.exports},93355:(e,t,n)=>{"use strict";var r=n(56412),i=n(29310),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},93660:(e,t,n)=>{var r=n(54761),i=n(98194),a=n(65724);e.exports=function(e){return r(e,a,i)}},93690:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(16668).default,a=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;const o=n(24839),s=n(31223);var l=new WeakMap,c=new WeakMap;class u extends s.JsonRpcApiPollingProvider{constructor(e,t,n){const i=Object.assign({},null!=n?n:{},{batchMaxCount:1});(0,o.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,i),r(this,l,void 0),r(this,c,void 0),a(c,this,null),n&&n.providerInfo&&a(c,this,n.providerInfo),a(l,this,(async(t,n)=>{const r={method:t,params:n};this.emit("debug",{action:"sendEip1193Request",payload:r});try{const t=await e.request(r);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(i){const e=new Error(i.message);throw e.code=i.code,e.data=i.data,e.payload=r,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}))}get providerInfo(){return i(c,this)}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,o.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const t=await i(l,this).call(this,e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);const t=await this.send("eth_accounts",[]);return"number"===typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter((t=>t.toLowerCase()===e)).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await i(l,this).call(this,"eth_requestAccounts",[])}catch(t){const e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}static async discover(e){if(null==e&&(e={}),e.provider)return new u(e.provider);const t=e.window?e.window:"undefined"!==typeof window?window:null;if(null==t)return null;const n=e.anyProvider;if(n&&t.ethereum)return new u(t.ethereum);if(!("addEventListener"in t&&"dispatchEvent"in t&&"removeEventListener"in t))return null;const r=e.timeout?e.timeout:300;return 0===r?null:await new Promise(((i,a)=>{let s=[];const l=e=>{s.push(e.detail),n&&c()},c=()=>
2{if(clearTimeout(d),s.length)if(e&&e.filter){const t=e.filter(s.map((e=>Object.assign({},e.info))));if(null==t)i(null);else if(t instanceof u)i(t);else{let e=null;if(t.uuid){e=s.filter((e=>t.uuid===e.info.uuid))[0]}if(e){const{provider:t,info:n}=e;i(new u(t,void 0,{providerInfo:n}))}else a((0,o.makeError)("filter returned unknown info","UNSUPPORTED_OPERATION",{value:t}))}}else{const{provider:e,info:t}=s[0];i(new u(e,void 0,{providerInfo:t}))}else i(null);t.removeEventListener("eip6963:announceProvider",l)},d=setTimeout((()=>{c()}),r);t.addEventListener("eip6963:announceProvider",l),t.dispatchEvent(new Event("eip6963:requestProvider"))}))}}t.BrowserProvider=u},93769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const r=n(80062),i=n(99717),a=n(50582),[o,s]=(()=>i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
25771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),l=new Uint32Array(80),c=new Uint32Array(80);class u extends r.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:a,Dh:o,Dl:s,Eh:l,El:c,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:g}=this;return[e,t,n,r,i,a,o,s,l,c,u,d,h,f,p,g]}set(e,t,n,r,i,a,o,s,l,c,u,d,h,f,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|a,this.Dh=0|o,this.Dl=0|s,this.Eh=0|l,this.El=0|c,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let i=0;i<16;i++,t+=4)l[i]=e.getUint32(t),c[i]=e.getUint32(t+=4);for(let o=16;o<80;o++){const e=0|l[o-15],t=0|c[o-15],n=i.default.rotrSH(e,t,1)^i.default.rotrSH(e,t,8)^i.default.shrSH(e,t,7),r=i.default.rotrSL(e,t,1)^i.default.rotrSL(e,t,8)^i.default.shrSL(e,t,7),a=0|l[o-2],s=0|c[o-2],u=i.default.rotrSH(a,s,19)^i.default.rotrBH(a,s,61)^i.default.shrSH(a,s,6),d=i.default.rotrSL(a,s,19)^i.default.rotrBL(a,s,61)^i.default.shrSL(a,s,6),h=i.default.add4L(r,d,c[o-7],c[o-16]),f=i.default.add4H(h,n,u,l[o-7],l[o-16]);l[o]=0|f,c[o]=0|h}let{Ah:n,Al:r,Bh:a,Bl:u,Ch:d,Cl:h,Dh:f,Dl:p,Eh:g,El:m,Fh:y,Fl:b,Gh:v,Gl:x,Hh:w,Hl:k}=this;for(let A=0;A<80;A++){const e=i.default.rotrSH(g,m,14)^i.default.rotrSH(g,m,18)^i.default.rotrBH(g,m,41),t=i.default.rotrSL(g,m,14)^i.default.rotrSL(g,m,18)^i.default.rotrBL(g,m,41),E=g&y^~g&v,S=m&b^~m&x,P=i.default.add5L(k,t,S,s[A],c[A]),C=i.default.add5H(P,w,e,E,o[A],l[A]),O=0|P,T=i.default.rotrSH(n,r,28)^i.default.rotrBH(n,r,34)^i.default.rotrBH(n,r,39),N=i.default.rotrSL(n,r,28)^i.default.rotrBL(n,r,34)^i.default.rotrBL(n,r,39),_=n&a^n&d^a&d,I=r&u^r&h^u&h;w=0|v,k=0|x,v=0|y,x=0|b,y=0|g,b=0|m,({h:g,l:m}=i.default.add(0|f,0|p,0|C,0|O)),f=0|d,p=0|h,d=0|a,h=0|u,a=0|n,u=0|r;const R=i.default.add3L(O,N,I);n=i.default.add3H(R,C,T,_),r=0|R}({h:n,l:r}=i.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:a,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|a,0|u)),({h:d,l:h}=i.default.add(0|this.Ch,0|this.Cl,0|d,0|h)),({h:f,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|f,0|p)),({h:g,l:m}=i.default.add(0|this.Eh,0|this.El,0|g,0|m)),({h:y,l:b}=i.default.add(0|this.Fh,0|this.Fl,0|y,0|b)),({h:v,l:x}=i.default.add(0|this.Gh,0|this.Gl,0|v,0|x)),({h:w,l:k}=i.default.add(0|this.Hh,0|this.Hl,0|w,0|k)),this.set(n,r,a,u,d,h,f,p,g,m,y,b,v,x,w,k)}roundClean(){l.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class h extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,a.wrapConstructor)((()=>new u)),t.sha512_224=(0,a.wrapConstructor)((()=>new d)),t.sha512_256=(0,a.wrapConstructor)((()=>new h)),t.sha384=(0,a.wrapConstructor)((()=>new f))}
2,93914:(e,t,n)=>{"use strict";n.d(t,{db:()=>a,eV:()=>i});var r=n(36712);function i(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e?a(e,{dir:t,size:n}):function(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;if(e.length>n)throw new r.Fl({size:e.length,targetSize:n,type:"bytes"});const i=new Uint8Array(n);for(let r=0;r<n;r++){const a="right"===t;i[a?r:n-r-1]=e[a?r:e.length-r-1]}return i}(e,{dir:t,size:n})}function a(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;const i=e.replace("0x","");if(i.length>2*n)throw new r.Fl({size:Math.ceil(i.length/2),targetSize:n,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*n,"0")}`}},93959:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},94441:(e,t,n)=>{"use strict";n.d(t,{b:()=>u,o:()=>c});var r=n(58418),i=n(32146),a=n(9186),o=n(3023),s=n(78753);const l=new o.A(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,a.S)((0,i.Af)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&o[i]&&(o[i]=o[i].toUpperCase()),(15&r[i>>1])>=8&&o[i+1]&&(o[i+1]=o[i+1].toUpperCase());const s=`0x${o.join("")}`;return l.set(`${e}.${t}`,s),s}function u(e,t){if(!(0,s.P)(e,{strict:!1}))throw new r.M({address:e});return c(e,t)}},94546:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModeOfOperation=void 0;const r=n(76886);t.ModeOfOperation=class{constructor(e,t,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new r.AES(t)},name:{enumerable:!0,value:e}})}}},94593:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(!a(e[l],o[l]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!a(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(l=s;0!==l--;)if(e[l]!==o[l])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof o.toString)return e.toString()===o.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!a(e[c[l]],o[c[l]]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},94672:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},94751:(e,t,n)=>{"use strict";var r=n(26470),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=
vendor: 4,385 bytes, line 2
2d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=b.prototype=new y;v.constructor=b,r(v,m.prototype),v.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:x.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+P(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+P(s=e[c],c);l+=C(s,t,n,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,u=r+P(s,c++),o);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function _(){var e=N.current;if(null===e)throw Error(f(321));return e}var I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(f(143));return e}},t.Component=m,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(f(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}}
2,t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return _().useCallback(e,t)},t.useContext=function(e,t){return _().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return _().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return _().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return _().useLayoutEffect(e,t)},t.useMemo=function(e,t){return _().useMemo(e,t)},t.useReducer=function(e,t,n){return _().useReducer(e,t,n)},t.useRef=function(e){return _().useRef(e)},t.useState=function(e){return _().useState(e)},t.version="17.0.1"},94801:(e,t,n)=>{var r=n(20220)(n(14759),"WeakMap");e.exports=r},94866:(e,t,n)=>{"use strict";var r=n(10690),i=r("Date.prototype.getDay"),a=r("Object.prototype.toString"),o=n(35550)();e.exports=function(e){return"object"===typeof e&&null!==e&&(o?function(e){try{return i(e),!0}catch(t){return!1}}(e):"[object Date]"===a(e))}},95070:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t<e.length;t++)e[t]=0;return e}},95644:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},95877:(e,t,n)=>{"use strict";var r=n(80347);e.exports="NODE"===r},95944:(e,t,n)=>{"use strict";var r=n(27837);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},95995:(e,t,n)=>{"use strict";n.d(t,{yH:()=>u});var r=n(58418),i=n(36712),a=n(87939),o=n(78753),s=n(97168);function l(e){if(e&&0!==e.length)return e.reduce(((e,t)=>{let{slot:n,value:r}=t;if(66!==n.length)throw new i.NV({size:n.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.NV({size:r.length,targetSize:66,type:"hex"});return e[n]=r,e}),{})}function c(e){const{balance:t,nonce:n,state:r,stateDiff:i,code:o}=e,c={};if(void 0!==o&&(c.code=o),void 0!==t&&(c.balance=(0,s.cK)(t)),void 0!==n&&(c.nonce=(0,s.cK)(n)),void 0!==r&&(c.state=l(r)),void 0!==i){if(c.state)throw new a.ft;c.stateDiff=l(i)}return c}function u(e){if(!e)return;const t={};for(const{address:n,...i}of e){if(!(0,o.P)(n,{strict:!1}))throw new r.M({address:n});if(t[n])throw new a.Hi({address:n});t[n]=c(i)}return t}},96066:(e,t,n)=>{"use strict";var r=n(26470),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function f(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=m.prototype;var v=b.prototype=new y;v.constructor=b,r(v,m.prototype),v.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:x.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+P(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(o,t,n,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+P(s=e[c],c);l+=C(s,t,n,u,o)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,u=r+P(s,c++),o);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function _(){var e=N.current;if(null===e)throw Error(f(321));return e}var I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(f(143));return e}}
2,t.Component=m,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(f(267,e));var a=r({},e.props),o=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return _().useCallback(e,t)},t.useContext=function(e,t){return _().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return _().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return _().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return _().useLayoutEffect(e,t)},t.useMemo=function(e,t){return _().useMemo(e,t)},t.useReducer=function(e,t,n){return _().useReducer(e,t,n)},t.useRef=function(e){return _().useRef(e)},t.useState=function(e){return _().useState(e)},t.version="17.0.1"},96119:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ChainstackProvider=void 0;const i=n(24839),a=n(75593),o=n(55182),s=n(31223);function l(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,i.assertArgument)(!1,"unsupported network","network",e)}class c extends s.JsonRpcProvider{constructor(e,t){null==e&&(e="mainnet");const n=o.Network.from(e);null==t&&(t=l(n.name));super(c.getRequest(n,t),n,{staticNetwork:n}),r(this,"apiKey",void 0),(0,i.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new c(e,this.apiKey)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===l(this._network.name)}
2static getRequest(e,t){null==t&&(t=l(e.name));const n=new i.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,i.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===l(e.name)&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("ChainstackProvider"),!0)),n}}t.ChainstackProvider=c},96265:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},96643:(e,t,n)=>{"use strict";var r=n(56412),i=n(28057);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},96709:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},96752:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function r(e){if("boolean"!==typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function a(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=n,t.bool=r,t.bytes=i,t.hash=a,t.exists=o,t.output=s;const l={number:n,bool:r,bytes:i,hash:a,exists:o,output:s};t.default=l},96844:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(a){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},i=r.exec(e);i;){try{n[i[0]]=decodeURIComponent(i[0])}catch(t){var o=a(i[0]);o!==i[0]&&(n[i[0]]=o)}i=r.exec(e)}n["%C2"]="\ufffd";for(var s=Object.keys(n),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),n[c])}return e}(e)}}},96867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},96988:(e,t,n)=>{"use strict";e.exports=n(74625)}
2,97018:(e,t,n)=>{"use strict";var r=n(43693).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;const i=n(24839),a=n(18500),o=n(10569),s=BigInt(0),l=BigInt(1),c=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class u extends o.Coder{constructor(e,t,n){const a=(t?"int":"uint")+8*e;super(a,a,n,!1),r(this,"size",void 0),r(this,"signed",void 0),(0,i.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=(0,i.getBigInt)(a.Typed.dereference(t,this.type)),r=(0,i.mask)(c,8*o.WordSize);if(this.signed){let e=(0,i.mask)(r,8*this.size-1);(n>e||n<-(e+l))&&this._throwError("value out-of-bounds",t),n=(0,i.toTwos)(n,8*o.WordSize)}else(n<s||n>(0,i.mask)(r,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=(0,i.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,i.fromTwos)(t,8*this.size)),t}}t.NumberCoder=u},97059:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},97101:e=>{e.exports=function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")},e.exports.__esModule=!0,e.exports.default=e.exports},97168:(e,t,n)=>{"use strict";n.d(t,{$P:()=>l,My:()=>c,cK:()=>u,i3:()=>h,nj:()=>s});var r=n(59050),i=n(93914),a=n(53187);const o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?u(e,t):"string"===typeof e?h(e,t):"boolean"===typeof e?l(e,t):c(e,t)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=`0x${Number(e)}`;return"number"===typeof t.size?((0,a.Sl)(n,{size:t.size}),(0,i.eV)(n,{size:t.size})):n}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";for(let i=0;i<e.length;i++)n+=o[e[i]];const r=`0x${n}`;return"number"===typeof t.size?((0,a.Sl)(r,{size:t.size}),(0,i.eV)(r,{dir:"right",size:t.size})):r}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n,size:a}=t,o=BigInt(e);let s;a?s=n?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"===typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));const l="bigint"===typeof s&&n?-s-1n:0;if(s&&o>s||o<l){const t="bigint"===typeof e?"n":"";throw new r.Ty({max:s?`${s}${t}`:void 0,min:`${l}${t}`,signed:n,size:a,value:`${e}${t}`})}const c=`0x${(n&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16)}`;return a?(0,i.eV)(c,{size:a}):c}const d=new TextEncoder;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(d.encode(e),t)}},97484:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(78802),i=n(20288),a=n(59788);function o(e,t){let{docsPath:n,...o}=t;const s=(()=>{const t=(0,a.l)(e,o);return t instanceof i.RM?e:t})();return new r.zX(s,{docsPath:n,...o})}},97840:(e,t,n)=>{var r=n(93008),i=n(5776);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},97858:e=>{"use strict";e.exports=Function.prototype.call},98166:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},98194:(e,t,n)=>{var r=n(46860),i=n(71515),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},98258:(e,t,n)=>{"use strict";var r=n(42459).default,i=n(16668).default,a=n(37088).default;Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const o=n(63360),s=n(24839),l=n(6161);var c=new WeakMap;class u{constructor(e){r(this,c,void 0),(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),a(c,this,(0,s.hexlify)(e))}get privateKey(){return i(c,this)}get publicKey(){return u.computePublicKey(i(c,this))}get compressedPublicKey(){return u.computePublicKey(i(c,this),!0)}sign(e){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid digest length","digest",e);const t=o.secp256k1.sign((0,s.getBytesCopy)(e),(0,s.getBytesCopy)(i(c,this)),{lowS:!0});return l.Signature.from({r:(0,s.toBeHex)(t.r,32),s:(0,s.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=u.computePublicKey(e);return(0,s.hexlify)(o.secp256k1.getSharedSecret((0,s.getBytesCopy)(i(c,this)),(0,s.getBytes)(t),!1))}static computePublicKey(e,t){let n=(0,s.getBytes)(e,"key");if(32===n.length){const e=o.secp256k1.getPublicKey(n,!!t);return(0,s.hexlify)(e)}if(64===n.length){const e=new Uint8Array(65);e[0]=4,e.set(n,1),n=e}const r=o.secp256k1.ProjectivePoint.fromHex(n);return(0,s.hexlify)(r.toRawBytes(t))}static recoverPublicKey(e,t){(0,s.assertArgument)(32===(0,s.dataLength)(e),"invalid digest length","digest",e);const n=l.Signature.from(t);let r=o.secp256k1.Signature.fromCompact((0,s.getBytesCopy)((0,s.concat)([n.r,n.s])));r=r.addRecoveryBit(n.yParity);const i=r.recoverPublicKey((0,s.getBytesCopy)(e));return(0,s.assertArgument)(null!=i,"invalid signature for digest","signature",t),"0x"+i.toHex(!1)}
2static addPoints(e,t,n){const r=o.secp256k1.ProjectivePoint.fromHex(u.computePublicKey(e).substring(2)),i=o.secp256k1.ProjectivePoint.fromHex(u.computePublicKey(t).substring(2));return"0x"+r.add(i).toHex(!!n)}}t.SigningKey=u},98300:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},98381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const r=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}().WebSocket;t.WebSocket=r},98709:(e,t,n)=>{"use strict";var r=n(23089),i=n(74118),a=n(44330),o=function(e){return function(t,n,o){var s=r(t),l=a(s);if(0===l)return!e&&-1;var c,u=i(o,l);if(e&&n!==n){for(;l>u;)if((c=s[u++])!==c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},98974:e=>{"use strict";e.exports=Math.floor},98976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;const r=n(49366),i=n(10986);function a(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"===typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map((e=>a(e,t))).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r<e.length;r++)n+=t[e[r]>>4],n+=t[15&e[r]];return n}if("object"===typeof e&&"function"===typeof e.toJSON)return a(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const n=Object.keys(e);return n.sort(),"{ "+n.map((n=>`${a(n,t)}: ${a(e[n],t)}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function s(e,t,n){let o,s=e;{const i=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${a(n)}`);for(const e in n){if("shortMessage"===e)continue;const t=n[e];i.push(e+"="+a(t))}}i.push(`code=${t}`),i.push(`version=${r.version}`),i.length&&(e+=" ("+i.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":o=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=new RangeError(e);break;default:o=new Error(e)}return(0,i.defineProperties)(o,{code:t}),n&&Object.assign(o,n),null==o.shortMessage&&(0,i.defineProperties)(o,{shortMessage:s}),o}function l(e,t,n,r){if(!e)throw s(t,n,r)}t.isError=o,t.isCallException=function(e){return o(e,"CALL_EXCEPTION")},t.makeError=s,t.assert=l,t.assertArgument=function(e,t,n,r){l(e,t,"INVALID_ARGUMENT",{argument:n,value:r})},t.assertArgumentCount=function(e,t,n){null==n&&(n=""),n&&(n=": "+n),l(e>=t,"missing argument"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),l(e<=t,"too many arguments"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const c=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(n){}return e}),[]);t.assertNormalize=function(e){l(c.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,n){if(null==n&&(n=""),e!==t){let e=n,t="new";n&&(e+=".",t+=" "+n),l(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},99432:()=>{},99717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const n=BigInt(2**32-1),r=BigInt(32);function i(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new
2Uint32Array(e.length);for(let a=0;a<e.length;a++){const{h:o,l:s}=i(e[a],t);[n[a],r[a]]=[o,s]}return[n,r]}t.fromBig=i,t.split=a;const o=(e,t)=>BigInt(e>>>0)<<r|BigInt(t>>>0);t.toBig=o;const s=(e,t,n)=>e>>>n;t.shrSH=s;const l=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=l;const c=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=c;const u=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=u;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const h=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=h;const f=(e,t)=>t;t.rotr32H=f;const p=(e,t)=>e;t.rotr32L=p;const g=(e,t,n)=>e<<n|t>>>32-n;t.rotlSH=g;const m=(e,t,n)=>t<<n|e>>>32-n;t.rotlSL=m;const y=(e,t,n)=>t<<n-32|e>>>64-n;t.rotlBH=y;const b=(e,t,n)=>e<<n-32|t>>>64-n;function v(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}t.rotlBL=b,t.add=v;const x=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=x;const w=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=w;const k=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=k;const A=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;t.add4H=A;const E=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);t.add5L=E;const S=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0;t.add5H=S;const P={fromBig:i,split:a,toBig:o,shrSH:s,shrSL:l,rotrSH:c,rotrSL:u,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:b,add:v,add3L:x,add3H:w,add4L:k,add4H:A,add5H:S,add5L:E};t.default=P}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,n.d(a,o),a}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{113:"859b5cbe",173:"04e5d744",267:"da8abafd",415:"0de91265",466:"c475720a",693:"921db6f4",825:"531362e1",951:"8e031365"}[e]+".chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="defxstats-react:";n.l=(r,i,a,o)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[i];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var a=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=a);var o=n.p+n.u(t),s=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,a,[o,s,l]=r,c=0;if(o.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);c<o.length;c++)a=o[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkdefxstats_react=self.webpackChunkdefxstats_react||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{OG:()=>mS,My:()=>sS,Ph:()=>uS,lX:()=>dS,Id:()=>gS,fg:()=>vS,qj:()=>pS,aT:()=>cS,lq:()=>hS,z:()=>fS,Q5:()=>wS});var t,r=n(9950),i=n.t(r,2),a=n(1352);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(null,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));const s="popstate";function l(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function c(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,r){return void 0===n&&(n=null),o({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?f(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function f(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function p(e,n,r,i){void 0===i&&(i={});let{window:a=document.defaultView,v5Compat:c=!1}=i,f=a.history,p=t.Pop,g=null,m=y();function y(){return(f.state||{idx:null}).idx}function b(){p=t.Pop;let e=y(),n=null==e?null:e-m;m=e,g&&g({action:p,location:x.location,delta:n})}function v(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"===typeof e?e:h(e);return n=n.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==m&&(m=0,f.replaceState(o({},f.state,{idx:m}),""));let x={get action(){return p},get location(){return e(a,f)},listen(e){if(g)throw new Error("A history only accepts one active listener");return a.addEventListener(s,b),g=e,()=>{a.removeEventListener(s,b),g=null}},createHref:e=>n(a,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,n){p=t.Push;
2let i=d(x.location,e,n);r&&r(i,e),m=y()+1;let o=u(i,m),s=x.createHref(i);try{f.pushState(o,"",s)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;a.location.assign(s)}c&&g&&g({action:p,location:x.location,delta:1})},replace:function(e,n){p=t.Replace;let i=d(x.location,e,n);r&&r(i,e),m=y();let a=u(i,m),o=x.createHref(i);f.replaceState(a,"",o),c&&g&&g({action:p,location:x.location,delta:0})},go:e=>f.go(e)};return x}var g;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),y(e,t,n,!1)}function y(e,t,n,r){let i=N(("string"===typeof t?f(t):t).pathname||"/",n);if(null==i)return null;let a=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null,s=function(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(i);for(let l=0;null==o&&l<a.length;++l)o=O(a[l],s,r);return o}function b(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(l(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let s=B([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),b(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:C(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of v(e.path))i(e,t,r);else i(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return i?[a,""]:[a];let o=v(r.join("/")),s=[];return s.push(...o.map((e=>""===e?a:[a,e].join("/")))),i&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const x=/^:[\w-]+$/,w=3,k=2,A=1,E=10,S=-2,P=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(P)&&(r+=S),t&&(r+=k),n.filter((e=>!P(e))).reduce(((e,t)=>e+(x.test(t)?w:""===t?A:E)),r)}function O(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===a?t:t.slice(a.length)||"/",u=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(i,u.params),o.push({params:i,pathname:B([a,u.pathname]),pathnameBase:F(B([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=B([a,u.pathnameBase]))}return o}function T(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:a,pathnameBase:o,pattern:e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function _(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function I(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function M(e,t){let n=R(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function j(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=f(e):(i=o({},e),l(!i.pathname||!i.pathname.includes("?"),I("?","pathname","search",i)),l(!i.pathname||!i.pathname.includes("#"),I("#","pathname","hash",i)),l(!i.search||!i.search.includes("#"),I("#","search","hash",i)));let a,s=""===e||""===i.pathname,c=s?"/":i.pathname;if(null==c)a=n;else{let e=t.length-1;if(!r&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let n,{pathname:r,search:i="",hash:a=""}="string"===typeof e?f(e):e;return r?(r=L(r),n=r.startsWith("/")?_(r.substring(1),"/"):_(r,t)):n=t,{pathname:n,search:D(i),hash:U(a)}}(i,a),d=c&&"/"!==c&&c.endsWith("/"),h=(s||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!h||(u.pathname+="/"),u}const L=e=>e.replace(/\/\/+/g,"/"),B=e=>L(e.join("/")),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function z(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],H=(new Set(W),["get",...W]);new Set(H),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(null,arguments)}const G=r.createContext(null);const Y=r.createContext(null);const q=r.createContext(null);const X=r.createContext(null);const $=r.createContext({outlet:null,matches:[],isDataRoute:!1});const K=r.createContext(null);function Q(){return null!=r.useContext(X)}function J(){return Q()||l(!1),r.useContext(X).location}function Z(e){r.useContext(q).static||r.useLayoutEffect(e)}function ee(){let{isDataRoute:e}=r.useContext($);return e?function(){let{router:e}=ue(le.UseNavigateStable),t=he(ce.UseNavigateStable),n=r.useRef(!1);Z((()=>{n.current=!0}));let i=r.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,V({fromRouteId:t},i)))}),[e,t]);return i}():function(){Q()||l(!1);
2let e=r.useContext(G),{basename:t,future:n,navigator:i}=r.useContext(q),{matches:a}=r.useContext($),{pathname:o}=J(),s=JSON.stringify(M(a,n.v7_relativeSplatPath)),c=r.useRef(!1);Z((()=>{c.current=!0}));let u=r.useCallback((function(n,r){if(void 0===r&&(r={}),!c.current)return;if("number"===typeof n)return void i.go(n);let a=j(n,JSON.parse(s),o,"path"===r.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:B([t,a.pathname])),(r.replace?i.replace:i.push)(a,r.state,r)}),[t,i,s,o,e]);return u}()}function te(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=r.useContext(q),{matches:a}=r.useContext($),{pathname:o}=J(),s=JSON.stringify(M(a,i.v7_relativeSplatPath));return r.useMemo((()=>j(e,JSON.parse(s),o,"path"===n)),[e,s,o,n])}function ne(e,n,i,a){Q()||l(!1);let{navigator:o}=r.useContext(q),{matches:s}=r.useContext($),c=s[s.length-1],u=c?c.params:{},d=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let h,p=J();if(n){var g;let e="string"===typeof n?f(n):n;"/"===d||(null==(g=e.pathname)?void 0:g.startsWith(d))||l(!1),h=e}else h=p;let y=h.pathname||"/",b=y;if("/"!==d){let e=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=m(e,{pathname:b});let x=se(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:B([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:B([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,i,a);return n&&x?r.createElement(X.Provider,{value:{location:V({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:t.Pop}},x):x}function re(){let e=function(){var e;let t=r.useContext(K),n=de(ce.UseRouteError),i=he(ce.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[i]}(),t=z(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}const ie=r.createElement(re,null);class ae extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement($.Provider,{value:this.props.routeContext},r.createElement(K.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oe(e){let{routeContext:t,match:n,children:i}=e,a=r.useContext(G);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement($.Provider,{value:t},i)}function se(e,t,n,i){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=i)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,c=null==(a=n)?void 0:a.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||l(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,d=-1;if(n&&i&&i.v7_partialHydration)for(let r=0;r<s.length;r++){let e=s[r];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=r),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){u=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,i,a)=>{let o,l=!1,h=null,f=null;n&&(o=c&&i.route.id?c[i.route.id]:void 0,h=i.route.errorElement||ie,u&&(d<0&&0===a?(!function(e,t){t||fe[e]||(fe[e]=!0)}("route-fallback",!1),l=!0,f=null):d===a&&(l=!0,f=i.route.hydrateFallbackElement||null)));let p=t.concat(s.slice(0,a+1)),g=()=>{let t;return t=o?h:l?f:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(oe,{match:i,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?r.createElement(ae,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:g(),routeC
2ontext:{outlet:null,matches:p,isDataRoute:!0}}):g()}),null)}var le=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(le||{}),ce=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ce||{});function ue(e){let t=r.useContext(G);return t||l(!1),t}function de(e){let t=r.useContext(Y);return t||l(!1),t}function he(e){let t=function(){let e=r.useContext($);return e||l(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||l(!1),n.route.id}const fe={};function pe(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}i.startTransition;function ge(e){l(!1)}function me(e){let{basename:n="/",children:i=null,location:a,navigationType:o=t.Pop,navigator:s,static:c=!1,future:u}=e;Q()&&l(!1);let d=n.replace(/^\/*/,"/"),h=r.useMemo((()=>({basename:d,navigator:s,static:c,future:V({v7_relativeSplatPath:!1},u)})),[d,u,s,c]);"string"===typeof a&&(a=f(a));let{pathname:p="/",search:g="",hash:m="",state:y=null,key:b="default"}=a,v=r.useMemo((()=>{let e=N(p,d);return null==e?null:{location:{pathname:e,search:g,hash:m,state:y,key:b},navigationType:o}}),[d,p,g,m,y,b,o]);return null==v?null:r.createElement(q.Provider,{value:h},r.createElement(X.Provider,{children:i,value:v}))}function ye(e){let{children:t,location:n}=e;return ne(be(t),n)}new Promise((()=>{}));r.Component;function be(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,i)=>{if(!r.isValidElement(e))return;let a=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,be(e.props.children,a));e.type!==ge&&l(!1),e.props.index&&e.props.children&&l(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=be(e.props.children,a)),n.push(o)})),n}var ve=n(6538),xe=n(53044),we=n(17119),ke=n.t(we,2);let Ae=function(e){e()};const Ee=()=>Ae,Se=Symbol.for("react-redux-context"),Pe="undefined"!==typeof globalThis?globalThis:{};function Ce(){var e;if(!r.createContext)return{};const t=null!=(e=Pe[Se])?e:Pe[Se]=new Map;let n=t.get(r.createContext);return n||(n=r.createContext(null),t.set(r.createContext,n)),n}const Oe=Ce();function Te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe;return function(){return(0,r.useContext)(e)}}const Ne=Te(),_e=()=>{throw new Error("uSES not initialized!")};let Ie=_e;const Re=(e,t)=>e===t;function Me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oe;const t=e===Oe?Ne:Te(e);return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:i=Re,stabilityCheck:a,noopCheck:o}="function"===typeof n?{equalityFn:n}:n;const{store:s,subscription:l,getServerState:c,stabilityCheck:u,noopCheck:d}=t(),h=((0,r.useRef)(!0),(0,r.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,a])),f=Ie(l.addNestedSub,s.getState,c||s.getState,h,i);return(0,r.useDebugValue)(f),f}}const je=Me();function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Le.apply(null,arguments)}function Be(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Fe=n(23876),De=n.n(Fe),Ue=n(60863);
2const ze=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function We(e,t,n,r,i){let a,o,s,l,c,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:h}=i,f=!1;function p(i,f){const p=!d(f,o),g=!u(i,a,f,o);return a=i,o=f,p&&g?(s=e(a,o),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o),c):p?(e.dependsOnOwnProps&&(s=e(a,o)),t.dependsOnOwnProps&&(l=t(r,o)),c=n(s,l,o),c):g?function(){const t=e(a,o),r=!h(t,s);return s=t,r&&(c=n(s,l,o)),c}():c}return function(i,u){return f?p(i,u):(a=i,o=u,s=e(a,o),l=t(r,o),c=n(s,l,o),f=!0,c)}}function He(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function Ve(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ge(e,t){return function(t,n){let{displayName:r}=n;const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,n){i.mapToProps=e,i.dependsOnOwnProps=Ve(e);let r=i(t,n);return"function"===typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=Ve(r),r=i(t,n)),r},i}}function Ye(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function qe(e,t,n){return Le({},n,e,t)}const Xe={notify(){},get:()=>[]};function $e(e,t){let n,r=Xe,i=0,a=!1;function o(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){const e=Ee();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=Xe)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,l())},getListeners:()=>r};return c}const Ke=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?r.useLayoutEffect:r.useEffect;function Qe(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function Je(e,t){if(Qe(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Qe(e[n[i]],t[n[i]]))return!1;return!0}const Ze=["reactReduxForwardedRef"];let et=_e;const tt=[null,null];function nt(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function rt(e,t){return e===t}const it=function(e,t,n){let{pure:i,areStatesEqual:a=rt,areOwnPropsEqual:o=Je,areStatePropsEqual:s=Je,areMergedPropsEqual:l=Je,forwardRef:c=!1,context:u=Oe}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=u,h=function(e){return e?"function"===typeof e?Ge(e):Ye(e,"mapStateToProps"):He((()=>({})))}(e),f=function(e){return e&&"object"===typeof e?He((t=>function(e,t){const n={};for(const r in e){const i=e[r];"function"===typeof i&&(n[r]=function(){return t(i(...arguments))})}return n}(e,t))):e?"function"===typeof e?Ge(e):Ye(e,"mapDispatchToProps"):He((e=>({dispatch:e})))}(t),p=function(e){return e?"function"===typeof e?function(e){return function(t,n){let r,{displayName:i,areMergedPropsEqual:a}=n,o=!1;return function(t,n,i){const s=e(t,n,i);return o?a(s,r)||(r=s):(o=!0,r=s),r}}}(e):Ye(e,"mergeProps"):()=>qe}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,i={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:a,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:l};function u(t){const[n,a,o]=r.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=Be(t,Ze);return[t.context,e,n]}),[t]),s=r.useMemo((()=>n&&n.Consumer&&(0,Ue.isContextConsumer)(r.createElement(n.Consumer,null))?n:d),[n,d]),l=r.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const h=c?t.store:l.store,f=u?l.getServerState:h.getState,p=r.useMemo((()=>
2function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=t,a=Be(t,ze);return We(n(e,a),r(e,a),i(e,a),e,a)}(h.dispatch,i)),[h]),[m,y]=r.useMemo((()=>{if(!g)return tt;const e=$e(h,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,c,l]),b=r.useMemo((()=>c?l:Le({},l,{subscription:m})),[c,l,m]),v=r.useRef(),x=r.useRef(o),w=r.useRef(),k=r.useRef(!1),A=(r.useRef(!1),r.useRef(!1)),E=r.useRef();Ke((()=>(A.current=!0,()=>{A.current=!1})),[]);const S=r.useMemo((()=>()=>w.current&&o===x.current?w.current:p(h.getState(),o)),[h,o]),P=r.useMemo((()=>e=>m?function(e,t,n,r,i,a,o,s,l,c,u){if(!e)return()=>{};let d=!1,h=null;const f=()=>{if(d||!s.current)return;const e=t.getState();let n,f;try{n=r(e,i.current)}catch(p){f=p,h=p}f||(h=null),n===a.current?o.current||c():(a.current=n,l.current=n,o.current=!0,u())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h}}(g,h,m,p,x,v,k,A,w,y,e):()=>{}),[m]);var C,O,T;let N;C=nt,O=[x,v,k,o,w,y],Ke((()=>C(...O)),T);try{N=et(P,S,f?()=>p(f(),o):S)}catch(I){throw E.current&&(I.message+=`\nThe error may be correlated with this previous error:\n${E.current.stack}\n\n`),I}Ke((()=>{E.current=void 0,w.current=void 0,v.current=N}));const _=r.useMemo((()=>r.createElement(e,Le({},N,{ref:a}))),[a,e,N]);return r.useMemo((()=>g?r.createElement(s.Provider,{value:b},_):_),[s,_,b])}const m=r.memo(u);if(m.WrappedComponent=e,m.displayName=u.displayName=n,c){const t=r.forwardRef((function(e,t){return r.createElement(m,Le({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,De()(t,e)}return De()(m,e)}};const at=function(e){let{store:t,context:n,children:i,serverState:a,stabilityCheck:o="once",noopCheck:s="once"}=e;const l=r.useMemo((()=>{const e=$e(t);return{store:t,subscription:e,getServerState:a?()=>a:void 0,stabilityCheck:o,noopCheck:s}}),[t,a,o,s]),c=r.useMemo((()=>t.getState()),[t]);Ke((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const u=n||Oe;return r.createElement(u.Provider,{value:l},i)};var ot,st;ot=xe.useSyncExternalStoreWithSelector,Ie=ot,(e=>{et=e})(ve.useSyncExternalStore),st=we.unstable_batchedUpdates,Ae=st;function lt(e,t,n){const r=t.split("|").map((e=>e.trim()));for(let a=0;a<r.length;a++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}const i=new Error(`invalid value for type ${t}`);throw i.code="INVALID_ARGUMENT",i.argument=`value.${n}`,i.value=e,i}async function ct(e){const t=Object.keys(e);return(await Promise.all(t.map((t=>Promise.resolve(e[t]))))).reduce(((e,n,r)=>(e[t[r]]=n,e)),{})}function ut(e,t,n){for(let r in t){let i=t[r];const a=n?n[r]:null;a&<(i,a,r),Object.defineProperty(e,r,{enumerable:!0,value:i,writable:!1})}}function dt(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"===typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map((e=>dt(e,t))).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r<e.length;r++)n+=t[e[r]>>4],n+=t[15&e[r]];return n}if("object"===typeof e&&"function"===typeof e.toJSON)return dt(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const n=Object.keys(e);return n.sort(),"{ "+n.map((n=>`${dt(n,t)}: ${dt(e[n],t)}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function ht(e,t){return e&&e.code===t}function ft(e){return ht(e,"CALL_EXCEPTION")}function pt(e,t,n){let r,i=e;{const r=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${dt(n)}`);for(const e in n){if("shortMessage"===e)continue;const t=n[e];r.push(e+"="+dt(t))}}r.push(`code=${t}`),r.push("version=6.17.0"),r.length&&(e+=" ("+r.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":r=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":r=new RangeError(e);break;default:r=new Error(e)}return ut(r,{code:t}),n&&Object.assign(r,n),null==r.shortMessage&&ut(r,{shortMessage:i}),r}function gt(e,t,n,r){if(!e)throw pt(t,n,r)}function mt(e,t,n,r){gt(e,t,"INVALID_ARGUMENT",{argument:n,value:r})}function yt(e,t,n){null==n&&(n=""),n&&(n=": "+n),gt(e>=t,"missing argument"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),gt(e<=t,"too many arguments"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}const bt=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(n){}return e}),[]);function vt(e,t,n){if(null==n&&(n=""),e!==t){let e=n,t="new";n&&(e+=".",t+=" "+n),gt(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}function xt(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function wt(e,t){xt(e,t),t.add(e)}function kt(e,t,n){xt(e,t),t.set(e,n)}var At=n(82284);function Et(e){var t=function(e,t){if("object"!=(0,At.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=(0,At.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,At.A)(t)?t:t+""}function St(e,t,n){return(t=Et(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Ct(e,t){return e.get(Pt(e,t))}function Ot(e,t,n){return e.set(Pt(e,t),n),n}function Tt(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if("string"===typeof e&&e.length%2===0&&e.match(/^0x[0-9a-f]*$/i)){const t=new Uint8Array((e.length-2)/2);let n=2;
2for(let r=0;r<t.length;r++)t[r]=parseInt(e.substring(n,n+2),16),n+=2;return t}mt(!1,"invalid BytesLike value",t||"value",e)}function Nt(e,t){return Tt(e,t,!1)}function _t(e,t){return Tt(e,t,!0)}function It(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(("number"!==typeof t||e.length===2+2*t)&&(!0!==t||e.length%2===0))}function Rt(e){return It(e,!0)||e instanceof Uint8Array}const Mt="0123456789abcdef";function jt(e){const t=Nt(e);let n="0x";for(let r=0;r<t.length;r++){const e=t[r];n+=Mt[(240&e)>>4]+Mt[15&e]}return n}function Lt(e){return"0x"+e.map((e=>jt(e).substring(2))).join("")}function Bt(e){return It(e,!0)?(e.length-2)/2:Nt(e).length}function Ft(e,t,n){const r=Nt(e);return null!=n&&n>r.length&>(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:n}),jt(r.slice(null==t?0:t,null==n?r.length:n))}function Dt(e,t,n){const r=Nt(e);gt(t>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:t,offset:t+1});const i=new Uint8Array(t);return i.fill(0),n?i.set(r,t-r.length):i.set(r,0),jt(i)}function Ut(e,t){return Dt(e,t,!0)}const zt=BigInt(0),Wt=BigInt(1),Ht=9007199254740991;function Vt(e,t){const n=Xt(e,"value"),r=BigInt(Qt(t,"width"));if(gt(n>>r===zt,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-Wt){return-((~n&(Wt<<r)-Wt)+Wt)}return n}function Gt(e,t){let n=qt(e,"value");const r=BigInt(Qt(t,"width")),i=Wt<<r-Wt;if(n<zt){n=-n,gt(n<=i,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~n&(Wt<<r)-Wt)+Wt}return gt(n<i,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),n}function Yt(e,t){const n=Xt(e,"value"),r=BigInt(Qt(t,"bits"));return n&(Wt<<r)-Wt}function qt(e,t){switch(typeof e){case"bigint":return e;case"number":return mt(Number.isInteger(e),"underflow",t||"value",e),mt(e>=-Ht&&e<=Ht,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(n){mt(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}mt(!1,"invalid BigNumberish value",t||"value",e)}function Xt(e,t){const n=qt(e,t);return gt(n>=zt,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}const $t="0123456789abcdef";function Kt(e){if(e instanceof Uint8Array){let t="0x0";for(const n of e)t+=$t[n>>4],t+=$t[15&n];return BigInt(t)}return qt(e)}function Qt(e,t){switch(typeof e){case"bigint":return mt(e>=-Ht&&e<=Ht,"overflow",t||"value",e),Number(e);case"number":return mt(Number.isInteger(e),"underflow",t||"value",e),mt(e>=-Ht&&e<=Ht,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return Qt(BigInt(e),t)}catch(n){mt(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}mt(!1,"invalid numeric value",t||"value",e)}function Jt(e,t){const n=Xt(e,"value");let r=n.toString(16);if(null==t)r.length%2&&(r="0"+r);else{const i=Qt(t,"width");if(0===i&&n===zt)return"0x";for(gt(2*i>=r.length,`value exceeds width (${i} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});r.length<2*i;)r="0"+r}return"0x"+r}function Zt(e,t){const n=Xt(e,"value");if(n===zt){const e=null!=t?Qt(t,"width"):0;return new Uint8Array(e)}let r=n.toString(16);if(r.length%2&&(r="0"+r),null!=t){const n=Qt(t,"width");for(;r.length<2*n;)r="00"+r;gt(2*n===r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeArray",fault:"overflow",value:e})}const i=new Uint8Array(r.length/2);for(let a=0;a<i.length;a++){const e=2*a;i[a]=parseInt(r.substring(e,e+2),16)}return i}function en(e){let t=jt(Rt(e)?e:Zt(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}var tn;const nn=BigInt(-1),rn=BigInt(0),an=BigInt(1),on=BigInt(5),sn={};let ln="0000";for(;ln.length<80;)ln+=ln;function cn(e){let t=ln;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function un(e,t,n){const r=BigInt(t.width);if(t.signed){const t=an<<r-an;gt(null==n||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=e>rn?Vt(Yt(e,r),r):-Vt(Yt(-e,r),r)}else{const t=an<<r;gt(null==n||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=(e%t+t)%t&t-an}return e}function dn(e){"number"===typeof e&&(e=`fixed128x${e}`);let t=!0,n=128,r=18;if("string"===typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);mt(i,"invalid fixed format","format",e),t="u"!==i[1],n=parseInt(i[2]),r=parseInt(i[3])}else if(e){const i=e,a=(e,t,n)=>
2null==i[e]?n:(mt(typeof i[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,i[e]),i[e]);t=a("signed","boolean",t),n=a("width","number",n),r=a("decimals","number",r)}mt(n%8===0,"invalid FixedNumber width (not byte aligned)","format.width",n),mt(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r);return{signed:t,width:n,decimals:r,name:(t?"":"u")+"fixed"+String(n)+"x"+String(r)}}var hn=new WeakMap,fn=new WeakMap,pn=new WeakMap,gn=new WeakSet;class mn{constructor(e,t,n){wt(this,gn),St(this,"format",void 0),kt(this,hn,void 0),kt(this,fn,void 0),kt(this,pn,void 0),St(this,"_value",void 0),vt(e,sn,"FixedNumber"),Ot(fn,this,t),Ot(hn,this,n);const r=function(e,t){let n="";e<rn&&(n="-",e*=nn);let r=e.toString();if(0===t)return n+r;for(;r.length<=t;)r=ln+r;const i=r.length-t;for(r=r.substring(0,i)+"."+r.substring(i);"0"===r[0]&&"."!==r[1];)r=r.substring(1);for(;"0"===r[r.length-1]&&"."!==r[r.length-2];)r=r.substring(0,r.length-1);return n+r}(t,n.decimals);ut(this,{format:n.name,_value:r}),Ot(pn,this,cn(n.decimals))}get signed(){return Ct(hn,this).signed}get width(){return Ct(hn,this).width}get decimals(){return Ct(hn,this).decimals}get value(){return Ct(fn,this)}addUnsafe(e){return Pt(gn,this,vn).call(this,e)}add(e){return Pt(gn,this,vn).call(this,e,"add")}subUnsafe(e){return Pt(gn,this,xn).call(this,e)}sub(e){return Pt(gn,this,xn).call(this,e,"sub")}mulUnsafe(e){return Pt(gn,this,wn).call(this,e)}mul(e){return Pt(gn,this,wn).call(this,e,"mul")}mulSignal(e){Pt(gn,this,yn).call(this,e);const t=Ct(fn,this)*Ct(fn,e);return gt(t%Ct(pn,this)===rn,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),Pt(gn,this,bn).call(this,t/Ct(pn,this),"mulSignal")}divUnsafe(e){return Pt(gn,this,kn).call(this,e)}div(e){return Pt(gn,this,kn).call(this,e,"div")}divSignal(e){gt(Ct(fn,e)!==rn,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),Pt(gn,this,yn).call(this,e);const t=Ct(fn,this)*Ct(pn,this);return gt(t%Ct(fn,e)===rn,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),Pt(gn,this,bn).call(this,t/Ct(fn,e),"divSignal")}cmp(e){let t=this.value,n=e.value;const r=this.decimals-e.decimals;return r>0?n*=cn(r):r<0&&(t*=cn(-r)),t<n?-1:t>n?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=Ct(fn,this);return Ct(fn,this)<rn&&(e-=Ct(pn,this)-an),e=Ct(fn,this)/Ct(pn,this)*Ct(pn,this),Pt(gn,this,bn).call(this,e,"floor")}ceiling(){let e=Ct(fn,this);return Ct(fn,this)>rn&&(e+=Ct(pn,this)-an),e=Ct(fn,this)/Ct(pn,this)*Ct(pn,this),Pt(gn,this,bn).call(this,e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,n=on*cn(t-1);let r=this.value+n;const i=cn(t);return r=r/i*i,un(r,Ct(hn,this),"round"),new mn(sn,r,Ct(hn,this))}isZero(){return Ct(fn,this)===rn}isNegative(){return Ct(fn,this)<rn}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return mn.fromString(this.toString(),e)}static fromValue(e,t,n){const r=null==t?0:Qt(t),i=dn(n);let a=qt(e,"value");const o=r-i.decimals;if(o>0){const t=cn(o);gt(a%t===rn,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),a/=t}else o<0&&(a*=cn(-o));return un(a,i,"fromValue"),new mn(sn,a,i)}static fromString(e,t){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);mt(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const r=dn(t);let i=n[2]||"0",a=n[3]||"";for(;a.length<r.decimals;)a+=ln;gt(a.substring(r.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),a=a.substring(0,r.decimals);const o=BigInt(n[1]+i+a);return un(o,r,"fromString"),new mn(sn,o,r)}static fromBytes(e,t){let n=Kt(Nt(e,"value"));const r=dn(t);return r.signed&&(n=Vt(n,r.width)),un(n,r,"fromBytes"),new mn(sn,n,r)}}function yn(e){mt(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}function bn(e,t){return e=un(e,Ct(hn,this),t),new tn(sn,e,Ct(hn,this))}function vn(e,t){return Pt(gn,this,yn).call(this,e),Pt(gn,this,bn).call(this,Ct(fn,this)+Ct(fn,e),t)}function xn(e,t){return Pt(gn,this,yn).call(this,e),Pt(gn,this,bn).call(this,Ct(fn,this)-Ct(fn,e),t)}function wn(e,t){return Pt(gn,this,yn).call(this,e),Pt(gn,this,bn).call(this,Ct(fn,this)*Ct(fn,e)/Ct(pn,this),t)}function kn(e,t){return gt(Ct(fn,e)!==rn,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),Pt(gn,this,yn).call(this,e),Pt(gn,this,bn).call(this,Ct(fn,this)*Ct(pn,this)/Ct(fn,e),t)}tn=mn;const An=["wei","kwei","mwei","gwei","szabo","finney","ether"];function En(e,t){let n=18;if("string"===typeof t){const e=An.indexOf(t);mt(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=Qt(t,"unit"));return mn.fromValue(e,n,{decimals:n,width:512}).toString()}function Sn(e){return En(e,18)}function Pn(e){return function(e,t){mt("string"===typeof e,"value must be a string","value",e);let n=18;if("string"===typeof t){const e=An.indexOf(t);mt(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=Qt(t,"unit"));return mn.fromString(e,{decimals:n,width:512}).value}(e,18)}BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),BigInt("1000000000000000000");const Cn=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");BigInt("0x8000000000000000000000000000000000000000000000000000000000000000"),BigInt(-1),BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function On(e){return 1===e||56===e}function Tn(e){if("string"!==typeof e||!/^\d+(\.\d{1,18})?$/.test(e))return null;try{const t=Pn(e);return t>0n&&t<=Cn?t:null}catch{return null}}function Nn(e){if("number"===typeof e&&Number.isSafeInteger(e)&&e>=0&&(e=String(e)),"string"!==typeof e||!/^\d+$/.test(e))throw new Error("Invalid token amount");const t=BigInt(e);if(t>Cn)throw new Error("Token amount exceeds uint256");return t}async function _n(e,t){const n=await fetch(e,{signal:t});if(!n.ok)throw new Error("Unable to load transaction data");return n.json()}var In,Rn=n(11942),Mn=n.n(Rn),jn=n(48738),Ln=n.n(jn);function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dn(e){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(e)}function Un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:In;return t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function zn(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var Wn={};function Hn(e){Wn[e]||("undefined"!==typeof console&&console.error(e),Wn[e]=!0)}function Vn(e,t){return function(n,r,i){null!==n[r]&&"undefined"!==typeof n[r]&&Hn('"'.concat(r,'" property of "').concat(i,'" has been deprecated.\n').concat(t));for(var a=arguments.length,o=new Array(a>3?a-3:0),s=3;s<a;s++)o[s-3]=arguments[s];return e.apply(void 0,[n,r,i].concat(o))}}var Gn="object"===("undefined"===typeof window?"undefined":Dn(window))&&window.Element||function(){};var Yn=Mn().oneOfType([Mn().string,Mn().func,function(e,t,n){if(!(e[t]instanceof Gn))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},Mn().shape({current:Mn().any})]),qn=Mn().oneOfType([Mn().func,Mn().string,Mn().shape({$$typeof:Mn().symbol,render:Mn().func}),Mn().arrayOf(Mn().oneOfType([Mn().func,Mn().string,Mn().shape({$$typeof:Mn().symbol,render:Mn().func})]))]),Xn=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],$n={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},Kn=!("undefined"===typeof window||!window.document||!window.document.createElement);
2function Qn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Jn(e){var t=Dn(e);return null!=e&&("object"===t||"function"===t)}function Zn(e){var t=Dn(e);if("number"===t)return e;if("symbol"===t||"object"===t&&"[object Symbol]"===Qn(e))return NaN;if(Jn(e)){var n="function"===typeof e.valueOf?e.valueOf():e;e=Jn(n)?"".concat(n):n}if("string"!==t)return 0===e?e:+e;e=e.replace(/^\s+|\s+$/g,"");var r=/^0b[01]+$/i.test(e);return r||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?NaN:+e}function er(e){if(function(e){return!(!e||"object"!==Dn(e))&&"current"in e}(e))return e.current;if(function(e){if(!Jn(e))return!1;var t=Qn(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}(e))return e();if("string"===typeof e&&Kn){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function tr(e){return null!==e&&(Array.isArray(e)||Kn&&"number"===typeof e.length)}function nr(e,t){if(!e||!t)return t;var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t);return Object.keys(e).forEach((function(t){void 0===n[t]&&(n[t]=e[t]),Object.keys(e[t]||{}).length>0&&"object"===Dn(e[t])&&nr(e[t],n)})),n}var rr=n(63662);function ir(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,rr.A)(e,t)}const ar=!1,or=r.createContext(null);var sr="unmounted",lr="exited",cr="entering",ur="entered",dr="exiting",hr=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=lr,r.appearStatus=cr):i=ur:i=t.unmountOnExit||t.mountOnEnter?sr:lr,r.state={status:i},r.nextCallback=null,r}ir(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===sr?{status:lr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==cr&&n!==ur&&(t=cr):n!==cr&&n!==ur||(t=dr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===cr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:we.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lr&&this.setState({status:sr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[we.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||ar?this.safeSetState({status:ur},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:cr},(function(){t.props.onEntering(a,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:ur},(function(){t.props.onEntered(a,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:we.findDOMNode(this);t&&!ar?(this.props.onExit(r),this.safeSetState({status:dr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:we.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===sr)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Be(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(or.Provider,{value:null},"function"===typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function fr(){}hr.contextType=or,hr.propTypes={},hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
2:!0,exit:!0,onEnter:fr,onEntering:fr,onEntered:fr,onExit:fr,onExiting:fr,onExited:fr},hr.UNMOUNTED=sr,hr.EXITED=lr,hr.ENTERING=cr,hr.ENTERED=ur,hr.EXITING=dr;const pr=hr;var gr=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}function yr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){xr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wr=vr(vr({},pr.propTypes),{},{children:Mn().oneOfType([Mn().arrayOf(Mn().node),Mn().node]),tag:qn,baseClass:Mn().string,baseClassActive:Mn().string,className:Mn().string,cssModule:Mn().object,innerRef:Mn().oneOfType([Mn().object,Mn().string,Mn().func])}),kr=vr(vr({},pr.defaultProps),{},{timeout:150,appear:!0,enter:!0,exit:!0,in:!0});function Ar(e){var t=(0,r.useRef)(null),n=nr(kr,e),i=n.tag,a=void 0===i?"div":i,o=n.baseClass,s=void 0===o?"fade":o,l=n.baseClassActive,c=void 0===l?"show":l,u=n.className,d=n.cssModule,h=n.children,f=n.innerRef,p=void 0===f?t:f,g=yr(n,gr),m=function(e,t){for(var n,r=Array.isArray(t)?t:[t],i=r.length,a={};i>0;)a[n=r[i-=1]]=e[n];return a}(vr({defaultProps:kr},g),Xn),y=zn(g,Xn);return r.createElement(pr,mr({nodeRef:p},m),(function(e){var t="entered"===e,n=Un(Ln()(u,s,t&&c),d);return r.createElement(a,mr({className:n},y,{ref:p}),h)}))}Ar.propTypes=wr;const Er=Ar;var Sr=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pr.apply(this,arguments)}function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _r={children:Mn().node,className:Mn().string,closeClassName:Mn().string,closeAriaLabel:Mn().string,color:Mn().string,cssModule:Mn().object,fade:Mn().bool,innerRef:Mn().oneOfType([Mn().object,Mn().string,Mn().func]),isOpen:Mn().bool,tag:qn,toggle:Mn().func,transition:Mn().shape(Er.propTypes)};function Ir(e){var t=e.className,n=e.closeClassName,i=e.closeAriaLabel,a=void 0===i?"Close":i,o=e.cssModule,s=e.tag,l=void 0===s?"div":s,c=e.color,u=void 0===c?"success":c,d=e.isOpen,h=void 0===d||d,f=e.toggle,p=e.children,g=e.transition,m=void 0===g?Or(Or({},Er.defaultProps),{},{unmountOnExit:!0}):g,y=e.fade,b=void 0===y||y,v=e.innerRef,x=Nr(e,Sr),w=Un(Ln()(t,"alert","alert-".concat(u),{"alert-dismissible":f}),o),k=Un(Ln()("btn-close",n),o),A=Or(Or(Or({},Er.defaultProps),m),{},{baseClass:b?m.baseClass:"",timeout:b?m.timeout:0});return r.createElement(Er,Pr({},x,A,{tag:l,className:w,in:h,role:"alert",innerRef:v}),f?r.createElement("button",{type:"button",className:k,"aria-label":a,onClick:f}):null,p)}Ir.propTypes=_r;const Rr=Ir;var Mr=["className","cssModule","noGutters","tag","widths"];function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function Lr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Br=["xs","sm","md","lg","xl","xxl"],Fr=Mn().oneOfType([Mn().number,Mn().string]),Dr={tag:qn,noGutters:Vn(Mn().bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:Mn().string,cssModule:Mn().object,xs:Fr,sm:Fr,md:Fr,lg:Fr,xl:Fr,xxl:Fr,widths:Mn().array};function Ur(e){var t=e.className,n=e.cssModule,i=e.noGutters,a=e.tag,o=void 0===a?"div":a,s=e.widths,l=void 0===s?Br:s,c=Lr(e,Mr),u=[];l.forEach((function(t,n){var r=e[t];if(delete c[t],r){var i=!n;u.push(i?"row-cols-".concat(r):"row-cols-".concat(t,"-").concat(r))}}));var d=Un(Ln()(t,i?"gx-0":null,"row",u),n);return r.createElement(o,jr({},c,{className:d}))}Ur.propTypes=Dr;const zr=Ur;var Wr=["className","cssModule","widths","tag"];function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hr.apply(this,arguments)}function Vr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yr=["xs","sm","md","lg","xl","xxl"],qr=Mn().oneOfType([Mn().number,Mn().string]),Xr=Mn().oneOfType([Mn().bool,Mn().number,Mn().string,Mn().shape({size:Mn().oneOfType([Mn().bool,Mn().number,Mn().string]),order:qr,offset:qr})]),$r={tag:qn,xs:Xr,sm:Xr,md:Xr,lg:Xr,xl:Xr,xxl:Xr,className:Mn().string,cssModule:Mn().object,widths:Mn().array},Kr=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col
2-".concat(n):"col-".concat(t,"-").concat(n)};function Qr(e){var t=e.className,n=e.cssModule,i=e.widths,a=void 0===i?Yr:i,o=e.tag,s=void 0===o?"div":o,l=function(e,t){var n=e,r=[];return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yr).forEach((function(e,i){var a=n[e];if(delete n[e],a||""===a){var o=!i;if(Jn(a)){var s,l=o?"-":"-".concat(e,"-"),c=Kr(o,e,a.size);r.push(Un(Ln()((Gr(s={},c,a.size||""===a.size),Gr(s,"order".concat(l).concat(a.order),a.order||0===a.order),Gr(s,"offset".concat(l).concat(a.offset),a.offset||0===a.offset),s)),t))}else{var u=Kr(o,e,a);r.push(u)}}})),{colClasses:r,modifiedAttributes:n}}(Vr(e,Wr),n,a),c=l.modifiedAttributes,u=l.colClasses;u.length||u.push("col");var d=Un(Ln()(t,u),n);return r.createElement(s,Hr({},c,{className:d}))}Qr.propTypes=$r;const Jr=Qr;var Zr=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ei.apply(this,arguments)}function ti(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ni={body:Mn().bool,className:Mn().string,color:Mn().string,cssModule:Mn().object,innerRef:Mn().oneOfType([Mn().object,Mn().string,Mn().func]),inverse:Mn().bool,outline:Mn().bool,tag:qn};function ri(e){var t=e.className,n=e.cssModule,i=e.color,a=e.body,o=e.inverse,s=e.outline,l=e.tag,c=void 0===l?"div":l,u=e.innerRef,d=ti(e,Zr),h=Un(Ln()(t,"card",!!o&&"text-white",!!a&&"card-body",!!i&&"".concat(s?"border":"bg","-").concat(i)),n);return r.createElement(c,ei({},d,{className:h,ref:u}))}ri.propTypes=ni;const ii=ri;var ai=["className","cssModule","innerRef","tag"];function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oi.apply(this,arguments)}function si(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var li={className:Mn().string,cssModule:Mn().object,innerRef:Mn().oneOfType([Mn().object,Mn().string,Mn().func]),tag:qn};function ci(e){var t=e.className,n=e.cssModule,i=e.innerRef,a=e.tag,o=void 0===a?"div":a,s=si(e,ai),l=Un(Ln()(t,"card-body"),n);return r.createElement(o,oi({},s,{className:l,ref:i}))}ci.propTypes=li;const ui=ci;var di=["className","cssModule","tag"];function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(this,arguments)}function fi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var pi={className:Mn().string,cssModule:Mn().object,tag:qn};function gi(e){var t=e.className,n=e.cssModule,i=e.tag,a=void 0===i?"div":i,o=fi(e,di),s=Un(Ln()(t,"card-title"),n);return r.createElement(a,hi({},o,{className:s}))}gi.propTypes=pi;const mi=gi;var yi=["className","cssModule","fluid","tag"];function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bi.apply(this,arguments)}function vi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var xi={tag:qn,fluid:Mn().oneOfType([Mn().bool,Mn().string]),className:Mn().string,cssModule:Mn().object};function wi(e){var t=e.className,n=e.cssModule,i=e.fluid,a=e.tag,o=void 0===a?"div":a,s=vi(e,yi),l="container";!0===i?l="container-fluid":i&&(l="container-".concat(i));var c=Un(Ln()(t,l),n);return r.createElement(o,bi({},s,{className:c}))}wi.propTypes=xi;const ki=wi;var Ai,Ei;try{Ai=Map}catch(ej){}try{Ei=Set}catch(ej){}function Si(e,t,n){if(!e||"object"!==typeof e||"function"===typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(Pi);if(Ai&&e instanceof Ai)return new Map(Array.from(e.entries()));
2if(Ei&&e instanceof Ei)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var r=Object.create(e);for(var i in n.push(r),e){var a=t.findIndex((function(t){return t===e[i]}));r[i]=a>-1?n[a]:Si(e[i],t,n)}return r}return e}function Pi(e){return Si(e,[],[])}const Ci=Object.prototype.toString,Oi=Error.prototype.toString,Ti=RegExp.prototype.toString,Ni="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",_i=/^Symbol\((.*)\)(.*)$/;function Ii(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Ni.call(e).replace(_i,"Symbol($1)");const r=Ci.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+Oi.call(e)+"]":"RegExp"===r?Ti.call(e):null}function Ri(e,t){let n=Ii(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=Ii(this[e],t);return null!==r?r:n}),2)}let Mi={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:i}=e,a=null!=i&&i!==r,o=`${t} must be a \`${n}\` type, but the final value was: \`${Ri(r,!0)}\``+(a?` (cast from the value \`${Ri(i,!0)}\`).`:".");return null===r&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},ji={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Li={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Bi={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Fi={isValue:"${path} field must be ${value}"},Di={noUnknown:"${path} field has unspecified keys: ${unknown}"},Ui={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Mi,string:ji,number:Li,date:Bi,object:Di,array:Ui,boolean:Fi});var zi=n(26094),Wi=n.n(zi);const Hi=e=>e&&e.__isYupSchema__;const Vi=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"===typeof t)return void(this.fn=t);if(!Wi()(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,a="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};this.fn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=t.pop(),s=t.pop(),l=a(...t)?r:i;if(l)return"function"===typeof l?l(s):s.concat(l.resolve(o))}}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!Hi(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}};function Gi(e){return null==e?[]:[].concat(e)}function Yi(){return Yi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yi.apply(this,arguments)}let qi=/\$\{\s*(\w+)\s*\}/g;
2class Xi extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=Yi({},t,{path:n})),"string"===typeof e?e.replace(qi,((e,n)=>Ri(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],Gi(e).forEach((e=>{Xi.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Xi)}}function $i(e,t){let{endEarly:n,tests:r,args:i,value:a,errors:o,sort:s,path:l}=e,c=(e=>{let t=!1;return function(){t||(t=!0,e(...arguments))}})(t),u=r.length;const d=[];if(o=o||[],!u)return o.length?c(new Xi(o,a,l)):c(null,a);for(let h=0;h<r.length;h++){(0,r[h])(i,(function(e){if(e){if(!Xi.isError(e))return c(e,a);if(n)return e.value=a,c(e,a);d.push(e)}if(--u<=0){if(d.length&&(s&&d.sort(s),o.length&&d.push(...o),o=d),o.length)return void c(new Xi(o,a,l),a);c(null,a)}}))}}var Ki=n(6638),Qi=n.n(Ki),Ji=n(88974);const Zi="$",ea=".";class ta{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Zi,this.isValue=this.key[0]===ea,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Zi:this.isValue?ea:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,Ji.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function na(){return na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},na.apply(this,arguments)}function ra(e){function t(t,n){let{value:r,path:i="",label:a,options:o,originalValue:s,sync:l}=t,c=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]);const{name:u,test:d,params:h,message:f}=e;let{parent:p,context:g}=o;function m(e){return ta.isRef(e)?e.getValue(r,p,g):e}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Qi()(na({value:r,originalValue:s,label:a,path:e.path||i},h,e.params),m),n=new Xi(Xi.formatError(e.message||f,t),r,t.path,e.type||u);return n.params=t,n}let b,v=na({path:i,parent:p,type:u,createError:y,resolve:m,options:o,originalValue:s},c);if(l){try{var x;if(b=d.call(v,r,v),"function"===typeof(null==(x=b)?void 0:x.then))throw new Error(`Validation test of type: "${v.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(w){return void n(w)}Xi.isError(b)?n(b):b?n(null,b):n(y())}else try{Promise.resolve(d.call(v,r,v)).then((e=>{Xi.isError(e)?n(e):e?n(null,e):n(y())})).catch(n)}catch(w){n(w)}}return t.OPTIONS=e,t}ta.prototype.__isYupRef=!0;function ia(e,t,n){let r,i,a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,Ji.forEach)(t,((s,l,c)=>{let u=l?(e=>e.substr(0,e.length-1).substr(1))(s):s;
2if((e=e.resolve({context:o,parent:r,value:n})).innerType){let i=c?parseInt(u,10):0;if(n&&i>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);r=n,n=n&&n[i],e=e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);r=n,n=n&&n[u],e=e.fields[u]}i=u,a=l?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}class aa{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce(((t,n)=>t.concat(ta.isRef(n)?e(n):n)),[])}add(e){ta.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){ta.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new aa;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach((e=>n.add(e))),e.refs.forEach((e=>n.add(e))),t.list.forEach((e=>n.delete(e))),t.refs.forEach((e=>n.delete(e))),n}}function oa(){return oa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oa.apply(this,arguments)}class sa{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new aa,this._blacklist=new aa,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(Mi.notType)})),this.type=(null==e?void 0:e.type)||"mixed",this.spec=oa({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=oa({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Pi(oa({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,n=e.clone();const r=oa({},t.spec,n.spec);return n.spec=r,n._typeError||(n._typeError=t._typeError),n._whitelistError||(n._whitelistError=t._whitelistError),n._blacklistError||(n._blacklistError=t._blacklistError),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(oa({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=Ri(e),a=Ri(r);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". \n\nattempted value: ${i} \n`+(a!==i?`result of cast: ${a}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault()),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,{sync:r,path:i,from:a=[],originalValue:o=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,c=e;s||(c=this._cast(c,oa({assert:!1},t)));let u={value:c,path:i,options:t,originalValue:o,schema:this,label:this.spec.label,sync:r,from:a},d=[];this._typeError&&d.push(this._typeError);let h=[];this._whitelistError&&h.push(this._whitelistError),this._blacklistError&&h.push(this._blacklistError),$i({args:u,value:c,path:i,sync:r,tests:d,endEarly:l},(e=>{e?n(e,c):$i({tests:this.tests.concat(h),args:u,path:i,sync:r,value:c,endEarly:l},n)}))}validate(e,t,n){let r=this.resolve(oa({},t,{value:e}));return"function"===typeof n?r._validate(e,t,n):new Promise(((n,i)=>r._validate(e,t,((e,t)=>
2{e?i(e):n(t)}))))}validateSync(e,t){let n;return this.resolve(oa({},t,{value:e}))._validate(e,oa({},t,{sync:!0}),((e,t)=>{if(e)throw e;n=t})),n}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(Xi.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(Xi.isError(n))return!1;throw n}}_getDefault(){let e=this.spec.default;return null==e?e:"function"===typeof e?e.call(this):Pi(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mi.defined;return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mi.required;return this.clone({presence:"required"}).withMutation((t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}})))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e}nullable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=Mi.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=ra(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=Gi(e).map((e=>new ta(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push(new Vi(r,t)),n}typeError(e){let t=this.clone();return t._typeError=ra({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mi.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=ra({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mi.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=ra({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))};return r}}sa.prototype.__isYupSchema__=!0;for(const n of["validate","validateSync"])sa.prototype[`${n}At`]=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:i,parentPath:a,schema:o}=ia(this,e,t,r.context);return o[n](i&&i[a],oa({},r,{parent:i,path:e}))};for(const n of["equals","is"])sa.prototype[n]=sa.prototype.oneOf;for(const n of["not","nope"])sa.prototype[n]=sa.prototype.notOneOf;sa.prototype.optional=sa.prototype.notRequired;const la=sa;la.prototype;const ca=e=>null==e;class ua extends sa{constructor(){super({type:"boolean"}),this.withMutation((()=>{this.transform((function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;
2if(/^(false|0)$/i.test(String(e)))return!1}return e}))}))}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e}isTrue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fi.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>ca(e)||!0===e})}isFalse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fi.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>ca(e)||!1===e})}}ua.prototype;let da=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,ha=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,fa=/^(?:[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,pa=e=>ca(e)||e===e.trim(),ga={}.toString();class ma extends sa{constructor(){super({type:"string"}),this.withMutation((()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===ga?e:t}))}))}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"===typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ji.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return ca(t)||t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ji.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return ca(t)||t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ji.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return ca(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"===typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||ji.matches,params:{regex:e},test:t=>ca(t)||""===t&&i||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ji.email;return this.matches(da,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ji.url;return this.matches(ha,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ji.uuid;return this.matches(fa,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ji.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:pa})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ji.lowercase;return this.transform((e=>ca(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>ca(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ji.uppercase;return this.transform((e=>ca(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>ca(e)||e===e.toUpperCase()})}}ma.prototype;class ya extends sa{constructor(){super({type:"number"}),this.withMutation((()=>{this.transform((function(e){let t=e;if("string"===typeof t){if(t=t.replace(/\s/g,""),""===t)return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))}
2))}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e)}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return ca(t)||t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return ca(t)||t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return ca(t)||t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return ca(t)||t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Li.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Li.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Li.integer;return this.test({name:"integer",message:e,test:e=>ca(e)||Number.isInteger(e)})}truncate(){return this.transform((e=>ca(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>ca(t)?t:Math[e](t)))}}ya.prototype;var ba=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let va=new Date("");function xa(){return new wa}class wa extends sa{constructor(){super({type:"date"}),this.withMutation((()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=ba.exec(e)){for(var a,o=0;a=r[o];++o)n[a]=+n[a]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?va:new Date(e))}))}))}_typeCheck(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let n;if(ta.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bi.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return ca(e)||e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bi.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return ca(e)||e<=this.resolve(n)}})}}wa.INVALID_DATE=va,xa.prototype=wa.prototype,xa.INVALID_DATE=va;n(51170),n(56808),n(6540),n(52551);function ka(e,t){let n=1/0;return e.some(((e,r)=>{var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0})),n}function Aa(e){return(t,n)=>ka(e,t)-ka(e,n)}Aa([]);function Ea(){return Ea=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(this,arguments)}class Sa extends sa{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation((()=>{this.transform((function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))}))}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map(((e,n)=>{const i=this.innerType.cast(e,Ea({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i}));return r?i:n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;var r,i;let a=[],o=t.sync,s=t.path,l=this.innerType,c=null!=(r=t.abortEarly)?r:this.spec.abortEarly,u=null!=(i=t.recursive)?i:this.spec.recursive,d=null!=t.originalValue?t.originalValue:e;super._validate(e,t,((e,r)=>{if(e){if(!Xi.isError(e)||c)return void n(e,r);a.push(e)}if(!u||!l||!this._typeCheck(r))return void n(a[0]||null,r);d=d||r;let i=new Array(r.length);for(let n=0;n<r.length;n++){let e=r[n],a=`${t.path||""}[${n}]`,o=Ea({},t,{path:a,strict:!0,parent:r,index:n,originalValue:d[n]});i[n]=(t,n)=>l.validate(e,o,n)}$i({sync:o,path:s,value:r,errors:a,endEarly:c,tests:i},n)}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Hi(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Ri(e));return t.innerType=e,t}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ui.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return ca(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||Ui.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return ca(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||Ui.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return ca(t)||t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}Sa.prototype;var Pa,Ca=n(43088),Oa=n.n(Ca),Ta=n(64267),Na=n.n(Ta),_a=n(31712),Ia=n.n(_a),Ra=[],Ma="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Pa||(Pa={}));var ja,La=function(e){return Object.freeze(e)},Ba=function(e,t){this.inlineSize=e,this.blockSize=t,La(this)},Fa=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,La(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Da=function(e){return e instanceof SVGElement&&"getBBox"in e},Ua=function(e){if(Da(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},za=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null===e||void 0===e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Wa="undefined"!==typeof window?window:{},Ha=new WeakMap,Va=/auto|scroll/,Ga=/^tb|vertical/,Ya=/msie|trident/i.test(Wa.navigator&&Wa.navigator.userAgent),qa=function(e){return parseFloat(e||"0")},Xa=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Ba((n?t:e)||0,(n?e:t)||0)},$a=La({devicePixelContentBoxSize:Xa(),borderBoxSize:Xa(),contentBoxSize:Xa(),contentRect:new Fa(0,0,0,0)}),Ka=function(e,t){if(void 0===t&&(t=!1),Ha.has(e)&&!t)return Ha.get(e);if(Ua(e))return Ha.set(e,$a),$a;var n=getComputedStyle(e),r=Da(e)&&e.ownerSVGElement&&e.getBBox(),i=!Ya&&"border-box"===n.boxSizing,a=Ga.test(n.writingMode||""),o=!r&&Va.test(n.overflowY||""),s=!r&&Va.test(n.overflowX||""),l=r?0:qa(n.paddingTop),c=r?0:qa(n.paddingRight),u=r?0:qa(n.paddingBottom),d=r?0:qa(n.paddingLeft),h=r?0:qa(n.borderTopWidth),f=r?0:qa(n.borderRightWidth),p=r?0:qa(n.borderBottomWidth),g=d+c,m=l+u,y=(r?0:qa(n.borderLeftWidth))+f,b=h+p,v=s?e.offsetHeight-b-e.clientHeight:0,x=o?e.offsetWidth-y-e.clientWidth:0,w=i?g+y:0,k=i?m+b:0,A=r?r.width:qa(n.width)-w-x,E=r?r.height:qa(n.height)-k-v,S=A+g+x+y,P=E+m+v+b,C=La({devicePixelContentBoxSize:Xa(Math.round(A*devicePixelRatio),Math.round(E*devicePixelRatio),a),borderBoxSize:Xa(S,P,a),contentBoxSize:Xa(A,E,a),contentRect:new Fa(d,l,A,E)});return Ha.set(e,C),C},Qa=function(e,t,n){var r=Ka(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Pa.DEVICE_PIXEL_CONTENT_BOX:return o;case Pa.BORDER_BOX:return i;default:return a}},Ja=function(e){var t=Ka(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=La([t.borderBoxSize]),this.contentBoxSize=La([t.contentBoxSize]),this.devicePixelContentBoxSize=La([t.devicePixelContentBoxSize])},Za=function(e){if(Ua(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},eo=function(){var e=1/0,t=[];
2Ra.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Ja(t.target),i=Za(t.target);r.push(n),t.lastReportedSize=Qa(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},to=function(e){Ra.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Za(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},no=function(){var e=0;for(to(e);Ra.some((function(e){return e.activeTargets.length>0}));)e=eo(),to(e);return Ra.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:Ma}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Ma),window.dispatchEvent(e)}(),e>0},ro=[],io=function(e){if(!ja){var t=0,n=document.createTextNode("");new MutationObserver((function(){return ro.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),ja=function(){n.textContent="".concat(t?t--:t++)}}ro.push(e),ja()},ao=0,oo={attributes:!0,characterData:!0,childList:!0,subtree:!0},so=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],lo=function(e){return void 0===e&&(e=0),Date.now()+e},co=!1,uo=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!co){co=!0;var n,r=lo(e);n=function(){var n=!1;try{n=no()}finally{if(co=!1,e=r-lo(),!ao)return;n?t.run(1e3):e>0?t.run(e):t.start()}},io((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,oo)};document.body?t():Wa.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),so.forEach((function(t){return Wa.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),so.forEach((function(t){return Wa.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),ho=function(e){!ao&&e>0&&uo.start(),!(ao+=e)&&uo.stop()},fo=function(){function e(e,t){this.target=e,this.observedBox=t||Pa.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=Qa(this.target,this.observedBox,!0);return e=this.target,Da(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),po=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},go=new WeakMap,mo=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},yo=function(){function e(){}return e.connect=function(e,t){var n=new po(e,t);go.set(e,n)},e.observe=function(e,t,n){var r=go.get(e),i=0===r.observationTargets.length;mo(r.observationTargets,t)<0&&(i&&Ra.push(r),r.observationTargets.push(new fo(t,n&&n.box)),ho(1),uo.schedule())},e.unobserve=function(e,t){var n=go.get(e),r=mo(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&Ra.splice(Ra.indexOf(n),1),n.observationTargets.splice(r,1),ho(-1))},e.disconnect=function(e){var t=this,n=go.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),bo=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");yo.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!za(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");yo.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!za(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");yo.unobserve(this,e)},e.prototype.disconnect=function(){yo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),vo=n(23580),xo=n.n(vo);n(67572),n(59699),n(5084);function wo(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function ko(e){return e&&e.ownerDocument?e.ownerDocument:document}var Ao=null,Eo=null;function So(e){if(null===Ao){var t=ko(e);if("undefined"===typeof t)return Ao=0;var n=t.body,r=t.createElement("div");r.classList.add("simplebar-hide-scrollbar"),n.appendChild(r);var i=r.getBoundingClientRect().right;n.removeChild(r),Ao=i}return Ao}xo()&&window.addEventListener("resize",(function(){Eo!==window.devicePixelRatio&&(Eo=window.devicePixelRatio,Ao=null)}));var Po=function(){function e(t,n){var r=this;this.onScroll=function(){var e=wo(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var n=r.axis[r.draggedAxis].track,i=n.rect[r.axis[r.draggedAxis].sizeAttr],a=r.axis[r.draggedAxis].scrollbar,o=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],s=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var l=(("y"===r.draggedAxis?t.pageY:t.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(i-a.size)*(o-s);"x"===r.draggedAxis&&(l=r.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?l-(i+a.size):l,l=r.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-l:l),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=l},this.onEndDrag=function(e){var t=ko(r.el),n=wo(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,n),this.classNames=Object.assign({},e.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=Oa()(this.recalculate.bind(this),64),this.onMouseMove=Oa()(this.onMouseMove.bind(this),64),this.hideScrollbars=Na()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Na()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=Ia()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var i=e.getOffset(n),a=e.getOffset(r);n.scrollLeft=999;var o=e.getOffset(r);return{isRtlScrollingInverted:i.left!==a.left&&a.left-o.left!==0,isRtlScrollbarInverted:i.left!==a.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=ko(e),r=wo(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left
2:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),xo()&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.setAccessibilityAttributes=function(){var e=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",e)},t.initListeners=function(){var e=this,t=wo(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})}
2)),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,r=null,i=t.ResizeObserver||bo;this.resizeObserver=new i((function(){n&&null===r&&(r=t.requestAnimationFrame((function(){e.recalculate(),r=null})))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=wo(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,i=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,o=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var s=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=s+"px";var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l>r,this.axis.y.isOverflowing=s>c,this.axis.x.isOverflowing="hidden"!==a&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==o&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>i-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],i=r/n;return t=Math.max(~~(i*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.axis[t].scrollbar,o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=(o="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-o:o)/(n-i),l=~~((r-a.size)*s);l="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?l+(r-a.size):l,a.el.style.transform="x"===t?"translate3d("+l+"px, 0, 0)":"translate3d(0, "+l+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=ko(this.el),r=wo(this.el),i=this.axis[t].scrollbar,a="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=a-i.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var r=wo(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var i=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],a=parseInt(this.elStyles[this.axis[t].sizeAttr],10),o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=("y"===t?this.mouseY-i:this.mouseX-i)<0?-1:1,l=-1===s?o-a:o+a;!function e(){var i,a;-1===s?o>l&&(o-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[t].offsetAttr]=o,i)),r.requestAnimationFrame(e)):o<l&&(o+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((a={})[n.axis[t].offsetAttr]=o,a)),r.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:So(this.el)}catch(e){return So(this.el)}},t.removeListeners=function(){var e=this,t=wo(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})}
2)),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();Po.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},Po.instances=new WeakMap;const Co=Po;function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(){return _o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_o.apply(this,arguments)}function Io(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ro=["children","scrollableNodeProps","tag"],Mo=r.forwardRef((function(e,t){var n,i=e.children,a=e.scrollableNodeProps,o=void 0===a?{}:a,s=e.tag,l=void 0===s?"div":s,c=Io(e,Ro),u=l,d=(0,r.useRef)(),h=(0,r.useRef)(),f=(0,r.useRef)(),p={},g={},m=[];return Object.keys(c).forEach((function(e){Object.prototype.hasOwnProperty.call(Co.defaultOptions,e)?p[e]=c[e]:e.match(/data-simplebar-(.+)/)&&"data-simplebar-direction"!==e?m.push({name:e,value:c[e]}):g[e]=c[e]})),m.length&&console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' \u2014> 'autoHide=\"false\"'\n "),(0,r.useEffect)((function(){return d=o.ref||d,h.current&&(n=new Co(h.current,To(To(To(To({},function(e){var t=Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{});return t}(m)),p),d&&{scrollableNode:d.current}),f.current&&{contentNode:f.current})),"function"===typeof t?t(n):t&&(t.current=n)),function(){n.unMount(),n=null,"function"===typeof t&&t(null)}}),[]),r.createElement(u,_o({ref:h,"data-simplebar":!0},g),r.createElement("div",{className:"simplebar-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer"})),r.createElement("div",{className:"simplebar-mask"},r.createElement("div",{className:"simplebar-offset"},"function"===typeof i?i({scrollableNodeRef:d,contentNodeRef:f}):r.createElement("div",_o({},o,{className:"simplebar-content-wrapper".concat(o.className?" ".concat(o.className):"")}),r.createElement("div",{className:"simplebar-content"},i)))),r.createElement("div",{className:"simplebar-placeholder"})),r.createElement("div",{className:"simplebar-track simplebar-horizontal"},r.createElement("div",{className:"simplebar-scrollbar"})),r.createElement("div",{className:"simplebar-track simplebar-vertical"},r.createElement("div",{className:"simplebar-scrollbar"})))}));Mo.displayName="SimpleBar",Mo.propTypes={children:Mn().oneOfType([Mn().node,Mn().func]),scrollableNodeProps:Mn().object,tag:Mn().string};const jo=Mo;function Lo(e){if(Array.isArray(e))return e}function Bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e,t){if(e){if("string"==typeof e)return Bo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bo(e,t):void 0}}
2function Do(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Uo(e,t){return Lo(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||Fo(e,t)||Do()}function zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Et(r.key),r)}}function Ho(e,t,n){return t&&Wo(e.prototype,t),n&&Wo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Vo=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Go={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},Yo=function(e){return Go[e]};function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $o,Ko={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(Vo,Yo)}},Qo=(0,r.createContext)();var Jo=function(){function e(){zo(this,e),this.usedNamespaces={}}return Ho(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function Zo(){return $o}var es={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ko=Xo(Xo({},Ko),e)}(e.options.react),function(e){$o=e}(e)}};function ts(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var ns={};function rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"===typeof t[0]&&ns[t[0]]||("string"===typeof t[0]&&(ns[t[0]]=new Date),ts.apply(void 0,t))}function is(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ss(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,i=(0,r.useContext)(Qo)||{},a=i.i18n,o=i.defaultNS,s=n||a||Zo();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Jo),!s){rs("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&void 0!==s.options.react.wait&&rs("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=os(os(os({},Ko),s.options.react),t),d=u.useSuspense,h=u.keyPrefix,f=e||o||s.options&&s.options.defaultNS;f="string"===typeof f?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);var p=(s.isInitialized||s.initializedStoreOnce)&&f.every((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)
2)||!(!o(r,e)||i&&!o(a,e)))}(e,t,n):(rs("i18n.languages were undefined or empty",t.languages),!0)}(e,s,u)}));function g(){return s.getFixedT(null,"fallback"===u.nsMode?f:f[0],h)}var m=Uo((0,r.useState)(g),2),y=m[0],b=m[1],v=f.join(),x=function(e,t){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current}(v),w=(0,r.useRef)(!0);(0,r.useEffect)((function(){var e=u.bindI18n,t=u.bindI18nStore;function n(){w.current&&b(g)}return w.current=!0,p||d||is(s,f,(function(){w.current&&b(g)})),p&&x&&x!==v&&w.current&&b(g),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){w.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,v]);var k=(0,r.useRef)(!0);(0,r.useEffect)((function(){w.current&&!k.current&&b(g),k.current=!1}),[s,h]);var A=[y,s,p];if(A.t=y,A.i18n=s,A.ready=p,p)return A;if(!p&&!d)return A;throw new Promise((function(e){is(s,f,(function(){e()}))}))}var ls=["forwardedRef"];function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ds(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function i(i){var a=i.forwardedRef,o=function(e,t){if(null==e)return{};var n,r,i=Be(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,ls),s=Uo(ss(e,us(us({},o),{},{keyPrefix:t.keyPrefix})),3),l=s[0],c=s[1],u=s[2],d=us(us({},o),{},{t:l,i18n:c,tReady:u});return t.withRef&&a?d.ref=a:!t.withRef&&a&&(d.forwardedRef=a),(0,r.createElement)(n,d)}i.displayName="withI18nextTranslation(".concat(function(e){return e.displayName||e.name||("string"===typeof e&&e.length>0?e:"Unknown")}(n),")"),i.WrappedComponent=n;return t.withRef?(0,r.forwardRef)((function(e,t){return(0,r.createElement)(i,Object.assign({},e,{forwardedRef:t}))})):i}}function hs(e){let{storage:t,key:n="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:i=JSON.stringify,deserialize:a=JSON.parse,retry:o}=e;if(t){const e=e=>{try{return void t.setItem(n,i(e))}catch(r){return r}};return{persistClient:fs((t=>{let n=t,r=e(n),i=0;for(;r&&n;)i++,n=null==o?void 0:o({persistedClient:n,error:r,errorCount:i}),n&&(r=e(n))}),r),restoreClient:()=>{const e=t.getItem(n);if(e)return a(e)},removeClient:()=>{t.removeItem(n)}}}return{persistClient:ps,restoreClient:()=>{},removeClient:ps}}function fs(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];t=a,null===r&&(r=setTimeout((()=>{e(...t),r=null}),n))}}function ps(){}const gs="undefined"===typeof window||"Deno"in window;function ms(){}function ys(e){return"number"===typeof e&&e>=0&&e!==1/0}function bs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vs(e,t,n){return Rs(e)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function xs(e,t,n){return Rs(e)?"function"===typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"===typeof e?{...t,mutationFn:e}:{...e}}function ws(e,t,n){return Rs(e)?[{...t,queryKey:e},n]:[e||{},t]}function ks(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(Rs(o))if(r){if(t.queryHash!==Es(o,t.options))return!1}else if(!Ps(t.queryKey,o))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof s||t.isStale()===s)&&(("undefined"===typeof i||i===t.state.fetchStatus)&&!(a&&!a(t)))}function As(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:a}=e;if(Rs(a)){if(!t.options.mutationKey)return!1;if(n){if(Ss(t.options.mutationKey)!==Ss(a))return!1}else if(!Ps(t.options.mutationKey,a))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function Es(e,t){return((null==t?void 0:t.queryKeyHashFn)||Ss)(e)}function Ss(e){return JSON.stringify(e,((e,t)=>
2_s(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Ps(e,t){return Cs(e,t)}function Cs(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((n=>!Cs(e[n],t[n]))))}function Os(e,t){if(e===t)return e;const n=Ns(e)&&Ns(t);if(n||_s(e)&&_s(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),a=i.length,o=n?[]:{};let s=0;for(let l=0;l<a;l++){const r=n?l:i[l];o[r]=Os(e[r],t[r]),o[r]===e[r]&&s++}return r===a&&s===r?e:o}return t}function Ts(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ns(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _s(e){if(!Is(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!Is(n)&&!!n.hasOwnProperty("isPrototypeOf")}function Is(e){return"[object Object]"===Object.prototype.toString.call(e)}function Rs(e){return Array.isArray(e)}function Ms(e){return new Promise((t=>{setTimeout(t,e)}))}function js(e){Ms(0).then(e)}function Ls(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Os(e,t):t}const Bs=console;const Fs=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):js((()=>{n(r)}))},a=()=>{const t=e;e=[],t.length&&js((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i((()=>{e(...n)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class Ds{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Us=new class extends Ds{constructor(){super(),this.setup=e=>{if(!gs&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},zs=["online","offline"];const Ws=new class extends Ds{constructor(){super(),this.setup=e=>{if(!gs&&window.addEventListener){const t=()=>e();return zs.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{zs.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}};function Hs(e){return Math.min(1e3*2**e,3e4)}function Vs(e){return"online"!==(null!=e?e:"online")||Ws.isOnline()}class Gs{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Ys(e){return e instanceof Gs}function qs(e){let t,n,r,i=!1,a=0,o=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>!Us.isFocused()||"always"!==e.networkMode&&!Ws.isOnline(),c=r=>{o||(o=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{o||(o=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=o||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,o||null==e.onContinue||e.onContinue()})),h=()=>
2{if(o)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(o)return;const s=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:Hs,f="function"===typeof c?c(a,t):c,p=!0===s||"number"===typeof s&&a<s||"function"===typeof s&&s(a,t);!i&&p?(a++,null==e.onFail||e.onFail(a,t),Ms(f).then((()=>{if(l())return d()})).then((()=>{i?u(t):h()}))):u(t)}))};return Vs(e.networkMode)?h():d().then(h),{promise:s,cancel:t=>{o||(u(new Gs(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class Xs{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ys(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:gs?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class $s extends Xs{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||Bs,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=Ls(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(ms).catch(ms):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!bs(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const a=function(){if("function"===typeof AbortController)return new AbortController}(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>
2{if(a)return this.abortSignalConsumed=!0,a.signal}})};s(o);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,i;(Ys(e)&&e.silent||this.dispatch({type:"error",error:e}),Ys(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=qs({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,r,i;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Vs(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return Ys(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Fs.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class Ks extends Ds{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,a=null!=(r=t.queryHash)?r:Es(i,t);let o=this.get(a);return o||(o=new $s({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Fs.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=ws(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((e=>ks(n,e)))}findAll(e,t){const[n]=ws(e,t);return Object.keys(n).length>0?this.queries.filter((e=>ks(n,e))):this.queries}notify(e){Fs.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}onFocus(){Fs.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){Fs.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class Qs extends Xs{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||Bs,this.observers=[],this.state=e.state||Js(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=qs({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,a,o,s,l,c;if(!t){var u,d,h,f;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(d=this.mutationCache.config).onMutate)?void 0:u.call(d,this.state.variables,this));const e=await(null==(h=(f=this.options).onMutate)?void 0:h.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,p,this.state.variables,this.state.context,this)),await(null==(i=(a=this.options).onSuccess)?void 0:i.call(a,p,this.state.variables,this.state.context)),await(null==(o=(s=this.mutationCache.config).onSettled)?void 0:o.call(s,p,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(k){try{var p,g,m,y,b,v,x,w;throw await(null==(p=(g=this.mutationCache.config).onError)?void 0:p.call(g,k,this.state.variables,this.state.context,this)),await(null==(m=(y=this.options).onError)?void 0:m.call(y,k,this.state.variables,this.state.context)),await(null==(b=(v=this.mutationCache.config).onSettled)?void 0:b.call(v,void 0,k,this.state.variables,this.state.context,this)),await(null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Vs(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
2sed:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),Fs.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function Js(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Zs extends Ds{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new Qs({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Fs.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((t=>As(e,t)))}findAll(e){return this.mutations.filter((t=>As(e,t)))}notify(e){Fs.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>
2e.state.isPaused));return Fs.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(ms)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function el(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,a,o;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),h=(null==(a=e.state.data)?void 0:a.pages)||[],f=(null==(o=e.state.data)?void 0:o.pageParams)||[];let p=f,g=!1;const m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(p=r?[t,...p]:[...p,t],r?[n,...e]:[...e,n]),b=(t,n,r,i)=>{if(g)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};(t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{g=!0})),e.signal}})})(a);const o=m(a);return Promise.resolve(o).then((e=>y(t,r,e,i)))};let v;if(h.length)if(u){const t="undefined"!==typeof c,n=t?c:tl(e.options,h);v=b(h,t,n)}else if(d){const t="undefined"!==typeof c,n=t?c:nl(e.options,h);v=b(h,t,n,!0)}else{p=[];const t="undefined"===typeof e.options.getNextPageParam;v=!s||!h[0]||s(h[0],0,h)?b([],t,f[0]):Promise.resolve(y([],f[0],h[0]));for(let n=1;n<h.length;n++)v=v.then((r=>{if(!s||!h[n]||s(h[n],n,h)){const i=t?f[n]:tl(e.options,r);return b(r,t,i)}return Promise.resolve(y(r,f[n],h[n]))}))}else v=b([]);return v.then((e=>({pages:e,pageParams:p})))}}}}function tl(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function nl(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}class rl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.queryCache=e.queryCache||new Ks,this.mutationCache=e.mutationCache||new Zs,this.logger=e.logger||Bs,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=Us.subscribe((()=>{Us.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=Ws.subscribe((()=>{Ws.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=ws(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=vs(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((e=>{let{queryKey:t,state:n}=e;return[t,n.data]}))}setQueryData(e,t,n){const r=this.queryCache.find(e),i=function(e,t){return"function"===typeof e?e(t):e}(t,null==r?void 0:r.state.data);if("undefined"===typeof i)return;const a=vs(e),o=this.defaultQueryOptions(a);return this.queryCache.build(this,o).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Fs.batch((()=>this.getQueryCache().findAll(e).map((e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=ws(e,t),r=this.queryCache;Fs.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,i]=ws(e,t,n),a=this.queryCache,o={type:"active",...r};return Fs.batch((()=>(a.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(o,i))))}cancelQueries(e,t,n){const[r,i={}]=ws(e,t,n);"undefined"===typeof i.revert&&(i.revert=!0);const a=Fs.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(i)))));
2return Promise.all(a).then(ms).catch(ms)}invalidateQueries(e,t,n){const[r,i]=ws(e,t,n);return Fs.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)}))}refetchQueries(e,t,n){const[r,i]=ws(e,t,n),a=Fs.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let o=Promise.all(a).then(ms);return null!=i&&i.throwOnError||(o=o.catch(ms)),o}fetchQuery(e,t,n){const r=vs(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(ms).catch(ms)}fetchInfiniteQuery(e,t,n){const r=vs(e,t,n);return r.behavior=el(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(ms).catch(ms)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>Ss(e)===Ss(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>Ps(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>Ss(e)===Ss(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>Ps(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=Es(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}
2function il(e){return e.state.isPaused}function al(e){return"success"===e.state.status}function ol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[],r=[];if(!1!==t.dehydrateMutations){const r=t.shouldDehydrateMutation||il;e.getMutationCache().getAll().forEach((e=>{r(e)&&n.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const n=t.shouldDehydrateQuery||al;e.getQueryCache().getAll().forEach((e=>{n(e)&&r.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:n,queries:r}}const sl=["added","removed","updated"];function ll(e){return sl.includes(e)}async function cl(e){let{queryClient:t,persister:n,buster:r="",dehydrateOptions:i}=e;const a={buster:r,timestamp:Date.now(),clientState:ol(t,i)};await n.persistClient(a)}function ul(e){let t,n=!1;const r=async function(e){let{queryClient:t,persister:n,maxAge:r=864e5,buster:i="",hydrateOptions:a}=e;try{const e=await n.restoreClient();if(e)if(e.timestamp){const o=Date.now()-e.timestamp>r,s=e.buster!==i;o||s?n.removeClient():function(e,t,n){if("object"!==typeof t||null===t)return;const r=e.getMutationCache(),i=e.getQueryCache(),a=t.mutations||[],o=t.queries||[];a.forEach((t=>{var i;r.build(e,{...null==n||null==(i=n.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)})),o.forEach((t=>{let{queryKey:r,state:a,queryHash:o}=t;var s;const l=i.get(o);if(l){if(l.state.dataUpdatedAt<a.dataUpdatedAt){const{fetchStatus:e,...t}=a;l.setState(t)}}else i.build(e,{...null==n||null==(s=n.defaultOptions)?void 0:s.queries,queryKey:r,queryHash:o},{...a,fetchStatus:"idle"})}))}(t,e.clientState,a)}else n.removeClient()}catch(o){n.removeClient()}}(e).then((()=>{n||(t=function(e){const t=e.queryClient.getQueryCache().subscribe((t=>{ll(t.type)&&cl(e)})),n=e.queryClient.getMutationCache().subscribe((t=>{ll(t.type)&&cl(e)}));return()=>{t(),n()}}(e))}));return[()=>{n=!0,null==t||t()},r]}var dl=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),this.name="ChainNotConfiguredForConnectorError"}},hl=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}};function fl(e){return"string"===typeof e?Number.parseInt(e,"0x"===e.trim().substring(0,2)?16:10):"bigint"===typeof e?Number(e):e}var pl=n(75438);function gl(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}const ml=gl({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),yl=gl({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://5.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0});var bl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},vl=(e,t,n)=>(bl(e,t,"read from private field"),n?n.call(e):t.get(e)),xl=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},wl=(e,t,n,r)=>(bl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),kl=(e,t,n)=>(bl(e,t,"access private method"),n),Al=class extends pl{constructor(e){let{chains:t=[ml,yl],options:n}=e;super(),this.chains=t,this.options=n}getBlockExplorerUrls(e){var t;const{default:n,...r}=null!==(t=e.blockExplorers)&&void 0!==t?t:{};if(n)return[n.url,...Object.values(r).map((e=>e.url))]}isChainUnsupported(e){return!this.chains.some((t=>
2t.id===e))}setStorage(e){this.storage=e}},El=n(94441),Sl=n(36026),Pl=n(79779);class Cl extends Sl.C{constructor(e,t){let{code:n,docsPath:r,metaMessages:i,name:a,shortMessage:o}=t;super(o,{cause:e,docsPath:r,metaMessages:i||(null===e||void 0===e?void 0:e.metaMessages),name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof Pl.J8?e.code:null!==n&&void 0!==n?n:-1}}class Ol extends Cl{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class Tl extends Cl{constructor(e){super(e,{code:Tl.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Tl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Nl extends Cl{constructor(e){super(e,{code:Nl.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Nl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class _l extends Cl{constructor(e){let{method:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{code:_l.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(_l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Il extends Cl{constructor(e){super(e,{code:Il.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(Il,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Rl extends Cl{constructor(e){super(e,{code:Rl.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Rl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Ml extends Cl{constructor(e){super(e,{code:Ml.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(Ml,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class jl extends Cl{constructor(e){super(e,{code:jl.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(jl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Ll extends Cl{constructor(e){super(e,{code:Ll.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Ll,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Bl extends Cl{constructor(e){super(e,{code:Bl.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Bl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Fl extends Cl{constructor(e){let{method:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{code:Fl.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(Fl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Dl extends Cl{constructor(e){super(e,{code:Dl.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Dl,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Ul extends Cl{constructor(e){super(e,{code:Ul.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Ul,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class zl extends Ol{constructor(e){super(e,{code:zl.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(zl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Wl extends Ol{constructor(e){super(e,{code:Wl.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Wl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Hl extends Ol{constructor(e){let{method:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{code:Hl.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(Hl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Vl extends Ol{constructor(e){super(e,{code:Vl.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Vl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Gl extends Ol{constructor(e){super(e,{code:Gl.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Gl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Yl extends Ol{constructor(e){super(e,{code:Yl.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Yl,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class ql extends Ol{constructor(e){super(e,{code:ql.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(ql,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Xl extends Ol{constructor(e){super(e,{code:Xl.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Xl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class $l extends Ol{constructor(e){super(e,{code:$l.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty($l,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Kl extends Ol{constructor(e){super(e,{code:Kl.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Kl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class Ql extends Ol{constructor(e){super(e,{code:Ql.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(Ql,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Jl extends Ol{constructor(e){super(e,{code:Jl.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Jl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
2);class Zl extends Ol{constructor(e){super(e,{code:Zl.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Zl,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class ec extends Cl{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}var tc=n(6169);let nc,rc=256;function ic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!nc||rc+e>512){nc="",rc=0;for(let e=0;e<256;e++)nc+=(256+256*Math.random()|0).toString(16).substring(1)}return nc.substring(rc,rc+++e)}function ac(e){var t;const{batch:n,cacheTime:r=(null!==(t=e.pollingInterval)&&void 0!==t?t:4e3),ccipRead:i,key:a="base",name:o="Base Client",pollingInterval:s=4e3,type:l="base"}=e,c=e.chain,u=e.account?(0,tc.J)(e.account):void 0,{config:d,request:h,value:f}=e.transport({chain:c,pollingInterval:s}),p={account:u,batch:n,cacheTime:r,ccipRead:i,chain:c,key:a,name:o,pollingInterval:s,request:h,transport:{...d,...f},type:l,uid:ic()};return Object.assign(p,{extend:function e(t){return n=>{const r=n(t);for(const e in p)delete r[e];const i={...t,...r};return Object.assign(i,{extend:e(i)})}}(p)})}var oc=n(53187);async function sc(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,oc.ME)(t)}var lc=n(97168);var cc=n(22626);class uc extends Sl.C{constructor(){let{docsPath:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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 Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class dc extends Sl.C{constructor(e){let{docsPath:t,metaMessages:n,type:r}=e;super(`Account type "${r}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}var hc=n(9186);var fc=n(7466),pc=n(4846);function gc(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw new Error("Invalid yParityOrV value")}async function mc(e){let{hash:t,signature:r}=e;return function(e){const t=(0,hc.S)(`0x${e.substring(4)}`).substring(26);return(0,El.o)(`0x${t}`)}(await async function(e){let{hash:t,signature:r}=e;const i=(0,fc.q)(t)?t:(0,lc.nj)(t),{secp256k1:a}=await Promise.resolve().then(n.bind(n,84259));return`0x${(()=>{if("object"===typeof r&&"r"in r&&"s"in r){const{r:e,s:t,v:n,yParity:i}=r,o=gc(Number(null!==i&&void 0!==i?i:n));return new a.Signature((0,oc.uU)(e),(0,oc.uU)(t)).addRecoveryBit(o)}const e=(0,fc.q)(r)?r:(0,lc.nj)(r);if(65!==(0,pc.E)(e))throw new Error("invalid signature length");const t=gc((0,oc.ME)(`0x${e.slice(130)}`));return a.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(t)})().recoverPublicKey(i.substring(2)).toHex(!1)}`}({hash:t,signature:r}))}var yc=n(82651),bc=n(32146),vc=n(32490);function xc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex";const n=wc(e),r=(0,vc.l)(new Uint8Array(n.length));return n.encode(r),"hex"===t?(0,lc.My)(r.bytes):r.bytes}function wc(e){return Array.isArray(e)?function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=kc(t);return{length:t<=55?1+t:1+n+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t));for(const{encode:t}of e)t(r)}}}(e.map((e=>wc(e)))):function(e){const t="string"===typeof e?(0,bc.aT)(e):e,n=kc(t.length),r=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length;return{length:r,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function kc(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new Sl.C("Length is too large.")}function Ac(e){var t;const{chainId:n,nonce:r,to:i}=e,a=null!==(t=e.contractAddress)&&void 0!==t?t:e.address,o=(0,hc.S)((0,yc.aP)(["0x05",xc([n?(0,lc.cK)(n):"0x",a,r?(0,lc.cK)(r):"0x"])]));return"bytes"===i?(0,bc.aT)(o):o}async function Ec(e){const{authorization:t,signature:n}=e;return mc({hash:Ac(t),signature:null!==n&&void 0!==n?n:t})}var Sc=n(67935);function Pc(e){let{chain:t,currentChainId:n}=e;if(!t)throw new Sc.jF;if(n!==t.id)throw new Sc.EH({chain:t,currentChainId:n})}var Cc=n(20288),Oc=n(85038),Tc=n(59788);function Nc(e,t){let{docsPath:n,...r}=t;const i=(()=>{const t=(0,Tc.l)(e,r);return t instanceof Cc.RM?e:t})();return new Oc.$s(i,{docsPath:n,...r})}var _c=n(11613),Ic=n(14807);function Rc(e,t,n){const r=e[t.name];if("function"===typeof r)return r;const i=e[n];return"function"===typeof i?i:n=>t(e,n)}var Mc=n(3023),jc=n(42918),Lc=n(70246);class Bc extends Sl.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Fc extends Sl.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Dc extends Sl.C{constructor(e){let{maxPriorityFeePerGas:t}=e;super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,Lc.Q)(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Uc extends Sl.C{constructor(e){let{blockHash:t,blockNumber:n}=e,r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}const zc={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Wc(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,oc.ME)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,oc.ME)(e.n
2once):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?zc[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)})))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"===typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}function Hc(e){var t;const n=(null!==(t=e.transactions)&&void 0!==t?t:[]).map((e=>"string"===typeof e?e:Wc(e)));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function Vc(e){var t;let{blockHash:n,blockNumber:r,blockTag:i,includeTransactions:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=null!==i&&void 0!==i?i:"latest",s=null!==a&&void 0!==a&&a,l=void 0!==r?(0,lc.cK)(r):void 0;let c=null;if(c=n?await e.request({method:"eth_getBlockByHash",params:[n,s]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[l||o,s]},{dedupe:Boolean(l)}),!c)throw new Uc({blockHash:n,blockNumber:r});return((null===(t=e.chain)||void 0===t||null===(t=t.formatters)||void 0===t||null===(t=t.block)||void 0===t?void 0:t.format)||Hc)(c)}async function Gc(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function Yc(e,t){const{block:n,chain:r=e.chain,request:i}=t||{};try{var a,o,s;const t=null!==(a=null===r||void 0===r||null===(o=r.fees)||void 0===o?void 0:o.maxPriorityFeePerGas)&&void 0!==a?a:null===r||void 0===r||null===(s=r.fees)||void 0===s?void 0:s.defaultPriorityFee;if("function"===typeof t){const r=n||await Rc(e,Vc,"getBlock")({}),a=await t({block:r,client:e,request:i});if(null===a)throw new Error;return a}if("undefined"!==typeof t)return t;const l=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,oc.uU)(l)}catch{const[t,r]=await Promise.all([n?Promise.resolve(n):Rc(e,Vc,"getBlock")({}),Rc(e,Gc,"getGasPrice")({})]);if("bigint"!==typeof t.baseFeePerGas)throw new Fc;const i=r-t.baseFeePerGas;return i<0n?0n:i}}async function qc(e,t){var n,r,i,a;const{block:o,chain:s=e.chain,request:l,type:c="eip1559"}=t||{},u=await(async(t,n,r)=>"function"===typeof(null===s||void 0===s||null===(t=s.fees)||void 0===t?void 0:t.baseFeeMultiplier)?s.fees.baseFeeMultiplier({block:o,client:e,request:l}):null!==(n=null===s||void 0===s||null===(r=s.fees)||void 0===r?void 0:r.baseFeeMultiplier)&&void 0!==n?n:1.2)();if(u<1)throw new Bc;const d=10**(null!==(n=null===(r=u.toString().split(".")[1])||void 0===r?void 0:r.length)&&void 0!==n?n:0),h=e=>e*BigInt(Math.ceil(u*d))/BigInt(d),f=o||await Rc(e,Vc,"getBlock")({});if("function"===typeof(null===s||void 0===s||null===(i=s.fees)||void 0===i?void 0:i.estimateFeesPerGas)){const t=await s.fees.estimateFeesPerGas({block:o,client:e,multiply:h,request:l,type:c});if(null!==t)return t}if("eip1559"===c){var p;if("bigint"!==typeof f.baseFeePerGas)throw new Fc;const t="bigint"===typeof(null===l||void 0===l?void 0:l.maxPriorityFeePerGas)?l.maxPriorityFeePerGas:await Yc(e,{block:f,chain:s,request:l}),n=h(f.baseFeePerGas);return{maxFeePerGas:null!==(p=null===l||void 0===l?void 0:l.maxFeePerGas)&&void 0!==p?p:n+t,maxPriorityFeePerGas:t}}return{gasPrice:null!==(a=null===l||void 0===l?void 0:l.gasPrice)&&void 0!==a?a:h(await Rc(e,Gc,"getGasPrice")({}))}}var Xc=n(7628);class $c extends Sl.C{constructor(e,t){var n;let{account:r,docsPath:i,chain:a,data:o,gas:s,gasPrice:l,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:h,value:f}=t;const p=(0,Oc.aO)({from:null===r||void 0===r?void 0:r.address,to:h,value:"undefined"!==typeof f&&`${(0,Xc.c)(f)} ${(null===a||void 0===a||null===(n=a.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:o,gas:s,gasPrice:"undefined"!==typeof l&&`${(0,Lc.Q)(l)} gwei`,maxFeePerGas:"undefined"!==typeof c&&`${(0,Lc.Q)(c)}
2 gwei`,maxPriorityFeePerGas:"undefined"!==typeof u&&`${(0,Lc.Q)(u)} gwei`,nonce:d});super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",p].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var Kc=n(95995);async function Qc(e,t){let{address:n,blockNumber:r,blockTag:i="latest"}=t;const a="bigint"===typeof r?(0,lc.cK)(r):void 0,o=await e.request({method:"eth_getBalance",params:[n,a||i]});return BigInt(o)}async function Jc(e,t){const{account:n=e.account}=t,r=n?(0,tc.J)(n):void 0;try{var i;const{accessList:o,authorizationList:s,blobs:l,blobVersionedHashes:c,blockNumber:u,blockTag:d,data:h,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:b,value:v,stateOverride:x,...w}=await fu(e,{...t,parameters:"local"===(null===r||void 0===r?void 0:r.type)?void 0:["blobVersionedHashes"]}),k=("bigint"===typeof u?(0,lc.cK)(u):void 0)||d,A=(0,Kc.yH)(x),E=await(async()=>w.to?w.to:s&&s.length>0?await Ec({authorization:s[0]}).catch((()=>{throw new Sl.C("`to` is required. Could not infer from `authorizationList`")})):void 0)();(0,jc.c)(t);const S=null===(i=e.chain)||void 0===i||null===(i=i.formatters)||void 0===i||null===(i=i.transactionRequest)||void 0===i?void 0:i.format,P=(S||Ic.Bv)({...(0,_c.o)(w,{format:S}),from:null===r||void 0===r?void 0:r.address,accessList:o,authorizationList:s,blobs:l,blobVersionedHashes:c,data:h,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:b,to:E,value:v});function C(t){const{block:n,request:r,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[r,null!==n&&void 0!==n?n:"latest",i]:n?[r,n]:[r]})}
2let O=BigInt(await C({block:k,request:P,rpcStateOverride:A}));if(s){const T=await Qc(e,{address:P.from}),N=await Promise.all(s.map((async e=>{const{address:t}=e,n=await C({block:k,request:{authorizationList:void 0,data:h,from:null===r||void 0===r?void 0:r.address,to:t,value:(0,lc.cK)(T)},rpcStateOverride:A}).catch((()=>100000n));return 2n*BigInt(n)})));O+=N.reduce(((e,t)=>e+t),0n)}return O}catch(a){throw function(e,t){let{docsPath:n,...r}=t;const i=(()=>{const t=(0,Tc.l)(e,r);return t instanceof Cc.RM?e:t})();return new $c(i,{docsPath:n,...r})}(a,{...t,account:r,chain:e.chain})}}async function Zc(e,t){let{address:n,blockTag:r="latest",blockNumber:i}=t;const a=await e.request({method:"eth_getTransactionCount",params:[n,"bigint"===typeof i?(0,lc.cK)(i):r]},{dedupe:Boolean(i)});return(0,oc.ME)(a)}function eu(e){var t;const{kzg:n}=e,r=null!==(t=e.to)&&void 0!==t?t:"string"===typeof e.blobs[0]?"hex":"bytes",i="string"===typeof e.blobs[0]?e.blobs.map((e=>(0,bc.aT)(e))):e.blobs,a=[];for(const o of i)a.push(Uint8Array.from(n.blobToKzgCommitment(o)));return"bytes"===r?a:a.map((e=>(0,lc.My)(e)))}function tu(e){var t;const{kzg:n}=e,r=null!==(t=e.to)&&void 0!==t?t:"string"===typeof e.blobs[0]?"hex":"bytes",i="string"===typeof e.blobs[0]?e.blobs.map((e=>(0,bc.aT)(e))):e.blobs,a="string"===typeof e.commitments[0]?e.commitments.map((e=>(0,bc.aT)(e))):e.commitments,o=[];for(let s=0;s<i.length;s++){const e=i[s],t=a[s];o.push(Uint8Array.from(n.computeBlobKzgProof(e,t)))}return"bytes"===r?o:o.map((e=>(0,lc.My)(e)))}var nu=n(17201);function ru(e){var t;const{commitment:n,version:r=1}=e,i=null!==(t=e.to)&&void 0!==t?t:"string"===typeof n?"hex":"bytes",a=function(e,t){const n=t||"hex",r=(0,nu.sc)((0,fc.q)(e,{strict:!1})?(0,bc.ZJ)(e):e);return"bytes"===n?r:(0,lc.nj)(r)}(n,"bytes");return a.set([r],0),"bytes"===i?a:(0,lc.My)(a)}const iu=32,au=4096,ou=iu*au,su=6*ou-1-1*au*6;class lu extends Sl.C{constructor(e){let{maxSize:t,size:n}=e;super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class cu extends Sl.C{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}Sl.C;Sl.C;function uu(e){var t,n,r;const{data:i,kzg:a,to:o}=e,s=null!==(t=e.blobs)&&void 0!==t?t:function(e){var t;const n=null!==(t=e.to)&&void 0!==t?t:"string"===typeof e.data?"hex":"bytes",r="string"===typeof e.data?(0,bc.aT)(e.data):e.data,i=(0,pc.E)(r);if(!i)throw new cu;if(i>su)throw new lu({maxSize:su,size:i});const a=[];let o=!0,s=0;for(;o;){const e=(0,vc.l)(new Uint8Array(ou));let t=0;for(;t<au;){const n=r.slice(s,s+(iu-1));if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),o=!1;break}t++,s+=31}a.push(e)}return"bytes"===n?a.map((e=>e.bytes)):a.map((e=>(0,lc.My)(e.bytes)))}({data:i,to:o}),l=null!==(n=e.commitments)&&void 0!==n?n:eu({blobs:s,kzg:a,to:o}),c=null!==(r=e.proofs)&&void 0!==r?r:tu({blobs:s,commitments:l,kzg:a,to:o}),u=[];for(let d=0;d<s.length;d++)u.push({blob:s[d],commitment:l[d],proof:c[d]});return u}const du=["blobVersionedHashes","chainId","fees","gas","nonce","type"],hu=new Map;async function fu(e,t){const{account:n=e.account,blobs:r,chain:i,gas:a,kzg:o,nonce:s,nonceManager:l,parameters:c=du,type:u}=t,d=n?(0,tc.J)(n):n,h={...t,...d?{from:null===d||void 0===d?void 0:d.address}:{}};let f,p;async function g(){return f||(f=await Rc(e,Vc,"getBlock")({blockTag:"latest"}),f)}async function m(){if(p)return p;if(i)return i.id;if("undefined"!==typeof t.chainId)return t.chainId;const n=await Rc(e,sc,"getChainId")({});return p=n,p}if(c.includes("nonce")&&"undefined"===typeof s&&d)if(l){const t=await m();h.nonce=await l.consume({address:d.address,chainId:t,client:e})}else h.nonce=await Rc(e,Zc,"getTransactionCount")({address:d.address,blockTag:"pending"});if((c.includes("blobVersionedHashes")||c.includes("sidecars"))&&r&&o){const e=eu({blobs:r,kzg:o});if(c.includes("blobVersionedHashes")){const t=function(e){var t;const{commitments:n,version:r}=e,i=null!==(t=e.to)&&void 0!==t?t:"string"===typeof n[0]?"hex":"bytes",a=[];for(const o of n)a.push(ru({commitment:o,to:i,version:r}));return a}({commitments:e,to:"hex"});h.blobVersionedHashes=t}if(c.includes("sidecars")){const t=uu({blobs:r,commitments:e,proofs:tu({blobs:r,commitments:e,kzg:o}),to:"hex"});h.sidecars=t}}if(c.includes("chainId")&&(h.chainId=await m()),(c.includes("fees")||c.includes("type"))&&"undefined"===typeof u)try{h.type=function(e){if(e.type)return e.type;if("undefined"!==typeof e.authorizationList)return"eip7702";if("undefined"!==typeof e.blobs||"undefined"!==typeof e.blobVersionedHashes||"undefined"!==typeof e.maxFeePerBlobGas||"undefined"!==typeof e.sidecars)return"eip4844";if("undefined"!==typeof e.maxFeePerGas||"undefined"!==typeof e.maxPriorityFeePerGas)return"eip1559";if("undefined"!==typeof e.gasPrice)return"undefined"!==typeof e.accessList?"eip2930":"legacy";throw new Oc.Vg({transaction:e})}(h)}catch{let t=hu.get(e.uid);if("undefined"===typeof t){const n=await g();t="bigint"===typeof(null===n||void 0===n?void 0:n.baseFeePerGas),hu.set(e.uid,t)}h.type=t?"eip1559":"legacy"}if(c.includes("fees"))if("legacy"!==h.type&&"eip2930"!==h.type){if("undefined"===typeof h.maxFeePerGas||"undefined"===typeof h.maxPriorityFeePerGas){const n=await g(),{maxFeePerGas:r,maxPriorityFeePerGas:a}=await qc(e,{block:n,chain:i,request:h});if("undefined"===typeof t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<a)throw new Dc({maxPriorityFeePerGas:a});h.maxPriorityFeePerGas=a,h.maxFeePerGas=r}}else{if("undefined"!==typeof t.maxFeePerGas||"undefined"!==typeof t.maxPriorityFeePerGas)throw new Fc;if("undefined"===typeof t.gasPrice){const t=await g(),{gasPrice:n}=await qc(e,{block:t,chain:i,request:h,type:"legacy"});h.gasPrice=n}}return c.includes("gas")&&"undefined"===typeof a&&(h.gas=await Rc(e,Jc,"estimateGas")({...h,account:d?{address:d.address,type:"json-rpc"}:d})),(0,jc.c)(h),delete h.parameters,h}async function pu(e,t){let{serializedTransaction:n}=t;return e.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}const gu=new Mc.A(128);async function mu(e,t){const{account:n=e.account,chain:r=e.chain,accessList:i,authorizationList:a,blobs:o,data:s,gas:l,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:f,type:p,value:g,...m}=t;if("undefined"===typeof n)throw new uc({docsPath:"/docs/actions/wallet/sendTransaction"});const y=n?(0,tc.J)(n):null;try{(0,jc.c)(t);const n=await(async()=>t.to?t.to:null!==t.to&&a&&a.length>0?await Ec({authorization:a[0]}).catch((()=>{throw new Sl.C("`to` is required. Could not infer from `authorizationList`.")})):void 0)();if("json-rpc"===(null===y||void 0===y?void 0:y.type)||null===y){var b;let t;null!==r&&(t=await Rc(e,sc,"getChainId")({}),Pc({currentChainId:t,chain:r}));const v=null===(b=e.chain)||void 0===b||null===(b=b.formatters)||void 0===b||null===(b=b.transactionRequest)||void 0===b?void 0:b.format,w=(v||Ic.Bv)({...(0,_c.o)(m,{format:v}),accessList:i,authorizationList:a,blobs:o,chainId:t,data:s,from:null===y||void 0===y?void 0:y.address,gas:l,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:f,to:n,type:p,value:g}),k=gu.get(e.uid),A=k?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:A,params:[w]},{retryCount:0})}
2catch(x){if(!1===k)throw x;const t=x;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[w]},{retryCount:0}).then((t=>(gu.set(e.uid,!0),t))).catch((n=>{const r=n;if("MethodNotFoundRpcError"===r.name||"MethodNotSupportedRpcError"===r.name)throw gu.set(e.uid,!1),t;throw r}));throw t}}if("local"===(null===y||void 0===y?void 0:y.type)){var v;const t=await Rc(e,fu,"prepareTransactionRequest")({account:y,accessList:i,authorizationList:a,blobs:o,chain:r,data:s,gas:l,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:f,nonceManager:y.nonceManager,parameters:[...du,"sidecars"],type:p,value:g,...m,to:n}),b=null===r||void 0===r||null===(v=r.serializers)||void 0===v?void 0:v.transaction,x=await y.signTransaction(t,{serializer:b});return await Rc(e,pu,"sendRawTransaction")({serializedTransaction:x})}if("smart"===(null===y||void 0===y?void 0:y.type))throw new dc({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new dc({docsPath:"/docs/actions/wallet/sendTransaction",type:null===y||void 0===y?void 0:y.type})}catch(w){if(w instanceof dc)throw w;throw Nc(w,{...t,account:y,chain:t.chain||void 0})}}function yu(e){let{args:t,eventName:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const bu={"0x0":"reverted","0x1":"success"};function vu(e){const t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((e=>yu(e))):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,oc.ME)(e.transactionIndex):null,status:e.status?bu[e.status]:null,type:e.type?zc[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}async function xu(e,t){var n;const{atomic:r=!1,chainId:i,receipts:a,version:o="2.0.0",...s}=await e.request({method:"wallet_getCallsStatus",params:[t.id]}),[l,c]=(()=>{const e=s.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:"CONFIRMED"===e?["success",200]:"PENDING"===e?["pending",100]:[void 0,e]})();return{...s,atomic:r,chainId:i?(0,oc.ME)(i):void 0,receipts:null!==(n=null===a||void 0===a?void 0:a.map((e=>({...e,blockNumber:(0,oc.uU)(e.blockNumber),gasUsed:(0,oc.uU)(e.gasUsed),status:bu[e.status]}))))&&void 0!==n?n:[],statusCode:c,status:l,version:o}}var wu=n(87197);async function ku(e,t){var n,r,i;const{account:a=e.account,chainId:o,nonce:s}=t;if(!a)throw new uc({docsPath:"/docs/eip7702/prepareAuthorization"});const l=(0,tc.J)(a),c=(()=>{if(t.executor)return"self"===t.executor?t.executor:(0,tc.J)(t.executor)})(),u={address:null!==(n=t.contractAddress)&&void 0!==n?n:t.address,chainId:o,nonce:s};return"undefined"===typeof u.chainId&&(u.chainId=null!==(r=null===(i=e.chain)||void 0===i?void 0:i.id)&&void 0!==r?r:await Rc(e,sc,"getChainId")({})),"undefined"===typeof u.nonce&&(u.nonce=await Rc(e,Zc,"getTransactionCount")({address:l.address,blockTag:"pending"}),("self"===c||null!==c&&void 0!==c&&c.address&&(0,wu.h)(c.address,l.address))&&(u.nonce+=1)),u}var Au=n(46671);function Eu(e){const t=null!==e&&void 0!==e&&e.paymasterService?Object.entries(e.paymasterService).reduce(((e,t)=>{let[n,r]=t;return{...null!==e&&void 0!==e?e:{},[(0,lc.cK)(Number(n))]:r}}),{}):void 0;return{...e,...t?{paymasterService:t}:{}}}var Su=n(89676),Pu=n(58418),Cu=n(83855);class Ou extends Sl.C{constructor(e){let{domain:t}=e;super(`Invalid domain "${(0,Cu.A)(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class Tu extends Sl.C{constructor(e){let{primaryType:t,types:n}=e;super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(n))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class Nu extends Sl.C{constructor(e){let{type:t}=e;super(`Struct type "${t}
2" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var _u=n(78753),Iu=n(20757);function Ru(e){const{domain:t,message:n,primaryType:r,types:i}=e,a=(e,t)=>{for(const n of e){const{name:e,type:r}=n,o=t[e],s=r.match(Iu.Ge);if(s&&("number"===typeof o||"bigint"===typeof o)){const[e,t,n]=s;(0,lc.cK)(o,{signed:"int"===t,size:Number.parseInt(n)/8})}if("address"===r&&"string"===typeof o&&!(0,_u.P)(o))throw new Pu.M({address:o});const l=r.match(Iu.BD);if(l){const[e,t]=l;if(t&&(0,pc.E)(o)!==Number.parseInt(t))throw new Su.BI({expectedSize:Number.parseInt(t),givenSize:(0,pc.E)(o)})}const c=i[r];c&&(ju(r),a(c,o))}};if(i.EIP712Domain&&t){if("object"!==typeof t)throw new Ou({domain:t});a(i.EIP712Domain,t)}if("EIP712Domain"!==r){if(!i[r])throw new Tu({primaryType:r,types:i});a(i[r],n)}}function Mu(e){let{domain:t}=e;return["string"===typeof(null===t||void 0===t?void 0:t.name)&&{name:"name",type:"string"},(null===t||void 0===t?void 0:t.version)&&{name:"version",type:"string"},("number"===typeof(null===t||void 0===t?void 0:t.chainId)||"bigint"===typeof(null===t||void 0===t?void 0:t.chainId))&&{name:"chainId",type:"uint256"},(null===t||void 0===t?void 0:t.verifyingContract)&&{name:"verifyingContract",type:"address"},(null===t||void 0===t?void 0:t.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function ju(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new Nu({type:e})}async function Lu(e,t){const{account:n=e.account,domain:r,message:i,primaryType:a}=t;if(!n)throw new uc({docsPath:"/docs/actions/wallet/signTypedData"});const o=(0,tc.J)(n),s={EIP712Domain:Mu({domain:r}),...t.types};if(Ru({domain:r,message:i,primaryType:a,types:s}),o.signTypedData)return o.signTypedData({domain:r,message:i,primaryType:a,types:s});const l=function(e){const{domain:t,message:n,primaryType:r,types:i}=e,a=(e,t)=>{const n={...t};for(const r of e){const{name:e,type:t}=r;"address"===t&&(n[e]=n[e].toLowerCase())}return n},o=i.EIP712Domain&&t?a(i.EIP712Domain,t):{},s=(()=>{if("EIP712Domain"!==r)return a(i[r],n)})();return(0,Cu.A)({domain:o,message:s,primaryType:r,types:i})}({domain:r,message:i,primaryType:a,types:s});return e.request({method:"eth_signTypedData_v4",params:[o.address,l]},{retryCount:0})}const Bu=new Map,Fu=new Map;let Du=0;function Uu(e,t,n){const r=++Du,i=()=>Bu.get(e)||[],a=()=>{const t=i();if(!t.some((e=>e.id===r)))return;const n=Fu.get(e);1===t.length&&n&&n(),(()=>{const t=i();Bu.set(e,t.filter((e=>e.id!==r)))})()},o=i();if(Bu.set(e,[...o,{id:r,fns:t}]),o&&o.length>0)return a;const s={};for(const c in t)s[c]=function(){const e=i();if(0!==e.length){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const t of e){var a,o;null===(a=(o=t.fns)[c])||void 0===a||a.call(o,...n)}}};const l=n(s);return"function"===typeof l&&Fu.set(e,l),a}async function zu(e){return new Promise((t=>setTimeout(t,e)))}function Wu(e,t){let{emitOnBegin:n,initialWaitTime:r,interval:i}=t,a=!0;const o=()=>a=!1;return(async()=>{var t;let s;n&&(s=await e({unpoll:o}));const l=null!==(t=await(null===r||void 0===r?void 0:r(s)))&&void 0!==t?t:i;await zu(l);const c=async()=>{a&&(await e({unpoll:o}),await zu(i),c())};c()})(),o}var Hu=n(34547);class Vu extends Sl.C{constructor(e){let{id:t}=e;super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}var Gu=n(78802);const Yu=3;function qu(e,t){let{abi:n,address:r,args:i,docsPath:a,functionName:o,sender:s}=t;const l=e instanceof Gu.$S?e:e instanceof Sl.C?e.walk((e=>"data"in e))||e.walk():{},{code:c,data:u,details:d,message:h,shortMessage:f}=l,p=e instanceof Su.O?new Gu.rR({functionName:o}):[Yu,Rl.code].includes(c)&&(u||d||h||f)?new Gu.M({abi:n,data:"object"===typeof u?u.data:u,functionName:o,message:l instanceof Pl.J8?d:null!==f&&void 0!==f?f:h}):e;return new Gu.bG(p,{abi:n,args:i,contractAddress:r,docsPath:a,functionName:o,sender:s})}function Xu(e){return{addChain:t=>async function(e,t){let{chain:n}=t;const{id:r,name:i,nativeCurrency:a,rpcUrls:o,blockExplorers:s}=n;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,lc.cK)(r),chainName:i,nativeCurrency:a,rpcUrls:o.default.http,blockExplorerUrls:s?Object.values(s).map((e=>{let{url:t}=e;return t})):void 0}]},{dedupe:!0,retryCount:0})}(e,t),deployContract:t=>function(e,t){const{abi:n,args:r,bytecode:i,...a}=t,o=(0,cc.m)({abi:n,args:r,bytecode:i}
2);return mu(e,{...a,...a.authorizationList?{to:null}:{},data:o})}(e,t),getAddresses:()=>async function(e){var t;return"local"===(null===(t=e.account)||void 0===t?void 0:t.type)?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map((e=>(0,El.o)(e)))}(e),getCallsStatus:t=>xu(e,t),getCapabilities:t=>async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{account:n=e.account,chainId:r}=t,i=n?(0,tc.J)(n):void 0,a=r?[null===i||void 0===i?void 0:i.address,[(0,lc.cK)(r)]]:[null===i||void 0===i?void 0:i.address],o=await e.request({method:"wallet_getCapabilities",params:a}),s={};for(const[l,c]of Object.entries(o)){s[Number(l)]={};for(let[e,t]of Object.entries(c))"addSubAccount"===e&&(e="unstable_addSubAccount"),s[Number(l)][e]=t}return"number"===typeof r?s[r]:s}(e,t),getChainId:()=>sc(e),getPermissions:()=>async function(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}(e),prepareAuthorization:t=>ku(e,t),prepareTransactionRequest:t=>fu(e,t),requestAddresses:()=>async function(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map((e=>(0,El.b)(e)))}(e),requestPermissions:t=>async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}(e,t),sendCalls:t=>async function(e,t){const{account:n=e.account,chain:r=e.chain,forceAtomic:i=!1,id:a,version:o="2.0.0"}=t;if("undefined"===typeof n)throw new uc({docsPath:"/docs/actions/wallet/sendCalls"});const s=n?(0,tc.J)(n):null,l=t.calls.map((e=>{const t=e;return{data:t.abi?(0,Au.p)({abi:t.abi,functionName:t.functionName,args:t.args}):t.data,to:t.to,value:t.value?(0,lc.cK)(t.value):void 0}}));try{const n=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:i,calls:l,capabilities:Eu(t.capabilities),chainId:(0,lc.cK)(r.id),from:null===s||void 0===s?void 0:s.address,id:a,version:o}]},{retryCount:0});return"string"===typeof n?{id:n}:n}catch(c){throw Nc(c,{...t,account:s,chain:t.chain})}}(e,t),sendRawTransaction:t=>pu(e,t),sendTransaction:t=>mu(e,t),showCallsStatus:t=>async function(e,t){const{id:n}=t;await e.request({method:"wallet_showCallsStatus",params:[n]})}(e,t),signAuthorization:t=>async function(e,t){const{account:n=e.account}=t;if(!n)throw new uc({docsPath:"/docs/eip7702/signAuthorization"});const r=(0,tc.J)(n);if(!r.signAuthorization)throw new dc({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:r.type});const i=await ku(e,t);return r.signAuthorization(i)}(e,t),signMessage:t=>async function(e,t){let{account:n=e.account,message:r}=t;if(!n)throw new uc({docsPath:"/docs/actions/wallet/signMessage"});const i=(0,tc.J)(n);if(i.signMessage)return i.signMessage({message:r});const a="string"===typeof r?(0,lc.i3)(r):r.raw instanceof Uint8Array?(0,lc.nj)(r.raw):r.raw;return e.request({method:"personal_sign",params:[a,i.address]},{retryCount:0})}(e,t),signTransaction:t=>async function(e,t){var n,r,i;const{account:a=e.account,chain:o=e.chain,...s}=t;if(!a)throw new uc({docsPath:"/docs/actions/wallet/signTransaction"});const l=(0,tc.J)(a);(0,jc.c)({account:l,...t});const c=await Rc(e,sc,"getChainId")({});null!==o&&Pc({currentChainId:c,chain:o});const u=(null===o||void 0===o?void 0:o.formatters)||(null===(n=e.chain)||void 0===n?void 0:n.formatters),d=(null===u||void 0===u||null===(r=u.transactionRequest)||void 0===r?void 0:r.format)||Ic.Bv;return l.signTransaction?l.signTransaction({...s,chainId:c},{serializer:null===(i=e.chain)||void 0===i||null===(i=i.serializers)||void 0===i?void 0:i.transaction}):await e.request({method:"eth_signTransaction",params:[{...d(s),chainId:(0,lc.cK)(c),from:l.address}]},{retryCount:0})}(e,t),signTypedData:t=>Lu(e,t),switchChain:t=>async function(e,t){let{id:n}=t;await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,lc.cK)(n)}]},{retryCount:0})}(e,t),waitForCallsStatus:t=>async function(e,t){const{id:n,pollingInterval:r=e.pollingInterval,status:i=e=>{let{statusCode:t}=e;return t>=200},timeout:a=6e4}=t,o=(0,Cu.A)(["waitForCallsStatus",e.uid,n]),{promise:s,resolve:l,reject:c}=(0,Hu.Y)();let u;const d=Uu(o,{resolve:l,reject:c},(t=>{const a=Wu((async()=>{const r=e=>{clearTimeout(u),a(),e(),d()};try{const a=await xu(e,{id:n});if(!i(a))return;r((()=>t.resolve(a)))}catch(o){r((()=>t.reject(o)))}}),{interval:r,emitOnBegin:!0});return a}));return u=a?setTimeout((()=>{d(),clearTimeout(u),c(new Vu({id:n}))}),a):void 0,await s}(e,t),watchAsset:t=>async function(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}(e,t),writeContract:t=>async function(e,t){const{abi:n,account:r=e.account,address:i,args:a,dataSuffix:o,functionName:s,...l}=t;if("undefined"===typeof r)throw new uc({docsPath:"/docs/contract/writeContract"});const c=r?(0,tc.J)(r):null,u=(0,Au.p)({abi:n,args:a,functionName:s});try{return await Rc(e,mu,"sendTransaction")({data:`${u}${o?o.replace("0x",""):""}`,to:i,account:c,...l})}catch(d){throw qu(d,{abi:n,address:i,args:a,docsPath:"/docs/contract/writeContract",functionName:s,sender:null===c||void 0===c?void 0:c.address})}}(e,t)}}function $u(e){const{key:t="wallet",name:n="Wallet Client",transport:r}=e;return ac({...e,key:t,name:n,transport:r,type:"walletClient"}).extend(Xu)}const Ku=new Mc.A(8192);function Qu(e){let{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,a)=>{const o=async function(){let{count:s=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await e();i(t)}catch(l){if(s<n&&await r({count:s,error:l}))return(async e=>{let{error:n}=e;const r="function"===typeof t?t({count:s,error:n}):t;r&&await zu(r),o({count:s+1})})({error:l});a(l)}};o()}))}function Ju(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(n){var r;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dedupe:a=!1,methods:o,retryDelay:s=150,retryCount:l=3,uid:c}={...t,...i},{method:u}=n;if(null!==o&&void 0!==o&&null!==(r=o.exclude)&&void 0!==r&&r.includes(u))throw new Fl(new Error("method not supported"),{method:u});if(null!==o&&void 0!==o&&o.include&&!o.include.includes(u))throw new Fl(new Error("method not supported"),{method:u});return function(e,t){let{enabled:n=!0,id:r}=t;if(!n||!r)return e();if(Ku.get(r))return Ku.get(r);const i=e().finally((()=>Ku.delete(r)));return Ku.set(r,i),i}((()=>Qu((async()=>{try{return await e(n)}catch(t){const e=t;switch(e.code){case Tl.code:throw new Tl(e);case Nl.code:throw new Nl(e);case _l.code:throw new _l(e,{method:n.method});case Il.code:throw new Il(e);case Rl.code:throw new Rl(e);case Ml.code:throw new Ml(e);case jl.code:throw new jl(e);case Ll.code:throw new Ll(e);case Bl.code:throw new Bl(e);case Fl.code:throw new Fl(e,{method:n.method});case Dl.code:throw new Dl(e);case Ul.code:throw new Ul(e);case zl.code:throw new zl(e);case Wl.code:throw new Wl(e);case Hl.code:throw new Hl(e);case Vl.code:throw new Vl(e);case Gl.code:throw new Gl(e);case Yl.code:throw new Yl(e);case ql.code:throw new ql(e);case Xl.code:throw new Xl(e);case $l.code:throw new $l(e);case Kl.code:throw new Kl(e);case Ql.code:throw new Ql(e);case Jl.code:throw new Jl(e);case Zl.code:throw new Zl(e);case 5e3:throw new zl(e);default:if(t instanceof Sl.C)throw t;
2throw new ec(e)}}}),{delay:e=>{let{count:t,error:n}=e;if(n&&n instanceof Pl.Ci){var r;const e=null===n||void 0===n||null===(r=n.headers)||void 0===r?void 0:r.get("Retry-After");if(null!==e&&void 0!==e&&e.match(/\d/))return 1e3*Number.parseInt(e)}return(1<<t)*s},retryCount:l,shouldRetry:e=>{let{error:t}=e;return function(e){if("code"in e&&"number"===typeof e.code)return-1===e.code||(e.code===Dl.code||e.code===Rl.code);if(e instanceof Pl.Ci&&e.status)return 403===e.status||(408===e.status||(413===e.status||(429===e.status||(500===e.status||(502===e.status||(503===e.status||504===e.status))))));return!0}(t)}})),{enabled:a,id:a?(0,lc.i3)(`${c}.${(0,Cu.A)(n)}`):void 0})}}function Zu(e,t){let{key:n,methods:r,name:i,request:a,retryCount:o=3,retryDelay:s=150,timeout:l,type:c}=e;return{config:{key:n,methods:r,name:i,request:a,retryCount:o,retryDelay:s,timeout:l,type:c},request:Ju(a,{methods:r,retryCount:o,retryDelay:s,uid:ic()}),value:t}}function ed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:a}=t;return o=>{var s;let{retryCount:l}=o;return Zu({key:n,methods:r,name:i,request:e.request.bind(e),retryCount:null!==(s=t.retryCount)&&void 0!==s?s:l,retryDelay:a,type:"custom"})}}var td,nd=class extends Al{constructor(){let{chains:e,options:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
2const n={shimDisconnect:!0,getProvider(){if("undefined"===typeof window)return;const e=window.ethereum;return null!==e&&void 0!==e&&e.providers&&e.providers.length>0?e.providers[0]:e},...t};super({chains:e,options:n}),this.id="injected",xl(this,td,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,El.b)(e[0])})},this.onChainChanged=e=>{const t=fl(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=async e=>{var t;if(1013===e.code){if(await this.getProvider()){if(await this.getAccount())return}}this.emit("disconnect"),this.options.shimDisconnect&&(null===(t=this.storage)||void 0===t||t.removeItem(this.shimDisconnectKey))};const r=n.getProvider();if("string"===typeof n.name)this.name=n.name;else if(r){const e=function(e){var t,n;if(!e)return"Injected";const r=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOktoWallet?"Okto Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0;if(null!==(t=e.providers)&&void 0!==t&&t.length){var i;const t=new Set;let n=1;for(const i of e.providers){let e=r(i);e||(e=`Unknown Wallet #${n}`,n+=1),t.add(e)}const a=[...t];return a.length?a:null!==(i=a[0])&&void 0!==i?i:"Injected"}return null!==(n=r(e))&&void 0!==n?n:"Injected"}(r);n.name?this.name=n.name(e):this.name="string"===typeof e?e:e[0]}else this.name="Injected";this.ready=!!r}async connect(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t;const n=await this.getProvider();if(!n)throw new hl;n.on&&(n.on("accountsChanged",this.onAccountsChanged),n.on("chainChanged",this.onChainChanged),n.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const r=await n.request({method:"eth_requestAccounts"}),i=(0,El.b)(r[0]);let a=await this.getChainId(),o=this.isChainUnsupported(a);if(e&&a!==e){a=(await this.switchChain(e)).id,o=this.isChainUnsupported(a)}return this.options.shimDisconnect&&(null===(t=this.storage)||void 0===t||t.setItem(this.shimDisconnectKey,!0)),{account:i,chain:{id:a,unsupported:o}}}catch(n){if(this.isUserRejectedRequestError(n))throw new zl(n);if(-32002===n.code)throw new Ll(n);throw n}}async disconnect(){var e;const t=await this.getProvider();null!==t&&void 0!==t&&t.removeListener&&(t.removeListener("accountsChanged",this.onAccountsChanged),t.removeListener("chainChanged",this.onChainChanged),t.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&(null===(e=this.storage)||void 0===e||e.removeItem(this.shimDisconnectKey)))}async getAccount(){const e=await this.getProvider();if(!e)throw new hl;const t=await e.request({method:"eth_accounts"});return(0,El.b)(t[0])}async getChainId(){const e=await this.getProvider();if(!e)throw new hl;return e.request({method:"eth_chainId"}).then(fl)}async getProvider(){const e=this.options.getProvider();return e&&wl(this,td,e),vl(this,td)}async getWalletClient(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find((t=>t.id===e));if(!t)throw new Error("provider is required.");return $u({account:n,chain:r,transport:ed(t)})}async isAuthorized(){try{var e;if(this.options.shimDisconnect&&(null===(e=this.storage)||void 0===e||!e.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new hl;return!!await this.getAccount()}catch{return!1}}async switchChain(e){const t=await this.getProvider();if(!t)throw new hl;const n=(0,lc.cK)(e);try{var r;return await Promise.all([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise((t=>this.on("change",(n=>{let{chain:r}=n;(null===r||void 0===r?void 0:r.id)===e&&t()}))))]),null!==(r=this.chains.find((t=>t.id===e)))&&void 0!==r?r:{id:e,name:`Chain ${n}`,network:`${n}
2`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(s){var i;const r=this.chains.find((t=>t.id===e));if(!r)throw new dl({chainId:e,connectorId:this.id});if(4902===s.code||4902===(null===s||void 0===s||null===(i=s.data)||void 0===i||null===(i=i.originalError)||void 0===i?void 0:i.code))try{var a,o;await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:r.name,nativeCurrency:r.nativeCurrency,rpcUrls:[null!==(a=null===(o=r.rpcUrls.public)||void 0===o?void 0:o.http[0])&&void 0!==a?a:""],blockExplorerUrls:this.getBlockExplorerUrls(r)}]});if(await this.getChainId()!==e)throw new zl(new Error("User rejected switch after adding network."));return r}catch(l){throw new zl(l)}if(this.isUserRejectedRequestError(s))throw new zl(s);throw new Yl(s)}}async watchAsset(e){let{address:t,decimals:n=18,image:r,symbol:i}=e;const a=await this.getProvider();if(!a)throw new hl;return a.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:r,symbol:i}}})}isUserRejectedRequestError(e){return 4001===e.code}};td=new WeakMap;var rd=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},id=(e,t,n)=>(rd(e,t,"read from private field"),n?n.call(e):t.get(e)),ad=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},od=(e,t,n,r)=>(rd(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),sd=n(59863),ld=n(55628),cd=n(60049),ud=n(53415),dd=n(71125);function hd(e,t){var n,r,i,a,o,s;if(!(e instanceof Sl.C))return!1;const l=e.walk((e=>e instanceof Gu.M));return l instanceof Gu.M&&("ResolverNotFound"===(null===(n=l.data)||void 0===n?void 0:n.errorName)||("ResolverWildcardNotSupported"===(null===(r=l.data)||void 0===r?void 0:r.errorName)||("ResolverNotContract"===(null===(i=l.data)||void 0===i?void 0:i.errorName)||("ResolverError"===(null===(a=l.data)||void 0===a?void 0:a.errorName)||("HttpError"===(null===(o=l.data)||void 0===o?void 0:o.errorName)||(!(null===(s=l.reason)||void 0===s||!s.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&l.reason===dd.fD[50]))))))}var fd=n(44493);function pd(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,fc.q)(t)?t:null}function gd(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,lc.My)(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const e=pd(n[r]),i=e?(0,bc.ZJ)(e):(0,hc.S)((0,bc.Af)(n[r]),"bytes");t=(0,hc.S)((0,yc.xW)([t,i]),"bytes")}return(0,lc.My)(t)}function md(e){return`[${e.slice(2)}]`}function yd(e){const t=new Uint8Array(32).fill(0);return e?pd(e)||(0,hc.S)((0,bc.Af)(e)):(0,lc.My)(t)}function bd(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const n=new Uint8Array((0,bc.Af)(t).byteLength+2);let r=0;const i=t.split(".");for(let a=0;a<i.length;a++){let e=(0,bc.Af)(i[a]);e.byteLength>255&&(e=(0,bc.Af)(md(yd(i[a])))),n[r]=e.length,n.set(e,r+1),r+=e.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}var vd=n(59363);async function xd(e,t){const{abi:n,address:r,args:i,functionName:a,...o}=t,s=(0,Au.p)({abi:n,args:i,functionName:a});try{const{data:t}=await Rc(e,vd.T,"call")({...o,data:s,to:r});return(0,ld.e)({abi:n,args:i,functionName:a,data:t||"0x"})}catch(l){throw qu(l,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:a})}}var wd=n(36140);class kd extends Sl.C{constructor(e){let{data:t}=e;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(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Ad extends Sl.C{constructor(e){let{reason:t}=e;super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Ed extends Sl.C{constructor(e){let{uri:t}=e;super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class Sd extends Sl.C{constructor(e){let{namespace:t}=e;super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const Pd=(0,wd.A)(/(https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(\/)?(ipfs\/|ipns\/)?([\w\-.]+)(\/.*)?/,{protocol:1,root:2,subpath:3,target:4,subtarget:5}),Cd=(0,wd.A)(/^(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,})(\/([\w\-.]+))?(\/.*)?$/,{target:3,subtarget:4}),Od=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,Td=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function Nd(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function _d(e){let{uri:t,gatewayUrls:n}=e;const r=Od.test(t);if(r)return{uri:t,isOnChain:!0,isEncoded:r};const i=Nd(null===n||void 0===n?void 0:n.ipfs,"https://ipfs.io"),a=Nd(null===n||void 0===n?void 0:n.arweave,"https://arweave.net"),o=t.match(Pd),{protocol:s,subpath:l,target:c,subtarget:u=""}=(null===o||void 0===o?void 0:o.groups)||{},d="ipns:/"===s||"ipns/"===l,h="ipfs:/"===s||"ipfs/"===l||Cd.test(t);if(t.startsWith("http")&&!d&&!h){let e=t;return null!==n&&void 0!==n&&n.arweave&&(e=t.replace(/https:\/\/arweave.net/g,null===n||void 0===n?void 0:n.arweave)),{uri:e,isOnChain:!1,isEncoded:!1}}if((d||h)&&c)return{uri:`${i}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&c)return{uri:`${a}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=t.replace(Td,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new Ed({uri:t})}function Id(e){if("object"!==typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new kd({data:e});return e.image||e.image_url||e.image_data}async function Rd(e){let{gatewayUrls:t,uri:n}=e;const{uri:r,isOnChain:i}=_d({uri:n,gatewayUrls:t});if(i)return r;const a=await async function(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return null===e||void 0===e?void 0:e.startsWith("image/")}return!1}catch(t){return("object"!==typeof t||"undefined"===typeof t.response)&&!!globalThis.hasOwnProperty("Image")&&new Promise((t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e}))}}(r);if(a)return r;throw new Ed({uri:n})}async function Md(e,t){let{gatewayUrls:n,record:r}=t;return/eip155:/i.test(r)?async function(e,t){let{gatewayUrls:n,record:r}=t;const i=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,i]=t.split("/"),[a,o]=n.split(":"),[s,l]=r.split(":");if(!a||"eip155"!==a.toLowerCase())throw new Ad({reason:"Only EIP-155 supported"});if(!o)throw new Ad({reason:"Chain ID not found"});if(!l)throw new Ad({reason:"Contract address not found"});if(!i)throw new Ad({reason:"Token ID not found"});if(!s)throw new Ad({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o),namespace:s.toLowerCase(),contractAddress:l,tokenID:i}}(r),a=await async function(e,t){let{nft:n}=t;if("erc721"===n.namespace)return xd(e,{address:n.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(n.tokenID)]});if("erc1155"===n.namespace)return xd(e,{address:n.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(n.tokenID)]});throw new Sd({namespace:n.namespace})}(e,{nft:i}),{uri:o,isOnChain:s,isEncoded:l}=_d({uri:a,gatewayUrls:n});if(s&&(o.includes("data:application/json;base64,")||o.startsWith("{"))){const e=l?atob(o.replace("data:application/json;base64,","")):o;return Rd({uri:Id(JSON.parse(e)),gatewayUrls:n})}let c=i.tokenID;"erc1155"===i.namespace&&(c=c.replace("0x","").padStart(64,"0"));return async function(e){let{gatewayUrls:t,uri:n}=e;try{const e=await fetch(n).then((e=>e.json()));return await Rd({gatewayUrls:t,uri:Id(e)})}catch{throw new Ed({uri:n})}}({gatewayUrls:n,uri:o.replace(/(?:0x)?{id}/,c)})}(e,{gatewayUrls:n,record:r}):Rd({uri:r,gatewayUrls:n})}
2async function jd(e,t){const{blockNumber:n,blockTag:r,key:i,name:a,gatewayUrls:o,strict:s}=t,{chain:l}=e,c=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,cd.M)({blockNumber:n,chain:l,contract:"ensUniversalResolver"})})(),u=null===l||void 0===l?void 0:l.ensTlds;if(u&&!u.some((e=>a.endsWith(e))))return null;try{const t={address:c,abi:sd.Ag,functionName:"resolve",args:[(0,lc.nj)(bd(a)),(0,Au.p)({abi:sd.SJ,functionName:"text",args:[gd(a),i]}),null!==o&&void 0!==o?o:[fd.J]],blockNumber:n,blockTag:r},s=Rc(e,xd,"readContract"),l=await s(t);if("0x"===l[0])return null;const u=(0,ld.e)({abi:sd.SJ,functionName:"text",data:l[0]});return""===u?null:u}catch(d){if(s)throw d;if(hd(d,"resolve"))return null;throw d}}var Ld=n(97484);async function Bd(e,t){const{account:n=e.account,blockNumber:r,blockTag:i="latest",blobs:a,data:o,gas:s,gasPrice:l,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:d,to:h,value:f,...p}=t,g=n?(0,tc.J)(n):void 0;try{var m;(0,jc.c)(t);const n=("bigint"===typeof r?(0,lc.cK)(r):void 0)||i,y=null===(m=e.chain)||void 0===m||null===(m=m.formatters)||void 0===m||null===(m=m.transactionRequest)||void 0===m?void 0:m.format,b=(y||Ic.Bv)({...(0,_c.o)(p,{format:y}),from:null===g||void 0===g?void 0:g.address,blobs:a,data:o,gas:s,gasPrice:l,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:d,to:h,value:f}),v=await e.request({method:"eth_createAccessList",params:[b,n]});return{accessList:v.accessList,gasUsed:BigInt(v.gasUsed)}}catch(y){throw(0,Ld.d)(y,{...t,account:g,chain:e.chain})}}function Fd(e,t){var n,r;let{method:i}=t;const a={};return"fallback"===e.transport.type&&(null===(n=(r=e.transport).onResponse)||void 0===n||n.call(r,(e=>{let{method:t,response:n,status:r,transport:o}=e;"success"===r&&i===t&&(a[n]=o.request)}))),t=>a[t]||e.request}class Dd extends Sl.C{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var Ud=n(71905),zd=n(10003),Wd=n(69679),Hd=n(63898);const Vd="/docs/contract/encodeEventTopics";function Gd(e){const{abi:t,eventName:n,args:r}=e;let i=t[0];if(n){const e=(0,Hd.iY)({abi:t,name:n});if(!e)throw new Su.M_(n,{docsPath:Vd});i=e}if("event"!==i.type)throw new Su.M_(void 0,{docsPath:Vd});const a=(0,Wd.B)(i),o=(0,Ud.h)(a);let s=[];if(r&&"inputs"in i){var l,c;const e=null===(l=i.inputs)||void 0===l?void 0:l.filter((e=>"indexed"in e&&e.indexed)),t=Array.isArray(r)?r:Object.values(r).length>0&&null!==(c=null===e||void 0===e?void 0:e.map((e=>r[e.name])))&&void 0!==c?c:[];var u;if(t.length>0)s=null!==(u=null===e||void 0===e?void 0:e.map(((e,n)=>Array.isArray(t[n])?t[n].map(((r,i)=>Yd({param:e,value:t[n][i]}))):"undefined"!==typeof t[n]&&null!==t[n]?Yd({param:e,value:t[n]}):null)))&&void 0!==u?u:[]}return[o,...s]}function Yd(e){let{param:t,value:n}=e;if("string"===t.type||"bytes"===t.type)return(0,hc.S)((0,bc.ZJ)(n));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new Dd(t.type);return(0,zd.h)([t],[n])}async function qd(e,t){const{address:n,abi:r,args:i,eventName:a,fromBlock:o,strict:s,toBlock:l}=t,c=Fd(e,{method:"eth_newFilter"}),u=a?Gd({abi:r,args:i,eventName:a}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"===typeof o?(0,lc.cK)(o):o,toBlock:"bigint"===typeof l?(0,lc.cK)(l):l,topics:u}]});return{abi:r,args:i,eventName:a,id:d,request:c(d),strict:Boolean(s),type:"event"}}async function Xd(e){let{address:t,args:n,event:r,events:i,fromBlock:a,strict:o,toBlock:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=null!==i&&void 0!==i?i:r?[r]:void 0,c=Fd(e,{method:"eth_newFilter"});let u=[];if(l){const e=l.flatMap((e=>Gd({abi:[e],eventName:e.name,args:n})));u=[e],r&&(u=u[0])}const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"===typeof a?(0,lc.cK)(a):a,toBlock:"bigint"===typeof s?(0,lc.cK)(s):s,...u.length?{topics:u}:{}}]});return{abi:l,args:n,eventName:r?r.name:void 0,fromBlock:a,id:d,request:c(d),strict:Boolean(o),toBlock:s,type:"event"}}async function $d(e){const t=Fd(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}const Kd=new Map,Qd=new Map;async function Jd(e,t){let{cacheKey:n,cacheTime:r=Number.POSITIVE_INFINITY}=t;const i=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}
2),n=t(e,Kd),r=t(e,Qd);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(n),a=i.response.get();if(a&&r>0){if((new Date).getTime()-a.created.getTime()<r)return a.data}let o=i.promise.get();o||(o=e(),i.promise.set(o));try{const e=await o;return i.response.set({created:new Date,data:e}),e}finally{i.promise.clear()}}const Zd=e=>`blockNumber.${e}`;async function eh(e){let{cacheTime:t=e.cacheTime}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await Jd((()=>e.request({method:"eth_blockNumber"})),{cacheKey:Zd(e.uid),cacheTime:t});return BigInt(n)}async function th(e,t){let{address:n,blockNumber:r,blockTag:i="latest"}=t;const a=void 0!==r?(0,lc.cK)(r):void 0,o=await e.request({method:"eth_getCode",params:[n,a||i]},{dedupe:Boolean(a)});if("0x"!==o)return o}var nh=n(93074),rh=n(70539);const ih="/docs/contract/decodeEventLog";function ah(e){const{abi:t,data:n,strict:r,topics:i}=e,a=null===r||void 0===r||r,[o,...s]=i;if(!o)throw new Su._z({docsPath:ih});const l=1===t.length?t[0]:t.find((e=>"event"===e.type&&o===(0,Ud.h)((0,Wd.B)(e))));if(!l||!("name"in l)||"event"!==l.type)throw new Su.kE(o,{docsPath:ih});const{name:c,inputs:u}=l,d=null===u||void 0===u?void 0:u.some((e=>!("name"in e&&e.name)));let h=d?[]:{};const f=u.filter((e=>"indexed"in e&&e.indexed));for(let m=0;m<f.length;m++){const e=f[m],t=s[m];if(!t)throw new Su.l3({abiItem:l,param:e});h[d?m:e.name||m]=oh({param:e,value:t})}const p=u.filter((e=>!("indexed"in e&&e.indexed)));if(p.length>0)if(n&&"0x"!==n)try{const e=(0,rh.n)(p,n);if(e)if(d)h=[...h,...e];else for(let t=0;t<p.length;t++)h[p[t].name]=e[t]}catch(g){if(a){if(g instanceof Su.Iy||g instanceof nh.SK)throw new Su.fo({abiItem:l,data:n,params:p,size:(0,pc.E)(n)});throw g}}else if(a)throw new Su.fo({abiItem:l,data:"0x",params:p,size:0});return{eventName:c,args:Object.values(h).length>0?h:void 0}}function oh(e){let{param:t,value:n}=e;if("string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))return n;return((0,rh.n)([t],n)||[])[0]}function sh(e){const{abi:t,args:n,logs:r,strict:i=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return r.map((e=>{try{const r=t.find((t=>"event"===t.type&&e.topics[0]===(0,Ud.h)(t)));if(!r)return null;const o=ah({...e,abi:[r],strict:i});return a&&!a.includes(o.eventName)?null:function(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function i(e,t,n){try{return"address"===e.type?(0,wu.h)(t,n):"string"===e.type||"bytes"===e.type?(0,hc.S)((0,bc.ZJ)(t))===n:t===n}catch{return!1}}if(Array.isArray(t)&&Array.isArray(r))return r.every(((e,r)=>{if(null===e||void 0===e)return!0;const a=n[r];if(!a)return!1;return(Array.isArray(e)?e:[e]).some((e=>i(a,e,t[r])))}));return"object"===typeof t&&!Array.isArray(t)&&"object"===typeof r&&!Array.isArray(r)&&Object.entries(r).every((e=>{let[r,a]=e;if(null===a||void 0===a)return!0;const o=n.find((e=>e.name===r));if(!o)return!1;return(Array.isArray(a)?a:[a]).some((e=>i(o,e,t[r])))}))}({args:o.args,inputs:r.inputs,matchArgs:n})?{...o,...e}:null}catch(o){let t,n;if(o instanceof Su.kE)return null;if(o instanceof Su.fo||o instanceof Su.l3){var r;if(i)return null;t=o.abiItem.name,n=null===(r=o.abiItem.inputs)||void 0===r?void 0:r.some((e=>!("name"in e&&e.name)))}return{...e,args:n?[]:{},eventName:t}}})).filter(Boolean)}async function lh(e){let{address:t,blockHash:n,fromBlock:r,toBlock:i,event:a,events:o,args:s,strict:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=null!==l&&void 0!==l&&l,u=null!==o&&void 0!==o?o:a?[a]:void 0;let d,h=[];if(u){const e=u.flatMap((e=>Gd({abi:[e],eventName:e.name,args:o?void 0:s})));h=[e],a&&(h=h[0])}d=n?await e.request({method:"eth_getLogs",params:[{address:t,topics:h,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:h,fromBlock:"bigint"===typeof r?(0,lc.cK)(r):r,toBlock:"bigint"===typeof i?(0,lc.cK)(i):i}]});const f=d.map((e=>yu(e)));return u?sh({abi:u,args:s,logs:f,strict:c}):f}async function ch(e,t){const{abi:n,address:r,args:i,blockHash:a,eventName:o,fromBlock:s,toBlock:l,strict:c}=t,u=o?(0,Hd.iY)({abi:n,name:o}):void 0,d=u?void 0:n.filter((e=>"event"===e.type));return Rc(e,lh,"getLogs")({address:r,args:i,blockHash:a,event:u,events:d,fromBlock:s,toBlock:l,strict:c})}class uh extends Sl.C{constructor(e){let{address:t}=e;super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}const dh=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function hh(e,t){let{blockCount:n,blockNumber:r,blockTag:i="latest",rewardPercentiles:a}=t;const o="bigint"===typeof r?(0,lc.cK)(r):void 0;return function(e){var t;return{baseFeePerGas:e.baseFeePerGas.map((e=>BigInt(e))),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.olde
2stBlock),reward:null===(t=e.reward)||void 0===t?void 0:t.map((e=>e.map((e=>BigInt(e)))))}}(await e.request({method:"eth_feeHistory",params:[(0,lc.cK)(n),o||i,a]},{dedupe:Boolean(o)}))}async function fh(e,t){let{filter:n}=t;const r="strict"in n&&n.strict,i=await n.request({method:"eth_getFilterChanges",params:[n.id]});if("string"===typeof i[0])return i;const a=i.map((e=>yu(e)));return"abi"in n&&n.abi?sh({abi:n.abi,logs:a,strict:r}):a}async function ph(e,t){let{address:n,blockNumber:r,blockTag:i,storageKeys:a}=t;const o=null!==i&&void 0!==i?i:"latest",s=void 0!==r?(0,lc.cK)(r):void 0;return function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,oc.ME)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((e=>({...e,value:BigInt(e.value)})))):void 0};var t}(await e.request({method:"eth_getProof",params:[n,a,s||o]}))}async function gh(e,t){var n;let{blockHash:r,blockNumber:i,blockTag:a,hash:o,index:s}=t;const l=a||"latest",c=void 0!==i?(0,lc.cK)(i):void 0;let u=null;if(o?u=await e.request({method:"eth_getTransactionByHash",params:[o]},{dedupe:!0}):r?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[r,(0,lc.cK)(s)]},{dedupe:!0}):(c||l)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[c||l,(0,lc.cK)(s)]},{dedupe:Boolean(c)})),!u)throw new Oc.Kz({blockHash:r,blockNumber:i,blockTag:l,hash:o,index:s});return((null===(n=e.chain)||void 0===n||null===(n=n.formatters)||void 0===n||null===(n=n.transaction)||void 0===n?void 0:n.format)||Wc)(u)}async function mh(e,t){var n;let{hash:r}=t;const i=await e.request({method:"eth_getTransactionReceipt",params:[r]},{dedupe:!0});if(!i)throw new Oc.Kc({hash:r});return((null===(n=e.chain)||void 0===n||null===(n=n.formatters)||void 0===n||null===(n=n.transactionReceipt)||void 0===n?void 0:n.format)||vu)(i)}var yh=n(40101);async function bh(e,t){const{blockNumber:n,blockTag:r="latest",blocks:i,returnFullTransactions:a,traceTransfers:o,validation:s}=t;try{const t=[];for(const e of i){const n=e.blockOverrides?yh.J(e.blockOverrides):void 0,r=e.calls.map((e=>{var t;const n=e,r=n.account?(0,tc.J)(n.account):void 0,i={...n,data:n.abi?(0,Au.p)(n):n.data,from:null!==(t=n.from)&&void 0!==t?t:null===r||void 0===r?void 0:r.address};return(0,jc.c)(i),(0,Ic.Bv)(i)})),i=e.stateOverrides?(0,Kc.yH)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:i})}const l=("bigint"===typeof n?(0,lc.cK)(n):void 0)||r;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:a,traceTransfers:o,validation:s},l]})).map(((e,t)=>({...Hc(e),calls:e.calls.map(((e,n)=>{var r,a,o;const{abi:s,args:l,functionName:c,to:u}=i[t].calls[n],d=null!==(r=null===(a=e.error)||void 0===a?void 0:a.data)&&void 0!==r?r:e.returnData,h=BigInt(e.gasUsed),f=null===(o=e.logs)||void 0===o?void 0:o.map((e=>yu(e))),p="0x1"===e.status?"success":"failure",g=s&&"success"===p&&"0x"!==d?(0,ld.e)({abi:s,data:d,functionName:c}):null,m=(t=>{if("success"===p)return;let n;return"0x"===(null===(t=e.error)||void 0===t?void 0:t.data)?n=new Su.O:e.error&&(n=new Gu.$S(e.error)),n?qu(n,{abi:null!==s&&void 0!==s?s:[],address:u,args:l,functionName:null!==c&&void 0!==c?c:"<unknown>"}):void 0})();return{data:d,gasUsed:h,logs:f,status:p,..."success"===p?{result:g}:{error:m}}}))})))}catch(l){const e=l,t=(0,Tc.l)(e,{});if(t instanceof Cc.RM)throw e;throw t}}class vh extends Error{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.cause instanceof vh?n.cause.details:null!==(t=n.cause)&&void 0!==t&&t.message?n.cause.message:n.details,i=n.cause instanceof vh&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],"Version: [email protected]"].join("\n")),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:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=e}}class xh extends vh{constructor(e){let{signature:t}=e;super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class wh extends vh{constructor(e){let{type:t}=e;super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class kh extends vh{constructor(e){let{type:t}=e;super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}function Ah(e,t){const n=e.exec(t);return null===n||void 0===n?void 0:n.groups}const Eh=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Sh=/^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)?$/,Ph=/^\(.+?\).*?$/,Ch=(0,wd.A)(/^error ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)$/,{name:1,parameters:2});const Oh=(0,wd.A)(/^event ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)$/,{name:1,parameters:2});const Th=(0,wd.A)(/^function ([a-zA-Z$_][a-zA-Z0-9$_]*)\((.*?)\)(?: (external|public{1}))?(?: (pure|view|nonpayable|payable{1}))?(?: returns\s?\((.*?)\))?$/,{name:1,parameters:2,scope:3,stateMutability:4,returns:5});const Nh=(0,wd.A)(/^struct ([a-zA-Z$_][a-zA-Z0-9$_]*) \{(.*?)\}$/,{name:1,properties:2});function _h(e){return Nh.test(e)}function Ih(e){return Ah(Nh,e)}const Rh=(0,wd.A)(/^constructor\((.*?)\)(?:\s(payable{1}))?$/,{parameters:1,stateMutability:2});const Mh=(0,wd.A)(/^fallback\(\) external(?:\s(payable{1}))?$/,{stateMutability:1});const jh=/^receive\(\) external payable$/;new Set(["memory","indexed","storage","calldata"]);const Lh=new Set(["indexed"]),Bh=new Set(["calldata","memory","storage"]);class Fh extends vh{constructor(e){let{param:t}=e;super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Dh extends vh{constructor(e){let{param:t,name:n}=e;super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class Uh extends vh{constructor(e){let{param:t,type:n,modifier:r}=e;super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class zh extends vh{constructor(e){let{param:t,type:n,modifier:r}=e;super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class Wh extends vh{constructor(e){let{abiParameter:t}=e;super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invali
2d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Hh extends vh{constructor(e){let{signature:t,type:n}=e;super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Vh extends vh{constructor(e){let{signature:t}=e;super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Gh extends vh{constructor(e){let{signature:t}=e;super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class Yh extends vh{constructor(e){let{type:t}=e;super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class qh extends vh{constructor(e){let{current:t,depth:n}=e;super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const Xh=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function $h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e){return Th.test(e)}(e))return function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){return Ah(Th,e)}(e);if(!r)throw new Hh({signature:e,type:"function"});const i=ef(r.parameters),a=[],o=i.length;for(let l=0;l<o;l++)a.push(Zh(i[l],{modifiers:Bh,structs:n,type:"function"}));const s=[];if(r.returns){const e=ef(r.returns),t=e.length;for(let r=0;r<t;r++)s.push(Zh(e[r],{modifiers:Bh,structs:n,type:"function"}))}return{name:r.name,type:"function",stateMutability:null!==(t=r.stateMutability)&&void 0!==t?t:"nonpayable",inputs:a,outputs:s}}(e,t);if(function(e){return Oh.test(e)}(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e){return Ah(Oh,e)}(e);if(!n)throw new Hh({signature:e,type:"event"});const r=ef(n.parameters),i=[],a=r.length;for(let o=0;o<a;o++)i.push(Zh(r[o],{modifiers:Lh,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,t);if(function(e){return Ch.test(e)}(e))return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=function(e){return Ah(Ch,e)}(e);if(!n)throw new Hh({signature:e,type:"error"});const r=ef(n.parameters),i=[],a=r.length;for(let o=0;o<a;o++)i.push(Zh(r[o],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}(e,t);if(function(e){return Rh.test(e)}(e))return function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){return Ah(Rh,e)}(e);if(!r)throw new Hh({signature:e,type:"constructor"});const i=ef(r.parameters),a=[],o=i.length;for(let s=0;s<o;s++)a.push(Zh(i[s],{structs:n,type:"constructor"}));return{type:"constructor",stateMutability:null!==(t=r.stateMutability)&&void 0!==t?t:"nonpayable",inputs:a}}(e,t);if(function(e){return Mh.test(e)}(e))return function(e){var t;const n=function(e){return Ah(Mh,e)}(e);if(!n)throw new Hh({signature:e,type:"fallback"});return{type:"fallback",stateMutability:null!==(t=n.stateMutability)&&void 0!==t?t:"nonpayable"}}(e);if(function(e){return jh.test(e)}(e))return{type:"receive",stateMutability:"payable"};throw new Vh({signature:e})}const Kh=(0,wd.A)(/^([a-zA-Z$_][a-zA-Z0-9$_]*)((?:\[\d*?\])+?)?(?:\s(calldata|indexed|memory|storage{1}))?(?:\s([a-zA-Z$_][a-zA-Z0-9$_]*))?$/,{type:1,array:2,modifier:3,name:4}),Qh=(0,wd.A)(/^\((.+?)\)((?:\[\d*?\])+?)?(?:\s(calldata|indexed|memory|storage{1}))?(?:\s([a-zA-Z$_][a-zA-Z0-9$_]*))?$/,{type:1,array:2,modifier:3,name:4}),Jh=/^u?int$/;function Zh(e,t){var n,r;const i=function(e,t,n){let r="";if(n)for(const i of Object.entries(n)){if(!i)continue;let e="";for(const t of i[1])e+=`[${t.type}${t.name?`:${t.name}`:""}]`;r+=`(${i[0]}{${e}})`}return t?`${t}:${e}${r}`:e}(e,null===t||void 0===t?void 0:t.type,null===t||void 0===t?void 0:t.structs);if(Xh.has(i))return Xh.get(i);const a=Ph.test(e),o=Ah(a?Qh:Kh,e);if(!o)throw new Fh({param:e});if(o.name&&function(e){return"address"===e||"bool"===e||"function"===e||"string"===e||"tuple"===e||Eh.test(e)||Sh.test(e)||nf.test(e)}(o.name))throw new Dh({param:e,name:o.name});const s=o.name?{name:o.name}:{},l="indexed"===o.modifier?{indexed:!0}:{},c=null!==(n=null===t||void 0===t?void 0:t.structs)&&void 0!==n?n:{};let u,d={};if(a){u="tuple";const e=ef(o.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(Zh(e[r],{structs:c}));d={components:t}}else if(o.type in c)u="tuple",d={components:c[o.type]};else if(Jh.test(o.type))u=`${o.type}256`;else if(u=o.type,"struct"!==(null===t||void 0===t?void 0:t.type)&&!tf(u))throw new kh({type:u});if(o.modifier){var h,f;if(null===t||void 0===t||null===(h=t.modifiers)||void 0===h||null===(f=h.has)||void 0===f||!f.call(h,o.modifier))throw new Uh({param:e,type:null===t||void 0===t?void 0:t.type,modifier:o.modifier});if(Bh.has(o.modifier)&&!function(e,t){return t||"bytes"===e||"string"===e||"tuple"===e}(u,!!o.array))throw new zh({param:e,type:null===t||void 0===t?void 0:t.type,modifier:o.modifier})}const p={type:`${u}${null!==(r=o.array)&&void 0!==r?r:""}`,...s,...l,...d};return Xh.set(i,p),p}function ef(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const i=e.trim().length;for(let a=0;a<i;a++){const i=e[a],o=e.slice(a+1);switch(i){case",":return 0===r?ef(o,[...t,n.trim()]):ef(o,t,`${n}${i}`,r);case"(":return ef(o,t,`${n}${i}`,r+1);case")":return ef(o,t,`${n}${i}`,r-1);default:return ef(o,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new qh({current:n,depth:r});return t.push(n.trim()),t}function tf(e){return"address"===e||"bool"===e||"function"===e||"string"===e||Eh.test(e)||Sh.test(e)}const nf=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const rf=(0,wd.A)(/^([a-zA-Z$_][a-zA-Z0-9$_]*)((?:\[\d*?\])+?)?$/,{type:1,array:2});function af(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const r=[],i=e.length;for(let o=0;o<i;o++){const i=e[o];if(Ph.test(i.type))r.push(i);else{const e=Ah(rf,i.type);if(null===e||void 0===e||!e.type)throw new Wh({abiParameter:i});const{array:o,type:s}=e;if(s in t){var a;if(n.has(s))throw new Yh({type:s});r.push({...i,type:`tuple${null!==o&&void 0!==o?o:""}`,components:af(null!==(a=t[s])&&void 0!==a?a:[],t,new Set([...n,s]))})}else{if(!tf(s))throw new wh({type:s});r.push(i)}}}return r}function of(e){let t;if("string"===typeof e)t=$h(e);else{const n=function(e){const t={},n=e.length;for(let o=0;o<n;o++){const n=e[o];if(!_h(n))continue;const r=Ih(n);if(!r)throw new Hh({signature:n,type:"struct"});const i=r.properties.split(";"),a=[],s=i.length;for(let e=0;e<s;e++){const t=i[e].trim();if(!t)continue;const n=Zh(t,{type:"struct"});a.push(n)}if(!a.length)throw new Gh({signature:n});t[r.name]=a}const r={},i=Object.entries(t),a=i.length;for(let o=0;o<a;o++){const[e,n]=i[o];r[e]=af(n,t)}return r}(e),r=e.length;for(let i=0;i<r;i++){const r=e[i];if(!_h(r)){t=$h(r,n);break}}}if(!t)throw new xh({signature:e});return t}const sf=(0,wd.A)(/^tuple((\[(\d*)\])*)$/,{array:1});function lf(e){let t=e.type;if(sf.test(e.type)&&"components"in e){var n;t="(";const r=e.components.length;for(let n=0;n<r;n++){t+=lf(e.components[n]),n<r-1&&(t+=", ")}const i=Ah(sf,e.type);return t+=`)${null!==(n=null===i||void 0===i?void 0:i.array)&&void 0!==n?n:""}`,lf({...e,type:t})}
2return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function cf(e){let t="";const n=e.length;for(let r=0;r<n;r++){t+=lf(e[r]),r!==n-1&&(t+=", ")}return t}function uf(e){var t;return"function"===e.type?`function ${e.name}(${cf(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${null!==(t=e.outputs)&&void 0!==t&&t.length?` returns (${cf(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${cf(e.inputs)})`:"error"===e.type?`error ${e.name}(${cf(e.inputs)})`:"constructor"===e.type?`constructor(${cf(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable"}var df=n(52325);const hf=BigInt(2**32-1),ff=BigInt(32);function pf(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&hf),l:Number(e>>ff&hf)}:{h:0|Number(e>>ff&hf),l:0|Number(e&hf)}}function gf(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){const{h:n,l:o}=pf(e[a],t);[r[a],i[a]]=[n,o]}return[r,i]}const mf=(e,t,n)=>e<<n|t>>>32-n,yf=(e,t,n)=>t<<n|e>>>32-n,bf=(e,t,n)=>t<<n-32|e>>>64-n,vf=(e,t,n)=>e<<n-32|t>>>64-n;function xf(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function wf(e){if(!((t=e)instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name))throw new Error("Uint8Array expected");for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(r.length>0&&!r.includes(e.length))throw new Error("Uint8Array expected of length "+r+", got length="+e.length)}function kf(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Af(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;r++)t[r].fill(0)}const Ef=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function Sf(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Pf=Ef?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=Sf(e[t]);return e};function Cf(e){if("string"!==typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function Of(e){return"string"===typeof e&&(e=Cf(e)),wf(e),e}class Tf{}function Nf(e){const t=t=>e().update(Of(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}const _f=BigInt(0),If=BigInt(1),Rf=BigInt(2),Mf=BigInt(7),jf=BigInt(256),Lf=BigInt(113),Bf=[],Ff=[],Df=[];for(let n=0,KG=If,QG=1,JG=0;n<24;n++){[QG,JG]=[JG,(2*QG+3*JG)%5],Bf.push(2*(5*JG+QG)),Ff.push((n+1)*(n+2)/2%64);let e=_f;for(let t=0;t<7;t++)KG=(KG<<If^(KG>>Mf)*Lf)%jf,KG&Rf&&(e^=If<<(If<<BigInt(t))-If);Df.push(e)}const Uf=gf(Df,!0),zf=Uf[0],Wf=Uf[1],Hf=(e,t,n)=>n>32?bf(e,t,n):mf(e,t,n),Vf=(e,t,n)=>n>32?vf(e,t,n):yf(e,t,n);class Gf extends Tf{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,xf(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}(this.state)}clone(){return this._cloneInto()}keccak(){Pf(this.state32),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,a=n[i],o=n[i+1],s=Hf(a,o,1)^n[t],l=Vf(a,o,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=l}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=Ff[n],a=Hf(t,i,r),o=Vf(t,i,r),s=Bf[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=zf[r],e[1]^=Wf[r]}Af(n)}(this.state32,this.rounds),Pf(this.state32),this.posOut=0,this.pos=0}update(e){kf(this),wf(e=Of(e));const{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){const a=Math.min(t-this.pos,r-i);for(let t=0;t<a;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){kf(this,!1),wf(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return xf(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(function(e,t){wf(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Af(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new Gf(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const Yf=(e,t,n)=>Nf((()=>new Gf(t,e,n))),qf=(()=>Yf(1,136,32))();var Xf=n(14239);n(22966);const $f=48,Kf=57,Qf=65,Jf=70,Zf=97,ep=102;function tp(e){return e>=$f&&e<=Kf?e-$f:e>=Qf&&e<=Jf?e-(Qf-10):e>=Zf&&e<=ep?e-(Zf-10):void 0}var np=n(90763);const rp=new TextEncoder;function ip(e){return e instanceof Uint8Array?e:"string"===typeof e?ap(e):function(e){return e instanceof Uint8Array?e:new Uint8Array(e)}(e)}function ap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n}=t;let r=e;n&&(np.Sl(e,n),r=Xf.M7(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);const a=i.length/2,o=new Uint8Array(a);for(let s=0,l=0;s<a;s++){const e=tp(i.charCodeAt(l++)),t=tp(i.charCodeAt(l++));if(void 0===e||void 0===t)throw new df.C(`Invalid byte sequence ("${i[l-2]}${i[l-1]}" in "${i}").`);o[s]=16*e+t}return o}function op(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n}=t,r=rp.encode(e);return"number"===typeof n?(function(e,t){if(sp(e)>t)throw new lp({givenSize:sp(e),maxSize:t})}(r,n),function(e,t){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new cp({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let a=0;a<r;a++){const t="right"===n;i[t?a:r-a-1]=e[t?a:e.length-a-1]}return i}(e,{dir:"right",size:t})}(r,n)):r}function sp(e){return e.length}df.C;df.C;class lp extends df.C{constructor(e){let{givenSize:t,maxSize:n}=e;
2super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}df.C;class cp extends df.C{constructor(e){let{size:t,targetSize:n,type:r}=e;super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function up(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{as:n=("string"===typeof e?"Hex":"Bytes")}=t,r=qf(ip(e));return"Bytes"===n?r:Xf.uK(r)}class dp extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}const hp={checksum:new dp(8192)},fp=hp.checksum;const pp=/^0x[a-fA-F0-9]{40}$/;function gp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{strict:n=!0}=t;if(!pp.test(e))throw new bp({address:e,cause:new vp});if(n){if(e.toLowerCase()===e)return;if(mp(e)!==e)throw new bp({address:e,cause:new xp})}}function mp(e){if(fp.has(e))return fp.get(e);gp(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=up(op(t),{as:"Bytes"}),r=t.split("");for(let a=0;a<40;a+=2)n[a>>1]>>4>=8&&r[a]&&(r[a]=r[a].toUpperCase()),(15&n[a>>1])>=8&&r[a+1]&&(r[a+1]=r[a+1].toUpperCase());const i=`0x${r.join("")}`;return fp.set(e,i),i}function yp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{strict:n=!0}=null!==t&&void 0!==t?t:{};try{return gp(e,{strict:n}),!0}catch{return!1}}class bp extends df.C{constructor(e){let{address:t,cause:n}=e;super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class vp extends df.C{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class xp extends df.C{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function wp(e){let t=!0,n="",r=0,i="",a=!1;for(let o=0;o<e.length;o++){const s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t)if(0!==r)" "!==s?(i+=s,n+=s):","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===s&&["event","function","error",""].includes(i))i="";else if(i+=s,")"===s){a=!0;break}}if(!a)throw new df.C("Unable to normalize signature.");return i}function kp(e,t){const n=typeof e,r=t.type;switch(r){case"address":return yp(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in t?Object.values(t.components).every(((t,n)=>kp(Object.values(e)[n],t))):/^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(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(e)&&e.every((e=>kp(e,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function Ap(e,t,n){for(const r in e){const i=e[r],a=t[r];if("tuple"===i.type&&"tuple"===a.type&&"components"in i&&"components"in a)return Ap(i.components,a.components,n[r]);const o=[i.type,a.type];if(!(!o.includes("address")||!o.includes("bytes20"))||(o.includes("address")&&o.includes("string")||!(!o.includes("address")||!o.includes("bytes")))&&yp(n[r],{strict:!1}))return o}}function Ep(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prepare:n=!0}=t,r=Array.isArray(e)||"string"===typeof e?of(e):e;return{...r,...n?{hash:Pp(r)}:{}}}function Sp(e){return Xf.di(Pp(e),0,4)}function Pp(e){return"string"!==typeof e&&"hash"in e&&e.hash?e.hash:up(Xf.sH(function(e){return wp("string"===typeof e?e:uf(e))}(e)))}class Cp extends df.C{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${wp(uf(e.abiItem))}\`, and`,`\`${t.type}\` in \`${wp(uf(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Op extends df.C{constructor(e){let{name:t,data:n,type:r="item"}=e;super(`ABI ${r}${t?` with name "${t}"`:n?` with data "${n}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}df.C;const Tp=/^(.*)\[([0-9]*)\]$/,Np=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,_p=/^(u?int)(8|
216|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 Ip(e){let{checksumAddress:t=!1,parameter:n,value:r}=e;const i=n,a=Mp(i.type);if(a){const[e,n]=a;return function(e,t){const{checksumAddress:n,length:r,parameter:i}=t,a=null===r;if(!Array.isArray(e))throw new Up(e);if(!a&&e.length!==r)throw new Bp({expectedLength:r,givenLength:e.length,type:`${i.type}[${r}]`});let o=!1;const s=[];for(let l=0;l<e.length;l++){const t=Ip({checksumAddress:n,parameter:i,value:e[l]});t.dynamic&&(o=!0),s.push(t)}if(a||o){const e=Rp(s);if(a){const t=Xf.oB(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?Xf.xW(t,e):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:Xf.xW(...s.map((e=>{let{encoded:t}=e;return t})))}}(r,{checksumAddress:t,length:e,parameter:{...i,type:n}})}if("tuple"===i.type)return function(e,t){const{checksumAddress:n,parameter:r}=t;let i=!1;const a=[];for(let o=0;o<r.components.length;o++){const t=r.components[o],s=Ip({checksumAddress:n,parameter:t,value:e[Array.isArray(e)?o:t.name]});a.push(s),s.dynamic&&(i=!0)}return{dynamic:i,encoded:i?Rp(a):Xf.xW(...a.map((e=>{let{encoded:t}=e;return t})))}}(r,{checksumAddress:t,parameter:i});if("address"===i.type)return function(e,t){const{checksum:n=!1}=t;return gp(e,{strict:n}),{dynamic:!1,encoded:Xf.Ho(e.toLowerCase())}}(r,{checksum:t});if("bool"===i.type)return function(e){if("boolean"!==typeof e)throw new df.C(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Xf.Ho(Xf.xb(e))}}(r);if(i.type.startsWith("uint")||i.type.startsWith("int")){var o;const e=i.type.startsWith("int"),[,,t="256"]=null!==(o=_p.exec(i.type))&&void 0!==o?o:[];return function(e,t){let{signed:n,size:r}=t;if("number"===typeof r){const t=2n**(BigInt(r)-(n?1n:0n))-1n,i=n?-t-1n:0n;if(e>t||e<i)throw new Xf.Ty({max:t.toString(),min:i.toString(),signed:n,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:Xf.oB(e,{size:32,signed:n})}}(r,{signed:e,size:Number(t)})}if(i.type.startsWith("bytes"))return function(e,t){let{type:n}=t;const[,r]=n.split("bytes"),i=Xf.Ej(e);if(!r){let t=e;return i%32!==0&&(t=Xf.M7(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:Xf.xW(Xf.Ho(Xf.oB(i,{size:32})),t)}}if(i!==Number.parseInt(r))throw new Fp({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:Xf.M7(e)}}(r,{type:i.type});if("string"===i.type)return function(e){const t=Xf.sH(e),n=Math.ceil(Xf.Ej(t)/32),r=[];for(let i=0;i<n;i++)r.push(Xf.M7(Xf.di(t,32*i,32*(i+1))));return{dynamic:!0,encoded:Xf.xW(Xf.M7(Xf.oB(Xf.Ej(t),{size:32})),...r)}}(r);throw new zp(i.type)}function Rp(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:n,encoded:r}=e[a];t+=n?32:Xf.Ej(r)}const n=[],r=[];let i=0;for(let a=0;a<e.length;a++){const{dynamic:o,encoded:s}=e[a];o?(n.push(Xf.oB(t+i,{size:32})),r.push(s),i+=Xf.Ej(s)):n.push(s)}return Xf.xW(...n,...r)}function Mp(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}
2function jp(e,t,n){const{checksumAddress:r=!1}=null!==n&&void 0!==n?n:{};if(e.length!==t.length)throw new Dp({expectedLength:e.length,givenLength:t.length});const i=function(e){let{checksumAddress:t,parameters:n,values:r}=e;const i=[];for(let a=0;a<n.length;a++)i.push(Ip({checksumAddress:t,parameter:n[a],value:r[a]}));return i}({checksumAddress:r,parameters:e,values:t}),a=Rp(i);return 0===a.length?"0x":a}function Lp(e,t){if(e.length!==t.length)throw new Dp({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r];n.push(Lp.encode(i,a))}return Xf.xW(...n)}!function(e){e.encode=function e(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("address"===t){const e=n;return gp(e),Xf.Ho(e.toLowerCase(),r?32:0)}if("string"===t)return Xf.sH(n);if("bytes"===t)return n;if("bool"===t)return Xf.Ho(Xf.xb(n),r?32:1);const i=t.match(_p);if(i){const[e,t,a="256"]=i,o=Number.parseInt(a)/8;return Xf.oB(n,{size:r?32:o,signed:"int"===t})}const a=t.match(Np);if(a){const[e,t]=a;if(Number.parseInt(t)!==(n.length-2)/2)throw new Fp({expectedSize:Number.parseInt(t),value:n});return Xf.M7(n,r?32:0)}const o=t.match(Tp);if(o&&Array.isArray(n)){const[t,r]=o,i=[];for(let a=0;a<n.length;a++)i.push(e(r,n[a],!0));return 0===i.length?"0x":Xf.xW(...i)}throw new zp(t)}}(Lp||(Lp={}));df.C;df.C;class Bp extends df.C{constructor(e){let{expectedLength:t,givenLength:n,type:r}=e;super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class Fp extends df.C{constructor(e){let{expectedSize:t,value:n}=e;super(`Size of bytes "${n}" (bytes${Xf.Ej(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class Dp extends df.C{constructor(e){let{expectedLength:t,givenLength:n}=e;super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class Up extends df.C{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class zp extends df.C{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function Wp(e){const{overloads:t}=e,n=t?Vp([e,...t],e.name,{args:arguments.length<=1?void 0:arguments[1]}):e,r=Sp(n);const i=(arguments.length<=1?0:arguments.length-1)>0?jp(n.inputs,arguments.length<=1?void 0:arguments[1]):void 0;return i?Xf.xW(r,i):r}function Hp(e){return Ep(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Vp(e,t,n){const r=function(e,t,n){const{args:r=[],prepare:i=!0}=null!==n&&void 0!==n?n:{},a=Xf.tf(t,{strict:!1}),o=e.filter((e=>a?"function"===e.type||"error"===e.type?Sp(e)===Xf.di(t,0,4):"event"===e.type&&Pp(e)===t:"name"in e&&e.name===t));if(0===o.length)throw new Op({name:t});if(1===o.length)return{...o[0],...i?{hash:Pp(o[0])}:{}};let s;for(const c of o){if(!("inputs"in c))continue;if(!r||0===r.length){if(!c.inputs||0===c.inputs.length)return{...c,...i?{hash:Pp(c)}:{}};continue}if(!c.inputs)continue;if(0===c.inputs.length)continue;if(c.inputs.length!==r.length)continue;const e=r.every(((e,t)=>{const n="inputs"in c&&c.inputs[t];return!!n&&kp(e,n)}));if(e){if(s&&"inputs"in s&&s.inputs){const e=Ap(c.inputs,s.inputs,r);if(e)throw new Cp({abiItem:c,type:e[0]},{abiItem:s,type:e[1]})}s=c}}const l=(()=>{if(s)return s;const[e,...t]=o;return{...e,overloads:t}})();if(!l)throw new Op({name:t});return{...l,...i?{hash:Pp(l)}:{}}}(e,t,n);if("function"!==r.type)throw new Op({name:t,type:"function"});return r}const Gp="0x0000000000000000000000000000000000000000";var Yp=n(33417);async function qp(e,t){var n,r,i,a,o,s,l,c;const{blockNumber:u,blockTag:d,calls:h,stateOverrides:f,traceAssetChanges:p,traceTransfers:g,validation:m}=t,y=t.account?(0,tc.J)(t.account):void 0;if(p&&!y)throw new Sl.C("`account` is required when `traceAssetChanges` is true");const b=y?function(e,t){var n;const{bytecode:r,args:i}=t;return Xf.xW(r,null!==(n=e.inputs)&&void 0!==n&&n.length&&null!==i&&void 0!==i&&i.length?jp(e.inputs,i):"0x")}(Ep("constructor(bytes, bytes)"),{bytecode:Yp.LX,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",Wp(Hp("function getBalance(address)"),[y.address])]}):void 0;const v=p?await Promise.all(t.calls.map((async t=>{if(!t.data&&!t.abi)return;const{accessList:n}=await Bd(e,{account:y.address,...t,data:t.abi?(0,Au.p)(t):t.data});return n.map((e=>{let{address:t,storageKeys:n}=e;return n.length>0?t:null}))}))).then((e=>
2e.flat().filter(Boolean))):[],x=null===f||void 0===f?void 0:f.map((e=>e.address===(null===y||void 0===y?void 0:y.address)?{...e,nonce:0}:e)),w=await bh(e,{blockNumber:u,blockTag:d,blocks:[...p?[{calls:[{data:b}],stateOverrides:f},{calls:v.map(((e,t)=>({abi:[Hp("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[y.address],to:e,from:Gp,nonce:t}))),stateOverrides:[{address:Gp,nonce:0}]}]:[],{calls:[...h,{}].map(((e,t)=>({...e,from:null===y||void 0===y?void 0:y.address,nonce:t}))),stateOverrides:x},...p?[{calls:[{data:b}]},{calls:v.map(((e,t)=>({abi:[Hp("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[y.address],to:e,from:Gp,nonce:t}))),stateOverrides:[{address:Gp,nonce:0}]},{calls:v.map(((e,t)=>({to:e,abi:[Hp("function decimals() returns (uint256)")],functionName:"decimals",from:Gp,nonce:t}))),stateOverrides:[{address:Gp,nonce:0}]},{calls:v.map(((e,t)=>({to:e,abi:[Hp("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Gp,nonce:t}))),stateOverrides:[{address:Gp,nonce:0}]},{calls:v.map(((e,t)=>({to:e,abi:[Hp("function symbol() returns (string)")],functionName:"symbol",from:Gp,nonce:t}))),stateOverrides:[{address:Gp,nonce:0}]}]:[]],traceTransfers:g,validation:m}),k=p?w[2]:w[0],[A,E,,S,P,C,O,T]=p?w:[],{calls:N,..._}=k,I=null!==(n=N.slice(0,-1))&&void 0!==n?n:[],R=[...null!==(r=null===A||void 0===A?void 0:A.calls)&&void 0!==r?r:[],...null!==(i=null===E||void 0===E?void 0:E.calls)&&void 0!==i?i:[]].map((e=>"success"===e.status?(0,oc.uU)(e.data):null)),M=[...null!==(a=null===S||void 0===S?void 0:S.calls)&&void 0!==a?a:[],...null!==(o=null===P||void 0===P?void 0:P.calls)&&void 0!==o?o:[]].map((e=>"success"===e.status?(0,oc.uU)(e.data):null)),j=(null!==(s=null===C||void 0===C?void 0:C.calls)&&void 0!==s?s:[]).map((e=>"success"===e.status?e.result:null)),L=(null!==(l=null===T||void 0===T?void 0:T.calls)&&void 0!==l?l:[]).map((e=>"success"===e.status?e.result:null)),B=(null!==(c=null===O||void 0===O?void 0:O.calls)&&void 0!==c?c:[]).map((e=>"success"===e.status?e.result:null)),F=[];for(const[D,U]of M.entries()){const e=R[D];if("bigint"!==typeof U)continue;if("bigint"!==typeof e)continue;const t=j[D-1],n=L[D-1],r=B[D-1],i=0===D?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:v[D-1],decimals:r||t?Number(null!==t&&void 0!==t?t:1):void 0,symbol:null!==n&&void 0!==n?n:void 0};F.some((e=>e.token.address===i.address))||F.push({token:i,value:{pre:e,post:U,diff:U-e}})}return{assetChanges:F,block:_,results:I}}async function Xp(e,t){let{filter:n}=t;return n.request({method:"eth_uninstallFilter",params:[n.id]})}function $p(e,t){return(0,hc.S)(function(e){const t="string"===typeof e?(0,lc.i3)(e):"string"===typeof e.raw?e.raw:(0,lc.My)(e.raw),n=(0,lc.i3)(`\x19Ethereum Signed Message:\n${(0,pc.E)(t)}`);return(0,yc.xW)([n,t])}(e),t)}const Kp="0x6492649264926492649264926492649264926492649264926492649264926492";var Qp=n(21273);var Jp=n(84259);async function Zp(e,t){var n;const{address:r,factory:i,factoryData:a,hash:o,signature:s,universalSignatureVerifierAddress:l=(null===(n=e.chain)||void 0===n||null===(n=n.contracts)||void 0===n||null===(n=n.universalSignatureVerifier)||void 0===n?void 0:n.address),...c}=t,u=(0,fc.q)(s)?s:"object"===typeof s&&"r"in s&&"s"in s?function(e){let{r:t,s:n,to:r="hex",v:i,yParity:a}=e;const o=(()=>{if(0===a||1===a)return a;if(i&&(27n===i||28n===i||i>=35n))return i%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),s=`0x${new Jp.secp256k1.Signature((0,oc.uU)(t),(0,oc.uU)(n)).toCompactHex()}${0===o?"1b":"1c"}`;return"hex"===r?s:(0,bc.aT)(s)}(s):(0,lc.My)(s),d=await(async()=>i||a?function(e){return(0,Qp.iN)(e,-32)===Kp}(u)?u:function(e){const{address:t,data:n,signature:r,to:i="hex"}=e,a=(0,yc.aP)([(0,zd.h)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,n,r]),Kp]);return"hex"===i?a:(0,bc.aT)(a)}({address:i,data:a,signature:u}):u)();try{const t=l?{to:l,data:(0,Au.p)({abi:sd._,functionName:"isValidSig",args:[r,o,d]}),...c}:{data:(0,cc.m)({abi:sd._,args:[r,o,d],bytecode:Yp.nP}),...c},{data:n}=await Rc(e,vd.T,"call")(t);return(0,oc.Nx)(null!==n&&void 0!==n?n:"0x0")}catch(h){try{if((0,wu.h)((0,El.b)(r),await mc({hash:o,signature:s})))return!0}catch{}if(h instanceof Gu.zX)return!1;throw h}}function eg(e){const{domain:t={},message:n,primaryType:r}=e,i={EIP712Domain:Mu({domain:t}),...e.types};Ru({domain:t,message:n,primaryType:r,types:i});const a=["0x1901"];return t&&a.push(function(e){let{domain:t,types:n}=e;return tg({data:t,primaryType:"EIP712Domain",types:n})}({domain:t,types:i})),"EIP712Domain"!==r&&a.push(tg({data:n,primaryType:r,types:i})),(0,hc.S)((0,yc.xW)(a))}function tg(e){let{data:t,primaryType:n,types:r}=e;const i=ng({data:t,primaryType:n,types:r});return(0,hc.S)(i)}function ng(e){let{data:t,primaryType:n,types:r}=e;const i=[{type:"bytes32"}],a=[rg({primaryType:n,types:r})];for(const o of r[n]){const[e,n]=ag({types:r,name:o.name,type:o.type,value:t[o.name]});i.push(e),a.push(n)}return(0,zd.h)(i,a)}function rg(e){let{primaryType:t,types:n}=e;const r=(0,lc.nj)(function(e){let{primaryType:t,types:n}=e,r="";const i=ig({primaryType:t,types:n});i.delete(t);const a=[t,...Array.from(i).sort()];for(const o of a)r+=`${o}(${n[o].map((e=>{let{name:t,type:n}=e;return`${n} ${t}`})).join(",")})`;return r}({primaryType:t,types:n}));return(0,hc.S)(r)}function ig(e){let{primaryType:t,types:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;const i=t.match(/^\w*/u),a=null===i||void 0===i?void 0:i[0];if(r.has(a)||void 0===n[a])return r;r.add(a);for(const o of n[a])ig({primaryType:o.type,types:n},r);return r}function ag(e){let{types:t,name:n,type:r,value:i}=e;if(void 0!==t[r])return[{type:"bytes32"},(0,hc.S)(ng({data:i,primaryType:r,types:t}))];if("bytes"===r){return i=`0x${(i.length%2?"0":"")+i.slice(2)}`,[{type:"bytes32"},(0,hc.S)(i)]}if("string"===r)return[{type:"bytes32"},(0,hc.S)((0,lc.nj)(i))];if(r.lastIndexOf("]")===r.length-1){const e=r.slice(0,r.lastIndexOf("[")),a=i.map((r=>ag({name:n,type:e,types:t,value:r}
2)));return[{type:"bytes32"},(0,hc.S)((0,zd.h)(a.map((e=>{let[t]=e;return t})),a.map((e=>{let[,t]=e;return t}))))]}return[{type:r},i]}function og(e,t){let{emitOnBegin:n=!1,emitMissed:r=!1,onBlockNumber:i,onError:a,poll:o,pollingInterval:s=e.pollingInterval}=t;let l;return("undefined"!==typeof o?o:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?Uu((0,Cu.A)(["watchBlockNumber",e.uid,n,r,s]),{onBlockNumber:i,onError:a},(t=>Wu((async()=>{try{const n=await Rc(e,eh,"getBlockNumber")({cacheTime:0});if(l){if(n===l)return;if(n-l>1&&r)for(let e=l+1n;e<n;e++)t.onBlockNumber(e,l),l=e}(!l||n>l)&&(t.onBlockNumber(n,l),l=n)}catch(i){var n;null===(n=t.onError)||void 0===n||n.call(t,i)}}),{emitOnBegin:n,interval:s}))):Uu((0,Cu.A)(["watchBlockNumber",e.uid,n,r]),{onBlockNumber:i,onError:a},(t=>{let n=!0,r=()=>n=!1;return(async()=>{try{const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await i.subscribe({params:["newHeads"],onData(e){var r;if(!n)return;const i=(0,oc.uU)(null===(r=e.result)||void 0===r?void 0:r.number);t.onBlockNumber(i,l),l=i},onError(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}});r=a,n||r()}catch(i){null===a||void 0===a||a(i)}})(),()=>r()}))}const sg=(0,wd.A)(/^(?:([a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?([a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(0x[a-fA-F0-9]{40})\n\n(?:(.*)\n\n)?/,{scheme:1,domain:2,address:3,statement:4}),lg=(0,wd.A)(/(?:URI: (.+))\n(?:Version: (.+))\n(?:Chain ID: (\d+))\n(?:Nonce: ([a-zA-Z0-9]+))\n(?:Issued At: (.+))(?:\nExpiration Time: (.+))?(?:\nNot Before: (.+))?(?:\nRequest ID: (.+))?/,{uri:1,version:2,chainId:3,nonce:4,issuedAt:5,expirationTime:6,notBefore:7,requestId:8});async function cg(e,t){const{address:n,domain:r,message:i,nonce:a,scheme:o,signature:s,time:l=new Date,...c}=t,u=function(e){var t,n,r,i,a;const{scheme:o,statement:s,...l}=null!==(t=null===(n=e.match(sg))||void 0===n?void 0:n.groups)&&void 0!==t?t:{},{chainId:c,expirationTime:u,issuedAt:d,notBefore:h,requestId:f,...p}=null!==(r=null===(i=e.match(lg))||void 0===i?void 0:i.groups)&&void 0!==r?r:{},g=null===(a=e.split("Resources:")[1])||void 0===a?void 0:a.split("\n- ").slice(1);return{...l,...p,...c?{chainId:Number(c)}:{},...u?{expirationTime:new Date(u)}:{},...d?{issuedAt:new Date(d)}:{},...h?{notBefore:new Date(h)}:{},...f?{requestId:f}:{},...g?{resources:g}:{},...o?{scheme:o}:{},...s?{statement:s}:{}}}(i);if(!u.address)return!1;const d=function(e){const{address:t,domain:n,message:r,nonce:i,scheme:a,time:o=new Date}=e;if(n&&r.domain!==n)return!1;if(i&&r.nonce!==i)return!1;if(a&&r.scheme!==a)return!1;if(r.expirationTime&&o>=r.expirationTime)return!1;if(r.notBefore&&o<r.notBefore)return!1;try{if(!r.address)return!1;if(t&&!(0,wu.h)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:u,nonce:a,scheme:o,time:l});if(!d)return!1;const h=$p(i);return Zp(e,{address:u.address,hash:h,signature:s,...c})}function ug(e){return{call:t=>(0,vd.T)(e,t),createAccessList:t=>Bd(e,t),createBlockFilter:()=>async function(e){const t=Fd(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}(e),createContractEventFilter:t=>qd(e,t),createEventFilter:t=>Xd(e,t),createPendingTransactionFilter:()=>$d(e),estimateContractGas:t=>async function(e,t){const{abi:n,address:r,args:i,functionName:a,dataSuffix:o,...s}=t,l=(0,Au.p)({abi:n,args:i,functionName:a});try{return await Rc(e,Jc,"estimateGas")({data:`${l}${o?o.replace("0x",""):""}`,to:r,...s})}catch(c){const e=s.account?(0,tc.J)(s.account):void 0;throw qu(c,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:null===e||void 0===e?void 0:e.address})}}(e,t),estimateGas:t=>Jc(e,t),getBalance:t=>Qc(e,t),getBlobBaseFee:()=>async function(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}(e),getBlock:t=>Vc(e,t),getBlockNumber:t=>eh(e,t),getBlockTransactionCount:t=>async function(e){let{blockHash:t,blockNumber:n,blockTag:r="latest"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=void 0!==n?(0,lc.cK)(n):void 0;let a;return a=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||r]},{dedupe:Boolean(i)}),(0,oc.ME)(a)}(e,t),getBytecode:t=>th(e,t),getChainId:()=>sc(e),getCode:t=>th(e,t),getContractEvents:t=>ch(e,t),getEip712Domain:t=>async function(e,t){const{address:n,factory:r,factoryData:i}=t;try{const[t,a,o,s,l,c,u]=await Rc(e,xd,"readContract")({abi:dh,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:a,version:o,chainId:Number(s),verifyingContract:l,salt:c},extensions:u,fields:t}}catch(a){const e=a;if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new uh({address:n});throw e}}(e,t),getEnsAddress:t=>async function(e,t){const{blockNumber:n,blockTag:r,coinType:i,name:a,gatewayUrls:o,strict:s}=t,{chain:l}=e,c=(()=>
2{if(t.universalResolverAddress)return t.universalResolverAddress;if(!l)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,cd.M)({blockNumber:n,chain:l,contract:"ensUniversalResolver"})})(),u=null===l||void 0===l?void 0:l.ensTlds;if(u&&!u.some((e=>a.endsWith(e))))return null;try{const t=(0,Au.p)({abi:sd.Rm,functionName:"addr",...null!=i?{args:[gd(a),BigInt(i)]}:{args:[gd(a)]}}),s={address:c,abi:sd.Ag,functionName:"resolve",args:[(0,lc.nj)(bd(a)),t,null!==o&&void 0!==o?o:[fd.J]],blockNumber:n,blockTag:r},l=Rc(e,xd,"readContract"),u=await l(s);if("0x"===u[0])return null;const d=(0,ld.e)({abi:sd.Rm,args:null!=i?[gd(a),BigInt(i)]:void 0,functionName:"addr",data:u[0]});return"0x"===d||"0x00"===(0,ud.B)(d)?null:d}catch(d){if(s)throw d;if(hd(d,"resolve"))return null;throw d}}(e,t),getEnsAvatar:t=>async function(e,t){let{blockNumber:n,blockTag:r,assetGatewayUrls:i,name:a,gatewayUrls:o,strict:s,universalResolverAddress:l}=t;const c=await Rc(e,jd,"getEnsText")({blockNumber:n,blockTag:r,key:"avatar",name:a,universalResolverAddress:l,gatewayUrls:o,strict:s});if(!c)return null;try{return await Md(e,{record:c,gatewayUrls:i})}catch{return null}}(e,t),getEnsName:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:i,gatewayUrls:a,strict:o,universalResolverAddress:s}=t,l=s;if(!l){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");l=(0,cd.M)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const c=`${n.toLowerCase().substring(2)}.addr.reverse`;try{const t={address:l,abi:sd.oX,functionName:"reverse",args:[(0,lc.nj)(bd(c))],blockNumber:r,blockTag:i},o=Rc(e,xd,"readContract"),[s,u]=a?await o({...t,args:[...t.args,a]}):await o(t);return n.toLowerCase()!==u.toLowerCase()?null:s}catch(u){if(o)throw u;if(hd(u,"reverse"))return null;throw u}}(e,t),getEnsResolver:t=>async function(e,t){const{blockNumber:n,blockTag:r,name:i}=t,{chain:a}=e,o=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw new Error("client chain not configured. universalResolverAddress is required.");return(0,cd.M)({blockNumber:n,chain:a,contract:"ensUniversalResolver"})})(),s=null===a||void 0===a?void 0:a.ensTlds;if(s&&!s.some((e=>i.endsWith(e))))throw new Error(`${i} is not a valid ENS TLD (${null===s||void 0===s?void 0:s.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);const[l]=await Rc(e,xd,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,lc.nj)(bd(i))],blockNumber:n,blockTag:r});return l}(e,t),getEnsText:t=>jd(e,t),getFeeHistory:t=>hh(e,t),estimateFeesPerGas:t=>async function(e,t){return qc(e,t)}(e,t),getFilterChanges:e=>fh(0,e),getFilterLogs:e=>async function(e,t){var n;let{filter:r}=t;const i=null!==(n=r.strict)&&void 0!==n&&n,a=(await r.request({method:"eth_getFilterLogs",params:[r.id]})).map((e=>yu(e)));return r.abi?sh({abi:r.abi,logs:a,strict:i}):a}(0,e),getGasPrice:()=>Gc(e),getLogs:t=>lh(e,t),getProof:t=>ph(e,t),estimateMaxPriorityFeePerGas:t=>async function(e,t){return Yc(e,t)}(e,t),getStorageAt:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:i="latest",slot:a}=t;const o=void 0!==r?(0,lc.cK)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[n,a,o||i]})}(e,t),getTransaction:t=>gh(e,t),getTransactionConfirmations:t=>async function(e,t){let{hash:n,transactionReceipt:r}=t;const[i,a]=await Promise.all([Rc(e,eh,"getBlockNumber")({}),n?Rc(e,gh,"getTransaction")({hash:n}):void 0]),o=(null===r||void 0===r?void 0:r.blockNumber)||(null===a||void 0===a?void 0:a.blockNumber);return o?i-o+1n:0n}(e,t),getTransactionCount:t=>Zc(e,t),getTransactionReceipt:t=>mh(e,t),multicall:t=>async function(e,t){var n;const{allowFailure:r=!0,batchSize:i,blockNumber:a,blockTag:o,multicallAddress:s,stateOverride:l}=t,c=t.contracts,u=null!==i&&void 0!==i?i:"object"===typeof(null===(n=e.batch)||void 0===n?void 0:n.multicall)&&e.batch.multicall.batchSize||1024;let d=s;if(!d){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");d=(0,cd.M)({blockNumber:a,chain:e.chain,contract:"multicall3"})}const h=[[]];let f=0,p=0;for(let b=0;b<c.length;b++){const{abi:e,address:t,args:n,functionName:i}=c[b];try{const r=(0,Au.p)({abi:e,args:n,functionName:i});p+=(r.length-2)/2,u>0&&p>u&&h[f].length>
20&&(f++,p=(r.length-2)/2,h[f]=[]),h[f]=[...h[f],{allowFailure:!0,callData:r,target:t}]}catch(y){const a=qu(y,{abi:e,address:t,args:n,docsPath:"/docs/contract/multicall",functionName:i});if(!r)throw a;h[f]=[...h[f],{allowFailure:!0,callData:"0x",target:t}]}}const g=await Promise.allSettled(h.map((t=>Rc(e,xd,"readContract")({abi:sd.v2,address:d,args:[t],blockNumber:a,blockTag:o,functionName:"aggregate3",stateOverride:l})))),m=[];for(let b=0;b<g.length;b++){const e=g[b];if("rejected"===e.status){if(!r)throw e.reason;for(let t=0;t<h[b].length;t++)m.push({status:"failure",error:e.reason,result:void 0});continue}const t=e.value;for(let n=0;n<t.length;n++){const{returnData:e,success:i}=t[n],{callData:a}=h[b][n],{abi:o,address:s,functionName:l,args:u}=c[m.length];try{if("0x"===a)throw new Su.O;if(!i)throw new Gu.$S({data:e});const t=(0,ld.e)({abi:o,args:u,data:e,functionName:l});m.push(r?{result:t,status:"success"}:t)}catch(y){const e=qu(y,{abi:o,address:s,args:u,docsPath:"/docs/contract/multicall",functionName:l});if(!r)throw e;m.push({error:e,result:void 0,status:"failure"})}}}if(m.length!==c.length)throw new Sl.C("multicall results mismatch");return m}(e,t),prepareTransactionRequest:t=>fu(e,t),readContract:t=>xd(e,t),sendRawTransaction:t=>pu(e,t),simulate:t=>bh(e,t),simulateBlocks:t=>bh(e,t),simulateCalls:t=>qp(e,t),simulateContract:t=>async function(e,t){const{abi:n,address:r,args:i,dataSuffix:a,functionName:o,...s}=t,l=s.account?(0,tc.J)(s.account):e.account,c=(0,Au.p)({abi:n,args:i,functionName:o});try{const{data:u}=await Rc(e,vd.T,"call")({batch:!1,data:`${c}${a?a.replace("0x",""):""}`,to:r,...s,account:l});return{result:(0,ld.e)({abi:n,args:i,functionName:o,data:u||"0x"}),request:{abi:n.filter((e=>"name"in e&&e.name===t.functionName)),address:r,args:i,dataSuffix:a,functionName:o,...s,account:l}}}catch(u){throw qu(u,{abi:n,address:r,args:i,docsPath:"/docs/contract/simulateContract",functionName:o,sender:null===l||void 0===l?void 0:l.address})}}(e,t),verifyMessage:t=>async function(e,t){let{address:n,message:r,factory:i,factoryData:a,signature:o,...s}=t;return Zp(e,{address:n,factory:i,factoryData:a,hash:$p(r),signature:o,...s})}(e,t),verifySiweMessage:t=>cg(e,t),verifyTypedData:t=>async function(e,t){const{address:n,factory:r,factoryData:i,signature:a,message:o,primaryType:s,types:l,domain:c,...u}=t;return Zp(e,{address:n,factory:r,factoryData:i,hash:eg({message:o,primaryType:s,types:l,domain:c}),signature:a,...u})}(e,t),uninstallFilter:e=>Xp(0,e),waitForTransactionReceipt:t=>async function(e,t){let{confirmations:n=1,hash:r,onReplaced:i,pollingInterval:a=e.pollingInterval,retryCount:o=6,retryDelay:s=e=>{let{count:t}=e;return 200*(1<<t)},timeout:l=18e4}=t;const c=(0,Cu.A)(["waitForTransactionReceipt",e.uid,r]);let u,d,h,f=!1;const{promise:p,resolve:g,reject:m}=(0,Hu.Y)(),y=l?setTimeout((()=>m(new Oc.WA({hash:r}))),l):void 0,b=Uu(c,{onReplaced:i,resolve:g,reject:m},(t=>{const i=Rc(e,og,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:a,async onBlockNumber(a){const l=e=>{clearTimeout(y),i(),e(),b()};let c=a;if(!f)try{if(h){if(n>1&&(!h.blockNumber||c-h.blockNumber+1n<n))return;return void l((()=>t.resolve(h)))}if(u||(f=!0,await Qu((async()=>{u=await Rc(e,gh,"getTransaction")({hash:r}),u.blockNumber&&(c=u.blockNumber)}),{delay:s,retryCount:o}),f=!1),h=await Rc(e,mh,"getTransactionReceipt")({hash:r}),n>1&&(!h.blockNumber||c-h.blockNumber+1n<n))return;l((()=>t.resolve(h)))}catch(p){if(p instanceof Oc.Kz||p instanceof Oc.Kc){if(!u)return void(f=!1);try{d=u,f=!0;const r=await Qu((()=>Rc(e,Vc,"getBlock")({blockNumber:c,includeTransactions:!0})),{delay:s,retryCount:o,shouldRetry:e=>{let{error:t}=e;return t instanceof Uc}});f=!1;const i=r.transactions.find((e=>{let{from:t,nonce:n}=e;return t===d.from&&n===d.nonce}));if(!i)return;if(h=await Rc(e,mh,"getTransactionReceipt")({hash:i.hash}),n>1&&(!h.blockNumber||c-h.blockNumber+1n<n))return;let a="replaced";i.to===d.to&&i.value===d.value&&i.input===d.input?a="repriced":i.from===i.to&&0n===i.value&&(a="cancelled"),l((()=>{var e;null===(e=t.onReplaced)||void 0===e||e.call(t,{reason:a,replacedTransaction:d,transaction:i,transactionReceipt:h}),t.resolve(h)}))}catch(g){l((()=>t.reject(g)))}}else l((()=>t.reject(p)))}}})}));return p}(e,t),watchBlocks:t=>function(e,t){let{blockTag:n="latest",emitMissed:r=!1,emitOnBegin:i=!1,onBlock:a,onError:o,includeTransactions:s,poll:l,pollingInterval:c=e.pollingInterval}=t;const u="undefined"!==typeof l?l:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
2onfig.type),d=null!==s&&void 0!==s&&s;let h;return u?Uu((0,Cu.A)(["watchBlocks",e.uid,n,r,i,d,c]),{onBlock:a,onError:o},(t=>Wu((async()=>{try{var i,a;const s=await Rc(e,Vc,"getBlock")({blockTag:n,includeTransactions:d});if(null!==s.number&&null!=(null===(i=h)||void 0===i?void 0:i.number)){if(s.number===h.number)return;if(s.number-h.number>1&&r)for(let n=(null===(o=h)||void 0===o?void 0:o.number)+1n;n<s.number;n++){var o;const r=await Rc(e,Vc,"getBlock")({blockNumber:n,includeTransactions:d});t.onBlock(r,h),h=r}}(null==(null===(a=h)||void 0===a?void 0:a.number)||"pending"===n&&null==(null===s||void 0===s?void 0:s.number)||null!==s.number&&s.number>h.number)&&(t.onBlock(s,h),h=s)}catch(l){var s;null===(s=t.onError)||void 0===s||s.call(t,l)}}),{emitOnBegin:i,interval:c}))):(()=>{let t=!0,r=!0,s=()=>t=!1;return(async()=>{try{i&&Rc(e,Vc,"getBlock")({blockTag:n,includeTransactions:d}).then((e=>{t&&r&&(a(e,void 0),r=!1)}));const l=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),{unsubscribe:c}=await l.subscribe({params:["newHeads"],async onData(n){if(!t)return;const i=await Rc(e,Vc,"getBlock")({blockNumber:n.blockNumber,includeTransactions:d}).catch((()=>{}));t&&(a(i,h),r=!1,h=i)},onError(e){null===o||void 0===o||o(e)}});s=c,t||s()}catch(l){null===o||void 0===o||o(l)}})(),()=>s()})()}(e,t),watchBlockNumber:t=>og(e,t),watchContractEvent:t=>function(e,t){const{abi:n,address:r,args:i,batch:a=!0,eventName:o,fromBlock:s,onError:l,onLogs:c,poll:u,pollingInterval:d=e.pollingInterval,strict:h}=t;return("undefined"!==typeof u?u:"bigint"===typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
2onfig.type))?(()=>{const t=null!==h&&void 0!==h&&h;return Uu((0,Cu.A)(["watchContractEvent",r,i,a,e.uid,o,d,t,s]),{onLogs:c,onError:l},(l=>{let c,u;void 0!==s&&(c=s-1n);let h=!1;const f=Wu((async()=>{if(h)try{let s;if(u)s=await Rc(e,fh,"getFilterChanges")({filter:u});else{const a=await Rc(e,eh,"getBlockNumber")({});s=c&&c<a?await Rc(e,ch,"getContractEvents")({abi:n,address:r,args:i,eventName:o,fromBlock:c+1n,toBlock:a,strict:t}):[],c=a}if(0===s.length)return;if(a)l.onLogs(s);else for(const e of s)l.onLogs([e])}catch(f){var d;u&&f instanceof Ml&&(h=!1),null===(d=l.onError)||void 0===d||d.call(l,f)}else{try{u=await Rc(e,qd,"createContractEventFilter")({abi:n,address:r,args:i,eventName:o,strict:t,fromBlock:s})}catch{}h=!0}}),{emitOnBegin:!0,interval:d});return async()=>{u&&await Rc(e,Xp,"uninstallFilter")({filter:u}),f()}}))})():(()=>{const t=null!==h&&void 0!==h&&h,s=(0,Cu.A)(["watchContractEvent",r,i,a,e.uid,o,d,t]);let u=!0,f=()=>u=!1;return Uu(s,{onLogs:c,onError:l},(t=>((async()=>{try{const a=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),s=o?Gd({abi:n,eventName:o,args:i}):[],{unsubscribe:l}=await a.subscribe({params:["logs",{address:r,topics:s}],onData(e){if(!u)return;const r=e.result;try{const{eventName:e,args:i}=ah({abi:n,data:r.data,topics:r.topics,strict:h}),a=yu(r,{args:i,eventName:e});t.onLogs([a])}catch(a){let e,n;if(a instanceof Su.fo||a instanceof Su.l3){var i;if(h)return;e=a.abiItem.name,n=null===(i=a.abiItem.inputs)||void 0===i?void 0:i.some((e=>!("name"in e&&e.name)))}const o=yu(r,{args:n?[]:{},eventName:e});t.onLogs([o])}},onError(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}});f=l,u||f()}catch(a){null===l||void 0===l||l(a)}})(),()=>f())))})()}(e,t),watchEvent:t=>function(e,t){let{address:n,args:r,batch:i=!0,event:a,events:o,fromBlock:s,onError:l,onLogs:c,poll:u,pollingInterval:d=e.pollingInterval,strict:h}=t;const f="undefined"!==typeof u?u:"bigint"===typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
2onfig.type),p=null!==h&&void 0!==h&&h;return f?Uu((0,Cu.A)(["watchEvent",n,r,i,e.uid,a,d,s]),{onLogs:c,onError:l},(t=>{let l,c;void 0!==s&&(l=s-1n);let u=!1;const h=Wu((async()=>{if(u)try{let s;if(c)s=await Rc(e,fh,"getFilterChanges")({filter:c});else{const t=await Rc(e,eh,"getBlockNumber")({});s=l&&l!==t?await Rc(e,lh,"getLogs")({address:n,args:r,event:a,events:o,fromBlock:l+1n,toBlock:t}):[],l=t}if(0===s.length)return;if(i)t.onLogs(s);else for(const e of s)t.onLogs([e])}catch(h){var d;c&&h instanceof Ml&&(u=!1),null===(d=t.onError)||void 0===d||d.call(t,h)}else{try{c=await Rc(e,Xd,"createEventFilter")({address:n,args:r,event:a,events:o,strict:p,fromBlock:s})}catch{}u=!0}}),{emitOnBegin:!0,interval:d});return async()=>{c&&await Rc(e,Xp,"uninstallFilter")({filter:c}),h()}})):(()=>{let t=!0,i=()=>t=!1;return(async()=>{try{const s=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),u=null!==o&&void 0!==o?o:a?[a]:void 0;let d=[];if(u){const e=u.flatMap((e=>Gd({abi:[e],eventName:e.name,args:r})));d=[e],a&&(d=d[0])}const{unsubscribe:f}=await s.subscribe({params:["logs",{address:n,topics:d}],onData(e){if(!t)return;const n=e.result;try{const{eventName:e,args:t}=ah({abi:null!==u&&void 0!==u?u:[],data:n.data,topics:n.topics,strict:p}),r=yu(n,{args:t,eventName:e});c([r])}catch(i){let e,t;if(i instanceof Su.fo||i instanceof Su.l3){var r;if(h)return;e=i.abiItem.name,t=null===(r=i.abiItem.inputs)||void 0===r?void 0:r.some((e=>!("name"in e&&e.name)))}const a=yu(n,{args:t?[]:{},eventName:e});c([a])}},onError(e){null===l||void 0===l||l(e)}});i=f,t||i()}catch(s){null===l||void 0===l||l(s)}})(),()=>i()})()}(e,t),watchPendingTransactions:t=>function(e,t){let{batch:n=!0,onError:r,onTransactions:i,poll:a,pollingInterval:o=e.pollingInterval}=t;return("undefined"!==typeof a?a:"webSocket"!==e.transport.type)?Uu((0,Cu.A)(["watchPendingTransactions",e.uid,n,o]),{onTransactions:i,onError:r},(t=>{let r;const i=Wu((async()=>{try{if(!r)try{return void(r=await Rc(e,$d,"createPendingTransactionFilter")({}))}catch(o){throw i(),o}const a=await Rc(e,fh,"getFilterChanges")({filter:r});if(0===a.length)return;if(n)t.onTransactions(a);else for(const e of a)t.onTransactions([e])}catch(o){var a;null===(a=t.onError)||void 0===a||a.call(t,o)}}),{emitOnBegin:!0,interval:o});return async()=>{r&&await Rc(e,Xp,"uninstallFilter")({filter:r}),i()}})):(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:a}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const n=e.result;i([n])},onError(e){null===r||void 0===r||r(e)}});n=a,t||n()}catch(a){null===r||void 0===r||r(a)}})(),()=>n()})()}(e,t)}}function dg(e){const{key:t="public",name:n="Public Client"}=e;return ac({...e,key:t,name:n,type:"publicClient"}).extend(ug)}function hg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{key:n="fallback",name:r="Fallback",rank:i=!1,shouldThrow:a=fg,retryCount:o,retryDelay:s}=t;return t=>{let{chain:l,pollingInterval:c=4e3,timeout:u,...d}=t,h=e,f=()=>{};const p=Zu({key:n,name:r,async request(e){let t,{method:n,params:r}=e;const i=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const o=h[e]({...d,chain:l,retryCount:0,timeout:u});try{const e=await o.request({method:n,params:r});return f({method:n,params:r,response:e,transport:o,status:"success"}),e}catch(s){if(f({error:s,method:n,params:r,transport:o,status:"error"}),a(s))throw s;if(e===h.length-1)throw s;if(null!==t&&void 0!==t||(t=h.slice(e+1).some((e=>{const{include:t,exclude:r}=e({chain:l}).config.methods||{};return t?t.includes(n):!r||!r.includes(n)}))),!t)throw s;return i(e+1)}};return i()},retryCount:o,retryDelay:s,type:"fallback"},{onResponse:e=>f=e,transports:h.map((e=>e({chain:l,retryCount:0})))});if(i){var g;const e="object"===typeof i?i:{};!function(e){let{chain:t,interval:n=4e3,onTransports:r,ping:i,sampleCount:a=10,timeout:o=1e3,transports:s,weights:l={}}=e;const{stability:c=.7,latency:u=.3}=l,d=[],h=async()=>{const e=await Promise.all(s.map((async e=>{const n=e({chain:t,retryCount:0,timeout:o}),r=Date.now();let a,s;try{await(i?i({transport:n}):n.request({method:"net_listening"})),s=1}catch{s=0}finally{a=Date.now()}return{latency:a-r,success:s}})));d.push(e),d.length>a&&d.shift();const l=Math.max(...d.map((e=>Math.max(...e.map((e=>{let{latency:t}=e;return t})))))),f=s.map(((e,t)=>{const n=d.map((e=>e[t].latency)),r=1-n.reduce(((e,t)=>e+t),0)/n.length/l,i=d.map((e=>e[t].success)),a=i.reduce(((e,t)=>e+t),0)/i.length;return 0===a?[0,t]:[u*r+c*a,t]})).sort(((e,t)=>t[0]-e[0]));r(f.map((e=>{let[,t]=e;return s[t]}))),await zu(n),h()};h()}({chain:l,interval:null!==(g=e.interval)&&void 0!==g?g:c,onTransports:e=>
2h=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:h,weights:e.weights})}return p}}function fg(e){return!(!("code"in e)||"number"!==typeof e.code||e.code!==Bl.code&&e.code!==zl.code&&!Cc.A7.nodeMessage.test(e.message)&&5e3!==e.code)}class pg extends Sl.C{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var gg=n(5911);function mg(e,t){let{errorInstance:n=new Error("timed out"),timeout:r,signal:i}=t;return new Promise(((t,a)=>{(async()=>{let o;try{const s=new AbortController;r>0&&(o=setTimeout((()=>{i?s.abort():a(n)}),r)),t(await e({signal:(null===s||void 0===s?void 0:s.signal)||null}))}catch(s){"AbortError"===(null===s||void 0===s?void 0:s.name)&&a(n),a(s)}finally{clearTimeout(o)}})()}))}function yg(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const bg=yg();function vg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async request(n){var r,i,a;const{body:o,onRequest:s=t.onRequest,onResponse:l=t.onResponse,timeout:c=(null!==(r=t.timeout)&&void 0!==r?r:1e4)}=n,u={...null!==(i=t.fetchOptions)&&void 0!==i?i:{},...null!==(a=n.fetchOptions)&&void 0!==a?a:{}},{headers:d,method:h,signal:f}=u;try{var p;const t=await mg((async t=>{var n,r,i;let{signal:a}=t;const l={...u,body:Array.isArray(o)?(0,Cu.A)(o.map((e=>{var t;return{jsonrpc:"2.0",id:null!==(t=e.id)&&void 0!==t?t:bg.take(),...e}}))):(0,Cu.A)({jsonrpc:"2.0",id:null!==(n=o.id)&&void 0!==n?n:bg.take(),...o}),headers:{"Content-Type":"application/json",...d},method:h||"POST",signal:f||(c>0?a:null)},p=new Request(e,l),g=null!==(r=await(null===s||void 0===s?void 0:s(p,l)))&&void 0!==r?r:{...l,url:e};return await fetch(null!==(i=g.url)&&void 0!==i?i:e,g)}),{errorInstance:new Pl.MU({body:o,url:e}),timeout:c,signal:!0});let n;if(l&&await l(t),null!==(p=t.headers.get("Content-Type"))&&void 0!==p&&p.startsWith("application/json"))n=await t.json();else{n=await t.text();try{n=JSON.parse(n||"{}")}catch(g){if(t.ok)throw g;n={error:n}}}if(!t.ok)throw new Pl.Ci({body:o,details:(0,Cu.A)(n.error)||t.statusText,headers:t.headers,status:t.status,url:e});return n}catch(g){if(g instanceof Pl.Ci)throw g;if(g instanceof Pl.MU)throw g;throw new Pl.Ci({body:o,cause:g,url:e})}}}}const xg=new Map;async function wg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{keepAlive:r,reconnect:i}=t;return async function(e){const{getSocket:t,keepAlive:n=!0,key:r="socket",reconnect:i=!0,url:a}=e,{interval:o=3e4}="object"===typeof n?n:{},{attempts:s=5,delay:l=2e3}="object"===typeof i?i:{};let c=xg.get(`${r}:${a}`);if(c)return c;let u=0;const{schedule:d}=(0,gg.u)({id:`${r}:${a}`,fn:async()=>{const e=new Map,d=new Map;let h,f,p;return await async function r(){const g=await t({onClose(){for(const r of e.values()){var t;null===(t=r.onError)||void 0===t||t.call(r,new Pl.Oz({url:a}))}for(const e of d.values()){var n;null===(n=e.onError)||void 0===n||n.call(e,new Pl.Oz({url:a}))}e.clear(),d.clear(),i&&u<s&&setTimeout((async()=>{u++,await r().catch(console.error)}),l)},onError(t){var n;h=t;for(const r of e.values()){var a;null===(a=r.onError)||void 0===a||a.call(r,h)}for(const e of d.values()){var o;null===(o=e.onError)||void 0===o||o.call(e,h)}e.clear(),d.clear(),null===(n=c)||void 0===n||n.close(),i&&u<s&&setTimeout((async()=>{u++,await r().catch(console.error)}),l)},onOpen(){h=void 0,u=0},onResponse(t){const n="eth_subscription"===t.method,r=n?t.params.subscription:t.id,i=n?d:e,a=i.get(r);a&&a.onResponse(t),n||i.delete(r)}});return f=g,n&&(p&&clearInterval(p),p=setInterval((()=>{var e,t;return null===(e=(t=f).ping)||void 0===e?void 0:e.call(t)}),o)),g}(),h=void 0,c={close(){p&&clearInterval(p),f.close(),xg.delete(`${r}:${a}`)},get socket(){return f},request(t){var n;let{body:r,onError:i,onResponse:a}=t;h&&i&&i(h);const o=null!==(n=r.id)&&void 0!==n?n:bg.take(),s=e=>{var t;"number"===typeof e.id&&o!==e.id||("eth_subscribe"===r.method&&"string"===typeof e.result&&d.set(e.result,{onResponse:s,onError:i}),"eth_unsubscribe"===r.method&&d.delete(null===(t=r.params)||void 0===t?void 0:t[0]),a(e))};e.set(o,{onResponse:s,onError:i});try{f.request({body:{jsonrpc:"2.0",id:o,...r}})}catch(h){null===i||void 0===i||i(h)}},requestAsync(e){let{body:t,timeout:n=1e4}=e;return mg((()=>new Promise(((e,n)=>this.request({body:t,onError:n,onResponse:e})))),{errorInstance:new Pl.MU({body:t,url:a}),timeout:n})},requests:e,subscriptions:d,url:a},xg.set(`${r}:${a}`,c),[c]}}),[h,[f]]=await d();return f}({async getSocket(t){let{onClose:r,onError:i,onOpen:a,onResponse:o}=t;const s=await n.e(693).then(n.bind(n,47693)).then((e=>e.WebSocket)),l=new s(e);function c(){l.removeEventListener("close",c),l.removeEventListener("message",u),l.removeEventListener("error",i),l.removeEventListener("open",a),r()}function u(e){let{data:t}=e;try{const e=JSON.parse(t);o(e)}catch(n){i(n)}}l.addEventListener("close",c),l.addEventListener("message",u),l.addEventListener("error",i),l.addEventListener("open",a),l.readyState===s.CONNECTING&&await new Promise(((e,t)=>{l&&(l.onopen=e,l.onerror=t)}));const{close:d}=l;return Object.assign(l,{close(){d.bind(l)(),c()},ping(){try{if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new Pl.Pr({url:l.url,cause:new Pl.Oz({url:l.url})});const e={jsonrpc:"2.0",method:"net_version",params:[]};l.send(JSON.stringify(e))}catch(e){i(e)}},request(e){let{body:t}=e;if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new Pl.Pr({body:t,url:l.url,cause:new Pl.Oz({url:l.url})});return l.send(JSON.stringify(t))}})},keepAlive:r,reconnect:i,url:e})}function kg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{keepAlive:n,key:r="webSocket",methods:i,name:a="WebSocket JSON-RPC",reconnect:o,retryDelay:s}=t;return l=>{var c,u,d;let{chain:h,retryCount:f,timeout:p}=l;const g=null!==(c=t.retryCount)&&void 0!==c?c:f,m=null!==(u=null!==p&&void 0!==p?p:t.timeout)&&void 0!==u?u:1e4,y=e||(null===h||void 0===h||null===(d=h.rpcUrls.default.webSocket)||void 0===d?void 0:d[0]),b={keepAlive:n,reconnect:o};if(!y)throw new pg;return Zu({key:r,methods:i,name:a,async request(e){let{method:t,params:n}=e;const r={method:t,params:n},i=await wg(y,b),{error:a,result:o}=await i.requestAsync({body:r,timeout:m});if(a)throw new Pl.J8({body:r,error:a,url:y});return o},retryCount:g,retryDelay:s,timeout:m,type:"webSocket"},{getSocket:()=>async function(e){const t=await wg(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})}(y),getRpcClient:()=>wg(y,b),async subscribe(e){let{params:t,onData:n,onError:r}=e;const i=await wg(y,b),{result:a}=await new Promise(((e,a)=>i.request({body:{method:"eth_subscribe",params:t},onError(e){a(e),null===r||void 0===r||r(e)},onResponse(t){if(t.error)return a(t.error),void(null===r||void 0===r||r(t.error));"number"!==typeof t.id?"eth_subscription"===t.method&&n(t.params):e(t)}})));return{subscriptionId:a,unsubscribe:async()=>new Promise((e=>i.request({body:{method:"eth_unsubscribe",params:[a]},onResponse:e})))}}})}}const Ag=e=>(t,n,r)=>{const i=r.subscribe;
2r.subscribe=(e,t,n)=>{let a=e;if(t){const i=(null==n?void 0:n.equalityFn)||Object.is;let o=e(r.getState());a=n=>{const r=e(n);if(!i(o,r)){const e=o;t(o=r,e)}},(null==n?void 0:n.fireImmediately)&&t(o,o)}return i(a)};return e(t,n,r)};function Eg(e,t){let n;try{n=e()}catch($j){return}return{getItem:e=>{var r;const i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(r=n.getItem(e))?r:null;return a instanceof Promise?a.then(i):i(a)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}const Sg=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Sg(e)(n),catch(e){return this}}}catch(n){return{then(e){return this},catch:e=>Sg(e)(n)}}},Pg=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch($j){}if(!c)return e((function(){console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...arguments)}),r,i);const u=Sg(a.serialize),d=()=>{const e=a.partialize({...r()});let t;const n=u({state:e,version:a.version}).then((e=>c.setItem(a.name,e))).catch((e=>{t=e}));if(t)throw t;return n},h=i.setState;i.setState=(e,t)=>{h(e,t),d()};const f=e((function(){n(...arguments),d()}),r,i);let p;const g=()=>{var e;if(!c)return;o=!1,s.forEach((e=>e(r())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,r()))||void 0;return Sg(c.getItem.bind(c))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!==typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=a.merge(e,null!=(t=r())?t:f),n(p,!0),d()})).then((()=>{null==t||t(p,void 0),o=!0,l.forEach((e=>e(p)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},g(),p||f})(e,t)):((e,t)=>(n,r,i)=>{let a={storage:Eg((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((function(){console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...arguments)}),r,i);const u=()=>{const e=a.partialize({...r()});return c.setItem(a.name,{state:e,version:a.version})},d=i.setState;i.setState=(e,t)=>{d(e,t),u()};const h=e((function(){n(...arguments),u()}),r,i);let f;i.getInitialState=()=>h;const p=()=>{var e,t;if(!c)return;o=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:h)}));const i=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=r())?e:h))||void 0;return Sg(c.getItem.bind(c))(a.name).then((e=>{if(e){if("number"!==typeof e.version||e.version===a.version)return[!1,e.state];if(a.migrate)return[!0,a.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]})).then((e=>{var t;const[i,o]=e;if(f=a.merge(o,null!=(t=r())?t:h),n(f,!0),i)return u()})).then((()=>{null==i||i(f,void 0),f=r(),o=!0,l.forEach((e=>e(f)))})).catch((e=>{null==i||i(void 0,e)}))};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||p(),f||h})(e,t),Cg=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"===typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!==typeof i||null===i)?i:Object.assign({}
2,t,i),n.forEach((n=>n(t,e)))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},o=t=e(r,i,a);return a},Og=e=>e?Cg(e):Cg;function Tg(e,t){if(Object.is(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var Ng=class extends Error{constructor(e){let{activeChain:t,targetChain:n}=e;super(`Chain mismatch: Expected "${n}", received "${t}".`),this.name="ChainMismatchError"}},_g=(Error,class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}}
2),Ig=(Error,class extends Error{constructor(e){let{connector:t}=e;super(`"${t.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}});function Rg(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!=t.length)return!1;for(r=n;0!==r--;)if(!Rg(e[r],t[r]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(n&&!Rg(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}var Mg=(e,t)=>{let{find:n,replace:r}=t;return e&&n(e)?r(e):"object"!==typeof e?e:Array.isArray(e)?e.map((e=>Mg(e,{find:n,replace:r}))):e instanceof Object?Object.entries(e).reduce(((e,t)=>{let[i,a]=t;return{...e,[i]:Mg(a,{find:n,replace:r})}}),{}):e};function jg(e){const t=JSON.parse(e),n=Mg(t,{find:e=>"string"===typeof e&&e.startsWith("#bigint."),replace:e=>BigInt(e.replace("#bigint.",""))});return n}function Lg(e){return{accessList:e.accessList,account:e.account,blockNumber:e.blockNumber,blockTag:e.blockTag,data:e.data,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,to:e.to,value:e.value}}function Bg(e,t){return e.slice(0,t).join(".")||"."}function Fg(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function Dg(e,t,n,r){return JSON.stringify(e,function(e,t){const n="function"===typeof e,r="function"===typeof t,i=[],a=[];return function(o,s){if("object"===typeof s)if(i.length){const e=Fg(i,this);0===e?i[i.length]=this:(i.splice(e),a.splice(e)),a[a.length]=o;const n=Fg(i,s);if(0!==n)return r?t.call(this,o,s,Bg(a,n)):`[ref=${Bg(a,n)}]`}else i[0]=s,a[0]=o;return n?e.call(this,o,s):s}}(((e,n)=>{const r="bigint"===typeof n?`#bigint.${n.toString()}`:n;return(null===t||void 0===t?void 0:t(e,r))||r}),r),null!==n&&void 0!==n?n:void 0)}var Ug={getItem:e=>"",setItem:(e,t)=>null,removeItem:e=>null};function zg(e){let{deserialize:t=jg,key:n="wagmi",serialize:r=Dg,storage:i}=e;return{...i,getItem:function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const a=i.getItem(`${n}.${e}`);try{return a?t(a):r}catch(o){return console.warn(o),r}},setItem:(e,t)=>{if(null===t)i.removeItem(`${n}.${e}`);else try{i.setItem(`${n}.${e}`,r(t))}catch(a){console.error(a)}},removeItem:e=>i.removeItem(`${n}.${e}`)}}var Wg,Hg,Vg,Gg,Yg,qg="store",Xg=class{constructor(e){let{autoConnect:t=!1,connectors:n=[new nd],publicClient:r,storage:i=zg({storage:"undefined"!==typeof window?window.localStorage:Ug}),logger:a={warn:console.warn},webSocketPublicClient:o}=e;ad(this,Vg),this.publicClients=new Map,this.webSocketPublicClients=new Map,ad(this,Wg,void 0),ad(this,Hg,void 0),this.args={autoConnect:t,connectors:n,logger:a,publicClient:r,storage:i,webSocketPublicClient:o};let s,l="disconnected";if(t)try{var c,u;const e=i.getItem(qg),t=null===e||void 0===e||null===(c=e.state)||void 0===c?void 0:c.data;l=null!==t&&void 0!==t&&t.account?"reconnecting":"connecting",s=null===t||void 0===t||null===(u=t.chain)||void 0===u?void 0:u.id}catch(oA){}const d="function"===typeof n?n():n;var h,f,p;d.forEach((e=>e.setStorage(i))),this.store=Og(Ag(Pg((()=>({connectors:d,publicClient:this.getPublicClient({chainId:s}),status:l,webSocketPublicClient:this.getWebSocketPublicClient({chainId:s})})),{name:qg,storage:i,partialize:e=>{var n,r;return{...t&&{data:{account:null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.account,chain:null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.chain}},chains:null===e||void 0===e?void 0:e.chains}},version:2}))),this.storage=i,od(this,Hg,null===i||void 0===i?void 0:i.getItem("wallet")),(h=this,f=Vg,p=Gg,rd(h,f,"access private method"),p).call(this),t&&"undefined"!==typeof window&&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}
2get lastUsedChainId(){var e;return null===(e=this.data)||void 0===e||null===(e=e.chain)||void 0===e?void 0:e.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(e){const t="function"===typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState((e=>({...e,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"})))}async destroy(){var e,t;this.connector&&await(null===(e=(t=this.connector).disconnect)||void 0===e?void 0:e.call(t)),od(this,Wg,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(id(this,Wg))return;od(this,Wg,!0),this.setState((e=>{var t;return{...e,status:null!==(t=e.data)&&void 0!==t&&t.account?"reconnecting":"connecting"}}));const e=id(this,Hg)?[...this.connectors].sort((e=>e.id===id(this,Hg)?-1:1)):this.connectors;let t=!1;for(const n of e){if(!n.ready||!n.isAuthorized)continue;if(!await n.isAuthorized())continue;const e=await n.connect();this.setState((t=>({...t,connector:n,chains:null===n||void 0===n?void 0:n.chains,data:e,status:"connected"}))),t=!0;break}return t||this.setState((e=>({...e,data:void 0,status:"disconnected"}))),od(this,Wg,!1),this.data}setConnectors(e){this.args={...this.args,connectors:e};const t="function"===typeof e?e():e;t.forEach((e=>e.setStorage(this.args.storage))),this.setState((e=>({...e,connectors:t})))}getPublicClient(){var e;let{chainId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.publicClients.get(-1);if(n&&(null===(e=n)||void 0===e?void 0:e.chain.id)===t)return n;if(n=this.publicClients.get(null!==t&&void 0!==t?t:-1),n)return n;const{publicClient:r}=this.args;return n="function"===typeof r?r({chainId:t}):r,this.publicClients.set(null!==t&&void 0!==t?t:-1,n),n}setPublicClient(e){var t;const n=null===(t=this.data)||void 0===t||null===(t=t.chain)||void 0===t?void 0:t.id;this.args={...this.args,publicClient:e},this.publicClients.clear(),this.setState((e=>({...e,publicClient:this.getPublicClient({chainId:n})})))}getWebSocketPublicClient(){var e;let{chainId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.webSocketPublicClients.get(-1);if(n&&(null===(e=n)||void 0===e?void 0:e.chain.id)===t)return n;if(n=this.webSocketPublicClients.get(null!==t&&void 0!==t?t:-1),n)return n;const{webSocketPublicClient:r}=this.args;return n="function"===typeof r?r({chainId:t}):r,n&&this.webSocketPublicClients.set(null!==t&&void 0!==t?t:-1,n),n}setWebSocketPublicClient(e){var t;const n=null===(t=this.data)||void 0===t||null===(t=t.chain)||void 0===t?void 0:t.id;this.args={...this.args,webSocketPublicClient:e},this.webSocketPublicClients.clear(),this.setState((e=>({...e,webSocketPublicClient:this.getWebSocketPublicClient({chainId:n})})))}setLastUsedConnector(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===(e=this.storage)||void 0===e||e.setItem("wallet",t)}};function $g(){if(!Yg)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return Yg}Wg=new WeakMap,Hg=new WeakMap,Vg=new WeakSet,Gg=function(){const e=e=>{this.setState((t=>({...t,data:{...t.data,...e}})))},t=()=>{this.clearState()},n=e=>{this.setState((t=>({...t,error:e})))};this.store.subscribe((e=>{let{connector:t}=e;return t}),((r,i)=>{var a,o,s,l,c,u;null===i||void 0===i||null===(a=i.off)||void 0===a||a.call(i,"change",e),null===i||void 0===i||null===(o=i.off)||void 0===o||o.call(i,"disconnect",t),null===i||void 0===i||null===(s=i.off)||void 0===s||s.call(i,"error",n),r&&(null===(l=r.on)||void 0===l||l.call(r,"change",e),null===(c=r.on)||void 0===c||c.call(r,"disconnect",t),null===(u=r.on)||void 0===u||u.call(r,"error",n))}));const{publicClient:r,webSocketPublicClient:i}=this.args;("function"===typeof r||"function"===typeof i)&&this.store.subscribe((e=>{var t;let{data:n}=e;return null===n||void 0===n||null===(t=n.chain)||void 0===t?void 0:t.id}),(e=>{this.setState((t=>({...t,publicClient:this.getPublicClient({chainId:e}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})})))}))};function Kg(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=$g();return e&&t.getPublicClient({chainId:e})||t.publicClient}async function Qg(){var e,t;let{chainId:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=$g();return await(null===(e=r.connector)||void 0===e||null===(t=e.getWalletClient)||void 0===t?void 0:t.call(e,{chainId:n}))||null}async function Jg(e){let{abi:t,address:n,args:r,chainId:i,dataSuffix:a,functionName:o,walletClient:s,...l}=e;const c=Kg({chainId:i}),u=null!==s&&void 0!==s?s:await Qg({chainId:i});if(!u)throw new hl;i&&rm({chainId:i});const{account:d,accessList:h,blockNumber:f,blockTag:p,gas:g,gasPrice:m,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,value:x}=Lg(l),{result:w,request:k}=await c.simulateContract({abi:t,address:n,functionName:o,args:r,account:d||u.account,accessList:h,blockNumber:f,blockTag:p,dataSuffix:a,gas:g,gasPrice:m,maxFeePerGas:y,maxPriorityFeePerGas:b,nonce:v,value:x});return{mode:"prepared",request:{...k,abi:t.filter((e=>"name"in e&&e.name===o)),chainId:i},result:w}}async function Zg(e){let{address:t,account:n,chainId:r,abi:i,args:a,functionName:o,blockNumber:s,blockTag:l}=e;return Kg({chainId:r}).readContract({abi:i,address:t,account:n,functionName:o,args:a,blockNumber:s,blockTag:l})}async function em(e){const t=await Qg({chainId:e.chainId});if(!t)throw new hl;let n;if(e.chainId&&rm({chainId:e.chainId}),"prepared"===e.mode)n=e.request;else{const{chainId:t,mode:r,...i}=e;n=(await Jg(i)).request}return{hash:await t.writeContract({...n,chain:e.chainId?{id:e.chainId}:null})}}function tm(){const{data:e,connector:t,status:n}=$g();switch(n){case"connected":return{address:null===e||void 0===e?void 0:e.account,connector:t,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:n};
2case"reconnecting":return{address:null===e||void 0===e?void 0:e.account,connector:t,isConnected:!(null===e||void 0===e||!e.account),isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:n};case"connecting":return{address:null===e||void 0===e?void 0:e.account,connector:t,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:n};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:n}}}function nm(){var e,t,n,r,i;const a=$g(),o=null===(e=a.data)||void 0===e||null===(e=e.chain)||void 0===e?void 0:e.id,s=null!==(t=a.chains)&&void 0!==t?t:[],l=null!==(n=[...(null===(r=a.publicClient)||void 0===r?void 0:r.chains)||[],...s].find((e=>e.id===o)))&&void 0!==n?n:{id:o,name:`Chain ${o}`,network:`${o}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:o?{...l,...null===(i=a.data)||void 0===i?void 0:i.chain,id:o}:void 0,chains:s}}function rm(e){let{chainId:t}=e;const{chain:n,chains:r}=nm(),i=null===n||void 0===n?void 0:n.id;var a,o,s,l;if(i&&t!==i)throw new Ng({activeChain:null!==(a=null===(o=r.find((e=>e.id===i)))||void 0===o?void 0:o.name)&&void 0!==a?a:`Chain ${i}`,targetChain:null!==(s=null===(l=r.find((e=>e.id===t)))||void 0===l?void 0:l.name)&&void 0!==s?s:`Chain ${t}`})}const im=r.createContext(void 0),am=r.createContext(!1);function om(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=im),window.ReactQueryClientContext):im)}const sm=function(){let{context:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=r.useContext(om(e,r.useContext(am)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},lm=e=>{let{client:t,children:n,context:i,contextSharing:a=!1}=e;r.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const o=om(i,a);return r.createElement(am.Provider,{value:!i&&a},r.createElement(o.Provider,{value:t},n))},cm=r.createContext(!1);cm.Provider;function um(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const dm=r.createContext(um());class hm extends Ds{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),Ts(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:"undefined"!==typeof e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Fs.batch((()=>{var t,n,r,i;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,o,s,l;null==(a=(o=this.mutateOptions).onError)||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}
2e.listeners&&this.listeners.forEach((e=>{let{listener:t}=e;t(this.currentResult)}))}))}}const fm=ve.useSyncExternalStore;function pm(){}class gm extends Ds{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),mm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ym(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ym(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Ts(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&bm(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const a=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){if(n.keepPreviousData)return!1;if(void 0!==n.placeholderData)return t.isPlaceholderData;if(!Ts(e.getCurrentResult(),t))return!0;return!1}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(){let{refetchPage:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(ms)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),gs||this.currentResult.isStale||!ys(this.options.staleTime))return;const e=bs(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!gs&&!1!==this.options.enabled&&ys(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||Us.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,r=this.options,i=this.currentResult,a=this.currentResultState,o=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,c=s?this.currentResult:this.previousQueryResult,{state:u}=e;let d,{dataUpdatedAt:h,error:f,errorUpdatedAt:p,fetchStatus:g,status:m}=u,y=!1,b=!1;if(t._optimisticResults){const i=this.hasListeners(),a=!i&&mm(e,t),o=i&&bm(e,n,t,r);(a||o)&&(g=Vs(e.options.networkMode)?"fetching":"paused",h||(m="loading")),"isRestoring"===t._optimisticResults&&(g="idle")}if(t.keepPreviousData&&!u.dataUpdatedAt&&null!=c&&c.isSuccess&&"error"!==m)d=c.data,h=c.dataUpdatedAt,m=c.status,y=!0;else if(t.select&&"undefined"!==typeof u.data)if(i&&u.data===(null==a?void 0:a.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(u.data),d=Ls(null==i?void 0:i.data,d,t),this.selectResult=d,this.selectError=null}catch(k){0,this.selectError=k}else d=u.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof d&&"loading"===m){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==o?void 0:o.placeholderData))e=i.data;else if(e="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof e)try{e=t.select(e),this.selectError=null}catch(k){0,this.selectError=k}"undefined"!==typeof e&&(m="success",d=Ls(null==i?void 0:i.data,e,t),b=!0)}this.selectError&&(f=this.selectError,d=this.selectResult,p=Date.now(),m="error");const v="fetching"===g,x="loading"===m,w="error"===m;return{status:m,fetchStatus:g,isLoading:x,isSuccess:"success"===m,isError:w,isInitialLoading:x&&v,data:d,dataUpdatedAt:h,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdate
2Count:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!x,isLoadingError:w&&0===u.dataUpdatedAt,isPaused:"paused"===g,isPlaceholderData:b,isPreviousData:y,isRefetchError:w&&0!==u.dataUpdatedAt,isStale:vm(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Ts(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"===typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Ys(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){Fs.batch((()=>{var t,n,r,i;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null);else if(e.onError){var a,o,s,l;null==(a=(o=this.options).onError)||a.call(o,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((e=>{let{listener:t}=e;t(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function mm(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&ym(e,t,t.refetchOnMount)}function ym(e,t,n){if(!1!==t.enabled){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&vm(e,t)}return!1}function bm(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&vm(e,n)}function vm(e,t){return e.isStaleByTime(t.staleTime)}var xm=r.createContext(void 0),wm=r.createContext(void 0);function km(e){let{children:t,config:n}=e;return r.createElement(xm.Provider,{children:r.createElement(lm,{children:t,client:n.queryClient,context:wm}),value:n})}function Am(){const e=r.useContext(xm);if(!e)throw new Error(["`useConfig` must be used within `WagmiConfig`.\n","Read more: https://wagmi.sh/react/WagmiConfig"].join("\n"));return e}var Em=ve.useSyncExternalStore;function Sm(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pm(e,t,n){return r=e,Array.isArray(r)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e;var r}function Cm(e){return JSON.stringify(e,((e,t)=>function(e){if(!Sm(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!Sm(n)&&!!n.hasOwnProperty("isPrototypeOf")}(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):"bigint"===typeof t?t.toString():t))}function Om(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(t.trackedProps.add(r),e[r])})})),n}function Tm(e,t){const n=sm({context:e.context}),i=r.useContext(cm),a=r.useContext(dm),o=n.defaultQueryOptions({...e,queryKeyHashFn:Cm});o._optimisticResults=i?"isRestoring":"optimistic",o.onError&&(o.onError=Fs.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=Fs.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=Fs.batchCalls(o.onSettled)),o.suspense&&"number"!==typeof o.staleTime&&(o.staleTime=1e3),(o.suspense||o.useErrorBoundary)&&(a.isReset()||(o.retryOnMount=!1));const[s]=r.useState((()=>new t(n,o))),l=s.getOptimisticResult(o);if(Em(r.useCallback((e=>i?()=>{}:s.subscribe(Fs.batchCalls(e))),[s,i]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),r.useEffect((()=>{a.clearReset()}),[a]),r.useEffect((()=>{s.setOptions(o,{listeners:!1})}
2),[o,s]),o.suspense&&l.isLoading&&l.isFetching&&!i)throw s.fetchOptimistic(o).then((e=>{var t,n;let{data:r}=e;null===(t=o.onSuccess)||void 0===t||t.call(o,r),null===(n=o.onSettled)||void 0===n||n.call(o,r,null)})).catch((e=>{var t,n;a.clearReset(),null===(t=o.onError)||void 0===t||t.call(o,e),null===(n=o.onSettled)||void 0===n||n.call(o,void 0,e)}));if(l.isError&&!a.isReset()&&!l.isFetching&&(c=o.useErrorBoundary,u=[l.error,s.getCurrentQuery()],"function"===typeof c?c(...u):c))throw l.error;var c,u;const d="loading"===l.status&&"idle"===l.fetchStatus?"idle":l.status,h="idle"===d,f="loading"===d&&"fetching"===l.fetchStatus;return{...l,defaultedOptions:o,isIdle:h,isLoading:f,observer:s,status:d}}function Nm(e,t,n){const i=xs(e,t,n);return function(e,t,n){const i=xs(e,t,n),a=sm({context:i.context}),[o]=r.useState((()=>new hm(a,i)));r.useEffect((()=>{o.setOptions(i)}),[o,i]);const s=fm(r.useCallback((e=>o.subscribe(Fs.batchCalls(e))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),l=r.useCallback(((e,t)=>{o.mutate(e,t).catch(pm)}),[o]);if(s.error&&(c=o.options.useErrorBoundary,u=[s.error],"function"===typeof c?c(...u):c))throw s.error;var c,u;return{...s,mutate:l,mutateAsync:s.mutate}}({context:wm,...i})}function _m(e,t,n){const r=Pm(e,t,n),i=Tm({context:wm,...r},gm),a={data:i.data,error:i.error,fetchStatus:i.fetchStatus,isError:i.isError,isFetched:i.isFetched,isFetchedAfterMount:i.isFetchedAfterMount,isFetching:i.isFetching,isIdle:i.isIdle,isLoading:i.isLoading,isRefetching:i.isRefetching,isSuccess:i.isSuccess,refetch:i.refetch,status:i.status,internal:{dataUpdatedAt:i.dataUpdatedAt,errorUpdatedAt:i.errorUpdatedAt,failureCount:i.failureCount,isFetchedAfterMount:i.isFetchedAfterMount,isLoadingError:i.isLoadingError,isPaused:i.isPaused,isPlaceholderData:i.isPlaceholderData,isPreviousData:i.isPreviousData,isRefetchError:i.isRefetchError,isStale:i.isStale,remove:i.remove}};return i.defaultedOptions.notifyOnChangeProps?a:Om(a,i.observer)}var Im=()=>sm({context:wm});function Rm(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,xe.useSyncExternalStoreWithSelector)((t=>function(e,t){const n=$g().subscribe((e=>{let{publicClient:t}=e;return t}),(async()=>t(Kg(e))));return n}({chainId:e},t)),(()=>Kg({chainId:e})),(()=>Kg({chainId:e})),(e=>e),((e,t)=>e.uid===t.uid))}function Mm(e){let{chainId:t}=e;return[{entity:"walletClient",chainId:t,persist:!1}]}function jm(e){let{queryKey:[{chainId:t}]}=e;return Qg({chainId:t})}function Lm(){let{chainId:e,suspense:t,onError:n,onSettled:i,onSuccess:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{connector:o}=Um(),s=Bm({chainId:e}),l=_m(Mm({chainId:s}),jm,{cacheTime:0,enabled:Boolean(o),staleTime:1/0,suspense:t,onError:n,onSettled:i,onSuccess:a}),c=Im();return r.useEffect((()=>{const e=function(e,t){let{chainId:n}=e;const r=$g().subscribe((e=>{var t;let{data:n,connector:r}=e;return{account:null===n||void 0===n?void 0:n.account,chainId:null===n||void 0===n||null===(t=n.chain)||void 0===t?void 0:t.id,connector:r}}),(async e=>{let{chainId:r}=e;if(n&&r&&n!==r)return;const i=await Qg({chainId:n});return $g().connector?t(i):t(null)}),{equalityFn:Tg});return r}({chainId:s},(e=>{e?c.invalidateQueries(Mm({chainId:s})):c.removeQueries(Mm({chainId:s}))}));return e}),[c,s]),l}function Bm(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Rm({chainId:e}).chain.id}var Fm=e=>"object"===typeof e&&!Array.isArray(e);function Dm(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Rg;const a=r.useRef([]),o=(0,xe.useSyncExternalStoreWithSelector)(e,t,n,(e=>e),((e,t)=>{if(Fm(e)&&Fm(t)&&a.current.length){for(const n of a.current){if(!i(e[n],t[n]))return!1}return!0}return i(e,t)}));if(Fm(o)){const e={...o};return Object.defineProperties(e,Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:{configurable:!1,enumerable:!0,get:()=>(a.current.includes(n)||a.current.push(n),r)}}}),{})),e}return o}function Um(){let{onConnect:e,onDisconnect:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Am(),i=r.useCallback((e=>function(e){let{selector:t=e=>e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$g().subscribe((e=>{let{data:n,connector:r,status:i}=e;return t({address:null===n||void 0===n?void 0:n.account,connector:r,status:i})}),(()=>e(tm())),{equalityFn:Tg});return n}(e)),[n]),a=Dm(i,tm),o=r.useRef(),s=o.current;return r.useEffect((()=>{"connected"!==(null===s||void 0===s?void 0:s.status)&&"connected"===a.status&&(null===e||void 0===e||e({address:a.address,connector:a.connector,isReconnected:"reconnecting"===(null===s||void 0===s?void 0:s.status)||void 0===(null===s||void 0===s?void 0:s.status)})),"connected"===(null===s||void 0===s?void 0:s.status)&&"disconnected"===a.status&&(null===t||void 0===t||t()),o.current=a}),[e,t,s,a]),a}var zm=e=>{const{connector:t,chainId:n}=e;if(!t)throw new Error("connector is required");return async function(e){let{chainId:t,connector:n}=e;const r=$g(),i=r.connector;if(i&&n.id===i.id)throw new _g;try{r.setState((e=>({...e,status:"connecting"})));const e=await n.connect({chainId:t});return r.setLastUsedConnector(n.id),r.setState((t=>({...t,connector:n,chains:null===n||void 0===n?void 0:n.chains,data:e,status:"connected"}))),r.storage.setItem("connected",!0),{...e,connector:n}}catch(a){throw r.setState((e=>({...e,status:e.connector?"connected":"disconnected"}))),a}}({connector:t,chainId:n})};function Wm(){let{chainId:e,connector:t,onError:n,onMutate:i,onSettled:a,onSuccess:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=Am(),{data:l,error:c,isError:u,isIdle:d,isLoading:h,isSuccess:f,mutate:p,mutateAsync:g,reset:m,status:y,variables:b}=Nm((v={connector:t,chainId:e},[{entity:"connect",...v}]),zm,{onError:n,onMutate:i,onSettled:a,onSuccess:o});var v;const x=r.useCallback((n=>{var r,i;return p({chainId:null!==(r=null===n||void 0===n?void 0:n.chainId)&&void 0!==r?r:e,connector:null!==(i=null===n||void 0===n?void 0:n.connector)&&void 0!==i?i:t})}),[e,t,p]),w=r.useCallback((n=>{var r,i;return g({chainId:null!==(r=null===n||void 0===n?void 0:n.chainId)&&void 0!==r?r:e,connector:null!==(i=null===n||void 0===n?void 0:n.connector)&&void 0!==i?i:t})}),[e,t,g]);return{connect:x,connectAsync:w,connectors:s.connectors,data:l,error:c,isError:u,isIdle:d,isLoading:h,isSuccess:f,pen
2dingConnector:null===b||void 0===b?void 0:b.connector,reset:m,status:y,variables:b}}var Hm=[{entity:"disconnect"}],Vm=()=>async function(){const e=$g();e.connector&&await e.connector.disconnect(),e.clearState(),e.storage.removeItem("connected")}();function Gm(){let{onError:e,onMutate:t,onSettled:n,onSuccess:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{error:i,isError:a,isIdle:o,isLoading:s,isSuccess:l,mutate:c,mutateAsync:u,reset:d,status:h}=Nm(Hm,Vm,{...e?{onError(t,n,r){e(t,r)}}:{},onMutate:t,...n?{onSettled(e,t,r,i){n(t,i)}}:{},...r?{onSuccess(e,t,n){r(n)}}:{}});return{disconnect:c,disconnectAsync:u,error:i,isError:a,isIdle:o,isLoading:s,isSuccess:l,reset:d,status:h}}function Ym(){const e=Am(),t=(0,r.useCallback)((e=>function(e){let{selector:t=e=>e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$g().subscribe((e=>{var n;let{data:r,chains:i}=e;return t({chainId:null===r||void 0===r||null===(n=r.chain)||void 0===n?void 0:n.id,chains:i})}),(()=>e(nm())),{equalityFn:Tg});return n}(e)),[e]);return Dm(t,nm)}var qm=e=>{const{chainId:t}=e;if(!t)throw new Error("chainId is required");return async function(e){let{chainId:t}=e;const{connector:n}=$g();if(!n)throw new hl;if(!n.switchChain)throw new Ig({connector:n});return n.switchChain(t)}({chainId:t})};function Xm(){var e,t;let{chainId:n,throwForSwitchChainNotSupported:i,onError:a,onMutate:o,onSettled:s,onSuccess:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=Am(),u=function(){const[,e]=r.useReducer((e=>e+1),0);return e}(),{data:d,error:h,isError:f,isIdle:p,isLoading:g,isSuccess:m,mutate:y,mutateAsync:b,reset:v,status:x,variables:w}=Nm((k={chainId:n},[{entity:"switchNetwork",...k}]),qm,{onError:a,onMutate:o,onSettled:s,onSuccess:l});var k;const A=r.useCallback((e=>y({chainId:null!==e&&void 0!==e?e:n})),[n,y]),E=r.useCallback((e=>b({chainId:null!==e&&void 0!==e?e:n})),[n,b]);let S,P;r.useEffect((()=>{const e=c.subscribe((e=>{let{chains:t,connector:n}=e;return{chains:t,connector:n}}),u);return e}),[c,u]);const C=!(null===(e=c.connector)||void 0===e||!e.switchChain);return(i||C)&&(S=A,P=E),{chains:null!==(t=c.chains)&&void 0!==t?t:[],data:d,error:h,isError:f,isIdle:p,isLoading:g,isSuccess:m,pendingChainId:null===w||void 0===w?void 0:w.chainId,reset:v,status:x,switchNetwork:S,switchNetworkAsync:P,variables:w}}function $m(e){if("prepared"===e.mode){if(!e.request)throw new Error("request is required");return em({mode:"prepared",request:e.request})}if(!e.address)throw new Error("address is required");if(!e.abi)throw new Error("abi is required");if(!e.functionName)throw new Error("functionName is required");return em({address:e.address,args:e.args,chainId:e.chainId,abi:e.abi,functionName:e.functionName,accessList:e.accessList,account:e.account,dataSuffix:e.dataSuffix,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,value:e.value})}function Km(e){const{address:t,abi:n,args:i,chainId:a,functionName:o,mode:s,request:l,dataSuffix:c}=e,{accessList:u,account:d,gas:h,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,value:y}=function(e){return{accessList:e.accessList,account:e.account,data:e.data,gas:e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce,to:e.to,value:e.value}}(e),{data:b,error:v,isError:x,isIdle:w,isLoading:k,isSuccess:A,mutate:E,mutateAsync:S,reset:P,status:C,variables:O}=Nm(function(e){let{address:t,abi:n,functionName:r,...i}=e;const{args:a,accessList:o,account:s,dataSuffix:l,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:f,request:p,value:g}=i;return[{entity:"writeContract",address:t,args:a,abi:n,accessList:o,account:s,dataSuffix:l,functionName:r,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:f,request:p,value:g}]}({address:t,abi:n,functionName:o,chainId:a,mode:s,args:i,accessList:u,account:d,dataSuffix:c,gas:h,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,request:l,value:y}),$m,{onError:e.onError,onMutate:e.onMutate,onSettled:e.onSettled,onSuccess:e.onSuccess});return{data:b,error:v,isError:x,isIdle:w,isLoading:k,isSuccess:A,reset:P,status:C,variables:O,write:r.useMemo((()=>
2{if("prepared"===e.mode){if(!l)return;return()=>E({mode:"prepared",request:e.request,chainId:e.chainId})}return e=>E({address:t,args:i,abi:n,functionName:o,chainId:a,accessList:u,account:d,dataSuffix:c,gas:h,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,value:y,...e})}),[u,d,n,t,i,a,e.chainId,e.mode,e.request,c,o,h,f,p,g,E,m,l,y]),writeAsync:r.useMemo((()=>{if("prepared"===e.mode){if(!l)return;return()=>S({mode:"prepared",request:e.request})}return e=>S({address:t,args:i,abi:n,chainId:a,functionName:o,accessList:u,account:d,dataSuffix:c,gas:h,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,value:y,...e})}),[u,d,n,t,i,a,e.mode,e.request,c,o,h,f,p,g,S,m,l,y])}}function Qm(){let{address:e,abi:t,functionName:n,chainId:r,args:i,cacheTime:a,dataSuffix:o,enabled:s=!0,scopeKey:l,staleTime:c,suspense:u,onError:d,onSettled:h,onSuccess:f,...p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{chain:g}=Ym(),{data:m}=Lm({chainId:r}),{accessList:y,account:b,blockNumber:v,blockTag:x,gas:w,gasPrice:k,maxFeePerGas:A,maxPriorityFeePerGas:E,nonce:S,value:P}=Lg(p),C=_m(function(e){let{accessList:t,account:n,activeChainId:r,args:i,address:a,blockNumber:o,blockTag:s,chainId:l,dataSuffix:c,functionName:u,gas:d,gasPrice:h,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:g,scopeKey:m,walletClientAddress:y,value:b}=e;return[{entity:"prepareContractTransaction",accessList:t,account:n,activeChainId:r,address:a,args:i,blockNumber:o,blockTag:s,chainId:l,dataSuffix:c,functionName:u,gas:d,gasPrice:h,maxFeePerGas:f,maxPriorityFeePerGas:p,nonce:g,scopeKey:m,walletClientAddress:y,value:b}]}({accessList:y,account:b,activeChainId:null===g||void 0===g?void 0:g.id,address:e,args:i,blockNumber:v,blockTag:x,chainId:r,dataSuffix:o,functionName:n,gas:w,gasPrice:k,maxFeePerGas:A,maxPriorityFeePerGas:E,nonce:S,scopeKey:l,walletClientAddress:null===m||void 0===m?void 0:m.account.address,value:P}),function(e){let{abi:t,walletClient:n}=e;return e=>{let{queryKey:[{accessList:r,account:i,args:a,address:o,blockNumber:s,blockTag:l,chainId:c,dataSuffix:u,functionName:d,gas:h,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,value:y}]}=e;if(!t)throw new Error("abi is required");if(!o)throw new Error("address is required");if(!d)throw new Error("functionName is required");return Jg({abi:t,accessList:r,account:i,args:a,address:o,blockNumber:s,blockTag:l,chainId:c,dataSuffix:u,functionName:d,gas:h,gasPrice:f,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:m,walletClient:n,value:y})}}({abi:t,walletClient:m}),{cacheTime:a,enabled:Boolean(s&&t&&e&&n&&m),staleTime:c,suspense:u,onError:d,onSettled:h,onSuccess:f});return Object.assign(C,{config:{chainId:r,mode:"prepared",request:void 0,...C.data}})}function Jm(e){let{onReplaced:t}=e;return e=>{let{queryKey:[{chainId:n,confirmations:r,hash:i,timeout:a}]}=e;if(!i)throw new Error("hash is required");return async function(e){let{chainId:t,confirmations:n=1,hash:r,onReplaced:i,timeout:a=0}=e;const o=Kg({chainId:t}),s=await o.waitForTransactionReceipt({hash:r,confirmations:n,onReplaced:i,timeout:a});if("reverted"===s.status){const e=await o.getTransaction({hash:s.transactionHash}),t=await o.call({...e,gasPrice:"eip1559"!==e.type?e.gasPrice:void 0,maxFeePerGas:"eip1559"===e.type?e.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===e.type?e.maxPriorityFeePerGas:void 0}),n=(0,oc.IQ)(`0x${t.substring(138)}`);throw new Error(n)}return s}({chainId:n,confirmations:r,hash:i,onReplaced:t,timeout:a})}}function Zm(){let{chainId:e,confirmations:t,hash:n,timeout:r,cacheTime:i,enabled:a=!0,scopeKey:o,staleTime:s,suspense:l,onError:c,onReplaced:u,onSettled:d,onSuccess:h}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _m(function(e){let{confirmations:t,chainId:n,hash:r,scopeKey:i,timeout:a}=e;return[{entity:"waitForTransaction",confirmations:t,chainId:n,hash:r,scopeKey:i,timeout:a}]}({chainId:Bm({chainId:e}),confirmations:t,hash:n,scopeKey:o,timeout:r}),Jm({onReplaced:u}),{cacheTime:i,enabled:Boolean(a&&n),staleTime:s,suspense:l,onError:c,onSettled:d,onSuccess:h})}const ey=gl({id:56,name:"BNB Smart Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});function ty(e){return ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ty(e)}var ny=["className","cssModule","tag","innerRef"];function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(this,arguments)}function iy(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ay(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function oy(e,t){return oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oy(e,t)}function sy(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cy(e);if(t){var i=cy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ty(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ly(e)}(this,n)}}function ly(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cy(e){return cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cy(e)}var uy={children:Mn().node,tag:qn,innerRef:Mn().oneOfType([Mn().object,Mn().func,Mn().string]),className:Mn().string,cssModule:Mn().object},dy=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oy(e,t)}(o,e);var t,n,i,a=sy(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).getRef=t.getRef.bind(ly(t)),t.submit=t.submit.bind(ly(t)),t}return t=o,(n=[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"submit",value:function(){this.ref&&this.ref.submit()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,i=e.tag,a=void 0===i?"form":i,o=e.innerRef,s=iy(e,ny),l=Un(t,n);return r.createElement(a,ry({},s,{ref:o,className:l}))}}])&&ay(t.prototype,n),i&&ay(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);dy.propTypes=uy;const hy=dy;var fy=["className","cssModule","hidden","widths","tag","check","size","for"];function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},py.apply(this,arguments)}function gy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function my(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var yy=["xs","sm","md","lg","xl","xxl"],by=Mn().oneOfType([Mn().number,Mn().string]),vy=Mn().oneOfType([Mn().bool,Mn().string,Mn().number,Mn().shape({size:by,order:by,offset:by})]),xy={children:Mn().node,hidden:Mn().bool,check:Mn().bool,size:Mn().string,for:Mn().string,tag:qn,className:Mn().string,cssModule:Mn().object,xs:vy,sm:vy,md:vy,lg:vy,xl:vy,xxl:vy,widths:Mn().array},wy=function(e,t,n){return!0===n||""===n?e?"col":"col-".concat(t):"auto"===n?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(n):"col-".concat(t,"-").concat(n)};function ky(e){var t=e.className,n=e.cssModule,i=e.hidden,a=e.widths,o=void 0===a?yy:a,s=e.tag,l=void 0===s?"label":s,c=e.check,u=e.size,d=e.for,h=my(e,fy),f=[];o.forEach((function(t,r){var i=e[t];if(delete h[t],i||""===i){var a,o=!r;if(Jn(i)){var s,l=o?"-":"-".concat(t,"-");a=wy(o,t,i.size),f.push(Un(Ln()((gy(s={},a,i.size||""===i.size),gy(s,"order".concat(l).concat(i.order),i.order||0===i.order),gy(s,"offset".concat(l).concat(i.offset),i.offset||0===i.offset),s))),n)}else a=wy(o,t,i),f.push(a)}}));var p=u||f.length,g=!(c||p),m=Un(Ln()(t,!!i&&"visually-hidden",!!c&&"form-check-label",!!u&&"col-form-label-".concat(u),f,!!p&&"col
2-form-label",!!g&&"form-label"),n);return r.createElement(l,py({htmlFor:d},h,{className:m}))}ky.propTypes=xy;const Ay=ky;function Ey(e){return Ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ey(e)}var Sy=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function Py(){return Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Py.apply(this,arguments)}function Cy(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ty(e,t){return Ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ty(e,t)}function Ny(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Iy(e);if(t){var i=Iy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ey(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _y(e)}(this,n)}}function _y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iy(e){return Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Iy(e)}var Ry={children:Mn().node,type:Mn().string,size:Mn().oneOfType([Mn().number,Mn().string]),bsSize:Mn().string,valid:Mn().bool,invalid:Mn().bool,tag:qn,innerRef:Mn().oneOfType([Mn().object,Mn().func,Mn().string]),plaintext:Mn().bool,addon:Mn().bool,className:Mn().string,cssModule:Mn().object},My=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ty(e,t)}(o,e);var t,n,i,a=Ny(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).getRef=t.getRef.bind(_y(t)),t.focus=t.focus.bind(_y(t)),t}return t=o,(n=[{key:"getRef",value:function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cssModule,i=e.type,a=void 0===i?"text":i,o=e.bsSize,s=e.valid,l=e.invalid,c=e.tag,u=e.addon,d=e.plaintext,h=e.innerRef,f=Cy(e,Sy),p=["switch","radio","checkbox"].indexOf(a)>-1,g="select"===a,m="range"===a,y=c||(g||"textarea"===a?a:"input"),b="form-control";d?(b="".concat(b,"-plaintext"),y=c||"input"):m?b="form-range":g?b="form-select":p&&(b=u?null:"form-check-input"),f.size&&/\D/g.test(f.size)&&(Hn('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=f.size,delete f.size);var v=Un(Ln()(t,l&&"is-invalid",s&&"is-valid",!!o&&(g?"form-select-".concat(o):"form-control-".concat(o)),b),n);return("input"===y||c&&"function"===typeof c)&&(f.type="switch"===a?"checkbox":a),f.children&&!d&&"select"!==a&&"string"===typeof y&&"select"!==y&&(Hn('Input with a type of "'.concat(a,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete f.children),r.createElement(y,Py({},f,{ref:h,className:v,"aria-invalid":l}))}}])&&Oy(t.prototype,n),i&&Oy(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);My.propTypes=Ry;const jy=My;var Ly=n(44414);const By=n(20144),Fy=n(90703);function Dy(){const[e,t]=r.useState(0),{chain:n}=Ym();let i=n.id,a="https://etherscan.io/",o="0x5ca0a41d3223661d2cb6f348b53593d926b09068",s=By;56==i&&(a="https://bscscan.com/",o="0x142a2905a1e3de73e010f8525aa3734fd9b42278",s=Fy);const{config:l}=Qm({address:o,abi:s,functionName:"redeemReward",args:[e?Pn(e).toString():0],onError(t){console.log(o+" | redeemReward | "+e),console.log(t)}}),{data:c,write:u}=Km(l),{isLoading:d,isSuccess:h}=Zm({hash:null===c||void 0===c?void 0:c.hash});return(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),null===u||void 0===u||u()},children:[(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)(Ay,{htmlFor:"formrow-claimamount-Input",children:"Amount"}),(0,Ly.jsx)(jy,{type:"text",className:"form-control",id:"formrow-claimamount-Input",onBlur:e=>{t(e.target.value)},placeholder:"0"})]}),(0,Ly.jsx)("div",{className:"d-flex justify-content-end",children:(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{cursor:"pointer"},onClick:()=>{!function(){let e=En(document.getElementById("claimrewardsBN").textContent,"ether");document.getElementById("formrow-claimamount-Input").value=e,t(e.toString())}()},children:"MAX"})}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!u||d||0n==e,children:d?"Claiming...":"Claim"}),h&&(0,Ly.jsxs)("div",{children:["You've successfully claimed your DEFX rewards!",(0,Ly.jsx)("div",{children:(0,Ly.jsx)("a",{href:`${a}/tx/${null===c||void 0===c?void 0:c.hash}`,target:"_blank",children:"View transaction"})})]})]})]})}const Uy=n(20144);n(90703);function zy(){const[e,t]=r.useState(0),{chain:n}=Ym();let i=n.id,a="https://etherscan.io/",o="0x5ca0a41d3223661d2cb6f348b53593d926b09068",s=Uy;if(56==i){a="https://bscscan.com/",o="0x142a2905a1e3de73e010f8525aa3734fd9b42278"}const{config:l}=Qm({address:o,abi:s,functionName:"unstake",args:[e?Pn(e).toString():0]}),{data:c,write:u}=Km(l),{isLoading:d,isSuccess:h}=Zm({hash:null===c||void 0===c?void 0:c.hash});function f(e){let n=En(document.getElementById("unstakeBN").textContent,"ether")*(e/100);document.getElementById("formrow-unstakeamount-Input").value=n,t(n.toString())}return(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),null===u||void 0===u||u()},children:[(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)(Ay,{htmlFor:"formrow-unstakeamount-Input",children:"Amount"}),(0,Ly.jsx)(jy,{type:"text",className:"form-control",id:"formrow-unstakeamount-Input",onBlur:e=>{t(e.target.value)},placeholder:"0"})]}),(0,Ly.jsxs)("div",{className:"d-flex justify-content-end",children:[(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{cursor:"pointer"},onClick:()=>{f(25)},children:"25%"}),(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{marginLeft:3,curs
2or:"pointer"},onClick:()=>{f(50)},children:"50%"}),(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{marginLeft:3,cursor:"pointer"},onClick:()=>{f(75)},children:"75%"}),(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{marginLeft:3,cursor:"pointer"},onClick:()=>{f(100)},children:"MAX"})]}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!u||d||0n==e,children:d?"Unstaking...":"Unstake"}),h&&(0,Ly.jsxs)("div",{children:["You've successfully unstaked your DEFX! Please don't sell them.",(0,Ly.jsx)("div",{children:(0,Ly.jsx)("a",{href:`${a}/tx/${null===c||void 0===c?void 0:c.hash}`,target:"_blank",children:"View transaction"})})]})]})]})}n(20144),n(90703);const Wy=n(20144),Hy=n(90703);n(73207);const Vy=ds()((e=>{const[t,n]=(0,r.useState)(!1),[i,a]=(J(),(0,r.useState)(!1)),[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),[p,g]=(0,r.useState)(!1),[m,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(!1),[k,A]=(0,r.useState)(!1),[E,S]=(0,r.useState)(!1),[P,C]=(0,r.useState)(!1),[O,T]=(0,r.useState)(!1),[N,_]=(0,r.useState)(!1),[I,R]=(0,r.useState)(!1);const[M,j]=(0,r.useState)(!1);function L(e,t){(async(e,t)=>{let n="0x5F474906637bdCDA05f29C74653F6962bb0f8eDa";56==t&&(n="0xbe4cb2c354480042a39350a0c6c26bf54786539f"),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=defx&functionname=balanceOf&args=["'+e+'"]').then((e=>e.json())).then((e=>{d(e.data),c(parseFloat(En(e.data,"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))}))})(e,t),(async(e,t)=>{let n="0x5ca0a41d3223661d2cb6f348b53593d926b09068",r=Wy;56==t&&(n="0x142a2905a1e3de73e010f8525aa3734fd9b42278",r=Hy),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=staking&functionname=getEarnedReward&args=["'+e+'"]').then((e=>e.json())).then((e=>{C(e.data.amount),A(parseFloat(En(e.data.amount,"ether")).toLocaleString("en-US",{maximumFractionDigits:2})),S(e.data.usdval.toLocaleString("en-US",{maximumFractionDigits:2}))}))})(e,t),(async(e,t)=>{let n="0x5ca0a41d3223661d2cb6f348b53593d926b09068";56==t&&(n="0x142a2905a1e3de73e010f8525aa3734fd9b42278");fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=staking&functionname=getStakedAmount&args=["'+e+'"]').then((e=>e.json())).then((e=>{R(e.data.amount),T(parseFloat(En(e.data.amount,"ether")).toLocaleString("en-US",{maximumFractionDigits:2})),_(e.data.usdval.toLocaleString("en-US",{maximumFractionDigits:2}))}))})(e,t)}return document.title="DEFX Staking | Stake your DEFX and earn rewards",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Staking"})})})}),function(){const{address:e,connector:t,isConnected:n}=Um(),{connect:i,connectors:a,error:o,isLoading:s,pendingConnector:l}=Wm(),{disconnect:c}=Gm(),{chain:u}=Ym(),{chains:d,pendingChainId:h,switchNetwork:f}=Xm({chains:[ml,ey],onSuccess(t){L(e,u.id)}});return(0,r.useEffect)((()=>{n&&On(null===u||void 0===u?void 0:u.id)&&L(e,u.id)}),[n,e,null===u||void 0===u?void 0:u.id]),n&&!On(null===u||void 0===u?void 0:u.id)?(0,Ly.jsx)(Rr,{color:"warning",children:"Please switch your wallet to Ethereum or BNB Smart Chain to use this feature."}):n?(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12"}),(0,Ly.jsxs)(Rr,{color:"info",children:["You are currently connected to ",(0,Ly.jsx)("strong",{children:1==u.id?"Ethereum":"BNB Smart Chain"}),". Looking for ",(0,Ly.jsx)("strong",{children:1==u.id?"BNB Smart Chain":"Ethereum"}),"?\xa0\xa0\xa0.",(0,Ly.jsxs)("button",{className:"btn btn-primary w-md",onClick:()=>{1==u.id?f(56):f(1)},children:["Switch to ",1==u.id?"BNB Smart Chain":"Ethereum"]})]}),(0,Ly.jsx)(Ly.Fragment,{children:(0,Ly.jsx)("div",{children:o&&o.message})})]})})}),(0,Ly.jsx)(Jr,{xl:4,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(u
2i,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Staking has ended"}),"Only claiming rewards and unstaking is possible at this moment.",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),"If you want to earn more DEFX, please check out our farm."]})})}),(0,Ly.jsx)(Jr,{xl:4,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Claim rewards"}),(0,Ly.jsx)("span",{id:"claimrewardsBN",style:{display:"none"},children:P}),"Available rewards: ",(0,Ly.jsx)("strong",{children:k}),(0,Ly.jsx)("br",{}),"USD value: $",E,(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)(Dy,{})]})})}),(0,Ly.jsx)(Jr,{xl:4,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Unstake"}),(0,Ly.jsx)("span",{id:"unstakeBN",style:{display:"none"},children:I}),"Staked amount: ",(0,Ly.jsx)("strong",{children:O}),(0,Ly.jsx)("br",{}),"USD value: $",N,(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)(zy,{})]})})})]}):(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsx)(ui,{children:(0,Ly.jsx)(mi,{className:"mb-12",children:"Connect your wallet to access staking functionality."})})})})}()]})})})}));var Gy=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yy.apply(this,arguments)}function qy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qy(Object(n),!0).forEach((function(t){$y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ky(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Qy={animated:Mn().bool,bar:Mn().bool,barAriaLabelledBy:Mn().string,barAriaValueText:Mn().string,barClassName:Mn().string,barStyle:Mn().object,children:Mn().node,className:Mn().string,cssModule:Mn().object,color:Mn().string,max:Mn().oneOfType([Mn().string,Mn().number]),min:Mn().oneOfType([Mn().string,Mn().number]),multi:Mn().bool,striped:Mn().bool,style:Mn().object,tag:qn,value:Mn().oneOfType([Mn().string,Mn().number])};function Jy(e){var t=e.children,n=e.className,i=e.barClassName,a=e.cssModule,o=e.value,s=void 0===o?0:o,l=e.min,c=void 0===l?0:l,u=e.max,d=void 0===u?100:u,h=e.animated,f=e.striped,p=e.color,g=e.bar,m=e.multi,y=e.tag,b=void 0===y?"div":y,v=e.style,x=void 0===v?{}:v,w=e.barStyle,k=void 0===w?{}:w,A=e.barAriaValueText,E=e.barAriaLabelledBy,S=Ky(e,Gy),P=Zn(s)/Zn(d)*100,C=Un(Ln()(n,"progress"),a),O={className:Un(Ln()("progress-bar",g&&n||i,h?"progress-bar-animated":null,p?"bg-".concat(p):null,f||h?"progress-bar-striped":null),a),style:Xy(Xy(Xy({},g?x:{}),k),{},{width:"".concat(P,"%")}),role:"progressbar","aria-valuenow":s,"aria-valuemin":c,"aria-valuemax":d,"aria-valuetext":A,"aria-labelledby":E,children:t};return g?r.createElement(b,Yy({},S,O)):r.createElement(b,Yy({},S,{style:x,className:C}),m?t:r.createElement("div",O))}Jy.propTypes=Qy;const Zy=Jy,eb=gl({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),tb=n(59962);function nb(){const[e,t]=r.useState(0),{chain:n}=Ym();let i=n.id;function a(e){return 1337==e||1==e||56==e?"0xacDa51b04EEbC7D6e18AD7ebAC32C5e6516CcdE0":void 0}let o="https://etherscan.io/",s="0xbDEe9c999b7f1A07bf62C2006a5cFb3dD40B1776",l=tb;56==i&&(o="https://bscscan.com/",s="0xB58427Aa1DD54dd13689Fb948A32Be2f58b9007a"),11155111==i&&(o="https://sepolia.etherscan.io/",s="0x4b5c573dc14bd2d2da57091410652eb95ce62718");const{config:c}=Qm({address:a(n.id),abi:l,functionName:"harvest",args:[e?Pn(e).toString():0],enabled:e>
20,onError(t){console.log(a(n.id)+" | redeemReward | "+e),console.log(t)}}),{data:u,write:d}=Km(c),{isLoading:h,isSuccess:f}=Zm({hash:null===u||void 0===u?void 0:u.hash});return(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),null===d||void 0===d||d()},children:[(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)(Ay,{htmlFor:"formrow-claimamount-Input",children:"Amount"}),(0,Ly.jsx)(jy,{type:"text",className:"form-control",id:"formrow-claimamount-Input",onBlur:e=>{t(e.target.value)},placeholder:"0"})]}),(0,Ly.jsx)("div",{className:"d-flex justify-content-end",children:(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{cursor:"pointer"},onClick:()=>{!function(){let e=En(document.getElementById("claimrewardsBN").textContent,"ether");document.getElementById("formrow-claimamount-Input").value=e,t(e.toString())}()},children:"MAX"})}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!d||h||0n==e,children:h?"Harvesting...":"Harvest"}),f&&(0,Ly.jsxs)("div",{children:["You've successfully harvested your DEFX rewards!",(0,Ly.jsx)("div",{children:(0,Ly.jsx)("a",{href:`${o}/tx/${null===u||void 0===u?void 0:u.hash}`,target:"_blank",children:"View transaction"})})]})]})]})}const rb=n(59962);function ib(){const[e,t]=r.useState(0),[n,i]=r.useState(1),{chain:a}=Ym();let o=a.id;let s="https://etherscan.io/",l="0xbDEe9c999b7f1A07bf62C2006a5cFb3dD40B1776",c=rb;56!=o&&"bsc"!=function(e){if(1337==e)return"bsc"}(o)||(s="https://bscscan.com/",l="0x484deb91c37f96f7cac623bf787cc96ee0b51309"),11155111==o&&(s="https://sepolia.etherscan.io/",contractAdd="0x3b17d5e67def025d9a61f41864542d81ae8caeca",l="0x4b5c573dc14bd2d2da57091410652eb95ce62718");const{config:u}=Qm({address:function(e){return 1337==e||1==e||56==e?"0xacDa51b04EEbC7D6e18AD7ebAC32C5e6516CcdE0":void 0}(a.id),abi:c,functionName:"withdraw",args:[e||1,100]}),{data:d,write:h}=Km(u),{isLoading:f,isSuccess:p}=Zm({hash:null===d||void 0===d?void 0:d.hash});return(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),null===h||void 0===h||h()},children:[(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)(Ay,{htmlFor:"formrow-unstakeamount-Input",children:"Withdraw percentage:"})," ",n,"%",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("input",{type:"range",style:{width:"100%"},min:"1",max:"100",onBlur:e=>{t(e.target.value)},onChange:e=>i(e.target.value),placeholder:"1",defaultValue:"1"})]}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!h||f||0n==e,children:f?"Withdrawing...":"Withdraw"}),p&&(0,Ly.jsxs)("div",{children:["You've successfully withdrawn your tokens!",(0,Ly.jsx)("div",{children:(0,Ly.jsx)("a",{href:`${s}/tx/${null===d||void 0===d?void 0:d.hash}`,target:"_blank",children:"View transaction"})})]})]})]})}const ab=n(59962),ob=n(39365),sb=n(73207),lb="0xacDa51b04EEbC7D6e18AD7ebAC32C5e6516CcdE0",cb="0x55d398326f99059fF775485246999027B3197955";function ub(){const{address:e,isConnected:t}=Um(),{chain:n}=Ym(),i=null===n||void 0===n?void 0:n.id,a=t&&On(i),o=1===i?"0x5F474906637bdCDA05f29C74653F6962bb0f8eDa":"0xbe4cb2c354480042a39350a0c6c26bf54786539f",s=`${e}:${i}`,[l,c]=(0,r.useState)(""),[u,d]=(0,r.useState)(""),[h,f]=(0,r.useState)(null),[p,g]=(0,r.useState)(0),[m,y]=(0,r.useState)(""),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(""),k=(0,r.useRef)(null),A=Tn(l),E=Tn(u),S=a&&(null===h||void 0===h?void 0:h.context)===s,P=S&&!b&&!x&&null!==A&&null!==E,C=S&&null!==A&&h.defx<A,O=S&&56===i&&null!==E&&h.usdt<E,T=P&&!C&&!O;async function N(e,t){var n;null===(n=k.current)||void 0===n||n.abort();const r=new AbortController;k.current=r,w(""),t?(c(e),d("")):(d(e),c(""));const o=Tn(e);if(!a||null===o)return void v(!1);v(!0);const s=1===i?t?[o,0n]:[0n,o]:t?[0n,o]:[o,0n];try{const e=Sn(Nn((await _n(`https://defxstats.com:3001/getContractData?chain=${i}&contract=farming&functionname=getQuote&args=${encodeURIComponent("["+s.join(",")+"]")}`,r.signal)).data));r.signal.aborted||(t?d(e):c(e))}catch{r.signal.aborted||w("Unable to load a liquidity quote. Please enter the amount again.")}finally{r.signal.aborted||v(!1)}}(0,r.useEffect)((()=>{const t=new AbortController;f(null),y("");const n=encodeURIComponent(JSON.stringify([e,lb]));return a&&Promise.all([_n(`https://defxstats.com:3001/getContractData?chain=${i}&contract=defx&functionname=allowance&args=${n}`,t.signal),56===i?Zg({chainId:i,address:cb,abi:sb,functionName:"allowance",args:[e,lb]}):Promise.resolve(0n)]).then((e=>{let[n,r]=e;t.signal.aborted||f({context:s,defx:Nn(n.data),usdt:r})})).catch((()=>{t.signal.aborted||y("Unable to load spending allowances. Please retry.")})),()=>t.abort()}),[e,i,s,a,p]),(0,r.useEffect)((()=>{var e;return c(""),d(""),v(!1),w(""),null===(e=k.current)||void 0===e||e.abort(),()=>{var e;return null===(e=k.current)||void 0===e?void 0:e.abort()}}),[s]);const{config:_}=Qm({chainId:i,address:lb,abi:1===i?ab:ob,functionName:"deposit",enabled:T,args:1===i?[null!==A&&void 0!==A?A:0n,50n]:[null!==E&&void 0!==E?E:0n,null!==A&&void 0!==A?A:0n,50n],value:1===i&&null!==E&&void 0!==E?E:0n}),{data:I,write:R}=Km(_),{isLoading:M,isSuccess:j}=Zm({chainId:i,hash:null===I||void 0===I?void 0:I.hash}),{config:L}=Qm({chainId:i,address:o,abi:sb,functionName:"approve",args:[lb,null!==A&&void 0!==A?A:0n],enabled:P&&C}),{data:B,write:F}=Km(L),{isLoading:D}=Zm({chainId:i,hash:null===B||void 0===B?void 0:B.hash,onSuccess:()=>g((e=>e+1))}),{config:U}=Qm({chainId:i,address:cb,abi:sb,functionName:"approve",args:[lb,null!==E&&void 0!==E?E:0n],enabled:P&&O}),{data:z,write:W}=Km(U),{isLoading:H}=Zm({chainId:i,hash:null===z||void 0===z?void 0:z.hash,onSuccess:()=>g((e=>e+1))}),V=M||D||H;return a?(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),T&&!V&&(null===R||void 0===R||R())},children:[(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)(Ay,{htmlFor:"formrow-depositamount-Input",children:"Amount DEFX"}),(0,Ly.jsx)(jy,{id:"formrow-depositamount-Input",type:"text",inputMode:"decimal",placeholder:"0",value:l,disabled:V,onChange:e=>N(e.target.value,!0)})]}),(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsxs)(Ay,{htmlFor:"formrow-depositamount-pairedtoken-Input",children:["Amount ",1===i?"ETH":"USDT"]}),(0,Ly.jsx)(jy,{id:"formrow-depositamount-pairedtoken-Input",type:"text",inputMode:"decimal",placeholder:"0",value:u,disabled:V,onChange:e=>N(e.target.value,!1)})]}),m&&(0,Ly.jsxs)(Rr,{color:"danger",children:[m," ",(0,Ly.jsx)("button",{type:"button",onClick:()=>g((e=>e+1)),children:"Retry"})]}),x&&(0,Ly.jsx)(Rr,{color:"danger",children:x}),b&&(0,Ly.jsx)("p",{children:"Loading quote\u2026"}),C?(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)("p",{children:"The farm needs permission to spend the entered DEFX amount."}),(0,Ly.jsx)("button",{type:"button",className:"btn btn-primary w-md",disabled:!P||!F||V,onClick:()=>{P&&C&&!V&&(null===F||void 0===F||F())},children:D?"Approving\u2026":"Approve DEFX amount"})]}):O?(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)("p",{children:"The farm needs permission to spend the entered USDT amount."}),(0,Ly.jsx)("button",{type:"button",className:"btn btn-primary w-md",disabled:!P||!W||V,onClick:()=>{P&&O&&!V&&(null===W||void 0===W||W())},children:H?"Approving\u2026":"Approve USDT amount"})]}):(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!T||!R||V||j,children:M?"Adding liquidity\u2026":"Add Liquidity"}),j&&(0,Ly.jsxs)("div",{children:["You've successfully added liquidity! ",(0,Ly.jsx)("a",{href:`${1===i?"https://etherscan.io":"https://bscscan.com"}/tx/${null===I||void 0===I?void 0:I.hash}`,target:"_blank",rel:"noopener noreferrer",children:"View transaction"})]})]}):(0,Ly.jsx)(Rr,{color:"warning",children:"Please switch to Ethereum or BNB Smart Chain."})}const db={};function hb(e,t){let n=!1;return t<0&&(n=!0,t*=-1),new mb(db,`${n?"":"u"}int${t}`,e,{signed:n,width:t})}function fb(e,t){return new mb(db,`bytes${t||""}`,e,{size:t})}const pb=Symbol.for("_ethers_typed");var gb=new WeakMap;class mb{constructor(e,t,n,r){St(this,"type",void 0),St(this,"value",void 0),kt(this,gb,void 0),St(this,"_typedSymbol",void 0),null==r&&(r=null),vt(db,e,"Typed"),ut(this,{_typedSymbol:pb,type:t,value:n}),Ot(gb,this,r),this.format()}format(){if("array"===this.type)throw new Error("");
2if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((e=>e.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return Ct(gb,this)}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===Ct(gb,this)?-1:!1===Ct(gb,this)?this.value.length:null}static from(e,t){return new mb(db,e,t)}static uint8(e){return hb(e,8)}static uint16(e){return hb(e,16)}static uint24(e){return hb(e,24)}static uint32(e){return hb(e,32)}static uint40(e){return hb(e,40)}static uint48(e){return hb(e,48)}static uint56(e){return hb(e,56)}static uint64(e){return hb(e,64)}static uint72(e){return hb(e,72)}static uint80(e){return hb(e,80)}static uint88(e){return hb(e,88)}static uint96(e){return hb(e,96)}static uint104(e){return hb(e,104)}static uint112(e){return hb(e,112)}static uint120(e){return hb(e,120)}static uint128(e){return hb(e,128)}static uint136(e){return hb(e,136)}static uint144(e){return hb(e,144)}static uint152(e){return hb(e,152)}static uint160(e){return hb(e,160)}static uint168(e){return hb(e,168)}static uint176(e){return hb(e,176)}static uint184(e){return hb(e,184)}static uint192(e){return hb(e,192)}static uint200(e){return hb(e,200)}static uint208(e){return hb(e,208)}static uint216(e){return hb(e,216)}static uint224(e){return hb(e,224)}static uint232(e){return hb(e,232)}static uint240(e){return hb(e,240)}static uint248(e){return hb(e,248)}static uint256(e){return hb(e,256)}static uint(e){return hb(e,256)}static int8(e){return hb(e,-8)}static int16(e){return hb(e,-16)}static int24(e){return hb(e,-24)}static int32(e){return hb(e,-32)}static int40(e){return hb(e,-40)}static int48(e){return hb(e,-48)}static int56(e){return hb(e,-56)}static int64(e){return hb(e,-64)}static int72(e){return hb(e,-72)}static int80(e){return hb(e,-80)}static int88(e){return hb(e,-88)}static int96(e){return hb(e,-96)}static int104(e){return hb(e,-104)}static int112(e){return hb(e,-112)}static int120(e){return hb(e,-120)}static int128(e){return hb(e,-128)}static int136(e){return hb(e,-136)}static int144(e){return hb(e,-144)}static int152(e){return hb(e,-152)}static int160(e){return hb(e,-160)}static int168(e){return hb(e,-168)}static int176(e){return hb(e,-176)}static int184(e){return hb(e,-184)}static int192(e){return hb(e,-192)}static int200(e){return hb(e,-200)}static int208(e){return hb(e,-208)}static int216(e){return hb(e,-216)}static int224(e){return hb(e,-224)}static int232(e){return hb(e,-232)}static int240(e){return hb(e,-240)}static int248(e){return hb(e,-248)}static int256(e){return hb(e,-256)}static int(e){return hb(e,-256)}static bytes1(e){return fb(e,1)}static bytes2(e){return fb(e,2)}static bytes3(e){return fb(e,3)}static bytes4(e){return fb(e,4)}static bytes5(e){return fb(e,5)}static bytes6(e){return fb(e,6)}static bytes7(e){return fb(e,7)}static bytes8(e){return fb(e,8)}static bytes9(e){return fb(e,9)}static bytes10(e){return fb(e,10)}static bytes11(e){return fb(e,11)}static bytes12(e){return fb(e,12)}static bytes13(e){return fb(e,13)}static bytes14(e){return fb(e,14)}static bytes15(e){return fb(e,15)}static bytes16(e){return fb(e,16)}static bytes17(e){return fb(e,17)}static bytes18(e){return fb(e,18)}static bytes19(e){return fb(e,19)}static bytes20(e){return fb(e,20)}static bytes21(e){return fb(e,21)}static bytes22(e){return fb(e,22)}static bytes23(e){return fb(e,23)}static bytes24(e){return fb(e,24)}static bytes25(e){return fb(e,25)}static bytes26(e){return fb(e,26)}static bytes27(e){return fb(e,27)}static bytes28(e){return fb(e,28)}static bytes29(e){return fb(e,29)}static bytes30(e){return fb(e,30)}static bytes31(e){return fb(e,31)}static bytes32(e){return fb(e,32)}static address(e){return new mb(db,"address",e)}static bool(e){return new mb(db,"bool",!!e)}static bytes(e){return new mb(db,"bytes",e)}static string(e){return new mb(db,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new mb(db,"overrides",Object.assign({},e))}
2static isTyped(e){return e&&"object"===typeof e&&"_typedSymbol"in e&&e._typedSymbol===pb}static dereference(e,t){if(mb.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}function yb(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function bb(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function vb(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function xb(e,t){bb(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const wb=BigInt(2**32-1),kb=BigInt(32);function Ab(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&wb),l:Number(e>>kb&wb)}:{h:0|Number(e>>kb&wb),l:0|Number(e&wb)}}function Eb(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new
2Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:a,l:o}=Ab(e[i],t);[n[i],r[i]]=[a,o]}return[n,r]}const Sb=(e,t,n)=>e<<n|t>>>32-n,Pb=(e,t,n)=>t<<n|e>>>32-n,Cb=(e,t,n)=>t<<n-32|e>>>64-n,Ob=(e,t,n)=>e<<n-32|t>>>64-n;const Tb={fromBig:Ab,split:Eb,toBig:(e,t)=>BigInt(e>>>0)<<kb|BigInt(t>>>0),shrSH:(e,t,n)=>e>>>n,shrSL:(e,t,n)=>e<<32-n|t>>>n,rotrSH:(e,t,n)=>e>>>n|t<<32-n,rotrSL:(e,t,n)=>e<<32-n|t>>>n,rotrBH:(e,t,n)=>e<<64-n|t>>>n-32,rotrBL:(e,t,n)=>e>>>n-32|t<<64-n,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:Sb,rotlSL:Pb,rotlBH:Cb,rotlBL:Ob,add:function(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}},add3L:(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),add3H:(e,t,n,r)=>t+n+r+(e/2**32|0)|0,add4L:(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),add4H:(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,add5H:(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0,add5L:(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0)},Nb=e=>e instanceof Uint8Array,_b=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),Ib=(e,t)=>e<<32-t|e>>>t;if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function Rb(e){if("string"===typeof e&&(e=function(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!Nb(e))throw new Error("expected Uint8Array, got "+typeof e);return e}class Mb{clone(){return this._cloneInto()}}function jb(e){const t=t=>e().update(Rb(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}const[Lb,Bb,Fb]=[[],[],[]],Db=BigInt(0),Ub=BigInt(1),zb=BigInt(2),Wb=BigInt(7),Hb=BigInt(256),Vb=BigInt(113);for(let n=0,KG=Ub,QG=1,JG=0;n<24;n++){[QG,JG]=[JG,(2*QG+3*JG)%5],Lb.push(2*(5*JG+QG)),Bb.push((n+1)*(n+2)/2%64);let e=Db;for(let t=0;t<7;t++)KG=(KG<<Ub^(KG>>Wb)*Vb)%Hb,KG&zb&&(e^=Ub<<(Ub<<BigInt(t))-Ub);Fb.push(e)}const[Gb,Yb]=Eb(Fb,!0),qb=(e,t,n)=>n>
232?Cb(e,t,n):Sb(e,t,n),Xb=(e,t,n)=>n>32?Ob(e,t,n):Pb(e,t,n);class $b extends Mb{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,yb(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)))(this.state)}keccak(){!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,a=n[i],o=n[i+1],s=qb(a,o,1)^n[t],l=Xb(a,o,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=l}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=Bb[n],a=qb(t,i,r),o=Xb(t,i,r),s=Lb[n];t=e[s],i=e[s+1],e[s]=a,e[s+1]=o}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=Gb[r],e[1]^=Yb[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){vb(this);const{blockLen:t,state:n}=this,r=(e=Rb(e)).length;for(let i=0;i<r;){const a=Math.min(t-this.pos,r-i);for(let t=0;t<a;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){vb(this,!1),bb(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const a=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+a),r),this.posOut+=a,r+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return yb(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(xb(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:a}=this;return e||(e=new $b(t,n,r,a,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=a,e.destroyed=this.destroyed,e}}const Kb=(e,t,n)=>jb((()=>new $b(t,e,n))),Qb=Kb(1,136,32);let Jb=!1;const Zb=function(e){return Qb(e)};let ev=Zb;function tv(e){const t=Nt(e,"data");return jt(ev(t))}function nv(e,t,n,r,i){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let r=t+1;r<n.length&&n[r]>>6===2;r++)e++;return e}return"OVERRUN"===e?n.length-t-1:0}tv._=Zb,tv.lock=function(){Jb=!0},tv.register=function(e){if(Jb)throw new TypeError("keccak256 is locked");ev=e},Object.freeze(tv);const rv=Object.freeze({error:function(e,t,n,r,i){mt(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:nv,replace:function(e,t,n,r,i){return"OVERLONG"===e?(mt("number"===typeof i,"invalid bad code point for replacement","badCodepoint",i),r.push(i),0):(r.push(65533),nv(e,t,n))}});function iv(e,t){null==t&&(t=rv.error);const n=Nt(e,"bytes"),r=[];let i=0;for(;i<n.length;){const e=n[i++];if(e>>7===0){r.push(e);continue}let a=null,o=null;if(192===(224&e))a=1,o=127;else if(224===(240&e))a=2,o=2047;else{if(240!==(248&e)){i+=t(128===(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",i-1,n,r);continue}a=3,o=65535}if(i-1+a>=n.length){i+=t("OVERRUN",i-1,n,r);continue}let s=e&(1<<8-a-1)-1;for(let l=0;l<a;l++){let e=n[i];if(128!=(192&e)){i+=t("MISSING_CONTINUE",i,n,r),s=null;break}s=s<<6|63&e,i++}null!==s&&(s>1114111?i+=t("OUT_OF_RANGE",i-1-a,n,r,s):s>=55296&&s<=57343?i+=t("UTF16_SURROGATE",i-1-a,n,r,s):s<=o?i+=t("OVERLONG",i-1-a,n,r,s):r.push(s))}return r}function av(e,t){mt("string"===typeof e,"invalid string value","str",e),null!=t&&(!function(e){gt(bt.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}(t),e=e.normalize(t));let n=[];for(let r=0;r<e.length;r++){const t=e.charCodeAt(r);if(t<128)n.push(t);else if(t<2048)n.push(t>>6|192),n.push(63&t|128);else if(55296==(64512&t)){r++;const i=e.charCodeAt(r);mt(r<e.length&&56320===(64512&i),"invalid surrogate pair","str",e);const a=65536+((1023&t)<<10)+(1023&i);n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)}else n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)}return new Uint8Array(n)}function ov(e,t){return iv(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function sv(e){return tv(av(e))}const lv=32,cv=new Uint8Array(lv),uv=["then"],dv={},hv=new WeakMap;function fv(e){return hv.get(e)}function pv(e,t){hv.set(e,t)}
2function gv(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}function mv(e,t,n){return e.indexOf(null)>=0?t.map(((e,t)=>e instanceof bv?mv(fv(e),e,n):e)):e.reduce(((e,r,i)=>{let a=t.getValue(r);return r in e||(n&&a instanceof bv&&(a=mv(fv(a),a,n)),e[r]=a),e}),{})}var yv=new WeakMap;class bv extends Array{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0];let i=t[1],a=(t[2]||[]).slice(),o=!0;r!==dv&&(i=t,a=[],o=!1),super(i.length),kt(this,yv,void 0),i.forEach(((e,t)=>{this[t]=e}));const s=a.reduce(((e,t)=>("string"===typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(pv(this,Object.freeze(i.map(((e,t)=>{const n=a[t];return null!=n&&1===s.get(n)?n:null})))),Ot(yv,this,[]),null==Ct(yv,this)&&Ct(yv,this),!o)return;Object.freeze(this);const l=new Proxy(this,{get:(e,t,n)=>{if("string"===typeof t){if(t.match(/^[0-9]+$/)){const n=Qt(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const r=e[n];return r instanceof Error&&gv(`index ${n}`,r),r}if(uv.indexOf(t)>=0)return Reflect.get(e,t,n);const r=e[t];if(r instanceof Function)return function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return r.apply(this===n?e:this,i)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}});return pv(l,fv(this)),l}toArray(e){const t=[];return this.forEach(((n,r)=>{n instanceof Error&&gv(`index ${r}`,n),e&&n instanceof bv&&(n=n.toArray(e)),t.push(n)})),t}toObject(e){const t=fv(this);return t.reduce(((n,r,i)=>(gt(null!=r,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),mv(t,this,e))),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=fv(this),r=[],i=[];for(let a=e;a<t;a++)r.push(this[a]),i.push(n[a]);return new bv(dv,r,i)}filter(e,t){const n=fv(this),r=[],i=[];for(let a=0;a<this.length;a++){const o=this[a];o instanceof Error&&gv(`index ${a}`,o),e.call(t,o,a,this)&&(r.push(o),i.push(n[a]))}return new bv(dv,r,i)}map(e,t){const n=[];for(let r=0;r<this.length;r++){const i=this[r];i instanceof Error&&gv(`index ${r}`,i),n.push(e.call(t,i,r,this))}return n}getValue(e){const t=fv(this).indexOf(e);if(-1===t)return;const n=this[t];return n instanceof Error&&gv(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,t){return new bv(dv,e,t)}}function vv(e){let t=Zt(e);return gt(t.length<=lv,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:lv,offset:t.length}),t.length!==lv&&(t=_t(Lt([cv.slice(t.length%lv),t]))),t}class xv{constructor(e,t,n,r){St(this,"name",void 0),St(this,"type",void 0),St(this,"localName",void 0),St(this,"dynamic",void 0),ut(this,{name:e,type:t,localName:n,dynamic:r},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){mt(!1,e,this.localName,t)}}var wv=new WeakMap,kv=new WeakMap,Av=new WeakSet;class Ev{constructor(){wt(this,Av),kt(this,wv,void 0),kt(this,kv,void 0),Ot(wv,this,[]),Ot(kv,this,0)}get data(){return Lt(Ct(wv,this))}get length(){return Ct(kv,this)}appendWriter(e){return Pt(Av,this,Sv).call(this,_t(e.data))}writeBytes(e){let t=_t(e);const n=t.length%lv;return n&&(t=_t(Lt([t,cv.slice(n)]))),Pt(Av,this,Sv).call(this,t)}writeValue(e){return Pt(Av,this,Sv).call(this,vv(e))}writeUpdatableValue(){const e=Ct(wv,this).length;return Ct(wv,this).push(cv),Ot(kv,this,Ct(kv,this)+lv),t=>{Ct(wv,this)[e]=vv(t)}}}function Sv(e){return Ct(wv,this).push(e),Ot(kv,this,Ct(kv,this)+e.length),e.length}var Pv=new WeakMap,Cv=new WeakMap,Ov=new WeakMap,Tv=new WeakMap,Nv=new WeakMap,_v=new WeakSet;class Iv{constructor(e,t,n){wt(this,_v),St(this,"allowLoose",void 0),kt(this,Pv,void 0),kt(this,Cv,void 0),kt(this,Ov,void 0),kt(this,Tv,void 0),kt(this,Nv,void 0),ut(this,{allowLoose:!!t}),Ot(Pv,this,_t(e)),Ot(Ov,this,0),Ot(Tv,this,null),Ot(Nv,this,null!=n?n:1024),Ot(Cv,this,0)}get data(){return jt(Ct(Pv,this))}get dataLength(){return Ct(Pv,this).length}get consumed(){return Ct(Cv,this)}get bytes(){return new Uint8Array(Ct(Pv,this))}subReader(e){const t=new Iv(Ct(Pv,this).slice(Ct(Cv,this)+e),this.allowLoose,Ct(Nv,this));return Ot(Tv,t,this),t}readBytes(e,t){let n=Pt(_v,this,Mv).call(this,0,e,!!t);return Pt(_v,this,Rv).call(this,e),Ot(Cv,this,Ct(Cv,this)+n.length),n.slice(0,e)}readValue(){return Kt(this.readBytes(lv))}readIndex(){return Qt(Kt(this.readBytes(lv)))}}function Rv(e){var t;if(Ct(Tv,this))return Pt(_v,t=Ct(Tv,this),Rv).call(t,e);Ot(Ov,this,Ct(Ov,this)+e),gt(Ct(Nv,this)<1||Ct(Ov,this)<=Ct(Nv,this)*this.dataLength,`c
2ompressed ABI data exceeds inflation ratio of ${Ct(Nv,this)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:_t(Ct(Pv,this)),offset:Ct(Cv,this),length:e,info:{bytesRead:Ct(Ov,this),dataLength:this.dataLength}})}function Mv(e,t,n){let r=Math.ceil(t/lv)*lv;return Ct(Cv,this)+r>Ct(Pv,this).length&&(this.allowLoose&&n&&Ct(Cv,this)+t<=Ct(Pv,this).length?r=t:gt(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:_t(Ct(Pv,this)),length:Ct(Pv,this).length,offset:Ct(Cv,this)+r})),Ct(Pv,this).slice(Ct(Cv,this),Ct(Cv,this)+r)}const jv=BigInt(0),Lv=BigInt(36);function Bv(e){const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let i=0;i<40;i++)n[i]=t[i].charCodeAt(0);const r=Nt(tv(n));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&r[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const Fv={};for(let n=0;n<10;n++)Fv[String(n)]=String(n);for(let n=0;n<26;n++)Fv[String.fromCharCode(65+n)]=String(10+n);function Dv(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>Fv[e])).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const Uv=function(){const e={};for(let t=0;t<36;t++){e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t)}return e}();function zv(e){if(mt("string"===typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=Bv(e);return mt(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){mt(e.substring(2,4)===Dv(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=jv;for(let n=0;n<e.length;n++)t=t*Lv+Uv[e[n]];return t}(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return Bv("0x"+t)}mt(!1,"invalid address","address",e)}class Wv extends xv{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=mb.dereference(t,"string");try{n=zv(n)}catch(r){return this._throwError(r.message,t)}return e.writeValue(n)}decode(e){return zv(Jt(e.readValue(),20))}}class Hv extends xv{constructor(e){super(e.name,e.type,"_",e.dynamic),St(this,"coder",void 0),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}function Vv(e,t,n){let r=[];if(Array.isArray(n))r=n;else if(n&&"object"===typeof n){let e={};r=t.map((t=>{const r=t.localName;return gt(r,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),gt(!e[r],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[r]=!0,n[r]}))}else mt(!1,"invalid tuple value","tuple",n);mt(t.length===r.length,"types/value length mismatch","tuple",n);let i=new Ev,a=new Ev,o=[];t.forEach(((e,t)=>{let n=r[t];if(e.dynamic){let t=a.length;e.encode(a,n);let r=i.writeUpdatableValue();o.push((e=>{r(e+t)}))}else e.encode(i,n)})),o.forEach((e=>{e(i.length)}));let s=e.appendWriter(i);return s+=e.appendWriter(a),s}function Gv(e,t){let n=[],r=[],i=e.subReader(0);return t.forEach((t=>{let a=null;if(t.dynamic){let n=e.readIndex(),r=i.subReader(n);try{a=t.decode(r)}catch(o){if(ht(o,"BUFFER_OVERRUN"))throw o;a=o,a.baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(o){if(ht(o,"BUFFER_OVERRUN"))throw o;a=o,a.baseType=t.name,a.name=t.localName,a.type=t.type}if(void 0==a)throw new Error("investigate");n.push(a),r.push(t.localName||null)})),bv.fromItems(n,r)}class Yv extends xv{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),St(this,"coder",void 0),St(this,"length",void 0),ut(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n<this.length;n++)t.push(e);return t}encode(e,t){const n=mb.dereference(t,"array");Array.isArray(n)||this._throwError("expected array value",n);let r=this.length;-1===r&&(r=n.length,e.writeValue(n.length)),yt(n.length,r,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let a=0;a<n.length;a++)i.push(this.coder);return Vv(e,i,n)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),gt(t*lv<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*lv,length:e.dataLength}));let n=[];for(let r=0;r<t;r++)n.push(new Hv(this.coder));return Gv(e,n)}}class qv extends xv{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=mb.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}class Xv extends xv{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=_t(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}class $v extends Xv{constructor(e){super("bytes",e)}decode(e){return jt(super.decode(e))}}class Kv extends xv{constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),St(this,"size",void 0),ut(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=_t(mb.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return jt(e.readBytes(this.size))}}
2const Qv=new Uint8Array([]);class Jv extends xv{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(Qv)}decode(e){return e.readBytes(0),null}}const Zv=BigInt(0),ex=BigInt(1),tx=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class nx extends xv{constructor(e,t,n){const r=(t?"int":"uint")+8*e;super(r,r,n,!1),St(this,"size",void 0),St(this,"signed",void 0),ut(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=qt(mb.dereference(t,this.type)),r=Yt(tx,256);if(this.signed){let e=Yt(r,8*this.size-1);(n>e||n<-(e+ex))&&this._throwError("value out-of-bounds",t),n=Gt(n,256)}else(n<Zv||n>Yt(r,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=Yt(e.readValue(),8*this.size);return this.signed&&(t=Vt(t,8*this.size)),t}}class rx extends Xv{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,av(mb.dereference(t,"string")))}decode(e){return ov(super.decode(e))}}class ix extends xv{constructor(e,t){let n=!1;const r=[];e.forEach((e=>{e.dynamic&&(n=!0),r.push(e.type)}));super("tuple","tuple("+r.join(",")+")",t,n),St(this,"coders",void 0),ut(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))})),Object.freeze(e)}encode(e,t){const n=mb.dereference(t,"tuple");return Vv(e,this.coders,n)}decode(e){return Gv(e,this.coders)}}var ax;function ox(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const sx=ox("external public payable override".split(" ")),lx="constant external internal payable private public pure view override",cx=ox(lx.split(" ")),ux="constructor error event fallback function receive struct",dx=ox(ux.split(" ")),hx="calldata memory storage payable indexed",fx=ox(hx.split(" ")),px=ox([ux,hx,"tuple returns",lx].join(" ").split(" ")),gx={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},mx=new RegExp("^(\\s*)"),yx=new RegExp("^([0-9]+)"),bx=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),vx=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),xx=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var wx=new WeakMap,kx=new WeakMap,Ax=new WeakSet;class Ex{get offset(){return Ct(wx,this)}get length(){return Ct(kx,this).length-Ct(wx,this)}constructor(e){wt(this,Ax),kt(this,wx,void 0),kt(this,kx,void 0),Ot(wx,this,0),Ot(kx,this,e.slice())}clone(){return new Ex(Ct(kx,this))}reset(){Ot(wx,this,0)}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=Pt(Ax,this,Sx).call(this,Ct(wx,this)+1,e.match+1);return Ot(wx,this,e.match+1),t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;Ct(wx,this)<e.match-1;){const e=this.peek().linkNext;t.push(Pt(Ax,this,Sx).call(this,Ct(wx,this)+1,e)),Ot(wx,this,e)}return Ot(wx,this,e.match+1),t}peek(){if(Ct(wx,this)>=Ct(kx,this).length)throw new Error("out-of-bounds");return Ct(kx,this)[Ct(wx,this)]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){var e;const t=this.peek();return Ot(wx,this,(e=Ct(wx,this),e++,e)),t}toString(){const e=[];for(let t=Ct(wx,this);t<Ct(kx,this).length;t++){const n=Ct(kx,this)[t];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}}function Sx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new ax(Ct(kx,this).slice(e,t).map((t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e})))))}function Px(e){const t=[],n=t=>{const n=a<e.length?JSON.stringify(e[a]):"$EOI";throw new Error(`invalid token ${n} at ${a}: ${t}`)};let r=[],i=[],a=0;for(;a<e.length;){let o=e.substring(a),s=o.match(mx);s&&(a+=s[1].length,o=e.substring(a));const l={depth:r.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:a,value:-1};t.push(l);let c=gx[o[0]]||"";if(c){if(l.type=c,l.text=o[0],a++,"OPEN_PAREN"===c)r.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==c)0===r.length&&n("no matching open bracket"),l.match=r.pop(),t[l.match].match=t.length-1,l.depth--,l.linkBack=i.pop(),t[l.linkBack].linkNext=t.length-1;else if("COMMA"===c)l.linkBack=i.pop(),t[l.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===c)l.type="BRACKET";else if("CLOSE_BRACKET"===c){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=Qt(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(s=o.match(bx),s){if(l.text=s[1],a+=l.text.length,px.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(xx)){l.type="TYPE";continue}l.type="ID"}else{if(s=o.match(yx),!s)throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${a}`);l.text=s[1],l.type="NUMBER",a+=l.text.length}}return new Ex(t.map((e=>Object.freeze(e))))}function Cx(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function Ox(e,t){if(t.peekKeyword(dx)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function Tx(e,t){const n=new Set;for(;;
2){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function Nx(e){let t=Tx(e,cx);return Cx(t,ox("constant payable nonpayable".split(" "))),Cx(t,ox("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function _x(e,t){return e.popParams().map((e=>Yx.from(e,t)))}function Ix(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return qt(e.pop().text);throw new Error("invalid gas")}return null}function Rx(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}ax=Ex;const Mx=new RegExp(/^(.*)\[([0-9]*)\]$/);function jx(e){const t=e.match(xx);if(mt(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);mt(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);mt(0!==n&&n<=256&&n%8===0,"invalid numeric width","type",e)}return e}const Lx={},Bx=Symbol.for("_ethers_internal"),Fx="_ParamTypeInternal",Dx="_ErrorInternal",Ux="_EventInternal",zx="_ConstructorInternal",Wx="_FallbackInternal",Hx="_FunctionInternal",Vx="_StructInternal";var Gx=new WeakSet;class Yx{constructor(e,t,n,r,i,a,o,s){if(wt(this,Gx),St(this,"name",void 0),St(this,"type",void 0),St(this,"baseType",void 0),St(this,"indexed",void 0),St(this,"components",void 0),St(this,"arrayLength",void 0),St(this,"arrayChildren",void 0),vt(e,Lx,"ParamType"),Object.defineProperty(this,Bx,{value:Fx}),a&&(a=Object.freeze(a.slice())),"array"===r){if(null==o||null==s)throw new Error("")}else if(null!=o||null!=s)throw new Error("");if("tuple"===r){if(null==a)throw new Error("")}else if(null!=a)throw new Error("");ut(this,{name:t,type:n,baseType:r,indexed:i,components:a,arrayLength:o,arrayChildren:s})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"===typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map((t=>t.format(e))).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map((e=>n.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map(((e,r)=>n.components[r].walk(e,t)))}return t(this.type,e)}async walkAsync(e,t){const n=[],r=[e];return Pt(Gx,this,qx).call(this,n,e,t,(e=>{r[0]=e})),n.length&&await Promise.all(n),r[0]}static from(e,t){if(Yx.isParamType(e))return e;if("string"===typeof e)try{return Yx.from(Px(e),t)}catch(o){mt(!1,"invalid param type","obj",e)}else if(e instanceof Ex){let n="",r="",i=null;Tx(e,ox(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",i=e.popParams().map((e=>Yx.from(e))),n=`tuple(${i.map((e=>e.format())).join(",")})`):(n=jx(e.popType("TYPE")),r=n);let a=null,o=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();a=new Yx(Lx,"",n,r,null,i,o,a),o=t.value,n+=t.text,r="array",i=null}let s=null;if(Tx(e,fx).has("indexed")){if(!t)throw new Error("");s=!0}const l=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Yx(Lx,l,n,r,s,i,o,a)}const n=e.name;mt(!n||"string"===typeof n&&n.match(vx),"invalid name","obj.name",n);let r=e.indexed;null!=r&&(mt(t,"parameter cannot be indexed","obj.indexed",e.indexed),r=!!r);let i=e.type,a=i.match(Mx);if(a){const t=parseInt(a[2]||"-1"),o=Yx.from({type:a[1],components:e.components});return new Yx(Lx,n||"",i,"array",r,null,t,o)}if("tuple"===i||i.startsWith("tuple(")||i.startsWith("(")){const t=null!=e.components?e.components.map((e=>Yx.from(e))):null;return new Yx(Lx,n||"",i,"tuple",r,t,null,null)}return i=jx(e.type),new Yx(Lx,n||"",i,i,r,null,null,null)}static isParamType(e){return e&&e[Bx]===Fx}}function qx(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const i=this.arrayChildren,a=t.slice();return a.forEach(((t,r)=>{Pt(Gx,i,qx).call(i,e,t,n,(e=>{a[r]=e}))})),void r(a)}if(this.isTuple()){const i=this.components;let a;if(Array.isArray(t))a=t.slice();else{if(null==t||"object"!==typeof t)throw new Error("invalid tuple value");a=i.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(a.length!==this.components.length)throw new Error("array is wrong length");return a.forEach(((t,r)=>{var o;Pt(Gx,o=i[r],qx).call(o,e,t,n,(e=>{a[r]=e}))})),void r(a)}const i=n(this.type,t);i.then?e.push(async function(){r(await i)}()):r(i)}class Xx{constructor(e,t,n){St(this,"type",void 0),St(this,"input
2s",void 0),vt(e,Lx,"Fragment"),ut(this,{type:t,inputs:n=Object.freeze(n.slice())})}static from(e){if("string"===typeof e){try{Xx.from(JSON.parse(e))}catch(t){}return Xx.from(Px(e))}if(e instanceof Ex){switch(e.peekKeyword(dx)){case"constructor":return Zx.from(e);case"error":return Qx.from(e);case"event":return Jx.from(e);case"fallback":case"receive":return ew.from(e);case"function":return tw.from(e);case"struct":return nw.from(e)}}else if("object"===typeof e){switch(e.type){case"constructor":return Zx.from(e);case"error":return Qx.from(e);case"event":return Jx.from(e);case"fallback":case"receive":return ew.from(e);case"function":return tw.from(e);case"struct":return nw.from(e)}gt(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}mt(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Zx.isFragment(e)}static isError(e){return Qx.isFragment(e)}static isEvent(e){return Jx.isFragment(e)}static isFunction(e){return tw.isFragment(e)}static isStruct(e){return nw.isFragment(e)}}class $x extends Xx{constructor(e,t,n,r){super(e,t,r),St(this,"name",void 0),mt("string"===typeof n&&n.match(vx),"invalid identifier","name",n),r=Object.freeze(r.slice()),ut(this,{name:n})}}function Kx(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}class Qx extends $x{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,Bx,{value:Dx})}get selector(){return sv(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+Kx(e,this.inputs)),t.join(" ")}static from(e){if(Qx.isFragment(e))return e;if("string"===typeof e)return Qx.from(Px(e));if(e instanceof Ex){const t=Ox("error",e),n=_x(e);return Rx(e),new Qx(Lx,t,n)}return new Qx(Lx,e.name,e.inputs?e.inputs.map(Yx.from):[])}static isFragment(e){return e&&e[Bx]===Dx}}class Jx extends $x{constructor(e,t,n,r){super(e,"event",t,n),St(this,"anonymous",void 0),Object.defineProperty(this,Bx,{value:Ux}),ut(this,{anonymous:r})}get topicHash(){return sv(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+Kx(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){t=(t||[]).map((e=>Yx.from(e)));return new Jx(Lx,e,t,!1).topicHash}static from(e){if(Jx.isFragment(e))return e;if("string"===typeof e)try{return Jx.from(Px(e))}catch(t){mt(!1,"invalid event fragment","obj",e)}else if(e instanceof Ex){const t=Ox("event",e),n=_x(e,!0),r=!!Tx(e,ox(["anonymous"])).has("anonymous");return Rx(e),new Jx(Lx,t,n,r)}return new Jx(Lx,e.name,e.inputs?e.inputs.map((e=>Yx.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[Bx]===Ux}}class Zx extends Xx{constructor(e,t,n,r,i){super(e,t,n),St(this,"payable",void 0),St(this,"gas",void 0),Object.defineProperty(this,Bx,{value:zx}),ut(this,{payable:r,gas:i})}format(e){if(gt(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[`constructor${Kx(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(Zx.isFragment(e))return e;if("string"===typeof e)try{return Zx.from(Px(e))}catch(t){mt(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof Ex){Tx(e,ox(["constructor"]));const t=_x(e),n=!!Tx(e,sx).has("payable"),r=Ix(e);return Rx(e),new Zx(Lx,"constructor",t,n,r)}return new Zx(Lx,"constructor",e.inputs?e.inputs.map(Yx.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[Bx]===zx}}class ew extends Xx{constructor(e,t,n){super(e,"fallback",t),St(this,"payable",void 0),Object.defineProperty(this,Bx,{value:Wx}),ut(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(ew.isFragment(e))return e;if("string"===typeof e)try{return ew.from(Px(e))}catch(t){mt(!1,"invalid fallback fragment","obj",e)}else if(e instanceof Ex){const t=e.toString();mt(e.peekKeyword(ox(["fallback","receive"])),"type must be fallback or receive","obj",t);if("receive"===e.popKeyword(ox(["fallback","receive"]))){const t=_x(e);return mt(0===t.length,"receive cannot have arguments","obj.inputs",t),Tx(e,ox(["payable"])),Rx(e),new ew(Lx,[],!0)}let n=_x(e);
2n.length?mt(1===n.length&&"bytes"===n[0].type,"invalid fallback inputs","obj.inputs",n.map((e=>e.format("minimal"))).join(", ")):n=[Yx.from("bytes")];const r=Nx(e);if(mt("nonpayable"===r||"payable"===r,"fallback cannot be constants","obj.stateMutability",r),Tx(e,ox(["returns"])).has("returns")){const t=_x(e);mt(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return Rx(e),new ew(Lx,n,"payable"===r)}if("receive"===e.type)return new ew(Lx,[],!0);if("fallback"===e.type){const t=[Yx.from("bytes")],n="payable"===e.stateMutability;return new ew(Lx,t,n)}mt(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[Bx]===Wx}}class tw extends $x{constructor(e,t,n,r,i,a){super(e,"function",t,r),St(this,"constant",void 0),St(this,"outputs",void 0),St(this,"stateMutability",void 0),St(this,"payable",void 0),St(this,"gas",void 0),Object.defineProperty(this,Bx,{value:Hx});ut(this,{constant:"view"===n||"pure"===n,gas:a,outputs:i=Object.freeze(i.slice()),payable:"payable"===n,stateMutability:n})}get selector(){return sv(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+Kx(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(Kx(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){t=(t||[]).map((e=>Yx.from(e)));return new tw(Lx,e,"view",t,[],null).selector}static from(e){if(tw.isFragment(e))return e;if("string"===typeof e)try{return tw.from(Px(e))}catch(n){mt(!1,"invalid function fragment","obj",e)}else if(e instanceof Ex){const t=Ox("function",e),n=_x(e),r=Nx(e);let i=[];Tx(e,ox(["returns"])).has("returns")&&(i=_x(e));const a=Ix(e);return Rx(e),new tw(Lx,t,r,n,i,a)}let t=e.stateMutability;return null==t&&(t="payable","boolean"===typeof e.constant?(t="view",e.constant||(t="payable","boolean"!==typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!==typeof e.payable||e.payable||(t="nonpayable")),new tw(Lx,e.name,t,e.inputs?e.inputs.map(Yx.from):[],e.outputs?e.outputs.map(Yx.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[Bx]===Hx}}class nw extends $x{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,Bx,{value:Vx})}format(){throw new Error("@TODO")}static from(e){if("string"===typeof e)try{return nw.from(Px(e))}catch(t){mt(!1,"invalid struct fragment","obj",e)}else if(e instanceof Ex){const t=Ox("struct",e),n=_x(e);return Rx(e),new nw(Lx,t,n)}return new nw(Lx,e.name,e.inputs?e.inputs.map(Yx.from):[])}static isFragment(e){return e&&e[Bx]===Vx}}const rw=new Map;rw.set(0,"GENERIC_PANIC"),rw.set(1,"ASSERT_FALSE"),rw.set(17,"OVERFLOW"),rw.set(18,"DIVIDE_BY_ZERO"),rw.set(33,"ENUM_RANGE_ERROR"),rw.set(34,"BAD_STORAGE_DATA"),rw.set(49,"STACK_UNDERFLOW"),rw.set(50,"ARRAY_RANGE_ERROR"),rw.set(65,"OUT_OF_MEMORY"),rw.set(81,"UNINITIALIZED_FUNCTION_CALL");const iw=new RegExp(/^bytes([0-9]*)$/),aw=new RegExp(/^(u?int)([0-9]*)$/);let ow=null,sw=1024;var lw=new WeakSet;class cw{constructor(){wt(this,lw)}getDefaultValue(e){const t=e.map((e=>Pt(lw,this,uw).call(this,Yx.from(e))));return new ix(t,"_").defaultValue()}encode(e,t){yt(t.length,e.length,"types/values length mismatch");const n=e.map((e=>Pt(lw,this,uw).call(this,Yx.from(e)))),r=new ix(n,"_"),i=new Ev;return r.encode(i,t),i.data}decode(e,t,n){const r=e.map((e=>Pt(lw,this,uw).call(this,Yx.from(e))));return new ix(r,"_").decode(new Iv(t,n,sw))}static _setDefaultMaxInflation(e){mt("number"===typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),sw=e}static defaultAbiCoder(){return null==ow&&(ow=new cw),ow}static getBuiltinCallException(e,t,n){return function(e,t,n,r){let i="missing revert data",a=null,o=null;if(n){i="execution reverted";const e=Nt(n);if(n=jt(n),0===e.length)i+=" (no data present; likely require(false) occurred",a="require(false)";else if(e.length%32!==4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===jt(e.slice(0,4)))try{a=r.decode(["string"],e.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[a]},i+=`: ${JSON.stringify(a)}`}catch(l){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===jt(e.slice(0,4)))try{const t=Number(r.decode(["uint256"],e.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[t]},a=`Panic due to ${rw.get(t)||"UNKNOWN"}(${t})`,i+=`: ${a}`}catch(l){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}const s={to:t.to?zv(t.to):null,data:t.data||"0x"};return t.from&&(s.from=zv(t.from)),pt(i,"CALL_EXCEPTION",{action:e,data:n,reason:a,transaction:s,invocation:null,revert:o})}(e,t,n,cw.defaultAbiCoder())}}function uw(e){if(e.isArray())return new Yv(Pt(lw,this,uw).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new ix(e.components.map((e=>Pt(lw,this,uw).call(this,e))),e.name);switch(e.baseType){case"address":return new Wv(e.name);case"bool":return new qv(e.name);case"string":return new rx(e.name);case"bytes":return new $v(e.name);case"":return new Jv(e.name)}
2let t=e.type.match(aw);if(t){let n=parseInt(t[2]||"256");return mt(0!==n&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new nx(n/8,"int"===t[1],e.name)}if(t=e.type.match(iw),t){let n=parseInt(t[1]);return mt(0!==n&&n<=32,"invalid bytes length","param",e),new Kv(n,e.name)}mt(!1,"invalid type","type",e.type)}class dw{constructor(e,t,n){St(this,"fragment",void 0),St(this,"name",void 0),St(this,"signature",void 0),St(this,"topic",void 0),St(this,"args",void 0);const r=e.name,i=e.format();ut(this,{fragment:e,name:r,signature:i,topic:t,args:n})}}class hw{constructor(e,t,n,r){St(this,"fragment",void 0),St(this,"name",void 0),St(this,"args",void 0),St(this,"signature",void 0),St(this,"selector",void 0),St(this,"value",void 0);const i=e.name,a=e.format();ut(this,{fragment:e,name:i,args:n,signature:a,selector:t,value:r})}}class fw{constructor(e,t,n){St(this,"fragment",void 0),St(this,"name",void 0),St(this,"args",void 0),St(this,"signature",void 0),St(this,"selector",void 0);const r=e.name,i=e.format();ut(this,{fragment:e,name:r,args:n,signature:i,selector:t})}}class pw{static isIndexed(e){return!(!e||!e._isIndexed)}constructor(e){St(this,"hash",void 0),St(this,"_isIndexed",void 0),ut(this,{hash:e,_isIndexed:!0})}}const gw={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},mw={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&gw[e.toString()]&&(t=gw[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};var yw=new WeakMap,bw=new WeakMap,vw=new WeakMap,xw=new WeakMap,ww=new WeakSet;class kw{constructor(e){wt(this,ww),St(this,"fragments",void 0),St(this,"deploy",void 0),St(this,"fallback",void 0),St(this,"receive",void 0),kt(this,yw,void 0),kt(this,bw,void 0),kt(this,vw,void 0),kt(this,xw,void 0);let t=[];t="string"===typeof e?JSON.parse(e):e,Ot(vw,this,new Map),Ot(yw,this,new Map),Ot(bw,this,new Map);const n=[];for(const o of t)try{n.push(Xx.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}ut(this,{fragments:Object.freeze(n)});let r=null,i=!1;Ot(xw,this,this.getAbiCoder()),this.fragments.forEach(((e,t)=>{let n;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void ut(this,{deploy:e});case"fallback":return void(0===e.inputs.length?i=!0:(mt(!r||e.payable!==r.payable,"conflicting fallback fragments",`fragments[${t}]`,e),r=e,i=r.payable));case"function":n=Ct(vw,this);break;case"event":n=Ct(bw,this);break;case"error":n=Ct(yw,this);break;default:return}const a=e.format();n.has(a)||n.set(a,e)})),this.deploy||ut(this,{deploy:Zx.from("constructor()")}),ut(this,{fallback:r,receive:i})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return cw.defaultAbiCoder()}getFunctionName(e){const t=Pt(ww,this,Aw).call(this,e,null,!1);return mt(t,"no matching function","key",e),t.name}hasFunction(e){return!!Pt(ww,this,Aw).call(this,e,null,!1)}getFunction(e,t){return Pt(ww,this,Aw).call(this,e,t||null,!0)}forEachFunction(e){const t=Array.from(Ct(vw,this).keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(Ct(vw,this).get(r),n)}}getEventName(e){const t=Pt(ww,this,Ew).call(this,e,null,!1);return mt(t,"no matching event","key",e),t.name}hasEvent(e){return!!Pt(ww,this,Ew).call(this,e,null,!1)}getEvent(e,t){return Pt(ww,this,Ew).call(this,e,t||null,!0)}forEachEvent(e){const t=Array.from(Ct(bw,this).keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(Ct(bw,this).get(r),n)}}getError(e,t){if(It(e)){const t=e.toLowerCase();if(mw[t])return Qx.from(mw[t].signature);for(const e of Ct(yw,this).values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const t=[];for(const[n,r]of Ct(yw,this))n.split("(")[0]===e&&t.push(r);if(0===t.length)return"Error"===e?Qx.from("error Error(string)"):"Panic"===e?Qx.from("error Panic(uint256)"):null;if(t.length>1){mt(!1,`ambiguous error description (i.e. ${t.map((e=>JSON.stringify(e.format()))).join(", ")})`,"name",e)}return t[0]}if("Error(string)"===(e=Qx.from(e).format()))return Qx.from("error Error(string)");if("Panic(uint256)"===e)return Qx.from("error Panic(uint256)");const n=Ct(yw,this).get(e);return n||null}forEachError(e){const t=Array.from(Ct(yw,this).keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(Ct(yw,this).get(r),n)}}_decodeParams(e,t){return Ct(xw,this).decode(e,t)}_encodeParams(e,t){return Ct(xw,this).encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);mt(t,"unknown error","fragment",e),e=t}return mt(Ft(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,Ft(t,4))}encodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);mt(t,"unknown error","fragment",e),e=t}return Lt([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);mt(t,"unknown function","fragment",e),e=t}return mt(Ft(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,Ft(t,4))}encodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);mt(t,"unknown function","fragment",e),e=t}return Lt([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);mt(t,"unknown function","fragment",e),e=t}let n="invalid length for result data";const r=_t(t);if(r.length%32===0)try{return Ct(xw,this).decode(e.outputs,r)}catch(i){n="could not decode result data"}gt(!1,n,"BAD_DATA",{value:jt(r),info:{method:e.name,signature:e.format()}})}makeError(e,t){const n=Nt(e,"data"),r=cw.getBuiltinCallException("call",t,n);if(r.message.startsWith("execution reverted (unknown custom error)")){const e=jt(n.slice(0,4)),t=this.getError(e);
2if(t)try{const e=Ct(xw,this).decode(t.inputs,n.slice(4));r.revert={name:t.name,signature:t.format(),args:e},r.reason=r.revert.signature,r.message=`execution reverted: ${r.reason}`}catch(a){r.message="execution reverted (coult not decode custom error)"}}const i=this.parseTransaction(t);return i&&(r.invocation={method:i.name,signature:i.signature,args:i.args}),r}encodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);mt(t,"unknown function","fragment",e),e=t}return jt(Ct(xw,this).encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"===typeof e){const t=this.getEvent(e);mt(t,"unknown event","eventFragment",e),e=t}gt(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});const n=[];e.anonymous||n.push(e.topicHash);const r=(e,t)=>"string"===e.type?sv(t):"bytes"===e.type?tv(jt(t)):("bool"===e.type&&"boolean"===typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=Jt(t):e.type.match(/^bytes/)?t=function(e,t){return Dt(e,t,!1)}(t,32):"address"===e.type&&Ct(xw,this).encode(["address"],[t]),Ut(jt(t),32));for(t.forEach(((t,i)=>{const a=e.inputs[i];a.indexed?null==t?n.push(null):"array"===a.baseType||"tuple"===a.baseType?mt(!1,"filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?n.push(t.map((e=>r(a,e)))):n.push(r(a,t)):mt(null==t,"cannot filter non-indexed parameters; must be null","contract."+a.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){if("string"===typeof e){const t=this.getEvent(e);mt(t,"unknown event","eventFragment",e),e=t}const n=[],r=[],i=[];return e.anonymous||n.push(e.topicHash),mt(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach(((e,a)=>{const o=t[a];if(e.indexed)if("string"===e.type)n.push(sv(o));else if("bytes"===e.type)n.push(tv(o));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(Ct(xw,this).encode([e.type],[o]))}else r.push(e),i.push(o)})),{data:Ct(xw,this).encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"===typeof e){const t=this.getEvent(e);mt(t,"unknown event","eventFragment",e),e=t}if(null!=n&&!e.anonymous){const t=e.topicHash;mt(It(n[0],32)&&n[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],i=[],a=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(Yx.from({type:"bytes32",name:e.name})),a.push(!0)):(r.push(e),a.push(!1)):(i.push(e),a.push(!1))}));
2const o=null!=n?Ct(xw,this).decode(r,Lt(n)):null,s=Ct(xw,this).decode(i,t,!0),l=[],c=[];let u=0,d=0;return e.inputs.forEach(((e,t)=>{let n=null;if(e.indexed)if(null==o)n=new pw(null);else if(a[t])n=new pw(o[d++]);else try{n=o[d++]}catch(r){n=r}else try{n=s[u++]}catch(r){n=r}l.push(n),c.push(e.name||null)})),bv.fromItems(l,c)}parseTransaction(e){const t=Nt(e.data,"tx.data"),n=qt(null!=e.value?e.value:0,"tx.value"),r=this.getFunction(jt(t.slice(0,4)));if(!r)return null;const i=Ct(xw,this).decode(r.inputs,t.slice(4));return new hw(r,r.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new dw(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=jt(e),n=this.getError(Ft(t,0,4));if(!n)return null;const r=Ct(xw,this).decode(n.inputs,Ft(t,4));return new fw(n,n.selector,r)}static from(e){return e instanceof kw?e:"string"===typeof e?new kw(JSON.parse(e)):"function"===typeof e.formatJson?new kw(e.formatJson()):"function"===typeof e.format?new kw(e.format("json")):new kw(e)}}function Aw(e,t,n){if(It(e)){const t=e.toLowerCase();for(const e of Ct(vw,this).values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of Ct(vw,this))t.split("(")[0]===e&&r.push(n);if(t){const e=t.length>0?t[t.length-1]:null;let n=t.length,i=!0;mb.isTyped(e)&&"overrides"===e.type&&(i=!1,n--);for(let t=r.length-1;t>=0;t--){const e=r[t].inputs.length;e===n||i&&e===n-1||r.splice(t,1)}for(let a=r.length-1;a>=0;a--){const e=r[a].inputs;for(let n=0;n<t.length;n++)if(mb.isTyped(t[n])){if(n>=e.length){if("overrides"===t[n].type)continue;r.splice(a,1);break}if(t[n].type!==e[n].baseType){r.splice(a,1);break}}}}if(1===r.length&&t&&t.length!==r[0].inputs.length){const e=t[t.length-1];(null==e||Array.isArray(e)||"object"!==typeof e)&&r.splice(0,1)}if(0===r.length)return null;if(r.length>1&&n){mt(!1,`ambiguous function description (i.e. matches ${r.map((e=>JSON.stringify(e.format()))).join(", ")})`,"key",e)}return r[0]}const r=Ct(vw,this).get(tw.from(e).format());return r||null}function Ew(e,t,n){if(It(e)){const t=e.toLowerCase();for(const e of Ct(bw,this).values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of Ct(bw,this))t.split("(")[0]===e&&r.push(n);if(t){for(let e=r.length-1;e>=0;e--)r[e].inputs.length<t.length&&r.splice(e,1);for(let e=r.length-1;e>=0;e--){const n=r[e].inputs;for(let i=0;i<t.length;i++)if(mb.isTyped(t[i])&&t[i].type!==n[i].baseType){r.splice(e,1);break}}}if(0===r.length)return null;if(r.length>1&&n){mt(!1,`ambiguous event description (i.e. matches ${r.map((e=>JSON.stringify(e.format()))).join(", ")})`,"key",e)}return r[0]}const r=Ct(bw,this).get(Jx.from(e).format());return r||null}function Sw(e){return e&&"function"===typeof e.getAddress}async function Pw(e,t){const n=await t;return null!=n&&"0x0000000000000000000000000000000000000000"!==n||(gt("string"!==typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),mt(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),zv(n)}function Cw(e,t){return"string"===typeof e?e.match(/^0x[0-9a-f]{40}$/i)?zv(e):(gt(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),Pw(e,t.resolveName(e))):Sw(e)?Pw(e,e.getAddress()):e&&"function"===typeof e.then?Pw(e,e):void mt(!1,"unsupported addressable value","target",e)}function Ow(e,t){return{address:zv(e),storageKeys:t.map(((e,t)=>(mt(It(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}function Tw(e){if(Array.isArray(e))return e.map(((t,n)=>Array.isArray(t)?(mt(2===t.length,"invalid slot set",`value[${n}]`,t),Ow(t[0],t[1])):(mt(null!=t&&"object"===typeof t,"invalid address-slot set","value",e),Ow(t.address,t.storageKeys))));mt(null!=e&&"object"===typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return Ow(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}const Nw=BigInt(0);function _w(e){return null==e?null:e}function Iw(e){return null==e?null:e.toString()}class Rw{constructor(e,t,n){St(this,"gasPrice",void 0),St(this,"maxFeePerGas",void 0),St(this,"maxPriorityFeePerGas",void 0),ut(this,{gasPrice:_w(e),maxFeePerGas:_w(t),maxPriorityFeePerGas:_w(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Iw(e),maxFeePerGas:Iw(t),maxPriorityFeePerGas:Iw(n)}}}function Mw(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=jt(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const i of n)i in e&&null!=e[i]&&(t[i]=qt(e[i],`request.${i}`));const r="type,nonce".split(/,/);for(const i of r)i in e&&null!=e[i]&&(t[i]=Qt(e[i],`request.${i}`));return e.accessList&&(t.accessList=Tw(e.accessList)),e.authorizationList&&(t.authorizationList=e.authorizationList.slice()),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobWrapperVersion"in e&&(t.blobWrapperVersion=e.blobWrapperVersion),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>Rt(e)?jt(e):Object.assign({},e)))),t}var jw=new WeakMap;class Lw{constructor(e,t){St(this,"provider",void 0),St(this,"number",void 0),St(this,"hash",void 0),St(this,"timestamp",void 0),St(this,"parentHash",void 0),St(this,"parentBeaconBlockRoot",void 0),St(this,"nonce",void 0),St(this,"difficulty",void 0),St(this,"gasLim
2it",void 0),St(this,"gasUsed",void 0),St(this,"stateRoot",void 0),St(this,"receiptsRoot",void 0),St(this,"transactionsRoot",void 0),St(this,"blobGasUsed",void 0),St(this,"excessBlobGas",void 0),St(this,"miner",void 0),St(this,"prevRandao",void 0),St(this,"extraData",void 0),St(this,"baseFeePerGas",void 0),kt(this,jw,void 0),Ot(jw,this,e.transactions.map((e=>"string"!==typeof e?new zw(e,t):e))),ut(this,{provider:t,hash:_w(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:_w(e.prevRandao),extraData:e.extraData,baseFeePerGas:_w(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot,transactionsRoot:e.transactionsRoot})}get transactions(){return Ct(jw,this).map((e=>"string"===typeof e?e:e.hash))}get prefetchedTransactions(){const e=Ct(jw,this).slice();return 0===e.length?[]:(gt("object"===typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:i,hash:a,miner:o,prevRandao:s,nonce:l,number:c,parentHash:u,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:f,transactionsRoot:p,timestamp:g,transactions:m}=this;return{_type:"Block",baseFeePerGas:Iw(e),difficulty:Iw(t),extraData:n,gasLimit:Iw(r),gasUsed:Iw(i),blobGasUsed:Iw(this.blobGasUsed),excessBlobGas:Iw(this.excessBlobGas),hash:a,miner:o,prevRandao:s,nonce:l,number:c,parentHash:u,timestamp:g,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:f,transactionsRoot:p,transactions:m}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return Ct(jw,this).length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"===typeof e)t=Ct(jw,this)[e];else{const n=e.toLowerCase();for(const e of Ct(jw,this)){if("string"===typeof e){if(e!==n)continue;t=e;break}if(e.hash===n){t=e;break}}}if(null==t)throw new Error("no such tx");return"string"===typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){const t=this.prefetchedTransactions;if("number"===typeof e)return t[e];e=e.toLowerCase();for(const n of t)if(n.hash===e)return n;mt(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return{orphan:"drop-block",hash:(e=this).hash,number:e.number};var e}}class Bw{constructor(e,t){St(this,"provider",void 0),St(this,"transactionHash",void 0),St(this,"blockHash",void 0),St(this,"blockNumber",void 0),St(this,"removed",void 0),St(this,"address",void 0),St(this,"data",void 0),St(this,"topics",void 0),St(this,"index",void 0),St(this,"transactionIndex",void 0),this.provider=t;const n=Object.freeze(e.topics.slice());ut(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:n,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){const{address:e,blockHash:t,blockNumber:n,data:r,index:i,removed:a,topics:o,transactionHash:s,transactionIndex:l}=this;return{_type:"log",address:e,blockHash:t,blockNumber:n,data:r,index:i,removed:a,topics:o,transactionHash:s,transactionIndex:l}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return gt(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return gt(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const e=await this.provider.getTransactionReceipt(this.transactionHash);return gt(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return{orphan:"drop-log",log:{transactionHash:(e=this).transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}};var e}}var Fw=new WeakMap;class Dw{constructor(e,t){St(this,"provider",void 0),St(this,"to",void 0),St(this,"from",void 0),St(this,"contractAddress",void 0),St(this,"hash",void 0),St(this,"index",void 0),St(this,"blockHash",void 0),St(this,"blockNumber",void 0),St(this,"logsBloom",void 0),St(this,"gasUsed",void 0),St(this,"blobGasUsed",void 0),St(this,"cumulativeGasUsed",void 0),St(this,"gasPrice",void 0),St(this,"blobGasPrice",void 0),St(this,"type",void 0),St(this,"status",void 0),St(this,"root",void 0),kt(this,Fw,void 0),Ot(Fw,this,Object.freeze(e.logs.map((e=>new Bw(e,t)))));let n=Nw;null!=e.effectiveGasPrice?n=e.effectiveGasPrice:null!=e.gasPrice&&(n=e.gasPrice),ut(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return Ct(Fw,this)}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:i,blockHash:a,blockNumber:o,logsBloom:s,logs:l,status:c,root:u}=this;return{_type:"TransactionReceipt",blockHash:a,blockNumber:o,contractAddress:n,cumulativeGasUsed:Iw(this.cumulativeGasUsed),from:t,gasPrice:Iw(this.gasPrice),blobGasUsed:Iw(this.blobGasUsed),blobGasPrice:Iw(this.blobGasPrice),gasUsed:Iw(this.gasUsed),hash:r,index:i,logs:l,logsBloom:s,root:u,status:c,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const e=await this.provider.getBlock(this.blockHash);if(null==e)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(null==e)throw new Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return Hw(this)}reorderedEvent(e){return gt(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),Ww(this,e)}}var Uw=new WeakMap;class zw{constructor(e,t){St(this,"provider",void 0),St(this,"blockNumber",void 0),St(this,"blockHash",void 0),St(this,"index",void 0),St(this,"hash",void 0),St(this,"type",void 0),St(this,"to",void 0),St(this,"from",void 0),St(this,"nonce",void 0),St(this,"gasLim
2it",void 0),St(this,"gasPrice",void 0),St(this,"maxPriorityFeePerGas",void 0),St(this,"maxFeePerGas",void 0),St(this,"maxFeePerBlobGas",void 0),St(this,"data",void 0),St(this,"value",void 0),St(this,"chainId",void 0),St(this,"signature",void 0),St(this,"accessList",void 0),St(this,"blobVersionedHashes",void 0),St(this,"authorizationList",void 0),kt(this,Uw,void 0),this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.authorizationList=null!=e.authorizationList?e.authorizationList:null,Ot(Uw,this,-1)}toJSON(){const{blockNumber:e,blockHash:t,index:n,hash:r,type:i,to:a,from:o,nonce:s,data:l,signature:c,accessList:u,blobVersionedHashes:d}=this;return{_type:"TransactionResponse",accessList:u,blockNumber:e,blockHash:t,blobVersionedHashes:d,chainId:Iw(this.chainId),data:l,from:o,gasLimit:Iw(this.gasLimit),gasPrice:Iw(this.gasPrice),hash:r,maxFeePerGas:Iw(this.maxFeePerGas),maxPriorityFeePerGas:Iw(this.maxPriorityFeePerGas),maxFeePerBlobGas:Iw(this.maxFeePerBlobGas),nonce:s,signature:c,to:a,index:n,type:i,value:Iw(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){const t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;const t=this.provider.getBlock(e);if(null==t)throw new Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){const{tx:e,blockNumber:t}=await ct({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){const n=null==e?1:e,r=null==t?0:t;let i=Ct(Uw,this),a=-1,o=-1===i;const s=async()=>{if(o)return null;const{blockNumber:e,nonce:t}=await ct({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce)return void(i=e);if(o)return null;const r=await this.getTransaction();if(!r||null==r.blockNumber)for(-1===a&&(a=i-3,a<Ct(Uw,this)&&(a=Ct(Uw,this)));a<=e;){if(o)return null;const t=await this.provider.getBlock(a,!0);if(null==t)return;for(const e of t)if(e===this.hash)return;for(let r=0;r<t.length;r++){const a=await t.getTransaction(r);if(a.from===this.from&&a.nonce===this.nonce){if(o)return null;const t=await this.provider.getTransactionReceipt(a.hash);if(null==t)return;if(e-t.blockNumber+1<n)return;let r="replaced";a.data===this.data&&a.to===this.to&&a.value===this.value?r="repriced":"0x"===a.data&&a.from===a.to&&a.value===Nw&&(r="cancelled"),gt(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===r||"cancelled"===r,reason:r,replacement:a.replaceableTransaction(i),hash:a.hash,receipt:t})}}a++}},l=e=>{if(null==e||0!==e.status)return e;gt(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},c=await this.provider.getTransactionReceipt(this.hash);if(0===n)return l(c);if(c){if(1===n||await c.confirmations()>=n)return l(c)}else if(await s(),0===n)return null;const u=new Promise(((e,t)=>{const a=[],c=()=>{a.forEach((e=>e()))};if(a.push((()=>{o=!0})),r>0){const e=setTimeout((()=>{c(),t(pt("wait for transaction timeout","TIMEOUT"))}),r);a.push((()=>{clearTimeout(e)}))}const u=async r=>{if(await r.confirmations()>=n){c();try{e(l(r))}catch(i){t(i)}}};if(a.push((()=>{this.provider.off(this.hash,u)})),this.provider.on(this.hash,u),i>=0){const e=async()=>{try{await s()}catch(n){if(ht(n,"TRANSACTION_REPLACED"))return c(),void t(n)}o||this.provider.once("block",e)};a.push((()=>{this.provider.off("block",e)})),this.provider.once("block",e)}}));return await u}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return gt(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Hw(this)}reorderedEvent(e){return gt(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),gt(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Ww(this,e)}replaceableTransaction(e){mt(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new zw(this,this.provider);return Ot(Uw,t,e),t}}function Ww(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function Hw(e){return{orphan:"drop-transaction",tx:e}}var Vw=new WeakMap;class Gw{constructor(e,t,n){St(this,"filter",void 0),St(this,"emitter",void 0),kt(this,Vw,void 0),Ot(Vw,this,t),ut(this,{emitter:e,filter:n})}async removeListener(){null!=Ct(Vw,this)&&await this.emitter.off(this.filter,Ct
2(Vw,this))}}class Yw extends Bw{constructor(e,t,n){super(e,e.provider),St(this,"interface",void 0),St(this,"fragment",void 0),St(this,"args",void 0);ut(this,{args:t.decodeEventLog(n,e.data,e.topics),fragment:n,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class qw extends Bw{constructor(e,t){super(e,e.provider),St(this,"error",void 0),ut(this,{error:t})}}var Xw=new WeakMap;class $w extends Dw{constructor(e,t,n){super(n,t),kt(this,Xw,void 0),Ot(Xw,this,e)}get logs(){return super.logs.map((e=>{const t=e.topics.length?Ct(Xw,this).getEvent(e.topics[0]):null;if(t)try{return new Yw(e,Ct(Xw,this),t)}catch(n){return new qw(e,n)}return e}))}}var Kw=new WeakMap;class Qw extends zw{constructor(e,t,n){super(n,t),kt(this,Kw,void 0),Ot(Kw,this,e)}async wait(e,t){const n=await super.wait(e,t);return null==n?null:new $w(Ct(Kw,this),this.provider,n)}}class Jw extends Gw{constructor(e,t,n,r){super(e,t,n),St(this,"log",void 0),ut(this,{log:r})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class Zw extends Jw{constructor(e,t,n,r,i){super(e,t,n,new Yw(i,e.interface,r));ut(this,{args:e.interface.decodeEventLog(r,this.log.data,this.log.topics),fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const ek=BigInt(0);function tk(e){return e&&"function"===typeof e.call}function nk(e){return e&&"function"===typeof e.estimateGas}function rk(e){return e&&"function"===typeof e.resolveName}function ik(e){return e&&"function"===typeof e.sendTransaction}function ak(e){if(null!=e){if(rk(e))return e;if(e.provider)return e.provider}}var ok=new WeakMap;class sk{constructor(e,t,n){if(kt(this,ok,void 0),St(this,"fragment",void 0),ut(this,{fragment:t}),t.inputs.length<n.length)throw new Error("too many arguments");const r=lk(e.runner,"resolveName"),i=rk(r)?r:null;Ot(ok,this,async function(){const r=await Promise.all(t.inputs.map(((e,t)=>null==n[t]?null:e.walkAsync(n[t],((e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map((e=>Cw(e,i)))):Cw(t,i):t)))));return e.interface.encodeFilterTopics(t,r)}())}getTopicFilter(){return Ct(ok,this)}}function lk(e,t){return null==e?null:"function"===typeof e[t]?e:e.provider&&"function"===typeof e.provider[t]?e.provider:null}function ck(e){return null==e?null:e.provider||null}async function uk(e,t){const n=mb.dereference(e,"overrides");mt("object"===typeof n,"invalid overrides parameter","overrides",e);const r=Mw(n);return mt(null==r.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),mt(null==r.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}function dk(e){const t=async function(t){const n=await uk(t,["data"]);n.to=await e.getAddress(),n.from&&(n.from=await Cw(n.from,ak(e.runner)));const r=e.interface,i=qt(n.value||ek,"overrides.value")===ek,a="0x"===(n.data||"0x");!r.fallback||r.fallback.payable||!r.receive||a||i||mt(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),mt(r.fallback||a,"cannot send data to receive-only contract","overrides.data",n.data);return mt(r.receive||r.fallback&&r.fallback.payable||i,"cannot send value to non-payable fallback","overrides.value",n.value),mt(r.fallback||a,"cannot send data to receive-only contract","overrides.data",n.data),n},n=async function(n){const r=e.runner;gt(ik(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const i=await r.sendTransaction(await t(n)),a=ck(e.runner);return new Qw(e.interface,a,i)},r=async e=>await n(e);return ut(r,{_contract:e,estimateGas:async function(n){const r=lk(e.runner,"estimateGas");return gt(nk(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await t(n))},populateTransaction:t,send:n,staticCall:async function(n){const r=lk(e.runner,"call");gt(tk(r),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const i=await t(n);try{return await r.call(i)}catch(a){if(ft(a)&&a.data)throw e.interface.makeError(a.data,i);throw a}}}),r}function hk(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const a=e.interface.getFunction(t,r);return gt(a,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),a},r=async function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];const a=n(...r);let o={};if(a.inputs.length+1===r.length&&(o=await uk(r.pop()),o.from&&(o.from=await Cw(o.from,ak(e.runner)))),a.inputs.length!==r.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const s=await async function(e,t,n){const r=lk(e,"resolveName"),i=rk(r)?r:null;return await Promise.all(t.map(((e,t)=>e.walkAsync(n[t],((e,t)=>(t=mb.dereference(t,e),"address"===e?Cw(t,i):t))))))}(e.runner,a.inputs,r);return Object.assign({},o,await ct({to:e.getAddress(),data:e.interface.encodeFunctionData(a,s)}))},i=async function(){const e=await o(...arguments);return 1===e.length?e[0]:e},a=async function(){const t=e.runner;gt(ik(t),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await t.sendTransaction(await r(...arguments)),i=ck(e.runner);return new Qw(e.interface,i,n)},o=async function(){const t=lk(e.runner,"call");gt(tk(t),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const i=await r(...arguments);let a="0x";try{a=await t.call(i)}catch(s){if(ft(s)&&s.data)throw e.interface.makeError(s.data,i);throw s}const o=n(...arguments);return e.interface.decodeFunctionResult(o,a)},s=async function(){return n(...arguments).constant?await i(...arguments):await a(...arguments)};return ut(s,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:async function(){const t=lk(e.runner,"estimateGas");return gt(nk(t),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await t.estimateGas(await r(...arguments))},populateTransaction:r,send:a,staticCall:i,staticCallResult:o}),Object.defineProperty(s,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getFunction(t);return gt(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),s}const fk=Symbol.for("_ethersInternal_contract"),pk=new WeakMap;function gk(e){return pk.get(e[fk])}async function mk(e,t){let n,r=null;if(Array.isArray(t)){const r=function(t){if(It(t,32))return t;const n=e.interface.getEvent(t);return mt(n,"unknown fragment","name",t),n.topicHash};n=t.map((e=>null==e?null:Array.isArray(e)?e.map(r):r(e)))}else"*"===t?n=[null]:"string"===typeof t?It(t,32)?n=[t]:(r=e.interface.getEvent(t),mt(r,"unknown fragment","event",t),n=[r.topicHash]):(i=t)&&"object"===typeof i&&"getTopicFilter"in i&&"function"===typeof i.getTopicFilter&&i.fragment?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):mt(!1,"unknown event name","event",t);var i;n=n.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()}));const a=n.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&");return{fragment:r,tag:a,topics:n}}async function yk(e,t){const{subs:n}=gk(e);return n.get((await mk(e,t)).tag)||null}
2async function bk(e,t,n){const r=ck(e.runner);gt(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:i,tag:a,topics:o}=await mk(e,n),{addr:s,subs:l}=gk(e);let c=l.get(a);if(!c){const t={address:s||e,topics:o},u=t=>{let r=i;if(null==r)try{r=e.interface.getEvent(t.topics[0])}catch(a){}if(r){const a=r,o=i?e.interface.decodeEventLog(i,t.data,t.topics):[];xk(e,n,o,(r=>new Zw(e,r,n,a,t)))}else xk(e,n,[],(r=>new Jw(e,r,n,t)))};let d=[];c={tag:a,listeners:[],start:()=>{d.length||d.push(r.on(t,u))},stop:async()=>{if(0==d.length)return;let e=d;d=[],await Promise.all(e),r.off(t,u)}},l.set(a,c)}return c}let vk=Promise.resolve();async function xk(e,t,n,r){try{await vk}catch(a){}const i=async function(e,t,n,r){await vk;const i=await yk(e,t);if(!i)return!1;const o=i.listeners.length;return i.listeners=i.listeners.filter((t=>{let{listener:i,once:o}=t;const s=Array.from(n);r&&s.push(r(o?null:i));try{i.call(e,...s)}catch(a){}return!o})),0===i.listeners.length&&(i.stop(),gk(e).subs.delete(i.tag)),o>0}(e,t,n,r);return vk=i,await i}const wk=["then"];class kk{constructor(e,t,n,r){St(this,"target",void 0),St(this,"interface",void 0),St(this,"runner",void 0),St(this,"filters",void 0),St(this,fk,void 0),St(this,"fallback",void 0),mt("string"===typeof e||Sw(e),"invalid value for Contract target","target",e),null==n&&(n=null);const i=kw.from(t);let a;ut(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,fk,{value:{}});let o=null,s=null;if(r){const e=ck(n);s=new Qw(this.interface,e,r)}let l=new Map;if("string"===typeof e)if(It(e))o=e,a=Promise.resolve(e);else{const t=lk(n,"resolveName");if(!rk(t))throw pt("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});a=t.resolveName(e).then((t=>{if(null==t)throw pt("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return gk(this).addr=t,t}))}else a=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return gk(this).addr=e,e}));!function(e,t){pk.set(e[fk],t)}(this,{addrPromise:a,addr:o,deployTx:s,subs:l});const c=new Proxy({},{get:(e,t,n)=>{if("symbol"===typeof t||wk.indexOf(t)>=0)return Reflect.get(e,t,n);try{return this.getEvent(t)}catch(r){if(!ht(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>wk.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return ut(this,{filters:c}),ut(this,{fallback:i.receive||i.fallback?dk(this):null}),new Proxy(this,{get:(e,t,n)=>{if("symbol"===typeof t||t in e||wk.indexOf(t)>=0)return Reflect.get(e,t,n);try{return e.getFunction(t)}catch(r){if(!ht(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>"symbol"===typeof t||t in e||wk.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new kk(this.target,this.interface,e)}attach(e){return new kk(e,this.interface,this.runner)}async getAddress(){return await gk(this).addrPromise}async getDeployedCode(){const e=ck(this.runner);gt(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();
2if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=ck(this.runner);return gt(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,n)=>{const r=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",r)}catch(i){n(i)}};r()}))}deploymentTransaction(){return gk(this).deployTx}getFunction(e){"string"!==typeof e&&(e=e.format());return hk(this,e)}getEvent(e){return"string"!==typeof e&&(e=e.format()),function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const a=e.interface.getEvent(t,r);return gt(a,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),a},r=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return new sk(e,n(...r),r)};return ut(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getEvent(t);return gt(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),r}(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){null==t&&(t=0),null==n&&(n="latest");const{addr:r,addrPromise:i}=gk(this),a=r||await i,{fragment:o,topics:s}=await mk(this,e),l={address:a,topics:s,fromBlock:t,toBlock:n},c=ck(this.runner);return gt(c,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await c.getLogs(l)).map((e=>{let t=o;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(n){}if(t)try{return new Yw(e,this.interface,t)}catch(n){return new qw(e,n)}return new Bw(e,c)}))}async on(e,t){const n=await bk(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await bk(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return await xk(this,e,n,null)}async listenerCount(e){if(e){const t=await yk(this,e);return t?t.listeners.length:0}const{subs:t}=gk(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const t=await yk(this,e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}const{subs:t}=gk(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map((e=>{let{listener:t}=e;return t})));return n}async off(e,t){const n=await yk(this,e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return null!=t&&0!==n.listeners.length||(n.stop(),gk(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await yk(this,e);if(!t)return this;t.stop(),gk(this).subs.delete(t.tag)}else{const{subs:e}=gk(this);for(const{tag:t,stop:n}of e.values())n(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends kk{constructor(t){super(t,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}}}static from(e,t,n){null==n&&(n=null);return new this(e,t,n)}}class Ak extends(function(){return kk}()){}function Ek(e){return async function(t,n){gt(null==n||!n.cancelled,"request cancelled before sending","CANCELLED");const r=t.url.split(":")[0].toLowerCase();gt("http"===r||"https"===r,`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),gt("https"===r||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const a=new AbortController,o=setTimeout((()=>{i=pt("request timeout","TIMEOUT"),a.abort()}),t.timeout);n&&n.addListener((()=>{i=pt("request cancelled","CANCELLED"),a.abort()}));const s=Object.assign({},e,{method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:a.signal});let l;try{l=await fetch(t.url,s)}catch(oA){if(clearTimeout(o),i)throw i;throw oA}clearTimeout(o);const c={};
2l.headers.forEach(((e,t)=>{c[t.toLowerCase()]=e}));const u=await l.arrayBuffer(),d=null==u?null:new Uint8Array(u);return{statusCode:l.status,statusMessage:l.statusText,headers:c,body:d}}}Ek({});let Sk=Ek();const Pk=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Ck=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let Ok=!1;async function Tk(e,t){try{const t=e.match(Pk);if(!t)throw new Error("invalid data");return new sA(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?function(e){e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return Nt(t)}(t[3]):av(t[3].replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))))}catch(n){return new sA(599,"BAD REQUEST (invalid data: URI)",{},null,new Zk(e))}}function Nk(e){return async function(t,n){try{const n=t.match(Ck);if(!n)throw new Error("invalid link");return new Zk(`${e}${n[2]}`)}catch(r){return new sA(599,"BAD REQUEST (invalid IPFS URI)",{},null,new Zk(t))}}}const _k={data:Tk,ipfs:Nk("https://gateway.ipfs.io/ipfs/")},Ik=new WeakMap;var Rk=new WeakMap,Mk=new WeakMap;class jk{constructor(e){kt(this,Rk,void 0),kt(this,Mk,void 0),Ot(Rk,this,[]),Ot(Mk,this,!1),Ik.set(e,(()=>{if(!Ct(Mk,this)){Ot(Mk,this,!0);for(const e of Ct(Rk,this))setTimeout((()=>{e()}),0);Ot(Rk,this,[])}}))}addListener(e){gt(!Ct(Mk,this),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),Ct(Rk,this).push(e)}get cancelled(){return Ct(Mk,this)}checkSignal(){gt(!this.cancelled,"cancelled","CANCELLED",{})}}function Lk(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}var Bk=new WeakMap,Fk=new WeakMap,Dk=new WeakMap,Uk=new WeakMap,zk=new WeakMap,Wk=new WeakMap,Hk=new WeakMap,Vk=new WeakMap,Gk=new WeakMap,Yk=new WeakMap,qk=new WeakMap,Xk=new WeakMap,$k=new WeakMap,Kk=new WeakMap,Qk=new WeakMap,Jk=new WeakSet;class Zk{get url(){return Ct(Wk,this)}set url(e){Ot(Wk,this,String(e))}get body(){return null==Ct(Hk,this)?null:new Uint8Array(Ct(Hk,this))}set body(e){if(null==e)Ot(Hk,this,void 0),Ot(Vk,this,void 0);else if("string"===typeof e)Ot(Hk,this,av(e)),Ot(Vk,this,"text/plain");else if(e instanceof Uint8Array)Ot(Hk,this,e),Ot(Vk,this,"application/octet-stream");else{if("object"!==typeof e)throw new Error("invalid body");Ot(Hk,this,av(JSON.stringify(e))),Ot(Vk,this,"application/json")}}hasBody(){return null!=Ct(Hk,this)}get method(){return Ct(Uk,this)?Ct(Uk,this):this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),Ot(Uk,this,String(e).toUpperCase())}get headers(){const e=Object.assign({},Ct(Dk,this));return Ct(Gk,this)&&(e.authorization=`Basic ${function(e){const t=Nt(e);let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n)}(av(Ct(Gk,this)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&Ct(Vk,this)&&(e["content-type"]=Ct(Vk,this)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){Ct(Dk,this)[String(e).toLowerCase()]=String(t)}clearHeaders(){Ot(Dk,this,{})}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return Ct(Gk,this)||null}setCredentials(e,t){mt(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),Ot(Gk,this,`${e}:${t}`)}get allowGzip(){return Ct(Fk,this)}set allowGzip(e){Ot(Fk,this,!!e)}get allowInsecureAuthentication(){return!!Ct(Bk,this)}set allowInsecureAuthentication(e){Ot(Bk,this,!!e)}get timeout(){return Ct(zk,this)}set timeout(e){mt(e>=0,"timeout must be non-zero","timeout",e),Ot(zk,this,e)}get preflightFunc(){return Ct(Yk,this)||null}set preflightFunc(e){Ot(Yk,this,e)}get processFunc(){return Ct(qk,this)||null}set processFunc(e){Ot(qk,this,e)}get retryFunc(){return Ct(Xk,this)||null}set retryFunc(e){Ot(Xk,this,e)}get getUrlFunc(){return Ct(Qk,this)||Sk}set getUrlFunc(e){Ot(Qk,this,e)}constructor(e){wt(this,Jk),kt(this,Bk,void 0),kt(this,Fk,void 0),kt(this,Dk,void 0),kt(this,Uk,void 0),kt(this,zk,void 0),kt(this,Wk,void 0),kt(this,Hk,void 0),kt(this,Vk,void 0),kt(this,Gk,void 0),kt(this,Yk,void 0),kt(this,qk,void 0),kt(this,Xk,void 0),kt(this,$k,void 0),kt(this,Kk,void 0),kt(this,Qk,void 0),Ot(Wk,this,String(e)),Ot(Bk,this,!1),Ot(Fk,this,!0),Ot(Dk,this,{}),Ot(Uk,this,""),Ot(zk,this,3e5),Ot(Kk,this,{slotInterval:250,maxAttempts:12}),Ot(Qk,this,null)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${Ct(Hk,this)?jt(Ct(Hk,this)):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(Ct(Kk,this).slotInterval=e.slotInterval),null!=e.maxAttempts&&(Ct(Kk,this).maxAttempts=e.maxAttempts)}send(){return gt(null==Ct($k,this),"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),Ot($k,this,new jk(this)),Pt(Jk,this,eA).call(this,0,lA()+this.timeout,0,this,new sA(0,"",{},null,this))}cancel(){gt(null!=Ct($k,this),"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=Ik.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();gt(("https"!==t||"http"!==n)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new Zk(e);return r.method=this.method,r.allowGzip=this.allowGzip,r.timeout=this.timeout,Ot(Dk,r,Object.assign({},Ct(Dk,this))),Ct(Hk,this)&&Ot(Hk,r,new Uint8Array(Ct(Hk,this))),Ot(Vk,r,Ct(Vk,this)),r}clone(){const e=new Zk(this.url);return Ot(Uk,e,Ct(Uk,this)),Ct(Hk,this)&&Ot(Hk,e,Ct(Hk,this)),Ot(Vk,e,Ct(Vk,this)),Ot(Dk,e,Object.assign({},Ct(Dk,this))),Ot(Gk,e,Ct(Gk,this)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),Ot(Yk,e,Ct(Yk,this)),Ot(qk,e,Ct(qk,this)),Ot(Xk,e,Ct(Xk,this)),Ot(Kk,e,Object.assign({},Ct(Kk,this))),Ot(Qk,e,Ct(Qk,this)),e}static lockConfig(){Ok=!0}static getGateway(e){return _k[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(Ok)throw new Error("gateways locked");_k[e]=t}static registerGetUrl(e){if(Ok)throw new Error("gateways locked");Sk=e}static createGetUrlFunc(e){return Ek(e)}static createDataGateway(){return Tk}static createIpfsGatewayFunc(e){return Nk(e)}}async function eA(e,t,n,r,i){if(e>=Ct(Kk,this).maxAttempts)return i.makeServerError("exceeded maximum retry limit");gt(lA()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(n);let a=this.clone();const o=(a.url.split(":")[0]||"").toLowerCase();if(o in _k){const e=await _k[o](a.url,Lk(Ct($k,r)));if(e instanceof sA){let t=e;if(this.processFunc){Lk(Ct($k,r));try{t=await this.processFunc(a,t)}catch(h){null!=h.throttle&&"number"===typeof h.stall||t.makeServerError("error in post-processing function",h).assertOk()}}return t}a=e}this.preflightFunc&&(a=await this.preflightFunc(a));const s=await this.getUrlFunc(a,Lk(Ct($k,r)));let l=new sA(s.statusCode,s.statusMessage,s.headers,s.body,r);if([301,302,307,308].indexOf(l.statusCode)>=0){try{var c;const n=l.headers.location||"";return Pt(Jk,c=a.redirect(n),eA).call(c,e+1,t,0,r,l)}catch(h){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(a,l,e))){var u;const n=l.headers["retry-after"];let i=Ct(Kk,this).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"===typeof n&&n.match(/^[1-9][0-9]*$/)&&(i=parseInt(n)),Pt(Jk,u=a.clone(),eA).call(u,e+1,t,i,r,l)}if(this.processFunc){Lk(Ct($k,r));try{l=await this.processFunc(a,l)}catch(h){var d;null!=h.throttle&&"number"===typeof h.stall||l.makeServerError("error in post-processing function",h).assertOk();let n=Ct(Kk,this).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return h.stall>
2=0&&(n=h.stall),Pt(Jk,d=a.clone(),eA).call(d,e+1,t,n,r,l)}}return l}var tA=new WeakMap,nA=new WeakMap,rA=new WeakMap,iA=new WeakMap,aA=new WeakMap,oA=new WeakMap;class sA{toString(){return`<FetchResponse status=${this.statusCode} body=${Ct(iA,this)?jt(Ct(iA,this)):"null"}>`}get statusCode(){return Ct(tA,this)}get statusMessage(){return Ct(nA,this)}get headers(){return Object.assign({},Ct(rA,this))}get body(){return null==Ct(iA,this)?null:new Uint8Array(Ct(iA,this))}get bodyText(){try{return null==Ct(iA,this)?"":ov(Ct(iA,this))}catch(e){gt(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){gt(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,n,r,i){kt(this,tA,void 0),kt(this,nA,void 0),kt(this,rA,void 0),kt(this,iA,void 0),kt(this,aA,void 0),kt(this,oA,void 0),Ot(tA,this,e),Ot(nA,this,t),Ot(rA,this,Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=String(n[t]),e)),{})),Ot(iA,this,null==r?null:new Uint8Array(r)),Ot(aA,this,i||null),Ot(oA,this,{message:""})}makeServerError(e,t){let n;n=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const r=new sA(599,n,this.headers,this.body,Ct(aA,this)||void 0);return Ot(oA,r,{message:e,error:t}),r}throwThrottleError(e,t){null==t?t=-1:mt(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw ut(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=Ct(iA,this)}get request(){return Ct(aA,this)}ok(){return""===Ct(oA,this).message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=Ct(oA,this);""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let r=null;try{Ct(iA,this)&&(r=ov(Ct(iA,this)))}catch(i){}gt(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:n,responseBody:r,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function lA(){return(new Date).getTime()}const cA=new Set;function uA(e){cA.has(e)||(cA.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}const dA=Symbol.for("nodejs.util.inspect.custom");class hA{constructor(e){St(this,"name",void 0),ut(this,{name:e})}[dA](){return this.toString()}toString(){return`${this.name} { }`}clone(){return new hA(this.name)}}class fA extends hA{constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`),St(this,"effectiveBlock",void 0),St(this,"txBase",void 0),St(this,"txCreate",void 0),St(this,"txDataZero",void 0),St(this,"txDataNonzero",void 0),St(this,"txAccessListStorageKey",void 0),St(this,"txAccessListAddress",void 0);const n={effectiveBlock:e};function r(e,r){let i=(t||{})[e];null==i&&(i=r),mt("number"===typeof i,`invalud value for ${e}`,"costs",t),n[e]=i}r("txBase",21e3),r("txCreate",32e3),r("txDataZero",4),r("txDataNonzero",16),r("txAccessListStorageKey",1900),r("txAccessListAddress",2400),ut(this,n)}toString(){return`${this.name} { txBase: ${this.txBase}, txCreate: ${this.txCreate}, txDataZero: ${this.txDataZero}, txAccessListStorageKey: ${this.txAccessListStorageKey}, txAccessListAddress: ${this.txAccessListAddress} }`}clone(){return new fA(this.effectiveBlock,this)}}class pA extends hA{constructor(e,t,n){super("org.ethers.plugins.network.Ens"),St(this,"address",void 0),St(this,"targetNetwork",void 0),St(this,"universalResolver",void 0),ut(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t,universalResolver:n})}toString(){return`${this.name} { address: ${this.address}, targetNetwork: ${this.targetNetwork}, universalResolver: ${this.universalResolver} }`}clone(){return new pA(this.address,this.targetNetwork,this.universalResolver)}}var gA=new WeakMap,mA=new WeakMap;class yA extends hA{get url(){return Ct(gA,this)}get processFunc(){return Ct(mA,this)}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),kt(this,gA,void 0),kt(this,mA,void 0),Ot(gA,this,e),Ot(mA,this,t)}toString(){return`${this.name} { url: ${this.url} }`}clone(){return this}}const bA=Symbol.for("nodejs.util.inspect.custom"),vA=new Map;var xA=new WeakMap,wA=new WeakMap,kA=new WeakMap;class AA{constructor(e,t){kt(this,xA,void 0),kt(this,wA,void 0),kt(this,kA,void 0),Ot(xA,this,e),Ot(wA,this,qt(t)),Ot(kA,this,new Map)}[bA](){return this.toString()}toString(){const e=[];for(const t of Ct(kA,this).values())e.push(t.toString());return`Network { name: ${this.name}, chainId: ${this.chainId}, plugins: [ ${e.join(", ")} ] }`}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return Ct(xA,this)}set name(e){Ot(xA,this,e)}get chainId(){return Ct(wA,this)}set chainId(e){Ot(wA,this,qt(e,"chainId"))}matches(e){if(null==e)return!1;if("string"===typeof e){try{return this.chainId===qt(e)}catch(t){}return this.name===e}if("number"===typeof e||"bigint"===typeof e){try{return this.chainId===qt(e)}catch(t){}return!1}if("object"===typeof e){if(null!=e.chainId){try{return this.chainId===qt(e.chainId)}catch(t){}return!1}return null!=e.name&&this.name===e.name}return!1}get plugins(){return Array.from(Ct(kA,this).values())}attachPlugin(e){if(Ct(kA,this).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return Ct(kA,this).set(e.name,e.clone()),this}getPlugin(e){return Ct(kA,this).get(e)||null}getPlugins(e){return this.plugins.filter((t=>t.name.split("#")[0]===e))}clone(){const e=new AA(this.name,this.chainId);return this.plugins.forEach((t=>{e.attachPlugin(t.clone())})),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new fA;let n=t.txBase;if(null==e.to&&(n+=t.txCreate),e.data)for(let r=2;r<e.data.length;r+=2)"00"===e.data.substring(r,r+2)?n+=t.txDataZero:n+=t.txDataNonzero;if(e.accessList){const r=Tw(e.accessList);for(const e in r)n+=t.txAccessListAddress+t.txAccessListStorageKey*r[e].storageKeys.length}return n}static from(e){if(function(){if(PA)return;function e(e,t,n){const r=function(){const r=new AA(e,t);return null!=n.ensNetwork&&r.attachPlugin(new pA(null,n.ensNetwork,n.ensUniversalResolver)),r.attachPlugin(new fA),(n.plugins||[]).forEac
2h((e=>{r.attachPlugin(e)})),r};AA.register(e,r),AA.register(t,r),n.altNames&&n.altNames.forEach((e=>{AA.register(e,r)}))}PA=!0;const t="0xeEeEEEeE14D718C2B47D9923Deab1335E144EeEe";e("mainnet",1,{ensUniversalResolver:t,ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensUniversalResolver:t,ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("filecoin",314,{}),e("filecoin-calibration",314159,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[SA("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[SA("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1})}(),null==e)return AA.from("mainnet");if("number"===typeof e&&(e=BigInt(e)),"string"===typeof e||"bigint"===typeof e){const t=vA.get(e);if(t)return t();if("bigint"===typeof e)return new AA("unknown",e);mt(!1,"unknown network","network",e)}if("function"===typeof e.clone){return e.clone()}if("object"===typeof e){mt("string"===typeof e.name&&"number"===typeof e.chainId,"invalid network object name or chainId","network",e);const t=new AA(e.name,e.chainId),n=e;return(n.ensAddress||null!=n.ensNetwork||n.ensUniversalResolver)&&t.attachPlugin(new pA(n.ensAddress,n.ensNetwork,n.ensUniversalResolver)),t}mt(!1,"invalid network","network",e)}static register(e,t){"number"===typeof e&&(e=BigInt(e));const n=vA.get(e);n&&mt(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),vA.set(e,t)}}function EA(e,t){const n=String(e);if(!n.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);const r=n.split(".");if(1===r.length&&r.push(""),2!==r.length)throw new Error(`invalid gwei value: ${e}`);for(;r[1].length<t;)r[1]+="0";if(r[1].length>9){let e=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||e++,r[1]=e.toString()}return BigInt(r[0]+r[1])}function SA(e){return new yA(e,(async(e,t,n)=>{let r;n.setHeader("User-Agent","ethers");try{const[t,i]=await Promise.all([n.send(),e()]);r=t;const a=r.bodyJson.standard;return{gasPrice:i.gasPrice,maxFeePerGas:EA(a.maxFee,9),maxPriorityFeePerGas:EA(a.maxPriorityFee,9)}}catch(i){gt(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}}))}let PA=!1;const CA=new Uint8Array(32);CA.fill(0);const OA=BigInt(-1),TA=BigInt(0),NA=BigInt(1),_A=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const IA=Jt(NA,32),RA=Jt(TA,32),MA={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},jA=["name","version","chainId","verifyingContract","salt"];function LA(e){return function(t){return mt("string"===typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const BA={name:LA("name"),version:LA("version"),chainId:function(e){const t=qt(e,"domain.chainId");return mt(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):en(t)},verifyingContract:function(e){try{return zv(e).toLowerCase()}catch(t){}mt(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){const t=Nt(e,"domain.salt");return mt(32===t.length,'invalid domain value "salt"',"domain.salt",e),jt(t)}};function FA(e){{const t=e.match(/^(u?)int(\d+)$/);if(t){const n=""===t[1],r=parseInt(t[2]);mt(r%8===0&&0!==r&&r<=256&&t[2]===String(r),"invalid numeric width","type",e);const i=Yt(_A,n?r-1:r),a=n?(i+NA)*OA:TA;return function(t){const r=qt(t,"value");return mt(r>=a&&r<=i,`value out-of-bounds for ${e}`,"value",r),Jt(n?Gt(r,256):r,32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return mt(0!==n&&n<=32&&t[1]===String(n),"invalid bytes width","type",e),function(t){return mt(Nt(t).length===n,`invalid length for ${e}`,"value",t),function(e){const t=Nt(e),n=t.length%32;return n?Lt([t,CA.slice(n)]):jt(t)}(t)}}}switch(e){case"address":return function(e){return Ut(zv(e),32)};case"bool":return function(e){return e?IA:RA};case"bytes":return function(e){return tv(e)};case"string":return function(e){return sv(e)}}return null}function DA(e,t){return`${e}(${t.map((e=>{let{name:t,type:n}=e;return n+" "+t})).join(",")})`}function UA(e){const t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}var zA=new WeakMap,WA=new WeakMap,HA=new WeakMap,VA=new WeakSet;class GA{get types(){return JSON.parse(Ct(zA,this))}constructor(e){wt(this,VA),St(this,"primaryType",void 0),kt(this,zA,void 0),kt(this,WA,void 0),kt(this,HA,void 0),Ot(WA,this,new Map),Ot(HA,this,new Map);const t=new Map,n=new Map,r=new Map,i={};Object.keys(e).forEach((a=>{i[a]=e[a].map((t=>{let{name:n,type:r}=t,{base:i,index:a}=UA(r);return"int"!==i||e.int||(i="int256"),"uint"!==i||e.uint||(i="uint256"),{name:n,type:i+(a||"")}})),t.set(a,new Set),n.set(a,[]),r.set(a,new Set)})),Ot(zA,this,JSON.stringify(i));for(const o in i){const r=new Set;for(const a of i[o]){mt(!r.has(a.name),`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(o)}`,"types",e),r.add(a.name);const i=UA(a.type).base;mt(i!==o,`circular type reference to ${JSON.stringify(i)}`,"types",e);FA(i)||(mt(n.has(i),`unknown type ${JSON.stringify(i)}`,"types",e),n.get(i).push(o),t.get(o).add(i))}}const a=Array.from(n.keys()).filter((e=>0===n.get(e).length));mt(0!==a.length,"missing primary type","types",e),mt(1===a.length,`ambiguous primary types or unused types: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),ut(this,{primaryType:a[0]}),function i(a,o){mt(!o.has(a),`circular type reference to ${JSON.stringify(a)}`,"types",e),o.add(a);
2for(const e of t.get(a))if(n.has(e)){i(e,o);for(const t of o)r.get(t).add(e)}o.delete(a)}(this.primaryType,new Set);for(const[o,s]of r){const e=Array.from(s);e.sort(),Ct(WA,this).set(o,DA(o,i[o])+e.map((e=>DA(e,i[e]))).join(""))}}getEncoder(e){let t=Ct(HA,this).get(e);return t||(t=Pt(VA,this,YA).call(this,e),Ct(HA,this).set(e,t)),t}encodeType(e){const t=Ct(WA,this).get(e);return mt(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return tv(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(FA(e))return n(e,t);const r=UA(e).array;if(r)return mt(-1===r.count||r.count===t.length,`array length mismatch; expected length ${r.count}`,"value",t),t.map((e=>this._visit(r.prefix,e,n)));const i=this.types[e];if(i)return i.reduce(((e,r)=>{let{name:i,type:a}=r;return e[i]=this._visit(a,t[i],n),e}),{});mt(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new GA(e)}static getPrimaryType(e){return GA.from(e).primaryType}static hashStruct(e,t,n){return GA.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(null==e[n])continue;const r=MA[n];mt(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>jA.indexOf(e.name)-jA.indexOf(t.name))),GA.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return Lt(["0x1901",GA.hashDomain(e),GA.from(t).hash(n)])}static hash(e,t,n){return tv(GA.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)null==e[o]&&delete e[o];const i={};e.verifyingContract&&!It(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const a=GA.from(t);a.visit(n,((e,t)=>("address"!==e||It(t,20)||(i[t]="0x"),t)));for(const o in i)i[o]=await r(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),{domain:e,value:n=a.visit(n,((e,t)=>"address"===e&&i[t]?i[t]:t))}}static getPayload(e,t,n){GA.hashDomain(e);const r={},i=[];jA.forEach((t=>{const n=e[t];null!=n&&(r[t]=BA[t](n),i.push({name:t,type:MA[t]}))}));const a=GA.from(t);t=a.types;const o=Object.assign({},t);return mt(null==o.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),o.EIP712Domain=i,a.encode(n),{types:o,domain:r,primaryType:a.primaryType,message:a.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return jt(Nt(t));if(e.match(/^u?int/))return qt(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return mt("string"===typeof t,"invalid string","value",t),t}mt(!1,"unsupported type","type",e)}))}}}function YA(e){{const t=FA(e);if(t)return t}const t=UA(e).array;if(t){const e=t.prefix,n=this.getEncoder(e);return r=>{mt(-1===t.count||t.count===r.length,`array length mismatch; expected length ${t.count}`,"value",r);let i=r.map(n);return Ct(WA,this).has(e)&&(i=i.map(tv)),tv(Lt(i))}}const n=this.types[e];if(n){const t=sv(Ct(WA,this).get(e));return e=>{const r=n.map((t=>{let{name:n,type:r}=t;const i=this.getEncoder(r)(e[n]);return Ct(WA,this).has(r)?tv(i):i}));return r.unshift(t),Lt(r)}}mt(!1,`unknown type: ${e}`,"type",e)}const qA="0x0000000000000000000000000000000000000000000000000000000000000000",XA=BigInt(0),$A=BigInt(1),KA=BigInt(2),QA=BigInt(27),JA=BigInt(28),ZA=BigInt(35),eE=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),tE=eE/KA,nE=Symbol.for("nodejs.util.inspect.custom"),rE={};function iE(e){return Ut(Zt(e),32)}var aE=new WeakMap,oE=new WeakMap,sE=new WeakMap,lE=new WeakMap;class cE{get r(){return Ct(aE,this)}set r(e){mt(32===Bt(e),"invalid r","value",e),Ot(aE,this,jt(e))}get s(){return mt(parseInt(Ct(oE,this).substring(0,3))<8,"non-canonical s; use ._s","s",Ct(oE,this)),Ct(oE,this)}set s(e){mt(32===Bt(e),"invalid s","value",e),Ot(oE,this,jt(e))}get _s(){return Ct(oE,this)}isValid(){return BigInt(Ct(oE,this))<=tE}get v(){return Ct(sE,this)}set v(e){const t=Qt(e,"value");mt(27===t||28===t,"invalid v","v",e),Ot(sE,this,t)}get networkV(){return Ct(lE,this)}get legacyChainId(){const e=this.networkV;return null==e?null:cE.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=Nt(this.s);return this.yParity&&(e[0]|=128),jt(e)}get compactSerialized(){return Lt([this.r,this.yParityAndS])}get serialized(){return Lt([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,n,r){kt(this,aE,void 0),kt(this,oE,void 0),kt(this,sE,void 0),kt(this,lE,void 0),vt(e,rE,"Signature"),Ot(aE,this,t),Ot(oE,this,n),Ot(sE,this,r),Ot(lE,this,null)}
vendor: 6,757 bytes, line 2
2getCanonical(){if(this.isValid())return this;const e=eE-BigInt(this._s),t=55-this.v,n=new cE(rE,this.r,iE(e),t);return this.networkV&&Ot(lE,n,this.networkV),n}clone(){const e=new cE(rE,this.r,this._s,this.v);return this.networkV&&Ot(lE,e,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}[nE](){return this.toString()}toString(){return this.isValid()?`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v} }`:`Signature { r: ${this.r}, s: ${this._s}, v: ${this.v}, valid: false }`}static getChainId(e){const t=qt(e,"v");return t==QA||t==JA?XA:(mt(t>=ZA,"invalid EIP-155 v","v",e),(t-ZA)/KA)}static getChainIdV(e,t){return qt(e)*KA+BigInt(35+t-27)}static getNormalizedV(e){const t=qt(e);return t===XA||t===QA?27:t===$A||t===JA?28:(mt(t>=ZA,"invalid v","v",e),t&$A?27:28)}static from(e){function t(t,n){mt(t,n,"signature",e)}if(null==e)return new cE(rE,qA,qA,27);if("string"===typeof e){const n=Nt(e,"signature");if(64===n.length){const e=jt(n.slice(0,32)),t=n.slice(32,64),r=128&t[0]?28:27;return t[0]&=127,new cE(rE,e,jt(t),r)}if(65===n.length){const e=jt(n.slice(0,32)),t=jt(n.slice(32,64)),r=cE.getNormalizedV(n[64]);return new cE(rE,e,t,r)}t(!1,"invalid raw signature length")}if(e instanceof cE)return e.clone();const n=e.r;t(null!=n,"missing r");const r=iE(n),i=function(e,n){if(null!=e)return iE(e);if(null!=n){t(It(n,32),"invalid yParityAndS");const e=Nt(n);return e[0]&=127,jt(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:a,v:o}=function(e,n,r){if(null!=e){const t=qt(e);return{networkV:t>=ZA?t:void 0,v:cE.getNormalizedV(t)}}if(null!=n)return t(It(n,32),"invalid yParityAndS"),{v:128&Nt(n)[0]?28:27};if(null!=r){switch(Qt(r,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),s=new cE(rE,r,i,o);return a&&Ot(lE,s,a),t(null==e.yParity||Qt(e.yParity,"sig.yParity")===s.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===s.yParityAndS,"yParityAndS mismatch"),s}}function uE(e){return{address:zv(e.address),nonce:qt(null!=e.nonce?e.nonce:0),chainId:qt(null!=e.chainId?e.chainId:0),signature:cE.from(e.signature)}}const dE="0x0000000000000000000000000000000000000000";class hE extends Mb{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=_b(this.buffer)}update(e){vb(this);const{view:t,buffer:n,blockLen:r}=this,i=(e=Rb(e)).length;for(let a=0;a<i;){const o=Math.min(r-this.pos,i-a);if(o!==r)n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0);else{const t=_b(e);for(;r<=i-a;a+=r)this.process(t,a)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){vb(this),xb(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:r,isLE:i}=this;let{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(n,0),a=0);for(let u=a;u<r;u++)t[u]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),l=r?4:0,c=r?0:4;e.setUint32(t+l,o,r),e.setUint32(t+c,s,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);const o=_b(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=s/4,c=this.get();if(l>c.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<l;u++)o.setUint32(4*u,c[u],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}}const fE=(e,t,n)=>e&t^~e&n,pE=(e,t,n)=>e&t^e&n^t&n,gE=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]),mE=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yE=new Uint32Array(64);class bE extends hE{constructor(){super(64,32,8,!1),this.A=0|mE[0],this.B=0|mE[1],this.C=0|mE[2],this.D=0|mE[3],this.E=0|mE[4],this.F=0|mE[5],this.G=0|mE[6],this.H=0|mE[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let u=0;u<16;u++,t+=4)yE[u]=e.getUint32(t,!1);for(let u=16;u<64;u++){const e=yE[u-15],t=yE[u-2],n=Ib(e,7)^Ib(e,18)^e>>>3,r=Ib(t,17)^Ib(t,19)^t>>>10;yE[u]=r+yE[u-7]+n+yE[u-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:l,H:c}=this;for(let u=0;u<64;u++){const e=c+(Ib(o,6)^Ib(o,11)^Ib(o,25))+fE(o,s,l)+gE[u]+yE[u]|0,t=(Ib(n,2)^Ib(n,13)^Ib(n,22))+pE(n,r,i)|0;c=l,l=s,s=o,o=a+e|0,a=i,i=r,r=n,n=e+t|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(n,r,i,a,o,s,l,c)}roundClean(){yE.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const vE=jb((()=>new bE)),[xE,wE]=(()=>Tb.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
25771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),kE=new Uint32Array(80),AE=new Uint32Array(80);class EE extends hE{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:a,Dh:o,Dl:s,Eh:l,El:c,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:g}=this;return[e,t,n,r,i,a,o,s,l,c,u,d,h,f,p,g]}set(e,t,n,r,i,a,o,s,l,c,u,d,h,f,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|a,this.Dh=0|o,this.Dl=0|s,this.Eh=0|l,this.El=0|c,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let b=0;b<16;b++,t+=4)kE[b]=e.getUint32(t),AE[b]=e.getUint32(t+=4);for(let b=16;b<80;b++){const e=0|kE[b-15],t=0|AE[b-15],n=Tb.rotrSH(e,t,1)^Tb.rotrSH(e,t,8)^Tb.shrSH(e,t,7),r=Tb.rotrSL(e,t,1)^Tb.rotrSL(e,t,8)^Tb.shrSL(e,t,7),i=0|kE[b-2],a=0|AE[b-2],o=Tb.rotrSH(i,a,19)^Tb.rotrBH(i,a,61)^Tb.shrSH(i,a,6),s=Tb.rotrSL(i,a,19)^Tb.rotrBL(i,a,61)^Tb.shrSL(i,a,6),l=Tb.add4L(r,s,AE[b-7],AE[b-16]),c=Tb.add4H(l,n,o,kE[b-7],kE[b-16]);kE[b]=0|c,AE[b]=0|l}let{Ah:n,Al:r,Bh:i,Bl:a,Ch:o,Cl:s,Dh:l,Dl:c,Eh:u,El:d,Fh:h,Fl:f,Gh:p,Gl:g,Hh:m,Hl:y}=this;for(let b=0;b<80;b++){const e=Tb.rotrSH(u,d,14)^Tb.rotrSH(u,d,18)^Tb.rotrBH(u,d,41),t=Tb.rotrSL(u,d,14)^Tb.rotrSL(u,d,18)^Tb.rotrBL(u,d,41),v=u&h^~u&p,x=d&f^~d&g,w=Tb.add5L(y,t,x,wE[b],AE[b]),k=Tb.add5H(w,m,e,v,xE[b],kE[b]),A=0|w,E=Tb.rotrSH(n,r,28)^Tb.rotrBH(n,r,34)^Tb.rotrBH(n,r,39),S=Tb.rotrSL(n,r,28)^Tb.rotrBL(n,r,34)^Tb.rotrBL(n,r,39),P=n&i^n&o^i&o,C=r&a^r&s^a&s;m=0|p,y=0|g,p=0|h,g=0|f,h=0|u,f=0|d,({h:u,l:d}=Tb.add(0|l,0|c,0|k,0|A)),l=0|o,c=0|s,o=0|i,s=0|a,i=0|n,a=0|r;const O=Tb.add3L(A,S,C);n=Tb.add3H(O,k,E,P),r=0|O}({h:n,l:r}=Tb.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:a}=Tb.add(0|this.Bh,0|this.Bl,0|i,0|a)),({h:o,l:s}=Tb.add(0|this.Ch,0|this.Cl,0|o,0|s)),({h:l,l:c}=Tb.add(0|this.Dh,0|this.Dl,0|l,0|c)),({h:u,l:d}=Tb.add(0|this.Eh,0|this.El,0|u,0|d)),({h:h,l:f}=Tb.add(0|this.Fh,0|this.Fl,0|h,0|f)),({h:p,l:g}=Tb.add(0|this.Gh,0|this.Gl,0|p,0|g)),({h:m,l:y}=Tb.add(0|this.Hh,0|this.Hl,0|m,0|y)),this.set(n,r,i,a,o,s,l,c,u,d,h,f,p,g,m,y)}roundClean(){kE.fill(0),AE.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const SE=jb((()=>new EE));const PE=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof global)return global;throw new Error("unable to locate global object")}();PE.crypto||PE.msCrypto;function CE(e){switch(e){case"sha256":return vE.create();case"sha512":return SE.create()}mt(!1,"invalid hashing algorithm name","algorithm",e)}const OE=function(e){return CE("sha256").update(e).digest()},TE=function(e){return CE("sha512").update(e).digest()};let NE=OE,_E=TE,IE=!1,RE=!1;function ME(e){const t=Nt(e,"data");return jt(NE(t))}function jE(e){const t=Nt(e,"data");return jt(_E(t))}function LE(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function BE(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function FE(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");LE(e.outputLen),LE(e.blockLen)}function DE(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function UE(e,t){BE(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}ME._=OE,ME.lock=function(){IE=!0},ME.register=function(e){if(IE)throw new Error("sha256 is locked");NE=e},Object.freeze(ME),jE._=TE,jE.lock=function(){RE=!0},jE.register=function(e){if(RE)throw new Error("sha512 is locked");_E=e},Object.freeze(ME);const zE="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,WE=e=>e instanceof Uint8Array,HE=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),VE=(e,t)=>e<<32-t|e>>>t;if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function GE(e){if("string"===typeof e&&(e=function(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!WE(e))throw new Error("expected Uint8Array, got "+typeof e);return e}class YE{clone(){return this._cloneInto()}}function qE(e){const t=t=>e().update(GE(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function XE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(zE&&"function"===typeof zE.getRandomValues)return zE.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}class $E extends YE{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=HE(this.buffer)}update(e){DE(this);const{view:t,buffer:n,blockLen:r}=this,i=(e=GE(e)).length;for(let a=0;a<i;){const o=Math.min(r-this.pos,i-a);if(o!==r)n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===r&&(this.process(t,0),this.pos=0);else{const t=HE(e);for(;r<=i-a;a+=r)this.process(t,a)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){DE(this),UE(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:r,isLE:i}=this;let{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(n,0),a=0);for(let u=a;u<r;u++)t[u]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),o=Number(n>>i&a),s=Number(n&a),l=r?4:0,c=r?0:4;e.setUint32(t+l,o,r),e.setUint32(t+c,s,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);const o=HE(e),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=s/4,c=this.get();if(l>c.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u<l;u++)o.setUint32(4*u,c[u],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:a,pos:o}=this;return e.length=r,e.pos=o,e.finished=i,e.destroyed=a,r%t&&e.buffer.set(n),e}}const KE=(e,t,n)=>e&t^~e&n,QE=(e,t,n)=>e&t^e&n^t&n,JE=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,2756
2734187,3204031479,3329325298]),ZE=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),eS=new Uint32Array(64);class tS extends $E{constructor(){super(64,32,8,!1),this.A=0|ZE[0],this.B=0|ZE[1],this.C=0|ZE[2],this.D=0|ZE[3],this.E=0|ZE[4],this.F=0|ZE[5],this.G=0|ZE[6],this.H=0|ZE[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:a,G:o,H:s}=this;return[e,t,n,r,i,a,o,s]}set(e,t,n,r,i,a,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|a,this.G=0|o,this.H=0|s}process(e,t){for(let u=0;u<16;u++,t+=4)eS[u]=e.getUint32(t,!1);for(let u=16;u<64;u++){const e=eS[u-15],t=eS[u-2],n=VE(e,7)^VE(e,18)^e>>>3,r=VE(t,17)^VE(t,19)^t>>>10;eS[u]=r+eS[u-7]+n+eS[u-16]|0}let{A:n,B:r,C:i,D:a,E:o,F:s,G:l,H:c}=this;for(let u=0;u<64;u++){const e=c+(VE(o,6)^VE(o,11)^VE(o,25))+KE(o,s,l)+JE[u]+eS[u]|0,t=(VE(n,2)^VE(n,13)^VE(n,22))+QE(n,r,i)|0;c=l,l=s,s=o,o=a+e|0,a=i,i=r,r=n,n=e+t|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,s=s+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(n,r,i,a,o,s,l,c)}roundClean(){eS.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const nS=qE((()=>new tS)),rS=(BigInt(0),BigInt(1)),iS=BigInt(2),aS=e=>e instanceof Uint8Array,oS=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function sS(e){if(!aS(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=oS[e[n]];return t}function lS(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function cS(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const t=2*r,i=e.slice(t,t+2),a=Number.parseInt(i,16);if(Number.isNaN(a)||a<0)throw new Error("Invalid byte sequence");n[r]=a}return n}function uS(e){return lS(sS(e))}function dS(e){if(!aS(e))throw new Error("Uint8Array expected");return lS(sS(Uint8Array.from(e).reverse()))}function hS(e,t){return cS(e.toString(16).padStart(2*t,"0"))}function fS(e,t){return hS(e,t).reverse()}function pS(e,t,n){let r;if("string"===typeof t)try{r=cS(t)}catch(a){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${a}`)}else{if(!aS(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}const i=r.length;if("number"===typeof n&&i!==n)throw new Error(`${e} expected ${n} bytes, got ${i}`);return r}function gS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let i=0;return t.forEach((e=>{if(!aS(e))throw new Error("Uint8Array expected");r.set(e,i),i+=e.length})),r}const mS=e=>(iS<<BigInt(e-1))-rS,yS=e=>new Uint8Array(e),bS=e=>Uint8Array.from(e);function vS(e,t,n){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof n)throw new Error("hmacFn must be a function");let r=yS(e),i=yS(e),a=0;const o=()=>{r.fill(1),i.fill(0),a=0},s=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return n(i,r,...t)},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yS();i=s(bS([0]),e),r=s(),0!==e.length&&(i=s(bS([1]),e),r=s())},c=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){r=s();const t=r.slice();n.push(t),e+=r.length}return gS(...n)};return(e,t)=>{let n;for(o(),l(e);!(n=t(c()));)l();return o(),n}}const xS={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};function wS(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(t,n,r)=>{const i=xS[n];if("function"!==typeof i)throw new Error(`Invalid validator "${n}", expected function`);const a=e[t];if((!r||void 0!==a)&&!i(a,e))throw new Error(`Invalid param ${String(t)}=${a}
2 (${typeof a}), expected ${n}`)};for(const[i,a]of Object.entries(t))r(i,a,!1);for(const[i,a]of Object.entries(n))r(i,a,!0);return e}const kS=BigInt(0),AS=BigInt(1),ES=BigInt(2),SS=BigInt(3),PS=BigInt(4),CS=BigInt(5),OS=BigInt(8);BigInt(9),BigInt(16);function TS(e,t){const n=e%t;return n>=kS?n:t+n}function NS(e,t,n){if(n<=kS||t<kS)throw new Error("Expected power/modulo > 0");if(n===AS)return kS;let r=AS;for(;t>kS;)t&AS&&(r=r*e%n),e=e*e%n,t>>=AS;return r}function _S(e,t,n){let r=e;for(;t-- >kS;)r*=r,r%=n;return r}function IS(e,t){if(e===kS||t<=kS)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=TS(e,t),r=t,i=kS,a=AS,o=AS,s=kS;for(;n!==kS;){const e=r/n,t=r%n,l=i-o*e,c=a-s*e;r=n,n=t,i=o,a=s,o=l,s=c}if(r!==AS)throw new Error("invert: does not exist");return TS(i,t)}function RS(e){if(e%PS===SS){const t=(e+AS)/PS;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}if(e%OS===CS){const t=(e-CS)/OS;return function(e,n){const r=e.mul(n,ES),i=e.pow(r,t),a=e.mul(n,i),o=e.mul(e.mul(a,ES),i),s=e.mul(a,e.sub(o,e.ONE));if(!e.eql(e.sqr(s),n))throw new Error("Cannot find square root");return s}}return function(e){const t=(e-AS)/ES;let n,r,i;for(n=e-AS,r=0;n%ES===kS;n/=ES,r++);for(i=ES;i<e&&NS(i,t,e)!==e-AS;i++);if(1===r){const t=(e+AS)/PS;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}const a=(n+AS)/ES;return function(e,o){if(e.pow(o,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let s=r,l=e.pow(e.mul(e.ONE,i),n),c=e.pow(o,a),u=e.pow(o,n);for(;!e.eql(u,e.ONE);){if(e.eql(u,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(u);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const n=e.pow(l,AS<<BigInt(s-t-1));l=e.sqr(n),c=e.mul(c,n),u=e.mul(u,l),s=t}return c}}(e)}const MS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function jS(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function LS(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function BS(e){const t=LS(e);return t+Math.ceil(t/2)}class FS extends YE{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,FE(e);const n=GE(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let a=0;a<i.length;a++)i[a]^=54;this.iHash.update(i),this.oHash=e.create();for(let a=0;a<i.length;a++)i[a]^=106;this.oHash.update(i),i.fill(0)}update(e){return DE(this),this.iHash.update(e),this}digestInto(e){DE(this),BE(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:a,outputLen:o}=this;return e.finished=r,e.destroyed=i,e.blockLen=a,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const DS=(e,t,n)=>new FS(e,t).update(n).digest();
2DS.create=(e,t)=>new FS(e,t);const US=BigInt(0),zS=BigInt(1);function WS(e){return function(e){const t=MS.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});wS(e,t)}(e.Fp),wS(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...jS(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const{Ph:HS,aT:VS}=e,GS={Err:class extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},_parseInt(e){const{Err:t}=GS;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(128&r[0])throw new t("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:HS(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=GS,n="string"===typeof e?VS(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:i,l:a}=GS._parseInt(n.subarray(2)),{d:o,l:s}=GS._parseInt(a);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:o}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},r=t(n(e.s)),i=t(n(e.r)),a=r.length/2,o=i.length/2,s=n(a),l=n(o);return`30${n(o+a+4)}02${l}${i}02${s}${r}`}},YS=BigInt(0),qS=BigInt(1),XS=(BigInt(2),BigInt(3));BigInt(4);function $S(e){const t=function(e){const t=WS(e);wS(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==typeof n||"bigint"!==typeof n.beta||"function"!==typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,r=t.toBytes||((e,t,r)=>{const i=t.toAffine();return gS(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),i=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function a(e){const{a:r,b:i}=t,a=n.sqr(e),o=n.mul(a,e);return n.add(n.add(o,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),a(t.Gx)))throw new Error("bad generator point: equation left != right");function o(e){return"bigint"===typeof e&&YS<e&&e<t.n}function s(e){if(!o(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function l(e){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:i,n:a}=t;if(n&&"bigint"!==typeof e){if(e instanceof Uint8Array&&(e=sS(e)),"string"!==typeof e||!n.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*r,"0")}let o;try{o="bigint"===typeof e?e:uS(pS("private key",e,r))}catch(l){throw new Error(`private key must be ${r} bytes, hex or bigint, not ${typeof e}`)}return i&&(o=TS(o,a)),s(o),o}const c=new Map;function u(e){if(!(e instanceof d))throw new Error("ProjectivePoint expected")}class d{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required")}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error("invalid affine point");if(e instanceof d)throw new Error("projective point not allowed");const i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?d.ZERO:new d(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(d.fromAffine)}static fromHex(e){const t=d.fromAffine(i(pS("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(l(e))}_setWindowSize(e){this._WINDOW_SIZE=e,c.delete(this)}
vendor: 4,524 bytes, line 2
2assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const i=n.sqr(r),o=a(e);if(!n.eql(i,o))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){u(e);const{px:t,py:r,pz:i}=this,{px:a,py:o,pz:s}=e,l=n.eql(n.mul(t,s),n.mul(a,i)),c=n.eql(n.mul(r,s),n.mul(o,i));return l&&c}negate(){return new d(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,i=n.mul(r,XS),{px:a,py:o,pz:s}=this;let l=n.ZERO,c=n.ZERO,u=n.ZERO,h=n.mul(a,a),f=n.mul(o,o),p=n.mul(s,s),g=n.mul(a,o);return g=n.add(g,g),u=n.mul(a,s),u=n.add(u,u),l=n.mul(e,u),c=n.mul(i,p),c=n.add(l,c),l=n.sub(f,c),c=n.add(f,c),c=n.mul(l,c),l=n.mul(g,l),u=n.mul(i,u),p=n.mul(e,p),g=n.sub(h,p),g=n.mul(e,g),g=n.add(g,u),u=n.add(h,h),h=n.add(u,h),h=n.add(h,p),h=n.mul(h,g),c=n.add(c,h),p=n.mul(o,s),p=n.add(p,p),h=n.mul(p,g),l=n.sub(l,h),u=n.mul(p,f),u=n.add(u,u),u=n.add(u,u),new d(l,c,u)}add(e){u(e);const{px:r,py:i,pz:a}=this,{px:o,py:s,pz:l}=e;let c=n.ZERO,h=n.ZERO,f=n.ZERO;const p=t.a,g=n.mul(t.b,XS);let m=n.mul(r,o),y=n.mul(i,s),b=n.mul(a,l),v=n.add(r,i),x=n.add(o,s);v=n.mul(v,x),x=n.add(m,y),v=n.sub(v,x),x=n.add(r,a);let w=n.add(o,l);return x=n.mul(x,w),w=n.add(m,b),x=n.sub(x,w),w=n.add(i,a),c=n.add(s,l),w=n.mul(w,c),c=n.add(y,b),w=n.sub(w,c),f=n.mul(p,x),c=n.mul(g,b),f=n.add(c,f),c=n.sub(y,f),f=n.add(y,f),h=n.mul(c,f),y=n.add(m,m),y=n.add(y,m),b=n.mul(p,b),x=n.mul(g,x),y=n.add(y,b),b=n.sub(m,b),b=n.mul(p,b),x=n.add(x,b),m=n.mul(y,x),h=n.add(h,m),m=n.mul(w,x),c=n.mul(v,c),c=n.sub(c,m),m=n.mul(v,y),f=n.mul(w,f),f=n.add(f,m),new d(c,h,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(d.ZERO)}wNAF(e){return f.wNAFCached(this,c,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(d.fromAffine)}))}multiplyUnsafe(e){const r=d.ZERO;if(e===YS)return r;if(s(e),e===qS)return this;const{endo:i}=t;if(!i)return f.unsafeLadder(this,e);let{k1neg:a,k1:o,k2neg:l,k2:c}=i.splitScalar(e),u=r,h=r,p=this;for(;o>YS||c>YS;)o&qS&&(u=u.add(p)),c&qS&&(h=h.add(p)),p=p.double(),o>>=qS,c>>=qS;return a&&(u=u.negate()),l&&(h=h.negate()),h=new d(n.mul(h.px,i.beta),h.py,h.pz),u.add(h)}multiply(e){s(e);let r,i,a=e;const{endo:o}=t;if(o){const{k1neg:e,k1:t,k2neg:s,k2:l}=o.splitScalar(a);let{p:c,f:u}=this.wNAF(t),{p:h,f:p}=this.wNAF(l);c=f.constTimeNegate(e,c),h=f.constTimeNegate(s,h),h=new d(n.mul(h.px,o.beta),h.py,h.pz),r=c.add(h),i=u.add(p)}else{const{p:e,f:t}=this.wNAF(a);r=e,i=t}return d.normalizeZ([r,i])[0]}multiplyAndAddUnsafe(e,t,n){const r=d.BASE,i=(e,t)=>t!==YS&&t!==qS&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),a=i(this,t).add(i(e,n));return a.is0()?void 0:a}toAffine(e){const{px:t,py:r,pz:i}=this,a=this.is0();null==e&&(e=a?n.ONE:n.inv(i));const o=n.mul(t,e),s=n.mul(r,e),l=n.mul(i,e);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw new Error("invZ was invalid");return{x:o,y:s}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===qS)return!0;if(n)return n(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===qS?this:n?n(d,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),r(d,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return sS(this.toRawBytes(e))}}d.BASE=new d(t.Gx,t.Gy,n.ONE),d.ZERO=new d(n.ZERO,n.ONE,n.ZERO);const h=t.nBitLength,f=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,i=t;for(;n>US;)n&zS&&(r=r.add(i)),i=i.double(),n>>=zS;return r},precomputeWindow(e,t){const{windows:n,windowSize:i}=r(t),a=[];let o=e,s=o;for(let r=0;r<n;r++){s=o,a.push(s);for(let e=1;e<i;e++)s=s.add(o),a.push(s);o=s.double()}return a},wNAF(t,i,a){const{windows:o,windowSize:s}=r(t);let l=e.ZERO,c=e.BASE;const u=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<o;e++){const t=e*s;let r=Number(a&u);a>>=h,r>s&&(r-=d,a+=zS);const o=t,f=t+Math.abs(r)-1,p=e%2!==0,g=r<0;0===r?c=c.add(n(p,i[o])):l=l.add(n(g,i[f]))}return{p:l,f:c}},wNAFCached(e,t,n,r){const i=e._WINDOW_SIZE||1;let a=t.get(e);
2return a||(a=this.precomputeWindow(e,i),1!==i&&t.set(e,r(a))),this.wNAF(i,a,n)}}}(d,t.endo?Math.ceil(h/2):h);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:l,weierstrassEquation:a,isWithinCurveOrder:o}}function KS(e){const t=function(e){const t=WS(e);return wS(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,i=n.BYTES+1,a=2*n.BYTES+1;function o(e){return TS(e,r)}function s(e){return IS(e,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:c,weierstrassEquation:u,isWithinCurveOrder:d}=$S({...t,toBytes(e,t,r){const i=t.toAffine(),a=n.toBytes(i.x),o=gS;return r?o(Uint8Array.from([t.hasEvenY()?2:3]),a):o(Uint8Array.from([4]),a,n.toBytes(i.y))},fromBytes(e){const t=e.length,r=e[0],o=e.subarray(1);if(t!==i||2!==r&&3!==r){if(t===a&&4===r){return{x:n.fromBytes(o.subarray(0,n.BYTES)),y:n.fromBytes(o.subarray(n.BYTES,2*n.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${a} uncompressed bytes`)}{const e=uS(o);if(!(YS<(s=e)&&s<n.ORDER))throw new Error("Point is not on curve");const t=u(e);let i=n.sqrt(t);return 1===(1&r)!==((i&qS)===qS)&&(i=n.neg(i)),{x:e,y:i}}var s}}),h=e=>sS(hS(e,t.nByteLength));function f(e){return e>r>>qS}const p=(e,t,n)=>uS(e.slice(t,n));class g{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const n=t.nByteLength;return e=pS("compactSignature",e,2*n),new g(p(e,0,n),p(e,n,2*n))}static fromDER(e){const{r:t,s:n}=GS.toSig(pS("DER",e));return new g(t,n)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new g(this.r,this.s,e)}recoverPublicKey(e){const{r:r,s:i,recovery:a}=this,c=v(pS("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw new Error("recovery id invalid");const u=2===a||3===a?r+t.n:r;if(u>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=0===(1&a)?"02":"03",f=l.fromHex(d+h(u)),p=s(u),g=o(-c*p),m=o(i*p),y=l.BASE.multiplyAndAddUnsafe(f,g,m);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return f(this.s)}normalizeS(){return this.hasHighS()?new g(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return cS(this.toDERHex())}toDERHex(){return GS.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return cS(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const m={isValidPrivateKey(e){try{return c(e),!0}catch(t){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{const e=BS(t.n);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.length,i=LS(t),a=BS(t);if(r<16||r<a||r>1024)throw new Error(`expected ${a}-1024 bytes of input, got ${r}`);const o=TS(n?uS(e):dS(e),t-AS)+AS;return n?fS(o,i):hS(o,i)}(t.randomBytes(e),t.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function y(e){const t=e instanceof Uint8Array,n="string"===typeof e,r=(t||n)&&e.length;return t?r===i||r===a:n?r===2*i||r===2*a:e instanceof l}const b=t.bits2int||function(e){const n=uS(e),r=8*e.length-t.nBitLength;return r>0?n>>BigInt(r):n},v=t.bits2int_modN||function(e){return o(b(e))},x=mS(t.nBitLength);function w(e){if("bigint"!==typeof e)throw new Error("bigint expected");if(!(YS<=e&&e<x))throw new Error(`bigint expected < 2^${t.nBitLength}`);return hS(e,t.nByteLength)}function k(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;if(["recovered","canonical"].some((e=>e in i)))throw new Error("sign() legacy options not supported");const{hash:a,randomBytes:u}=t;let{lowS:h,prehash:p,extraEntropy:m}=i;null==h&&(h=!0),e=pS("msgHash",e),p&&(e=pS("prehashed msgHash",a(e)));const y=v(e),x=c(r),k=[w(x),w(y)];if(null!=m){const e=!0===m?u(n.BYTES):m;k.push(pS("extraEntropy",e))}const E=gS(...k),S=y;return{seed:E,k2sig:function(e){const t=b(e);if(!d(t))return;const n=s(t),r=l.BASE.multiply(t).toAffine(),i=o(r.x);if(i===YS)return;const a=o(n*o(S+i*x));if(a===YS)return;let c=(r.x===i?0:2)|Number(r.y&qS),u=a;return h&&f(a)&&(u=function(e){return f(e)?o(-e):e}(a),c^=1),new g(i,u,c)}}}const A={lowS:t.lowS,prehash:!1},E={lowS:t.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return l.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(y(e))throw new Error("first arg must be private key");if(!y(t))throw new Error("second arg must be public key");return l.fromHex(t).multiply(c(e)).toRawBytes(n)},sign:function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;const{seed:i,k2sig:a}=k(e,n,r),o=t;return vS(o.hash.outputLen,o.nByteLength,o.hmac)(i,a)},verify:function(e,n,r){var i;let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:E;const c=e;if(n=pS("msgHash",n),r=pS("publicKey",r),"strict"in a)throw new Error("options.strict was renamed to lowS");const{lowS:u,prehash:d}=a;let h,f;try{if("string"===typeof c||c instanceof Uint8Array)try{h=g.fromDER(c)}catch(A){if(!(A instanceof GS.Err))throw A;h=g.fromCompact(c)}else{if("object"!==typeof c||"bigint"!==typeof c.r||"bigint"!==typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;h=new g(e,t)}}f=l.fromHex(r)}catch(S){if("PARSE"===S.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&h.hasHighS())return!1;d&&(n=t.hash(n));const{r:p,s:m}=h,y=v(n),b=s(m),x=o(y*b),w=o(p*b),k=null===(i=l.BASE.multiplyAndAddUnsafe(f,x,w))||void 0===i?void 0:i.toAffine();return!!k&&o(k.x)===p},ProjectivePoint:l,Signature:g,utils:m}}function QS(e){return{hash:e,hmac:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return DS(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];
2const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let i=0;return t.forEach((e=>{if(!WE(e))throw new Error("Uint8Array expected");r.set(e,i),i+=e.length})),r}(...r))},randomBytes:XE}}const JS=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ZS=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),eP=BigInt(1),tP=BigInt(2),nP=(e,t)=>(e+t/tP)/t;function rP(e){const t=JS,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),s=BigInt(44),l=BigInt(88),c=e*e*e%t,u=c*c*e%t,d=_S(u,n,t)*u%t,h=_S(d,n,t)*u%t,f=_S(h,tP,t)*c%t,p=_S(f,i,t)*f%t,g=_S(p,a,t)*p%t,m=_S(g,s,t)*g%t,y=_S(m,l,t)*m%t,b=_S(y,s,t)*g%t,v=_S(b,n,t)*u%t,x=_S(v,o,t)*p%t,w=_S(x,r,t)*c%t,k=_S(w,tP,t);if(!iP.eql(iP.sqr(k),e))throw new Error("Cannot find square root");return k}const iP=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=kS)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:i,nByteLength:a}=jS(e,t);if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=RS(e),s=Object.freeze({ORDER:e,BITS:i,BYTES:a,MASK:mS(i),ZERO:kS,ONE:AS,create:t=>TS(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return kS<=t&&t<e},is0:e=>e===kS,isOdd:e=>(e&AS)===AS,neg:t=>TS(-t,e),eql:(e,t)=>e===t,sqr:t=>TS(t*t,e),add:(t,n)=>TS(t+n,e),sub:(t,n)=>TS(t-n,e),mul:(t,n)=>TS(t*n,e),pow:(e,t)=>function(e,t,n){if(n<kS)throw new Error("Expected power > 0");if(n===kS)return e.ONE;if(n===AS)return t;let r=e.ONE,i=t;for(;n>kS;)n&AS&&(r=e.mul(r,i)),i=e.sqr(i),n>>=AS;return r}(s,e,t),div:(t,n)=>TS(t*IS(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>IS(t,e),sqrt:r.sqrt||(e=>o(s,e)),invertBatch:e=>function(e,t){const n=new Array(t.length),r=t.reduce(((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r))),e.ONE),i=e.inv(r);return t.reduceRight(((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r))),i),n}(s,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?fS(e,a):hS(e,a),fromBytes:e=>{if(e.length!==a)throw new Error(`Fp.fromBytes: expected ${a}, got ${e.length}`);return n?dS(e):uS(e)}});return Object.freeze(s)}(JS,void 0,void 0,{sqrt:rP}),aP=function(e,t){const n=t=>KS({...e,...QS(t)});return Object.freeze({...n(t),create:n})}({a:BigInt(0),b:BigInt(7),Fp:iP,n:ZS,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=ZS,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-eP*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,o=BigInt("0x100000000000000000000000000000000"),s=nP(a*e,t),l=nP(-r*e,t);let c=TS(e-s*n-l*i,t),u=TS(-s*r-l*a,t);const d=c>o,h=u>o;if(d&&(c=t-c),h&&(u=t-u),c>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:u}}}},nS);BigInt(0);aP.ProjectivePoint;var oP=new WeakMap;class sP{constructor(e){kt(this,oP,void 0),mt(32===Bt(e),"invalid private key","privateKey","[REDACTED]"),Ot(oP,this,jt(e))}get privateKey(){return Ct(oP,this)}get publicKey(){return sP.computePublicKey(Ct(oP,this))}get compressedPublicKey(){return sP.computePublicKey(Ct(oP,this),!0)}sign(e){mt(32===Bt(e),"invalid digest length","digest",e);const t=aP.sign(_t(e),_t(Ct(oP,this)),{lowS:!0});return cE.from({r:Jt(t.r,32),s:Jt(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=sP.computePublicKey(e);return jt(aP.getSharedSecret(_t(Ct(oP,this)),Nt(t),!1))}static computePublicKey(e,t){let n=Nt(e,"key");if(32===n.length){return jt(aP.getPublicKey(n,!!t))}if(64===n.length){const e=new Uint8Array(65);e[0]=4,e.set(n,1),n=e}return jt(aP.ProjectivePoint.fromHex(n).toRawBytes(t))}static recoverPublicKey(e,t){mt(32===Bt(e),"invalid digest length","digest",e);const n=cE.from(t);let r=aP.Signature.fromCompact(_t(Lt([n.r,n.s])));r=r.addRecoveryBit(n.yParity);const i=r.recoverPublicKey(_t(e));return mt(null!=i,"invalid signature for digest","signature",t),"0x"+i.toHex(!1)}
2static addPoints(e,t,n){const r=aP.ProjectivePoint.fromHex(sP.computePublicKey(e).substring(2)),i=aP.ProjectivePoint.fromHex(sP.computePublicKey(t).substring(2));return"0x"+r.add(i).toHex(!!n)}}function lP(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function cP(e,t,n){let r=0;for(let i=0;i<n;i++)r=256*r+e[t+i];return r}function uP(e,t,n,r){const i=[];for(;n<t+1+r;){const a=dP(e,n);i.push(a.result),gt((n+=a.consumed)<=t+1+r,"child data too short","BUFFER_OVERRUN",{buffer:e,length:r,offset:t})}return{consumed:1+r,result:i}}function dP(e,t){gt(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});const n=t=>{gt(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const r=e[t]-247;n(t+1+r);const i=cP(e,t+1,r);return n(t+1+r+i),uP(e,t,t+1+r,r+i)}if(e[t]>=192){const r=e[t]-192;return n(t+1+r),uP(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;n(t+1+r);const i=cP(e,t+1,r);n(t+1+r+i);return{consumed:1+r+i,result:jt(e.slice(t+1+r,t+1+r+i))}}if(e[t]>=128){const r=e[t]-128;n(t+1+r);return{consumed:1+r,result:jt(e.slice(t+1,t+1+r))}}return{consumed:1,result:lP(e[t])}}function hP(e){const t=Nt(e,"data"),n=dP(t,0);return mt(n.consumed===t.length,"unexpected junk after rlp payload","data",e),n.result}function fP(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function pP(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(pP(e))})),t.length<=55)return t.unshift(192+t.length),t;const n=fP(t.length);return n.unshift(247+n.length),n.concat(t)}const t=Array.prototype.slice.call(Nt(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const n=fP(t.length);return n.unshift(183+n.length),n.concat(t)}const gP="0123456789abcdef";function mP(e){let t="0x";for(const n of pP(e))t+=gP[n>>4],t+=gP[15&n];return t}function yP(e,t){return function(e){let t;return t="string"===typeof e?sP.computePublicKey(e,!1):e.publicKey,zv(tv("0x"+t.substring(4)).substring(26))}(sP.recoverPublicKey(e,t))}const bP=BigInt(0),vP=BigInt(2),xP=BigInt(27),wP=BigInt(28),kP=BigInt(35),AP=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),EP=Symbol.for("nodejs.util.inspect.custom"),SP=131072,PP=128;function CP(e,t){let n=e.toString(16);for(;n.length<2;)n="0"+n;return n+=ME(t).substring(4),"0x"+n}function OP(e){return"0x"===e?null:zv(e)}function TP(e,t){try{return Tw(e)}catch(n){mt(!1,n.message,t,e)}}function NP(e,t){try{if(!Array.isArray(e))throw new Error("authorizationList: invalid array");const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(!Array.isArray(r))throw new Error(`authorization[${n}]: invalid array`);if(6!==r.length)throw new Error(`authorization[${n}]: wrong length`);if(!r[1])throw new Error(`authorization[${n}]: null address`);t.push({address:OP(r[1]),nonce:IP(r[2],"nonce"),chainId:IP(r[0],"chainId"),signature:cE.from({yParity:_P(r[3],"yParity"),r:Ut(r[4],32),s:Ut(r[5],32)})})}return t}catch(n){mt(!1,n.message,t,e)}}function _P(e,t){return"0x"===e?0:Qt(e,t)}function IP(e,t){if("0x"===e)return bP;const n=qt(e,t);return mt(n<=AP,"value exceeds uint size",t,n),n}function RP(e,t){const n=qt(e,"value"),r=Zt(n);return mt(r.length<=32,"value too large",`tx.${t}`,n),r}function MP(e){return Tw(e).map((e=>[e.address,e.storageKeys]))}function jP(e,t){mt(Array.isArray(e),`invalid ${t}`,"value",e);for(let n=0;n<e.length;n++)mt(It(e[n],32),"invalid ${ param } hash",`value[${n}]`,e[n]);return e}function LP(e,t){let n;try{if(n=_P(t[0],"yParity"),0!==n&&1!==n)throw new Error("bad yParity")}catch(o){mt(!1,"invalid yParity","yParity",t[0])}
2const r=Ut(t[1],32),i=Ut(t[2],32),a=cE.from({r:r,s:i,yParity:n});e.signature=a}var BP=new WeakMap,FP=new WeakMap,DP=new WeakMap,UP=new WeakMap,zP=new WeakMap,WP=new WeakMap,HP=new WeakMap,VP=new WeakMap,GP=new WeakMap,YP=new WeakMap,qP=new WeakMap,XP=new WeakMap,$P=new WeakMap,KP=new WeakMap,QP=new WeakMap,JP=new WeakMap,ZP=new WeakMap,eC=new WeakMap,tC=new WeakSet;class nC{get type(){return Ct(BP,this)}set type(e){switch(e){case null:Ot(BP,this,null);break;case 0:case"legacy":Ot(BP,this,0);break;case 1:case"berlin":case"eip-2930":Ot(BP,this,1);break;case 2:case"london":case"eip-1559":Ot(BP,this,2);break;case 3:case"cancun":case"eip-4844":Ot(BP,this,3);break;case 4:case"pectra":case"eip-7702":Ot(BP,this,4);break;default:mt(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844";case 4:return"eip-7702"}return null}get to(){const e=Ct(FP,this);return null==e&&3===this.type?dE:e}set to(e){Ot(FP,this,null==e?null:zv(e))}get nonce(){return Ct(UP,this)}set nonce(e){Ot(UP,this,Qt(e,"value"))}get gasLimit(){return Ct(zP,this)}set gasLimit(e){Ot(zP,this,qt(e))}get gasPrice(){const e=Ct(WP,this);return null!=e||0!==this.type&&1!==this.type?e:bP}set gasPrice(e){Ot(WP,this,null==e?null:qt(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=Ct(HP,this);return null==e?2===this.type||3===this.type?bP:null:e}set maxPriorityFeePerGas(e){Ot(HP,this,null==e?null:qt(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=Ct(VP,this);return null==e?2===this.type||3===this.type?bP:null:e}set maxFeePerGas(e){Ot(VP,this,null==e?null:qt(e,"maxFeePerGas"))}get data(){return Ct(DP,this)}set data(e){Ot(DP,this,jt(e))}get value(){return Ct(GP,this)}set value(e){Ot(GP,this,qt(e,"value"))}get chainId(){return Ct(YP,this)}set chainId(e){Ot(YP,this,qt(e))}get signature(){return Ct(qP,this)||null}set signature(e){Ot(qP,this,null==e?null:cE.from(e))}isValid(){const e=this.signature;if(e&&!e.isValid())return!1;const t=this.authorizationList;if(t)for(const n of t)if(!n.signature.isValid())return!1;return!0}get accessList(){const e=Ct(XP,this)||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){Ot(XP,this,null==e?null:Tw(e))}get authorizationList(){const e=Ct(ZP,this)||null;return null==e&&4===this.type?[]:e}set authorizationList(e){Ot(ZP,this,null==e?null:e.map((e=>uE(e))))}get maxFeePerBlobGas(){const e=Ct($P,this);return null==e&&3===this.type?bP:e}set maxFeePerBlobGas(e){Ot($P,this,null==e?null:qt(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=Ct(KP,this);return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){mt(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)mt(It(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}Ot(KP,this,e)}get blobs(){return null==Ct(JP,this)?null:Ct(JP,this).map((e=>Object.assign({},e)))}set blobs(e){if(null==e)return void Ot(JP,this,null);const t=[],n=[];for(let r=0;r<e.length;r++){const i=e[r];if(Rt(i)){gt(Ct(QP,this),"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=Nt(i);if(mt(e.length<=SP,"blob is too large",`blobs[${r}]`,i),e.length!==SP){const t=new Uint8Array(SP);t.set(e),e=t}const a=Ct(QP,this).blobToKzgCommitment(e),o=jt(Ct(QP,this).computeBlobKzgProof(e,a));t.push({data:jt(e),commitment:jt(a),proof:o}),n.push(CP(1,a))}else{const e=jt(i.data),r=jt(i.commitment),a=jt(i.proof);t.push({data:e,commitment:r,proof:a}),n.push(CP(1,r))}}Ot(JP,this,t),Ot(KP,this,n)}get kzg(){return Ct(QP,this)}set kzg(e){Ot(QP,this,null==e?null:function(e){return{blobToKzgCommitment:t=>{if("computeBlobProof"in e){if("blobToKzgCommitment"in e&&"function"===typeof e.blobToKzgCommitment)return Nt(e.blobToKzgCommitment(jt(t)))}else if("blobToKzgCommitment"in e&&"function"===typeof e.blobToKzgCommitment)return Nt(e.blobToKzgCommitment(t));if("blobToKZGCommitment"in e&&"function"===typeof e.blobToKZGCommitment)return Nt(e.blobToKZGCommitment(jt(t)));mt(!1,"unsupported KZG library","kzg",e)},computeBlobKzgProof:(t,n)=>"computeBlobProof"in e&&"function"===typeof e.computeBlobProof?Nt(e.computeBlobProof(jt(t),jt(n))):"computeBlobKzgProof"in e&&"function"===typeof e.computeBlobKzgProof?e.computeBlobKzgProof(t,n):"c
2omputeBlobKZGProof"in e&&"function"===typeof e.computeBlobKZGProof?Nt(e.computeBlobKZGProof(jt(t),jt(n))):void mt(!1,"unsupported KZG library","kzg",e)}}(e))}get blobWrapperVersion(){return Ct(eC,this)}set blobWrapperVersion(e){Ot(eC,this,e)}constructor(){wt(this,tC),kt(this,BP,void 0),kt(this,FP,void 0),kt(this,DP,void 0),kt(this,UP,void 0),kt(this,zP,void 0),kt(this,WP,void 0),kt(this,HP,void 0),kt(this,VP,void 0),kt(this,GP,void 0),kt(this,YP,void 0),kt(this,qP,void 0),kt(this,XP,void 0),kt(this,$P,void 0),kt(this,KP,void 0),kt(this,QP,void 0),kt(this,JP,void 0),kt(this,ZP,void 0),kt(this,eC,void 0),Ot(BP,this,null),Ot(FP,this,null),Ot(UP,this,0),Ot(zP,this,bP),Ot(WP,this,null),Ot(HP,this,null),Ot(VP,this,null),Ot(DP,this,"0x"),Ot(GP,this,bP),Ot(YP,this,bP),Ot(qP,this,null),Ot(XP,this,null),Ot($P,this,null),Ot(KP,this,null),Ot(QP,this,null),Ot(JP,this,null),Ot(ZP,this,null),Ot(eC,this,null)}get hash(){return null==this.signature?null:tv(Pt(tC,this,rC).call(this,!0,!1))}get unsignedHash(){return tv(this.unsignedSerialized)}get from(){return null==this.signature?null:yP(this.unsignedHash,this.signature.getCanonical())}get fromPublicKey(){return null==this.signature?null:sP.recoverPublicKey(this.unsignedHash,this.signature.getCanonical())}isSigned(){return null!=this.signature}get serialized(){return Pt(tC,this,rC).call(this,!0,!0)}get unsignedSerialized(){return Pt(tC,this,rC).call(this,!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,n=null!=this.accessList,r=null!=Ct($P,this)||Ct(KP,this);null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&>(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),gt(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),gt(0!==this.type||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return null!=this.type?i.push(this.type):this.authorizationList&&this.authorizationList.length?i.push(4):t?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):(r&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return nC.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}[EP](){return this.toString()}toString(){const e=[],t=t=>{let n=this[t];"string"===typeof n&&(n=JSON.stringify(n)),e.push(`${t}: ${n}`)};this.type&&t("type"),t("to"),t("data"),t("nonce"),t("gasLimit"),t("value"),null!=this.chainId&&t("chainId"),this.signature&&(t("from"),e.push(`signature: ${this.signature.toString()}`));const n=this.authorizationList;if(n){const t=[];for(const e of n){const n=[];n.push(`address: ${JSON.stringify(e.address)}`),null!=e.nonce&&n.push(`nonce: ${e.nonce}`),null!=e.chainId&&n.push(`chainId: ${e.chainId}`),e.signature&&n.push(`signature: ${e.signature.toString()}`),t.push(`Authorization { ${n.join(", ")} }`)}e.push(`authorizations: [ ${t.join(", ")} ]`)}return`Transaction { ${e.join(", ")} }`}static from(e){if(null==e)return new nC;if("string"===typeof e){const t=Nt(e);if(t[0]>=127)return nC.from(function(e){const t=hP(e);mt(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const n={type:0,nonce:_P(t[0],"nonce"),gasPrice:IP(t[1],"gasPrice"),gasLimit:IP(t[2],"gasLimit"),to:OP(t[3]),value:IP(t[4],"value"),data:jt(t[5]),chainId:bP};if(6===t.length)return n;const r=IP(t[6],"v"),i=IP(t[7],"r"),a=IP(t[8],"s");if(i===bP&&a===bP)n.chainId=r;else{let e=(r-kP)/vP;e<bP&&(e=bP),n.chainId=e,mt(e!==bP||r===xP||r===wP,"non-canonical legacy v","v",t[6]),n.signature=cE.from({r:Ut(t[7],32),s:Ut(t[8],32),v:r})}return n}(t));switch(t[0]){case 1:return nC.from(function(e){const t=hP(Nt(e).slice(1));mt(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",jt(e));const n={type:1,chainId:IP(t[0],"chainId"),nonce:_P(t[1],"nonce"),gasPrice:IP(t[2],"gasPrice"),gasLimit:IP(t[3],"gasLim
2it"),to:OP(t[4]),value:IP(t[5],"value"),data:jt(t[6]),accessList:TP(t[7],"accessList")};return 8===t.length||LP(n,t.slice(8)),n}(t));case 2:return nC.from(function(e){const t=hP(Nt(e).slice(1));mt(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",jt(e));const n={type:2,chainId:IP(t[0],"chainId"),nonce:_P(t[1],"nonce"),maxPriorityFeePerGas:IP(t[2],"maxPriorityFeePerGas"),maxFeePerGas:IP(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:IP(t[4],"gasLimit"),to:OP(t[5]),value:IP(t[6],"value"),data:jt(t[7]),accessList:TP(t[8],"accessList")};return 9===t.length||LP(n,t.slice(9)),n}(t));case 3:return nC.from(function(e){let t=hP(Nt(e).slice(1)),n="3",r=null,i=null;if(4===t.length&&Array.isArray(t[0])){n="3 (network format)";const e=t[1],r=t[2],a=t[3];mt(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),mt(Array.isArray(r),"invalid network format: commitments not an array","fields[2]",r),mt(Array.isArray(a),"invalid network format: proofs not an array","fields[3]",a),mt(e.length===r.length,"invalid network format: blobs/commitments length mismatch","fields",t),mt(e.length===a.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let n=0;n<t[1].length;n++)i.push({data:e[n],commitment:r[n],proof:a[n]});t=t[0]}else if(5===t.length&&Array.isArray(t[0])){n="3 (EIP-7594 network format)",r=Qt(t[1]);const e=t[2],a=t[3],o=t[4];mt(1===r,`unsupported EIP-7594 network format version: ${r}`,"fields[1]",r),mt(Array.isArray(e),"invalid EIP-7594 network format: blobs not an array","fields[2]",e),mt(Array.isArray(a),"invalid EIP-7594 network format: commitments not an array","fields[3]",a),mt(Array.isArray(o),"invalid EIP-7594 network format: proofs not an array","fields[4]",o),mt(e.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),mt(e.length*PP===o.length,"invalid network format: blobs/proofs length mismatch","fields",t),i=[];for(let t=0;t<e.length;t++){const n=[];for(let e=0;e<PP;e++)n.push(o[t*PP+e]);i.push({data:e[t],commitment:a[t],proof:Lt(n)})}t=t[0]}mt(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${n}`,"data",jt(e));const a={type:3,chainId:IP(t[0],"chainId"),nonce:_P(t[1],"nonce"),maxPriorityFeePerGas:IP(t[2],"maxPriorityFeePerGas"),maxFeePerGas:IP(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:IP(t[4],"gasLimit"),to:OP(t[5]),value:IP(t[6],"value"),data:jt(t[7]),accessList:TP(t[8],"accessList"),maxFeePerBlobGas:IP(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10],blobWrapperVersion:r};i&&(a.blobs=i),mt(null!=a.to,`invalid address for transaction type: ${n}`,"data",e),mt(Array.isArray(a.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let o=0;o<a.blobVersionedHashes.length;o++)mt(It(a.blobVersionedHashes[o],32),`invalid blobVersionedHash at index ${o}: must be length 32`,"data",e);
vendor: 4,357 bytes, line 2
2return 11===t.length||LP(a,t.slice(11)),a}(t));case 4:return nC.from(function(e){const t=hP(Nt(e).slice(1));mt(Array.isArray(t)&&(10===t.length||13===t.length),"invalid field count for transaction type: 4","data",jt(e));const n={type:4,chainId:IP(t[0],"chainId"),nonce:_P(t[1],"nonce"),maxPriorityFeePerGas:IP(t[2],"maxPriorityFeePerGas"),maxFeePerGas:IP(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:IP(t[4],"gasLimit"),to:OP(t[5]),value:IP(t[6],"value"),data:jt(t[7]),accessList:TP(t[8],"accessList"),authorizationList:NP(t[9],"authorizationList")};return 10===t.length||LP(n,t.slice(10)),n}(t))}gt(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new nC;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=cE.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.authorizationList&&(t.authorizationList=e.authorizationList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobWrapperVersion&&(t.blobWrapperVersion=e.blobWrapperVersion),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&(mt(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),mt(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&(mt(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),mt(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}function rC(e,t){gt(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){const n=[RP(e.nonce,"nonce"),RP(e.gasPrice||0,"gasPrice"),RP(e.gasLimit,"gasLimit"),e.to||"0x",RP(e.value,"value"),e.data];let r=bP;if(e.chainId!=bP)r=qt(e.chainId,"tx.chainId"),mt(!t||null==t.networkV||t.legacyChainId===r,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){const t=e.signature.legacyChainId;null!=t&&(r=t)}if(!t)return r!==bP&&(n.push(Zt(r)),n.push("0x"),n.push("0x")),mP(n);let i=BigInt(27+t.yParity);return r!==bP?i=cE.getChainIdV(r,t.v):BigInt(t.v)!==i&&mt(!1,"tx.chainId/sig.v mismatch","sig",t),n.push(Zt(i)),n.push(Zt(t.r)),n.push(Zt(t._s)),mP(n)}(this,n);case 1:return function(e,t){const n=[RP(e.chainId,"chainId"),RP(e.nonce,"nonce"),RP(e.gasPrice||0,"gasPrice"),RP(e.gasLimit,"gasLimit"),e.to||"0x",RP(e.value,"value"),e.data,MP(e.accessList||[])];return t&&(n.push(RP(t.yParity,"recoveryParam")),n.push(Zt(t.r)),n.push(Zt(t.s))),Lt(["0x01",mP(n)])}(this,n);case 2:return function(e,t){const n=[RP(e.chainId,"chainId"),RP(e.nonce,"nonce"),RP(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),RP(e.maxFeePerGas||0,"maxFeePerGas"),RP(e.gasLimit,"gasLimit"),e.to||"0x",RP(e.value,"value"),e.data,MP(e.accessList||[])];return t&&(n.push(RP(t.yParity,"yParity")),n.push(Zt(t.r)),n.push(Zt(t.s))),Lt(["0x02",mP(n)])}(this,n);case 3:return function(e,t,n){const r=[RP(e.chainId,"chainId"),RP(e.nonce,"nonce"),RP(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),RP(e.maxFeePerGas||0,"maxFeePerGas"),RP(e.gasLimit,"gasLimit"),e.to||dE,RP(e.value,"value"),e.data,MP(e.accessList||[]),RP(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),jP(e.blobVersionedHashes||[],"blobVersionedHashes")];if(t&&(r.push(RP(t.yParity,"yParity")),r.push(Zt(t.r)),r.push(Zt(t.s)),n)){if(null!=e.blobWrapperVersion){const t=Zt(e.blobWrapperVersion),i=[];for(const{proof:e}of n){const t=Nt(e),n=t.length/PP;for(let e=0;e<t.length;e+=n)i.push(t.subarray(e,e+n))}return Lt(["0x03",mP([r,t,n.map((e=>e.data)),n.map((e=>e.commitment)),i])])}return Lt(["0x03",mP([r,n.map((e=>e.data)),n.map((e=>e.commitment)),n.map((e=>e.proof))])])}return Lt(["0x03",mP(r)])}(this,n,t?this.blobs:null);case 4:return function(e,t){const n=[RP(e.chainId,"chainId"),RP(e.nonce,"nonce"),RP(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),RP(e.maxFeePerGas||0,"maxFeePerGas"),RP(e.gasLim
2it,"gasLimit"),e.to||"0x",RP(e.value,"value"),e.data,MP(e.accessList||[]),(r=e.authorizationList||[],r.map((e=>[RP(e.chainId,"chainId"),e.address,RP(e.nonce,"nonce"),RP(e.signature.yParity,"yParity"),Zt(e.signature.r),Zt(e.signature._s)])))];var r;return t&&(n.push(RP(t.yParity,"yParity")),n.push(Zt(t.r)),n.push(Zt(t.s))),Lt(["0x04",mP(n)])}(this,n)}gt(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}const iC=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function aC(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,a=[0,1];for(let x=1;x<r;x++)a.push(i+=n());let o=n(),s=t;t+=o;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}const d=2**31,h=d>>>1,f=h>>1,p=d-1;let g=0;for(let x=0;x<31;x++)g=g<<1|u();let m=[],y=0,b=d;for(;;){let e=Math.floor(((g-y+1)*i-1)/b),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<a[r]?n=r:t=r}if(0==t)break;m.push(t);let o=y+Math.floor(b*a[t]/i),s=y+Math.floor(b*a[t+1]/i)-1;for(;0==((o^s)&h);)g=g<<1&p|u(),o=o<<1&p,s=s<<1&p|1;for(;o&~s&f;)g=g&h|g<<1&p>>>1|u(),o=o<<1^h,s=(s^h)<<1|h|1;y=o,b=1+s-o}let v=r-4;return m.map((t=>{switch(t-v){case 3:return v+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return v+256+(e[s++]<<8|e[s++]);case 1:return v+e[s++];default:return t-1}}))}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((e,n)=>t[e.charCodeAt(0)]=n));let n=e.length,r=new Uint8Array(6*n>>3);for(let i=0,a=0,o=0,s=0;i<n;i++)s=s<<6|t[e.charCodeAt(i)],o+=6,o>=8&&(r[a++]=s>>(o-=8));return r}(e)))}function oC(e){return 1&e?~e>>1:e>>1}function sC(e,t){let n=Array(e);for(let r=0,i=0;r<e;r++)n[r]=i+=oC(t());return n}function lC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let e=0;e<i;e++)n.push(t+e);t+=i+1}return n}function cC(e){return dC((()=>{let t=lC(e);if(t.length)return t}))}function uC(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(fC(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(pC(n,e))}return t.flat()}function dC(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function hC(e,t,n){let r=Array(e).fill().map((()=>[]));for(let i=0;i<t;i++)sC(e,n).forEach(((e,t)=>r[t].push(e)));return r}function fC(e,t){let n=1+t(),r=t(),i=dC(t);return hC(i.length,1+e,t).flatMap(((e,t)=>{let[a,...o]=e;return Array(i[t]).fill().map(((e,t)=>{let i=t*r;return[a+t*n,o.map((e=>e+i))]}))}))}function pC(e,t){return hC(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}function gC(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,"0")}(e)}}`}function mC(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}function yC(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}function bC(e,t){let n=e.length,r=n-t.length;for(let i=0;0==r&&i<n;i++)r=e[i]-t[i];return r}const vC=44032,xC=4352,wC=4449,kC=4519,AC=28,EC=588;function SC(e){return e>>24&255}function PC(e){return 16777215&e}let CC,OC,TC,NC;function _C(e){return e>=vC&&e<55204}function IC(e,t){if(e>=xC&&e<4371&&t>=wC&&t<4470)return vC+(e-xC)*EC+(t-wC)*AC;if(_C(e)&&t>kC&&t<4547&&(e-vC)%AC==0)return e+(t-kC);{let n=NC.get(e);return n&&(n=n.get(t),n)?n:-1}}function RC(e){CC||function(){let e=aC("AEUDWAHSCGYATwDVADIAdgAiADQAFAAtABQAIQAPACcADQASAAsAGQAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAecDNACxCmIB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJEMAJpIBpob5AERSMAKNoAXqaQLRBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobPgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vLIBDAHUGVsQ8wCzfQIbGVcCHBZHAZ8CBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTl
2cgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rpF27H7fsd/twPt4l+UW1yQYKBt2Cgy7qJpGiLcdE2P1cQSImUbqJ6ICH27H4knQMIRMrFkHu3sx6tC35Y+eLIh4e4CMKJ4DfyV+8mfta499RCAJ0xfeZR8PsoYOApva9pjGn4PhvyZS7/h5JLuhaucfjuU+Z584wwqNO4hWYmaBCcjgQPale1bjoHzMUbut/zTgxHxBnAyrdKpF4IRMASLBtD/jviyLeCgj8twWjAd3HchN/uqaeRYeHJgl7JEY9/cTrvtfybx/r3Y/NtxJ9dp+MTVmiS9bwBH73s8Di56/Ma+mTPMHq4T1yEG1fWcqr0u+hrGnJEvU1JJAm/maQSrKrazIyvSkDFkj8UUlfBq8baniTGPng6YZRL661rDNw4w/1g2figG0IhXnL7wosd/sVNo5dYSmMBTP5c7rYLjRdCwg8quwljOMPf63D8ICAL0r71XRiyFHdgwHbwfgnPOf4Lzjf2v+j+IiDHG2isp5yUnzSDyDRb4i/Vs0qHSHq8PiEQ/JnBP7PxnjN0j6gT4AVAeRx/1o9VnEUlUwvFrzJqHk9jxAw4sYxCnrxaeBdCFFKbnE7z+x54F5W7ZZsU6kx8Qocul6FoAHHy01FGL/nne61mn4+uYXfQ1Uccn+HMLKE+cZzT8BB1E3FRskOgJrRsq25rauLm8+uamXpkS/bTy6y1wDbCrW4eD532kTWrtNUmVVZOIn/C+/JR9KVR5iG9TY8iaT67ubm/whL1xbKZoqtY+a6fNxMJrg211bGYJDUkYMNWA0BMB++9zOm6Eik4roqs9CCEFW0lyAK0PbvlzvoxrZuY/OEhNW/l/63U15Od/RSvmDvXpGLiVmeGi5PDSH2bYz5o2g6wFDQ2FbZgYgTF8rPlvA1ifjZD3NLtFdXdpSIJvgKR7GpjJWG7GZGawPomIH8B5tUmtHH9LpM+/KQKunEPa1GiQkCXv4Cnm9DLORo2joicHdPDZ64obQrPZ5bgqckkj0G6/NEiPYBY4bCkL7W8G5YzsUb6GakFjykSPkT7JGeLeB6uJOGMm+x7N381BCDfbJFx0dtLgV9Q477BfL1fvitX5anV/oYfxeYl+eF5x5bB8+Ep/L2nsmd56aKF4aAD4GbJWsdKyBW22xEmAD3XdbtsMyAFoR5mOla0gEd9U/YVB7zvHGpHbQonay9Sv0bQ8iZ8piaXVrKc5AG1AmqqgaEvzHSP2Wux7aZTWh6quVDVU01JtMIVRdCFwlSbbqqhoFlyzsotQzRexFvZ/MqUSFu3OhRIuNBbufvBpdVgb8XdGJ48/lJPCZ7dsOujTTbKPSEvGXkOnG2Xdi8/nM3EMRqITd5QeU7iOjKqC7URJY6TnLsHij22xAHKnVRD5MDtBYnoGFqZGMDmXCW6Oj+BAWw14hESY/xLF6bLku06AHkiXTHPCFZ0f9YSqqo27eAhhS67OrA2Het4M9JM3jm/yRX6bYxnfmzYl5qQdHxN08FsNuWDrWd4vMUY2QD3hr8vS73SCTkFoXZR3xNzOQt8d/6HfjBmXqvrE6EGkLzK6YK2U2/ksU/iUH+LvVIsJI+ri2AL/klo+ShdDyfs5A83i2prkMs51IKR7ZcqjZJi5X3+bd8GlyWvtddxKEoEqSgEO7A8jIgf2nH0h8FjM7oB6yte3X5mpL0i/E4Rx0CotKnILJj/vJqo4VkPQ93jRtRVfaitQPqldl5xRYPq8387Z0DcnZvOeION0Ht1+P27kFLGQIcLBX4FG3sffccNHh5cPfzp9INoRtqVtdViJfg8RjnXiIz/MNqEN6zvzX3hMzyWC7oSoXIT14ubc0abPX8Rp9GVa5NI/8iv+6ela1oTncbdimRKnrbRffDR/X4nH+bgqAuHWl7hOaeXPWVzIeRl7ga+JzD4Sx3mlj/q6Ra/E2HhDf21eEzTLNGfCZsY+/yxZzQzIAuijG65ii4O/waAJCrEJaWd/DRAKMQ5678Dw5AT7RCKzdadIwd8LsD+DgPBASmWsUlf8R0k1w/2k4lO2Wpb4zMI6EJVJs0xk/wn8/fRUPqrDKhbjHR41SqgFMx5RGMPuduFwlu5lK89tW11sTqiX/5EfGs5nO+y9FKvgXKPOEmgE05EKNL6Sjb3xS40H3BVPhm0ESOZgAjZoymc8be0inDVo4JdJVf+NKd3tN/CaB7GShhH27qf95NoFZVX/6ZkR2lX+CgWrQ2INgkh+bbMz68+uJ3Clsh8HSMPEQtAt+BBE6fXDab7KIlsKxU1lIXW/KWVstpdPanJ0pdXpQinDyUQjtY7ZVcfiecRxRDMAUhHFU2cEaciQ+htiPMPx1kdvtWG9T44w3r037ljHBFJdYR0r55qvMRixtAEFJAqA4T1ES87FAx7UozXasytg8MftZYt0rjYgLe6EJ5aWvy2qscBSBQ7yehoJIA3wIIZ9ukfkyBb6qnue5ko8W50rpV4kXqWjI5nbGRXrNW0tBZHXlY48nSgcUXBHWT4GcgLZJoLlKJnV96kCYpq9eWHh7xJzkCAyrQuQ5AJ0qq/uZ3toJglNterev+Qm0KXxPg/+YbFRJdfhbp1wOnVOEYdVHTya6CtO0afhEaBhx3oHwCb5Kq6RwHDzFMl2vfjL8GwzcCoTj7wZe+UFnYDV2yKpPU9dba29gYBdNqJg/KXozO+CJTlKmlKhnqTf5doeS35DZFV+cYJQVjd+oVY/Gtc/6XPzUxb1gMqf6cEjNNoRC8AObrp+fx0cVtGu4ffC2TgXRC8zPl8moUHCB5HZ25d87mlsiiK0aNwBtcEQjRNBT/QrXbw/8aVXdKMHn9EqYEKEyxSGTpYQOaes1G1Qq8pDgqkZtlO2HRyCXpmeM7TSrRPkAh004BfisVpF6zP44n2Jvxz/gOVocNCyy9V6lkod28QM4pbaMvVJigD/w3BrsjSJrXlqc4ulBYOCceiBN4b/gHajYyupbhEt63a619Ay4wsL6a6w6B+A7TnoyE7BliWHJfzVxxIKM/W3M/J8Bx99Op863Q8eNuIMGRx++VbYfjm+VGYBA3Ap/KEu/wxBNBpJJncwHPG45V8Gh98ZIrGCc20MwijGowZbcS7d1nEgcOW5cddZpHL2XPAIRbColiheZzXTvBxZOY3iMSDSKDrICyJ/iQs1vdplVdH/JrLJsQ2jtTnfCrITIghq3KFX3qAgLWAIp8IffNSdTYptnbGfc8s+qcr3zyzyHp1aJg+jxTF4kD1ry5Wauv5V3xnOGwTFecNzXSLHBW20/pCQjk4uorD0plIhMSTc79+/r4RKPClRYTBYex1Ob5crtfvRQBBv6re/6FhtCqtduag67glqRA77/3ulblh9YRtMdDxkCyJDeNnAuCLPQFmdRRWJtH20Z8DstfJf+5oj5SSB64d0iF5/Ya4KfTWxfivj9Ap2/zbYaTo/1gO3tM6RYsCZharMBFr7Fm61mLSrQnEI4OF1gbVS4k/JE9UotOrnLJZuswoWodCSV8zbybkJSVIP7n8UaE9xCR39rJZmf27HOAPVOGc9pdkQUcRrI0qyVF9Z3j1RHDbxIfwbWzmPVjwIdPJvtmBYwEQIUsIW1S939hcVikK00ozPRI02cqhzVUNzpOxVdrwRPvlh1aIOf0xFEqD3YkGnCnFah/cFN3J2gB7N+bZSGawwkKFu1tpQMrp1W+27YNkyT0TpcFpTqgOqqLabrgcCUPxh97mREOGy4xItzQ9xSl6rq+8BZsHcrQFReS+QeMxJ3P6CnL9EP/eOLDjumLhvrcQrpPiknsofbzBv9gTP0lU+TIVwE6E7CcKfT36q+ZiEOHJ9ayf0dyUJLezAb2M8aNHwd0+OJmsVgTzRWA");CC=new Map(cC(e).flatMap(((e,t)=>e.map((e=>[e,t+1<<24]))))),OC=new Set(lC(e)),TC=new Map,NC=new Map;for(let[t,n]of uC(e)){if(!OC.has(t)&&2==n.length){let[e,r]=n,i=NC.get(e);i||(i=new Map,NC.set(e,i)),i.set(r,t)}TC.set(t,n.reverse())}}();let t=[],n=[],r=!1;function i(e){let n=CC.get(e);n&&(r=!0,e|=n),t.push(e)}for(let a of e)for(;;){if(a<128)t.push(a);else if(_C(a)){let e=a-vC,t=e%EC/AC|0,n=e%AC;i(xC+(e/EC|0)),i(wC+t),n>0&&i(kC+n)}else{let e=TC.get(a);e?n.push(...e):i(a)}if(!n.length)break;a=n.pop()}if(r&&t.length>1){let e=SC(t[0]);for(let n=1;n<t.length;n++){let r=SC(t[n]);if(0==r||e<=r){e=r;continue}let i=n-1;for(;;){let n=t[i+1];if(t[i+1]=t[i],t[i]=n,!i)break;
vendor: 589 bytes, line 2
2if(e=SC(t[--i]),e<=r)break}e=SC(t[n])}}return t}function MC(e){return RC(e).map(PC)}function jC(e){return function(e){let t=[],n=[],r=-1,i=0;for(let a of e){let e=SC(a),o=PC(a);if(-1==r)0==e?r=o:t.push(o);else if(i>0&&i>=e)0==e?(t.push(r,...n),n.length=0,r=o):n.push(o),i=e;else{let a=IC(r,o);a>=0?r=a:0==i&&0==e?(t.push(r),r=o):(n.push(o),i=e)}}return r>=0&&t.push(r,...n),t}(RC(e))}const LC=".",BC=e=>Array.from(e);function FC(e,t){return e.P.has(t)||e.Q.has(t)}class DC extends Array{get is_emoji(){return!0}}let UC,zC,WC,HC,VC,GC,YC,qC,XC,$C,KC,QC;function JC(){if(UC)return;let e=aC("
vendor: 20,100 bytes, line 2
2AEkVMQnvDV0B0wKWAQYBQgDpATQAoQDcAIUApwBsAOMAcACTAEUAigBRAHkAPgA/ACwANwAoAGIAHgAvACsAJQAXAC8AHAAhACIALwAVACsAEQAiAAsAGwARABgAFwA7ACoAKwAsADQAFgAtABIAHAAhAA4AHQAdABUAFgAZAA0ADgAXABAAGQAUABIEtAYQASIUOjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqft7uycM2yDPCLspA7EUOwD3LWujAKF9GAAXBCXXFgEdALkZzQT6CSBMNwmXCYgeG1ZZTOODQgATAAwAFQAOa1QAIQAOAEfuFdg98zlYypXmLgoQHV9NWD3sABMADAAVAA5rIFxAlwDD6wAbADkMxQAbFVup+3EB224cHQVbBeIC0J8CxLAKTBykZRRzGm1M9QC7DWcC4QALLTSJF8mRAoF7ARMbAL0NZwLhAAstAUhQJZFMCgMt+wUyCddpF60B10MASSsSdwIxFiEC6ye5N2sAOeEB9SUAxw7LtQEbY4EAsQUABQCK00kFG8MfBxcAqCfRAaErLQObAGcBChk+7Td0BBgXAKoBxwIhANMrEnM681CwBZA6dyc1SAX6JwVZBVivuAVpO11CEjpYQZd7k2ZfofgLEwPFByXxdyMEo0sCU1MCdRurJwGPo6U1WwNFFwSDYQkA0QarPy8jBykCOV0AawFhH3EAgx0ZAJUBSbcAJ2kXAa/FAzctIUNTAW9ZBmUCZQDxSRcDKQEFAElBAKsAXQBzACu1Bgfz7xmNfwAJIQApALMbRwHRAdsHCzGXeIHoAAoAEQA0AD0AODN3edPAEF8QXAFNCUxsOhULAqwPpgvlERUM0SrL09gANKkH6wNTB+sDUwNTB+sH6wNTB+sDUwNTA1MDUxwK8BrTwBBfD0gEbQWOBYsE1giDJkkRgQcoCNJUDXQeHEcDRQD8IyVJHDuTMwslQkwMTQMH/DZCbKd9OANHMatU9ZCiA8syTzlsAR5xEqAAKg9zHDW1Tn56R3GgCktPrrV/SWJOZwK+Oqg/+AohCZNvu3dOBj0QFyehEPMMLwGxATcN6UvUBO0GNwTFH3kZFQ/JlZgIoS3ZDOkm3y6dgFYj8Sp/BelL8DzZC0lRZA9VC2EJ3zpfgUoDHQEJIocK2Q01CGkQ7wrFZw3hEUEHNQPRSZYAoQb9Cw0dMRWxJgxiqAsFOXMG9xryC4smqxMlevgFzxodBkkBJRr7AMsu44WsWi1cGE9bBf8LISPDFKRQHA0hQLN4RBoXBxElpQKNQ2xKg1EyHo8h8jw5DWIuD1F4B/E8ARlLC308mkanRQoRzj6JPUQiRUwoBDF7LCsnhwnLD4EMtXxuAVUJHQmtDG0TLRETN8EINQcVKZcgJxEIHUaRYJYE85sD7xPNAwcFOwk9Bw8DsRwpEyoVJQUJgSDTAu820S6vAotWfAETBccPIR/bEExH3A7lCJcCYQN/JecAKRUdABMilwg/XwBbj9RTAS7HCMNqaCNwA2MU410RbweNDlMHoxwvFbsc3XDEXgeGBCifqwlXAXEJlQFbBN8IBTVXjJwgPWdPi1QYlyBdQTtd+AItDGEVm0S5h3QChw9nEhcBMQFvBzUM/QJzEekRZxCRCOeGADWxM/Q6IQRLIX8gDQojA0tsygsjJvUM9GUBnxJeAwg0OXfqZ6dgsiAX+QcVMsFBXCHtC45PyQyYGr0YPlQqGeAHuwPvGu8n5kFTBfsDnw86STPqBLkLZQiHCTsARQ6fEwfTGGYKbYzMAS2HAbOVA1ONfwJriwYzBwcAYweDBXXhABkCowifAAEAywNTADUCqQeZABUAgT0BOQMjKwEd4QKLA48ILccBkSsB7yUEF78MEQDzM25GAsOtAoBmZp4F2VQCigJFMQFJIQQBSkNNA6tt3QDXAEcGD9tDARGnRscW3z8B22snAMMA9wABMQcBPQHJAe9pALMBWwstCZ6vsQFJ5SUAfwARZwHTAoUA2QAxAHvtAU8ASQVV9QXPAktFAQ0tFCdTXQG3AxsBLwEJAHUGx4mhxQMbBGkHzwIQFxXdAu8qB7EDItsTyULBAr3aUQAyEgo0CrUKtB9f81wvAi1uPUwACh+kPsM/SgVNO087VDtPO1Q7TztUO087VDtPO1QDk7veu94KaF9BYecMog3QRMQ6RRPXYE1gLhPELbMUvRXKJVIZORq4JwEl4FUFDwAtz2YsCCg0cRe4ADspZIM9Y4IeLApHHONTjVT0LRcArUueM6sNqBsRRDwFQ3XpYiYWCgoeAmR9AmI+V0mrVzccAqHzAmiUAmYFAp+AOBcHAmY3AmYiBGoEewN/DwN+jjkCOXMTOX46Hx8CbBkCMjI4BgJtwwJtquuGL2NBJwFjANoA3QBGAQeUDIkA+ge+AAmxAncrAnaeOwJ5Rz8CeLYZWNdFqkbTAnw7AnrEAn0FAnzsBVUFHEf8SHlfIAAnEUlUSlcRE0rIAtD9AtDISyMDiEsDh+JEwZEuAvKdXP8DA6pLykwpIctNSE2rAos7AorUvRcDGT9jAbMCjjMCjlg8k30CjtUCjlh0UbBTMQZS0FSBApP3ApMIAOUAGFUaVatVzAIsFymRgjLdeGJFNzUCl5sC765YHaQAVSEClosClniYAKVZqFoFfUkANwKWsQKWSlxAXM0CmccCmWBcxl0DFQKclzm+OpkCnBICn5cCnrSGABkLLSYLAp3tAp6OALE5YTBh6wKezwKgagGlAp6bGwKeSqFjxGQjIScCJ6sCJnoCoPcCoEgCotkCocACpisCpcoCp/sAeQKn7mh4aK3/RWoYas0CrN8CrKoCrWMCrP4CVxkCVdgCsd3TAx9KbJMCsrkJArLkE2zcbV9tRFsDJckCtlg3O26MAylBArhaArlDEQK5JnNwMnDdAr0VArvWcJIDMg0CvoRx/gMzbQK+FnMec0sCw8cCwwBzfnRHMUF03AM8owM8lgM9uwLFeALGQwLGDIUCyGVNAshAAslLAskqAmSZAt3OeHVdeKp5IUvMAxifZv4CYfAZ75Ugewdejl63DQLPZwLPaCtHT87vD5sAwqkCz28BJeYDTg5+RwEC3CMC24YC0ksDUlgDU1sA/QNViICFO8cS6VxBghiCz4LKg4kC2sMC2dqEDIRFpzgDhqEAKwNkCoZtVfUAUQLfYQLetG9zAuIr7RAB8ywjAfSXAfLOgwLr7wLpbHUC6vUC6uAA9UMBtQLuhQLrmJamlv8C7jsDhdyYdXDccZ0C8v8AZQOOEpmPAvcPA5FqA5KDAveUAvnVAvhimhiap7czmxoDnX8C/vYBFwA1nxifrwMFiQOmZgOm1QDNwQMGZqGEogEFAwxFAQsBGwdpBl21YwEAtwRnuw2HHq8JABNxNQAfAy8SSQOFewFfIx0AjOsAHQDmnwObjQizBhufwQCnBRG76R09PhZ4BWg3PkArQiFCtF9xEV+8AJbFBTIAkEwZm7k7JmAyEbrPDi8YxhiJyfYFVwVYBVcFWAVjBVgFVwVYBVcFWAVXBVgFVwVYRhUI14VnAgICCmRe6SsEyQOxBi+7uwC7BKe7AOdAKRayBUY+aT5wQj9Ctl91N1/oAFgRM6sAjP7Ma8v8pudGej0mIwQrFic2NX5t32rB8RnCLGkBa9duMBcFXwVqycHJuAjPSVsAAAAKfF59i74AMz+BAAMW0QblrSMFAIzDCwMBDQDlZR09JB9KQrFCvEE4I18nYDYnOCMJwT0KRD9DPng+gT5wPnECiUK8SUI7X8tOT2pNCixrVC9qC24fX+AzOhsJZ5sKYiMrPB0mQqtCvCvMAcv8X8kOHy4JCAkifp3fajotShfJq8msCWXBy8wKYEFfD+UQoxEAk40dRUIlG6ltOc44CjM/Qz5wQj8cBwodTEdsWywtWuG8Egp97R0rQj8cXQhKCQ4zVENCNwQ7Q5wsCoEbLUI/G/UIUyIjGDAxAAWPYfBeCnFkyWALYC0jbkNgGTkCGx5gswYCaxBlTmBNEQFk52AVYJVgfWCzYEtgkWgWFwa1DtxVqbxaC0MWqwG7K83BAh8VABwDHgF5AmwvMJVSgAGKCrhHGgDkI3SOCsoNpk3qAZsCh5xPBUBfAPf3BwA0FlcMC6UMJB+6r0eAgQw0ABUTnyuCCHoC0gtLZREbANhOBnUECh5aADEAtritAJQnCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cHAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4rQCUJy07Ds4CkBh7ULtYyHRyjsOlmw/ZFUkb7AEpEFwSBh/lAccJOhCTBQ8rDDYLABEAs+AiAQIApADhAJiCCrJrOS8AFABbG8YubHYqDcEQAjskHNPhHB4LG30CewTBCqrxbAAnLQ6mLs6hHAe7CQAQOg+7GkcczaF3HgE9Kl8cLs4RGQB9q9ocAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvAk8DrsFmAEbawouzqEqD4sa4QHDAREWOwCgCzsLuxC7BBiqe9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOxjbL7ZtvgNIqLsAB7sALrsC6w5WAAq7BAAeuwJVICp/FTwVuwG+J+QAsloBvSjgo7vIAAFbAAG7AAJbAALjAAg7AA67AgAbu6VbDr/EAPQAaPuoOwMBu5UnSwDn3Rm7CBp7CKEFCv9wAN+7p7sau6OLeXIG+6mbgwASuwYbCwG8AACGAG27BgALu6c7ARo7ugihnMoBuwvtB8CpOwDhewG/AADlABW7AAb7AAm7AGmLABq7GLuOaRX7AA5rAC5LHgAGuwAXuwghAA1KAcIAt68mAcAAALQADpsAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAIPAAUOwARawAPiwAN6wANuwAZCwYWGwAVOwBumxm7ALobLgATOwMAaSsKAOFLAAI7AARSABd7BRsABtAAGLsAC/sAX7sAa/sA5IsBuwAXdgG8AAFyC6EABUoAbXYAB/sA5XsAHGseAXsoUgA5RQD+Bw0McgAoKnABpAUIXgG8XiMMCQdvS2xfKokfPBRiLTYDoQq0AdgAFgLRA24BdnJHUhQhA08CFT4BLAYDc0a8e1J6QAApADEB+wBTCtsAe5AsASsAduUNETJGAUoAVwUAAVABB4rMAHg7BCClAFoA1hUAlWg3H4sAzWuxAM/UFgjCdXMbGFYdCdEBiJCrIlNTTUgSPMKJ+QB/HDdAKSvgEZdPAHIBKSwwKUIZDwMwVQT3xe4AS2XcAGoCcQI/EXo6x3guNdUGBQAQGx0KCAwqBB8dKU5TTgi5ugAKEs0AJgABGgCGAIkAjjUA7gC0AOAAnTwAuwCrAKYAoQDyAJ8A0wCcAOsBDAEHAMAAeQBaAMsAzQEHANcA6wCIAKIBNQDjANgA1QMBByoz1NTU1LbA3M3QzkMyFwFNAVcvRwFVAWQBYwFWAUdLQ0VoDQFOFQcIAzI2DAcAIg0kJiksODo6PT09Pj8OQB5RUVFRU1NSUylUVVdWVhxdYWFgYmEjZmhwb3JycnJycnR0dHR0dHR0dHR0dnZ3dnVbAEDsAEUAlgB0AC4AYvIAigBTAFMAMwJz6QCH//LyAGAAj+wAmwBLAF4AYPn5qgCBAIEAZQBSAK0AHgCyAH8CPAI/APgA4wD6APoA5AD7AOUA5QDkAOIAKQJ3AU0BPAE6AVABOgE6AToBNQE0ATQBNAEYAVQPACsIAABNFwoWAxUWDgCKAJIAogBLAGQYAi0AcABpAJEDEgMkKgMeQT5HKQCLAksAwwJTAqAAugKSApICkgKSApICkgKHApICkgKSApICkgKSApECkQKUApwCkwKSApICkAKQApACkAKOApECcQHQApMCmwKSApICkRZ5CwD6BQOnAl0CNhcBUBA1At4RCisTAUo3E02RAXekPAFlWQD/Az1HAQAAkykeGI9qAClgAGkALgCJA5TMi/CuhFoFuisOwhEBndV0KgsEIzFsATNabAGyAN5+gH9+gH6BgoJ+g4aEfoWIhoCHgoiCiX6Kfot+jIqNfo5+j4KQfpF+kn6TfpSDlYiWgpd+2gLabOEC2GwAgmwkbKAAg2xsBEkERgRIBEsESQRPBEwERwRNBE8ETgRKBEwETwCWZmwAowOIbAC0ZgEFbADJUWxsAM9sAgxsAPZabAD2ARkA9gD0APQA9QD0A31ebNSEI2XAAPYA9AD0APUA9BxsbACJWmwA9gCJARkA9gCJAL4A6AAIAPYAiQN9XmzUhCNlwBxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN9XmzUhCNlwBxsbACJWmwBGQD2AIkA9gCJAu0A9gCJAL4CNwD3AIkDfV5s1IQjZcAcbAJDATZsAkoBOWwCS8FsbAJXbGwDnwLtA58DnwOgA6ADoAOg1IQjZcAGA31ebBxsbACJWmwBGQOfAIkDnwCJAu0DnwCJAL4CNwOfAInUhCNlwAYDfV5sHGwEPmwAiQQ/AIkGjTFtIDFs1m4DKGwDrAJsbABVWv4VMgJsbACJAmwAVAEAul5sAmxebGwAiV5sAmxebD3YAEls1gJsbEbCxxP/x5BApA0KYFA89AsjTx97EHmJQPyocItC2JnNFRCEnFU6SFTDoI0PxeRNRoNRWkpzVnWW8pTagkNmgf+jGupqZ3eu50LAFnc+OzfJwdub1AdpOy76VnijWNR/CMEevikQkFyQuLuPajxWi9chqOoMJ7qpCN4sx3LJG4Myu8kD68wC6+iAwt+pU1JEeY13rpCVkXSZfinVKn4xZpxsI3Lp8bJLrJ9ujkrIalMRBAcv/GSKEtowzcEn5XmJw2BagB8V2UWJoJHZ14SXhM7p0XeGFOuw6mlvyq99WYp5XxrO6ru9nn4RHcOkJ7hx5UqWtman7yVMLzYXQefQRUdIY70RYQE8+aAzCNSGQkXiHfnHYRMi+xczKDdZLk3AV1gzxkkSHLjBwuq8shIJ+/RAbqjqQbugFhe0rqklu432EERkM5k9y1DXzds46oLqKAx6OhPT2WiqEfhaITn7OF9Y694AmKmUvbpWp0xJqDaf3jeNJXnK6NpnGcFOmbclbARC+5+5U52ufw5b0Hh+2LrrNimvZe4eYmApRsZnJE310SqB+1xB6rSJfnV1f2D0awB18Oc0sXAFqIlgHgWiaZGdvP5CJUSsCTCQUC335+iSkwPlLJJ5lwjTSn9Lw22NbK1Tu8w+bUpHtDRDPho7Gun8aw2Jzu9i+N0Ot/kPMbLAb/rUQ82kfpk85qLDkfxLl39QPDngo72GYh/Xigbpcm1pA23D2ywt3D8GgMOao040wDqkHxOEx0OhC+ZmHiIdjK7yRbfJD2ouZbAedhD3p7s8WDmCJfNforgDYPGAXSI08fTjPZ5B37lc5VXGzc1vJmibDwBNVzXuaUzg7N5H4BxqjhJ+kz9HLUJys7bpBDYAPvbut13AwJCWd059tS8YTYgC8HwrkewBfa1LSSpmMr9uR2EekTiAMH+Mx4AGzgbquccwBDlLmRhgXL/YiLPCEb6d2k5qJ6o800qddABkpqt7NG+sc2uvHZwZs57W1AHTFM1KkMShasADAh2FvzbzJOzVDMS3ZlT2BSFKdnkZFB6JyqJbhm6XANis9TrtzJdlPVp+rl8v3nIke6Jou7m2TKu53Vounupgkz2LzrQPhhatLIG7rfF/gUKWp15X3LKt+ZvuCDSqPUigF9yJntimC1HJR7Yj/dUrLAXWrT+1tnwPJJLGKAlQ5VeNDWRKCTt2vz3rJuo4+gIt75/Mkfl/gSZblZ9r/SEeeosZXneli/xNh1WVCvkRt2RnyyjtMkMqhzXh1PVOCbILqv0r7rGYm0CHIyKdhHL90cl9E1I6eEtQTCt6RXj8M0HHrHCHLVRpNM6WIbT5BCMGVnL0o5895qSRbCJz+5I8PGMhAN/Xrj4BgIdlKqlHtBHqTJwmK169toZ2IWxNzrAbIG7zh85Q/LG2A4yBcaBel52zdunokB0lv3A7kXnTI7M6ZnfZ7nwuj5lkGhqSpW+w5CI/FmRlplBEbnZy1ZxS3DL8rf1YWhO5XivWZBSRh1gFsjjyj3qRG1cm/6ors7WsEif6WRxns1MKDZa6KrbfMQ/swIb+2nb0tqxHeii6FcgVeAjE/Xwac1owx04dJKG8R5YQgHNnEfHf0qb8WOnU0eQSjazq+IK7cSuCqYzPEUB/x+QgGZqM3dBoYvNvZVOHDkbgdilWdagqO5bkybXfLpyMPuGq8mvAAEZGbR6RwXGlW9ErOWTfnjfx6dXFJqBj0OBSGFz4lWQasNOmVJeN4SFWSLfOGB/7ehV5YuoNNROHZEG9ElVuMnqbDMMuDleOt/cN/gsWxGw128mwU8/HxkOKqdTZnI7dHka67WCTf/FmBrxpNCaKJ1GxBTCSS7MNfhNj8S4Gtotg6Z3AM9cAeVROnppUMaiV5jjudLnNqoVrKO1/FijLlAc74kxydxKX1RQuMqHR63eecYr5o6MJ+B78VsLlCrpelWh6GOrCOBIoQmIcdpJL1pwE2zzZqBkecGTdK8KMOB6r1eNRURyrz6M899TZaoS/vNOxHf+5gORU+OyYIcIW6diP25GHF6u8TNjuL/GJzCnLLXd01KrsjRa51v4+O/VIAWXESJxfxWjv628J+cWUQpoD+Yytzs3jSMRJ23/XT+vUdtUMLDQq1vnIoeg/GjWh88MT6k9dRqDaQ+vodilFgvjuNw5pJpId9mfwyYeLCGb3BmHXdfQfhfPRQaupe/f8TG4Bk3eDKlYBaEK3kZYNN2Sdxz47m/vYBxvIOKtnqplB1pebzuXmAr/MuzQCknKe653dzaWQQ7MUhWYWvzIZwLe1v0rXxImLaz+AkAu+sYikhouNF3EW6w4crZ6MuUiDbIAx8XhAfegcvW6x9BPb3/sCxGWu9YyatqExB+TSm69qIkI9IwhjrcnzME+jWBx4mNQm5WwLzUjSyY4FZ0aMF5YFlXUD4hL4XfOeYv5rDe2s2D/Cn+28fZ9UCnOQvXFMnQqfc0G+ZqOWWD9l/liqUPaNQzZjxCHpUAD8Rcc90MniQ02ugHWsUupFUvhC9usY7zNPt5F2jO7qgzhafsQSd50jgLrC6Qx6bpHbXR3WNAu1BzGmwbz+ebGmwTjdy006Y6zipP7n/OJlvSmbq+SY+nefAVKK6EBMPbce5n3IdRI8+vbxCpN53rw3TvgNds1SuMiuLGxt89L71mxPDeanGhyHvOjmO56tnVpoHalQnL6TqNuqKsHjHCIKB4pCgj4WyYPvRvYvqi5EMr7lN3MotPR/KH7JUD1lZbU0QzfbrEBJnuQiVAyAC9vwXWp2TRU1/0aapyAH2cbglEHVAdl+1rb1u147uV0td1eNoQZsqHrIMIYVPXtLk2TIU3cJE08PjoYNDpfF/IcJnYQHl6nsplczX3Rgah4NbJJHl//5scUufqsSd//kbIS406ZWoMP//+jhGUswX/5nVNz/jAj9KmXPtAmMiK+khhbn1w/mELzZMT/WxcW//y/jsHaOM/61oAW/CjYhJtY622/TtMYuP7bilBvbiT3vB9n8IcFPnwM78H0KfhYDRdY5PhWJ4jWRQzB+HT5NVZV56LG82hcQms+jOTT/c9Y9sx5rPi1/wB7f/+c5UfUCKk3iwwCuywUc2MGnAwsXf1E5hoI55x1Q/Qby+sWH8NRjavZ8VaDsdi1NUVhH86BJHX1yaFt1w1OYeL5LVmdN+5Q+KuTvXEPDzUCg6xp0HhsUhTWSe7MZMM/6rsTUb0/nbUE3YQlGGt48kT1/6cnf6yHnvHtQx9EosOXN077yyEq/jE3YTiG/5SEJmXFeocJJ1EAd6vKeK6VEdJLOZ1km/EwOnZWCQpzCLKPHxrfh4yJhGq//2dos2E/3+MOcdW5EsgIdmTQUQetzRy5fQHhDBl37XbWzsqO/cASEDjyst1/8NEROqVAxWnddQV+umJ8IrKVgKvGaTc0GsQ4s8h0Osql5QKwlddPDjJhKInyWqYUKmmlIts+FIcXZ6yM6cljbsjUG2ksSOkuIw4sYHffRNgBOLApvD6XrR6Rt0rV2Uf8IpnIUVnb9Twt91QjAaD/dStSWDxg7aYY+VXIgnuowYdOkjywa2hlgrnI6PjaU3e3UjQ5Yk5mdIJGyHnv3/P+1EkMav1yFyF+FeJE/RXnWBw+Nh0aOo6TGlKX7d+dkP9+brvr79SdtXJtcD/aXBGiMNfG6/NQniQHYQlK78FEHDqOh+bDI0o+2Ub0h53EL/vlzjrBczVEZz2bOtvIL+DIzDkk9nCWt7tlqsq3l9JMtJk3r5HG2iJ9b/X11TG6wwMAjHLQ2oasaMEsydh88QPvI+hmqIHhvalpKoKOueJR0eZ9J8G2alNOIOy98jwvbc87Ewk9d+5G/tUijTmlbjFlDKXV05HalKxaRTrucc73On7yzAPS6f2v4ogiaWyWeV73dv/MsQT5HjRrsYV9dLAcI3T+zC2qEVINyNpEhoKV+xVSuWtT4AhBfpnZ7unIM+HX3msI0HiI+P+z2PFgkjGi5PqEbG/wNIWeRUjPtDEgbbubN+I4JaDLrW9borRBDob7ZFx+JdKeFVUKVeWqb/c88Ol7DhM0suLtuEd8tkDSMTD3DFx8UphPINHMHi51hAPttXL4Ektt/lKEUG/R4qZKohHjVpAcPIMiHyWr6xR8/EWnNJvBFET76yCdk5er7ADB/1bgoImhpSiZ/omZjPKPCEeZsOwvPmXL+1vlJNeGO3TzySmGA1X6e58gLrazDM71jywM1XL8zKHN6G3kB31Y8vLtP982N975SZXk2JwDvmv7AY/aDsFFk1v+nE7/hbvuOWhBH4kuemeYozPk2K22Vx/YGiDTLU7YilpOt29u3RZMBh4UJjlTP5ItxTzWv6ebL9b+GSU1Vsm2S8LMfVfJczaBSqE8J1A4YUjpsALL7++bwCPXFhaufdpDFtBlHb9makeYbqdg9ltvK/HwF/rNE6KrtWUkEcxmTB7Iyu5TiVaIgW/YxzQhpArliIMkOoK5L7ShVtF+DYqV01mk7fwop04hQRwg4KFmr5z9nYf05VVqkSe7gfnx5bxxlQ0qEV0jiwzf064qG11iEqjHcUgDWWsDs/LEGlzX31T5KVL+7D4EoKim7HBagiqRo5JI3WfDBgpKIruWz9j/J6Hp5Q/EJbMWB8NeSMuFarNw3AEYPBJtYQO/4oD/ZgPTSQ06di0EeumX5EbrdThO+fvYEVSxLtZ3AJkee0Xn0sDwNtiiZhJjJRDuG1YRKB1vOulfd9JjHeyu+UHTmrtra/pm+8Rixh4WKiLaLOCxIbZNoWRZSyyUGLPjAaAo+SQBpfO2uruWrzFxLlpvrXJNMCWtlJDKGAnlWK5xpU2tcxXbeD+sbdfwYXt/qTwDk6UqXR/aUt099DhSNl4Nk8mXwpw+b0nvjKOG6Mg1PRXjrMUMANvNgEArv8nMJs3vj1aHi8MHz/UfJWWzkcrSpZTNBhduXlGR7i+ip/THDp5R9KRNcDKECgtwgXg4EFN5HHfikP/XvsoCkHTg+NbsD8Gl6eknk4Arwn/BWGJ0hgW0/gUKrzuGZhub7igRP3abetpIm+24xEOlWl3YKpm2qTBFvX8ddDRvm1LcwnCJuEfZx12qPY9TrntMIQsv316zvpyWnyStX8VU4j6tQk+CWlLBUCJR6MdH9Cp7g2qdn2WM9qFbREmejH09dlWEPm8hPF0L7RxwRRdiCs0DP8ewk6ApoELkKU9hckSdbnXm8UHJmaNXjxv/q0fTTpu8rnl9lN0vQCpDRbCtcz12rGRFEA7Cfg7FhZn5QFkNmv1ZURKEsiZce1nS9K7HrwpC7yJV4Xt3eAVbLJfoXHrtwG60Z8gwaSnmxoL3s2ZlRqggZN/MHo1oUS4L+GwObFI596Ld4Mvi8l+cQmF1gJpkpnDio7TuO35npaMHiWzFqPSX3qNgkIPGuX0qGYnPIVsM901Yu8oZnOZOY1TbtIdFUNKNq2dP8SJ4F/VCEzIjF0/Rh+7UrZj80tC6rognVH3mqa8eCs/lcQU1Pjj98kBmAKDbZUTwosv02UunRR3n0X6c+f73mtwB7/WbQ16gO431EtwZbNG1SM4TZPBnsQSESlsfG2JLQXx5xWf4bmQ/xcVCPISAX5897JxHKLD/Xkgu57+ABR2+MMtEbX64+MNlBHpKC7sjlWVEShf5qA+dGc59LFVlZrX/Enq9z/v+wnZ1HErmxmjJjxOA+hAjVUWgtq6ygAi/8ewJDjUMFw3zhQFtbyTLDPFd21Ji5S5QPZo9nMSxdg1+DGFSN0wlWt7XeYPbHqLfliV0J1kOhQNp0VbUPy0MS2Ms66OxtSWvaULaWHnfAA+sieVVgtjDwN3nKonWapkSKRN8BKKJQpCfqo8RQI5udhfu5s5+7vwsppmAJDgz2GNA7d43VdbV2l/SrvEu4RYslmNJmfSOVbssxAhSYy6WxpIQdDB0FVBpZ6IM8yr81QN+XLZ3n/wed/R+s6LslkxKbzzst/GkRbe6rFmtvJCwr1T44ETM+IMgOnjUO0eG6a1n2w7lwM1oFBvzMUWRkNFOvKcx3oSb5XdenZ5dXsute6nkRypBiSdAtA2fxAd8UdLOZW/MB7fZoEuFheQXijdaF8kuaRZoSeWdKOkKsGYEGaXfaDKTu0WMTcLniQs7KRCz9iK3SP+Y2xIjkfVGqFLSQ6vh+A1u6FdfwXsv1VPMfi2cxmdM+/xTgMXEyo2ZGcQ2YmPsghnYdv2+z48JpGZA4tUK1p1q2VdVxyfypXEXcrxKKtmt8UdW7sHWmKMqDuBBM3J/JUQx8eUYN4pJ5oRqvdiPHU1o/WPjiKvnlCqOdyxlxF54L9PrtLD1NejZ9aZDivVr6ZfMFK1/psVygoPIAnphcJWWb9+5IKMKmgRQULsTPZi6Bw4wP32zVEoKcHpP73CkFAqS98nSaGoWDjDJiaACJn4p5o1jq9R4Q4VcibhXF//LHP0bdf63kRVZdRbbhGe7sDQcyWS5tpkfeYHnff25WK+4FpzLlAcbaKmHdIBqOw3fImx1uqQIADH0TyHzFlqTG6nMoY81svP0T6BIyELMS8tMe+E1p6TFP6sVpZa6VNaTumufD5aj9goRa9SAmdJT4HhI2r0egj8UrgFb8L59wGLnYlzkLAiUd3m/WWIIEU61kPoEjd3gIVy/fiBcgqQqHnoXpL0SqLGdGGgn7DQeVMSYWHfjno1FngIKP9cjYaTlcRP6bZunjHP13/lbVm4awti894pTf/ZNNqr4OR+tDVie/m+rC8QpVnRbsCMPukOH87B2jM4AG6pHuXl1x9SiKdhYJVOhfo/+SCaGjUW2CoogL1FFhFGN9o+acoVLl0SXs/3vrSccmZeAF3NewFuOg/P12QYKQF+SH+KYcNnsAhIAELPBUgre/KRUJEA+KPD0MHRjv+3J/j2Z23MuJmkfy7leWcMsti8wXLSHgXFJTaksx1Woi6oljwxFVIJG12SBSZLNJDbXMYPekmiXT4FclKI35BFgqnYpKfcsr+f8HUXQoHJ9UYZ4J5YMiHHyAxg6eidhodgqJ2Htf/xYEx+G0zXchuzlt8hcAl+AT8NCQ4orFc4DerabF1enA7NTLnvtZh3FUwqIOvY7Q4DYmoDHwXTSw5UNNh6r7j0B/ezMYJMDcw4+6gCTZX4YQ+7Xs8de72vsR3cmfpxIX64/6KR1p3VX4F6vfHEzxzarh8aDH4G1DFoBBM6npXFpK+Rh+WrcFclAeAxi0PoaR9CpOxxGLSdvxKVSw8oOOanG/soKImRopN38AdcUhhM2GT/PgQeSQrG12njuJJD5Z7vWfAZmFybYLdSA91kB4aoBhoj1Z//KNIVVujqaLLRwCkbyn4vh0739C9V9iSjybeOIeSOvNs7LW1a7EUtNoKAnOGML4U8KBXpfrw73WjAszJG4Qscq+Xr3kZWR4Omm0xT6qE9y6FNSpstV4onMZSqCEJ+3VX9qjvdx5QVrM0WXxmPZxejdfnihcFAjzv5PjlTl6ickDbHe6+Lch52pjOPqk+m3RZ+bh2JSMGtFBuODbMchrpRVlt16NTQ05Ps0IDtWlUmWfP2vX8M4YDynIuOZ4Ck91+591B98Gw9fw+yQogTR8CSg0zaJu+rlBo/mr3A+1NziF+kdubz+whc857AZt6DwIBIF5+5yiaaf3ByQp1Fm3sOkZDAzwsYSQTM/Kv6idkugF63FDobDdUY3huruU+sCaBuRR+HmOowvmZoBjZHNh77SXFtmY/oOUE7ifN7nBHAo83S/xvcS6H4Ci2u/9Id62Wv6Ui+zMNLAzhfkTkVcW2BwrnYvpur0ZDlzs+ZLsmGTWvd1892t78gx1YjEJusGcxphjLkV0UfAKlekfSBVWHE2ahk4AbbRmHyL7GYdtKfdlINwrcdJuf3Cee1nfUojDQn/YmItESOFhtLzrkEv4k2XpMU9oaJQ3VUC+1INh6BE68pkHameGJm4Gvdb24Q0fXWxd9Tp3A9mzFSe4qXDGGDIV4AAGV1jIDfveknH1TwWpUT6HiQxKP3AAHJNkJeRlj/mXBmS4S1j8FK6YmpK7jyyAiRbsMCCLoJcx01fvgpMvKQRxu9IOwymconQjD56g7ksOrcOeoTbius4JnGesAS1DtgdaophYsw1wGIsMS3P7K6doE3K5czznqPQLSRRF/Ylzb5NtSKsL33SgskFNCF4khn5LWaDxI23ZRi2hzqN8uW8UzZEBYy68+VtGLSymQrXGUlr2nO2BbBIT5Vh1RmGAyDXaW0FPrpx3wv2UYdFk9tSl+906bMxCuXQaKDQP/U19UEcVGK4gmksL8lAorxQSAOwpeYX9xrZsh6yoGaL/X5O3tgQC8OM+/GvxnW9XvAtu/JxAigydfSmZfqZfg1XOcHNOpLlN8j64OZ36l5qawDBJ62YaTvxeNmm5gowCdBosgcpHOgNgwA+sknN8XmsR2IYChcafl9bGNMZ/nB5guWuvEziv6QI2bP2DtyKWG/qUjZMaxy+wASkkVGtuwGtywkTYG6MYrZBo18vYcww48G/+f+eITA/qMwbLlJC0S3+/ai2pPvkOhRRVmGTuSupaxhIk0xoXLtixCxSAn4Z3OnUS3wBqVscLI4P3GP7i/6gxYsswsVmkvDXFLhO/OKcur8flegCSKiqmVpIRvCzgbjEA0mXPn+RExXY/2OE1f/BYuWpRQY8gCDpMOYBx9Gn4tL3hihSIR1ixh2PIIT7cr2gUJbfs76EKYG52Jk0UZF/PQkBxGuFCEWXnG6ue/hTIqjTRq1sotVrKrwIGHDrITyuanUzbIYdgdEeV88K1VD82TYB2B61Ft+tB1KqHPmT9+hWoaV+iF3SuvtJqvnoLaA8wxrD56AUMULEgzO9SvBcBAfqz/dzMYzwMt/YLszDbmGe1bcHHfFMcvGql9bf/tp+Hrj4q18aNnftGjmXTfws39emn7/5IBxog9MrmftAA5Oq4awenm8HimWO72dwVlHcHmutVMdrMHw+p2vzpzT+B0iIZ+IEpplwWhClcXlxhxAsF3CHRnnaUEqq3ByQ+cqhe5SvR4SFxh/LZoQwtj8QZQGT1BzY2EMpYnUcZWQEPlwFZw+7UryK9qV8KgruYsvyMoK16KI2sN4SOblrVwhyiL8+IBZ8cpUhsJQSU7TFHAi+L2F0sn0y+FtDODlnuif2Mba8QddPZYYxjTsIgkMe3M6+7kXxUfZvbCUlyq71J1eNczGk6Vqw6rSx2K3vM+DjLxDRGzWepTO2qTT/W8S7u0QXcyFUahcB4vq8xCYTpy8iswtnyz7Kx6lgTEQJ9RqkgEIN6DOUqB0uRdeYuDa7AP7Zy9z+ZlTsmVR5vtV71m3dmdtNeWghbr5PnPJtjXAzcvZjxyV96VEx/B1TA0IEQSI50ywGuIbmAYdQg/l/rxhQLX+6uOLyFsaUt6mtjpAJkLfehnB6MlOHnNOrWLvCBqVBS07jcM+4RzLEed3f3/0Xwp92U+nataNHyEgnnuYR6PXEjRLETz0xrt3UglfK7Bn4aNlXG7cZco4lMziLv5+Mh2JCww3mz69Z9ZMRR/xv5EKJ38IFxKd9dw5CgPIXja/gzAshMbF14/qBIgNkdUQeP8YE7SrICGtiTnAKTyA9cXa3OauDHxZOdTP7yuYBzD1UcHstIO16FxF1bRUAlSkszI83YufTchU8OPnnozDl9bS0y6CnnjGwgj9M61cXcZsljjhLeT/Vq+30ScN2PcT/dOoxUDqDS38+OpCCzLDdnwHQc3ECQVIkaxmdPaZTSdfp2jjGzSdNLM5yPQsgJDl+ZnhclDQi8ltUnkqWJ323IvTZPN8rn0+EshL1cx9PiaLTzUsryn9Zp2Nt/detUAh4N/2I3dlMQqjHFxSihv0uykzflq5clMy2ZBaxoEb0/QMp03IQQus3vnZd/NOmSsmgqXqKFP3ozyDgY7RQS+npabe/hNG+5sa5FtvL8v0uYuag2NewYkcol3TOTadpuncCnDgOGpmLnTQ1PEPUN2cNsrW8LYfIv+hzfb7vod+ipXHzmbgj5Fzc6RcT/5PD7VQ8nTJBNj1urkVUx9uJvTWmqY08OC80rGDLaWXv243VB16gjt4Xtwp5H2UDR0LiKW24Ed/sOO8jl1yEU/XAb3h7ScKnCFy/V3sICrkY1D0K9fSokHIL0s5/7DLShLAPXRbV7fbv4qj6OwHC9d5PlEOX3LRpQ3P7hcSAKlIKPDM83ypz56U5+rJeo0cyUtC7wltL8wqEiNSgZsDWzACc7RFoZqhlD0+sihIBQlkQTXmvUyIOZhkQX2zqME5VRC7ms1sa3CY+odMn3mMBiTvCMKnnCxg5ZPLq4GUDB4jF8Br2K4x4sxfWjGXQatJ25I1JyrIv2Z4bP1jKw5C+B2/s0v4dGUOsaS6IPIQV3ETQ+F2fSl2BPBXHzyYN8VmwWIrKeMX9pyGWuAOVXwkxJsRBaBVzLhZDP8ONGncknL5DpTxHN32GgFWMwsc0GmL0oRDmRT8u2lvjAKUIi0MmXhIHSlFeh3Qh5pP6ap4YUd6b569ZIaHgya2AyD12cPxY0In/PBjzDctTaKJCU+xc6m9RkNLDEE8guvxtJP8sl8N9bLqw0F/qejaBlcHYqw31zYpsutQp07hsP1vhGdl4hJ1wA7OCsAHnKj9879uSHILEmuZ6vI1lT4tvnWCVKZhhYrWHW9oPKPKpbOC6FTjf/OtUvwmiXr2ykvyLzHGQeyS7BenZpL3N/CaF5T7Gkml7JXN5cj0PKaDpZVImD61FuMgFHPqSHvt4Ej4KBdAfdcoO3AjQPLwwtKsgGM+ty4lNZMBEItJSRLunG5ckrM/BeoXWoPZVvEoIzLgFQYPupMwZCXis4W2SCJ2zsefZqCj+aTfSq1FYdUj2UeJALvVTf7vuuikOE1Hit3UIAGUi/sqgMum9vw218y1FlY/9XnOji9nqhGAcMYICc7BiqLZj5N+cKEuSAuiyWbMg81ZD1lHovy/we2eaCcCv4MzEW3O0mVA/t2xdA0cxTVbXmFhn+tARDpvDz5ftLr15OAAmvo2QiAky+feVO4bGibv2nlBmBzqx0lEDfEm4UnEs11pbnwZlJ/0Y73/wBPYfTNZiJKR73TzdCW1BffiJq9bLjQmaKnU0+gN8sfe25IKSUCooQwxePDrFn3a/zUgWxvPoTYVXfobY/GV2qqTkeVDV9D8657fhY0/wiaJ5NfLxhXbE/naxs34N0hd6vxNfdm1TCnozm/NKSCThchoYgMF7Z2tzXFovRfsNVkf86JjrM60r7UIuV3bsmfrMOqzjXjN6HPBG25zCJ3QLueySbj9oFvX/HxWBqh31PBPxduCVAxMqC9HK+YL3oBZqBruoh6LKvdMqoz0PYXUBrwbiioyE8Tj5ImjJmiOOWLbAZvIZ/l9rIPljx3T5glJ2ewlfuIT5GlodQsAf/IEtmYkML5SRQGxxwW+rlZkD8belJNu09Itwx9xDULTnemVDeojdbgcd2gKGM9aO00Jivtbs7ZyOSE8IPh98GfvatD8Ud5uHcZfAfMiPSlIxd4UqeSDzuNfbKDuFepkyC/s3j9fawmhY1b9NqDi0ZS5eP35l7rL2eK5QlWLlyCmxx8AFaFiTuD2pMUxZV5mBSJuJduOaq2ZrWpu28DE8jl/hisBz7bGWH6qLF0ayWNq1Sejtcs8KQrQqJk5P9QHDYHOIolgNsMDmEaWcTelghbfFCDqWrq6YLwDWy+m68ec5nShgq2fduUBpQUuKKKgnttaUX9PRfMmxqJyU7e0RLr1bev+ge1KK0bZyhHKKDE8gQX9Vf7rNHWOxBtZcxwwGusyMpH77qWZxXsQmbgIGhtiO+gSSRCyu/ek+OFsz1HMiQH0IHV7PjJi3dszYfFp8ue9h4+AfKte4MTiehPvxNcm/T1t9vsFZx8rHN5ie77r2jzZOq/Em4Q+H9sNcZakf9HnzCc1fJixppxP8FQABmVnqa6GbJhwaka7WH7Wdoz1WxOjSNV8N9sgW5S3Ppgkut+TTCkjA+AodUOk1KIR+8G8S3WrSZG4nyqfJ6FEjXl6a/LEoRMHZUqfPRWvwqrtXYy9IUsmUGzkqi76ib4NANCe5DnyOxnFRZ9d8FdBVBjra3iNuZhJuWW5Omi/hBigqDsg0mu2AhfJDXdwyMIJ33HHHPfS2JtjegRejX11m41TbNL+Qp7mR0g9CPKTj9PIjuSycGN/YPozXI4zarXuAeLv5CHKtKcJKRbd6R2oLNiEt0T8+QIVJH7zt9ncKMgd49vV2P1AyScZ9Qzbu3m3LBnuu6dw7aE0b6r4kzVkI/GUS88mA53L/rLtntkFlZXGtIoqNP2mD3eVv08AVVPT3wJn81zpbJV9SuqZ6Pd1ge0Zz2RFHeCdV5CLPftH9V5o9+VzFu4R0QeumqDwUhXn3IyYotdJnxr1l3BqWnQVAeDBEOtPyJQx1q5+mODiClXtYeBLTWtsJ42AMBcf/IFIhpfhYO08hsg0Ik+DpQFNOKReK3o3cudkxWX0soPtI5eSFOA6yNylS+IQjrQtYQ/5s4UcixJfokumBUjpH9ofSjUTwPCapGFndfqqG5IHeMMvfg+88SXm7bNyjk6pGKzL+WxDAdqKtQ72WWVbOk3I+ueGuammmB2pvFZvqIcU/lvW3n9+r2lycnQLE4OX9R1jIgW4cDjJ3v8dAa66mVcfC7ptCr5io6mCaA9qI9T9FFWqo1ZAaMxgxAu8aXqmaOYryMND2sTUfoHvxcYK7hEiJhCLYFDx3PBhE97c2a0ub1/ePJcyJOqr7UaTAPTJ+xvZtjb/40sloY1ltRnTkWILmIP2b7S3AdXCR+YiArMUHwdncpjpyDGfzqGOUoAuaamWzAMacQtb34/M32FEgR5lUEf8fRzFrZUhzQj0fR7/6gdzdnVVvcSneLmtqJ930VCCDORY8CVdQWdo/S3PNkX3pQsPVKWIYGAMrFZoq8bQ/OJBDSXP7KSBdL3QN0Zqd393p6VFc7DnlnFiN00SY5Nux7yadeIM0Upl2rVsu8/VAI
2");const t=()=>lC(e),n=()=>new Set(t()),r=(e,t)=>t.forEach((t=>e.add(t)));UC=new Map(uC(e)),zC=n(),WC=t(),HC=new Set(t().map((e=>WC[e]))),WC=new Set(WC),VC=n(),GC=n();let i=cC(e),a=e();const o=()=>{let e=new Set;return t().forEach((t=>r(e,i[t]))),r(e,t()),e};YC=dC((t=>{let n=dC(e).map((e=>e+96));if(n.length){let r=t>=a;return n[0]-=32,n=yC(n),r&&(n=`Restricted[${n}]`),{N:n,P:o(),Q:o(),M:!e(),R:r}}})),qC=n(),XC=new Map;let s=t().concat(BC(qC)).sort(((e,t)=>e-t));s.forEach(((t,n)=>{let r=e(),i=s[n]=r?s[n-r]:{V:[],M:new Map};i.V.push(t),qC.has(t)||XC.set(t,i)}));for(let{V:u,M:d}of new Set(XC.values())){let e=[];for(let n of u){let t=YC.filter((e=>FC(e,n))),i=e.find((e=>{let{G:n}=e;return t.some((e=>n.has(e)))}));i||(i={G:new Set,V:[]},e.push(i)),i.V.push(n),r(i.G,t)}let t=e.flatMap((e=>BC(e.G)));for(let{G:n,V:r}of e){let e=new Set(t.filter((e=>!n.has(e))));for(let t of r)d.set(t,e)}}$C=new Set;let l=new Set;const c=e=>$C.has(e)?l.add(e):$C.add(e);for(let u of YC){for(let e of u.P)c(e);for(let e of u.Q)c(e)}for(let u of $C)XC.has(u)||l.has(u)||XC.set(u,1);r($C,MC($C)),KC=function(e){let t=[],n=lC(e);return function e(n,r,i){let{S:a,B:o}=n;if(!(4&a&&i===r[r.length-1])){2&a&&(i=r[r.length-1]),1&a&&t.push(r);for(let t of o)for(let n of t.Q)e(t,[...r,n],i)}}(function t(r){let i=e(),a=dC((()=>{let r=lC(e).map((e=>n[e]));if(r.length)return t(r)}));return{S:i,B:a,Q:r}}([]),[]),t}(e).map((e=>DC.from(e))).sort(bC),QC=new Map;for(let u of KC){let e=[QC];for(let t of u){let n=e.map((e=>{let n=e.get(t);return n||(n=new Map,e.set(t,n)),n}));65039===t?e.push(...n):e=n}for(let t of e)t.V=u}}function ZC(e){return(nO(e)?"":`${eO(tO([e]))} `)+gC(e)}function eO(e){return`"${e}"\u200e`}function tO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gC,r=[];var i,a;i=e[0],JC(),(a?HC.has(i):WC.has(i))&&r.push("\u25cc"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let o=0,s=e.length;for(let l=0;l<s;l++){let t=e[l];nO(t)&&(r.push(yC(e.slice(o,l))),r.push(n(t)),o=l+1)}return r.push(yC(e.slice(o,s))),r.join("")}function nO(e){return JC(),VC.has(e)}function rO(e,t,n){if(!e)return[];JC();let r=0;return e.split(LC).map((e=>{let i=mC(e),a={input:i,offset:r};r+=i.length+1;try{let e,r=a.tokens=lO(i,t,n),o=r.length;if(!o)throw new Error("empty label");let s=a.output=r.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error("underscore allowed only at start")}(s),!(a.emoji=o>1||r[0].is_emoji)&&s.every((e=>e<128)))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw new Error(`invalid label extension: "${yC(e.slice(0,4))}"`)}(s),e="ASCII";else{let t=r.flatMap((e=>e.is_emoji?[]:e));if(t.length){if(WC.has(s[0]))throw sO("leading combining mark");for(let e=1;e<o;e++){let t=r[e];
2if(!t.is_emoji&&WC.has(t[0]))throw sO(`emoji + combining mark: "${yC(r[e-1])} + ${tO([t[0]])}"`)}!function(e){let t=e[0],n=iC.get(t);if(n)throw sO(`leading ${n}`);let r=e.length,i=-1;for(let a=1;a<r;a++){t=e[a];let r=iC.get(t);if(r){if(i==a)throw sO(`${n} + ${r}`);i=a+1,n=r}}if(i==r)throw sO(`trailing ${n}`)}(s);let n=BC(new Set(t)),[i]=function(e){let t=YC;for(let n of e){let e=t.filter((e=>FC(e,n)));if(!e.length)throw YC.some((e=>FC(e,n)))?oO(t[0],n):aO(n);if(t=e,1==e.length)break}return t}(n);!function(e,t){for(let n of t)if(!FC(e,n))throw oO(e,n);if(e.M){let e=MC(t);for(let t=1,n=e.length;t<n;t++)if(HC.has(e[t])){let r=t+1;for(let i;r<n&&HC.has(i=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==i)throw new Error(`duplicate non-spacing marks: ${ZC(i)}`);if(r-t>4)throw new Error(`excessive non-spacing marks: ${eO(tO(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}}(i,t),function(e,t){let n,r=[];for(let i of t){let e=XC.get(i);if(1===e)return;if(e){let t=e.M.get(i);if(n=n?n.filter((e=>t.has(e))):BC(t),!n.length)return}else r.push(i)}if(n)for(let i of n)if(r.every((e=>FC(i,e))))throw new Error(`whole-script confusable: ${e.N}/${i.N}`)}(i,n),e=i.N}else e="Emoji"}a.type=e}catch(o){a.error=o}return a}))}function iO(e){return e.map((t=>{let{input:n,error:r,output:i}=t;if(r){let t=r.message;throw new Error(1==e.length?t:`Invalid label ${eO(tO(n,63))}: ${t}`)}return yC(i)})).join(LC)}function aO(e){return new Error(`disallowed character: ${ZC(e)}`)}function oO(e,t){let n=ZC(t),r=YC.find((e=>e.P.has(t)));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function sO(e){return new Error(`illegal placement: ${e}`)}function lO(e,t,n){let r=[],i=[];for(e=e.slice().reverse();e.length;){let a=uO(e);if(a)i.length&&(r.push(t(i)),i=[]),r.push(n(a));else{let t=e.pop();if($C.has(t))i.push(t);else{let e=UC.get(t);if(e)i.push(...e);else if(!zC.has(t))throw aO(t)}}}return i.length&&r.push(t(i)),r}function cO(e){return e.filter((e=>65039!=e))}function uO(e,t){let n,r=QC,i=e.length;for(;i&&(r=r.get(e[--i]),r);){let{V:a}=r;a&&(n=a,t&&t.push(...e.slice(i).reverse()),e.length=i)}return n}const dO=new Uint8Array(32);function hO(e){return mt(0!==e.length,"invalid ENS name; empty component","comp",e),e}function fO(e){const t=av(pO(e)),n=[];if(0===e.length)return n;let r=0;for(let i=0;i<t.length;i++){46===t[i]&&(n.push(hO(t.slice(r,i))),r=i+1)}return mt(r<t.length,"invalid ENS name; empty component","name",e),n.push(hO(t.slice(r))),n}function pO(e){try{if(0===e.length)throw new Error("empty label");return function(e){return iO(rO(e,jC,cO))}(e)}catch(t){mt(!1,`invalid ENS name (${t.message})`,"name",e)}}function gO(e){try{return 0!==fO(e).length}catch(t){}return!1}function mO(e){mt("string"===typeof e,"invalid ENS name; not a string","name",e),mt(e.length,"invalid ENS name (empty label)","name",e);let t=dO;const n=fO(e);for(;n.length;)t=tv(Lt([t,tv(n.pop())]));return jt(t)}function yO(e,t){const n=null!=t?t:63;return mt(n<=255,"DNS encoded label cannot exceed 255","length",n),jt(Lt(fO(e).map((t=>{mt(t.length<=n,`label ${JSON.stringify(e)} exceeds ${n} bytes`,"name",e);const r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r}))))+"00"}dO.fill(0);const bO="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";BigInt(0);const vO=BigInt(58);var xO;const wO=BigInt(60);function kO(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):mt(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class AO{constructor(e){St(this,"name",void 0),ut(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}const EO=new RegExp("^(ipfs)://(.*)$","i"),SO=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),EO,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function PO(e){return e===wO||e>=2147483648&&e<=4294967295}var CO=new WeakMap,OO=new WeakMap,TO=new WeakSet;class NO{constructor(e,t,n,r){wt(this,TO),St(this,"provider",void 0),St(this,"address",void 0),St(this,"name",void 0),kt(this,CO,void 0),kt(this,OO,void 0),ut(this,{provider:e,address:t,name:n}),Ot(CO,this,null!=r?Promise.resolve(r):null),Ot(OO,this,new Ak(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)","function name(bytes32) view returns (string)"],e))}async supportsWildcard(){return null==Ct(CO,this)&&Ot(CO,this,(async()=>{try{return await Ct(OO,this).supportsInterface("0x9061b923")}catch(e){if(ht(e,"CALL_EXCEPTION"))return!1;throw Ot(CO,this,null),e}})()),await Ct(CO,this)}async getAddress(e){const t=null==e?wO:qt(e);if(t===wO)try{const e=await Pt(TO,this,_O).call(this,"addr(bytes32)");return null==e||e===dE?null:e}catch(i){if(ht(i,"CALL_EXCEPTION"))return null;throw i}if(PO(t)){const e=await Pt(TO,this,_O).call(this,"addr(bytes32,uint)",[t]);return It(e,20)?zv(e):null}if(t>=0&&t<2147483648){let e=t+BigInt(2147483648);const n=await Pt(TO,this,_O).call(this,"addr(bytes32,uint)",[e]);if(It(n,20))return zv(n)}let n=null;for(const a of this.provider.plugins)if(a instanceof AO&&t<=2147483648&&a.supportsCoinType(Number(t))){n=a;break}if(null==n)return null;const r=await Pt(TO,this,_O).call(this,"addr(bytes32,uint)",[t]);if(null==r||"0x"===r)return null;if(t<2147483648){const e=await n.decodeAddress(Number(t),r);if(null!=e)return e}gt(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:r}})}async getText(e){const t=await Pt(TO,this,_O).call(this,"text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){const e=await Pt(TO,this,_O).call(this,"contenthash(bytes32)");if(null==e||"0x"===e)return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e="e3010170"===t[1]?"ipfs":"ipns",n=parseInt(t[4],16);if(t[5].length===2*n)return`${e}://${function(e){const t=Nt(e);let n=Kt(t),r="";for(;n;)r=bO[Number(n%vO)]+r,n/=vO;for(let i=0;i<t.length&&!t[i];i++)r=bO[0]+r;return r}("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return`bzz://${n[1]}`;gt(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getName(){return await Pt(TO,this,_O).call(this,"name(bytes32)")}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(null==n)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:n});for(let r=0;r<SO.length;r++){const i=n.match(SO[r]);if(null==i)continue;const a=i[1].toLowerCase();switch(a){case"https":case"data":return e.push({type:"url",value:n}),{linkage:e,url:n};case"ipfs":{const t=kO(n);return e.push({type:"ipfs",value:n}),e.push({type:"url",value:t}),{linkage:e,url:t}}case"erc721":case"erc1155":{const r="erc721"===a?"tokenURI(uint256)":"uri(uint256)";e.push({type:a,value:n});const o=await this.getAddress();if(null==o)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const s=(i[2]||"").split("/");if(2!==s.length)return e.push({type:`!${a}caip`,value:i[2]||""}),{url:null,linkage:e};const l=s[1],c=new Ak(s[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===a){const t=await c.ownerOf(l);if(o!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===a){const t=await c.balanceOf(o,l);
2if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let u=await c[r](l);if(null==u||"0x"===u)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:u}),"erc1155"===a&&(u=u.replace("{id}",Jt(l,32).substring(2)),e.push({type:"metadata-url-expanded",value:u})),u.match(/^ipfs:/i)&&(u=kO(u)),e.push({type:"metadata-url",value:u});let d={};const h=await new Zk(u).send();h.assertOk();try{d=h.bodyJson}catch(t){try{e.push({type:"!metadata",value:h.bodyText})}catch(t){const n=h.body;return n&&e.push({type:"!metadata",value:jt(n)}),{url:null,linkage:e}}return{url:null,linkage:e}}if(!d)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(d)});let f=d.image;if("string"!==typeof f)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(f.match(/^(https:\/\/|data:)/i));else{if(null==f.match(EO))return e.push({type:"!imageUrl-ipfs",value:f}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:f}),f=kO(f)}return e.push({type:"url",value:f}),{linkage:e,url:f}}}}}catch(t){}return{linkage:e,url:null}}static async getEnsAddress(e){const t=await e.getNetwork(),n=t.getPlugin("org.ethers.plugins.network.Ens");return gt(n,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),n.address}static async getUniversalResolverAddress(e){const t=(await e.getNetwork()).getPlugin("org.ethers.plugins.network.Ens");return t&&t.universalResolver?t.universalResolver:null}static async lookupAddress(e,t,n){const r=null==n?wO:qt(n);PO(r)&&(t=zv(t));const i=await RO(e);if(i)try{const e=(await i.reverse(t,r,{enableCcipRead:!0})).primary;return gO(e)?e:null}catch(a){if(ht(a,"CALL_EXCEPTION")&&"ResolverNotFound(bytes)"===a.reason)return null;throw a}gt(r===wO,"lookupAddress coinType requires ENS Universal Resolver","UNSUPPORTED_OPERATION",{operation:"lookupAddress"});try{const n=await NO.fromName(e,`${t.toLowerCase().substring(2)}.addr.reverse`);if(!n)return null;const r=await n.getName();if(null==r||!gO(r))return null;return await e.resolveName(r)!==t?null:r}catch(o){if(ht(o,"BAD_DATA")&&"0x"===o.value)return null;if(ht(o,"CALL_EXCEPTION"))return null;throw o}}static async fromName(e,t){const n=await RO(e);if(n){let r;try{r=yO(pO(t),255)}catch(i){return null}const a=await n.requireResolver(r);return new NO(e,a.resolver,t,a.extended)}let r=t;for(;;){if(""===r||"."===r)return null;if("eth"!==t&&"eth"===r)return null;const n=await IO.call(NO,e,r);if(null!=n){const i=new NO(e,n,t);return r===t||await i.supportsWildcard()?i:null}r=r.split(".").slice(1).join(".")}}}async function _O(e,t){t=(t||[]).slice();const n=Ct(OO,this).interface;t.unshift(mO(this.name));let r=null;await this.supportsWildcard()&&(r=n.getFunction(e),gt(r,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[yO(this.name,255),n.encodeFunctionData(r,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{const i=await Ct(OO,this)[e](...t);return r?n.decodeFunctionResult(r,i)[0]:i}catch(i){if(!ht(i,"CALL_EXCEPTION"))throw i}return null}async function IO(e,t){const n=await xO.getEnsAddress(e);try{const r=new Ak(n,["function resolver(bytes32) view returns (address)"],e),i=await r.resolver(mO(t),{enableCcipRead:!0});return i===dE?null:i}catch(r){throw r}return null}async function RO(e){const t=await NO.getUniversalResolverAddress(e);return t?new Ak(t,["function requireResolver(bytes) view returns ((bytes name, uint256 offset, bytes32 node, address resolver, bool extended))","function findResolver(bytes) view returns (address resolver, bytes32 node, uint offset)","function resolve(bytes name, bytes data) view returns (bytes result, address resolver)","function reverse(bytes name, uint coinType) view returns (string primary, address resolver, address reverseResolver)","error ResolverNotFound(bytes name)","error ResolverNotContract(bytes name, address resolver)","error ReverseAddressMismatch(string primary, bytes primaryAddress)","error HttpError(uint16 statusCode, string statusMessage)"],e):null}xO=NO;const MO=BigInt(0);function jO(e,t){return function(n){return null==n?t:e(n)}}function LO(e,t){return n=>{if(t&&null==n)return null;if(!Array.isArray(n))throw new Error("not an array");return n.map((t=>e(t)))}}function BO(e,t){return n=>{const r={};for(const a in e){let o=a;if(t&&a in t&&!(o in n))for(const e of t[a])if(e in n){o=e;break}try{const t=e[a](n[o]);void 0!==t&&(r[a]=t)}catch(i){gt(!1,`invalid value for value.${a} (${i instanceof Error?i.message:"not-an-error"})`,"BAD_DATA",{value:n})}}return r}}function FO(e){return mt(It(e,!0),"invalid data","value",e),e}function DO(e){return mt(It(e,32),"invalid hash","value",e),e}const UO=BO({address:zv,blockHash:DO,blockNumber:Qt,data:FO,index:Qt,removed:jO((function(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}mt(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}),!1),topics:LO(DO),transactionHash:DO,transactionIndex:Qt},{index:["logIndex"]});const zO=BO({hash:jO(DO),parentHash:DO,parentBeaconBlockRoot:jO(DO,null),number:Qt,timestamp:Qt,nonce:jO(FO),difficulty:qt,gasLim
2it:qt,gasUsed:qt,stateRoot:jO(DO,null),receiptsRoot:jO(DO,null),transactionsRoot:jO(DO,null),blobGasUsed:jO(qt,null),excessBlobGas:jO(qt,null),miner:jO(zv),prevRandao:jO(DO,null),extraData:FO,baseFeePerGas:jO(qt)},{prevRandao:["mixHash"]});const WO=BO({transactionIndex:Qt,blockNumber:Qt,transactionHash:DO,address:zv,topics:LO(DO),data:FO,index:Qt,blockHash:DO},{index:["logIndex"]});const HO=BO({to:jO(zv,null),from:jO(zv,null),contractAddress:jO(zv,null),index:Qt,root:jO(jt),gasUsed:qt,blobGasUsed:jO(qt,null),logsBloom:jO(FO),blockHash:DO,hash:DO,logs:LO((function(e){return WO(e)})),blockNumber:Qt,cumulativeGasUsed:qt,effectiveGasPrice:jO(qt),blobGasPrice:jO(qt,null),status:jO(Qt),type:jO(Qt,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function VO(e){e.to&&qt(e.to)===MO&&(e.to="0x0000000000000000000000000000000000000000");const t=BO({hash:DO,index:jO(Qt,void 0),type:e=>"0x"===e||null==e?0:Qt(e),accessList:jO(Tw,null),blobVersionedHashes:jO(LO(DO,!0),null),authorizationList:jO(LO((e=>{let t;if(e.signature)t=e.signature;else{let n=e.yParity;"0x1b"===n?n=0:"0x1c"===n&&(n=1),t=Object.assign({},e,{yParity:n})}return{address:zv(e.address),chainId:qt(e.chainId),nonce:qt(e.nonce),signature:cE.from(t)}}),!1),null),blockHash:jO(DO,null),blockNumber:jO(Qt,null),transactionIndex:jO(Qt,null),from:zv,gasPrice:jO(qt),maxPriorityFeePerGas:jO(qt),maxFeePerGas:jO(qt),maxFeePerBlobGas:jO(qt,null),gasLimit:qt,to:jO(zv,null),value:qt,nonce:Qt,data:FO,creates:jO(zv,null),chainId:jO(qt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=function(e){const t=zv(e.from);let n=qt(e.nonce,"tx.nonce").toString(16);return n="0"===n?"0x":n.length%2?"0x0"+n:"0x"+n,zv(Ft(tv(mP([t,n])),12))}(t)),1!==e.type&&2!==e.type||null!=e.accessList||(t.accessList=[]),e.signature?t.signature=cE.from(e.signature):t.signature=cE.from(e),null==t.chainId){const e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&qt(t.blockHash)===MO&&(t.blockHash=null),t}function GO(e){return JSON.parse(JSON.stringify(e))}var YO=new WeakMap,qO=new WeakMap,XO=new WeakMap,$O=new WeakMap,KO=new WeakSet;class QO{constructor(e){wt(this,KO),kt(this,YO,void 0),kt(this,qO,void 0),kt(this,XO,void 0),kt(this,$O,void 0),Ot(YO,this,e),Ot(qO,this,null),Ot(XO,this,4e3),Ot($O,this,-2)}get pollingInterval(){return Ct(XO,this)}set pollingInterval(e){Ot(XO,this,e)}start(){Ct(qO,this)||(Ot(qO,this,Ct(YO,this)._setTimeout(Pt(KO,this,JO).bind(this),Ct(XO,this))),Pt(KO,this,JO).call(this))}stop(){Ct(qO,this)&&(Ct(YO,this)._clearTimeout(Ct(qO,this)),Ot(qO,this,null))}pause(e){this.stop(),e&&Ot($O,this,-2)}resume(){this.start()}}async function JO(){try{const e=await Ct(YO,this).getBlockNumber();if(-2===Ct($O,this))return void Ot($O,this,e);if(e!==Ct($O,this)){for(let t=Ct($O,this)+1;t<=e;t++){if(null==Ct(qO,this))return;await Ct(YO,this).emit("block",t)}Ot($O,this,e)}}catch(e){}null!=Ct(qO,this)&&Ot(qO,this,Ct(YO,this)._setTimeout(Pt(KO,this,JO).bind(this),Ct(XO,this)))}var ZO=new WeakMap,eT=new WeakMap,tT=new WeakMap;class nT{constructor(e){kt(this,ZO,void 0),kt(this,eT,void 0),kt(this,tT,void 0),Ot(ZO,this,e),Ot(tT,this,!1),Ot(eT,this,(e=>{this._poll(e,Ct(ZO,this))}))}async _poll(e,t){throw new Error("sub-classes must override this")}start(){Ct(tT,this)||(Ot(tT,this,!0),Ct(eT,this).call(this,-2),Ct(ZO,this).on("block",Ct(eT,this)))}stop(){Ct(tT,this)&&(Ot(tT,this,!1),Ct(ZO,this).off("block",Ct(eT,this)))}pause(e){this.stop()}resume(){this.start()}}var rT=new WeakMap,iT=new WeakMap;class aT extends nT{constructor(e,t){super(e),kt(this,rT,void 0),kt(this,iT,void 0),Ot(rT,this,t),Ot(iT,this,-2)}pause(e){e&&Ot(iT,this,-2),super.pause(e)}async _poll(e,t){const n=await t.getBlock(Ct(rT,this));null!=n&&(-2===Ct(iT,this)?Ot(iT,this,n.number):n.number>Ct(iT,this)&&(t.emit(Ct(rT,this),n.number),Ot(iT,this,n.number)))}}var oT=new WeakMap;class sT extends nT{constructor(e,t){super(e),kt(this,oT,void 0),Ot(oT,this,GO(t))}async _poll(e,t){throw new Error("@TODO")}}var lT=new WeakMap;class cT extends nT{constructor(e,t){super(e),kt(this,lT,void 0),Ot(lT,this,t)}async _poll(e,t){const n=await t.getTransactionReceipt(Ct(lT,this));n&&t.emit(Ct(lT,this),n)}}var uT=new WeakMap,dT=new WeakMap,hT=new WeakMap,fT=new WeakMap,pT=new WeakMap,gT=new WeakSet;class mT{constructor(e,t){wt(this,gT),kt(this,uT,void 0),kt(this,dT,void 0),kt(this,hT,void 0),kt(this,fT,void 0),kt(this,pT,void 0),Ot(uT,this,e),Ot(dT,this,GO(t)),Ot(hT,this,Pt(gT,this,yT).bind(this)),Ot(fT,this,
2!1),Ot(pT,this,-2)}start(){Ct(fT,this)||(Ot(fT,this,!0),-2===Ct(pT,this)&&Ct(uT,this).getBlockNumber().then((e=>{Ot(pT,this,e)})),Ct(uT,this).on("block",Ct(hT,this)))}stop(){Ct(fT,this)&&(Ot(fT,this,!1),Ct(uT,this).off("block",Ct(hT,this)))}pause(e){this.stop(),e&&Ot(pT,this,-2)}resume(){this.start()}}async function yT(e){if(-2===Ct(pT,this))return;const t=GO(Ct(dT,this));t.fromBlock=Ct(pT,this)+1,t.toBlock=e;const n=await Ct(uT,this).getLogs(t);if(0!==n.length)for(const r of n)Ct(uT,this).emit(Ct(dT,this),r),Ot(pT,this,r.blockNumber);else Ct(pT,this)<e-60&&Ot(pT,this,e-60)}const bT=BigInt(2);function vT(e){return new Promise((t=>{setTimeout(t,e)}))}function xT(e){return e&&"function"===typeof e.then}function wT(e,t){return e+":"+JSON.stringify(t,((e,t)=>{if(null==t)return"null";if("bigint"===typeof t)return`bigint:${t.toString()}`;if("string"===typeof t)return t.toLowerCase();if("object"===typeof t&&!Array.isArray(t)){const e=Object.keys(t);return e.sort(),e.reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}))}class kT{constructor(e){St(this,"name",void 0),ut(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function AT(e){return(e=Array.from(new Set(e).values())).sort(),e}async function ET(e,t){if(null==e)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"===typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if(It(e,32)){const t=e.toLowerCase();return{type:"transaction",tag:wT("tx",{hash:t}),hash:t}}if(e.orphan){const t=e;return{type:"orphan",tag:wT("orphan",t),filter:(n=t,JSON.parse(JSON.stringify(n)))}}var n;if(e.address||e.topics){const n=e,r={topics:(n.topics||[]).map((e=>null==e?null:Array.isArray(e)?AT(e.map((e=>e.toLowerCase()))):e.toLowerCase()))};if(n.address){const e=[],i=[],a=n=>{It(n)?e.push(n):i.push((async()=>{e.push(await Cw(n,t))})())};Array.isArray(n.address)?n.address.forEach(a):a(n.address),i.length&&await Promise.all(i),r.address=AT(e.map((e=>e.toLowerCase())))}return{filter:r,tag:wT("event",r),type:"event"}}mt(!1,"unknown ProviderEvent","event",e)}function ST(){return(new Date).getTime()}const PT={cacheTimeout:250,pollingInterval:4e3};var CT=new WeakMap,OT=new WeakMap,TT=new WeakMap,NT=new WeakMap,_T=new WeakMap,IT=new WeakMap,RT=new WeakMap,MT=new WeakMap,jT=new WeakMap,LT=new WeakMap,BT=new WeakMap,FT=new WeakMap,DT=new WeakMap,UT=new WeakMap,zT=new WeakSet;class WT{constructor(e,t){if(wt(this,zT),kt(this,CT,void 0),kt(this,OT,void 0),kt(this,TT,void 0),kt(this,NT,void 0),kt(this,_T,void 0),kt(this,IT,void 0),kt(this,RT,void 0),kt(this,MT,void 0),kt(this,jT,void 0),kt(this,LT,void 0),kt(this,BT,void 0),kt(this,FT,void 0),kt(this,DT,void 0),kt(this,UT,void 0),Ot(UT,this,Object.assign({},PT,t||{})),"any"===e)Ot(IT,this,!0),Ot(_T,this,null);else if(e){const t=AA.from(e);Ot(IT,this,!1),Ot(_T,this,Promise.resolve(t)),setTimeout((()=>{this.emit("network",t,null)}),0)}else Ot(IT,this,!1),Ot(_T,this,null);Ot(MT,this,-1),Ot(RT,this,new Map),Ot(CT,this,new Map),Ot(OT,this,new Map),Ot(TT,this,null),Ot(NT,this,!1),Ot(jT,this,1),Ot(LT,this,new Map),Ot(BT,this,!1),Ot(FT,this,0),Ot(DT,this,[])}get _requestRate(){const e=Ct(FT,this);return 0==e?null:e}set _requestRate(e){(null==e||e<0)&&(e=0),Ot(FT,this,Qt(e))}get pollingInterval(){return Ct(UT,this).pollingInterval}get provider(){return this}get plugins(){return Array.from(Ct(OT,this).values())}attachPlugin(e){if(Ct(OT,this).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return Ct(OT,this).set(e.name,e.connect(this)),this}getPlugin(e){return Ct(OT,this).get(e)||null}get disableCcipRead(){return Ct(BT,this)}set disableCcipRead(e){Ot(BT,this,!!e)}async ccipReadFetch(e,t,n){if(this.disableCcipRead||0===n.length||null==e.to)return null;const r=e.to.toLowerCase(),i=t.toLowerCase(),a=[];for(let s=0;s<n.length;s++){const t=n[s],l=t.replace("{sender}",r).replace("{data}",i),c=new Zk(l);-1===t.indexOf("{data}")&&(c.body={data:i,sender:r}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:c,index:s,urls:n});let u,d="unknown error";try{u=await c.send()}
2catch(o){a.push(o.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:c,result:{error:o}});continue}try{const e=u.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:c,result:e}),e.data;e.message&&(d=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:c,result:e})}catch(o){}gt(u.statusCode<400||u.statusCode>=500,`response not found during CCIP fetch: ${d}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:t,errorMessage:d}}),a.push(d)}gt(!1,`error encountered during CCIP fetch: ${a.map((e=>JSON.stringify(e))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:a}})}_wrapBlock(e,t){return new Lw(function(e){const t=zO(e);return t.transactions=e.transactions.map((e=>"string"===typeof e?e:VO(e))),t}(e),this)}_wrapLog(e,t){return new Bw(function(e){return UO(e)}(e),this)}_wrapTransactionReceipt(e,t){return new Dw(function(e){return HO(e)}(e),this)}_wrapTransactionResponse(e,t){return new zw(VO(e),this)}_detectNetwork(){gt(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){gt(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Qt(await Pt(zT,this,VT).call(this,{method:"getBlockNumber"}),"%response");return Ct(MT,this)>=0&&Ot(MT,this,e),e}_getAddress(e){return Cw(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return It(e)?It(e,32)?e:en(e):("bigint"===typeof e&&(e=Qt(e,"blockTag")),"number"===typeof e?e>=0?en(e):Ct(MT,this)>=0?en(Ct(MT,this)+e):this.getBlockNumber().then((t=>en(t+e))):void mt(!1,"invalid blockTag","blockTag",e))}_getFilter(e){const t=(e.topics||[]).map((e=>null==e?null:Array.isArray(e)?AT(e.map((e=>e.toLowerCase()))):e.toLowerCase())),n="blockHash"in e?e.blockHash:void 0,r=(e,r,i
2)=>{let a;switch(e.length){case 0:break;case 1:a=e[0];break;default:e.sort(),a=e}if(n&&(null!=r||null!=i))throw new Error("invalid filter");const o={};return a&&(o.address=a),t.length&&(o.topics=t),r&&(o.fromBlock=r),i&&(o.toBlock=i),n&&(o.blockHash=n),o};let i,a,o=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)o.push(this._getAddress(s));else o.push(this._getAddress(e.address));return"fromBlock"in e&&(i=this._getBlockTag(e.fromBlock)),"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),o.filter((e=>"string"!==typeof e)).length||null!=i&&"string"!==typeof i||null!=a&&"string"!==typeof a?Promise.all([Promise.all(o),i,a]).then((e=>r(e[0],e[1],e[2]))):r(o,i,a)}_getTransactionRequest(e){const t=Mw(e),n=[];if(["to","from"].forEach((e=>{if(null==t[e])return;const r=Cw(t[e],this);xT(r)?n.push(async function(){t[e]=await r}()):t[e]=r})),null!=t.blockTag){const e=this._getBlockTag(t.blockTag);xT(e)?n.push(async function(){t.blockTag=await e}()):t.blockTag=e}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(null==Ct(_T,this)){const e=(async()=>{try{const e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw Ct(_T,this)===e&&Ot(_T,this,null),t}})();return Ot(_T,this,e),(await e).clone()}const e=Ct(_T,this),[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(Ct(IT,this)?(this.emit("network",n,t),Ct(_T,this)===e&&Ot(_T,this,Promise.resolve(n))):gt(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:t,gasPrice:n,priorityFee:r}=await ct({_block:Pt(zT,this,XT).call(this,"latest",!1),gasPrice:(async()=>{try{return qt(await Pt(zT,this,VT).call(this,{method:"getGasPrice"}),"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{return qt(await Pt(zT,this,VT).call(this,{method:"getPriorityFee"}),"%response")}catch(e){}return null})()});let i=null,a=null;const o=this._wrapBlock(t,e);return o&&o.baseFeePerGas&&(a=null!=r?r:BigInt("1000000000"),i=o.baseFeePerGas*bT+a),new Rw(n,i,a)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const e=new Zk(n.url),r=await n.processFunc(t,this,e);return new Rw(r.gasPrice,r.maxFeePerGas,r.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return xT(t)&&(t=await t),qt(await Pt(zT,this,VT).call(this,{method:"estimateGas",transaction:t}),"%response")}async call(e){const{tx:t,blockTag:n}=await ct({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await Pt(zT,this,YT).call(this,Pt(zT,this,GT).call(this,t,n,e.enableCcipRead?0:-1))}async getBalance(e,t){return qt(await Pt(zT,this,qT).call(this,{method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return Qt(await Pt(zT,this,qT).call(this,{method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return jt(await Pt(zT,this,qT).call(this,{method:"getCode"},e,t))}async getStorage(e,t,n){const r=qt(t,"position");return jt(await Pt(zT,this,qT).call(this,{method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await ct({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=nC.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,r).replaceableTransaction(t)}async getBlock(e,t){const{network:n,params:r}=await ct({network:this.getNetwork(),params:Pt(zT,this,XT).call(this,e,!!t)});return null==r?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await ct({network:this.getNetwork(),params:Pt(zT,this,VT).call(this,{method:"getTransaction",hash:e})});return null==n?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await ct({network:this.getNetwork(),params:Pt(zT,this,VT).call(this,{method:"getTransactionReceipt",hash:e})});if(null==n)return null;if(null==n.gasPrice&&null==n.effectiveGasPrice){const t=await Pt(zT,this,VT).
2call(this,{method:"getTransaction",hash:e});if(null==t)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await ct({network:this.getNetwork(),result:Pt(zT,this,VT).call(this,{method:"getTransactionResult",hash:e})});return null==t?null:jt(t)}async getLogs(e){let t=this._getFilter(e);xT(t)&&(t=await t);const{network:n,params:r}=await ct({network:this.getNetwork(),params:Pt(zT,this,VT).call(this,{method:"getLogs",filter:t})});return r.map((e=>this._wrapLog(e,n)))}_getProvider(e){gt(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await NO.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e,t){const n=await this.getResolver(e);return n?await n.getAddress(t):null}async lookupAddress(e,t){return await NO.lookupAddress(this,e,t)}async waitForTransaction(e,t,n){const r=null!=t?t:1;return 0===r?this.getTransactionReceipt(e):new Promise((async(t,i)=>{let a=null;const o=async n=>{try{const i=await this.getTransactionReceipt(e);if(null!=i&&n-i.blockNumber+1>=r)return t(i),void(a&&(clearTimeout(a),a=null))}catch(i){console.log("EEE",i)}this.once("block",o)};null!=n&&(a=setTimeout((()=>{null!=a&&(a=null,this.off("block",o),i(pt("timeout","TIMEOUT",{reason:"timeout"})))}),n)),o(await this.getBlockNumber())}))}async waitForBlock(e){gt(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=Ct(LT,this).get(e);t&&(t.timer&&clearTimeout(t.timer),Ct(LT,this).delete(e))}_setTimeout(e,t){var n,r;null==t&&(t=0);const i=(Ot(jT,this,(n=Ct(jT,this),r=n++,n)),r),a=()=>{Ct(LT,this).delete(i),e()};if(this.paused)Ct(LT,this).set(i,{timer:null,func:a,time:t});else{const e=setTimeout(a,t);Ct(LT,this).set(i,{timer:e,func:a,time:ST()})}return i}_forEachSubscriber(e){for(const t of Ct(CT,this).values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new kT(e.type);case"block":{const e=new QO(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new aT(this,e.type);case"event":return new mT(this,e.filter);case"transaction":return new cT(this,e.hash);case"orphan":return new sT(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of Ct(CT,this).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),null!=Ct(TT,this)&&t.pause(Ct(TT,this));break}}async on(e,t){const n=await Pt(zT,this,KT).call(this,e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,null!=Ct(TT,this)&&n.subscriber.pause(Ct(TT,this))),this}async once(e,t){const n=await Pt(zT,this,KT).call(this,e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,null!=Ct(TT,this)&&n.subscriber.pause(Ct(TT,this))),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=await Pt(zT,this,$T).call(this,e,n);if(!i||0===i.listeners.length)return!1;const a=i.listeners.length;return i.listeners=i.listeners.filter((t=>{let{listener:r,once:i}=t;const a=new Gw(this,i?null:r,e);try{r.call(this,...n,a)}catch(o){}return!i})),0===i.listeners.length&&(i.started&&i.subscriber.stop(),Ct(CT,this).delete(i.tag)),a>0}async listenerCount(e){if(e){const t=await Pt(zT,this,$T).call(this,e);return t?t.listeners.length:0}let t=0;for(const{listeners:n}of Ct(CT,this).values())t+=n.length;return t}async listeners(e){if(e){const t=await Pt(zT,this,$T).call(this,e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}let t=[];for(const{listeners:n}of Ct(CT,this).values())t=t.concat(n.map((e=>{let{listener:t}=e;return t})));return t}async off(e,t){const n=await Pt(zT,this,$T).call(this,e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return t&&0!==n.listeners.length||(n.started&&n.subscriber.stop(),Ct(CT,this).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await Pt(zT,this,KT).call(this,e);n&&r.stop(),Ct(CT,this).delete(t)}else for(const[t,{started:n,subscriber:r}]of Ct(CT,this))n&&r.stop(),Ct(CT,this).delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return Ct(NT,this)}destroy(){this.removeAllListeners();for(const e of Ct(LT,this).keys())this._clearTimeout(e);Ot(NT,this,!0)}get paused(){return null!=Ct(TT,this)}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(Ot(MT,this,-1),null!=Ct(TT,this)){if(Ct(TT,this)==!!e)return;gt(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}
2this._forEachSubscriber((t=>t.pause(e))),Ot(TT,this,!!e);for(const t of Ct(LT,this).values())t.timer&&clearTimeout(t.timer),t.time=ST()-t.time}resume(){if(null!=Ct(TT,this)){this._forEachSubscriber((e=>e.resume())),Ot(TT,this,null);for(const e of Ct(LT,this).values()){let t=e.time;t<0&&(t=0),e.time=ST(),setTimeout(e.func,t)}}}}function HT(){let e=Ct(FT,this);if(0===e)return 0;const t=Ct(DT,this),n=ST();t.push(n);const r=n-1e3;for(;t.length&&t[0]<r;)t.shift();return t.length<e?0:t[0]+1e3-n}async function VT(e){const t=Ct(UT,this).cacheTimeout;if(t<0){const t=Pt(zT,this,HT).call(this);return t&&await vT(t),await this._perform(e)}const n=wT(e.method,e);let r=Ct(RT,this).get(n);if(!r){const i=Pt(zT,this,HT).call(this);i&&await vT(i),r=this._perform(e),Ct(RT,this).set(n,r),setTimeout((()=>{Ct(RT,this).get(n)===r&&Ct(RT,this).delete(n)}),t)}return await r}async function GT(e,t,n){gt(n<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});const r=Mw(e);try{const e=Pt(zT,this,HT).call(this);return e&&await vT(e),jt(await this._perform({method:"call",transaction:r,blockTag:t}))}catch(i){if(!this.disableCcipRead&&ft(i)&&i.data&&n>=0&&"latest"===t&&null!=r.to&&"0x556f1830"===Ft(i.data,0,4)){const e=i.data,a=await Cw(r.to,this);let o;try{o=function(e){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};gt(Bt(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=Ft(e,0,32);gt(Ft(n,0,12)===Ft(rN,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=Ft(n,12);try{const n=[],r=Qt(Ft(e,32,64)),i=Qt(Ft(e,r,r+32)),a=Ft(e,r+32);for(let e=0;e<i;e++){const t=QT(a,32*e);if(null==t)throw new Error("abort");n.push(t)}t.urls=n}catch(i){gt(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const n=JT(e,64);if(null==n)throw new Error("abort");t.calldata=n}catch(i){gt(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}gt(Ft(e,100,128)===Ft(rN,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=Ft(e,96,100);try{const n=JT(e,128);if(null==n)throw new Error("abort");t.extraData=n}catch(i){gt(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map((e=>t[e])),t}(Ft(i.data,4))}catch(i){gt(!1,i.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:r,info:{data:e}})}gt(o.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:e,reason:"OffchainLookup",transaction:r,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:o.errorArgs}});const s=await this.ccipReadFetch(r,o.calldata,o.urls);gt(null!=s,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:r,info:{data:i.data,errorArgs:o.errorArgs}});const l={to:a,data:Lt([o.selector,nN([s,o.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const e=await Pt(zT,this,GT).call(this,l,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:e}),e}catch(i){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:i}),i}}throw i}}async function YT(e){const{value:t}=await ct({network:this.getNetwork(),value:e});return t}async function qT(e,t,n){let r=this._getAddress(t),i=this._getBlockTag(n);return"string"===typeof r&&"string"===typeof i||([r,i]=await Promise.all([r,i])),await Pt(zT,this,YT).call(this,Pt(zT,this,VT).call(this,Object.assign(e,{address:r,blockTag:i})))}async function XT(e,t){if(It(e,32))return await Pt(zT,this,VT).call(this,{method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);
2return"string"!==typeof n&&(n=await n),await Pt(zT,this,VT).call(this,{method:"getBlock",blockTag:n,includeTransactions:t})}async function $T(e,t){let n=await ET(e,this);return"event"===n.type&&t&&t.length>0&&!0===t[0].removed&&(n=await ET({orphan:"drop-log",log:t[0]},this)),Ct(CT,this).get(n.tag)||null}async function KT(e){const t=await ET(e,this),n=t.tag;let r=Ct(CT,this).get(n);if(!r){r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},Ct(CT,this).set(n,r)}return r}function QT(e,t){try{const n=JT(e,t);if(n)return ov(n)}catch(n){}return null}function JT(e,t){if("0x"===e)return null;try{const n=Qt(Ft(e,t,t+32)),r=Qt(Ft(e,n,n+32));return Ft(e,n+32,n+32+r)}catch(n){}return null}function ZT(e){const t=Zt(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function eN(e){if(e.length%32===0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}const tN=new Uint8Array([]);function nN(e){const t=[];let n=0;for(let r=0;r<e.length;r++)t.push(tN),n+=32;for(let r=0;r<e.length;r++){const i=Nt(e[r]);t[r]=ZT(n),t.push(ZT(i.length)),t.push(eN(i)),n+=32+32*Math.ceil(i.length/32)}return Lt(t)}const rN="0x0000000000000000000000000000000000000000000000000000000000000000";function iN(e,t){if(e.provider)return e.provider;gt(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function aN(e,t){let n=Mw(t);if(null!=n.to&&(n.to=Cw(n.to,e)),null!=n.from){const t=n.from;n.from=Promise.all([e.getAddress(),Cw(t,e)]).then((e=>{let[t,n]=e;return mt(t.toLowerCase()===n.toLowerCase(),"transaction from mismatch","tx.from",n),t}))}else n.from=e.getAddress();return await ct(n)}class oN{constructor(e){St(this,"provider",void 0),ut(this,{provider:e||null})}async getNonce(e){return iN(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await aN(this,e)}async populateTransaction(e){const t=iN(this,"populateTransaction"),n=await aN(this,e);null==n.nonce&&(n.nonce=await this.getNonce("pending")),null==n.gasLimit&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(null!=n.chainId){mt(qt(n.chainId)===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const i=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas;if(null==n.gasPrice||2!==n.type&&!i?0!==n.type&&1!==n.type||!i||mt(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e):mt(!1,"eip-1559 transaction do not support gasPrice","tx",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas)if(0===n.type||1===n.type){const e=await t.getFeeData();gt(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice)}else{const e=await t.getFeeData();if(null==n.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(n.authorizationList&&n.authorizationList.length?n.type=4:n.type=2,null!=n.gasPrice){const e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(gt(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice),n.type=0):gt(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2!==n.type&&3!==n.type&&4!==n.type||(null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else n.type=2;return await ct(n)}async populateAuthorization(e){const t=Object.assign({},e);return null==t.chainId&&(t.chainId=(await iN(this,"getNetwork").getNetwork()).chainId),null==t.nonce&&(t.nonce=await this.getNonce()),t}async estimateGas(e){return iN(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return iN(this,"call").call(await this.populateCall(e))}async resolveName(e){const t=iN(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){const t=iN(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=nC.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}authorize(e){gt(!1,"authorization not implemented for this signer","UNSUPPORTED_OPERATION",{operation:"authorize"})}}var sN=new WeakMap,lN=new WeakMap,cN=new WeakMap,uN=new WeakMap,dN=new WeakMap,hN=new WeakMap,fN=new WeakSet;class pN{constructor(e){wt(this,fN),kt(this,sN,void 0),kt(this,lN,void 0),kt(this,cN,void 0),kt(this,uN,void 0),kt(this,dN,void 0),kt(this,hN,void 0),Ot(sN,this,e),Ot(lN,this,null),Ot(cN,this,Pt(fN,this,gN).bind(this)),Ot(uN,this,!1),Ot(dN,this,null),Ot(hN,this,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){Ct(uN,this)||(Ot(uN,this,!0),Pt(fN,this,gN).call(this,-2))}stop(){Ct(uN,this)&&(Ot(uN,this,!1),Ot(hN,this,!0),Pt(fN,this,mN).call(this),Ct(sN,this).off("block",Ct(cN,this)))}pause(e){e&&Pt(fN,this,mN).call(this),Ct(sN,this).off("block",Ct(cN,this))}resume(){this.start()}}async function gN(e){try{null==Ct(lN,this)&&Ot(lN,this,this._subscribe(Ct(sN,this)));let e=null;try{e=await Ct(lN,this)}catch(t){if(!ht(t,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==t.operation)throw t}if(null==e)return Ot(lN,this,null),void Ct(sN,this)._recoverSubscriber(this,this._recover(Ct(sN,this)));const n=await Ct(sN,this).getNetwork();if(Ct(dN,this)||Ot(dN,this,n),Ct(dN,this).chainId!==n.chainId)throw new Error("chaid changed");if(Ct(hN,this))return;const r=await Ct(sN,this).send("eth_getFilterChanges",[e]);await this._emitResults(Ct(sN,this),r)}catch(t){console.log("@TODO",t)}Ct(sN,this).once("block",Ct(cN,this))}function mN(){const e=Ct(lN,this);e&&(Ot(lN,this,null),e.then((e=>{Ct(sN,this).destroyed||Ct(sN,this).send("eth_uninstallFilter",[e])})))}var yN=new WeakMap;class bN extends pN{constructor(e,t){var n;super(e),kt(this,yN,void 0),Ot(yN,this,(n=t,JSON.parse(JSON.stringify(n))))}_recover(e){return new mT(e,Ct(yN,this))}async _subscribe(e){return await e.send("eth_newFilter",[Ct(yN,this)])}async _emitResults(e,t){for(const n of t)e.emit(Ct(yN,this),e._wrapLog(n,e._network))}}class vN extends pN{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}const xN="bigint,boolean,function,number,string,symbol".split(/,/g);function wN(e){if(null==e||xN.indexOf(typeof e)>=0)return e;if("function"===typeof e.getAddress)return e;if(Array.isArray(e))return e.map(wN);if("object"===typeof e)return Object.keys(e).reduce(((t,n)=>(t[n]=e[n],t)),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function kN(e){return new Promise((t=>{setTimeout(t,e)}))}function AN(e){return e?e.toLowerCase():e}function EN(e){return e&&"number"===typeof e.pollingInterval}const SN={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class PN extends oN{constructor(e,t){super(e),St(this,"address",void 0),ut(this,{address:t=zv(t)})}connect(e){gt(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const t=wN(e),n=[];if(t.from){const r=t.from;n.push((async()=>{const n=await Cw(r,this.provider);mt(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n})())}else t.from=this.address;if(null==t.gasLimit&&n.push((async()=>
2{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){const e=t.to;n.push((async()=>{t.to=await Cw(e,this.provider)})())}n.length&&await Promise.all(n);const r=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[r])}async sendTransaction(e){const t=await this.provider.getBlockNumber(),n=await this.sendUncheckedTransaction(e);return await new Promise(((e,r)=>{const i=[1e3,100];let a=0;const o=async()=>{try{const r=await this.provider.getTransaction(n);if(null!=r)return void e(r.replaceableTransaction(t))}catch(s){if(ht(s,"CANCELLED")||ht(s,"BAD_DATA")||ht(s,"NETWORK_ERROR")||ht(s,"UNSUPPORTED_OPERATION"))return null==s.info&&(s.info={}),s.info.sendTransactionHash=n,void r(s);if(ht(s,"INVALID_ARGUMENT")&&(a++,null==s.info&&(s.info={}),s.info.sendTransactionHash=n,a>10))return void r(s);this.provider.emit("error",pt("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:s}))}this.provider._setTimeout((()=>{o()}),i.pop()||4e3)};o()}))}async signTransaction(e){const t=wN(e);if(t.from){const n=await Cw(t.from,this.provider);mt(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n}else t.from=this.address;const n=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[n])}async signMessage(e){const t="string"===typeof e?av(e):e;return await this.provider.send("personal_sign",[jt(t),this.address.toLowerCase()])}async signTypedData(e,t,n){const r=wN(n),i=await GA.resolveNames(e,t,r,(async e=>{const t=await Cw(e);return mt(null!=t,"TypedData does not support null address","value",e),t}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(GA.getPayload(i.domain,t,i.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const t="string"===typeof e?av(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),jt(t)])}}var CN=new WeakMap,ON=new WeakMap,TN=new WeakMap,NN=new WeakMap,_N=new WeakMap,IN=new WeakMap,RN=new WeakMap,MN=new WeakSet;class jN extends WT{constructor(e,t){super(e,t),wt(this,MN),kt(this,CN,void 0),kt(this,ON,void 0),kt(this,TN,void 0),kt(this,NN,void 0),kt(this,_N,void 0),kt(this,IN,void 0),kt(this,RN,void 0),Ot(ON,this,1),Ot(CN,this,Object.assign({},SN,t||{})),Ot(TN,this,[]),Ot(NN,this,null),Ot(IN,this,null),Ot(RN,this,null);{let e=null;const t=new Promise((t=>{e=t}));Ot(_N,this,{promise:t,resolve:e})}const n=this._getOption("staticNetwork");"boolean"===typeof n?(mt(!n||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),n&&null!=e&&Ot(IN,this,AA.from(e))):n&&(mt(null==e||n.matches(e),"staticNetwork MUST match network object","options",t),Ot(IN,this,n))}_getOption(e){return Ct(CN,this)[e]}get _network(){return gt(Ct(IN,this),"network is not available yet","NETWORK_ERROR"),Ct(IN,this)}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&qt(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=await this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}const t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(Ct(IN,this))return Ct(IN,this)}return Ct(RN,this)?await Ct(RN,this):this.ready?(Ot(RN,this,(async()=>{try{const e=AA.from(qt(await this.send("eth_chainId",[])));return Ot(RN,this,null),e}catch(e){throw Ot(RN,this,null),e}})()),await Ct(RN,this)):(Ot(RN,this,(async(e,t)=>{const n={id:(Ot(ON,this,(e=Ct(ON,this),t=e++,e)),t),method:"eth_chainId",params:[],jsonrpc:"2.0"};let r;this.emit("debug",{action:"sendRpcPayload",payload:n});try{r=(await this._send(n))[0],Ot(RN,this,null)}catch(i){throw Ot(RN,this,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}
2if(this.emit("debug",{action:"receiveRpcResult",result:r}),"result"in r)return AA.from(qt(r.result));throw this.getRpcError(n,r)})()),await Ct(RN,this))}_start(){null!=Ct(_N,this)&&null!=Ct(_N,this).resolve&&(Ct(_N,this).resolve(),Ot(_N,this,null),(async()=>{for(;null==Ct(IN,this)&&!this.destroyed;)try{Ot(IN,this,await this._detectNetwork())}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",pt("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await kN(1e3)}Pt(MN,this,LN).call(this)})())}async _waitUntilReady(){if(null!=Ct(_N,this))return await Ct(_N,this).promise}_getSubscriber(e){return"pending"===e.type?new vN(this):"event"===e.type?this._getOption("polling")?new mT(this,e.filter):new bN(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new kT("orphan"):super._getSubscriber(e)}get ready(){return null==Ct(_N,this)}getRpcTransaction(e){const t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((n=>{if(null==e[n])return;let r=n;"gasLimit"===n&&(r="gas"),t[r]=en(qt(e[n],`tx.${n}`))})),["from","to","data"].forEach((n=>{null!=e[n]&&(t[n]=jt(e[n]))})),e.accessList&&(t.accessList=Tw(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map((e=>e.toLowerCase()))),e.authorizationList&&(t.authorizationList=e.authorizationList.map((e=>{const t=uE(e);return{address:t.address,nonce:en(t.nonce),chainId:en(t.chainId),yParity:en(t.signature.yParity),r:en(t.signature.r),s:en(t.signature.s)}}))),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[AN(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[AN(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[AN(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[AN(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(AN):e.filter.address=AN(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){const{method:n}=e,{error:r}=t;if("eth_estimateGas"===n&&r.message){const t=r.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return pt("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:r}});if(t.match(/nonce/i)&&t.match(/too low/i))return pt("nonce has already been used","NONCE_EXPIRED",{transaction:e.params[0],info:{payload:e,error:r}})}if("eth_call"===n||"eth_estimateGas"===n){const t=zN(r),i=cw.getBuiltinCallException("eth_call"===n?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:r,payload:e},i}const i=JSON.stringify(function(e){const t=[];return WN(e,t),t}(r));if("string"===typeof r.message&&r.message.match(/user denied|ethers-user-denied/i)){return pt("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[n]||"unknown",reason:"rejected",info:{payload:e,error:r}})}if("eth_sendRawTransaction"===n||"eth_sendTransaction"===n){const t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return pt("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:r}});if(i.match(/nonce/i)&&i.match(/too low/i))return pt("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:r}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return pt("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:r}});if(i.match(/only replay-protected/i))return pt("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:n,info:{transaction:t,info:{error:r}}})}let a=!!i.match(/the method .* does not exist/i);return a||r&&r.details&&r.details.startsWith("Unauthorized method:")&&(a=!0),a?pt("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:r,payload:e}}):pt("could not coalesce error","UNKNOWN_ERROR",{error:r,payload:e})}send(e,t){var n,r;if(this.destroyed)return Promise.reject(pt("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const i=(Ot(ON,this,(n=Ct(ON,this),r=n++,n)),r),a=new Promise(((n,r)=>{Ct(TN,this).push({resolve:n,reject:r,payload:{method:e,params:t,id:i,jsonrpc:"2.0"}})}));return Pt(MN,this,LN).call(this),a}async getSigner(e){null==e&&(e=0);const t=this.send("eth_accounts",[]);if("number"===typeof e){const n=await t;if(e>=n.length)throw new Error("no such account");return new PN(this,n[e])}const{accounts:n}=await ct({network:this.getNetwork(),accounts:t});e=zv(e);for(const r of n)if(zv(r)===e)return new PN(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((e=>new PN(this,e)))}destroy(){Ct(NN,this)&&(clearTimeout(Ct(NN,this)),Ot(NN,this,null));for(const{payload:e,reject:t}
2of Ct(TN,this))t(pt("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));Ot(TN,this,[]),super.destroy()}}function LN(){if(Ct(NN,this))return;const e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");Ot(NN,this,setTimeout((()=>{Ot(NN,this,null);const e=Ct(TN,this);for(Ot(TN,this,[]);e.length;){const t=[e.shift()];for(;e.length&&t.length!==Ct(CN,this).batchMaxCount;){t.push(e.shift());if(JSON.stringify(t.map((e=>e.payload))).length>Ct(CN,this).batchMaxSize){e.unshift(t.pop());break}}(async()=>{const e=1===t.length?t[0].payload:t.map((e=>e.payload));this.emit("debug",{action:"sendRpcPayload",payload:e});try{const n=await this._send(e);this.emit("debug",{action:"receiveRpcResult",result:n});for(const{resolve:e,reject:r,payload:i}of t){if(this.destroyed){r(pt("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:i.method}));continue}const t=n.filter((e=>e.id===i.id))[0];if(null!=t)"error"in t?r(this.getRpcError(i,t)):e(t.result);else{const e=pt("missing response for request","BAD_DATA",{value:n,info:{payload:i}});this.emit("error",e),r(e)}}}catch(n){this.emit("debug",{action:"receiveRpcError",error:n});for(const{reject:e}of t)e(n)}})()}}),e))}var BN=new WeakMap;class FN extends jN{constructor(e,t){super(e,t),kt(this,BN,void 0);let n=this._getOption("pollingInterval");null==n&&(n=SN.pollingInterval),Ot(BN,this,n)}_getSubscriber(e){const t=super._getSubscriber(e);return EN(t)&&(t.pollingInterval=Ct(BN,this)),t}get pollingInterval(){return Ct(BN,this)}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");Ot(BN,this,e),this._forEachSubscriber((e=>{EN(e)&&(e.pollingInterval=Ct(BN,this))}))}}var DN=new WeakMap;class UN extends FN{constructor(e,t,n){null==e&&(e="http://localhost:8545"),super(t,n),kt(this,DN,void 0),Ot(DN,this,"string"===typeof e?new Zk(e):e.clone())}_getConnection(){return Ct(DN,this).clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){const t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");const n=await t.send();n.assertOk();let r=n.bodyJson;return Array.isArray(r)||(r=[r]),r}}function zN(e){if(null==e)return null;if("string"===typeof e.message&&e.message.match(/revert/i)&&It(e.data))return{message:e.message,data:e.data};if("object"===typeof e){for(const t in e){const n=zN(e[t]);if(n)return n}return null}if("string"===typeof e)try{return zN(JSON.parse(e))}catch(t){}return null}function WN(e,t){if(null!=e){if("string"===typeof e.message&&t.push(e.message),"object"===typeof e)for(const n in e)WN(e[n],t);if("string"===typeof e)try{return WN(JSON.parse(e),t)}catch(n){}}}const HN="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class VN extends UN{constructor(e,t){null==e&&(e="mainnet");const n=AA.from(e);null==t&&(t=HN);const r={polling:!0,staticNetwork:n};super(VN.getRequest(n,t),n,r),St(this,"apiKey",void 0),ut(this,{apiKey:t})}_getProvider(e){try{return new VN(e,this.apiKey)}catch(t){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=HN);const n=new Zk(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"filecoin":return"rpc.ankr.com/filecoin";case"filecoin-calibration":return"rpc.ankr.com/filecoin_testnet";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}mt(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===HN&&(n.retryFunc=async(e,t,n)=>(uA("AnkrProvider"),!0)),n}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===HN}}
2const GN="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class YN extends UN{constructor(e,t){null==e&&(e="mainnet");const n=AA.from(e);null==t&&(t=GN);super(YN.getRequest(n,t),n,{staticNetwork:n}),St(this,"apiKey",void 0),ut(this,{apiKey:t})}_getProvider(e){try{return new YN(e,this.apiKey)}catch(t){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){const{trace:n,tx:r}=await ct({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==n||null==r)return null;let i,a=!1;try{i=n[0].result.output,a="Reverted"===n[0].error}catch(t){}if(i)return gt(!a,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:r,invocation:null,revert:null}),i;gt(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(e)}isCommunityResource(){return this.apiKey===GN}static getRequest(e,t){null==t&&(t=GN);const n=new Zk(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.g.alchemy.com";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"bnb":return"bnb-mainnet.g.alchemy.com";case"bnbt":return"bnb-testnet.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}mt(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return n.allowGzip=!0,t===GN&&(n.retryFunc=async(e,t,n)=>(uA("alchemy"),!0)),n}}function qN(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}mt(!1,"unsupported network","network",e)}class XN extends UN{constructor(e,t){null==e&&(e="mainnet");const n=AA.from(e);null==t&&(t=qN(n.name));super(XN.getRequest(n,t),n,{staticNetwork:n}),St(this,"apiKey",void 0),ut(this,{apiKey:t})}_getProvider(e){try{return new XN(e,this.apiKey)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===qN(this._network.name)}static getRequest(e,t){null==t&&(t=qN(e.name));const n=new Zk(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}mt(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===qN(e.name)&&(n.retryFunc=async(e,t,n)=>(uA("ChainstackProvider"),!0)),n}}class $N extends UN{constructor(e){null==e&&(e="mainnet");const t=AA.from(e);mt("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}const KN="1 11155111 17000 560048 2741 11124 33111 33139 42170 42161 421614 43114 43113 8453 84532 80069 80094 199 1029 81457 168587773 56 97 42220 11142220 252 2523 100 999 737373 747474 59144 59141 5000 5003 43521 143 10143 1287 1284 1285 10 11155420 204 5611 80002 137 534352 534351 1329 1328 146 14601 988 2201 1923 1924 167013 167000 130 1301 480 4801 51 50 324 300".split(/ /g);const QN="org.ethers.plugins.provider.Etherscan";const JN=["enableCcipRead"];let ZN=1;var e_=new WeakMap;class t_ extends WT{constructor(e,t){const n=null!=t?t:null;super(),St(this,"network",void 0),St(this,"apiKey",void 0),kt(this,e_,void 0);const r=AA.from(e);mt(KN.indexOf(`${r.chainId}`)>=0,"unsupported network","network",r),Ot(e_,this,r.getPlugin(QN)),ut(this,{apiKey:n,network:r})}getBaseUrl(){if(Ct(e_,this))return Ct(e_,this).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}mt(!1,"unsupported network","network",this.network)}getUrl(e,t){let n=Object.keys(t).reduce(((e,n)=>{const r=t[n];return null!=r&&(e+=`&${n}=${r}`),e}),"");return this.apiKey&&(n+=`&apikey=${this.apiKey}`),`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}&module=${e}${n}`}getPostUrl(){return`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t.chainid=this.network.chainId,t}async detectNetwork(){return this.network}
2async fetch(e,t,n){const r=ZN++,i=n?this.getPostUrl():this.getUrl(e,t),a=n?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:r,url:i,payload:a});const o=new Zk(i);o.setThrottleParams({slotInterval:1e3}),o.retryFunc=(e,t,n)=>(this.isCommunityResource()&&uA("Etherscan"),Promise.resolve(!0)),o.processFunc=async(t,n)=>{const i=n.hasBody()?JSON.parse(ov(n.body)):{},a=("string"===typeof i.result?i.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?i&&0==i.status&&"NOTOK"==i.message&&a&&(this.emit("debug",{action:"receiveError",id:r,reason:"proxy-NOTOK",error:i}),n.throwThrottleError(i.result,2e3)):a&&(this.emit("debug",{action:"receiveError",id:r,reason:"null result",error:i.result}),n.throwThrottleError(i.result,2e3)),n},a&&(o.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),o.body=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"));const s=await o.send();try{s.assertOk()}catch(c){this.emit("debug",{action:"receiveError",id:r,error:c,reason:"assertOk"}),gt(!1,"response error","SERVER_ERROR",{request:o,response:s})}s.hasBody()||(this.emit("debug",{action:"receiveError",id:r,error:"missing body",reason:"null body"}),gt(!1,"missing response","SERVER_ERROR",{request:o,response:s}));const l=JSON.parse(ov(s.body));return"proxy"===e?("2.0"!=l.jsonrpc&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"invalid JSON-RPC"}),gt(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:o,response:s,info:{result:l}}
2)),l.error&&(this.emit("debug",{action:"receiveError",id:r,result:l,reason:"JSON-RPC error"}),gt(!1,"error response","SERVER_ERROR",{request:o,response:s,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):0!=l.status||"No records found"!==l.message&&"No transactions found"!==l.message?((1!=l.status||"string"===typeof l.message&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:r,result:l}),gt(!1,"error response","SERVER_ERROR",{request:o,response:s,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result):(this.emit("debug",{action:"receiveRequest",id:r,result:l}),l.result)}_getTransactionPostData(e){const t={};for(let n in e){if(JN.indexOf(n)>=0)continue;if(null==e[n])continue;let r=e[n];if(("type"!==n||0!==r)&&("blockTag"!==n||"latest"!==r)){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n])r=en(r);else if("accessList"===n)r="["+Tw(r).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]";else if("blobVersionedHashes"===n){if(0===r.length)continue;gt(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else r=jt(r);t[n]=r}}return t}_checkError(e,t,n){let r="";if(ht(t,"SERVER_ERROR")){try{r=t.info.result.error.message}catch(i){}if(!r)try{r=t.info.message}catch(i){}}if("estimateGas"===e.method&&!r.match(/revert/i)&&r.match(/insufficient funds/i)&>(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&r.match(/execution reverted/i)){let n="";try{n=t.info.result.error.data}catch(t){}const r=cw.getBuiltinCallException(e.method,e.transaction,n);throw r.info={request:e,error:t},r}if(r&&"broadcastTransaction"===e.method){const t=nC.from(e.signedTransaction);r.match(/replacement/i)&&r.match(/underpriced/i)&>(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),r.match(/insufficient funds/)&>(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),r.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&>(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>this._checkError(e,t,e.signedTransaction)));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});gt(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let t=this._getAddress(e);var n;(n=t)&&"function"===typeof n.then&&(t=await t);try{const e=await this.fetch("contract",{action:"getabi",address:t}),n=JSON.parse(e);return new Ak(t,n,this)}catch(r){return null}}isCommunityResource(){return null==this.apiKey}}const n_=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof global)return global;throw new Error("unable to locate global object")}().WebSocket;var r_=new WeakMap,i_=new WeakMap,a_=new WeakMap,o_=new WeakMap,s_=new WeakMap;class l_{get filter(){return JSON.parse(Ct(i_,this))}constructor(e,t){kt(this,r_,void 0),kt(this,i_,void 0),kt(this,a_,void 0),kt(this,o_,void 0),kt(this,s_,void 0),Ot(r_,this,e),Ot(i_,this,JSON.stringify(t)),Ot(a_,this,null),Ot(o_,this,null),Ot(s_,this,null)}start(){Ot(a_,this,Ct(r_,this).send("eth_subscribe",this.filter).then((e=>(Ct(r_,this)._register(e,this),e))))}stop(){Ct(a_,this).then((e=>{Ct(r_,this).destroyed||Ct(r_,this).send("eth_unsubscribe",[e])})),Ot(a_,this,null)}pause(e){gt(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),Ot(o_,this,!!e)}resume(){Ot(o_,this,null)}_handleMessage(e){if(null!=Ct(a_,this)&&null===Ct(o_,this)){let t=Ct(s_,this);t=null==t?this._emit(Ct(r_,this),e):t.then((async()=>{await this._emit(Ct(r_,this),e)})),Ot(s_,this,t.then((()=>{Ct(s_,this)===t&&Ot(s_,this,null)})))}}async _emit(e,t){throw new Error("sub-classes must implemente this; _emit")}}class c_ extends l_{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}class u_ extends l_{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}var d_=new WeakMap;class h_ extends l_{get logFilter(){return JSON.parse(Ct(d_,this))}constructor(e,t){super(e,["logs",t]),kt(this,d_,void 0),Ot(d_,this,JSON.stringify(t))}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}var f_=new WeakMap,p_=new WeakMap,g_=new WeakMap;class m_ extends jN{constructor(e,t){const n=Object.assign({},null!=t?t:{});mt(null==n.batchMaxCount||1===n.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),n.batchMaxCount=1,null==n.staticNetwork&&(n.staticNetwork=!0),super(e,n),kt(this,f_,void 0),kt(this,p_,void 0),kt(this,g_,void 0),Ot(f_,this,new Map),Ot(p_,this,new Map),Ot(g_,this,new Map)}
2_getSubscriber(e){switch(e.type){case"close":return new kT("close");case"block":return new c_(this);case"pending":return new u_(this);case"event":return new h_(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new kT("drop-log")}return super._getSubscriber(e)}_register(e,t){Ct(p_,this).set(e,t);const n=Ct(g_,this).get(e);if(n){for(const e of n)t._handleMessage(e);Ct(g_,this).delete(e)}}async _send(e){mt(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise(((t,n)=>{Ct(f_,this).set(e.id,{payload:e,resolve:t,reject:n})}));return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&"object"===typeof t&&"id"in t){const e=Ct(f_,this).get(t.id);if(null==e)return void this.emit("error",pt("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));Ct(f_,this).delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",pt("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));{const e=t.params.subscription,n=Ct(p_,this).get(e);if(n)n._handleMessage(t.params.result);else{let n=Ct(g_,this).get(e);null==n&&(n=[],Ct(g_,this).set(e,n)),n.push(t.params.result)}}}}async _write(e){throw new Error("sub-classes must override this")}}var y_=new WeakMap,b_=new WeakMap;class v_ extends m_{get websocket(){if(null==Ct(b_,this))throw new Error("websocket closed");return Ct(b_,this)}constructor(e,t,n){super(t,n),kt(this,y_,void 0),kt(this,b_,void 0),"string"===typeof e?(Ot(y_,this,(()=>new n_(e))),Ot(b_,this,Ct(y_,this).call(this))):"function"===typeof e?(Ot(y_,this,e),Ot(b_,this,e())):(Ot(y_,this,null),Ot(b_,this,e)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=Ct(b_,this)&&(Ct(b_,this).close(),Ot(b_,this,null)),super.destroy()}}const x_="84842078b09946638c03157f83405213";class w_ extends v_{constructor(e,t){const n=new k_(e,t),r=n._getConnection();gt(!r.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});super(r.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),n._network),St(this,"projectId",void 0),St(this,"projectSecret",void 0),ut(this,{projectId:n.projectId,projectSecret:n.projectSecret})}isCommunityResource(){return this.projectId===x_}}class k_ extends UN{constructor(e,t,n){null==e&&(e="mainnet");const r=AA.from(e);null==t&&(t=x_),null==n&&(n=null);super(k_.getRequest(r,t,n),r,{staticNetwork:r}),St(this,"projectId",void 0),St(this,"projectSecret",void 0),ut(this,{projectId:t,projectSecret:n})}_getProvider(e){try{return new k_(e,this.projectId,this.projectSecret)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.projectId===x_}static getWebSocketProvider(e,t){return new w_(e,t)}static getRequest(e,t,n){null==t&&(t=x_),null==n&&(n=null);const r=new Zk(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":case"base-goerli":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bsc-mainnet.infura.io";case"bnbt":return"bsc-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}mt(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return r.allowGzip=!0,n&&r.setCredentials("",n),t===x_&&(r.retryFunc=async(e,t,n)=>(uA("InfuraProvider"),!0)),r}}const A_="919b412a057b5e9c9b6dce193c5a60242d6efadb";class E_ extends UN{constructor(e,t){null==e&&(e="mainnet");const n=AA.from(e);null==t&&(t=A_);
2super(E_.getRequest(n,t),n,{staticNetwork:n}),St(this,"token",void 0),ut(this,{token:t})}_getProvider(e){try{return new E_(e,this.token)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.token===A_}static getRequest(e,t){null==t&&(t=A_);const n=new Zk(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}mt(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===A_&&(n.retryFunc=async(e,t,n)=>(uA("QuickNodeProvider"),!0)),n}}const S_=BigInt("1"),P_=BigInt("2");function C_(){return(new Date).getTime()}function O_(e){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?{type:"bigint",value:t.toString()}:t))}const T_={stallTimeout:400,priority:1,weight:1},N_={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function __(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(__).join(",")+"]";if("object"===typeof e&&"function"===typeof e.toJSON)return __(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{"+t.map((t=>`${JSON.stringify(t)}:${__(e[t])}`)).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function I_(e,t){if("error"in t){const e=t.error;let n;return n=ht(e,"CALL_EXCEPTION")?__(Object.assign({},e,{shortMessage:void 0,reason:void 0,info:void 0})):__(e),{tag:n,value:e}}const n=t.result;return{tag:__(n),value:n}}function R_(e,t){const n=new Map;for(const{value:i,tag:a,weight:o}of t){const e=n.get(a)||{value:i,weight:0};e.weight+=o,n.set(a,e)}let r=null;for(const i of n.values())i.weight>=e&&(!r||i.weight>r.weight)&&(r=i);if(r)return r.value}function M_(e,t){let n=0;const r=new Map;let i=null;const a=[];for(const{value:s,tag:l,weight:c}of t)if(s instanceof Error){const e=r.get(l)||{value:s,weight:0};e.weight+=c,r.set(l,e),(null==i||e.weight>i.weight)&&(i=e)}else a.push(BigInt(s)),n+=c;if(n<e)return i&&i.weight>=e?i.value:void 0;a.sort(((e,t)=>e<t?-1:t>e?1:0));const o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o]+S_)/P_}function j_(e,t){const n=R_(e,t);if(void 0!==n)return n;for(const r of t)if(r.value)return r.value}var L_=new WeakMap,B_=new WeakMap,F_=new WeakMap,D_=new WeakSet;class U_ extends WT{constructor(e,t,n){super(t,n),wt(this,D_),St(this,"quorum",void 0),St(this,"eventQuorum",void 0),St(this,"eventWorkers",void 0),kt(this,L_,void 0),kt(this,B_,void 0),kt(this,F_,void 0),Ot(L_,this,e.map((e=>e instanceof WT?Object.assign({provider:e},T_,N_):Object.assign({},T_,e,N_)))),Ot(B_,this,-2),Ot(F_,this,null),n&&null!=n.quorum?this.quorum=n.quorum:this.quorum=Math.ceil(Ct(L_,this).reduce(((e,t)=>e+=t.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,mt(this.quorum<=Ct(L_,this).reduce(((e,t)=>e+t.weight),0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return Ct(L_,this).map((e=>{const t=Object.assign({},e);for(const n in t)"_"===n[0]&&delete t[n];return t}))}async _detectNetwork(){return AA.from(qt(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{const n="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(n,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}async _perform(e){if("broadcastTransaction"===e.method){const t=Ct(L_,this).map((e=>null)),n=Ct(L_,this).map((async(n,r)=>{let{provider:i,weight:a}=n;try{const n=await i._perform(e);t[r]=Object.assign(I_(e.method,{result:n}),{weight:a})}catch(o){t[r]=Object.assign(I_(e.method,{error:o}),{weight:a})}}));for(;;){const e=t.filter((e=>null!=e));for(const{value:t}of e)if(!(t instanceof Error))return t;const r=R_(this.quorum,t.filter((e=>null!=e)));if(ht(r,"INSUFFICIENT_FUNDS"))throw r;const i=n.filter(((e,n)=>null==t[n]));if(0===i.length)break;await Promise.race(i)}const r=j_(this.quorum,t);if(gt(void 0!==r,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(O_)}}),r instanceof Error)throw r;return r}await Pt(D_,this,H_).call(this);const t=new Set;let n=0;for(;;){const r=Pt(D_,this,W_).call(this,t,e);if(null==r)break;
2if(n+=r.config.weight,n>=this.quorum)break}const r=await Pt(D_,this,G_).call(this,t,e);for(const i of t)i.perform&&null==i.result&&i.config.lateResponses++;return r}async destroy(){for(const{provider:e}of Ct(L_,this))e.destroy();super.destroy()}}function z_(e){const t=Array.from(e).map((e=>e.config)),n=Ct(L_,this).slice();!function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(n),n.sort(((e,t)=>e.priority-t.priority));for(const r of n)if(!r._lastFatalError&&-1===t.indexOf(r))return r;return null}function W_(e,t){const n=Pt(D_,this,z_).call(this,e);if(null==n)return null;const r={config:n,result:null,didBump:!1,perform:null,staller:null},i=C_();return r.perform=(async()=>{try{n.requests++;const e=await this._translatePerform(n.provider,t);r.result={result:e}}catch(a){n.errorResponses++,r.result={error:a}}const e=C_()-i;n._totalTime+=e,n.rollingDuration=.95*n.rollingDuration+.05*e,r.perform=null})(),r.staller=(async()=>{var e;await(e=n.stallTimeout,new Promise((t=>{setTimeout(t,e)}))),r.staller=null})(),e.add(r),r}async function H_(){let e=Ct(F_,this);if(!e){const t=[];Ct(L_,this).forEach((e=>{t.push((async()=>{await async function(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{const t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=C_()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}(e,0),e._lastFatalError||(e._network=await e.provider.getNetwork())})())})),Ot(F_,this,e=(async()=>{await Promise.all(t);let e=null;for(const t of Ct(L_,this)){if(t._lastFatalError)continue;const n=t._network;null==e?e=n.chainId:n.chainId!==e&>(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await e}async function V_(e,t){const n=[];for(const r of e)if(null!=r.result){const{tag:e,value:i}=I_(t.method,r.result);n.push({tag:e,value:i,weight:r.config.weight})}if(!(n.reduce(((e,t)=>e+t.weight),0)<this.quorum)){switch(t.method){case"getBlockNumber":{-2===Ct(B_,this)&&Ot(B_,this,Math.ceil(Qt(M_(this.quorum,Ct(L_,this).filter((e=>!e._lastFatalError)).map((e=>({value:e.blockNumber,tag:Qt(e.blockNumber).toString(),weight:e.weight})))))));const e=function(e,t){if(1===e)return Qt(M_(e,t),"%internal");const n=new Map,r=(e,t)=>{const r=n.get(e)||{result:e,weight:0};r.weight+=t,n.set(e,r)};for(const{weight:o,value:s}of t){const e=Qt(s);r(e-1,o),r(e,o),r(e+1,o)}let i,a=0;for(const{weight:o,result:s}of n.values())o>=e&&(o>a||null!=i&&o===a&&s>i)&&(a=o,i=s);return i}(this.quorum,n);if(void 0===e)return;return e>Ct(B_,this)&&Ot(B_,this,e),Ct(B_,this)}case"getGasPrice":case"getPriorityFee":case"estimateGas":return M_(this.quorum,n);case"getBlock":return"blockTag"in t&&"pending"===t.blockTag?j_(this.quorum,n):R_(this.quorum,n);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return R_(this.quorum,n);case"broadcastTransaction":return j_(this.quorum,n)}gt(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${O_(t.method)})`})}}async function G_(e,t){if(0===e.size)throw new Error("no runners?!");const n=[];let r=0;for(const a of e)a.perform&&n.push(a.perform),a.staller?n.push(a.staller):a.didBump||(a.didBump=!0,r++);const i=await Pt(D_,this,V_).call(this,e,t);if(void 0!==i){if(i instanceof Error)throw i;return i}for(let a=0;a<r;a++)Pt(D_,this,W_).call(this,e,t);return gt(n.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map((e=>O_(e.result)))}}),await Promise.race(n),await Pt(D_,this,G_).call(this,e,t)}const Y_="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function q_(e,t){null==t&&(t={});const n=e=>"-"!==t[e]&&("string"===typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"===typeof e&&e.match(/^https?:/))return new UN(e);if("string"===typeof e&&e.match(/^wss?:/)||(r=e)&&"function"===typeof r.send&&"function"===typeof r.close)return new v_(e);var r;let i=null;try{i=AA.from(e)}catch(s){}const a=[];if(n("publicPolygon")&&i&&("matic"===i.name?a.push(new UN("https://polygon-rpc.com/",i,{staticNetwork:i})):"matic-amoy"===i.name&&a.push(new UN("https://rpc-amoy.polygon.technology/",i,{staticNetwork:i}))),n("alchemy"))try{a.push(new YN(e,t.alchemy))}catch(s){}if(n("ankr")&&null!=t.ankr)try{a.push(new VN(e,t.ankr))}catch(s){}if(n("chainstack"))try{a.push(new XN(e,t.chainstack))}catch(s){}if(n("cloudflare"))try{a.push(new $N(e))}catch(s){}if(n("etherscan"))try{a.push(new t_(e,t.etherscan))}catch(s){}if(n("infura"))try{let n,r=t.infura;"object"===typeof r&&(n=r.projectSecret,r=r.projectId),a.push(new k_(e,r,n))}catch(s){}if(n("quicknode"))try{let n=t.quicknode;a.push(new E_(e,n))}catch(s){}if(gt(a.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===a.length)return a[0];let o=Math.floor(a.length/2);return o>2&&(o=2),i&&-1!==Y_.indexOf(i.name)&&(o=1),t&&t.quorum&&(o=t.quorum),new U_(a,void 0,{quorum:o})}n(59962);const X_=n(51915);
2new Ak("0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",X_,q_("http://127.0.0.1:8545")),new Ak("0x10ED43C718714eb63d5aA57B78B54704E256024E",X_,q_("http://127.0.0.1:8545"));var $_=n(41397);n(59962),n(39365);const K_=n(73207);const Q_=ds()((e=>{const[t,n]=(0,r.useState)(!1);function i(e){if(1337==e)return"bsc"}function a(e){return 1337==e||1==e||56==e?"0xacDa51b04EEbC7D6e18AD7ebAC32C5e6516CcdE0":void 0}J();const[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),[p,g]=(0,r.useState)(!1),[m,y]=(0,r.useState)(!1),[b,v]=(0,r.useState)(!1),[x,w]=(0,r.useState)(!1),[k,A]=(0,r.useState)(!1),[E,S]=(0,r.useState)(!1),[P,C]=(0,r.useState)(!1),[O,T]=(0,r.useState)(!1),[N,_]=(0,r.useState)(!1),[I,R]=(0,r.useState)(!1),[M,j]=(0,r.useState)(""),[L,B]=(0,r.useState)(""),[F,D]=(0,r.useState)(""),[U,z]=(0,r.useState)(""),[W,H]=(0,r.useState)(!1),[V,G]=(0,r.useState)(!1),[Y,q]=(0,r.useState)(0),[X,$]=(0,r.useState)(0),[K,Q]=(0,r.useState)(0),[Z,ee]=(0,r.useState)(0),[te,ne]=(0,r.useState)(0),[re,ie]=(0,r.useState)(0),[ae,oe]=(0,r.useState)(0),[se,le]=(0,r.useState)(0),[ce,ue]=(0,r.useState)(0),[de,he]=(0,r.useState)([{}]);function fe(e,t){(async(e,t)=>{let n="0x5F474906637bdCDA05f29C74653F6962bb0f8eDa";56!=t&&"bsc"!=i(t)||(n="0xbe4cb2c354480042a39350a0c6c26bf54786539f"),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=defx&functionname=balanceOf&args=["'+e+'"]').then((e=>e.json())).then((e=>{f(e.data),d(parseFloat(En(e.data,"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))})),1!=t&&"eth"!=i(t)||fetch("https://defxstats.com:3001/getEthBalance?address="+e).then((e=>e.json())).then((e=>{console.log("Eth balance: "+e.data),y(BigInt(e.data)),g(parseFloat(En(BigInt(e.data),"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))})),56!=t&&"bsc"!=i(t)||Zg({address:"0x55d398326f99059ff775485246999027b3197955",abi:K_,functionName:"balanceOf",args:[e]}).then((e=>{console.log("USDT Balance: "+e),w(e.toString()),v(parseFloat(En(e,"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))}))})(e,t),(async(e,t)=>{let n=a(t),r="0xbDEe9c999b7f1A07bf62C2006a5cFb3dD40B1776",o="0x5F474906637bdCDA05f29C74653F6962bb0f8eDa";56!=t&&"bsc"!=i(t)||(r="0x484deb91c37f96f7cac623bf787cc96ee0b51309",o="0xbe4cb2c354480042a39350a0c6c26bf54786539f"),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=farming&functionname=getEarnedReward&args=["'+e+'"]').then((e=>e.json())).then((e=>{console.log("User reward: "+BigInt(e.data)),R(BigInt(e.data).toString()),T(parseFloat(En(BigInt(e.data),"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))})),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=defx&functionname=allowance&args=["'+e+'","'+n+'"]').then((e=>e.json())).then((e=>{console.log("Allowance: "+En(BigInt(e.data),"ether")),S(BigInt(e.data).toString()),A(parseFloat(En(BigInt(e.data),"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))})),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=farming&functionname=getUserRewardRate&args=["'+e+'"]').then((e=>e.json())).then((e=>{console.log("User rewardrate: "+BigInt(e.data)),j(parseFloat(En(BigInt(e.data),6)).toLocaleString("en-US",{maximumFractionDigits:2}))})),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=farming&functionname=getDepositedAssets&args=["'+e+'"]').then((e=>e.json())).then((e=>{e=JSON.parse(JSON.stringify(e).replace('"[',"[").replace(']"',"]"));let t=parseFloat(En(BigInt(e.data[0]),18)),n=parseFloat(En(BigInt(e.data[1]),18)),r=0!=t&&0!=n?t/n:0;B(t.toLocaleString("en-US",{maximumFractionDigits:2})),D(n.toLocaleString("en-US",{maximumFractionDigits:2})),z(r.toLocaleString("en-US",{maximumFractionDigits:4}))}))})(e,t),(async(e,t)=>{a(t);let n="0xbDEe9c999b7f1A07bf62C2006a5cFb3dD40B1776";56!=t&&"bsc"!=i(t)||(n="0x484deb91c37f96f7cac623bf787cc96ee0b51309"),fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=farming&functionname=getDepositedAmount&args=["'+e+'"]').then((e=>e.json())).then((e=>{e=JSON.parse(JSON.stringify(e).replace('"[',"[").replace(']"',"]")),console.log("Data: "+e.data),console.log("Deposited amount: "+En(BigInt(e.data[0]),"ether")),G(e.data[0].toString()),H(parseFloat(En(BigInt(e.data[0]),"ether")).toLocaleStr
2ing("en-US",{maximumFractionDigits:2})),1==t||"eth"==i(t)?(ne(e.data[1].toString()),$(parseFloat(En(BigInt(e.data[1]),"ether")).toLocaleString("en-US",{maximumFractionDigits:6}))):56!=t&&"bsc"!=i(t)||(ie(e.data[1].toString()),Q(parseFloat(En(BigInt(e.data[1]),"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))),ee(e.data[2].toString()),q(parseFloat(En(BigInt(e.data[2]),"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))}))})(e,t),(async(e,t)=>{a(t),fetch("https://defxstats.com:3001/getContractData?chain="+t+"&contract=farming&functionname=getAllocationData&args=[]").then((e=>e.json())).then((e=>{e=JSON.parse(JSON.stringify(e).replace('"[',"[").replace(']"',"]")),console.log("Max farm amount: "+e.data[0]),console.log("Current max alloc: "+e.data[1]),console.log("Current price: "+e.data[2]);let t=[];for(let n=0;n<e.data[3].length;n++){let r;r=n<e.data[3].length-1?"$"+parseFloat(En(BigInt(e.data[3][n]),9)).toLocaleString("en-US",{maximumFractionDigits:2,minimumFractionDigits:2})+" - $"+parseFloat(En(BigInt(e.data[3][n+1]),9)).toLocaleString("en-US",{maximumFractionDigits:2,minimumFractionDigits:2}):"$"+parseFloat(En(BigInt(e.data[3][n]),9)).toLocaleString("en-US",{maximumFractionDigits:2,minimumFractionDigits:2})+"+",t.push({priceRange:r,alloc:parseFloat(Sn(BigInt(e.data[4][n]))).toLocaleString("en-US",{maximumFractionDigits:2})})}he(t),oe(En(BigInt(e.data[2]),6)),le(parseFloat(Sn(BigInt(e.data[1])))),ue(parseFloat(Sn(BigInt(e.data[0]))))}))})(0,t)}return document.title="DEFX Farming | Add liquidity and earn rewards",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Farming"})})})}),function(){const{address:e,connector:t,isConnected:n}=Um(),{connect:a,connectors:o,error:s,isLoading:l,pendingConnector:c}=Wm(),{disconnect:d}=Gm(),{chain:f}=Ym(),{chains:g,pendingChainId:m,switchNetwork:y}=Xm({chains:[ml,ey,eb],onSuccess(t){fe(e,f.id)}}),[v,x]=(0,r.useState)(!1);v&&console.log("refreshtoggled");const[w,k]=r.useState({num:0});return(0,r.useEffect)((()=>{if(n&&On(null===f||void 0===f?void 0:f.id)){const t=setTimeout((()=>k({num:w.num+1})),1e4);return fe(e,f.id),()=>clearTimeout(t)}}),[n,e,null===f||void 0===f?void 0:f.id,w]),n&&!On(null===f||void 0===f?void 0:f.id)?(0,Ly.jsx)(Rr,{color:"warning",children:"Please switch your wallet to Ethereum or BNB Smart Chain to use this feature."}):n?(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12"}),(0,Ly.jsxs)(Rr,{color:"info",children:["You are currently connected to ",(0,Ly.jsx)("strong",{children:1==f.id||"eth"==i(f.id)?"Ethereum":"BNB Smart Chain"}),". Looking for ",(0,Ly.jsx)("strong",{children:1==f.id||"eth"==i(f.id)?"BNB Smart Chain":"Ethereum"}),"?\xa0\xa0\xa0.",(0,Ly.jsxs)("button",{className:"btn btn-primary w-md",onClick:()=>{1==f.id?y(56):y(1)},children:["Switch to ",1==f.id||"eth"==i(f.id)?"BNB Smart Chain":"Ethereum"]})]}),(0,Ly.jsx)(Ly.Fragment,{children:(0,Ly.jsx)("div",{children:s&&s.message})})]})})}),(0,Ly.jsxs)(Jr,{xl:4,children:[(0,Ly.jsxs)(Jr,{xl:12,children:[(0,Ly.jsxs)(Rr,{color:"danger",children:[(0,Ly.jsx)("b",{children:"Farming comes with a risk!"}),(0,Ly.jsx)("br",{}),"By farming, you are adding liquidity to the DEX pool. The contents of your liquidity will change. Please make sure you understand the risk of adding liquidity before continuing.",(0,Ly.jsx)("br",{}),"Please read ",(0,Ly.jsx)("a",{href:"https://docs.uniswap.org/contracts/v2/concepts/advanced-topics/understanding-returns",target:"_blank",children:"this article"})," for more information."]}),(0,Ly.jsx)(Ly.Fragment,{})]}),(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12",children:"Available allocation"}),(0,Ly.jsx)("br",{}),"Current DEFX price: ",(0,Ly.jsxs)("b",{children:["$",ae]}),(0,Ly.jsx)("br",{}),"Max total allocation: ",(0,Ly.jsxs)("b",{children:[se.toLocaleStr
2ing("en-US",{maximumFractionDigits:2})," DEFX"]}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),"Used allocation: ",(0,Ly.jsxs)("b",{children:[(se-ce).toLocaleString("en-US",{maximumFractionDigits:2})," DEFX"]}),(0,Ly.jsx)("br",{}),"Available allocation: ",(0,Ly.jsxs)("b",{children:[ce.toLocaleString("en-US",{maximumFractionDigits:2})," DEFX"]}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsxs)(Zy,{className:"progress-sm",striped:!0,style:{height:"35px",fontSize:"120%"},value:ce,max:se,children:[ce.toLocaleString("en-US",{maximumFractionDigits:2})," DEFX left"]}),(0,Ly.jsx)(Ly.Fragment,{})]})})]}),(0,Ly.jsx)(Jr,{xl:5,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12",children:"Farm return rate"}),"The DEFX farm uses a dynamic return rate based on your average entry price. The return rate is calculated within a price range from $0.05 to $1.00 and ranges from a 50% to 75% annual return on the DEFX you've added to the farm.",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),"For example:",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("div",{className:"table-responsive",children:(0,Ly.jsxs)("table",{className:"table table-bordered table-striped mb-0",children:[(0,Ly.jsx)("thead",{className:"text-left",children:(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("th",{scope:"col",children:(0,Ly.jsx)("span",{className:"fw-normal",children:"Average entry"})}),(0,Ly.jsx)("th",{scope:"col",children:(0,Ly.jsx)("span",{className:"fw-normal",children:"DEFX added"})}),(0,Ly.jsx)("th",{scope:"col",children:(0,Ly.jsx)("span",{className:"fw-normal",children:"Return rate"})}),(0,Ly.jsx)("th",{scope:"col",children:(0,Ly.jsx)("span",{className:"fw-normal",children:"Return (1 year)"})})]})}),(0,Ly.jsxs)("tbody",{children:[(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:"$0.05 (or lower)"}),(0,Ly.jsx)("td",{children:"100.000 DEFX"}),(0,Ly.jsx)("td",{children:"50%"}),(0,Ly.jsx)("td",{children:"50.000 DEFX"})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:"$0.25"}),(0,Ly.jsx)("td",{children:"100.000 DEFX"}),(0,Ly.jsx)("td",{children:"55,26%"}),(0,Ly.jsx)("td",{children:"55.263 DEFX"})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:"$0.525"}),(0,Ly.jsx)("td",{children:"100.000 DEFX"}),(0,Ly.jsx)("td",{children:"62,50%"}),(0,Ly.jsx)("td",{children:"62.500 DEFX"})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:"$1.00 (or higher)"}),(0,Ly.jsx)("td",{children:"100.000 DEFX"}),(0,Ly.jsx)("td",{children:"75%"}),(0,Ly.jsx)("td",{children:"75.000 DEFX"})]})]})]})}),(0,Ly.jsx)("br",{}),"* Your average entry will change proportionally when adding more, or removing liquidity.",(0,Ly.jsx)(Ly.Fragment,{})]})})}),(0,Ly.jsx)(Jr,{xl:3,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12",children:"Farm allocations"}),"The DEFX farm has allocations set based on the current price. If there is no allocation left at the current price, please check back later.",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("div",{className:"table-responsive",children:(0,Ly.jsxs)("table",{className:"table table-bordered table-striped mb-0",children:[(0,Ly.jsx)("thead",{className:"text-left",children:(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("th",{scope:"col",children:(0,Ly.jsx)("span",{className:"fw-normal",children:"Price"})}),(0,Ly.jsx)("th",{scope:"col",children:(0,Ly.jsx)("span",{className:"fw-normal",children:"Max total allocation"})})]})}),(0,Ly.jsx)("tbody",{children:de.map((function(e){return(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:e.priceRange}),(0,Ly.jsxs)("td",{children:[e.alloc," DEFX"]})]})}))})]})}),(0,Ly.jsx)(Ly.Fragment,{})]})})}),(0,Ly.jsx)(Jr,{xl:4,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsxs)(mi,{className:"mb-4",children:["Deposit DEFX + ",1==f.id||"eth"==i(f.id)?"ETH":"USDT"]}
2),(0,Ly.jsx)("span",{id:"userbalanceDEFXBN",style:{display:"none"},children:h}),(0,Ly.jsx)("span",{id:"allowanceDEFXBN",style:{display:"none"},children:E}),"Available balance:",(0,Ly.jsx)("br",{}),"DEFX: ",(0,Ly.jsx)("strong",{children:u}),(0,Ly.jsx)("br",{}),1==f.id||"eth"==i(f.id)?(0,Ly.jsxs)(r.Fragment,{children:["ETH: ",(0,Ly.jsx)("strong",{children:p}),(0,Ly.jsx)("br",{})," "]}):(0,Ly.jsxs)(r.Fragment,{children:["USDT: ",(0,Ly.jsx)("strong",{children:b}),(0,Ly.jsx)("br",{})," "]}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)(ub,{},`${e}:${null===f||void 0===f?void 0:f.id}`)]})})}),(0,Ly.jsx)(Jr,{xl:4,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Harvest rewards"}),(0,Ly.jsx)("span",{id:"claimrewardsBN",style:{display:"none"},children:I}),(0,Ly.jsxs)("span",{style:{color:"#878ba6"},children:[(0,Ly.jsx)("strong",{children:"Your farm position"}),(0,Ly.jsx)("br",{}),"USD value added: ",(0,Ly.jsxs)("strong",{children:["$",L]}),(0,Ly.jsx)("br",{}),"DEFX added: ",(0,Ly.jsxs)("strong",{children:[F," DEFX"]}),(0,Ly.jsx)("br",{}),"Average entry: ",(0,Ly.jsxs)("strong",{children:["$",U]}),(0,Ly.jsx)("br",{}),"Your annual yield: ",(0,Ly.jsxs)("strong",{children:[M,"%"]})," on added DEFX",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{})]}),"Available rewards: ",(0,Ly.jsxs)("strong",{children:[O," DEFX"]}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("span",{style:{color:"#878ba6"},children:"Rewards can be collected on an hourly interval"}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)(nb,{setToggleRefresh:x})]})})}),(0,Ly.jsx)(Jr,{xl:4,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Withdraw"}),(0,Ly.jsx)("span",{id:"unstakeBN",style:{display:"none"},children:V}),"Your position: ",(0,Ly.jsxs)("strong",{children:[W," LP"]}),(0,Ly.jsx)("br",{}),"Containing: ",(0,Ly.jsxs)("strong",{children:[Y," DEFX + ",1==f.id||"eth"==i(f.id)?X+" ETH":K+" USDT"]}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),W&&0!=W?(0,Ly.jsx)(ib,{}):""]})})})]}):(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsx)(ui,{children:(0,Ly.jsx)(mi,{className:"mb-12",children:"Connect your wallet to access farming functionality."})})})})}()]})})})})),J_=n(89444);function Z_(){const[e,t]=r.useState(0),{chain:n}=Ym();n.id;let i=J_;const{config:a}=Qm({address:"0xC143D461f095f2317A2C2E198F19Bbe47b25999f",abi:i,functionName:"withdrawTokens",args:[e?Pn(e).toString():0]}),{data:o,write:s}=Km(a),{isLoading:l,isSuccess:c}=Zm({hash:null===o||void 0===o?void 0:o.hash});return(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),null===s||void 0===s||s()},children:[(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)(Ay,{htmlFor:"formrow-vestclaimamount-Input",children:"Amount"}),(0,Ly.jsx)(jy,{type:"text",className:"form-control",id:"formrow-vestclaimamount-Input",onBlur:e=>{t(e.target.value)},placeholder:"0"})]}),(0,Ly.jsx)("div",{className:"d-flex justify-content-end",children:(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{cursor:"pointer"},onClick:()=>{!function(){let e=En(document.getElementById("vestclaimrewardsBN").textContent,"ether");document.getElementById("formrow-vestclaimamount-Input").value=e}()},children:"MAX"})}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!s||l||0n==e||!0,children:l?"Claiming...":"Claim"}),c&&(0,Ly.jsxs)("div",{children:["You've successfully claimed your DEFX!",(0,Ly.jsx)("div",{children:(0,Ly.jsx)("a",{href:`https://etherscan.io//tx/${null===o||void 0===o?void 0:o.hash}`,target:"_blank",children:"View transaction"})})]})]})]})}n(89444);const eI=ds()((e=>{const[t,n]=(0,r.useState)(!1),[i,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),l=async(e,t)=>{if(1!=t)return;fetch("https://defxstats.com:3001/getContractData?chain="+t+'&contract=vesting&functionname=getAvailableTokens&args=["'+e+'"]').then((e=>e.json())).then((e=>{s(e.data),a(parseFloat(En(e.data,"ether")).toLocaleString("en-US",{maximumFractionDigits:2}))}))};return document.title="DEFX Vesting | Claim your presale tokens",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Vesting"})})})}),function(){const{address:e,connector:t,isConnected:n}=Um(),{connect:a,connectors:s,error:c,isLoading:u,pendingConnector:d}=(J(),Wm()),{disconnect:h}=Gm(),{chain:f}
2=Ym(),{chains:p,pendingChainId:g,switchNetwork:m}=Xm({chains:[ml,ey],onSuccess(t){n&&On(null===f||void 0===f?void 0:f.id)&&l(e,f.id)}});return(0,r.useEffect)((()=>{n&&On(null===f||void 0===f?void 0:f.id)&&l(e,f.id)}),[n,e,null===f||void 0===f?void 0:f.id]),n&&!On(null===f||void 0===f?void 0:f.id)?(0,Ly.jsx)(Rr,{color:"warning",children:"Please switch your wallet to Ethereum or BNB Smart Chain to use this feature."}):n?(0,Ly.jsx)(zr,{children:56==f.id?(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12"}),(0,Ly.jsxs)(Rr,{color:"info",children:["You are currently connected to ",(0,Ly.jsx)("strong",{children:"BNB Smart Chain"}),". Vesting is only available on Ethereum.\xa0\xa0\xa0",(0,Ly.jsx)("button",{className:"btn btn-primary w-md",onClick:()=>{m(1)},children:"Switch to Ethereum"})]}),(0,Ly.jsx)("div",{children:c&&c.message})]})})}):(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Claim vested tokens"}),i>0?"Vesting is currently unavailable. Please reach out to the Definity Markets team.":(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)("span",{id:"vestclaimrewardsBN",style:{display:"none"},children:o}),"Available tokens: ",(0,Ly.jsx)("strong",{children:i}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)(Z_,{})]})]})})})}):(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsx)(ui,{children:(0,Ly.jsx)(mi,{className:"mb-12",children:"Connect your wallet to access vesting functionality."})})})})}()]})})})}));var tI=n(58735),nI=n.n(tI),rI=n(14198),iI=n.n(rI),aI=n(49995),oI=n(33670);const sI=!1,lI=aI.createContext(null);var cI="unmounted",uI="exited",dI="entering",hI="entered",fI="exiting",pI=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=uI,r.appearStatus=dI):i=hI:i=t.unmountOnExit||t.mountOnEnter?cI:uI,r.state={status:i},r.nextCallback=null,r}ir(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===cI?{status:uI}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==dI&&n!==hI&&(t=dI):n!==dI&&n!==hI||(t=fI)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=oI.findDOMNode(this);t===dI?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===uI&&this.setState({status:cI})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,a=this.getTimeouts(),o=i?a.appear:a.enter;!t&&!r||sI?this.safeSetState({status:hI},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:dI},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,o,(function(){n.safeSetState({status:hI},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!sI?(this.props.onExit(e),this.safeSetState({status:fI},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:uI},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:uI},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===cI)return null;var t=this.props,n=t.children,r=Be(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return aI.createElement(lI.Provider,{value:null},n(e,r));var i=aI.Children.only(n);return aI.createElement(lI.Provider,{value:null},aI.cloneElement(i,r))},t}(aI.Component);function gI(){}pI.contextType=lI,pI.propTypes={},pI.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
2:!0,exit:!0,onEnter:gI,onEntering:gI,onEntered:gI,onExit:gI,onExiting:gI,onExited:gI},pI.UNMOUNTED=0,pI.EXITED=1,pI.ENTERING=2,pI.ENTERED=3,pI.EXITING=4;const mI=pI;n(59051);function yI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var bI=n(30378),vI=n(4322),xI=n.n(vI),wI=xI()(),kI=xI()(),AI=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return St(yI(yI(t=e.call.apply(e,[this].concat(r))||this)),"referenceNode",void 0),St(yI(yI(t)),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}ir(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return bI.createElement(wI.Provider,{value:this.referenceNode},bI.createElement(kI.Provider,{value:this.setReferenceNode},this.props.children))},t}(bI.Component),EI=n(27980),SI=n.n(EI),PI="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,CI=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(PI&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var OI=PI&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),CI))}};function TI(e){return e&&"[object Function]"==={}.toString.call(e)}function NI(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function _I(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function II(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=NI(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:II(_I(e))}function RI(e){return e&&e.referenceNode?e.referenceNode:e}var MI=PI&&!(!window.MSInputMethodContext||!document.documentMode),jI=PI&&/MSIE 10/.test(navigator.userAgent);function LI(e){return 11===e?MI:10===e?jI:MI||jI}function BI(e){if(!e)return document.documentElement;for(var t=LI(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===NI(n,"position")?BI(n):n:e?e.ownerDocument.documentElement:document.documentElement}function FI(e){return null!==e.parentNode?FI(e.parentNode):e}function DI(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||BI(e.firstElementChild)===e)}(o)?o:BI(o);var s=FI(e);return s.host?DI(s.host,t):DI(e,FI(t).host)}function UI(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function zI(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function WI(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],LI(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function HI(e){var t=e.body,n=e.documentElement,r=LI(10)&&getComputedStyle(n);return{height:WI("Height",t,n,r),width:WI("Width",t,n,r)}}var VI=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),GI=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},YI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function qI(e){return YI({},e,{right:e.left+e.width,bottom:e.top+e.height})}function XI(e){var t={};try{if(LI(10)){t=e.getBoundingClientRect();var n=UI(e,"top"),r=UI(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
vendor: 6,380 bytes, line 2
2,a="HTML"===e.nodeName?HI(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,l=e.offsetWidth-o,c=e.offsetHeight-s;if(l||c){var u=NI(e);l-=zI(u,"x"),c-=zI(u,"y"),i.width-=l,i.height-=c}return qI(i)}function $I(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=LI(10),i="HTML"===t.nodeName,a=XI(e),o=XI(t),s=II(e),l=NI(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=qI({top:a.top-o.top-c,left:a.left-o.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=UI(t,"top"),i=UI(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}(d,t)),d}function KI(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===NI(e,"position"))return!0;var n=_I(e);return!!n&&KI(n)}function QI(e){if(!e||!e.parentElement||LI())return document.documentElement;for(var t=e.parentElement;t&&"none"===NI(t,"transform");)t=t.parentElement;return t||document.documentElement}function JI(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=i?QI(e):DI(e,RI(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=$I(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:UI(n),s=t?0:UI(n,"left");return qI({top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a})}(o,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=II(_I(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=$I(s,o,i);if("HTML"!==s.nodeName||KI(o))a=l;else{var c=HI(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var h="number"===typeof(n=n||0);return a.left+=h?n:n.left||0,a.top+=h?n:n.top||0,a.right-=h?n:n.right||0,a.bottom-=h?n:n.bottom||0,a}function ZI(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=JI(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return YI({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function eR(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return $I(n,r?QI(t):DI(t,RI(n)),r)}function tR(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function nR(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function rR(e,t,n){n=n.split("-")[0];var r=tR(e),i={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[nR(s)],i}function iR(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function aR(e,t,n){var r=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=iR(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n));return r.forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&TI(n)&&(t.offsets.popper=qI(t.offsets.popper),t.offsets.reference=qI(t.offsets.reference),t=n(t,e))})),t}function oR(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=eR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ZI(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=rR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=aR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function sR(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function lR(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if("undefined"!==typeof document.body.style[a])return a}return null}function cR(){return this.state.isDestroyed=!0,sR(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[lR("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function uR(e){var t=e.ownerDocument;return t?t.defaultView:window}function dR(e,t,n,r){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||dR(II(a.parentNode),t,n,r),r.push(a)}function hR(e,t,n,r){n.updateBound=r,uR(e).addEventListener("resize",n.updateBound,{passive:!0});var i=II(e);return dR(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function fR(){this.state.eventsEnabled||(this.state=hR(this.reference,this.options,this.state,this.scheduleUpdate))}function pR(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return uR(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 8,926 bytes, line 2
2h((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function gR(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function mR(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&gR(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var yR=PI&&/Firefox/i.test(navigator.userAgent);function bR(e,t,n){var r=iR(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}var vR=["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"],xR=vR.slice(3);function wR(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xR.indexOf(e),r=xR.slice(n+1).concat(xR.slice(0,n));return t?r.reverse():r}var kR="flip",AR="clockwise",ER="counterclockwise";function SR(e,t,n,r){var i=[0,0],a=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(iR(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return c=c.map((function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(0===o.indexOf("%")){return qI("%p"===o?n:r)[t]/100*a}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){gR(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var PR={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:GI({},l,a[l]),end:GI({},l,a[l]+a[c]-o[c])};e.offsets.popper=YI({},o,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return l=gR(+n)?[+n,0]:SR(n,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||BI(e.instance.popper);e.instance.reference===n&&(n=BI(n));var r=lR("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=JI(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),GI({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),GI({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=YI({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!bR(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,s=a.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=tR(r)[c];s[f]-p<o[d]&&(e.offsets.popper[d]-=o[d]-(s[f]-p)),s[d]+p>o[f]&&(e.offsets.popper[d]+=s[d]+p-o[f]),e.offsets.popper=qI(e.offsets.popper);var g=s[d]+s[c]/2-p/2,m=NI(e.instance.popper),y=parseFloat(m["margin"+u]),b=parseFloat(m["border"+u+"Width"]),v=g-e.offsets.popper[d]-y-b;return v=Math.max(Math.min(o[c]-p,v),0),e.arrowElement=r,e.offsets.arrow=(GI(n={},d,Math.round(v)),GI(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(sR(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=JI(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=nR(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case kR:o=[r,i];break;case AR:o=wR(r);break;case ER:o=wR(r,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=nR(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),p=d(c.right)>d(n.right),g=d(c.top)<d(n.top),m=d(c.bottom)>d(n.bottom),y="left"===r&&f||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,b=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(b&&"start"===a&&f||b&&"end"===a&&p||!b&&"start"===a&&g||!b&&"end"===a&&m),x=!!t.flipVariationsByContent&&(b&&"start"===a&&p||b&&"end"===a&&f||!b&&"start"===a&&m||!b&&"end"===a&&g),w=v||x;(h||y||w)&&(e.flipped=!0,(h||y)&&(r=o[l+1]),w&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=YI({},e.offsets.popper,rR(e.instance.popper,e.offsets.reference,e.placement)),e=aR(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=nR(t),e.offsets.popper=qI(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!bR(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=iR(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=iR(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==a?a:t.gpuAcceleration,s=BI(e.instance.popper),l=XI(s),c={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(e){return e},l=a(i.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||l%2===c%2?a:o:s,f=t?a:s;return{left:h(l%2===1&&c%2===1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:h(r.right)}}(e,window.devicePixelRatio<2||!yR),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",f=lR("transform"),p=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+p+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var m="bottom"===d?-1:1,y="right"===h?-1:1;c[d]=g*m,c[h]=p*y,c.willChange=d+", "+h}var b={"x-placement":e.placement};return e.attributes=YI({},b,e.attributes),e.styles=YI({},c,e.styles),e.arrowStyles=YI({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return mR(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEac
2h((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&mR(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var a=eR(i,t,e,n.positionFixed),o=ZI(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),mR(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},CR={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:PR},OR=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=OI(this.update.bind(this)),this.options=YI({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(YI({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=YI({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return YI({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&TI(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return VI(e,[{key:"update",value:function(){return oR.call(this)}},{key:"destroy",value:function(){return cR.call(this)}},{key:"enableEventListeners",value:function(){return fR.call(this)}},{key:"disableEventListeners",value:function(){return pR.call(this)}}]),e}();OR.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,OR.placements=vR,OR.Defaults=CR;const TR=OR;var NR=function(e){return Array.isArray(e)?e[0]:e},_R=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},IR=function(e,t){if("function"===typeof e)return _R(e,t);null!=e&&(e.current=t)},RR={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},MR={},jR=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return St(yI(yI(t=e.call.apply(e,[this].concat(r))||this)),"state",{data:void 0,placement:void 0}),St(yI(yI(t)),"popperInstance",void 0),St(yI(yI(t)),"popperNode",null),St(yI(yI(t)),"arrowNode",null),St(yI(yI(t)),"setPopperNode",(function(e){e&&t.popperNode!==e&&(IR(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),St(yI(yI(t)),"setArrowNode",(function(e){t.arrowNode=e})),St(yI(yI(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),St(yI(yI(t)),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:Le({},t.props.modifiers,{arrow:Le({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),St(yI(yI(t)),"getPopperStyle",(function(){return t.popperNode&&t.state.data?Le({position:t.state.data.offsets.popper.position},t.state.data.styles):RR})),St(yI(yI(t)),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),St(yI(yI(t)),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:MR})),St(yI(yI(t)),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),St(yI(yI(t)),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),St(yI(yI(t)),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=yI(yI(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new TR(n,e,t.getOptions()))})),St(yI(yI(t)),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}ir(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&SI()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){IR(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return NR(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(bI.Component);St(jR,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});TR.placements;function LR(e){var t=e.referenceElement,n=Be(e,["referenceElement"]);return bI.createElement(wI.Consumer,null,(function(e){return bI.createElement(jR,Le({referenceElement:void 0!==t?t:e},n))}))}var BR=n(2241),FR=n.n(BR),DR=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return St(yI(yI(t=e.call.apply(e,[this].concat(r))||this)),"refHandler",(function(e){IR(t.props.innerRef,e),_R(t.props.setReferenceNode,e)})),t}ir(t,e);var n=t.prototype;return n.componentWillUnmount=function(){IR(this.props.innerRef,null)},n.render=function(){return FR()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),NR(this.props.children)({ref:this.refHandler})},t}(bI.Component);function UR(e){return bI.createElement(kI.Consumer,null,(function(t){return bI.createElement(DR,Le({setReferenceNode:t},e))}))}n(22253);var zR=n(81656),WR=n(4744),HR=n.n(WR);function VR(e){return"/"===e.charAt(0)}function GR(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const YR=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&VR(e),o=t&&VR(t),s=a||o;if(e&&VR(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=i.length;u>=0;u--){var d=i[u];"."===d?GR(i,u):".."===d?(GR(i,u),c++):c&&(GR(i,u),c--)}if(!s)for(;c--;c)i.unshift("..");!s||""===i[0]||i[0]&&VR(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var qR="Invariant failed";function XR(e,t){if(!e)throw new Error(qR)}function $R(e){return"/"===e.charAt(0)?e:"/"+e}function KR(e){return"/"===e.charAt(0)?e.substr(1):e}function QR(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function JR(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function ZR(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function eM(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=Le({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invali
2d percent-encoding.'):a}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=YR(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function tM(){var e=null;var t=[];return{setPrompt:function(t){return function(){e===t&&null}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var nM=!("undefined"===typeof window||!window.document||!window.document.createElement);function rM(e,t){t(window.confirm(e))}var iM="popstate",aM="hashchange";function oM(){try{return window.history.state||{}}catch(e){return{}}}function sM(e){void 0===e&&{},nM||XR(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,o=void 0!==a&&a,s=i.getUserConfirmation,l=void 0===s?rM:s,c=i.keyLength,u=void 0===c?6:c,d=e.basename?JR($R(e.basename)):"";function h(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return d&&QR(a,d),eM(a,r,n)}function f(){return Math.random().toString(36).substr(2,u)}var p=tM();function g(e){Le(C,e),C.length=t.length,p.notifyListeners(C.location,C.action)}function m(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||v(h(e.state))}function y(){v(h(oM()))}var b=!1;function v(e){if(b)g();else{p.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=C.location,n=w.indexOf(t.key);-1===n&&0;var r=w.indexOf(e.key);-1===r&&0;var i=n-r;i&&A(i)}(e)}))}}var x=h(oM()),w=[x.key];function k(e){return d+ZR(e)}function A(e){t.go(e)}var E=0;function S(e){1===(E+=e)&&1===e?(window.addEventListener(iM,m),r&&window.addEventListener(aM,y)):0===E&&(window.removeEventListener(iM,m),r&&window.removeEventListener(aM,y))}var P=!1;var C={length:t.length,action:"POP",location:x,createHref:k,push:function(e,r){var i="PUSH",a=eM(e,r,f(),C.location);p.confirmTransitionTo(a,i,l,(function(e){if(e){var r=k(a),s=a.key,l=a.state;if(n)if(t.pushState({key:s,state:l},null,r),o)window.location.href=r;else{var c=w.indexOf(C.location.key),u=w.slice(0,c+1);u.push(a.key),g({action:i,location:a})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",a=eM(e,r,f(),C.location);p.confirmTransitionTo(a,i,l,(function(e){if(e){var r=k(a),s=a.key,l=a.state;if(n)if(t.replaceState({key:s,state:l},null,r),o)window.location.replace(r);else{var c=w.indexOf(C.location.key);-1!==c&&(w[c]=a.key),g({action:i,location:a})}else window.location.replace(r)}}))},go:A,goBack:function(){A(-1)},goForward:function(){A(1)},block:function(e){void 0===e&&!1;var t=p.setPrompt(e);return P||(S(1),!0),function(){return P&&S(-1),t()}},listen:function(e){var t=p.appendListener(e);return S(1),function(){S(-1),t()}}};return C}var lM="hashchange",cM={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+KR(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:KR,decodePath:$R},slash:{encodePath:$R,decodePath:$R}};function uM(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function dM(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function hM(e){window.location.replace(uM(window.location.href)+"#"+e)}function fM(e){void 0===e&&{}
2,nM||XR(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?rM:r,a=n.hashType,o=void 0===a?"slash":a,s=e.basename?JR($R(e.basename)):"",l=cM[o],c=l.encodePath,u=l.decodePath;function d(){var e=u(dM());return s&&QR(e,s),eM(e)}var h=tM();function f(e){Le(S,e),S.length=t.length,h.notifyListeners(S.location,S.action)}var p=!1,g=null;function m(){var e=dM(),t=c(e);if(e!==t)hM(t);else{var n=d(),r=S.location;if(!p&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(g===ZR(n))return;(function(e){if(p)f();else{var t="POP";h.confirmTransitionTo(e,t,i,(function(n){n?f({action:t,location:e}):function(e){var t=S.location,n=x.lastIndexOf(ZR(t));-1===n&&0;var r=x.lastIndexOf(ZR(e));-1===r&&0;var i=n-r;i&&w(i)}(e)}))}})(n)}}var y=dM(),b=c(y);y!==b&&hM(b);var v=d(),x=[ZR(v)];function w(e){t.go(e)}var k=0;function A(e){1===(k+=e)&&1===e?window.addEventListener(lM,m):0===k&&window.removeEventListener(lM,m)}var E=!1;var S={length:t.length,action:"POP",location:v,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&uM(window.location.href),n+"#"+c(s+ZR(e))},push:function(e,t){var n="PUSH",r=eM(e,void 0,void 0,S.location);h.confirmTransitionTo(r,n,i,(function(e){if(e){var t=ZR(r),i=c(s+t);if(dM()!==i){(function(e){window.location.hash=e})(i);var a=x.lastIndexOf(ZR(S.location)),o=x.slice(0,a+1);o.push(t),f({action:n,location:r})}else f()}}))},replace:function(e,t){var n="REPLACE",r=eM(e,void 0,void 0,S.location);h.confirmTransitionTo(r,n,i,(function(e){if(e){var t=ZR(r),i=c(s+t);dM()!==i&&hM(i);var a=x.indexOf(ZR(S.location));-1!==a&&(x[a]=t),f({action:n,location:r})}}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},block:function(e){void 0===e&&!1;var t=h.setPrompt(e);return E||(A(1),!0),function(){return E&&A(-1),t()}},listen:function(e){var t=h.appendListener(e);return A(1),function(){A(-1),t()}}};return S}function pM(e,t,n){return Math.min(Math.max(e,t),n)}var gM=n(34632),mM=n.n(gM),yM=(n(26429),1073741823),bM="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var vM=zR.createContext||function(e,t){var n,r,i="__create-react-context-"+function(){var e="__global_unique_id__";return bM[e]=(bM[e]||0)+1}()+"__",a=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}ir(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((a=r)===(o=i)?0!==a||1/a===1/o:a!==a&&o!==o)?n=0:(n="function"===typeof t?t(r,i):yM,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,o},r.render=function(){return this.props.children},n}(zR.Component);a.childContextTypes=((n={})[i]=HR().object.isRequired,n);var o=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}ir(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?yM:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?yM:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(zR.Component);return o.contextTypes=((r={})[i]=HR().object,r),{Provider:a,Consumer:o}},xM=function(e){var t=vM();return t.displayName=e,t},wM=xM("Router-History"),kM=xM("Router"),AM=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}ir(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}
2))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return zR.createElement(kM.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},zR.createElement(wM.Provider,{children:this.props.children||null,value:this.props.history}))},t}(zR.Component);zR.Component;zR.Component;var EM={},SM=0;function PM(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=void 0!==i&&i,o=n.strict,s=void 0!==o&&o,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=EM[n]||(EM[n]={});if(r[e])return r[e];var i=[],a={regexp:mM()(e,i,t),keys:i};return SM<1e4&&(r[e]=a,SM++),a}(n,{end:a,strict:s,sensitive:c}),i=r.regexp,o=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),h=e===u;return a&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:o.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}zR.Component;function CM(e){return"/"===e.charAt(0)?e:"/"+e}function OM(e,t){if(!e)return t;var n=CM(e);return 0!==t.pathname.indexOf(n)?t:Le({},t,{pathname:t.pathname.substr(n.length)})}function TM(e){return"string"===typeof e?e:ZR(e)}function NM(e){return function(){XR(!1)}}function _M(){}
2zR.Component;zR.Component;zR.useContext;zR.Component;zR.Component;var IM=function(e,t){return"function"===typeof e?e(t):e},RM=function(e,t){return"string"===typeof e?eM(e,null,null,t):e},MM=function(e){return e},jM=zR.forwardRef;"undefined"===typeof jM&&(jM=MM);var LM=jM((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,a=Be(e,["innerRef","navigate","onClick"]),o=a.target,s=Le({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||o&&"_self"!==o||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=MM!==jM&&t||n,zR.createElement("a",s)}));var BM=jM((function(e,t){var n=e.component,r=void 0===n?LM:n,i=e.replace,a=e.to,o=e.innerRef,s=Be(e,["component","replace","to","innerRef"]);return zR.createElement(kM.Consumer,null,(function(e){e||XR(!1);var n=e.history,l=RM(IM(a,e.location),e.location),c=l?n.createHref(l):"",u=Le({},s,{href:c,navigate:function(){var t=IM(a,e.location),r=ZR(e.location)===ZR(RM(t));(i||r?n.replace:n.push)(t)}});return MM!==jM?u.ref=t||o:u.innerRef=o,zR.createElement(r,u)}))})),FM=function(e){return e},DM=zR.forwardRef;"undefined"===typeof DM&&(DM=FM);var UM=DM((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,o=e.activeStyle,s=e.className,l=e.exact,c=e.isActive,u=e.location,d=e.sensitive,h=e.strict,f=e.style,p=e.to,g=e.innerRef,m=Be(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return zR.createElement(kM.Consumer,null,(function(e){e||XR(!1);var n=u||e.location,i=RM(IM(p,n),n),y=i.pathname,b=y&&y.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),v=b?PM(n.pathname,{path:b,exact:l,sensitive:d,strict:h}):null,x=!!(c?c(v,n):v),w="function"===typeof s?s(x):s,k="function"===typeof f?f(x):f;x&&(w=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(w,a),k=Le({},k,o));var A=Le({"aria-current":x&&r||null,className:w,style:k,to:i},m);return FM!==DM?A.ref=t||g:A.innerRef=g,zR.createElement(BM,A)}))})),zM=n(38462),WM=n.n(zM);function HM(e){return(HM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function VM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YM(e,t,n){return t&&GM(e.prototype,t),n&&GM(e,n),e}function qM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XM(){return(XM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$M(Object(n),!0).forEach((function(t){qM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZM(e,t)}function JM(e){return(JM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}
2function ZM(e,t){return(ZM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ej(e){if(null==e)throw new TypeError("Cannot destructure undefined")}function tj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JM(e);if(t){var i=JM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?nj(e):t}(this,n)}}function ij(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||oj(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aj(e){return function(e){if(Array.isArray(e))return sj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||oj(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oj(e,t){if(e){if("string"==typeof e)return sj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sj(e,t):void 0}}function sj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lj=function(e){var t=ij((0,r.useState)(!0),2),n=t[0],i=t[1],a=e.className,o=e.tag,s=e.color,l=e.children,c=e.dismiss,u=nI()("alert",s&&"alert-".concat(s),a);return c?r.createElement(mI,{in:n,timeout:150,unmountOnExit:!0,onExit:function(t){return function(t){return t.classList.add("fade"),e.onClose&&e.onClose()}(t)},onExited:function(t){return e.onClosed&&e.onClosed()}},r.createElement(o,{"data-test":"alert",className:u,role:"alert"},l,r.createElement("button",{onClick:function(){i(!1)},type:"button",className:"close","data-dismiss":"alert","aria-label":"Close"},r.createElement("span",{"aria-hidden":"true"},"\xd7")))):r.createElement(o,{"data-test":"alert",className:u,role:"alert"},l)};lj.defaultProps={color:"primary",tag:"div"},lj.propTypes={className:iI().string,color:iI().oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),onClose:iI().func,onClosed:iI().func,tag:iI().string};var cj=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{isVisible:!1,revealed:!1,countIterations:0}),qM(nj(n),"elemRef",r.createRef()),qM(nj(n),"updatePredicate",(function(){var e=window.innerHeight,t=window.scrollY,r=document.documentElement.offsetHeight,i=n.state.revealed,a=n.elemRef.current;e+t-100>n.getOffset(a)&&t<n.getOffset(a)||e+t-100>n.getOffset(a)+a.clientHeight&&t<n.getOffset(a)+a.clientHeight||e+t===r&&n.getOffset(a)+100>r?n.setState({isVisible:!0,revealed:!0}):i||n.setState({isVisible:!1,revealed:!0})})),qM(nj(n),"handleStart",(function(){var e=n.props.onAnimationStart,t=n.state.countIterations;n.setState({countIterations:t+1}),e&&e()})),qM(nj(n),"handleIteration",(function(){var e=n.props.onAnimationIteration,t=n.state.countIterations;e&&(n.setState({countIterations:t+1}),e())})),qM(nj(n),"handleEnd",(function(){var e=n.props,t=e.onAnimationEnd,r=e.count,i=n.state.countIterations;n.setState({countIterations:i+1}),t&&r===i&&t()})),qM(nj(n),"getOffset",(function(e){var t=e.getBoundingClientRect(),n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,a=r.clientTop||n.clientTop||0,o=t.top+i-a;return Math.round(o)})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this.props.reveal;this.setState({isVisible:!e,revealed:!e}),e&&(window.addEventListener("scroll",this.updatePredicate),this.updatePredicate())}},{key:"componentWillUnmount",value:function(){this.props.reveal&&window.removeEventListener("scroll",this.updatePredicate)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.count,a=e.delay,o=e.duration,s=e.infinite,l=(e.reveal,e.style),c=e.tag,u=e.type,d=tj(e,["children","className","count","delay","duration","infinite","reveal","style","tag","type"]),h=this.state,f=h.isVisible,p=h.revealed,g={animationDuration:o,animationDelay:a,animationIterationCount:!s&&i,visibility:f?"visible":"hidden",animationName:u},m=Object.assign(g,l),y=nI()(f&&"animated",u&&u,s&&"infinite",n);return r.createElement(c,XM({"data-test":"animation",className:y,onAnimationEnd:this.handleEnd,onAnimationIteration:this.handleIteration,onAnimationStart:this.handleStart,ref:this.elemRef,style:f&&p?m:{animationName:"none",visibility:"hidden"}},d),t)}}]),t}();cj.propTypes={children:iI().oneOfType([iI().arrayOf(iI().node),iI().node]),className:iI().string,count:iI().number,delay:iI().string,duration:iI().oneOfType([iI().string,iI().number]),infinite:iI().bool,onAnimationEnd:iI().func,onAnimationIteration:iI().func,onAnimationStart:iI().func,reveal:iI().bool,style:iI().node,tag:iI().oneOfType([iI().func,iI().string]),type:iI().string},cj.defaultProps={tag:"div",reveal:!1,duration:1,count:1};var uj=function(e){var t=e.tag,n=e.className,i=e.children,a=e.color,o=e.pill,s=tj(e,["tag","className","children","color","pill"]),l=nI()("badge",a,"badge-".concat(a),!!o&&"badge-pill",n);return r.createElement(t,XM({"data-test":"badge"},s,{className:l}),i)};uj.propTypes={children:iI().node,className:iI().string,color:iI().string,pill:iI().bool,tag:iI().string},uj.defaultProps={tag:"span",color:"default",pill:!1};var dj=function(e){var t=e.tag,n=e.className,i=e.children,a=e.display,o=e.justifyContent,s=e.flex,l=e.alignItems,c=e.alignContent,u=e.alignSelf,d=e.color,h=e.bgColor,f=e.m,p=e.mt,g=e.mr,m=e.mb,y=e.ml,b=e.mx,v=e.my,x=e.p,w=e.pt,k=e.pr,A=e.pb,E=e.pl,S=e.px,P=e.py,C=tj(e,["tag","className","children","display","justifyContent","flex","alignItems","alignContent","alignSelf","color","bgColor","m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"]),O=function(e,t){if(void 0!==e)return"".concat(t,"-").concat(e)},T=nI()(a&&"d-".concat(a),o&&"justify-content-".concat(o),s&&"flex-".concat(s),l&&"align-items-".concat(l),c&&"align-content-".concat(c),u&&"align-self-".concat(u),d&&"".concat(d,"-text"),h&&"bg-".concat(h),O(f,"m"),O(p,"mt"),O(g,"mr"),O(m,"mb"),O(y,"ml"),O(b,"mx"),O(v,"my"),O(x,"p"),O(w,"pt"),O(k,"pr"),O(A,"pb"),O(E,"pl"),O(S,"px"),O(P,"py"),n),N=""!==T?T:null;return r.createElement(t,XM({"data-test":"box"},C,{className:N}),i)};function hj(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}dj.propTypes={alignContent:iI().string,alignItems:iI().string,alignSelf:iI().string,bgColor:iI().string,children:iI().node,className:iI().string,color:iI().string,display:iI().string,flex:iI().string,justifyContent:iI().string,m:iI().oneOfType([iI().number,iI().string]),mb:iI().oneOfType([iI().number,iI().string]),ml:iI().oneOfType([iI().number,iI().string]),mr:iI().oneOfType([iI().number,iI().string]),mt:iI().oneOfType([iI().number,iI().string]),mx:iI().oneOfType([iI().number,iI().string]),my:iI().oneOfType([iI().number,iI().string]),p:iI().oneOfType([iI().number,iI().string]),pb:iI().oneOfType([iI().number,iI().string]),pl:iI().oneOfType([iI().number,iI().string]),pr:iI().oneOfType([iI().number,iI().string]),pt:iI().oneOfType([iI().number,iI().string]),px:iI().oneOfType([iI().number,iI().string]),py:iI().oneOfType([iI().number,iI().string]),tag:iI().string},dj.defaultProps={tag:"div"};var fj=27,pj=32,gj=38,mj=40,yj=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})};iI().bool,iI().node,iI().string,iI().string,iI().bool,iI().bool;var bj=function(e){var t=e.border,n=e.brand,i=e.className,a=e.fab,o=e.duotone,s=e.fal,l=e.fad,c=e.far,u=e.solid,d=e.fixed,h=e.fas,f=e.flip,p=e.icon,g=e.inverse,m=e.light,y=e.list,b=e.pull,v=e.pulse,x=e.regular,w=e.rotate,k=e.size,A=e.spin,E=e.stack,S=tj(e,["border","brand","className","fab","duotone","fal","fad","far","solid","fixed","fas","flip","icon","inverse","light","list","pull","pulse","regular","rotate","size","spin","stack"]),P=nI()(x||c?"far":u||h?"fas":m||s?"fal":o||l?"fad":n||a?"fab":"fa",!!y&&"fa-li",!!p&&"fa-".concat(p),!!k&&"fa-".concat(k),!!d&&"fa-fw",!!b&&"fa-pull-".concat(b),!!t&&"fa-border",!!A&&"fa-spin",!!v&&"fa-pulse",!!w&&"fa-rotate-".concat(w),!!f&&"fa-flip-".concat(f),!!g&&"fa-inverse",!!E&&"fa-".concat(E),i);return r.createElement("i",XM({"data-test":"fa"},S,{className:P}))};function vj(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");
2i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}bj.propTypes={icon:iI().string.isRequired,border:iI().bool,brand:iI().bool,className:iI().string,fab:iI().bool,fal:iI().bool,far:iI().bool,fixed:iI().bool,flip:iI().string,inverse:iI().bool,light:iI().bool,list:iI().bool,pull:iI().string,pulse:iI().bool,regular:iI().bool,rotate:iI().string,size:iI().string,spin:iI().bool,stack:iI().string},bj.defaultProps={border:!1,brand:!1,className:"",fab:!1,fal:!1,far:!1,fixed:!1,flip:"",inverse:!1,light:!1,list:!1,pull:"",pulse:!1,regular:!1,rotate:"",size:"",spin:!1,stack:""},vj(".bc-icons.breadcrumb-item::before,\n.bc-icons.breadcrumb-item::after {\n content: none;\n}\n\n.bc-icons.breadcrumb-item + .active.breadcrumb-item::before,\n.bc-icons.breadcrumb-item + .active.breadcrumb-item::after{\n content: none;\n}\n\n.bc-icons.breadcrumb-item.active {\n color: #eeeeee;\n}\n");var xj=function(e){var t=e.active,n=e.appendIcon,i=e.children,a=e.className,o=e.bold,s=e.icon,l=e.iconBrand,c=e.iconClassName,u=e.iconLight,d=e.iconRegular,h=e.iconSize,f=tj(e,["active","appendIcon","children","className","bold","icon","iconBrand","iconClassName","iconLight","iconRegular","iconSize"]),p=nI()(!!t&&"active",s&&"bc-icons","breadcrumb-item",a),g=nI()(n?"mx-2":"mr-2",c);return r.createElement("li",XM({"data-test":"breadcrumb-item"},f,{className:p}),r.createElement((function(e){var t=e.children;return o?r.createElement("strong",null,t):t}),null,r.createElement((function(){return s?r.createElement(r.Fragment,null,n&&i,r.createElement(bj,{brand:l,className:g,icon:s,light:u,regular:d,size:h}),!n&&i):i}),null)))};xj.propTypes={active:iI().bool,appendIcon:iI().bool,bold:iI().bool,children:iI().node,className:iI().string,icon:iI().string,iconBrand:iI().bool,iconClassName:iI().string,iconLight:iI().bool,iconRegular:iI().bool,iconSize:iI().string},xj.defaultProps={active:!1,appendIcon:!1,className:"",bold:!1,icon:"",iconBrand:!1,iconClassName:"",iconLight:!1,iconRegular:!1,iconSize:""},vj(".btn-group-vertical>.btn,\n.btn-group-vertical>.btn+.btn-group,\n.btn-group-vertical>.btn-group+.btn,\n.btn-group-vertical>.btn-group+.btn-group {\n margin-left: 0px;\n}\n\n.btn-group-lg>.btn {\n font-size: 0.9rem;\n padding: 1rem 2.4rem;\n}\n\n.btn-group-sm>.btn {\n font-size: 0.6rem;\n padding: 0.5rem 1.6rem;\n}\n\n.btn-floating.btn.btn-sm,\n.btn-floating.btn.btn-lg {\n padding: 0;\n}\n");var wj=function(e){var t=e.className,n=e.size,i=e.vertical,a=e.children,o=tj(e,["className","size","vertical","children"]),s=nI()(t,!!n&&"btn-group-".concat(n),i?"btn-group-vertical":"btn-group");return r.createElement("div",XM({"data-test":"button-group"},o,{className:s}),a)};wj.propTypes={"aria-label":iI().string,children:iI().node,className:iI().string,role:iI().string,size:iI().string,vertical:iI().bool},wj.defaultProps={role:"group"};var kj=function(e){var t=e.className,n=e.children,i=tj(e,["className","children"]),a=nI()(t,"btn-toolbar");return r.createElement("div",XM({"data-test":"button-toolbar"},i,{className:a}),n)};kj.propTypes={"aria-label":iI().string,children:iI().node,className:iI().string,role:iI().string},kj.defaultProps={role:"toolbar"};var Aj=function(e){var t,n=e.className,i=e.tag,a=e.cascade,o=e.wide,s=e.narrow,l=e.reverse,c=e.testimonial,u=e.ecommerce,d=e.collection,h=e.pricing,f=e.personal,p=e.news,g=e.color,m=e.text,y=e.border,b=tj(e,["className","tag","cascade","wide","narrow","reverse","testimonial","ecommerce","collection","pricing","personal","news","color","text","border"]),v=nI()((qM(t={"card-cascade":a,"card-cascade wider":o,"card-cascade narrower":s,"card-cascade wider reverse":l,"testimonial-card":c,"card-ecommerce":u,"collection-card":d,"pricing-card":h,"card-personal":f,"news-card":p},"".concat(m,"-text"),m),qM(t,"border-".concat(y),y),t),"card",g,n);return r.createElement(i,XM({"data-test":"card"},b,{className:v}))};Aj.propTypes={border:iI().string,cascade:iI().bool,className:iI().string,collection:iI().bool,color:iI().string,ecommerce:iI().bool,narrow:iI().bool,news:iI().bool,personal:iI().bool,pricing:iI().bool,reverse:iI().bool,tag:iI().string,testimonial:iI().bool,text:iI().string,wide:iI().bool},Aj.defaultProps={tag:"div"};var Ej=function(e){var t=e.className,n=e.tag,i=e.cascade,a=tj(e,["className","tag","cascade"]),o=nI()("card-body",i&&"card-body-cascade",t);return r.createElement(n,XM({"data-test":"card-body"},a,{className:o}))};Ej.propTypes={cascade:iI().bool,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},Ej.defaultProps={tag:"div"};var Sj=function(e){var t,n=e.className,i=e.tag,a=e.color,o=e.children,s=e.text,l=e.border,c=e.transparent,u=e.small,d=e.muted,h=tj(e,["className","tag","color","children","text","border","transparent","small","muted"]),f=nI()((qM(t={"white-text":a&&!s},"border-".concat(l),l),qM(t,"bg-transparent",c),qM(t,"text-muted",d),qM(t,"".concat(s,"-text"),s),t),"card-footer",a,n);return r.createElement(i,XM({"data-test":"card-footer"},h,{className:f}),u?r.createElement("small",null," ",o," "):o)};Sj.propTypes={border:iI().string,className:iI().string,color:iI().string,muted:iI().bool,small:iI().bool,tag:iI().oneOfType([iI().func,iI().string]),text:iI().string,transparent:iI().bool},Sj.defaultProps={tag:"div"};var Pj=function(e){var t=e.className,n=e.tag,i=e.deck,a=e.column,o=tj(e,["className","tag","deck","column"]),s=nI()(i?"card-deck":a?"card-columns":"card-group",t);return r.createElement(n,XM({"data-test":"card-group"},o,{className:s}))};Pj.propTypes={className:iI().string,column:iI().bool,deck:iI().bool,tag:iI().oneOfType([iI().func,iI().string])},Pj.defaultProps={tag:"div"};var Cj=function(e){var t,n=e.border,i=e.className,a=e.color,o=e.tag,s=e.text,l=e.transparent,c=tj(e,["border","className","color","tag","text","transparent"]),u=nI()((qM(t={"white-text":a&&!s},"border-".concat(n),n),qM(t,"bg-transparent",l),qM(t,"".concat(s,"-text"),s),t),"card-header",i,a);return r.createElement(o,XM({"data-test":"card-header"},c,{className:u}))};Cj.propTypes={border:iI().string,className:iI().string,color:iI().string,tag:iI().oneOfType([iI().func,iI().string]),text:iI().string,transparent:iI().bool},Cj.defaultProps={tag:"div"},vj(".Ripple {\n position: absolute;\n background: rgba(255, 255, 255, 0.3);\n border-radius: 50%;\n opacity: 1;\n transform: scale(0);\n}\n\n.Ripple-outline {\n background: rgba(0, 0, 0, 0.2);\n}\n\n.Ripple.is-reppling {\n animation: ripple 0.5s linear;\n}\n\n.Ripple-parent {\n position: relative;\n overflow: hidden;\n cursor: pointer;\n}\n\n@keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(3);\n }\n}\n");var Oj=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{animate:!1,width:0,height:0,top:0,left:0,cursorPos:n.props.cursorPos}),qM(nj(n),"wavesRef",r.createRef()),n}
2return YM(t,[{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props.cursorPos;t.cursorPos.time!==r.time&&(t.animate?this.setState({animate:!1,cursorPos:r},(function(){n.replying()})):this.replying())}},{key:"replying",value:function(){var e=this.wavesRef.current.parentNode,t=e.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight,i=Math.max(r,n),a=i/2,o=this.state.cursorPos;this.setState({animate:!0,width:i,height:i,top:o.top-t.top-a,left:o.left-t.left-a})}},{key:"render",value:function(){var e=this.props,t=e.outline,n=e.flat,i=e.dark,a=this.state,o=a.animate,s=a.top,l=a.left,c=a.width,u=a.height;return r.createElement("div",{"data-test":"waves",className:"Ripple ".concat(t||n||i?"Ripple-outline ":"").concat(o?"is-reppling":""),style:{top:"".concat(s,"px"),left:"".concat(l,"px"),width:"".concat(c,"px"),height:"".concat(u,"px")},ref:this.wavesRef})}}]),t}();Oj.propTypes={animate:iI().bool,children:iI().node,cursorPos:iI().object,dark:iI().bool,flat:iI().bool,outline:iI().bool};var Tj=function(e){var t=e.children,n=e.className,i=e.overlay,a=e.pattern,o=e.tag,s=tj(e,["children","className","overlay","pattern","tag"]),l=nI()("mask",a&&"pattern-".concat(a),i&&"rgba-".concat(i),n);return r.createElement(o,XM({"data-test":"mask"},s,{className:l}),t)};Tj.propTypes={children:iI().node,className:iI().string,overlay:iI().string,pattern:iI().oneOfType([iI().string,iI().number]),tag:iI().string},Tj.defaultProps={className:"",overlay:"",pattern:"",tag:"div"};var Nj=function(e){var t=ij((0,r.useState)({}),2),n=t[0],i=t[1],a=function(e){var t={top:e.clientY,left:e.clientX,time:Date.now()};i(t)},o=e.cascade,s=e.children,l=e.className,c=e.fixed,u=e.hover,d=e.rounded,h=e.src,f=e.tag,p=e.waves,g=e.zoom,m=tj(e,["cascade","children","className","fixed","hover","rounded","src","tag","waves","zoom"]),y=nI()("view",o&&"view-cascade",l,u&&"overlay",d&&"rounded",!!p&&"Ripple-parent",g&&"zoom"),b=h?{backgroundAttachment:c?"fixed":null,backgroundImage:'url("'.concat(h,'")'),backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100vh"}:{};return r.createElement(f,XM({},m,{className:y,"data-test":"view",onMouseDown:a,onTouchStart:a,style:b}),s,p&&r.createElement(Oj,{cursorPos:n}))};Nj.defaultProps={cascade:!1,className:"",hover:!1,rounded:!1,src:"",tag:"div",waves:!1,zoom:!1},Nj.propTypes={cascade:iI().bool,children:iI().node,className:iI().string,fixed:iI().bool,hover:iI().bool,rounded:iI().bool,src:iI().string,tag:iI().string,waves:iI().bool,zoom:iI().bool};var _j=function(e){var t=ij((0,r.useState)({}),2),n=t[0],i=t[1],a=e.cascade,o=e.className,s=e.hover,l=e.overlay,c=e.src,u=e.tag,d=e.top,h=e.waves,f=e.zoom,p=tj(e,["cascade","className","hover","overlay","src","tag","top","waves","zoom"]),g=nI()(d&&"card-img-top",o),m=u,y=r.createElement(m,XM({"data-test":"card-image",src:c},p,{className:g}));return c?r.createElement(Nj,{zoom:f,hover:s,cascade:a},r.createElement("div",{className:"Ripple-parent",onMouseDown:function(e){var t={top:e.clientY,left:e.clientX,time:Date.now()};i(t)},style:{touchAction:"unset"}},y,r.createElement(Tj,{overlay:l}),h&&r.createElement(Oj,{cursorPos:n}))):r.createElement("div",null,y)};_j.propTypes={cascade:iI().bool,children:iI().node,className:iI().string,hover:iI().bool,overlay:iI().string,src:iI().string,tag:iI().oneOfType([iI().func,iI().string]),top:iI().bool,waves:iI().bool,zoom:iI().bool},_j.defaultProps={tag:"img",overlay:"white-slight",waves:!0,hover:!1,cascade:!1,zoom:!1};var Ij=function(e){var t=e.children,n=e.className,i=e.muted,a=e.small,o=e.tag,s=tj(e,["children","className","muted","small","tag"]),l=nI()("card-text",i&&"text-muted",n),c=a?r.createElement("small",null,t):t;return r.createElement(o,XM({"data-test":"card-text"},s,{className:l}),c)};Ij.propTypes={className:iI().string,muted:iI().bool,small:iI().bool,tag:iI().oneOfType([iI().func,iI().string])},Ij.defaultProps={tag:"p"};var Rj=function(e){var t=e.className,n=e.sub,i=e.tag,a=tj(e,["className","sub","tag"]),o=nI()(n?"card-subtitle":"card-title",t);return r.createElement(i,XM({"data-test":"card-title"},a,{className:o}))};
2Rj.propTypes={className:iI().string,sub:iI().bool,tag:iI().oneOfType([iI().func,iI().string])},Rj.defaultProps={tag:"h4",sub:!1};iI().string.isRequired,iI().node,iI().string;var Mj=r.createContext({activeItemId:null}),jj=function(e){var t,n=e.className,i=e.direction,a=e.iconLeft,o=e.iconRight,s=e.multiItem,l=e.onClick,c=e.tag,u=e.testimonial;"prev"===i?t="Previous":"next"===i&&(t="Next");var d=nI()("carousel-control-".concat(i),n),h=nI()("carousel-control-".concat(i,"-icon"));if(u){var f="prev"===i?"left":"right";d=nI()("carousel-control-".concat(i),f,"carousel-control",n),h=nI()("icon-".concat(i))}return s&&(d=nI()("btn-floating")),r.createElement(Mj.Consumer,null,(function(e){return ej(e),r.createElement(c,{"data-test":"carousel-control",className:d,"data-slide":i,onClick:l},a?r.createElement(bj,{icon:"chevron-left"}):o?r.createElement(bj,{icon:"chevron-right"}):r.createElement("div",null,r.createElement("span",{className:h,"aria-hidden":"true"}),r.createElement("span",{className:"sr-only"},t)))}))};jj.propTypes={className:iI().string,direction:iI().string,iconLeft:iI().bool,iconRight:iI().bool,multiItem:iI().bool,onClick:iI().any,tag:iI().oneOfType([iI().func,iI().string]),testimonial:iI().bool},jj.defaultProps={tag:"a"};var Lj=function(e){var t=e.active,n=e.alt,i=e.children,a=e.className,o=e.img,s=tj(e,["active","alt","children","className","img"]),l=nI()(t&&"active",a);return r.createElement(Mj.Consumer,null,(function(e){return ej(e),r.createElement("li",XM({"data-test":"carousel-indicator"},s,{className:l}),o&&r.createElement("img",{src:o,alt:n,className:"img-fluid"}),i)}))};Lj.propTypes={active:iI().bool.isRequired,alt:iI().string,children:iI().node,className:iI().string,img:iI().string},Lj.defaultProps={alt:"Carousel thumbnail",className:"",img:""};var Bj=function(e){var t=e.children,n=e.className,i=tj(e,["children","className"]),a=nI()("carousel-indicators",n);return r.createElement(Mj.Consumer,null,(function(e){return ej(e),r.createElement("ol",XM({"data-test":"carousel-indicators"},i,{className:a}),t)}))};Bj.propTypes={children:iI().node,className:iI().string},Bj.defaultProps={className:""},vj(".carousel-inner {\n position: relative;\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n\n.carousel-fade .carousel-item {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: block !important;\n opacity: 0;\n z-index: 0;\n transition: transform 0ms ease-in-out, opacity 0.8s ease-out;\n}\n\n.carousel-fade .carousel-item.active {\n position: relative;\n z-index: 1;\n opacity: 1;\n}\n\n.carousel-multi-item .carousel-item {\n display: inline-block !important;\n}\n\n.carousel .carousel-slide-item {\n transition: left 0.5s;\n}\n\n.carousel-control-prev, .carousel-control-next, .carousel-item-prev, .carousel-item-next {\n z-index: 2;\n}\n");var Fj=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{activeItem:n.props.activeItem,initialLength:n.props.length,srcArray:[],swipeAvailable:!0,initialX:null,initialY:null}),qM(nj(n),"carouselRef",r.createRef()),qM(nj(n),"clearCycleIntervalHandler",(function(){return clearInterval(n.cycleInterval)})),qM(nj(n),"swipeAvailableHandler",(function(){return n.setState({swipeAvailable:!0})})),qM(nj(n),"restartInterval",(function(){var e=n.props.interval;!1!==e&&(n.clearCycleIntervalHandler(),n.cycleInterval=setInterval(n.next,e))})),qM(nj(n),"next",(function(){var e=n.state,t=e.activeItem+1,r=t>e.initialLength?1:t;n.goToIndex(r)})),qM(nj(n),"prev",(function(){var e=n.state,t=e.activeItem,r=e.initialLength,i=t-1,a=i<1?r:i;n.goToIndex(a)})),qM(nj(n),"goToIndex",(function(e){n.setState(KM(KM({},n.state),{},{activeItem:e})),n.restartInterval()})),qM(nj(n),"startTouch",(function(e){!1!==n.props.mobileGesture&&n.setState({initialX:e.touches[0].clientX,initialY:e.touches[0].clientY})})),qM(nj(n),"moveTouch",(function(e){n.setState({swipeAvailable:!1});var t=n.state,r=t.initialX,i=t.initialY;if(null!==r&&null!==i){var a=r-e.touches[0].clientX,o=i-e.touches[0].clientY;Math.abs(a)>Math.abs(o)&&(a>0?n.next():n.prev()),n.setState({initialX:null,initialY:null})}})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.interval,n=e.thumbnails,r=e.length;if(!1!==t){if(this.cycleInterval=setInterval(this.next,t),n){var i=this.carouselRef.current.querySelectorAll(".carousel-item img"),a=Array.prototype.map.call(i,(function(e){return e.src}));this.setState(KM(KM({},this.state),{},{srcArray:a}))}this.setState({initialLength:r})}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.length,r=this.state.activeItem,i=n;t.initialLength!==n&&this.setState({initialLength:i}),t.activeItem!==r&&this.setState({activeItem:r})}},{key:"componentWillUnmount",value:function(){!1!==this.props.interval&&this.clearCycleIntervalHandler()}},{key:"render",value:function(){for(var e=this,t=this.props,n=(t.activeItem,t.children),i=t.className,a=(t.interval,t.mobileGesture,t.multiItem),o=t.onHoverStop,s=t.showControls,l=t.showIndicators,c=t.slide,u=t.tag,d=t.testimonial,h=t.thumbnails,f=tj(t,["activeItem","children","className","interval","mobileGesture","multiItem","onHoverStop","showControls","showIndicators","slide","tag","testimonial","thumbnails"]),p=this.state,g=p.initialLength,m=p.srcArray,y=p.swipeAvailable,b=p.activeItem,v=nI()("carousel",a?"carousel-multi-item":"carousel-fade",h?"carousel-thumbnails":"",d?"testimonial-carousel":"",i),x=[],w=function(t){var n=e.state.activeItem;x.push(r.createElement(Lj,{img:h?m[t-1]:null,key:t,active:n===t,onClick:function(){return e.goToIndex(t)}}))},k=1;k<=g;k++)w(k);var A=!!a,E=!!d;return r.createElement(Mj.Provider,{value:{activeItem:b,slide:c,length:g}},r.createElement(u,XM({"data-test":"carousel",ref:this.carouselRef},f,{className:v,"aria-label":"carousel",onTouchStart:this.startTouch,onTouchMove:y?this.moveTouch:null,onTouchEnd:this.swipeAvailableHandler,onMouseEnter:o?this.clearCycleIntervalHandler:null,onMouseLeave:o?this.restartInterval:null}),s&&a&&r.createElement("div",{className:"controls-top"},r.createElement(jj,{testimonial:E,multiItem:A,iconLeft:!0,className:"btn-floating",direction:"prev",role:"button",onClick:this.prev}),r.createElement(jj,{testimonial:E,multiItem:A,iconRight:!0,className:"btn-floating",direction:"next",role:"button",onClick:this.next})),n,s&&!a&&r.createElement(r.Fragment,null,r.createElement(jj,{testimonial:E,multiItem:A,direction:"prev",role:"button",onClick:this.prev}),r.createElement(jj,{testimonial:E,multiItem:A,direction:"next",role:"button",onClick:this.next})),l&&r.createElement(Bj,null,x)))}}]),t}();Fj.propTypes={activeItem:iI().number,children:iI().node,className:iI().string,interval:iI().oneOfType([iI().number,iI().bool]),length:iI().number,mobileGesture:iI().bool,multiItem:iI().bool,onHoverStop:iI().bool,showControls:iI().bool,showIndicators:iI().bool,slide:iI().bool,tag:iI().oneOfType([iI().func,iI().string]),testimonial:iI().bool,thumbnails:iI().bool},Fj.defaultProps={interval:6e3,mobileGesture:!0,onHoverStop:!0,showControls:!0,showIndicators:!0,tag:"div"};var Dj=function(e){var t=e.children,n=e.className,i=e.tag,a=tj(e,["children","className","tag"]),o=nI()("carousel-caption",n);return r.createElement(Mj.Consumer,null,(function(e){return ej(e),r.createElement(i,XM({"data-test":"carousel-caption"},a,{className:o}),t)}))};Dj.propTypes={active:iI().string,children:iI().node,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},Dj.defaultProps={tag:"div"};var Uj=function(e){var t=e.active,n=e.children,i=(e.childrenCount,e.className),a=e.tag,o=tj(e,["active","children","childrenCount","className","tag"]),s=nI()("carousel-inner",t?"active":"",i);return r.createElement(Mj.Consumer,null,(function(e){return ej(e),r.createElement(a,XM({"data-test":"carousel-inner"},o,{className:s}),n)}))};Uj.propTypes={active:iI().bool,children:iI().node,childrenCount:iI().number,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},Uj.defaultProps={tag:"div"};var zj=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"moveForward",(function(){n.style={position:"absolute",left:"100%"}})),qM(nj(n),"moveBackwards",(function(){n.style={position:"absolute",left:"-100%"}})),qM(nj(n),"makeVisible",(function(){n.style={left:"0"}})),n}return YM(t,[{key:"render",value:function(){var e=this,t=this.props,n=(t.active,t.children),i=t.className,a=t.itemId,o=t.tag,s=tj(t,["active","children","className","itemId","tag"]);return a=parseInt(a,10),r.createElement(Mj.Consumer,null,(function(t){var l=t.activeItem,c=t.slide,u=nI()("carousel-item",{"active carousel-slide-item":c,active:!c&&a===l},i),d=l-a;return c?d<0?e.moveForward():d>0?e.moveBackwards():e.makeVisible():e.makeVisible(),r.createElement(o,XM({"data-test":"carousel-item"},s,{className:u,style:e.style}),n)}))}}]),t}();zj.propTypes={active:iI().bool,children:iI().node,className:iI().string,itemId:iI().any,tag:iI().oneOfType([iI().func,iI().string])},zj.defaultProps={tag:"div"};var Wj=function(e){var t=e.onClick,n=e.className,i=e.ariaLabel,a=tj(e,["onClick","className","ariaLabel"]),o=n?["close"].concat(aj(n.split(" "))):["close"];return r.createElement("button",XM({"data-test":"close-button",type:"button"},a,{className:o.join(" "),onClick:function(e){t&&t(e)},"aria-label":i}),r.createElement("span",{"aria-hidden":"true"},"\xd7"))};Wj.defaultProps={ariaLabel:"Close"},Wj.propTypes={ariaLabel:iI().string,className:iI().string,onClick:iI().func};var Hj=function(e){var t=e.xs,n=e.sm,i=e.md,a=e.lg,o=e.xl,s=e.top,l=e.bottom,c=e.middle,u=e.size,d=e.className,h=e.tag,f=tj(e,["xs","sm","md","lg","xl","top","bottom","middle","size","className","tag"]),p=nI()(u&&"col-".concat(u),t&&"col-xs-".concat(t),n&&"col-sm-".concat(n),i&&"col-md-".concat(i),a&&"col-lg-".concat(a),o&&"col-xl-".concat(o),u||t||n||i||a||o?"":"col",s&&"align-self-start",c&&"align-self-center",l&&"align-self-end",d);return r.createElement(h,XM({"data-test":"col"},f,{className:p}))};Hj.propTypes={bottom:iI().bool,className:iI().string,lg:iI().string,md:iI().string,middle:iI().bool,size:iI().string,
2sm:iI().string,tag:iI().oneOfType([iI().func,iI().string]),top:iI().bool,xl:iI().string,xs:iI().string},Hj.defaultProps={tag:"div",xs:null,sm:null,md:null,lg:null,xl:null};var Vj={show:350,hide:350},Gj=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{id:n.props.id,collapse:"HIDDEN",height:null}),qM(nj(n),"element",null),qM(nj(n),"setTransitionTag",(function(e,t,r){n.transitionTag=setTimeout((function(){n.setState({collapse:e,height:null},t())}),n.getDelay(r))})),qM(nj(n),"openCollapse",(function(){var e=n.props.onOpened;n.setState({collapse:"SHOW"},(function(){n.setState({height:n.getHeight()}),n.setTransitionTag("SHOWN",e,"show")}))})),qM(nj(n),"closeCollapse",(function(){var e=n.props.onClosed;n.setState({height:n.getHeight()},(function(){n.setState({collapse:"HIDE",height:n.getHeight()},(function(){n.setState({height:0})}))})),n.setTransitionTag("HIDDEN",e,"hide")})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this.props.isOpen,t=this.state,n=t.collapse;e!==t.id&&!0!==e||"HIDDEN"!==n||this.openCollapse()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.isOpen,r=this.state.collapse,i="boolean"!=typeof n?n===t.id:n;i&&"HIDDEN"===r?this.openCollapse():i||"SHOWN"!==t.collapse||this.closeCollapse()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.transitionTag)}},{key:"getDelay",value:function(e){var t=this.props.delay;return"object"===HM(t)?isNaN(t[e])?Vj[e]:t[e]:t}},{key:"getHeight",value:function(){return this.element.scrollHeight}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.navbar,a=n.children,o=n.className,s=(n.isOpen,n.delay,n.tag),l=(n.onOpened,n.onClosed,tj(n,["navbar","children","className","isOpen","delay","tag","onOpened","onClosed"])),c=this.state,u=c.collapse,d=c.height;switch(u){case"SHOW":case"HIDE":e="collapsing";break;case"SHOWN":e="collapse show";break;default:e="collapse"}var h=nI()(e,!!i&&"navbar-collapse",o),f=null===d?null:{height:d};return r.createElement(s,XM({"data-test":"collapse"},l,{style:KM(KM({},l.style),f),className:h,ref:function(e){t.element=e}}),a)}}]),t}();Gj.propTypes={children:iI().node,className:iI().node,delay:iI().oneOfType([iI().number,iI().shape({hide:iI().number,show:iI().number})]),id:iI().string,isOpen:iI().oneOfType([iI().string,iI().bool]),navbar:iI().bool,onClosed:iI().func,onOpened:iI().func,tag:iI().string},Gj.defaultProps={isOpen:"",delay:Vj,onOpened:function(){},onClosed:function(){},tag:"div"};var Yj=function(e){var t=e.className,n=e.fluid,i=e.size,a=e.tag,o=tj(e,["className","fluid","size","tag"]),s=nI()(n?"container-fluid":i?"container-".concat(i):"container",t);return r.createElement(a,XM({"data-test":"container"},o,{className:s}))};Yj.propTypes={className:iI().string,fluid:iI().bool,size:iI().oneOf(["sm","md","lg","xl"]),tag:iI().oneOfType([iI().func,iI().string])},Yj.defaultProps={tag:"div",fluid:!1};var qj=function(e){var t=e.color,n=e.columns,i=e.handleSort,a=e.scrollX,o=e.scrollY,s=e.sortable,l=e.sorted,c=e.textWhite,u=nI()(t&&("dark"!==t&&"light"!==t?t:"thead-".concat(t)),c&&"text-white");return r.createElement(r.Fragment,null,(o||a)&&r.createElement("colgroup",null,n.map((function(e){return r.createElement("col",{key:e.field,style:{width:"".concat(e.width,"px")||0,minWidth:"".concat(e.width,"px")||0}})}))),r.createElement("thead",{"data-test":"datatable-head",className:u||void 0},r.createElement("tr",null,n.map((function(e,t){return r.createElement("th",XM({onClick:function(){return s&&i(e.field,e.sort)},key:e.field+t,className:nI()(e.hasOwnProperty("minimal")?"th-".concat(e.minimal):null,s&&"disabled"!==e.sort&&(l&&e.sort?"sorting_".concat("asc"===e.sort?"desc":"asc"):"sorting"))},e.attributes),e.label)})))))};qj.propTypes={sorted:iI().bool.isRequired,color:iI().string,columns:iI().arrayOf(iI().object),handleSort:iI().func,scrollX:iI().bool,scrollY:iI().bool,sortable:iI().bool,textWhite:iI().bool},qj.defaultProps={scrollX:!1,scrollY:!1,sortable:!0,textWhite:!1},vj(".table-wrapper-scroll-y {\n display: block;\n max-height: 200px;\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n");var Xj=function(e){var t=e.autoWidth,n=e.bordered,i=e.borderless,a=e.btn,o=e.children,s=e.className,l=e.dark,c=e.fixed,u=e.hover,d=e.maxHeight,h=e.responsive,f=e.responsiveLg,p=e.responsiveMd,g=e.responsiveSm,m=e.responsiveXl,y=e.scrollY,b=e.small,v=e.striped,x=(e.theadColor,e.wrapperClassName),w=tj(e,["autoWidth","bordered","borderless","btn","children","className","dark","fixed","hover","maxHeight","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","scrollY","small","striped","theadColor","wrapperClassName"]),k=nI()("table",{"w-auto":t,"table-bordered":n,"table-borderless":i,"btn-table":a,"table-fixed":c,"table-hover":u,"table-sm":b,"table-striped":v},s),A=nI()({"table-dark":l,"table-responsive":h,"table-responsive-sm":g,"table-responsive-md":p,"table-responsive-lg":f,"table-responsive-xl":m,"table-wrapper-scroll-y":y},x),E={maxHeight:d};return r.createElement("div",{"data-test":"table",className:A,style:E},r.createElement("table",XM({},w,{className:k}),o))};Xj.propTypes={autoWidth:iI().bool,bordered:iI().bool,borderless:iI().bool,btn:iI().bool,children:iI().node,className:iI().string,dark:iI().bool,fixed:iI().bool,hover:iI().bool,maxHeight:iI().string,responsive:iI().bool,responsiveLg:iI().bool,responsiveMd:iI().bool,responsiveSm:iI().bool,responsiveXl:iI().bool,scrollY:iI().bool,small:iI().bool,striped:iI().bool,theadColor:iI().string,wrapperClassName:iI().string};
2var $j=function(e){var t=e.children,n=e.color,i=e.columns,a=e.rows,o=e.textWhite,s=tj(e,["children","color","columns","rows","textWhite"]),l=nI()(n,{"text-white":o}),c=function(e,t,n,i){return"clickEvent"===e?null:"colspan"!==e?i.message?0===t&&r.createElement("td",{key:t,colSpan:i.colspan},i.message):"colspan"!==n[t+1]&&null!==i[e]&&r.createElement("td",{key:t},i[e])||r.createElement("td",{key:t}):r.createElement("td",{key:t,colSpan:i.colspan},i[n[t-1]])};return r.createElement("tbody",XM({"data-test":"table-body"},s,{className:l||void 0}),a&&a.map((function(e,t){return r.createElement("tr",{className:e.rowClassNames?e.rowClassNames:void 0,onClick:e.hasOwnProperty("clickEvent")?function(){e.clickEvent(e)}:void 0,key:t},i?i.map((function(t,n,r){var i=t.field;return c(i,n,r,e)})):Object.keys(e).map((function(t,n,r){return c(t,n,r,e)})))})),t)};$j.propTypes={children:iI().node,color:iI().string,rows:iI().arrayOf(iI().object),textWhite:iI().bool},$j.defaultProps={textWhite:!1};var Kj=function(e){var t,n=e.children,i=e.color,a=e.columns,o=e.textWhite,s=tj(e,["children","color","columns","textWhite"]),l="dark"===i||"light"===i,c=nI()((qM(t={"text-white":o},"thead-".concat(i),i&&l),qM(t,"".concat(i),i&&!l),t));return r.createElement("thead",XM({"data-test":"table-foot"},s,{className:c||void 0}),a&&r.createElement("tr",null,a.map((function(e){return r.createElement("th",{key:e.field,className:e.hasOwnProperty("minimal")?"th-".concat(e.minimal):void 0},e.label)}))),n)};Kj.propTypes={children:iI().node,color:iI().string,columns:iI().arrayOf(iI().object),textWhite:iI().bool},Kj.defaultProps={textWhite:!1};var Qj=function(e){var t=e.autoWidth,n=e.bordered,i=e.borderless,a=e.btn,o=e.children,s=e.columns,l=e.dark,c=e.fixed,u=e.handleSort,d=e.hover,h=e.noBottomColumns,f=(e.noRecordsFoundLabel,e.responsive),p=e.responsiveLg,g=e.responsiveMd,m=e.responsiveSm,y=e.responsiveXl,b=e.rows,v=e.small,x=e.sortable,w=e.sorted,k=e.striped,A=e.tbodyColor,E=e.tbodyTextWhite,S=e.theadColor,P=e.theadTextWhite,C=tj(e,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","hover","noBottomColumns","noRecordsFoundLabel","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite"]);return r.createElement("div",{"data-test":"datatable-table",className:"col-sm-12"},r.createElement(Xj,XM({autoWidth:t,bordered:n,borderless:i,btn:a,dark:l,fixed:c,hover:d,responsive:f,responsiveSm:m,responsiveMd:g,responsiveLg:p,responsiveXl:y,small:v,striped:k,className:"dataTable"},C),r.createElement(qj,{color:S,textWhite:P,columns:s,handleSort:u,sortable:x,sorted:w}),r.createElement($j,{color:A,textWhite:E,rows:b,columns:s}),!h&&r.createElement(Kj,{color:S,textWhite:P,columns:s}),o))};Qj.propTypes={autoWidth:iI().bool.isRequired,bordered:iI().bool.isRequired,borderless:iI().bool.isRequired,btn:iI().bool.isRequired,dark:iI().bool.isRequired,fixed:iI().bool.isRequired,handleSort:iI().func.isRequired,hover:iI().bool.isRequired,responsive:iI().bool.isRequired,responsiveLg:iI().bool.isRequired,responsiveMd:iI().bool.isRequired,responsiveSm:iI().bool.isRequired,responsiveXl:iI().bool.isRequired,small:iI().bool.isRequired,sortable:iI().bool.isRequired,sorted:iI().bool.isRequired,striped:iI().bool.isRequired,tbodyColor:iI().string.isRequired,tbodyTextWhite:iI().bool.isRequired,theadColor:iI().string.isRequired,theadTextWhite:iI().bool.isRequired,children:iI().node,columns:iI().arrayOf(iI().object),noBottomColumns:iI().bool,rows:iI().arrayOf(iI().object)};var Jj=function(e){var t=e.autoWidth,n=e.bordered,i=e.borderless,a=e.btn,o=e.children,s=e.columns,l=e.dark,c=e.fixed,u=e.handleSort,d=e.handleTableBodyScroll,h=e.hover,f=e.maxHeight,p=e.responsive,g=e.responsiveLg,m=e.responsiveMd,y=e.responsiveSm,b=e.responsiveXl,v=e.rows,x=e.scrollX,w=e.scrollY,k=e.small,A=e.sortable,E=e.sorted,S=e.striped,P=e.tbodyColor,C=e.tbodyTextWhite,O=e.theadColor,T=e.theadTextWhite,N=e.translateScrollHead,_=tj(e,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","handleTableBodyScroll","hover","maxHeight","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","scrollX","scrollY","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite","translateScrollHead"]),I=x?"".concat(s.map((function(e){return e.width})).reduce((function(e,t){return e+t}),0),"px"):"auto";return r.createElement("div",{"data-test":"datatable-table-scroll",className:"col-sm-12"},r.createElement("div",{className:"dataTables_scroll"},r.createElement("div",{className:"dataTables_scrollHead",style:{overflow:"hidden"}},r.createElement("div",{className:"dataTables_scrollHeadInner",style:{position:"relative",transform:"translateX(-".concat(N,"px)"),boxSizing:"content-box",paddingRight:w?"15px":null,minWidth:I}},r.createElement(Xj,XM({autoWidth:t,bordered:n,borderless:i,btn:a,dark:l,fixed:c,hover:h,responsive:p,responsiveSm:y,responsiveMd:m,responsiveLg:g,responsiveXl:b,small:k,striped:S,className:"dataTable"},_),r.createElement(qj,{color:O,textWhite:T,columns:s,handleSort:u,scrollX:x,scrollY:w,sortable:A,sorted:E})))),r.createElement("div",{className:"dataTable_scrollBody",style:{overflow:"auto"},onScroll:d},r.createElement(Xj,XM({style:{minWidth:I},autoWidth:t,bordered:n,borderless:i,btn:a,dark:l,fixed:c,hover:h,maxHeight:f,responsive:p,responsiveSm:y,responsiveMd:m,responsiveLg:g,responsiveXl:b,scrollY:w,small:k,striped:S,className:"dataTable"},_),r.createElement("colgroup",null,s.map((function(e,t){return r.createElement("col",{key:e.field+t,style:{width:"".concat(e.width,"px")||0,minWidth:"".concat(e.width,"px")||0}})}))),r.createElement($j,{color:P,textWhite:C,rows:v,columns:s}),o))))};Jj.propTypes={autoWidth:iI().bool.isRequired,bordered:iI().bool.isRequired,borderless:iI().bool.isRequired,btn:iI().bool.isRequired,dark:iI().bool.isRequired,fixed:iI().bool.isRequired,handleSort:iI().func.isRequired,handleTableBodyScroll:iI().func.isRequired,hover:iI().bool.isRequired,responsive:iI().bool.isRequired,responsiveLg:iI().bool.isRequired,responsiveMd:iI().bool.isRequired,responsiveSm:iI().bool.isRequired,responsiveXl:iI().bool.isRequired,small:iI().bool.isRequired,sortable:iI().bool.isRequired,sorted:iI().bool.isRequired,striped:iI().bool.isRequired,tbodyColor:iI().string.isRequired,tbodyTextWhite:iI().bool.isRequired,theadColor:iI().string.isRequired,theadTextWhite:iI().bool.isRequired,translateScrollHead:iI().number.isRequired,children:iI().node,columns:iI().arrayOf(iI().object),maxHeight:iI().string,rows:iI().arrayOf(iI().object),scrollX:iI().bool,scrollY:iI().bool};
2var Zj=function(e){var t=e.value,n=e.onChange,i=e.entries,a=e.label;return e.barReverse,r.createElement("div",{"data-test":"datatable-select",className:"dataTables_length bs-select"},r.createElement("label",null,a,r.createElement("select",{value:t,onChange:function(e){var t=parseInt(e.target.value,10);n(t)},className:"custom-select custom-select-sm form-control form-control-sm",style:{marginLeft:".5rem"}},i.map((function(e,t){return r.createElement("option",{key:e+t,value:e},e)})))))};Zj.propTypes={entries:iI().arrayOf(iI().number).isRequired,label:iI().oneOfType([iI().string,iI().number,iI().object]).isRequired,onChange:iI().func.isRequired,value:iI().number.isRequired};var eL=function(e){var t=e.handleEntriesChange,n=e.displayEntries,i=e.entries,a=e.entriesArr,o=e.paging,s=e.label,l=e.barReverse,c=e.proSelect,u=tj(e,["handleEntriesChange","displayEntries","entries","entriesArr","paging","label","barReverse","proSelect"]);return r.createElement("div",{"data-test":"datatable-entries",className:"col-sm-12 col-md-6",style:{display:"flex",alignItems:"center",justifyContent:l&&"flex-end"}},o&&n&&!c&&r.createElement(Zj,XM({value:i,onChange:t,entries:a,label:s,barReverse:l},u)))};eL.propTypes={displayEntries:iI().bool.isRequired,entries:iI().number.isRequired,entriesArr:iI().arrayOf(iI().number).isRequired,handleEntriesChange:iI().func.isRequired,label:iI().oneOfType([iI().number,iI().object,iI().string]).isRequired,paging:iI().bool.isRequired,barReverse:iI().bool,proSelect:iI().bool};var tL=function(e){var t=e.value,n=e.onChange,i=e.label,a=e.barReverse,o=e.materialSearch;return r.createElement("div",{"data-test":"datatable-input",className:nI()("mdb-datatable-filter","flex-row",a&&"text-left")},o?r.createElement(NL,{hint:"Search",containerClass:"mt-0",value:t,onChange:n,type:"search",className:"form-control form-control-sm",placeholder:i||"Search"}):r.createElement("input",{className:"form-control form-control-sm ml-0 my-1",type:"text",placeholder:i||"Search","aria-label":"Search",value:t,onChange:n}))};tL.propTypes={barReverse:iI().bool,label:iI().string,materialSearch:iI().bool,onChange:iI().func,value:iI().string};var nL=function(e){var t=e.handleSearchChange,n=e.search,i=e.searching,a=e.label,o=e.barReverse,s=e.wrapperSearchStyle,l=e.wrapperSearchClasses,c=e.materialSearch,u=tj(e,["handleSearchChange","search","searching","label","barReverse","wrapperSearchStyle","wrapperSearchClasses","materialSearch"]),d=nI()("col-sm-12 col-md-6",l);return i&&r.createElement("div",{"data-test":"datatable-search",style:KM({display:"flex",alignItems:"center",justifyContent:o?"flex-start":"flex-end"},s),className:d},r.createElement(tL,XM({value:n,onChange:t,label:a,barReverse:o,materialSearch:c},u)))};nL.propTypes={handleSearchChange:iI().func.isRequired,search:iI().string.isRequired,searching:iI().bool.isRequired,barReverse:iI().bool,label:iI().string,materialSearch:iI().bool};var rL=function(e){var t=e.activePage,n=e.entries,i=e.filteredRows,a=e.info,o=e.label,s=e.noRecordsFoundLabel,l=e.pages,c=o[0],u=o[1],d=o[2],h=o[3],f=i.length>0&&i[0].message===s,p=t>0?t*n+1:t+1,g=l.length-1>t?l[t].length*(t+1):i.length,m=i.length;return r.createElement("div",{"data-test":"datatable-info",className:"col-sm-12 col-md-5"},a&&r.createElement("div",{className:"dataTables_info",role:"status","aria-live":"polite"},f?"".concat(c," 0 ").concat(h):"".concat(c," ").concat(p," ").concat(u," ").concat(g," ").concat(d," ").concat(m," ").concat(h)))};rL.propTypes={activePage:iI().number.isRequired,entries:iI().number.isRequired,filteredRows:iI().array.isRequired,info:iI().bool.isRequired,noRecordsFoundLabel:iI().string.isRequired,pages:iI().array.isRequired,label:iI().arrayOf(iI().string)},rL.defaultProps={label:["Showing","to","of","entries"]};var iL=function(e){var t,n=e.children,i=e.circle,a=e.className,o=e.color,s=e.tag,l=e.size,c=tj(e,["children","circle","className","color","tag","size"]),u=nI()((qM(t={"pagination-circle":i},"pg-".concat(o),o),qM(t,"pagination-".concat(l),l),t),"pagination",a);return r.createElement(s,XM({"data-test":"pagination"},c,{className:u}),n)};iL.propTypes={children:iI().node,circle:iI().bool,className:iI().string,color:iI().string,
2size:iI().oneOf(["lg","sm"]),tag:iI().oneOfType([iI().func,iI().string])},iL.defaultProps={circle:!1,className:"",color:"",tag:"ul"};var aL=function(e){var t=e.active,n=e.className,i=e.children,a=e.disabled,o=e.tag,s=tj(e,["active","className","children","disabled","tag"]),l=nI()({disabled:a,active:t},"page-item",n);return r.createElement(o,XM({"data-test":"page-item"},s,{className:l}),i)};aL.propTypes={active:iI().bool,children:iI().node,className:iI().string,disabled:iI().bool,tag:iI().oneOfType([iI().func,iI().string])},aL.defaultProps={active:!1,className:"",disabled:!1,tag:"li"};var oL=function(e){var t=e.children,n=e.className,i=e.tag,a=tj(e,["children","className","tag"]),o=nI()("page-link",n);return r.createElement(i,XM({"data-test":"page-link"},a,{className:o}),t)};oL.propTypes={children:iI().node,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},oL.defaultProps={tag:"a"};var sL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{pages:n.props.pages,pGroups:[]}),qM(nj(n),"componentDidUpdate",(function(e){var t=n.props.pages;e.pages!==t&&n.setState({pages:t},(function(){return n.groupPages()}))})),qM(nj(n),"pagesIndexify",(function(){var e=aj(n.state.pages);return e.forEach((function(e,t){return e.index=t})),e})),qM(nj(n),"groupPages",(function(){for(var e=[],t=n.pagesIndexify(),r=n.props.pagesAmount;t.length>0;)e.push(t.splice(0,r));n.setState({pGroups:e})})),qM(nj(n),"choosePagesGroup",(function(){var e=n.props,t=e.activePage,r=e.pagesAmount,i=n.state.pGroups,a=Math.floor(t/r);return i.length?i[a]:[]})),n}
2return YM(t,[{key:"componentDidMount",value:function(){this.groupPages()}},{key:"render",value:function(){var e=this.props,t=e.activePage,n=e.changeActivePage,i=e.pages,a=e.label;return r.createElement("div",{"data-test":"datatable-pagination",className:"col-sm-12 col-md-7"},r.createElement("div",{className:"dataTables_paginate"},r.createElement(iL,null,r.createElement(aL,{disabled:t<=0},r.createElement(oL,{className:"page-link","aria-label":a[0],onClick:function(){return n(t-1)}},r.createElement("span",null,a[0]))),this.choosePagesGroup().map((function(e,i){return r.createElement(aL,{key:Object.keys(e[0])[0]+e.index+i,active:e.index===t},r.createElement(oL,{className:"page-link",onClick:function(){return n(e.index)}},e.index+1,e.index===t&&r.createElement("span",{className:"sr-only"},"(current)")))})),r.createElement(aL,{disabled:!i.length||t===i.length-1},r.createElement(oL,{className:"page-link","aria-label":a[1],onClick:function(){return n(t+1)}},r.createElement("span",null,a[1]))))))}}]),t}();sL.propTypes={activePage:iI().number.isRequired,changeActivePage:iI().func.isRequired,label:iI().arrayOf(iI().string).isRequired,pages:iI().array.isRequired,pagesAmount:iI().number.isRequired};var lL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{activePage:0,columns:n.props.data.columns||[],entries:n.props.entries,filteredRows:n.props.data.rows||[],filterOptions:[],order:n.props.order||[],pages:[],rows:n.props.data.rows||[],search:"",searchSelect:"",sorted:!1,translateScrollHead:0,unsearchable:[]}),qM(nj(n),"setData",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;n.setState((function(){return{columns:t,rows:e,filteredRows:n.props.disableRetreatAfterSorting?n.filterRows():e}}),r&&"function"==typeof r&&function(){return r()})})),qM(nj(n),"setUnsearchable",(function(e){var t=[];e.forEach((function(e){void 0!==e.searchable&&!1===e.searchable&&t.push(e.field)})),n.setState({unsearchable:t})})),qM(nj(n),"fetchData",(function(e,t){fetch(e).then((function(e){return e.json()})).then((function(e){return n.setData(e.rows,e.columns,t?n.paginateRows:null)})).catch((function(e){return console.log(e)}))})),qM(nj(n),"pagesAmount",(function(){return Math.ceil(n.state.filteredRows.length/n.state.entries)})),qM(nj(n),"paginateRowsInitialy",(function(){for(var e=n.state,t=e.rows,r=e.entries,i=e.pages,a=n.pagesAmount(),o=1;o<=a;o++){var s=o*r;i.push(t.slice(s-r,s))}})),qM(nj(n),"handleEntriesChange",(function(e){n.setState({entries:Array.isArray(e)?e[0]:e},(function(){return n.paginateRows()}))})),qM(nj(n),"handleSearchChange",(function(e){n.setState({search:e.target.value},(function(){return n.filterRows()}),n.props.onSearch&&"function"==typeof n.props.onSearch&&n.props.onSearch(e.target.value))})),qM(nj(n),"checkFieldValue",(function(e,t){return e[t]&&"string"!=typeof e[t]?e[t].props.searchvalue:e[t]})),qM(nj(n),"checkField",(function(e,t,r,i){var a=[n.checkFieldValue(t,e),n.checkFieldValue(r,e)],o=a[0]>a[1]?-1:1;return"asc"===i&&(o*=-1),o})),qM(nj(n),"isString",(function(e){return"string"==typeof e})),qM(nj(n),"sort",(function(e,t,r,i){return e.sort((function(e,a){if(t&&t.includes(r))return n.checkField(r,e,a,i);var o=n.isString(e[r])&&e[r].includes("$")?Number(e[r].replace(/\$/g,"")):e[r],s=n.isString(a[r])&&a[r].includes("$")?Number(a[r].replace(/\$/g,"")):a[r];return"asc"===i?o<s?-1:1:o>s?-1:1}))})),qM(nj(n),"handleSort",(function(e,t){var r=n.props.onSort,i=n.state.direction;"disabled"!==t&&(n.setState({direction:!i}),n.setState((function(t){var r=n.props.sortRows,i=t.rows,a=t.columns,o=t.direction?"asc":"desc";return n.sort(i,r,e,o),a.forEach((function(t){"disabled"!==t.sort&&(t.sort=t.field===e?o:"")})),{rows:i,columns:a,sorted:!0}}),(function(){return n.filterRows()})),r&&"function"==typeof r&&r({column:e,direction:!0===n.state.direction?"asc":"desc"}))})),qM(nj(n),"filterRows",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.search,t=n.state.unsearchable,r=n.props,i=r.sortRows,a=r.noRecordsFoundLabel;n.setState((function(r){var o=r.rows.filter((function(n){for(var r in n)if(!(t.length&&t.includes(r)||"function"==typeof n[r])){var a="";if(i&&"string"!=typeof n[r]?(o=void 0,o=[],function e(t){return"object"===HM(t)?t.props.children&&Array.from(t.props.children).map((function(t){return e(t)})):o.push(t)}(n[r]),a=o.join("")):n[r]&&(a=n[r].toString()),a.toLowerCase().includes(e.toLowerCase()))return!0}var o;return!1}));0===o.length&&o.push({message:a,colspan:r.columns.length});var s={};return n.props.disableRetreatAfterSorting?s={filteredRows:o,activePage:r.activePage=r.activePage<r.pages.length||0===r.activePage?r.activePage:r.pages.length-1}:n.props.disableRetreatAfterSorting||(s={filteredRows:o,activePage:0}),s}),(function(){return n.paginateRows()}))})),qM(nj(n),"paginateRows",(function(){var e=n.pagesAmount();n.setState((function(t){var r=t.pages,i=t.entries,a=t.filteredRows,o=t.activePage,s=n.props,l=s.paging,c=s.disableRetreatAfterSorting;if(r=[],l){for(var u=1;u<=e;u++){var d=u*i;r.push(a.slice(d-i,d))}c||(o=o<r.length||0===o?o:r.length-1)}else r.push(a),o=0;return{pages:r,filteredRows:a,activePage:o}}))})),qM(nj(n),"changeActivePage",(function(e){var t=n.props.onPageChange;n.setState({activePage:e}),t&&"function"==typeof t&&t({activePage:e+1,pagesAmount:n.pagesAmount()})})),qM(nj(n),"handleTableBodyScroll",(function(e){n.setState({translateScrollHead:e.target.scrollLeft})})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.data,n=e.paging,r=this.state,i=r.order,a=r.columns,o=r.pages,s=r.rows;"string"==typeof t&&this.fetchData(t,this.paginateRows),i.length>0?this.handleSort(i[0],i[1]):this.handleSort(),this.setUnsearchable(a),n?this.paginateRowsInitialy():o.push(s)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.columns,r=this.props.data;e.data!==r&&("string"==typeof r?this.fetchData(r):this.setData(r.rows,r.columns,this.paginateRows),this.setUnsearchable(n),this.filterRows())}},{key:"render",value:function(){var e=this.props,t=e.autoWidth,n=e.barReverse,i=e.bordered,a=e.borderless,o=e.btn,s=(e.children,e.className),l=e.dark,c=(e.data,e.disableRetreatAfterSorting,e.displayEntries),u=e.entriesLabel,d=e.entriesOptions,h=(e.exportToCSV,e.filter,e.fixed),f=e.hover,p=e.info,g=e.infoLabel,m=e.maxHeight,y=e.noBottomColumns,b=e.noRecordsFoundLabel,v=(e.onPageChange,e.onSearch,e.onSort,e.order,e.pagesAmount),x=e.paginationLabel,w=e.paging,k=e.responsive,A=e.responsiveLg,E=e.responsiveMd,S=e.responsiveSm,P=e.responsiveXl,C=e.scrollX,O=e.scrollY,T=e.searching,N=e.searchLabel,_=e.small,I=e.sortable,R=(e.sortRows,e.striped),M=e.tbodyColor,j=e.tbodyTextWhite,L=e.theadColor,B=e.materialSearch,F=e.theadTextWhite,D=e.proSelect,U=tj(e,["autoWidth","barReverse","bordered","borderless","btn","children","className","dark","data","disableRetreatAfterSorting","displayEntries","entriesLabel","entriesOptions","exportToCSV","filter","fixed","hover","info","infoLabel","maxHeight","noBottomColumns","noRecordsFoundLabel","onPageChange","onSearch","onSort","order","pagesAmount","paginationLabel","paging","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","scrollX","scrollY","searching","searchLabel","small","sortable","sortRows","striped","tbodyColor","tbodyTextWhite","theadColor","materialSearch","theadTextWhite","proSelect"]),z=this.state,W=z.columns,H=z.entries,V=z.filteredRows,G=(z.filterOptions,z.pages),Y=z.activePage,q=z.search,X=z.sorted,$=z.translateScrollHead,K=nI()("dataTables_wrapper dt-bootstrap4",s);return r.createElement("div",{"data-test":"datatable",className:K},r.createElement("div",{className:"row"},n?r.createElement(r.Fragment,null,r.createElement(nL,{handleSearchChange:this.handleSearchChange,search:q,searching:T,label:N,barReverse:n,materialSearch:B}),r.createElement(eL,{paging:w,displayEntries:c,entries:H,handleEntriesChange:this.handleEntriesChange,entriesArr:d,label:u,barReverse:n,proSelect:D})):r.createElement(r.Fragment,null,r.createElement(eL,{paging:w,displayEntries:c,entries:H,handleEntriesChange:this.handleEntriesChange,entriesArr:d,label:u,barReverse:n,proSelect:D}),r.createElement(nL,{handleSearchChange:this.handleSearchChange,search:q,searching:T,label:N,barReverse:n,materialSearch:B}))),!O&&!C&&r.createElement("div",{className:"row"},r.createElement(Qj,XM({autoWidth:t,bordered:i,borderless:a,btn:o,dark:l,fixed:h,hover:f,noBottomColumns:y,noRecordsFoundLabel:b,responsive:k,responsiveSm:S,responsiveMd:E,responsiveLg:A,responsiveXl:P,small:_,striped:R,theadColor:L,theadTextWhite:F,columns:W,handleSort:this.handleSort,sortable:I,tbodyColor:M,tbodyTextWhite:j,rows:G[Y],sorted:X},U))),(O||C)&&r.createElement("div",{className:"row"},r.createElement(Jj,XM({autoWidth:t,bordered:i,borderless:a,btn:o,dark:l,fixed:h,handleTableBodyScroll:this.handleTableBodyScroll,hover:f,maxHeight:m,responsive:k,responsiveSm:S,responsiveMd:E,responsiveLg:A,responsiveXl:P,scrollX:C,scrollY:O,small:_,striped:R,theadColor:L,theadTextWhite:F,columns:W,handleSort:this.handleSort,sortable:I,sorted:X,tbodyColor:M,tbodyTextWhite:j,rows:G[Y],translateScrollHead:$},U))),w&&r.createElement("div",{className:"row"},r.createElement(rL,{activePage:Y,entries:H,filteredRows:V,info:p,pages:G,label:g,noRecordsFoundLabel:b}),r.createElement(sL,{activePage:Y,changeActivePage:this.changeActivePage,pages:G,pagesAmount:v,label:x})))}}]),t}();lL.propTypes={autoWidth:iI().bool,barReverse:iI().bool,bordered:iI().bool,borderless:iI().bool,btn:iI().bool,children:iI().node,className:iI().string,dark:iI().bool,data:iI().oneOfType([iI().object,iI().string]),disableRetreatAfterSorting:iI().bool,displayEntries:iI().bool,entries:iI().number,entriesLabel:iI().oneOfType([iI().string,iI().number,iI().object]),entriesOptions:iI().arrayOf(iI().number),exportToCSV:iI().bool,filter:iI().string,fixed:iI().bool,hover:iI().bool,info:iI().bool,infoLabel:iI().oneOfType([iI().array,iI().object,iI().string]),materialSearch:iI().bool,maxHeight:iI().string,noBottomColumns:iI().bool,noRecordsFoundLabel:iI().string,onPageChange:iI().func,onSearch:iI().func,onSort:iI().func,order:iI().arrayOf(iI().string),pagesAmount:iI().number,paginationLabel:iI().arrayOf(iI().string),paging:iI().bool,proSelect:iI().bool,responsive:iI().bool,responsiveLg:iI().bool,responsiveMd:iI().bool,responsiveSm:iI().bool,responsiveXl:iI().bool,scrollX:iI().bool,scrollY:iI().bool,searching:iI().bool,searchLabel:iI().string,
2small:iI().bool,sortable:iI().bool,sortRows:iI().arrayOf(iI().string),striped:iI().bool,tbodyColor:iI().string,tbodyTextWhite:iI().bool,theadColor:iI().string,theadTextWhite:iI().bool},lL.defaultProps={autoWidth:!1,barReverse:!1,bordered:!1,borderless:!1,btn:!1,dark:!1,data:{columns:[],rows:[]},disableRetreatAfterSorting:!1,displayEntries:!0,entries:10,entriesLabel:"Show entries",entriesOptions:[10,20,50,100],exportToCSV:!1,fixed:!1,hover:!1,info:!0,infoLabel:["Showing","to","of","entries"],noRecordsFoundLabel:"No matching records found",noBottomColumns:!1,order:[],pagesAmount:8,paging:!0,paginationLabel:["Previous","Next"],responsive:!1,responsiveSm:!1,responsiveMd:!1,responsiveLg:!1,responsiveXl:!1,searching:!0,searchLabel:"Search",scrollX:!1,scrollY:!1,sortable:!0,small:!1,striped:!1,theadColor:"",theadTextWhite:!1,tbodyColor:"",tbodyTextWhite:!1,proSelect:!1,materialSearch:!1};var cL=function(e){var t=e.color,n=e.columns,i=e.handleSort,a=e.scrollX,o=e.scrollY,s=e.sortable,l=e.sorted,c=e.textWhite,u=nI()("mdb-dataTable-head",t&&("dark"!==t&&"light"!==t?t:"thead-".concat(t)),c&&"text-white");return r.createElement(r.Fragment,null,(o||a)&&r.createElement("colgroup",null,n.map((function(e,t){return r.createElement("col",{key:e.field+t,style:{width:"".concat(e.width,"px")||0,minWidth:"".concat(e.width,"px")||0}})}))),r.createElement("thead",{"data-test":"datatable-head",className:u||void 0},r.createElement("tr",null,n.map((function(e){return r.createElement("th",XM({onClick:function(){return s&&i(e.field,e.sort)},key:e.field,className:nI()(e.hasOwnProperty("minimal")?"th-".concat(e.minimal):null,s&&"disabled"!==e.sort&&(l&&e.sort?"sorting_".concat("asc"===e.sort?"desc":"asc"):"sorting"))},e.attributes),e.label)})))))};cL.propTypes={sorted:iI().bool.isRequired,color:iI().string,columns:iI().arrayOf(iI().object),handleSort:iI().func,scrollX:iI().bool,scrollY:iI().bool,sortable:iI().bool,textWhite:iI().bool},cL.defaultProps={scrollX:!1,scrollY:!1,sortable:!0,textWhite:!1};var uL=function(e){var t=e.autoWidth,n=e.bordered,i=e.borderless,a=e.btn,o=e.children,s=e.columns,l=e.dark,c=e.fixed,u=e.handleSort,d=e.hover,h=e.noBottomColumns,f=(e.noRecordsFoundLabel,e.responsive),p=e.responsiveLg,g=e.responsiveMd,m=e.responsiveSm,y=e.responsiveXl,b=e.rows,v=e.small,x=e.sortable,w=e.sorted,k=e.striped,A=e.tbodyColor,E=e.tbodyTextWhite,S=e.theadColor,P=e.theadTextWhite,C=(e.checkbox,tj(e,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","hover","noBottomColumns","noRecordsFoundLabel","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite","checkbox"]));return r.createElement("div",{"data-test":"mdb-datatable-table",className:"col-sm-12"},r.createElement(Xj,XM({autoWidth:t,bordered:n,borderless:i,btn:a,dark:l,fixed:c,hover:d,responsive:f,responsiveSm:m,responsiveMd:g,responsiveLg:p,responsiveXl:y,small:v,striped:k,className:"mdb-dataTable"},C),r.createElement(cL,{color:S,textWhite:P,columns:s,handleSort:u,sortable:x,sorted:w}),r.createElement($j,{color:A,textWhite:E,rows:b,columns:s}),!h&&r.createElement(Kj,{color:S,textWhite:P,columns:s}),o))};uL.propTypes={autoWidth:iI().bool.isRequired,bordered:iI().bool.isRequired,borderless:iI().bool.isRequired,btn:iI().bool.isRequired,dark:iI().bool.isRequired,fixed:iI().bool.isRequired,handleSort:iI().func.isRequired,hover:iI().bool.isRequired,responsive:iI().bool.isRequired,responsiveLg:iI().bool.isRequired,responsiveMd:iI().bool.isRequired,responsiveSm:iI().bool.isRequired,responsiveXl:iI().bool.isRequired,small:iI().bool.isRequired,sortable:iI().bool.isRequired,sorted:iI().bool.isRequired,striped:iI().bool.isRequired,tbodyColor:iI().string.isRequired,tbodyTextWhite:iI().bool.isRequired,theadColor:iI().string.isRequired,theadTextWhite:iI().bool.isRequired,children:iI().node,columns:iI().arrayOf(iI().object),noBottomColumns:iI().bool,rows:iI().arrayOf(iI().object)};var dL=function(e){var t=e.autoWidth,n=e.bordered,i=e.borderless,a=e.btn,o=e.children,s=e.columns,l=e.dark,c=e.fixed,u=e.handleSort,d=e.handleTableBodyScroll,h=e.hover,f=e.maxHeight,p=e.responsive,g=e.responsiveLg,m=e.responsiveMd,y=e.responsiveSm,b=e.responsiveXl,v=e.rows,x=e.scrollX,w=e.scrollY,k=e.small,A=e.sortable,E=e.sorted,S=e.striped,P=e.tbodyColor,C=e.tbodyTextWhite,O=e.theadColor,T=e.theadTextWhite,N=e.translateScrollHead,_=tj(e,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","handleTableBodyScroll","hover","maxHeight","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","scrollX","scrollY","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite","translateScrollHead"]),I=x?"".concat(s.map((function(e){return e.width})).reduce((function(e,t){return e+t}),0),"px"):"auto";return r.createElement("div",{"data-test":"datatable-table-scroll",className:"col-sm-12"},r.createElement("div",{className:"dataTables_scroll"},r.createElement("div",{className:"dataTables_scrollHead",style:{overflow:"hidden"}},r.createElement("div",{className:"dataTables_scrollHeadInner",style:{position:"relative",transform:"translateX(-".concat(N,"px)"),boxSizing:"content-box",paddingRight:w?"15px":null,minWidth:I}},r.createElement(Xj,XM({autoWidth:t,bordered:n,borderless:i,btn:a,dark:l,fixed:c,hover:h,responsive:p,responsiveSm:y,responsiveMd:m,responsiveLg:g,responsiveXl:b,small:k,striped:S,className:"dataTable"},_),r.createElement(cL,{color:O,textWhite:T,columns:s,handleSort:u,scrollX:x,scrollY:w,sortable:A,sorted:E})))),r.createElement("div",{className:"mdb-dataTable_scrollBody",style:{overflow:"auto"},onScroll:d},r.createElement(Xj,XM({style:{minWidth:I},autoWidth:t,bordered:n,borderless:i,btn:a,dark:l,fixed:c,hover:h,maxHeight:f,responsive:p,responsiveSm:y,responsiveMd:m,responsiveLg:g,responsiveXl:b,scrollY:w,small:k,striped:S,className:"mdb-dataTable"},_),r.createElement("colgroup",null,s.map((function(e,t){return r.createElement("col",{key:e.field+t,style:{width:"".concat(e.width,"px")||0,minWidth:"".concat(e.width,"px")||0}})}))),r.createElement($j,{color:P,textWhite:C,rows:v,columns:s}),o))))};dL.propTypes={autoWidth:iI().bool.isRequired,bordered:iI().bool.isRequired,borderless:iI().bool.isRequired,btn:iI().bool.isRequired,dark:iI().bool.isRequired,fixed:iI().bool.isRequired,handleSort:iI().func.isRequired,handleTableBodyScroll:iI().func.isRequired,hover:iI().bool.isRequired,responsive:iI().bool.isRequired,responsiveLg:iI().bool.isRequired,responsiveMd:iI().bool.isRequired,responsiveSm:iI().bool.isRequired,responsiveXl:iI().bool.isRequired,small:iI().bool.isRequired,sortable:iI().bool.isRequired,sorted:iI().bool.isRequired,striped:iI().bool.isRequired,tbodyColor:iI().string.isRequired,tbodyTextWhite:iI().bool.isRequired,theadColor:iI().string.isRequired,theadTextWhite:iI().bool.isRequired,translateScrollHead:iI().number.isRequired,children:iI().node,columns:iI().arrayOf(iI().object),maxHeight:iI().string,rows:iI().arrayOf(iI().object),scrollX:iI().bool,scrollY:iI().bool};
2var hL=function(e){var t=e.value,n=e.onChange,i=e.entries,a=e.label,o=e.style,s=(e.barReverse,tj(e,["value","onChange","entries","label","style","barReverse"]));return r.createElement("div",{"data-test":"datatable-select",className:"mdb-datatable-length bs-select"},r.createElement("label",null,a,r.createElement("select",XM({value:t,onChange:function(e){var t=parseInt(e.target.value,10);n(t)},className:"custom-select custom-select-sm form-control form-control-sm",style:KM({marginLeft:".5rem"},o)},s),i.map((function(e,t){return r.createElement("option",{key:e+t,value:e},e)})))))};hL.propTypes={entries:iI().arrayOf(iI().number).isRequired,label:iI().oneOfType([iI().string,iI().number,iI().object]).isRequired,onChange:iI().func.isRequired,value:iI().number.isRequired,style:iI().object};var fL=function(e){var t=e.handleEntriesChange,n=e.displayEntries,i=e.entries,a=e.entriesArr,o=e.paging,s=e.label,l=e.barReverse,c=e.className,u=e.proSelect,d=tj(e,["handleEntriesChange","displayEntries","entries","entriesArr","paging","label","barReverse","className","proSelect"]),h=nI()("mdb-datatable-entries",c);return r.createElement("div",{"data-test":"mdb-datatable-entries",className:h},o&&n&&!u&&r.createElement(hL,XM({value:i,onChange:t,entries:a,label:s,barReverse:l},d)))};fL.propTypes={displayEntries:iI().bool.isRequired,entries:iI().number.isRequired,entriesArr:iI().arrayOf(iI().number).isRequired,handleEntriesChange:iI().func.isRequired,label:iI().oneOfType([iI().number,iI().object,iI().string]).isRequired,paging:iI().bool.isRequired,barReverse:iI().bool,proSelect:iI().bool};var pL=function(e){var t=e.value,n=e.onChange,i=e.label,a=e.barReverse,o=e.materialSearch;return r.createElement("div",{"data-test":"datatable-input",className:nI()("mdb-datatable-filter","flex-row",a&&"text-left")},o?r.createElement(NL,{hint:"Search",containerClass:"mt-0",value:t,onChange:n,type:"search",className:"form-control form-control-sm",placeholder:i||"Search"}):r.createElement("input",{className:"form-control form-control-sm ml-0 my-1",type:"text",placeholder:i||"Search","aria-label":"Search",value:t,onChange:n}))};pL.propTypes={barReverse:iI().bool,label:iI().string,onChange:iI().func,value:iI().oneOfType([iI().string,iI().object,iI().array,iI().number])};var gL=function(e){var t=e.handleSearchChange,n=e.search,i=e.searching,a=e.label,o=e.barReverse,s=e.wrapperSearchStyle,l=e.wrapperSearchClasses,c=e.materialSearch,u=tj(e,["handleSearchChange","search","searching","label","barReverse","wrapperSearchStyle","wrapperSearchClasses","materialSearch"]);return i&&r.createElement("div",{"data-test":"datatable-search",style:KM({display:"flex",alignItems:"center"},s),className:l},r.createElement(pL,XM({value:n,onChange:t,label:a,barReverse:o,materialSearch:c},u)))};gL.propTypes={handleSearchChange:iI().func.isRequired,search:iI().string.isRequired,searching:iI().bool.isRequired,barReverse:iI().bool,label:iI().string,materialSearch:iI().bool};var mL=function(e){var t=e.activePage,n=e.entries,i=e.filteredRows,a=e.info,o=e.label,s=e.noRecordsFoundLabel,l=e.pages,c=o[0],u=o[1],d=o[2],h=o[3],f=i.length>0&&i[0].message===s,p=t>0?t*n+1:t+1,g=l.length-1>t?l[t].length*(t+1):i.length,m=i.length;return r.createElement(r.Fragment,null,a&&r.createElement("div",{"data-test":"datatable-info",className:"mdb-datatable-info d-flex align-items-center"},r.createElement("div",{role:"status","aria-live":"polite"},f?"".concat(c," 0 ").concat(h):"".concat(c," ").concat(p," ").concat(u," ").concat(g," ").concat(d," ").concat(m," ").concat(h))))};mL.propTypes={activePage:iI().number.isRequired,entries:iI().number.isRequired,filteredRows:iI().array.isRequired,info:iI().bool.isRequired,noRecordsFoundLabel:iI().string.isRequired,pages:iI().array.isRequired,label:iI().arrayOf(iI().string)},mL.defaultProps={label:["Showing","to","of","entries"]};var yL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{pages:n.props.pages,pGroups:[]}),qM(nj(n),"componentDidUpdate",(function(e){var t=n.props.pages;e.pages!==t&&n.setState({pages:t},(function(){return n.groupPages()}))})),qM(nj(n),"pagesIndexify",(function(){var e=aj(n.state.pages);return e.forEach((function(e,t){return e.index=t})),e}
2)),qM(nj(n),"groupPages",(function(){for(var e=[],t=n.pagesIndexify(),r=n.props.pagesAmount;t.length>0;)e.push(t.splice(0,r));n.setState({pGroups:e})})),qM(nj(n),"choosePagesGroup",(function(){var e=n.props,t=e.activePage,r=e.pagesAmount,i=n.state.pGroups,a=Math.floor(t/r);return i.length?i[a]:[]})),n}return YM(t,[{key:"componentDidMount",value:function(){this.groupPages()}},{key:"render",value:function(){var e=this.props,t=e.activePage,n=e.changeActivePage,i=e.pages,a=e.label,o=e.fullPagination,s=e.pagesNumber;return r.createElement("div",{"data-test":"datatable-pagination"},r.createElement("div",{className:"mdb-dataTables_paginate"},r.createElement(iL,{className:"m-0"},o&&r.createElement(aL,{disabled:t<=0},r.createElement(oL,{className:"page-link","aria-label":a[0],onClick:function(){return n(0)}},r.createElement("span",null,r.createElement("i",{className:"fas fa-angle-double-left"})))),r.createElement(aL,{disabled:t<=0},r.createElement(oL,{className:"page-link","aria-label":a[0],onClick:function(){return n(t-1)}},r.createElement("span",null,r.createElement("i",{className:"fas fa-chevron-left"})))),s&&this.choosePagesGroup().map((function(e,i){return r.createElement(aL,{key:Object.keys(e[0])[0]+e.index+i,active:e.index===t},r.createElement(oL,{className:"page-link",onClick:function(){return n(e.index)}},e.index+1,e.index===t&&r.createElement("span",{className:"sr-only"},"(current)")))})),r.createElement(aL,{disabled:!i.length||t===i.length-1},r.createElement(oL,{className:"page-link","aria-label":a[1],onClick:function(){return n(t+1)}},r.createElement("span",null,r.createElement("i",{className:"fas fa-chevron-right"})))),o&&r.createElement(aL,{disabled:!i.length||t===i.length-1},r.createElement(oL,{className:"page-link","aria-label":a[1],onClick:function(){return n(i.length-1)}},r.createElement("span",null,r.createElement("i",{className:"fas fa-angle-double-right"})))))))}}]),t}();yL.propTypes={activePage:iI().number.isRequired,changeActivePage:iI().func.isRequired,label:iI().arrayOf(iI().string).isRequired,pages:iI().array.isRequired,pagesAmount:iI().number.isRequired,fullPagination:iI().bool,pagesNumber:iI().bool},vj('div.mdb-datatable div.mdb-datatable-length select,\ndiv.mdb-datatable div.mdb-datatable-length input {\n width: auto; }\n\ndiv.mdb-datatable div.mdb-datatable-length.d-flex.flex-row label {\n margin-top: 1.2rem;\n margin-right: 1rem; }\n\ndiv.mdb-datatable div.mdb-datatable-length.d-flex.flex-row .select-wrapper.mdb-select span,\ndiv.mdb-datatable div.mdb-datatable-length.d-flex.flex-row .select-wrapper.mdb-select .select-dropdown {\n margin-top: 1rem; }\n\ndiv.mdb-datatable div.mdb-datatable-length label, div.mdb-datatable div.mdb-datatable-filter label {\n font-weight: 400;\n text-align: left;\n margin-bottom: 0; }\n\ndiv.mdb-datatable div.mdb-datatable-filter {\n text-align: right; }\n div.mdb-datatable div.mdb-datatable-filter select,\n div.mdb-datatable div.mdb-datatable-filter input {\n width: auto; }\n div.mdb-datatable div.mdb-datatable-filter input {\n display: inline-block;\n margin-left: .5rem; }\n\ndiv.mdb-datatable div.mdb-datatable-info, div.mdb-datatable div.mdb-dataTables_paginate, div.mdb-datatable div.mdb-datatable-entries {\n padding-top: 1rem;\n padding-bottom: 1rem;\n font-weight: 400;\n font-size: .9rem;\n padding-left: .7rem;\n padding-right: .7rem; }\n\ndiv.mdb-datatable div.mdb-datatable-info {\n display: flex;\n justify-content: center; }\n\ndiv.mdb-datatable div.mdb-dataTables_paginate {\n margin: 0;\n text-align: right; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination {\n -ms-flex-pack: end;\n -webkit-justify-content: flex-end;\n justify-content: flex-end;\n -webkit-box-pack: end; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination .page-item.active .page-link {\n background-color: #7e7e7e; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination .page-item.active .page-link:focus {\n background-color: #7e7e7e; }\n div.mdb-datatable div.mdb-dataTables_paginate ul.pagination .page-item .page-link:focus {\n -webkit-box-shadow: none;\n box-shadow: none; }\n\n@media (max-width: 767px) {\n div.mdb-datatable div .mdb-datatable-length,\n div.mdb-datatable div .mdb-datatable-filter,\n div.mdb-datatable div .mdb-datatable-info,\n div.mdb-datatable div .mdb-dataTables_paginate ul.pagination {\n -ms-flex-pack: center;
2\n -webkit-justify-content: center;\n justify-content: center;\n text-align: center;\n -webkit-box-pack: center; } }\n\n.bs-select select {\n display: inline-block !important; }\n\ntable.mdb-dataTable thead,\ntable thead.mdb-dataTable-head {\n cursor: pointer; }\n table.mdb-dataTable thead th,\n table thead.mdb-dataTable-head th {\n font-weight: 600; }\n table.mdb-dataTable thead > tr > th.sorting_asc, table.mdb-dataTable thead > tr > th.sorting_desc, table.mdb-dataTable thead > tr > th.sorting,\n table.mdb-dataTable thead > tr > td.sorting_asc,\n table.mdb-dataTable thead > tr > td.sorting_desc,\n table.mdb-dataTable thead > tr > td.sorting,\n table thead.mdb-dataTable-head > tr > th.sorting_asc,\n table thead.mdb-dataTable-head > tr > th.sorting_desc,\n table thead.mdb-dataTable-head > tr > th.sorting,\n table thead.mdb-dataTable-head > tr > td.sorting_asc,\n table thead.mdb-dataTable-head > tr > td.sorting_desc,\n table thead.mdb-dataTable-head > tr > td.sorting {\n padding-right: 30px; }\n table.mdb-dataTable thead > tr > th:active,\n table.mdb-dataTable thead > tr > td:active,\n table thead.mdb-dataTable-head > tr > th:active,\n table thead.mdb-dataTable-head > tr > td:active {\n outline: none; }\n table.mdb-dataTable thead .sorting,\n table.mdb-dataTable thead .sorting_asc,\n table.mdb-dataTable thead .sorting_desc,\n table.mdb-dataTable thead .sorting_asc_disabled,\n table.mdb-dataTable thead .sorting_desc_disabled,\n table thead.mdb-dataTable-head .sorting,\n table thead.mdb-dataTable-head .sorting_asc,\n table thead.mdb-dataTable-head .sorting_desc,\n table thead.mdb-dataTable-head .sorting_asc_disabled,\n table thead.mdb-dataTable-head .sorting_desc_disabled {\n position: relative;\n cursor: pointer; }\n table.mdb-dataTable thead .sorting:before, table.mdb-dataTable thead .sorting:after,\n table.mdb-dataTable thead .sorting_asc:before,\n table.mdb-dataTable thead .sorting_asc:after,\n table.mdb-dataTable thead .sorting_desc:before,\n table.mdb-dataTable thead .sorting_desc:after,\n table.mdb-dataTable thead .sorting_asc_disabled:before,\n table.mdb-dataTable thead .sorting_asc_disabled:after,\n table.mdb-dataTable thead .sorting_desc_disabled:before,\n table.mdb-dataTable thead .sorting_desc_disabled:after,\n table thead.mdb-dataTable-head .sorting:before,\n table thead.mdb-dataTable-head .sorting:after,\n table thead.mdb-dataTable-head .sorting_asc:before,\n table thead.mdb-dataTable-head .sorting_asc:after,\n table thead.mdb-dataTable-head .sorting_desc:before,\n table thead.mdb-dataTable-head .sorting_desc:after,\n table thead.mdb-dataTable-head .sorting_asc_disabled:before,\n table thead.mdb-dataTable-head .sorting_asc_disabled:after,\n table thead.mdb-dataTable-head .sorting_desc_disabled:before,\n table thead.mdb-dataTable-head .sorting_desc_disabled:after {\n position: absolute;\n bottom: 1rem;\n display: block;\n opacity: 0; }\n table.mdb-dataTable thead .sorting:hover::before,\n table thead.mdb-dataTable-head .sorting:hover::before {\n opacity: 0.6; }\n table.mdb-dataTable thead .sorting:before,\n table.mdb-dataTable thead .sorting_asc:before,\n table.mdb-dataTable thead .sorting_desc:before,\n table.mdb-dataTable thead .sorting_asc_disabled:before,\n table.mdb-dataTable thead .sorting_desc_disabled:before,\n table thead.mdb-dataTable-head .sorting:before,\n table thead.mdb-dataTable-head .sorting_asc:before,\n table thead.mdb-dataTable-head .sorting_desc:before,\n table thead.mdb-dataTable-head .sorting_asc_disabled:before,\n table thead.mdb-dataTable-head .sorting_desc_disabled:before {\n left: -.4rem;\n font-family: "Font Awesome\\ 5 Free", sans-serif;\n font-size: 1rem;\n font-weight: 900;\n content: "\\f062"; }\n table.mdb-dataTable thead .sorting:after,\n table.mdb-dataTable thead .sorting_asc:after,\n table.mdb-dataTable thead .sorting_desc:after,\n table.mdb-dataTable thead .sorting_asc_disabled:after,\n table.mdb-dataTable thead .sorting_desc_disabled:after,\n table thead.mdb-dataTable-head .sorting:after,\n table thead.mdb-dataTable-head .sorting_asc:after,\n table thead.mdb-dataTable-head .sorting_desc:after,\n table thead.mdb-dataTable-head .sorting_asc_disabled:after,\n table thead.mdb-dataTable-head .sorting_desc_disabled:after {\n left: -.4rem;\n font-family: "Font Awesome\\ 5 Free", sans-serif;\n font-size: 1rem;\n font-weight: 900;\n content: "\\f063"; }
2\n table.mdb-dataTable thead .sorting_asc:before,\n table.mdb-dataTable thead .sorting_desc:after,\n table thead.mdb-dataTable-head .sorting_asc:before,\n table thead.mdb-dataTable-head .sorting_desc:after {\n opacity: 1; }\n table.mdb-dataTable thead .sorting_asc_disabled:before,\n table.mdb-dataTable thead .sorting_desc_disabled:after,\n table thead.mdb-dataTable-head .sorting_asc_disabled:before,\n table thead.mdb-dataTable-head .sorting_desc_disabled:after {\n opacity: 0; }\n\n.mdb-dataTable_scrollBodyHead .dataTables_scrollHeadInner,\n.mdb-dataTable_scrollBodyHead .dataTables_scrollHeadInner table {\n padding-right: 0 !important;\n margin-right: 0 !important;\n width: 100% !important; }\n\n.mdb-dataTable_scrollBodyHead .dataTables_scrollHeadInner table {\n margin-bottom: 0 !important; }\n\n.dataTables_scrollFoot .dataTables_scrollFootInner,\n.dataTables_scrollFoot .dataTables_scrollFootInner table {\n padding-right: 0 !important;\n margin-right: 0 !important;\n width: 100% !important; }\n\n.mdb-datatable table tr {\n border-bottom: 1px solid #dee2e6; }\n'),vj("table.mdb-dataTable tbody > tr.selected,\ntable.mdb-dataTable tbody > tr > .selected {\n background-color: #f5f5f5; }\n\ntable.mdb-dataTable tbody > tr:not(.selected):hover {\n background-color: rgba(245, 245, 245, 0.4); }\n\ntable.mdb-dataTable.stripe tbody > tr.odd.selected,\ntable.mdb-dataTable.stripe tbody > tr.odd > .selected, table.mdb-dataTable.display tbody > tr.odd.selected,\ntable.mdb-dataTable.display tbody > tr.odd > .selected {\n background-color: #acbad4; }\n\ntable.mdb-dataTable.hover tbody > tr.selected:hover,\ntable.mdb-dataTable.hover tbody > tr > .selected:hover, table.mdb-dataTable.display tbody > tr.selected:hover,\ntable.mdb-dataTable.display tbody > tr > .selected:hover {\n background-color: #aab7d1; }\n\ntable.mdb-dataTable.order-column tbody > tr.selected > .sorting_1,\ntable.mdb-dataTable.order-column tbody > tr.selected > .sorting_2,\ntable.mdb-dataTable.order-column tbody > tr.selected > .sorting_3, table.mdb-dataTable.display tbody > tr.selected > .sorting_1,\ntable.mdb-dataTable.display tbody > tr.selected > .sorting_2,\ntable.mdb-dataTable.display tbody > tr.selected > .sorting_3 {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.order-column tbody > tr > .selected, table.mdb-dataTable.display tbody > tr > .selected {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.display tbody > tr.odd.selected > .sorting_1, table.mdb-dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_1 {\n background-color: #a6b4cd; }\n\ntable.mdb-dataTable.display tbody > tr.odd.selected > .sorting_2,\ntable.mdb-dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_2 {\n background-color: #a8b5cf; }\n\ntable.mdb-dataTable.display tbody > tr.odd.selected > .sorting_3,\ntable.mdb-dataTable.order-column.stripe tbody > tr.odd.selected > .sorting_3 {\n background-color: #a9b7d1; }\n\ntable.mdb-dataTable.display tbody > tr.even.selected > .sorting_1,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even.selected > .sorting_1 {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.display tbody > tr.even.selected > .sorting_2,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even.selected > .sorting_2 {\n background-color: #aebcd6; }\n\ntable.mdb-dataTable.display tbody > tr.even.selected > .sorting_3,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even.selected > .sorting_3 {\n background-color: #afbdd8; }\n\ntable.mdb-dataTable.display tbody > tr.odd > .selected,\ntable.mdb-dataTable.order-column.stripe tbody > tr.odd > .selected {\n background-color: #a6b4cd; }\n\ntable.mdb-dataTable.display tbody > tr.even > .selected,\ntable.mdb-dataTable.order-column.stripe tbody > tr.even > .selected {\n background-color: #acbad5; }\n\ntable.mdb-dataTable.display tbody > tr.selected:hover > .sorting_1,\ntable.mdb-dataTable.order-column.hover tbody > tr.selected:hover > .sorting_1 {\n background-color: #a2aec7; }\n\ntable.mdb-dataTable.display tbody > tr.selected:hover >
2 .sorting_2,\ntable.mdb-dataTable.order-column.hover tbody > tr.selected:hover > .sorting_2 {\n background-color: #a3b0c9; }\n\ntable.mdb-dataTable.display tbody > tr.selected:hover > .sorting_3,\ntable.mdb-dataTable.order-column.hover tbody > tr.selected:hover > .sorting_3 {\n background-color: #a5b2cb; }\n\ntable.mdb-dataTable.display tbody > tr:hover > .selected,\ntable.mdb-dataTable.display tbody > tr > .selected:hover, table.mdb-dataTable.order-column.hover tbody > tr:hover > .selected,\ntable.mdb-dataTable.order-column.hover tbody > tr > .selected:hover {\n background-color: #a2aec7; }\n\ntable.mdb-dataTable tbody td.select-checkbox, table.mdb-dataTable tbody td.select-checkbox-all,\ntable.mdb-dataTable tbody th.select-checkbox,\ntable.mdb-dataTable tbody th.select-checkbox-all,\ntable.mdb-dataTable thead td.select-checkbox,\ntable.mdb-dataTable thead td.select-checkbox-all,\ntable.mdb-dataTable thead th.select-checkbox,\ntable.mdb-dataTable thead th.select-checkbox-all {\n position: relative; }\n table.mdb-dataTable tbody td.select-checkbox:before, table.mdb-dataTable tbody td.select-checkbox:after, table.mdb-dataTable tbody td.select-checkbox-all:before, table.mdb-dataTable tbody td.select-checkbox-all:after,\n table.mdb-dataTable tbody th.select-checkbox:before,\n table.mdb-dataTable tbody th.select-checkbox:after,\n table.mdb-dataTable tbody th.select-checkbox-all:before,\n table.mdb-dataTable tbody th.select-checkbox-all:after,\n table.mdb-dataTable thead td.select-checkbox:before,\n table.mdb-dataTable thead td.select-checkbox:after,\n table.mdb-dataTable thead td.select-checkbox-all:before,\n table.mdb-dataTable thead td.select-checkbox-all:after,\n table.mdb-dataTable thead th.select-checkbox:before,\n table.mdb-dataTable thead th.select-checkbox:after,\n table.mdb-dataTable thead th.select-checkbox-all:before,\n table.mdb-dataTable thead th.select-checkbox-all:after {\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n left: 50%;\n box-sizing: border-box;\n display: block;\n width: 20px;\n height: 20px; }\n table.mdb-dataTable tbody td.select-checkbox:hover, table.mdb-dataTable tbody td.select-checkbox-all:hover,\n table.mdb-dataTable tbody th.select-checkbox:hover,\n table.mdb-dataTable tbody th.select-checkbox-all:hover,\n table.mdb-dataTable thead td.select-checkbox:hover,\n table.mdb-dataTable thead td.select-checkbox-all:hover,\n table.mdb-dataTable thead th.select-checkbox:hover,\n table.mdb-dataTable thead th.select-checkbox-all:hover {\n cursor: pointer; }\n\ntable.mdb-dataTable tbody td.select-checkbox:before,\ntable.mdb-dataTable tbody th.select-checkbox.select-checkbox-all:before,\ntable.mdb-dataTable thead td.select-checkbox:before,\ntable.mdb-dataTable thead th.select-checkbox.select-checkbox-all:before {\n content: ' ';\n border: 2px solid #5a5a5a;\n border-radius: 3px; }\n\ntable.mdb-dataTable tr.selected td.select-checkbox:after,\ntable.mdb-dataTable tr.selected th.select-checkbox:after {\n margin-top: 0;\n text-align: center;\n font-family: 'Font Awesome\\ 5 Free', sans-serif;\n font-size: 0.9rem;\n font-weight: 600;\n content: '\\f00c';\n background-color: #a6c;\n box-shadow: 0 0 1em #5a5a5a;\n color: #fff; }\n\ndiv.mdb-datatable span.select-info, div.mdb-datatable span.select-item {\n margin-left: 0.5em; }\n\n@media screen and (max-width: 640px) {\n div.mdb-datatable span.select-info, div.mdb-datatable span.select-item {\n display: block;\n margin-left: 0; } }\n");var bL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{activePage:0,columns:n.props.data.columns||[],entries:n.props.entries,filteredRows:n.props.data.rows||[],filterOptions:[],order:n.props.order||[],pages:[],rows:n.props.data.rows||[],search:"",searchSelect:"",sorted:!1,translateScrollHead:0,unsearchable:[],headCheckBox:!1,disableHeadCheckbox:!1}),qM(nj(n),"handleCheckBoxChange",(function(e,t){var r=n.props,i=r.getValueCheckBox,a=r.multipleCheckboxes,o=r.getValueCheckboxes,s=n.state,l=s.columns,c=aj(s.rows).map((function(e,n){return t===n?KM(KM({},e),{},{checked:!e.checked}):a?KM({},e):KM(KM({},e),{},{checked:!1}
2)})),u=c.filter((function(e){return!0===e.checked}));n.setData(c,l,n.paginateRows),n.setState({filteredRows:c},(function(){n.filterRows()})),i&&i(c[t]),o&&o(u)})),qM(nj(n),"handleAllCheckBoxes",(function(){var e=n.props.getValueAllCheckBoxes,t=n.state,r=t.rows,i=t.headCheckBox,a=t.columns,o=aj(r).map((function(e){var t=e.checked;return KM(KM({},e),{},!t&&!i||t&&!i?{checked:!0}:{checked:!1})}));n.setData(o,a,n.paginateRows),n.setState({headCheckBox:!i,filteredRows:o},(function(){n.filterRows()})),e&&e(o)})),qM(nj(n),"setData",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;n.setState((function(){return{columns:t,rows:e,filteredRows:n.props.disableRetreatAfterSorting?n.filterRows():e}}),r&&"function"==typeof r&&function(){return r()})})),qM(nj(n),"setUnsearchable",(function(e){var t=[];e.forEach((function(e){void 0!==e.searchable&&!1===e.searchable&&t.push(e.field)})),n.setState({unsearchable:t})})),qM(nj(n),"fetchData",(function(e,t){fetch(e).then((function(e){return e.json()})).then((function(e){return n.setData(e.rows,e.columns,t?n.paginateRows:null)})).catch((function(e){return console.log(e)}))})),qM(nj(n),"pagesAmount",(function(){return Math.ceil(n.state.filteredRows.length/n.state.entries)})),qM(nj(n),"paginateRowsInitialy",(function(){for(var e=n.state,t=e.rows,r=e.entries,i=e.pages,a=n.pagesAmount(),o=1;o<=a;o++){var s=o*r;i.push(t.slice(s-r,s))}})),qM(nj(n),"handleEntriesChange",(function(e){n.setState({entries:Array.isArray(e)?e[0]:e},(function(){return n.paginateRows()}))})),qM(nj(n),"handleSearchChange",(function(e){n.setState({search:e.target.value},(function(){return n.filterRows()}),n.props.onSearch&&"function"==typeof n.props.onSearch&&n.props.onSearch(e.target.value))})),qM(nj(n),"checkFieldValue",(function(e,t){return e[t]&&"string"!=typeof e[t]?e[t].props.searchvalue:e[t]})),qM(nj(n),"checkField",(function(e,t,r,i){var a=[n.checkFieldValue(t,e),n.checkFieldValue(r,e)],o=a[0]>a[1]?-1:1;return"asc"===i&&(o*=-1),o})),qM(nj(n),"sort",(function(e,t,r,i){e.sort((function(e,a){return t&&t.includes(r)?n.checkField(r,e,a,i):"asc"===i?e[r]<a[r]?-1:1:e[r]>a[r]?-1:1}))})),qM(nj(n),"handleSort",(function(e,t){var r=n.props,i=r.onSort,a=r.sortRows,o=n.state.direction;"disabled"!==t&&(n.setState({direction:!o}),n.setState((function(t){var r=t.rows,i=t.columns,o=t.direction,s=aj(r),l=o?"asc":"desc";return n.sort(s,a,e,l),aj(i).forEach((function(t){"disabled"!==t.sort&&(t.sort=t.field===e?l:"")})),{rows:s,columns:i,sorted:!0}}),(function(){return n.filterRows()})),i&&"function"==typeof i&&i({column:e,direction:"desc"===t?"desc":"asc"}))})),qM(nj(n),"filterRows",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.search,t=n.state.unsearchable,r=n.props,i=r.sortRows,a=r.noRecordsFoundLabel,o=r.disableRetreatAfterSorting,s=r.checkbox,l=r.startPage;n.setState((function(n){var r=n.rows.filter((function(n){for(var r in n)if(!(t.length&&t.includes(r)||"function"==typeof n[r])){var a="";if(i&&"string"!=typeof n[r]?(o=void 0,o=[],function e(t){return"object"===HM(t)?t.props.children&&Array.from(t.props.children).map((function(t){return e(t)})):o.push(t)}(n[r]),a=o.join("")):n[r]&&(a=n[r].toString()),a.toLowerCase().includes(e.toLowerCase()))return!0}var o;return!1}));return 0===r.length&&r.push({message:a,colspan:n.columns.length,disabled:!0}),o||s?{filteredRows:r,activePage:n.activePage=n.activePage<n.pages.length||0===n.activePage?n.activePage:n.pages.length-1}:{filteredRows:r,activePage:l}}),(function(){return n.paginateRows()}))})),qM(nj(n),"paginateRows",(function(){var e=n.pagesAmount();n.setState((function(t){var r=t.pages,i=t.entries,a=t.filteredRows,o=t.activePage,s=n.props,l=s.paging,c=s.disableRetreatAfterSorting,u=s.checkbox;if(r=[],l){for(var d=1;d<=e;d++){var h=d*i;r.push(a.slice(h-i,h))}c&&!u||(o=o<r.length||0===o?o:r.length-1)}else r.push(a),o=0;return{pages:r,filteredRows:a,activePage:o}}))})),qM(nj(n),"changeActivePage",(function(e){var t=n.props.onPageChange;n.setState({activePage:e}),t&&"function"==typeof t&&t({activePage:e+1,pagesAmount:n.pagesAmount()})})),qM(nj(n),"handleTableBodyScroll",(function(e){n.setState({translateScrollHead:e.target.scrollLeft})})),qM(nj(n),"appendSearchDepend",(function(){var e=n.props,t=e.barReverse,i=e.searching,a=e.searchLabel,o=e.searchBottom,s=e.entries,l=e.paging,c=e.displayEntries,u=e.entriesLabel,d=e.entriesOptions,h=e.pagingTop,f=e.searchTop,p=e.materialSearch,g=n.state.search;return r.createElement("div",{className:"row".concat(t?" flex-row-reverse":""," ").concat(o?"ml-3":"ml-1"," justify-content-between")},r.createElement(gL,{handleSearchChange:n.handleSearchChange,search:g,searching:i,label:a,barReverse:t,wrapperSearchClasses:"".concat(t&&"mr-3"),materialSearch:p}),f&&h&&r.createElement(fL,{paging:l,displayEntries:c,entries:s,handleEntriesChange:n.handleEntriesChange,entriesArr:d,label:u,barReverse:t,className:"".concat(!t&&"mr-2")}))})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.data,i=t.paging,a=t.checkbox,o=t.checkboxFirstColumn,s=t.filledCheckboxes,l=t.multipleCheckboxes,c=t.headCheckboxID,u=t.proCheckboxes,d=this.state,h=d.order,f=d.columns,p=d.pages,g=d.rows,m=d.headCheckBox,y=d.disableHeadCheckbox;if("string"==typeof n&&this.fetchData(n,this.paginateRows),a){var b={label:l?u?r.createElement(NL,{type:"checkbox",onChange:this.handleAllCheckBoxes,id:c,checked:!!m,value:m,"aria-checked":m,filled:s}):r.createElement("div",{className:"custom-control custom-checkbox text-center"},r.createElement("input",{type:"checkbox",className:"custom-control-input",onChange:this.handleAllCheckBoxes,id:c,checked:!!m,value:m,"aria-checked":m}),r.createElement("label",{className:"custom-control-label",htmlFor:c})):"",field:"checkbox",sort:"disabled",width:150};o?this.setState((function(e){return{columns:[].concat(aj(e.columns),[b])}})):this.setState((function(e){return{columns:[b].concat(aj(e.columns))}}));var v=aj(g).map((function(t,n){return KM(KM({},t),{},{checked:!1,checkbox:u?r.createElement(NL,{type:"checkbox",onChange:e.handleAllCheckBoxes,id:c,checked:!!m,value:m,"aria-checked":m,filled:s,disabled:y}):r.createElement("div",{className:"custom-control custom-checkbox text-center"},r.createElement("input",{type:"checkbox",className:"custom-control-input",onChange:e.handleAllCheckBoxes,id:c,checked:!!m,value:m,"aria-checked":m,disabled:y}),r.createElement("label",{className:"custom-control-label",htmlFor:c}))})}));this.setState({rows:v})}h.length>0?this.handleSort(h[0],h[1]):this.handleSort(),this.setUnsearchable(f),i?this.paginateRowsInitialy():p.push(g)}},{key:"componentDidUpdate",value:function(e,t){var n=this,i=this.state,a=i.columns,o=i.rows,s=i.activePage,l=i.headCheckBox,c=i.disableHeadCheckbox,u=i.filteredRows,d=this.props,h=d.data,f=d.checkbox,p=d.filledCheckboxes,g=d.multipleCheckboxes,m=d.headCheckboxID,y=d.bodyCheckboxID,b=d.proCheckboxes;if(f&&(g&&t.filteredRows!==u&&(u[0].disabled?this.setState({disableHeadCheckbox:!0}):this.setState({disableHeadCheckbox:!1})),t.rows!==o)){if(g){var v=aj(o).filter((function(e){return e.checked})),x=aj(a).map((function(e){return"checkbox"!==e.field?KM({},e):KM(KM({},e),{},{label:b?r.createElement(NL,{type:"checkbox",onChange:function(e){return n.handleAllCheckBoxes(e)},id:m,checked:!!l,value:l,"aria-checked":l,filled:p,disabled:c}):r.createElement("div",{className:"custom-control custom-checkbox text-center"},r.createElement("input",{type:"checkbox",className:"custom-control-input",onChange:function(e){return n.handleAllCheckBoxes(e)},id:m,checked:!!l,value:l,"aria-checked":l,disabled:c}),r.createElement("label",{className:"custom-control-label",htmlFor:m}))})}));this.setData(o,x,this.paginateRows),this.setState({headCheckBox:!1},(function(){n.filterRows()})),v.length===o.length?this.setState({headCheckBox:!0}):this.setState({headCheckBox:!1})}for(var w=0;w<o.length;w++)if(t.rows[w].checked!==o[w].checked){var k=aj(o).map((function(e,t){var i=e.checked;return KM(KM({},e),{},{checkbox:b?r.createElement(NL,{type:"checkbox",onChange:function(r){return n.handleCheckBoxChange(e,t)},id:y+t,checked:i,value:i,"aria-checked":i,filled:p}):r.createElement("div",{className:"custom-control custom-checkbox text-center"},r.createElement("input",{type:"checkbox",className:"custom-control-input",onChange:function(r){return n.handleCheckBoxChange(e,t)},id:y+t,checked:i,value:i,"aria-checked":i}),r.createElement("label",{className:"custom-control-label",htmlFor:y+t}))})}));this.setData(k,a)}}t.activePage!==s&&this.changeActivePage(s),e.data!==h&&("string"==typeof h?this.fetchData(h):this.setData(h.rows,h.columns,this.paginateRows),this.setUnsearchable(a),this.filterRows())}},{key:"render",value:function(){var e=this.props,t=e.autoWidth,n=e.barReverse,i=e.bordered,a=e.borderless,o=e.btn,s=(e.checkboxFirstColumn,e.children,e.className),l=e.dark,c=(e.data,e.disableRetreatAfterSorting,e.displayEntries),u=e.entriesLabel,d=e.entriesOptions,h=(e.exportToCSV,e.filledCheckboxes,e.filter,e.fixed),f=e.fullPagination,p=(e.getValueAllCheckBoxes,e.getValueCheckBox,e.getValueCheckboxes,e.hover),g=e.info,m=e.infoLabel,y=e.maxHeight,b=e.noBottomColumns,v=e.noRecordsFoundLabel,x=(e.onPageChange,e.onSearch,e.onSort,e.order,e.pagesAmount),w=e.paginationLabel,k=e.paging,A=(e.proCheckboxes,e.responsive),E=e.responsiveLg,S=e.responsiveMd,P=e.responsiveSm,C=e.responsiveXl,O=e.scrollX,T=e.scrollY,N=e.searchBottom,_=(e.searching,e.searchLabel,e.searchTop),I=e.small,R=(e.startPage,e.multipleCheckboxes,e.bodyCheckboxID,e.headCheckboxID,e.sortable),M=(e.sortRows,e.striped),j=e.tbodyColor,L=e.tbodyTextWhite,B=e.theadColor,F=e.theadTextWhite,D=e.proSelect,U=e.pagingTop,z=(e.materialSearch,tj(e,["autoWidth","barReverse","bordered","borderless","btn","checkboxFirstColumn","children","className","dark","data","disableRetreatAfterSorting","displayEntries","entriesLabel","entriesOptions","exportToCSV","filledCheckboxes","filter","fixed","fullPagination","getValueAllCheckBoxes","getValueCheckBox","getValueCheckboxes","hover","info","infoLabel","maxHeight","noBottomColumns","no
2RecordsFoundLabel","onPageChange","onSearch","onSort","order","pagesAmount","paginationLabel","paging","proCheckboxes","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","scrollX","scrollY","searchBottom","searching","searchLabel","searchTop","small","startPage","multipleCheckboxes","bodyCheckboxID","headCheckboxID","sortable","sortRows","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite","proSelect","pagingTop","materialSearch"])),W=this.state,H=W.columns,V=W.entries,G=W.filteredRows,Y=(W.filterOptions,W.pages),q=W.activePage,X=W.sorted,$=W.translateScrollHead,K=nI()("mdb-datatable dt-bootstrap4",s);return r.createElement("div",{"data-test":"datatable",className:K},_&&!N&&this.appendSearchDepend(),!T&&!O&&r.createElement("div",{className:"row"},r.createElement(uL,XM({autoWidth:t,bordered:i,borderless:a,btn:o,dark:l,fixed:h,hover:p,noBottomColumns:b,noRecordsFoundLabel:v,responsive:A,responsiveSm:P,responsiveMd:S,responsiveLg:E,responsiveXl:C,small:I,striped:M,theadColor:B,theadTextWhite:F,columns:H,handleSort:this.handleSort,sortable:R,tbodyColor:j,tbodyTextWhite:L,rows:Y[q],sorted:X},z))),(T||O)&&r.createElement("div",{className:"row"},r.createElement(dL,XM({autoWidth:t,bordered:i,borderless:a,btn:o,dark:l,fixed:h,handleTableBodyScroll:this.handleTableBodyScroll,hover:p,maxHeight:y,responsive:A,responsiveSm:P,responsiveMd:S,responsiveLg:E,responsiveXl:C,scrollX:O,scrollY:T,small:I,striped:M,theadColor:B,theadTextWhite:F,columns:H,handleSort:this.handleSort,sortable:R,sorted:X,tbodyColor:j,tbodyTextWhite:L,rows:Y[q],translateScrollHead:$},z))),r.createElement("div",{className:"row"},r.createElement("div",{className:"d-flex w-100 justify-content-".concat(N?"between":"end")},N&&!_&&this.appendSearchDepend(),r.createElement("div",{className:"d-flex align-items-center justify-content-end"},k?U?"":r.createElement(fL,{paging:k,displayEntries:c,entries:V,handleEntriesChange:this.handleEntriesChange,entriesArr:d,label:u,barReverse:n,proSelect:D}):"",r.createElement(mL,{activePage:q,entries:V,filteredRows:G,info:g,pages:Y,label:m,noRecordsFoundLabel:v}),r.createElement(yL,{activePage:q,changeActivePage:this.changeActivePage,pages:Y,pagesAmount:x,label:w,fullPagination:f})))))}}]),t}();bL.propTypes={autoWidth:iI().bool,barReverse:iI().bool,bordered:iI().bool,borderless:iI().bool,btn:iI().bool,children:iI().node,className:iI().string,dark:iI().bool,data:iI().oneOfType([iI().object,iI().string]),disableRetreatAfterSorting:iI().bool,displayEntries:iI().bool,entries:iI().number,entriesLabel:iI().oneOfType([iI().string,iI().number,iI().object]),entriesOptions:iI().arrayOf(iI().number),exportToCSV:iI().bool,filledCheckboxes:iI().bool,filter:iI().string,fixed:iI().bool,fullPagination:iI().bool,headCheckboxID:iI().string,hover:iI().bool,info:iI().bool,infoLabel:iI().oneOfType([iI().array,iI().object,iI().string]),materialSearch:iI().bool,maxHeight:iI().string,noBottomColumns:iI().bool,noRecordsFoundLabel:iI().string,onPageChange:iI().func,onSearch:iI().func,onSort:iI().func,order:iI().arrayOf(iI().string),pagesAmount:iI().number,paginationLabel:iI().arrayOf(iI().string),paging:iI().bool,responsive:iI().bool,responsiveLg:iI().bool,responsiveMd:iI().bool,responsiveSm:iI().bool,responsiveXl:iI().bool,scrollX:iI().bool,scrollY:iI().bool,searching:iI().bool,searchLabel:iI().string,small:iI().bool,sortable:iI().bool,sortRows:iI().arrayOf(iI().string),startPage:iI().number,striped:iI().bool,tbodyColor:iI().string,tbodyTextWhite:iI().bool,theadColor:iI().string,theadTextWhite:iI().bool},bL.defaultProps={autoWidth:!1,barReverse:!1,bordered:!1,borderless:!0,btn:!1,dark:!1,data:{columns:[],rows:[]},disableRetreatAfterSorting:!1,displayEntries:!0,entries:10,entriesLabel:"Rows per page:",entriesOptions:[10,20,50,100],exportToCSV:!1,filledCheckboxes:!1,fixed:!1,hover:!1,info:!0,infoLabel:["","-","of",""],noBottomColumns:!0,noRecordsFoundLabel:"No matching records found",order:[],pagesAmount:8,paginationLabel:["Prev","Next"],paging:!0,responsive:!1,responsiveLg:!1,responsiveMd:!1,responsiveSm:!1,responsiveXl:!1,scrollX:!1,scrollY:!1,searchBottom:!0,searching:!0,searchLabel:"Search",searchTop:!1,small:!1,sortable:!0,startPage:0,striped:!1,theadColor:"",theadTextWhite:!1,tbodyColor:"",tbodyTextWhite:!1,headCheckboxID:"checkbox-id",proCheckboxes:!1,fullPagination:!1,proSelect:!1,materialSearch:!1};var vL=r.createContext({dropleft:!1,dropright:!1,dropup:!1,isOpen:!1,toggle:function(){}}),xL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{isOpen:!1}),qM(nj(n),"dropdownContainer",r.createRef()),qM(nj(n),"getContainer",(function(){return n.dropdownContainer.current})),qM(nj(n),"addEvents",(function(){["click","touchstart","keyup"].forEach((function(e){return document.addEventListener(e,n.handleDocumentClick,!0)}))})),qM(nj(n),"removeEvents",(function(){["click","touchstart","keyup"].forEach((function(e){return document.removeEventListener(e,n.handleDocumentClick,!0)}))})),qM(nj(n),"handleDocumentClick",(function(e){var t=e.which,r=e.type,i=e.target,a=9===t,o="keyup"===r;if(3!==t&&(!o||a)){var s=n.getContainer();(!s.contains(i)||s===i||o&&!a)&&n.toggle()}})),qM(nj(n),"handleFocus",(function(e,t){var n=gj,r=mj,i=e.which,a=e.target,o=i===n,s=i===r,l=aj(t).findIndex((function(e){return e===a}));o&&l>0&&(l-=1),s&&l<t.length-1&&(l+=1),l<0&&(l=0),t[l].focus()})),qM(nj(n),"handleKeyDown",(function(e){var t=n.state.isOpen,r=n.props.disabled,i=e.which,a=e.target,o=i===pj,s=i===fj;if(!(![fj,gj,mj,pj].includes(i)||/button/i.test(a.tagName)&&o||/input|textarea/i.test(a.tagName)||(e.preventDefault(),r))){var l=n.getContainer();if(o&&t&&l!==a&&a.click(),s||!t)return n.toggle(),void l.children[0].focus();var c=l.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled)");c.length&&n.handleFocus(e,c)}})),qM(nj(n),"toggle",(function(){var e=n.state.isOpen;n.setState({isOpen:!e})})),n}
2return YM(t,[{key:"componentDidMount",value:function(){this.handleEventsBinding()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"componentDidUpdate",value:function(){this.handleEventsBinding()}},{key:"handleEventsBinding",value:function(){this.state.isOpen?this.addEvents():this.removeEvents()}},{key:"render",value:function(){var e,t=hj(this.props,["toggle","disabled"]),n=t.className,i=t.children,a=t.dropup,o=t.group,s=t.size,l=t.dropright,c=t.dropleft,u=t.toggle,d=this.state.isOpen,h=nI()((qM(e={"btn-group":o},"btn-group-".concat(s),!!s),qM(e,"dropdown",!o),qM(e,"show",d),qM(e,"dropup",a),qM(e,"dropright",l),qM(e,"dropleft",c),e),n);return r.createElement(vL.Provider,{value:{dropleft:c,dropright:l,dropup:a,isOpen:d,toggle:u}},r.createElement(AI,null,r.createElement("div",{"data-test":"dropdown",onClick:this.toggle,className:h,onKeyDown:this.handleKeyDown,ref:this.dropdownContainer},i)))}}]),t}();xL.propTypes={children:iI().node,className:iI().string,disabled:iI().bool,dropleft:iI().bool,dropright:iI().bool,dropup:iI().bool,group:iI().bool,size:iI().string,tag:iI().string,toggle:iI().func},xL.defaultProps={dropleft:!1,dropright:!1,dropup:!1,tag:"div"};var wL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"onClick",(function(e,t){var r=n.props,i=r.disabled,a=r.header,o=r.divider,s=r.onClick,l=r.toggle;i||a||o?e.preventDefault():(l||e.stopPropagation(),s&&s(e),t&&t(e))})),qM(nj(n),"getTabIndex",(function(){var e=n.props,t=e.disabled,r=e.header,i=e.divider;return t||r||i?"-1":"0"})),n}return YM(t,[{key:"render",value:function(){var e=this,t=this.getTabIndex(),n=hj(this.props,["toggle"]),i=n.className,a=n.divider,o=n.tag,s=n.header,l=n.href,c=n.active,u=n.disabled,d=tj(n,["className","divider","tag","header","href","active","disabled"]),h=nI()({active:c,disabled:u,"dropdown-item":!a&&!s,"dropdown-header":s,"dropdown-divider":a},i);return"button"===o&&(s?o="h6":a?o="div":l&&(o="a")),r.createElement(vL.Consumer,null,(function(n){n.isOpen;var i=n.toggle,a="button"===o&&(d.onClick||i)?"button":void 0;return r.createElement(o,XM({"data-test":"dropdown-item",type:a},d,{tabIndex:t,className:h,onClick:function(t){return e.onClick(t,i)},href:l}))}))}}]),t}();wL.propTypes={active:iI().bool,children:iI().node,className:iI().string,disabled:iI().bool,divider:iI().bool,header:iI().bool,onClick:iI().func,tag:iI().oneOfType([iI().func,iI().string]),toggle:iI().bool},wL.defaultProps={tag:"button",toggle:!0};var kL=function(e){var t=e.tag,n=e.tabIndex,i=e.role,a=e.attributes,o=e.aria,s=e.d_key,l=e.children;return r.createElement(vL.Consumer,null,(function(e){return e.isOpen,e.toggle,r.createElement(t,XM({"data-test":"dropdown-menu-component",tabIndex:n,role:i},a,{"aria-hidden":o,key:s}),l)}))};kL.propTypes={aria:iI().bool.isRequired,attributes:iI().object.isRequired,children:iI().node.isRequired,d_key:iI().string.isRequired,role:iI().string.isRequired,tabIndex:iI().string.isRequired,tag:iI().any.isRequired},vj(".dropup .dropdown-menu {\n top: auto !important;\n bottom: 100% !important;\n transform: translate3d(5px, 5px, 0px) !important;\n}\n\n.dropdown-menu-right {\n left: 0 !important;\n right: auto !important;\n}\n");var AL=function(){QM(t,r.Component);var e=rj(t);function t(){return VM(this,t),e.apply(this,arguments)}return YM(t,[{key:"render",value:function(){var e=this.props,t=e.basic,n=e.children,i=e.className,a=e.color,o=e.flip,s=e.modifiers,l=e.right,c=e.tag,u=tj(e,["basic","children","className","color","flip","modifiers","right","tag"]);return r.createElement(vL.Consumer,null,(function(e){var d,h=e.isOpen,f=e.dropup,p=e.dropright,g=e.dropleft,m=nI()((qM(d={"dropdown-menu-right":l},"dropdown-".concat(a),a),qM(d,"show",h),qM(d,"basic",t),d),"dropdown-menu",i),y=c;if(h){var b=f?"top":p?"right":g?"left":"bottom",v=l?"end":"start";u.placement="".concat(b,"-").concat(v),u.component=c}return r.createElement(LR,{modifiers:s||!o&&{flip:{enabled:!1}},eventsEnabled:!0,positionFixed:!1,placement:u.placement,"data-test":"dropdown-menu"},(function(e){var t=e.placement,i=e.ref,o=e.style;return r.createElement(y,{ref:i,style:o,"data-placement":t,className:m},r.createElement(kL,{isOpen:h,tag:y,tabIndex:"-1",role:"menu",attributes:u,aria:!h,d_key:"dropDownMenu",color:a}
2,n))}))}))}}]),t}();AL.propTypes={children:iI().node.isRequired,basic:iI().bool,className:iI().string,flip:iI().bool,modifiers:iI().object,right:iI().bool,tag:iI().string},AL.defaultProps={basic:!1,className:"",flip:!0,right:!1,tag:"div",color:!1};var EL=function(e){var t,n=ij((0,r.useState)({}),2),i=n[0],a=n[1],o=function(e){e.stopPropagation();var t={top:e.clientY,left:e.clientX,time:Date.now()};a(t)},s=e.action,l=e.active,c=e.block,u=e.children,d=e.circle,h=e.className,f=e.color,p=e.disabled,g=e.download,m=e.flat,y=e.gradient,b=e.innerRef,v=e.outline,x=e.role,w=e.rounded,k=e.size,A=e.social,E=e.tag,S=e.target,P=e.type,C=tj(e,["action","active","block","children","circle","className","color","disabled","download","flat","gradient","innerRef","outline","role","rounded","size","social","tag","target","type"]),O=nI()(""!==f&&"btn-".concat(f),f&&v&&"btn-outline-".concat(f),"btn","Ripple-parent",y&&"".concat(y,"-gradient"),(qM(t={active:l,"btn-circle":d,"btn-block":c,"btn-action":s},"btn-".concat(A),A),qM(t,"btn-".concat(k),k),qM(t,"btn-rounded",w),qM(t,"disabled",p),t),h);return C.href&&"button"===E&&(E="a"),r.createElement(E,XM({"data-test":"button",type:"button"!==E||P?P:"button",target:S,role:"a"!==E||x?x:"button",className:O,ref:b,onMouseUp:o,onTouchStart:o},C,{download:g,disabled:p}),u,!p&&r.createElement(Oj,{cursorPos:i,outline:v,flat:m||w}))};EL.defaultProps={color:"default",tag:"button"},EL.propTypes={action:iI().bool,active:iI().bool,block:iI().bool,children:iI().node,circle:iI().bool,className:iI().string,color:iI().string,disabled:iI().bool,download:iI().string,flat:iI().bool,gradient:iI().string,innerRef:iI().oneOfType([iI().func,iI().string]),onClick:iI().func,outline:iI().bool,role:iI().string,rounded:iI().bool,size:iI().string,social:iI().string,tag:iI().string,target:iI().string,type:iI().string};var SL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"onClick",(function(e,t){var r=n.props,i=r.disabled,a=r.nav,o=r.tag,s=r.onClick;i?e.preventDefault():(a&&!o&&e.preventDefault(),s&&s(e),t&&t(e))})),n}return YM(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,i=t.color,a=t.caret,o=t.nav,s=t.tag,l=tj(t,["className","color","caret","nav","tag"]),c=l["aria-label"]||"Toggle Dropdown",u=nI()({"dropdown-toggle":a,"nav-link":o},n),d=l.children||r.createElement("span",{className:"sr-only"},c),h=s;return o&&!s?(h="a",l.href="#"):s||(h=EL,l.color=i),r.createElement(vL.Consumer,null,(function(t){var n=t.isOpen,i=t.toggle;return r.createElement(UR,{"data-test":"dropdown-toggle"},(function(t){var a=t.ref;return s||o?r.createElement(h,XM({},l,{className:u,onClick:function(t){return e.onClick(t,i)},"aria-expanded":n,ref:a}),d):r.createElement(h,XM({},l,{className:u,onClick:function(t){return e.onClick(t,i)},"aria-expanded":n,innerRef:a}),d)}))}))}}]),t}();SL.propTypes={"aria-haspopup":iI().bool,caret:iI().bool,children:iI().node,className:iI().string,color:iI().string,disabled:iI().bool,nav:iI().bool,onClick:iI().func,tag:iI().oneOfType([iI().func,iI().string])},SL.defaultProps={"aria-haspopup":!0,color:"secondary"};var PL=function(e){var t=e.color,n=e.className,i=e.tag,a=tj(e,["color","className","tag"]),o=nI()("edge-header",t,n);return r.createElement(i,XM({"data-test":"edgeHeader"},a,{className:o}))};PL.propTypes={className:iI().string,color:iI().string,tag:iI().oneOfType([iI().func,iI().string])},PL.defaultProps={color:"deep-purple",tag:"div"};var CL=function(e){var t=e.color,n=e.children,i=e.className,a=e.tag,o=tj(e,["color","children","className","tag"]),s=nI()("page-footer",t&&t,i);return r.createElement(a,XM({"data-test":"footer"},o,{className:s}),n)};CL.propTypes={children:iI().node,className:iI().string,color:iI().string,tag:iI().oneOfType([iI().func,iI().string])},CL.defaultProps={tag:"footer"};iI().node,iI().string,iI().bool;var OL=function(e){var t=e.className,n=e.tag,i=tj(e,["className","tag"]),a=nI()("container free-bird",t);return r.createElement(n,XM({"data-test":"freebird"},i,{className:a}))};OL.propTypes={className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},OL.defaultProps={tag:"div"},vj(".hamburger-button__checkbox {\n display: none;\n}\n\n.hamburger-button__button {\n background-color: transparent;\n height: 100%;\n width: 100%;\n text-align: center;
2\n cursor: pointer;\n top: -5px;\n}\n\nlabel.hamburger-button__button {\n margin-bottom: 0;\n}\n\n#nav-icon1 {\n width: 1.5em;\n height: 1.5em;\n position: relative;\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n -webkit-transition: .5s ease-in-out;\n -moz-transition: .5s ease-in-out;\n -o-transition: .5s ease-in-out;\n transition: .5s ease-in-out;\n cursor: pointer;\n}\n\n#nav-icon1 span {\n display: block;\n position: absolute;\n height: 3px;\n width: 100%;\n border-radius: 1px;\n background-color: #fff;\n opacity: 1;\n left: 0;\n -webkit-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n -webkit-transition: .25s ease-in-out;\n -moz-transition: .25s ease-in-out;\n -o-transition: .25s ease-in-out;\n transition: .25s ease-in-out;\n}\n\n#nav-icon1 span:nth-child(1) {\n top: 5px;\n}\n\n#nav-icon1 span:nth-child(2) {\n top: 16px;\n}\n\n#nav-icon1 span:nth-child(3) {\n top: 27px;\n}\n\n.hamburger-button__checkbox:checked+#nav-icon1 span:nth-child(1) {\n top: 16px;\n -webkit-transform: rotate(135deg);\n -moz-transform: rotate(135deg);\n -o-transform: rotate(135deg);\n transform: rotate(135deg);\n}\n\n.hamburger-button__checkbox:checked+#nav-icon1 span:nth-child(2) {\n opacity: 0;\n left: -60px;\n}\n\n.hamburger-button__checkbox:checked+#nav-icon1 span:nth-child(3) {\n top: 16px;\n -webkit-transform: rotate(-135deg);\n -moz-transform: rotate(-135deg);\n -o-transform: rotate(-135deg);\n transform: rotate(-135deg);\n}\n");iI().string,iI().string,iI().string;var TL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{stateWidth:"",stateHeight:"",ratio:""}),qM(nj(n),"componentDidMount",(function(){var e=n.props.ratio,t=n.props,r=t.width,i=t.height,a=9/16;if(e){var o=e.split("by")[0]/e.split("by")[1];"number"==typeof a&&(a=o)}r&&i||(r?i=r*a:i&&(r=i*(1/a)),n.setState(KM(KM({},n.state),{},{width:r,height:i,ratio:e})))})),n}return YM(t,[{key:"render",value:function(){var e=this.props,t=e.allowFullScreen,n=e.className,i=e.id,a=e.name,o=e.onMouseOver,s=e.onMouseOut,l=e.onLoad,c=e.sandbox,u=e.src,d=e.style,h=e.title,f=void 0===h?"":h,p=e.ratio,g=e.height,m=e.width,y=this.state,b=y.stateWidth,v=y.stateHeight,x=nI()("embed-responsive-item",n),w=nI()(!(g||m)&&"embed-responsive",p?"embed-responsive-".concat(p):"embed-responsive-16by9"),k={src:u,id:i||!1,frameBorder:"0",target:"_parent",allowFullScreen:t||!0,height:v||"100%",name:a||void 0,width:b||"100%",onLoad:l||void 0,onMouseOver:o||void 0,onMouseOut:s||void 0,sandbox:c||void 0,style:d||void 0};return k=yj(k),r.createElement("div",{"data-test":"iframe",className:w},r.createElement("iframe",XM({title:f,className:x},k)))}}]),t}();TL.propTypes={src:iI().string.isRequired,allowFullScreen:iI().bool,className:iI().string,height:iI().number,id:iI().string,name:iI().string,onLoad:iI().func,onMouseOut:iI().func,onMouseOver:iI().func,ratio:iI().string,sandbox:iI().string,styles:iI().object,title:iI().string,width:iI().number};var NL=function(){QM(t,r.PureComponent);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{innerValue:n.props.value||n.props.valueDefault,isFocused:!1,isPristine:!0}),qM(nj(n),"inputElementRef",r.createRef()),qM(nj(n),"onBlur",(function(e){e.stopPropagation();var t=n.props.onBlur;n.setState({isFocused:!1}),t&&t(e)})),qM(nj(n),"onFocus",(function(e){e.stopPropagation();var t=n.props.onFocus;n.setState({isFocused:!0}),t&&t(e)})),qM(nj(n),"onChange",(function(e){e.stopPropagation();var t=n.props,r=t.type,i=t.onChange,a=t.getValue,o=e.target,s=o.value,l=o.checked;"checkbox"!==r&&"radio"!==r?(n.setState({innerValue:s,isPristine:!1}),a&&a(s)):a&&a(l),i&&i(e)})),qM(nj(n),"onInput",(function(e){e.stopPropagation();var t=n.props,r=t.type,i=t.onInput;"checkbox"!==r&&"radio"!==r&&n.setState({innerValue:e.target.value,isPristine:!1}),i&&i(e)})),qM(nj(n),"setFocus",(function(){n.inputElementRef.current.focus()})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.inputRef,r=t.focused,i=t.indeterminate,a=t.selectInnerRef;n&&n(this.inputElementRef.current),a&&a(this.inputElementRef),!0===r&&this.setState({isFocused:r},(function(){e.setFocus()})),i&&(this.inputElementRef.current.indeterminate=!0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.background,i=t.children,a=t.className,o=t.containerClass,s=t.dataTest,l=t.disabled,c=t.error,u=t.filled,d=(t.focused,t.gap),h=(t.getValue,t.group),f=t.hint,p=t.icon,g=t.iconBrand,m=t.iconClass,y=t.iconLight,b=t.iconRegular,v=t.iconSize,x=t.id,w=(t.indeterminate,t.inputRef,t.isControlled),k=(t.selectInnerRef,t.noTag),A=t.outline,E=t.label,S=t.labelClass,P=t.labelId,C=t.labelStyles,O=t.name,T=t.onIconClick,N=t.onIconMouseEnter,_=t.onIconMouseLeave,I=t.size,R=t.iconStyle,M=t.success,j=t.tag,L=t.type,B=t.validate,F=(t.value,t.valueDefault,tj(t,["background","children","className","containerClass","dataTest","disabled","error","filled","focused","gap","getValue","group","hint","icon","iconBrand","iconClass","iconLight","iconRegular","iconSize","id","indeterminate","inputRef","isControlled","selectInnerRef","noTag","outline","label","labelClass","labelId","labelStyles","name","onIconClick","onIconMouseEnter","onIconMouseLeave","size","iconStyle","success","tag","type","validate","value","valueDefault"])),D=this.state,U=D.innerValue,z=D.isFocused,W=(!!U||!!f||z||0===U)&&"checkbox"!==L&&"radio"!==L,H="",V="";"textarea"===L?(V=A?"form-control":"md-textarea form-control",H="textarea"):(V="form-control",H="input",F.type=L),F.disabled=l;var G=nI()(V,!!I&&"form-control-".concat(I),!!B&&"validate",!!u&&"filled-in",!!d&&"with-gap","checkbox"===L&&!d&&"form-check-input","radio"===L&&"form-check-input",a),Y=nI()("checkbox"===L||"radio"===L?"boolean"==typeof E&&E?"d-flex":"form-check":"md-form",!!h&&"form-group",!!I&&"form-".concat(I),A&&"md-outline",n&&"md-bg",o),q=nI()(!(!W||!z)&&"active",m,"prefix"),X=nI()(!!(W&&!w||f)&&"active",!!l&&"disabled","checkbox"===L&&"form-check-label","radio"===L&&"form-check-label",S),$=function(){return r.createElement(r.Fragment,null,p&&r.createElement(bj,{icon:p,size:v,brand:g,light:y,regular:b,className:q,onClick:T||e.setFocus,onMouseEnter:N,onMouseLeave:_,style:R}),r.createElement(H,XM({"data-test":s},F,{className:G,id:x,placeholder:f,name:O,ref:e.inputElementRef,value:U,onBlur:e.onBlur,onChange:e.onChange,onInput:e.onInput,onFocus:e.onFocus,"aria-disabled":l})),E&&r.createElement("label",{className:X,htmlFor:x,"data-error":c,"data-success":M,id:P,onClick:e.setFocus,style:C,"aria-labelledby":P},E),i)};return k?$():r.createElement(j,{className:Y},$())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.value!==t.value?{innerValue:e.value}:null}}]),t}();NL.propTypes={children:iI().node,className:iI().string,containerClass:iI().string,dataTest:iI().string,disabled:iI().bool,error:iI().string,filled:iI().bool,focused:iI().oneOfType([iI().bool,iI().string]),gap:iI().bool,getValue:iI().func,group:iI().bool,hint:iI().string,icon:iI().string,iconBrand:iI().bool,iconClass:iI().string,iconLight:iI().bool,iconRegular:iI().bool,iconSize:iI().string,iconStyle:iI().object,id:iI().string,indeterminate:iI().bool,inputRef:iI().oneOfType([iI().object,iI().func]),isControlled:iI().bool,label:iI().oneOfType([iI().string,iI().number,iI().object,iI().bool]),labelClass:iI().string,labelId:iI().string,labelStyles:iI().object,name:iI().string,noTag:iI().bool,onBlur:iI().func,onChange:iI().func,onFocus:iI().func,onIconClick:iI().func,onIconMouseEnter:iI().func,onIconMouseLeave:iI().func,onInput:iI().func,outline:iI().bool,size:iI().string,success:iI().string,tag:iI().oneOfType([iI().func,iI().string]),type:iI().string,validate:iI().bool,value:iI().oneOfType([iI().number,iI().string,iI().bool]),valueDefault:iI().oneOfType([iI().number,iI().string])},NL.defaultProps={className:"",containerClass:"",dataTest:"input",disabled:!1,error:"",filled:!1,gap:!1,group:!1,hint:void 0,icon:"",iconBrand:!1,focused:!1,indeterminate:!1,iconClass:"",iconLight:!1,onIconMouseEnter:function(){},onIconMouseLeave:function(){},iconRegular:!1,iconSize:void 0,id:void 0,isControlled:!1,noTag:!1,name:void 0,outline:!1,label:" ",labelClass:"",labelId:"",size:"",success:"",tag:"div",type:"text",validate:!1,valueDefault:""};var _L=function(e){var t=e.append,n=e.appendClassName,i=e.ariaLabel,a=e.children,o=e.className,s=e.containerClassName,l=e.containerId,c=e.hint,u=e.id,d=e.inputs,h=(e.inputTag,e.label),f=e.labelClassName,p=e.material,g=e.prepend,m=e.prependClassName,y=e.size,b=e.tag,v=e.textClassName,x=e.type,w=e.value,k=e.valueDefault,A=e.getValue,E=e.onCh
2ange,S=tj(e,["append","appendClassName","ariaLabel","children","className","containerClassName","containerId","hint","id","inputs","inputTag","label","labelClassName","material","prepend","prependClassName","size","tag","textClassName","type","value","valueDefault","getValue","onChange"]),P=nI()("input-group",p&&"md-form",y&&"input-group-".concat(y),s),C=nI()(o),O=nI()("input-group-prepend",m),T=nI()("input-group-append",n),N=nI()("input-group-text",p&&"md-addon",v);return r.createElement(r.Fragment,null,h&&r.createElement("label",{htmlFor:u,className:f},h),r.createElement(b,XM({"data-test":"input-group"},S,{className:P,id:l}),g&&r.createElement("div",{className:O},"string"==typeof g?r.createElement("span",{className:N},g):g),d||r.createElement(NL,{noTag:!0,type:x,className:C,id:u,value:w,valueDefault:k,hint:c,"aria-label":i,onChange:function(e){e.persist(),E&&E(e),A&&A(e.target.value)}}),t&&r.createElement("div",{className:T},"string"==typeof t?r.createElement("span",{className:N},t):t),a))};_L.propTypes={append:iI().oneOfType([iI().node,iI().string]),appendClassNames:iI().string,ariaLabel:iI().string,children:iI().node,className:iI().string,containerClassName:iI().string,containerId:iI().string,getValue:iI().func,hint:iI().string,id:iI().string,inputs:iI().node,label:iI().string,labelClassName:iI().string,material:iI().bool,onChange:iI().func,prepend:iI().any,prependClassName:iI().string,size:iI().string,tag:iI().oneOfType([iI().func,iI().string]),textClassName:iI().string,type:iI().string,value:iI().string,valueDefault:iI().string},_L.defaultProps={tag:"div",type:"text"};iI().string,iI().func;iI().node,iI().string,iI().bool;var IL=function(e){var t=ij((0,r.useState)({}),2),n=t[0],i=t[1],a=e.active,o=e.children,s=e.className,l=e.disabled,c=(e.link,e.to),u=tj(e,["active","children","className","disabled","link","to"]),d=nI()("nav-link",l?"disabled":"Ripple-parent",a&&"active",s),h=function(e){if(!l){e.stopPropagation();var t={top:e.clientY,left:e.clientX,time:Date.now()};i(t)}};return r.createElement(BM,XM({"data-test":"link-router",className:d,onMouseUp:h,onTouchStart:h,to:c},u),o,!l&&r.createElement(Oj,{cursorPos:n}))};IL.propTypes={active:iI().bool,children:iI().node,className:iI().string,disabled:iI().bool,to:iI().string},IL.defaultProps={active:!1,className:"",disabled:!1};var RL=function(e){var t=e.children,n=e.className,i=e.tag,a=tj(e,["children","className","tag"]),o=nI()("list-group",n);return r.createElement(i,XM({"data-test":"list-group"},a,{className:o}),t)};RL.propTypes={children:iI().node,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},RL.defaultProps={tag:"ul"};var ML=function(e){var t,n=e.active,i=e.children,a=e.className,o=e.color,s=e.disabled,l=e.hover,c=(e.success,e.info,e.warning,e.danger,e.tag),u=tj(e,["active","children","className","color","disabled","hover","success","info","warning","danger","tag"]),d=nI()("list-group-item",a,(qM(t={active:n,disabled:s},"list-group-item-".concat(o)," color"),qM(t,"list-group-item-action",l),t));return u.href&&"li"===c&&(c="a"),r.createElement(c,XM({"data-test":"list-group-item"},u,{className:d}),i)};ML.propTypes={active:iI().bool,children:iI().node,className:iI().string,color:iI().oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),danger:iI().bool,disabled:iI().bool,hover:iI().bool,info:iI().bool,success:iI().bool,tag:iI().oneOfType([iI().func,iI().string]),warning:iI().bool},ML.defaultProps={tag:"li"};iI().bool,iI().bool,iI().node,iI().string,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().bool,iI().oneOfType([iI().func,iI().string]),iI().bool,iI().bool,vj(".overflow-y-scroll {\n overflow-y: scroll !important;\n}\n");var jL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{initialIsOpen:n.props.isOpen||!1}),qM(nj(n),"modalContent",r.createRef()),qM(nj(n),"componentDidUpdate",(function(e,t){var r=n.props,i=r.isOpen,a=r.overflowScroll?"overflow-y-scroll":"overflow-hidden";t.initialIsOpen!==i&&n.setState({initialIsOpen:i},(function(){i?(document.body.classList.add("modal-open"),document.body.classList.add(a)):(document.body.classList.remove("modal-open"),document.body.classList.remove(a))}))})),qM(nj(n),"handleOnEntered",(function(e,t){"backdrop"===e&&!1===n.props.fade||(t.classList.add("show"),n.props.autoFocus&&t.focu
2s(),"modal"===e&&n.props.showModal&&n.props.showModal())})),qM(nj(n),"handleOnExit",(function(e,t){"backdrop"===e&&!1===n.props.fade||(t.classList.remove("show"),"modal"===e&&n.props.hideModal&&n.props.hideModal())})),qM(nj(n),"handleOnExited",(function(){n.props.hiddenModal&&n.props.hiddenModal()})),qM(nj(n),"handleBackdropClick",(function(e){!n.props.backdrop||e.target.closest('[role="dialog"]')&&!e.target.classList.contains("modal")||e.clientX>e.target.clientWidth||e.clientY>e.target.clientHeight||n.modalContent.contains(e.target)||n.props.disableBackdrop||n.props.toggle()})),qM(nj(n),"handleEscape",(function(e){n.props.keyboard&&27===e.keyCode&&(e.preventDefault(),n.props.toggle())})),n}return YM(t,[{key:"render",value:function(){var e,t=this,n=this.props,i=n.animation,a=n.backdrop,o=n.backdropClassName,s=n.backdropTransitionTimeout,l=n.cascading,c=n.centered,u=n.children,d=n.className,h=n.contentClassName,f=n.disableFocusTrap,p=n.fade,g=n.frame,m=n.fullHeight,y=n.id,b=n.inline,v=(n.isOpen,n.keyboard,n.modalStyle),x=n.modalStylesWithoutBackdrop,w=n.modalTransitionTimeout,k=n.noClickableBodyWithoutBackdrop,A=(n.overflowScroll,n.position),E=n.role,S=n.side,P=n.size,C=n.tabIndex,O=(n.toggle,n.wrapClassName),T=n.wrapperStyles,N=(n.zIndex,tj(n,["animation","backdrop","backdropClassName","backdropTransitionTimeout","cascading","centered","children","className","contentClassName","disableFocusTrap","fade","frame","fullHeight","id","inline","isOpen","keyboard","modalStyle","modalStylesWithoutBackdrop","modalTransitionTimeout","noClickableBodyWithoutBackdrop","overflowScroll","position","role","side","size","tabIndex","toggle","wrapClassName","wrapperStyles","zIndex"])),_=this.state.initialIsOpen,I=p?w:0,R=p?s:0,M=KM(KM({position:"fixed"},"bottom-right"===A?{top:"auto",bottom:10,right:10,left:"auto"}:"bottom-left"===A?{top:"auto",bottom:10,right:"auto",left:10}:"top-right"===A?{top:10,bottom:"auto",right:10,left:"auto"}:"top-left"===A?{top:10,bottom:"auto",right:"auto",left:10}:"right"===A?{right:0}:"left"===A?{left:0}:"bottom"===A?{bottom:0}:"top"===A?{top:0}:{top:0,bottom:0,right:0,left:0}),x),j=!a&&_&&!k,L=nI()((qM(e={"cascading-modal":l,"modal-side":S,"modal-full-height":m,"modal-frame":g,"modal-dialog-centered":c},"modal-".concat(P),P),qM(e,"modal-".concat(A),A),qM(e,"modal-notify white-text modal-".concat(v),v),e),"modal-dialog",d),B=A.split("-"),F=nI()({modal:!b,fade:p,top:p&&!i&&!A,animation:p&&i},p&&A&&A&&B.length>1?B[1]:B[0],O),D=nI()("modal-backdrop",p?"fade":"show",o),U=nI()("modal-content",h),z=yj(KM({style:{display:"block",position:j&&"fixed",width:j&&0},id:y,tabIndex:C,role:E,"aria-hidden":"true"},N)),W=j?M:{},H=r.createElement("div",XM({"data-test":"modal",onKeyUp:this.handleEscape,className:F,style:T},z),r.createElement("div",{style:W,className:L,role:"document"},r.createElement("div",{ref:function(e){return t.modalContent=e},className:U},u)));return r.createElement(r.Fragment,null,a&&r.createElement(mI,{timeout:R,in:_,appear:_,mountOnEnter:!0,unmountOnExit:!0,onEntered:function(e){return t.handleOnEntered("backdrop",e)},onExit:function(e){return t.handleOnExit("backdrop",e)},onExited:this.handleOnExited},r.createElement("div",{className:D})),r.createElement(mI,{timeout:I,in:_,appear:_,mountOnEnter:!0,unmountOnExit:!0,onMouseDown:function(e){return t.handleBackdropClick(e)},onEntered:function(e){return t.handleOnEntered("modal",e)},onExit:function(e){return t.handleOnExit("modal",e)}},f?H:r.createElement(WM(),null,H)))}}]),t}();jL.defaultProps={autoFocus:!0,backdrop:!0,backdropTransitionTimeout:150,disableBackdrop:!1,disableFocusTrap:!0,fade:!0,isOpen:!1,keyboard:!0,modalTransitionTimeout:300,overflowScroll:!0,position:"",role:"dialog",tabIndex:"-1",zIndex:1050,noClickableBodyWithoutBackdrop:!1},jL.propTypes={animation:iI().string,autoFocus:iI().bool,backdrop:iI().bool,backdropClassName:iI().string,backdropTransitionTimeout:iI().number,cascading:iI().bool,centered:iI().bool,children:iI().node,className:iI().string,contentClassName:iI().string,disableBackdrop:iI().bool,disableFocusTrap:iI().bool,fade:iI().bool,frame:iI().bool,fullHeight:iI().bool,hiddenModal:iI().func,hideModal:iI().func,id:iI().string,inline:iI().bool,isOpen:iI().bool,keyboard:iI().bool,modalClassName:iI().string,modalStyle:iI().string,modalStylesWithoutBackdrop:iI().object,modalTransitionTimeout:iI().number,noClickableBodyWithoutBackdrop:iI().bool,overflowScroll:iI().bool,position:iI().string,role:iI().string,
2showModal:iI().func,side:iI().bool,size:iI().string,tabIndex:iI().string,toggle:iI().func,wrapClassName:iI().string,wrapperStyles:iI().object,zIndex:iI().oneOfType([iI().number,iI().string])};iI().node,iI().string;iI().node,iI().string;var LL=function(e){var t,n=e.className,i=e.children,a=e.toggle,o=e.tag,s=e.closeAriaLabel,l=e.titleClass,c=tj(e,["className","children","toggle","tag","closeAriaLabel","titleClass"]),u=nI()("modal-header",n),d=nI()("modal-title",l);return a&&(t=r.createElement("button",{type:"button",onClick:a,className:"close","aria-label":s},r.createElement("span",{"aria-hidden":"true"},String.fromCharCode(215)))),r.createElement("div",XM({"data-test":"modal-header"},c,{className:u}),r.createElement(o,{className:d},i),t)};LL.propTypes={children:iI().node,className:iI().string,closeAriaLabel:iI().string,tag:iI().oneOfType([iI().func,iI().string]),toggle:iI().func},LL.defaultProps={tag:"h4",closeAriaLabel:"Close"};var BL=function(e){var t=e.children,n=e.className,i=e.tag,a=e.tabs,o=e.color,s=e.classicTabs,l=e.pills,c=e.header,u=tj(e,["children","className","tag","tabs","color","classicTabs","pills","header"]),d=nI()("nav",a&&"md-tabs",l&&"md-pills",c&&"nav-pills card-header-pills",!(!o||a||s||l)&&o,!(!l||!o)&&"pills-".concat(o),!(!a&&!s||!o)&&"tabs-".concat(o),n);return r.createElement(i,XM({"data-test":"nav"},u,{className:d}),t)};BL.propTypes={children:iI().node,classicTabs:iI().bool,className:iI().string,color:iI().string,header:iI().bool,pills:iI().bool,tabs:iI().bool,tag:iI().oneOfType([iI().func,iI().string])},BL.defaultProps={tag:"ul",classicTabs:!1,pills:!1,tabs:!1,header:!1};var FL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{isCollapsed:!1}),qM(nj(n),"handleScroll",(function(){var e=n.props.scrollingNavbarOffset||50;window.pageYOffset>e?n.setState({isCollapsed:!0}):n.setState({isCollapsed:!1})})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.scrolling,n=e.scrollingNavbarOffset;(t||n)&&window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.scrolling,n=e.scrollingNavbarOffset;(t||n)&&window.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e,t,n=this.props,i=n.expand,a=n.light,o=n.dark,s=n.sticky,l=n.fixed,c=n.scrolling,u=n.color,d=n.className,h=n.scrollingNavbarOffset,f=n.tag,p=n.double,g=n.transparent,m=tj(n,["expand","light","dark","sticky","fixed","scrolling","color","className","scrollingNavbarOffset","tag","double","transparent"]),y=this.state.isCollapsed,b=nI()((qM(e={"navbar-light":a,"navbar-dark":o},"sticky-".concat(s),s),qM(e,"fixed-".concat(l),l),qM(e,"scrolling-navbar",c||h),qM(e,"double-nav",p),qM(e,"top-nav-collapse",y),qM(e,"".concat(u),u&&g?y:u),e),"navbar",!1!==(t=i)&&(!0===t||"xs"===t?"navbar-expand":"navbar-expand-".concat(t)),d);return r.createElement(f,XM({"data-test":"navbar"},m,{className:b,role:"navigation"}))}}]),t}();FL.propTypes={className:iI().string,color:iI().string,dark:iI().bool,double:iI().bool,expand:iI().oneOfType([iI().bool,iI().string]),fixed:iI().string,light:iI().bool,scrolling:iI().bool,scrollingNavbarOffset:iI().number,sticky:iI().string,tag:iI().oneOfType([iI().func,iI().string]),transparent:iI().bool},FL.defaultProps={tag:"nav",expand:!1,scrolling:!1};iI().string,iI().string;var DL=function(e){var t=e.children,n=e.className,i=e.right,a=e.left,o=e.tag,s=tj(e,["children","className","right","left","tag"]),l=nI()("navbar-nav",i?"ml-auto":a?"mr-auto":"justify-content-around w-100",n);return r.createElement(o,XM({"data-test":"navbar-nav"},s,{className:l}),t)};DL.propTypes={children:iI().node,className:iI().string,left:iI().bool,right:iI().bool,tag:iI().oneOfType([iI().func,iI().string])},DL.defaultProps={tag:"ul"};var UL=function(e){var t=e.right,n=e.left,i=e.children,a=e.className,o=e.tag,s=e.image,l=tj(e,["right","left","children","className","tag","image"]),c=nI()({"navbar-toggler-right":t,"navbar-toggler-left":n},"navbar-toggler",a);return r.createElement(o,XM({"data-test":"navbar-toggler"},l,{className:c}),i||(s?r.createElement("span",{className:"navbar-toggler-icon",style:{backgroundImage:'url("'.concat(s,'")')}}):r.createElement("span",{className:"navbar-toggler-icon"})))};UL.propTypes={children:iI().node,className:iI().string,image:iI().string,left:iI().bool,right:iI().bool,tag:iI().oneOfType([iI().func,iI().string]),type:iI().string},UL.defaultProps={tag:"button",type:"button"};var zL=function(e){var t=e.children,n=e.className,i=e.active,a=e.text,o=e.tag,s=tj(e,["children","className","active","text","tag"]),l=nI()("nav-item",i&&"active",a&&"navbar-text",n);return r.createElement(o,XM({"data-test":"nav-item"},s,{className:l}),t)};zL.propTypes={active:iI().bool,children:iI().node,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},zL.defaultProps={tag:"li"};var WL=function(e){var t=ij((0,r.useState)({}),2),n=t[0],i=t[1],a=e.children,o=e.className,s=e.disabled,l=e.active,c=e.to,u=e.link,d=tj(e,["children","className","disabled","active","to","link"]),h=nI()("nav-link",s?"disabled":"Ripple-parent",l&&"active",o),f=function(e){if(!s){e.stopPropagation();var t={top:e.clientY,left:e.clientX,time:Date.now()};i(t)}},p=u?IL:UM;return r.createElement(p,XM({"data-test":"nav-link",className:h,onMouseUp:f,onTouchStart:f,to:c},d),a,!s&&r.createElement(Oj,{cursorPos:n}))};WL.propTypes={active:iI().bool,children:iI().node,className:iI().string,disabled:iI().bool,link:iI().bool,to:iI().string},WL.defaultProps={active:!1,className:"",disabled:!1,link:!1};var HL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{componentState:n.props.show?"show":"hide"}),qM(nj(n),"hide",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"object"===HM(e)&&(e=0),setTimeout((function(){n.setState({componentState:""},(function(){setTimeout((function(){n.setState({componentState:"hide"})}),150)}))}),e)})),n}
2return YM(t,[{key:"componentDidMount",value:function(){var e=this.props.autohide;e>0&&this.hide(e)}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.className,i=(e.show,e.fade),a=e.message,o=e.bodyClassName,s=e.icon,l=e.iconClassName,c=e.title,u=e.titleClassName,d=e.text,h=e.closeClassName,f=tj(e,["tag","className","show","fade","message","bodyClassName","icon","iconClassName","title","titleClassName","text","closeClassName"]),p=this.state.componentState,g=nI()("toast",i&&"fade",p,n),m=nI()("toast-header",u),y=nI()("mr-2",l),b=nI()("toast-body",o),v=nI()("ml-2","mb-1",h);return r.createElement(t,XM({"data-test":"notification"},f,{className:g}),r.createElement("div",{className:m},r.createElement(bj,{icon:s,className:y,size:"lg"}),r.createElement("strong",{className:"mr-auto"},c),r.createElement("small",null,d),r.createElement(Wj,{className:v,onClick:this.hide})),r.createElement("div",{className:b},a))}}]),t}();HL.propTypes={autohide:iI().number,bodyClassName:iI().string,bodyColor:iI().string,className:iI().string,closeClassName:iI().string,fade:iI().bool,iconClassName:iI().string,message:iI().string,show:iI().bool,tag:iI().oneOfType([iI().func,iI().string]),text:iI().string,title:iI().string,titleClassName:iI().string,titleColor:iI().string},HL.defaultProps={icon:"square",tag:"div",closeClassName:"text-dark"},vj('.popover {\n width: auto;\n background-color: white;\n color: #97999b;\n text-align: center;\n display: inline-block;\n border-radius: 3px;\n position: absolute;\n font-size: 0.83em;\n font-weight: normal;\n border: 1px rgb(0, 0, 0) solid;\n /* z-index: 200000; */\n z-index: 10;\n /* max-width: initial; */\n max-width: 274px;\n text-align: start;\n background-color: #fff;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n opacity: 0;\n transition: opacity 0.3s, visibility 0.3s;\n visibility: hidden;\n}\n\n.show.popover {\n z-index: 999;\n opacity: 1;\n visibility: visible;\n}\n\n.popover-body {\n color: #6c6e71;\n}\n\n.popover .popover_arrow {\n width: 0;\n height: 0;\n border-style: solid;\n position: absolute;\n margin: 6px;\n color: transparent;\n}\n\n.popover[x-placement^="top"] {\n margin-bottom: 15px;\n}\n\n.popover[x-placement^="top"] .popover_arrow {\n border-width: 8px 8px 0 8px;\n border-color: #d6d6d6 transparent transparent transparent;\n bottom: -8px;\n margin-bottom: 0;\n}\n\n.popover[x-placement^="top"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n left: -8px;\n bottom: 1.5px;\n border: solid;\n border-width: 8px 8px 0 8px;\n border-color: white transparent transparent transparent;\n}\n\n.popover[x-placement^="bottom"] {\n margin-top: 15px;\n}\n\n.popover[x-placement^="bottom"] .popover_arrow {\n border-width: 0 8px 8px 8px;\n border-color: transparent transparent #d6d6d6 transparent;\n top: -8px;\n margin-top: 0;\n}\n\n.popover[x-placement^="bottom"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n left: -8px;\n top: 1.45px;\n border: solid;\n border-width: 0 8px 8px 8px;\n border-color: transparent transparent white transparent;\n}\n\n.popover[x-placement^="right"] {\n margin-left: 15px;\n}\n\n.popover[x-placement^="right"] .popover_arrow {\n border-width: 8px 8px 8px 0;\n border-color: transparent #d6d6d6 transparent transparent;\n left: -8px;\n margin-left: 0;\n}\n\n.popover[x-placement^="right"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n top: -8px;\n left: 1.45px;\n border: solid;\n border-width: 8px 8px 8px 0;\n border-color: transparent white transparent transparent;\n}\n\n.popover[x-placement^="left"] {\n margin-right: 15px;\n}\n\n.popover[x-placement^="left"] .popover_arrow {\n border-width: 8px 0 8px 8px;\n border-color: transparent transparent transparent #d6d6d6;\n right: -8px;\n margin-right: 0;\n}\n\n.popover[x-placement^="left"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n top: -8px;\n right: 1.45px;\n border: solid;\n border-width: 8px 0 8px 8px;\n border-color: transparent transparent transparent white;\n}\n\n.tooltip {\n width: auto;\n background-color: black;\n color: white;\n text-align: center;\n display: inline-block;\n border-radius: 3px;\n position: absolute;\n /* font-size: 0.83em; */\n font-weight: normal;\n border: 1px rgb(0, 0, 0) solid;\n /* z-index: 200000; */\n z-index: 15;\n /* max-width: initial; */\n max-width: 274px;\n text-align: start;\n border: 1px solid rgba(0, 0, 0, 0.2);\n border-radius: 0.3rem;\n opacity: 0;\n transition: opacity 0.3s, visibility 0.3s;\n visibility: hidden;\n}\n\n.tooltip-inner {\n display: block;\n}\n\n.show.tooltip {\n z-index: 999;\n\n opacity: 1;\n visibility: visible;\n}\n\n.tooltip .popover_arrow {\n width: 0;\n height: 0;\n border-style: solid;\n position: absolute;\n margin: 6px;\n color: transparent;\n}\n\n.tooltip[x-placement^="top"],\n.show[x-placement^="top"]:not(.tooltip) {\n margin-bottom: 5px;\n}\n\n.tooltip[x-placement^="top"] .popover_arrow {\n border-width: 6px 6px 0 6px;\n border-color: #131313 transparent transparent transparent;\n bottom: -6px;\n margin-bottom: 0;\n}\n\n.tooltip[x-placement^="top"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n left: -6px;\n bottom: 1.5px;\n border: solid;\n border-width: 6px 6px 0 6px;\n border-color: black transparent transparent transparent;\n}\n\n.tooltip[x-placement^="bottom"],\n.show[x-placement^="bottom"]:not(.tooltip) {\n margin-top: 5px;\n}\n\n.tooltip[x-placement^="bottom"] .popover_arrow {\n border-width: 0 6px 6px 6px;\n border-color: transparent transparent #131313 transparent;\n top: -6px;\n margin-top: 0;\n}\n\n.tooltip[x-placement^="bottom"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n left: -6px;\n top: 1.45px;\n border: solid;\n border-width: 0 6px 6px 6px;\n border-color: transparent transparent black transparent;\n}\n\n.tooltip[x-placement^="right"],\n.show[x-placement^="right"]:not(.tooltip) {\n margin-left: 5px;\n}\n\n.tooltip[x-placement^="right"] .popover_arrow {\n border-width: 6px 6px 6px 0;\n border-color: transparent #131313 transparent transparent;\n left: -6px;\n margin-left: 0;\n}\n\n.tooltip[x-placement^="right"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n top: -6px;\n left: 1.45px;\n border: solid;\n border-width: 6px 6px 6px 0;\n border-color: transparent black transparent transparent;\n}\n\n.tooltip[x-placement^="left"],\n.show[x-placement^="left"]:not(.tooltip) {\n margin-right: 5px;\n}\n\n.tooltip[x-placement^="left"] .popover_arrow {\n border-width: 6px 0 6px 6px;\n border-color: transparent transparent transparent #131313;\n right: -6px;\n margin-right: 0;\n}\n\n.tooltip[x-placement^="left"] .popover_arrow::before {\n content: "";\n display: inline-block;\n position: absolute;\n top: -6px;\n right: 1.45px;\n border: solid;\n border-width: 6px 0 6px 6px;\n border-color: transparent transparent transparent black;\n}\n');var VL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return qM(nj(n=e.call.apply(e,[this].concat(a))),"state",{popperJS:null,visible:n.props.isVisible,showPopper:n.props.isVisible}),qM(nj(n),"popoverWrapperRef",r.createRef()),qM(nj(n),"referenceElm",r.createRef()),qM(nj(n),"setPopperJS",(function(){var e=n.state,t=e.showPopper,r=e.popperJS;t&&(r?r.scheduleUpdate():n.createPopper())})),qM(nj(n),"createPopper",(function(){var e=n.props,t=e.placement,r=e.modifiers,i=n.state.popperJS;n.referenceElm&&n.popoverWrapperRef&&n.setState({popperJS:new TR(n.referenceElm,n.popoverWrapperRef,{placement:t,modifiers:r},(function(){return setTimeout((function(){i.scheduleUpdate()}),10)}))})})),qM(nj(n),"doToggle",(function(e){n.setState({showPopper:e&&!0},(function(){var t=n.state,r=t.showPopper,i=t.visible;r&&n.setState({visible:void 0!==e?e:!i},(function(){n.createPopper(),n.state.popperJS.scheduleUpdate()}))}))})),qM(nj(n),"handleClick",(function(e){var t=e.target,r=n.state.showPopper;if(n.popoverWrapperRef&&r){if(n.popoverWrapperRef.contains(t)||n.referenceElm.contains(t)||t===n.referenceElm)return;n.doToggle(!1)}})),n}
2return YM(t,[{key:"componentDidUpdate",value:function(e,t){var n=this.state.showPopper,r=this.props,i=r.isVisible,a=r.onChange;this.setPopperJS(),e.isVisible!==i&&i!==n&&n!==e.showPopper&&this.setState({showPopper:i}),a&&n!==t.showPopper&&a(n),n&&t.showPopper!==n&&this.createPopper()}},{key:"componentDidMount",value:function(){var e=this;this.timer=setTimeout((function(){return e.setPopperJS()}),3),document.addEventListener("click",this.handleClick)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.clickable,o=t.domElement,s=t.email,l=t.id,c=(t.isVisible,t.material),u=(t.modifiers,t.placement,t.popover),d=t.sm,h=(t.style,t.onChange,t.tag),f=tj(t,["children","className","clickable","domElement","email","id","isVisible","material","modifiers","placement","popover","sm","style","onChange","tag"]),p=this.state,g=p.visible,m=p.showPopper,y=n[1],b=n[0],v=nI()(g&&"show",u?"popover":!c&&!s&&"tooltip px-2",i),x=nI()((c||s)&&"tooltip-inner",c&&(d?"md-inner":"md-inner-main"),s&&(d?"md-inner":"md-inner-email"));return r.createElement(r.Fragment,null,o?r.createElement(b.type,XM({},b.props,{onMouseEnter:function(){return!a&&e.doToggle(!0)},onMouseLeave:function(){return!a&&!u&&setTimeout((function(){return e.doToggle(!1)}),0)},onTouchStart:function(){return!a&&e.doToggle(!0)},onTouchEnd:function(){return!a&&!u&&e.doToggle(!1)},onMouseDown:function(){return a&&e.doToggle(!m)},onMouseUp:function(){return setTimeout((function(){return e.setPopperJS()}),0)},ref:function(t){return e.referenceElm=t},"data-popper":l})):r.createElement(b.type,XM({},b.props,{onMouseEnter:function(){return!a&&e.doToggle(!0)},onMouseLeave:function(){return!a&&!u&&setTimeout((function(){return e.doToggle(!1)}),0)},onTouchStart:function(){return!a&&e.doToggle(!0)},onTouchEnd:function(){return!a&&!u&&e.doToggle(!1)},onMouseDown:function(){a&&e.doToggle(!m),setTimeout((function(){return e.setPopperJS()}),100)},onMouseUp:function(){return setTimeout((function(){return e.setPopperJS()}),0)},innerRef:function(t){return e.referenceElm=t},"data-popper":l})),m&&r.createElement(h,XM({ref:function(t){return e.popoverWrapperRef=t},className:v,"data-popper":l},f),r.createElement(y.type,{className:nI()(x,y.props.className)},y.props.children),r.createElement("span",{"x-arrow":"",className:nI()("popover_arrow")})))}}]),t}();VL.propTypes={children:iI().node,clickable:iI().bool,domElement:iI().bool,email:iI().bool,id:iI().string,isVisible:iI().bool,material:iI().bool,modifiers:iI().object,placement:iI().string,popover:iI().bool,sm:iI().bool,style:iI().objectOf(iI().string),tag:iI().string},VL.defaultProps={clickable:!1,domElement:!1,id:"popper",isVisible:!1,placement:"top",popover:!1,style:{display:"inline-block"},tag:"div"};var GL=function(e){var t=e.attributes,n=e.children,i=e.className,a=e.tag,o=nI()("popover-body",i);return r.createElement(a,XM({"data-test":"popover-body"},t,{className:o}),n)};GL.propTypes={children:iI().node,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},GL.defaultProps={tag:"div"};var YL=function(e){var t=e.attributes,n=e.children,i=e.className,a=e.tag,o=nI()("popover-header",i);return r.createElement(a,XM({"data-test":"popover-header"},t,{className:o}),n)};YL.propTypes={children:iI().node,className:iI().string,tag:iI().oneOfType([iI().func,iI().string])},YL.defaultProps={className:"",tag:"h3"};var qL=function(e){var t=e.animated,n=e.barClassName,i=e.children,a=e.className,o=e.color,s=e.height,l=e.material,c=e.max,u=e.min,d=e.preloader,h=e.striped,f=e.value,p=e.wrapperStyle,g=tj(e,["animated","barClassName","children","className","color","height","material","max","min","preloader","striped","value","wrapperStyle"]),m=(f-u)/(c-u)*100,y=nI()("progress",l&&"md-progress",d&&"".concat(o?"".concat(o,"-color"):"primary-color","-dark"),a),b=nI()(d?"indeterminate":"progress-bar",n||null,t?"progress-bar-animated":null,o?"bg-".concat(o):null,h||t?"progress-bar-striped":null),v=s||i&&"1rem",x=KM(KM({},p),{},{height:v});return r.createElement("div",XM({"data-test":"progress"},g,{className:y,style:x}),r.createElement("div",{className:b,style:{width:"".concat(m,"%"),height:v},role:"progressbar","aria-valuenow":f,"aria-valuemin":u,"aria-valuemax":c},i))};qL.propTypes={animated:iI().bool,barClassName:iI().string,children:iI().node,className:iI().string,color:iI().string,height:iI().string,material:iI().bool,max:iI().number,min:iI().number,preloader:iI().bool,striped:iI().bool,value:iI().number,wrapperStyle:iI().object},qL.defaultProps={animated:!1,barClassName:"",className:"",color:"indigo",height:"",material:!1,max:100,min:0,preloader:!1,striped:!1,value:0,wrapperStyle:{}};var XL=function(e){var t=ij((0,r.useState)([]),2),n=t[0],i=t[1],a=ij((0,r.useState)(null),2),o=a[0],s=a[1],l=ij((0,r.useState)({title:"",index:null}),2),c=l[0],u=l[1],d=ij((0,r.useState)(""),2),h=d[0],f=d[1],p=ij((0,r.useState)(null),2),g=p[0],m=p[1],y=function(e){e.target.closest(".popover")||m(null)};(0,r.useEffect)((function(){return window.addEventListener("click",y),function(){return window.removeEventListener("click",y)}}),[]),(0,r.useEffect)((function(){i(e.data)}),[e.data]),(0,r.useEffect)((function(){var e=n.findIndex((function(e){return e.choosed}));-1!==e&&u({title:n[e].tooltip,index:e})}),[n]),(0,r.useEffect)((function(){if(e.getValue){var t=c.title,n=c.index;n=null!==n?n+1:n,e.getValue({title:t,value:n})}}),[c,e]);var b=function(){s(null)},v=function(){f(""),m(null)},x=function(e){f(e.target.value)},w=e.tag,k=e.containerClassName,A=e.iconClassName,E=e.iconFaces,S=e.iconSize,P=e.iconRegular,C=e.fillClassName,O=e.fillColors,T=(e.getValue,e.feedback),N=e.submitHandler,_=tj(e,["tag","containerClassName","iconClassName","iconFaces","iconSize","iconRegular","fillClassName","fillColors","getValue","feedback","submitHandler"]),I=nI()("mdb-rating","d-flex","justify-content-start","align-items-center",k),R=[];return n.length&&(R=n.map((function(e,t){var n=e.icon,i=void 0===n?"star":n,a=e.tooltip,l=e.far,d=e.size,f=(e.choosed,tj(e,["icon","tooltip","far","size","choosed"])),p=null!==c.index,y=null!==o,w=T&&null!==g&&g===t,k=!1;p?(k=t<=c.index,y&&o>c.index&&(k=t<=o)):y&&(k=t<=o);var I="";if(O){var R=null;p?(R=c.index,y&&(R=o)):y&&(R=o);var M=Array.isArray(O);null!==R&&(I=M?O[R]:["oneStar","twoStars","threeStars","fourStars","fiveStars"][R])}var j=nI()("py-2 px-1 rate-popover",k&&(O?I:C),A),L=i;if(E){var B=["angry","frown","meh","smile","laugh"];L="meh-blank",p&&t<=c.index?(L=B[c.index],y&&(L=B[o])):y&&t<=o&&(L=B[o])}var F=a;return w&&(F=r.createElement("form",{onSubmit:function(e){N(e,a,g+1,h),v()}},r.createElement(YL,null,a),r.createElement(GL,null,r.createElement("textarea",{type:"text",className:"md-textarea form-control py-0",value:h,onChange:x}),r.createElement("div",{className:"d-flex align-items-center justify-content-around mt-2"},r.createElement(EL,{type:"submit",color:"primary",size:"sm"},"Submit!"),r.createElement("button",{onMouseDown:v,style:{backgroundColor:"#fff",border:"none",padding:"0.5rem 1.6rem"}},"Close"))))),r.createElement(VL,{key:a,domElement:!0,placement:"top",tag:"span",popover:w,isVisible:w,clickable:w},r.createElement("span",null,r.createElement(bj,XM({style:{cursor:"pointer"}},_,f,{icon:L,size:d||S,far:l||P,className:j,"data-index":t,"data-original-title":a,onMouseEnter:function(){return function(e,t){s(t)}(0,t)},onMouseLeave:b,onClick:function(e){return function(e,t,n){n.stopPropagation(),e===c.title&&t===c.index?(u({title:"",index:null}),T&&m(null)):(u({title:e,index:t}),T&&setTimeout((function(){m(t)}),1))}(a,t,e)}}))),r.createElement("div",{style:{userSelect:"none"}},F))}))),r.createElement(w,{"data-test":"rating",className:I},R)};XL.propTypes={containerClassName:iI().string,data:iI().arrayOf(iI().shape({choosed:iI().bool,icon:iI().string,tooltip:iI().string})),feedback:iI().bool,fillClassName:iI().string,fillColors:iI().oneOfType([iI().bool,iI().arrayOf(iI().string)]),getValue:iI().func,iconClassName:iI().string,iconFaces:iI().bool,iconRegular:iI().bool,iconSize:iI().string,
2submitHandler:iI().func,tag:iI().string},XL.defaultProps={containerClassName:"",data:[{tooltip:"Very Bad"},{tooltip:"Poor"},{tooltip:"Ok"},{tooltip:"Good"},{tooltip:"Excellent"}],feedback:!1,fillClassName:"fiveStars",iconClassName:"",iconSize:"1x",iconRegular:!1,tag:"div",submitHandler:function(e){return e.preventDefault()}};var $L=function(e){var t=e.around,n=e.between,i=e.bottom,a=e.center,o=e.className,s=e.end,l=e.middle,c=e.start,u=e.tag,d=e.top,h=tj(e,["around","between","bottom","center","className","end","middle","start","tag","top"]),f=nI()("row",s&&"justify-content-end",c&&"justify-content-start",a&&"justify-content-center",n&&"justify-content-between",t&&"justify-content-around",d&&"align-self-start",l&&"align-self-center",i&&"align-self-end",o);return r.createElement(u,XM({"data-test":"row"},h,{className:f}))};$L.propTypes={around:iI().bool,between:iI().bool,bottom:iI().bool,center:iI().bool,className:iI().string,end:iI().bool,middle:iI().bool,start:iI().bool,tag:iI().oneOfType([iI().func,iI().string]),top:iI().bool},$L.defaultProps={tag:"div"};var KL=r.createContext({activeItem:null,length:null,slide:null}),QL={activeItem:iI().any,className:iI().string,tabId:iI().any},JL=function(){QM(t,r.Component);var e=rj(t);function t(){var n;VM(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return qM(nj(n=e.call.apply(e,[this].concat(i))),"state",{activeItem:n.props.activeItem}),n}return YM(t,[{key:"render",value:function(){var e=this.props.className,t=this.state.activeItem,n=hj(this.props,Object.keys(QL)),i=nI()("tab-content",e);return r.createElement(KL.Provider,{value:{activeItemId:t}},r.createElement("div",XM({"data-test":"tabContent"},n,{className:i})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.activeItem!==e.activeItem?{activeItem:e.activeItem}:null}}]),t}();JL.propTypes=QL;var ZL=function(){QM(t,r.Component);var e=rj(t);function t(){return VM(this,t),e.apply(this,arguments)}return YM(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.tabId,i=tj(e,["className","tabId"]);return r.createElement(KL.Consumer,null,(function(e){var a=e.activeItemId,o=nI()("tab-pane",{active:n===a},t);return r.createElement("div",XM({"data-test":"tab-pane"},i,{className:o,role:"tabpanel"}))}))}}]),t}();ZL.propTypes={className:iI().string,tabId:iI().any};var eB=function(e){var t,n=e.children,i=e.color,a=e.columns,o=e.textWhite,s=tj(e,["children","color","columns","textWhite"]),l="dark"===i||"light"===i,c=nI()((qM(t={"text-white":o},"thead-".concat(i),i&&l),qM(t,"".concat(i),i&&!l),t));return r.createElement("thead",XM({"data-test":"table-head"},s,{className:c}),a&&r.createElement("tr",null,a.map((function(e){return r.createElement("th",{key:e.field,className:e.hasOwnProperty("minimal")?"th-".concat(e.minimal):""},e.label)}))),n)};eB.propTypes={children:iI().node,color:iI().string,columns:iI().arrayOf(iI().object),textWhite:iI().bool},eB.defaultProps={textWhite:!1};var tB=r.createContext(),nB=function(e){var t=ij((0,r.useState)(null),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.getValue&&e.getValue({item:n?n.closest("li"):n,value:n?n.closest("li").childNodes[1].textContent:n})}),[n,e]);var a=e.theme,o=e.children,s=e.className,l=(e.getValue,e.header),c=e.listClassName,u=e.openOnToggler,d=e.tag,h=tj(e,["theme","children","className","getValue","header","listClassName","openOnToggler","tag"]),f=nI()("border",a?"treeview-".concat(a):"treeview",s),p=nI()("list-unstyled",l?"pb-2 mb-1":"py-2 my-1",a&&"treeview-".concat(a,"-list"),"animated"===a||!a&&"pl-3",c),g=l&&r.createElement(r.Fragment,null,r.createElement("h6",{className:"pt-3 pl-3"},l),r.createElement("hr",null));return r.createElement(d,XM({"data-test":"treeview"},h,{className:f}),g,r.createElement("ul",{className:p},r.createElement(tB.Provider,{value:{active:n,openOnToggler:u,theme:a,getActive:function(e){return i(e),e}}},o)))};nB.propTypes={className:iI().string,getValue:iI().func,header:iI().string,listClassName:iI().string,openOnToggler:iI().bool,tag:iI().string,theme:iI().string},nB.defaultProps={openOnToggler:!1,tag:"div",theme:"",getValue:function(){}};var rB=function(e){var t=ij((0,r.useState)(""),2),n=t[0],i=t[1],a=(0,r.useRef)(null),o=e.className,s=e.disabled,l=e.disabledClassName,c=e.fab,u=e.fal,d=e.far,h=e.icon,f=(e.opened,e.tag),p=e.title,g=tj(e,["className","disabled","disabledClassName","fab","fal","far","icon","opened","tag","t
2itle"]),m=(0,r.useContext)(tB),y=m.active,b=m.getActive,v=m.theme;(0,r.useEffect)((function(){a&&a.current&&i(a.current)}),[]);var x=nI()(s&&l,v&&"treeview-".concat(v,"-items treeview-").concat(v,"-element closed mb-1"),y!==n||y.classList.contains("opened")?"":"opened",o);return r.createElement(f,XM({"data-test":"treeview-item"},g,{className:x,ref:a,onMouseDown:function(){s||(n.classList.contains("opened")?b(null):b(n))},style:{transform:"translateY(0.3em)"}}),r.createElement(bj,{className:"mr-2",fab:c,fal:u,far:d,icon:h}),r.createElement("span",null,p))};rB.propTypes={className:iI().string,disabled:iI().bool,disabledClassName:iI().string,fab:iI().bool,fal:iI().bool,far:iI().bool,icon:iI().string,opened:iI().bool,tag:iI().oneOfType([iI().func,iI().string])},rB.defaultProps={disabled:!1,fab:!1,fal:!1,far:!1,icon:"folder-open",opened:!1,tag:"li"};var iB=function(e){var t=ij((0,r.useState)(!1),2),n=t[0],i=t[1];(0,r.useEffect)((function(){var t=e.opened;i(t)}),[e,e.opened]);var a=function(){return i(!n)},o=e.children,s=e.className,l=e.disabled,c=e.disabledClassName,u=e.fab,d=e.fal,h=e.far,f=e.icon,p=(e.opened,e.tag),g=e.title,m=tj(e,["children","className","disabled","disabledClassName","fab","fal","far","icon","opened","tag","title"]),y=(0,r.useContext)(tB),b=y.theme,v=y.openOnToggler,x=nI()("nested",n&&"active"),w=nI()(b&&"closed treeview-".concat(b,"-element d-block"),!o&&"ml-2",n&&"opened",l&&c),k=nI()(b&&"treeview-".concat(b,"-items px-0"),s),A=nI()(b?"mx-2":"mr-2"),E=o&&r.createElement("ul",{className:x,style:{height:"calc(100% + 0.6rem)",marginLeft:"2px"}},o),S=b&&r.createElement(Gj,{isOpen:n},E),P="colorful"!==b?"angle-right":n?"minus-circle":"plus-circle",C=o&&r.createElement(bj,{icon:P,rotate:"colorful"!==b?n?"90 down":"0":"",className:"rotate",onClick:v?a:null}),O=o&&r.createElement(EL,{flat:!0,className:"m-0 py-0 px-1 mr-1 z-depth-0",onClick:v?a:null},C);return r.createElement(p,XM({"data-test":"treeview-list"},m,{className:k,style:{cursor:b||v?"unset":"pointer"}}),r.createElement("span",{className:w,onClick:l||v?null:a},b?C:O,r.createElement("span",null,r.createElement(bj,{className:A,fab:u,fal:d,far:h,icon:f}),g)),S||E)};iB.propTypes={children:iI().array,className:iI().string,disabled:iI().bool,disabledClassName:iI().string,fab:iI().bool,fal:iI().bool,far:iI().bool,icon:iI().string,opened:iI().bool,tag:iI().string,title:iI().any},iB.defaultProps={disabled:!1,fab:!1,fal:!1,far:!1,icon:"folder-open",opened:!1,tag:"li"},vj(".note-dark {\n background-color: #000;\n color: #fff;\n border-color: #58595a;\n}\n\n.note-default {\n background-color: rgb(164, 243, 235);\n border-color: #00695c;\n}\n\n.note-elegant {\n background-color: #2E2E2E;\n border-color: #212121;\n color: #fff;\n}\n\n.note-stylish {\n background-color: #4B515D;\n border-color: #3E4551;\n color: #fff;\n}\n\n.note-unique {\n background-color: #3F729B;\n border-color: #1C2331;\n color: #fff;\n}\n\n.note-special {\n background-color: #37474F;\n border-color: #263238;\n color: #fff;\n}\n");var aB=function(){QM(t,r.Component);var e=rj(t);function t(){return VM(this,t),e.apply(this,arguments)}return YM(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.tag,i=e.children,a=e.variant,o=e.blockquote,s=e.bqColor,l=(e.bqTitle,e.bqFooter,e.bqText,e.listUnStyled),c=e.listInLine,u=e.colorText,d=e.text,h=e.note,f=e.noteColor,p=e.noteTitle,g=tj(e,["className","tag","children","variant","blockquote","bqColor","bqTitle","bqFooter","bqText","listUnStyled","listInLine","colorText","text","note","noteColor","noteTitle"]),m=nI()(a&&a,u&&"".concat(u.toLowerCase(),"-text"),d&&"text-".concat(d),t),y=nI()("blockquote",s&&"bq-".concat(s),t),b=nI()("note",f&&"note-".concat(f),t),v=""!==m?m:null;return o?r.createElement("blockquote",{className:y},i):l?r.createElement("ul",{className:"list-unstyled"},i):c?r.createElement("ul",{className:"list-inline"},i):h?r.createElement("p",{className:b},r.createElement("strong",null,p),i):r.createElement(n,XM({"data-test":"typography"},g,{className:v}),i)}}]),t}();aB.propTypes={bgText:iI().bool,blockquote:iI().bool,bqColor:iI().string,bqFooter:iI().bool,bqTitle:iI().string,children:iI().oneOfType([iI().string,iI().object]),className:iI().string,colorText:iI().string,listInLine:iI().bool,listUnStyled:iI().bool,note:iI().bool,noteColor:iI().string,noteTitle:iI().string,tag:iI().oneOfType([iI().func,iI().string]),text:iI().string,variant:iI().string},aB.defaultProps={blockquote:!1,listInLine:!1,listUnStyled:!1,noteColor:"primary",tag:"p"};const oB=ds()((e=>{const[t,n]=(0,r.useState)(!1),i=[{label:"#",field:"index",sort:"asc"},{label:"Address",field:"address",sort:"disabled",fixed:!0},{label:"Total Balance",field:"totalbalance",sort:"disabled",fixed:!0},{label:"Balance ETH",field:"balance_eth",sort:"disabled"},{label:"Balance BSC",field:"balance_bsc",sort:"disabled"},{label:"Chain",field:"chain",sort:"disabled"}],[a,o]=(0,r.useState)([],!1);return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getAllHolders").then((e=>e.json())).then((e=>{const t=[];for(var n=0;n<e.data.length;n++){let r=e.data[n];if(parseFloat(En(r.total_balance,"ether"))>
2=10){let e={index:n+1,address:r.address,totalbalance:parseFloat(En(r.total_balance,"ether")).toLocaleString("en-US",{maximumFractionDigits:2}),balance_eth:parseFloat(En(r.balance_eth,"ether")).toLocaleString("en-US",{maximumFractionDigits:2}),balance_bsc:parseFloat(En(r.balance_bsc,"ether")).toLocaleString("en-US",{maximumFractionDigits:2}),chain:"0"!=r.balance_eth&&"0"!=r.balance_bsc?"ETH + BSC":0!=r.balance_eth?"ETH":"BSC"};""!=r.remark&&(e.address=e.address+" ( "+r.remark+" )"),t.push(e)}}o({columns:i,rows:t})}))})()}),[]),document.title="DEFX Holders | An overview of all addresses holding DEFX",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Holders"})})})}),(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(Jr,{className:"col-12",children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"h4",children:"DEFX Holders"}),(0,Ly.jsx)("div",{children:"\xa0"}),a.rows?(0,Ly.jsx)(lL,{responsive:!0,bordered:!0,noBottomColumns:!0,striped:!0,data:a,entries:100,entriesOptions:[100,250,500,1e3,2500]}):(0,Ly.jsx)(lL,{responsive:!0,bordered:!0,noBottomColumns:!0,striped:!0,data:{columns:i,rows:[{address:"Loading data..."}]},entries:100,entriesOptions:[100,250,500,1e3,2500],scrollX:!0})]})})})})]})})})})),sB=ds()((e=>{const[t,n]=(0,r.useState)(!1);let i=[{label:"#",field:"index",sort:"asc",fixed:!0},{label:"Address",field:"address",sort:"disabled",fixed:!0},{label:"Current Balance",field:"currentbalance",fixed:!0,format:(e,t)=>{console.log(t),e.style.backgroundColor="#ff00ff"}},{label:"-1 day",field:"balance_min1",width:150},{label:"-7 days",field:"balance_min7"},{label:"-14 days",field:"balance_min14"},{label:"-28 days",field:"balance_min28"},{label:"Chain(s)",field:"chain"}];function a(e,t){return parseFloat(En(e,"ether")).toLocaleString("en-US",{maximumFractionDigits:t})}const[o,s]=(0,r.useState)([],!1);return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getWhaleData").then((e=>e.json())).then((e=>{const t=[];for(var n=0;n<e.data.length;n++){let r=e.data[n],i={index:n+1,address:r.address,currentbalance:a(r.balance,2),balance_min1:a(r.balance_1d_ago,2),balance_min7:a(r.balance_7d_ago,2),balance_min14:a(r.balance_14d_ago,2),balance_min28:a(r.balance_28d_ago,2),chain:r.chain};""!=r.remark&&(i.address=i.address+" ( "+r.remark+" )"),t.push(i)}s({columns:i,rows:t})}))})()}),[]),document.title="Whale Tracker | Easily monitor DEFX whale movements",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Whale Tracker"})})})}),(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(Jr,{className:"col-12",children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"h4",children:"Whale balances"}),(0,Ly.jsx)("div",{children:"\xa0"}),o.rows?(0,Ly.jsx)(lL,{responsive:!0,bordered:!0,noBottomColumns:!0,striped:!0,data:o,entries:100,entriesOptions:[25,50,100]}):(0,Ly.jsx)(lL,{responsive:!0,bordered:!0,noBottomColumns:!0,striped:!0,data:{columns:i,rows:[{address:"Loading data..."}]},entries:100,entriesOptions:[25,50,100],scrollX:!0})]})})})})]})})})})),lB=n(87252),cB=n(73207);function uB(){var e,t,n,i,a,o,s,l,c;const[u,d]=(0,r.useState)(""),{chain:h}=Ym(),{address:f,isConnected:p}=Um(),{switchNetwork:g}=Xm(),m=null===h||void 0===h?void 0:h.id,y=Rm({chainId:m}),b=p&&On(m),[v,x]=(0,r.useState)(null),[w,k]=(0,r.useState)(""),[A,E]=(0,r.useState)(0),S=`${f}:${m}`,P=b&&(null===v||void 0===v?void 0:v.context)===S,C=P?v:null,O=null!==(e=null===C||void 0===C?void 0:C.balance)&&void 0!==e?e:0n,T=Sn(O),N=null!==(t=null===C||void 0===C?void 0:C.allowance)&&void 0!==t?t:0n,_=Tn(u),I=null!==_&&N<_,R=null!==(n=null===C||void 0===C?void 0:C.pending)&&void 0!==n?n:{},M=Boolean((null===C||void 0===C?void 0:C.pending)&&R.chain_target===(1===m?"eth":"bsc")),j=Boolean((null===C||void 0===C?void 0:C.pending)&&!M),L=null!==(i=null===C||void 0===C?void 0:C.waiting)&&void 0!==i?i:[],B=null!==(a=null===C||void 0===C?void 0:C.error)&&void 0!==a?a:[],F=L.length>0,D=B.length>0,U=null===C||void 0===C?void 0:C.fees,z=Sn(null!==(o=null===U||void 0===U?void 0:U.nativeFeeEth)&&void 0!==o?o:0n),W=Sn(null!==(s=null===U||void 0===U?void 0:U.nativeFeeBsc)&&void 0!==s?s:0n),H=Sn(null!==(l=null===U||void 0===U?void 0:U.targetFeeEth)&&void 0!==l?l:0n),V=Sn(null!==(c=null===U||void 0===U?void 0:U.targetFeeBsc)&&void 0!==c?c:0n),G=1===m?"0x937a47d84f088f6c4917b5981efc1b13d042e96b":"0xb07c10cd419629a2f3bc4396160eaa4ea5bc95c6",Y=1===m?"0x5F474906637bdCDA05f29C74653F6962bb0f8eDa":"0xbe4cb2c354480042a39350a0c6c26bf54786539f";function q(){return P&&null!==_&&_<=O&&!I&&!M&&!j}function X(){var e;return P&&M&&Boolean(R.tx&&R.sig)&&(null===(e=R.address)||void 0===e?void 0:e.toLowerCase())===(null===f||void 0===f?void 0:f.toLowerCase())}function $(){return P&&null!==_&&_<=O&&I}(0,r.useEffect)((()=>{const e=new AbortController;if(x(null),k(""),!b)return()=>e.abort();const t=t=>_n(t,e.signal);return Promise.all([y.readContract({address:Y,abi:cB,functionName:"balanceOf",args:[f],blockTag:"latest"}),y.readContract({address:Y,abi:cB,functionName:"allowance",args:[f,G],blockTag:"latest"}),t("https://defxstats.com:3001/getBridgeFees"),t(`https://defxstats.com:3001/getPendingBridgeTransfers?address=${encodeURIComponent(f)}`)]).then((t=>{let[n,r,i,a]=t;if(e.signal.aborted)return;const o=Object.fromEntries(["nativeFeeEth","nativeFeeBsc","targetFeeEth","targetFeeBsc"].map((e=>[e,Nn(i.data[e])])));if(!["pending","waiting","error"].every((e=>Array.isArray(a.data[e]))))throw new Error("Invalid bridge response");const s=a.data.pending.find((e=>"string"===typeof e.address&&e.address.toLowerCase()===f.toLowerCase()&&["eth","bsc"].includes(e.chain_target)));x({context:S,balance:Nn(n.toString()),allowance:Nn(r.toString()),fees:o,pending:s,waiting:a.data.waiting,error:a.data.error})})).catch((t=>
2{e.signal.aborted||k("Unable to load bridge data. Please retry.")})),()=>e.abort()}),[f,m,b,S,G,Y,y,A]);const{config:K}=Qm({chainId:m,address:G,abi:lB,functionName:"transferToNativeChain",value:1===m?null===U||void 0===U?void 0:U.nativeFeeEth:null===U||void 0===U?void 0:U.nativeFeeBsc,args:[Y,f,null!==_&&void 0!==_?_:0n],enabled:q()}),{data:Q,write:J}=Km(K),{isLoading:Z,isSuccess:ee}=Zm({chainId:m,hash:null===Q||void 0===Q?void 0:Q.hash,onSuccess:pe}),{config:te}=Qm({chainId:m,address:G,abi:lB,functionName:"transferFromNativeChain",value:1===m?null===U||void 0===U?void 0:U.targetFeeEth:null===U||void 0===U?void 0:U.targetFeeBsc,args:[R.tx,R.sig,R.address],enabled:X()}),{data:ne,write:re}=Km(te),{isLoading:ie,isSuccess:ae}=Zm({chainId:m,hash:null===ne||void 0===ne?void 0:ne.hash,onSuccess:pe}),{config:oe,error:se,isFetching:le,refetch:ce}=Qm({chainId:m,address:Y,abi:cB,functionName:"approve",args:[G,null!==_&&void 0!==_?_:0n],enabled:$()}),{data:ue,write:de,error:he}=Km(oe),{isLoading:fe}=Zm({chainId:m,hash:null===ue||void 0===ue?void 0:ue.hash,onSuccess:()=>E((e=>e+1))});async function pe(){try{await fetch("https://defxstats.com:3001/forceUpdateBridge")}catch{}finally{E((e=>e+1))}}return b?P?M?(0,Ly.jsx)(Jr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Bridge DEFX"}),"You have a pending cross-chain transfer. Please verify the details below and submit transaction 2/2.",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),"Amount: ",(0,Ly.jsxs)("strong",{children:[parseFloat(En(R.amount,"ether")).toLocaleString("en-US",{maximumFractionDigits:16})," DEFX"]}),(0,Ly.jsx)("br",{}),"Address: ",(0,Ly.jsx)("strong",{children:R.address}),(0,Ly.jsx)("br",{}),"Bridged ",(0,Ly.jsx)("strong",{children:"from"})," ","eth"==R.chain_origin?"Ethereum":"BNB Smart Chain"," ",(0,Ly.jsx)("strong",{children:"to"})," ","eth"==R.chain_target?"Ethereum":"BNB Smart Chain",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),X()&&(null===re||void 0===re||re())},children:[(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!X()||!re||ie||ae,children:ie?"Bridging...":"Bridge (2/2)"}),ae&&(0,Ly.jsx)("div",{children:"You've successfully submitted tx 2/2. Your DEFX should arrive within 24 hours, but usually much sooner.\xa0\xa0\xa0"})]})]})})}):(0,Ly.jsxs)(zr,{children:[j&&(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12"}),(0,Ly.jsxs)(Rr,{color:"danger",children:["You have a pending cross-chain transfer on ",1==h.id?"BNB Smart Chain":"Ethereum",".",(0,Ly.jsx)("br",{}),"Switch to ",1==h.id?"BNB Smart Chain":"Ethereum"," to verify your cross-chain transfer.\xa0\xa0\xa0",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsxs)("button",{className:"btn btn-primary w-md",onClick:()=>{1==h.id?null===g||void 0===g||g(56):null===g||void 0===g||g(1)},children:["Switch to ",1==h.id?"BNB Smart Chain":"Ethereum"]})]})]})})}),D&&(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12"}),B.map((function(e){return(0,Ly.jsxs)(Rr,{color:"danger",children:["You have a cross-chain transfer that could not be verified. We have been notified and will look into this.",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),"Amount: ",(0,Ly.jsxs)("strong",{children:[parseFloat(En(e.amount,"ether")).toLocaleString("en-US",{maximumFractionDigits:16})," DEFX"]}),(0,Ly.jsx)("br",{}),"Receiving address: ",(0,Ly.jsxs)("strong",{children:[e.address,(0,Ly.jsx)("br",{})]}),"Receiving chain: ",(0,Ly.jsx)("strong",{children:"eth"==e.chain_target?"Ethereum":"BNB Smart Chain"})]})}))]})})}),F&&(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-12"}),L.map((function(e){return(0,Ly.jsxs)(Rr,{color:"danger",children:["You have a cross-chain transfer that should arrive shortly.",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),"Amount: ",(0,Ly.jsxs)("strong",{children:[parseFloat(En(e.amount,"ether")).toLocaleString("en-US",{maximumFractionDigits:16})," DEFX"]}),(0,Ly.jsx)("br",{}),"Receiving address: ",(0,Ly.jsxs)("strong",{children:[e.address,(0,Ly.jsx)("br",{})]}),"Receiving chain: ",(0,Ly.jsx)("strong",{children:"eth"==e.chain_target?"Ethereum":"BNB Smart Chain"})]})}))]})})}),M||j?"":(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)(Jr,{xl:12,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(u
2i,{children:[(0,Ly.jsx)(mi,{className:"mb-12"}),(0,Ly.jsxs)(Rr,{color:"info",children:["You are currently connected to ",(0,Ly.jsx)("strong",{children:1==h.id?"Ethereum":"BNB Smart Chain"}),".",(0,Ly.jsx)("br",{}),"The bridge will transfer DEFX ",(0,Ly.jsxs)("strong",{children:["from ",1==h.id?"Ethereum":"BNB Smart Chain"," to ",1==h.id?"BNB Smart Chain":"Ethereum"]}),".",(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),"Trying to bridge ",1==h.id?"from BNB Smart Chain to Ethereum":"from Ethereum to BNB Smart Chain","?"," ","Switch to ",1==h.id?"BNB Smart Chain":"Ethereum",".\xa0\xa0\xa0",(0,Ly.jsxs)("button",{className:"btn btn-primary w-md",onClick:()=>{1==h.id?null===g||void 0===g||g(56):null===g||void 0===g||g(1)},children:["Switch to ",1==h.id?"BNB Smart Chain":"Ethereum"]})]})]})})}),(0,Ly.jsx)(Jr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"mb-4",children:"Bridge DEFX"}),(0,Ly.jsx)("span",{id:"userbalanceBN",style:{display:"none"},children:O}),(0,Ly.jsxs)(Rr,{color:"info",children:["You will need to submit 2 transactions, one on each chain.",(0,Ly.jsx)("br",{}),"After submitting both transactions, it may take up to 24 hours for your DEFX to arrive ( but usually much faster )."]}),"Available balance: ",(0,Ly.jsxs)("strong",{children:[T," DEFX"]}),(0,Ly.jsx)("br",{}),"Bridge fee: ",1==h.id?z+" ETH + "+V+" BNB":W+" BNB + "+H+" ETH"," ",(0,Ly.jsx)("span",{style:{color:"#878ba6"},children:"(this does NOT include transaction fees)"}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsxs)(hy,{onSubmit:e=>{e.preventDefault(),q()&&(null===J||void 0===J||J())},children:[(0,Ly.jsxs)("div",{className:"mb-3",children:[(0,Ly.jsx)(Ay,{htmlFor:"formrow-bridgeamount-Input",children:"Amount"}),(0,Ly.jsx)(jy,{type:"text",className:"form-control",id:"formrow-bridgeamount-Input",value:u,disabled:Z||fe,onChange:e=>{d(e.target.value)},placeholder:"0"})]}),(0,Ly.jsx)("div",{className:"d-flex justify-content-end",children:(0,Ly.jsx)("span",{className:"bg-primary badge badge-secondary",style:{cursor:"pointer"},onClick:()=>{d(Sn(O))},children:"MAX"})}),u&&null===_&&(0,Ly.jsx)(Rr,{color:"warning",children:"Enter a positive amount with up to 18 decimal places."}),null!==_&&_>O&&(0,Ly.jsx)(Rr,{color:"warning",children:"The entered amount exceeds your available DEFX balance."}),$()&&se&&(0,Ly.jsxs)(Rr,{color:"danger",children:["Unable to prepare the approval. Check your wallet connection and try again.",(0,Ly.jsx)("button",{type:"button",className:"btn btn-link",disabled:le,onClick:()=>null===ce||void 0===ce?void 0:ce(),children:"Retry approval"})]}),he&&(0,Ly.jsx)(Rr,{color:"danger",children:"The approval was not submitted. Check your wallet and try again."}),I?(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("span",{style:{color:"rgb(255, 141, 85)"},children:N>0n?"You don't have enough allowance set, please increase allowance.":"The bridge is not allowed to spend your DEFX yet, please approve spending."}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("button",{className:"btn btn-primary w-md",type:"button",disabled:!$()||!de||le||fe,onClick:()=>{$()&&(null===de||void 0===de||de())},children:fe?"Approving...":le?"Checking approval\u2026":"Approve entered amount"}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{})]})}):"",(0,Ly.jsx)("div",{children:(0,Ly.jsx)("button",{type:"submit",className:"btn btn-primary w-md",disabled:!J||Z||!q()||ee,children:Z?"Bridging...":"Bridge (1/2)"})})]}),(0,Ly.jsx)("div",{children:ee&&(0,Ly.jsxs)("div",{children:["You've successfully submitted tx 1/2, please switch to ",1==h.id?"BNB Smart Chain":"Ethereum"," for transaction 2/2.\xa0\xa0\xa0",(0,Ly.jsxs)("button",{type:"button",className:"btn btn-primary w-md",onClick:()=>{1==h.id?null===g||void 0===g||g(56):null===g||void 0===g||g(1)},children:["Switch to ",1==h.id?"BNB Smart Chain":"Ethereum"]})]})})]})})})]})]}):(0,Ly.jsxs)(Rr,{color:w?"danger":"info",children:[w||"Loading bridge data\u2026"," ",w&&(0,Ly.jsx)("button",{type:"button",className:"btn btn-primary",onClick:()=>E((e=>e+1)),children:"Retry"})]}):(0,Ly.jsx)(Rr,{color:"warning",children:"Please switch to Ethereum or BNB Smart Chain."})}n(87252),n(73207);const dB=ds()((e=>{const[t,n]=(0,r.useState)(!1);return document.title="DEFX Token Bridge | Bridge your DEFX between chains",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Token Bridge"})})})}),function(){const{address:e,connector:t,isConnected:n}=Um(),{connect:i,connectors:a,error:o,pendingConnector:s}=(J(),Wm()),{disconnect:l}=Gm(),{chain:c}=Ym(),{chains:u,pendingChainId:d,switchNetwork:h}=Xm({chains:[ml,ey],onSuccess(e){n&&On(null===c||void 0===c?void 0:c.id)}}),[f,p]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/bridgestatus").then((e=>e.json())).then((e=>{"online"==e.status?p(!0):p(!1)})).catch((e=>p(!1)))})(),n&&On(null===c||void 0===c?void 0:c.id)}),[n,f]),n&&!On(null===c||void 0===c?void 0:c.id)?(0,Ly.jsx)(Rr,{color:"warning",children:"Please switch your wallet to Ethereum or BNB Smart Chain to use this feature."}):n&&f?(0,Ly.jsx)(uB,{},`${e}:${null===c||void 0===c?void 0:c.id}`):f?(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsx)(ui,{children:(0,Ly.jsx)(mi,{className:"mb-12",children:"Connect your wallet to access bridge functionality."})})})}):(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsx)(ui,{children:(0,Ly.jsx)(mi,{className:"mb-12",children:"The DEFX bridge is currently unavailable, please try again later."})})})})}()]})})})})),hB=ds()((e=>{const[t,n]=(0,r.useState)(!1);return document.title="DEFX Guides | How-to's",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsx)(ki,{fluid:!0,children:(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Guides"})})})})})})})})),fB=ds()((e=>{const[t,n]=(0,r.useState)(!1);return document.title="DEFX Links | Useful links",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{md:12,children:(0,Ly.jsx)("h6",{className:"page-title",children:"Links"})})})}),(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{className:"col-6",children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(u
2i,{children:[(0,Ly.jsx)(mi,{className:"h4",children:"DEFX token links"}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("p",{style:{marginTop:10,marginBottom:-10},children:"UniSwap"}),(0,Ly.jsx)("a",{href:"https://app.uniswap.org/#/swap?inputCurrency=eth&outputCurrency=0x5f474906637bdcda05f29c74653f6962bb0f8eda&chain=mainnet",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"Buy DEFX on UniSwap"})}),(0,Ly.jsx)("p",{style:{marginTop:10,marginBottom:-10},children:"PancakeSwap"}),(0,Ly.jsx)("a",{href:"https://pancakeswap.finance/swap?inputCurrency=0x55d398326f99059fF775485246999027B3197955&outputCurrency=0xbe4cb2c354480042a39350a0c6c26bf54786539f",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"Buy DEFX on PancakeSwap"})}),(0,Ly.jsx)("p",{style:{marginTop:10,marginBottom:-10},children:"Explorers"}),(0,Ly.jsx)("a",{href:"https://etherscan.io/token/0x5F474906637bdCDA05f29C74653F6962bb0f8eDa",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"Etherscan"})}),(0,Ly.jsx)("a",{href:"https://bscscan.com/token/0xbe4cb2c354480042a39350a0c6c26bf54786539f",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"BSCScan"})}),(0,Ly.jsx)("p",{style:{marginTop:10,marginBottom:-10},children:"Price Charts"}),(0,Ly.jsx)("a",{href:"https://www.dextools.io/app/en/ether/pair-explorer/0xbdee9c999b7f1a07bf62c2006a5cfb3dd40b1776",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"Ethereum"})}),(0,Ly.jsx)("a",{href:"https://www.dextools.io/app/en/bnb/pair-explorer/0x484deb91c37f96f7cac623bf787cc96ee0b51309",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"BNB Smart Chain"})})]})]})})}),(0,Ly.jsx)(Jr,{className:"col-6",children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)(mi,{className:"h4",children:"Definity general links"}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("p",{style:{marginTop:10,marginBottom:-10},children:"Website"}),(0,Ly.jsx)("a",{href:"https://www.definitymarkets.com/",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"Visit site"})})]}),(0,Ly.jsxs)("div",{children:[(0,Ly.jsx)("p",{style:{marginTop:10,marginBottom:-10},children:"Socials"}),(0,Ly.jsx)("a",{href:"https://medium.com/definity-network",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"Medium"})}),(0,Ly.jsx)("a",{href:"https://www.linkedin.com/company/definitymarkets/",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"LinkedIn"})}),(0,Ly.jsx)("a",{href:"https://twitter.com/definitynetwork",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",style:{marginRight:10,marginTop:10},children:"Twitter"})})]})]})]})})})]})]})})})}));n.p,n.p;n(58650);var pB=n(39452);r.Component;r.Component;n(66814);r.Component;r.Component;r.Component;var gB=n(60780);const mB=e=>{const t=[{label:"Tx hash",field:"txhash",sort:"disabled",fixed:!0},{label:"From",field:"address",sort:"disabled"},{label:"Bought DEFX",field:"buyamount",sort:"disabled"}],[n,i]=(0,r.useState)([],!1);return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getBuybacks").then((e=>e.json())).then((e=>{const n=[];e.data.forEach((e=>{n.push({txhash:(0,Ly.jsx)("a",{href:"https://etherscan.io/tx/"+e.tx_hash,target:"_blank",children:e.tx_hash.slice(0,10)+"....."+e.tx_hash.slice(-6)}),address:e.address.slice(0,10)+"....."+e.address.slice(-6),buyamount:parseFloat(En(e.amount,"ether")).toLocaleString("en-US",{maximumFractionDigits:0})})})),i({columns:t,rows:n})}))})()}),[]),(0,Ly.jsx)(r.Fragment,{children:0==n.length?(0,Ly.jsx)(lL,{bordered:!0,noBottomColumns:!0,striped:!0,data:{columns:t,rows:[{address:"Loading..."}]},scrollX:!0,paging:!0,entries:10,searching:!1,hover:!0}):(0,Ly.jsx)(lL,{bordered:!0,noBottomColumns:!0,striped:!0,data:n,paging:!0,entries:10,searching:!1,hover:!0})})},yB=e=>{const t=[{label:"Tx hash",field:"txhash",sort:"disabled",fixed:!0},{label:"From",field:"address",sort:"disabled"},{label:"Burned DEFX",field:"burnedamount",sort:"disabled"}],[n,i]=(0,r.useState)([],!1);return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getBurns").then((e=>e.json())).then((e=>{const n=[];e.data.forEach((e=>{n.push({txhash:(0,Ly.jsx)("a",{href:"https://etherscan.io/tx/"+e.tx_hash,target:"_blank",children:e.tx_hash.slice(0,10)+"....."+e.tx_hash.slice(-6)}),address:e.from.slice(0,10)+"....."+e.from.slice(-6),burnedamount:parseFloat(En(e.amount,"ether")).toLocaleStr
2ing("en-US",{maximumFractionDigits:0})})})),i({columns:t,rows:n})}))})()}),[]),(0,Ly.jsx)(r.Fragment,{children:0==n.length?(0,Ly.jsx)(lL,{bordered:!0,noBottomColumns:!0,striped:!0,data:{columns:t,rows:[{address:"Loading..."}]},scrollX:!0,paging:!0,entries:10,searching:!1,hover:!0}):(0,Ly.jsx)(lL,{bordered:!0,noBottomColumns:!0,striped:!0,data:n,paging:!0,entries:10,searching:!1,hover:!0})})},bB=e=>{const[t,n]=(0,r.useState)({}),[i,a]=(0,r.useState)({});return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getPriceData?interval=d&amnt=14").then((e=>e.json())).then((e=>{let t=[];t=e.data.comb;for(var r=0;r<t.length;r++)t[r]=t[r].toFixed(5);let i=t.reduce(((e,t)=>Math.min(e,t)),1/0),o=t.reduce(((e,t)=>Math.max(e,t)),-1/0);const s={labels:["-14d","-13d","-12d","-11d","-10d","-9d","-8d","-7d","-6d","-5d","-4d","-3d","-1d","now"],datasets:[{label:"DEFX Price",fill:!0,lineTension:.2,backgroundColor:"rgba(60, 76, 207, 0.2)",borderColor:"#3c4ccf",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"#3c4ccf",pointBackgroun
2dColor:"#fff",pointBorderWidth:8,pointHoverRadius:8,pointHoverBackgroundColor:"#3c4ccf",pointHoverBorderColor:"#fff",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:t}]};n({scales:{yAxes:[{ticks:{max:1.1*o,min:.9*i,stepSize:(1.1*o-.9*i)/5,fontColor:"#e9ecef"}}],xAxes:[{ticks:{fontColor:"#e9ecef"}}]}}),a(s)}))})()}),[]),(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{xs:12,lg:12,xl:12,children:(0,Ly.jsx)(gB.N1,{width:600,height:320,data:i,options:t})}),(0,Ly.jsxs)(Jr,{xl:12,className:"d-flex align-items-center",style:{marginTop:10},children:[(0,Ly.jsx)("br",{}),(0,Ly.jsx)("br",{}),(0,Ly.jsx)("strong",{children:"Keep this chart up!"}),"\xa0\xa0\xa0\xa0",(0,Ly.jsx)("a",{className:"card-link",href:"https://app.uniswap.org/#/swap?inputCurrency=eth&outputCurrency=0x5f474906637bdcda05f29c74653f6962bb0f8eda&chain=mainnet",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",children:"Buy DEFX on UniSwap"})}),(0,Ly.jsx)("a",{className:"card-link",href:"https://pancakeswap.finance/swap?inputCurrency=0x55d398326f99059fF775485246999027B3197955&outputCurrency=0xbe4cb2c354480042a39350a0c6c26bf54786539f",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",children:"Buy DEFX on PancakeSwap"})}),(0,Ly.jsx)("a",{className:"card-link",href:"https://www.mexc.com/exchange/DEFX_USDT",target:"_blank",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",children:"Buy DEFX on MEXC"})})]})]})})},vB=e=>{const t=[{label:"Address",field:"address",sort:"disabled",fixed:!0},{label:"Total Balance",field:"totalbalance",sort:"disabled"},{label:"Chain(s)",field:"chain",sort:"disabled"}],[n,i]=(0,r.useState)([],!1);return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getTopHolders?chain=both&amount=9").then((e=>e.json())).then((e=>{const n=[];e.data.forEach((e=>{n.push({address:"null"!=e.addr_eth?e.addr_eth.slice(0,10)+"....."+e.addr_eth.slice(-6):e.addr_bsc.slice(0,10)+"....."+e.addr_bsc.slice(-6),totalbalance:parseFloat(En(e.total_balance,"ether")).toLocaleString("en-US",{maximumFractionDigits:0}),chain:e.addr_eth==e.addr_bsc?"ETH + BSC":"null"!=e.addr_eth?"ETH":"BSC"})})),i({columns:t,rows:n})}))})()}),[]),(0,Ly.jsx)(r.Fragment,{children:0==n.length?(0,Ly.jsx)(lL,{bordered:!0,noBottomColumns:!0,striped:!0,data:{columns:t,rows:[{address:"Loading..."}]},scrollX:!0,paging:!1,searching:!1}):(0,Ly.jsx)(lL,{bordered:!0,noBottomColumns:!0,striped:!0,data:n,paging:!1,searching:!1})})},xB=e=>{n(73207),n(51915);const[t,i]=(0,r.useState)(!1),[a,o]=(0,r.useState)(!1),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[d,h]=(0,r.useState)(0),[f,p]=(0,r.useState)(!1),[g,m]=(0,r.useState)(!1),[y,b]=(0,r.useState)(!1),[v,x]=(0,r.useState)([]);return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getPriceData?interval=d&amnt=2").then((e=>e.json())).then((e=>{let t=e.data.uni[1],n=e.data.pcs[1],r=e.data.comb[1],a=171516755*r,s=(e.data.comb[1]-e.data.comb[0])/e.data.comb[0]*100;i(t.toLocaleString("en-US",{maximumFractionDigits:5})),o(n.toLocaleString("en-US",{maximumFractionDigits:5})),l(r.toLocaleString("en-US",{maximumFractionDigits:5})),u(a.toLocaleString("en-US",{maximumFractionDigits:2})),h(s.toFixed(1))}))})(),(async()=>{fetch("https://defxstats.com:3001/getHolderCount?minbalance=10").then((e=>e.json())).then((e=>{p(e.data.both),m(e.data.eth),b(e.data.bsc)}))})(),(async()=>{fetch("https://defxstats.com:3001/getSupply").then((e=>e.json())).then((e=>{x(e.data)}))})()}),[]),(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)(Jr,{xl:3,md:6,children:(0,Ly.jsx)(ii,{className:"mini-stat bg-primary text-white",children:(0,Ly.jsx)(ui,{children:(0,Ly.jsxs)("div",{className:"mb-4",children:[(0,Ly.jsx)("div",{className:"float-start mini-stat-img me-4",children:(0,Ly.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAYAAACO98lFAAAACXBIWXMAAAsSAAALEgHS3X78AAAO9ElEQVR42u2be1hUZf7AP2dmGBiugqACDjEooVmLKEnaxSvys0zwWlu7imiiZgmmZbu4SEt52VWwm7ciLP1ZiiLq2hKgkq2lmXnZVQljMLyVPHKVO3N+f8zMgZG5IGLb8/x4n+c8DO953zPnfM73/d7e7wiiKPL/vcnoal0QuiB0QeiC0AXh9qa4lxcXBGEgMAIYCPgb/rrdNqwCOAUUG/4eFkXx1K9KQRTFTj0MD5oOlANiB49iIBXw7+z7M3cIneUsCYIwAlgODDf2eXt7M3b4IIL8VAzwt6efWkFgj1qTeeevu1GFMycuihT+VMXevYfQaotaD8kHlouiePieSezdQhAEwd/w5qWHnxcdye80csL6VOPTQ0UPN/v2XUyuQPD0Ie+cO/uyi1i37sPWZ7cAcaIolv+mIAiCEAektH74J0NFerrU4uulwru7g9l5x7Xu9PO5hat9g2UYPdRca+jF+x8Vkvzm+3oFprCrampqnC6K4p7/OgRBELoZ3n4kwJTIscwId8DTqQYXRwV9fJ2xt2treFbvc2Zpcpr0/5SJTzInUs2Y/mXmv8fJDdSBFGgVJCTnk5GRJUmFKIrR/zUIBgCHgWCAN5dMZtQDFQD09HDAv5ej2XmZJ92ZPG+j/uEnTSBj914ANJoAvt8yzLpUBDwIKife33yNF19e2VpXRHXG8pB1FIC3tzc71kZJADS+ThYBAFy72QzAyqR4dq4KRyx8h4UvxqDVFrH1iIPlL21uQiw8BWU3mP+CN5k730CjCcCggw4b7unXgXA7gHVLwlC7V0sAbCm/kxf0Iu/sqJT6Av292m/KS36AshtEjXfj88wFRhDBhmX5q0lCqjkAvp53oP2B0P6eHfdpSn6A6gqCguR8nrnA2B0pCELqPYdgsAIzAFYsHCoBcHdR0ruHyub8ynolldW1Fs9X1+raD+LSBWioJyhITubON4zdCw1+yr2BIAiCv0wmSwJIeHkyQT0r9fpKJtDH18nmw6/e50zIjKNkZB6wOG5pcho
2Rf/qZ93Ndbd9xcxOUFAIQNd6NlSviAVCpVFs7qh9sWgdBEPYAkVMix/JKVMsbC1Q74+GitDjv/HU34t7+gZy8fMkijBjanwmP9kLtpQ9ZjhXUsf/LIrbtzJa8xPDRw0l9+X7696qwfl/eGvDyoaoSJv8hi5ycgwBJoigu71QIBhE7BLBjbZS0DFwcFTzgb/mtXS53Zvjcw2i1RYSPGcVf48YRFuRg9UZ2f3WTDdvyyck9SPjo4WS/1dO2d9kvFORyvv2uniGPvWo8oxFFsbgzl0Oc0RM0AgDo3cPR6qTlWyvQaov0/sCaKJsAACY95kHGmiimTJpATl6+7aXR3ASlVwF4eLA9MTHPmdxzp0AwxASRAE+GtkiLi6MCV0fLEfhxrTtpn+xCowlg7eKRuDoK7b4ZV0eB2GeHApB1sNC2kjRAAHh8WID+gWSyeYIgrBQEYXl7laW1fEKU0SX2dKqROj3drZvD/cf1ViA2OlJa+8Z2rqSBfUcuk3fkNG6uzoQG9+G5cD+Tcdv/cQaAsOD7gDqb0vBx+iX+umYfFy/qoel0OiXwmmFEop2dsqqpqXEtkGrJu7QGIRpg2EMuhryHvnW3ogwBjp2+BMCIwT6mlqJGZPys90zC5IzdsDQRtryXQNRjPYhf+zVpW7aj0QQwJ8J2vueZVdXs3L1W+r9v30AeGvoo3Xv5YifIuXDyGIdys12ARJVKNVsQhPHmEjZmFaPB1JQB5G0ch6OyUfIL7lc7W19fYTv0olr4jkn/e3sus2DJKmL+OJlXpnhQVStj++FK1m3Y3uYau9bHMnFQmdXvGf+XUg5kHwRgZMQ4fKZHc8bHVzr/sKMHj3QPoLrge/alLOdQbrYxCn3idhCWcI8AGDd2uAQAwNFe3mGv7PoNvX8xqJ+7ZP6GaOCJ4Fi2f1FCRuYBNJoA/v5quE0Ai9LlEoDnX3mVM+MnUHrbmG9rbgLwSFAIz67dhkvSfPbu2uGiUNh9KQiCX+ulYUkSlgOJi2InMvWRKqm/v7+rVaUI0OfZE2i1Rfx0NMVkrZfcaMJvWLzkC4we2odBfe0YEmAlr2CmXSl34r5xW9DpdEybO5/zzzxndXzE8eM0l1fQN3ImGQmxHMrNbuNPWLIOAwF6e5mednKwLQkjHwvRv4mCSpN+tZeCXR8lodEEkJOXz9LkNMZGb6TbE1uZtrKa1fucuVzubPP6a/bUodPp8PT0sgkgZG8GF785REnhWb7d9CZPxy83JmcWtcdEdgPwcDaVErnMtrl7IqQ7ABu25VNZI7bxBYq+iCdnxwpWJsUTM+P3egWZeYClyWn4RaQx+91mzl93s2x9ck7o3/CMmTYBVBRf5KX4B4mNHUn+oTycg0IYOSaCpqZGF0EQou44imwPAICo0Br92849yN+2nTc7ZkyIM689F8CHCcOoOP02OTtWsPDFGADSPtnFgMjN5J53NzvXaAoZNFhvSn8sIDBtA2E/FrQB8HL8Q5SXw5w5KcxLWgNA8OOjTaT9jiA4OrRPKbraN7AxMRyA5NXrmZV8lJIbTVYdpDEhzqTGhfDT0RSmTJqg9zOScqwujzM+vgRfLuGD2bPw87Lng9mzCPv36TYAFi/8jKeXvE63YeMAsHd07ng+oVnX/jTcmP5l7Fofi0YTQNqW7fgNi2dW8lF2f3XTKhC1l4IPE8cwZdIEtNoiNmU3Wff0yssZNXokT0f14J31i8lbu4am0qsmAEYveoWbIWGdk1SpqWu+I5M4cVAZ+RtGsHCuft2nbdnO5JmJ+A2LZ+y8TJZtPkfu99VmJWNxzON6SVr7cZvzKpU+fxF64jiXAwOxd3Hn7ZSzPDDAjq2fTeXFlzQmAI49GEx3ZUvO45fii8aP5R3KMXakzRnnzE/ZMaSvnUPMHycDkJN7kOTV6wmf9jpj52VyrsTURIYFORA+ZpQUi5hYnyf0scXVo0f52d6BxrnzaRCVvJ1ylro6Gdevy0wAAPRWeegduJpqDh+QsvWHbUE4BXDxqqkyvFXfPmk4rnVn9rvN+EWkMSByM4s2XOfhPiIfLJCjOzaNbz6NZWVCjKRA4976R9ul4Ws+lJ4W0VcPMms3v7t6pQ2I2wEEKZ1xU+qTP0XZO4xu++nWXqMlCMUAJb+YBjD1DbYhZJ5055FnN0qRpEYTQEbmAcbH5Ummb4imjFefrmZ/6mhJMtrbpj9aTt++geh0OrIXLiCgqkIC4TFsFI++8aYEwFkmJ8xdrU/hFXzPqiXzpWi/PTrhFMC/C6+YBkG3rCuqy+XOLF6dA0DCq/M4tSeOU3viJEU3IHIzf/nMgcp6fRB2paxjq3Hd0lHIZDJKS2/wr5hoCcSJ0CGc7q1uWTpuvXFTOvHzkQO8s+D51hs3e9qVWZLL5RU6nc61dUbJ3k7GwEDLabyP/9WN6EWbCB8ziow1UVIuobJGZFZSrsmGCyBFlCuT4nntuQCTawWMTUGrLeI/WS+YTbV9ftadp+dsRqfTIZPJCI+chHdEBN8F9aenXEmEUy/EHy9w8sBOPk3fbJyWJYpiVLtDaZ1OdwiI/KZAQP2IYTk06rhV34yThUDKx0Mw0fKtP3+YOIbQ4D4sTUwxCadXJsUzL0pjGo4X1KHVFqHRBFjMNY57qIx9m15g4cqDXLxYSHZmBmRmAHAWyG07xWL+0aIkGNzKzMGDB/Lugpa9AmtbbQARf/qZnLx8tryXwPSx5pXbsYI6XBxlPKA2n5uY+loOGbv3krBoOm88Yz2xIgQOJPWjMtLSszl79sztp08brECqtbyjxUUpiuIehcKu5LvvTvH1jy2+fGl5vVXH6fmnggCY8WIyu7+6aXZMWJCDRQDLNp8jY/deNJoAFkdZ348QnNxA5UTc/N7MfeFJ6cFFURQMx0BRFONsJV6taqampsY0gG2f/2jiOV4rrbOqvRMWTQdg8sxElm0+1yaQMtfOlTQw9bUcklevB2BjYrjtELunXglWVcLfU3a03inr1JR7N5lMdkmn07m23n2WywRC7u9mNahqvQ2v0QQQGx3J4P49GBLkJOmLkhtNfFtQyZcnLrHuvZax21eEM0RTZlsK+jwIwKrUYpa+ngJwSRRF/3ux+RIHpHh7e7Ppzw9LSVdPN3ubO1DHte4s23xB2oAB+Gb/36QUvDHlZmwJi6YzJ0JB727Vtm+8Xygo7SkoaKbfQCk9MLIjZT02DbUoiqlA/rVr13h/b4umLq2o52aVdXEdoikj+62efPNpLOGjh1sct3Du7/kpO4Y3nqlrHwBvDSjtqaqEl5bsb23+7hjAncQO0TKZrPLzL/L5OL/l7RdduUV9o+3N1CGaMtQ+lnejA9VO7Xp4AMHVA7z0mexlb50hJ+cgKpXqijE7fs8giKJYrNPpZgCsT8+SQDTrRH4oqbqjMPvKjZoOB2OCgxOo79cDSC5g3boPUalUt2pra8ffTcVKu/1Wg6s583YQNXXNnCuutAnCx0s//lppC4TqmoY7A9DnIZDLWZZcIBVz1dbWLrjb4s87qmgVRTFdEASAj9anZwGRTBnaADRyrriSB/xdLVqMXt31fsHhr88T2t+Tqpom8o6cBsDbQ94uAFW35MS9foy0tP81npopimL63Yb7Ha1eiwY+Mu5NzPwfd9Tu1chlAv01rmbd6sp6JbNTbrapU5gy8Uk+iPew6BMI7j1AHci339Xz56R/GnXALYME3DWADkMwgBghk8mydDqdK8Ci2Ik8NagOR2Ujvp4qsxUslfVKth5x4OSFMlyclASqnfjD43XmAcgVCL0DqRI8WP12i/gDl9BXrXVa/fPdFnOa1DN6e3sza+owwu5vxLdbHX69HK0Wcli8bk8/rjZ488muy2zclNU64FqHvsS3U6taO6W22bAFng7cZ+yb8exTBPd1IPg+kQH3Ndsu7pIruKrz47jWnv3Zha3XPdzj+mahM38NZ9AV0bSqcwYYPHggAeqeDAzyQKlUoLSzQy6XgUwBCgUnz5VScvkXY8lN65ZliADvycPfEwitYPijr2+Iuh1IO1o+sAfYc6dlN78pCBaWi7/hsJTOK/7Vf+zxa0L4rbeu30B1QeiC0AWhC0IXhC4IZtv/AefafrgQSH0cAAAAAElFTkSuQmCC",alt:""})}),(0,Ly.jsx)("h5",{className:"font-size-16 text-uppercase mt-0 text-white-50",children:"Current Price"}),(0,Ly.jsxs)("h4",{className:"fw-medium font-size-24",children:["$",s]}),(0,Ly.jsxs)("h4",{className:"fw-medium font-size-16",children:["Eth: $",t," | Bsc: $",a]}),d>=0?(0,Ly.jsx)("div",{className:"mini-stat-label bg-success",children:(0,Ly.jsxs)("p",{className:"mb-0",children:["+",d,"%"]})}):(0,Ly.jsx)("div",{className:"mini-stat-label bg-danger",children:(0,Ly.jsxs)("p",{className:"mb-0",children:[d,"%"]})})]})})})}),(0,Ly.jsx)(Jr,{xl:3,md:6,children:(0,Ly.jsx)(ii,{className:"mini-stat bg-primary text-white",children:(0,Ly.jsx)(ui,{children:(0,Ly.jsxs)("div",{className:"mb-4",children:[(0,Ly.jsx)("div",{className:"float-start mini-stat-img me-4",children:(0,Ly.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAYAAACO98lFAAAACXBIWXMAAAsSAAALEgHS3X78AAAH/klEQVR42u2ce3BU1RnAf+fuexOym4SFxCaEjUlQAYmo9dFSgxDCgBDAFv/QSYKKM7Q6TSlFiQh1cDpMJwJWxI4MBWFiNQrh7YQKBhnQysMHg0UIMTECxkyyySabzXNv/7i7
2a16bbN4h7DdzZ+6ec/fce37n+77zne+eXSHLMje7SAQkAGHIIAghEoUQO4QQshCiWAiROZQQxGD7BCFEoiRJx10uV0i7qn1AhizLVSNaE4QQSR4ASbPn8I+zV/l77hGs1liAVKBACGEesRCEEBnAxy6XK2RG6kIcj8xnz/8+xTD5fv60bZ8HxJShADEo5uAGsB1gbvqTXHzwV9666CATj949C/l6CRufSuW774oAvgKSBss0pKEEAFDqqGb32SOIyJgh04gB1YTuALSW6CAT8xOno/7p2qBrhDQcAAhJotwUxPsVl2iIuKWNRpjN5lNCiMQbThOEEH8F1voDQBMcjCYiEiRlPIIlFYssCRir7eRnP8/+3bmo1Zqa5uam38iy/OUNAUEIsQNIB5j/XCYXJk32OfpayxhUJlOHOg+IkGaZQy//fsBB9CuE1gDmrVrNN+OtnV4XVd9AdEU5DWVlNDocBFlGo42N44f4eMp0+kEH0W8Q/AEQ1tRE5Bfn2L/trU7bsFpjeWj5Xzjr1p7BAtEvEPwFYDywj+P5HwLwzLI0Jt85htAwFUWFdRQcO8+xowUApGWt5ovk2V4Q88JvJdwlDRiIPkPw1wQmfFLA4ZxdWK2xrFv/O6xWOH9eZts/j7HpjRkAHP1PHWtefB2A9K3bORcX7/3+vNAYYiSDF4TBYHA4nc5nZVneMWRTpBDCLITY6w+AOKeTwzm7AMh+7TGs7svyD33D6dNn2J1bCcCMZCOrVi8DoOjfOW3aOGArocTlZO7aLSxbuQan0xkEbHdPxYMPwR3JFQCpkZGRpLyy3icAIUmMKbsOQObyp4iIcCkw1l8gb89BADZkb6WqWnmUmbPMWK2xnDj2ERPLyzsFcdczWSxbucZT3GcQUh8ATImMjOSOzBUUWiw+rzdEj8Ne+gMAk6aM9pY7HPUAPJ62mJde/gNmkwJHr3eRPPvXynnZjx3aO2Arobi2vF9BSH0FUGz2Hd5rLRbQ6byf9fqf6xYtnorBYCBnZy7r1r7ByZONP0+hUUrsINsqO223v0FIAwVAExyMOjSsTZmtssV7fuJ4MZMmTWRWykwArlyq8NZ9e7FMuWe777cHcaG6tF9ASAMBQEiSEgq7xZyQAMBnp773ltXV1nH69BmO5H+EJEkkPXyLAsomyNmVC0DVuHFdPtcxexmfVRR1BmJTv0IQQiSq1Zqv/QUAoAkP964FAKqnKOufnF25nDuraMOKFyayfMVSZVTzn2dcjDJV7997DYDUJ9K5EmLqtgOn6yq9INZt3+Mp/qN76u47BE8+sLm5KXpacgpxK7O6BaDS6TqYwZUQE2lZqwF4blk2p9z2f+994TyethizyUV9vcTb26/z1ps7FYc6f4HfI+kBMXbanNYg0v0F4TNYap0QnZacQn3qQio1mm4bNERFI4zGTusm78/jnY2vAvDwjCTue+B2DAY1lRV17Mv72JNDIOP1N72hc0/kXmMY94fHUnbiMC8tWeQpfluW5YweQ+gtALXBgDa6azu+58znFGzZ7O1wa0l9Ip1RKbP5Kiq613N+b0B0CkGj0X7vMQF/AXSnBe1lauFluK7Yv2Qw4IyxcqGLeKMnMkEbzHRLPJUn81uDWOIrxO4AQQixAMibMvUetE8+7TcAlU6HLmY8w0UmaIOZNfY2r0aEhYX9WFFREemvY0wEiEhI8BsAgNocynCSbxtrqW50YIpRFmGVlZURvtJ06k7KqgDy332HuTo9zfEJft10tF6PpqQY0djQoU7W6mgOC+tRJ1S1tUi1Nb1uSy0EzT852PKCsiBTqzU1TU2NnS+9ZVlucwBm4EtAHmFHRvu+eg5fs4MZyACS3FA88hA3hlS50/W4B3SvLMsF/ZJUEULIADvWL2pTHh8zGpUQZL9Xygd5h9m0dSvRsTGUFpWQuXQpv104hxWP9WzaO/i5k1c27OTPq7J4cGZS123p9EiWX3Dxcg1pS9YBHJdlOclvf9YrzzvW7j0fZVRzx3jl3UhIsAGA6NgY4u+83XtNSLCBX1ptPbrHmSvKS+vwsZZu2xJBJrhVN/iZJe9DGTXc6NJnCEaDKgBBpw1AIEh3k0PQaUbGvq8+9UIbgDBypI/moApACPiEgDko0tDkCkBoaGoJQAiYA9DikgMQ6uoD5jBinGOXSZVWabY2795e3Se1Wko3oVYrQdMnn54H4G8rX8QcGkqVzeYu/5qn6dkbpdJrlwH41+YtHD34YddtCRuo/4vd7vCUjHfvpQQo7nZLj6/kIyMr4brDVz99JlrdWpAJbARY/mwaRr2Gi0VlHVVJpcIYpLx1Ki+vor6hY8pdr9NhsfRsr7bdXke1vaYXbQlGmcYQl3AbhZcv8dqmDZ6Ku3ztduvKHMweAIunRwDwyAPhnV5498Qo1CoxjDydDsYtBrWJq1ev8sH779HepHvkGI367nOI9tr64eXpXA3IjdUAhISEDE6wZLM7AxGjze6kuUW+uSG0tLiwVdeNXAh19U1+NVRucwzLDtrt9j4FS1UAGzbvBNL8cpBhZx1otZphMbay4RCFhYWemcHbn0Cw1NNgqVXQtAD3xo0bVPZ295MAEfjrgEBSBYD/A3NZTewpa42bAAAAAElFTkSuQmCC",alt:""})}),(0,Ly.jsx)("h5",{className:"font-size-16 text-uppercase mt-0 text-white-50",children:"Market Cap"}),(0,Ly.jsxs)("h4",{className:"fw-medium font-size-24",children:["$",s&&v.circulating?parseFloat(v.circulating*s).toLocaleString("en-US",{maximumFractionDigits:0}):"..."]}),(0,Ly.jsxs)("h4",{className:"fw-medium font-size-16",children:["Fully diluted MC: $",s&&v.total_supply?parseFloat(v.total_supply*s).toLocaleString("en-US",{maximumFractionDigits:0}):"..."]})]})})})}),(0,Ly.jsx)(Jr,{xl:3,md:6,children:(0,Ly.jsx)(ii,{className:"mini-stat bg-primary text-white",children:(0,Ly.jsx)(ui,{children:(0,Ly.jsxs)("div",{className:"mb-4",children:[(0,Ly.jsx)("div",{className:"float-start mini-stat-img me-4",children:(0,Ly.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAYAAACO98lFAAAACXBIWXMAAAsSAAALEgHS3X78AAALE0lEQVR42u2be1hUZR7HP2dmYBghUGMCvDJo4Z2LFyofQhHE1BTXtbW84GXTxzY3Mi+bdqFMe8pLuK6yW0/eSUNdydo2UhFEny1TghKJvKCJ4oVNwAFGbmf/GGbgOAeZGQbkeZb3ec7DnN95ec+Z7/n+ru9vBFEU+X8fCtpHOwjtILQECIIgxCqVyhJBEMQWOuIFQejocBREUXTIAcQBYiscyY56ZtMhOMI71L2d2wATXl1KzmP+FnPUXt4oPTysWk/npGG8d3+JTJ/3A4vGPWE6DRJFMautqUMgQGhklCwAAAonJ6sXy6+qoMhQKpG5+QexYOmbptPoNmsTnDt0aFED5q71bvcObd07FAMUXbnS6ISauwabFnRSKC1kNy+dl9yvTYEgimKWQqEozc48Re9bt2TnVN+2/rm9lM54OLtKZFW3Ctm6ab3pNK1NqkNtbe2HAD9u2kCX8nLL69VVVF0vtGqt8M6+UpDL9aSsXWY6TXekZ3C0TYgHsgsLCzn/wWr6Xcq3mFBVWmoEorb2vgvpq+/W61nmMf719osc3J+ESuV0B3hDEIQRbS5YqguU0lopWBIBUaPRFACBDnl+BwCwrTW/PCAGBASKgOjq6loGRD/QiFEQhGjgAMCqFfN5or87HdSCNIrq0wW1s7JZbJ373im2bNmORqPhbOpJunk+QtzHf2XVB6vQaDRXy8vLuz1ImxAIsOilmYwK9rAAwNlZ1WwAAA4e/AqAJbFL6Ob5CABxL/yZyIjRVFRUdBUEIa7NBkuVldVU1zQvNzl1zkBRkdHtzp4wRXJt3vOzAVCpnBY1J7tsLgiXAHbvP0ReQaXshMvXbjfrBolf5QIwdMhQunm4S65Fh4YTGTGa6uqqh4DYB+YdgKzWMIYvx0wTDcl7xKpzNyTH3i27RUBUqZxKgY72fAdHqMMIYANQ2pKqNbu3DzW5pxDLbjucDYKjqs2CIGwDYgAmLIzltl8vrjXIKpVqNeruPUBhPe59P/uUpL9vZuiQoaRNDjPqbw9/dhcLzBj9jHleckYqU+Y8h0rldKe6uqqHKIrFrW4Y6yK4GIBR768jZ8BACQAAam8fmwAASN23F4CnBw+sD79/zWPRisUkZ6Q6jA2O8g5xJgZc6mhppJ3c3UGttmlBvzslZq8Q1aWzWZ5wXU9xcTEbtiQ4zFMoHMSCMB8fHwr9+8inxZ0627yuW3o6AJ6eWgKd6+VHzpwD4PjxYw5jg8JRLBgyIZrfZEpoKo3GZhYA5NaBMG3caIk85ehR8+d72RAX+xcANBrNH1sNBBMLAIr79JNnwcOedq2dlfk9AM/6+UhUobZBBnovG4b5G4uzdVGkb2sxIQ5gXMwcC0NoYoFgZ93R9GWTLhprENdq4LMTpwEIeTJUwoaTeTkA7Pzmi4bxzyVr76VyBAtKA4NsZkFAQX0p7rpWyw21i+R68JAQMk99x4btiXjMn8Pm/V+YDWXQrDn4PtaHz7Z9zPHjxxg+Ppw5s+ZyNN2sKumtEicIgpAGhI2LmcPPTw6XZYFz9x71JbO7Brr/9CPXTpwgJXm/xfzQ8Ah0jz9OacgTXHD3YHBeLjtenC+hP0B41FimbvrnvfsQDUc2MMKWWMEuEOpYcBQg9MONsqqg6dbdrArB589xbPVK8vMv1lvzSeNxdetAmb6c5ANfSv435p1VZIaGMejaVYr27eXCT9m4d+xM37Awes5YiK+b1hhHvLuQPds+pu5ZDgJp9pTe7AXBahYMPHiATz9cZ3yLo0Yw6fdD6NffCRcX6RvOzYWjh/NJ3JkEwMTpMZRNn2GhJjO9+pqLsPewQWeLHWiWYbTFFgQd+toMwDurFrLyvRCCByvNAFy40CBE7gsvLtSxMWExOp0fn+/ajuuundLYQaGUVKHd/IOYOusF0+ms1kylY63xCAEFV9ix+l0ANiYsZlSkdG56+l1mPvc+6el3pQZxsJK1G/5gBiI4o97GdVVpLO43bMocU2yw2N6agsJGFvgCE61hweWtnwDw2usLCB5sWV2qKK9q9D7e3rUsWvo7ALa/uYJepSUA5FXqKa+WgmZiQ0VFhau9WaStTLAqLgg+f46M1MPodH5EjJa+nAqDwEcJl1n51iYAli+J56OEy1QYBAtGTJvxLADu3/3HLP+x5GqjbLC3wqSwkQUx1rCg6uwZAKZOi7IwgCe/M7B96x6jF5g91fi2t+6h+DfBYr2REToA8r/91iz7vvy3RtnQGlnkfVmgVKvNLvFKdjYA/Qe6W8zLO3sdgDfe/hPzFvRkx+5lfLRlKT5dLDdk+vY1/s1IPYxXg71MOTYEj53SslmkNSxQdexk/pyRetjos3SW8/z7GbfXV761iV07blBQcJcuXRuvSEdPGm+0Ew32OOXY0DH4KUZGRLVoFhkHEDX1eVkWKFROVnehDAtxMatBwt+2sXxJPOOj3iPnjHy84uomn3vIsSF82ny72KCwhQUMGNSILXhYVm4wWC6vcRGZt6An+5JfY/WaWCJHjwLgRMavsmsUXrspK5djg1foWLvYoLCWBaMmTuK8VmsVC6KiJxsNWr6lnn/9bz2zpydTUFBJWJiax4f3afTGBoOC1CNpxoSgW/cWY4PCWhaohoZYzQKvfkaLdia7yOJa0a0yfvklj9iX1hH3+imzqzTZiobjbE6VBNSWYkNTTIi1lQUAlYGDAYhf/wm3b0td3+Rnvc024dA3RwBYvGwew0JcLNY5sO8UAF2GD2/0AfPLbjbKBmtD6aZAiAZwCZD3CEo3V1l5jlbLxOlGM7J710VZm7B6jfElrV4Ty6TJndC4SA3jkUPlpB5JQ6fz48rAQY0+4Em9Jdu8Qsei0/kB9BQEIdBuEOpUoSfAz127yoNwn6qRZkI0Op0fiTuT2LunyKbgJfN0DW+u2AjAU8vfsMgkGw59bQ0llWUW8jFTpktepL1M8DWpQqNAKRr37zlaLWGLlpjVYvPGfIlqDAtxYcfuZRI1MBgUfHmwlIUL1gLw/Cuvktn70SZBu2kosZA1aPdrstZod3nNmnF6wEBmbUwgff0aEncmkbgTYhfNZUCAJzqdQK9exq3G/HzI+am
2UPYkp5sLLzOWv80PkGKvuUynWyBjnoLYBggmIkPfXMehgMp/v2k78+k/uOz80PIKes+fyg4xLtGVUl92xem6TIFTKdKKZK7q1NQhW3CRHq4W5LzB1QjTOWae5cTZXUmcMDY+ge0AATv0GkNn7UZubFF2Vljbjv5fNPY9ZzQEhCyDjUApDJ06S3Vip0etRuD1k9cPmaLUQOQYixzDw5VfM8mKa153ZydnSQDdo/Lxkt2Gsq9ZmA3hfLZCnnF7Pgx5yjZ9iud6mxs+m4oRtAL+mfN2IOtRSU1LyQEEIcrPc27iYkmT6mG1N9blJEEztuv1/yZO3GbduNtmc2ZIs8HXzksiqbhWStHmt6TS+2RGjKIrFtbW1bwF8/+lOfIuLZdlgbbuuo0d4Z19JI7ip/bfOzWaLorjNIVmkKIrxQHphYSFn49fKNnBX6fWtDsQznXri6eIuAeCe9t9Z1q5l1eZLXUqaBgSAsRmj0L+PhcdQqtWou3QFG37lYutwUygZ6dHNvAsFcCPjK1IT/8HRwymmlp2nbNmJsnoHqg6IeFNq7ePjQ/Dop1F6enL3niYMF1dX1B06OPyXMJ7OrnhrOuGsVFFddodruVlkZxzh6OEU05TLGNt8bduKs6NlbwSt1LZn7VHXvheHnS18zdmVDqzL0AKBjjyYkQZkiaKY3JxFhPYfjLf/EKwdhHYQGoz/AajFqoRJGQLTAAAAAElFTkSuQmCC",alt:""})}),(0,Ly.jsx)("h5",{className:"font-size-16 text-uppercase mt-0 text-white-50",children:"Holders"}),(0,Ly.jsx)("h4",{className:"fw-medium font-size-24",children:f}),(0,Ly.jsxs)("h4",{className:"fw-medium font-size-16",children:["Eth: ",g," | Bsc: ",y]})]})})})}),(0,Ly.jsx)(Jr,{xl:3,md:6,children:(0,Ly.jsx)(ii,{className:"mini-stat bg-primary text-white",children:(0,Ly.jsx)(ui,{children:(0,Ly.jsxs)("div",{className:"mb-4",children:[(0,Ly.jsx)("div",{className:"float-start mini-stat-img me-4",children:(0,Ly.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABBCAYAAACO98lFAAAACXBIWXMAAAsSAAALEgHS3X78AAASAUlEQVR42u2beVxV1drHv3sDwmE8IIMKyCA4VOaA2rVbN0McL87zDKIpTijy4jXFEVOJGJzQFBUSNRWHrlYKmV6jNES8YZqikopKisAFZBA4+/0DzoYNpCaavfdtfT7nj7PXs/bwW7/1PL9nDYIkSfx/LyJ/lj9B+BOE3wsEQRBGCIIw+w+NgiRJL+QHvAXcBaSqXxkw+0U9r0Hv+oIAOAFotACIoijVACMXGPFfCwIwu6rHJUCyt28uHTy4X7p5K1Oa6DO5JhAScBxQ/9eAADgCB2t+5HveI6XT8YHS6fhAKevCXikv977kPzdQAYSurl4+sORlgyE0RCwJgqCu6v3FteuaNm3KO291wcHOhvs5BWyN2SXX+fpOovTRI7ZGxwKgUqluFxcXL5QkafvL8IvPDIIgCAOBCMABoP/APrj3aELWXQ1fHb1AcnJKnTYDB3kycEh7+ri7Ym1px4HPLhG16SAJCYlak5PAEkmSTvyhQRAEwRHYDrwD4ObWgb8PaIddcw0AFhZGWFuZcP++Drm5Gu5kFuHsYohaLWBuXv0sUyM19k1cMDOxYP2m7/gobCsZGde11YeqIsnPfygQBEFwAGK0Hw8ww28MbV7TQ09Pg6FhI5o0MaO0tBE/XijB3k6f5g5PvreVugn2zVwpK9EhJCKB4OCwmtWRVczIe+kgCIKwBfACdLTXPozwxkxdgY6OiI2NKeZqFQBpaRJTfUIQRZHZ/j4MGW5R5365uQJ5ecrndmzriKujE79klbBoxX7ZX+jq6hWUl5ctkiQp4qWAIAjCCGAjoAbQ19fHyMiInJwcgld78cqrhlg2NkZHR1C0mzB6P1evpgOQ9P08AC5dgu9P3yXhy29q0l5Rund/l3e6dWTimLe5k1XIgsXba/qLG1VD5ODvBoIgCD8BrQBEUWTwwL4EjHmFqP3XiImLZ1WoH2//zeBXbxy/J4eHD0vp2ceW/XuvEffJHrnOycmZd//2hsK+ZvQAmD9/FvPn9iHxxDXm/k9YTeBOVoFx/vcAQa4Y4Nmb+d6vAxC64yL7DhxmS8w82rR5/M2zskQC/D4lI+M6Tk7OTPEaQL+37XjFvlG99omphZw8e5PgkCgABg3uR9SacRgamBC7K6W284yp8hcNdp5PlUAdOvwl74yOJCW9iKTTlaHP3PzxTUtKqgEYOrg/5w/OZt5o518FIDO7gjvZRSyf/AqnD3+Ik5MzB/b/k7nz95GV8xNTfDpx6qswFi70l0edSqW6IAjCkiq98uKY4ObWgZSUVEXdX97ozEdr3RXXKiokhW/4KqGIRQvWMnRwf6IXe2BqKNR5xvB/JBJ/4J9oNBpEsRLUM4dX08nVgIu3HvGq+9zKofXZfGxtRZo1tqeptSOp57PZGH2stvOc9axi64lMmDKzLQuXeqGvry9f+z45haSkRwq72s7x8k+/VLYf2VUBQGZ2BbEJ94hNuMfe+EMADBsyAI1Gg7NzCzq5VvqZV+wbsTDQF4Af0wqpqCjn1r0M/n35OxwcK4iOmkDi0S306OFBeXmZCbBNEIS8Z0nbn2o4NHfQsHbTCPoN6I0oimg0GgLnhLM0KIW8/zz+FiaGuor/Ww6lM2Hacj797Iz88T/fvEvMhiAil3kpbI2N6jre0rISrmZe5PxP39KpkxnHjsxn2bJ52mozIFwQhFxBEN56IZMq/QZZE7ZuAr37eABw7Ggi/XqtJnbb3XqAawzAri8u1Xuvz788JjPBsXlTxvewpm9nU7k+v0hi0/bK+mZ2hnXaF5UU8uO1s1y6lopaXVmvVsuuQQ2cEgQhtUrkNQyEpQu+IvtetZmhYQVjvR0JXjUDCwsLNBoNm6JimTB6P2lp1f7lr2+bVUq+9VsJ2nxRvn4xPZO+vXsSsyGI8A8COLJzBXtWeSiemV8k4bM0kYyM67h37/bYKJRbcJ8Ll64BsDz4A75PTqFzZzn8tgcyBEE43uAQqU2Qev3dRpbITo6NqaiQ2BZ9i5itn6LRaKrCmieTfNuiNtNwLqWCmb6hAAwd3J8pI7vi0cH4V18mv0ji4Df3WBK6Uw6roZEjaNJE89iO2rA2g7hP9pCwNwSPof8DQOC89/kwZGVNs2GSJO17JhBsbW25ffs2WsU43W84HTvp4+TYWLZNT68gMjSR1NTz2tSYgH9MpHcfY86lVBAWsl+O71qh1PG15nL7wqJHXLmepRBMAwd5Ms677RMBADj8WT4rg6NY9+E8pgesomfP3iQkHK1t9u6vZadPBCH5UBDxJzIJ37CT0tJSANq+1pZV4Z6ozZQvmJiQz6rg7RQXFwPQuXMn/AM9sLYRSDpVyInjaRz/6vFZ8sBBnnTv2ZqObjrVQ6vLakRRZNVHfvz1r3V1hpZxLVu24sqVy/J1lUqF+7vdOPL5Fw0D4eqZWMrLSrmWfpn1n57n8y8rtbwoikyeMpbx3k0V7R7kCOyIucyeXQdku1FjhzJthpOsIu/cLiM3p1TRrpmdIU2aKNNtWbH23Up29n0ANkYH0qmjClMjNffzsqqYCBPHfSgPSYA5c6YRtnoIPr4xWj3x7CCcjg9ER1cf8yauFOX/wsmzNwhavYO8vMrs1tLSiuDV3rRtq9QJycmlhIcc5MaNn2W7wAVj6+3JJ5W8/4hEhiZz7GgiK1cvxtPTgPyHlc/fsC6DXTv2yQD06OHBuvCptGxpDvB8QBg62BPvfq1pbCpiYmGPvqEZJXk/syE+nY1b4up1iDXLzh1ZRK37RLbr2csDv4DOdeyeVEyN1OjrGZBTkE1FRTlJSY9Y/P5Geei5uLiyfOUQRg7ooWg31nszcXG7GwaC1iHOmTaagW9ZAWDXogO2lo24evU6w+fsIjX1nEz9BYt96d1HGQGysyXWhiWTmPi1bFd7riErS+THtEJZaQJYWZnQwtWczl300RV1KS0r4eYNgbCQRJKTz9ZxwlbqJrg6vi639/GNYfu2HdoOGCVJ0u5nAkFfX192iK1bt2HB9F50dDXhlVbOYOQEDzPYtP8Sfu9HynbaXqk9s/T18YeEhewkJydHtvOd2Y9zZzMVqXbt4uTkzLRZAzifeltB/THjhzN6XAuaNzOVWfJGW3did55nqu9CmSUNjg4RG7w5fiyLzw5+Iffi2FGDiVlSNcumaga6xpTnXWbi8n/xSVx1KB4zfrjsEGsmWuvWpLPv00MKRwawMNCXDm2aYGtVqQDPXsrm0NFkEhKVWkcLsquLPhamVuTk36/Bkq9JTj6jTax49dVX+fe/zz8WhCcqxo6vOTNuggsLlnhha2uLRqMhNm4fVl2XEZtwD4rvwMMb6KpbEbt6FCfjV+Dg4AhAXOwePN5Zo0i2dHQE/Oa0ZOsn/rRurZSCKoNGDH7LgjdaGfBGKwNa2JmRfPacwsY/YDIxOwfj1s4G/UYG3H1wi9KyEjasy2DMiBAZgGHDR3I9IwO3Tp0bnk
2p/vH08NpZWGKkMycy6Q8LRXHbtOCj34rAhAwgLeBc7Sx3QbwwGzaDgCitj01i4fP0THeLWzbeI3rxT/q9Wq9kVFUhYdKKCAe3atWPJir64OJk+0UGGR67Fs2+vSr8w6T22Rm9u2HAYNqI/3Tws0NPT4GzvwMPiIrLuFxK/+xrHjlZrhqBAX5b4tK5KHVuCpozrV38iIPQ4Bz77/LHaIusuRIR+w6lTSXXeQ6VSEbR0Cu7djbBWN61F/WoHKYoiwUGzmL8kXNH+uYAAYGJiiu+sgbi4grGhIS0cHNBpVMLxE/ksXxRNQUG+3Au71rxXOScg6leC8TCDT764yuyFUQqHGDB/UB1tkXCsgJXLo2UHO2bcMKbNdK6bK9TSBjIb7e3BdrBstz02jsk+3pSXlwH0kyTpcIMSKO0s07iJ7bG00qHdqy3Q1zPgfl5WnZea6DWKpVPeqBwiWseZn4FfaNJTaYurV0vR09OhpYsxpWUl8vX6qB+5zIu+XZtRJNoiFN1A1XoSyWfPMX3aNNk/NDg67N3kz6qPT5KSkiLTzttnOBMnO6Cjo4uFiSWlZSVcuPgfgubHy1PtKpWKjR8FML6HdfUQKS8kKfkyM5ftk7VFzTgv6xI9A9TGjcnIzES3kYasO7p1qK8dfo/0W1BU+ABjMRddHQGfVT+wfVu0DLRardaq24bJZoCEs3kEh8UoNMO8Bf1p2QoMDYwxMjAmpyCbI4fzCF21tUYS1YXY1SNpba8HusaytoiK/5E5C9bW0RZu7WwoLSuRZfHaiKvs2X2gDvWb2try8FEjhKKbmKggNuEeU+eGKliyJjyAfQeTnk/uIM/mlEp8fPAKu/ccqk7Shw9k6ow2GBhoMDexQldHh/Qb99gSlcaB/Yflnps1zYtwvw4KbXHj6o8ERX0rawtRFBk9dii+M5zqUN/BwZHwJRMY1M2RItGW4px0GhtrOJtewrTFe0lO/r6aJUH+LFnQ5/nlDlEhM+nQQqWo+yGjhNCPj8ppq0qlYn7QZLp7qOQh8rCkkDPJBYSuPCAPEUtLK2LWzK6cRhP1wcgBpAq+TXvA6MlBcrKlncesTf1iPSeKCnMw082rpP6Kb9keq5zQWffRJJrZmiikc0NAOKFdfB06yBOv/q2wNNVR2Hx6/BfWbtqp9b64d+/GpKl/wcFBUiQ827bcYvOmHfVrC11jKC+sXHWK+oGQiOj67cSq2W5Nab3U10abN9v3lN9vT/wFvCb+Q2v326NDFRBLam7AWBjgg2fXxsrkKL+CyB3nSPjqa/na9FleDB7aFAMDDVbqJpVx/U4+ISu+4eSJU3IPfxTsz+xhynnQ63dL+eL0XTq2tqJrGyNFXX3Ur52Ivdm+J7czC/Cesq7mOuazg1D/fgQ3Zo1/m1Z2ynmBU2mFrFyzW9YC1tY2vL9oLJ276KKvZyBr/OMn8uuEOVlb1JxvLCyl9FE5VhaVQNRH/Um+bTExruBRWQUqA11KSkS+PlaqWN5XqVTaZ/324VDfzhRRFGM0Go0pwIQxQ5jwd2cM9QWF49ydcIuPt1VnrH369mK6XwfMzauHiFZbxMVWZ44TvUYRveBN2WlScIXyConNh28yN2h9vdTPLyihokLCXK0i+ftyPli2g3v3fpE/fu36jXyb9M2zK8ZfAUJN5UYrP6jclzRjYn+6dzRT2F25/YgNcd9x+swZeT7Cd/pYho20fLK2CF/A+O5m9VLfz38iQ4c3priknJKSMkxNDMjPF1kfmcoXn1dPrM6cNZvly5ZiZmbaMNn8BDDaVw2RdgB9e3ngNeh1mlspV5uOnH5AyJodT9QWiUdLWLQwXKa6i4sr169fq0N9SXqIIAjo6ooYGzVi7+5s1q2JlR1zDw93gj8IoUtnt+eTOzwlGLNFUVyqHSL+M8bj+aZNnSGyfu9F4g8cqd7EMXEU470cMTDQYG3ejAf593iQo1Foi8flGGk/aFj0fqyC+utD/PH2dAHH6qW8m7cymeQzSTv9/mJAqDFEtgMDtI5z0og369UWK9cfltcfVCoVi5dP4e2/6Ss/ME3i1MmfsbE2q7PVJzdXqEt9Xy+Cp3bE1K4zqDvIoXTdhk3MnD615qp181/b+yQ8r0MfgiB0qwLD4XHaIvbL23y8bY9CW8yc3RVrm8dPvNZH/Q/8+9DpdWew6Q66lX7p9JlkFgUF1Vx8OQl4PW4zh/C8T77U1BZNmzbFZ0zferVF8MZvZMcJMNvfh34DrTEw0Dw99S3fAmMXmfphYeFERoRp7W4XFxfPeJo9TsKLOP7zW7TFioid8hqGtbUNyz4YT9vXxd9M/bDQkJpbeZYCEU+79U94kWegBEHwEkUxUus4fSeNYpi7XR3Huf3IdWLj4uVr7t278a+TSS+E+r87CL9VW4RvO0lqaqpC7T1v6r8UEGo5zgitthg6yJPhvVrW0RbxJ+/x3bl0OrR1fVrqN3jXq/B7HwmsrS0WBvjg3tFCMUQALKwdadFlFGIj9eOo/3z2M76UQxa1zke4ublJUSEzpdPxgdK5z4OlB7dSJG25cfOW5Dfbv/YZCa8//PGf3wBGN+Bn7QdOec9Hyrh+VQZg7fqNkpOTc82DIhG8gAMiL//oTeUmqyXaD3VycpZWrg6VevToVfPjTwDt/08dBHtGMNpXfewLpf5zP/7zorQFlccKzvM7nHV4KdHhj1j+PCb8Jwh/giCX/wVHEUWJlLCz7AAAAABJRU5ErkJggg==",alt:""})}),(0,Ly.jsx)("h5",{className:"font-size-16 text-uppercase mt-0 text-white-50",children:"Circulating Supply"}),(0,Ly.jsx)("h4",{className:"fw-medium font-size-24",children:null!=v.circulating?parseFloat(v.circulating).toLocaleString("en-US",{maximumFractionDigits:0}):"..."}),(0,Ly.jsxs)("h4",{className:"fw-medium font-size-16",children:["Total Supply: ",null!=v.total_supply?parseFloat(v.total_supply).toLocaleString("en-US",{maximumFractionDigits:0}):"..."]})]})})})})]})},wB=e=>{const[t,n]=(0,r.useState)({}),[i,a]=(0,r.useState)(0);return(0,r.useEffect)((()=>{!async function(){fetch("https://defxstats.com:3001/getAllHolders?excludetopholders=true").then((e=>e.json())).then((e=>{const t={options:{dataLabels:{enabled:!1},legend:{show:!1},plotOptions:{pie:{donut:{size:"60%"}}},colors:["#343a40","#02a499","#38a4f8","#f8b425","#ec4561","#6c6cef","#626ed4"]},series:[e.data.filter((e=>BigInt(e.total_balance)>=1000000000000000000000000n)).length,e.data.filter((e=>BigInt(e.total_balance)>=500000000000000000000000n&&BigInt(e.total_balance)<1000000000000000000000000n)).length,e.data.filter((e=>BigInt(e.total_balance)>=100000000000000000000000n&&BigInt(e.total_balance)<500000000000000000000000n)).length,e.data.filter((e=>BigInt(e.total_balance)>=50000000000000000000000n&&BigInt(e.total_balance)<100000000000000000000000n)).length,e.data.filter((e=>BigInt(e.total_balance)>=25000000000000000000000n&&BigInt(e.total_balance)<50000000000000000000000n)).length,e.data.filter((e=>BigInt(e.total_balance)>=10000000000000000000000n&&BigInt(e.total_balance)<25000000000000000000000n)).length,e.data.filter((e=>BigInt(e.total_balance)<10000000000000000000000n)).length],labels:["More than 1m"]};a(e.data.length),n(t)}))}()}),[]),(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)("div",{id:"ct-donut",className:"wid pt-4",children:t.series?(0,Ly.jsx)(pB.A,{options:t.options,series:t.series,type:"donut",height:"300",className:"apex-charts"}):""}),(0,Ly.jsx)("div",{className:"mt-4",children:(0,Ly.jsx)("table",{className:"table mb-0",children:(0,Ly.jsxs)("tbody",{children:[(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#343a40"},children:t.series?t.series[0]:""})}),(0,Ly.jsx)("td",{children:">1m"}),(0,Ly.jsxs)("td",{className:"text-end",children:[t.series?(t.series[0]/i*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#02a499"},children:t.series?t.series[1]:""})}),(0,Ly.jsx)("td",{children:"500k - 1m"}),(0,Ly.jsxs)("td",{className:"text-end",children:[t.series?(t.series[1]/i*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#38a4f8"},children:t.series?t.series[2]:""})}),(0,Ly.jsx)("td",{children:"100k-500k"}),(0,Ly.jsxs)("td",{className:"text-end",children:[t.series?(t.series[2]/i*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#f8b425"},children:t.series?t.series[3]:""})}),(0,Ly.jsx)("td",{children:"50k-100k"}),(0,Ly.jsxs)("td",{className:"text-end",children:[t.series?(t.series[3]/i*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#ec4561"},children:t.series?t.series[4]:""})}),(0,Ly.jsx)("td",{children:"25k-50k"}),(0,Ly.jsxs)("td",{className:"text-end",children:[t.series?(t.series[4]/i*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#6c6cef"},children:t.series?t.series[5]:""})}),(0,Ly.jsx)("td",{children:"10k-25k"}),(0,Ly.jsxs)("td",{className:"text-end",children:[t.series?(t.series[5]/i*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#626ed4"},children:t.series?t.series[6]:""})}),(0,Ly.jsxs)("td",{children:["<","10k"]}),(0,Ly.jsxs)("td",{className:"text-end",children:[t.series?(t.series[6]/i*100).toFixed(2):"","%"]})]})]})})})]})},kB=e=>{const[t,n]=(0,r.useState)({}),[i,a]=(0,r.useState)([]);return(0,r.useEffect)((()=>{!async function(){fetch("https://defxstats.com:3001/getSupply").then((e=>e.json())).then((e=>{const t={options:{dataLabels:{enabled:!1},legend:{show:!1},plotOptions:{pie:{donut:{size:"60%"}}},colors:["#626ed4","#02a499"]},series:[parseFloat(e.data.on_eth),parseFloat(e.data.on_bsc)],labels:[parseFloat(e.data.on_eth).toLocaleStr
2ing("en-US",{maximumFractionDigits:2}),parseFloat(e.data.on_bsc).toLocaleString("en-US",{maximumFractionDigits:2})]};n(e.data.total_supply),a(t)}))}()}),[]),(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)("div",{id:"ct-donut",className:"ct-chart wid pt-4",children:i.series?(0,Ly.jsx)(pB.A,{options:i.options,series:i.series,type:"donut",height:"240",className:"apex-charts"}):""}),(0,Ly.jsx)("div",{className:"mt-4",children:(0,Ly.jsx)("table",{className:"table mb-0",children:(0,Ly.jsxs)("tbody",{children:[(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#626ed4"},children:i.series?parseFloat(i.series[0]).toLocaleString("en-US",{maximumFractionDigits:2}):""})}),(0,Ly.jsx)("td",{children:"Ethereum"}),(0,Ly.jsxs)("td",{className:"text-end",children:[i.series?(i.series[0]/t*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#02a499"},children:i.series?parseFloat(i.series[1]).toLocaleString("en-US",{maximumFractionDigits:2}):""})}),(0,Ly.jsx)("td",{children:"BNB Smart Chain"}),(0,Ly.jsxs)("td",{className:"text-end",children:[i.series?(i.series[1]/t*100).toFixed(2):"","%"]})]})]})})})]})},AB=e=>{const[t,n]=(0,r.useState)({}),[i,a]=(0,r.useState)([]);return(0,r.useEffect)((()=>{!async function(){fetch("https://defxstats.com:3001/getStakingData").then((e=>e.json())).then((e=>{const t={options:{dataLabels:{enabled:!1},legend:{show:!1},plotOptions:{pie:{donut:{size:"60%"}}},colors:["#626ed4","#02a499"]},series:[parseFloat(e.data.in_staking_eth),parseFloat(e.data.in_staking_bsc)],labels:[parseFloat(e.data.in_staking_eth).toLocaleString("en-US",{maximumFractionDigits:2}),parseFloat(e.data.in_staking_bsc).toLocaleString("en-US",{maximumFractionDigits:2})]};n(parseFloat(e.data.in_staking_eth)+parseFloat(e.data.in_staking_bsc)),a(t)}))}()}),[]),(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)("div",{id:"ct-donut",className:"ct-chart wid pt-4",children:i.series?(0,Ly.jsx)(pB.A,{options:i.options,series:i.series,labels:i.labels,type:"donut",height:"240",className:"apex-charts"}):""}),(0,Ly.jsx)("div",{className:"mt-4",children:(0,Ly.jsx)("table",{className:"table mb-0",children:(0,Ly.jsxs)("tbody",{children:[(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#626ed4"},children:i.series?parseFloat(i.series[0]).toLocaleString("en-US",{maximumFractionDigits:2}):""})}),(0,Ly.jsx)("td",{children:"Ethereum"}),(0,Ly.jsxs)("td",{className:"text-end",children:[i.series?(i.series[0]/t*100).toFixed(2):"","%"]})]}),(0,Ly.jsxs)("tr",{children:[(0,Ly.jsx)("td",{children:(0,Ly.jsx)("span",{className:"badge",style:{backgroundColor:"#02a499"},children:i.series?parseFloat(i.series[1]).toLocaleString("en-US",{maximumFractionDigits:2}):""})}),(0,Ly.jsx)("td",{children:"BNB Smart Chain"}),(0,Ly.jsxs)("td",{className:"text-end",children:[i.series?(i.series[1]/t*100).toFixed(2):"","%"]})]})]})})})]})},{ethers:EB}=n(54197),SB=e=>{const[t,n]=(0,r.useState)({}),[i,a]=(0,r.useState)({});return(0,r.useEffect)((()=>{(async()=>{fetch("https://defxstats.com:3001/getSupplyChange?interval=w&amnt=13").then((e=>e.json())).then((e=>{let t=[],r=[];e.data.forEach((e=>{t.push(parseFloat(EB.formatUnits(e.circulating,"ether"))),r.push(parseFloat(EB.formatUnits(e.total,"ether")))})),t=t.reverse(),r=r.reverse();let i=t.reduce(((e,t)=>Math.min(e,t)),1/0),o=r.reduce(((e,t)=>Math.max(e,t)),-1/0);for(var s=[],l=12;l>0;l--)s.push("-"+l+"w");s.push("now");const c={labels:s,datasets:[{label:"Circulating",fill:!0,lineTension:.2,backgroundColor:"rgba(60, 76, 207, 0.2)",borderColor:"#3c4ccf",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"#3c4ccf",pointBackgroun
2dColor:"#fff",pointBorderWidth:8,pointHoverRadius:8,pointHoverBackgroundColor:"#3c4ccf",pointHoverBorderColor:"#fff",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:t},{label:"Total",fill:!1,lineTension:.2,backgroundColor:"rgba(60, 76, 207, 0.2)",borderColor:"#02a499",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"#02a499",pointBackgroundColor:"#fff",pointBorderWidth:8,pointHoverRadius:8,pointHoverBackgroundColor:"#02a499",pointHoverBorderColor:"#fff",pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:r}]};n({scales:{yAxes:[{ticks:{max:o,min:.9*i,stepSize:(o-.9*i)/5,fontColor:"#e9ecef"}}],xAxes:[{ticks:{fontColor:"#e9ecef"}}]}}),a(c)}))})()}),[]),(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(Jr,{children:(0,Ly.jsx)(gB.N1,{width:600,height:window.innerWidth<992?300:150,data:i,options:t})})})})},PB=ds()((e=>{const[t,n]=(0,r.useState)(!1);return document.title="DEFX Dashboard | General statistics on the DEFX token",(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"page-content",children:(0,Ly.jsxs)(ki,{fluid:!0,children:[(0,Ly.jsx)("div",{className:"page-title-box",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsxs)(Jr,{md:12,children:[(0,Ly.jsx)("h6",{className:"page-title",children:"Dashboard"}),(0,Ly.jsx)("ol",{className:"breadcrumb m-0",children:(0,Ly.jsx)("li",{className:"breadcrumb-item active",children:"DEFX token statistics"})})]})})}),(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(xB,{})}),(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{xl:7,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"DEFX 14 day chart"}),(0,Ly.jsx)(bB,{})]})})}),(0,Ly.jsx)(Jr,{xl:5,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"Top Holders (public)"}),(0,Ly.jsx)(vB,{})]})})})]}),(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{xl:6,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"Buybacks"}),(0,Ly.jsx)(mB,{})]})})}),(0,Ly.jsx)(Jr,{xl:6,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"Burns"}),(0,Ly.jsx)(yB,{})]})})})]}),(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{xl:4,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"Balance sizes (public)"}),(0,Ly.jsx)(wB,{})]})})}),(0,Ly.jsxs)(Jr,{xl:8,children:[(0,Ly.jsx)(zr,{children:(0,Ly.jsx)(Jr,{children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"Supply change"}),(0,Ly.jsx)(SB,{})]})})})}),(0,Ly.jsxs)(zr,{children:[(0,Ly.jsx)(Jr,{xl:6,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"Supply on chains"}),(0,Ly.jsx)(kB,{})]})})}),(0,Ly.jsx)(Jr,{xl:6,children:(0,Ly.jsx)(ii,{children:(0,Ly.jsxs)(ui,{children:[(0,Ly.jsx)("h4",{className:"card-title mb-4",children:"DEFX in staking"}),(0,Ly.jsx)(AB,{})]})})})]})]})]})]})})})}));const CB=[{path:"/dashboard",component:(0,Ly.jsx)(PB,{})},{path:"/staking",component:(0,Ly.jsx)(Vy,{})},{path:"/farming",component:(0,Ly.jsx)(Q_,{})},{path:"/vesting",component:(0,Ly.jsx)(eI,{})},{path:"/holders",component:(0,Ly.jsx)(oB,{})},{path:"/whaletracker",component:(0,Ly.jsx)(sB,{})}
2,{path:"/tokenbridge",component:(0,Ly.jsx)(dB,{})},{path:"/guides",component:(0,Ly.jsx)(hB,{})},{path:"/links",component:(0,Ly.jsx)(fB,{})},{path:"/*",component:(0,Ly.jsx)(PB,{})}];const OB=function(e){return function(t){let n=J(),i=ee(),a=function(){let{matches:e}=r.useContext($),t=e[e.length-1];return t?t.params:{}}();return(0,Ly.jsx)(e,{...t,router:{location:n,navigate:i,params:a}})}},TB="CHANGE_LAYOUT",NB="CHANGE_LAYOUT_WIDTH",_B="CHANGE_SIDEBAR_THEME",IB="CHANGE_SIDEBAR_TYPE",RB="CHANGE_TOPBAR_THEME",MB="TOGGLE_LEFTMENU",jB="SHOW_RIGHT_SIDEBAR",LB=e=>({type:TB,payload:e}),BB=e=>({type:NB,payload:e}),FB=e=>({type:_B,payload:e}),DB=(e,t)=>({type:IB,payload:{sidebarType:e,isMobile:t}}),UB=e=>({type:RB,payload:e}),zB=e=>({type:jB,payload:e});var WB=r.createContext(),HB=r.createContext();function VB(e){var t=e.children,n=r.useState(null),i=n[0],a=n[1],o=r.useRef(!1);r.useEffect((function(){return function(){o.current=!0}}),[]);var s=r.useCallback((function(e){o.current||a(e)}),[]);return r.createElement(WB.Provider,{value:i},r.createElement(HB.Provider,{value:s},t))}var GB=r.createContext({}),YB=r.createContext({});function qB(e){return qB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qB(e)}var XB=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function $B(){return $B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$B.apply(this,arguments)}function KB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QB(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function JB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ZB(e,t){return ZB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZB(e,t)}function eF(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nF(e);if(t){var i=nF(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===qB(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tF(e)}(this,n)}}function tF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nF(e){return nF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nF(e)}var rF={a11y:Mn().bool,disabled:Mn().bool,direction:Mn().oneOf(["up","down","start","end","left","right"]),group:Mn().bool,isOpen:Mn().bool,nav:Mn().bool,active:Mn().bool,size:Mn().string,tag:qn,toggle:Mn().func,children:Mn().node,className:Mn().string,cssModule:Mn().object,dropup:Mn().bool,inNavbar:Mn().bool,setActiveFromChild:Mn().bool,menuRole:Mn().oneOf(["listbox","menu"])},iF=[$n.space,$n.enter,$n.up,$n.down,$n.end,$n.home],aF=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZB(e,t)}(o,e);var t,n,i,a=eF(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).addEvents=t.addEvents.bind(tF(t)),t.handleDocumentClick=t.handleDocumentClick.bind(tF(t)),t.handleKeyDown=t.handleKeyDown.bind(tF(t)),t.removeEvents=t.removeEvents.bind(tF(t)),t.toggle=t.toggle.bind(tF(t)),t.handleMenuRef=t.handleMenuRef.bind(tF(t)),t.handleToggleRef=t.handleToggleRef.bind(tF(t)),t.containerRef
2=r.createRef(),t.menuRef=r.createRef(),t.toggleRef=r.createRef(),t}return t=o,n=[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(e){this.props.isOpen!==e.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(e){this.menuRef.current=e}},{key:"handleToggleRef",value:function(e){this.toggleRef.current=e}},{key:"handleDocumentClick",value:function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===$n.tab)){var t=this.getContainer(),n=this.getMenu(),r=this.getToggle();if(r){var i=r.contains(e.target),a=n&&n.contains(e.target)&&n!==e.target,o=!1;t&&(o=t.classList.contains("input-group")&&t.classList.contains("dropdown")&&"INPUT"===e.target.tagName),(!(i&&!o||a)||"keyup"===e.type&&e.which!==$n.tab)&&this.toggle(e)}}}},{key:"handleKeyDown",value:function(e){var t=this,n="menuitem"===e.target.getAttribute("role")||"option"===e.target.getAttribute("role"),r=this.getMenuCtrl()===e.target,i=$n.tab===e.which;if(!(/input|textarea/i.test(e.target.tagName)||i&&!this.props.a11y||i&&!n&&!r)&&((-1!==iF.indexOf(e.which)||e.which>=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled)){if(r)if([$n.space,$n.enter,$n.up,$n.down].indexOf(e.which)>-1)this.props.isOpen||this.toggle(e),setTimeout((function(){var e;return null===(e=t.getMenuItems()[0])||void 0===e?void 0:e.focus()}));else if(this.props.isOpen&&i){var a;e.preventDefault(),null===(a=this.getMenuItems()[0])||void 0===a||a.focus()}else this.props.isOpen&&e.which===$n.esc&&this.toggle(e);if(this.props.isOpen&&n)if([$n.tab,$n.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([$n.space,$n.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([$n.down,$n.up].indexOf(e.which)>-1||[$n.n,$n.p].indexOf(e.which)>-1&&e.ctrlKey){var o=this.getMenuItems(),s=o.indexOf(e.target);$n.up===e.which||$n.p===e.which&&e.ctrlKey?s=0!==s?s-1:o.length-1:($n.down===e.which||$n.n===e.which&&e.ctrlKey)&&(s=s===o.length-1?0:s+1),o[s].focus()}else if($n.end===e.which){var l=this.getMenuItems();l[l.length-1].focus()}else if($n.home===e.which)this.getMenuItems()[0].focus();else if(e.which>=48&&e.which<=90)for(var c=this.getMenuItems(),u=String.fromCharCode(e.which).toLowerCase(),d=0;d<c.length;d+=1)if((c[d].textContent&&c[d].textContent[0].toLowerCase())===u){c[d].focus();break}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl||(this._$menuCtrl=this.getToggle()),this._$menuCtrl}},{key:"getItemType",value:function(){return"listbox"===this.props.menuRole?"option":"menuitem"}},{key:"getMenuItems",value:function(){var e=this.getMenu()||this.getContainer();return[].slice.call(e.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.addEventListener(t,e.handleDocumentClick,!0)}))}},{key:"removeEvents",value:function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)}))}},{key:"toggle",value:function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}},{key:"render",value:function(){var e,t=this,n=zn(this.props,["toggle","disabled","inNavbar","a11y"]),i=n.className,a=n.cssModule,o=n.direction,s=n.isOpen,l=n.group,c=n.size,u=n.nav,d=n.setActiveFromChild,h=n.active,f=n.tag,p=(n.menuRole,QB(n,XB)),g=f||(u?"li":"div"),m=!1;d&&r.Children.map(this.props.children[1].props.children,(function(e){e&&e.props.active&&(m=!0)}));var y=Un(Ln()(i,!(!u||!h)&&"active",!(!d||!m)&&"active",(KB(e={"btn-group":l},"btn-group-".concat(c),!!c),KB(e,"dropdown",!l),KB(e,"dropup","up"===o),KB(e,"dropstart","start"===o||"left"===o),KB(e,"dropend","end"===o||"right"===o),KB(e,"show",s),KB(e,"nav-item",u),e)),a);
2return this.context.insideInputGroup?r.createElement(GB.Provider,{value:this.getContextValue()},r.createElement(VB,null,r.Children.map(this.props.children,(function(e){return r.cloneElement(e,{onKeyDown:t.handleKeyDown})})))):r.createElement(GB.Provider,{value:this.getContextValue()},r.createElement(VB,null,r.createElement(g,$B({},p,KB({},"string"===typeof g?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:y}))))}}],n&&JB(t.prototype,n),i&&JB(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);aF.propTypes=rF,aF.defaultProps={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},aF.contextType=YB;const oF=aF;var sF=function(e){return Array.isArray(e)?e[0]:e},lF=function(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},cF=function(e,t){if("function"===typeof e)return lF(e,t);null!=e&&(e.current=t)},uF=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},dF="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect;function hF(e){var t=e.children,n=e.innerRef,i=r.useContext(HB),a=r.useCallback((function(e){cF(n,e),lF(i,e)}),[n,i]);return r.useEffect((function(){return function(){return cF(n,null)}}),[]),r.useEffect((function(){FR()(Boolean(i),"`Reference` should not be used outside of a `Manager` component.")}),[i]),sF(t)({ref:a})}var fF=["className","cssModule","variant","innerRef"];function pF(){return pF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pF.apply(this,arguments)}function gF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yF(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var bF={active:Mn().bool,"aria-label":Mn().string,onClick:Mn().func,variant:Mn().oneOf(["white"]),className:Mn().string,cssModule:Mn().object,innerRef:Mn().oneOfType([Mn().object,Mn().string,Mn().func])};function vF(e){var t=e.className,n=(e.cssModule,e.variant),i=e.innerRef,a=yF(e,fF),o=Un(Ln()(t,"btn-close",n&&"btn-close-".concat(n)));return r.createElement("button",pF({ref:i,type:"button",className:o},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gF(Object(n),!0).forEach((function(t){mF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"aria-label":"close"},a)))}vF.propTypes=bF;const xF=vF;var wF=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function kF(){return kF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kF.apply(this,arguments)}function AF(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var EF={active:Mn().bool,"aria-label":Mn().string,block:Mn().bool,children:Mn().node,className:Mn().string,cssModule:Mn().object,close:Mn().bool,color:Mn().string,disabled:Mn().bool,innerRef:Mn().oneOfType([Mn().object,Mn().func,Mn().string]),onClick:Mn().func,outline:Mn().bool,size:Mn().string,tag:qn};function SF(e){var t=(0,r.useCallback)((function(t){if(!e.disabled)return e.onClick?e.onClick(t):void 0;t.preventDefault()}),[e.onClick,e.disabled]),n=e.active,i=e["aria-label"],a=e.block,o=e.className,s=e.close,l=e.cssModule,c=e.color,u=void 0===c?"secondary":c,d=e.outline,h=e.size,f=e.tag,p=void 0===f?"button":f,g=e.innerRef,m=AF(e,wF);if(s)return r.createElement(xF,m);var y="btn".concat(d?"-outline":"","-").concat(u),b=Un(Ln()(o,"btn",y,!!h&&"btn-".concat(h),!!a&&"d-block w-100",{active:n,disabled:e.disabled}),l);return m.href&&"button"===p&&(p="a"),r.createElement(p,kF({type:"button"===p&&m.onClick?"button":void 0},m,{className:b,ref:g,onClick:t,"aria-label":i}))}SF.propTypes=EF;const PF=SF;function CF(e){return CF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CF(e)}var OF=["className","color","cssModule","caret","split","nav","tag","innerRef"];function TF(){return TF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TF.apply(this,arguments)}function NF(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function IF(e,t){return IF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IF(e,t)}function RF(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jF(e);if(t){var i=jF(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CF(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return MF(e)}(this,n)}}function MF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jF(e){return jF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jF(e)}var LF={caret:Mn().bool,color:Mn().string,children:Mn().node,className:Mn().string,cssModule:Mn().object,disabled:Mn().bool,onClick:Mn().func,"aria-haspopup":Mn().bool,split:Mn().bool,tag:qn,nav:Mn().bool,innerRef:Mn().oneOfType([Mn().object,Mn().string,Mn().func])},BF=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IF(e,t)}(o,e);var t,n,i,a=RF(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).onClick=t.onClick.bind(MF(t)),t}return t=o,n=[{key:"onClick",value:function(e){this.props.disabled||this.context.disabled?e.preventDefault():(this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e))}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.className,a=n.color,o=n.cssModule,s=n.caret,l=n.split,c=n.nav,u=n.tag,d=n.innerRef,h=NF(n,OF),f=h["aria-label"]||"Toggle Dropdown",p=Un(Ln()(i,{"dropdown-toggle":s||l,"dropdown-toggle-split":l,"nav-link":c}),o),g="undefined"!==typeof h.children?h.children:r.createElement("span",{className:"visually-hidden"},f);c&&!u?(e="a",h.href="#"):u?e=u:(e=PF,h.color=a,h.cssModule=o);var m=function(n){var i=n.ref;return r.createElement(e,TF({},h,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"string"===typeof e?"ref":"innerRef",(function(e){i(e);var n=t.context.onToggleRef;n&&n(e)})),{className:p,onClick:t.onClick,"aria-expanded":t.context.isOpen,"aria-haspopup":t.getRole(),children:g}))};return this.context.inNavbar?r.createElement(r.Fragment,null,m({ref:this.context.onToggleRef})):r.createElement(hF,{innerRef:d},m)}}],n&&_F(t.prototype,n),i&&_F(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);BF.propTypes=LF,BF.defaultProps={color:"secondary","aria-haspopup":!0},BF.contextType=GB;const FF=BF;function DF(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function UF(e){return e instanceof DF(e).Element||e instanceof Element}function zF(e){return e instanceof DF(e).HTMLElement||e instanceof HTMLElement}function WF(e){return"undefined"!==typeof ShadowRoot&&(e instanceof DF(e).ShadowRoot||e instanceof ShadowRoot)}var HF=Math.max,VF=Math.min,GF=Math.round;function YF(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function qF(){return!/^((?!chrome|android).)*safari/i.test(YF())}function XF(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&zF(e)&&(i=e.offsetWidth>0&&GF(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&GF(r.height)/e.offsetHeight||1);
vendor: 4,602 bytes, line 2
2var o=(UF(e)?DF(e):window).visualViewport,s=!qF()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,c=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function $F(e){var t=DF(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function KF(e){return e?(e.nodeName||"").toLowerCase():null}function QF(e){return((UF(e)?e.ownerDocument:e.document)||window.document).documentElement}function JF(e){return XF(QF(e)).left+$F(e).scrollLeft}function ZF(e){return DF(e).getComputedStyle(e)}function eD(e){var t=ZF(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function tD(e,t,n){void 0===n&&(n=!1);var r=zF(t),i=zF(t)&&function(e){var t=e.getBoundingClientRect(),n=GF(t.width)/e.offsetWidth||1,r=GF(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=QF(t),o=XF(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==KF(t)||eD(a))&&(s=function(e){return e!==DF(e)&&zF(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:$F(e);var t}(t)),zF(t)?((l=XF(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=JF(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function nD(e){var t=XF(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function rD(e){return"html"===KF(e)?e:e.assignedSlot||e.parentNode||(WF(e)?e.host:null)||QF(e)}function iD(e){return["html","body","#document"].indexOf(KF(e))>=0?e.ownerDocument.body:zF(e)&&eD(e)?e:iD(rD(e))}function aD(e,t){var n;void 0===t&&(t=[]);var r=iD(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=DF(r),o=i?[a].concat(a.visualViewport||[],eD(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(aD(rD(o)))}function oD(e){return["table","td","th"].indexOf(KF(e))>=0}function sD(e){return zF(e)&&"fixed"!==ZF(e).position?e.offsetParent:null}function lD(e){for(var t=DF(e),n=sD(e);n&&oD(n)&&"static"===ZF(n).position;)n=sD(n);return n&&("html"===KF(n)||"body"===KF(n)&&"static"===ZF(n).position)?t:n||function(e){var t=/firefox/i.test(YF());if(/Trident/i.test(YF())&&zF(e)&&"fixed"===ZF(e).position)return null;var n=rD(e);for(WF(n)&&(n=n.host);zF(n)&&["html","body"].indexOf(KF(n))<0;){var r=ZF(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var cD="top",uD="bottom",dD="right",hD="left",fD="auto",pD=[cD,uD,dD,hD],gD="start",mD="end",yD="viewport",bD="popper",vD=pD.reduce((function(e,t){return e.concat([t+"-"+gD,t+"-"+mD])}),[]),xD=[].concat(pD,[fD]).reduce((function(e,t){return e.concat([t,t+"-"+gD,t+"-"+mD])}),[]),wD=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kD(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function AD(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var ED={placement:"bottom",modifiers:[],strategy:"absolute"};function SD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function PD(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?ED:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ED,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},a,i.options,s),i.scrollParents={reference:UF(e)?aD(e):e.contextElement?aD(e.contextElement):[],popper:aD(t)};var u=function(e){var t=kD(e);return wD.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=u.filter((function(e){return e.enabled}
vendor: 13,617 bytes, line 2
2)),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var s=a({state:i,name:t,instance:l,options:r}),c=function(){};o.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(SD(t,n)){i.rects={reference:tD(t,lD(n),"fixed"===i.options.strategy),popper:nD(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"===typeof o&&(i=o({state:i,options:u,name:d,instance:l})||i)}else i.reset=!1,r=-1}}},update:AD((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){c(),s=!0}};if(!SD(e,t))return l;function c(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var CD={passive:!0};const OD={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=DF(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,CD)})),s&&l.addEventListener("resize",n.update,CD),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,CD)})),s&&l.removeEventListener("resize",n.update,CD)}},data:{}};function TD(e){return e.split("-")[0]}function ND(e){return e.split("-")[1]}function _D(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ID(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?TD(i):null,o=i?ND(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case cD:t={x:s,y:n.y-r.height};break;case uD:t={x:s,y:n.y+n.height};break;case dD:t={x:n.x+n.width,y:l};break;case hD:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?_D(a):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case gD:t[c]=t[c]-(n[u]/2-r[u]/2);break;case mD:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var RD={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MD(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=o.x,f=void 0===h?0:h,p=o.y,g=void 0===p?0:p,m="function"===typeof u?u({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var y=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),v=hD,x=cD,w=window;if(c){var k=lD(n),A="clientHeight",E="clientWidth";if(k===DF(n)&&"static"!==ZF(k=QF(n)).position&&"absolute"===s&&(A="scrollHeight",E="scrollWidth"),i===cD||(i===hD||i===dD)&&a===mD)x=uD,g-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[A])-r.height,g*=l?1:-1;if(i===hD||(i===cD||i===uD)&&a===mD)v=dD,f-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-r.width,f*=l?1:-1}var S,P=Object.assign({position:s},c&&RD),C=!0===u?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:GF(n*i)/i||0,y:GF(r*i)/i||0}}({x:f,y:g},DF(n)):{x:f,y:g};return f=C.x,g=C.y,l?Object.assign({},P,((S={})[x]=b?"0":"",S[v]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",S)):Object.assign({},P,((t={})[x]=b?g+"px":"",t[v]=y?f+"px":"",t.transform="",t))}const jD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=xD.reduce((function(e,n){return e[n]=function(e,t,n){var r=TD(e),i=[hD,cD].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[hD,dD].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}};var LD={left:"right",right:"left",bottom:"top",top:"bottom"};function BD(e){return e.replace(/left|right|bottom|top/g,(function(e){return LD[e]}))}var FD={start:"end",end:"start"};function DD(e){return e.replace(/start|end/g,(function(e){return FD[e]}))}function UD(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&WF(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zD(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WD(e,t,n){return t===yD?zD(function(e,t){var n=DF(e),r=QF(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=qF();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+JF(e),y:l}}(e,n)):UF(t)?function(e,t){var n=XF(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):zD(function(e){var t,n=QF(e),r=$F(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=HF(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=HF(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+JF(e),l=-r.scrollTop;return"rtl"===ZF(i||n).direction&&(s+=HF(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(QF(e)))}function HD(e,t,n,r){var i="clippingParents"===t?function(e){var t=aD(rD(e)),n=["absolute","fixed"].indexOf(ZF(e).position)>=0&&zF(e)?lD(e):e;return UF(n)?t.filter((function(e){return UF(e)&&UD(e,n)&&"body"!==KF(e)})):[]}(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce((function(t,n){var i=WD(e,n,r);return t.top=HF(i.top,t.top),t.right=VF(i.right,t.right),t.bottom=VF(i.bottom,t.bottom),t.left=HF(i.left,t.left),t}),WD(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function VD(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function GD(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function YD(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,o=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?yD:c,d=n.elementContext,h=void 0===d?bD:d,f=n.altBoundary,p=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,y=VD("number"!==typeof m?m:GD(m,pD)),b=h===bD?"reference":bD,v=e.rects.popper,x=e.elements[p?b:h],w=HD(UF(x)?x:x.contextElement||QF(e.elements.popper),l,u,o),k=XF(e.elements.reference),A=ID({reference:k,element:v,strategy:"absolute",placement:i}),E=zD(Object.assign({},v,A)),S=h===bD?E:k,P={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},C=e.modifiersData.offset;if(h===bD&&C){var O=C[i];Object.keys(P).forEach((function(e){var t=[dD,uD].indexOf(e)>=0?1:-1,n=[cD,uD].indexOf(e)>=0?"y":"x";P[e]+=O[n]*t}))}return P}const qD={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,y=TD(m),b=l||(y===m||!p?[BD(m)]:function(e){if(TD(e)===fD)return[];var t=BD(e);return[DD(e),t,DD(t)]}(m)),v=[m].concat(b).reduce((function(e,n){return e.concat(TD(n)===fD?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?xD:l,u=ND(r),d=u?s?vD:vD.filter((function(e){return ND(e)===u})):pD,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,n){return t[n]=YD(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[TD(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,A=!0,E=v[0],S=0;S<v.length;S++){var P=v[S],C=TD(P),O=ND(P)===gD,T=[cD,uD].indexOf(C)>=0,N=T?"width":"height",_=YD(t,{placement:P,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=T?O?dD:hD:O?uD:cD;x[N]>w[N]&&(I=BD(I));var R=BD(I),M=[];if(a&&M.push(_[C]<=0),s&&M.push(_[I]<=0,_[R]<=0),M.every((function(e){return e}))){E=P,A=!1;break}k.set(P,M)}if(A)for(var j=function(e){var t=v.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},L=p?3:1;L>0;L--){if("break"===j(L))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function XD(e,t,n){return HF(e,VF(t,n))}const $D={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,m=YD(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=TD(t.placement),b=ND(t.placement),v=!b,x=_D(y),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,A=t.rects.reference,E=t.rects.popper,S="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,P="number"===typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(k){if(a){var T,N="y"===x?cD:hD,_="y"===x?uD:dD,I="y"===x?"height":"width",R=k[x],M=R+m[N],j=R-m[_],L=f?-E[I]/2:0,B=b===gD?A[I]:E[I],F=b===gD?-E[I]:-A[I],D=t.elements.arrow,U=f&&D?nD(D):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=z[N],H=z[_],V=XD(0,A[I],U[I]),G=v?A[I]/2-L-V-W-P.mainAxis:B-V-W-P.mainAxis,Y=v?-A[I]/2+L+V+H+P.mainAxis:F+V+H+P.mainAxis,q=t.elements.arrow&&lD(t.elements.arrow),X=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,$=null!=(T=null==C?void 0:C[x])?T:0,K=R+Y-$,Q=XD(f?VF(M,R+G-$-X):M,R,f?HF(j,K):j);k[x]=Q,O[x]=Q-R}if(s){var J,Z="x"===x?cD:hD,ee="x"===x?uD:dD,te=k[w],ne="y"===w?"height":"width",re=te+m[Z],ie=te-m[ee],ae=-1!==[cD,hD].indexOf(y),oe=null!=(J=null==C?void 0:C[w])?J:0,se=ae?re:te-A[ne]-E[ne]-oe+P.altAxis,le=ae?te+A[ne]+E[ne]-oe-P.altAxis:ie,ce=f&&ae?function(e,t,n){var r=XD(e,t,n);return r>n?n:r}(se,te,le):XD(f?se:re,te,f?le:ie);k[w]=ce,O[w]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};const KD={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=TD(n.placement),l=_D(s),c=[hD,dD].indexOf(s)>=0?"height":"width";if(a&&o){var u=function(e,t){return VD("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:GD(e,pD))}(i.padding,n),d=nD(a),h="y"===l?cD:hD,f="y"===l?uD:dD,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],m=lD(a),y=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=u[h],x=y-d[c]-u[f],w=y/2-d[c]/2+b,k=XD(v,w,x),A=l;n.modifiersData[r]=((t={})[A]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&UD(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function QD(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function JD(e){return[cD,dD,uD,hD].some((function(t){return e[t]>=0}))}var ZD=PD({defaultModifiers:[OD,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ID({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:TD(t.placement),variation:ND(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,MD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,MD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];zF(i)&&KF(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});
2zF(r)&&KF(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},jD,qD,$D,KD,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=YD(t,{elementContext:"reference"}),s=YD(t,{altBoundary:!0}),l=QD(o,r),c=QD(s,i,a),u=JD(l),d=JD(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),eU=n(94593),tU=n.n(eU),nU=[],rU=function(){},iU=function(){return Promise.resolve(null)},aU=[];function oU(e){var t=e.placement,n=void 0===t?"bottom":t,i=e.strategy,a=void 0===i?"absolute":i,o=e.modifiers,s=void 0===o?aU:o,l=e.referenceElement,c=e.onFirstUpdate,u=e.innerRef,d=e.children,h=r.useContext(WB),f=r.useState(null),p=f[0],g=f[1],m=r.useState(null),y=m[0],b=m[1];r.useEffect((function(){cF(u,p)}),[u,p]);var v=r.useMemo((function(){return{placement:n,strategy:a,onFirstUpdate:c,modifiers:[].concat(s,[{name:"arrow",enabled:null!=y,options:{element:y}}])}}),[n,a,c,s,y]),x=function(e,t,n){void 0===n&&(n={});var i=r.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||nU},o=r.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=o[0],l=o[1],c=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);we.flushSync((function(){l({styles:uF(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:uF(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),u=r.useMemo((function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return tU()(i.current,e)?i.current||e:(i.current=e,e)}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),d=r.useRef();return dF((function(){d.current&&d.current.setOptions(u)}),[u]),dF((function(){if(null!=e&&null!=t){var r=(n.createPopper||ZD)(e,t,u);return d.current=r,function(){r.destroy(),d.current=null}}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(l||h,p,v),w=x.state,k=x.styles,A=x.forceUpdate,E=x.update,S=r.useMemo((function(){return{ref:g,style:k.popper,placement:w?w.placement:n,hasPopperEscaped:w&&w.modifiersData.hide?w.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:w&&w.modifiersData.hide?w.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:b},forceUpdate:A||rU,update:E||iU}}),[g,b,n,w,k,E,A]);return sF(d)(S)}function sU(e){return sU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sU(e)}var lU=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function cU(){return cU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cU.apply(this,arguments)}function uU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uU(Object(n),!0).forEach((function(t){hU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fU(e){return function(e){if(Array.isArray(e))return pU(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return pU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pU(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gU(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
2function yU(e,t){return yU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yU(e,t)}function bU(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vU(e);if(t){var i=vU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sU(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function vU(e){return vU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vU(e)}var xU={tag:qn,children:Mn().node.isRequired,dark:Mn().bool,end:Mn().bool,flip:Mn().bool,modifiers:Mn().array,className:Mn().string,cssModule:Mn().object,style:Mn().object,persist:Mn().bool,strategy:Mn().string,container:Yn,updateOnSelect:Mn().bool,right:Vn(Mn().bool,'Please use "end" instead.')},wU={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},kU=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yU(e,t)}(o,e);var t,n,i,a=bU(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),a.apply(this,arguments)}return t=o,n=[{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"listbox":"menu"}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,i=t.cssModule,a=t.dark,o=t.end,s=t.right,l=t.tag,c=void 0===l?"div":l,u=t.flip,d=void 0===u||u,h=t.modifiers,f=void 0===h?[]:h,p=t.persist,g=t.strategy,m=t.container,y=t.updateOnSelect,b=gU(t,lU),v=Un(Ln()(n,"dropdown-menu",{"dropdown-menu-dark":a,"dropdown-menu-end":o||s,show:this.context.isOpen}),i),x=c;if(p||this.context.isOpen&&!this.context.inNavbar){var w=wU[this.context.direction]||"bottom",k=o||s?"end":"start",A="".concat(w,"-").concat(k),E=[].concat(fU(f),[{name:"flip",enabled:!!d}]),S={};p&&(S.display="block",S.visibility=this.context.isOpen?"visible":"hidden");var P=r.createElement(oU,{placement:A,modifiers:E,strategy:g},(function(t){var n=t.ref,i=t.style,a=t.placement,o=t.update,s=dU(dU(dU({},e.props.style),S),i);return r.createElement(x,cU({tabIndex:"-1",role:e.getRole(),ref:function(t){n(t);var r=e.context.onMenuRef;r&&r(t)}}
2,b,{style:s,"aria-hidden":!e.context.isOpen,className:v,"data-popper-placement":a,onClick:function(){return y&&o()}}))}));return m?we.createPortal(P,function(e,t){var n=er(e);return t?tr(n)?n:null===n?[]:[n]:tr(n)?n[0]:n}(m)):P}var C=this.context.onMenuRef;return r.createElement(x,cU({tabIndex:"-1",role:this.getRole()},b,{ref:C,"aria-hidden":!this.context.isOpen,className:v,"data-popper-placement":b.placement,"data-bs-popper":"static"}))}}],n&&mU(t.prototype,n),i&&mU(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);kU.propTypes=xU,kU.contextType=GB;const AU=kU;function EU(e){return EU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EU(e)}var SU=["className","cssModule","divider","tag","header","active","text"];function PU(){return PU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PU.apply(this,arguments)}function CU(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TU(e,t){return TU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TU(e,t)}function NU(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=IU(e);if(t){var i=IU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===EU(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _U(e)}(this,n)}}function _U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IU(e){return IU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IU(e)}var RU={children:Mn().node,active:Mn().bool,disabled:Mn().bool,divider:Mn().bool,tag:qn,header:Mn().bool,onClick:Mn().func,className:Mn().string,cssModule:Mn().object,toggle:Mn().bool,text:Mn().bool},MU=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TU(e,t)}(o,e);var t,n,i,a=NU(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).onClick=t.onClick.bind(_U(t)),t.getTabIndex=t.getTabIndex.bind(_U(t)),t}return t=o,(n=[{key:"onClick",value:function(e){var t,n=this.props,r=n.disabled,i=n.header,a=n.divider,o=n.text;r||i||a||o?e.preventDefault():(this.props.onClick&&this.props.onClick(e),(null===(t=this.props.toggle)||void 0===t||t)&&this.context.toggle(e))}},{key:"getRole",value:function(){return"listbox"===this.context.menuRole?"option":"menuitem"}},{key:"getTabIndex",value:function(){var e=this.props,t=e.disabled,n=e.header,r=e.divider,i=e.text;return t||n||r||i?"-1":"0"}},{key:"render",value:function(){var e=this.getTabIndex(),t=e>-1?this.getRole():void 0,n=zn(this.props,["toggle"]),i=n.className,a=n.cssModule,o=n.divider,s=n.tag,l=void 0===s?"button":s,c=n.header,u=n.active,d=n.text,h=CU(n,SU),f=Un(Ln()(i,{disabled:h.disabled,"dropdown-item":!o&&!c&&!d,active:u,"dropdown-header":c,"dropdown-divider":o,"dropdown-item-text":d}),a);return"button"===l&&(c?l="h6":o?l="div":h.href?l="a":d&&(l="span")),r.createElement(l,PU({type:"button"===l&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:e,role:t,className:f,onClick:this.onClick}))}}])&&OU(t.prototype,n),i&&OU(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.Component);MU.propTypes=RU,MU.contextType=GB;const jU=MU;function LU(){return LU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LU.apply(null,arguments)}function BU(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const FU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch($G){}new Map;const DU=i.startTransition;ke.flushSync,i.useId;function UU(e){let{basename:t,children:n,future:i,window:a}=e,o=r.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:a,v5Compat:!0})&&(s={}),p((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return d("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:h(t)}),null,s)));let l=o.current,[c,u]=r.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},g=r.useCallback((e=>{f&&DU?DU((()=>u(e))):u(e)}),[u,f]);return r.useLayoutEffect((()=>l.listen(g)),[l,g]),r.useEffect((()=>pe(i)),[i]),r.createElement(me,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:i})}const zU="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,WU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HU=r.forwardRef((function(e,t){let n,{onClick:i,relative:a,reloadDocument:o,replace:s,state:c,target:u,to:d,preventScrollReset:f,viewTransition:p}=e,g=BU(e,FU),{basename:m}=r.useContext(q),y=!1;if("string"===typeof d&&WU.test(d)&&(n=d,zU))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=N(t.pathname,m);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:y=!0}catch($G){}let b=function(e,t){let{relative:n}=void 0===t?{}:t;Q()||l(!1);let{basename:i,navigator:a}=r.useContext(q),{hash:o,pathname:s,search:c}=te(e,{relative:n}),u=s;return"/"!==i&&(u="/"===s?i:B([i,s])),a.createHref({pathname:u,search:c,hash:o})}(d,{relative:a}),v=function(e,t){let{target:n,replace:i,state:a,preventScrollReset:o,relative:s,viewTransition:l}=void 0===t?{}:t,c=ee(),u=J(),d=te(e,{relative:s});return r.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==i?i:h(u)===h(d);c(e,{replace:n,state:a,preventScrollReset:o,relative:s,viewTransition:l})}}),[u,c,d,i,a,n,e,o,s,l])}(d,{replace:s,state:c,target:u,preventScrollReset:f,relative:a,viewTransition:p});return r.createElement("a",LU({},g,{href:n||b,onClick:y||o?i:function(e){i&&i(e),e.defaultPrevented||v(e)},ref:t,target:u}))}));var VU,GU;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(VU||(VU={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(GU||(GU={}));var YU=n(85501);function qU(e,t){if(t&&("object"==(0,At.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yI(e)}
vendor: 4,234 bytes, line 2
2function XU(e){return XU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XU(e)}function $U(e){return Lo(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fo(e)||Do()}function KU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KU(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JU={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ZU=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zo(this,e),this.init(t,n)}return Ho(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||JU,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"===typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,QU(QU({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),ez=new ZU,tz=function(){function e(){zo(this,e),this.observers={}}return Ho(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function nz(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function rz(e){return null==e?"":""+e}function iz(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}for(var a="string"!==typeof t?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function az(e,t,n){var r=iz(e,t,Object);r.obj[r.k]=n}function oz(e,t){var n=iz(e,t),r=n.obj,i=n.k;if(r)return r[i]}function sz(e,t,n){var r=oz(e,n);return void 0!==r?r:oz(t,n)}function lz(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):lz(e[r],t[r],n):e[r]=t[r]);return e}function cz(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var uz={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function dz(e){return"string"===typeof e?e.replace(/[&<>
2"'\/]/g,(function(e){return uz[e]})):e}var hz="undefined"!==typeof window&&window.navigator&&"undefined"===typeof window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,fz=[" ",",","?","!",";"];function pz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pz(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mz(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch($G){return!1}}();return function(){var n,r=XU(e);if(t){var i=XU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qU(this,n)}}function yz(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i)return;if("string"===typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var o=2,s=r.slice(a,a+o).join(n),l=i[s];void 0===l&&r.length>a+o;)o++,l=i[s=r.slice(a,a+o).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"===typeof l)return l;if(s&&"string"===typeof l[s])return l[s]}var c=r.slice(a+o).join(n);return c?yz(l,c,n):void 0}i=i[r[a]]}return i}}var bz=function(e){(0,YU.A)(n,e);var t=mz(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return zo(this,n),r=t.call(this),hz&&tz.call(yI(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return Ho(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[e,t];n&&"string"!==typeof n&&(o=o.concat(n)),n&&"string"===typeof n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split("."));var s=oz(this.data,o);return s||!a||"string"!==typeof n?s:yz(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var o=[e,t];
vendor: 3,025 bytes, line 2
2n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),az(this.data,o,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!==typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(o=e.split("."))[1]),this.addNamespaces(t);var s=oz(this.data,o)||{};r?lz(s,n,i):s=gz(gz({},s),n),az(this.data,o,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?gz(gz({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(tz),vz={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}};function xz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xz(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kz(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch($G){return!1}}();return function(){var n,r=XU(e);if(t){var i=XU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qU(this,n)}}var Az={},Ez=function(e){(0,YU.A)(n,e);var t=kz(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return zo(this,n),r=t.call(this),hz&&tz.call(yI(r)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,yI(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ez.create("translator"),r}return Ho(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var r=fz.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}(e,n,r);if(a&&!o){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==(0,At.A)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],d=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var f=t.nsSeparator||this.options.nsSeparator;return a?(p.res="".concat(u).concat(f).concat(l),p):"".concat(u).concat(f).concat(l)}return a?(p.res=l,p):l}var p=this.resolve(e,t),g=p&&p.res,m=p&&p.usedKey||l,y=p&&p.exactUsedKey||l,b=Object.prototype.toString.apply(g),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&g&&("string"!==typeof g&&"boolean"!==typeof g&&"number"!==typeof g)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!==typeof v||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,wz(wz({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return a?(p.res=w,p):w}if(o){var k="[object Array]"===b,A=k?[]:{},E=k?y:m;for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var P="".concat(E).concat(o).concat(S);A[S]=this.translate(P,wz(wz({},t),{joinArrays:!1,ns:c})),A[S]===P&&(A[S]=g[S])}g=A}}else if(x&&"string"===typeof v&&"[object Array]"===b)(g=g.join(v))&&(g=this.extendTranslation(g,e,t,r));else{var C=!1,O=!1,T=void 0!==t.count&&"string"!==typeof t.count,N=n.hasDefaultValue(t),_=T?this.pluralResolver.getSuffix(d,t.count,t):"",I=t["defaultValue".concat(_)]||t.defaultValue;!this.isValidLookup(g)&&N&&(C=!0,g=I),this.isValidLookup(g)||(O=!0,g=l);var R=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:g,M=N&&I!==g&&this.options.updateMissing;if(O||C||M){if(this.logger.log(M?"updateKey":"missingKey",d,u,l,M?I:g),o){var j=this.resolve(l,wz(wz({},t),{},{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var F=0;F<B.length;F++)L.push(B[F]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var D=function(e,n,r){var a=N&&r!==g?r:R;i.options.missingKeyHandler?i.options.missingKeyHandler(e,u,n,a,M,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,u,n,a,M,t),i.emit("missingKey",e,u,n,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?L.forEac
vendor: 21,129 bytes, line 2
2h((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){D([e],l+n,t["defaultValue".concat(n)]||I)}))})):D(L,l,I))}g=this.extendTranslation(g,e,t,p,r),O&&g===l&&this.options.appendNamespaceToMissingKey&&(g="".concat(u,":").concat(l)),(O||C)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,C?g:void 0):this.options.parseMissingKeyHandler(g))}return a?(p.res=g,p):g}},{key:"extendTranslation",value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,wz(wz({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(wz(wz({},n),{interpolation:wz(wz({},this.options.interpolation),n.interpolation)}));var o,s="string"===typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);o=l&&l.length}var c=n.replace&&"string"!==typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=wz(wz({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,h="string"===typeof d?[d]:d;return void 0!==e&&null!==e&&h&&h.length&&!1!==n.applyPostProcessor&&(e=vz.handle(h,e,t,this.options&&this.options.postProcessPassResolved?wz({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var l=o.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var d=void 0!==s.count&&"string"!==typeof s.count,h=d&&!s.ordinal&&0===s.count&&o.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"===typeof s.context||"number"===typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(a=e,!Az["".concat(p[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(Az["".concat(p[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!o.isValidLookup(t)){i=n;var a,l=[c];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(l,c,n,e,s);else{var u;d&&(u=o.pluralResolver.getSuffix(n,s.count,s));var p="".concat(o.options.pluralSeparator,"zero");if(d&&(l.push(c+u),h&&l.push(c+p)),f){var g="".concat(c).concat(o.options.contextSeparator).concat(s.context);l.push(g),d&&(l.push(g+u),h&&l.push(g+p))}}for(;a=l.pop();)o.isValidLookup(t)||(r=a,t=o.getResource(n,e,a,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),n}(tz);function Sz(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Pz=function(){function e(t){zo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ez.create("languageUtils")}return Ho(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Sz(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Sz(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Sz(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"===typeof e&&a(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),Cz=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Oz={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Tz=["v1","v2","v3"],Nz={zero:0,one:1,two:2,few:3,many:4,other:5};var _z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zo(this,e),this.languageUtils=t,this.options=n,this.logger=ez.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){var e={};return Cz.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Oz[t.fc]}}))})),e}()}return Ho(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Nz[e]-Nz[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"===typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Tz.includes(this.options.compatibilityJSON)}}]),e}();function Iz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iz(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mz=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};zo(this,e),this.logger=ez.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Ho(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:dz,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?cz(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?cz(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?cz(t.nestingPrefix):t.nestingPrefixEscaped||cz("$t("),this.nestingSuffix=t.nestingSuffix?cz(t.nestingSuffix):t.nestingSuffixEscaped||cz(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,a,o,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var i=sz(t,l,e);return s.alwaysFormat?s.format(i,void 0,n,Rz(Rz(Rz({},r),t),{},{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(sz(t,l,o),c,n,Rz(Rz(Rz({},r),t),{},{interpolationkey:o}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(o=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(a=u(n)))if("function"===typeof d){var l=d(e,i,r);a="string"===typeof l?l:""}else if(r&&r.hasOwnProperty(n))a="";else{if(h){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"===typeof a||s.useRawValueToEscape||(a=rz(a));var c=t.safeValue(a);if(e=e.replace(i[0],c),h?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Rz({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2===0&&!s||s.length%2!==0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=Rz(Rz({},t),o))}catch($G){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),$G),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=rz(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return i.format(e,t,a.lng,Rz(Rz({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function jz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jz(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bz(e){var t={};return function(n,r,i){var a=r+JSON.stringify(i),o=t[a];return o||(o=e(r,i),t[a]=o),o(n)}}var Fz=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};zo(this,e),this.logger=ez.create("formatter"),this.options=t,this.formats={number:Bz((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:Bz((function(e,t){var n=new Intl.NumberFormat(e,Lz(Lz({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:Bz((function(e,t){var n=new Intl.DateTimeFormat(e,Lz({},t));return function(e){return n.format(e)}})),relativetime:Bz((function(e,t){var n=new Intl.RelativeTimeFormat(e,Lz({},t));return function(e){return n.format(e,t.range||"day")}})),list:Bz((function(e,t){var n=new Intl.ListFormat(e,Lz({},t));return function(e){return n.format(e)}}))},this.init(t)}return Ho(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Bz(t)}},{key:"format",value:function(e,t,n,r){var i=this,a=t.split(this.formatSeparator).reduce((function(e,t){var a=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=$U(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),o=a.formatName,s=a.formatOptions;if(i.formats[o]){var l=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},u=c.locale||c.lng||r.locale||r.lng||n;l=i.formats[o](e,u,Lz(Lz(Lz({},s),r),c))}catch(d){i.logger.warn(d)}return l}return i.logger.warn("there was no format function for ".concat(o)),e}),e);return a}}]),e}();function Dz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 5,675 bytes, line 2
2t%2?Dz(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zz(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch($G){return!1}}();return function(){var n,r=XU(e);if(t){var i=XU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qU(this,n)}}var Wz=function(e){(0,YU.A)(n,e);var t=zz(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return zo(this,n),a=t.call(this),hz&&tz.call(yI(a)),a.backend=e,a.store=r,a.services=i,a.languageUtils=i.languageUtils,a.options=o,a.logger=ez.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=o.maxParallelReads||10,a.readingCalls=0,a.maxRetries=o.maxRetries>=0?o.maxRetries:5,a.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,o.backend,o),a}return Ho(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,a={},o={},s={},l={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===o[s]&&(o[s]=!0):(i.state[s]=1,r=!1,void 0===o[s]&&(o[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){!function(e,t,n,r){var i=iz(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}(n.loaded,[i],a),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===o[e][t]&&(o[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:a,callback:o}):(this.readingCalls++,this.backend[n](e,t,(function(s,l){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&i<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,l)}))):o(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(function(r,o){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(i," failed"),r),!r&&o&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(i),o),t.loaded(e,r,o)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Uz(Uz({},a),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(tz);function Hz(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Vz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Vz(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yz(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch($G){return!1}}();return function(){var n,r=XU(e);if(t){var i=XU(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qU(this,n)}}function qz(){}var Xz=function(e){(0,YU.A)(n,e);var t=Yz(n);function n(){var e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(zo(this,n),e=t.call(this),hz&&tz.call(yI(e)),e.options=Hz(i),e.services={},e.logger=ez,e.modules={external:[]},r=yI(e),Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((function(e){"function"===typeof r[e]&&(r[e]=r[e].bind(r))})),a&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,a),qU(e,yI(e));setTimeout((function(){e.init(i,a)}),0)}return e}return Ho(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"===typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,At.A)(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===(0,At.A)(e[2])||"object"===(0,At.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function i(e){return e?"function"===typeof e?new e:e:null}if(this.options=Gz(Gz(Gz({},r),this.options),Hz(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Gz(Gz({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var a;this.modules.logger?ez.init(i(this.modules.logger),this.options):ez.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!==typeof Intl&&(a=Fz);var o=new Pz(this.options);this.store=new bz(this.options.resources,this.options);var s=this.services;s.logger=ez,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new _z(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Mz(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Wz(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Ez(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=qz),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=nz(),u=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qz,r="string"===typeof e?e:this.language;if("function"===typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(r)a(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return a(e)}));
vendor: 3,555 bytes, line 2
2this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)}))}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=nz();return e||(e=this.languages),t||(t=this.options.ns),n||(n=qz),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&vz.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=nz();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var o="string"===typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);o&&(n.language||i(o),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,a){a?(i(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var a;if("object"!==(0,At.A)(i)){for(var o=arguments.length,s=new Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];a=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else a=Gz({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,a.keyPrefix=a.keyPrefix||n||e.keyPrefix;var c=r.options.keySeparator||".",u=a.keyPrefix?"".concat(a.keyPrefix).concat(c).concat(t):t;return r.t(u,a)};return"string"===typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,o);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(r,e)||i&&!o(a,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=nz();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=nz();"string"===typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qz,i=Gz(Gz(Gz({},this.options),t),{isClone:!0}),a=new n(i);void 0===t.debug&&void 0===t.prefix||(a.logger=a.logger.clone(t));return["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=Gz({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Ez(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(tz);St(Xz,"createInstance",(function(){return new Xz(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var $z=Xz.createInstance();$z.createInstance=Xz.createInstance;$z.createInstance,$z.init,$z.loadResources,$z.reloadResources,$z.use,$z.changeLanguage,$z.getFixedT,$z.t,$z.exists,$z.setDefaultNamespace,$z.hasLoadedNamespace,$z.loadNamespaces,$z.loadLanguages;const Kz=$z;var Qz=[],Jz=Qz.forEach,Zz=Qz.slice;var eW=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,tW=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*n*1e3)),r&&(i.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var i=encodeURIComponent(t),a="".concat(e,"=").concat(i);if(r.maxAge>0){var o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(o))}if(r.domain){if(!eW.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(r.domain)}if(r.path){if(!eW.test(r.path))throw new TypeError("option path is invalid");a+="; Path=".concat(r.path)}if(r.expires){if("function"!==typeof r.expires.toUTCString)throw new TypeError("option expires is invali
2d");a+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch("string"===typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a}(e,encodeURIComponent(t),i)},nW=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},rW={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!==typeof document){var n=nW(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!==typeof document&&tW(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},iW={name:"querystring",lookup:function(e){var t;if("undefined"!==typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),i=0;i<r.length;i++){var a=r[i].indexOf("=");if(a>0)r[i].substring(0,a)===e.lookupQuerystring&&(t=r[i].substring(a+1))}}return t}},aW=null,oW=function(){if(null!==aW)return aW;try{aW="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch($G){aW=!1}return aW},sW={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&oW()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&oW()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},lW=null,cW=function(){if(null!==lW)return lW;try{lW="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch($G){lW=!1}return lW},uW={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&cW()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&cW()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},dW={name:"navigator",lookup:function(e){var t=[];if("undefined"!==typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},hW={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!==typeof document?document.documentElement:null);return n&&"function"===typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},fW={name:"path",lookup:function(e){var t;if("undefined"!==typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"===typeof e.lookupFromPathIndex){if("string"!==typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},pW={name:"subdomain",lookup:function(e){var t="number"===typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!==typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var gW=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zo(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Ho(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Jz.call(Zz.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(rW),this.addDetector(iW),this.addDetector(sW),this.addDetector(uW),this.addDetector(dW),this.addDetector(hW),this.addDetector(fW),this.addDetector(pW)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"===typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();gW.type="languageDetector";const mW={eng:{translation:JSON.parse('{"Mega Menu":"Mega Menu","Search":"Search","Menu":"Menu","Dashboards":"Dashboards","Dashboard":"Dashboard","Default":"Default","Saas":"Saas","Crypto":"Crypto","Apps":"Apps","Calendar":"Calendar","New":"New","Chat":"Chat","Ecommerce":"Ecommerce","Products":"Products","Product Detail":"Product Detail","Orders":"Orders","Customers":"Customers","Cart":"Cart","Checkout":"Checkout","Shops":"Shops","Add Product":"Add Product","Wallet":"Wallet","Buy/Sell":"Buy/Sell","Exchange":"Exchange","Lending":"Lending","KYC Application":"KYC Application","ICO Landing":"ICO Landing","Email":"Email","Inbox":"Inbox","Read Email":"Read Email","Invoices":"Invoices","Invoice List":"Invoice List","Invoice Detail":"Invoice Detail","Projects":"Projects","Projects Grid":"Projects Grid","Projects List":"Projects List","Project Overview":"Project Overview","Create New":"Create New","Tasks":"Tasks","Task List":"Task List","Blog":"Blog","File Manager":"File Manager","Blog List":"Blog List","Blog Grid":"Blog Grid","Blog Details":"Blog Details","Templates":"Templates","Basic Action":"Basic Action","Alert Email"
2:"Alert Email","Billing Email":"Billing Email","Login 2":"Login 2","Register 2":"Register 2","Recover Password":"Recover Password","Recover Password 2":"Recover Password 2","Lock Screen 2":"Lock Screen 2","Confirm Mail":"Confirm Mail","Confirm Mail 2":"Confirm Mail 2","Email verification":"Email verification","Email verification 2":"Email verification 2","Two step verification":"Two Step verification","Two step verification 2":"Two Step verification 2","Kanban Board":"Kanban Board","Create Task":",Create Task","Contacts":"Contacts","User Grid":"User Grid","User List":"User List","Profile":"Profile","Authentication":"Authentication","Login":"Login","Register":"Register","Forget Password":"Forget Password","Utility":"Utility","Starter Page":"Starter Page","Maintenance":"Maintenance","Coming Soon":"Coming Soon","Timeline":"Timeline","FAQs":"FAQs","Pricing":"Pricing","Error 404":"Error 404","Error 500":"Error 500","Components":"Components","UI Elements":"UI Elements","Alerts":"Alerts","Buttons":"Buttons","Cards":"Cards","Carousel":"Carousel","Dropdowns":"Dropdowns","Grid":"Grid","Images":"Images","Lightbox":"Lightbox","Modals":"Modals","Range Slider":"Range Slider","Session Timeout":"Session Timeout","Progress Bars":"Progress Bars","Tabs & Accordions":"Tabs & Accordions","Typography":"Typography","Video":"Video","General":"General","Colors":"Colors","Rating":"Rating","Notifications":"Notifications","Image Cropper":"Image Cropper","Forms":"Forms","Form Elements":"Form Elements","Form Validation":"Form Validation","Form Layouts":"Form Layouts","Form Advanced":"Form Advanced","Form Editors":"Form Editors","Form File Upload":"Form File Upload","Form Xeditable":"Form Xeditable","Form Repeater":"Form Repeater","Form Wizard":"Form Wizard","Form Mask":"Form Mask","Tables":"Tables","Basic Tables":"Basic Tables","Data Tables":"Data Tables","Responsive Table":"Responsive Table","Editable Table":"Editable Table","Charts":"Charts","Apex charts":"Apex charts","Chartist Chart":"Chartist Chart","Chartjs Chart":"Chartjs Chart","E Chart":"E Chart","Sparkline Chart":"Sparkline Chart","Toast UI Chart":"Toast UI Chart","Icons":"Icons","Boxicons":"Boxicons","Material Design":"Material Design","Dripicons":"Dripicons","Font awesome":"Font awesome","Maps":"Maps","Google Maps":"Google Maps","Vector Maps":"Vector Maps","Level 1.1":"Level 1.1","Multi Level":"Multi Level","Level 1.2":"Level 1.2","Level 2.1":"Level 2.1","Level 2.2":"Level 2.2","My Wallet":"My Wallet","Settings":"Settings","Lock screen":"Lock screen","View all":"View all","Logout":"Logout","Your order is placed":"Your order is placed","It will seem like simplified English":"It will seem like simplified English","Your item is shipped":"Your item is shipped","Dummy text of the printing and typesetting industry.":"Dummy text of the printing and typesetting industry.","3 min ago":"3 min ago","As a skeptical Cambridge friend of mine occidental":"As a skeptical Cambridge friend of mine occidental","1 hours ago":"1 hours ago","UI Components":"UI Components","Applications":"Applications","Extra Pages":"Extra Pages","Horizontal layout":"Horizontal layout","Light Sidebar":"Light Sidebar","Compact Sidebar":"Compact Sidebar","Email Templates":"Email Templates","Basic Action Email":"Basic Action Email"}')}};localStorage.getItem("I18N_LANGUAGE")||localStorage.setItem("I18N_LANGUAGE","en"),Kz.use(gW).use(es).init({resources:mW,lng:localStorage.getItem("I18N_LANGUAGE")||"en",fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1}});const yW=Kz,bW={sp:{label:"Spanish",flag:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGgAAAwEBAQEAAAAAAAAAAAAAAAUIBgQBAv/EACkQAAIBAgQFBAMBAAAAAAAAAAECAwAEBQYREhUWVZTRExRRUiIxQXH/xAAaAQACAwEBAAAAAAAAAAAAAAAABgEDBwQC/8QAKREAAgEDAgUDBQEAAAAAAAAAAQIDAAQRIVQFEhMUkhWRkwYWNFNxgf/aAAwDAQACEQMRAD8AyzSSSMWZ2ZmbVmJJJJ/przc32aq04BgXRrDtk8V8PguW4Y5JrrDcNggiR3eR7eMKqqNST+NZfH9WxSukcdhKzuQqgMNSa2b1+ID8Z/epO3N9mo3N9mqlbC7yLiF/Lh8WHwRS+pshe5w4QpK2u3buK/idw0Aan/AMC6NYdsniui6+omsigueHSLzZ5SJFIOP5Xo8dVTyvZyqcA4bTQ/0VJe5vs1G5vs1VpwDAujWHbJ4o4BgXRrDtk8VyfeFvspPIVHr8W3f3qS9zfZq9WSSNgyuysraqwJBBH9FVnwDAujWHbJ4o4BgXRrDtk8UfeFvspPIUevRbZ/enFYLMM/D0ZbLD8QtPd3UbX07e3kUxsCm5VjaRwGAGm5K3tZWe1fFbO4w9cCTCgzBzcL6Tes4kDEuI2JJPyaW+ENbIl7JcdPRY+UO4U5LjUAnXFLkcqxTwBwSjNhsAkf7iluRsTytMbuC6ksPd2uIMDLd7bZxbFQFKkiMFtQdRWlshavcXN9Dhl5BLcNtmmlkt2icwnaoURO5BA+wFZmfIqJbotpiVuXnhMd0TAwOpZ9HTQjcdH0/KtLbPuugnLiWuxHT32sReZQw2hthLf5rTJxm74XcWkkNrFbo8VmoEglQu7FkY5xy5Oh0ql2w5m7h5Wm
2kcEBHVUQEkDBNOKKKKQKsooooooqT+aMx9cv8AuH80c0Zj65f9w/mubEY40v75ERVVbiVVAGgAB/Qrl2r8Cto7S120PxrT6IoSAehH4LTPmjMfXL/uH80c0Zj65f8AcP5pZtX4FG1fgUdpa7aH41qejD+mPwWmfNGY+uX/AHD+aOaMx9cv+4fzSzavwKNq/Ao7S120PxrR0Yf0x+C0z5ozH1y/7h/NHNGY+uX/AHD+aWbV+BXVh0cb39ijorK1xErAjUEE/o0dna7aH41qDFCBnoR+C1//2Q=="},gr:{label:"German",flag:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAAcCBQH/xAAlEAABAgILAQEAAAAAAAAAAAABAAIDUQUREhYXVFWjpNLiITL/xAAYAQEBAQEBAAAAAAAAAAAAAAAABwEDBf/EACURAAACCQUBAQAAAAAAAAAAAAABAgMEBREVVKPRFBZVkpTSUf/aAAwDAQACEQMRAD8AiL4sWI98SJFe57nEucSSST9JJK8tOmV3bs03kdyH2S7NN5Hch9l31bLVKe5D1JA/eEb/ADLMDhWnTKWnTK7t2abyO5D7Jdmm8juQ+yaxlqlPcgkD94Rv8yzA4Vp0ylp0yu7dmm8juQ+yXZpvI7kPsmsZapT3IJA/eEb/ADLMDhWnTK9ZFiw3siQ4r2va4FrgSCCPoIIXcuzTeR3IfZLs03kdyH2TVstUp7kEgfvCN/mWYFWRVjC8a5xfaYXjXOL7UunzqqraeBft0uKutLPkSdFWMLxrnF9phe
2Nc4vtJ86qq2ngN0uKutLPkSdFWMLxrnF9pheNc4vtJ86qq2ngN0uKutLPkSdFWMLxrnF9pheNc4vtJ86qq2ngN0uKutLPkVpFt/wC3iRSoSU5SRgZlER+Iwi3UJJUJLIBEYRbqEkqEkgERhFuoSRn7YJlaSMTIv0wiP//Z"},it:{label:"Italian",flag:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGwAAAgIDAQAAAAAAAAAAAAAAAAgCBwEDBAX/xAAjEAACAQMEAgMBAAAAAAAAAAABAgADBzYEEXSxUbISIUQW/8QAFwEBAQEBAAAAAAAAAAAAAAAABwYFCP/EACcRAAIAAgkEAwAAAAAAAAAAAAABAgMEBQYHETM0dII1NrHBEiEx/9oADAMBAAIRAxEAPwD1mdmYu7sWLbkk7kkyO58yMJzKT5ZtqSf6at9/gre6xi4ulqcmrcCr7rGLjRYXoS3Ez0atDyeTCLPdnKl+/wAVLtozEWa7OVrwqPbShrPTc4RGu77he1m+UVlufMyrupDK5UqdwQdiCJiEnh2aT+mjuhCEFzi4s21OTVuBV91jFxdLU5NW4FX3WMXGiwnQluJno1aFk8mEWa7OVrwqPbRmYs12crXhUe2lDWem5wiNd33C9rN8orKEISeHc7oT0NaiJrdWiIFUVXAAGwABmj4r4EGYocG1icWliWpyatwKvusYuLvazJq3Cq+yxiozWF6EtxM9GrQsnkyMWa7OVrwqPbRm4tF18qXhUu2lDWem5wiNd33A9rN8oq6E27DxOnRIj63So6AqatMEEbg7mTw6RR/GFvD8WJ//2Q=="},rs:{label:"Russian",flag:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGQABAAMBAQAAAAAAAAAAAAAAAAMGBwQI/8QAIxAAAgACCwEAAAAAAAAAAAAAAAECBAcRFhdRVFajpNPiA//EABoBAQACAwEAAAAAAAAAAAAAAAABBgIEBwj/xAAmEQAAAwUJAQEAAAAAAAAAAAAAAQIDBhZUowQRExRSVZPR0hIx/9oADAMBAAIRAxEAPwD3UDLL6qM9S8Oa6xfVRnqXhzXWbeQt0k341dDDERrIamDLL6qM9S8Oa6xfVRnqXhzXWMhbpJvxq6DERrIamDLL6qM9S8Oa6xfVRnqXhzXWMhbpJvxq6DERrIamDLL6qM9S8Oa6xfVRnqXhzXWMhbpJvxq6DERrIeBgXOySz+16Fkln9r0WmLHfn6TXyLBAD27TXY+xTAXOySz+16Fkln9r0Isd+fpNfIQA9u012PsUwFzsks/tehZJZ/a9CLHfn6TXyEAPbtNdj7FMBc7JLP7XoWSWf2vQix35+k18hAD27TXY+xcwd07BBBOzUEECUK+v0SSVSVTOapYHGR6SSv6Iju/SIxECWpYCpYATeIgS1LAVLABeIgS1LA6ZKCCOdlYI4E4X9fmmmq062BCl/KTO78K8f//Z"},en:{label:"English",flag:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/2wBDAQQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFz/wAARCAAqAEADASIAAhEBAxEB/8QAGwAAAgIDAQAAAAAAAAAAAAAAAAcDBgEEBQj/xAA1EAABAgIHBwIFAwUAAAAAAAABAgQAAwUGBxESFlYTFBVRk6HTMVciI5GS0hdBYiElRVKC/8QAGgEAAgMBAQAAAAAAAAAAAAAAAAYBBQcDBP/EADERAAAEAwMKBQUAAAAAAAAAAAABAgMEBRESIZETFBUWUVRWkpPSBjIzZoExQVNk0f/aAAwDAQACEQMRAD8AoRouTPo5m9mKnNJ0yS7nrcOydi8VLWAJbYpQSV88X7x0zV9nxZcnc6RwCcuVwr/KACRtNqRgw4L+0RtEhtQzadMG6hwwfoTOegOJLoiYkYGyMB2MwemOO0W39wNF7k62ofTF8Mxp4okbpftN6wXGX++CNHU4ojWRKOlFl8VFeK23oNotqsrcmbj3A7/JxFoz3kkLQ6vReFD+MWWqNDUPx+r8mlHDpk0cSX22fkjd5+xKwhTclIOH+lxjUbqQuXIfCdLmIbIohK3siQENGhxH4XkjB89Q/wBo6lW10QxrDVt/TlFOXFGzUUkpSpaxu7n4lpC20v5eySk+qY8UzWapfHktRWci5W15fTreLCUm4U0lxtG7lM5as5EiNytovJauqHXlazfWk76p/CDK1m+tJ31T+EGYbK9KPPtHlgzDZXpR59o8sZRRjZCYrG1VnXuTkhAZWs31pO+qfwjKas2cJIUmuk4KBvBBSCCP+IxmGyvSjz7R5YMw2V6UefaPLBRj9TFYKzo7j1k5IQI9FS6/MWqGrGpdJSXCpLhs8nYDOTPlzFAgJSQQjliTG2aqVzLhUn9P6T4Nty4Sw+PGJhlbPFt8OP8AlHpHglrOp2HbwwcEtZ1Ow7eGHHWmIP6y06/P9GZaswnEkr6jnYPNMuq9ooSifOqdSUykWwaJYuRKwiQlqSQlSAnDNv5qixVQoGu9DViomnBUN4HTdDsuVzQrZz1uMVygj0Rdf6CHpwS1nU7Dt4YOCWs6nYdvDHJ/xJEPsvM6PUjKINFpJXlUqbR2h/DsEw+y8ufyp1KFpUaFuu2VU+x0QIs0V90IjprgzRX3QiOmuJeCWs6nYdvDBwS1nU7Dt4YW6vbYrlQGazKPbvXihFmivuhEdNcGaK+6ER01xLwS1nU7Dt4YOCWs6nYdvDBV7bFcqAWZR7d68UK1lep3uIrrIgyvU73EV1kQqXqEIeukIQAkTZgAAuAuMa1w5RW5w3uyMVB/TI5goiPWOLvL8THYG/lep3uIrrIgyvU73EV1kQoLhyguHKDOW92RioToGYcRxfSY7A38r1O9xFdZEGV6ne4iusiFBcOUFw5QZy3uyMVA0DMOI4vpMdgb+V6ne4iusiDK9TvcRXWRCguHKNlkhC3rVC0ApM2WCCLwbzBnDe7IxUIVI5glJnrHF3FX0mOwf//Z"}},vW=(ds()((()=>{const[e,t]=(0,r.useState)(""),[n,i]=(0,r.useState)(!1);(0,r.useEffect)((()=>{const e=localStorage.getItem("I18N_LANGUAGE");t(e)}),[]);return(0,Ly.jsx)(Ly.Fragment,{children:(0,Ly.jsxs)(oF,{isOpen:n,toggle:()=>{i(!n)},className:"d-none d-md-block ms-2",children:[(0,Ly.jsxs)(FF,{className:"btn header-item waves-effect",tag:"button",children:[(0,Ly.jsx)("img",{src:(0,$_.get)(bW,`${e}.flag`),alt:"Veltrix",height:"16",className:"me-2"})," ",(0,$_.get)(bW,`${e}.label`)," ",(0,Ly.jsx)("span",{className:"mdi mdi-chevron-down"})]}),(0,Ly.jsx)(AU,{className:"language-switch dropdown-menu-end",children:(0,$_.map)(Object.keys(bW),(n=>(0,Ly.jsxs)(jU,{onClick:()=>{return e=n,yW.changeLanguage(e),localStorage.setItem("I18N_LANGUAGE",e),void t(e);var e},className:"notify-item "+(e===n?"active":"none"),children:[(0,Ly.jsx)("img",{src:(0,$_.get)(bW,`${n}.flag`),alt:"Veltrix",className:"me-2",height:"12"}),(0,Ly.jsx)("span",{className:"align-middle",children:(0,$_.get)(bW,`${n}.label`)})]},n)))})]})})})),ds()((e=>{const[t,n]=(0,r.useState)(!1);return(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsxs)(oF,{isOpen:t,toggle:()=>n(!t),className:"dropdown d-inline-block",tag:"li",children:[(0,Ly.jsxs)(FF,{className:"btn header-item noti-icon waves-effect",tag:"button",id:"page-header-notifications-dropdown",children:[(0,Ly.jsx)("i",{className:"mdi mdi-bell-outline"}),(0,Ly.jsx)("span",{className:"badge bg-danger rounded-pill",children:"3"})]}),(0,Ly.jsxs)(AU,{className:"dropdown-menu dropdown-menu-lg dropdown-menu-end p-0",children:[(0,Ly.jsx)("div",{className:"p-3",children:(0,Ly.jsx)(zr,{className:"align-items-center",children:(0,Ly.jsx)(Jr,{children:(0,Ly.jsxs)("h6",{className:"m-0 font-size-16",children:[" ",e.t("Notifications")," (258)"]})})})}),(0,Ly.jsxs)(jo,{style:{height:"230px"},children:[(0,Ly.jsx)(HU,{to:"#",className:"text-reset notification-item",children:(0,Ly.jsxs)("div",{className:"d-flex",children:[(0,Ly.jsx)("div",{className:"avatar-xs me-3",children:(0,Ly.jsx)("span",{className:"avatar-title bg-success rounded-circle font-size-16",children:(0,Ly.jsx)("i",{className:"mdi mdi-cart-outline"})})}),(0,Ly.jsxs)("div",{className:"flex-1",children:[(0,Ly.jsx)("h6",{className:"mt-0 mb-1",children:"Your order is placed"}),(0,Ly.jsx)("div",{className:"font-size-12 text-muted",children:(0,Ly.jsx)("p",{className:"mb-1",children:"Dummy text of the printing and typesetting industry."})})]})]})}),(0,Ly.jsx)(HU,{to:"#",className:"text-reset notification-item",children:(0,Ly.jsxs)("div",{className:"d-flex",children:[(0,Ly.jsx)("div",{className:"avatar-xs me-3",children:(0,Ly.jsx)("span",{className:"avatar-title bg-warning rounded-circle font-size-16",children:(0,Ly.jsx)("i",{className:"mdi mdi-message-text-outline"})})}),(0,Ly.jsxs)("div",{className:"flex-1",children:[(0,Ly.jsx)("h6",{className:"mt-0 mb-1",children:"New Message received"}),(0,Ly.jsx)("div",{className:"font-size-12 text-muted",children:(0,Ly.jsx)("p",{className:"mb-1",children:"You have 87 unread messages"})})]})]})}),(0,Ly.jsx)(HU,{to:"#",className:"text-reset notification-item",children:(0,Ly.jsxs)("div",{className:"d-flex",children:[(0,Ly.jsx)("div",{className:"avatar-xs me-3",children:(0,Ly.jsx)("span",{className:"avatar-title bg-info rounded-circle font-size-16",children:(0,Ly.jsx)("i",{className:"mdi mdi-glass-cocktail"})})}),(0,Ly.jsxs)("div",{className:"flex-1",children:[(0,Ly.jsx)("h6",{className:"mt-0 mb-1",children:"Your item is shipped"}),(0,Ly.jsx)("div",{className:"font-size-12 text-muted",children:(0,Ly.jsx)("p",{className:"mb-1",children:"It is a long established fact that a reader will"})})]})]})}),(0,Ly.jsx)(HU,{to:"#",className:"text-reset notification-item",children:(0,Ly.jsxs)("div",{className:"d-flex",children:[(0,Ly.jsx)("div",{className:"avatar-xs me-3",children:(0,Ly.jsx)("span",{className:"avatar-title bg-primary rounded-circle font-size-16",children:(0,Ly.jsx)("i",{className:"mdi mdi-cart-outline"})})}),(0,Ly.jsxs)("div",{className:"flex-1",children:[(0,Ly.jsx)("h6",{className:"mt-0 mb-1",children:"Your order is placed"}),(0,Ly.jsx)("div",{className:"font-size-12 text-muted",children:(0,Ly.jsx)("p",{className:"mb-1",children:"Dummy text of the printing and typesetting industry."})})]})]})}),(0,Ly.jsx)(HU,{to:"#",className:"text-reset notification-item",children:(0,Ly.jsxs)("div",{className:"d-flex",children:[(0,Ly.jsx)("div",{className:"avatar-xs me-3",children:(0,Ly.jsx)("span",{className:"avatar-title bg-danger rounded-circle font-size-16",children:(0,Ly.jsx)("i",{className:"mdi mdi-message-text-outline"})})}),(0,Ly.jsxs)("div",{className:"flex-1",children:[(0,Ly.jsx)("h6",{className:"mt-0 mb-1",children:"New Message received"}),(0,Ly.jsx)("div",{className:"font-size-12 text-muted",children:(0,Ly.jsx)("p",{className:"mb-1",children:"You have 87 unread messages"})})]})]})})]}),(0,Ly.jsx)("div",{className:"p-2 border-top d-grid",children:(0,Ly.jsxs)(HU,{className:"btn btn-sm btn-link font-size-14 btn-block text-center",to:"#",children:[(0,Ly.jsx)("i",{className:"mdi mdi-arrow-right-circle me-1"})," ",e.t("View all")," "]})})]})]})})})),OB(it((e=>{const{error:t,success:n}=e.Profile;return{error:t,success:n}}),{})(ds()((e=>{const[t,n]=(0,r.useState)(!1),[i,a]=(0,r.useState)("Admin");return(0,r.useEffect)((()=>{localStorage.getItem("authUser")}),[e.success]),(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsxs)(oF,{isOpen:t,toggle:()=>n(!t),className:"d-inline-block",children:[(0,Ly.jsx)(FF,{className:"btn header-item waves-effect",id:"page-header-user-dropdown",tag:"button",children:(0,Ly.jsx)("img",{className:"rounded-circle header-profile-user",src:"data:image/jpeg;
2base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAMDAwMDAwQEBAQFBQUFBQcHBgYHBwsICQgJCAsRCwwLCwwLEQ8SDw4PEg8bFRMTFRsfGhkaHyYiIiYwLTA+PlQBAwMDAwMDBAQEBAUFBQUFBwcGBgcHCwgJCAkICxELDAsLDAsRDxIPDg8SDxsVExMVGx8aGRofJiIiJjAtMD4+VP/CABEIAIAAgAMBIgACEQEDEQH/xAAdAAABBQEBAQEAAAAAAAAAAAAEAwUGBwgCCQEA/9oACAEBAAAAAPNRVRVUFlJcnfjlNNBJQgjtkb/zQ+dzbhJIYfogqGtX1OTMwVhPiaQwv4kWvPtg7X1LjvGyFijoDi/iGWBzjWV/3REsvY0n4qI4nBaFV2lf9oVZPrazBAGpAUVMwiEgz6ytOQTX9E5NiQwwaBhasIumY73psjOlOjjCCDllFxe2HVLR0GvuLZVrwUMcubt9RvEx50K6WF6AnZz866ZW0nOKQpJleZRfMC03uIWQoeeNJ3f1S9NxIMmUKer8fsFlnhnmPabJEargrV1HNKy6+7V7dBfO21FY7B61aHcgt61TOTA/mFJ4k8RyIMMs64ldoFKto+SJt8J4+MLdNGiTStgKgcp//8QAGgEAAgMBAQAAAAAAAAAAAAAAAAQBAwUCBv/aAAgBAhAAAAAkgADjIddAMLOr9Q0Ahhc6+uHaaOd6JutmxVBPdYiYqq5YummeYOpn/8QAGgEAAgMBAQAAAAAAAAAAAAAAAAECBAUGA//aAAgBAxAAAABtJyAU9vPosI9Lsy46kC1eosczgiV7a0+QpvzPTQ0MPxISlKXmotgAf//EACgQAAEEAgICAQQCAwAAAAAAAAIBAwQFAAYHERITIQgUIjEVFhAlMv/aAAgBAQABCABBxG8RrBaxGuskzWmPwaKbKbcUlW5P4QGZ7RAJH6kIUVFZXPVitfOE1it4oYIJghghho2yCuOPT1fP5V5lVJGykxUaUM+e1ztH6/zSmtCZdFh5WkxWsVpcJrCaX5wm+sEMFvBBU7XLew98nwbEhJV8zd+EQQbM16AtYsRrgkKL0mEjjGIPar1rs05kUmzUMUMIMIf3hj84Ad4g5aSUiQHC/wAIKkqImtcfWd84HlxtwlQRRiuzLTjnQ36pIb/I/A9Kbst+DeanKqZBtLq4OtWyt4oJhCmEOEH7wwwBxB+M2RgirxcH5zUq1h6QDz2oNwlBo0pbImW20Yp48qdFRyRfyqN05LMTkXiyHdVUmTC1xuU5cl2Y4QLiguGC/OGC4CYA5ZxSlVslsV77XNO9BRw89f2DUqZRWUO+wXIZpAn3O07U6jcuoj6HQwxQtdF2zgk4Vdx9Ej8t2dYdpAeqrCXBeXCwv1h/pcBMDA/aZsdI3HRJMeIDhstilc3o8cG239fjPwdkqiPkThGXJbfKl4346chWZhEntxqiCLIUpRi3p90tzsI1ztdzPjmGEKIuGmH8Jja43g99fHrB1smzqYopMfgPaRo9iBj6NsfWgeroywZT+ya1TyGf7jb6/cyYc205AGe2rab7cTIielkv18Gq4RY4WGXxgLgLgLgZdrEamsSR0vbVhCDZ73tvoRqeOtcnbtbRIsCnvJUGv0uON9r1q1IB14uHtc1Dd4exxrve/o+sgcOXpW2ca77pKkl6pgQ9i4qJhl+8BVwVRE7yk1C1s2/eezw0rGVajvRvDszqJbjRek7Y5kisFQ1Z+Y24Qv6qzQynxmRNneitRTkM/TbcOhtttHxiUig0Kq81MjuNOckfTDx3u4nLgcn8L7xxbJ/2hlkNh+Y+DMfTeLArWvv7a2jOsQfINpitH2a2jAi6q4x3707jXRtGsaRWuxWpbTzsXkJoITcVNg2Ry4fQc+mSrd9FteLs1n/FRYJD/PxRc9bsW3GS2ijZNwbSG/Dlc3/TGsAZN/o/ElM5DMLdY16ESV5Hbo+57ULYYvTaqlzEVHC6eYNnpwZzPmKOt1dkSfigTeg7WvKZf20Sog8VUddqmvV4u7rsNlc3bE0/cE6rACgS7CsNkYbOzi2qNzUmxiQza0+a2MEWlUYlnEOJLpJD0iHKgStgT3GqZbxUIiVJKsMIaONPov5IVOzK7cr3Jc1TVktDjU/HdcVjZVH1G7jVuNtTYe3ruuqpftUVj9xTtnhSEZQjR2f6/BxDsAdFZKUEv7Vlg8gWbbLbpE1IBrZzI5wovZLasJ+SrPiCbvZR4P8A123Sj7hZdWlah2Tcp2HFdnvG65A1qN5E5I1+QDOktMBpduLtWgrLt0FUHLTYCGEgo5YkTDMBrWrZgYcRHo0mVVS1aCTfRSk1rzUx/wAnREbCQDxEAzGE8kXInSS5KKk6K/Vm8DcNHYwulrbrLjrjKukrVc84NJYj/WhFdI2AGZQxCn7GAuL5PbUzK+1cB3ZFneyImtTgivP1M5m1fhNrAmWVxGnQjRyPtQSq5p1G56J0JSZbfa5FMUmvqrUr1nIFIcpTbRSdltwbph5uTPV2I4I0dyP8AaKV8Ve6zLa2HZW3zFWouySm2gZFi2GBGD7r/8QANxAAAgECBAMFBgUDBQAAAAAAAQIDABEEEiExQVFhBRMiMnEQIzBCYoEGIDORoRRSckNTY7HR/9oACAEBAAk/APyaUheQ7DhSgdKjA5k02QE252NWI4Gh8AVZUXjR7uIbgeY+tQsSTq9+FAu/C+329gTOnhKLuw5mm9y5sL/Ka1+CxMcfl9eJpjz9auo4ikLegqBh3moJoZc9gxtr7Dd4SPUqfgeZxkX1PsFya91G2uoqCN1Yi4YXNdlwOlrK6ixNRdyqm4QbrRBCsbHnQNmjcH7UPz/JIM3sANm0vtQQMtrgUxYs2l6xaxxgeLOQo9LmsVhJGUZXyOCfvRaLGIGePkxAvagbxo4m6ZTb4GrFLj1XWudMBbcmsZAWP1bGo0MgU5SN2rtOfCQhrCNHKoB151+L8HPjnsTh3luR0Nr1GVjC+Fxchh0NRSdzi17/AA7r5AZN1YUCJMLO8TA/SfgIcpJEgGw60+WM2LjnX9Zisa9gkcChgrNwJNRzxYaTErDLHKuVl1409jkWQxKwVmU6+Cvw7hsPPK9p5plMmQclDVlYCOzaCorxnCEPLYWiRGuzGv0Z8ZIY+qjwg/e3wNVkFmHrRylXIFz+1GAIWz5jq4NKc/eq2cDNYqbkk1KjTS4VImbYXA42pGRopijEeU2pvEdBap3iOKzJKVbKXS+q0NB8GZVmsFdP7hwJpfGOJO9RhlIdH0BIDi1YzE4XEh1RJN1W1dpxvi4xdp5POzsdb21pRZPK3A12Zh+0RngW0g8SCx1jcaqa7SjxMLi4wGMbJInRJK/D2PwiAn32QyRG31rTAjob/kNI2Hw+4dhqw5gVm6sTcmtXbgdaGq6oeYopJexBbbqDXaT4GAnxLCoBt0Y12a8kcS2bFYp2mZzz8elKsAFrqNAw6Cm91P2YZXN9ijaUPOvhpFkjOkkbgMrD0NYYdh9osCy4jCAKjt9cdYPv+z3Noe0cOC8J/wAuKGtjtULyyOQFRFuTekGIxSqGEAsUi9eZrzKgLi393/lfYVqa3J35UcrLs3BhUAnjJBK1GsUKr5VQCjaNTtUeZcVLHgsKCPOiG7tTIshlUANyOhtTGKa3eK3ysvQ1Ym17hqjimimQrJFIgZXB4EGoWeEFnxHZI1ZObQcxzWm97MDHFGdivIngzcKOSDEsDHLJoqnYqw5ipTl1NhS6M1LxNDY7UTob2O46UzKeIvTsfvtQbvcXKI/D8qndvQVKkeD7Pw4CLu7v8z2oNFhkmHcx3/0l2LDmas0ZUBb/AFVi2KKSpR/EosaiKlmyrIniXnqNxUqsiePzWsQKQyiOMmSFfM8Q8zJ9ce4FMk0WKivHiU8r8nXk3PrTFsV2dKYZSd2XdH+4o3INCntyUDWkAHG4uSKJinXUxOdH/wATQYSZrFdjflapi3bMiF4Yk1Ia3u0/m7Vh8J2giWBBBhf91rCy4UoxURSWvcb2I3FMbhFP7USM7A0wFzGb9RSgyyylgFbKuVD81OY1UrIsy7wnhKOY4MOVKkeGkktiI11GDnbUSJ/xSbiiFOLwFn6tCdD+1bsSaGlqF6uVV7H0NFkzD3TjYjlUonaJbxtazZuT+lMzG5N21oyEUbAQCj5UsafQ/wDYo3a4VPU1L3byQ2mn/wBmFNXb1NOqQye7jmbaKQaGN/pPA0l7RFRhzr3sJ1MfW26VI4yOyZW0YI42ud7fxRBGlq1tQq+W96KCXDa2PEbULsUuSTa5NecX0rbY0fkI/insZUksPSmyiN2uTUgMZbNT2hZlOMe/ny6rEDyG7UVSLENYMwuI5l0BI5NQd4YXvG4N5sM/NT8y9KZExSkywyqPdzW1JB+VjxFNeQrYLxFHU7mjWt1NE2YG4pbhQNTTWz3zCmIQkm1N5JMtNdoJyxG1141+jiTnV+WYbGmGdWZY7dakMakXsNZHP0rxNf/EACcRAAEEAgECBQUAAAAAAAAAAAEAAgMRBBIhIDEFEyJBcRAUMDKB/9oACAECAQE/AEER+CWWOJtvdSk8XbZ0ZwPcrEzossenuOrOZLNIRRIUWJbjudQE9n2cnmROLeQaI7rHy2TvIHfRrh/emd7GEhxI+FkSSAte3takvIOzrJC8Lx/LuYnlzda+OgMJFrJhDxabCzQggWFqGO0HueSvDtX4rRX6khGJEUaUMY1Din1ScFJEEMcA+i7KxIRDA1q1CLCRRTCNaRqk7siyxyhEAeAmbji+EDf0YUDyj0B1Bbr/xAApEQACAgIABQMDBQAAAAAAAAABAgADBBEFEyAhMRBBURIiMjBScpLB/9oACAEDAQE/AAPTfpvpMqotvb6a1LGV8Ds0OY3c+0zeH34R0/j5g6D5nDjVSinaj53LcsVoAn3k+NRSubTy7UQ7UgEHeplYNmLWlh8M7r/XpxKmtKlADvydb1MLHrYPUw3/AIZStOJtQQoB8TjGdzFXFA/By5P8ujfeYWS1DgfMS+x7xpyoYd5ksPz2vYe0zxrJY/uAM3NxmMUGCUZDArHzHcD6j2EyLObazdAggbXgzmv7mEg+hmv0P//Z",alt:"Header Avatar"})}),(0,Ly.jsxs)(AU,{className:"dropdown-menu-end",children:[(0,Ly.jsxs)(jU,{tag:"a",href:"/profile",children:[" ",(0,Ly.jsx)("i",{className:"bx bx-user font-size-16 align-middle me-1"}),e.t("Profile")," "]}),(0,Ly.jsxs)(jU,{tag:"a",href:"auth-lock-screen",children:[(0,Ly.jsx)("i",{className:"bx bx-lock-open font-size-16 align-middle me-1"}),e.t("Lock screen")]}),(0,Ly.jsx)("div",{className:"dropdown-divider"}),(0,Ly.jsxs)(HU,{to:"/logout",className:"dropdown-item",children:[(0,Ly.jsx)("i",{className:"bx bx-power-off font-size-16 align-middle me-1 text-danger"}),(0,Ly.jsx)("span",{children:e.t("Logout")})]})]})]})})})))),n.p+"static/media/logo-dark.122de699baf8db6548e5.png"),xW="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABQCAYAAADBTPF9AAAABGdBTUEAALGPC/xhBQAACklpQ0NQc1JHQiBJRUM2MTk2Ni0yLjEAAEiJnVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwX
2FAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhELTBMTgN5+ASXIHrcBcGYBiewhi8hgkEQcgIE2EhOogRYo7YIs4IF5mOBCJhSDSSgKQg6YgUUSLFyHKkAqlCapFdSCPyLXIUOY1cQPqQ28ggMor8irxHMZSBslED1AJ1QLmoHxqKxqBz0XQ0D12AlqJr0Rq0Hj2AtqKn0UvodXQAfYqOY4DRMQ5mjNlhXIyHRWCJWBomxxZj5Vg1Vo81Yx1YN3YVG8CeYe8IJAKLgBPsCF6EEMJsgpCQR1hMWEOoJewjtBK6CFcJg4Qxwicik6hPtCV6EvnEeGI6sZBYRqwm7iEeIZ4lXicOE1+TSCQOyZLkTgohJZAySQtJa0jbSC2kU6Q+0hBpnEwm65Btyd7kCLKArCCXkbeQD5BPkvvJw+S3FDrFiOJMCaIkUqSUEko1ZT/lBKWfMkKZoKpRzame1AiqiDqfWkltoHZQL1OHqRM0dZolzZsWQ8ukLaPV0JppZ2n3aC/pdLoJ3YMeRZfQl9Jr6Afp5+mD9HcMDYYNg8dIYigZaxl7GacYtxkvmUymBdOXmchUMNcyG5lnmA+Yb1VYKvYqfBWRyhKVOpVWlX6V56pUVXNVP9V5qgtUq1UPq15WfaZGVbNQ46kJ1Bar1akdVbupNq7OUndSj1DPUV+jvl/9gvpjDbKGhUaghkijVGO3xhmNIRbGMmXxWELWclYD6yxrmE1iW7L57Ex2Bfsbdi97TFNDc6pmrGaRZp3mcc0BDsax4PA52ZxKziHODc57LQMtPy2x1mqtZq1+rTfaetq+2mLtcu0W7eva73VwnUCdLJ31Om0693UJuja6UbqFutt1z+o+02PreekJ9cr1Dund0Uf1bfSj9Rfq79bv0R83MDQINpAZbDE4Y/DMkGPoa5hpuNHwhOGoEctoupHEaKPRSaMnuCbuh2fjNXgXPmasbxxirDTeZdxrPGFiaTLbpMSkxeS+Kc2Ua5pmutG003TMzMgs3KzYrMnsjjnVnGueYb7ZvNv8jYWlRZzFSos2i8eW2pZ8ywWWTZb3rJhWPlZ5VvVW16xJ1lzrLOtt1ldsUBtXmwybOpvLtqitm63Edptt3xTiFI8p0in1U27aMez87ArsmuwG7Tn2YfYl9m32zx3MHBId1jt0O3xydHXMdmxwvOuk4TTDqcSpw+lXZxtnoXOd8zUXpkuQyxKXdpcXU22niqdun3rLleUa7rrStdP1o5u7m9yt2W3U3cw9xX2r+00umxvJXcM970H08PdY4nHM452nm6fC85DnL152Xlle+70eT7OcJp7WMG3I28Rb4L3Le2A6Pj1l+s7pAz7GPgKfep+Hvqa+It89viN+1n6Zfgf8nvs7+sv9j/i/4XnyFvFOBWABwQHlAb2BGoGzA2sDHwSZBKUHNQWNBbsGLww+FUIMCQ1ZH3KTb8AX8hv5YzPcZyya0RXKCJ0VWhv6MMwmTB7WEY6GzwjfEH5vpvlM6cy2CIjgR2yIuB9pGZkX+X0UKSoyqi7qUbRTdHF09yzWrORZ+2e9jvGPqYy5O9tqtnJ2Z6xqbFJsY+ybuIC4qriBeIf4RfGXEnQTJAntieTE2MQ9ieNzAudsmjOc5JpUlnRjruXcorkX5unOy553PFk1WZB8OIWYEpeyP+WDIEJQLxhP5aduTR0T8oSbhU9FvqKNolGxt7hKPJLmnVaV9jjdO31D+miGT0Z1xjMJT1IreZEZkrkj801WRNberM/ZcdktOZSclJyjUg1plrQr1zC3KLdPZisrkw3keeZtyhuTh8r35CP5c/PbFWyFTNGjtFKuUA4WTC+oK3hbGFt4uEi9SFrUM99m/ur5IwuCFny9kLBQuLCz2Lh4WfHgIr9FuxYji1MXdy4xXVK6ZHhp8NJ9y2jLspb9UOJYUlXyannc8o5Sg9KlpUMrglc0lamUycturvRauWMVYZVkVe9ql9VbVn8qF5VfrHCsqK74sEa45uJXTl/VfPV5bdra3kq3yu3rSOuk626s91m/r0q9akHV0IbwDa0b8Y3lG19tSt50oXpq9Y7NtM3KzQM1YTXtW8y2rNvyoTaj9nqdf13LVv2tq7e+2Sba1r/dd3vzDoMdFTve75TsvLUreFdrvUV99W7S7oLdjxpiG7q/5n7duEd3T8Wej3ulewf2Re/ranRvbNyvv7+yCW1SNo0eSDpw5ZuAb9qb7Zp3tXBaKg7CQeXBJ9+mfHvjUOihzsPcw83fmX+39QjrSHkr0jq/dawto22gPaG97+iMo50dXh1Hvrf/fu8x42N1xzWPV56gnSg98fnkgpPjp2Snnp1OPz3Umdx590z8mWtdUV29Z0PPnj8XdO5Mt1/3yfPe549d8Lxw9CL3Ytslt0utPa49R35w/eFIr1tv62X3y+1XPK509E3rO9Hv03/6asDVc9f41y5dn3m978bsG7duJt0cuCW69fh29u0XdwruTNxdeo94r/y+2v3qB/oP6n+0/rFlwG3g+GDAYM/DWQ/vDgmHnv6U/9OH4dJHzEfVI0YjjY+dHx8bDRq98mTOk+GnsqcTz8p+Vv9563Or59/94vtLz1j82PAL+YvPv655qfNy76uprzrHI8cfvM55PfGm/K3O233vuO+638e9H5ko/ED+UPPR+mPHp9BP9z7nfP78L/eE8/stRzjPAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAJcEhZcwAACxMAAAsTAQCanBgAABFfSURBVHic7Z17vBxFlce/1XMvSQwJCRDArLosyqIIuEGTABoSiSRBSUKISQgQgVXYdWXlIav4AEXE54LKuqwbWHkj5ElMkEfkkYSXgLJZRCCuuqIgEUhCHoTkznTtH7/pe/vOVPV09/Tcm/v53N/nk0/mTldXV9epOnXO75yqMdZa+tF3EfR2A/rRHPoF2MfRL8A+jn4B9nH0C7CPo1+AfRxt0YcBC6+hDeiwYDG0WQgxlK0+G6DDGgxQshBaqGAoWY2CijUQXQPK1hAAJWsoY8BG18yg0DIrgBnATaE1K4Ad0fPC6rOMNYTV+wyANVjAWABD5P2Yanup/h1U64n+ptoufQ46v++8L4z+Np23YGP3VZ9X973qLmHNaOB84Cks3wOzReVq7ou3JbrmLRfEnhe/r6ucvXx8dwH2EEYBFwBzgBIwGbgRuBxY18NtaRZvBj4B/DMwAvgocDTwHeB+oKMnGtFTKnR/4GJrWAOcjIQHMAg4C73whahTdnXsDpwO3AV8FQkPNI0+VP3++8BhPdGYVgtwCHrZ24FLgMGeciOBbwALgFPp1Cm7HI4DbgCuxS8gA3wSuBP4HPBXrWxQKwU4BQnuWuA9Ke/5AOqgJcC41jQrF94JzAduQ2t3GowEvgksB86gRYOyFQI8ALgZuAU4Jsf9BjgBWAz8AHhLYS3LjiHAF4CVwJnVv11YDTzvuTYK+I9qHUcW3cAiBTgc+CLwGFrnhjvKvAHsoMveir57w1F2BPAp4Mnq/0MLbGsjDAKmA48DX8M/iJ5DxssUYAxwNbDFUW4AMBG4F/hPNDsLQREC3B1ZlWvQy+7lKbcKmAf8N93VyU+Avwd+4blvbzQT70FW64CmW5yMMUiD3A4chFv1/QG4FBiNNMV2YD0yyI6vtrXsuC8y2n6JrNd9m21sswI8FrjOwq0W3u0p8xvgIgNTA8siuizQCBXgx+jFLwFe9NQzFll484Gjmmy3C+9E7sxK/OvcNjSDpgIX455tq9GM/CTwc089+wJXAguBufmbnF+ABwPfRcbGTE+Z14Efos74moEtgWbTm2rK7QEMs/AS8JVq+R8lPPtjwFLg28Bbc7Y/jsHAeVZ1no9fVS8HZgP/CDzVoE4LXIPe5avAC55y45CtcAswIVOrq8gqwD2Qv7YCOBepTxfuQOruU8DThoghoUIn99GJChCGXYrqMdRJU4H7PPXvA/wLmpGfBnbL+B4RPlqt4wo0A114GlmR84CfZqz/z8CX0Yycj9+5n4ss3CuAv87ygLQC3A1ZhquBy4C/8ZRbh0bpHOBB6oXlhQVC02nbdKBBMh34J+C3ntsOpkvtTSY9s3Q4Ul83INfFhQ1IpR8NXAe8lrJuF34FnI0c/TVo0NZiH+C86vWz8U+ObmgkQAMcAtyEVMxhnnteRIIdizpmW7yCUmox1mErMsFHI3W83lGmDXXyXcjYOTShvreitesRNPsGOcpsQYbV+5FK35Cv6XXoQBNgPNIav09o47+hQXkMMDCp0iQBvgM5oo9gmOXxQl9Ho/PDwJeATbUFbJjRfxXLXIuNyCg4AViGXxX9A+qkz9F9fRyKGKF70azyqdw1wGlo5j+breGpYYGrsIxD6/hLnnJHoPb+EHivrzKXAAdarW9Lgc/in8p3It19BrDWVcDYHOSDQhG+q48io+kUpKJdGIYG3mKkyicDtyJG6EDPPeuQqp6G3rsn8AIaaLOQhvPAnIY0wmU4/Mf4mhEgq+k8pD58WId4y2VoZtTBojBSkHX2RfcHQGi7h3i6UEFqeg3q8EuA/RzVjEZC2w7s6XnUTiTsm+m9aMiDyHC7GbE+LgpxZPXaVOTGXI3a3m0Gfge4Hr/wtiBHfQJSm07hRfBPosLwErLsjkQ+1Q5HmUHUC89Wyy6p3vtlej+UtROt4dORo/88biLgUOS+zY++CGouuqIFW9FsOxK4CJnGiQhCk099xmADi003Cv4PqfyJwN24BRnHZrSWzkSMyK6EjWh2HQgs8pRpJxYJiQvQZSY/iRznE5A/1BjWQFgQxRpk8kIeoosBeTKh7ADk002k5wPaXfCP73cgP3hUwt2bog/xnq6tchu
2KzWVb1JuceXUIMuvia4FJSN3/wXF9ICLbf4bYkqT1vicxDEX4f4ICwgcllO3sZO9UsVA22B2lDIuZtTnchkYIwjxCfAWp+2lISL6pfBpSVUXRcnlxIhLc1cC7styYpOtKQFuAxZgQG4QECcI0QFBpUXw4v0X0P4jOm4AsPRf2Q7TcamRA5KXl8uBvkbtzHf4A9lbgVV8FmXq8FIS0lVwsEATloGnDxQdrLDY/nbMTuRwfROujL/C6P/DvdLEl7XkfmAJ7IRX/KJp9rkDxG8CPwY4nwf7INWVMW4WgLcRgMZF6a7Xb0LxfEkVHPoAot784yrQhOvC+apmDm31oDYYiEmI1Cn67gt6gMNTpaK1+Dn+MNX880BhLe3uFYLcyJgyKN17qHmjBM/sz4o8omDobMTQuBEidrkR8aBGJSZMReX4T/oHxLFLnH0LRCbCmnYSgQPOLVk9uLyyFRTIEqxAVOBvNCBdGIkd/KTLt8+AQZJwsQY66C9tQVGUG8K9o3Us1KQqwOky1Y5uvKRHWQEdb9aUKHTULgdkGzsGfDTAarY93kj5Raw8k/BXIPagNZEdYimbcBXQS6FbvmeI1mxOggbASYC2E7RUqbYWouPrHlEuYcqmVano9ouNGA1ch/rQWASIKliHXZH9PXQMQQf1zJEBXgNaitW06WhMf7X7VpI6kNj8DYw8yRgZO2FYhNNbV36klYEKDqZSgXJtC01K8iNyOiciQcWXL7Q58HHiC+sSkv0NuwQL8CVEvIB91LPL9XIMlNXJTSRYIOwKoBAQ1zTRAObAEWEphgKXTFy/jSamIqrBWYShtbuk1PILYnHkoOu6Kx+2FZu3JaP0ahQK1vvDba8gwuZIkWtKaWG80Rn4BWkMlDCg1epaxVDCREDdTH4ztALZWdy6xC525UEEO9t1IzX0Gd9jqCLSOJmE5WkPvbvjUjExWbhVqKyaT4RLC4IrhEsQ+xDEBdc6uij8jy3AK8g2zYC0KBpxKGuFVsrtjuQRoK5kMigAt1quMdH8t6zACBYjXoDzTXXXT6VoU7J4IPECyjbgR+Y9T0Pa5zamekMNIy9dZ6dXc+5DeX4zWEV8L2xFDcgey8IpmQIpCGRk3k7AmCrzGUUHv+n6UKeDLd+kOS25jLZMAo3UvBQ5ECa0Po+yvtK1rRzk2D6L800w5kj2IDjTQbqz5fj2yYp9JXZOhqjrzNSSTAENrsMnTfAgijJcjdekjhH+KKKMHPNeHI7W6BK0frd4PkQ3qg4B651zfmeqnNBoxpcPuQ2oB2sbCm40EcxX+YORzSCAnI8NgFjLT/+gpfzga5csQl9g7CKumfT3nW9t/hvigNVb/AusWpjXQ0RyPnF6AeAfKwRYWWfgv/FnO29CifizKvorSN15B5vV44HsJj5+MNsBcT4t3vHbCIIFFQkvfyd27yVT/Bbaey40OMGiCYEolQD2/7in7olzF1ShByOXAbkdGzNFoUffNtN8Dn7HadXQH7sSk4cgkfwz4POIaC4ONfwgD6Chp1hVJ3xl0VEd7qHrLpaY55IYCtEDY3XAZiqik+1Guoi9W9RBSlyeRLvsrRAzINBTK8SUmjQTzdWQNzsWdHp8PEWHeqsyCONoqhXDyDVsadh8iH0Zq7Br8uRtPI8FOREZIVoQobnYc2sfgSkwCrY+3VNsyPsdz3HCn9rcGCetSWngFaCCwmDCUCjnUKJl0MUoxdGELSjo9EVmQjfIzG2E92gU7A0XSXYmuIINoCcrk8u2aSgdjob2SJ4kqO0IjVdreHOObNAM3I7fgAgzL0SZ/306ZpWjGnU/xWc7RHvnJaOuyC3siIvke5J40p1Z7QoDWQFuorLu2ij7nQJIAByO34Jv4Y1rPoK3Rp6ADAVqFEK15M1Eq4P96ykU7qh4CPkLexKR8qYzpUa45Siva0NNWybwXL0mAQ5Cl6WJR/oS2k41GVmNTMa0M2ArcYLX+fRt3mn+AQjsr0FpaS56nQ7HpG12oNHDcjZWlWur0HSv4l4/MXOhraD2aBHyd2EbOHsYWtDXreGTIuAKvIAv4IWQMvS3zU4oWYNbqjAVDBwlUZFyASXP3ZSS4OYgqS8/1tRa/ROp7LpptLtZ/b+SDLka5KekQi0IXhmyEAGjD0Q+oZ7Y6ZRUP6PpyFEE7gD6L+1iN7KjmJdnYnzluj+N2ZOwchf+UifehiMh01CmN43Og9bCIzTrZhDcMha5ORSdf1aJTVvGW/Qb/JD8UGSkX4j9uqrewD3I37qNx9MIgtXsb8h+TNpBU77BZdkm5YdFK1nhCt6M0jgeQ2ncJD2JGXFyA56I95q58jYHoZb+BTPXpNNh83wMYgqzSVcigOoB6q7OMe33cA7FJq1A64d6ta2YqBEh7LEBpHO/xlHsBccqnx2+MsBMloB6Fduv6eMsjkMqajzKregNHIlJ8Ef7zXX6LUjWSaLl9EYl+FyIo3GGrKKKQBxY57X7teRByfdZU2+DS15tQVCbilF+PLrgKbzZa72ZWb9rpefA89OKXAm9PfInicAhdR3BM9ZTZhiIc01EG2I2IBLgY/6B8LyIjrsN3YlIUGsoK/7q3J0pLXIHIB99Ceydimz4G/K72YtLq/DhymqcC93iaPgypr9sRE9IqtTqYrhT3s/EfHLsY8bVn030peBkNtGkoXumTxEkow+wqXIm7WQXoF95JSHBXIvLBhadUzs5BQnSikXll0Zp3ErKI/uQpdwg6Juph5CMWibnVer+C/2WfRhrjDPz7HEAnJZ6D9uLd6ymzN3KV7kcquHsfpRWim6g+DAnjGvxnh25F4bLjkLGVaPmntY83ojVnLGJANjrKlBADsgw5140tvOR2janWdT3+443/glTjOERop3Fzysi5n4oMGR93uz9614cRLddMWsebgW8ho2kKbg2yDfXbWLQm+g7I64asDs6LiAGZRNc5mbUYiGbNI0i9Zj1x9+10BYqn4eYzN6GtYeOQanQNqEbYjk5FPAplVrs6LADGglmBZs0oID4LaxkSQ+Rbq8hwRB48iOyKYZ62rEEpKacAv87yEnk91CdQttmZaFS5MBx17jI00htFCEZUy92F/E3fiF8Jdh4aJEVEPl4FLjAKWy3Ez+ueitTuRWiQhdRvfe6gy1D6CJpRV+P359aiXUnHkP0kRKD5JNqbgRlGHfCcp8zhaPQuQE60C7OAxUblfOvcWrTGzUAGQNF4HM2C2fjDVsNRuuQijD2F+qy0MjAKy5VIpU/x1PMy8qlPRLPfS1Y3gol+ADLxl1uQ1mjwyy0HAJ8uWc4M4U2uX24JYJO1ZkEIlweWdRbeZa251MCUkmWw55dbthi4Amt+ZOH5SHtFGXIt+uWWPbFmFvAFLG/z/HLLdqzZiTVDiQpYdoDZjGVEwi+3LMRyGZi1RfxyS5HJH79D6uAIxDO6ThQcBpyFZRVwm5GlN9O6F/UdyAobg5xX3+EErcAGdCbZGDRDXneUGYQYnbivMICuHwKJwyJLeRJyzdYW1dCis3fKyH+Zguge3zaq/ZCqch36bdHmyFnIfXmWnt3IHcd6NCjHozUqT9zzeZQjNAYREIXGTluZfnULon4uxsEgePAMYiUmoOzuXQVPIKPkLGRdp8EG5Kgfi9wC1yxuGq3On9uALNETUdKRbya9hvykE5DK8gVoexs3If/xfDBJg/I2pGHOocUnIfbUVq61wLnGMhmlYMRxK1K5F9L7xz6mwaso++54xD7FB9sTiLc8HT/TUyh6+rS+lXSdTjQHkccraJF6aTGeQc75EkRu/AKR6K/0ZCNM/+/I923sqrth+5ES/QLs4+gXYB9HvwD7OPoF2MfRL8A+jn4B9nH8P8AM37hEFR+9AAAAAElFTkSuQmCC",wW=n.p+"static/media/defxstats-logo-light_beta.721c24ab33ac037ee61d.png",kW=it((e=>{const{layoutType:t,showRightSidebar:n,leftMenu:r,leftSideBarType:i}=e.Layout;return{layoutType:t,showRightSidebar:n,leftMenu:r,leftSideBarType:i}}),{showRightSidebarAction:zB,toggleLeftmenu:e=>({type:MB,payload:e}),changeSidebarType:DB})(ds()((e=>{const[t,n]=(0,r.useState)(!1),[i,a]=(0,r.useState)(!1),[o,s]=(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),(0,r.useState)(!1)),{address:l,isConnected:c}=Um(),{connect:u,connectors:d,error:h,isConnecting:f,isLoading:p,pendingConnector:g}=Wm({onError(e){console.log("Error",e)}}),{disconnect:m}=Gm();return(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("header",{id:"page-topbar",children:(0,Ly.jsxs)("div",{className:"navbar-header",children:[(0,Ly.jsxs)("div",{className:"d-flex",children:[(0,Ly.jsxs)("div",{className:"navbar-brand-box",children:[(0,Ly.jsxs)(HU,{to:"/",className:"logo logo-dark",children:[(0,Ly.jsx)("span",{className:"logo-sm",children:(0,Ly.jsx)("img",{src:xW,alt:"",height:"22"})}),(0,Ly.jsx)("span",{className:"logo-lg",children:(0,Ly.jsx)("img",{src:vW,alt:"",height:"17"})})]}),(0,Ly.jsxs)(HU,{to:"/",className:"logo logo-light",children:[(0,Ly.jsx)("span",{className:"logo-sm",children:(0,Ly.jsx)("img",{src:xW,alt:"",height:"22"})}),(0,Ly.jsx)("span",{className:"logo-lg",children:(0,Ly.jsx)("img",{src:wW,alt:"",height:"32"})})]})]}),(0,Ly.jsx)("button",{type:"button",className:"btn btn-sm px-3 font-size-24 header-item waves-effect",id:"vertical-menu-btn",onClick:()=>{!function(){var e=document.body;window.screen.width<=992||e.classList.toggle("vertical-collpsed"),e.classList.toggle("sidebar-enable")}()},"data-target":"#topnav-menu-content",children:(0,Ly.jsx)("i",{className:"mdi mdi-menu"})})]}),(0,Ly.jsx)("div",{className:"d-flex",style:{textAlign:"right"},children:c?(0,Ly.jsx)("div",{children:(0,Ly.jsxs)("div",{children:["Connected with ",(0,Ly.jsxs)("strong",{children:[l.slice(0,6).toLowerCase(),"...",l.slice(-4).toLowerCase()]}),"\xa0\xa0\xa0",(0,Ly.jsx)("button",{className:"btn btn-primary w-md",onClick:m,children:"Disconnect"})]})}):(0,Ly.jsxs)(oF,{isOpen:o,toggle:()=>s(!o),className:"d-inline-block",children:[(0,Ly.jsx)(FF,{className:"btn header-item waves-effect",id:"page-header-user-dropdown",tag:"button",children:(0,Ly.jsx)("button",{className:"btn btn-primary w-md",children:"Connect Wallet"})}),(0,Ly.jsx)(AU,{className:"dropdown-menu-end",children:(0,Ly.jsxs)("div",{style:{textAlign:"center"},children:[d.map((e=>e.ready&&(0,Ly.jsxs)(jU,{children:[(0,Ly.jsx)("button",{className:"btn btn-primary w-md",onClick:()=>u({connector:e}),children:e.name}),(0,Ly.jsx)("br",{})]},e.name))),h&&(0,Ly.jsx)("div",{children:h.message})]})})]})})]})})})}))),AW={parentTrigger:"li",subMenu:"ul",toggle:!0,triggerElement:"a"},EW={ACTIVE:"mm-active",COLLAPSE:"mm-collapse",COLLAPSED:"mm-collapsed",COLLAPSING:"mm-collapsing",METIS:"metismenu",SHOW:"mm-show"};class SW{constructor(e,t){this.element=SW.isElement(e)?e:document.querySelector(e),this.config=Object.assign(Object.assign({},AW),t),this.disposed=!1,this.triggerArr=[],this.boundEventHandler=this.clickEvent.bind(this),this.init()}static attach(e,t){return new SW(e,t)}init(){const{METIS:e,ACTIVE:t,COLLAPSE:n}=EW;this.element.classList.add(e);const r=[...this.element.querySelectorAll(this.config.subMenu)];0!==r.length&&r.forEach((e=>{e.classList.add(n);const r=e.closest(this.config.parentTrigger);(null===r||void 0===r?void 0:r.classList.contains(t))?this.show(e):this.hide(e);const i=null===r||void 0===r?void 0:r.querySelector(this.config.triggerElement);"true"!==(null===i||void 0===i?void 0:i.getAttribute("aria-disabled"))&&(null===i||void 0===i||i.setAttribute("aria-expanded","fal
2se"),null===i||void 0===i||i.addEventListener("click",this.boundEventHandler),this.triggerArr.push(i))}))}clickEvent(e){if(!this.disposed){const t=null===e||void 0===e?void 0:e.currentTarget;t&&"A"===t.tagName&&e.preventDefault();const n=t.closest(this.config.parentTrigger),r=null===n||void 0===n?void 0:n.querySelector(this.config.subMenu);this.toggle(r)}}update(){this.disposed=!1,this.init()}dispose(){this.triggerArr.forEach((e=>{e.removeEventListener("click",this.boundEventHandler)})),this.disposed=!0}on(e,t,n){return this.element.addEventListener(e,t,n),this}off(e,t,n){return this.element.removeEventListener(e,t,n),this}emit(e,t){const n=new CustomEvent(e,{bubbles:arguments.length>2&&void 0!==arguments[2]&&arguments[2],detail:t});this.element.dispatchEvent(n)}toggle(e){const t=e.closest(this.config.parentTrigger);(null===t||void 0===t?void 0:t.classList.contains(EW.ACTIVE))?this.hide(e):this.show(e)}show(e){var t;const n=e,{ACTIVE:r,COLLAPSE:i,COLLAPSED:a,COLLAPSING:o,SHOW:s}=EW;if(this.isTransitioning||n.classList.contains(o))return;const l=()=>{n.classList.remove(o),n.style.height="",n.removeEventListener("transitionend",l),this.setTransitioning(!1),this.emit("shown.metisMenu",{shownElement:n})},c=n.closest(this.config.parentTrigger);null===c||void 0===c||c.classList.add(r);const u=null===c||void 0===c?void 0:c.querySelector(this.config.triggerElement);null===u||void 0===u||u.setAttribute("aria-expanded","true"),null===u||void 0===u||u.classList.remove(a),n.style.height="0px",n.classList.remove(i),n.classList.remove(s),n.classList.add(o);const d=[].slice.call(null===(t=null===c||void 0===c?void 0:c.parentNode)||void 0===t?void 0:t.children).filter((e=>e!==c));this.config.toggle&&d.length>0&&d.forEach((e=>{const t=e.querySelector(this.config.subMenu);t&&this.hide(t)})),this.setTransitioning(!0),n.classList.add(i),n.classList.add(s),n.style.height=`${n.scrollHeight}px`,this.emit("show.metisMenu",{showElement:n}),n.addEventListener("transitionend",l)}hide(e){const{ACTIVE:t,COLLAPSE:n,COLLAPSED:r,COLLAPSING:i,SHOW:a}=EW,o=e;if(this.isTransitioning||!o.classList.contains(a))return;this.emit("hide.metisMenu",{hideElement:o});const s=o.closest(this.config.parentTrigger);null===s||void 0===s||s.classList.remove(t);const l=()=>{o.classList.remove(i),o.classList.add(n),o.style.height="",o.removeEventListener("transitionend",l),this.setTransitioning(!1),this.emit("hidden.metisMenu",{hiddenElement:o})};o.style.height=`${o.getBoundingClientRect().height}px`,o.style.height=`${o.offsetHeight}px`,o.classList.add(i),o.classList.remove(n),o.classList.remove(a),this.setTransitioning(!0),o.addEventListener("transitionend",l),o.style.height="0px";const c=null===s||void 0===s?void 0:s.querySelector(this.config.triggerElement);null===c||void 0===c||c.setAttribute("aria-expanded","false"),null===c||void 0===c||c.classList.add(r)}setTransitioning(e){this.isTransitioning=e}static isElement(e){return Boolean(e.classList)}}const PW=OB(ds()((e=>{const t=J(),n=(0,r.useRef)(),i=t.pathname;function a(){var e=document.body;window.screen.width<=992&&e.classList.toggle("sidebar-enable")}const o=(0,r.useCallback)((e=>{e.classList.add("active");const t=e.parentElement,n=t.childNodes[1];if(n&&"side-menu"!==n.id&&n.classList.add("mm-show"),t){t.classList.add("mm-active");const n=t.parentElement;if(n){n.classList.add("mm-show");const e=n.parentElement;if(e){e.classList.add("mm-active"),e.childNodes[0].classList.add("mm-active");const t=e.parentElement;if(t){t.classList.add("mm-show");const e=t.parentElement;e&&(e.classList.add("mm-show"),e.childNodes[0].classList.add("mm-active"))}}}return l(e),!1}return l(e),!1}),[]),s=(0,r.useCallback)((()=>{const e=t.pathname;let n=null;const r=document.getElementById("side-menu").getElementsByTagName("a");(e=>{for(var t=0;t<e.length;++t){var n=e[t];const r=e[t].parentElement;if(n&&n.classList.contains("active")&&n.classList.remove("active"),r){const e=r.childNodes&&r.childNodes.lenght&&r.childNodes[1]?r.childNodes[1]:null;e&&"side-menu"!==e.id&&e.classList.remove("mm-show"),r.classList.remove("mm-active");const t=r.parentElement;if(t){t.classList.remove("mm-show");const e=t.parentElement;if(e){e.classList.remove("mm-active"),e.childNodes[0].classList.remove("mm-active");const t=e.parentElement;if(t){t.classList.remove("mm-show");const e=t.parentElement;e&&(e.classList.remove("mm-show"),e.childNodes[0].classList.remove("mm-active"))}}}}}})(r);for(let t=0;t<r.length;++t)if(e===r[t].pathname){n=r[t];break}n&&o(n)}),[i,o]);function l(e){if(e){const t=e.offsetTop;t>window.innerHeight&&(n.current.getScrollElement().scrollTop=t-300)}}return(0,r.useEffect)((()=>{n.current.recalculate()}),[]),(0,r.useEffect)((()=>{new SW("#side-menu"),s()}),[]),(0,r.useEffect)((()=>{window.scrollTo({top:0,behavior:"smooth"}),s()}),[s]),(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)(jo,{style:{maxHeight:"100%"},ref:n,children:(0,Ly.jsx)("div",{id:"sidebar-menu",children:(0,Ly.jsxs)("ul",{className:"metismenu list-unstyled",id:"side-menu",children:[(0,Ly.jsxs)("li",{className:"menu-title",children:[e.t("DEFX token")," "]}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/dashboard",className:"waves-effect",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"ti-bar-chart"}),(0,Ly.jsx)("span",{children:e.t("Stats")})]})}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/staking",className:"waves-effect",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"fas fa-dollar-sign"}),(0,Ly.jsx)("span",{children:e.t("Staking")})]})}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/farming",className:"waves-effect",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"fas fa-tractor"}),(0,Ly.jsx)("span",{children:e.t("Farming")})]})}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/vesting",className:"waves-effect",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"fas fa-file-invoice-dollar"}),(0,Ly.jsx)("span",{children:e.t("Vesting")})]})}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/holders",className:"waves-effect",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"ti-wallet"}),(0,Ly.jsx)("span",{children:e.t("Holders")})]})}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/whaletracker",className:"waves-effect",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"fas fa-fish"}),(0,Ly.jsx)("span",{children:e.t("Whale Tracker")})]})}),(0,Ly.jsx)("li",{className:"menu-title",children:"Services"}
2),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/tokenbridge",className:"waves-effect",children:[(0,Ly.jsx)("i",{className:"dripicons-swap"}),(0,Ly.jsx)("span",{children:e.t("Token Bridge")})]})}),(0,Ly.jsx)("li",{className:"menu-title",children:"Resources"}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/links",className:"waves-effect",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"dripicons-link"}),(0,Ly.jsx)("span",{children:e.t("Links")})]})}),(0,Ly.jsx)("li",{children:(0,Ly.jsxs)(HU,{to:"/docs/DeFinity-Markets-DEFX-WhitePaper.pdf",className:"waves-effect",target:"_blank",onClick:()=>{a()},children:[(0,Ly.jsx)("i",{className:"dripicons-document"}),(0,Ly.jsx)("span",{children:e.t("Whitepaper")})]})})]})})})})}))),CW=it((e=>({layout:e.Layout})),{})(OB(ds()((e=>(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("div",{className:"vertical-menu",children:(0,Ly.jsx)("div",{"data-simplebar":!0,className:"h-100",children:(e.type,(0,Ly.jsx)(PW,{}))})})}))))),OW=()=>(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)("footer",{className:"footer",children:(0,Ly.jsx)(ki,{fluid:!0,children:(0,Ly.jsx)(zr,{children:(0,Ly.jsxs)("div",{className:"col-12",children:["\xa9 ",(new Date).getFullYear()," DEFX Stats | Beta release. You may encounter bugs. Use at own risk."]})})})})}),TW=n.p+"static/media/layout-1.624ded4a2a8c79542d60.jpg",NW=n.p+"static/media/layout-2.8582036f30a93d870b7d.jpg",_W=n.p+"static/media/layout-3.6b1b041b52aae7a218e0.jpg",IW=it((e=>({...e.Layout})),{changeLayout:LB,changeSidebarTheme:FB,changeSidebarType:DB,changeLayoutWidth:BB,changeTopbarTheme:UB,showRightSidebarAction:zB})((e=>(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)("div",{className:"right-bar",id:"right-bar",children:(0,Ly.jsx)(jo,{style:{height:"900px"},children:(0,Ly.jsxs)("div",{"data-simplebar":!0,className:"h-100",children:[(0,Ly.jsxs)("div",{className:"rightbar-title px-3 py-4",children:[(0,Ly.jsx)(HU,{to:"#",onClick:t=>{t.preventDefault(),e.showRightSidebarAction(!1)},className:"right-bar-toggle float-end",children:(0,Ly.jsx)("i",{className:"mdi mdi-close noti-icon"})}),(0,Ly.jsx)("h5",{className:"m-0",children:"Settings"})]}),(0,Ly.jsx)("hr",{className:"my-0"}),(0,Ly.jsxs)("div",{className:"p-4",children:[(0,Ly.jsxs)("div",{className:"radio-toolbar",children:[(0,Ly.jsx)("span",{className:"mb-2 d-block",children:"Layouts"}),(0,Ly.jsx)("input",{type:"radio",id:"radioVertical",name:"radioFruit",value:"vertical",checked:"vertical"===e.layoutType,onChange:t=>{t.target.checked&&e.changeLayout(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"radioVertical",children:"Vertical"})," ",(0,Ly.jsx)("input",{type:"radio",id:"radioHorizontal",name:"radioFruit",value:"horizontal",checked:"horizontal"===e.layoutType,onChange:t=>{t.target.checked&&e.changeLayout(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"radioHorizontal",children:"Horizontal"})]}),(0,Ly.jsx)("hr",{className:"mt-1"}),(0,Ly.jsxs)("div",{className:"radio-toolbar",children:[(0,Ly.jsx)("span",{className:"mb-2 d-block",id:"radio-title",children:"Layout Width"}),(0,Ly.jsx)("input",{type:"radio",id:"radioFluid",name:"radioWidth",value:"fluid",checked:"fluid"===e.layoutWidth,onChange:t=>{t.target.checked&&e.changeLayoutWidth(t.target.value)}})," ",(0,Ly.jsx)("label",{htmlFor:"radioFluid",children:"Fluid"})," ",(0,Ly.jsx)("input",{type:"radio",id:"radioBoxed",name:"radioWidth",value:"boxed",checked:"boxed"===e.layoutWidth,onChange:t=>{t.target.checked&&e.changeLayoutWidth(t.target.value)}})," ",(0,Ly.jsx)("label",{htmlFor:"radioBoxed",children:"Boxed"})]}),(0,Ly.jsx)("hr",{className:"mt-1"}),(0,Ly.jsxs)("div",{className:"radio-toolbar",children:[(0,Ly.jsx)("span",{className:"mb-2 d-block",id:"radio-title",children:"Topbar Theme"}),(0,Ly.jsx)("input",{type:"radio",id:"radioThemeLight",name:"radioTheme",value:"light",checked:"light"===e.topbarTheme,onChange:t=>{t.target.checked&&e.changeTopbarTheme(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"radioThemeLight",children:"Light"})," ",(0,Ly.jsx)("input",{type:"radio",id:"radioThemeDark",name:"radioTheme",value:"dark",checked:"dark"===e.topbarTheme,onChange:t=>{t.target.checked&&e.changeTopbarTheme(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"radioThemeDark",children:"Dark"})," "]}),"vertical"===e.layoutType?(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsx)("hr",{className:"mt-1"}),(0,Ly.jsxs)("div",{className:"radio-toolbar",children:[(0,Ly.jsxs)("span",{className:"mb-2 d-block",i
2d:"radio-title",children:["Left Sidebar Type"," "]}),(0,Ly.jsx)("input",{type:"radio",id:"sidebarDefault",name:"sidebarType",value:"default",checked:"default"===e.leftSideBarType,onChange:t=>{t.target.checked&&e.changeSidebarType(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"sidebarDefault",children:"Default"})," ",(0,Ly.jsx)("input",{type:"radio",id:"sidebarCompact",name:"sidebarType",value:"compact",checked:"compact"===e.leftSideBarType,onChange:t=>{t.target.checked&&e.changeSidebarType(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"sidebarCompact",children:"Compact"})," ",(0,Ly.jsx)("input",{type:"radio",id:"sidebarIcon",name:"sidebarType",value:"icon",checked:"icon"===e.leftSideBarType,onChange:t=>{t.target.checked&&e.changeSidebarType(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"sidebarIcon",children:"Icon"})]}),(0,Ly.jsx)("hr",{className:"mt-1"}),(0,Ly.jsxs)("div",{className:"radio-toolbar",children:[(0,Ly.jsx)("span",{className:"mb-2 d-block",id:"radio-title",children:"Left Sidebar Color"}),(0,Ly.jsx)("input",{type:"radio",id:"leftsidebarThemelight",name:"leftsidebarTheme",value:"light",checked:"light"===e.leftSideBarTheme,onChange:t=>{t.target.checked&&e.changeSidebarTheme(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"leftsidebarThemelight",children:"Light"})," ",(0,Ly.jsx)("input",{type:"radio",id:"leftsidebarThemedark",name:"leftsidebarTheme",value:"dark",checked:"dark"===e.leftSideBarTheme,onChange:t=>{t.target.checked&&e.changeSidebarTheme(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"leftsidebarThemedark",children:"Dark"})," ",(0,Ly.jsx)("input",{type:"radio",id:"leftsidebarThemecolored",name:"leftsidebarTheme",value:"colored",checked:"colored"===e.leftSideBarTheme,onChange:t=>{t.target.checked&&e.changeSidebarTheme(t.target.value)}}),(0,Ly.jsx)("label",{htmlFor:"leftsidebarThemecolored",children:"Colored"})]}),(0,Ly.jsx)("hr",{className:"mt-1"})]}):null,(0,Ly.jsx)("h6",{className:"text-center",children:"Choose Layouts"}),(0,Ly.jsx)("div",{className:"mb-2",children:(0,Ly.jsx)(HU,{to:"//veltrix-v.react.themesbrand.com",target:"_blank",children:(0,Ly.jsx)("img",{src:TW,className:"img-fluid img-thumbnail",alt:""})})}),(0,Ly.jsx)("div",{className:"mb-2",children:(0,Ly.jsx)(HU,{to:"//veltrix-v-dark.react.themesbrand.com",target:"_blank",children:(0,Ly.jsx)("img",{src:NW,className:"img-fluid img-thumbnail",alt:""})})}),(0,Ly.jsx)("div",{className:"mb-2",children:(0,Ly.jsx)(HU,{to:"//veltrix-v-rtl.react.themesbrand.com",target:"_blank",children:(0,Ly.jsx)("img",{src:_W,className:"img-fluid img-thumbnail",alt:""})})}),(0,Ly.jsxs)(HU,{to:"#",className:"btn btn-primary btn-block mt-3",target:"_blank",children:[(0,Ly.jsx)("i",{className:"mdi mdi-cart ms-1"})," Purchase Now"]})]})]})})}),(0,Ly.jsx)("div",{className:"rightbar-overlay"})]})));class RW extends r.Component{constructor(e){super(e),this.capitalizeFirstLetter=e=>e.charAt(1).toUpperCase()+e.slice(2),this.toggleMenuCallback=()=>{"default"===this.props.leftSideBarType?this.props.changeSidebarType("condensed",this.state.isMobile):"condensed"===this.props.leftSideBarType&&this.props.changeSidebarType("default",this.state.isMobile)},this.hideRightbar=e=>{var t=document.getElementById("right-bar");t&&t.contains(e.target)||document.body.classList.contains("right-bar-enabled")&&this.props.showRightSidebarAction(!1)},this.state={isMobile:/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},this.toggleMenuCallback=this.toggleMenuCallback.bind(this),this.hideRightbar=this.hideRightbar.bind(this)}componentDidMount(){window.scrollTo(0,0),document.body.addEventListener("click",this.hideRightbar,!0),this.props.leftSideBarTheme&&this.props.changeSidebarTheme(this.props.leftSideBarTheme),this.props.layoutWidth&&this.props.changeLayoutWidth(this.props.layoutWidth),this.props.leftSideBarType&&this.props.changeSidebarType(this.props.leftSideBarType),this.props.topbarTheme&&this.props.changeTopbarTheme(this.props.topbarTheme)}render(){return(0,Ly.jsxs)(r.Fragment,{children:[(0,Ly.jsxs)("div",{id:"layout-wrapper",children:[(0,Ly.jsx)(kW,{toggleMenuCallback:this.toggleMenuCallback}),(0,Ly.jsx)(CW,{theme:this.props.leftSideBarTheme,type:this.props.leftSideBarType,isMobile:this.state.isMobile}),(0,Ly.jsx)("div",{className:"main-content",children:this.props.children}),(0,Ly.jsx)(OW,{})]}),this.props.showRightSidebar?(0,Ly.jsx)(IW,{}):null]})}}const MW=it((e=>({...e.Layout})),{changeLayout:LB,changeSidebarTheme:FB,changeSidebarType:DB,changeTopbarTheme:UB,changeLayoutWidth:BB,showRightSidebarAction:zB})(OB(RW)),jW=e=>{const{layoutType:t}=je((e=>({layoutType:e.Layout.layoutType}))),n=MW;return(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)(n,{children:e.children})})},LW=it((e=>({layout:e.Layout})),null)((()=>(0,Ly.jsx)(r.Fragment,{children:(0,Ly.jsx)(ye,{children:(0,Ly.jsx)(ge,{children:CB.map(((e,t)=>(0,Ly.jsx)(ge,{path:e.path,element:(0,Ly.jsx)(jW,{children:e.component}),exact:!0},t)))})})})));Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function BW(e,t){const n=function(e){return[...new Set(({1:[{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DEFAULTAUTH:"fakebackend",REACT_APP_APIKEY:"",REACT_APP_AUTHDOMAIN:"",REACT_APP_DATABASEURL:"",REACT_APP_PROJECTID:"",REACT_APP_STORAGEBUCKET:"",REACT_APP_MESSAGINGSENDERID:"",REACT_APP_APPID:"",REACT_APP_MEASUREMENTID:""}.REACT_APP_ETHEREUM_RPC_URL,"https://ethereum-rpc.publicnode.com","https://eth.drpc.org"],56:[{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DEFAULTAUTH:"fakebackend",REACT_APP_APIKEY:"",REACT_APP_AUTHDOMAIN:"",REACT_APP_DATABASEURL:"",REACT_APP_PROJECTID:"",REACT_APP_STORAGEBUCKET:"",REACT_APP_MESSAGINGSENDERID:"",REACT_APP_APPID:"",REACT_APP_MEASUREMENTID:""}.REACT_APP_BSC_RPC_URL,"https://bsc-rpc.publicnode.com","https://bsc.drpc.org"],11155111:[{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DEFAULTAUTH:"fakebackend",REACT_APP_APIKEY:"",REACT_APP_AUTHDOMAIN:"",REACT_APP_DATABASEURL:"",REACT_APP_PROJECTID:"",REACT_APP_STORAGEBUCKET:"",REACT_APP_MESSAGINGSENDERID:"",REACT_APP_APPID:"",REACT_APP_MEASUREMENTID:""}.REACT_APP_SEPOLIA_RPC_URL,"https://ethereum-sepolia-rpc.publicnode.com"],1337:["http://localhost:8545"]}
2[e]||[]).filter(Boolean))]}(e)[t];return n?{http:n}:null}const FW=gl({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});var DW,UW,zW;DW=new WeakMap;UW=new WeakMap,zW=new WeakMap;var WW,HW,VW,GW,YW,qW,XW,$W,KW,QW,JW,ZW,eH,tH,nH,rH,iH,aH,oH,sH,lH=n(75655),cH="eip155",uH="requestedChains",dH="wallet_addEthereumChain";function hH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hH(Object(n),!0).forEach((function(t){St(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pH(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}WW=new WeakMap,HW=new WeakMap,VW=new WeakSet,GW=async function(){return vl(this,HW)||"undefined"===typeof window||wl(this,HW,kl(this,YW,qW).call(this)),vl(this,HW)},YW=new WeakSet,qW=async function(){const{EthereumProvider:e}=await n.e(173).then(n.bind(n,66173)),t=this.chains.map((e=>{let{id:t}=e;return t}));if(t.length){const{projectId:n,showQrModal:r=!0,qrModalOptions:i,metadata:a,relayUrl:o}=this.options;wl(this,WW,await e.init({showQrModal:r,qrModalOptions:i,projectId:n,optionalChains:t,rpcMap:Object.fromEntries(this.chains.map((e=>[e.id,e.rpcUrls.default.http[0]]))),metadata:a,relayUrl:o}))}},XW=new WeakSet,$W=function(){if(kl(this,oH,sH).call(this).includes(dH))return!1;if(!this.options.isNewChainsStale)return!1;const e=kl(this,nH,rH).call(this),t=this.chains.map((e=>{let{id:t}=e;return t})),n=kl(this,iH,aH).call(this);return!(n.length&&!n.some((e=>t.includes(e))))&&!t.every((t=>e.includes(t)))},KW=new WeakSet,QW=function(){vl(this,WW)&&(kl(this,JW,ZW).call(this),vl(this,WW).on("accountsChanged",this.onAccountsChanged),vl(this,WW).on("chainChanged",this.onChainChanged),vl(this,WW).on("disconnect",this.onDisconnect),vl(this,WW).on("session_delete",this.onDisconnect),vl(this,WW).on("display_uri",this.onDisplayUri),vl(this,WW).on("connect",this.onConnect))},JW=new WeakSet,ZW=function(){vl(this,WW)&&(vl(this,WW).removeListener("accountsChanged",this.onAccountsChanged),vl(this,WW).removeListener("chainChanged",this.onChainChanged),vl(this,WW).removeListener("disconnect",this.onDisconnect),vl(this,WW).removeListener("session_delete",this.onDisconnect),vl(this,WW).removeListener("display_uri",this.onDisplayUri),vl(this,WW).removeListener("connect",this.onConnect))},eH=new WeakSet,tH=function(e){var t;null===(t=this.storage)||void 0===t||t.setItem(uH,e)},nH=new WeakSet,rH=function(){var e,t;return null!==(e=null===(t=this.storage)||void 0===t?void 0:t.getItem(uH))&&void 0!==e?e:[]},iH=new WeakSet,aH=function(){var e,t;if(!vl(this,WW))return[];const n=null===(e=vl(this,WW).session)||void 0===e?void 0:e.namespaces;if(!n)return[];const r=null===(t=(0,lH.bR)(n)[cH])||void 0===t||null===(t=t.chains)||void 0===t?void 0:t.map((e=>parseInt(e.split(":")[1]||"")));return null!==r&&void 0!==r?r:[]},oH=new WeakSet,sH=function(){var e,t;if(!vl(this,WW))return[];const n=null===(e=vl(this,WW).session)||void 0===e?void 0:e.namespaces;if(!n)return[];const r=null===(t=(0,lH.bR)(n)[cH])||void 0===t?void 0:t.methods;return null!==r&&void 0!==r?r:[]};var gH="function"===typeof Symbol&&Symbol.observable||"@@observable",mH=function(){return Math.random().toString(36).substring(7).split("").join(".")},yH={INIT:"@@redux/INIT"+mH(),REPLACE:"@@redux/REPLACE"+mH(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mH()}};function bH(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function vH(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(pH(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(pH(1));return n(vH)(e,t)}if("function"!==typeof e)throw new Error(pH(2));var i=e,a=t,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error(pH(3));return a}function d(e){if("function"!==typeof e)throw new Error(pH(4));if(l)throw new Error(pH(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(pH(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),o=null}}}function h(e){if(!bH(e))throw new Error(pH(7));if("undefined"===typeof e.type)throw new Error(pH(8));if(l)throw new Error(pH(9));try{l=!0,a=i(a,e)}finally{l=!1}for(var t=o=s,n=0;n<t.length;n++){(0,t[n])()}return e}return h({type:yH.INIT}),(r={dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(pH(10));i=e,h({type:yH.REPLACE})}})[gH]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(pH(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[gH]=function(){return this},e},r}function xH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var wH=function(e){return"@@redux-saga/"+e}
2,kH=wH("CANCEL_PROMISE"),AH=wH("CHANNEL_END"),EH=wH("IO"),SH=wH("MATCH"),PH=wH("MULTICAST"),CH=wH("SAGA_ACTION"),OH=wH("SELF_CANCELLATION"),TH=wH("TASK"),NH=wH("TASK_CANCEL"),_H=wH("TERMINATE"),IH=wH("LOCATION"),RH=function(e){return null===e||void 0===e},MH=function(e){return null!==e&&void 0!==e},jH=function(e){return"function"===typeof e},LH=function(e){return"string"===typeof e},BH=Array.isArray,FH=function(e){return e&&jH(e.then)},DH=function(e){return e&&jH(e.next)&&jH(e.throw)},UH=function e(t){return t&&(LH(t)||HH(t)||jH(t)||BH(t)&&t.every(e))},zH=function(e){return e&&jH(e.take)&&jH(e.close)},WH=function(e){return jH(e)&&e.hasOwnProperty("toString")},HH=function(e){return Boolean(e)&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},VH=function(e){return function(){return e}}(!0),GH=function(){};var YH=function(e){return e};"function"===typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var qH=function(e,t){Le(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function XH(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var $H=function(e){throw e},KH=function(e){return{value:e,done:!0}};function QH(e,t,n){void 0===t&&(t=$H),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:KH,isSagaIterator:!0};return"undefined"!==typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function JH(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var ZH=function(e){return Array.apply(null,new Array(e))},eV=function(e){return function(t){return e(Object.defineProperty(t,CH,{value:!0}))}},tV=function(e){return e===_H},nV=function(e){return e===NH},rV=function(e){return tV(e)||nV(e)};function iV(e,t){var n=Object.keys(e),r=n.length;var i,a=0,o=BH(e)?ZH(r):{},s={};return n.forEach((function(e){var n=function(n,s){i||(s||rV(n)?(t.cancel(),t(n,s)):(o[e]=n,++a===r&&(i=!0,t(o))))};n.cancel=GH,s[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return s[e].cancel()})))},s}function aV(e){return{name:e.name||"anonymous",location:oV(e)}}function oV(e){return e[IH]}function sV(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function lV(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,a=0,o=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)o(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,a=i=(i+1)%e;break;case 4:c=2*e,n=l(),r=n.length,i=n.length,a=0,n.length=c,e=c,o(s)}},take:s,flush:l}}var cV=function(e){return lV(e,4)},uV="TAKE",dV="PUT",hV="ALL",fV="RACE",pV="CALL",gV="CPS",mV="FORK",yV="JOIN",bV="CANCEL",vV="SELECT",xV="ACTION_CHANNEL",wV="CANCELLED",kV="FLUSH",AV="GET_CONTEXT",EV="SET_CONTEXT",SV=function(e,t){var n;return(n={})[EH]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function PV(e,t){return void 0===e&&(e="*"),UH(e)?(MH(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),SV(uV,{pattern:e})):zH(n=e)&&n[PH]&&MH(t)&&UH(t)?SV(uV,{channel:e,pattern:t}):zH(e)?(MH(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),SV(uV,{channel:e})):void 0;var n}function CV(e,t){return RH(t)&&(t=e,e=void 0),SV(dV,{channel:e,action:t})}function OV(e){var t=SV(hV,e);return t.combinator=!0,t}function TV(e,t){var n,r=null;return jH(e)?n=e:(BH(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&LH(n)&&jH(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function NV(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return SV(pV,TV(e,n))}function _V(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return SV(mV,TV(e,n))}function IV(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const RV=IV;var MV=[],jV=0;function LV(e){try{DV(),e()}finally{UV()}}function BV(e){MV.push(e),jV||(DV(),zV())}function FV(e){try{return DV(),e()}finally{zV()}}function DV(){jV++}function UV(){jV--}function zV(){var e;
2for(UV();!jV&&void 0!==(e=MV.shift());)LV(e)}var WV=function(e){return function(t){return e.some((function(e){return qV(e)(t)}))}},HV=function(e){return function(t){return e(t)}},VV=function(e){return function(t){return t.type===String(e)}},GV=function(e){return function(t){return t.type===e}},YV=function(){return VH};function qV(e){var t="*"===e?YV:LH(e)?VV:BH(e)?WV:WH(e)?VV:jH(e)?HV:HH(e)?GV:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var XV={type:AH},$V=function(e){return e&&e.type===AH};function KV(e){void 0===e&&(e=cV());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(XV):e.isEmpty()?(n.push(r),r.cancel=function(){XH(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(XV):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++){(0,e[r])(XV)}}}}}function QV(){var e=function(){var e,t=!1,n=[],r=n,i=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(XV)}))};return(e={})[PH]=!0,e.put=function(e){if(!t)if($V(e))a();else for(var i=n=r,o=0,s=i.length;o<s;o++){var l=i[o];l[SH](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=YV),t?e(XV):(e[SH]=n,i(),r.push(e),e.cancel=function(e){var t=!1;return function(){t||(t=!0,e())}}((function(){i(),XH(r,e)})))},e.close=a,e}(),t=e.put;return e.put=function(e){e[CH]?t(e):BV((function(){t(e)}))},e}function JV(e,t){var n=e[kH];jH(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var ZV,eG=0,tG=function(){return++eG};function nG(e){e.isRunning()&&e.cancel()}var rG=((ZV={})[uV]=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,a=t.pattern,o=t.maybe,s=function(e){e instanceof Error?n(e,!0):!$V(e)||o?n(e):n(_H)};try{i.take(s,MH(a)?qV(a):null)}catch(l){return void n(l,!0)}n.cancel=s.cancel},ZV[dV]=function(e,t,n){var r=t.channel,i=t.action,a=t.resolve;BV((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(o){return void n(o,!0)}a&&FH(t)?JV(t,n):n(t)}))},ZV[hV]=function(e,t,n,r){var i=r.digestEffect,a=eG,o=Object.keys(t);if(0!==o.length){var s=iV(t,n);o.forEach((function(e){i(t[e],a,s[e],e)}))}else n(BH(t)?[]:{})},ZV[fV]=function(e,t,n,r){var i=r.digestEffect,a=eG,o=Object.keys(t),s=BH(t)?ZH(o.length):{},l={},c=!1;o.forEach((function(e){var t=function(t,r){c||(r||rV(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=GH,l[e]=t})),n.cancel=function(){c||(c=!0,o.forEach((function(e){return l[e].cancel()})))},o.forEach((function(e){c||i(t[e],a,l[e],e)}))},ZV[pV]=function(e,t,n,r){var i=t.context,a=t.fn,o=t.args,s=r.task;try{var l=a.apply(i,o);if(FH(l))return void JV(l,n);if(DH(l))return void pG(e,l,s.context,eG,aV(a),!1,n);n(l)}catch(c){n(c,!0)}},ZV[gV]=function(e,t,n){var r=t.context,i=t.fn,a=t.args;try{var o=function(e,t){RH(e)?n(t):n(e,!0)};i.apply(r,a.concat(o)),o.cancel&&(n.cancel=o.cancel)}catch(s){n(s,!0)}},ZV[mV]=function(e,t,n,r){var i=t.context,a=t.fn,o=t.args,s=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(DH(i))return i;var a=!1;return QH((function(e){return a?{value:e,done:!0}:(a=!0,{value:i,done:!FH(i)})}))}catch(o){return QH((function(){throw o}))}}({context:i,fn:a,args:o}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:aV(t)}(c,a);FV((function(){var t=pG(e,c,l.context,eG,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},ZV[yV]=function(e,t,n,r){var i=r.task,a=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&XH(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(BH(t)){if(0===t.length)return void n([]);var o=iV(t,n);t.forEach((function(e,t){a(e,o[t])}))}else a(t,n)},ZV[bV]=function(e,t,n,r){var i=r.task;t===OH?nG(i):BH(t)?t.forEach(nG):nG(t),n()},ZV[vV]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(a){n(a,!0)}},ZV[xV]=function(e,t,n){var r=t.pattern,i=KV(t.buffer),a=qV(r),o=function t(n){$V(n)||e.channel.take(t,a),i.put(n)},s=i.close;i.close=function(){o.cancel(),s()},e.channel.take(o,a),n(i)},ZV[wV]=function(e,t,n,r){n(r.task.isCancelled())},ZV[kV]=function(e,t,n){t.flush(n)},ZV[AV]=function(e,t,n,r){n(r.task.context[t])},ZV[EV]=function(e,t,n,r){var i=r.task;qH(i.context,t),n()},ZV);function iG(e,t){return e+"?"+t}function aG(e){var t=e.name,n=e.location;return n?t+" "+iG(n.fileName,n.lineNumber):t}function oG(e){var t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}
2var sG=null,lG=[],cG=function(e){e.crashedEffect=sG,lG.push(e)},uG=function(){sG=null,lG.length=0},dG=function(e){sG=e},hG=function(){var e=lG[0],t=lG.slice(1),n=e.crashedEffect?function(e){var t=oV(e);return t?t.code+" "+iG(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+aG(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+aG(e.meta)})),[oG(lG)]).join("\n")};function fG(e,t,n,r,i,a,o){var s;void 0===o&&(o=GH);var l,c,u=0,d=null,h=[],f=Object.create(n),p=function(e,t,n){var r,i=[],a=!1;function o(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){a||(XH(i,t),t.cont=GH,l?o(s):(t===e&&(r=s),i.length||(a=!0,n(r))))}}function l(){a||(a=!0,i.forEach((function(e){e.cont=GH,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:o,getTasks:function(){return i}}}(t,(function(){h.push.apply(h,p.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=2,cG({meta:i,cancelledTasks:h}),m.isRoot){var r=hG();uG(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===NH?u=1:1!==u&&(u=3),l=t,d&&d.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[TH]=!0,s.id=r,s.meta=i,s.isRoot=a,s.context=f,s.joiners=[],s.queue=p,s.cancel=function(){0===u&&(u=1,p.cancelAll(),g(NH,!1))},s.cont=o,s.end=g,s.setContext=function(e){qH(f,e)},s.toPromise=function(){return d||(d=RV(),2===u?d.reject(c):0!==u&&d.resolve(l)),d.promise},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return l},s.error=function(){return c},s);return m}function pG(e,t,n,r,i,a,o){var s=e.finalizeRunEffect((function(t,n,r){if(FH(t))JV(t,r);else if(DH(t))pG(e,t,c.context,n,i,!1,r);else if(t&&t[EH]){(0,rG[t.type])(e,t.payload,r,u)}else r(t)}));d.cancel=GH;var l={meta:i,cancel:function(){0===l.status&&(l.status=1,d(NH))},status:0},c=fG(e,l,n,r,i,a,o),u={task:c,digestEffect:h};return o&&(o.cancel=c.cancel),d(),c;function d(e,n){try{var i;n?(i=t.throw(e),uG()):nV(e)?(l.status=1,d.cancel(),i=jH(t.return)?t.return(NH):{done:!0,value:NH}):i=tV(e)?jH(t.return)?t.return():{done:!0}:t.next(e),i.done?(1!==l.status&&(l.status=3),l.cont(i.value)):h(i.value,r,d)}catch(a){if(1===l.status)throw a;l.status=2,l.cont(a,!0)}}function h(t,n,r,i){void 0===i&&(i="");var a,o=tG();function l(n,i){a||(a=!0,r.cancel=GH,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(o,n):e.sagaMonitor.effectResolved(o,n)),i&&dG(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:o,parentEffectId:n,label:i,effect:t}),l.cancel=GH,r.cancel=function(){a||(a=!0,l.cancel(),l.cancel=GH,e.sagaMonitor&&e.sagaMonitor.effectCancelled(o))},s(t,o,l)}}function gG(e,t){var n=e.channel,r=void 0===n?QV():n,i=e.dispatch,a=e.getState,o=e.context,s=void 0===o?{}:o,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?JH:u;for(var h=arguments.length,f=new Array(h>2?h-2:0),p=2;p<h;p++)f[p-2]=arguments[p];var g=t.apply(void 0,f);var m,y=tG();if(l&&(l.rootSagaStarted=l.rootSagaStarted||GH,l.effectTriggered=l.effectTriggered||GH,l.effectResolved=l.effectResolved||GH,l.effectRejected=l.effectRejected||GH,l.effectCancelled=l.effectCancelled||GH,l.actionDispatched=l.actionDispatched||GH,l.rootSagaStarted({effectId:y,saga:t,args:f})),c){var b=sV.apply(void 0,c);m=function(e){return function(t,n,r){return b((function(t){return e(t,n,r)}))(t)}}}else m=YH;var v={channel:r,dispatch:eV(i),getState:a,sagaMonitor:l,onError:d,finalizeRunEffect:m};return FV((function(){var e=pG(v,g,s,y,aV(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}const mG=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,a=n.channel,o=void 0===a?QV():a,s=n.sagaMonitor,l=Be(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=gG.bind(null,Le({},l,{context:i,channel:o,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return o.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){qH(i,e)},c},yG=mG,bG={layoutType:"vertical",layoutWidth:"fluid",leftSideBarTheme:"dark",leftSideBarType:"default",topbarTheme:"light",showRightSidebar:!1,isMobile:!1,showSidebar:!0,leftMenu:!1},vG=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var a,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:yH.INIT}))throw new Error(pH(12));if("undefined"===typeof n(void 0,{type:yH.PROBE_UNKNOWN_ACTION()}))throw new Error(pH(13))}))}(n)}catch($G){a=$G}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<o.length;s++){var l=o[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(pH(14))}i[l]=d,r=r||d!==u}return(r=r||o.length!==Object.keys(e).length)?i:e}}({Layout:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bG,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case TB:return{...e,layoutType:t.payload};case NB:return{...e,layoutWidth:t.payload};case _B:return{...e,leftSideBarTheme:t.payload};case IB:return{...e,leftSideBarType:t.payload.sidebarType};case RB:return{...e,topbarTheme:t.payload};case jB:return{...e,showRightSidebar:t.payload};case"SHOW_SIDEBAR":return{...e,showSidebar:t.payload};case MB:return{...e,leftMenu:t.payload};default:return e}}}),xG=vG;var wG=function(e){return{done:!0,value:e}},kG={};function AG(e){return zH(e)?"channel":WH(e)?String(e):jH(e)?e.name:String(e)}function EG(e,t,n){var r,i,a,o=t;function s(t,n){if(o===kG)return wG(t);if(n&&!i)throw o=kG,n;r&&r(t);var s=n?e[i](n):e[o]();return o=s.nextState,a=s.effect,r=s.stateUpdater,i=s.errorState,o===kG?wG(t):a}return QH(s,(function(e){return s(null,e)}),n)}function SG(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a,o={done:!1,value:PV(e)},s=function(e){return a=e};return EG({q1:function(){return{nextState:"q2",effect:o,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:_V.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+AG(e)+", "+t.name+")")}function PG(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return _V.apply(void 0,[SG,e,t].concat(r))}function CG(e,t){return document.body&&document.body.setAttribute(e,t),!0}function OG(e){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toggle"){case"add":document.body&&document.body.classList.add(e);break;case"remove":document.body&&document.body.classList.remove(e);break;default:document.body&&document.body.classList.toggle(e)}return!0}function TG(e){let{payload:t}=e;return function*(){try{"horizontal"===t?(yield CV(UB("dark")),document.body.removeAttribute("data-sidebar"),document.body.removeAttribute("data-sidebar-size")):yield CV(UB("light")),yield NV(CG,"data-layout",t)}catch(e){}}()}function NG(e){let{payload:t}=e;return function*(){try{"boxed"===t?(yield CV(DB("icon")),yield NV(CG,"data-layout-size",t)):(yield CV(DB("default")),yield NV(CG,"data-layout-size",t))}catch(e){}}()}function _G(e){let{payload:t}=e;return function*(){try{yield NV(CG,"data-sidebar",t)}catch(e){}}()}function IG(e){let{payload:t}=e;return function*(){try{yield NV(CG,"data-topbar",t)}catch(e){}}()}function RG(e){let{payload:{sidebarType:t,isMobile:n}}=e;return function*(){try{switch(t){case"compact":yield NV(CG,"data-sidebar-size","small"),yield NV(OG,"sidebar-enable","remove"),yield NV(OG,"vertical-collpsed","remove");break;case"icon":yield NV(CG,"data-keep-enlarged","true"),yield NV(OG,"vertical-collpsed","add");break;case"condensed":yield NV(OG,"sidebar-enable","add"),window.screen.width>=992?(yield NV(OG,"vertical-collpsed","remove"),yield NV(OG,"sidebar-enable","remove"),yield NV(OG,"vertical-collpsed","add"),yield NV(OG,"sidebar-enable","add")):(yield NV(OG,"sidebar-enable","add"),yield NV(OG,"vertical-collpsed","add"));break;default:yield NV(CG,"data-sidebar-size",""),yield NV(OG,"sidebar-enable","remove"),n||(yield NV(OG,"vertical-collpsed","remove"))}}catch(e){}}()}function*MG(){try{yield NV(OG,"right-bar-enabled","add")}catch(e){}}function*jG(){yield PG(TB,TG)}function*LG(){yield PG(NB,NG)}function*BG(){yield PG(_B,_G)}function*FG(){yield PG(IB,RG)}function*DG(){yield PG(RB,IG)}function*UG(){yield PG(jB,MG)}const zG=function*(){yield OV([_V(jG),_V(LG),_V(BG),_V(FG),_V(UG),_V(DG)])};
2const WG=yG(),HG=vH(xG,(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||xH)(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(pH(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(i)}));return r=xH.apply(void 0,a)(n.dispatch),fH(fH({},n),{},{dispatch:r})}}}(WG)));WG.run((function*(){yield OV([zG()])}));const VG=HG,{chains:GG,publicClient:YG,webSocketPublicClient:qG}=function(e,t){let{batch:n={multicall:{wait:32}},pollingInterval:r=4e3,rank:i,retryCount:a,retryDelay:o,stallTimeout:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.length)throw new Error("must have at least one chain");let l=[];const c={},u={};for(const d of e){let e=!1;for(const n of t){const t=n(d);t&&(e=!0,l.some((e=>{let{id:t}=e;return t===d.id}))||(l=[...l,t.chain]),c[d.id]=[...c[d.id]||[],...t.rpcUrls.http],t.rpcUrls.webSocket&&(u[d.id]=[...u[d.id]||[],...t.rpcUrls.webSocket]))}if(!e)throw new Error([`Could not find valid provider configuration for chain "${d.name}".\n`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join("\n"))}return{chains:l,publicClient:t=>{var u;let{chainId:d}=t;const h=null!==(u=l.find((e=>e.id===d)))&&void 0!==u?u:e[0],f=c[h.id];if(!f||!f[0])throw new Error(`No providers configured for chain "${h.id}"`);const p=dg({batch:n,chain:h,transport:hg(f.map((e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{batch:n,fetchOptions:r,key:i="http",methods:a,name:o="HTTP JSON-RPC",onFetchRequest:s,onFetchResponse:l,retryDelay:c,raw:u}=t;return d=>{var h,f;let{chain:p,retryCount:g,timeout:m}=d;const{batchSize:y=1e3,wait:b=0}="object"===typeof n?n:{},v=null!==(h=t.retryCount)&&void 0!==h?h:g,x=null!==(f=null!==m&&void 0!==m?m:t.timeout)&&void 0!==f?f:1e4,w=e||(null===p||void 0===p?void 0:p.rpcUrls.default.http[0]);if(!w)throw new pg;const k=vg(w,{fetchOptions:r,onRequest:s,onResponse:l,timeout:x});return Zu({key:i,methods:a,name:o,async request(e){let{method:t,params:r}=e;const i={method:t,params:r},{schedule:a}=(0,gg.u)({id:w,wait:b,shouldSplitBatch:e=>e.length>y,fn:e=>k.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:o,result:s}]=await(async e=>n?a(e):[await k.request({body:e})])(i);if(u)return{error:o,result:s};if(o)throw new Pl.J8({body:i,error:o,url:w});return s},retryCount:v,retryDelay:c,timeout:x,type:"http"},{fetchOptions:r,url:w})}}(e,{timeout:s}))),{rank:i,retryCount:a,retryDelay:o}),pollingInterval:r});return Object.assign(p,{chains:l})},webSocketPublicClient:t=>{var c;let{chainId:d}=t;const h=null!==(c=l.find((e=>e.id===d)))&&void 0!==c?c:e[0],f=u[h.id];if(!f||!f[0])return;const p=dg({batch:n,chain:h,transport:hg(f.map((e=>kg(e,{timeout:s}))),{rank:i,retryCount:a,retryDelay:o}),pollingInterval:r});return Object.assign(p,{chains:l})}}}([ml,ey,eb,FW],[...[0,1,2].map((e=>function(e){let{rpc:t}=e;return function(e){const n=t(e);return n&&""!==n.http?{chain:{...e,rpcUrls:{...e.rpcUrls,default:{http:[n.http]}}},rpcUrls:{http:[n.http],webSocket:n.webSocket?[n.webSocket]:void 0}}:null}}({rpc:t=>BW(t.id,e)})))],{stallTimeout:5e3,retryCount:1}),XG=function(e){let{queryClient:t=new rl({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}}),storage:n=zg({storage:"undefined"!==typeof window&&window.localStorage?window.localStorage:Ug}),persister:r=("undefined"!==typeof window?hs({key:"cache",storage:n,serialize:e=>e,deserialize:e=>e}):void 0),...i}=e;const a=function(e){const t=new Xg(e);return Yg=t,t}({...i,storage:n});return r&&ul({queryClient:t,persister:r,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime&&!1!==e.queryKey[0].persist}}),Object.assign(a,{queryClient:t})}({autoConnect:!0,connectors:[new class extends nd{constructor(){let{chains:e,options:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={name:"MetaMask",shimDisconnect:!0,getProvider(){function e(e){if(!(null===e||void 0===e||!e.isMetaMask)&&(!e.isBraveWallet||e._events||e._state)&&!e.isApexWallet&&!e.isAvalanche&&!e.isBitKeep&&!e.isBlockWallet&&!e.isCoin98&&!e.isFordefi&&!e.isMathWallet&&!e.isOkxWallet&&!e.isOKExWallet&&!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&!e.isOpera&&!e.isPortal&&!e.isRabby&&!e.isDefiant&&!e.isTokenPocket&&!e.isTokenary&&!e.isZeal&&!e.isZerion)return e}if("undefined"===typeof window)return;const t=window.ethereum;return null!==t&&void 0!==t&&t.providers?t.providers.find(e):e(t)},...t};super({chains:e,options:n}),this.id="metaMask",this.shimDisconnectKey=`${this.id}.shimDisconnect`,xl(this,DW,void 0),wl(this,DW,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var t,n,r,i;const o=await this.getProvider();if(!o)throw new hl;o.on&&(o.on("accountsChanged",this.onAccountsChanged),o.on("chainChanged",this.onChainChanged),o.on("disconnect",this.onDisconnect)),this.emit
2("message",{type:"connecting"});let s=null;if(vl(this,DW)&&null!==(t=this.options)&&void 0!==t&&t.shimDisconnect&&(null===(n=this.storage)||void 0===n||!n.getItem(this.shimDisconnectKey))){s=await this.getAccount().catch((()=>null));if(!!s)try{await o.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}),s=await this.getAccount()}catch(a){if(this.isUserRejectedRequestError(a))throw new zl(a);if(a.code===new Ll(a).code)throw a}}if(!s){const e=await o.request({method:"eth_requestAccounts"});s=(0,El.b)(e[0])}let l=await this.getChainId(),c=this.isChainUnsupported(l);if(e&&l!==e){l=(await this.switchChain(e)).id,c=this.isChainUnsupported(l)}return null!==(r=this.options)&&void 0!==r&&r.shimDisconnect&&(null===(i=this.storage)||void 0===i||i.setItem(this.shimDisconnectKey,!0)),{account:s,chain:{id:l,unsupported:c},provider:o}}catch(a){if(this.isUserRejectedRequestError(a))throw new zl(a);if(-32002===a.code)throw new Ll(a);throw a}}}({chains:GG}),new class extends Al{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,xl(this,UW,void 0),xl(this,zW,void 0),this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,El.b)(e[0])})},this.onChainChanged=e=>{const t=fl(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await this.getProvider();t.on("accountsChanged",this.onAccountsChanged),t.on("chainChanged",this.onChainChanged),t.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const n=await t.enable(),r=(0,El.b)(n[0]);let i=await this.getChainId(),a=this.isChainUnsupported(i);if(e&&i!==e){i=(await this.switchChain(e)).id,a=this.isChainUnsupported(i)}return{account:r,chain:{id:i,unsupported:a}}}catch(t){if(/(user closed modal|accounts received is empty)/i.test(t.message))throw new zl(t);throw t}}async disconnect(){if(!vl(this,zW))return;const e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){const e=await this.getProvider(),t=await e.request({method:"eth_accounts"});return(0,El.b)(t[0])}async getChainId(){return fl((await this.getProvider()).chainId)}
2async getProvider(){if(!vl(this,zW)){var e;let t=(await Promise.all([n.e(267),n.e(466)]).then(n.t.bind(n,32267,19))).default;"function"!==typeof t&&"function"===typeof t.default&&(t=t.default),wl(this,UW,new t(this.options));const r=null===(e=vl(this,UW).walletExtension)||void 0===e?void 0:e.getChainId(),i=this.chains.find((e=>this.options.chainId?e.id===this.options.chainId:e.id===r))||this.chains[0],a=this.options.chainId||(null===i||void 0===i?void 0:i.id),o=this.options.jsonRpcUrl||(null===i||void 0===i?void 0:i.rpcUrls.default.http[0]);wl(this,zW,vl(this,UW).makeWeb3Provider(o,a))}return vl(this,zW)}async getWalletClient(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=await Promise.all([this.getProvider(),this.getAccount()]),r=this.chains.find((t=>t.id===e));if(!t)throw new Error("provider is required.");return $u({account:n,chain:r,transport:ed(t)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){const t=await this.getProvider(),n=(0,lc.cK)(e);try{var r;return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),null!==(r=this.chains.find((t=>t.id===e)))&&void 0!==r?r:{id:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(o){const r=this.chains.find((t=>t.id===e));if(!r)throw new dl({chainId:e,connectorId:this.id});if(4902===o.code)try{var i,a;return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:r.name,nativeCurrency:r.nativeCurrency,rpcUrls:[null!==(i=null===(a=r.rpcUrls.public)||void 0===a?void 0:a.http[0])&&void 0!==i?i:""],blockExplorerUrls:this.getBlockExplorerUrls(r)}]}),r}catch(s){throw new zl(s)}throw new Yl(o)}}async watchAsset(e){let{address:t,decimals:n=18,image:r,symbol:i}=e;return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:r,symbol:i}}})}}({chains:GG,options:{appName:"DFXS"}}),new class extends Al{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),xl(this,VW),xl(this,YW),xl(this,XW),xl(this,KW),xl(this,JW),xl(this,eH),xl(this,nH),xl(this,iH),xl(this,oH),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,xl(this,WW,void 0),xl(this,HW,void 0),this.onAccountsChanged=e=>{0===e.length?this.emit("disconnect"):this.emit("change",{account:(0,El.b)(e[0])})},this.onChainChanged=e=>{const t=Number(e),n=this.isChainUnsupported(t);this.emit("change",{chain:{id:t,unsupported:n}})},this.onDisconnect=()=>{kl(this,eH,tH).call(this,[]),this.emit("disconnect")},this.onDisplayUri=e=>{this.emit("message",{type:"display_uri",data:e})},this.onConnect=()=>{this.emit("connect",{})},kl(this,VW,GW).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{let a=e;if(!a){var n,r,i;const e=null===(n=this.storage)||void 0===n?void 0:n.getItem("store"),t=null===e||void 0===e||null===(r=e.state)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.chain)||void 0===r?void 0:r.id;a=t&&!this.isChainUnsupported(t)?t:null===(i=this.chains[0])||void 0===i?void 0:i.id}if(!a)throw new Error("No chains found on connector.");const o=await this.getProvider();kl(this,KW,QW).call(this);const s=kl(this,XW,$W).call(this);if(o.session&&s&&await o.disconnect(),!o.session||s){const e=this.chains.filter((e=>e.id!==a)).map((e=>e.id));this.emit("message",{type:"connecting"}),await o.connect({pairingTopic:t,optionalChains:[a,...e]}),kl(this,eH,tH).call(this,this.chains.map((e=>{let{id:t}=e;return t})))}const l=await o.enable(),c=(0,El.b)(l[0]),u=await this.getChainId();return{account:c,chain:{id:u,unsupported:this.isChainUnsupported(u)}}}catch(a){if(/user rejected/i.test(null===a||void 0===a?void 0:a.message))throw new zl(a);throw a}}async disconnect(){const e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{kl(this,JW,ZW).call(this),kl(this,eH,tH).call(this,[])}}async getAccount(){const{accounts:e}=await this.getProvider();return(0,El.b)(e[0])}async getChainId(){const{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return vl(this,WW)||await kl(this,VW,GW).call(this),e&&await this.switchChain(e),vl(this,WW)}async getWalletClient(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]),r=this.chains.find((t=>t.id===e));if(!t)throw new Error("provider is required.");return $u({account:n,chain:r,transport:ed(t)})}async isAuthorized(){try{const[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=kl(this,XW,$W).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){const t=this.chains.find((t=>t.id===e));if(!t)throw new Yl(new Error("chain not found on connector."));try{const r=await this.getProvider(),i=kl(this,iH,aH).call(this),a=kl(this,oH,sH).call(this);if(!i.includes(e)&&a.includes(dH)){var n;await r.request({method:dH,params:[{chainId:(0,lc.cK)(t.id),blockExplorerUrls:[null===(n=t.blockExplorers)||void 0===n||null===(n=n.default)||void 0===n?void 0:n.url],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpcUrls.default.http]}]});const i=kl(this,nH,rH).call(this);i.push(e),kl(this,eH,tH).call(this,i)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,lc.cK)(e)}]}),t}catch(r){const e="string"===typeof r?r:null===r||void 0===r?void 0:r.message;if(/user rejected request/i.test(e))throw new zl(r);throw new Yl(r)}}}({chains:GG,options:{qrcode:!0,projectId:"5706261e5e10c3fa0c4e021199dde43f"}}),new nd({chains:GG,options:{name:"Browser default",shimDisconnect:!1}})],publicClient:YG,webSocketPublicClient:qG});
2a.createRoot(document.getElementById("root")).render((0,Ly.jsx)(at,{store:VG,children:(0,Ly.jsx)(UU,{children:(0,Ly.jsx)(km,{config:XG,children:(0,Ly.jsx)(LW,{})})})})),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()})).catch((e=>{console.error(e.message)}))})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.