@dcl/vesting-dashboard 3.0.6-9213391407.commit-101c1e4 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,7 +83,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
83
83
  The error may be correlated with this previous error:
84
84
  `+st.current.stack+`
85
85
 
86
- `),bt}return useIsomorphicLayoutEffect$4(function(){ct.current=_e,dt.current=pt,ht.current=mt,st.current=void 0}),useIsomorphicLayoutEffect$4(function(){function bt(){try{var _t=tt.getState();if(_t===dt.current)return;var wt=ct.current(_t);if(et(wt,ht.current))return;ht.current=wt,dt.current=_t}catch(Et){st.current=Et}it()}return ot.onStateChange=bt,ot.trySubscribe(),bt(),function(){return ot.tryUnsubscribe()}},[tt,ot]),mt}function createSelectorHook(_e){_e===void 0&&(_e=ReactReduxContext);var et=_e===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(_e)};return function(nt,at){at===void 0&&(at=refEquality);var it=et(),ot=it.store,st=it.subscription,ct=useSelectorWithStoreAndSubscription(nt,at,ot,st);return reactExports.useDebugValue(ct),ct}}var useSelector=createSelectorHook();setBatch(reactDomExports.unstable_batchedUpdates);var Loader$5={},Loader$4={},interopRequireDefault={exports:{}};(function(_e){function et(tt){return tt&&tt.__esModule?tt:{default:tt}}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,_extends$L={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(_e){function et(){return _e.exports=et=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var at=arguments[nt];for(var it in at)Object.prototype.hasOwnProperty.call(at,it)&&(tt[it]=at[it])}return tt},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et.apply(this,arguments)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(_extends$L)),_extends$L.exports}function r$6(_e){var et,tt,nt="";if(typeof _e=="string"||typeof _e=="number")nt+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(et=0;et<_e.length;et++)_e[et]&&(tt=r$6(_e[et]))&&(nt&&(nt+=" "),nt+=tt);else for(et in _e)_e[et]&&(nt&&(nt+=" "),nt+=et);return nt}function clsx$1(){for(var _e,et,tt=0,nt="";tt<arguments.length;)(_e=arguments[tt++])&&(et=r$6(_e))&&(nt&&(nt+=" "),nt+=et);return nt}const clsx_m=Object.freeze(Object.defineProperty({__proto__:null,clsx:clsx$1,default:clsx$1},Symbol.toStringTag,{value:"Module"})),require$$0$6=getAugmentedNamespace(clsx_m);var lib$4={},interopRequireWildcard={exports:{}},_typeof$1v={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(_e){function et(tt){"@babel/helpers - typeof";return _e.exports=et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et(tt)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(_typeof$1v)),_typeof$1v.exports}var hasRequiredInteropRequireWildcard;function requireInteropRequireWildcard(){return hasRequiredInteropRequireWildcard||(hasRequiredInteropRequireWildcard=1,function(_e){var et=require_typeof().default;function tt(at){if(typeof WeakMap!="function")return null;var it=new WeakMap,ot=new WeakMap;return(tt=function(ct){return ct?ot:it})(at)}function nt(at,it){if(!it&&at&&at.__esModule)return at;if(at===null||et(at)!=="object"&&typeof at!="function")return{default:at};var ot=tt(it);if(ot&&ot.has(at))return ot.get(at);var st={},ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var dt in at)if(dt!=="default"&&Object.prototype.hasOwnProperty.call(at,dt)){var ht=ct?Object.getOwnPropertyDescriptor(at,dt):null;ht&&(ht.get||ht.set)?Object.defineProperty(st,dt,ht):st[dt]=at[dt]}return st.default=at,ot&&ot.set(at,st),st}_e.exports=nt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(interopRequireWildcard)),interopRequireWildcard.exports}var ModernAutoControlledComponent$1={},assertThisInitialized={exports:{}},hasRequiredAssertThisInitialized;function requireAssertThisInitialized(){return hasRequiredAssertThisInitialized||(hasRequiredAssertThisInitialized=1,function(_e){function et(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(assertThisInitialized)),assertThisInitialized.exports}var inheritsLoose={exports:{}},setPrototypeOf={exports:{}},hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,function(_e){function et(tt,nt){return _e.exports=et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(it,ot){return it.__proto__=ot,it},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et(tt,nt)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(setPrototypeOf)),setPrototypeOf.exports}var hasRequiredInheritsLoose;function requireInheritsLoose(){return hasRequiredInheritsLoose||(hasRequiredInheritsLoose=1,function(_e){var et=requireSetPrototypeOf();function tt(nt,at){nt.prototype=Object.create(at.prototype),nt.prototype.constructor=nt,et(nt,at)}_e.exports=tt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(inheritsLoose)),inheritsLoose.exports}var isUndefined_1,hasRequiredIsUndefined;function requireIsUndefined(){if(hasRequiredIsUndefined)return isUndefined_1;hasRequiredIsUndefined=1;function _e(et){return et===void 0}return isUndefined_1=_e,isUndefined_1}var _baseClamp,hasRequired_baseClamp;function require_baseClamp(){if(hasRequired_baseClamp)return _baseClamp;hasRequired_baseClamp=1;function _e(et,tt,nt){return et===et&&(nt!==void 0&&(et=et<=nt?et:nt),tt!==void 0&&(et=et>=tt?et:tt)),et}return _baseClamp=_e,_baseClamp}var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var _e=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=_e,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var _e=require_freeGlobal(),et=typeof self=="object"&&self&&self.Object===Object&&self,tt=_e||et||Function("return this")();return _root=tt,_root}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var _e=require_root(),et=_e.Symbol;return _Symbol=et,_Symbol}function arrayMap$3(_e,et){for(var tt=-1,nt=_e==null?0:_e.length,at=Array(nt);++tt<nt;)at[tt]=et(_e[tt],tt,_e);return at}var _arrayMap=arrayMap$3,isArray$n=Array.isArray,isArray_1=isArray$n,_getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var _e=require_Symbol(),et=Object.prototype,tt=et.hasOwnProperty,nt=et.toString,at=_e?_e.toStringTag:void 0;function it(ot){var st=tt.call(ot,at),ct=ot[at];try{ot[at]=void 0;var dt=!0}catch{}var ht=nt.call(ot);return dt&&(st?ot[at]=ct:delete ot[at]),ht}return _getRawTag=it,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var _e=Object.prototype,et=_e.toString;function tt(nt){return et.call(nt)}return _objectToString=tt,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var _e=require_Symbol(),et=require_getRawTag(),tt=require_objectToString(),nt="[object Null]",at="[object Undefined]",it=_e?_e.toStringTag:void 0;function ot(st){return st==null?st===void 0?at:nt:it&&it in Object(st)?et(st):tt(st)}return _baseGetTag=ot,_baseGetTag}function isObjectLike$a(_e){return _e!=null&&typeof _e=="object"}var isObjectLike_1=isObjectLike$a,baseGetTag$4=require_baseGetTag(),isObjectLike$9=isObjectLike_1,symbolTag$7="[object Symbol]";function isSymbol$f(_e){return typeof _e=="symbol"||isObjectLike$9(_e)&&baseGetTag$4(_e)==symbolTag$7}var isSymbol_1=isSymbol$f,_baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var _e=require_Symbol(),et=_arrayMap,tt=isArray_1,nt=isSymbol_1,at=1/0,it=_e?_e.prototype:void 0,ot=it?it.toString:void 0;function st(ct){if(typeof ct=="string")return ct;if(tt(ct))return et(ct,st)+"";if(nt(ct))return ot?ot.call(ct):"";var dt=ct+"";return dt=="0"&&1/ct==-at?"-0":dt}return _baseToString=st,_baseToString}var _trimmedEndIndex,hasRequired_trimmedEndIndex;function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var _e=/\s/;function et(tt){for(var nt=tt.length;nt--&&_e.test(tt.charAt(nt)););return nt}return _trimmedEndIndex=et,_trimmedEndIndex}var _baseTrim,hasRequired_baseTrim;function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var _e=require_trimmedEndIndex(),et=/^\s+/;function tt(nt){return nt&&nt.slice(0,_e(nt)+1).replace(et,"")}return _baseTrim=tt,_baseTrim}var isObject_1$1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1$1;hasRequiredIsObject=1;function _e(et){var tt=typeof et;return et!=null&&(tt=="object"||tt=="function")}return isObject_1$1=_e,isObject_1$1}var baseTrim$1=require_baseTrim(),isObject$t=requireIsObject(),isSymbol$e=isSymbol_1,NAN$1=0/0,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$4(_e){if(typeof _e=="number")return _e;if(isSymbol$e(_e))return NAN$1;if(isObject$t(_e)){var et=typeof _e.valueOf=="function"?_e.valueOf():_e;_e=isObject$t(et)?et+"":et}if(typeof _e!="string")return _e===0?_e:+_e;_e=baseTrim$1(_e);var tt=reIsBinary$1.test(_e);return tt||reIsOctal$1.test(_e)?freeParseInt$1(_e.slice(2),tt?2:8):reIsBadHex$1.test(_e)?NAN$1:+_e}var toNumber_1=toNumber$4,toNumber$3=toNumber_1,INFINITY$8=1/0,MAX_INTEGER$1=17976931348623157e292;function toFinite$2(_e){if(!_e)return _e===0?_e:0;if(_e=toNumber$3(_e),_e===INFINITY$8||_e===-INFINITY$8){var et=_e<0?-1:1;return et*MAX_INTEGER$1}return _e===_e?_e:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$4(_e){var et=toFinite$1(_e),tt=et%1;return et===et?tt?et-tt:et:0}var toInteger_1=toInteger$4,baseToString$4=require_baseToString();function toString$h(_e){return _e==null?"":baseToString$4(_e)}var toString_1=toString$h,startsWith_1,hasRequiredStartsWith;function requireStartsWith(){if(hasRequiredStartsWith)return startsWith_1;hasRequiredStartsWith=1;var _e=require_baseClamp(),et=require_baseToString(),tt=toInteger_1,nt=toString_1;function at(it,ot,st){return it=nt(it),st=st==null?0:_e(tt(st),0,it.length),ot=et(ot),it.slice(st,st+ot.length)==ot}return startsWith_1=at,startsWith_1}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function _e(et,tt){for(var nt=-1,at=et==null?0:et.length,it=0,ot=[];++nt<at;){var st=et[nt];tt(st,nt,et)&&(ot[it++]=st)}return ot}return _arrayFilter=_e,_arrayFilter}var _createBaseFor,hasRequired_createBaseFor;function require_createBaseFor(){if(hasRequired_createBaseFor)return _createBaseFor;hasRequired_createBaseFor=1;function _e(et){return function(tt,nt,at){for(var it=-1,ot=Object(tt),st=at(tt),ct=st.length;ct--;){var dt=st[et?ct:++it];if(nt(ot[dt],dt,ot)===!1)break}return tt}}return _createBaseFor=_e,_createBaseFor}var _baseFor,hasRequired_baseFor;function require_baseFor(){if(hasRequired_baseFor)return _baseFor;hasRequired_baseFor=1;var _e=require_createBaseFor(),et=_e();return _baseFor=et,_baseFor}var _baseTimes,hasRequired_baseTimes;function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;hasRequired_baseTimes=1;function _e(et,tt){for(var nt=-1,at=Array(et);++nt<et;)at[nt]=tt(nt);return at}return _baseTimes=_e,_baseTimes}var _baseIsArguments,hasRequired_baseIsArguments;function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var _e=require_baseGetTag(),et=isObjectLike_1,tt="[object Arguments]";function nt(at){return et(at)&&_e(at)==tt}return _baseIsArguments=nt,_baseIsArguments}var isArguments_1,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var _e=require_baseIsArguments(),et=isObjectLike_1,tt=Object.prototype,nt=tt.hasOwnProperty,at=tt.propertyIsEnumerable,it=_e(function(){return arguments}())?_e:function(ot){return et(ot)&&nt.call(ot,"callee")&&!at.call(ot,"callee")};return isArguments_1=it,isArguments_1}var isBuffer$6={exports:{}},stubFalse_1,hasRequiredStubFalse;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;hasRequiredStubFalse=1;function _e(){return!1}return stubFalse_1=_e,stubFalse_1}isBuffer$6.exports;var hasRequiredIsBuffer;function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,function(_e,et){var tt=require_root(),nt=requireStubFalse(),at=et&&!et.nodeType&&et,it=at&&!0&&_e&&!_e.nodeType&&_e,ot=it&&it.exports===at,st=ot?tt.Buffer:void 0,ct=st?st.isBuffer:void 0,dt=ct||nt;_e.exports=dt}(isBuffer$6,isBuffer$6.exports)),isBuffer$6.exports}var _isIndex,hasRequired_isIndex;function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var _e=9007199254740991,et=/^(?:0|[1-9]\d*)$/;function tt(nt,at){var it=typeof nt;return at=at??_e,!!at&&(it=="number"||it!="symbol"&&et.test(nt))&&nt>-1&&nt%1==0&&nt<at}return _isIndex=tt,_isIndex}var isLength_1,hasRequiredIsLength;function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;var _e=9007199254740991;function et(tt){return typeof tt=="number"&&tt>-1&&tt%1==0&&tt<=_e}return isLength_1=et,isLength_1}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var _e=require_baseGetTag(),et=requireIsLength(),tt=isObjectLike_1,nt="[object Arguments]",at="[object Array]",it="[object Boolean]",ot="[object Date]",st="[object Error]",ct="[object Function]",dt="[object Map]",ht="[object Number]",pt="[object Object]",mt="[object RegExp]",vt="[object Set]",bt="[object String]",_t="[object WeakMap]",wt="[object ArrayBuffer]",Et="[object DataView]",St="[object Float32Array]",Tt="[object Float64Array]",Ct="[object Int8Array]",Nt="[object Int16Array]",Dt="[object Int32Array]",kt="[object Uint8Array]",Ft="[object Uint8ClampedArray]",jt="[object Uint16Array]",Gt="[object Uint32Array]",Rt={};Rt[St]=Rt[Tt]=Rt[Ct]=Rt[Nt]=Rt[Dt]=Rt[kt]=Rt[Ft]=Rt[jt]=Rt[Gt]=!0,Rt[nt]=Rt[at]=Rt[wt]=Rt[it]=Rt[Et]=Rt[ot]=Rt[st]=Rt[ct]=Rt[dt]=Rt[ht]=Rt[pt]=Rt[mt]=Rt[vt]=Rt[bt]=Rt[_t]=!1;function yt($t){return tt($t)&&et($t.length)&&!!Rt[_e($t)]}return _baseIsTypedArray=yt,_baseIsTypedArray}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function _e(et){return function(tt){return et(tt)}}return _baseUnary=_e,_baseUnary}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(_e,et){var tt=require_freeGlobal(),nt=et&&!et.nodeType&&et,at=nt&&!0&&_e&&!_e.nodeType&&_e,it=at&&at.exports===nt,ot=it&&tt.process,st=function(){try{var ct=at&&at.require&&at.require("util").types;return ct||ot&&ot.binding&&ot.binding("util")}catch{}}();_e.exports=st}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var _e=require_baseIsTypedArray(),et=require_baseUnary(),tt=require_nodeUtil(),nt=tt&&tt.isTypedArray,at=nt?et(nt):_e;return isTypedArray_1=at,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var _e=require_baseTimes(),et=requireIsArguments(),tt=isArray_1,nt=requireIsBuffer(),at=require_isIndex(),it=requireIsTypedArray(),ot=Object.prototype,st=ot.hasOwnProperty;function ct(dt,ht){var pt=tt(dt),mt=!pt&&et(dt),vt=!pt&&!mt&&nt(dt),bt=!pt&&!mt&&!vt&&it(dt),_t=pt||mt||vt||bt,wt=_t?_e(dt.length,String):[],Et=wt.length;for(var St in dt)(ht||st.call(dt,St))&&!(_t&&(St=="length"||vt&&(St=="offset"||St=="parent")||bt&&(St=="buffer"||St=="byteLength"||St=="byteOffset")||at(St,Et)))&&wt.push(St);return wt}return _arrayLikeKeys=ct,_arrayLikeKeys}var objectProto$v=Object.prototype;function isPrototype$4(_e){var et=_e&&_e.constructor,tt=typeof et=="function"&&et.prototype||objectProto$v;return _e===tt}var _isPrototype=isPrototype$4;function overArg$2(_e,et){return function(tt){return _e(et(tt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$3=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$3,isPrototype$3=_isPrototype,nativeKeys$2=_nativeKeys,objectProto$u=Object.prototype,hasOwnProperty$t=objectProto$u.hasOwnProperty;function baseKeys$1(_e){if(!isPrototype$3(_e))return nativeKeys$2(_e);var et=[];for(var tt in Object(_e))hasOwnProperty$t.call(_e,tt)&&tt!="constructor"&&et.push(tt);return et}var _baseKeys=baseKeys$1,isFunction_1$1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1$1;hasRequiredIsFunction=1;var _e=require_baseGetTag(),et=requireIsObject(),tt="[object AsyncFunction]",nt="[object Function]",at="[object GeneratorFunction]",it="[object Proxy]";function ot(st){if(!et(st))return!1;var ct=_e(st);return ct==nt||ct==at||ct==tt||ct==it}return isFunction_1$1=ot,isFunction_1$1}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var _e=requireIsFunction(),et=requireIsLength();function tt(nt){return nt!=null&&et(nt.length)&&!_e(nt)}return isArrayLike_1=tt,isArrayLike_1}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var _e=require_arrayLikeKeys(),et=_baseKeys,tt=requireIsArrayLike();function nt(at){return tt(at)?_e(at):et(at)}return keys_1=nt,keys_1}var _baseForOwn,hasRequired_baseForOwn;function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var _e=require_baseFor(),et=requireKeys();function tt(nt,at){return nt&&_e(nt,at,et)}return _baseForOwn=tt,_baseForOwn}var _createBaseEach,hasRequired_createBaseEach;function require_createBaseEach(){if(hasRequired_createBaseEach)return _createBaseEach;hasRequired_createBaseEach=1;var _e=requireIsArrayLike();function et(tt,nt){return function(at,it){if(at==null)return at;if(!_e(at))return tt(at,it);for(var ot=at.length,st=nt?ot:-1,ct=Object(at);(nt?st--:++st<ot)&&it(ct[st],st,ct)!==!1;);return at}}return _createBaseEach=et,_createBaseEach}var _baseEach,hasRequired_baseEach;function require_baseEach(){if(hasRequired_baseEach)return _baseEach;hasRequired_baseEach=1;var _e=require_baseForOwn(),et=require_createBaseEach(),tt=et(_e);return _baseEach=tt,_baseEach}var _baseFilter,hasRequired_baseFilter;function require_baseFilter(){if(hasRequired_baseFilter)return _baseFilter;hasRequired_baseFilter=1;var _e=require_baseEach();function et(tt,nt){var at=[];return _e(tt,function(it,ot,st){nt(it,ot,st)&&at.push(it)}),at}return _baseFilter=et,_baseFilter}function listCacheClear$5(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$5,eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function _e(et,tt){return et===tt||et!==et&&tt!==tt}return eq_1=_e,eq_1}var eq$5=requireEq();function assocIndexOf$8(_e,et){for(var tt=_e.length;tt--;)if(eq$5(_e[tt][0],et))return tt;return-1}var _assocIndexOf=assocIndexOf$8,assocIndexOf$7=_assocIndexOf,arrayProto$5=Array.prototype,splice$4=arrayProto$5.splice;function listCacheDelete$5(_e){var et=this.__data__,tt=assocIndexOf$7(et,_e);if(tt<0)return!1;var nt=et.length-1;return tt==nt?et.pop():splice$4.call(et,tt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$5,assocIndexOf$6=_assocIndexOf;function listCacheGet$6(_e){var et=this.__data__,tt=assocIndexOf$6(et,_e);return tt<0?void 0:et[tt][1]}var _listCacheGet=listCacheGet$6,assocIndexOf$5=_assocIndexOf;function listCacheHas$5(_e){return assocIndexOf$5(this.__data__,_e)>-1}var _listCacheHas=listCacheHas$5,assocIndexOf$4=_assocIndexOf;function listCacheSet$6(_e,et){var tt=this.__data__,nt=assocIndexOf$4(tt,_e);return nt<0?(++this.size,tt.push([_e,et])):tt[nt][1]=et,this}var _listCacheSet=listCacheSet$6,listCacheClear$4=_listCacheClear,listCacheDelete$4=_listCacheDelete,listCacheGet$5=_listCacheGet,listCacheHas$4=_listCacheHas,listCacheSet$5=_listCacheSet;function ListCache$7(_e){var et=-1,tt=_e==null?0:_e.length;for(this.clear();++et<tt;){var nt=_e[et];this.set(nt[0],nt[1])}}ListCache$7.prototype.clear=listCacheClear$4;ListCache$7.prototype.delete=listCacheDelete$4;ListCache$7.prototype.get=listCacheGet$5;ListCache$7.prototype.has=listCacheHas$4;ListCache$7.prototype.set=listCacheSet$5;var _ListCache=ListCache$7,ListCache$6=_ListCache;function stackClear$2(){this.__data__=new ListCache$6,this.size=0}var _stackClear=stackClear$2;function stackDelete$2(_e){var et=this.__data__,tt=et.delete(_e);return this.size=et.size,tt}var _stackDelete=stackDelete$2;function stackGet$2(_e){return this.__data__.get(_e)}var _stackGet=stackGet$2;function stackHas$2(_e){return this.__data__.has(_e)}var _stackHas=stackHas$2,root$h=require_root(),coreJsData$6=root$h["__core-js_shared__"],_coreJsData=coreJsData$6,coreJsData$5=_coreJsData,maskSrcKey$4=function(){var _e=/[^.]+$/.exec(coreJsData$5&&coreJsData$5.keys&&coreJsData$5.keys.IE_PROTO||"");return _e?"Symbol(src)_1."+_e:""}();function isMasked$5(_e){return!!maskSrcKey$4&&maskSrcKey$4 in _e}var _isMasked=isMasked$5,funcProto$7=Function.prototype,funcToString$7=funcProto$7.toString;function toSource$6(_e){if(_e!=null){try{return funcToString$7.call(_e)}catch{}try{return _e+""}catch{}}return""}var _toSource=toSource$6,isFunction$c=requireIsFunction(),isMasked$4=_isMasked,isObject$s=requireIsObject(),toSource$5=_toSource,reRegExpChar$5=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$4=/^\[object .+?Constructor\]$/,funcProto$6=Function.prototype,objectProto$t=Object.prototype,funcToString$6=funcProto$6.toString,hasOwnProperty$s=objectProto$t.hasOwnProperty,reIsNative$4=RegExp("^"+funcToString$6.call(hasOwnProperty$s).replace(reRegExpChar$5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$5(_e){if(!isObject$s(_e)||isMasked$4(_e))return!1;var et=isFunction$c(_e)?reIsNative$4:reIsHostCtor$4;return et.test(toSource$5(_e))}var _baseIsNative=baseIsNative$5;function getValue$9(_e,et){return _e==null?void 0:_e[et]}var _getValue=getValue$9,baseIsNative$4=_baseIsNative,getValue$8=_getValue;function getNative$a(_e,et){var tt=getValue$8(_e,et);return baseIsNative$4(tt)?tt:void 0}var _getNative=getNative$a,getNative$9=_getNative,root$g=require_root(),Map$8=getNative$9(root$g,"Map"),_Map=Map$8,_nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var _e=_getNative,et=_e(Object,"create");return _nativeCreate=et,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var _e=require_nativeCreate();function et(){this.__data__=_e?_e(null):{},this.size=0}return _hashClear=et,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function _e(et){var tt=this.has(et)&&delete this.__data__[et];return this.size-=tt?1:0,tt}return _hashDelete=_e,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var _e=require_nativeCreate(),et="__lodash_hash_undefined__",tt=Object.prototype,nt=tt.hasOwnProperty;function at(it){var ot=this.__data__;if(_e){var st=ot[it];return st===et?void 0:st}return nt.call(ot,it)?ot[it]:void 0}return _hashGet=at,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var _e=require_nativeCreate(),et=Object.prototype,tt=et.hasOwnProperty;function nt(at){var it=this.__data__;return _e?it[at]!==void 0:tt.call(it,at)}return _hashHas=nt,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var _e=require_nativeCreate(),et="__lodash_hash_undefined__";function tt(nt,at){var it=this.__data__;return this.size+=this.has(nt)?0:1,it[nt]=_e&&at===void 0?et:at,this}return _hashSet=tt,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var _e=require_hashClear(),et=require_hashDelete(),tt=require_hashGet(),nt=require_hashHas(),at=require_hashSet();function it(ot){var st=-1,ct=ot==null?0:ot.length;for(this.clear();++st<ct;){var dt=ot[st];this.set(dt[0],dt[1])}}return it.prototype.clear=_e,it.prototype.delete=et,it.prototype.get=tt,it.prototype.has=nt,it.prototype.set=at,_Hash=it,_Hash}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var _e=require_Hash(),et=_ListCache,tt=_Map;function nt(){this.size=0,this.__data__={hash:new _e,map:new(tt||et),string:new _e}}return _mapCacheClear=nt,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function _e(et){var tt=typeof et;return tt=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?et!=="__proto__":et===null}return _isKeyable=_e,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var _e=require_isKeyable();function et(tt,nt){var at=tt.__data__;return _e(nt)?at[typeof nt=="string"?"string":"hash"]:at.map}return _getMapData=et,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var _e=require_getMapData();function et(tt){var nt=_e(this,tt).delete(tt);return this.size-=nt?1:0,nt}return _mapCacheDelete=et,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var _e=require_getMapData();function et(tt){return _e(this,tt).get(tt)}return _mapCacheGet=et,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var _e=require_getMapData();function et(tt){return _e(this,tt).has(tt)}return _mapCacheHas=et,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var _e=require_getMapData();function et(tt,nt){var at=_e(this,tt),it=at.size;return at.set(tt,nt),this.size+=at.size==it?0:1,this}return _mapCacheSet=et,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var _e=require_mapCacheClear(),et=require_mapCacheDelete(),tt=require_mapCacheGet(),nt=require_mapCacheHas(),at=require_mapCacheSet();function it(ot){var st=-1,ct=ot==null?0:ot.length;for(this.clear();++st<ct;){var dt=ot[st];this.set(dt[0],dt[1])}}return it.prototype.clear=_e,it.prototype.delete=et,it.prototype.get=tt,it.prototype.has=nt,it.prototype.set=at,_MapCache=it,_MapCache}var ListCache$5=_ListCache,Map$7=_Map,MapCache$4=require_MapCache(),LARGE_ARRAY_SIZE$3=200;function stackSet$2(_e,et){var tt=this.__data__;if(tt instanceof ListCache$5){var nt=tt.__data__;if(!Map$7||nt.length<LARGE_ARRAY_SIZE$3-1)return nt.push([_e,et]),this.size=++tt.size,this;tt=this.__data__=new MapCache$4(nt)}return tt.set(_e,et),this.size=tt.size,this}var _stackSet=stackSet$2,ListCache$4=_ListCache,stackClear$1=_stackClear,stackDelete$1=_stackDelete,stackGet$1=_stackGet,stackHas$1=_stackHas,stackSet$1=_stackSet;function Stack$3(_e){var et=this.__data__=new ListCache$4(_e);this.size=et.size}Stack$3.prototype.clear=stackClear$1;Stack$3.prototype.delete=stackDelete$1;Stack$3.prototype.get=stackGet$1;Stack$3.prototype.has=stackHas$1;Stack$3.prototype.set=stackSet$1;var _Stack=Stack$3,_setCacheAdd,hasRequired_setCacheAdd;function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;var _e="__lodash_hash_undefined__";function et(tt){return this.__data__.set(tt,_e),this}return _setCacheAdd=et,_setCacheAdd}var _setCacheHas,hasRequired_setCacheHas;function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;hasRequired_setCacheHas=1;function _e(et){return this.__data__.has(et)}return _setCacheHas=_e,_setCacheHas}var _SetCache,hasRequired_SetCache;function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var _e=require_MapCache(),et=require_setCacheAdd(),tt=require_setCacheHas();function nt(at){var it=-1,ot=at==null?0:at.length;for(this.__data__=new _e;++it<ot;)this.add(at[it])}return nt.prototype.add=nt.prototype.push=et,nt.prototype.has=tt,_SetCache=nt,_SetCache}var _arraySome,hasRequired_arraySome;function require_arraySome(){if(hasRequired_arraySome)return _arraySome;hasRequired_arraySome=1;function _e(et,tt){for(var nt=-1,at=et==null?0:et.length;++nt<at;)if(tt(et[nt],nt,et))return!0;return!1}return _arraySome=_e,_arraySome}var _cacheHas,hasRequired_cacheHas;function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;hasRequired_cacheHas=1;function _e(et,tt){return et.has(tt)}return _cacheHas=_e,_cacheHas}var _equalArrays,hasRequired_equalArrays;function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var _e=require_SetCache(),et=require_arraySome(),tt=require_cacheHas(),nt=1,at=2;function it(ot,st,ct,dt,ht,pt){var mt=ct&nt,vt=ot.length,bt=st.length;if(vt!=bt&&!(mt&&bt>vt))return!1;var _t=pt.get(ot),wt=pt.get(st);if(_t&&wt)return _t==st&&wt==ot;var Et=-1,St=!0,Tt=ct&at?new _e:void 0;for(pt.set(ot,st),pt.set(st,ot);++Et<vt;){var Ct=ot[Et],Nt=st[Et];if(dt)var Dt=mt?dt(Nt,Ct,Et,st,ot,pt):dt(Ct,Nt,Et,ot,st,pt);if(Dt!==void 0){if(Dt)continue;St=!1;break}if(Tt){if(!et(st,function(kt,Ft){if(!tt(Tt,Ft)&&(Ct===kt||ht(Ct,kt,ct,dt,pt)))return Tt.push(Ft)})){St=!1;break}}else if(!(Ct===Nt||ht(Ct,Nt,ct,dt,pt))){St=!1;break}}return pt.delete(ot),pt.delete(st),St}return _equalArrays=it,_equalArrays}var root$f=require_root(),Uint8Array$4=root$f.Uint8Array,_Uint8Array=Uint8Array$4,_mapToArray,hasRequired_mapToArray;function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;hasRequired_mapToArray=1;function _e(et){var tt=-1,nt=Array(et.size);return et.forEach(function(at,it){nt[++tt]=[it,at]}),nt}return _mapToArray=_e,_mapToArray}var _setToArray,hasRequired_setToArray;function require_setToArray(){if(hasRequired_setToArray)return _setToArray;hasRequired_setToArray=1;function _e(et){var tt=-1,nt=Array(et.size);return et.forEach(function(at){nt[++tt]=at}),nt}return _setToArray=_e,_setToArray}var _equalByTag,hasRequired_equalByTag;function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var _e=require_Symbol(),et=_Uint8Array,tt=requireEq(),nt=require_equalArrays(),at=require_mapToArray(),it=require_setToArray(),ot=1,st=2,ct="[object Boolean]",dt="[object Date]",ht="[object Error]",pt="[object Map]",mt="[object Number]",vt="[object RegExp]",bt="[object Set]",_t="[object String]",wt="[object Symbol]",Et="[object ArrayBuffer]",St="[object DataView]",Tt=_e?_e.prototype:void 0,Ct=Tt?Tt.valueOf:void 0;function Nt(Dt,kt,Ft,jt,Gt,Rt,yt){switch(Ft){case St:if(Dt.byteLength!=kt.byteLength||Dt.byteOffset!=kt.byteOffset)return!1;Dt=Dt.buffer,kt=kt.buffer;case Et:return!(Dt.byteLength!=kt.byteLength||!Rt(new et(Dt),new et(kt)));case ct:case dt:case mt:return tt(+Dt,+kt);case ht:return Dt.name==kt.name&&Dt.message==kt.message;case vt:case _t:return Dt==kt+"";case pt:var $t=at;case bt:var xt=jt&ot;if($t||($t=it),Dt.size!=kt.size&&!xt)return!1;var At=yt.get(Dt);if(At)return At==kt;jt|=st,yt.set(Dt,kt);var Mt=nt($t(Dt),$t(kt),jt,Gt,Rt,yt);return yt.delete(Dt),Mt;case wt:if(Ct)return Ct.call(Dt)==Ct.call(kt)}return!1}return _equalByTag=Nt,_equalByTag}var _arrayPush,hasRequired_arrayPush;function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;hasRequired_arrayPush=1;function _e(et,tt){for(var nt=-1,at=tt.length,it=et.length;++nt<at;)et[it+nt]=tt[nt];return et}return _arrayPush=_e,_arrayPush}var arrayPush$2=require_arrayPush(),isArray$m=isArray_1;function baseGetAllKeys$3(_e,et,tt){var nt=et(_e);return isArray$m(_e)?nt:arrayPush$2(nt,tt(_e))}var _baseGetAllKeys=baseGetAllKeys$3;function stubArray$3(){return[]}var stubArray_1=stubArray$3,arrayFilter$1=require_arrayFilter(),stubArray$2=stubArray_1,objectProto$s=Object.prototype,propertyIsEnumerable$2=objectProto$s.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$5=nativeGetSymbols$2?function(_e){return _e==null?[]:(_e=Object(_e),arrayFilter$1(nativeGetSymbols$2(_e),function(et){return propertyIsEnumerable$2.call(_e,et)}))}:stubArray$2,_getSymbols=getSymbols$5,baseGetAllKeys$2=_baseGetAllKeys,getSymbols$4=_getSymbols,keys$9=requireKeys();function getAllKeys$2(_e){return baseGetAllKeys$2(_e,keys$9,getSymbols$4)}var _getAllKeys=getAllKeys$2,_equalObjects,hasRequired_equalObjects;function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var _e=_getAllKeys,et=1,tt=Object.prototype,nt=tt.hasOwnProperty;function at(it,ot,st,ct,dt,ht){var pt=st&et,mt=_e(it),vt=mt.length,bt=_e(ot),_t=bt.length;if(vt!=_t&&!pt)return!1;for(var wt=vt;wt--;){var Et=mt[wt];if(!(pt?Et in ot:nt.call(ot,Et)))return!1}var St=ht.get(it),Tt=ht.get(ot);if(St&&Tt)return St==ot&&Tt==it;var Ct=!0;ht.set(it,ot),ht.set(ot,it);for(var Nt=pt;++wt<vt;){Et=mt[wt];var Dt=it[Et],kt=ot[Et];if(ct)var Ft=pt?ct(kt,Dt,Et,ot,it,ht):ct(Dt,kt,Et,it,ot,ht);if(!(Ft===void 0?Dt===kt||dt(Dt,kt,st,ct,ht):Ft)){Ct=!1;break}Nt||(Nt=Et=="constructor")}if(Ct&&!Nt){var jt=it.constructor,Gt=ot.constructor;jt!=Gt&&"constructor"in it&&"constructor"in ot&&!(typeof jt=="function"&&jt instanceof jt&&typeof Gt=="function"&&Gt instanceof Gt)&&(Ct=!1)}return ht.delete(it),ht.delete(ot),Ct}return _equalObjects=at,_equalObjects}var getNative$8=_getNative,root$e=require_root(),DataView$4=getNative$8(root$e,"DataView"),_DataView=DataView$4,getNative$7=_getNative,root$d=require_root(),Promise$4=getNative$7(root$d,"Promise"),_Promise=Promise$4,getNative$6=_getNative,root$c=require_root(),Set$4=getNative$6(root$c,"Set"),_Set=Set$4,getNative$5=_getNative,root$b=require_root(),WeakMap$7=getNative$5(root$b,"WeakMap"),_WeakMap=WeakMap$7,DataView$3=_DataView,Map$6=_Map,Promise$3=_Promise,Set$3=_Set,WeakMap$6=_WeakMap,baseGetTag$3=require_baseGetTag(),toSource$4=_toSource,mapTag$8="[object Map]",objectTag$5="[object Object]",promiseTag$1="[object Promise]",setTag$8="[object Set]",weakMapTag$4="[object WeakMap]",dataViewTag$5="[object DataView]",dataViewCtorString$1=toSource$4(DataView$3),mapCtorString$1=toSource$4(Map$6),promiseCtorString$1=toSource$4(Promise$3),setCtorString$1=toSource$4(Set$3),weakMapCtorString$1=toSource$4(WeakMap$6),getTag$8=baseGetTag$3;(DataView$3&&getTag$8(new DataView$3(new ArrayBuffer(1)))!=dataViewTag$5||Map$6&&getTag$8(new Map$6)!=mapTag$8||Promise$3&&getTag$8(Promise$3.resolve())!=promiseTag$1||Set$3&&getTag$8(new Set$3)!=setTag$8||WeakMap$6&&getTag$8(new WeakMap$6)!=weakMapTag$4)&&(getTag$8=function(_e){var et=baseGetTag$3(_e),tt=et==objectTag$5?_e.constructor:void 0,nt=tt?toSource$4(tt):"";if(nt)switch(nt){case dataViewCtorString$1:return dataViewTag$5;case mapCtorString$1:return mapTag$8;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$8;case weakMapCtorString$1:return weakMapTag$4}return et});var _getTag=getTag$8,_baseIsEqualDeep,hasRequired_baseIsEqualDeep;function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var _e=_Stack,et=require_equalArrays(),tt=require_equalByTag(),nt=require_equalObjects(),at=_getTag,it=isArray_1,ot=requireIsBuffer(),st=requireIsTypedArray(),ct=1,dt="[object Arguments]",ht="[object Array]",pt="[object Object]",mt=Object.prototype,vt=mt.hasOwnProperty;function bt(_t,wt,Et,St,Tt,Ct){var Nt=it(_t),Dt=it(wt),kt=Nt?ht:at(_t),Ft=Dt?ht:at(wt);kt=kt==dt?pt:kt,Ft=Ft==dt?pt:Ft;var jt=kt==pt,Gt=Ft==pt,Rt=kt==Ft;if(Rt&&ot(_t)){if(!ot(wt))return!1;Nt=!0,jt=!1}if(Rt&&!jt)return Ct||(Ct=new _e),Nt||st(_t)?et(_t,wt,Et,St,Tt,Ct):tt(_t,wt,kt,Et,St,Tt,Ct);if(!(Et&ct)){var yt=jt&&vt.call(_t,"__wrapped__"),$t=Gt&&vt.call(wt,"__wrapped__");if(yt||$t){var xt=yt?_t.value():_t,At=$t?wt.value():wt;return Ct||(Ct=new _e),Tt(xt,At,Et,St,Ct)}}return Rt?(Ct||(Ct=new _e),nt(_t,wt,Et,St,Tt,Ct)):!1}return _baseIsEqualDeep=bt,_baseIsEqualDeep}var _baseIsEqual,hasRequired_baseIsEqual;function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var _e=require_baseIsEqualDeep(),et=isObjectLike_1;function tt(nt,at,it,ot,st){return nt===at?!0:nt==null||at==null||!et(nt)&&!et(at)?nt!==nt&&at!==at:_e(nt,at,it,ot,tt,st)}return _baseIsEqual=tt,_baseIsEqual}var Stack$2=_Stack,baseIsEqual$2=require_baseIsEqual(),COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(_e,et,tt,nt){var at=tt.length,it=at,ot=!nt;if(_e==null)return!it;for(_e=Object(_e);at--;){var st=tt[at];if(ot&&st[2]?st[1]!==_e[st[0]]:!(st[0]in _e))return!1}for(;++at<it;){st=tt[at];var ct=st[0],dt=_e[ct],ht=st[1];if(ot&&st[2]){if(dt===void 0&&!(ct in _e))return!1}else{var pt=new Stack$2;if(nt)var mt=nt(dt,ht,ct,_e,et,pt);if(!(mt===void 0?baseIsEqual$2(ht,dt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,nt,pt):mt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$r=requireIsObject();function isStrictComparable$3(_e){return _e===_e&&!isObject$r(_e)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$8=requireKeys();function getMatchData$2(_e){for(var et=keys$8(_e),tt=et.length;tt--;){var nt=et[tt],at=_e[nt];et[tt]=[nt,at,isStrictComparable$2(at)]}return et}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(_e,et){return function(tt){return tt==null?!1:tt[_e]===et&&(et!==void 0||_e in Object(tt))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(_e){var et=getMatchData$1(_e);return et.length==1&&et[0][2]?matchesStrictComparable$2(et[0][0],et[0][1]):function(tt){return tt===_e||baseIsMatch$1(tt,_e,et)}}var _baseMatches=baseMatches$2,isArray$l=isArray_1,isSymbol$d=isSymbol_1,reIsDeepProp$4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$4=/^\w*$/;function isKey$7(_e,et){if(isArray$l(_e))return!1;var tt=typeof _e;return tt=="number"||tt=="symbol"||tt=="boolean"||_e==null||isSymbol$d(_e)?!0:reIsPlainProp$4.test(_e)||!reIsDeepProp$4.test(_e)||et!=null&&_e in Object(et)}var _isKey=isKey$7,memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var _e=require_MapCache(),et="Expected a function";function tt(nt,at){if(typeof nt!="function"||at!=null&&typeof at!="function")throw new TypeError(et);var it=function(){var ot=arguments,st=at?at.apply(this,ot):ot[0],ct=it.cache;if(ct.has(st))return ct.get(st);var dt=nt.apply(this,ot);return it.cache=ct.set(st,dt)||ct,dt};return it.cache=new(tt.Cache||_e),it}return tt.Cache=_e,memoize_1=tt,memoize_1}var memoize$7=requireMemoize(),MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(_e){var et=memoize$7(_e,function(nt){return tt.size===MAX_MEMOIZE_SIZE$1&&tt.clear(),nt}),tt=et.cache;return et}var _memoizeCapped=memoizeCapped$2,memoizeCapped$1=_memoizeCapped,rePropName$5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$5=/\\(\\)?/g,stringToPath$8=memoizeCapped$1(function(_e){var et=[];return _e.charCodeAt(0)===46&&et.push(""),_e.replace(rePropName$5,function(tt,nt,at,it){et.push(at?it.replace(reEscapeChar$5,"$1"):nt||tt)}),et}),_stringToPath=stringToPath$8,isArray$k=isArray_1,isKey$6=_isKey,stringToPath$7=_stringToPath,toString$g=toString_1;function castPath$6(_e,et){return isArray$k(_e)?_e:isKey$6(_e,et)?[_e]:stringToPath$7(toString$g(_e))}var _castPath=castPath$6,isSymbol$c=isSymbol_1,INFINITY$7=1/0;function toKey$8(_e){if(typeof _e=="string"||isSymbol$c(_e))return _e;var et=_e+"";return et=="0"&&1/_e==-INFINITY$7?"-0":et}var _toKey=toKey$8,_baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var _e=_castPath,et=_toKey;function tt(nt,at){at=_e(at,nt);for(var it=0,ot=at.length;nt!=null&&it<ot;)nt=nt[et(at[it++])];return it&&it==ot?nt:void 0}return _baseGet=tt,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var _e=require_baseGet();function et(tt,nt,at){var it=tt==null?void 0:_e(tt,nt);return it===void 0?at:it}return get_1=et,get_1}function baseHasIn$2(_e,et){return _e!=null&&et in Object(_e)}var _baseHasIn=baseHasIn$2,_hasPath,hasRequired_hasPath;function require_hasPath(){if(hasRequired_hasPath)return _hasPath;hasRequired_hasPath=1;var _e=_castPath,et=requireIsArguments(),tt=isArray_1,nt=require_isIndex(),at=requireIsLength(),it=_toKey;function ot(st,ct,dt){ct=_e(ct,st);for(var ht=-1,pt=ct.length,mt=!1;++ht<pt;){var vt=it(ct[ht]);if(!(mt=st!=null&&dt(st,vt)))break;st=st[vt]}return mt||++ht!=pt?mt:(pt=st==null?0:st.length,!!pt&&at(pt)&&nt(vt,pt)&&(tt(st)||et(st)))}return _hasPath=ot,_hasPath}var baseHasIn$1=_baseHasIn,hasPath$1=require_hasPath();function hasIn$2(_e,et){return _e!=null&&hasPath$1(_e,et,baseHasIn$1)}var hasIn_1=hasIn$2,baseIsEqual$1=require_baseIsEqual(),get$6=requireGet(),hasIn$1=hasIn_1,isKey$5=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$7=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(_e,et){return isKey$5(_e)&&isStrictComparable$1(et)?matchesStrictComparable$1(toKey$7(_e),et):function(tt){var nt=get$6(tt,_e);return nt===void 0&&nt===et?hasIn$1(tt,_e):baseIsEqual$1(et,nt,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2;function identity$c(_e){return _e}var identity_1=identity$c;function baseProperty$2(_e){return function(et){return et==null?void 0:et[_e]}}var _baseProperty=baseProperty$2,baseGet$3=require_baseGet();function basePropertyDeep$2(_e){return function(et){return baseGet$3(et,_e)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$4=_isKey,toKey$6=_toKey;function property$2(_e){return isKey$4(_e)?baseProperty$1(toKey$6(_e)):basePropertyDeep$1(_e)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$b=identity_1,isArray$j=isArray_1,property$1=property_1;function baseIteratee$7(_e){return typeof _e=="function"?_e:_e==null?identity$b:typeof _e=="object"?isArray$j(_e)?baseMatchesProperty$1(_e[0],_e[1]):baseMatches$1(_e):property$1(_e)}var _baseIteratee=baseIteratee$7,filter_1,hasRequiredFilter;function requireFilter(){if(hasRequiredFilter)return filter_1;hasRequiredFilter=1;var _e=require_arrayFilter(),et=require_baseFilter(),tt=_baseIteratee,nt=isArray_1;function at(it,ot){var st=nt(it)?_e:et;return st(it,tt(ot))}return filter_1=at,filter_1}var isEmpty_1,hasRequiredIsEmpty;function requireIsEmpty(){if(hasRequiredIsEmpty)return isEmpty_1;hasRequiredIsEmpty=1;var _e=_baseKeys,et=_getTag,tt=requireIsArguments(),nt=isArray_1,at=requireIsArrayLike(),it=requireIsBuffer(),ot=_isPrototype,st=requireIsTypedArray(),ct="[object Map]",dt="[object Set]",ht=Object.prototype,pt=ht.hasOwnProperty;function mt(vt){if(vt==null)return!0;if(at(vt)&&(nt(vt)||typeof vt=="string"||typeof vt.splice=="function"||it(vt)||st(vt)||tt(vt)))return!vt.length;var bt=et(vt);if(bt==ct||bt==dt)return!vt.size;if(ot(vt))return!_e(vt).length;for(var _t in vt)if(pt.call(vt,_t))return!1;return!0}return isEmpty_1=mt,isEmpty_1}var _baseFindIndex,hasRequired_baseFindIndex;function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;hasRequired_baseFindIndex=1;function _e(et,tt,nt,at){for(var it=et.length,ot=nt+(at?1:-1);at?ot--:++ot<it;)if(tt(et[ot],ot,et))return ot;return-1}return _baseFindIndex=_e,_baseFindIndex}var _baseIsNaN,hasRequired_baseIsNaN;function require_baseIsNaN(){if(hasRequired_baseIsNaN)return _baseIsNaN;hasRequired_baseIsNaN=1;function _e(et){return et!==et}return _baseIsNaN=_e,_baseIsNaN}var _strictIndexOf,hasRequired_strictIndexOf;function require_strictIndexOf(){if(hasRequired_strictIndexOf)return _strictIndexOf;hasRequired_strictIndexOf=1;function _e(et,tt,nt){for(var at=nt-1,it=et.length;++at<it;)if(et[at]===tt)return at;return-1}return _strictIndexOf=_e,_strictIndexOf}var _baseIndexOf,hasRequired_baseIndexOf;function require_baseIndexOf(){if(hasRequired_baseIndexOf)return _baseIndexOf;hasRequired_baseIndexOf=1;var _e=require_baseFindIndex(),et=require_baseIsNaN(),tt=require_strictIndexOf();function nt(at,it,ot){return it===it?tt(at,it,ot):_e(at,et,ot)}return _baseIndexOf=nt,_baseIndexOf}var _arrayIncludes,hasRequired_arrayIncludes;function require_arrayIncludes(){if(hasRequired_arrayIncludes)return _arrayIncludes;hasRequired_arrayIncludes=1;var _e=require_baseIndexOf();function et(tt,nt){var at=tt==null?0:tt.length;return!!at&&_e(tt,nt,0)>-1}return _arrayIncludes=et,_arrayIncludes}var _arrayIncludesWith,hasRequired_arrayIncludesWith;function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;hasRequired_arrayIncludesWith=1;function _e(et,tt,nt){for(var at=-1,it=et==null?0:et.length;++at<it;)if(nt(tt,et[at]))return!0;return!1}return _arrayIncludesWith=_e,_arrayIncludesWith}var _baseIntersection,hasRequired_baseIntersection;function require_baseIntersection(){if(hasRequired_baseIntersection)return _baseIntersection;hasRequired_baseIntersection=1;var _e=require_SetCache(),et=require_arrayIncludes(),tt=require_arrayIncludesWith(),nt=_arrayMap,at=require_baseUnary(),it=require_cacheHas(),ot=Math.min;function st(ct,dt,ht){for(var pt=ht?tt:et,mt=ct[0].length,vt=ct.length,bt=vt,_t=Array(vt),wt=1/0,Et=[];bt--;){var St=ct[bt];bt&&dt&&(St=nt(St,at(dt))),wt=ot(St.length,wt),_t[bt]=!ht&&(dt||mt>=120&&St.length>=120)?new _e(bt&&St):void 0}St=ct[0];var Tt=-1,Ct=_t[0];e:for(;++Tt<mt&&Et.length<wt;){var Nt=St[Tt],Dt=dt?dt(Nt):Nt;if(Nt=ht||Nt!==0?Nt:0,!(Ct?it(Ct,Dt):pt(Et,Dt,ht))){for(bt=vt;--bt;){var kt=_t[bt];if(!(kt?it(kt,Dt):pt(ct[bt],Dt,ht)))continue e}Ct&&Ct.push(Dt),Et.push(Nt)}}return Et}return _baseIntersection=st,_baseIntersection}function apply$6(_e,et,tt){switch(tt.length){case 0:return _e.call(et);case 1:return _e.call(et,tt[0]);case 2:return _e.call(et,tt[0],tt[1]);case 3:return _e.call(et,tt[0],tt[1],tt[2])}return _e.apply(et,tt)}var _apply=apply$6,apply$5=_apply,nativeMax$c=Math.max;function overRest$2(_e,et,tt){return et=nativeMax$c(et===void 0?_e.length-1:et,0),function(){for(var nt=arguments,at=-1,it=nativeMax$c(nt.length-et,0),ot=Array(it);++at<it;)ot[at]=nt[et+at];at=-1;for(var st=Array(et+1);++at<et;)st[at]=nt[at];return st[et]=tt(ot),apply$5(_e,this,st)}}var _overRest=overRest$2;function constant$4(_e){return function(){return _e}}var constant_1=constant$4,getNative$4=_getNative,defineProperty$7=function(){try{var _e=getNative$4(Object,"defineProperty");return _e({},"",{}),_e}catch{}}(),_defineProperty$1l=defineProperty$7,constant$3=constant_1,defineProperty$6=_defineProperty$1l,identity$a=identity_1,baseSetToString$3=defineProperty$6?function(_e,et){return defineProperty$6(_e,"toString",{configurable:!0,enumerable:!1,value:constant$3(et),writable:!0})}:identity$a,_baseSetToString=baseSetToString$3,HOT_COUNT$1=800,HOT_SPAN$1=16,nativeNow$1=Date.now;function shortOut$3(_e){var et=0,tt=0;return function(){var nt=nativeNow$1(),at=HOT_SPAN$1-(nt-tt);if(tt=nt,at>0){if(++et>=HOT_COUNT$1)return arguments[0]}else et=0;return _e.apply(void 0,arguments)}}var _shortOut=shortOut$3,baseSetToString$2=_baseSetToString,shortOut$2=_shortOut,setToString$4=shortOut$2(baseSetToString$2),_setToString=setToString$4,_baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var _e=identity_1,et=_overRest,tt=_setToString;function nt(at,it){return tt(et(at,it,_e),at+"")}return _baseRest=nt,_baseRest}var isArrayLikeObject_1,hasRequiredIsArrayLikeObject;function requireIsArrayLikeObject(){if(hasRequiredIsArrayLikeObject)return isArrayLikeObject_1;hasRequiredIsArrayLikeObject=1;var _e=requireIsArrayLike(),et=isObjectLike_1;function tt(nt){return et(nt)&&_e(nt)}return isArrayLikeObject_1=tt,isArrayLikeObject_1}var _castArrayLikeObject,hasRequired_castArrayLikeObject;function require_castArrayLikeObject(){if(hasRequired_castArrayLikeObject)return _castArrayLikeObject;hasRequired_castArrayLikeObject=1;var _e=requireIsArrayLikeObject();function et(tt){return _e(tt)?tt:[]}return _castArrayLikeObject=et,_castArrayLikeObject}var intersection_1,hasRequiredIntersection;function requireIntersection(){if(hasRequiredIntersection)return intersection_1;hasRequiredIntersection=1;var _e=_arrayMap,et=require_baseIntersection(),tt=require_baseRest(),nt=require_castArrayLikeObject(),at=tt(function(it){var ot=_e(it,nt);return ot.length&&ot[0]===it[0]?et(ot):[]});return intersection_1=at,intersection_1}var _baseHas,hasRequired_baseHas;function require_baseHas(){if(hasRequired_baseHas)return _baseHas;hasRequired_baseHas=1;var _e=Object.prototype,et=_e.hasOwnProperty;function tt(nt,at){return nt!=null&&et.call(nt,at)}return _baseHas=tt,_baseHas}var has_1,hasRequiredHas;function requireHas(){if(hasRequiredHas)return has_1;hasRequiredHas=1;var _e=require_baseHas(),et=require_hasPath();function tt(nt,at){return nt!=null&&et(nt,at,_e)}return has_1=tt,has_1}function arrayEach$3(_e,et){for(var tt=-1,nt=_e==null?0:_e.length;++tt<nt&&et(_e[tt],tt,_e)!==!1;);return _e}var _arrayEach=arrayEach$3,_castFunction,hasRequired_castFunction;function require_castFunction(){if(hasRequired_castFunction)return _castFunction;hasRequired_castFunction=1;var _e=identity_1;function et(tt){return typeof tt=="function"?tt:_e}return _castFunction=et,_castFunction}var forEach_1$1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1$1;hasRequiredForEach=1;var _e=_arrayEach,et=require_baseEach(),tt=require_castFunction(),nt=isArray_1;function at(it,ot){var st=nt(it)?_e:et;return st(it,tt(ot))}return forEach_1$1=at,forEach_1$1}var each$a,hasRequiredEach;function requireEach(){return hasRequiredEach||(hasRequiredEach=1,each$a=requireForEach()),each$a}var last_1,hasRequiredLast;function requireLast(){if(hasRequiredLast)return last_1;hasRequiredLast=1;function _e(et){var tt=et==null?0:et.length;return tt?et[tt-1]:void 0}return last_1=_e,last_1}var _baseSlice,hasRequired_baseSlice;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;hasRequired_baseSlice=1;function _e(et,tt,nt){var at=-1,it=et.length;tt<0&&(tt=-tt>it?0:it+tt),nt=nt>it?it:nt,nt<0&&(nt+=it),it=tt>nt?0:nt-tt>>>0,tt>>>=0;for(var ot=Array(it);++at<it;)ot[at]=et[at+tt];return ot}return _baseSlice=_e,_baseSlice}var _parent,hasRequired_parent;function require_parent(){if(hasRequired_parent)return _parent;hasRequired_parent=1;var _e=require_baseGet(),et=require_baseSlice();function tt(nt,at){return at.length<2?nt:_e(nt,et(at,0,-1))}return _parent=tt,_parent}var _baseInvoke,hasRequired_baseInvoke;function require_baseInvoke(){if(hasRequired_baseInvoke)return _baseInvoke;hasRequired_baseInvoke=1;var _e=_apply,et=_castPath,tt=requireLast(),nt=require_parent(),at=_toKey;function it(ot,st,ct){st=et(st,ot),ot=nt(ot,st);var dt=ot==null?ot:ot[at(tt(st))];return dt==null?void 0:_e(dt,ot,ct)}return _baseInvoke=it,_baseInvoke}var invoke_1,hasRequiredInvoke;function requireInvoke(){if(hasRequiredInvoke)return invoke_1;hasRequiredInvoke=1;var _e=require_baseInvoke(),et=require_baseRest(),tt=et(_e);return invoke_1=tt,invoke_1}var hasRequiredModernAutoControlledComponent;function requireModernAutoControlledComponent(){if(hasRequiredModernAutoControlledComponent)return ModernAutoControlledComponent$1;hasRequiredModernAutoControlledComponent=1;var _e=interopRequireDefaultExports;ModernAutoControlledComponent$1.__esModule=!0,ModernAutoControlledComponent$1.default=void 0;var et=_e(require_extends()),tt=_e(requireAssertThisInitialized()),nt=_e(requireInheritsLoose()),at=_e(requireIsUndefined());_e(requireStartsWith()),_e(requireFilter()),_e(requireIsEmpty()),_e(requireKeys()),_e(requireIntersection()),_e(requireHas()),_e(requireEach());var it=_e(requireInvoke()),ot=_e(reactExports),st=function(pt){return"default"+(pt[0].toUpperCase()+pt.slice(1))},ct=function(pt,mt,vt,bt){bt===void 0&&(bt=!1);var _t=mt[pt];if(_t!==void 0)return _t;if(bt){var wt=mt[st(pt)];if(wt!==void 0)return wt;if(vt){var Et=vt[pt];if(Et!==void 0)return Et}}if(pt==="checked")return!1;if(pt==="value")return mt.multiple?[]:""},dt=function(ht){(0,nt.default)(pt,ht);function pt(){for(var mt,vt=arguments.length,bt=new Array(vt),_t=0;_t<vt;_t++)bt[_t]=arguments[_t];mt=ht.call.apply(ht,[this].concat(bt))||this;var wt=mt.constructor,Et=wt.autoControlledProps,St=wt.getAutoControlledStateFromProps,Tt=(0,it.default)((0,tt.default)(mt),"getInitialAutoControlledState",mt.props)||{},Ct=Et.reduce(function(Nt,Dt){return Nt[Dt]=ct(Dt,mt.props,Tt,!0),Nt},{});return mt.state=(0,et.default)({},Tt,Ct,{autoControlledProps:Et,getAutoControlledStateFromProps:St}),mt}return pt.getDerivedStateFromProps=function(vt,bt){var _t=bt.autoControlledProps,wt=bt.getAutoControlledStateFromProps,Et=_t.reduce(function(Tt,Ct){var Nt=!(0,at.default)(vt[Ct]);return Nt&&(Tt[Ct]=vt[Ct]),Tt},{});if(wt){var St=wt(vt,(0,et.default)({},bt,Et),bt);return(0,et.default)({},Et,St)}return Et},pt.getAutoControlledStateFromProps=function(){return null},pt}(ot.default.Component);return ModernAutoControlledComponent$1.default=dt,ModernAutoControlledComponent$1}var childrenUtils={},_createFind,hasRequired_createFind;function require_createFind(){if(hasRequired_createFind)return _createFind;hasRequired_createFind=1;var _e=_baseIteratee,et=requireIsArrayLike(),tt=requireKeys();function nt(at){return function(it,ot,st){var ct=Object(it);if(!et(it)){var dt=_e(ot);it=tt(it),ot=function(pt){return dt(ct[pt],pt,ct)}}var ht=at(it,ot,st);return ht>-1?ct[dt?it[ht]:ht]:void 0}}return _createFind=nt,_createFind}var findIndex_1,hasRequiredFindIndex;function requireFindIndex(){if(hasRequiredFindIndex)return findIndex_1;hasRequiredFindIndex=1;var _e=require_baseFindIndex(),et=_baseIteratee,tt=toInteger_1,nt=Math.max;function at(it,ot,st){var ct=it==null?0:it.length;if(!ct)return-1;var dt=st==null?0:tt(st);return dt<0&&(dt=nt(ct+dt,0)),_e(it,et(ot),dt)}return findIndex_1=at,findIndex_1}var find_1,hasRequiredFind;function requireFind(){if(hasRequiredFind)return find_1;hasRequiredFind=1;var _e=require_createFind(),et=requireFindIndex(),tt=_e(et);return find_1=tt,find_1}var _baseSome,hasRequired_baseSome;function require_baseSome(){if(hasRequired_baseSome)return _baseSome;hasRequired_baseSome=1;var _e=require_baseEach();function et(tt,nt){var at;return _e(tt,function(it,ot,st){return at=nt(it,ot,st),!at}),!!at}return _baseSome=et,_baseSome}var _isIterateeCall,hasRequired_isIterateeCall;function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var _e=requireEq(),et=requireIsArrayLike(),tt=require_isIndex(),nt=requireIsObject();function at(it,ot,st){if(!nt(st))return!1;var ct=typeof ot;return(ct=="number"?et(st)&&tt(ot,st.length):ct=="string"&&ot in st)?_e(st[ot],it):!1}return _isIterateeCall=at,_isIterateeCall}var some_1,hasRequiredSome;function requireSome(){if(hasRequiredSome)return some_1;hasRequiredSome=1;var _e=require_arraySome(),et=_baseIteratee,tt=require_baseSome(),nt=isArray_1,at=require_isIterateeCall();function it(ot,st,ct){var dt=nt(ot)?_e:tt;return ct&&at(ot,st,ct)&&(st=void 0),dt(ot,et(st))}return some_1=it,some_1}var hasRequiredChildrenUtils;function requireChildrenUtils(){if(hasRequiredChildrenUtils)return childrenUtils;hasRequiredChildrenUtils=1;var _e=interopRequireDefaultExports;childrenUtils.__esModule=!0,childrenUtils.isNil=childrenUtils.findByType=childrenUtils.someByType=void 0;var et=_e(requireFind()),tt=_e(requireSome()),nt=reactExports,at=function(ct,dt){return(0,tt.default)(nt.Children.toArray(ct),{type:dt})};childrenUtils.someByType=at;var it=function(ct,dt){return(0,et.default)(nt.Children.toArray(ct),{type:dt})};childrenUtils.findByType=it;var ot=function(ct){return ct==null||Array.isArray(ct)&&ct.length===0};return childrenUtils.isNil=ot,childrenUtils}var classNameBuilders={},numberToWord$1={},hasRequiredNumberToWord;function requireNumberToWord(){if(hasRequiredNumberToWord)return numberToWord$1;hasRequiredNumberToWord=1,numberToWord$1.__esModule=!0,numberToWord$1.numberToWord=et,numberToWord$1.numberToWordMap=void 0;var _e={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};numberToWord$1.numberToWordMap=_e;function et(tt){var nt=typeof tt;return nt==="string"||nt==="number"?_e[tt]||tt:""}return numberToWord$1}var hasRequiredClassNameBuilders;function requireClassNameBuilders(){if(hasRequiredClassNameBuilders)return classNameBuilders;hasRequiredClassNameBuilders=1,classNameBuilders.__esModule=!0,classNameBuilders.useWidthProp=classNameBuilders.useVerticalAlignProp=classNameBuilders.useTextAlignProp=classNameBuilders.useMultipleProp=classNameBuilders.useKeyOrValueAndKey=classNameBuilders.useValueAndKey=classNameBuilders.useKeyOnly=void 0;var _e=requireNumberToWord(),et=function(dt,ht){return dt&&ht};classNameBuilders.useKeyOnly=et;var tt=function(dt,ht){return dt&&dt!==!0&&dt+" "+ht};classNameBuilders.useValueAndKey=tt;var nt=function(dt,ht){return dt&&(dt===!0?ht:dt+" "+ht)};classNameBuilders.useKeyOrValueAndKey=nt;var at=function(dt,ht){return!dt||dt===!0?null:dt.replace("large screen","large-screen").replace(/ vertically/g,"-vertically").split(" ").map(function(pt){return pt.replace("-"," ")+" "+ht}).join(" ")};classNameBuilders.useMultipleProp=at;var it=function(dt){return dt==="justified"?"justified":tt(dt,"aligned")};classNameBuilders.useTextAlignProp=it;var ot=function(dt){return tt(dt,"aligned")};classNameBuilders.useVerticalAlignProp=ot;var st=function(dt,ht,pt){if(ht===void 0&&(ht=""),pt===void 0&&(pt=!1),pt&&dt==="equal")return"equal width";var mt=typeof dt;return(mt==="string"||mt==="number")&&ht?(0,_e.numberToWord)(dt)+" "+ht:(0,_e.numberToWord)(dt)};return classNameBuilders.useWidthProp=st,classNameBuilders}var customPropTypes={},_baseDifference,hasRequired_baseDifference;function require_baseDifference(){if(hasRequired_baseDifference)return _baseDifference;hasRequired_baseDifference=1;var _e=require_SetCache(),et=require_arrayIncludes(),tt=require_arrayIncludesWith(),nt=_arrayMap,at=require_baseUnary(),it=require_cacheHas(),ot=200;function st(ct,dt,ht,pt){var mt=-1,vt=et,bt=!0,_t=ct.length,wt=[],Et=dt.length;if(!_t)return wt;ht&&(dt=nt(dt,at(ht))),pt?(vt=tt,bt=!1):dt.length>=ot&&(vt=it,bt=!1,dt=new _e(dt));e:for(;++mt<_t;){var St=ct[mt],Tt=ht==null?St:ht(St);if(St=pt||St!==0?St:0,bt&&Tt===Tt){for(var Ct=Et;Ct--;)if(dt[Ct]===Tt)continue e;wt.push(St)}else vt(dt,Tt,pt)||wt.push(St)}return wt}return _baseDifference=st,_baseDifference}var _isFlattenable,hasRequired_isFlattenable;function require_isFlattenable(){if(hasRequired_isFlattenable)return _isFlattenable;hasRequired_isFlattenable=1;var _e=require_Symbol(),et=requireIsArguments(),tt=isArray_1,nt=_e?_e.isConcatSpreadable:void 0;function at(it){return tt(it)||et(it)||!!(nt&&it&&it[nt])}return _isFlattenable=at,_isFlattenable}var _baseFlatten,hasRequired_baseFlatten;function require_baseFlatten(){if(hasRequired_baseFlatten)return _baseFlatten;hasRequired_baseFlatten=1;var _e=require_arrayPush(),et=require_isFlattenable();function tt(nt,at,it,ot,st){var ct=-1,dt=nt.length;for(it||(it=et),st||(st=[]);++ct<dt;){var ht=nt[ct];at>0&&it(ht)?at>1?tt(ht,at-1,it,ot,st):_e(st,ht):ot||(st[st.length]=ht)}return st}return _baseFlatten=tt,_baseFlatten}var difference_1,hasRequiredDifference;function requireDifference(){if(hasRequiredDifference)return difference_1;hasRequiredDifference=1;var _e=require_baseDifference(),et=require_baseFlatten(),tt=require_baseRest(),nt=requireIsArrayLikeObject(),at=tt(function(it,ot){return nt(it)?_e(it,et(ot,1,nt,!0)):[]});return difference_1=at,difference_1}var _castSlice,hasRequired_castSlice;function require_castSlice(){if(hasRequired_castSlice)return _castSlice;hasRequired_castSlice=1;var _e=require_baseSlice();function et(tt,nt,at){var it=tt.length;return at=at===void 0?it:at,!nt&&at>=it?tt:_e(tt,nt,at)}return _castSlice=et,_castSlice}var _charsEndIndex,hasRequired_charsEndIndex;function require_charsEndIndex(){if(hasRequired_charsEndIndex)return _charsEndIndex;hasRequired_charsEndIndex=1;var _e=require_baseIndexOf();function et(tt,nt){for(var at=tt.length;at--&&_e(nt,tt[at],0)>-1;);return at}return _charsEndIndex=et,_charsEndIndex}var _charsStartIndex,hasRequired_charsStartIndex;function require_charsStartIndex(){if(hasRequired_charsStartIndex)return _charsStartIndex;hasRequired_charsStartIndex=1;var _e=require_baseIndexOf();function et(tt,nt){for(var at=-1,it=tt.length;++at<it&&_e(nt,tt[at],0)>-1;);return at}return _charsStartIndex=et,_charsStartIndex}var _asciiToArray,hasRequired_asciiToArray;function require_asciiToArray(){if(hasRequired_asciiToArray)return _asciiToArray;hasRequired_asciiToArray=1;function _e(et){return et.split("")}return _asciiToArray=_e,_asciiToArray}var _hasUnicode,hasRequired_hasUnicode;function require_hasUnicode(){if(hasRequired_hasUnicode)return _hasUnicode;hasRequired_hasUnicode=1;var _e="\\ud800-\\udfff",et="\\u0300-\\u036f",tt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",at=et+tt+nt,it="\\ufe0e\\ufe0f",ot="\\u200d",st=RegExp("["+ot+_e+at+it+"]");function ct(dt){return st.test(dt)}return _hasUnicode=ct,_hasUnicode}var _unicodeToArray,hasRequired_unicodeToArray;function require_unicodeToArray(){if(hasRequired_unicodeToArray)return _unicodeToArray;hasRequired_unicodeToArray=1;var _e="\\ud800-\\udfff",et="\\u0300-\\u036f",tt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",at=et+tt+nt,it="\\ufe0e\\ufe0f",ot="["+_e+"]",st="["+at+"]",ct="\\ud83c[\\udffb-\\udfff]",dt="(?:"+st+"|"+ct+")",ht="[^"+_e+"]",pt="(?:\\ud83c[\\udde6-\\uddff]){2}",mt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="\\u200d",bt=dt+"?",_t="["+it+"]?",wt="(?:"+vt+"(?:"+[ht,pt,mt].join("|")+")"+_t+bt+")*",Et=_t+bt+wt,St="(?:"+[ht+st+"?",st,pt,mt,ot].join("|")+")",Tt=RegExp(ct+"(?="+ct+")|"+St+Et,"g");function Ct(Nt){return Nt.match(Tt)||[]}return _unicodeToArray=Ct,_unicodeToArray}var _stringToArray,hasRequired_stringToArray;function require_stringToArray(){if(hasRequired_stringToArray)return _stringToArray;hasRequired_stringToArray=1;var _e=require_asciiToArray(),et=require_hasUnicode(),tt=require_unicodeToArray();function nt(at){return et(at)?tt(at):_e(at)}return _stringToArray=nt,_stringToArray}var trim_1,hasRequiredTrim;function requireTrim(){if(hasRequiredTrim)return trim_1;hasRequiredTrim=1;var _e=require_baseToString(),et=require_baseTrim(),tt=require_castSlice(),nt=require_charsEndIndex(),at=require_charsStartIndex(),it=require_stringToArray(),ot=toString_1;function st(ct,dt,ht){if(ct=ot(ct),ct&&(ht||dt===void 0))return et(ct);if(!ct||!(dt=_e(dt)))return ct;var pt=it(ct),mt=it(dt),vt=at(pt,mt),bt=nt(pt,mt)+1;return tt(pt,vt,bt).join("")}return trim_1=st,trim_1}var defineProperty$5=_defineProperty$1l;function baseAssignValue$4(_e,et,tt){et=="__proto__"&&defineProperty$5?defineProperty$5(_e,et,{configurable:!0,enumerable:!0,value:tt,writable:!0}):_e[et]=tt}var _baseAssignValue=baseAssignValue$4,baseAssignValue$3=_baseAssignValue,eq$4=requireEq(),objectProto$r=Object.prototype,hasOwnProperty$r=objectProto$r.hasOwnProperty;function assignValue$4(_e,et,tt){var nt=_e[et];(!(hasOwnProperty$r.call(_e,et)&&eq$4(nt,tt))||tt===void 0&&!(et in _e))&&baseAssignValue$3(_e,et,tt)}var _assignValue=assignValue$4,_baseSet,hasRequired_baseSet;function require_baseSet(){if(hasRequired_baseSet)return _baseSet;hasRequired_baseSet=1;var _e=_assignValue,et=_castPath,tt=require_isIndex(),nt=requireIsObject(),at=_toKey;function it(ot,st,ct,dt){if(!nt(ot))return ot;st=et(st,ot);for(var ht=-1,pt=st.length,mt=pt-1,vt=ot;vt!=null&&++ht<pt;){var bt=at(st[ht]),_t=ct;if(bt==="__proto__"||bt==="constructor"||bt==="prototype")return ot;if(ht!=mt){var wt=vt[bt];_t=dt?dt(wt,bt,vt):void 0,_t===void 0&&(_t=nt(wt)?wt:tt(st[ht+1])?[]:{})}_e(vt,bt,_t),vt=vt[bt]}return ot}return _baseSet=it,_baseSet}var _basePickBy,hasRequired_basePickBy;function require_basePickBy(){if(hasRequired_basePickBy)return _basePickBy;hasRequired_basePickBy=1;var _e=require_baseGet(),et=require_baseSet(),tt=_castPath;function nt(at,it,ot){for(var st=-1,ct=it.length,dt={};++st<ct;){var ht=it[st],pt=_e(at,ht);ot(pt,ht)&&et(dt,tt(ht,at),pt)}return dt}return _basePickBy=nt,_basePickBy}var _basePick,hasRequired_basePick;function require_basePick(){if(hasRequired_basePick)return _basePick;hasRequired_basePick=1;var _e=require_basePickBy(),et=hasIn_1;function tt(nt,at){return _e(nt,at,function(it,ot){return et(nt,ot)})}return _basePick=tt,_basePick}var baseFlatten$2=require_baseFlatten();function flatten$5(_e){var et=_e==null?0:_e.length;return et?baseFlatten$2(_e,1):[]}var flatten_1=flatten$5,flatten$4=flatten_1,overRest$1=_overRest,setToString$3=_setToString;function flatRest$3(_e){return setToString$3(overRest$1(_e,void 0,flatten$4),_e+"")}var _flatRest=flatRest$3,pick_1,hasRequiredPick;function requirePick(){if(hasRequiredPick)return pick_1;hasRequiredPick=1;var _e=require_basePick(),et=_flatRest,tt=et(function(nt,at){return nt==null?{}:_e(nt,at)});return pick_1=tt,pick_1}var _getPrototype,hasRequired_getPrototype;function require_getPrototype(){if(hasRequired_getPrototype)return _getPrototype;hasRequired_getPrototype=1;var _e=_overArg,et=_e(Object.getPrototypeOf,Object);return _getPrototype=et,_getPrototype}var isPlainObject_1,hasRequiredIsPlainObject;function requireIsPlainObject(){if(hasRequiredIsPlainObject)return isPlainObject_1;hasRequiredIsPlainObject=1;var _e=require_baseGetTag(),et=require_getPrototype(),tt=isObjectLike_1,nt="[object Object]",at=Function.prototype,it=Object.prototype,ot=at.toString,st=it.hasOwnProperty,ct=ot.call(Object);function dt(ht){if(!tt(ht)||_e(ht)!=nt)return!1;var pt=et(ht);if(pt===null)return!0;var mt=st.call(pt,"constructor")&&pt.constructor;return typeof mt=="function"&&mt instanceof mt&&ot.call(mt)==ct}return isPlainObject_1=dt,isPlainObject_1}var isNil_1,hasRequiredIsNil;function requireIsNil(){if(hasRequiredIsNil)return isNil_1;hasRequiredIsNil=1;function _e(et){return et==null}return isNil_1=_e,isNil_1}var _baseExtremum,hasRequired_baseExtremum;function require_baseExtremum(){if(hasRequired_baseExtremum)return _baseExtremum;hasRequired_baseExtremum=1;var _e=isSymbol_1;function et(tt,nt,at){for(var it=-1,ot=tt.length;++it<ot;){var st=tt[it],ct=nt(st);if(ct!=null&&(dt===void 0?ct===ct&&!_e(ct):at(ct,dt)))var dt=ct,ht=st}return ht}return _baseExtremum=et,_baseExtremum}var _baseLt,hasRequired_baseLt;function require_baseLt(){if(hasRequired_baseLt)return _baseLt;hasRequired_baseLt=1;function _e(et,tt){return et<tt}return _baseLt=_e,_baseLt}var min_1,hasRequiredMin;function requireMin(){if(hasRequiredMin)return min_1;hasRequiredMin=1;var _e=require_baseExtremum(),et=require_baseLt(),tt=identity_1;function nt(at){return at&&at.length?_e(at,tt,et):void 0}return min_1=nt,min_1}var _baseSum,hasRequired_baseSum;function require_baseSum(){if(hasRequired_baseSum)return _baseSum;hasRequired_baseSum=1;function _e(et,tt){for(var nt,at=-1,it=et.length;++at<it;){var ot=tt(et[at]);ot!==void 0&&(nt=nt===void 0?ot:nt+ot)}return nt}return _baseSum=_e,_baseSum}var sum_1,hasRequiredSum;function requireSum(){if(hasRequiredSum)return sum_1;hasRequiredSum=1;var _e=require_baseSum(),et=identity_1;function tt(nt){return nt&&nt.length?_e(nt,et):0}return sum_1=tt,sum_1}var _baseMap,hasRequired_baseMap;function require_baseMap(){if(hasRequired_baseMap)return _baseMap;hasRequired_baseMap=1;var _e=require_baseEach(),et=requireIsArrayLike();function tt(nt,at){var it=-1,ot=et(nt)?Array(nt.length):[];return _e(nt,function(st,ct,dt){ot[++it]=at(st,ct,dt)}),ot}return _baseMap=tt,_baseMap}var map_1,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map_1;hasRequiredMap=1;var _e=_arrayMap,et=_baseIteratee,tt=require_baseMap(),nt=isArray_1;function at(it,ot){var st=nt(it)?_e:tt;return st(it,et(ot))}return map_1=at,map_1}var _baseSortBy,hasRequired_baseSortBy;function require_baseSortBy(){if(hasRequired_baseSortBy)return _baseSortBy;hasRequired_baseSortBy=1;function _e(et,tt){var nt=et.length;for(et.sort(tt);nt--;)et[nt]=et[nt].value;return et}return _baseSortBy=_e,_baseSortBy}var _compareAscending,hasRequired_compareAscending;function require_compareAscending(){if(hasRequired_compareAscending)return _compareAscending;hasRequired_compareAscending=1;var _e=isSymbol_1;function et(tt,nt){if(tt!==nt){var at=tt!==void 0,it=tt===null,ot=tt===tt,st=_e(tt),ct=nt!==void 0,dt=nt===null,ht=nt===nt,pt=_e(nt);if(!dt&&!pt&&!st&&tt>nt||st&&ct&&ht&&!dt&&!pt||it&&ct&&ht||!at&&ht||!ot)return 1;if(!it&&!st&&!pt&&tt<nt||pt&&at&&ot&&!it&&!st||dt&&at&&ot||!ct&&ot||!ht)return-1}return 0}return _compareAscending=et,_compareAscending}var _compareMultiple,hasRequired_compareMultiple;function require_compareMultiple(){if(hasRequired_compareMultiple)return _compareMultiple;hasRequired_compareMultiple=1;var _e=require_compareAscending();function et(tt,nt,at){for(var it=-1,ot=tt.criteria,st=nt.criteria,ct=ot.length,dt=at.length;++it<ct;){var ht=_e(ot[it],st[it]);if(ht){if(it>=dt)return ht;var pt=at[it];return ht*(pt=="desc"?-1:1)}}return tt.index-nt.index}return _compareMultiple=et,_compareMultiple}var _baseOrderBy,hasRequired_baseOrderBy;function require_baseOrderBy(){if(hasRequired_baseOrderBy)return _baseOrderBy;hasRequired_baseOrderBy=1;var _e=_arrayMap,et=require_baseGet(),tt=_baseIteratee,nt=require_baseMap(),at=require_baseSortBy(),it=require_baseUnary(),ot=require_compareMultiple(),st=identity_1,ct=isArray_1;function dt(ht,pt,mt){pt.length?pt=_e(pt,function(_t){return ct(_t)?function(wt){return et(wt,_t.length===1?_t[0]:_t)}:_t}):pt=[st];var vt=-1;pt=_e(pt,it(tt));var bt=nt(ht,function(_t,wt,Et){var St=_e(pt,function(Tt){return Tt(_t)});return{criteria:St,index:++vt,value:_t}});return at(bt,function(_t,wt){return ot(_t,wt,mt)})}return _baseOrderBy=dt,_baseOrderBy}var sortBy_1,hasRequiredSortBy;function requireSortBy(){if(hasRequiredSortBy)return sortBy_1;hasRequiredSortBy=1;var _e=require_baseFlatten(),et=require_baseOrderBy(),tt=require_baseRest(),nt=require_isIterateeCall(),at=tt(function(it,ot){if(it==null)return[];var st=ot.length;return st>1&&nt(it,ot[0],ot[1])?ot=[]:st>2&&nt(ot[0],ot[1],ot[2])&&(ot=[ot[0]]),et(it,_e(ot,1),[])});return sortBy_1=at,sortBy_1}var take_1,hasRequiredTake;function requireTake(){if(hasRequiredTake)return take_1;hasRequiredTake=1;var _e=require_baseSlice(),et=toInteger_1;function tt(nt,at,it){return nt&&nt.length?(at=it||at===void 0?1:et(at),_e(nt,0,at<0?0:at)):[]}return take_1=tt,take_1}var leven={},hasRequiredLeven;function requireLeven(){if(hasRequiredLeven)return leven;hasRequiredLeven=1,leven.__esModule=!0,leven.default=void 0;var _e=function(){return 0},et=_e;return leven.default=et,leven}var hasRequiredCustomPropTypes;function requireCustomPropTypes(){if(hasRequiredCustomPropTypes)return customPropTypes;hasRequiredCustomPropTypes=1;var _e=interopRequireDefaultExports;customPropTypes.__esModule=!0,customPropTypes.ref=customPropTypes.refObject=customPropTypes.deprecate=customPropTypes.collectionShorthand=customPropTypes.itemShorthand=customPropTypes.contentShorthand=customPropTypes.multipleProp=customPropTypes.demand=customPropTypes.givenProps=customPropTypes.every=customPropTypes.disallow=customPropTypes.suggest=customPropTypes.domNode=void 0;var et=_e(requireDifference()),tt=_e(requireTrim()),nt=_e(requireIsObject()),at=_e(requirePick()),it=_e(requireKeys()),ot=_e(requireIsPlainObject()),st=_e(requireIsNil()),ct=_e(requireMin()),dt=_e(requireSum()),ht=_e(requireMap()),pt=_e(requireSortBy()),mt=_e(requireTake()),vt=_e(requireMemoize()),bt=_e(propTypesExports),_t=_e(requireLeven()),wt=function(){var At;return(At=Object.prototype.toString).call.apply(At,arguments)},Et=function(At,Mt){if(At[Mt]!==void 0&&!(typeof Element>"u")&&!(At[Mt]instanceof Element))return new Error('Invalid prop "'+Mt+'" supplied, expected a DOM node.')};customPropTypes.domNode=Et;var St=function(At){if(!Array.isArray(At))throw new Error("Invalid argument supplied to suggest, expected an instance of array.");var Mt=(0,vt.default)(function(Lt){var Ot=Lt.split(" ");return(0,mt.default)((0,pt.default)((0,ht.default)(At,function(gt){var Pt=gt.split(" "),Bt=(0,dt.default)((0,ht.default)((0,ht.default)(Ot,function(Ht){return(0,ht.default)(Pt,function(qt){return(0,_t.default)(Ht,qt)})}),ct.default)),Ut=(0,dt.default)((0,ht.default)((0,ht.default)(Pt,function(Ht){return(0,ht.default)(Ot,function(qt){return(0,_t.default)(Ht,qt)})}),ct.default));return{suggestion:gt,score:Bt+Ut}}),["score","suggestion"]),3)}),It=At.reduce(function(Lt,Ot){return Lt[Ot.split(" ").sort().join(" ")]=!0,Lt},{});return function(Lt,Ot,gt){var Pt=Lt[Ot];if(!(!Pt||It[Pt])){var Bt=Pt.split(" ").sort().join(" ");if(!It[Bt]){var Ut=Mt(Pt);if(!Ut.some(function(Ht){return Ht.score===0}))return new Error(["Invalid prop `"+Ot+"` of value `"+Pt+"` supplied to `"+gt+"`.",`
86
+ `),bt}return useIsomorphicLayoutEffect$4(function(){ct.current=_e,dt.current=pt,ht.current=mt,st.current=void 0}),useIsomorphicLayoutEffect$4(function(){function bt(){try{var _t=tt.getState();if(_t===dt.current)return;var wt=ct.current(_t);if(et(wt,ht.current))return;ht.current=wt,dt.current=_t}catch(Et){st.current=Et}it()}return ot.onStateChange=bt,ot.trySubscribe(),bt(),function(){return ot.tryUnsubscribe()}},[tt,ot]),mt}function createSelectorHook(_e){_e===void 0&&(_e=ReactReduxContext);var et=_e===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(_e)};return function(nt,at){at===void 0&&(at=refEquality);var it=et(),ot=it.store,st=it.subscription,ct=useSelectorWithStoreAndSubscription(nt,at,ot,st);return reactExports.useDebugValue(ct),ct}}var useSelector=createSelectorHook();setBatch(reactDomExports.unstable_batchedUpdates);var Loader$5={},Loader$4={},interopRequireDefault={exports:{}};(function(_e){function et(tt){return tt&&tt.__esModule?tt:{default:tt}}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,_extends$L={exports:{}},hasRequired_extends;function require_extends(){return hasRequired_extends||(hasRequired_extends=1,function(_e){function et(){return _e.exports=et=Object.assign?Object.assign.bind():function(tt){for(var nt=1;nt<arguments.length;nt++){var at=arguments[nt];for(var it in at)Object.prototype.hasOwnProperty.call(at,it)&&(tt[it]=at[it])}return tt},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et.apply(this,arguments)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(_extends$L)),_extends$L.exports}function r$6(_e){var et,tt,nt="";if(typeof _e=="string"||typeof _e=="number")nt+=_e;else if(typeof _e=="object")if(Array.isArray(_e))for(et=0;et<_e.length;et++)_e[et]&&(tt=r$6(_e[et]))&&(nt&&(nt+=" "),nt+=tt);else for(et in _e)_e[et]&&(nt&&(nt+=" "),nt+=et);return nt}function clsx$1(){for(var _e,et,tt=0,nt="";tt<arguments.length;)(_e=arguments[tt++])&&(et=r$6(_e))&&(nt&&(nt+=" "),nt+=et);return nt}const clsx_m=Object.freeze(Object.defineProperty({__proto__:null,clsx:clsx$1,default:clsx$1},Symbol.toStringTag,{value:"Module"})),require$$0$6=getAugmentedNamespace(clsx_m);var lib$4={},interopRequireWildcard={exports:{}},_typeof$1v={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(_e){function et(tt){"@babel/helpers - typeof";return _e.exports=et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et(tt)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(_typeof$1v)),_typeof$1v.exports}var hasRequiredInteropRequireWildcard;function requireInteropRequireWildcard(){return hasRequiredInteropRequireWildcard||(hasRequiredInteropRequireWildcard=1,function(_e){var et=require_typeof().default;function tt(at){if(typeof WeakMap!="function")return null;var it=new WeakMap,ot=new WeakMap;return(tt=function(ct){return ct?ot:it})(at)}function nt(at,it){if(!it&&at&&at.__esModule)return at;if(at===null||et(at)!=="object"&&typeof at!="function")return{default:at};var ot=tt(it);if(ot&&ot.has(at))return ot.get(at);var st={},ct=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var dt in at)if(dt!=="default"&&Object.prototype.hasOwnProperty.call(at,dt)){var ht=ct?Object.getOwnPropertyDescriptor(at,dt):null;ht&&(ht.get||ht.set)?Object.defineProperty(st,dt,ht):st[dt]=at[dt]}return st.default=at,ot&&ot.set(at,st),st}_e.exports=nt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(interopRequireWildcard)),interopRequireWildcard.exports}var ModernAutoControlledComponent$1={},assertThisInitialized={exports:{}},hasRequiredAssertThisInitialized;function requireAssertThisInitialized(){return hasRequiredAssertThisInitialized||(hasRequiredAssertThisInitialized=1,function(_e){function et(tt){if(tt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tt}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(assertThisInitialized)),assertThisInitialized.exports}var inheritsLoose={exports:{}},setPrototypeOf={exports:{}},hasRequiredSetPrototypeOf;function requireSetPrototypeOf(){return hasRequiredSetPrototypeOf||(hasRequiredSetPrototypeOf=1,function(_e){function et(tt,nt){return _e.exports=et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(it,ot){return it.__proto__=ot,it},_e.exports.__esModule=!0,_e.exports.default=_e.exports,et(tt,nt)}_e.exports=et,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(setPrototypeOf)),setPrototypeOf.exports}var hasRequiredInheritsLoose;function requireInheritsLoose(){return hasRequiredInheritsLoose||(hasRequiredInheritsLoose=1,function(_e){var et=requireSetPrototypeOf();function tt(nt,at){nt.prototype=Object.create(at.prototype),nt.prototype.constructor=nt,et(nt,at)}_e.exports=tt,_e.exports.__esModule=!0,_e.exports.default=_e.exports}(inheritsLoose)),inheritsLoose.exports}var isUndefined_1,hasRequiredIsUndefined;function requireIsUndefined(){if(hasRequiredIsUndefined)return isUndefined_1;hasRequiredIsUndefined=1;function _e(et){return et===void 0}return isUndefined_1=_e,isUndefined_1}var _baseClamp,hasRequired_baseClamp;function require_baseClamp(){if(hasRequired_baseClamp)return _baseClamp;hasRequired_baseClamp=1;function _e(et,tt,nt){return et===et&&(nt!==void 0&&(et=et<=nt?et:nt),tt!==void 0&&(et=et>=tt?et:tt)),et}return _baseClamp=_e,_baseClamp}var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var _e=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=_e,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var _e=require_freeGlobal(),et=typeof self=="object"&&self&&self.Object===Object&&self,tt=_e||et||Function("return this")();return _root=tt,_root}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var _e=require_root(),et=_e.Symbol;return _Symbol=et,_Symbol}function arrayMap$3(_e,et){for(var tt=-1,nt=_e==null?0:_e.length,at=Array(nt);++tt<nt;)at[tt]=et(_e[tt],tt,_e);return at}var _arrayMap=arrayMap$3,isArray$n=Array.isArray,isArray_1=isArray$n,_getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var _e=require_Symbol(),et=Object.prototype,tt=et.hasOwnProperty,nt=et.toString,at=_e?_e.toStringTag:void 0;function it(ot){var st=tt.call(ot,at),ct=ot[at];try{ot[at]=void 0;var dt=!0}catch{}var ht=nt.call(ot);return dt&&(st?ot[at]=ct:delete ot[at]),ht}return _getRawTag=it,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var _e=Object.prototype,et=_e.toString;function tt(nt){return et.call(nt)}return _objectToString=tt,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var _e=require_Symbol(),et=require_getRawTag(),tt=require_objectToString(),nt="[object Null]",at="[object Undefined]",it=_e?_e.toStringTag:void 0;function ot(st){return st==null?st===void 0?at:nt:it&&it in Object(st)?et(st):tt(st)}return _baseGetTag=ot,_baseGetTag}function isObjectLike$a(_e){return _e!=null&&typeof _e=="object"}var isObjectLike_1=isObjectLike$a,baseGetTag$4=require_baseGetTag(),isObjectLike$9=isObjectLike_1,symbolTag$7="[object Symbol]";function isSymbol$e(_e){return typeof _e=="symbol"||isObjectLike$9(_e)&&baseGetTag$4(_e)==symbolTag$7}var isSymbol_1=isSymbol$e,_baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var _e=require_Symbol(),et=_arrayMap,tt=isArray_1,nt=isSymbol_1,at=1/0,it=_e?_e.prototype:void 0,ot=it?it.toString:void 0;function st(ct){if(typeof ct=="string")return ct;if(tt(ct))return et(ct,st)+"";if(nt(ct))return ot?ot.call(ct):"";var dt=ct+"";return dt=="0"&&1/ct==-at?"-0":dt}return _baseToString=st,_baseToString}var _trimmedEndIndex,hasRequired_trimmedEndIndex;function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var _e=/\s/;function et(tt){for(var nt=tt.length;nt--&&_e.test(tt.charAt(nt)););return nt}return _trimmedEndIndex=et,_trimmedEndIndex}var _baseTrim,hasRequired_baseTrim;function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var _e=require_trimmedEndIndex(),et=/^\s+/;function tt(nt){return nt&&nt.slice(0,_e(nt)+1).replace(et,"")}return _baseTrim=tt,_baseTrim}var isObject_1$1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1$1;hasRequiredIsObject=1;function _e(et){var tt=typeof et;return et!=null&&(tt=="object"||tt=="function")}return isObject_1$1=_e,isObject_1$1}var toNumber_1,hasRequiredToNumber;function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var _e=require_baseTrim(),et=requireIsObject(),tt=isSymbol_1,nt=0/0,at=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,st=parseInt;function ct(dt){if(typeof dt=="number")return dt;if(tt(dt))return nt;if(et(dt)){var ht=typeof dt.valueOf=="function"?dt.valueOf():dt;dt=et(ht)?ht+"":ht}if(typeof dt!="string")return dt===0?dt:+dt;dt=_e(dt);var pt=it.test(dt);return pt||ot.test(dt)?st(dt.slice(2),pt?2:8):at.test(dt)?nt:+dt}return toNumber_1=ct,toNumber_1}var toNumber$3=requireToNumber(),INFINITY$8=1/0,MAX_INTEGER$1=17976931348623157e292;function toFinite$2(_e){if(!_e)return _e===0?_e:0;if(_e=toNumber$3(_e),_e===INFINITY$8||_e===-INFINITY$8){var et=_e<0?-1:1;return et*MAX_INTEGER$1}return _e===_e?_e:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$4(_e){var et=toFinite$1(_e),tt=et%1;return et===et?tt?et-tt:et:0}var toInteger_1=toInteger$4,baseToString$4=require_baseToString();function toString$h(_e){return _e==null?"":baseToString$4(_e)}var toString_1=toString$h,startsWith_1,hasRequiredStartsWith;function requireStartsWith(){if(hasRequiredStartsWith)return startsWith_1;hasRequiredStartsWith=1;var _e=require_baseClamp(),et=require_baseToString(),tt=toInteger_1,nt=toString_1;function at(it,ot,st){return it=nt(it),st=st==null?0:_e(tt(st),0,it.length),ot=et(ot),it.slice(st,st+ot.length)==ot}return startsWith_1=at,startsWith_1}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function _e(et,tt){for(var nt=-1,at=et==null?0:et.length,it=0,ot=[];++nt<at;){var st=et[nt];tt(st,nt,et)&&(ot[it++]=st)}return ot}return _arrayFilter=_e,_arrayFilter}var _createBaseFor,hasRequired_createBaseFor;function require_createBaseFor(){if(hasRequired_createBaseFor)return _createBaseFor;hasRequired_createBaseFor=1;function _e(et){return function(tt,nt,at){for(var it=-1,ot=Object(tt),st=at(tt),ct=st.length;ct--;){var dt=st[et?ct:++it];if(nt(ot[dt],dt,ot)===!1)break}return tt}}return _createBaseFor=_e,_createBaseFor}var _baseFor,hasRequired_baseFor;function require_baseFor(){if(hasRequired_baseFor)return _baseFor;hasRequired_baseFor=1;var _e=require_createBaseFor(),et=_e();return _baseFor=et,_baseFor}var _baseTimes,hasRequired_baseTimes;function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;hasRequired_baseTimes=1;function _e(et,tt){for(var nt=-1,at=Array(et);++nt<et;)at[nt]=tt(nt);return at}return _baseTimes=_e,_baseTimes}var _baseIsArguments,hasRequired_baseIsArguments;function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var _e=require_baseGetTag(),et=isObjectLike_1,tt="[object Arguments]";function nt(at){return et(at)&&_e(at)==tt}return _baseIsArguments=nt,_baseIsArguments}var isArguments_1,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var _e=require_baseIsArguments(),et=isObjectLike_1,tt=Object.prototype,nt=tt.hasOwnProperty,at=tt.propertyIsEnumerable,it=_e(function(){return arguments}())?_e:function(ot){return et(ot)&&nt.call(ot,"callee")&&!at.call(ot,"callee")};return isArguments_1=it,isArguments_1}var isBuffer$6={exports:{}},stubFalse_1,hasRequiredStubFalse;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;hasRequiredStubFalse=1;function _e(){return!1}return stubFalse_1=_e,stubFalse_1}isBuffer$6.exports;var hasRequiredIsBuffer;function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,function(_e,et){var tt=require_root(),nt=requireStubFalse(),at=et&&!et.nodeType&&et,it=at&&!0&&_e&&!_e.nodeType&&_e,ot=it&&it.exports===at,st=ot?tt.Buffer:void 0,ct=st?st.isBuffer:void 0,dt=ct||nt;_e.exports=dt}(isBuffer$6,isBuffer$6.exports)),isBuffer$6.exports}var _isIndex,hasRequired_isIndex;function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var _e=9007199254740991,et=/^(?:0|[1-9]\d*)$/;function tt(nt,at){var it=typeof nt;return at=at??_e,!!at&&(it=="number"||it!="symbol"&&et.test(nt))&&nt>-1&&nt%1==0&&nt<at}return _isIndex=tt,_isIndex}var isLength_1,hasRequiredIsLength;function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;var _e=9007199254740991;function et(tt){return typeof tt=="number"&&tt>-1&&tt%1==0&&tt<=_e}return isLength_1=et,isLength_1}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var _e=require_baseGetTag(),et=requireIsLength(),tt=isObjectLike_1,nt="[object Arguments]",at="[object Array]",it="[object Boolean]",ot="[object Date]",st="[object Error]",ct="[object Function]",dt="[object Map]",ht="[object Number]",pt="[object Object]",mt="[object RegExp]",vt="[object Set]",bt="[object String]",_t="[object WeakMap]",wt="[object ArrayBuffer]",Et="[object DataView]",St="[object Float32Array]",Tt="[object Float64Array]",Ct="[object Int8Array]",Nt="[object Int16Array]",Dt="[object Int32Array]",kt="[object Uint8Array]",Ft="[object Uint8ClampedArray]",jt="[object Uint16Array]",Gt="[object Uint32Array]",Rt={};Rt[St]=Rt[Tt]=Rt[Ct]=Rt[Nt]=Rt[Dt]=Rt[kt]=Rt[Ft]=Rt[jt]=Rt[Gt]=!0,Rt[nt]=Rt[at]=Rt[wt]=Rt[it]=Rt[Et]=Rt[ot]=Rt[st]=Rt[ct]=Rt[dt]=Rt[ht]=Rt[pt]=Rt[mt]=Rt[vt]=Rt[bt]=Rt[_t]=!1;function yt($t){return tt($t)&&et($t.length)&&!!Rt[_e($t)]}return _baseIsTypedArray=yt,_baseIsTypedArray}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function _e(et){return function(tt){return et(tt)}}return _baseUnary=_e,_baseUnary}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(_e,et){var tt=require_freeGlobal(),nt=et&&!et.nodeType&&et,at=nt&&!0&&_e&&!_e.nodeType&&_e,it=at&&at.exports===nt,ot=it&&tt.process,st=function(){try{var ct=at&&at.require&&at.require("util").types;return ct||ot&&ot.binding&&ot.binding("util")}catch{}}();_e.exports=st}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var _e=require_baseIsTypedArray(),et=require_baseUnary(),tt=require_nodeUtil(),nt=tt&&tt.isTypedArray,at=nt?et(nt):_e;return isTypedArray_1=at,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var _e=require_baseTimes(),et=requireIsArguments(),tt=isArray_1,nt=requireIsBuffer(),at=require_isIndex(),it=requireIsTypedArray(),ot=Object.prototype,st=ot.hasOwnProperty;function ct(dt,ht){var pt=tt(dt),mt=!pt&&et(dt),vt=!pt&&!mt&&nt(dt),bt=!pt&&!mt&&!vt&&it(dt),_t=pt||mt||vt||bt,wt=_t?_e(dt.length,String):[],Et=wt.length;for(var St in dt)(ht||st.call(dt,St))&&!(_t&&(St=="length"||vt&&(St=="offset"||St=="parent")||bt&&(St=="buffer"||St=="byteLength"||St=="byteOffset")||at(St,Et)))&&wt.push(St);return wt}return _arrayLikeKeys=ct,_arrayLikeKeys}var objectProto$v=Object.prototype;function isPrototype$4(_e){var et=_e&&_e.constructor,tt=typeof et=="function"&&et.prototype||objectProto$v;return _e===tt}var _isPrototype=isPrototype$4;function overArg$2(_e,et){return function(tt){return _e(et(tt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$3=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$3,isPrototype$3=_isPrototype,nativeKeys$2=_nativeKeys,objectProto$u=Object.prototype,hasOwnProperty$t=objectProto$u.hasOwnProperty;function baseKeys$1(_e){if(!isPrototype$3(_e))return nativeKeys$2(_e);var et=[];for(var tt in Object(_e))hasOwnProperty$t.call(_e,tt)&&tt!="constructor"&&et.push(tt);return et}var _baseKeys=baseKeys$1,isFunction_1$1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1$1;hasRequiredIsFunction=1;var _e=require_baseGetTag(),et=requireIsObject(),tt="[object AsyncFunction]",nt="[object Function]",at="[object GeneratorFunction]",it="[object Proxy]";function ot(st){if(!et(st))return!1;var ct=_e(st);return ct==nt||ct==at||ct==tt||ct==it}return isFunction_1$1=ot,isFunction_1$1}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var _e=requireIsFunction(),et=requireIsLength();function tt(nt){return nt!=null&&et(nt.length)&&!_e(nt)}return isArrayLike_1=tt,isArrayLike_1}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var _e=require_arrayLikeKeys(),et=_baseKeys,tt=requireIsArrayLike();function nt(at){return tt(at)?_e(at):et(at)}return keys_1=nt,keys_1}var _baseForOwn,hasRequired_baseForOwn;function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var _e=require_baseFor(),et=requireKeys();function tt(nt,at){return nt&&_e(nt,at,et)}return _baseForOwn=tt,_baseForOwn}var _createBaseEach,hasRequired_createBaseEach;function require_createBaseEach(){if(hasRequired_createBaseEach)return _createBaseEach;hasRequired_createBaseEach=1;var _e=requireIsArrayLike();function et(tt,nt){return function(at,it){if(at==null)return at;if(!_e(at))return tt(at,it);for(var ot=at.length,st=nt?ot:-1,ct=Object(at);(nt?st--:++st<ot)&&it(ct[st],st,ct)!==!1;);return at}}return _createBaseEach=et,_createBaseEach}var _baseEach,hasRequired_baseEach;function require_baseEach(){if(hasRequired_baseEach)return _baseEach;hasRequired_baseEach=1;var _e=require_baseForOwn(),et=require_createBaseEach(),tt=et(_e);return _baseEach=tt,_baseEach}var _baseFilter,hasRequired_baseFilter;function require_baseFilter(){if(hasRequired_baseFilter)return _baseFilter;hasRequired_baseFilter=1;var _e=require_baseEach();function et(tt,nt){var at=[];return _e(tt,function(it,ot,st){nt(it,ot,st)&&at.push(it)}),at}return _baseFilter=et,_baseFilter}function listCacheClear$5(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$5,eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function _e(et,tt){return et===tt||et!==et&&tt!==tt}return eq_1=_e,eq_1}var eq$5=requireEq();function assocIndexOf$8(_e,et){for(var tt=_e.length;tt--;)if(eq$5(_e[tt][0],et))return tt;return-1}var _assocIndexOf=assocIndexOf$8,assocIndexOf$7=_assocIndexOf,arrayProto$5=Array.prototype,splice$4=arrayProto$5.splice;function listCacheDelete$5(_e){var et=this.__data__,tt=assocIndexOf$7(et,_e);if(tt<0)return!1;var nt=et.length-1;return tt==nt?et.pop():splice$4.call(et,tt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$5,assocIndexOf$6=_assocIndexOf;function listCacheGet$6(_e){var et=this.__data__,tt=assocIndexOf$6(et,_e);return tt<0?void 0:et[tt][1]}var _listCacheGet=listCacheGet$6,assocIndexOf$5=_assocIndexOf;function listCacheHas$5(_e){return assocIndexOf$5(this.__data__,_e)>-1}var _listCacheHas=listCacheHas$5,assocIndexOf$4=_assocIndexOf;function listCacheSet$6(_e,et){var tt=this.__data__,nt=assocIndexOf$4(tt,_e);return nt<0?(++this.size,tt.push([_e,et])):tt[nt][1]=et,this}var _listCacheSet=listCacheSet$6,listCacheClear$4=_listCacheClear,listCacheDelete$4=_listCacheDelete,listCacheGet$5=_listCacheGet,listCacheHas$4=_listCacheHas,listCacheSet$5=_listCacheSet;function ListCache$7(_e){var et=-1,tt=_e==null?0:_e.length;for(this.clear();++et<tt;){var nt=_e[et];this.set(nt[0],nt[1])}}ListCache$7.prototype.clear=listCacheClear$4;ListCache$7.prototype.delete=listCacheDelete$4;ListCache$7.prototype.get=listCacheGet$5;ListCache$7.prototype.has=listCacheHas$4;ListCache$7.prototype.set=listCacheSet$5;var _ListCache=ListCache$7,ListCache$6=_ListCache;function stackClear$2(){this.__data__=new ListCache$6,this.size=0}var _stackClear=stackClear$2;function stackDelete$2(_e){var et=this.__data__,tt=et.delete(_e);return this.size=et.size,tt}var _stackDelete=stackDelete$2;function stackGet$2(_e){return this.__data__.get(_e)}var _stackGet=stackGet$2;function stackHas$2(_e){return this.__data__.has(_e)}var _stackHas=stackHas$2,root$h=require_root(),coreJsData$6=root$h["__core-js_shared__"],_coreJsData=coreJsData$6,coreJsData$5=_coreJsData,maskSrcKey$4=function(){var _e=/[^.]+$/.exec(coreJsData$5&&coreJsData$5.keys&&coreJsData$5.keys.IE_PROTO||"");return _e?"Symbol(src)_1."+_e:""}();function isMasked$5(_e){return!!maskSrcKey$4&&maskSrcKey$4 in _e}var _isMasked=isMasked$5,funcProto$7=Function.prototype,funcToString$7=funcProto$7.toString;function toSource$6(_e){if(_e!=null){try{return funcToString$7.call(_e)}catch{}try{return _e+""}catch{}}return""}var _toSource=toSource$6,isFunction$c=requireIsFunction(),isMasked$4=_isMasked,isObject$s=requireIsObject(),toSource$5=_toSource,reRegExpChar$5=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$4=/^\[object .+?Constructor\]$/,funcProto$6=Function.prototype,objectProto$t=Object.prototype,funcToString$6=funcProto$6.toString,hasOwnProperty$s=objectProto$t.hasOwnProperty,reIsNative$4=RegExp("^"+funcToString$6.call(hasOwnProperty$s).replace(reRegExpChar$5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$5(_e){if(!isObject$s(_e)||isMasked$4(_e))return!1;var et=isFunction$c(_e)?reIsNative$4:reIsHostCtor$4;return et.test(toSource$5(_e))}var _baseIsNative=baseIsNative$5;function getValue$9(_e,et){return _e==null?void 0:_e[et]}var _getValue=getValue$9,baseIsNative$4=_baseIsNative,getValue$8=_getValue;function getNative$a(_e,et){var tt=getValue$8(_e,et);return baseIsNative$4(tt)?tt:void 0}var _getNative=getNative$a,getNative$9=_getNative,root$g=require_root(),Map$8=getNative$9(root$g,"Map"),_Map=Map$8,_nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var _e=_getNative,et=_e(Object,"create");return _nativeCreate=et,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var _e=require_nativeCreate();function et(){this.__data__=_e?_e(null):{},this.size=0}return _hashClear=et,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function _e(et){var tt=this.has(et)&&delete this.__data__[et];return this.size-=tt?1:0,tt}return _hashDelete=_e,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var _e=require_nativeCreate(),et="__lodash_hash_undefined__",tt=Object.prototype,nt=tt.hasOwnProperty;function at(it){var ot=this.__data__;if(_e){var st=ot[it];return st===et?void 0:st}return nt.call(ot,it)?ot[it]:void 0}return _hashGet=at,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var _e=require_nativeCreate(),et=Object.prototype,tt=et.hasOwnProperty;function nt(at){var it=this.__data__;return _e?it[at]!==void 0:tt.call(it,at)}return _hashHas=nt,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var _e=require_nativeCreate(),et="__lodash_hash_undefined__";function tt(nt,at){var it=this.__data__;return this.size+=this.has(nt)?0:1,it[nt]=_e&&at===void 0?et:at,this}return _hashSet=tt,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var _e=require_hashClear(),et=require_hashDelete(),tt=require_hashGet(),nt=require_hashHas(),at=require_hashSet();function it(ot){var st=-1,ct=ot==null?0:ot.length;for(this.clear();++st<ct;){var dt=ot[st];this.set(dt[0],dt[1])}}return it.prototype.clear=_e,it.prototype.delete=et,it.prototype.get=tt,it.prototype.has=nt,it.prototype.set=at,_Hash=it,_Hash}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var _e=require_Hash(),et=_ListCache,tt=_Map;function nt(){this.size=0,this.__data__={hash:new _e,map:new(tt||et),string:new _e}}return _mapCacheClear=nt,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function _e(et){var tt=typeof et;return tt=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?et!=="__proto__":et===null}return _isKeyable=_e,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var _e=require_isKeyable();function et(tt,nt){var at=tt.__data__;return _e(nt)?at[typeof nt=="string"?"string":"hash"]:at.map}return _getMapData=et,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var _e=require_getMapData();function et(tt){var nt=_e(this,tt).delete(tt);return this.size-=nt?1:0,nt}return _mapCacheDelete=et,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var _e=require_getMapData();function et(tt){return _e(this,tt).get(tt)}return _mapCacheGet=et,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var _e=require_getMapData();function et(tt){return _e(this,tt).has(tt)}return _mapCacheHas=et,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var _e=require_getMapData();function et(tt,nt){var at=_e(this,tt),it=at.size;return at.set(tt,nt),this.size+=at.size==it?0:1,this}return _mapCacheSet=et,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var _e=require_mapCacheClear(),et=require_mapCacheDelete(),tt=require_mapCacheGet(),nt=require_mapCacheHas(),at=require_mapCacheSet();function it(ot){var st=-1,ct=ot==null?0:ot.length;for(this.clear();++st<ct;){var dt=ot[st];this.set(dt[0],dt[1])}}return it.prototype.clear=_e,it.prototype.delete=et,it.prototype.get=tt,it.prototype.has=nt,it.prototype.set=at,_MapCache=it,_MapCache}var ListCache$5=_ListCache,Map$7=_Map,MapCache$4=require_MapCache(),LARGE_ARRAY_SIZE$3=200;function stackSet$2(_e,et){var tt=this.__data__;if(tt instanceof ListCache$5){var nt=tt.__data__;if(!Map$7||nt.length<LARGE_ARRAY_SIZE$3-1)return nt.push([_e,et]),this.size=++tt.size,this;tt=this.__data__=new MapCache$4(nt)}return tt.set(_e,et),this.size=tt.size,this}var _stackSet=stackSet$2,ListCache$4=_ListCache,stackClear$1=_stackClear,stackDelete$1=_stackDelete,stackGet$1=_stackGet,stackHas$1=_stackHas,stackSet$1=_stackSet;function Stack$3(_e){var et=this.__data__=new ListCache$4(_e);this.size=et.size}Stack$3.prototype.clear=stackClear$1;Stack$3.prototype.delete=stackDelete$1;Stack$3.prototype.get=stackGet$1;Stack$3.prototype.has=stackHas$1;Stack$3.prototype.set=stackSet$1;var _Stack=Stack$3,_setCacheAdd,hasRequired_setCacheAdd;function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;var _e="__lodash_hash_undefined__";function et(tt){return this.__data__.set(tt,_e),this}return _setCacheAdd=et,_setCacheAdd}var _setCacheHas,hasRequired_setCacheHas;function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;hasRequired_setCacheHas=1;function _e(et){return this.__data__.has(et)}return _setCacheHas=_e,_setCacheHas}var _SetCache,hasRequired_SetCache;function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var _e=require_MapCache(),et=require_setCacheAdd(),tt=require_setCacheHas();function nt(at){var it=-1,ot=at==null?0:at.length;for(this.__data__=new _e;++it<ot;)this.add(at[it])}return nt.prototype.add=nt.prototype.push=et,nt.prototype.has=tt,_SetCache=nt,_SetCache}var _arraySome,hasRequired_arraySome;function require_arraySome(){if(hasRequired_arraySome)return _arraySome;hasRequired_arraySome=1;function _e(et,tt){for(var nt=-1,at=et==null?0:et.length;++nt<at;)if(tt(et[nt],nt,et))return!0;return!1}return _arraySome=_e,_arraySome}var _cacheHas,hasRequired_cacheHas;function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;hasRequired_cacheHas=1;function _e(et,tt){return et.has(tt)}return _cacheHas=_e,_cacheHas}var _equalArrays,hasRequired_equalArrays;function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var _e=require_SetCache(),et=require_arraySome(),tt=require_cacheHas(),nt=1,at=2;function it(ot,st,ct,dt,ht,pt){var mt=ct&nt,vt=ot.length,bt=st.length;if(vt!=bt&&!(mt&&bt>vt))return!1;var _t=pt.get(ot),wt=pt.get(st);if(_t&&wt)return _t==st&&wt==ot;var Et=-1,St=!0,Tt=ct&at?new _e:void 0;for(pt.set(ot,st),pt.set(st,ot);++Et<vt;){var Ct=ot[Et],Nt=st[Et];if(dt)var Dt=mt?dt(Nt,Ct,Et,st,ot,pt):dt(Ct,Nt,Et,ot,st,pt);if(Dt!==void 0){if(Dt)continue;St=!1;break}if(Tt){if(!et(st,function(kt,Ft){if(!tt(Tt,Ft)&&(Ct===kt||ht(Ct,kt,ct,dt,pt)))return Tt.push(Ft)})){St=!1;break}}else if(!(Ct===Nt||ht(Ct,Nt,ct,dt,pt))){St=!1;break}}return pt.delete(ot),pt.delete(st),St}return _equalArrays=it,_equalArrays}var root$f=require_root(),Uint8Array$4=root$f.Uint8Array,_Uint8Array=Uint8Array$4,_mapToArray,hasRequired_mapToArray;function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;hasRequired_mapToArray=1;function _e(et){var tt=-1,nt=Array(et.size);return et.forEach(function(at,it){nt[++tt]=[it,at]}),nt}return _mapToArray=_e,_mapToArray}var _setToArray,hasRequired_setToArray;function require_setToArray(){if(hasRequired_setToArray)return _setToArray;hasRequired_setToArray=1;function _e(et){var tt=-1,nt=Array(et.size);return et.forEach(function(at){nt[++tt]=at}),nt}return _setToArray=_e,_setToArray}var _equalByTag,hasRequired_equalByTag;function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var _e=require_Symbol(),et=_Uint8Array,tt=requireEq(),nt=require_equalArrays(),at=require_mapToArray(),it=require_setToArray(),ot=1,st=2,ct="[object Boolean]",dt="[object Date]",ht="[object Error]",pt="[object Map]",mt="[object Number]",vt="[object RegExp]",bt="[object Set]",_t="[object String]",wt="[object Symbol]",Et="[object ArrayBuffer]",St="[object DataView]",Tt=_e?_e.prototype:void 0,Ct=Tt?Tt.valueOf:void 0;function Nt(Dt,kt,Ft,jt,Gt,Rt,yt){switch(Ft){case St:if(Dt.byteLength!=kt.byteLength||Dt.byteOffset!=kt.byteOffset)return!1;Dt=Dt.buffer,kt=kt.buffer;case Et:return!(Dt.byteLength!=kt.byteLength||!Rt(new et(Dt),new et(kt)));case ct:case dt:case mt:return tt(+Dt,+kt);case ht:return Dt.name==kt.name&&Dt.message==kt.message;case vt:case _t:return Dt==kt+"";case pt:var $t=at;case bt:var xt=jt&ot;if($t||($t=it),Dt.size!=kt.size&&!xt)return!1;var At=yt.get(Dt);if(At)return At==kt;jt|=st,yt.set(Dt,kt);var Mt=nt($t(Dt),$t(kt),jt,Gt,Rt,yt);return yt.delete(Dt),Mt;case wt:if(Ct)return Ct.call(Dt)==Ct.call(kt)}return!1}return _equalByTag=Nt,_equalByTag}var _arrayPush,hasRequired_arrayPush;function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;hasRequired_arrayPush=1;function _e(et,tt){for(var nt=-1,at=tt.length,it=et.length;++nt<at;)et[it+nt]=tt[nt];return et}return _arrayPush=_e,_arrayPush}var arrayPush$2=require_arrayPush(),isArray$m=isArray_1;function baseGetAllKeys$3(_e,et,tt){var nt=et(_e);return isArray$m(_e)?nt:arrayPush$2(nt,tt(_e))}var _baseGetAllKeys=baseGetAllKeys$3;function stubArray$3(){return[]}var stubArray_1=stubArray$3,arrayFilter$1=require_arrayFilter(),stubArray$2=stubArray_1,objectProto$s=Object.prototype,propertyIsEnumerable$2=objectProto$s.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$5=nativeGetSymbols$2?function(_e){return _e==null?[]:(_e=Object(_e),arrayFilter$1(nativeGetSymbols$2(_e),function(et){return propertyIsEnumerable$2.call(_e,et)}))}:stubArray$2,_getSymbols=getSymbols$5,baseGetAllKeys$2=_baseGetAllKeys,getSymbols$4=_getSymbols,keys$9=requireKeys();function getAllKeys$2(_e){return baseGetAllKeys$2(_e,keys$9,getSymbols$4)}var _getAllKeys=getAllKeys$2,_equalObjects,hasRequired_equalObjects;function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var _e=_getAllKeys,et=1,tt=Object.prototype,nt=tt.hasOwnProperty;function at(it,ot,st,ct,dt,ht){var pt=st&et,mt=_e(it),vt=mt.length,bt=_e(ot),_t=bt.length;if(vt!=_t&&!pt)return!1;for(var wt=vt;wt--;){var Et=mt[wt];if(!(pt?Et in ot:nt.call(ot,Et)))return!1}var St=ht.get(it),Tt=ht.get(ot);if(St&&Tt)return St==ot&&Tt==it;var Ct=!0;ht.set(it,ot),ht.set(ot,it);for(var Nt=pt;++wt<vt;){Et=mt[wt];var Dt=it[Et],kt=ot[Et];if(ct)var Ft=pt?ct(kt,Dt,Et,ot,it,ht):ct(Dt,kt,Et,it,ot,ht);if(!(Ft===void 0?Dt===kt||dt(Dt,kt,st,ct,ht):Ft)){Ct=!1;break}Nt||(Nt=Et=="constructor")}if(Ct&&!Nt){var jt=it.constructor,Gt=ot.constructor;jt!=Gt&&"constructor"in it&&"constructor"in ot&&!(typeof jt=="function"&&jt instanceof jt&&typeof Gt=="function"&&Gt instanceof Gt)&&(Ct=!1)}return ht.delete(it),ht.delete(ot),Ct}return _equalObjects=at,_equalObjects}var getNative$8=_getNative,root$e=require_root(),DataView$4=getNative$8(root$e,"DataView"),_DataView=DataView$4,getNative$7=_getNative,root$d=require_root(),Promise$4=getNative$7(root$d,"Promise"),_Promise=Promise$4,getNative$6=_getNative,root$c=require_root(),Set$4=getNative$6(root$c,"Set"),_Set=Set$4,getNative$5=_getNative,root$b=require_root(),WeakMap$7=getNative$5(root$b,"WeakMap"),_WeakMap=WeakMap$7,DataView$3=_DataView,Map$6=_Map,Promise$3=_Promise,Set$3=_Set,WeakMap$6=_WeakMap,baseGetTag$3=require_baseGetTag(),toSource$4=_toSource,mapTag$8="[object Map]",objectTag$5="[object Object]",promiseTag$1="[object Promise]",setTag$8="[object Set]",weakMapTag$4="[object WeakMap]",dataViewTag$5="[object DataView]",dataViewCtorString$1=toSource$4(DataView$3),mapCtorString$1=toSource$4(Map$6),promiseCtorString$1=toSource$4(Promise$3),setCtorString$1=toSource$4(Set$3),weakMapCtorString$1=toSource$4(WeakMap$6),getTag$8=baseGetTag$3;(DataView$3&&getTag$8(new DataView$3(new ArrayBuffer(1)))!=dataViewTag$5||Map$6&&getTag$8(new Map$6)!=mapTag$8||Promise$3&&getTag$8(Promise$3.resolve())!=promiseTag$1||Set$3&&getTag$8(new Set$3)!=setTag$8||WeakMap$6&&getTag$8(new WeakMap$6)!=weakMapTag$4)&&(getTag$8=function(_e){var et=baseGetTag$3(_e),tt=et==objectTag$5?_e.constructor:void 0,nt=tt?toSource$4(tt):"";if(nt)switch(nt){case dataViewCtorString$1:return dataViewTag$5;case mapCtorString$1:return mapTag$8;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$8;case weakMapCtorString$1:return weakMapTag$4}return et});var _getTag=getTag$8,_baseIsEqualDeep,hasRequired_baseIsEqualDeep;function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var _e=_Stack,et=require_equalArrays(),tt=require_equalByTag(),nt=require_equalObjects(),at=_getTag,it=isArray_1,ot=requireIsBuffer(),st=requireIsTypedArray(),ct=1,dt="[object Arguments]",ht="[object Array]",pt="[object Object]",mt=Object.prototype,vt=mt.hasOwnProperty;function bt(_t,wt,Et,St,Tt,Ct){var Nt=it(_t),Dt=it(wt),kt=Nt?ht:at(_t),Ft=Dt?ht:at(wt);kt=kt==dt?pt:kt,Ft=Ft==dt?pt:Ft;var jt=kt==pt,Gt=Ft==pt,Rt=kt==Ft;if(Rt&&ot(_t)){if(!ot(wt))return!1;Nt=!0,jt=!1}if(Rt&&!jt)return Ct||(Ct=new _e),Nt||st(_t)?et(_t,wt,Et,St,Tt,Ct):tt(_t,wt,kt,Et,St,Tt,Ct);if(!(Et&ct)){var yt=jt&&vt.call(_t,"__wrapped__"),$t=Gt&&vt.call(wt,"__wrapped__");if(yt||$t){var xt=yt?_t.value():_t,At=$t?wt.value():wt;return Ct||(Ct=new _e),Tt(xt,At,Et,St,Ct)}}return Rt?(Ct||(Ct=new _e),nt(_t,wt,Et,St,Tt,Ct)):!1}return _baseIsEqualDeep=bt,_baseIsEqualDeep}var _baseIsEqual,hasRequired_baseIsEqual;function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var _e=require_baseIsEqualDeep(),et=isObjectLike_1;function tt(nt,at,it,ot,st){return nt===at?!0:nt==null||at==null||!et(nt)&&!et(at)?nt!==nt&&at!==at:_e(nt,at,it,ot,tt,st)}return _baseIsEqual=tt,_baseIsEqual}var Stack$2=_Stack,baseIsEqual$2=require_baseIsEqual(),COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(_e,et,tt,nt){var at=tt.length,it=at,ot=!nt;if(_e==null)return!it;for(_e=Object(_e);at--;){var st=tt[at];if(ot&&st[2]?st[1]!==_e[st[0]]:!(st[0]in _e))return!1}for(;++at<it;){st=tt[at];var ct=st[0],dt=_e[ct],ht=st[1];if(ot&&st[2]){if(dt===void 0&&!(ct in _e))return!1}else{var pt=new Stack$2;if(nt)var mt=nt(dt,ht,ct,_e,et,pt);if(!(mt===void 0?baseIsEqual$2(ht,dt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,nt,pt):mt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$r=requireIsObject();function isStrictComparable$3(_e){return _e===_e&&!isObject$r(_e)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$8=requireKeys();function getMatchData$2(_e){for(var et=keys$8(_e),tt=et.length;tt--;){var nt=et[tt],at=_e[nt];et[tt]=[nt,at,isStrictComparable$2(at)]}return et}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(_e,et){return function(tt){return tt==null?!1:tt[_e]===et&&(et!==void 0||_e in Object(tt))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(_e){var et=getMatchData$1(_e);return et.length==1&&et[0][2]?matchesStrictComparable$2(et[0][0],et[0][1]):function(tt){return tt===_e||baseIsMatch$1(tt,_e,et)}}var _baseMatches=baseMatches$2,isArray$l=isArray_1,isSymbol$d=isSymbol_1,reIsDeepProp$4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$4=/^\w*$/;function isKey$7(_e,et){if(isArray$l(_e))return!1;var tt=typeof _e;return tt=="number"||tt=="symbol"||tt=="boolean"||_e==null||isSymbol$d(_e)?!0:reIsPlainProp$4.test(_e)||!reIsDeepProp$4.test(_e)||et!=null&&_e in Object(et)}var _isKey=isKey$7,memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var _e=require_MapCache(),et="Expected a function";function tt(nt,at){if(typeof nt!="function"||at!=null&&typeof at!="function")throw new TypeError(et);var it=function(){var ot=arguments,st=at?at.apply(this,ot):ot[0],ct=it.cache;if(ct.has(st))return ct.get(st);var dt=nt.apply(this,ot);return it.cache=ct.set(st,dt)||ct,dt};return it.cache=new(tt.Cache||_e),it}return tt.Cache=_e,memoize_1=tt,memoize_1}var memoize$7=requireMemoize(),MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(_e){var et=memoize$7(_e,function(nt){return tt.size===MAX_MEMOIZE_SIZE$1&&tt.clear(),nt}),tt=et.cache;return et}var _memoizeCapped=memoizeCapped$2,memoizeCapped$1=_memoizeCapped,rePropName$5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$5=/\\(\\)?/g,stringToPath$8=memoizeCapped$1(function(_e){var et=[];return _e.charCodeAt(0)===46&&et.push(""),_e.replace(rePropName$5,function(tt,nt,at,it){et.push(at?it.replace(reEscapeChar$5,"$1"):nt||tt)}),et}),_stringToPath=stringToPath$8,isArray$k=isArray_1,isKey$6=_isKey,stringToPath$7=_stringToPath,toString$g=toString_1;function castPath$6(_e,et){return isArray$k(_e)?_e:isKey$6(_e,et)?[_e]:stringToPath$7(toString$g(_e))}var _castPath=castPath$6,isSymbol$c=isSymbol_1,INFINITY$7=1/0;function toKey$8(_e){if(typeof _e=="string"||isSymbol$c(_e))return _e;var et=_e+"";return et=="0"&&1/_e==-INFINITY$7?"-0":et}var _toKey=toKey$8,_baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var _e=_castPath,et=_toKey;function tt(nt,at){at=_e(at,nt);for(var it=0,ot=at.length;nt!=null&&it<ot;)nt=nt[et(at[it++])];return it&&it==ot?nt:void 0}return _baseGet=tt,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var _e=require_baseGet();function et(tt,nt,at){var it=tt==null?void 0:_e(tt,nt);return it===void 0?at:it}return get_1=et,get_1}function baseHasIn$2(_e,et){return _e!=null&&et in Object(_e)}var _baseHasIn=baseHasIn$2,_hasPath,hasRequired_hasPath;function require_hasPath(){if(hasRequired_hasPath)return _hasPath;hasRequired_hasPath=1;var _e=_castPath,et=requireIsArguments(),tt=isArray_1,nt=require_isIndex(),at=requireIsLength(),it=_toKey;function ot(st,ct,dt){ct=_e(ct,st);for(var ht=-1,pt=ct.length,mt=!1;++ht<pt;){var vt=it(ct[ht]);if(!(mt=st!=null&&dt(st,vt)))break;st=st[vt]}return mt||++ht!=pt?mt:(pt=st==null?0:st.length,!!pt&&at(pt)&&nt(vt,pt)&&(tt(st)||et(st)))}return _hasPath=ot,_hasPath}var baseHasIn$1=_baseHasIn,hasPath$1=require_hasPath();function hasIn$2(_e,et){return _e!=null&&hasPath$1(_e,et,baseHasIn$1)}var hasIn_1=hasIn$2,baseIsEqual$1=require_baseIsEqual(),get$6=requireGet(),hasIn$1=hasIn_1,isKey$5=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$7=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(_e,et){return isKey$5(_e)&&isStrictComparable$1(et)?matchesStrictComparable$1(toKey$7(_e),et):function(tt){var nt=get$6(tt,_e);return nt===void 0&&nt===et?hasIn$1(tt,_e):baseIsEqual$1(et,nt,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2;function identity$c(_e){return _e}var identity_1=identity$c;function baseProperty$2(_e){return function(et){return et==null?void 0:et[_e]}}var _baseProperty=baseProperty$2,baseGet$3=require_baseGet();function basePropertyDeep$2(_e){return function(et){return baseGet$3(et,_e)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$4=_isKey,toKey$6=_toKey;function property$2(_e){return isKey$4(_e)?baseProperty$1(toKey$6(_e)):basePropertyDeep$1(_e)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$b=identity_1,isArray$j=isArray_1,property$1=property_1;function baseIteratee$7(_e){return typeof _e=="function"?_e:_e==null?identity$b:typeof _e=="object"?isArray$j(_e)?baseMatchesProperty$1(_e[0],_e[1]):baseMatches$1(_e):property$1(_e)}var _baseIteratee=baseIteratee$7,filter_1,hasRequiredFilter;function requireFilter(){if(hasRequiredFilter)return filter_1;hasRequiredFilter=1;var _e=require_arrayFilter(),et=require_baseFilter(),tt=_baseIteratee,nt=isArray_1;function at(it,ot){var st=nt(it)?_e:et;return st(it,tt(ot))}return filter_1=at,filter_1}var isEmpty_1,hasRequiredIsEmpty;function requireIsEmpty(){if(hasRequiredIsEmpty)return isEmpty_1;hasRequiredIsEmpty=1;var _e=_baseKeys,et=_getTag,tt=requireIsArguments(),nt=isArray_1,at=requireIsArrayLike(),it=requireIsBuffer(),ot=_isPrototype,st=requireIsTypedArray(),ct="[object Map]",dt="[object Set]",ht=Object.prototype,pt=ht.hasOwnProperty;function mt(vt){if(vt==null)return!0;if(at(vt)&&(nt(vt)||typeof vt=="string"||typeof vt.splice=="function"||it(vt)||st(vt)||tt(vt)))return!vt.length;var bt=et(vt);if(bt==ct||bt==dt)return!vt.size;if(ot(vt))return!_e(vt).length;for(var _t in vt)if(pt.call(vt,_t))return!1;return!0}return isEmpty_1=mt,isEmpty_1}var _baseFindIndex,hasRequired_baseFindIndex;function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;hasRequired_baseFindIndex=1;function _e(et,tt,nt,at){for(var it=et.length,ot=nt+(at?1:-1);at?ot--:++ot<it;)if(tt(et[ot],ot,et))return ot;return-1}return _baseFindIndex=_e,_baseFindIndex}var _baseIsNaN,hasRequired_baseIsNaN;function require_baseIsNaN(){if(hasRequired_baseIsNaN)return _baseIsNaN;hasRequired_baseIsNaN=1;function _e(et){return et!==et}return _baseIsNaN=_e,_baseIsNaN}var _strictIndexOf,hasRequired_strictIndexOf;function require_strictIndexOf(){if(hasRequired_strictIndexOf)return _strictIndexOf;hasRequired_strictIndexOf=1;function _e(et,tt,nt){for(var at=nt-1,it=et.length;++at<it;)if(et[at]===tt)return at;return-1}return _strictIndexOf=_e,_strictIndexOf}var _baseIndexOf,hasRequired_baseIndexOf;function require_baseIndexOf(){if(hasRequired_baseIndexOf)return _baseIndexOf;hasRequired_baseIndexOf=1;var _e=require_baseFindIndex(),et=require_baseIsNaN(),tt=require_strictIndexOf();function nt(at,it,ot){return it===it?tt(at,it,ot):_e(at,et,ot)}return _baseIndexOf=nt,_baseIndexOf}var _arrayIncludes,hasRequired_arrayIncludes;function require_arrayIncludes(){if(hasRequired_arrayIncludes)return _arrayIncludes;hasRequired_arrayIncludes=1;var _e=require_baseIndexOf();function et(tt,nt){var at=tt==null?0:tt.length;return!!at&&_e(tt,nt,0)>-1}return _arrayIncludes=et,_arrayIncludes}var _arrayIncludesWith,hasRequired_arrayIncludesWith;function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;hasRequired_arrayIncludesWith=1;function _e(et,tt,nt){for(var at=-1,it=et==null?0:et.length;++at<it;)if(nt(tt,et[at]))return!0;return!1}return _arrayIncludesWith=_e,_arrayIncludesWith}var _baseIntersection,hasRequired_baseIntersection;function require_baseIntersection(){if(hasRequired_baseIntersection)return _baseIntersection;hasRequired_baseIntersection=1;var _e=require_SetCache(),et=require_arrayIncludes(),tt=require_arrayIncludesWith(),nt=_arrayMap,at=require_baseUnary(),it=require_cacheHas(),ot=Math.min;function st(ct,dt,ht){for(var pt=ht?tt:et,mt=ct[0].length,vt=ct.length,bt=vt,_t=Array(vt),wt=1/0,Et=[];bt--;){var St=ct[bt];bt&&dt&&(St=nt(St,at(dt))),wt=ot(St.length,wt),_t[bt]=!ht&&(dt||mt>=120&&St.length>=120)?new _e(bt&&St):void 0}St=ct[0];var Tt=-1,Ct=_t[0];e:for(;++Tt<mt&&Et.length<wt;){var Nt=St[Tt],Dt=dt?dt(Nt):Nt;if(Nt=ht||Nt!==0?Nt:0,!(Ct?it(Ct,Dt):pt(Et,Dt,ht))){for(bt=vt;--bt;){var kt=_t[bt];if(!(kt?it(kt,Dt):pt(ct[bt],Dt,ht)))continue e}Ct&&Ct.push(Dt),Et.push(Nt)}}return Et}return _baseIntersection=st,_baseIntersection}function apply$6(_e,et,tt){switch(tt.length){case 0:return _e.call(et);case 1:return _e.call(et,tt[0]);case 2:return _e.call(et,tt[0],tt[1]);case 3:return _e.call(et,tt[0],tt[1],tt[2])}return _e.apply(et,tt)}var _apply=apply$6,apply$5=_apply,nativeMax$c=Math.max;function overRest$2(_e,et,tt){return et=nativeMax$c(et===void 0?_e.length-1:et,0),function(){for(var nt=arguments,at=-1,it=nativeMax$c(nt.length-et,0),ot=Array(it);++at<it;)ot[at]=nt[et+at];at=-1;for(var st=Array(et+1);++at<et;)st[at]=nt[at];return st[et]=tt(ot),apply$5(_e,this,st)}}var _overRest=overRest$2;function constant$4(_e){return function(){return _e}}var constant_1=constant$4,getNative$4=_getNative,defineProperty$7=function(){try{var _e=getNative$4(Object,"defineProperty");return _e({},"",{}),_e}catch{}}(),_defineProperty$1l=defineProperty$7,constant$3=constant_1,defineProperty$6=_defineProperty$1l,identity$a=identity_1,baseSetToString$3=defineProperty$6?function(_e,et){return defineProperty$6(_e,"toString",{configurable:!0,enumerable:!1,value:constant$3(et),writable:!0})}:identity$a,_baseSetToString=baseSetToString$3,HOT_COUNT$1=800,HOT_SPAN$1=16,nativeNow$1=Date.now;function shortOut$3(_e){var et=0,tt=0;return function(){var nt=nativeNow$1(),at=HOT_SPAN$1-(nt-tt);if(tt=nt,at>0){if(++et>=HOT_COUNT$1)return arguments[0]}else et=0;return _e.apply(void 0,arguments)}}var _shortOut=shortOut$3,baseSetToString$2=_baseSetToString,shortOut$2=_shortOut,setToString$4=shortOut$2(baseSetToString$2),_setToString=setToString$4,_baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var _e=identity_1,et=_overRest,tt=_setToString;function nt(at,it){return tt(et(at,it,_e),at+"")}return _baseRest=nt,_baseRest}var isArrayLikeObject_1,hasRequiredIsArrayLikeObject;function requireIsArrayLikeObject(){if(hasRequiredIsArrayLikeObject)return isArrayLikeObject_1;hasRequiredIsArrayLikeObject=1;var _e=requireIsArrayLike(),et=isObjectLike_1;function tt(nt){return et(nt)&&_e(nt)}return isArrayLikeObject_1=tt,isArrayLikeObject_1}var _castArrayLikeObject,hasRequired_castArrayLikeObject;function require_castArrayLikeObject(){if(hasRequired_castArrayLikeObject)return _castArrayLikeObject;hasRequired_castArrayLikeObject=1;var _e=requireIsArrayLikeObject();function et(tt){return _e(tt)?tt:[]}return _castArrayLikeObject=et,_castArrayLikeObject}var intersection_1,hasRequiredIntersection;function requireIntersection(){if(hasRequiredIntersection)return intersection_1;hasRequiredIntersection=1;var _e=_arrayMap,et=require_baseIntersection(),tt=require_baseRest(),nt=require_castArrayLikeObject(),at=tt(function(it){var ot=_e(it,nt);return ot.length&&ot[0]===it[0]?et(ot):[]});return intersection_1=at,intersection_1}var _baseHas,hasRequired_baseHas;function require_baseHas(){if(hasRequired_baseHas)return _baseHas;hasRequired_baseHas=1;var _e=Object.prototype,et=_e.hasOwnProperty;function tt(nt,at){return nt!=null&&et.call(nt,at)}return _baseHas=tt,_baseHas}var has_1,hasRequiredHas;function requireHas(){if(hasRequiredHas)return has_1;hasRequiredHas=1;var _e=require_baseHas(),et=require_hasPath();function tt(nt,at){return nt!=null&&et(nt,at,_e)}return has_1=tt,has_1}function arrayEach$3(_e,et){for(var tt=-1,nt=_e==null?0:_e.length;++tt<nt&&et(_e[tt],tt,_e)!==!1;);return _e}var _arrayEach=arrayEach$3,_castFunction,hasRequired_castFunction;function require_castFunction(){if(hasRequired_castFunction)return _castFunction;hasRequired_castFunction=1;var _e=identity_1;function et(tt){return typeof tt=="function"?tt:_e}return _castFunction=et,_castFunction}var forEach_1$1,hasRequiredForEach;function requireForEach(){if(hasRequiredForEach)return forEach_1$1;hasRequiredForEach=1;var _e=_arrayEach,et=require_baseEach(),tt=require_castFunction(),nt=isArray_1;function at(it,ot){var st=nt(it)?_e:et;return st(it,tt(ot))}return forEach_1$1=at,forEach_1$1}var each$a,hasRequiredEach;function requireEach(){return hasRequiredEach||(hasRequiredEach=1,each$a=requireForEach()),each$a}var last_1,hasRequiredLast;function requireLast(){if(hasRequiredLast)return last_1;hasRequiredLast=1;function _e(et){var tt=et==null?0:et.length;return tt?et[tt-1]:void 0}return last_1=_e,last_1}var _baseSlice,hasRequired_baseSlice;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;hasRequired_baseSlice=1;function _e(et,tt,nt){var at=-1,it=et.length;tt<0&&(tt=-tt>it?0:it+tt),nt=nt>it?it:nt,nt<0&&(nt+=it),it=tt>nt?0:nt-tt>>>0,tt>>>=0;for(var ot=Array(it);++at<it;)ot[at]=et[at+tt];return ot}return _baseSlice=_e,_baseSlice}var _parent,hasRequired_parent;function require_parent(){if(hasRequired_parent)return _parent;hasRequired_parent=1;var _e=require_baseGet(),et=require_baseSlice();function tt(nt,at){return at.length<2?nt:_e(nt,et(at,0,-1))}return _parent=tt,_parent}var _baseInvoke,hasRequired_baseInvoke;function require_baseInvoke(){if(hasRequired_baseInvoke)return _baseInvoke;hasRequired_baseInvoke=1;var _e=_apply,et=_castPath,tt=requireLast(),nt=require_parent(),at=_toKey;function it(ot,st,ct){st=et(st,ot),ot=nt(ot,st);var dt=ot==null?ot:ot[at(tt(st))];return dt==null?void 0:_e(dt,ot,ct)}return _baseInvoke=it,_baseInvoke}var invoke_1,hasRequiredInvoke;function requireInvoke(){if(hasRequiredInvoke)return invoke_1;hasRequiredInvoke=1;var _e=require_baseInvoke(),et=require_baseRest(),tt=et(_e);return invoke_1=tt,invoke_1}var hasRequiredModernAutoControlledComponent;function requireModernAutoControlledComponent(){if(hasRequiredModernAutoControlledComponent)return ModernAutoControlledComponent$1;hasRequiredModernAutoControlledComponent=1;var _e=interopRequireDefaultExports;ModernAutoControlledComponent$1.__esModule=!0,ModernAutoControlledComponent$1.default=void 0;var et=_e(require_extends()),tt=_e(requireAssertThisInitialized()),nt=_e(requireInheritsLoose()),at=_e(requireIsUndefined());_e(requireStartsWith()),_e(requireFilter()),_e(requireIsEmpty()),_e(requireKeys()),_e(requireIntersection()),_e(requireHas()),_e(requireEach());var it=_e(requireInvoke()),ot=_e(reactExports),st=function(pt){return"default"+(pt[0].toUpperCase()+pt.slice(1))},ct=function(pt,mt,vt,bt){bt===void 0&&(bt=!1);var _t=mt[pt];if(_t!==void 0)return _t;if(bt){var wt=mt[st(pt)];if(wt!==void 0)return wt;if(vt){var Et=vt[pt];if(Et!==void 0)return Et}}if(pt==="checked")return!1;if(pt==="value")return mt.multiple?[]:""},dt=function(ht){(0,nt.default)(pt,ht);function pt(){for(var mt,vt=arguments.length,bt=new Array(vt),_t=0;_t<vt;_t++)bt[_t]=arguments[_t];mt=ht.call.apply(ht,[this].concat(bt))||this;var wt=mt.constructor,Et=wt.autoControlledProps,St=wt.getAutoControlledStateFromProps,Tt=(0,it.default)((0,tt.default)(mt),"getInitialAutoControlledState",mt.props)||{},Ct=Et.reduce(function(Nt,Dt){return Nt[Dt]=ct(Dt,mt.props,Tt,!0),Nt},{});return mt.state=(0,et.default)({},Tt,Ct,{autoControlledProps:Et,getAutoControlledStateFromProps:St}),mt}return pt.getDerivedStateFromProps=function(vt,bt){var _t=bt.autoControlledProps,wt=bt.getAutoControlledStateFromProps,Et=_t.reduce(function(Tt,Ct){var Nt=!(0,at.default)(vt[Ct]);return Nt&&(Tt[Ct]=vt[Ct]),Tt},{});if(wt){var St=wt(vt,(0,et.default)({},bt,Et),bt);return(0,et.default)({},Et,St)}return Et},pt.getAutoControlledStateFromProps=function(){return null},pt}(ot.default.Component);return ModernAutoControlledComponent$1.default=dt,ModernAutoControlledComponent$1}var childrenUtils={},_createFind,hasRequired_createFind;function require_createFind(){if(hasRequired_createFind)return _createFind;hasRequired_createFind=1;var _e=_baseIteratee,et=requireIsArrayLike(),tt=requireKeys();function nt(at){return function(it,ot,st){var ct=Object(it);if(!et(it)){var dt=_e(ot);it=tt(it),ot=function(pt){return dt(ct[pt],pt,ct)}}var ht=at(it,ot,st);return ht>-1?ct[dt?it[ht]:ht]:void 0}}return _createFind=nt,_createFind}var findIndex_1,hasRequiredFindIndex;function requireFindIndex(){if(hasRequiredFindIndex)return findIndex_1;hasRequiredFindIndex=1;var _e=require_baseFindIndex(),et=_baseIteratee,tt=toInteger_1,nt=Math.max;function at(it,ot,st){var ct=it==null?0:it.length;if(!ct)return-1;var dt=st==null?0:tt(st);return dt<0&&(dt=nt(ct+dt,0)),_e(it,et(ot),dt)}return findIndex_1=at,findIndex_1}var find_1,hasRequiredFind;function requireFind(){if(hasRequiredFind)return find_1;hasRequiredFind=1;var _e=require_createFind(),et=requireFindIndex(),tt=_e(et);return find_1=tt,find_1}var _baseSome,hasRequired_baseSome;function require_baseSome(){if(hasRequired_baseSome)return _baseSome;hasRequired_baseSome=1;var _e=require_baseEach();function et(tt,nt){var at;return _e(tt,function(it,ot,st){return at=nt(it,ot,st),!at}),!!at}return _baseSome=et,_baseSome}var _isIterateeCall,hasRequired_isIterateeCall;function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var _e=requireEq(),et=requireIsArrayLike(),tt=require_isIndex(),nt=requireIsObject();function at(it,ot,st){if(!nt(st))return!1;var ct=typeof ot;return(ct=="number"?et(st)&&tt(ot,st.length):ct=="string"&&ot in st)?_e(st[ot],it):!1}return _isIterateeCall=at,_isIterateeCall}var some_1,hasRequiredSome;function requireSome(){if(hasRequiredSome)return some_1;hasRequiredSome=1;var _e=require_arraySome(),et=_baseIteratee,tt=require_baseSome(),nt=isArray_1,at=require_isIterateeCall();function it(ot,st,ct){var dt=nt(ot)?_e:tt;return ct&&at(ot,st,ct)&&(st=void 0),dt(ot,et(st))}return some_1=it,some_1}var hasRequiredChildrenUtils;function requireChildrenUtils(){if(hasRequiredChildrenUtils)return childrenUtils;hasRequiredChildrenUtils=1;var _e=interopRequireDefaultExports;childrenUtils.__esModule=!0,childrenUtils.isNil=childrenUtils.findByType=childrenUtils.someByType=void 0;var et=_e(requireFind()),tt=_e(requireSome()),nt=reactExports,at=function(ct,dt){return(0,tt.default)(nt.Children.toArray(ct),{type:dt})};childrenUtils.someByType=at;var it=function(ct,dt){return(0,et.default)(nt.Children.toArray(ct),{type:dt})};childrenUtils.findByType=it;var ot=function(ct){return ct==null||Array.isArray(ct)&&ct.length===0};return childrenUtils.isNil=ot,childrenUtils}var classNameBuilders={},numberToWord$1={},hasRequiredNumberToWord;function requireNumberToWord(){if(hasRequiredNumberToWord)return numberToWord$1;hasRequiredNumberToWord=1,numberToWord$1.__esModule=!0,numberToWord$1.numberToWord=et,numberToWord$1.numberToWordMap=void 0;var _e={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};numberToWord$1.numberToWordMap=_e;function et(tt){var nt=typeof tt;return nt==="string"||nt==="number"?_e[tt]||tt:""}return numberToWord$1}var hasRequiredClassNameBuilders;function requireClassNameBuilders(){if(hasRequiredClassNameBuilders)return classNameBuilders;hasRequiredClassNameBuilders=1,classNameBuilders.__esModule=!0,classNameBuilders.useWidthProp=classNameBuilders.useVerticalAlignProp=classNameBuilders.useTextAlignProp=classNameBuilders.useMultipleProp=classNameBuilders.useKeyOrValueAndKey=classNameBuilders.useValueAndKey=classNameBuilders.useKeyOnly=void 0;var _e=requireNumberToWord(),et=function(dt,ht){return dt&&ht};classNameBuilders.useKeyOnly=et;var tt=function(dt,ht){return dt&&dt!==!0&&dt+" "+ht};classNameBuilders.useValueAndKey=tt;var nt=function(dt,ht){return dt&&(dt===!0?ht:dt+" "+ht)};classNameBuilders.useKeyOrValueAndKey=nt;var at=function(dt,ht){return!dt||dt===!0?null:dt.replace("large screen","large-screen").replace(/ vertically/g,"-vertically").split(" ").map(function(pt){return pt.replace("-"," ")+" "+ht}).join(" ")};classNameBuilders.useMultipleProp=at;var it=function(dt){return dt==="justified"?"justified":tt(dt,"aligned")};classNameBuilders.useTextAlignProp=it;var ot=function(dt){return tt(dt,"aligned")};classNameBuilders.useVerticalAlignProp=ot;var st=function(dt,ht,pt){if(ht===void 0&&(ht=""),pt===void 0&&(pt=!1),pt&&dt==="equal")return"equal width";var mt=typeof dt;return(mt==="string"||mt==="number")&&ht?(0,_e.numberToWord)(dt)+" "+ht:(0,_e.numberToWord)(dt)};return classNameBuilders.useWidthProp=st,classNameBuilders}var customPropTypes={},_baseDifference,hasRequired_baseDifference;function require_baseDifference(){if(hasRequired_baseDifference)return _baseDifference;hasRequired_baseDifference=1;var _e=require_SetCache(),et=require_arrayIncludes(),tt=require_arrayIncludesWith(),nt=_arrayMap,at=require_baseUnary(),it=require_cacheHas(),ot=200;function st(ct,dt,ht,pt){var mt=-1,vt=et,bt=!0,_t=ct.length,wt=[],Et=dt.length;if(!_t)return wt;ht&&(dt=nt(dt,at(ht))),pt?(vt=tt,bt=!1):dt.length>=ot&&(vt=it,bt=!1,dt=new _e(dt));e:for(;++mt<_t;){var St=ct[mt],Tt=ht==null?St:ht(St);if(St=pt||St!==0?St:0,bt&&Tt===Tt){for(var Ct=Et;Ct--;)if(dt[Ct]===Tt)continue e;wt.push(St)}else vt(dt,Tt,pt)||wt.push(St)}return wt}return _baseDifference=st,_baseDifference}var _isFlattenable,hasRequired_isFlattenable;function require_isFlattenable(){if(hasRequired_isFlattenable)return _isFlattenable;hasRequired_isFlattenable=1;var _e=require_Symbol(),et=requireIsArguments(),tt=isArray_1,nt=_e?_e.isConcatSpreadable:void 0;function at(it){return tt(it)||et(it)||!!(nt&&it&&it[nt])}return _isFlattenable=at,_isFlattenable}var _baseFlatten,hasRequired_baseFlatten;function require_baseFlatten(){if(hasRequired_baseFlatten)return _baseFlatten;hasRequired_baseFlatten=1;var _e=require_arrayPush(),et=require_isFlattenable();function tt(nt,at,it,ot,st){var ct=-1,dt=nt.length;for(it||(it=et),st||(st=[]);++ct<dt;){var ht=nt[ct];at>0&&it(ht)?at>1?tt(ht,at-1,it,ot,st):_e(st,ht):ot||(st[st.length]=ht)}return st}return _baseFlatten=tt,_baseFlatten}var difference_1,hasRequiredDifference;function requireDifference(){if(hasRequiredDifference)return difference_1;hasRequiredDifference=1;var _e=require_baseDifference(),et=require_baseFlatten(),tt=require_baseRest(),nt=requireIsArrayLikeObject(),at=tt(function(it,ot){return nt(it)?_e(it,et(ot,1,nt,!0)):[]});return difference_1=at,difference_1}var _castSlice,hasRequired_castSlice;function require_castSlice(){if(hasRequired_castSlice)return _castSlice;hasRequired_castSlice=1;var _e=require_baseSlice();function et(tt,nt,at){var it=tt.length;return at=at===void 0?it:at,!nt&&at>=it?tt:_e(tt,nt,at)}return _castSlice=et,_castSlice}var _charsEndIndex,hasRequired_charsEndIndex;function require_charsEndIndex(){if(hasRequired_charsEndIndex)return _charsEndIndex;hasRequired_charsEndIndex=1;var _e=require_baseIndexOf();function et(tt,nt){for(var at=tt.length;at--&&_e(nt,tt[at],0)>-1;);return at}return _charsEndIndex=et,_charsEndIndex}var _charsStartIndex,hasRequired_charsStartIndex;function require_charsStartIndex(){if(hasRequired_charsStartIndex)return _charsStartIndex;hasRequired_charsStartIndex=1;var _e=require_baseIndexOf();function et(tt,nt){for(var at=-1,it=tt.length;++at<it&&_e(nt,tt[at],0)>-1;);return at}return _charsStartIndex=et,_charsStartIndex}var _asciiToArray,hasRequired_asciiToArray;function require_asciiToArray(){if(hasRequired_asciiToArray)return _asciiToArray;hasRequired_asciiToArray=1;function _e(et){return et.split("")}return _asciiToArray=_e,_asciiToArray}var _hasUnicode,hasRequired_hasUnicode;function require_hasUnicode(){if(hasRequired_hasUnicode)return _hasUnicode;hasRequired_hasUnicode=1;var _e="\\ud800-\\udfff",et="\\u0300-\\u036f",tt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",at=et+tt+nt,it="\\ufe0e\\ufe0f",ot="\\u200d",st=RegExp("["+ot+_e+at+it+"]");function ct(dt){return st.test(dt)}return _hasUnicode=ct,_hasUnicode}var _unicodeToArray,hasRequired_unicodeToArray;function require_unicodeToArray(){if(hasRequired_unicodeToArray)return _unicodeToArray;hasRequired_unicodeToArray=1;var _e="\\ud800-\\udfff",et="\\u0300-\\u036f",tt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",at=et+tt+nt,it="\\ufe0e\\ufe0f",ot="["+_e+"]",st="["+at+"]",ct="\\ud83c[\\udffb-\\udfff]",dt="(?:"+st+"|"+ct+")",ht="[^"+_e+"]",pt="(?:\\ud83c[\\udde6-\\uddff]){2}",mt="[\\ud800-\\udbff][\\udc00-\\udfff]",vt="\\u200d",bt=dt+"?",_t="["+it+"]?",wt="(?:"+vt+"(?:"+[ht,pt,mt].join("|")+")"+_t+bt+")*",Et=_t+bt+wt,St="(?:"+[ht+st+"?",st,pt,mt,ot].join("|")+")",Tt=RegExp(ct+"(?="+ct+")|"+St+Et,"g");function Ct(Nt){return Nt.match(Tt)||[]}return _unicodeToArray=Ct,_unicodeToArray}var _stringToArray,hasRequired_stringToArray;function require_stringToArray(){if(hasRequired_stringToArray)return _stringToArray;hasRequired_stringToArray=1;var _e=require_asciiToArray(),et=require_hasUnicode(),tt=require_unicodeToArray();function nt(at){return et(at)?tt(at):_e(at)}return _stringToArray=nt,_stringToArray}var trim_1,hasRequiredTrim;function requireTrim(){if(hasRequiredTrim)return trim_1;hasRequiredTrim=1;var _e=require_baseToString(),et=require_baseTrim(),tt=require_castSlice(),nt=require_charsEndIndex(),at=require_charsStartIndex(),it=require_stringToArray(),ot=toString_1;function st(ct,dt,ht){if(ct=ot(ct),ct&&(ht||dt===void 0))return et(ct);if(!ct||!(dt=_e(dt)))return ct;var pt=it(ct),mt=it(dt),vt=at(pt,mt),bt=nt(pt,mt)+1;return tt(pt,vt,bt).join("")}return trim_1=st,trim_1}var defineProperty$5=_defineProperty$1l;function baseAssignValue$4(_e,et,tt){et=="__proto__"&&defineProperty$5?defineProperty$5(_e,et,{configurable:!0,enumerable:!0,value:tt,writable:!0}):_e[et]=tt}var _baseAssignValue=baseAssignValue$4,baseAssignValue$3=_baseAssignValue,eq$4=requireEq(),objectProto$r=Object.prototype,hasOwnProperty$r=objectProto$r.hasOwnProperty;function assignValue$4(_e,et,tt){var nt=_e[et];(!(hasOwnProperty$r.call(_e,et)&&eq$4(nt,tt))||tt===void 0&&!(et in _e))&&baseAssignValue$3(_e,et,tt)}var _assignValue=assignValue$4,_baseSet,hasRequired_baseSet;function require_baseSet(){if(hasRequired_baseSet)return _baseSet;hasRequired_baseSet=1;var _e=_assignValue,et=_castPath,tt=require_isIndex(),nt=requireIsObject(),at=_toKey;function it(ot,st,ct,dt){if(!nt(ot))return ot;st=et(st,ot);for(var ht=-1,pt=st.length,mt=pt-1,vt=ot;vt!=null&&++ht<pt;){var bt=at(st[ht]),_t=ct;if(bt==="__proto__"||bt==="constructor"||bt==="prototype")return ot;if(ht!=mt){var wt=vt[bt];_t=dt?dt(wt,bt,vt):void 0,_t===void 0&&(_t=nt(wt)?wt:tt(st[ht+1])?[]:{})}_e(vt,bt,_t),vt=vt[bt]}return ot}return _baseSet=it,_baseSet}var _basePickBy,hasRequired_basePickBy;function require_basePickBy(){if(hasRequired_basePickBy)return _basePickBy;hasRequired_basePickBy=1;var _e=require_baseGet(),et=require_baseSet(),tt=_castPath;function nt(at,it,ot){for(var st=-1,ct=it.length,dt={};++st<ct;){var ht=it[st],pt=_e(at,ht);ot(pt,ht)&&et(dt,tt(ht,at),pt)}return dt}return _basePickBy=nt,_basePickBy}var _basePick,hasRequired_basePick;function require_basePick(){if(hasRequired_basePick)return _basePick;hasRequired_basePick=1;var _e=require_basePickBy(),et=hasIn_1;function tt(nt,at){return _e(nt,at,function(it,ot){return et(nt,ot)})}return _basePick=tt,_basePick}var baseFlatten$2=require_baseFlatten();function flatten$5(_e){var et=_e==null?0:_e.length;return et?baseFlatten$2(_e,1):[]}var flatten_1=flatten$5,flatten$4=flatten_1,overRest$1=_overRest,setToString$3=_setToString;function flatRest$3(_e){return setToString$3(overRest$1(_e,void 0,flatten$4),_e+"")}var _flatRest=flatRest$3,pick_1,hasRequiredPick;function requirePick(){if(hasRequiredPick)return pick_1;hasRequiredPick=1;var _e=require_basePick(),et=_flatRest,tt=et(function(nt,at){return nt==null?{}:_e(nt,at)});return pick_1=tt,pick_1}var _getPrototype,hasRequired_getPrototype;function require_getPrototype(){if(hasRequired_getPrototype)return _getPrototype;hasRequired_getPrototype=1;var _e=_overArg,et=_e(Object.getPrototypeOf,Object);return _getPrototype=et,_getPrototype}var isPlainObject_1,hasRequiredIsPlainObject;function requireIsPlainObject(){if(hasRequiredIsPlainObject)return isPlainObject_1;hasRequiredIsPlainObject=1;var _e=require_baseGetTag(),et=require_getPrototype(),tt=isObjectLike_1,nt="[object Object]",at=Function.prototype,it=Object.prototype,ot=at.toString,st=it.hasOwnProperty,ct=ot.call(Object);function dt(ht){if(!tt(ht)||_e(ht)!=nt)return!1;var pt=et(ht);if(pt===null)return!0;var mt=st.call(pt,"constructor")&&pt.constructor;return typeof mt=="function"&&mt instanceof mt&&ot.call(mt)==ct}return isPlainObject_1=dt,isPlainObject_1}var isNil_1,hasRequiredIsNil;function requireIsNil(){if(hasRequiredIsNil)return isNil_1;hasRequiredIsNil=1;function _e(et){return et==null}return isNil_1=_e,isNil_1}var _baseExtremum,hasRequired_baseExtremum;function require_baseExtremum(){if(hasRequired_baseExtremum)return _baseExtremum;hasRequired_baseExtremum=1;var _e=isSymbol_1;function et(tt,nt,at){for(var it=-1,ot=tt.length;++it<ot;){var st=tt[it],ct=nt(st);if(ct!=null&&(dt===void 0?ct===ct&&!_e(ct):at(ct,dt)))var dt=ct,ht=st}return ht}return _baseExtremum=et,_baseExtremum}var _baseLt,hasRequired_baseLt;function require_baseLt(){if(hasRequired_baseLt)return _baseLt;hasRequired_baseLt=1;function _e(et,tt){return et<tt}return _baseLt=_e,_baseLt}var min_1,hasRequiredMin;function requireMin(){if(hasRequiredMin)return min_1;hasRequiredMin=1;var _e=require_baseExtremum(),et=require_baseLt(),tt=identity_1;function nt(at){return at&&at.length?_e(at,tt,et):void 0}return min_1=nt,min_1}var _baseSum,hasRequired_baseSum;function require_baseSum(){if(hasRequired_baseSum)return _baseSum;hasRequired_baseSum=1;function _e(et,tt){for(var nt,at=-1,it=et.length;++at<it;){var ot=tt(et[at]);ot!==void 0&&(nt=nt===void 0?ot:nt+ot)}return nt}return _baseSum=_e,_baseSum}var sum_1,hasRequiredSum;function requireSum(){if(hasRequiredSum)return sum_1;hasRequiredSum=1;var _e=require_baseSum(),et=identity_1;function tt(nt){return nt&&nt.length?_e(nt,et):0}return sum_1=tt,sum_1}var _baseMap,hasRequired_baseMap;function require_baseMap(){if(hasRequired_baseMap)return _baseMap;hasRequired_baseMap=1;var _e=require_baseEach(),et=requireIsArrayLike();function tt(nt,at){var it=-1,ot=et(nt)?Array(nt.length):[];return _e(nt,function(st,ct,dt){ot[++it]=at(st,ct,dt)}),ot}return _baseMap=tt,_baseMap}var map_1,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map_1;hasRequiredMap=1;var _e=_arrayMap,et=_baseIteratee,tt=require_baseMap(),nt=isArray_1;function at(it,ot){var st=nt(it)?_e:tt;return st(it,et(ot))}return map_1=at,map_1}var _baseSortBy,hasRequired_baseSortBy;function require_baseSortBy(){if(hasRequired_baseSortBy)return _baseSortBy;hasRequired_baseSortBy=1;function _e(et,tt){var nt=et.length;for(et.sort(tt);nt--;)et[nt]=et[nt].value;return et}return _baseSortBy=_e,_baseSortBy}var _compareAscending,hasRequired_compareAscending;function require_compareAscending(){if(hasRequired_compareAscending)return _compareAscending;hasRequired_compareAscending=1;var _e=isSymbol_1;function et(tt,nt){if(tt!==nt){var at=tt!==void 0,it=tt===null,ot=tt===tt,st=_e(tt),ct=nt!==void 0,dt=nt===null,ht=nt===nt,pt=_e(nt);if(!dt&&!pt&&!st&&tt>nt||st&&ct&&ht&&!dt&&!pt||it&&ct&&ht||!at&&ht||!ot)return 1;if(!it&&!st&&!pt&&tt<nt||pt&&at&&ot&&!it&&!st||dt&&at&&ot||!ct&&ot||!ht)return-1}return 0}return _compareAscending=et,_compareAscending}var _compareMultiple,hasRequired_compareMultiple;function require_compareMultiple(){if(hasRequired_compareMultiple)return _compareMultiple;hasRequired_compareMultiple=1;var _e=require_compareAscending();function et(tt,nt,at){for(var it=-1,ot=tt.criteria,st=nt.criteria,ct=ot.length,dt=at.length;++it<ct;){var ht=_e(ot[it],st[it]);if(ht){if(it>=dt)return ht;var pt=at[it];return ht*(pt=="desc"?-1:1)}}return tt.index-nt.index}return _compareMultiple=et,_compareMultiple}var _baseOrderBy,hasRequired_baseOrderBy;function require_baseOrderBy(){if(hasRequired_baseOrderBy)return _baseOrderBy;hasRequired_baseOrderBy=1;var _e=_arrayMap,et=require_baseGet(),tt=_baseIteratee,nt=require_baseMap(),at=require_baseSortBy(),it=require_baseUnary(),ot=require_compareMultiple(),st=identity_1,ct=isArray_1;function dt(ht,pt,mt){pt.length?pt=_e(pt,function(_t){return ct(_t)?function(wt){return et(wt,_t.length===1?_t[0]:_t)}:_t}):pt=[st];var vt=-1;pt=_e(pt,it(tt));var bt=nt(ht,function(_t,wt,Et){var St=_e(pt,function(Tt){return Tt(_t)});return{criteria:St,index:++vt,value:_t}});return at(bt,function(_t,wt){return ot(_t,wt,mt)})}return _baseOrderBy=dt,_baseOrderBy}var sortBy_1,hasRequiredSortBy;function requireSortBy(){if(hasRequiredSortBy)return sortBy_1;hasRequiredSortBy=1;var _e=require_baseFlatten(),et=require_baseOrderBy(),tt=require_baseRest(),nt=require_isIterateeCall(),at=tt(function(it,ot){if(it==null)return[];var st=ot.length;return st>1&&nt(it,ot[0],ot[1])?ot=[]:st>2&&nt(ot[0],ot[1],ot[2])&&(ot=[ot[0]]),et(it,_e(ot,1),[])});return sortBy_1=at,sortBy_1}var take_1,hasRequiredTake;function requireTake(){if(hasRequiredTake)return take_1;hasRequiredTake=1;var _e=require_baseSlice(),et=toInteger_1;function tt(nt,at,it){return nt&&nt.length?(at=it||at===void 0?1:et(at),_e(nt,0,at<0?0:at)):[]}return take_1=tt,take_1}var leven={},hasRequiredLeven;function requireLeven(){if(hasRequiredLeven)return leven;hasRequiredLeven=1,leven.__esModule=!0,leven.default=void 0;var _e=function(){return 0},et=_e;return leven.default=et,leven}var hasRequiredCustomPropTypes;function requireCustomPropTypes(){if(hasRequiredCustomPropTypes)return customPropTypes;hasRequiredCustomPropTypes=1;var _e=interopRequireDefaultExports;customPropTypes.__esModule=!0,customPropTypes.ref=customPropTypes.refObject=customPropTypes.deprecate=customPropTypes.collectionShorthand=customPropTypes.itemShorthand=customPropTypes.contentShorthand=customPropTypes.multipleProp=customPropTypes.demand=customPropTypes.givenProps=customPropTypes.every=customPropTypes.disallow=customPropTypes.suggest=customPropTypes.domNode=void 0;var et=_e(requireDifference()),tt=_e(requireTrim()),nt=_e(requireIsObject()),at=_e(requirePick()),it=_e(requireKeys()),ot=_e(requireIsPlainObject()),st=_e(requireIsNil()),ct=_e(requireMin()),dt=_e(requireSum()),ht=_e(requireMap()),pt=_e(requireSortBy()),mt=_e(requireTake()),vt=_e(requireMemoize()),bt=_e(propTypesExports),_t=_e(requireLeven()),wt=function(){var At;return(At=Object.prototype.toString).call.apply(At,arguments)},Et=function(At,Mt){if(At[Mt]!==void 0&&!(typeof Element>"u")&&!(At[Mt]instanceof Element))return new Error('Invalid prop "'+Mt+'" supplied, expected a DOM node.')};customPropTypes.domNode=Et;var St=function(At){if(!Array.isArray(At))throw new Error("Invalid argument supplied to suggest, expected an instance of array.");var Mt=(0,vt.default)(function(Lt){var Ot=Lt.split(" ");return(0,mt.default)((0,pt.default)((0,ht.default)(At,function(gt){var Pt=gt.split(" "),Bt=(0,dt.default)((0,ht.default)((0,ht.default)(Ot,function(Ht){return(0,ht.default)(Pt,function(qt){return(0,_t.default)(Ht,qt)})}),ct.default)),Ut=(0,dt.default)((0,ht.default)((0,ht.default)(Pt,function(Ht){return(0,ht.default)(Ot,function(qt){return(0,_t.default)(Ht,qt)})}),ct.default));return{suggestion:gt,score:Bt+Ut}}),["score","suggestion"]),3)}),It=At.reduce(function(Lt,Ot){return Lt[Ot.split(" ").sort().join(" ")]=!0,Lt},{});return function(Lt,Ot,gt){var Pt=Lt[Ot];if(!(!Pt||It[Pt])){var Bt=Pt.split(" ").sort().join(" ");if(!It[Bt]){var Ut=Mt(Pt);if(!Ut.some(function(Ht){return Ht.score===0}))return new Error(["Invalid prop `"+Ot+"` of value `"+Pt+"` supplied to `"+gt+"`.",`
87
87
 
88
88
  Instead of \``+Pt+"`, did you mean:",Ut.map(function(Ht){return`
89
89
  - `+Ht.suggestion}).join(""),`
@@ -91,7 +91,7 @@ Instead of \``+Pt+"`, did you mean:",Ut.map(function(Ht){return`
91
91
  Copyright (c) 2015 Jed Watson.
92
92
  Based on code that is Copyright 2013-2015, Facebook, Inc.
93
93
  All rights reserved.
94
- */var hasRequiredExenv;function requireExenv(){return hasRequiredExenv||(hasRequiredExenv=1,function(_e){(function(){var et=!!(typeof window<"u"&&window.document&&window.document.createElement),tt={canUseDOM:et,canUseWorkers:typeof Worker<"u",canUseEventListeners:et&&!!(window.addEventListener||window.attachEvent),canUseViewport:et&&!!window.screen};_e.exports?_e.exports=tt:window.ExecutionEnvironment=tt})()}(exenv)),exenv.exports}var hasRequiredEventStack_production;function requireEventStack_production(){if(hasRequiredEventStack_production)return eventStack_production;hasRequiredEventStack_production=1,Object.defineProperty(eventStack_production,"__esModule",{value:!0});var _e=requireExenv(),et=reactExports;function tt(Dt){return(tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kt){return typeof kt}:function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt})(Dt)}function nt(Dt,kt){if(!(Dt instanceof kt))throw new TypeError("Cannot call a class as a function")}function at(Dt,kt){for(var Ft=0;Ft<kt.length;Ft++){var jt=kt[Ft];jt.enumerable=jt.enumerable||!1,jt.configurable=!0,"value"in jt&&(jt.writable=!0),Object.defineProperty(Dt,jt.key,jt)}}function it(Dt,kt,Ft){return kt&&at(Dt.prototype,kt),Ft&&at(Dt,Ft),Dt}function ot(Dt,kt,Ft){return kt in Dt?Object.defineProperty(Dt,kt,{value:Ft,enumerable:!0,configurable:!0,writable:!0}):Dt[kt]=Ft,Dt}function st(Dt,kt){if(typeof kt!="function"&&kt!==null)throw new TypeError("Super expression must either be null or a function");Dt.prototype=Object.create(kt&&kt.prototype,{constructor:{value:Dt,writable:!0,configurable:!0}}),kt&&dt(Dt,kt)}function ct(Dt){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)})(Dt)}function dt(Dt,kt){return(dt=Object.setPrototypeOf||function(Ft,jt){return Ft.__proto__=jt,Ft})(Dt,kt)}function ht(Dt){if(Dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Dt}function pt(Dt,kt){return!kt||typeof kt!="object"&&typeof kt!="function"?ht(Dt):kt}var mt=function(){function Dt(kt){nt(this,Dt),ot(this,"handlers",void 0),this.handlers=kt.slice(0)}return it(Dt,[{key:"addHandlers",value:function(kt){for(var Ft=this.handlers.slice(0),jt=kt.length,Gt=0;Gt<jt;Gt+=1)Ft.push(kt[Gt]);return new Dt(Ft)}},{key:"dispatchEvent",value:function(kt,Ft){var jt=this.handlers.length-1;if(Ft){for(var Gt=jt;Gt>=0;Gt-=1)this.handlers[Gt].called||(this.handlers[Gt].called=!0,this.handlers[Gt](kt));for(var Rt=jt;Rt>=0;Rt-=1)this.handlers[Rt].called=!1}else(0,this.handlers[jt])(kt)}},{key:"hasHandlers",value:function(){return this.handlers.length>0}},{key:"removeHandlers",value:function(kt){for(var Ft=[],jt=this.handlers.length,Gt=0;Gt<jt;Gt+=1){var Rt=this.handlers[Gt];kt.indexOf(Rt)===-1&&Ft.push(Rt)}return new Dt(Ft)}}]),Dt}();function vt(Dt){var kt=new Map;return Dt.forEach(function(Ft,jt){kt.set(jt,Ft)}),kt}function bt(Dt){return Array.isArray(Dt)?Dt:[Dt]}var _t=function(Dt){return Dt!==null&&tt(Dt)==="object"&&Dt.hasOwnProperty("current")};function wt(Dt){return Dt==="document"?document:Dt==="window"?window:_t(Dt)?Dt.current||document:Dt||document}var Et=function(){function Dt(kt,Ft){nt(this,Dt),ot(this,"handlerSets",void 0),ot(this,"poolName",void 0),this.handlerSets=Ft,this.poolName=kt}return it(Dt,[{key:"addHandlers",value:function(kt,Ft){var jt=vt(this.handlerSets);if(jt.has(kt)){var Gt=jt.get(kt);jt.set(kt,Gt.addHandlers(Ft))}else jt.set(kt,new mt(Ft));return new Dt(this.poolName,jt)}},{key:"dispatchEvent",value:function(kt,Ft){var jt=this.handlerSets.get(kt),Gt=this.poolName==="default";jt&&jt.dispatchEvent(Ft,Gt)}},{key:"hasHandlers",value:function(kt){if(!kt)return this.handlerSets.size>0;var Ft=this.handlerSets.get(kt);return!!Ft&&Ft.hasHandlers()}},{key:"removeHandlers",value:function(kt,Ft){var jt=vt(this.handlerSets);if(!jt.has(kt))return new Dt(this.poolName,jt);var Gt=jt.get(kt).removeHandlers(Ft);return Gt.hasHandlers()?jt.set(kt,Gt):jt.delete(kt),new Dt(this.poolName,jt)}}]),Dt}();ot(Et,"createByType",function(Dt,kt,Ft){var jt=new Map;return jt.set(kt,new mt(Ft)),new Et(Dt,jt)});var St=function(){function Dt(kt){var Ft=this;nt(this,Dt),ot(this,"handlers",new Map),ot(this,"pools",new Map),ot(this,"target",void 0),ot(this,"createEmitter",function(jt){return function(Gt){Ft.pools.forEach(function(Rt){Rt.dispatchEvent(jt,Gt)})}}),this.target=kt}return it(Dt,[{key:"addHandlers",value:function(kt,Ft,jt){if(this.pools.has(kt)){var Gt=this.pools.get(kt);this.pools.set(kt,Gt.addHandlers(Ft,jt))}else this.pools.set(kt,Et.createByType(kt,Ft,jt));this.handlers.has(Ft)||this.addTargetHandler(Ft)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(kt,Ft,jt){if(this.pools.has(kt)){var Gt=this.pools.get(kt).removeHandlers(Ft,jt);Gt.hasHandlers()?this.pools.set(kt,Gt):this.pools.delete(kt);var Rt=!1;this.pools.forEach(function(yt){return Rt=Rt||yt.hasHandlers(Ft)}),Rt||this.removeTargetHandler(Ft)}}},{key:"addTargetHandler",value:function(kt){var Ft=this.createEmitter(kt);this.handlers.set(kt,Ft),this.target.addEventListener(kt,Ft,!0)}},{key:"removeTargetHandler",value:function(kt){this.handlers.has(kt)&&(this.target.removeEventListener(kt,this.handlers.get(kt),!0),this.handlers.delete(kt))}}]),Dt}(),Tt=function(){function Dt(){var kt=this;nt(this,Dt),ot(this,"targets",new Map),ot(this,"getTarget",function(Ft){var jt=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],Gt=wt(Ft);if(kt.targets.has(Gt))return kt.targets.get(Gt);if(!jt)return null;var Rt=new St(Gt);return kt.targets.set(Gt,Rt),Rt}),ot(this,"removeTarget",function(Ft){kt.targets.delete(wt(Ft))})}return it(Dt,[{key:"sub",value:function(kt,Ft){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(_e.canUseDOM){var Gt=jt.target,Rt=Gt===void 0?document:Gt,yt=jt.pool,$t=yt===void 0?"default":yt;this.getTarget(Rt).addHandlers($t,kt,bt(Ft))}}},{key:"unsub",value:function(kt,Ft){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(_e.canUseDOM){var Gt=jt.target,Rt=Gt===void 0?document:Gt,yt=jt.pool,$t=yt===void 0?"default":yt,xt=this.getTarget(Rt,!1);xt&&(xt.removeHandlers($t,kt,bt(Ft)),xt.hasHandlers()||this.removeTarget(Rt))}}}]),Dt}(),Ct=new Tt,Nt=function(Dt){function kt(){return nt(this,kt),pt(this,ct(kt).apply(this,arguments))}return st(kt,et.PureComponent),it(kt,[{key:"componentDidMount",value:function(){this.subscribe(this.props)}},{key:"componentDidUpdate",value:function(Ft){this.unsubscribe(Ft),this.subscribe(this.props)}},{key:"componentWillUnmount",value:function(){this.unsubscribe(this.props)}},{key:"subscribe",value:function(Ft){var jt=Ft.name,Gt=Ft.on,Rt=Ft.pool,yt=Ft.target;Ct.sub(jt,Gt,{pool:Rt,target:yt})}},{key:"unsubscribe",value:function(Ft){var jt=Ft.name,Gt=Ft.on,Rt=Ft.pool,yt=Ft.target;Ct.unsub(jt,Gt,{pool:Rt,target:yt})}},{key:"render",value:function(){return null}}]),kt}();return ot(Nt,"defaultProps",{pool:"default",target:"document"}),Nt.propTypes={},eventStack_production.instance=Ct,eventStack_production.default=Nt,eventStack_production}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$3.exports;hasRequiredLib$1=1;var _e;return _e=requireEventStack_production(),lib$3.exports=_e.default,lib$3.exports.instance=_e.instance,lib$3.exports}var hasRequiredEventStack;function requireEventStack(){if(hasRequiredEventStack)return eventStack$1;hasRequiredEventStack=1,eventStack$1.__esModule=!0,eventStack$1.default=void 0;var _e=requireLib$1(),et=_e.instance;return eventStack$1.default=et,eventStack$1}var factories={},noop_1,hasRequiredNoop;function requireNoop(){if(hasRequiredNoop)return noop_1;hasRequiredNoop=1;function _e(){}return noop_1=_e,noop_1}var _createSet,hasRequired_createSet;function require_createSet(){if(hasRequired_createSet)return _createSet;hasRequired_createSet=1;var _e=_Set,et=requireNoop(),tt=require_setToArray(),nt=1/0,at=_e&&1/tt(new _e([,-0]))[1]==nt?function(it){return new _e(it)}:et;return _createSet=at,_createSet}var _baseUniq,hasRequired_baseUniq;function require_baseUniq(){if(hasRequired_baseUniq)return _baseUniq;hasRequired_baseUniq=1;var _e=require_SetCache(),et=require_arrayIncludes(),tt=require_arrayIncludesWith(),nt=require_cacheHas(),at=require_createSet(),it=require_setToArray(),ot=200;function st(ct,dt,ht){var pt=-1,mt=et,vt=ct.length,bt=!0,_t=[],wt=_t;if(ht)bt=!1,mt=tt;else if(vt>=ot){var Et=dt?null:at(ct);if(Et)return it(Et);bt=!1,mt=nt,wt=new _e}else wt=dt?[]:_t;e:for(;++pt<vt;){var St=ct[pt],Tt=dt?dt(St):St;if(St=ht||St!==0?St:0,bt&&Tt===Tt){for(var Ct=wt.length;Ct--;)if(wt[Ct]===Tt)continue e;dt&&wt.push(Tt),_t.push(St)}else mt(wt,Tt,ht)||(wt!==_t&&wt.push(Tt),_t.push(St))}return _t}return _baseUniq=st,_baseUniq}var uniq_1,hasRequiredUniq;function requireUniq(){if(hasRequiredUniq)return uniq_1;hasRequiredUniq=1;var _e=require_baseUniq();function et(tt){return tt&&tt.length?_e(tt):[]}return uniq_1=et,uniq_1}var isNumber_1,hasRequiredIsNumber;function requireIsNumber(){if(hasRequiredIsNumber)return isNumber_1;hasRequiredIsNumber=1;var _e=require_baseGetTag(),et=isObjectLike_1,tt="[object Number]";function nt(at){return typeof at=="number"||et(at)&&_e(at)==tt}return isNumber_1=nt,isNumber_1}var isString_1,hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var _e=require_baseGetTag(),et=isArray_1,tt=isObjectLike_1,nt="[object String]";function at(it){return typeof it=="string"||!et(it)&&tt(it)&&_e(it)==nt}return isString_1=at,isString_1}var isBoolean_1,hasRequiredIsBoolean;function requireIsBoolean(){if(hasRequiredIsBoolean)return isBoolean_1;hasRequiredIsBoolean=1;var _e=require_baseGetTag(),et=isObjectLike_1,tt="[object Boolean]";function nt(at){return at===!0||at===!1||et(at)&&_e(at)==tt}return isBoolean_1=nt,isBoolean_1}var hasRequiredFactories;function requireFactories(){if(hasRequiredFactories)return factories;hasRequiredFactories=1;var _e=requireInteropRequireWildcard(),et=interopRequireDefaultExports;factories.__esModule=!0,factories.createShorthand=vt,factories.createShorthandFactory=bt,factories.createHTMLParagraph=factories.createHTMLLabel=factories.createHTMLInput=factories.createHTMLImage=factories.createHTMLIframe=factories.createHTMLDivision=void 0;var tt=et(require_extends()),nt=et(requireUniq()),at=et(isArray_1),it=et(requireIsPlainObject()),ot=et(requireIsFunction()),st=et(requireIsNumber()),ct=et(requireIsString()),dt=et(requireIsBoolean()),ht=et(requireIsNil()),pt=et(require$$0$6),mt=_e(reactExports);function vt(Nt,Dt,kt,Ft){if(Ft===void 0&&(Ft={}),typeof Nt!="function"&&typeof Nt!="string")throw new Error("createShorthand() Component must be a string or function.");if((0,ht.default)(kt)||(0,dt.default)(kt))return null;var jt=(0,ct.default)(kt),Gt=(0,st.default)(kt),Rt=(0,ot.default)(kt),yt=mt.isValidElement(kt),$t=(0,it.default)(kt),xt=jt||Gt||(0,at.default)(kt);if(!Rt&&!yt&&!$t&&!xt)return null;var At=Ft,Mt=At.defaultProps,It=Mt===void 0?{}:Mt,Lt=yt&&kt.props||$t&&kt||xt&&Dt(kt),Ot=Ft,gt=Ot.overrideProps,Pt=gt===void 0?{}:gt;Pt=(0,ot.default)(Pt)?Pt((0,tt.default)({},It,Lt)):Pt;var Bt=(0,tt.default)({},It,Lt,Pt);if(It.className||Pt.className||Lt.className){var Ut=(0,pt.default)(It.className,Pt.className,Lt.className);Bt.className=(0,nt.default)(Ut.split(" ")).join(" ")}if((It.style||Pt.style||Lt.style)&&(Bt.style=(0,tt.default)({},It.style,Lt.style,Pt.style)),(0,ht.default)(Bt.key)){var Ht=Bt.childKey,qt=Ft,Vt=qt.autoGenerateKey,zt=Vt===void 0?!0:Vt;(0,ht.default)(Ht)?zt&&(jt||Gt)&&(Bt.key=kt):(Bt.key=typeof Ht=="function"?Ht(Bt):Ht,delete Bt.childKey)}if(yt)return mt.cloneElement(kt,Bt);if(typeof Bt.children=="function")return Bt.children(Nt,(0,tt.default)({},Bt,{children:void 0}));if(xt||$t)return mt.createElement(Nt,Bt);if(Rt)return kt(Nt,Bt,Bt.children)}function bt(Nt,Dt){if(typeof Nt!="function"&&typeof Nt!="string")throw new Error("createShorthandFactory() Component must be a string or function.");return function(kt,Ft){return vt(Nt,Dt,kt,Ft)}}var _t=bt("div",function(Nt){return{children:Nt}});factories.createHTMLDivision=_t;var wt=bt("iframe",function(Nt){return{src:Nt}});factories.createHTMLIframe=wt;var Et=bt("img",function(Nt){return{src:Nt}});factories.createHTMLImage=Et;var St=bt("input",function(Nt){return{type:Nt}});factories.createHTMLInput=St;var Tt=bt("label",function(Nt){return{children:Nt}});factories.createHTMLLabel=Tt;var Ct=bt("p",function(Nt){return{children:Nt}});return factories.createHTMLParagraph=Ct,factories}var getUnhandledProps$2={},hasRequiredGetUnhandledProps;function requireGetUnhandledProps(){if(hasRequiredGetUnhandledProps)return getUnhandledProps$2;hasRequiredGetUnhandledProps=1,getUnhandledProps$2.__esModule=!0,getUnhandledProps$2.default=void 0;var _e=function(nt,at){var it=nt.handledProps,ot=it===void 0?[]:it;return Object.keys(at).reduce(function(st,ct){return ct==="childKey"||ot.indexOf(ct)===-1&&(st[ct]=at[ct]),st},{})},et=_e;return getUnhandledProps$2.default=et,getUnhandledProps$2}var getElementType$1={},hasRequiredGetElementType;function requireGetElementType(){if(hasRequiredGetElementType)return getElementType$1;hasRequiredGetElementType=1,getElementType$1.__esModule=!0,getElementType$1.default=void 0;function _e(tt,nt,at){var it=tt.defaultProps,ot=it===void 0?{}:it;if(nt.as&&nt.as!==ot.as)return nt.as;if(at){var st=at();if(st)return st}return nt.href?"a":ot.as||"div"}var et=_e;return getElementType$1.default=et,getElementType$1}var htmlPropsUtils={},_baseValues,hasRequired_baseValues;function require_baseValues(){if(hasRequired_baseValues)return _baseValues;hasRequired_baseValues=1;var _e=_arrayMap;function et(tt,nt){return _e(nt,function(at){return tt[at]})}return _baseValues=et,_baseValues}var values_1,hasRequiredValues;function requireValues(){if(hasRequiredValues)return values_1;hasRequiredValues=1;var _e=require_baseValues(),et=requireKeys();function tt(nt){return nt==null?[]:_e(nt,et(nt))}return values_1=tt,values_1}var includes_1,hasRequiredIncludes;function requireIncludes(){if(hasRequiredIncludes)return includes_1;hasRequiredIncludes=1;var _e=require_baseIndexOf(),et=requireIsArrayLike(),tt=requireIsString(),nt=toInteger_1,at=requireValues(),it=Math.max;function ot(st,ct,dt,ht){st=et(st)?st:at(st),dt=dt&&!ht?nt(dt):0;var pt=st.length;return dt<0&&(dt=it(pt+dt,0)),tt(st)?dt<=pt&&st.indexOf(ct,dt)>-1:!!pt&&_e(st,ct,dt)>-1}return includes_1=ot,includes_1}var hasRequiredHtmlPropsUtils;function requireHtmlPropsUtils(){if(hasRequiredHtmlPropsUtils)return htmlPropsUtils;hasRequiredHtmlPropsUtils=1;var _e=interopRequireDefaultExports;htmlPropsUtils.__esModule=!0,htmlPropsUtils.partitionHTMLProps=htmlPropsUtils.htmlImageProps=htmlPropsUtils.htmlInputProps=htmlPropsUtils.htmlInputEvents=htmlPropsUtils.htmlInputAttrs=void 0;var et=_e(requireIncludes()),tt=_e(requireForEach()),nt=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","enterKeyHint","form","id","inputMode","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"];htmlPropsUtils.htmlInputAttrs=nt;var at=["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"];htmlPropsUtils.htmlInputEvents=at;var it=[].concat(nt,at);htmlPropsUtils.htmlInputProps=it;var ot=["alt","height","src","srcSet","width","loading"];htmlPropsUtils.htmlImageProps=ot;var st=function(dt,ht){ht===void 0&&(ht={});var pt=ht,mt=pt.htmlProps,vt=mt===void 0?it:mt,bt=pt.includeAria,_t=bt===void 0?!0:bt,wt={},Et={};return(0,tt.default)(dt,function(St,Tt){var Ct=_t&&(/^aria-.*$/.test(Tt)||Tt==="role"),Nt=(0,et.default)(vt,Tt)||Ct?wt:Et;Nt[Tt]=St}),[wt,Et]};return htmlPropsUtils.partitionHTMLProps=st,htmlPropsUtils}var isBrowser$2={},hasRequiredIsBrowser;function requireIsBrowser(){if(hasRequiredIsBrowser)return isBrowser$2;hasRequiredIsBrowser=1;var _e=interopRequireDefaultExports;isBrowser$2.__esModule=!0,isBrowser$2.default=void 0;var et=_e(requireIsNil()),tt=typeof document=="object"&&document!==null,nt=typeof window=="object"&&window!==null&&window.self===window,at=function ot(){return(0,et.default)(ot.override)?tt&&nt:ot.override},it=at;return isBrowser$2.default=it,isBrowser$2}var doesNodeContainClick$2={},_baseInRange,hasRequired_baseInRange;function require_baseInRange(){if(hasRequired_baseInRange)return _baseInRange;hasRequired_baseInRange=1;var _e=Math.max,et=Math.min;function tt(nt,at,it){return nt>=et(at,it)&&nt<_e(at,it)}return _baseInRange=tt,_baseInRange}var inRange_1,hasRequiredInRange;function requireInRange(){if(hasRequiredInRange)return inRange_1;hasRequiredInRange=1;var _e=require_baseInRange(),et=toFinite_1,tt=toNumber_1;function nt(at,it,ot){return it=et(it),ot===void 0?(ot=it,it=0):ot=et(ot),at=tt(at),_e(at,it,ot)}return inRange_1=nt,inRange_1}var head_1,hasRequiredHead;function requireHead(){if(hasRequiredHead)return head_1;hasRequiredHead=1;function _e(et){return et&&et.length?et[0]:void 0}return head_1=_e,head_1}var first$1,hasRequiredFirst;function requireFirst(){return hasRequiredFirst||(hasRequiredFirst=1,first$1=requireHead()),first$1}var hasRequiredDoesNodeContainClick;function requireDoesNodeContainClick(){if(hasRequiredDoesNodeContainClick)return doesNodeContainClick$2;hasRequiredDoesNodeContainClick=1;var _e=interopRequireDefaultExports;doesNodeContainClick$2.__esModule=!0,doesNodeContainClick$2.default=void 0;var et=_e(requireInRange()),tt=_e(requireFirst()),nt=_e(requireInvoke()),at=_e(requireIsNil()),it=_e(requireSome()),ot=function(dt,ht){if((0,it.default)([ht,dt],at.default))return!1;if(ht.target&&((0,nt.default)(ht.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return(0,nt.default)(ht.target,"removeAttribute","data-suir-click-target"),dt.contains(ht.target);var pt=ht.clientX,mt=ht.clientY;if((0,it.default)([pt,mt],at.default))return!1;var vt=dt.getClientRects();if(!dt.offsetWidth||!dt.offsetHeight||!vt||!vt.length)return!1;var bt=(0,tt.default)(vt),_t=bt.top,wt=bt.bottom,Et=bt.left,St=bt.right;return(0,it.default)([_t,wt,Et,St],at.default)?!1:(0,et.default)(mt,_t,wt+.001)&&(0,et.default)(pt,Et,St+.001)},st=ot;return doesNodeContainClick$2.default=st,doesNodeContainClick$2}var createPaginationItems$3={},createPaginationItems$2={},itemFactories={},hasRequiredItemFactories;function requireItemFactories(){if(hasRequiredItemFactories)return itemFactories;hasRequiredItemFactories=1,itemFactories.__esModule=!0,itemFactories.createLastItem=itemFactories.createNextItem=itemFactories.createPageFactory=itemFactories.createPrevItem=itemFactories.createFirstPage=itemFactories.createEllipsisItem=void 0;var _e=function(st){return{active:!1,type:"ellipsisItem",value:st}};itemFactories.createEllipsisItem=_e;var et=function(){return{active:!1,type:"firstItem",value:1}};itemFactories.createFirstPage=et;var tt=function(st){return{active:!1,type:"prevItem",value:Math.max(1,st-1)}};itemFactories.createPrevItem=tt;var nt=function(st){return function(ct){return{active:st===ct,type:"pageItem",value:ct}}};itemFactories.createPageFactory=nt;var at=function(st,ct){return{active:!1,type:"nextItem",value:Math.min(st+1,ct)}};itemFactories.createNextItem=at;var it=function(st){return{active:!1,type:"lastItem",value:st}};return itemFactories.createLastItem=it,itemFactories}var rangeFactories={},_baseRange,hasRequired_baseRange;function require_baseRange(){if(hasRequired_baseRange)return _baseRange;hasRequired_baseRange=1;var _e=Math.ceil,et=Math.max;function tt(nt,at,it,ot){for(var st=-1,ct=et(_e((at-nt)/(it||1)),0),dt=Array(ct);ct--;)dt[ot?ct:++st]=nt,nt+=it;return dt}return _baseRange=tt,_baseRange}var _createRange,hasRequired_createRange;function require_createRange(){if(hasRequired_createRange)return _createRange;hasRequired_createRange=1;var _e=require_baseRange(),et=require_isIterateeCall(),tt=toFinite_1;function nt(at){return function(it,ot,st){return st&&typeof st!="number"&&et(it,ot,st)&&(ot=st=void 0),it=tt(it),ot===void 0?(ot=it,it=0):ot=tt(ot),st=st===void 0?it<ot?1:-1:tt(st),_e(it,ot,st,at)}}return _createRange=nt,_createRange}var range_1,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range_1;hasRequiredRange=1;var _e=require_createRange(),et=_e();return range_1=et,range_1}var suffixFactories={},hasRequiredSuffixFactories;function requireSuffixFactories(){if(hasRequiredSuffixFactories)return suffixFactories;hasRequiredSuffixFactories=1,suffixFactories.__esModule=!0,suffixFactories.createInnerSuffix=suffixFactories.createInnerPrefix=void 0;var _e=requireItemFactories(),et=function(at,it,ot){var st=it-1,ct=st!==at+1,dt=ct?_e.createEllipsisItem:ot;return dt(st)};suffixFactories.createInnerPrefix=et;var tt=function(at,it,ot){var st=at+1,ct=st!==it-1,dt=ct?_e.createEllipsisItem:ot;return dt(st)};return suffixFactories.createInnerSuffix=tt,suffixFactories}var hasRequiredRangeFactories;function requireRangeFactories(){if(hasRequiredRangeFactories)return rangeFactories;hasRequiredRangeFactories=1;var _e=interopRequireDefaultExports;rangeFactories.__esModule=!0,rangeFactories.createComplexRange=rangeFactories.createSimpleRange=void 0;var et=_e(requireRange()),tt=_e(requireMap()),nt=requireSuffixFactories(),at=function(st,ct,dt){return(0,tt.default)((0,et.default)(st,ct+1),dt)};rangeFactories.createSimpleRange=at;var it=function(st,ct){var dt=st.activePage,ht=st.boundaryRange,pt=st.hideEllipsis,mt=st.siblingRange,vt=st.totalPages,bt=pt?0:1,_t=ht,wt=at(1,_t,ct),Et=vt+1-ht,St=at(Et,vt,ct),Tt=Math.min(Math.max(dt-mt,_t+bt+1),Et-bt-2*mt-1),Ct=Tt+2*mt,Nt=at(Tt,Ct,ct);return[].concat(wt,[!pt&&(0,nt.createInnerPrefix)(_t,Tt,ct)],Nt,[!pt&&(0,nt.createInnerSuffix)(Ct,Et,ct)],St).filter(Boolean)};return rangeFactories.createComplexRange=it,rangeFactories}var paginationUtils={},hasRequiredPaginationUtils;function requirePaginationUtils(){if(hasRequiredPaginationUtils)return paginationUtils;hasRequiredPaginationUtils=1,paginationUtils.__esModule=!0,paginationUtils.typifyOptions=paginationUtils.isSimplePagination=void 0;var _e=function(nt){var at=nt.boundaryRange,it=nt.hideEllipsis,ot=nt.siblingRange,st=nt.totalPages,ct=2*at,dt=it?0:2,ht=2*ot;return 1+dt+ht+ct>=st};paginationUtils.isSimplePagination=_e;var et=function(nt){var at=nt.activePage,it=nt.boundaryRange,ot=nt.hideEllipsis,st=nt.siblingRange,ct=nt.totalPages;return{activePage:+at,boundaryRange:+it,hideEllipsis:!!ot,siblingRange:+st,totalPages:+ct}};return paginationUtils.typifyOptions=et,paginationUtils}var hasRequiredCreatePaginationItems$1;function requireCreatePaginationItems$1(){if(hasRequiredCreatePaginationItems$1)return createPaginationItems$2;hasRequiredCreatePaginationItems$1=1,createPaginationItems$2.__esModule=!0,createPaginationItems$2.default=void 0;var _e=requireItemFactories(),et=requireRangeFactories(),tt=requirePaginationUtils(),nt=function(ot){var st=(0,tt.typifyOptions)(ot),ct=st.activePage,dt=st.totalPages,ht=(0,_e.createPageFactory)(ct),pt=(0,tt.isSimplePagination)(st)?(0,et.createSimpleRange)(1,dt,ht):(0,et.createComplexRange)(st,ht);return[(0,_e.createFirstPage)(),(0,_e.createPrevItem)(ct)].concat(pt,[(0,_e.createNextItem)(ct,dt),(0,_e.createLastItem)(dt)])},at=nt;return createPaginationItems$2.default=at,createPaginationItems$2}var hasRequiredCreatePaginationItems;function requireCreatePaginationItems(){if(hasRequiredCreatePaginationItems)return createPaginationItems$3;hasRequiredCreatePaginationItems=1;var _e=interopRequireDefaultExports;createPaginationItems$3.__esModule=!0;var et=_e(requireCreatePaginationItems$1());return createPaginationItems$3.default=et.default,createPaginationItems$3}var SUI={},hasRequiredSUI;function requireSUI(){if(hasRequiredSUI)return SUI;hasRequiredSUI=1;var _e=interopRequireDefaultExports;SUI.__esModule=!0,SUI.ALL_ICONS_IN_ALL_CONTEXTS=SUI.COMPONENT_CONTEXT_SPECIFIC_ICONS=SUI.ICONS_AND_ALIASES=SUI.ICON_ALIASES=SUI.ICONS=SUI.BRANDS=SUI.WRITING=SUI.VEHICLES=SUI.USERS_PEOPLE=SUI.STATUS=SUI.SPORTS=SUI.SPINNERS=SUI.SHAPES=SUI.PAYMENTS_SHOPPING=SUI.OBJECTS=SUI.MEDICAL=SUI.MAPS=SUI.LOGISTICS=SUI.INTERFACES=SUI.IMAGES=SUI.HEALTH=SUI.HANDS_GESTURES=SUI.GENDERS=SUI.FILES=SUI.EDITORS=SUI.DESIGN=SUI.DATE_TIME=SUI.CURRENCY=SUI.COMPUTERS=SUI.COMMUNICATION=SUI.CODE=SUI.CHESS=SUI.BUSINESS=SUI.AUDIO_VIDEO=SUI.ARROWS=SUI.ACCESSIBILITY=SUI.TRANSITIONS=SUI.STATIC_TRANSITIONS=SUI.DIRECTIONAL_TRANSITIONS=SUI.WIDTHS=SUI.VISIBILITY=SUI.VERTICAL_ALIGNMENTS=SUI.TEXT_ALIGNMENTS=SUI.SIZES=SUI.FLOATS=SUI.COLORS=void 0;var et=_e(requireUniq()),tt=_e(requireValues()),nt=_e(requireKeys()),at=requireNumberToWord(),it=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","black"];SUI.COLORS=it;var ot=["left","right"];SUI.FLOATS=ot;var st=["mini","tiny","small","medium","large","big","huge","massive"];SUI.SIZES=st;var ct=["left","center","right","justified"];SUI.TEXT_ALIGNMENTS=ct;var dt=["bottom","middle","top"];SUI.VERTICAL_ALIGNMENTS=dt;var ht=["mobile","tablet","computer","large screen","widescreen"];SUI.VISIBILITY=ht;var pt=[].concat((0,nt.default)(at.numberToWordMap),(0,nt.default)(at.numberToWordMap).map(Number),(0,tt.default)(at.numberToWordMap));SUI.WIDTHS=pt;var mt=["browse","browse right","drop","fade","fade up","fade down","fade left","fade right","fly up","fly down","fly left","fly right","horizontal flip","vertical flip","scale","slide up","slide down","slide left","slide right","swing up","swing down","swing left","swing right","zoom"];SUI.DIRECTIONAL_TRANSITIONS=mt;var vt=["jiggle","flash","shake","pulse","tada","bounce","glow"];SUI.STATIC_TRANSITIONS=vt;var bt=[].concat(mt,vt);SUI.TRANSITIONS=bt;var _t=["american sign language interpreting","assistive listening systems","audio description","blind","braille","closed captioning","closed captioning outline","deaf","low vision","phone volume","question circle","question circle outline","sign language","tty","universal access","wheelchair"];SUI.ACCESSIBILITY=_t;var wt=["angle double down","angle double left","angle double right","angle double up","angle down","angle left","angle right","angle up","arrow alternate circle down","arrow alternate circle down outline","arrow alternate circle left","arrow alternate circle left outline","arrow alternate circle right","arrow alternate circle right outline","arrow alternate circle up","arrow alternate circle up outline","arrow circle down","arrow circle left","arrow circle right","arrow circle up","arrow down","arrow left","arrow right","arrow up","arrows alternate","arrows alternate horizontal","arrows alternate vertical","caret down","caret left","caret right","caret square down","caret square down outline","caret square left","caret square left outline","caret square right","caret square right outline","caret square up","caret square up outline","caret up","cart arrow down","chart line","chevron circle down","chevron circle left","chevron circle right","chevron circle up","chevron down","chevron left","chevron right","chevron up","cloud download","cloud upload","download","exchange","expand arrows alternate","external alternate","external square alternate","hand point down","hand point down outline","hand point left","hand point left outline","hand point right","hand point right outline","hand point up","hand point up outline","hand pointer","hand pointer outline","history","level down alternate","level up alternate","location arrow","long arrow alternate down","long arrow alternate left","long arrow alternate right","long arrow alternate up","mouse pointer","play","random","recycle","redo","redo alternate","reply","reply all","retweet","share","share square","share square outline","sign-in","sign-out","sign-in alternate","sign-out alternate","sort","sort alphabet down","sort alphabet up","sort amount down","sort amount up","sort down","sort numeric down","sort numeric up","sort up","sync","sync alternate","text height","text width","undo","undo alternate","upload","zoom-in","zoom-out"];SUI.ARROWS=wt;var Et=["audio description","backward","circle","circle outline","closed captioning","closed captioning outline","compress","eject","expand","expand arrows alternate","fast backward","fast forward","file audio","file audio outline","file video","file video outline","film","forward","headphones","microphone","microphone slash","music","pause","pause circle","pause circle outline","phone volume","play","play circle","play circle outline","podcast","random","redo","redo alternate","rss","rss square","step backward","step forward","stop","stop circle","stop circle outline","sync","sync alternate","undo","undo alternate","video","volume down","volume off","volume up"];SUI.AUDIO_VIDEO=Et;var St=["address book","address book outline","address card","address card outline","archive","balance scale","birthday cake","book","briefcase","building","building outline","bullhorn","bullseye","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","certificate","chart area","chart bar","chart bar outline","chart line","chart pie","clipboard","clipboard outline","coffee","columns","compass","compass outline","copy","copy outline","copyright","copyright outline","cut","edit","edit outline","envelope","envelope outline","envelope open","envelope open outline","envelope square","eraser","fax","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","globe","industry","paperclip","paste","pen square","pencil alternate","percent","phone","phone square","phone volume","registered","registered outline","save","save outline","sitemap","sticky note","sticky note outline","suitcase","table","tag","tags","tasks","thumbtack","trademark"];SUI.BUSINESS=St;var Tt=["chess","chess bishop","chess board","chess king","chess knight","chess pawn","chess queen","chess rook","square full"];SUI.CHESS=Tt;var Ct=["archive","barcode","bath","bug","code","code branch","coffee","file","file outline","file alternate","file alternate outline","file code","file code outline","filter","fire extinguisher","folder","folder outline","folder open","folder open outline","keyboard","keyboard outline","microchip","qrcode","shield alternate","sitemap","terminal","user secret","window close","window close outline","window maximize","window maximize outline","window minimize","window minimize outline","window restore","window restore outline"];SUI.CODE=Ct;var Nt=["address book","address book outline","address card","address card outline","american sign language interpreting","assistive listening systems","at","bell","bell outline","bell slash","bell slash outline","bullhorn","comment","comment outline","comment alternate","comment alternate outline","comments","comments outline","envelope","envelope outline","envelope open","envelope open outline","envelope square","fax","inbox","language","microphone","microphone slash","mobile","mobile alternate","paper plane","paper plane outline","phone","phone square","phone volume","rss","rss square","tty","wifi"];SUI.COMMUNICATION=Nt;var Dt=["desktop","download","hdd","hdd outline","headphones","keyboard","keyboard outline","laptop","microchip","mobile","mobile alternate","plug","power off","print","save","save outline","server","tablet","tablet alternate","tv","upload"];SUI.COMPUTERS=Dt;var kt=["dollar sign","euro sign","lira sign","money bill alternate","money bill alternate outline","pound sign","ruble sign","rupee sign","shekel sign","won sign","yen sign"];SUI.CURRENCY=kt;var Ft=["bell","bell outline","bell slash","bell slash outline","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","clock","clock outline","hourglass","hourglass outline","hourglass end","hourglass half","hourglass start","stopwatch"];SUI.DATE_TIME=Ft;var jt=["adjust","clone","clone outline","copy","copy outline","crop","crosshairs","cut","edit","edit outline","eraser","eye","eye dropper","eye slash","eye slash outline","object group","object group outline","object ungroup","object ungroup outline","paint brush","paste","pencil alternate","save","save outline","tint"];SUI.DESIGN=jt;var Gt=["align center","align justify","align left","align right","bold","clipboard","clipboard outline","clone","clone outline","columns","copy","copy outline","cut","edit","edit outline","eraser","file","file outline","file alternate","file alternate outline","font","heading","i cursor","indent","italic","linkify","list","list alternate","list alternate outline","list ol","list ul","outdent","paper plane","paper plane outline","paperclip","paragraph","paste","pencil alternate","print","quote left","quote right","redo","redo alternate","reply","reply all","share","strikethrough","subscript","superscript","sync","sync alternate","table","tasks","text height","text width","th","th large","th list","trash","trash alternate","trash alternate outline","underline","undo","undo alternate","unlink"];SUI.EDITORS=Gt;var Rt=["archive","clone","clone outline","copy","copy outline","cut","file","file outline","file alternate","file alternate outline","file archive","file archive outline","file audio","file audio outline","file code","file code outline","file excel","file excel outline","file image","file image outline","file pdf","file pdf outline","file powerpoint","file powerpoint outline","file video","file video outline","file word","file word outline","folder","folder outline","folder open","folder open outline","paste","save","save outline","sticky note","sticky note outline"];SUI.FILES=Rt;var yt=["genderless","mars","mars double","mars stroke","mars stroke horizontal","mars stroke vertical","mercury","neuter","transgender","transgender alternate","venus","venus double","venus mars"];SUI.GENDERS=yt;var $t=["hand lizard","hand lizard outline","hand paper","hand paper outline","hand peace","hand peace outline","hand point down","hand point down outline","hand point left","hand point left outline","hand point right","hand point right outline","hand point up","hand point up outline","hand pointer","hand pointer outline","hand rock","hand rock outline","hand scissors","hand scissors outline","hand spock","hand spock outline","handshake","handshake outline","thumbs down","thumbs down outline","thumbs up","thumbs up outline"];SUI.HANDS_GESTURES=$t;var xt=["ambulance","h square","heart","heart outline","heartbeat","hospital","hospital outline","medkit","plus square","plus square outline","stethoscope","user md","wheelchair"];SUI.HEALTH=xt;var At=["adjust","bolt","camera","camera retro","clone","clone outline","compress","expand","eye","eye dropper","eye slash","eye slash outline","file image","file image outline","film","id badge","id badge outline","id card","id card outline","image","image outline","images","images outline","sliders horizontal","tint"];SUI.IMAGES=At;var Mt=["ban","barcode","bars","beer","bell","bell outline","bell slash","bell slash outline","bug","bullhorn","bullseye","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","certificate","check","check circle","check circle outline","check square","check square outline","circle","circle outline","clipboard","clipboard outline","clone","clone outline","cloud","cloud download","cloud upload","coffee","cog","cogs","copy","copy outline","cut","database","dot circle","dot circle outline","download","edit","edit outline","ellipsis horizontal","ellipsis vertical","envelope","envelope outline","envelope open","envelope open outline","eraser","exclamation","exclamation circle","exclamation triangle","external alternate","external square alternate","eye","eye slash","eye slash outline","file","file outline","file alternate","file alternate outline","filter","flag","flag outline","flag checkered","folder","folder outline","folder open","folder open outline","frown","frown outline","hashtag","heart","heart outline","history","home","i cursor","info","info circle","language","magic","meh","meh outline","microphone","microphone slash","minus","minus circle","minus square","minus square outline","paste","pencil alternate","plus","plus circle","plus square","plus square outline","qrcode","question","question circle","question circle outline","quote left","quote right","redo","redo alternate","reply","reply all","rss","rss square","save","save outline","search","search minus","search plus","share","share alternate","share alternate square","share square","share square outline","shield alternate","sign-in","sign-out","signal","sitemap","sliders horizontal","smile","smile outline","sort","sort alphabet down","sort alphabet up","sort amount down","sort amount up","sort down","sort numeric down","sort numeric up","sort up","star","star outline","star half","star half outline","sync","sync alternate","thumbs down","thumbs down outline","thumbs up","thumbs up outline","times","times circle","times circle outline","toggle off","toggle on","trash","trash alternate","trash alternate outline","trophy","undo","undo alternate","upload","user","user outline","user circle","user circle outline","wifi"];SUI.INTERFACES=Mt;var It=["box","boxes","clipboard check","clipboard list","dolly","dolly flatbed","pallet","shipping fast","truck","warehouse"];SUI.LOGISTICS=It;var Lt=["ambulance","anchor","balance scale","bath","bed","beer","bell","bell outline","bell slash","bell slash outline","bicycle","binoculars","birthday cake","blind","bomb","book","bookmark","bookmark outline","briefcase","building","building outline","car","coffee","crosshairs","dollar sign","eye","eye slash","eye slash outline","fighter jet","fire","fire extinguisher","flag","flag outline","flag checkered","flask","gamepad","gavel","gift","glass martini","globe","graduation cap","h square","heart","heart outline","heartbeat","home","hospital","hospital outline","image","image outline","images","images outline","industry","info","info circle","key","leaf","lemon","lemon outline","life ring","life ring outline","lightbulb","lightbulb outline","location arrow","low vision","magnet","male","map","map outline","map marker","map marker alternate","map pin","map signs","medkit","money bill alternate","money bill alternate outline","motorcycle","music","newspaper","newspaper outline","paw","phone","phone square","phone volume","plane","plug","plus","plus square","plus square outline","print","recycle","road","rocket","search","search minus","search plus","ship","shopping bag","shopping basket","shopping cart","shower","street view","subway","suitcase","tag","tags","taxi","thumbtack","ticket alternate","tint","train","tree","trophy","truck","tty","umbrella","university","utensil spoon","utensils","wheelchair","wifi","wrench"];SUI.MAPS=Lt;var Ot=["ambulance","band aid","dna","first aid","heart","heart outline","heartbeat","hospital","hospital outline","hospital symbol","pills","plus","stethoscope","syringe","thermometer","user md","weight"];SUI.MEDICAL=Ot;var gt=["ambulance","anchor","archive","balance scale","bath","bed","beer","bell","bell outline","bicycle","binoculars","birthday cake","bomb","book","bookmark","bookmark outline","briefcase","bug","building","building outline","bullhorn","bullseye","bus","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","camera","camera retro","car","clipboard","clipboard outline","cloud","coffee","cog","cogs","compass","compass outline","copy","copy outline","cube","cubes","cut","envelope","envelope outline","envelope open","envelope open outline","eraser","eye","eye dropper","fax","fighter jet","file","file outline","file alternate","file alternate outline","film","fire","fire extinguisher","flag","flag outline","flag checkered","flask","futbol","futbol outline","gamepad","gavel","gem","gem outline","gift","glass martini","globe","graduation cap","hdd","hdd outline","headphones","heart","heart outline","home","hospital","hospital outline","hourglass","hourglass outline","image","image outline","images","images outline","industry","key","keyboard","keyboard outline","laptop","leaf","lemon","lemon outline","life ring","life ring outline","lightbulb","lightbulb outline","lock","lock open","magic","magnet","map","map outline","map marker","map marker alternate","map pin","map signs","medkit","microchip","microphone","mobile","mobile alternate","money bill alternate","money bill alternate outline","moon","moon outline","motorcycle","newspaper","newspaper outline","paint brush","paper plane","paper plane outline","paperclip","paste","paw","pencil alternate","phone","plane","plug","print","puzzle piece","road","rocket","save","save outline","search","shield alternate","shopping bag","shopping basket","shopping cart","shower","snowflake","snowflake outline","space shuttle","star","star outline","sticky note","sticky note outline","stopwatch","subway","suitcase","sun","sun outline","tablet","tablet alternate","tachometer alternate","tag","tags","taxi","thumbtack","ticket alternate","train","trash","trash alternate","trash alternate outline","tree","trophy","truck","tv","umbrella","university","unlock","unlock alternate","utensil spoon","utensils","wheelchair","wrench"];SUI.OBJECTS=gt;var Pt=["bell","bell outline","bookmark","bookmark outline","bullhorn","camera","camera retro","cart arrow down","cart plus","certificate","credit card","credit card outline","gem","gem outline","gift","handshake","handshake outline","heart","heart outline","key","shopping bag","shopping basket","shopping cart","star","star outline","tag","tags","thumbs down","thumbs down outline","thumbs up","thumbs up outline","trophy"];SUI.PAYMENTS_SHOPPING=Pt;var Bt=["bookmark","bookmark outline","calendar","calendar outline","certificate","circle","circle outline","cloud","comment","comment outline","file","file outline","folder","folder outline","heart","heart outline","map marker","play","square","square outline","star","star outline"];SUI.SHAPES=Bt;var Ut=["asterisk","certificate","circle notch","cog","compass","compass outline","crosshairs","life ring","life ring outline","snowflake","snowflake outline","spinner","sun","sun outline","sync"];SUI.SPINNERS=Ut;var Ht=["baseball ball","basketball ball","bowling ball","football ball","futbol","futbol outline","golf ball","hockey puck","quidditch","table tennis","volleyball ball"];SUI.SPORTS=Ht;var qt=["ban","battery empty","battery full","battery half","battery quarter","battery three quarters","bell","bell outline","bell slash","bell slash outline","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","cart arrow down","cart plus","exclamation","exclamation circle","exclamation triangle","eye","eye slash","eye slash outline","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","info","info circle","lock","lock open","minus","minus circle","minus square","minus square outline","plus","plus circle","plus square","plus square outline","question","question circle","question circle outline","shield alternate","shopping cart","sign in alternate","sign out alternate","thermometer empty","thermometer full","thermometer half","thermometer quarter","thermometer three quarters","thumbs down","thumbs down outline","thumbs up","thumbs up outline","toggle off","toggle on","unlock","unlock alternate"];SUI.STATUS=qt;var Vt=["address book","address book outline","address card","address card outline","bed","blind","child","female","frown","frown outline","id badge","id badge outline","id card","id card outline","male","meh","meh outline","power off","smile","smile outline","street view","user","user outline","user circle","user circle outline","user md","user plus","user secret","user times","users","wheelchair"];SUI.USERS_PEOPLE=Vt;var zt=["ambulance","bicycle","bus","car","fighter jet","motorcycle","paper plane","paper plane outline","plane","rocket","ship","shopping cart","space shuttle","subway","taxi","train","truck","wheelchair"];SUI.VEHICLES=zt;var Wt=["archive","book","bookmark","bookmark outline","edit","edit outline","envelope","envelope outline","envelope open","envelope open outline","eraser","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","keyboard","keyboard outline","newspaper","newspaper outline","paper plane","paper plane outline","paperclip","paragraph","pen square","pencil alternate","quote left","quote right","sticky note","sticky note outline","thumbtack"];SUI.WRITING=Wt;var Xt=["500px","accessible","accusoft","adn","adversal","affiliatetheme","algolia","amazon","amazon pay","amilia","android","angellist","angrycreative","angular","app store","app store ios","apper","apple","apple pay","asymmetrik","audible","autoprefixer","avianex","aviato","aws","bandcamp","behance","behance square","bimobject","bitbucket","bitcoin","bity","black tie","blackberry","blogger","blogger b","bluetooth","bluetooth b","btc","buromobelexperte","buysellads","cc amazon pay","cc amex","cc apple pay","cc diners club","cc discover","cc jcb","cc mastercard","cc paypal","cc stripe","cc visa","centercode","chrome","cloudscale","cloudsmith","cloudversify","codepen","codiepie","connectdevelop","contao","cpanel","creative commons","css3","css3 alternate","cuttlefish","d and d","dashcube","delicious","deploydog","deskpro","deviantart","digg","digital ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dribbble square","dropbox","drupal","dyalog","earlybirds","edge","elementor","ember","empire","envira","erlang","ethereum","etsy","expeditedssl","facebook","facebook f","facebook messenger","facebook square","firefox","first order","firstdraft","flickr","flipboard","fly","font awesome","font awesome alternate","font awesome flag","fonticons","fonticons fi","fort awesome","fort awesome alternate","forumbee","foursquare","free code camp","freebsd","get pocket","gg","gg circle","git","git square","github","github alternate","github square","gitkraken","gitlab","gitter","glide","glide g","gofore","goodreads","goodreads g","google","google drive","google play","google plus","google plus g","google plus square","google wallet","gratipay","grav","gripfire","grunt","gulp","hacker news","hacker news square","hips","hire a helper","hooli","hotjar","houzz","html5","hubspot","imdb","instagram","internet explorer","ioxhost","itunes","itunes note","jenkins","joget","joomla","js","js square","jsfiddle","keycdn","kickstarter","kickstarter k","korvue","laravel","lastfm","lastfm square","leanpub","less","linechat","linkedin","linkedin alternate","linode","linux","lyft","magento","maxcdn","medapps","medium","medium m","medrt","meetup","microsoft","mix","mixcloud","mizuni","modx","monero","napster","nintendo switch","node","node js","npm","ns8","nutritionix","odnoklassniki","odnoklassniki square","opencart","openid","opera","optin monster","osi","page4","pagelines","palfed","patreon","paypal","periscope","phabricator","phoenix framework","php","pied piper","pied piper alternate","pied piper pp","pinterest","pinterest p","pinterest square","playstation","product hunt","pushed","python","qq","quinscape","quora","ravelry","react","rebel","redriver","reddit","reddit alien","reddit square","rendact","renren","replyd","resolving","rocketchat","rockrms","safari","sass","schlix","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","simplybuilt","sistrix","skyatlas","skype","slack","slack hash","slideshare","snapchat","snapchat ghost","snapchat square","soundcloud","speakap","spotify","stack exchange","stack overflow","staylinked","steam","steam square","steam symbol","sticker mule","strava","stripe","stripe s","studiovinari","stumbleupon","stumbleupon circle","superpowers","supple","telegram","telegram plane","tencent weibo","themeisle","trello","tripadvisor","tumblr","tumblr square","twitch","twitter","twitter square","typo3","uber","uikit","uniregistry","untappd","usb","ussunnah","vaadin","viacoin","viadeo","viadeo square","viber","vimeo","vimeo square","vimeo v","vine","vk","vnv","vuejs","wechat","weibo","weixin","whatsapp","whatsapp square","whmcs","wikipedia w","windows","wordpress","wordpress simple","wpbeginner","wpexplorer","wpforms","xbox","xing","xing square","y combinator","yahoo","yandex","yandex international","yelp","yoast","youtube","youtube square"];SUI.BRANDS=Xt;var Zt=(0,et.default)([].concat(_t,wt,Et,St,Tt,Ct,Nt,Dt,kt,Ft,jt,Gt,Rt,yt,$t,xt,At,Mt,It,Lt,Ot,gt,Pt,Bt,Ut,Ht,qt,Vt,zt,Wt,Xt));SUI.ICONS=Zt;var Qt=["chess rock","ordered list","unordered list","user doctor","shield","puzzle","add circle","add square","add to calendar","add to cart","add user","add","alarm mute","alarm","ald","als","announcement","area chart","area graph","arrow down cart","asexual","asl interpreting","asl","assistive listening devices","attach","attention","balance","bar","bathtub","battery four","battery high","battery low","battery one","battery three","battery two","battery zero","birthday","block layout","bluetooth alternative","broken chain","browser","call square","call","cancel","cart","cc","chain","chat","checked calendar","checkmark","circle notched","close","cny","cocktail","commenting","computer","configure","content","deafness","delete calendar","delete","detective","discussions","doctor","dollar","dont","drivers license","dropdown","emergency","envira gallery","erase","eur","euro","eyedropper","factory","favorite","feed","female homosexual","file text","file text outline","find","first aid","fork","game","gay","gbp","google plus circle","google plus official","grab","graduation","grid layout","group","h","hand victory","handicap","hard of hearing","header","help circle","help","heterosexual","hide","hotel","hourglass four","hourglass full","hourglass one","hourglass three","hourglass two","idea","ils","in cart","inr","intergender","intersex","jpy","krw","lab","law","legal","lesbian","lightning","like","line graph","linkedin square","linkify","lira","list layout","magnify","mail forward","mail outline","mail square","mail","male homosexual","man","marker","mars alternate","mars horizontal","mars vertical","microsoft edge","military","ms edge","mute","new pied piper","non binary transgender","numbered list","options","other gender horizontal","other gender vertical","other gender","payment","paypal card","pencil square","photo","picture","pie chart","pie graph","pied piper hat","pin","plus cart","point","pointing down","pointing left","pointing right","pointing up","pound","power cord","power","privacy","r circle","rain","record","refresh","remove circle","remove from calendar","remove user","remove","repeat","rmb","rouble","rub","ruble","rupee","s15","selected radio","send","setting","settings","shekel","sheqel","shipping","shop","shuffle","shutdown","sidebar","signing","signup","sliders","soccer","sort alphabet ascending","sort alphabet descending","sort ascending","sort content ascending","sort content descending","sort descending","sort numeric ascending","sort numeric descending","sound","spy","stripe card","student","talk","target","teletype","television","text cursor","text telephone","theme","thermometer","thumb tack","time","tm","toggle down","toggle left","toggle right","toggle up","translate","travel","treatment","triangle down","triangle left","triangle right","triangle up","try","unhide","unlinkify","unmute","usd","user cancel","user close","user delete","user x","vcard","video camera","video play","volume control phone","wait","warning circle","warning sign","warning","wi-fi","winner","wizard","woman","won","wordpress beginner","wordpress forms","world","write square","x","yen","zip","zoom in","zoom out","zoom","bitbucket square","checkmark box","circle thin","cloud download","cloud upload","compose","conversation","credit card alternative","currency","dashboard","diamond","disk","exchange","external share","external square","external","facebook official","food","hourglass zero","level down","level up","log out","meanpath","money","move","pencil","protect","radio","remove bookmark","resize horizontal","resize vertical","sign in","sign out","spoon","star half empty","star half full","ticket","times rectangle","write","youtube play"];SUI.ICON_ALIASES=Qt;var Kt=(0,et.default)([].concat(Zt,Qt));SUI.ICONS_AND_ALIASES=Kt;var ar=["left dropdown"];SUI.COMPONENT_CONTEXT_SPECIFIC_ICONS=ar;var Er=(0,et.default)([].concat(Kt,ar));return SUI.ALL_ICONS_IN_ALL_CONTEXTS=Er,SUI}var normalizeOffset$1={},hasRequiredNormalizeOffset;function requireNormalizeOffset(){if(hasRequiredNormalizeOffset)return normalizeOffset$1;hasRequiredNormalizeOffset=1,normalizeOffset$1.__esModule=!0,normalizeOffset$1.default=void 0;var _e=function(tt){return typeof tt=="number"||typeof tt=="string"?[tt,tt]:tt};return normalizeOffset$1.default=_e,normalizeOffset$1}var normalizeTransitionDuration$1={},hasRequiredNormalizeTransitionDuration;function requireNormalizeTransitionDuration(){if(hasRequiredNormalizeTransitionDuration)return normalizeTransitionDuration$1;hasRequiredNormalizeTransitionDuration=1,normalizeTransitionDuration$1.__esModule=!0,normalizeTransitionDuration$1.default=void 0;var _e=function(tt,nt){return typeof tt=="number"||typeof tt=="string"?tt:tt[nt]};return normalizeTransitionDuration$1.default=_e,normalizeTransitionDuration$1}var objectDiff={},isEqual_1,hasRequiredIsEqual;function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var _e=require_baseIsEqual();function et(tt,nt){return _e(tt,nt)}return isEqual_1=et,isEqual_1}var _baseCreate,hasRequired_baseCreate;function require_baseCreate(){if(hasRequired_baseCreate)return _baseCreate;hasRequired_baseCreate=1;var _e=requireIsObject(),et=Object.create,tt=function(){function nt(){}return function(at){if(!_e(at))return{};if(et)return et(at);nt.prototype=at;var it=new nt;return nt.prototype=void 0,it}}();return _baseCreate=tt,_baseCreate}var transform_1,hasRequiredTransform;function requireTransform(){if(hasRequiredTransform)return transform_1;hasRequiredTransform=1;var _e=_arrayEach,et=require_baseCreate(),tt=require_baseForOwn(),nt=_baseIteratee,at=require_getPrototype(),it=isArray_1,ot=requireIsBuffer(),st=requireIsFunction(),ct=requireIsObject(),dt=requireIsTypedArray();function ht(pt,mt,vt){var bt=it(pt),_t=bt||ot(pt)||dt(pt);if(mt=nt(mt),vt==null){var wt=pt&&pt.constructor;_t?vt=bt?new wt:[]:ct(pt)?vt=st(wt)?et(at(pt)):{}:vt={}}return(_t?_e:tt)(pt,function(Et,St,Tt){return mt(vt,Et,St,Tt)}),vt}return transform_1=ht,transform_1}var hasRequiredObjectDiff;function requireObjectDiff(){if(hasRequiredObjectDiff)return objectDiff;hasRequiredObjectDiff=1;var _e=interopRequireDefaultExports;objectDiff.__esModule=!0,objectDiff.default=void 0;var et=_e(requireIsEqual()),tt=_e(requireHas()),nt=_e(requireTransform()),at=function(ot,st){return(0,nt.default)(ot,function(ct,dt,ht){(0,tt.default)(st,ht)?(0,et.default)(dt,st[ht])||(ct[ht]=st[ht]):ct[ht]="[DELETED]"},{})};return objectDiff.default=at,objectDiff}var useClassNamesOnNode$1={};function _setPrototypeOf$U(_e,et){return _setPrototypeOf$U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$U(_e,et)}function _inheritsLoose$7(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_setPrototypeOf$U(_e,et)}var handleRef=function(et,tt){if(typeof et=="function"){et(tt);return}et!==null&&typeof et=="object"&&(et.current=tt)},isRefObject=function(et){return et!==null&&typeof et=="object"&&et.hasOwnProperty("current")},RefFindNode=function(_e){_inheritsLoose$7(et,_e);function et(){for(var nt,at=arguments.length,it=new Array(at),ot=0;ot<at;ot++)it[ot]=arguments[ot];return nt=_e.call.apply(_e,[this].concat(it))||this,nt.prevNode=void 0,nt}var tt=et.prototype;return tt.componentDidMount=function(){var at=reactDomExports.findDOMNode(this);this.prevNode=at,handleRef(this.props.innerRef,at)},tt.componentDidUpdate=function(at){var it=reactDomExports.findDOMNode(this);this.prevNode!==it&&(this.prevNode=it,handleRef(this.props.innerRef,it)),at.innerRef!==this.props.innerRef&&handleRef(this.props.innerRef,it)},tt.componentWillUnmount=function(){handleRef(this.props.innerRef,null),delete this.prevNode},tt.render=function(){var at=this.props.children;return at},et}(reactExports.Component),RefForward=function(_e){_inheritsLoose$7(et,_e);function et(){for(var nt,at=arguments.length,it=new Array(at),ot=0;ot<at;ot++)it[ot]=arguments[ot];return nt=_e.call.apply(_e,[this].concat(it))||this,nt.currentNode=void 0,nt.handleRefOverride=function(st){var ct=nt.props,dt=ct.children,ht=ct.innerRef;handleRef(dt.ref,st),handleRef(ht,st),nt.currentNode=st},nt}var tt=et.prototype;return tt.componentDidUpdate=function(at){at.innerRef!==this.props.innerRef&&handleRef(this.props.innerRef,this.currentNode)},tt.componentWillUnmount=function(){delete this.currentNode},tt.render=function(){var at=this.props.children;return reactExports.cloneElement(at,{ref:this.handleRefOverride})},et}(reactExports.Component),_excluded$s=["children","innerRef"],Ref=function(et){var tt=et.children,nt=et.innerRef,at=_objectWithoutPropertiesLoose$t(et,_excluded$s),it=reactExports.Children.only(tt),ot=reactIsExports$1.isForwardRef(it)?RefForward:RefFindNode,st=it&&at&&Object.keys(at).length>0?reactExports.cloneElement(it,at):it;return reactExports.createElement(ot,{innerRef:nt},st)};const es$3=Object.freeze(Object.defineProperty({__proto__:null,Ref,RefFindNode,RefForward,handleRef,isRefObject},Symbol.toStringTag,{value:"Module"})),require$$6$1=getAugmentedNamespace(es$3);var useIsomorphicLayoutEffect$3={},hasRequiredUseIsomorphicLayoutEffect;function requireUseIsomorphicLayoutEffect(){if(hasRequiredUseIsomorphicLayoutEffect)return useIsomorphicLayoutEffect$3;hasRequiredUseIsomorphicLayoutEffect=1;var _e=interopRequireDefaultExports;useIsomorphicLayoutEffect$3.__esModule=!0,useIsomorphicLayoutEffect$3.default=void 0;var et=_e(reactExports),tt=_e(requireIsBrowser()),nt=(0,tt.default)()?et.default.useLayoutEffect:et.default.useEffect,at=nt;return useIsomorphicLayoutEffect$3.default=at,useIsomorphicLayoutEffect$3}var hasRequiredUseClassNamesOnNode;function requireUseClassNamesOnNode(){if(hasRequiredUseClassNamesOnNode)return useClassNamesOnNode$1;hasRequiredUseClassNamesOnNode=1;var _e=interopRequireDefaultExports;useClassNamesOnNode$1.__esModule=!0,useClassNamesOnNode$1.computeClassNames=it,useClassNamesOnNode$1.computeClassNamesDifference=ot,useClassNamesOnNode$1.default=pt,useClassNamesOnNode$1.NodeRegistry=useClassNamesOnNode$1.handleClassNamesChange=void 0;var et=require$$6$1,tt=_e(reactExports),nt=_e(requireUseIsomorphicLayoutEffect()),at=/\s+/;function it(mt){var vt=[];return mt?(mt.forEach(function(bt){if(typeof bt.current=="string"){var _t=bt.current.split(at);_t.forEach(function(wt){vt.push(wt)})}}),vt.filter(function(bt,_t,wt){return bt.length>0&&wt.indexOf(bt)===_t})):[]}function ot(mt,vt){return[vt.filter(function(bt){return mt.indexOf(bt)===-1}),mt.filter(function(bt){return vt.indexOf(bt)===-1})]}var st=new Map,ct=function(vt,bt){var _t=it(bt),wt=ot(st.get(vt)||[],_t),Et=wt[0],St=wt[1];vt&&(Et.forEach(function(Tt){return vt.classList.add(Tt)}),St.forEach(function(Tt){return vt.classList.remove(Tt)})),st.set(vt,_t)};useClassNamesOnNode$1.handleClassNamesChange=ct;var dt=function(){var vt=this;this.add=function(bt,_t){if(vt.nodes.has(bt)){var wt=vt.nodes.get(bt);wt.add(_t);return}var Et=new Set;Et.add(_t),vt.nodes.set(bt,Et)},this.del=function(bt,_t){if(vt.nodes.has(bt)){var wt=vt.nodes.get(bt);if(wt.size===1){vt.nodes.delete(bt);return}wt.delete(_t)}},this.emit=function(bt,_t){_t(bt,vt.nodes.get(bt))},this.nodes=new Map};useClassNamesOnNode$1.NodeRegistry=dt;var ht=new dt;function pt(mt,vt){var bt=tt.default.useRef(),_t=tt.default.useRef(!1);(0,nt.default)(function(){if(bt.current=vt,_t.current){var wt=(0,et.isRefObject)(mt)?mt.current:mt;ht.emit(wt,ct)}_t.current=!0},[vt]),(0,nt.default)(function(){var wt=(0,et.isRefObject)(mt)?mt.current:mt;return ht.add(wt,bt),ht.emit(wt,ct),function(){ht.del(wt,bt),ht.emit(wt,ct)}},[mt])}return useClassNamesOnNode$1}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(_e){var et=requireInteropRequireWildcard(),tt=interopRequireDefaultExports;_e.__esModule=!0;var nt={useKeyOnly:!0,useKeyOrValueAndKey:!0,useValueAndKey:!0,useMultipleProp:!0,useTextAlignProp:!0,useVerticalAlignProp:!0,useWidthProp:!0,htmlInputAttrs:!0,htmlInputEvents:!0,htmlInputProps:!0,htmlImageProps:!0,partitionHTMLProps:!0,numberToWordMap:!0,numberToWord:!0,ModernAutoControlledComponent:!0,childrenUtils:!0,customPropTypes:!0,eventStack:!0,getUnhandledProps:!0,getElementType:!0,isBrowser:!0,doesNodeContainClick:!0,leven:!0,createPaginationItems:!0,SUI:!0,normalizeOffset:!0,normalizeTransitionDuration:!0,objectDiff:!0,useClassNamesOnNode:!0};_e.SUI=_e.customPropTypes=_e.childrenUtils=_e.numberToWord=_e.numberToWordMap=_e.partitionHTMLProps=_e.htmlImageProps=_e.htmlInputProps=_e.htmlInputEvents=_e.htmlInputAttrs=_e.useWidthProp=_e.useVerticalAlignProp=_e.useTextAlignProp=_e.useMultipleProp=_e.useValueAndKey=_e.useKeyOrValueAndKey=_e.useKeyOnly=void 0;var at=tt(requireModernAutoControlledComponent());_e.ModernAutoControlledComponent=at.default;var it=et(requireChildrenUtils());_e.childrenUtils=it;var ot=requireClassNameBuilders();_e.useKeyOnly=ot.useKeyOnly,_e.useKeyOrValueAndKey=ot.useKeyOrValueAndKey,_e.useValueAndKey=ot.useValueAndKey,_e.useMultipleProp=ot.useMultipleProp,_e.useTextAlignProp=ot.useTextAlignProp,_e.useVerticalAlignProp=ot.useVerticalAlignProp,_e.useWidthProp=ot.useWidthProp;var st=et(requireCustomPropTypes());_e.customPropTypes=st;var ct=tt(requireEventStack());_e.eventStack=ct.default;var dt=requireFactories();Object.keys(dt).forEach(function(kt){kt==="default"||kt==="__esModule"||Object.prototype.hasOwnProperty.call(nt,kt)||(_e[kt]=dt[kt])});var ht=tt(requireGetUnhandledProps());_e.getUnhandledProps=ht.default;var pt=tt(requireGetElementType());_e.getElementType=pt.default;var mt=requireHtmlPropsUtils();_e.htmlInputAttrs=mt.htmlInputAttrs,_e.htmlInputEvents=mt.htmlInputEvents,_e.htmlInputProps=mt.htmlInputProps,_e.htmlImageProps=mt.htmlImageProps,_e.partitionHTMLProps=mt.partitionHTMLProps;var vt=tt(requireIsBrowser());_e.isBrowser=vt.default;var bt=tt(requireDoesNodeContainClick());_e.doesNodeContainClick=bt.default;var _t=tt(requireLeven());_e.leven=_t.default;var wt=tt(requireCreatePaginationItems());_e.createPaginationItems=wt.default;var Et=et(requireSUI());_e.SUI=Et;var St=requireNumberToWord();_e.numberToWordMap=St.numberToWordMap,_e.numberToWord=St.numberToWord;var Tt=tt(requireNormalizeOffset());_e.normalizeOffset=Tt.default;var Ct=tt(requireNormalizeTransitionDuration());_e.normalizeTransitionDuration=Ct.default;var Nt=tt(requireObjectDiff());_e.objectDiff=Nt.default;var Dt=tt(requireUseClassNamesOnNode());_e.useClassNamesOnNode=Dt.default}(lib$4)),lib$4}var _interopRequireDefault$o=interopRequireDefaultExports;Loader$4.__esModule=!0;Loader$4.default=void 0;var _extends2$b=_interopRequireDefault$o(require_extends()),_clsx$9=_interopRequireDefault$o(require$$0$6);_interopRequireDefault$o(propTypesExports);var _react$b=_interopRequireDefault$o(reactExports),_lib$b=requireLib();function Loader$3(_e){var et=_e.active,tt=_e.children,nt=_e.className,at=_e.content,it=_e.disabled,ot=_e.indeterminate,st=_e.inline,ct=_e.inverted,dt=_e.size,ht=(0,_clsx$9.default)("ui",dt,(0,_lib$b.useKeyOnly)(et,"active"),(0,_lib$b.useKeyOnly)(it,"disabled"),(0,_lib$b.useKeyOnly)(ot,"indeterminate"),(0,_lib$b.useKeyOnly)(ct,"inverted"),(0,_lib$b.useKeyOnly)(tt||at,"text"),(0,_lib$b.useKeyOrValueAndKey)(st,"inline"),"loader",nt),pt=(0,_lib$b.getUnhandledProps)(Loader$3,_e),mt=(0,_lib$b.getElementType)(Loader$3,_e);return _react$b.default.createElement(mt,(0,_extends2$b.default)({},pt,{className:ht}),_lib$b.childrenUtils.isNil(tt)?at:tt)}Loader$3.handledProps=["active","as","children","className","content","disabled","indeterminate","inline","inverted","size"];Loader$3.propTypes={};var _default$m=Loader$3;Loader$4.default=_default$m;const Loader$2="";var __extends$C=commonjsGlobal&&commonjsGlobal.__extends||function(){var _e=function(et,tt){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,at){nt.__proto__=at}||function(nt,at){for(var it in at)Object.prototype.hasOwnProperty.call(at,it)&&(nt[it]=at[it])},_e(et,tt)};return function(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");_e(et,tt);function nt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(nt.prototype=tt.prototype,new nt)}}(),__assign$O=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$O=Object.assign||function(_e){for(var et,tt=1,nt=arguments.length;tt<nt;tt++){et=arguments[tt];for(var at in et)Object.prototype.hasOwnProperty.call(et,at)&&(_e[at]=et[at])}return _e},__assign$O.apply(this,arguments)},__createBinding$11=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var at=Object.getOwnPropertyDescriptor(et,tt);(!at||("get"in at?!et.__esModule:at.writable||at.configurable))&&(at={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,at)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),__setModuleDefault$11=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,et){Object.defineProperty(_e,"default",{enumerable:!0,value:et})}:function(_e,et){_e.default=et}),__importStar$11=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var et={};if(_e!=null)for(var tt in _e)tt!=="default"&&Object.prototype.hasOwnProperty.call(_e,tt)&&__createBinding$11(et,_e,tt);return __setModuleDefault$11(et,_e),et},__importDefault$1J=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(Loader$5,"__esModule",{value:!0});var Loader_3=Loader$5.Loader=void 0,React$K=__importStar$11(reactExports),Loader_1$5=__importDefault$1J(Loader$4),Loader$1=function(_e){__extends$C(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.getClassName=function(){return[this.props.className||"",this.props.provider||""].join(" ").trim()},et.prototype.render=function(){return React$K.createElement(Loader_1$5.default,__assign$O({"aria-live":"polite","aria-label":"Loading",role:"status"},this.props,{className:this.getClassName()}))},et}(React$K.PureComponent);Loader_3=Loader$5.Loader=Loader$1;var extendStatics$3=function(_e,et){return extendStatics$3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,nt){tt.__proto__=nt}||function(tt,nt){for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&(tt[at]=nt[at])},extendStatics$3(_e,et)};function __extends$B(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics$3(_e,et);function tt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}var __assign$N=function(){return __assign$N=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$N.apply(this,arguments)};function __rest$h(_e,et){var tt={};for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&et.indexOf(nt)<0&&(tt[nt]=_e[nt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,nt=Object.getOwnPropertySymbols(_e);at<nt.length;at++)et.indexOf(nt[at])<0&&Object.prototype.propertyIsEnumerable.call(_e,nt[at])&&(tt[nt[at]]=_e[nt[at]]);return tt}function __spreadArray$7(_e,et,tt){if(tt||arguments.length===2)for(var nt=0,at=et.length,it;nt<at;nt++)(it||!(nt in et))&&(it||(it=Array.prototype.slice.call(et,0,nt)),it[nt]=et[nt]);return _e.concat(it||Array.prototype.slice.call(et))}typeof SuppressedError=="function"&&SuppressedError;function invariant$1(_e,et,tt){if(tt===void 0&&(tt=Error),!_e)throw new tt(et)}var extendStatics$2=function(_e,et){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,nt){tt.__proto__=nt}||function(tt,nt){for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&(tt[at]=nt[at])},extendStatics$2(_e,et)};function __extends$A(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics$2(_e,et);function tt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}var __assign$M=function(){return __assign$M=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$M.apply(this,arguments)};function __spreadArray$6(_e,et,tt){if(tt||arguments.length===2)for(var nt=0,at=et.length,it;nt<at;nt++)(it||!(nt in et))&&(it||(it=Array.prototype.slice.call(et,0,nt)),it[nt]=et[nt]);return _e.concat(it||Array.prototype.slice.call(et))}typeof SuppressedError=="function"&&SuppressedError;var __assign$L=function(){return __assign$L=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$L.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var ErrorKind;(function(_e){_e[_e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",_e[_e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",_e[_e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",_e[_e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",_e[_e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",_e[_e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",_e[_e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",_e[_e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",_e[_e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",_e[_e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",_e[_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",_e[_e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",_e[_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",_e[_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",_e[_e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",_e[_e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",_e[_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",_e[_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",_e[_e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",_e[_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",_e[_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",_e[_e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",_e[_e.INVALID_TAG=23]="INVALID_TAG",_e[_e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",_e[_e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",_e[_e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(_e){_e[_e.literal=0]="literal",_e[_e.argument=1]="argument",_e[_e.number=2]="number",_e[_e.date=3]="date",_e[_e.time=4]="time",_e[_e.select=5]="select",_e[_e.plural=6]="plural",_e[_e.pound=7]="pound",_e[_e.tag=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(_e){_e[_e.number=0]="number",_e[_e.dateTime=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(_e){return _e.type===TYPE.literal}function isArgumentElement(_e){return _e.type===TYPE.argument}function isNumberElement(_e){return _e.type===TYPE.number}function isDateElement(_e){return _e.type===TYPE.date}function isTimeElement(_e){return _e.type===TYPE.time}function isSelectElement(_e){return _e.type===TYPE.select}function isPluralElement(_e){return _e.type===TYPE.plural}function isPoundElement(_e){return _e.type===TYPE.pound}function isTagElement(_e){return _e.type===TYPE.tag}function isNumberSkeleton(_e){return!!(_e&&typeof _e=="object"&&_e.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(_e){return!!(_e&&typeof _e=="object"&&_e.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(_e){var et={};return _e.replace(DATE_TIME_REGEX,function(tt){var nt=tt.length;switch(tt[0]){case"G":et.era=nt===4?"long":nt===5?"narrow":"short";break;case"y":et.year=nt===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":et.month=["numeric","2-digit","short","long","narrow"][nt-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":et.day=["numeric","2-digit"][nt-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":et.weekday=nt===4?"short":nt===5?"narrow":"short";break;case"e":if(nt<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");et.weekday=["short","long","narrow","short"][nt-4];break;case"c":if(nt<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");et.weekday=["short","long","narrow","short"][nt-4];break;case"a":et.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":et.hourCycle="h12",et.hour=["numeric","2-digit"][nt-1];break;case"H":et.hourCycle="h23",et.hour=["numeric","2-digit"][nt-1];break;case"K":et.hourCycle="h11",et.hour=["numeric","2-digit"][nt-1];break;case"k":et.hourCycle="h24",et.hour=["numeric","2-digit"][nt-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":et.minute=["numeric","2-digit"][nt-1];break;case"s":et.second=["numeric","2-digit"][nt-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":et.timeZoneName=nt<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),et}var __assign$K=function(){return __assign$K=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$K.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(_e){if(_e.length===0)throw new Error("Number skeleton cannot be empty");for(var et=_e.split(WHITE_SPACE_REGEX).filter(function(mt){return mt.length>0}),tt=[],nt=0,at=et;nt<at.length;nt++){var it=at[nt],ot=it.split("/");if(ot.length===0)throw new Error("Invalid number skeleton");for(var st=ot[0],ct=ot.slice(1),dt=0,ht=ct;dt<ht.length;dt++){var pt=ht[dt];if(pt.length===0)throw new Error("Invalid number skeleton")}tt.push({stem:st,options:ct})}return tt}function icuUnitToEcma(_e){return _e.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?[rs]?$/g,INTEGER_WIDTH_REGEX=/(\*)(0+)|(#+)(0+)|(0+)/g,CONCISE_INTEGER_WIDTH_REGEX=/^(0+)$/;function parseSignificantPrecision(_e){var et={};return _e[_e.length-1]==="r"?et.roundingPriority="morePrecision":_e[_e.length-1]==="s"&&(et.roundingPriority="lessPrecision"),_e.replace(SIGNIFICANT_PRECISION_REGEX,function(tt,nt,at){return typeof at!="string"?(et.minimumSignificantDigits=nt.length,et.maximumSignificantDigits=nt.length):at==="+"?et.minimumSignificantDigits=nt.length:nt[0]==="#"?et.maximumSignificantDigits=nt.length:(et.minimumSignificantDigits=nt.length,et.maximumSignificantDigits=nt.length+(typeof at=="string"?at.length:0)),""}),et}function parseSign(_e){switch(_e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseConciseScientificAndEngineeringStem(_e){var et;if(_e[0]==="E"&&_e[1]==="E"?(et={notation:"engineering"},_e=_e.slice(2)):_e[0]==="E"&&(et={notation:"scientific"},_e=_e.slice(1)),et){var tt=_e.slice(0,2);if(tt==="+!"?(et.signDisplay="always",_e=_e.slice(2)):tt==="+?"&&(et.signDisplay="exceptZero",_e=_e.slice(2)),!CONCISE_INTEGER_WIDTH_REGEX.test(_e))throw new Error("Malformed concise eng/scientific notation");et.minimumIntegerDigits=_e.length}return et}function parseNotationOptions(_e){var et={},tt=parseSign(_e);return tt||et}function parseNumberSkeleton(_e){for(var et={},tt=0,nt=_e;tt<nt.length;tt++){var at=nt[tt];switch(at.stem){case"percent":case"%":et.style="percent";continue;case"%x100":et.style="percent",et.scale=100;continue;case"currency":et.style="currency",et.currency=at.options[0];continue;case"group-off":case",_":et.useGrouping=!1;continue;case"precision-integer":case".":et.maximumFractionDigits=0;continue;case"measure-unit":case"unit":et.style="unit",et.unit=icuUnitToEcma(at.options[0]);continue;case"compact-short":case"K":et.notation="compact",et.compactDisplay="short";continue;case"compact-long":case"KK":et.notation="compact",et.compactDisplay="long";continue;case"scientific":et=__assign$K(__assign$K(__assign$K({},et),{notation:"scientific"}),at.options.reduce(function(ct,dt){return __assign$K(__assign$K({},ct),parseNotationOptions(dt))},{}));continue;case"engineering":et=__assign$K(__assign$K(__assign$K({},et),{notation:"engineering"}),at.options.reduce(function(ct,dt){return __assign$K(__assign$K({},ct),parseNotationOptions(dt))},{}));continue;case"notation-simple":et.notation="standard";continue;case"unit-width-narrow":et.currencyDisplay="narrowSymbol",et.unitDisplay="narrow";continue;case"unit-width-short":et.currencyDisplay="code",et.unitDisplay="short";continue;case"unit-width-full-name":et.currencyDisplay="name",et.unitDisplay="long";continue;case"unit-width-iso-code":et.currencyDisplay="symbol";continue;case"scale":et.scale=parseFloat(at.options[0]);continue;case"integer-width":if(at.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");at.options[0].replace(INTEGER_WIDTH_REGEX,function(ct,dt,ht,pt,mt,vt){if(dt)et.minimumIntegerDigits=ht.length;else{if(pt&&mt)throw new Error("We currently do not support maximum integer digits");if(vt)throw new Error("We currently do not support exact integer digits")}return""});continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(at.stem)){et.minimumIntegerDigits=at.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(at.stem)){if(at.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");at.stem.replace(FRACTION_PRECISION_REGEX,function(ct,dt,ht,pt,mt,vt){return ht==="*"?et.minimumFractionDigits=dt.length:pt&&pt[0]==="#"?et.maximumFractionDigits=pt.length:mt&&vt?(et.minimumFractionDigits=mt.length,et.maximumFractionDigits=mt.length+vt.length):(et.minimumFractionDigits=dt.length,et.maximumFractionDigits=dt.length),""});var it=at.options[0];it==="w"?et=__assign$K(__assign$K({},et),{trailingZeroDisplay:"stripIfInteger"}):it&&(et=__assign$K(__assign$K({},et),parseSignificantPrecision(it)));continue}if(SIGNIFICANT_PRECISION_REGEX.test(at.stem)){et=__assign$K(__assign$K({},et),parseSignificantPrecision(at.stem));continue}var ot=parseSign(at.stem);ot&&(et=__assign$K(__assign$K({},et),ot));var st=parseConciseScientificAndEngineeringStem(at.stem);st&&(et=__assign$K(__assign$K({},et),st))}return et}var timeData={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function getBestPattern(_e,et){for(var tt="",nt=0;nt<_e.length;nt++){var at=_e.charAt(nt);if(at==="j"){for(var it=0;nt+1<_e.length&&_e.charAt(nt+1)===at;)it++,nt++;var ot=1+(it&1),st=it<2?1:3+(it>>1),ct="a",dt=getDefaultHourSymbolFromLocale(et);for((dt=="H"||dt=="k")&&(st=0);st-- >0;)tt+=ct;for(;ot-- >0;)tt=dt+tt}else at==="J"?tt+="H":tt+=at}return tt}function getDefaultHourSymbolFromLocale(_e){var et=_e.hourCycle;if(et===void 0&&_e.hourCycles&&_e.hourCycles.length&&(et=_e.hourCycles[0]),et)switch(et){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var tt=_e.language,nt;tt!=="root"&&(nt=_e.maximize().region);var at=timeData[nt||""]||timeData[tt||""]||timeData["".concat(tt,"-001")]||timeData["001"];return at[0]}var _a$3,SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*")),SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(_e,et){return{start:_e,end:et}}var hasNativeStartsWith=!!String.prototype.startsWith,hasNativeFromCodePoint=!!String.fromCodePoint,hasNativeFromEntries=!!Object.fromEntries,hasNativeCodePointAt=!!String.prototype.codePointAt,hasTrimStart=!!String.prototype.trimStart,hasTrimEnd=!!String.prototype.trimEnd,hasNativeIsSafeInteger=!!Number.isSafeInteger,isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(_e){return typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e&&Math.abs(_e)<=9007199254740991},REGEX_SUPPORTS_U_AND_Y=!0;try{var re$2=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a$3=re$2.exec("a"))===null||_a$3===void 0?void 0:_a$3[0])==="a"}catch{REGEX_SUPPORTS_U_AND_Y=!1}var startsWith$1=hasNativeStartsWith?function(et,tt,nt){return et.startsWith(tt,nt)}:function(et,tt,nt){return et.slice(nt,nt+tt.length)===tt},fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];for(var nt="",at=et.length,it=0,ot;at>it;){if(ot=et[it++],ot>1114111)throw RangeError(ot+" is not a valid code point");nt+=ot<65536?String.fromCharCode(ot):String.fromCharCode(((ot-=65536)>>10)+55296,ot%1024+56320)}return nt},fromEntries$2=hasNativeFromEntries?Object.fromEntries:function(et){for(var tt={},nt=0,at=et;nt<at.length;nt++){var it=at[nt],ot=it[0],st=it[1];tt[ot]=st}return tt},codePointAt=hasNativeCodePointAt?function(et,tt){return et.codePointAt(tt)}:function(et,tt){var nt=et.length;if(!(tt<0||tt>=nt)){var at=et.charCodeAt(tt),it;return at<55296||at>56319||tt+1===nt||(it=et.charCodeAt(tt+1))<56320||it>57343?at:(at-55296<<10)+(it-56320)+65536}},trimStart=hasTrimStart?function(et){return et.trimStart()}:function(et){return et.replace(SPACE_SEPARATOR_START_REGEX,"")},trimEnd=hasTrimEnd?function(et){return et.trimEnd()}:function(et){return et.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE(_e,et){return new RegExp(_e,et)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function(et,tt){var nt;IDENTIFIER_PREFIX_RE_1.lastIndex=tt;var at=IDENTIFIER_PREFIX_RE_1.exec(et);return(nt=at[1])!==null&&nt!==void 0?nt:""}}else matchIdentifierAtIndex=function(et,tt){for(var nt=[];;){var at=codePointAt(et,tt);if(at===void 0||_isWhiteSpace(at)||_isPatternSyntax(at))break;nt.push(at),tt+=at>=65536?2:1}return fromCodePoint.apply(void 0,nt)};var Parser$1=function(){function _e(et,tt){tt===void 0&&(tt={}),this.message=et,this.position={offset:0,line:1,column:1},this.ignoreTag=!!tt.ignoreTag,this.locale=tt.locale,this.requiresOtherClause=!!tt.requiresOtherClause,this.shouldParseSkeletons=!!tt.shouldParseSkeletons}return _e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},_e.prototype.parseMessage=function(et,tt,nt){for(var at=[];!this.isEOF();){var it=this.char();if(it===123){var ot=this.parseArgument(et,nt);if(ot.err)return ot;at.push(ot.val)}else{if(it===125&&et>0)break;if(it===35&&(tt==="plural"||tt==="selectordinal")){var st=this.clonePosition();this.bump(),at.push({type:TYPE.pound,location:createLocation(st,this.clonePosition())})}else if(it===60&&!this.ignoreTag&&this.peek()===47){if(nt)break;return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}else if(it===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var ot=this.parseTag(et,tt);if(ot.err)return ot;at.push(ot.val)}else{var ot=this.parseLiteral(et,tt);if(ot.err)return ot;at.push(ot.val)}}}return{val:at,err:null}},_e.prototype.parseTag=function(et,tt){var nt=this.clonePosition();this.bump();var at=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:TYPE.literal,value:"<".concat(at,"/>"),location:createLocation(nt,this.clonePosition())},err:null};if(this.bumpIf(">")){var it=this.parseMessage(et+1,tt,!0);if(it.err)return it;var ot=it.val,st=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_isAlpha(this.char()))return this.error(ErrorKind.INVALID_TAG,createLocation(st,this.clonePosition()));var ct=this.clonePosition(),dt=this.parseTagName();return at!==dt?this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(ct,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:TYPE.tag,value:at,children:ot,location:createLocation(nt,this.clonePosition())},err:null}:this.error(ErrorKind.INVALID_TAG,createLocation(st,this.clonePosition())))}else return this.error(ErrorKind.UNCLOSED_TAG,createLocation(nt,this.clonePosition()))}else return this.error(ErrorKind.INVALID_TAG,createLocation(nt,this.clonePosition()))},_e.prototype.parseTagName=function(){var et=this.offset();for(this.bump();!this.isEOF()&&_isPotentialElementNameChar(this.char());)this.bump();return this.message.slice(et,this.offset())},_e.prototype.parseLiteral=function(et,tt){for(var nt=this.clonePosition(),at="";;){var it=this.tryParseQuote(tt);if(it){at+=it;continue}var ot=this.tryParseUnquoted(et,tt);if(ot){at+=ot;continue}var st=this.tryParseLeftAngleBracket();if(st){at+=st;continue}break}var ct=createLocation(nt,this.clonePosition());return{val:{type:TYPE.literal,value:at,location:ct},err:null}},_e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))?(this.bump(),"<"):null},_e.prototype.tryParseQuote=function(et){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(et==="plural"||et==="selectordinal")break;return null;default:return null}this.bump();var tt=[this.char()];for(this.bump();!this.isEOF();){var nt=this.char();if(nt===39)if(this.peek()===39)tt.push(39),this.bump();else{this.bump();break}else tt.push(nt);this.bump()}return fromCodePoint.apply(void 0,tt)},_e.prototype.tryParseUnquoted=function(et,tt){if(this.isEOF())return null;var nt=this.char();return nt===60||nt===123||nt===35&&(tt==="plural"||tt==="selectordinal")||nt===125&&et>0?null:(this.bump(),fromCodePoint(nt))},_e.prototype.parseArgument=function(et,tt){var nt=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(nt,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(nt,this.clonePosition()));var at=this.parseIdentifierIfPossible().value;if(!at)return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(nt,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(nt,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:TYPE.argument,value:at,location:createLocation(nt,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(nt,this.clonePosition())):this.parseArgumentOptions(et,tt,at,nt);default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(nt,this.clonePosition()))}},_e.prototype.parseIdentifierIfPossible=function(){var et=this.clonePosition(),tt=this.offset(),nt=matchIdentifierAtIndex(this.message,tt),at=tt+nt.length;this.bumpTo(at);var it=this.clonePosition(),ot=createLocation(et,it);return{value:nt,location:ot}},_e.prototype.parseArgumentOptions=function(et,tt,nt,at){var it,ot=this.clonePosition(),st=this.parseIdentifierIfPossible().value,ct=this.clonePosition();switch(st){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(ot,ct));case"number":case"date":case"time":{this.bumpSpace();var dt=null;if(this.bumpIf(",")){this.bumpSpace();var ht=this.clonePosition(),pt=this.parseSimpleArgStyleIfPossible();if(pt.err)return pt;var mt=trimEnd(pt.val);if(mt.length===0)return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));var vt=createLocation(ht,this.clonePosition());dt={style:mt,styleLocation:vt}}var bt=this.tryParseArgumentClose(at);if(bt.err)return bt;var _t=createLocation(at,this.clonePosition());if(dt&&startsWith$1(dt==null?void 0:dt.style,"::",0)){var wt=trimStart(dt.style.slice(2));if(st==="number"){var pt=this.parseNumberSkeletonFromString(wt,dt.styleLocation);return pt.err?pt:{val:{type:TYPE.number,value:nt,location:_t,style:pt.val},err:null}}else{if(wt.length===0)return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,_t);var Et=wt;this.locale&&(Et=getBestPattern(wt,this.locale));var mt={type:SKELETON_TYPE.dateTime,pattern:Et,location:dt.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(Et):{}},St=st==="date"?TYPE.date:TYPE.time;return{val:{type:St,value:nt,location:_t,style:mt},err:null}}}return{val:{type:st==="number"?TYPE.number:st==="date"?TYPE.date:TYPE.time,value:nt,location:_t,style:(it=dt==null?void 0:dt.style)!==null&&it!==void 0?it:null},err:null}}case"plural":case"selectordinal":case"select":{var Tt=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(Tt,__assign$L({},Tt)));this.bumpSpace();var Ct=this.parseIdentifierIfPossible(),Nt=0;if(st!=="select"&&Ct.value==="offset"){if(!this.bumpIf(":"))return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));this.bumpSpace();var pt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(pt.err)return pt;this.bumpSpace(),Ct=this.parseIdentifierIfPossible(),Nt=pt.val}var Dt=this.tryParsePluralOrSelectOptions(et,st,tt,Ct);if(Dt.err)return Dt;var bt=this.tryParseArgumentClose(at);if(bt.err)return bt;var kt=createLocation(at,this.clonePosition());return st==="select"?{val:{type:TYPE.select,value:nt,options:fromEntries$2(Dt.val),location:kt},err:null}:{val:{type:TYPE.plural,value:nt,options:fromEntries$2(Dt.val),offset:Nt,pluralType:st==="plural"?"cardinal":"ordinal",location:kt},err:null}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(ot,ct))}},_e.prototype.tryParseArgumentClose=function(et){return this.isEOF()||this.char()!==125?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(et,this.clonePosition())):(this.bump(),{val:!0,err:null})},_e.prototype.parseSimpleArgStyleIfPossible=function(){for(var et=0,tt=this.clonePosition();!this.isEOF();){var nt=this.char();switch(nt){case 39:{this.bump();var at=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(at,this.clonePosition()));this.bump();break}case 123:{et+=1,this.bump();break}case 125:{if(et>0)et-=1;else return{val:this.message.slice(tt.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(tt.offset,this.offset()),err:null}},_e.prototype.parseNumberSkeletonFromString=function(et,tt){var nt=[];try{nt=parseNumberSkeletonFromString(et)}catch{return this.error(ErrorKind.INVALID_NUMBER_SKELETON,tt)}return{val:{type:SKELETON_TYPE.number,tokens:nt,location:tt,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(nt):{}},err:null}},_e.prototype.tryParsePluralOrSelectOptions=function(et,tt,nt,at){for(var it,ot=!1,st=[],ct=new Set,dt=at.value,ht=at.location;;){if(dt.length===0){var pt=this.clonePosition();if(tt!=="select"&&this.bumpIf("=")){var mt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(mt.err)return mt;ht=createLocation(pt,this.clonePosition()),dt=this.message.slice(pt.offset,this.offset())}else break}if(ct.has(dt))return this.error(tt==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,ht);dt==="other"&&(ot=!0),this.bumpSpace();var vt=this.clonePosition();if(!this.bumpIf("{"))return this.error(tt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var bt=this.parseMessage(et+1,tt,nt);if(bt.err)return bt;var _t=this.tryParseArgumentClose(vt);if(_t.err)return _t;st.push([dt,{value:bt.val,location:createLocation(vt,this.clonePosition())}]),ct.add(dt),this.bumpSpace(),it=this.parseIdentifierIfPossible(),dt=it.value,ht=it.location}return st.length===0?this.error(tt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!ot?this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:st,err:null}},_e.prototype.tryParseDecimalInteger=function(et,tt){var nt=1,at=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(nt=-1);for(var it=!1,ot=0;!this.isEOF();){var st=this.char();if(st>=48&&st<=57)it=!0,ot=ot*10+(st-48),this.bump();else break}var ct=createLocation(at,this.clonePosition());return it?(ot*=nt,isSafeInteger(ot)?{val:ot,err:null}:this.error(tt,ct)):this.error(et,ct)},_e.prototype.offset=function(){return this.position.offset},_e.prototype.isEOF=function(){return this.offset()===this.message.length},_e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},_e.prototype.char=function(){var et=this.position.offset;if(et>=this.message.length)throw Error("out of bound");var tt=codePointAt(this.message,et);if(tt===void 0)throw Error("Offset ".concat(et," is at invalid UTF-16 code unit boundary"));return tt},_e.prototype.error=function(et,tt){return{val:null,err:{kind:et,message:this.message,location:tt}}},_e.prototype.bump=function(){if(!this.isEOF()){var et=this.char();et===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=et<65536?1:2)}},_e.prototype.bumpIf=function(et){if(startsWith$1(this.message,et,this.offset())){for(var tt=0;tt<et.length;tt++)this.bump();return!0}return!1},_e.prototype.bumpUntil=function(et){var tt=this.offset(),nt=this.message.indexOf(et,tt);return nt>=0?(this.bumpTo(nt),!0):(this.bumpTo(this.message.length),!1)},_e.prototype.bumpTo=function(et){if(this.offset()>et)throw Error("targetOffset ".concat(et," must be greater than or equal to the current offset ").concat(this.offset()));for(et=Math.min(et,this.message.length);;){var tt=this.offset();if(tt===et)break;if(tt>et)throw Error("targetOffset ".concat(et," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},_e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},_e.prototype.peek=function(){if(this.isEOF())return null;var et=this.char(),tt=this.offset(),nt=this.message.charCodeAt(tt+(et>=65536?2:1));return nt??null},_e}();function _isAlpha(_e){return _e>=97&&_e<=122||_e>=65&&_e<=90}function _isAlphaOrSlash(_e){return _isAlpha(_e)||_e===47}function _isPotentialElementNameChar(_e){return _e===45||_e===46||_e>=48&&_e<=57||_e===95||_e>=97&&_e<=122||_e>=65&&_e<=90||_e==183||_e>=192&&_e<=214||_e>=216&&_e<=246||_e>=248&&_e<=893||_e>=895&&_e<=8191||_e>=8204&&_e<=8205||_e>=8255&&_e<=8256||_e>=8304&&_e<=8591||_e>=11264&&_e<=12271||_e>=12289&&_e<=55295||_e>=63744&&_e<=64975||_e>=65008&&_e<=65533||_e>=65536&&_e<=983039}function _isWhiteSpace(_e){return _e>=9&&_e<=13||_e===32||_e===133||_e>=8206&&_e<=8207||_e===8232||_e===8233}function _isPatternSyntax(_e){return _e>=33&&_e<=35||_e===36||_e>=37&&_e<=39||_e===40||_e===41||_e===42||_e===43||_e===44||_e===45||_e>=46&&_e<=47||_e>=58&&_e<=59||_e>=60&&_e<=62||_e>=63&&_e<=64||_e===91||_e===92||_e===93||_e===94||_e===96||_e===123||_e===124||_e===125||_e===126||_e===161||_e>=162&&_e<=165||_e===166||_e===167||_e===169||_e===171||_e===172||_e===174||_e===176||_e===177||_e===182||_e===187||_e===191||_e===215||_e===247||_e>=8208&&_e<=8213||_e>=8214&&_e<=8215||_e===8216||_e===8217||_e===8218||_e>=8219&&_e<=8220||_e===8221||_e===8222||_e===8223||_e>=8224&&_e<=8231||_e>=8240&&_e<=8248||_e===8249||_e===8250||_e>=8251&&_e<=8254||_e>=8257&&_e<=8259||_e===8260||_e===8261||_e===8262||_e>=8263&&_e<=8273||_e===8274||_e===8275||_e>=8277&&_e<=8286||_e>=8592&&_e<=8596||_e>=8597&&_e<=8601||_e>=8602&&_e<=8603||_e>=8604&&_e<=8607||_e===8608||_e>=8609&&_e<=8610||_e===8611||_e>=8612&&_e<=8613||_e===8614||_e>=8615&&_e<=8621||_e===8622||_e>=8623&&_e<=8653||_e>=8654&&_e<=8655||_e>=8656&&_e<=8657||_e===8658||_e===8659||_e===8660||_e>=8661&&_e<=8691||_e>=8692&&_e<=8959||_e>=8960&&_e<=8967||_e===8968||_e===8969||_e===8970||_e===8971||_e>=8972&&_e<=8991||_e>=8992&&_e<=8993||_e>=8994&&_e<=9e3||_e===9001||_e===9002||_e>=9003&&_e<=9083||_e===9084||_e>=9085&&_e<=9114||_e>=9115&&_e<=9139||_e>=9140&&_e<=9179||_e>=9180&&_e<=9185||_e>=9186&&_e<=9254||_e>=9255&&_e<=9279||_e>=9280&&_e<=9290||_e>=9291&&_e<=9311||_e>=9472&&_e<=9654||_e===9655||_e>=9656&&_e<=9664||_e===9665||_e>=9666&&_e<=9719||_e>=9720&&_e<=9727||_e>=9728&&_e<=9838||_e===9839||_e>=9840&&_e<=10087||_e===10088||_e===10089||_e===10090||_e===10091||_e===10092||_e===10093||_e===10094||_e===10095||_e===10096||_e===10097||_e===10098||_e===10099||_e===10100||_e===10101||_e>=10132&&_e<=10175||_e>=10176&&_e<=10180||_e===10181||_e===10182||_e>=10183&&_e<=10213||_e===10214||_e===10215||_e===10216||_e===10217||_e===10218||_e===10219||_e===10220||_e===10221||_e===10222||_e===10223||_e>=10224&&_e<=10239||_e>=10240&&_e<=10495||_e>=10496&&_e<=10626||_e===10627||_e===10628||_e===10629||_e===10630||_e===10631||_e===10632||_e===10633||_e===10634||_e===10635||_e===10636||_e===10637||_e===10638||_e===10639||_e===10640||_e===10641||_e===10642||_e===10643||_e===10644||_e===10645||_e===10646||_e===10647||_e===10648||_e>=10649&&_e<=10711||_e===10712||_e===10713||_e===10714||_e===10715||_e>=10716&&_e<=10747||_e===10748||_e===10749||_e>=10750&&_e<=11007||_e>=11008&&_e<=11055||_e>=11056&&_e<=11076||_e>=11077&&_e<=11078||_e>=11079&&_e<=11084||_e>=11085&&_e<=11123||_e>=11124&&_e<=11125||_e>=11126&&_e<=11157||_e===11158||_e>=11159&&_e<=11263||_e>=11776&&_e<=11777||_e===11778||_e===11779||_e===11780||_e===11781||_e>=11782&&_e<=11784||_e===11785||_e===11786||_e===11787||_e===11788||_e===11789||_e>=11790&&_e<=11798||_e===11799||_e>=11800&&_e<=11801||_e===11802||_e===11803||_e===11804||_e===11805||_e>=11806&&_e<=11807||_e===11808||_e===11809||_e===11810||_e===11811||_e===11812||_e===11813||_e===11814||_e===11815||_e===11816||_e===11817||_e>=11818&&_e<=11822||_e===11823||_e>=11824&&_e<=11833||_e>=11834&&_e<=11835||_e>=11836&&_e<=11839||_e===11840||_e===11841||_e===11842||_e>=11843&&_e<=11855||_e>=11856&&_e<=11857||_e===11858||_e>=11859&&_e<=11903||_e>=12289&&_e<=12291||_e===12296||_e===12297||_e===12298||_e===12299||_e===12300||_e===12301||_e===12302||_e===12303||_e===12304||_e===12305||_e>=12306&&_e<=12307||_e===12308||_e===12309||_e===12310||_e===12311||_e===12312||_e===12313||_e===12314||_e===12315||_e===12316||_e===12317||_e>=12318&&_e<=12319||_e===12320||_e===12336||_e===64830||_e===64831||_e>=65093&&_e<=65094}function pruneLocation(_e){_e.forEach(function(et){if(delete et.location,isSelectElement(et)||isPluralElement(et))for(var tt in et.options)delete et.options[tt].location,pruneLocation(et.options[tt].value);else isNumberElement(et)&&isNumberSkeleton(et.style)||(isDateElement(et)||isTimeElement(et))&&isDateTimeSkeleton(et.style)?delete et.style.location:isTagElement(et)&&pruneLocation(et.children)})}function parse$f(_e,et){et===void 0&&(et={}),et=__assign$L({shouldParseSkeletons:!0,requiresOtherClause:!0},et);var tt=new Parser$1(_e,et).parse();if(tt.err){var nt=SyntaxError(ErrorKind[tt.err.kind]);throw nt.location=tt.err.location,nt.originalMessage=tt.err.message,nt}return et!=null&&et.captureLocation||pruneLocation(tt.val),tt.val}function memoize$6(_e,et){var tt=et&&et.cache?et.cache:cacheDefault,nt=et&&et.serializer?et.serializer:serializerDefault,at=et&&et.strategy?et.strategy:strategyDefault;return at(_e,{cache:tt,serializer:nt})}function isPrimitive$2(_e){return _e==null||typeof _e=="number"||typeof _e=="boolean"}function monadic(_e,et,tt,nt){var at=isPrimitive$2(nt)?nt:tt(nt),it=et.get(at);return typeof it>"u"&&(it=_e.call(this,nt),et.set(at,it)),it}function variadic(_e,et,tt){var nt=Array.prototype.slice.call(arguments,3),at=tt(nt),it=et.get(at);return typeof it>"u"&&(it=_e.apply(this,nt),et.set(at,it)),it}function assemble(_e,et,tt,nt,at){return tt.bind(et,_e,nt,at)}function strategyDefault(_e,et){var tt=_e.length===1?monadic:variadic;return assemble(_e,this,tt,et.cache.create(),et.serializer)}function strategyVariadic(_e,et){return assemble(_e,this,variadic,et.cache.create(),et.serializer)}function strategyMonadic(_e,et){return assemble(_e,this,monadic,et.cache.create(),et.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(_e){return this.cache[_e]};ObjectWithoutPrototypeCache.prototype.set=function(_e,et){this.cache[_e]=et};var cacheDefault={create:function(){return new ObjectWithoutPrototypeCache}},strategies={variadic:strategyVariadic,monadic:strategyMonadic},ErrorCode$2;(function(_e){_e.MISSING_VALUE="MISSING_VALUE",_e.INVALID_VALUE="INVALID_VALUE",_e.MISSING_INTL_API="MISSING_INTL_API"})(ErrorCode$2||(ErrorCode$2={}));var FormatError=function(_e){__extends$A(et,_e);function et(tt,nt,at){var it=_e.call(this,tt)||this;return it.code=nt,it.originalMessage=at,it}return et.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},et}(Error),InvalidValueError=function(_e){__extends$A(et,_e);function et(tt,nt,at,it){return _e.call(this,'Invalid values for "'.concat(tt,'": "').concat(nt,'". Options are "').concat(Object.keys(at).join('", "'),'"'),ErrorCode$2.INVALID_VALUE,it)||this}return et}(FormatError),InvalidValueTypeError=function(_e){__extends$A(et,_e);function et(tt,nt,at){return _e.call(this,'Value for "'.concat(tt,'" must be of type ').concat(nt),ErrorCode$2.INVALID_VALUE,at)||this}return et}(FormatError),MissingValueError=function(_e){__extends$A(et,_e);function et(tt,nt){return _e.call(this,'The intl string context variable "'.concat(tt,'" was not provided to the string "').concat(nt,'"'),ErrorCode$2.MISSING_VALUE,nt)||this}return et}(FormatError),PART_TYPE;(function(_e){_e[_e.literal=0]="literal",_e[_e.object=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(_e){return _e.length<2?_e:_e.reduce(function(et,tt){var nt=et[et.length-1];return!nt||nt.type!==PART_TYPE.literal||tt.type!==PART_TYPE.literal?et.push(tt):nt.value+=tt.value,et},[])}function isFormatXMLElementFn(_e){return typeof _e=="function"}function formatToParts(_e,et,tt,nt,at,it,ot){if(_e.length===1&&isLiteralElement(_e[0]))return[{type:PART_TYPE.literal,value:_e[0].value}];for(var st=[],ct=0,dt=_e;ct<dt.length;ct++){var ht=dt[ct];if(isLiteralElement(ht)){st.push({type:PART_TYPE.literal,value:ht.value});continue}if(isPoundElement(ht)){typeof it=="number"&&st.push({type:PART_TYPE.literal,value:tt.getNumberFormat(et).format(it)});continue}var pt=ht.value;if(!(at&&pt in at))throw new MissingValueError(pt,ot);var mt=at[pt];if(isArgumentElement(ht)){(!mt||typeof mt=="string"||typeof mt=="number")&&(mt=typeof mt=="string"||typeof mt=="number"?String(mt):""),st.push({type:typeof mt=="string"?PART_TYPE.literal:PART_TYPE.object,value:mt});continue}if(isDateElement(ht)){var vt=typeof ht.style=="string"?nt.date[ht.style]:isDateTimeSkeleton(ht.style)?ht.style.parsedOptions:void 0;st.push({type:PART_TYPE.literal,value:tt.getDateTimeFormat(et,vt).format(mt)});continue}if(isTimeElement(ht)){var vt=typeof ht.style=="string"?nt.time[ht.style]:isDateTimeSkeleton(ht.style)?ht.style.parsedOptions:nt.time.medium;st.push({type:PART_TYPE.literal,value:tt.getDateTimeFormat(et,vt).format(mt)});continue}if(isNumberElement(ht)){var vt=typeof ht.style=="string"?nt.number[ht.style]:isNumberSkeleton(ht.style)?ht.style.parsedOptions:void 0;vt&&vt.scale&&(mt=mt*(vt.scale||1)),st.push({type:PART_TYPE.literal,value:tt.getNumberFormat(et,vt).format(mt)});continue}if(isTagElement(ht)){var bt=ht.children,_t=ht.value,wt=at[_t];if(!isFormatXMLElementFn(wt))throw new InvalidValueTypeError(_t,"function",ot);var Et=formatToParts(bt,et,tt,nt,at,it),St=wt(Et.map(function(Nt){return Nt.value}));Array.isArray(St)||(St=[St]),st.push.apply(st,St.map(function(Nt){return{type:typeof Nt=="string"?PART_TYPE.literal:PART_TYPE.object,value:Nt}}))}if(isSelectElement(ht)){var Tt=ht.options[mt]||ht.options.other;if(!Tt)throw new InvalidValueError(ht.value,mt,Object.keys(ht.options),ot);st.push.apply(st,formatToParts(Tt.value,et,tt,nt,at));continue}if(isPluralElement(ht)){var Tt=ht.options["=".concat(mt)];if(!Tt){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
94
+ */var hasRequiredExenv;function requireExenv(){return hasRequiredExenv||(hasRequiredExenv=1,function(_e){(function(){var et=!!(typeof window<"u"&&window.document&&window.document.createElement),tt={canUseDOM:et,canUseWorkers:typeof Worker<"u",canUseEventListeners:et&&!!(window.addEventListener||window.attachEvent),canUseViewport:et&&!!window.screen};_e.exports?_e.exports=tt:window.ExecutionEnvironment=tt})()}(exenv)),exenv.exports}var hasRequiredEventStack_production;function requireEventStack_production(){if(hasRequiredEventStack_production)return eventStack_production;hasRequiredEventStack_production=1,Object.defineProperty(eventStack_production,"__esModule",{value:!0});var _e=requireExenv(),et=reactExports;function tt(Dt){return(tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kt){return typeof kt}:function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt})(Dt)}function nt(Dt,kt){if(!(Dt instanceof kt))throw new TypeError("Cannot call a class as a function")}function at(Dt,kt){for(var Ft=0;Ft<kt.length;Ft++){var jt=kt[Ft];jt.enumerable=jt.enumerable||!1,jt.configurable=!0,"value"in jt&&(jt.writable=!0),Object.defineProperty(Dt,jt.key,jt)}}function it(Dt,kt,Ft){return kt&&at(Dt.prototype,kt),Ft&&at(Dt,Ft),Dt}function ot(Dt,kt,Ft){return kt in Dt?Object.defineProperty(Dt,kt,{value:Ft,enumerable:!0,configurable:!0,writable:!0}):Dt[kt]=Ft,Dt}function st(Dt,kt){if(typeof kt!="function"&&kt!==null)throw new TypeError("Super expression must either be null or a function");Dt.prototype=Object.create(kt&&kt.prototype,{constructor:{value:Dt,writable:!0,configurable:!0}}),kt&&dt(Dt,kt)}function ct(Dt){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(kt){return kt.__proto__||Object.getPrototypeOf(kt)})(Dt)}function dt(Dt,kt){return(dt=Object.setPrototypeOf||function(Ft,jt){return Ft.__proto__=jt,Ft})(Dt,kt)}function ht(Dt){if(Dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Dt}function pt(Dt,kt){return!kt||typeof kt!="object"&&typeof kt!="function"?ht(Dt):kt}var mt=function(){function Dt(kt){nt(this,Dt),ot(this,"handlers",void 0),this.handlers=kt.slice(0)}return it(Dt,[{key:"addHandlers",value:function(kt){for(var Ft=this.handlers.slice(0),jt=kt.length,Gt=0;Gt<jt;Gt+=1)Ft.push(kt[Gt]);return new Dt(Ft)}},{key:"dispatchEvent",value:function(kt,Ft){var jt=this.handlers.length-1;if(Ft){for(var Gt=jt;Gt>=0;Gt-=1)this.handlers[Gt].called||(this.handlers[Gt].called=!0,this.handlers[Gt](kt));for(var Rt=jt;Rt>=0;Rt-=1)this.handlers[Rt].called=!1}else(0,this.handlers[jt])(kt)}},{key:"hasHandlers",value:function(){return this.handlers.length>0}},{key:"removeHandlers",value:function(kt){for(var Ft=[],jt=this.handlers.length,Gt=0;Gt<jt;Gt+=1){var Rt=this.handlers[Gt];kt.indexOf(Rt)===-1&&Ft.push(Rt)}return new Dt(Ft)}}]),Dt}();function vt(Dt){var kt=new Map;return Dt.forEach(function(Ft,jt){kt.set(jt,Ft)}),kt}function bt(Dt){return Array.isArray(Dt)?Dt:[Dt]}var _t=function(Dt){return Dt!==null&&tt(Dt)==="object"&&Dt.hasOwnProperty("current")};function wt(Dt){return Dt==="document"?document:Dt==="window"?window:_t(Dt)?Dt.current||document:Dt||document}var Et=function(){function Dt(kt,Ft){nt(this,Dt),ot(this,"handlerSets",void 0),ot(this,"poolName",void 0),this.handlerSets=Ft,this.poolName=kt}return it(Dt,[{key:"addHandlers",value:function(kt,Ft){var jt=vt(this.handlerSets);if(jt.has(kt)){var Gt=jt.get(kt);jt.set(kt,Gt.addHandlers(Ft))}else jt.set(kt,new mt(Ft));return new Dt(this.poolName,jt)}},{key:"dispatchEvent",value:function(kt,Ft){var jt=this.handlerSets.get(kt),Gt=this.poolName==="default";jt&&jt.dispatchEvent(Ft,Gt)}},{key:"hasHandlers",value:function(kt){if(!kt)return this.handlerSets.size>0;var Ft=this.handlerSets.get(kt);return!!Ft&&Ft.hasHandlers()}},{key:"removeHandlers",value:function(kt,Ft){var jt=vt(this.handlerSets);if(!jt.has(kt))return new Dt(this.poolName,jt);var Gt=jt.get(kt).removeHandlers(Ft);return Gt.hasHandlers()?jt.set(kt,Gt):jt.delete(kt),new Dt(this.poolName,jt)}}]),Dt}();ot(Et,"createByType",function(Dt,kt,Ft){var jt=new Map;return jt.set(kt,new mt(Ft)),new Et(Dt,jt)});var St=function(){function Dt(kt){var Ft=this;nt(this,Dt),ot(this,"handlers",new Map),ot(this,"pools",new Map),ot(this,"target",void 0),ot(this,"createEmitter",function(jt){return function(Gt){Ft.pools.forEach(function(Rt){Rt.dispatchEvent(jt,Gt)})}}),this.target=kt}return it(Dt,[{key:"addHandlers",value:function(kt,Ft,jt){if(this.pools.has(kt)){var Gt=this.pools.get(kt);this.pools.set(kt,Gt.addHandlers(Ft,jt))}else this.pools.set(kt,Et.createByType(kt,Ft,jt));this.handlers.has(Ft)||this.addTargetHandler(Ft)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(kt,Ft,jt){if(this.pools.has(kt)){var Gt=this.pools.get(kt).removeHandlers(Ft,jt);Gt.hasHandlers()?this.pools.set(kt,Gt):this.pools.delete(kt);var Rt=!1;this.pools.forEach(function(yt){return Rt=Rt||yt.hasHandlers(Ft)}),Rt||this.removeTargetHandler(Ft)}}},{key:"addTargetHandler",value:function(kt){var Ft=this.createEmitter(kt);this.handlers.set(kt,Ft),this.target.addEventListener(kt,Ft,!0)}},{key:"removeTargetHandler",value:function(kt){this.handlers.has(kt)&&(this.target.removeEventListener(kt,this.handlers.get(kt),!0),this.handlers.delete(kt))}}]),Dt}(),Tt=function(){function Dt(){var kt=this;nt(this,Dt),ot(this,"targets",new Map),ot(this,"getTarget",function(Ft){var jt=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],Gt=wt(Ft);if(kt.targets.has(Gt))return kt.targets.get(Gt);if(!jt)return null;var Rt=new St(Gt);return kt.targets.set(Gt,Rt),Rt}),ot(this,"removeTarget",function(Ft){kt.targets.delete(wt(Ft))})}return it(Dt,[{key:"sub",value:function(kt,Ft){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(_e.canUseDOM){var Gt=jt.target,Rt=Gt===void 0?document:Gt,yt=jt.pool,$t=yt===void 0?"default":yt;this.getTarget(Rt).addHandlers($t,kt,bt(Ft))}}},{key:"unsub",value:function(kt,Ft){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(_e.canUseDOM){var Gt=jt.target,Rt=Gt===void 0?document:Gt,yt=jt.pool,$t=yt===void 0?"default":yt,xt=this.getTarget(Rt,!1);xt&&(xt.removeHandlers($t,kt,bt(Ft)),xt.hasHandlers()||this.removeTarget(Rt))}}}]),Dt}(),Ct=new Tt,Nt=function(Dt){function kt(){return nt(this,kt),pt(this,ct(kt).apply(this,arguments))}return st(kt,et.PureComponent),it(kt,[{key:"componentDidMount",value:function(){this.subscribe(this.props)}},{key:"componentDidUpdate",value:function(Ft){this.unsubscribe(Ft),this.subscribe(this.props)}},{key:"componentWillUnmount",value:function(){this.unsubscribe(this.props)}},{key:"subscribe",value:function(Ft){var jt=Ft.name,Gt=Ft.on,Rt=Ft.pool,yt=Ft.target;Ct.sub(jt,Gt,{pool:Rt,target:yt})}},{key:"unsubscribe",value:function(Ft){var jt=Ft.name,Gt=Ft.on,Rt=Ft.pool,yt=Ft.target;Ct.unsub(jt,Gt,{pool:Rt,target:yt})}},{key:"render",value:function(){return null}}]),kt}();return ot(Nt,"defaultProps",{pool:"default",target:"document"}),Nt.propTypes={},eventStack_production.instance=Ct,eventStack_production.default=Nt,eventStack_production}var hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$3.exports;hasRequiredLib$1=1;var _e;return _e=requireEventStack_production(),lib$3.exports=_e.default,lib$3.exports.instance=_e.instance,lib$3.exports}var hasRequiredEventStack;function requireEventStack(){if(hasRequiredEventStack)return eventStack$1;hasRequiredEventStack=1,eventStack$1.__esModule=!0,eventStack$1.default=void 0;var _e=requireLib$1(),et=_e.instance;return eventStack$1.default=et,eventStack$1}var factories={},noop_1,hasRequiredNoop;function requireNoop(){if(hasRequiredNoop)return noop_1;hasRequiredNoop=1;function _e(){}return noop_1=_e,noop_1}var _createSet,hasRequired_createSet;function require_createSet(){if(hasRequired_createSet)return _createSet;hasRequired_createSet=1;var _e=_Set,et=requireNoop(),tt=require_setToArray(),nt=1/0,at=_e&&1/tt(new _e([,-0]))[1]==nt?function(it){return new _e(it)}:et;return _createSet=at,_createSet}var _baseUniq,hasRequired_baseUniq;function require_baseUniq(){if(hasRequired_baseUniq)return _baseUniq;hasRequired_baseUniq=1;var _e=require_SetCache(),et=require_arrayIncludes(),tt=require_arrayIncludesWith(),nt=require_cacheHas(),at=require_createSet(),it=require_setToArray(),ot=200;function st(ct,dt,ht){var pt=-1,mt=et,vt=ct.length,bt=!0,_t=[],wt=_t;if(ht)bt=!1,mt=tt;else if(vt>=ot){var Et=dt?null:at(ct);if(Et)return it(Et);bt=!1,mt=nt,wt=new _e}else wt=dt?[]:_t;e:for(;++pt<vt;){var St=ct[pt],Tt=dt?dt(St):St;if(St=ht||St!==0?St:0,bt&&Tt===Tt){for(var Ct=wt.length;Ct--;)if(wt[Ct]===Tt)continue e;dt&&wt.push(Tt),_t.push(St)}else mt(wt,Tt,ht)||(wt!==_t&&wt.push(Tt),_t.push(St))}return _t}return _baseUniq=st,_baseUniq}var uniq_1,hasRequiredUniq;function requireUniq(){if(hasRequiredUniq)return uniq_1;hasRequiredUniq=1;var _e=require_baseUniq();function et(tt){return tt&&tt.length?_e(tt):[]}return uniq_1=et,uniq_1}var isNumber_1,hasRequiredIsNumber;function requireIsNumber(){if(hasRequiredIsNumber)return isNumber_1;hasRequiredIsNumber=1;var _e=require_baseGetTag(),et=isObjectLike_1,tt="[object Number]";function nt(at){return typeof at=="number"||et(at)&&_e(at)==tt}return isNumber_1=nt,isNumber_1}var isString_1,hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var _e=require_baseGetTag(),et=isArray_1,tt=isObjectLike_1,nt="[object String]";function at(it){return typeof it=="string"||!et(it)&&tt(it)&&_e(it)==nt}return isString_1=at,isString_1}var isBoolean_1,hasRequiredIsBoolean;function requireIsBoolean(){if(hasRequiredIsBoolean)return isBoolean_1;hasRequiredIsBoolean=1;var _e=require_baseGetTag(),et=isObjectLike_1,tt="[object Boolean]";function nt(at){return at===!0||at===!1||et(at)&&_e(at)==tt}return isBoolean_1=nt,isBoolean_1}var hasRequiredFactories;function requireFactories(){if(hasRequiredFactories)return factories;hasRequiredFactories=1;var _e=requireInteropRequireWildcard(),et=interopRequireDefaultExports;factories.__esModule=!0,factories.createShorthand=vt,factories.createShorthandFactory=bt,factories.createHTMLParagraph=factories.createHTMLLabel=factories.createHTMLInput=factories.createHTMLImage=factories.createHTMLIframe=factories.createHTMLDivision=void 0;var tt=et(require_extends()),nt=et(requireUniq()),at=et(isArray_1),it=et(requireIsPlainObject()),ot=et(requireIsFunction()),st=et(requireIsNumber()),ct=et(requireIsString()),dt=et(requireIsBoolean()),ht=et(requireIsNil()),pt=et(require$$0$6),mt=_e(reactExports);function vt(Nt,Dt,kt,Ft){if(Ft===void 0&&(Ft={}),typeof Nt!="function"&&typeof Nt!="string")throw new Error("createShorthand() Component must be a string or function.");if((0,ht.default)(kt)||(0,dt.default)(kt))return null;var jt=(0,ct.default)(kt),Gt=(0,st.default)(kt),Rt=(0,ot.default)(kt),yt=mt.isValidElement(kt),$t=(0,it.default)(kt),xt=jt||Gt||(0,at.default)(kt);if(!Rt&&!yt&&!$t&&!xt)return null;var At=Ft,Mt=At.defaultProps,It=Mt===void 0?{}:Mt,Lt=yt&&kt.props||$t&&kt||xt&&Dt(kt),Ot=Ft,gt=Ot.overrideProps,Pt=gt===void 0?{}:gt;Pt=(0,ot.default)(Pt)?Pt((0,tt.default)({},It,Lt)):Pt;var Bt=(0,tt.default)({},It,Lt,Pt);if(It.className||Pt.className||Lt.className){var Ut=(0,pt.default)(It.className,Pt.className,Lt.className);Bt.className=(0,nt.default)(Ut.split(" ")).join(" ")}if((It.style||Pt.style||Lt.style)&&(Bt.style=(0,tt.default)({},It.style,Lt.style,Pt.style)),(0,ht.default)(Bt.key)){var Ht=Bt.childKey,qt=Ft,Vt=qt.autoGenerateKey,zt=Vt===void 0?!0:Vt;(0,ht.default)(Ht)?zt&&(jt||Gt)&&(Bt.key=kt):(Bt.key=typeof Ht=="function"?Ht(Bt):Ht,delete Bt.childKey)}if(yt)return mt.cloneElement(kt,Bt);if(typeof Bt.children=="function")return Bt.children(Nt,(0,tt.default)({},Bt,{children:void 0}));if(xt||$t)return mt.createElement(Nt,Bt);if(Rt)return kt(Nt,Bt,Bt.children)}function bt(Nt,Dt){if(typeof Nt!="function"&&typeof Nt!="string")throw new Error("createShorthandFactory() Component must be a string or function.");return function(kt,Ft){return vt(Nt,Dt,kt,Ft)}}var _t=bt("div",function(Nt){return{children:Nt}});factories.createHTMLDivision=_t;var wt=bt("iframe",function(Nt){return{src:Nt}});factories.createHTMLIframe=wt;var Et=bt("img",function(Nt){return{src:Nt}});factories.createHTMLImage=Et;var St=bt("input",function(Nt){return{type:Nt}});factories.createHTMLInput=St;var Tt=bt("label",function(Nt){return{children:Nt}});factories.createHTMLLabel=Tt;var Ct=bt("p",function(Nt){return{children:Nt}});return factories.createHTMLParagraph=Ct,factories}var getUnhandledProps$2={},hasRequiredGetUnhandledProps;function requireGetUnhandledProps(){if(hasRequiredGetUnhandledProps)return getUnhandledProps$2;hasRequiredGetUnhandledProps=1,getUnhandledProps$2.__esModule=!0,getUnhandledProps$2.default=void 0;var _e=function(nt,at){var it=nt.handledProps,ot=it===void 0?[]:it;return Object.keys(at).reduce(function(st,ct){return ct==="childKey"||ot.indexOf(ct)===-1&&(st[ct]=at[ct]),st},{})},et=_e;return getUnhandledProps$2.default=et,getUnhandledProps$2}var getElementType$1={},hasRequiredGetElementType;function requireGetElementType(){if(hasRequiredGetElementType)return getElementType$1;hasRequiredGetElementType=1,getElementType$1.__esModule=!0,getElementType$1.default=void 0;function _e(tt,nt,at){var it=tt.defaultProps,ot=it===void 0?{}:it;if(nt.as&&nt.as!==ot.as)return nt.as;if(at){var st=at();if(st)return st}return nt.href?"a":ot.as||"div"}var et=_e;return getElementType$1.default=et,getElementType$1}var htmlPropsUtils={},_baseValues,hasRequired_baseValues;function require_baseValues(){if(hasRequired_baseValues)return _baseValues;hasRequired_baseValues=1;var _e=_arrayMap;function et(tt,nt){return _e(nt,function(at){return tt[at]})}return _baseValues=et,_baseValues}var values_1,hasRequiredValues;function requireValues(){if(hasRequiredValues)return values_1;hasRequiredValues=1;var _e=require_baseValues(),et=requireKeys();function tt(nt){return nt==null?[]:_e(nt,et(nt))}return values_1=tt,values_1}var includes_1,hasRequiredIncludes;function requireIncludes(){if(hasRequiredIncludes)return includes_1;hasRequiredIncludes=1;var _e=require_baseIndexOf(),et=requireIsArrayLike(),tt=requireIsString(),nt=toInteger_1,at=requireValues(),it=Math.max;function ot(st,ct,dt,ht){st=et(st)?st:at(st),dt=dt&&!ht?nt(dt):0;var pt=st.length;return dt<0&&(dt=it(pt+dt,0)),tt(st)?dt<=pt&&st.indexOf(ct,dt)>-1:!!pt&&_e(st,ct,dt)>-1}return includes_1=ot,includes_1}var hasRequiredHtmlPropsUtils;function requireHtmlPropsUtils(){if(hasRequiredHtmlPropsUtils)return htmlPropsUtils;hasRequiredHtmlPropsUtils=1;var _e=interopRequireDefaultExports;htmlPropsUtils.__esModule=!0,htmlPropsUtils.partitionHTMLProps=htmlPropsUtils.htmlImageProps=htmlPropsUtils.htmlInputProps=htmlPropsUtils.htmlInputEvents=htmlPropsUtils.htmlInputAttrs=void 0;var et=_e(requireIncludes()),tt=_e(requireForEach()),nt=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","enterKeyHint","form","id","inputMode","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"];htmlPropsUtils.htmlInputAttrs=nt;var at=["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"];htmlPropsUtils.htmlInputEvents=at;var it=[].concat(nt,at);htmlPropsUtils.htmlInputProps=it;var ot=["alt","height","src","srcSet","width","loading"];htmlPropsUtils.htmlImageProps=ot;var st=function(dt,ht){ht===void 0&&(ht={});var pt=ht,mt=pt.htmlProps,vt=mt===void 0?it:mt,bt=pt.includeAria,_t=bt===void 0?!0:bt,wt={},Et={};return(0,tt.default)(dt,function(St,Tt){var Ct=_t&&(/^aria-.*$/.test(Tt)||Tt==="role"),Nt=(0,et.default)(vt,Tt)||Ct?wt:Et;Nt[Tt]=St}),[wt,Et]};return htmlPropsUtils.partitionHTMLProps=st,htmlPropsUtils}var isBrowser$2={},hasRequiredIsBrowser;function requireIsBrowser(){if(hasRequiredIsBrowser)return isBrowser$2;hasRequiredIsBrowser=1;var _e=interopRequireDefaultExports;isBrowser$2.__esModule=!0,isBrowser$2.default=void 0;var et=_e(requireIsNil()),tt=typeof document=="object"&&document!==null,nt=typeof window=="object"&&window!==null&&window.self===window,at=function ot(){return(0,et.default)(ot.override)?tt&&nt:ot.override},it=at;return isBrowser$2.default=it,isBrowser$2}var doesNodeContainClick$2={},_baseInRange,hasRequired_baseInRange;function require_baseInRange(){if(hasRequired_baseInRange)return _baseInRange;hasRequired_baseInRange=1;var _e=Math.max,et=Math.min;function tt(nt,at,it){return nt>=et(at,it)&&nt<_e(at,it)}return _baseInRange=tt,_baseInRange}var inRange_1,hasRequiredInRange;function requireInRange(){if(hasRequiredInRange)return inRange_1;hasRequiredInRange=1;var _e=require_baseInRange(),et=toFinite_1,tt=requireToNumber();function nt(at,it,ot){return it=et(it),ot===void 0?(ot=it,it=0):ot=et(ot),at=tt(at),_e(at,it,ot)}return inRange_1=nt,inRange_1}var head_1,hasRequiredHead;function requireHead(){if(hasRequiredHead)return head_1;hasRequiredHead=1;function _e(et){return et&&et.length?et[0]:void 0}return head_1=_e,head_1}var first$1,hasRequiredFirst;function requireFirst(){return hasRequiredFirst||(hasRequiredFirst=1,first$1=requireHead()),first$1}var hasRequiredDoesNodeContainClick;function requireDoesNodeContainClick(){if(hasRequiredDoesNodeContainClick)return doesNodeContainClick$2;hasRequiredDoesNodeContainClick=1;var _e=interopRequireDefaultExports;doesNodeContainClick$2.__esModule=!0,doesNodeContainClick$2.default=void 0;var et=_e(requireInRange()),tt=_e(requireFirst()),nt=_e(requireInvoke()),at=_e(requireIsNil()),it=_e(requireSome()),ot=function(dt,ht){if((0,it.default)([ht,dt],at.default))return!1;if(ht.target&&((0,nt.default)(ht.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return(0,nt.default)(ht.target,"removeAttribute","data-suir-click-target"),dt.contains(ht.target);var pt=ht.clientX,mt=ht.clientY;if((0,it.default)([pt,mt],at.default))return!1;var vt=dt.getClientRects();if(!dt.offsetWidth||!dt.offsetHeight||!vt||!vt.length)return!1;var bt=(0,tt.default)(vt),_t=bt.top,wt=bt.bottom,Et=bt.left,St=bt.right;return(0,it.default)([_t,wt,Et,St],at.default)?!1:(0,et.default)(mt,_t,wt+.001)&&(0,et.default)(pt,Et,St+.001)},st=ot;return doesNodeContainClick$2.default=st,doesNodeContainClick$2}var createPaginationItems$3={},createPaginationItems$2={},itemFactories={},hasRequiredItemFactories;function requireItemFactories(){if(hasRequiredItemFactories)return itemFactories;hasRequiredItemFactories=1,itemFactories.__esModule=!0,itemFactories.createLastItem=itemFactories.createNextItem=itemFactories.createPageFactory=itemFactories.createPrevItem=itemFactories.createFirstPage=itemFactories.createEllipsisItem=void 0;var _e=function(st){return{active:!1,type:"ellipsisItem",value:st}};itemFactories.createEllipsisItem=_e;var et=function(){return{active:!1,type:"firstItem",value:1}};itemFactories.createFirstPage=et;var tt=function(st){return{active:!1,type:"prevItem",value:Math.max(1,st-1)}};itemFactories.createPrevItem=tt;var nt=function(st){return function(ct){return{active:st===ct,type:"pageItem",value:ct}}};itemFactories.createPageFactory=nt;var at=function(st,ct){return{active:!1,type:"nextItem",value:Math.min(st+1,ct)}};itemFactories.createNextItem=at;var it=function(st){return{active:!1,type:"lastItem",value:st}};return itemFactories.createLastItem=it,itemFactories}var rangeFactories={},_baseRange,hasRequired_baseRange;function require_baseRange(){if(hasRequired_baseRange)return _baseRange;hasRequired_baseRange=1;var _e=Math.ceil,et=Math.max;function tt(nt,at,it,ot){for(var st=-1,ct=et(_e((at-nt)/(it||1)),0),dt=Array(ct);ct--;)dt[ot?ct:++st]=nt,nt+=it;return dt}return _baseRange=tt,_baseRange}var _createRange,hasRequired_createRange;function require_createRange(){if(hasRequired_createRange)return _createRange;hasRequired_createRange=1;var _e=require_baseRange(),et=require_isIterateeCall(),tt=toFinite_1;function nt(at){return function(it,ot,st){return st&&typeof st!="number"&&et(it,ot,st)&&(ot=st=void 0),it=tt(it),ot===void 0?(ot=it,it=0):ot=tt(ot),st=st===void 0?it<ot?1:-1:tt(st),_e(it,ot,st,at)}}return _createRange=nt,_createRange}var range_1,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range_1;hasRequiredRange=1;var _e=require_createRange(),et=_e();return range_1=et,range_1}var suffixFactories={},hasRequiredSuffixFactories;function requireSuffixFactories(){if(hasRequiredSuffixFactories)return suffixFactories;hasRequiredSuffixFactories=1,suffixFactories.__esModule=!0,suffixFactories.createInnerSuffix=suffixFactories.createInnerPrefix=void 0;var _e=requireItemFactories(),et=function(at,it,ot){var st=it-1,ct=st!==at+1,dt=ct?_e.createEllipsisItem:ot;return dt(st)};suffixFactories.createInnerPrefix=et;var tt=function(at,it,ot){var st=at+1,ct=st!==it-1,dt=ct?_e.createEllipsisItem:ot;return dt(st)};return suffixFactories.createInnerSuffix=tt,suffixFactories}var hasRequiredRangeFactories;function requireRangeFactories(){if(hasRequiredRangeFactories)return rangeFactories;hasRequiredRangeFactories=1;var _e=interopRequireDefaultExports;rangeFactories.__esModule=!0,rangeFactories.createComplexRange=rangeFactories.createSimpleRange=void 0;var et=_e(requireRange()),tt=_e(requireMap()),nt=requireSuffixFactories(),at=function(st,ct,dt){return(0,tt.default)((0,et.default)(st,ct+1),dt)};rangeFactories.createSimpleRange=at;var it=function(st,ct){var dt=st.activePage,ht=st.boundaryRange,pt=st.hideEllipsis,mt=st.siblingRange,vt=st.totalPages,bt=pt?0:1,_t=ht,wt=at(1,_t,ct),Et=vt+1-ht,St=at(Et,vt,ct),Tt=Math.min(Math.max(dt-mt,_t+bt+1),Et-bt-2*mt-1),Ct=Tt+2*mt,Nt=at(Tt,Ct,ct);return[].concat(wt,[!pt&&(0,nt.createInnerPrefix)(_t,Tt,ct)],Nt,[!pt&&(0,nt.createInnerSuffix)(Ct,Et,ct)],St).filter(Boolean)};return rangeFactories.createComplexRange=it,rangeFactories}var paginationUtils={},hasRequiredPaginationUtils;function requirePaginationUtils(){if(hasRequiredPaginationUtils)return paginationUtils;hasRequiredPaginationUtils=1,paginationUtils.__esModule=!0,paginationUtils.typifyOptions=paginationUtils.isSimplePagination=void 0;var _e=function(nt){var at=nt.boundaryRange,it=nt.hideEllipsis,ot=nt.siblingRange,st=nt.totalPages,ct=2*at,dt=it?0:2,ht=2*ot;return 1+dt+ht+ct>=st};paginationUtils.isSimplePagination=_e;var et=function(nt){var at=nt.activePage,it=nt.boundaryRange,ot=nt.hideEllipsis,st=nt.siblingRange,ct=nt.totalPages;return{activePage:+at,boundaryRange:+it,hideEllipsis:!!ot,siblingRange:+st,totalPages:+ct}};return paginationUtils.typifyOptions=et,paginationUtils}var hasRequiredCreatePaginationItems$1;function requireCreatePaginationItems$1(){if(hasRequiredCreatePaginationItems$1)return createPaginationItems$2;hasRequiredCreatePaginationItems$1=1,createPaginationItems$2.__esModule=!0,createPaginationItems$2.default=void 0;var _e=requireItemFactories(),et=requireRangeFactories(),tt=requirePaginationUtils(),nt=function(ot){var st=(0,tt.typifyOptions)(ot),ct=st.activePage,dt=st.totalPages,ht=(0,_e.createPageFactory)(ct),pt=(0,tt.isSimplePagination)(st)?(0,et.createSimpleRange)(1,dt,ht):(0,et.createComplexRange)(st,ht);return[(0,_e.createFirstPage)(),(0,_e.createPrevItem)(ct)].concat(pt,[(0,_e.createNextItem)(ct,dt),(0,_e.createLastItem)(dt)])},at=nt;return createPaginationItems$2.default=at,createPaginationItems$2}var hasRequiredCreatePaginationItems;function requireCreatePaginationItems(){if(hasRequiredCreatePaginationItems)return createPaginationItems$3;hasRequiredCreatePaginationItems=1;var _e=interopRequireDefaultExports;createPaginationItems$3.__esModule=!0;var et=_e(requireCreatePaginationItems$1());return createPaginationItems$3.default=et.default,createPaginationItems$3}var SUI={},hasRequiredSUI;function requireSUI(){if(hasRequiredSUI)return SUI;hasRequiredSUI=1;var _e=interopRequireDefaultExports;SUI.__esModule=!0,SUI.ALL_ICONS_IN_ALL_CONTEXTS=SUI.COMPONENT_CONTEXT_SPECIFIC_ICONS=SUI.ICONS_AND_ALIASES=SUI.ICON_ALIASES=SUI.ICONS=SUI.BRANDS=SUI.WRITING=SUI.VEHICLES=SUI.USERS_PEOPLE=SUI.STATUS=SUI.SPORTS=SUI.SPINNERS=SUI.SHAPES=SUI.PAYMENTS_SHOPPING=SUI.OBJECTS=SUI.MEDICAL=SUI.MAPS=SUI.LOGISTICS=SUI.INTERFACES=SUI.IMAGES=SUI.HEALTH=SUI.HANDS_GESTURES=SUI.GENDERS=SUI.FILES=SUI.EDITORS=SUI.DESIGN=SUI.DATE_TIME=SUI.CURRENCY=SUI.COMPUTERS=SUI.COMMUNICATION=SUI.CODE=SUI.CHESS=SUI.BUSINESS=SUI.AUDIO_VIDEO=SUI.ARROWS=SUI.ACCESSIBILITY=SUI.TRANSITIONS=SUI.STATIC_TRANSITIONS=SUI.DIRECTIONAL_TRANSITIONS=SUI.WIDTHS=SUI.VISIBILITY=SUI.VERTICAL_ALIGNMENTS=SUI.TEXT_ALIGNMENTS=SUI.SIZES=SUI.FLOATS=SUI.COLORS=void 0;var et=_e(requireUniq()),tt=_e(requireValues()),nt=_e(requireKeys()),at=requireNumberToWord(),it=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","black"];SUI.COLORS=it;var ot=["left","right"];SUI.FLOATS=ot;var st=["mini","tiny","small","medium","large","big","huge","massive"];SUI.SIZES=st;var ct=["left","center","right","justified"];SUI.TEXT_ALIGNMENTS=ct;var dt=["bottom","middle","top"];SUI.VERTICAL_ALIGNMENTS=dt;var ht=["mobile","tablet","computer","large screen","widescreen"];SUI.VISIBILITY=ht;var pt=[].concat((0,nt.default)(at.numberToWordMap),(0,nt.default)(at.numberToWordMap).map(Number),(0,tt.default)(at.numberToWordMap));SUI.WIDTHS=pt;var mt=["browse","browse right","drop","fade","fade up","fade down","fade left","fade right","fly up","fly down","fly left","fly right","horizontal flip","vertical flip","scale","slide up","slide down","slide left","slide right","swing up","swing down","swing left","swing right","zoom"];SUI.DIRECTIONAL_TRANSITIONS=mt;var vt=["jiggle","flash","shake","pulse","tada","bounce","glow"];SUI.STATIC_TRANSITIONS=vt;var bt=[].concat(mt,vt);SUI.TRANSITIONS=bt;var _t=["american sign language interpreting","assistive listening systems","audio description","blind","braille","closed captioning","closed captioning outline","deaf","low vision","phone volume","question circle","question circle outline","sign language","tty","universal access","wheelchair"];SUI.ACCESSIBILITY=_t;var wt=["angle double down","angle double left","angle double right","angle double up","angle down","angle left","angle right","angle up","arrow alternate circle down","arrow alternate circle down outline","arrow alternate circle left","arrow alternate circle left outline","arrow alternate circle right","arrow alternate circle right outline","arrow alternate circle up","arrow alternate circle up outline","arrow circle down","arrow circle left","arrow circle right","arrow circle up","arrow down","arrow left","arrow right","arrow up","arrows alternate","arrows alternate horizontal","arrows alternate vertical","caret down","caret left","caret right","caret square down","caret square down outline","caret square left","caret square left outline","caret square right","caret square right outline","caret square up","caret square up outline","caret up","cart arrow down","chart line","chevron circle down","chevron circle left","chevron circle right","chevron circle up","chevron down","chevron left","chevron right","chevron up","cloud download","cloud upload","download","exchange","expand arrows alternate","external alternate","external square alternate","hand point down","hand point down outline","hand point left","hand point left outline","hand point right","hand point right outline","hand point up","hand point up outline","hand pointer","hand pointer outline","history","level down alternate","level up alternate","location arrow","long arrow alternate down","long arrow alternate left","long arrow alternate right","long arrow alternate up","mouse pointer","play","random","recycle","redo","redo alternate","reply","reply all","retweet","share","share square","share square outline","sign-in","sign-out","sign-in alternate","sign-out alternate","sort","sort alphabet down","sort alphabet up","sort amount down","sort amount up","sort down","sort numeric down","sort numeric up","sort up","sync","sync alternate","text height","text width","undo","undo alternate","upload","zoom-in","zoom-out"];SUI.ARROWS=wt;var Et=["audio description","backward","circle","circle outline","closed captioning","closed captioning outline","compress","eject","expand","expand arrows alternate","fast backward","fast forward","file audio","file audio outline","file video","file video outline","film","forward","headphones","microphone","microphone slash","music","pause","pause circle","pause circle outline","phone volume","play","play circle","play circle outline","podcast","random","redo","redo alternate","rss","rss square","step backward","step forward","stop","stop circle","stop circle outline","sync","sync alternate","undo","undo alternate","video","volume down","volume off","volume up"];SUI.AUDIO_VIDEO=Et;var St=["address book","address book outline","address card","address card outline","archive","balance scale","birthday cake","book","briefcase","building","building outline","bullhorn","bullseye","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","certificate","chart area","chart bar","chart bar outline","chart line","chart pie","clipboard","clipboard outline","coffee","columns","compass","compass outline","copy","copy outline","copyright","copyright outline","cut","edit","edit outline","envelope","envelope outline","envelope open","envelope open outline","envelope square","eraser","fax","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","globe","industry","paperclip","paste","pen square","pencil alternate","percent","phone","phone square","phone volume","registered","registered outline","save","save outline","sitemap","sticky note","sticky note outline","suitcase","table","tag","tags","tasks","thumbtack","trademark"];SUI.BUSINESS=St;var Tt=["chess","chess bishop","chess board","chess king","chess knight","chess pawn","chess queen","chess rook","square full"];SUI.CHESS=Tt;var Ct=["archive","barcode","bath","bug","code","code branch","coffee","file","file outline","file alternate","file alternate outline","file code","file code outline","filter","fire extinguisher","folder","folder outline","folder open","folder open outline","keyboard","keyboard outline","microchip","qrcode","shield alternate","sitemap","terminal","user secret","window close","window close outline","window maximize","window maximize outline","window minimize","window minimize outline","window restore","window restore outline"];SUI.CODE=Ct;var Nt=["address book","address book outline","address card","address card outline","american sign language interpreting","assistive listening systems","at","bell","bell outline","bell slash","bell slash outline","bullhorn","comment","comment outline","comment alternate","comment alternate outline","comments","comments outline","envelope","envelope outline","envelope open","envelope open outline","envelope square","fax","inbox","language","microphone","microphone slash","mobile","mobile alternate","paper plane","paper plane outline","phone","phone square","phone volume","rss","rss square","tty","wifi"];SUI.COMMUNICATION=Nt;var Dt=["desktop","download","hdd","hdd outline","headphones","keyboard","keyboard outline","laptop","microchip","mobile","mobile alternate","plug","power off","print","save","save outline","server","tablet","tablet alternate","tv","upload"];SUI.COMPUTERS=Dt;var kt=["dollar sign","euro sign","lira sign","money bill alternate","money bill alternate outline","pound sign","ruble sign","rupee sign","shekel sign","won sign","yen sign"];SUI.CURRENCY=kt;var Ft=["bell","bell outline","bell slash","bell slash outline","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","clock","clock outline","hourglass","hourglass outline","hourglass end","hourglass half","hourglass start","stopwatch"];SUI.DATE_TIME=Ft;var jt=["adjust","clone","clone outline","copy","copy outline","crop","crosshairs","cut","edit","edit outline","eraser","eye","eye dropper","eye slash","eye slash outline","object group","object group outline","object ungroup","object ungroup outline","paint brush","paste","pencil alternate","save","save outline","tint"];SUI.DESIGN=jt;var Gt=["align center","align justify","align left","align right","bold","clipboard","clipboard outline","clone","clone outline","columns","copy","copy outline","cut","edit","edit outline","eraser","file","file outline","file alternate","file alternate outline","font","heading","i cursor","indent","italic","linkify","list","list alternate","list alternate outline","list ol","list ul","outdent","paper plane","paper plane outline","paperclip","paragraph","paste","pencil alternate","print","quote left","quote right","redo","redo alternate","reply","reply all","share","strikethrough","subscript","superscript","sync","sync alternate","table","tasks","text height","text width","th","th large","th list","trash","trash alternate","trash alternate outline","underline","undo","undo alternate","unlink"];SUI.EDITORS=Gt;var Rt=["archive","clone","clone outline","copy","copy outline","cut","file","file outline","file alternate","file alternate outline","file archive","file archive outline","file audio","file audio outline","file code","file code outline","file excel","file excel outline","file image","file image outline","file pdf","file pdf outline","file powerpoint","file powerpoint outline","file video","file video outline","file word","file word outline","folder","folder outline","folder open","folder open outline","paste","save","save outline","sticky note","sticky note outline"];SUI.FILES=Rt;var yt=["genderless","mars","mars double","mars stroke","mars stroke horizontal","mars stroke vertical","mercury","neuter","transgender","transgender alternate","venus","venus double","venus mars"];SUI.GENDERS=yt;var $t=["hand lizard","hand lizard outline","hand paper","hand paper outline","hand peace","hand peace outline","hand point down","hand point down outline","hand point left","hand point left outline","hand point right","hand point right outline","hand point up","hand point up outline","hand pointer","hand pointer outline","hand rock","hand rock outline","hand scissors","hand scissors outline","hand spock","hand spock outline","handshake","handshake outline","thumbs down","thumbs down outline","thumbs up","thumbs up outline"];SUI.HANDS_GESTURES=$t;var xt=["ambulance","h square","heart","heart outline","heartbeat","hospital","hospital outline","medkit","plus square","plus square outline","stethoscope","user md","wheelchair"];SUI.HEALTH=xt;var At=["adjust","bolt","camera","camera retro","clone","clone outline","compress","expand","eye","eye dropper","eye slash","eye slash outline","file image","file image outline","film","id badge","id badge outline","id card","id card outline","image","image outline","images","images outline","sliders horizontal","tint"];SUI.IMAGES=At;var Mt=["ban","barcode","bars","beer","bell","bell outline","bell slash","bell slash outline","bug","bullhorn","bullseye","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","certificate","check","check circle","check circle outline","check square","check square outline","circle","circle outline","clipboard","clipboard outline","clone","clone outline","cloud","cloud download","cloud upload","coffee","cog","cogs","copy","copy outline","cut","database","dot circle","dot circle outline","download","edit","edit outline","ellipsis horizontal","ellipsis vertical","envelope","envelope outline","envelope open","envelope open outline","eraser","exclamation","exclamation circle","exclamation triangle","external alternate","external square alternate","eye","eye slash","eye slash outline","file","file outline","file alternate","file alternate outline","filter","flag","flag outline","flag checkered","folder","folder outline","folder open","folder open outline","frown","frown outline","hashtag","heart","heart outline","history","home","i cursor","info","info circle","language","magic","meh","meh outline","microphone","microphone slash","minus","minus circle","minus square","minus square outline","paste","pencil alternate","plus","plus circle","plus square","plus square outline","qrcode","question","question circle","question circle outline","quote left","quote right","redo","redo alternate","reply","reply all","rss","rss square","save","save outline","search","search minus","search plus","share","share alternate","share alternate square","share square","share square outline","shield alternate","sign-in","sign-out","signal","sitemap","sliders horizontal","smile","smile outline","sort","sort alphabet down","sort alphabet up","sort amount down","sort amount up","sort down","sort numeric down","sort numeric up","sort up","star","star outline","star half","star half outline","sync","sync alternate","thumbs down","thumbs down outline","thumbs up","thumbs up outline","times","times circle","times circle outline","toggle off","toggle on","trash","trash alternate","trash alternate outline","trophy","undo","undo alternate","upload","user","user outline","user circle","user circle outline","wifi"];SUI.INTERFACES=Mt;var It=["box","boxes","clipboard check","clipboard list","dolly","dolly flatbed","pallet","shipping fast","truck","warehouse"];SUI.LOGISTICS=It;var Lt=["ambulance","anchor","balance scale","bath","bed","beer","bell","bell outline","bell slash","bell slash outline","bicycle","binoculars","birthday cake","blind","bomb","book","bookmark","bookmark outline","briefcase","building","building outline","car","coffee","crosshairs","dollar sign","eye","eye slash","eye slash outline","fighter jet","fire","fire extinguisher","flag","flag outline","flag checkered","flask","gamepad","gavel","gift","glass martini","globe","graduation cap","h square","heart","heart outline","heartbeat","home","hospital","hospital outline","image","image outline","images","images outline","industry","info","info circle","key","leaf","lemon","lemon outline","life ring","life ring outline","lightbulb","lightbulb outline","location arrow","low vision","magnet","male","map","map outline","map marker","map marker alternate","map pin","map signs","medkit","money bill alternate","money bill alternate outline","motorcycle","music","newspaper","newspaper outline","paw","phone","phone square","phone volume","plane","plug","plus","plus square","plus square outline","print","recycle","road","rocket","search","search minus","search plus","ship","shopping bag","shopping basket","shopping cart","shower","street view","subway","suitcase","tag","tags","taxi","thumbtack","ticket alternate","tint","train","tree","trophy","truck","tty","umbrella","university","utensil spoon","utensils","wheelchair","wifi","wrench"];SUI.MAPS=Lt;var Ot=["ambulance","band aid","dna","first aid","heart","heart outline","heartbeat","hospital","hospital outline","hospital symbol","pills","plus","stethoscope","syringe","thermometer","user md","weight"];SUI.MEDICAL=Ot;var gt=["ambulance","anchor","archive","balance scale","bath","bed","beer","bell","bell outline","bicycle","binoculars","birthday cake","bomb","book","bookmark","bookmark outline","briefcase","bug","building","building outline","bullhorn","bullseye","bus","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","camera","camera retro","car","clipboard","clipboard outline","cloud","coffee","cog","cogs","compass","compass outline","copy","copy outline","cube","cubes","cut","envelope","envelope outline","envelope open","envelope open outline","eraser","eye","eye dropper","fax","fighter jet","file","file outline","file alternate","file alternate outline","film","fire","fire extinguisher","flag","flag outline","flag checkered","flask","futbol","futbol outline","gamepad","gavel","gem","gem outline","gift","glass martini","globe","graduation cap","hdd","hdd outline","headphones","heart","heart outline","home","hospital","hospital outline","hourglass","hourglass outline","image","image outline","images","images outline","industry","key","keyboard","keyboard outline","laptop","leaf","lemon","lemon outline","life ring","life ring outline","lightbulb","lightbulb outline","lock","lock open","magic","magnet","map","map outline","map marker","map marker alternate","map pin","map signs","medkit","microchip","microphone","mobile","mobile alternate","money bill alternate","money bill alternate outline","moon","moon outline","motorcycle","newspaper","newspaper outline","paint brush","paper plane","paper plane outline","paperclip","paste","paw","pencil alternate","phone","plane","plug","print","puzzle piece","road","rocket","save","save outline","search","shield alternate","shopping bag","shopping basket","shopping cart","shower","snowflake","snowflake outline","space shuttle","star","star outline","sticky note","sticky note outline","stopwatch","subway","suitcase","sun","sun outline","tablet","tablet alternate","tachometer alternate","tag","tags","taxi","thumbtack","ticket alternate","train","trash","trash alternate","trash alternate outline","tree","trophy","truck","tv","umbrella","university","unlock","unlock alternate","utensil spoon","utensils","wheelchair","wrench"];SUI.OBJECTS=gt;var Pt=["bell","bell outline","bookmark","bookmark outline","bullhorn","camera","camera retro","cart arrow down","cart plus","certificate","credit card","credit card outline","gem","gem outline","gift","handshake","handshake outline","heart","heart outline","key","shopping bag","shopping basket","shopping cart","star","star outline","tag","tags","thumbs down","thumbs down outline","thumbs up","thumbs up outline","trophy"];SUI.PAYMENTS_SHOPPING=Pt;var Bt=["bookmark","bookmark outline","calendar","calendar outline","certificate","circle","circle outline","cloud","comment","comment outline","file","file outline","folder","folder outline","heart","heart outline","map marker","play","square","square outline","star","star outline"];SUI.SHAPES=Bt;var Ut=["asterisk","certificate","circle notch","cog","compass","compass outline","crosshairs","life ring","life ring outline","snowflake","snowflake outline","spinner","sun","sun outline","sync"];SUI.SPINNERS=Ut;var Ht=["baseball ball","basketball ball","bowling ball","football ball","futbol","futbol outline","golf ball","hockey puck","quidditch","table tennis","volleyball ball"];SUI.SPORTS=Ht;var qt=["ban","battery empty","battery full","battery half","battery quarter","battery three quarters","bell","bell outline","bell slash","bell slash outline","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","cart arrow down","cart plus","exclamation","exclamation circle","exclamation triangle","eye","eye slash","eye slash outline","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","info","info circle","lock","lock open","minus","minus circle","minus square","minus square outline","plus","plus circle","plus square","plus square outline","question","question circle","question circle outline","shield alternate","shopping cart","sign in alternate","sign out alternate","thermometer empty","thermometer full","thermometer half","thermometer quarter","thermometer three quarters","thumbs down","thumbs down outline","thumbs up","thumbs up outline","toggle off","toggle on","unlock","unlock alternate"];SUI.STATUS=qt;var Vt=["address book","address book outline","address card","address card outline","bed","blind","child","female","frown","frown outline","id badge","id badge outline","id card","id card outline","male","meh","meh outline","power off","smile","smile outline","street view","user","user outline","user circle","user circle outline","user md","user plus","user secret","user times","users","wheelchair"];SUI.USERS_PEOPLE=Vt;var zt=["ambulance","bicycle","bus","car","fighter jet","motorcycle","paper plane","paper plane outline","plane","rocket","ship","shopping cart","space shuttle","subway","taxi","train","truck","wheelchair"];SUI.VEHICLES=zt;var Wt=["archive","book","bookmark","bookmark outline","edit","edit outline","envelope","envelope outline","envelope open","envelope open outline","eraser","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","keyboard","keyboard outline","newspaper","newspaper outline","paper plane","paper plane outline","paperclip","paragraph","pen square","pencil alternate","quote left","quote right","sticky note","sticky note outline","thumbtack"];SUI.WRITING=Wt;var Xt=["500px","accessible","accusoft","adn","adversal","affiliatetheme","algolia","amazon","amazon pay","amilia","android","angellist","angrycreative","angular","app store","app store ios","apper","apple","apple pay","asymmetrik","audible","autoprefixer","avianex","aviato","aws","bandcamp","behance","behance square","bimobject","bitbucket","bitcoin","bity","black tie","blackberry","blogger","blogger b","bluetooth","bluetooth b","btc","buromobelexperte","buysellads","cc amazon pay","cc amex","cc apple pay","cc diners club","cc discover","cc jcb","cc mastercard","cc paypal","cc stripe","cc visa","centercode","chrome","cloudscale","cloudsmith","cloudversify","codepen","codiepie","connectdevelop","contao","cpanel","creative commons","css3","css3 alternate","cuttlefish","d and d","dashcube","delicious","deploydog","deskpro","deviantart","digg","digital ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dribbble square","dropbox","drupal","dyalog","earlybirds","edge","elementor","ember","empire","envira","erlang","ethereum","etsy","expeditedssl","facebook","facebook f","facebook messenger","facebook square","firefox","first order","firstdraft","flickr","flipboard","fly","font awesome","font awesome alternate","font awesome flag","fonticons","fonticons fi","fort awesome","fort awesome alternate","forumbee","foursquare","free code camp","freebsd","get pocket","gg","gg circle","git","git square","github","github alternate","github square","gitkraken","gitlab","gitter","glide","glide g","gofore","goodreads","goodreads g","google","google drive","google play","google plus","google plus g","google plus square","google wallet","gratipay","grav","gripfire","grunt","gulp","hacker news","hacker news square","hips","hire a helper","hooli","hotjar","houzz","html5","hubspot","imdb","instagram","internet explorer","ioxhost","itunes","itunes note","jenkins","joget","joomla","js","js square","jsfiddle","keycdn","kickstarter","kickstarter k","korvue","laravel","lastfm","lastfm square","leanpub","less","linechat","linkedin","linkedin alternate","linode","linux","lyft","magento","maxcdn","medapps","medium","medium m","medrt","meetup","microsoft","mix","mixcloud","mizuni","modx","monero","napster","nintendo switch","node","node js","npm","ns8","nutritionix","odnoklassniki","odnoklassniki square","opencart","openid","opera","optin monster","osi","page4","pagelines","palfed","patreon","paypal","periscope","phabricator","phoenix framework","php","pied piper","pied piper alternate","pied piper pp","pinterest","pinterest p","pinterest square","playstation","product hunt","pushed","python","qq","quinscape","quora","ravelry","react","rebel","redriver","reddit","reddit alien","reddit square","rendact","renren","replyd","resolving","rocketchat","rockrms","safari","sass","schlix","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","simplybuilt","sistrix","skyatlas","skype","slack","slack hash","slideshare","snapchat","snapchat ghost","snapchat square","soundcloud","speakap","spotify","stack exchange","stack overflow","staylinked","steam","steam square","steam symbol","sticker mule","strava","stripe","stripe s","studiovinari","stumbleupon","stumbleupon circle","superpowers","supple","telegram","telegram plane","tencent weibo","themeisle","trello","tripadvisor","tumblr","tumblr square","twitch","twitter","twitter square","typo3","uber","uikit","uniregistry","untappd","usb","ussunnah","vaadin","viacoin","viadeo","viadeo square","viber","vimeo","vimeo square","vimeo v","vine","vk","vnv","vuejs","wechat","weibo","weixin","whatsapp","whatsapp square","whmcs","wikipedia w","windows","wordpress","wordpress simple","wpbeginner","wpexplorer","wpforms","xbox","xing","xing square","y combinator","yahoo","yandex","yandex international","yelp","yoast","youtube","youtube square"];SUI.BRANDS=Xt;var Zt=(0,et.default)([].concat(_t,wt,Et,St,Tt,Ct,Nt,Dt,kt,Ft,jt,Gt,Rt,yt,$t,xt,At,Mt,It,Lt,Ot,gt,Pt,Bt,Ut,Ht,qt,Vt,zt,Wt,Xt));SUI.ICONS=Zt;var Qt=["chess rock","ordered list","unordered list","user doctor","shield","puzzle","add circle","add square","add to calendar","add to cart","add user","add","alarm mute","alarm","ald","als","announcement","area chart","area graph","arrow down cart","asexual","asl interpreting","asl","assistive listening devices","attach","attention","balance","bar","bathtub","battery four","battery high","battery low","battery one","battery three","battery two","battery zero","birthday","block layout","bluetooth alternative","broken chain","browser","call square","call","cancel","cart","cc","chain","chat","checked calendar","checkmark","circle notched","close","cny","cocktail","commenting","computer","configure","content","deafness","delete calendar","delete","detective","discussions","doctor","dollar","dont","drivers license","dropdown","emergency","envira gallery","erase","eur","euro","eyedropper","factory","favorite","feed","female homosexual","file text","file text outline","find","first aid","fork","game","gay","gbp","google plus circle","google plus official","grab","graduation","grid layout","group","h","hand victory","handicap","hard of hearing","header","help circle","help","heterosexual","hide","hotel","hourglass four","hourglass full","hourglass one","hourglass three","hourglass two","idea","ils","in cart","inr","intergender","intersex","jpy","krw","lab","law","legal","lesbian","lightning","like","line graph","linkedin square","linkify","lira","list layout","magnify","mail forward","mail outline","mail square","mail","male homosexual","man","marker","mars alternate","mars horizontal","mars vertical","microsoft edge","military","ms edge","mute","new pied piper","non binary transgender","numbered list","options","other gender horizontal","other gender vertical","other gender","payment","paypal card","pencil square","photo","picture","pie chart","pie graph","pied piper hat","pin","plus cart","point","pointing down","pointing left","pointing right","pointing up","pound","power cord","power","privacy","r circle","rain","record","refresh","remove circle","remove from calendar","remove user","remove","repeat","rmb","rouble","rub","ruble","rupee","s15","selected radio","send","setting","settings","shekel","sheqel","shipping","shop","shuffle","shutdown","sidebar","signing","signup","sliders","soccer","sort alphabet ascending","sort alphabet descending","sort ascending","sort content ascending","sort content descending","sort descending","sort numeric ascending","sort numeric descending","sound","spy","stripe card","student","talk","target","teletype","television","text cursor","text telephone","theme","thermometer","thumb tack","time","tm","toggle down","toggle left","toggle right","toggle up","translate","travel","treatment","triangle down","triangle left","triangle right","triangle up","try","unhide","unlinkify","unmute","usd","user cancel","user close","user delete","user x","vcard","video camera","video play","volume control phone","wait","warning circle","warning sign","warning","wi-fi","winner","wizard","woman","won","wordpress beginner","wordpress forms","world","write square","x","yen","zip","zoom in","zoom out","zoom","bitbucket square","checkmark box","circle thin","cloud download","cloud upload","compose","conversation","credit card alternative","currency","dashboard","diamond","disk","exchange","external share","external square","external","facebook official","food","hourglass zero","level down","level up","log out","meanpath","money","move","pencil","protect","radio","remove bookmark","resize horizontal","resize vertical","sign in","sign out","spoon","star half empty","star half full","ticket","times rectangle","write","youtube play"];SUI.ICON_ALIASES=Qt;var Kt=(0,et.default)([].concat(Zt,Qt));SUI.ICONS_AND_ALIASES=Kt;var ar=["left dropdown"];SUI.COMPONENT_CONTEXT_SPECIFIC_ICONS=ar;var Er=(0,et.default)([].concat(Kt,ar));return SUI.ALL_ICONS_IN_ALL_CONTEXTS=Er,SUI}var normalizeOffset$1={},hasRequiredNormalizeOffset;function requireNormalizeOffset(){if(hasRequiredNormalizeOffset)return normalizeOffset$1;hasRequiredNormalizeOffset=1,normalizeOffset$1.__esModule=!0,normalizeOffset$1.default=void 0;var _e=function(tt){return typeof tt=="number"||typeof tt=="string"?[tt,tt]:tt};return normalizeOffset$1.default=_e,normalizeOffset$1}var normalizeTransitionDuration$1={},hasRequiredNormalizeTransitionDuration;function requireNormalizeTransitionDuration(){if(hasRequiredNormalizeTransitionDuration)return normalizeTransitionDuration$1;hasRequiredNormalizeTransitionDuration=1,normalizeTransitionDuration$1.__esModule=!0,normalizeTransitionDuration$1.default=void 0;var _e=function(tt,nt){return typeof tt=="number"||typeof tt=="string"?tt:tt[nt]};return normalizeTransitionDuration$1.default=_e,normalizeTransitionDuration$1}var objectDiff={},isEqual_1,hasRequiredIsEqual;function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var _e=require_baseIsEqual();function et(tt,nt){return _e(tt,nt)}return isEqual_1=et,isEqual_1}var _baseCreate,hasRequired_baseCreate;function require_baseCreate(){if(hasRequired_baseCreate)return _baseCreate;hasRequired_baseCreate=1;var _e=requireIsObject(),et=Object.create,tt=function(){function nt(){}return function(at){if(!_e(at))return{};if(et)return et(at);nt.prototype=at;var it=new nt;return nt.prototype=void 0,it}}();return _baseCreate=tt,_baseCreate}var transform_1,hasRequiredTransform;function requireTransform(){if(hasRequiredTransform)return transform_1;hasRequiredTransform=1;var _e=_arrayEach,et=require_baseCreate(),tt=require_baseForOwn(),nt=_baseIteratee,at=require_getPrototype(),it=isArray_1,ot=requireIsBuffer(),st=requireIsFunction(),ct=requireIsObject(),dt=requireIsTypedArray();function ht(pt,mt,vt){var bt=it(pt),_t=bt||ot(pt)||dt(pt);if(mt=nt(mt),vt==null){var wt=pt&&pt.constructor;_t?vt=bt?new wt:[]:ct(pt)?vt=st(wt)?et(at(pt)):{}:vt={}}return(_t?_e:tt)(pt,function(Et,St,Tt){return mt(vt,Et,St,Tt)}),vt}return transform_1=ht,transform_1}var hasRequiredObjectDiff;function requireObjectDiff(){if(hasRequiredObjectDiff)return objectDiff;hasRequiredObjectDiff=1;var _e=interopRequireDefaultExports;objectDiff.__esModule=!0,objectDiff.default=void 0;var et=_e(requireIsEqual()),tt=_e(requireHas()),nt=_e(requireTransform()),at=function(ot,st){return(0,nt.default)(ot,function(ct,dt,ht){(0,tt.default)(st,ht)?(0,et.default)(dt,st[ht])||(ct[ht]=st[ht]):ct[ht]="[DELETED]"},{})};return objectDiff.default=at,objectDiff}var useClassNamesOnNode$1={};function _setPrototypeOf$U(_e,et){return _setPrototypeOf$U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$U(_e,et)}function _inheritsLoose$7(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_setPrototypeOf$U(_e,et)}var handleRef=function(et,tt){if(typeof et=="function"){et(tt);return}et!==null&&typeof et=="object"&&(et.current=tt)},isRefObject=function(et){return et!==null&&typeof et=="object"&&et.hasOwnProperty("current")},RefFindNode=function(_e){_inheritsLoose$7(et,_e);function et(){for(var nt,at=arguments.length,it=new Array(at),ot=0;ot<at;ot++)it[ot]=arguments[ot];return nt=_e.call.apply(_e,[this].concat(it))||this,nt.prevNode=void 0,nt}var tt=et.prototype;return tt.componentDidMount=function(){var at=reactDomExports.findDOMNode(this);this.prevNode=at,handleRef(this.props.innerRef,at)},tt.componentDidUpdate=function(at){var it=reactDomExports.findDOMNode(this);this.prevNode!==it&&(this.prevNode=it,handleRef(this.props.innerRef,it)),at.innerRef!==this.props.innerRef&&handleRef(this.props.innerRef,it)},tt.componentWillUnmount=function(){handleRef(this.props.innerRef,null),delete this.prevNode},tt.render=function(){var at=this.props.children;return at},et}(reactExports.Component),RefForward=function(_e){_inheritsLoose$7(et,_e);function et(){for(var nt,at=arguments.length,it=new Array(at),ot=0;ot<at;ot++)it[ot]=arguments[ot];return nt=_e.call.apply(_e,[this].concat(it))||this,nt.currentNode=void 0,nt.handleRefOverride=function(st){var ct=nt.props,dt=ct.children,ht=ct.innerRef;handleRef(dt.ref,st),handleRef(ht,st),nt.currentNode=st},nt}var tt=et.prototype;return tt.componentDidUpdate=function(at){at.innerRef!==this.props.innerRef&&handleRef(this.props.innerRef,this.currentNode)},tt.componentWillUnmount=function(){delete this.currentNode},tt.render=function(){var at=this.props.children;return reactExports.cloneElement(at,{ref:this.handleRefOverride})},et}(reactExports.Component),_excluded$s=["children","innerRef"],Ref=function(et){var tt=et.children,nt=et.innerRef,at=_objectWithoutPropertiesLoose$t(et,_excluded$s),it=reactExports.Children.only(tt),ot=reactIsExports$1.isForwardRef(it)?RefForward:RefFindNode,st=it&&at&&Object.keys(at).length>0?reactExports.cloneElement(it,at):it;return reactExports.createElement(ot,{innerRef:nt},st)};const es$3=Object.freeze(Object.defineProperty({__proto__:null,Ref,RefFindNode,RefForward,handleRef,isRefObject},Symbol.toStringTag,{value:"Module"})),require$$6$1=getAugmentedNamespace(es$3);var useIsomorphicLayoutEffect$3={},hasRequiredUseIsomorphicLayoutEffect;function requireUseIsomorphicLayoutEffect(){if(hasRequiredUseIsomorphicLayoutEffect)return useIsomorphicLayoutEffect$3;hasRequiredUseIsomorphicLayoutEffect=1;var _e=interopRequireDefaultExports;useIsomorphicLayoutEffect$3.__esModule=!0,useIsomorphicLayoutEffect$3.default=void 0;var et=_e(reactExports),tt=_e(requireIsBrowser()),nt=(0,tt.default)()?et.default.useLayoutEffect:et.default.useEffect,at=nt;return useIsomorphicLayoutEffect$3.default=at,useIsomorphicLayoutEffect$3}var hasRequiredUseClassNamesOnNode;function requireUseClassNamesOnNode(){if(hasRequiredUseClassNamesOnNode)return useClassNamesOnNode$1;hasRequiredUseClassNamesOnNode=1;var _e=interopRequireDefaultExports;useClassNamesOnNode$1.__esModule=!0,useClassNamesOnNode$1.computeClassNames=it,useClassNamesOnNode$1.computeClassNamesDifference=ot,useClassNamesOnNode$1.default=pt,useClassNamesOnNode$1.NodeRegistry=useClassNamesOnNode$1.handleClassNamesChange=void 0;var et=require$$6$1,tt=_e(reactExports),nt=_e(requireUseIsomorphicLayoutEffect()),at=/\s+/;function it(mt){var vt=[];return mt?(mt.forEach(function(bt){if(typeof bt.current=="string"){var _t=bt.current.split(at);_t.forEach(function(wt){vt.push(wt)})}}),vt.filter(function(bt,_t,wt){return bt.length>0&&wt.indexOf(bt)===_t})):[]}function ot(mt,vt){return[vt.filter(function(bt){return mt.indexOf(bt)===-1}),mt.filter(function(bt){return vt.indexOf(bt)===-1})]}var st=new Map,ct=function(vt,bt){var _t=it(bt),wt=ot(st.get(vt)||[],_t),Et=wt[0],St=wt[1];vt&&(Et.forEach(function(Tt){return vt.classList.add(Tt)}),St.forEach(function(Tt){return vt.classList.remove(Tt)})),st.set(vt,_t)};useClassNamesOnNode$1.handleClassNamesChange=ct;var dt=function(){var vt=this;this.add=function(bt,_t){if(vt.nodes.has(bt)){var wt=vt.nodes.get(bt);wt.add(_t);return}var Et=new Set;Et.add(_t),vt.nodes.set(bt,Et)},this.del=function(bt,_t){if(vt.nodes.has(bt)){var wt=vt.nodes.get(bt);if(wt.size===1){vt.nodes.delete(bt);return}wt.delete(_t)}},this.emit=function(bt,_t){_t(bt,vt.nodes.get(bt))},this.nodes=new Map};useClassNamesOnNode$1.NodeRegistry=dt;var ht=new dt;function pt(mt,vt){var bt=tt.default.useRef(),_t=tt.default.useRef(!1);(0,nt.default)(function(){if(bt.current=vt,_t.current){var wt=(0,et.isRefObject)(mt)?mt.current:mt;ht.emit(wt,ct)}_t.current=!0},[vt]),(0,nt.default)(function(){var wt=(0,et.isRefObject)(mt)?mt.current:mt;return ht.add(wt,bt),ht.emit(wt,ct),function(){ht.del(wt,bt),ht.emit(wt,ct)}},[mt])}return useClassNamesOnNode$1}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(_e){var et=requireInteropRequireWildcard(),tt=interopRequireDefaultExports;_e.__esModule=!0;var nt={useKeyOnly:!0,useKeyOrValueAndKey:!0,useValueAndKey:!0,useMultipleProp:!0,useTextAlignProp:!0,useVerticalAlignProp:!0,useWidthProp:!0,htmlInputAttrs:!0,htmlInputEvents:!0,htmlInputProps:!0,htmlImageProps:!0,partitionHTMLProps:!0,numberToWordMap:!0,numberToWord:!0,ModernAutoControlledComponent:!0,childrenUtils:!0,customPropTypes:!0,eventStack:!0,getUnhandledProps:!0,getElementType:!0,isBrowser:!0,doesNodeContainClick:!0,leven:!0,createPaginationItems:!0,SUI:!0,normalizeOffset:!0,normalizeTransitionDuration:!0,objectDiff:!0,useClassNamesOnNode:!0};_e.SUI=_e.customPropTypes=_e.childrenUtils=_e.numberToWord=_e.numberToWordMap=_e.partitionHTMLProps=_e.htmlImageProps=_e.htmlInputProps=_e.htmlInputEvents=_e.htmlInputAttrs=_e.useWidthProp=_e.useVerticalAlignProp=_e.useTextAlignProp=_e.useMultipleProp=_e.useValueAndKey=_e.useKeyOrValueAndKey=_e.useKeyOnly=void 0;var at=tt(requireModernAutoControlledComponent());_e.ModernAutoControlledComponent=at.default;var it=et(requireChildrenUtils());_e.childrenUtils=it;var ot=requireClassNameBuilders();_e.useKeyOnly=ot.useKeyOnly,_e.useKeyOrValueAndKey=ot.useKeyOrValueAndKey,_e.useValueAndKey=ot.useValueAndKey,_e.useMultipleProp=ot.useMultipleProp,_e.useTextAlignProp=ot.useTextAlignProp,_e.useVerticalAlignProp=ot.useVerticalAlignProp,_e.useWidthProp=ot.useWidthProp;var st=et(requireCustomPropTypes());_e.customPropTypes=st;var ct=tt(requireEventStack());_e.eventStack=ct.default;var dt=requireFactories();Object.keys(dt).forEach(function(kt){kt==="default"||kt==="__esModule"||Object.prototype.hasOwnProperty.call(nt,kt)||(_e[kt]=dt[kt])});var ht=tt(requireGetUnhandledProps());_e.getUnhandledProps=ht.default;var pt=tt(requireGetElementType());_e.getElementType=pt.default;var mt=requireHtmlPropsUtils();_e.htmlInputAttrs=mt.htmlInputAttrs,_e.htmlInputEvents=mt.htmlInputEvents,_e.htmlInputProps=mt.htmlInputProps,_e.htmlImageProps=mt.htmlImageProps,_e.partitionHTMLProps=mt.partitionHTMLProps;var vt=tt(requireIsBrowser());_e.isBrowser=vt.default;var bt=tt(requireDoesNodeContainClick());_e.doesNodeContainClick=bt.default;var _t=tt(requireLeven());_e.leven=_t.default;var wt=tt(requireCreatePaginationItems());_e.createPaginationItems=wt.default;var Et=et(requireSUI());_e.SUI=Et;var St=requireNumberToWord();_e.numberToWordMap=St.numberToWordMap,_e.numberToWord=St.numberToWord;var Tt=tt(requireNormalizeOffset());_e.normalizeOffset=Tt.default;var Ct=tt(requireNormalizeTransitionDuration());_e.normalizeTransitionDuration=Ct.default;var Nt=tt(requireObjectDiff());_e.objectDiff=Nt.default;var Dt=tt(requireUseClassNamesOnNode());_e.useClassNamesOnNode=Dt.default}(lib$4)),lib$4}var _interopRequireDefault$o=interopRequireDefaultExports;Loader$4.__esModule=!0;Loader$4.default=void 0;var _extends2$b=_interopRequireDefault$o(require_extends()),_clsx$9=_interopRequireDefault$o(require$$0$6);_interopRequireDefault$o(propTypesExports);var _react$b=_interopRequireDefault$o(reactExports),_lib$b=requireLib();function Loader$3(_e){var et=_e.active,tt=_e.children,nt=_e.className,at=_e.content,it=_e.disabled,ot=_e.indeterminate,st=_e.inline,ct=_e.inverted,dt=_e.size,ht=(0,_clsx$9.default)("ui",dt,(0,_lib$b.useKeyOnly)(et,"active"),(0,_lib$b.useKeyOnly)(it,"disabled"),(0,_lib$b.useKeyOnly)(ot,"indeterminate"),(0,_lib$b.useKeyOnly)(ct,"inverted"),(0,_lib$b.useKeyOnly)(tt||at,"text"),(0,_lib$b.useKeyOrValueAndKey)(st,"inline"),"loader",nt),pt=(0,_lib$b.getUnhandledProps)(Loader$3,_e),mt=(0,_lib$b.getElementType)(Loader$3,_e);return _react$b.default.createElement(mt,(0,_extends2$b.default)({},pt,{className:ht}),_lib$b.childrenUtils.isNil(tt)?at:tt)}Loader$3.handledProps=["active","as","children","className","content","disabled","indeterminate","inline","inverted","size"];Loader$3.propTypes={};var _default$m=Loader$3;Loader$4.default=_default$m;const Loader$2="";var __extends$C=commonjsGlobal&&commonjsGlobal.__extends||function(){var _e=function(et,tt){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,at){nt.__proto__=at}||function(nt,at){for(var it in at)Object.prototype.hasOwnProperty.call(at,it)&&(nt[it]=at[it])},_e(et,tt)};return function(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");_e(et,tt);function nt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(nt.prototype=tt.prototype,new nt)}}(),__assign$O=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$O=Object.assign||function(_e){for(var et,tt=1,nt=arguments.length;tt<nt;tt++){et=arguments[tt];for(var at in et)Object.prototype.hasOwnProperty.call(et,at)&&(_e[at]=et[at])}return _e},__assign$O.apply(this,arguments)},__createBinding$11=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var at=Object.getOwnPropertyDescriptor(et,tt);(!at||("get"in at?!et.__esModule:at.writable||at.configurable))&&(at={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,at)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),__setModuleDefault$11=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,et){Object.defineProperty(_e,"default",{enumerable:!0,value:et})}:function(_e,et){_e.default=et}),__importStar$11=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var et={};if(_e!=null)for(var tt in _e)tt!=="default"&&Object.prototype.hasOwnProperty.call(_e,tt)&&__createBinding$11(et,_e,tt);return __setModuleDefault$11(et,_e),et},__importDefault$1J=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(Loader$5,"__esModule",{value:!0});var Loader_3=Loader$5.Loader=void 0,React$K=__importStar$11(reactExports),Loader_1$5=__importDefault$1J(Loader$4),Loader$1=function(_e){__extends$C(et,_e);function et(){return _e!==null&&_e.apply(this,arguments)||this}return et.prototype.getClassName=function(){return[this.props.className||"",this.props.provider||""].join(" ").trim()},et.prototype.render=function(){return React$K.createElement(Loader_1$5.default,__assign$O({"aria-live":"polite","aria-label":"Loading",role:"status"},this.props,{className:this.getClassName()}))},et}(React$K.PureComponent);Loader_3=Loader$5.Loader=Loader$1;var extendStatics$3=function(_e,et){return extendStatics$3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,nt){tt.__proto__=nt}||function(tt,nt){for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&(tt[at]=nt[at])},extendStatics$3(_e,et)};function __extends$B(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics$3(_e,et);function tt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}var __assign$N=function(){return __assign$N=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$N.apply(this,arguments)};function __rest$h(_e,et){var tt={};for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&et.indexOf(nt)<0&&(tt[nt]=_e[nt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,nt=Object.getOwnPropertySymbols(_e);at<nt.length;at++)et.indexOf(nt[at])<0&&Object.prototype.propertyIsEnumerable.call(_e,nt[at])&&(tt[nt[at]]=_e[nt[at]]);return tt}function __spreadArray$7(_e,et,tt){if(tt||arguments.length===2)for(var nt=0,at=et.length,it;nt<at;nt++)(it||!(nt in et))&&(it||(it=Array.prototype.slice.call(et,0,nt)),it[nt]=et[nt]);return _e.concat(it||Array.prototype.slice.call(et))}typeof SuppressedError=="function"&&SuppressedError;function invariant$1(_e,et,tt){if(tt===void 0&&(tt=Error),!_e)throw new tt(et)}var extendStatics$2=function(_e,et){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(tt,nt){tt.__proto__=nt}||function(tt,nt){for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&(tt[at]=nt[at])},extendStatics$2(_e,et)};function __extends$A(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Class extends value "+String(et)+" is not a constructor or null");extendStatics$2(_e,et);function tt(){this.constructor=_e}_e.prototype=et===null?Object.create(et):(tt.prototype=et.prototype,new tt)}var __assign$M=function(){return __assign$M=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$M.apply(this,arguments)};function __spreadArray$6(_e,et,tt){if(tt||arguments.length===2)for(var nt=0,at=et.length,it;nt<at;nt++)(it||!(nt in et))&&(it||(it=Array.prototype.slice.call(et,0,nt)),it[nt]=et[nt]);return _e.concat(it||Array.prototype.slice.call(et))}typeof SuppressedError=="function"&&SuppressedError;var __assign$L=function(){return __assign$L=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$L.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var ErrorKind;(function(_e){_e[_e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",_e[_e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",_e[_e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",_e[_e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",_e[_e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",_e[_e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",_e[_e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",_e[_e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",_e[_e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",_e[_e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",_e[_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",_e[_e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",_e[_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",_e[_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",_e[_e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",_e[_e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",_e[_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",_e[_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",_e[_e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",_e[_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",_e[_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",_e[_e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",_e[_e.INVALID_TAG=23]="INVALID_TAG",_e[_e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",_e[_e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",_e[_e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(_e){_e[_e.literal=0]="literal",_e[_e.argument=1]="argument",_e[_e.number=2]="number",_e[_e.date=3]="date",_e[_e.time=4]="time",_e[_e.select=5]="select",_e[_e.plural=6]="plural",_e[_e.pound=7]="pound",_e[_e.tag=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(_e){_e[_e.number=0]="number",_e[_e.dateTime=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(_e){return _e.type===TYPE.literal}function isArgumentElement(_e){return _e.type===TYPE.argument}function isNumberElement(_e){return _e.type===TYPE.number}function isDateElement(_e){return _e.type===TYPE.date}function isTimeElement(_e){return _e.type===TYPE.time}function isSelectElement(_e){return _e.type===TYPE.select}function isPluralElement(_e){return _e.type===TYPE.plural}function isPoundElement(_e){return _e.type===TYPE.pound}function isTagElement(_e){return _e.type===TYPE.tag}function isNumberSkeleton(_e){return!!(_e&&typeof _e=="object"&&_e.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(_e){return!!(_e&&typeof _e=="object"&&_e.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(_e){var et={};return _e.replace(DATE_TIME_REGEX,function(tt){var nt=tt.length;switch(tt[0]){case"G":et.era=nt===4?"long":nt===5?"narrow":"short";break;case"y":et.year=nt===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":et.month=["numeric","2-digit","short","long","narrow"][nt-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":et.day=["numeric","2-digit"][nt-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":et.weekday=nt===4?"short":nt===5?"narrow":"short";break;case"e":if(nt<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");et.weekday=["short","long","narrow","short"][nt-4];break;case"c":if(nt<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");et.weekday=["short","long","narrow","short"][nt-4];break;case"a":et.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":et.hourCycle="h12",et.hour=["numeric","2-digit"][nt-1];break;case"H":et.hourCycle="h23",et.hour=["numeric","2-digit"][nt-1];break;case"K":et.hourCycle="h11",et.hour=["numeric","2-digit"][nt-1];break;case"k":et.hourCycle="h24",et.hour=["numeric","2-digit"][nt-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":et.minute=["numeric","2-digit"][nt-1];break;case"s":et.second=["numeric","2-digit"][nt-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":et.timeZoneName=nt<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),et}var __assign$K=function(){return __assign$K=Object.assign||function(et){for(var tt,nt=1,at=arguments.length;nt<at;nt++){tt=arguments[nt];for(var it in tt)Object.prototype.hasOwnProperty.call(tt,it)&&(et[it]=tt[it])}return et},__assign$K.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(_e){if(_e.length===0)throw new Error("Number skeleton cannot be empty");for(var et=_e.split(WHITE_SPACE_REGEX).filter(function(mt){return mt.length>0}),tt=[],nt=0,at=et;nt<at.length;nt++){var it=at[nt],ot=it.split("/");if(ot.length===0)throw new Error("Invalid number skeleton");for(var st=ot[0],ct=ot.slice(1),dt=0,ht=ct;dt<ht.length;dt++){var pt=ht[dt];if(pt.length===0)throw new Error("Invalid number skeleton")}tt.push({stem:st,options:ct})}return tt}function icuUnitToEcma(_e){return _e.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?[rs]?$/g,INTEGER_WIDTH_REGEX=/(\*)(0+)|(#+)(0+)|(0+)/g,CONCISE_INTEGER_WIDTH_REGEX=/^(0+)$/;function parseSignificantPrecision(_e){var et={};return _e[_e.length-1]==="r"?et.roundingPriority="morePrecision":_e[_e.length-1]==="s"&&(et.roundingPriority="lessPrecision"),_e.replace(SIGNIFICANT_PRECISION_REGEX,function(tt,nt,at){return typeof at!="string"?(et.minimumSignificantDigits=nt.length,et.maximumSignificantDigits=nt.length):at==="+"?et.minimumSignificantDigits=nt.length:nt[0]==="#"?et.maximumSignificantDigits=nt.length:(et.minimumSignificantDigits=nt.length,et.maximumSignificantDigits=nt.length+(typeof at=="string"?at.length:0)),""}),et}function parseSign(_e){switch(_e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseConciseScientificAndEngineeringStem(_e){var et;if(_e[0]==="E"&&_e[1]==="E"?(et={notation:"engineering"},_e=_e.slice(2)):_e[0]==="E"&&(et={notation:"scientific"},_e=_e.slice(1)),et){var tt=_e.slice(0,2);if(tt==="+!"?(et.signDisplay="always",_e=_e.slice(2)):tt==="+?"&&(et.signDisplay="exceptZero",_e=_e.slice(2)),!CONCISE_INTEGER_WIDTH_REGEX.test(_e))throw new Error("Malformed concise eng/scientific notation");et.minimumIntegerDigits=_e.length}return et}function parseNotationOptions(_e){var et={},tt=parseSign(_e);return tt||et}function parseNumberSkeleton(_e){for(var et={},tt=0,nt=_e;tt<nt.length;tt++){var at=nt[tt];switch(at.stem){case"percent":case"%":et.style="percent";continue;case"%x100":et.style="percent",et.scale=100;continue;case"currency":et.style="currency",et.currency=at.options[0];continue;case"group-off":case",_":et.useGrouping=!1;continue;case"precision-integer":case".":et.maximumFractionDigits=0;continue;case"measure-unit":case"unit":et.style="unit",et.unit=icuUnitToEcma(at.options[0]);continue;case"compact-short":case"K":et.notation="compact",et.compactDisplay="short";continue;case"compact-long":case"KK":et.notation="compact",et.compactDisplay="long";continue;case"scientific":et=__assign$K(__assign$K(__assign$K({},et),{notation:"scientific"}),at.options.reduce(function(ct,dt){return __assign$K(__assign$K({},ct),parseNotationOptions(dt))},{}));continue;case"engineering":et=__assign$K(__assign$K(__assign$K({},et),{notation:"engineering"}),at.options.reduce(function(ct,dt){return __assign$K(__assign$K({},ct),parseNotationOptions(dt))},{}));continue;case"notation-simple":et.notation="standard";continue;case"unit-width-narrow":et.currencyDisplay="narrowSymbol",et.unitDisplay="narrow";continue;case"unit-width-short":et.currencyDisplay="code",et.unitDisplay="short";continue;case"unit-width-full-name":et.currencyDisplay="name",et.unitDisplay="long";continue;case"unit-width-iso-code":et.currencyDisplay="symbol";continue;case"scale":et.scale=parseFloat(at.options[0]);continue;case"integer-width":if(at.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");at.options[0].replace(INTEGER_WIDTH_REGEX,function(ct,dt,ht,pt,mt,vt){if(dt)et.minimumIntegerDigits=ht.length;else{if(pt&&mt)throw new Error("We currently do not support maximum integer digits");if(vt)throw new Error("We currently do not support exact integer digits")}return""});continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(at.stem)){et.minimumIntegerDigits=at.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(at.stem)){if(at.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");at.stem.replace(FRACTION_PRECISION_REGEX,function(ct,dt,ht,pt,mt,vt){return ht==="*"?et.minimumFractionDigits=dt.length:pt&&pt[0]==="#"?et.maximumFractionDigits=pt.length:mt&&vt?(et.minimumFractionDigits=mt.length,et.maximumFractionDigits=mt.length+vt.length):(et.minimumFractionDigits=dt.length,et.maximumFractionDigits=dt.length),""});var it=at.options[0];it==="w"?et=__assign$K(__assign$K({},et),{trailingZeroDisplay:"stripIfInteger"}):it&&(et=__assign$K(__assign$K({},et),parseSignificantPrecision(it)));continue}if(SIGNIFICANT_PRECISION_REGEX.test(at.stem)){et=__assign$K(__assign$K({},et),parseSignificantPrecision(at.stem));continue}var ot=parseSign(at.stem);ot&&(et=__assign$K(__assign$K({},et),ot));var st=parseConciseScientificAndEngineeringStem(at.stem);st&&(et=__assign$K(__assign$K({},et),st))}return et}var timeData={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function getBestPattern(_e,et){for(var tt="",nt=0;nt<_e.length;nt++){var at=_e.charAt(nt);if(at==="j"){for(var it=0;nt+1<_e.length&&_e.charAt(nt+1)===at;)it++,nt++;var ot=1+(it&1),st=it<2?1:3+(it>>1),ct="a",dt=getDefaultHourSymbolFromLocale(et);for((dt=="H"||dt=="k")&&(st=0);st-- >0;)tt+=ct;for(;ot-- >0;)tt=dt+tt}else at==="J"?tt+="H":tt+=at}return tt}function getDefaultHourSymbolFromLocale(_e){var et=_e.hourCycle;if(et===void 0&&_e.hourCycles&&_e.hourCycles.length&&(et=_e.hourCycles[0]),et)switch(et){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var tt=_e.language,nt;tt!=="root"&&(nt=_e.maximize().region);var at=timeData[nt||""]||timeData[tt||""]||timeData["".concat(tt,"-001")]||timeData["001"];return at[0]}var _a$3,SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*")),SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation(_e,et){return{start:_e,end:et}}var hasNativeStartsWith=!!String.prototype.startsWith,hasNativeFromCodePoint=!!String.fromCodePoint,hasNativeFromEntries=!!Object.fromEntries,hasNativeCodePointAt=!!String.prototype.codePointAt,hasTrimStart=!!String.prototype.trimStart,hasTrimEnd=!!String.prototype.trimEnd,hasNativeIsSafeInteger=!!Number.isSafeInteger,isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(_e){return typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e&&Math.abs(_e)<=9007199254740991},REGEX_SUPPORTS_U_AND_Y=!0;try{var re$2=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a$3=re$2.exec("a"))===null||_a$3===void 0?void 0:_a$3[0])==="a"}catch{REGEX_SUPPORTS_U_AND_Y=!1}var startsWith$1=hasNativeStartsWith?function(et,tt,nt){return et.startsWith(tt,nt)}:function(et,tt,nt){return et.slice(nt,nt+tt.length)===tt},fromCodePoint=hasNativeFromCodePoint?String.fromCodePoint:function(){for(var et=[],tt=0;tt<arguments.length;tt++)et[tt]=arguments[tt];for(var nt="",at=et.length,it=0,ot;at>it;){if(ot=et[it++],ot>1114111)throw RangeError(ot+" is not a valid code point");nt+=ot<65536?String.fromCharCode(ot):String.fromCharCode(((ot-=65536)>>10)+55296,ot%1024+56320)}return nt},fromEntries$2=hasNativeFromEntries?Object.fromEntries:function(et){for(var tt={},nt=0,at=et;nt<at.length;nt++){var it=at[nt],ot=it[0],st=it[1];tt[ot]=st}return tt},codePointAt=hasNativeCodePointAt?function(et,tt){return et.codePointAt(tt)}:function(et,tt){var nt=et.length;if(!(tt<0||tt>=nt)){var at=et.charCodeAt(tt),it;return at<55296||at>56319||tt+1===nt||(it=et.charCodeAt(tt+1))<56320||it>57343?at:(at-55296<<10)+(it-56320)+65536}},trimStart=hasTrimStart?function(et){return et.trimStart()}:function(et){return et.replace(SPACE_SEPARATOR_START_REGEX,"")},trimEnd=hasTrimEnd?function(et){return et.trimEnd()}:function(et){return et.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE(_e,et){return new RegExp(_e,et)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function(et,tt){var nt;IDENTIFIER_PREFIX_RE_1.lastIndex=tt;var at=IDENTIFIER_PREFIX_RE_1.exec(et);return(nt=at[1])!==null&&nt!==void 0?nt:""}}else matchIdentifierAtIndex=function(et,tt){for(var nt=[];;){var at=codePointAt(et,tt);if(at===void 0||_isWhiteSpace(at)||_isPatternSyntax(at))break;nt.push(at),tt+=at>=65536?2:1}return fromCodePoint.apply(void 0,nt)};var Parser$1=function(){function _e(et,tt){tt===void 0&&(tt={}),this.message=et,this.position={offset:0,line:1,column:1},this.ignoreTag=!!tt.ignoreTag,this.locale=tt.locale,this.requiresOtherClause=!!tt.requiresOtherClause,this.shouldParseSkeletons=!!tt.shouldParseSkeletons}return _e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},_e.prototype.parseMessage=function(et,tt,nt){for(var at=[];!this.isEOF();){var it=this.char();if(it===123){var ot=this.parseArgument(et,nt);if(ot.err)return ot;at.push(ot.val)}else{if(it===125&&et>0)break;if(it===35&&(tt==="plural"||tt==="selectordinal")){var st=this.clonePosition();this.bump(),at.push({type:TYPE.pound,location:createLocation(st,this.clonePosition())})}else if(it===60&&!this.ignoreTag&&this.peek()===47){if(nt)break;return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}else if(it===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var ot=this.parseTag(et,tt);if(ot.err)return ot;at.push(ot.val)}else{var ot=this.parseLiteral(et,tt);if(ot.err)return ot;at.push(ot.val)}}}return{val:at,err:null}},_e.prototype.parseTag=function(et,tt){var nt=this.clonePosition();this.bump();var at=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:TYPE.literal,value:"<".concat(at,"/>"),location:createLocation(nt,this.clonePosition())},err:null};if(this.bumpIf(">")){var it=this.parseMessage(et+1,tt,!0);if(it.err)return it;var ot=it.val,st=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_isAlpha(this.char()))return this.error(ErrorKind.INVALID_TAG,createLocation(st,this.clonePosition()));var ct=this.clonePosition(),dt=this.parseTagName();return at!==dt?this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation(ct,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:TYPE.tag,value:at,children:ot,location:createLocation(nt,this.clonePosition())},err:null}:this.error(ErrorKind.INVALID_TAG,createLocation(st,this.clonePosition())))}else return this.error(ErrorKind.UNCLOSED_TAG,createLocation(nt,this.clonePosition()))}else return this.error(ErrorKind.INVALID_TAG,createLocation(nt,this.clonePosition()))},_e.prototype.parseTagName=function(){var et=this.offset();for(this.bump();!this.isEOF()&&_isPotentialElementNameChar(this.char());)this.bump();return this.message.slice(et,this.offset())},_e.prototype.parseLiteral=function(et,tt){for(var nt=this.clonePosition(),at="";;){var it=this.tryParseQuote(tt);if(it){at+=it;continue}var ot=this.tryParseUnquoted(et,tt);if(ot){at+=ot;continue}var st=this.tryParseLeftAngleBracket();if(st){at+=st;continue}break}var ct=createLocation(nt,this.clonePosition());return{val:{type:TYPE.literal,value:at,location:ct},err:null}},_e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))?(this.bump(),"<"):null},_e.prototype.tryParseQuote=function(et){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(et==="plural"||et==="selectordinal")break;return null;default:return null}this.bump();var tt=[this.char()];for(this.bump();!this.isEOF();){var nt=this.char();if(nt===39)if(this.peek()===39)tt.push(39),this.bump();else{this.bump();break}else tt.push(nt);this.bump()}return fromCodePoint.apply(void 0,tt)},_e.prototype.tryParseUnquoted=function(et,tt){if(this.isEOF())return null;var nt=this.char();return nt===60||nt===123||nt===35&&(tt==="plural"||tt==="selectordinal")||nt===125&&et>0?null:(this.bump(),fromCodePoint(nt))},_e.prototype.parseArgument=function(et,tt){var nt=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(nt,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ErrorKind.EMPTY_ARGUMENT,createLocation(nt,this.clonePosition()));var at=this.parseIdentifierIfPossible().value;if(!at)return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(nt,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(nt,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:TYPE.argument,value:at,location:createLocation(nt,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(nt,this.clonePosition())):this.parseArgumentOptions(et,tt,at,nt);default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation(nt,this.clonePosition()))}},_e.prototype.parseIdentifierIfPossible=function(){var et=this.clonePosition(),tt=this.offset(),nt=matchIdentifierAtIndex(this.message,tt),at=tt+nt.length;this.bumpTo(at);var it=this.clonePosition(),ot=createLocation(et,it);return{value:nt,location:ot}},_e.prototype.parseArgumentOptions=function(et,tt,nt,at){var it,ot=this.clonePosition(),st=this.parseIdentifierIfPossible().value,ct=this.clonePosition();switch(st){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation(ot,ct));case"number":case"date":case"time":{this.bumpSpace();var dt=null;if(this.bumpIf(",")){this.bumpSpace();var ht=this.clonePosition(),pt=this.parseSimpleArgStyleIfPossible();if(pt.err)return pt;var mt=trimEnd(pt.val);if(mt.length===0)return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));var vt=createLocation(ht,this.clonePosition());dt={style:mt,styleLocation:vt}}var bt=this.tryParseArgumentClose(at);if(bt.err)return bt;var _t=createLocation(at,this.clonePosition());if(dt&&startsWith$1(dt==null?void 0:dt.style,"::",0)){var wt=trimStart(dt.style.slice(2));if(st==="number"){var pt=this.parseNumberSkeletonFromString(wt,dt.styleLocation);return pt.err?pt:{val:{type:TYPE.number,value:nt,location:_t,style:pt.val},err:null}}else{if(wt.length===0)return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,_t);var Et=wt;this.locale&&(Et=getBestPattern(wt,this.locale));var mt={type:SKELETON_TYPE.dateTime,pattern:Et,location:dt.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(Et):{}},St=st==="date"?TYPE.date:TYPE.time;return{val:{type:St,value:nt,location:_t,style:mt},err:null}}}return{val:{type:st==="number"?TYPE.number:st==="date"?TYPE.date:TYPE.time,value:nt,location:_t,style:(it=dt==null?void 0:dt.style)!==null&&it!==void 0?it:null},err:null}}case"plural":case"selectordinal":case"select":{var Tt=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(Tt,__assign$L({},Tt)));this.bumpSpace();var Ct=this.parseIdentifierIfPossible(),Nt=0;if(st!=="select"&&Ct.value==="offset"){if(!this.bumpIf(":"))return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));this.bumpSpace();var pt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(pt.err)return pt;this.bumpSpace(),Ct=this.parseIdentifierIfPossible(),Nt=pt.val}var Dt=this.tryParsePluralOrSelectOptions(et,st,tt,Ct);if(Dt.err)return Dt;var bt=this.tryParseArgumentClose(at);if(bt.err)return bt;var kt=createLocation(at,this.clonePosition());return st==="select"?{val:{type:TYPE.select,value:nt,options:fromEntries$2(Dt.val),location:kt},err:null}:{val:{type:TYPE.plural,value:nt,options:fromEntries$2(Dt.val),offset:Nt,pluralType:st==="plural"?"cardinal":"ordinal",location:kt},err:null}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation(ot,ct))}},_e.prototype.tryParseArgumentClose=function(et){return this.isEOF()||this.char()!==125?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(et,this.clonePosition())):(this.bump(),{val:!0,err:null})},_e.prototype.parseSimpleArgStyleIfPossible=function(){for(var et=0,tt=this.clonePosition();!this.isEOF();){var nt=this.char();switch(nt){case 39:{this.bump();var at=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(at,this.clonePosition()));this.bump();break}case 123:{et+=1,this.bump();break}case 125:{if(et>0)et-=1;else return{val:this.message.slice(tt.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(tt.offset,this.offset()),err:null}},_e.prototype.parseNumberSkeletonFromString=function(et,tt){var nt=[];try{nt=parseNumberSkeletonFromString(et)}catch{return this.error(ErrorKind.INVALID_NUMBER_SKELETON,tt)}return{val:{type:SKELETON_TYPE.number,tokens:nt,location:tt,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(nt):{}},err:null}},_e.prototype.tryParsePluralOrSelectOptions=function(et,tt,nt,at){for(var it,ot=!1,st=[],ct=new Set,dt=at.value,ht=at.location;;){if(dt.length===0){var pt=this.clonePosition();if(tt!=="select"&&this.bumpIf("=")){var mt=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(mt.err)return mt;ht=createLocation(pt,this.clonePosition()),dt=this.message.slice(pt.offset,this.offset())}else break}if(ct.has(dt))return this.error(tt==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,ht);dt==="other"&&(ot=!0),this.bumpSpace();var vt=this.clonePosition();if(!this.bumpIf("{"))return this.error(tt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var bt=this.parseMessage(et+1,tt,nt);if(bt.err)return bt;var _t=this.tryParseArgumentClose(vt);if(_t.err)return _t;st.push([dt,{value:bt.val,location:createLocation(vt,this.clonePosition())}]),ct.add(dt),this.bumpSpace(),it=this.parseIdentifierIfPossible(),dt=it.value,ht=it.location}return st.length===0?this.error(tt==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!ot?this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:st,err:null}},_e.prototype.tryParseDecimalInteger=function(et,tt){var nt=1,at=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(nt=-1);for(var it=!1,ot=0;!this.isEOF();){var st=this.char();if(st>=48&&st<=57)it=!0,ot=ot*10+(st-48),this.bump();else break}var ct=createLocation(at,this.clonePosition());return it?(ot*=nt,isSafeInteger(ot)?{val:ot,err:null}:this.error(tt,ct)):this.error(et,ct)},_e.prototype.offset=function(){return this.position.offset},_e.prototype.isEOF=function(){return this.offset()===this.message.length},_e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},_e.prototype.char=function(){var et=this.position.offset;if(et>=this.message.length)throw Error("out of bound");var tt=codePointAt(this.message,et);if(tt===void 0)throw Error("Offset ".concat(et," is at invalid UTF-16 code unit boundary"));return tt},_e.prototype.error=function(et,tt){return{val:null,err:{kind:et,message:this.message,location:tt}}},_e.prototype.bump=function(){if(!this.isEOF()){var et=this.char();et===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=et<65536?1:2)}},_e.prototype.bumpIf=function(et){if(startsWith$1(this.message,et,this.offset())){for(var tt=0;tt<et.length;tt++)this.bump();return!0}return!1},_e.prototype.bumpUntil=function(et){var tt=this.offset(),nt=this.message.indexOf(et,tt);return nt>=0?(this.bumpTo(nt),!0):(this.bumpTo(this.message.length),!1)},_e.prototype.bumpTo=function(et){if(this.offset()>et)throw Error("targetOffset ".concat(et," must be greater than or equal to the current offset ").concat(this.offset()));for(et=Math.min(et,this.message.length);;){var tt=this.offset();if(tt===et)break;if(tt>et)throw Error("targetOffset ".concat(et," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},_e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},_e.prototype.peek=function(){if(this.isEOF())return null;var et=this.char(),tt=this.offset(),nt=this.message.charCodeAt(tt+(et>=65536?2:1));return nt??null},_e}();function _isAlpha(_e){return _e>=97&&_e<=122||_e>=65&&_e<=90}function _isAlphaOrSlash(_e){return _isAlpha(_e)||_e===47}function _isPotentialElementNameChar(_e){return _e===45||_e===46||_e>=48&&_e<=57||_e===95||_e>=97&&_e<=122||_e>=65&&_e<=90||_e==183||_e>=192&&_e<=214||_e>=216&&_e<=246||_e>=248&&_e<=893||_e>=895&&_e<=8191||_e>=8204&&_e<=8205||_e>=8255&&_e<=8256||_e>=8304&&_e<=8591||_e>=11264&&_e<=12271||_e>=12289&&_e<=55295||_e>=63744&&_e<=64975||_e>=65008&&_e<=65533||_e>=65536&&_e<=983039}function _isWhiteSpace(_e){return _e>=9&&_e<=13||_e===32||_e===133||_e>=8206&&_e<=8207||_e===8232||_e===8233}function _isPatternSyntax(_e){return _e>=33&&_e<=35||_e===36||_e>=37&&_e<=39||_e===40||_e===41||_e===42||_e===43||_e===44||_e===45||_e>=46&&_e<=47||_e>=58&&_e<=59||_e>=60&&_e<=62||_e>=63&&_e<=64||_e===91||_e===92||_e===93||_e===94||_e===96||_e===123||_e===124||_e===125||_e===126||_e===161||_e>=162&&_e<=165||_e===166||_e===167||_e===169||_e===171||_e===172||_e===174||_e===176||_e===177||_e===182||_e===187||_e===191||_e===215||_e===247||_e>=8208&&_e<=8213||_e>=8214&&_e<=8215||_e===8216||_e===8217||_e===8218||_e>=8219&&_e<=8220||_e===8221||_e===8222||_e===8223||_e>=8224&&_e<=8231||_e>=8240&&_e<=8248||_e===8249||_e===8250||_e>=8251&&_e<=8254||_e>=8257&&_e<=8259||_e===8260||_e===8261||_e===8262||_e>=8263&&_e<=8273||_e===8274||_e===8275||_e>=8277&&_e<=8286||_e>=8592&&_e<=8596||_e>=8597&&_e<=8601||_e>=8602&&_e<=8603||_e>=8604&&_e<=8607||_e===8608||_e>=8609&&_e<=8610||_e===8611||_e>=8612&&_e<=8613||_e===8614||_e>=8615&&_e<=8621||_e===8622||_e>=8623&&_e<=8653||_e>=8654&&_e<=8655||_e>=8656&&_e<=8657||_e===8658||_e===8659||_e===8660||_e>=8661&&_e<=8691||_e>=8692&&_e<=8959||_e>=8960&&_e<=8967||_e===8968||_e===8969||_e===8970||_e===8971||_e>=8972&&_e<=8991||_e>=8992&&_e<=8993||_e>=8994&&_e<=9e3||_e===9001||_e===9002||_e>=9003&&_e<=9083||_e===9084||_e>=9085&&_e<=9114||_e>=9115&&_e<=9139||_e>=9140&&_e<=9179||_e>=9180&&_e<=9185||_e>=9186&&_e<=9254||_e>=9255&&_e<=9279||_e>=9280&&_e<=9290||_e>=9291&&_e<=9311||_e>=9472&&_e<=9654||_e===9655||_e>=9656&&_e<=9664||_e===9665||_e>=9666&&_e<=9719||_e>=9720&&_e<=9727||_e>=9728&&_e<=9838||_e===9839||_e>=9840&&_e<=10087||_e===10088||_e===10089||_e===10090||_e===10091||_e===10092||_e===10093||_e===10094||_e===10095||_e===10096||_e===10097||_e===10098||_e===10099||_e===10100||_e===10101||_e>=10132&&_e<=10175||_e>=10176&&_e<=10180||_e===10181||_e===10182||_e>=10183&&_e<=10213||_e===10214||_e===10215||_e===10216||_e===10217||_e===10218||_e===10219||_e===10220||_e===10221||_e===10222||_e===10223||_e>=10224&&_e<=10239||_e>=10240&&_e<=10495||_e>=10496&&_e<=10626||_e===10627||_e===10628||_e===10629||_e===10630||_e===10631||_e===10632||_e===10633||_e===10634||_e===10635||_e===10636||_e===10637||_e===10638||_e===10639||_e===10640||_e===10641||_e===10642||_e===10643||_e===10644||_e===10645||_e===10646||_e===10647||_e===10648||_e>=10649&&_e<=10711||_e===10712||_e===10713||_e===10714||_e===10715||_e>=10716&&_e<=10747||_e===10748||_e===10749||_e>=10750&&_e<=11007||_e>=11008&&_e<=11055||_e>=11056&&_e<=11076||_e>=11077&&_e<=11078||_e>=11079&&_e<=11084||_e>=11085&&_e<=11123||_e>=11124&&_e<=11125||_e>=11126&&_e<=11157||_e===11158||_e>=11159&&_e<=11263||_e>=11776&&_e<=11777||_e===11778||_e===11779||_e===11780||_e===11781||_e>=11782&&_e<=11784||_e===11785||_e===11786||_e===11787||_e===11788||_e===11789||_e>=11790&&_e<=11798||_e===11799||_e>=11800&&_e<=11801||_e===11802||_e===11803||_e===11804||_e===11805||_e>=11806&&_e<=11807||_e===11808||_e===11809||_e===11810||_e===11811||_e===11812||_e===11813||_e===11814||_e===11815||_e===11816||_e===11817||_e>=11818&&_e<=11822||_e===11823||_e>=11824&&_e<=11833||_e>=11834&&_e<=11835||_e>=11836&&_e<=11839||_e===11840||_e===11841||_e===11842||_e>=11843&&_e<=11855||_e>=11856&&_e<=11857||_e===11858||_e>=11859&&_e<=11903||_e>=12289&&_e<=12291||_e===12296||_e===12297||_e===12298||_e===12299||_e===12300||_e===12301||_e===12302||_e===12303||_e===12304||_e===12305||_e>=12306&&_e<=12307||_e===12308||_e===12309||_e===12310||_e===12311||_e===12312||_e===12313||_e===12314||_e===12315||_e===12316||_e===12317||_e>=12318&&_e<=12319||_e===12320||_e===12336||_e===64830||_e===64831||_e>=65093&&_e<=65094}function pruneLocation(_e){_e.forEach(function(et){if(delete et.location,isSelectElement(et)||isPluralElement(et))for(var tt in et.options)delete et.options[tt].location,pruneLocation(et.options[tt].value);else isNumberElement(et)&&isNumberSkeleton(et.style)||(isDateElement(et)||isTimeElement(et))&&isDateTimeSkeleton(et.style)?delete et.style.location:isTagElement(et)&&pruneLocation(et.children)})}function parse$f(_e,et){et===void 0&&(et={}),et=__assign$L({shouldParseSkeletons:!0,requiresOtherClause:!0},et);var tt=new Parser$1(_e,et).parse();if(tt.err){var nt=SyntaxError(ErrorKind[tt.err.kind]);throw nt.location=tt.err.location,nt.originalMessage=tt.err.message,nt}return et!=null&&et.captureLocation||pruneLocation(tt.val),tt.val}function memoize$6(_e,et){var tt=et&&et.cache?et.cache:cacheDefault,nt=et&&et.serializer?et.serializer:serializerDefault,at=et&&et.strategy?et.strategy:strategyDefault;return at(_e,{cache:tt,serializer:nt})}function isPrimitive$2(_e){return _e==null||typeof _e=="number"||typeof _e=="boolean"}function monadic(_e,et,tt,nt){var at=isPrimitive$2(nt)?nt:tt(nt),it=et.get(at);return typeof it>"u"&&(it=_e.call(this,nt),et.set(at,it)),it}function variadic(_e,et,tt){var nt=Array.prototype.slice.call(arguments,3),at=tt(nt),it=et.get(at);return typeof it>"u"&&(it=_e.apply(this,nt),et.set(at,it)),it}function assemble(_e,et,tt,nt,at){return tt.bind(et,_e,nt,at)}function strategyDefault(_e,et){var tt=_e.length===1?monadic:variadic;return assemble(_e,this,tt,et.cache.create(),et.serializer)}function strategyVariadic(_e,et){return assemble(_e,this,variadic,et.cache.create(),et.serializer)}function strategyMonadic(_e,et){return assemble(_e,this,monadic,et.cache.create(),et.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(_e){return this.cache[_e]};ObjectWithoutPrototypeCache.prototype.set=function(_e,et){this.cache[_e]=et};var cacheDefault={create:function(){return new ObjectWithoutPrototypeCache}},strategies={variadic:strategyVariadic,monadic:strategyMonadic},ErrorCode$2;(function(_e){_e.MISSING_VALUE="MISSING_VALUE",_e.INVALID_VALUE="INVALID_VALUE",_e.MISSING_INTL_API="MISSING_INTL_API"})(ErrorCode$2||(ErrorCode$2={}));var FormatError=function(_e){__extends$A(et,_e);function et(tt,nt,at){var it=_e.call(this,tt)||this;return it.code=nt,it.originalMessage=at,it}return et.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},et}(Error),InvalidValueError=function(_e){__extends$A(et,_e);function et(tt,nt,at,it){return _e.call(this,'Invalid values for "'.concat(tt,'": "').concat(nt,'". Options are "').concat(Object.keys(at).join('", "'),'"'),ErrorCode$2.INVALID_VALUE,it)||this}return et}(FormatError),InvalidValueTypeError=function(_e){__extends$A(et,_e);function et(tt,nt,at){return _e.call(this,'Value for "'.concat(tt,'" must be of type ').concat(nt),ErrorCode$2.INVALID_VALUE,at)||this}return et}(FormatError),MissingValueError=function(_e){__extends$A(et,_e);function et(tt,nt){return _e.call(this,'The intl string context variable "'.concat(tt,'" was not provided to the string "').concat(nt,'"'),ErrorCode$2.MISSING_VALUE,nt)||this}return et}(FormatError),PART_TYPE;(function(_e){_e[_e.literal=0]="literal",_e[_e.object=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(_e){return _e.length<2?_e:_e.reduce(function(et,tt){var nt=et[et.length-1];return!nt||nt.type!==PART_TYPE.literal||tt.type!==PART_TYPE.literal?et.push(tt):nt.value+=tt.value,et},[])}function isFormatXMLElementFn(_e){return typeof _e=="function"}function formatToParts(_e,et,tt,nt,at,it,ot){if(_e.length===1&&isLiteralElement(_e[0]))return[{type:PART_TYPE.literal,value:_e[0].value}];for(var st=[],ct=0,dt=_e;ct<dt.length;ct++){var ht=dt[ct];if(isLiteralElement(ht)){st.push({type:PART_TYPE.literal,value:ht.value});continue}if(isPoundElement(ht)){typeof it=="number"&&st.push({type:PART_TYPE.literal,value:tt.getNumberFormat(et).format(it)});continue}var pt=ht.value;if(!(at&&pt in at))throw new MissingValueError(pt,ot);var mt=at[pt];if(isArgumentElement(ht)){(!mt||typeof mt=="string"||typeof mt=="number")&&(mt=typeof mt=="string"||typeof mt=="number"?String(mt):""),st.push({type:typeof mt=="string"?PART_TYPE.literal:PART_TYPE.object,value:mt});continue}if(isDateElement(ht)){var vt=typeof ht.style=="string"?nt.date[ht.style]:isDateTimeSkeleton(ht.style)?ht.style.parsedOptions:void 0;st.push({type:PART_TYPE.literal,value:tt.getDateTimeFormat(et,vt).format(mt)});continue}if(isTimeElement(ht)){var vt=typeof ht.style=="string"?nt.time[ht.style]:isDateTimeSkeleton(ht.style)?ht.style.parsedOptions:nt.time.medium;st.push({type:PART_TYPE.literal,value:tt.getDateTimeFormat(et,vt).format(mt)});continue}if(isNumberElement(ht)){var vt=typeof ht.style=="string"?nt.number[ht.style]:isNumberSkeleton(ht.style)?ht.style.parsedOptions:void 0;vt&&vt.scale&&(mt=mt*(vt.scale||1)),st.push({type:PART_TYPE.literal,value:tt.getNumberFormat(et,vt).format(mt)});continue}if(isTagElement(ht)){var bt=ht.children,_t=ht.value,wt=at[_t];if(!isFormatXMLElementFn(wt))throw new InvalidValueTypeError(_t,"function",ot);var Et=formatToParts(bt,et,tt,nt,at,it),St=wt(Et.map(function(Nt){return Nt.value}));Array.isArray(St)||(St=[St]),st.push.apply(st,St.map(function(Nt){return{type:typeof Nt=="string"?PART_TYPE.literal:PART_TYPE.object,value:Nt}}))}if(isSelectElement(ht)){var Tt=ht.options[mt]||ht.options.other;if(!Tt)throw new InvalidValueError(ht.value,mt,Object.keys(ht.options),ot);st.push.apply(st,formatToParts(Tt.value,et,tt,nt,at));continue}if(isPluralElement(ht)){var Tt=ht.options["=".concat(mt)];if(!Tt){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
95
95
  Try polyfilling it using "@formatjs/intl-pluralrules"
96
96
  `,ErrorCode$2.MISSING_INTL_API,ot);var Ct=tt.getPluralRules(et,{type:ht.pluralType}).select(mt-(ht.offset||0));Tt=ht.options[Ct]||ht.options.other}if(!Tt)throw new InvalidValueError(ht.value,mt,Object.keys(ht.options),ot);st.push.apply(st,formatToParts(Tt.value,et,tt,nt,at,mt-(ht.offset||0)));continue}}return mergeLiteral(st)}function mergeConfig$3(_e,et){return et?__assign$M(__assign$M(__assign$M({},_e||{}),et||{}),Object.keys(_e).reduce(function(tt,nt){return tt[nt]=__assign$M(__assign$M({},_e[nt]),et[nt]||{}),tt},{})):_e}function mergeConfigs$1(_e,et){return et?Object.keys(_e).reduce(function(tt,nt){return tt[nt]=mergeConfig$3(_e[nt],et[nt]),tt},__assign$M({},_e)):_e}function createFastMemoizeCache$1(_e){return{create:function(){return{get:function(et){return _e[et]},set:function(et,tt){_e[et]=tt}}}}}function createDefaultFormatters(_e){return _e===void 0&&(_e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoize$6(function(){for(var et,tt=[],nt=0;nt<arguments.length;nt++)tt[nt]=arguments[nt];return new((et=Intl.NumberFormat).bind.apply(et,__spreadArray$6([void 0],tt,!1)))},{cache:createFastMemoizeCache$1(_e.number),strategy:strategies.variadic}),getDateTimeFormat:memoize$6(function(){for(var et,tt=[],nt=0;nt<arguments.length;nt++)tt[nt]=arguments[nt];return new((et=Intl.DateTimeFormat).bind.apply(et,__spreadArray$6([void 0],tt,!1)))},{cache:createFastMemoizeCache$1(_e.dateTime),strategy:strategies.variadic}),getPluralRules:memoize$6(function(){for(var et,tt=[],nt=0;nt<arguments.length;nt++)tt[nt]=arguments[nt];return new((et=Intl.PluralRules).bind.apply(et,__spreadArray$6([void 0],tt,!1)))},{cache:createFastMemoizeCache$1(_e.pluralRules),strategy:strategies.variadic})}}var IntlMessageFormat=function(){function _e(et,tt,nt,at){var it=this;if(tt===void 0&&(tt=_e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(ot){var st=it.formatToParts(ot);if(st.length===1)return st[0].value;var ct=st.reduce(function(dt,ht){return!dt.length||ht.type!==PART_TYPE.literal||typeof dt[dt.length-1]!="string"?dt.push(ht.value):dt[dt.length-1]+=ht.value,dt},[]);return ct.length<=1?ct[0]||"":ct},this.formatToParts=function(ot){return formatToParts(it.ast,it.locales,it.formatters,it.formats,ot,void 0,it.message)},this.resolvedOptions=function(){return{locale:it.resolvedLocale.toString()}},this.getAst=function(){return it.ast},this.locales=tt,this.resolvedLocale=_e.resolveLocale(tt),typeof et=="string"){if(this.message=et,!_e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=_e.__parse(et,{ignoreTag:at==null?void 0:at.ignoreTag,locale:this.resolvedLocale})}else this.ast=et;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mergeConfigs$1(_e.formats,nt),this.formatters=at&&at.formatters||createDefaultFormatters(this.formatterCache)}return Object.defineProperty(_e,"defaultLocale",{get:function(){return _e.memoizedDefaultLocale||(_e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),_e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),_e.memoizedDefaultLocale=null,_e.resolveLocale=function(et){var tt=Intl.NumberFormat.supportedLocalesOf(et);return tt.length>0?new Intl.Locale(tt[0]):new Intl.Locale(typeof et=="string"?et:et[0])},_e.__parse=parse$f,_e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},_e}(),IntlErrorCode;(function(_e){_e.FORMAT_ERROR="FORMAT_ERROR",_e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",_e.INVALID_CONFIG="INVALID_CONFIG",_e.MISSING_DATA="MISSING_DATA",_e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(IntlErrorCode||(IntlErrorCode={}));var IntlError=function(_e){__extends$B(et,_e);function et(tt,nt,at){var it=this,ot=at?at instanceof Error?at:new Error(String(at)):void 0;return it=_e.call(this,"[@formatjs/intl Error ".concat(tt,"] ").concat(nt,`
97
97
  `).concat(ot?`
@@ -124,7 +124,7 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
124
124
  *
125
125
  * @author Feross Aboukhadijeh <https://feross.org>
126
126
  * @license MIT
127
- */(function(_e){const et=base64Js,tt=ieee754,nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_e.Buffer=ht,_e.SlowBuffer=Nt,_e.INSPECT_MAX_BYTES=50;const at=2147483647;_e.kMaxLength=at;const{Uint8Array:it,ArrayBuffer:ot,SharedArrayBuffer:st}=globalThis;ht.TYPED_ARRAY_SUPPORT=ct(),!ht.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ct(){try{const tr=new it(1),Yt={foo:function(){return 42}};return Object.setPrototypeOf(Yt,it.prototype),Object.setPrototypeOf(tr,Yt),tr.foo()===42}catch{return!1}}Object.defineProperty(ht.prototype,"parent",{enumerable:!0,get:function(){if(ht.isBuffer(this))return this.buffer}}),Object.defineProperty(ht.prototype,"offset",{enumerable:!0,get:function(){if(ht.isBuffer(this))return this.byteOffset}});function dt(tr){if(tr>at)throw new RangeError('The value "'+tr+'" is invalid for option "size"');const Yt=new it(tr);return Object.setPrototypeOf(Yt,ht.prototype),Yt}function ht(tr,Yt,Jt){if(typeof tr=="number"){if(typeof Yt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return bt(tr)}return pt(tr,Yt,Jt)}ht.poolSize=8192;function pt(tr,Yt,Jt){if(typeof tr=="string")return _t(tr,Yt);if(ot.isView(tr))return Et(tr);if(tr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof tr);if(Br(tr,ot)||tr&&Br(tr.buffer,ot)||typeof st<"u"&&(Br(tr,st)||tr&&Br(tr.buffer,st)))return St(tr,Yt,Jt);if(typeof tr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ir=tr.valueOf&&tr.valueOf();if(ir!=null&&ir!==tr)return ht.from(ir,Yt,Jt);const br=Tt(tr);if(br)return br;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof tr[Symbol.toPrimitive]=="function")return ht.from(tr[Symbol.toPrimitive]("string"),Yt,Jt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof tr)}ht.from=function(tr,Yt,Jt){return pt(tr,Yt,Jt)},Object.setPrototypeOf(ht.prototype,it.prototype),Object.setPrototypeOf(ht,it);function mt(tr){if(typeof tr!="number")throw new TypeError('"size" argument must be of type number');if(tr<0)throw new RangeError('The value "'+tr+'" is invalid for option "size"')}function vt(tr,Yt,Jt){return mt(tr),tr<=0?dt(tr):Yt!==void 0?typeof Jt=="string"?dt(tr).fill(Yt,Jt):dt(tr).fill(Yt):dt(tr)}ht.alloc=function(tr,Yt,Jt){return vt(tr,Yt,Jt)};function bt(tr){return mt(tr),dt(tr<0?0:Ct(tr)|0)}ht.allocUnsafe=function(tr){return bt(tr)},ht.allocUnsafeSlow=function(tr){return bt(tr)};function _t(tr,Yt){if((typeof Yt!="string"||Yt==="")&&(Yt="utf8"),!ht.isEncoding(Yt))throw new TypeError("Unknown encoding: "+Yt);const Jt=Dt(tr,Yt)|0;let ir=dt(Jt);const br=ir.write(tr,Yt);return br!==Jt&&(ir=ir.slice(0,br)),ir}function wt(tr){const Yt=tr.length<0?0:Ct(tr.length)|0,Jt=dt(Yt);for(let ir=0;ir<Yt;ir+=1)Jt[ir]=tr[ir]&255;return Jt}function Et(tr){if(Br(tr,it)){const Yt=new it(tr);return St(Yt.buffer,Yt.byteOffset,Yt.byteLength)}return wt(tr)}function St(tr,Yt,Jt){if(Yt<0||tr.byteLength<Yt)throw new RangeError('"offset" is outside of buffer bounds');if(tr.byteLength<Yt+(Jt||0))throw new RangeError('"length" is outside of buffer bounds');let ir;return Yt===void 0&&Jt===void 0?ir=new it(tr):Jt===void 0?ir=new it(tr,Yt):ir=new it(tr,Yt,Jt),Object.setPrototypeOf(ir,ht.prototype),ir}function Tt(tr){if(ht.isBuffer(tr)){const Yt=Ct(tr.length)|0,Jt=dt(Yt);return Jt.length===0||tr.copy(Jt,0,0,Yt),Jt}if(tr.length!==void 0)return typeof tr.length!="number"||qr(tr.length)?dt(0):wt(tr);if(tr.type==="Buffer"&&Array.isArray(tr.data))return wt(tr.data)}function Ct(tr){if(tr>=at)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+at.toString(16)+" bytes");return tr|0}function Nt(tr){return+tr!=tr&&(tr=0),ht.alloc(+tr)}ht.isBuffer=function(Yt){return Yt!=null&&Yt._isBuffer===!0&&Yt!==ht.prototype},ht.compare=function(Yt,Jt){if(Br(Yt,it)&&(Yt=ht.from(Yt,Yt.offset,Yt.byteLength)),Br(Jt,it)&&(Jt=ht.from(Jt,Jt.offset,Jt.byteLength)),!ht.isBuffer(Yt)||!ht.isBuffer(Jt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Yt===Jt)return 0;let ir=Yt.length,br=Jt.length;for(let Jr=0,Ar=Math.min(ir,br);Jr<Ar;++Jr)if(Yt[Jr]!==Jt[Jr]){ir=Yt[Jr],br=Jt[Jr];break}return ir<br?-1:br<ir?1:0},ht.isEncoding=function(Yt){switch(String(Yt).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ht.concat=function(Yt,Jt){if(!Array.isArray(Yt))throw new TypeError('"list" argument must be an Array of Buffers');if(Yt.length===0)return ht.alloc(0);let ir;if(Jt===void 0)for(Jt=0,ir=0;ir<Yt.length;++ir)Jt+=Yt[ir].length;const br=ht.allocUnsafe(Jt);let Jr=0;for(ir=0;ir<Yt.length;++ir){let Ar=Yt[ir];if(Br(Ar,it))Jr+Ar.length>br.length?(ht.isBuffer(Ar)||(Ar=ht.from(Ar)),Ar.copy(br,Jr)):it.prototype.set.call(br,Ar,Jr);else if(ht.isBuffer(Ar))Ar.copy(br,Jr);else throw new TypeError('"list" argument must be an Array of Buffers');Jr+=Ar.length}return br};function Dt(tr,Yt){if(ht.isBuffer(tr))return tr.length;if(ot.isView(tr)||Br(tr,ot))return tr.byteLength;if(typeof tr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof tr);const Jt=tr.length,ir=arguments.length>2&&arguments[2]===!0;if(!ir&&Jt===0)return 0;let br=!1;for(;;)switch(Yt){case"ascii":case"latin1":case"binary":return Jt;case"utf8":case"utf-8":return gn(tr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jt*2;case"hex":return Jt>>>1;case"base64":return An(tr).length;default:if(br)return ir?-1:gn(tr).length;Yt=(""+Yt).toLowerCase(),br=!0}}ht.byteLength=Dt;function kt(tr,Yt,Jt){let ir=!1;if((Yt===void 0||Yt<0)&&(Yt=0),Yt>this.length||((Jt===void 0||Jt>this.length)&&(Jt=this.length),Jt<=0)||(Jt>>>=0,Yt>>>=0,Jt<=Yt))return"";for(tr||(tr="utf8");;)switch(tr){case"hex":return Bt(this,Yt,Jt);case"utf8":case"utf-8":return It(this,Yt,Jt);case"ascii":return gt(this,Yt,Jt);case"latin1":case"binary":return Pt(this,Yt,Jt);case"base64":return Mt(this,Yt,Jt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,Yt,Jt);default:if(ir)throw new TypeError("Unknown encoding: "+tr);tr=(tr+"").toLowerCase(),ir=!0}}ht.prototype._isBuffer=!0;function Ft(tr,Yt,Jt){const ir=tr[Yt];tr[Yt]=tr[Jt],tr[Jt]=ir}ht.prototype.swap16=function(){const Yt=this.length;if(Yt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Jt=0;Jt<Yt;Jt+=2)Ft(this,Jt,Jt+1);return this},ht.prototype.swap32=function(){const Yt=this.length;if(Yt%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Jt=0;Jt<Yt;Jt+=4)Ft(this,Jt,Jt+3),Ft(this,Jt+1,Jt+2);return this},ht.prototype.swap64=function(){const Yt=this.length;if(Yt%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Jt=0;Jt<Yt;Jt+=8)Ft(this,Jt,Jt+7),Ft(this,Jt+1,Jt+6),Ft(this,Jt+2,Jt+5),Ft(this,Jt+3,Jt+4);return this},ht.prototype.toString=function(){const Yt=this.length;return Yt===0?"":arguments.length===0?It(this,0,Yt):kt.apply(this,arguments)},ht.prototype.toLocaleString=ht.prototype.toString,ht.prototype.equals=function(Yt){if(!ht.isBuffer(Yt))throw new TypeError("Argument must be a Buffer");return this===Yt?!0:ht.compare(this,Yt)===0},ht.prototype.inspect=function(){let Yt="";const Jt=_e.INSPECT_MAX_BYTES;return Yt=this.toString("hex",0,Jt).replace(/(.{2})/g,"$1 ").trim(),this.length>Jt&&(Yt+=" ... "),"<Buffer "+Yt+">"},nt&&(ht.prototype[nt]=ht.prototype.inspect),ht.prototype.compare=function(Yt,Jt,ir,br,Jr){if(Br(Yt,it)&&(Yt=ht.from(Yt,Yt.offset,Yt.byteLength)),!ht.isBuffer(Yt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Yt);if(Jt===void 0&&(Jt=0),ir===void 0&&(ir=Yt?Yt.length:0),br===void 0&&(br=0),Jr===void 0&&(Jr=this.length),Jt<0||ir>Yt.length||br<0||Jr>this.length)throw new RangeError("out of range index");if(br>=Jr&&Jt>=ir)return 0;if(br>=Jr)return-1;if(Jt>=ir)return 1;if(Jt>>>=0,ir>>>=0,br>>>=0,Jr>>>=0,this===Yt)return 0;let Ar=Jr-br,Yr=ir-Jt;const Kn=Math.min(Ar,Yr),sn=this.slice(br,Jr),mn=Yt.slice(Jt,ir);for(let Xn=0;Xn<Kn;++Xn)if(sn[Xn]!==mn[Xn]){Ar=sn[Xn],Yr=mn[Xn];break}return Ar<Yr?-1:Yr<Ar?1:0};function jt(tr,Yt,Jt,ir,br){if(tr.length===0)return-1;if(typeof Jt=="string"?(ir=Jt,Jt=0):Jt>2147483647?Jt=2147483647:Jt<-2147483648&&(Jt=-2147483648),Jt=+Jt,qr(Jt)&&(Jt=br?0:tr.length-1),Jt<0&&(Jt=tr.length+Jt),Jt>=tr.length){if(br)return-1;Jt=tr.length-1}else if(Jt<0)if(br)Jt=0;else return-1;if(typeof Yt=="string"&&(Yt=ht.from(Yt,ir)),ht.isBuffer(Yt))return Yt.length===0?-1:Gt(tr,Yt,Jt,ir,br);if(typeof Yt=="number")return Yt=Yt&255,typeof it.prototype.indexOf=="function"?br?it.prototype.indexOf.call(tr,Yt,Jt):it.prototype.lastIndexOf.call(tr,Yt,Jt):Gt(tr,[Yt],Jt,ir,br);throw new TypeError("val must be string, number or Buffer")}function Gt(tr,Yt,Jt,ir,br){let Jr=1,Ar=tr.length,Yr=Yt.length;if(ir!==void 0&&(ir=String(ir).toLowerCase(),ir==="ucs2"||ir==="ucs-2"||ir==="utf16le"||ir==="utf-16le")){if(tr.length<2||Yt.length<2)return-1;Jr=2,Ar/=2,Yr/=2,Jt/=2}function Kn(mn,Xn){return Jr===1?mn[Xn]:mn.readUInt16BE(Xn*Jr)}let sn;if(br){let mn=-1;for(sn=Jt;sn<Ar;sn++)if(Kn(tr,sn)===Kn(Yt,mn===-1?0:sn-mn)){if(mn===-1&&(mn=sn),sn-mn+1===Yr)return mn*Jr}else mn!==-1&&(sn-=sn-mn),mn=-1}else for(Jt+Yr>Ar&&(Jt=Ar-Yr),sn=Jt;sn>=0;sn--){let mn=!0;for(let Xn=0;Xn<Yr;Xn++)if(Kn(tr,sn+Xn)!==Kn(Yt,Xn)){mn=!1;break}if(mn)return sn}return-1}ht.prototype.includes=function(Yt,Jt,ir){return this.indexOf(Yt,Jt,ir)!==-1},ht.prototype.indexOf=function(Yt,Jt,ir){return jt(this,Yt,Jt,ir,!0)},ht.prototype.lastIndexOf=function(Yt,Jt,ir){return jt(this,Yt,Jt,ir,!1)};function Rt(tr,Yt,Jt,ir){Jt=Number(Jt)||0;const br=tr.length-Jt;ir?(ir=Number(ir),ir>br&&(ir=br)):ir=br;const Jr=Yt.length;ir>Jr/2&&(ir=Jr/2);let Ar;for(Ar=0;Ar<ir;++Ar){const Yr=parseInt(Yt.substr(Ar*2,2),16);if(qr(Yr))return Ar;tr[Jt+Ar]=Yr}return Ar}function yt(tr,Yt,Jt,ir){return dr(gn(Yt,tr.length-Jt),tr,Jt,ir)}function $t(tr,Yt,Jt,ir){return dr(Tr(Yt),tr,Jt,ir)}function xt(tr,Yt,Jt,ir){return dr(An(Yt),tr,Jt,ir)}function At(tr,Yt,Jt,ir){return dr(Pr(Yt,tr.length-Jt),tr,Jt,ir)}ht.prototype.write=function(Yt,Jt,ir,br){if(Jt===void 0)br="utf8",ir=this.length,Jt=0;else if(ir===void 0&&typeof Jt=="string")br=Jt,ir=this.length,Jt=0;else if(isFinite(Jt))Jt=Jt>>>0,isFinite(ir)?(ir=ir>>>0,br===void 0&&(br="utf8")):(br=ir,ir=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Jr=this.length-Jt;if((ir===void 0||ir>Jr)&&(ir=Jr),Yt.length>0&&(ir<0||Jt<0)||Jt>this.length)throw new RangeError("Attempt to write outside buffer bounds");br||(br="utf8");let Ar=!1;for(;;)switch(br){case"hex":return Rt(this,Yt,Jt,ir);case"utf8":case"utf-8":return yt(this,Yt,Jt,ir);case"ascii":case"latin1":case"binary":return $t(this,Yt,Jt,ir);case"base64":return xt(this,Yt,Jt,ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,Yt,Jt,ir);default:if(Ar)throw new TypeError("Unknown encoding: "+br);br=(""+br).toLowerCase(),Ar=!0}},ht.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(tr,Yt,Jt){return Yt===0&&Jt===tr.length?et.fromByteArray(tr):et.fromByteArray(tr.slice(Yt,Jt))}function It(tr,Yt,Jt){Jt=Math.min(tr.length,Jt);const ir=[];let br=Yt;for(;br<Jt;){const Jr=tr[br];let Ar=null,Yr=Jr>239?4:Jr>223?3:Jr>191?2:1;if(br+Yr<=Jt){let Kn,sn,mn,Xn;switch(Yr){case 1:Jr<128&&(Ar=Jr);break;case 2:Kn=tr[br+1],(Kn&192)===128&&(Xn=(Jr&31)<<6|Kn&63,Xn>127&&(Ar=Xn));break;case 3:Kn=tr[br+1],sn=tr[br+2],(Kn&192)===128&&(sn&192)===128&&(Xn=(Jr&15)<<12|(Kn&63)<<6|sn&63,Xn>2047&&(Xn<55296||Xn>57343)&&(Ar=Xn));break;case 4:Kn=tr[br+1],sn=tr[br+2],mn=tr[br+3],(Kn&192)===128&&(sn&192)===128&&(mn&192)===128&&(Xn=(Jr&15)<<18|(Kn&63)<<12|(sn&63)<<6|mn&63,Xn>65535&&Xn<1114112&&(Ar=Xn))}}Ar===null?(Ar=65533,Yr=1):Ar>65535&&(Ar-=65536,ir.push(Ar>>>10&1023|55296),Ar=56320|Ar&1023),ir.push(Ar),br+=Yr}return Ot(ir)}const Lt=4096;function Ot(tr){const Yt=tr.length;if(Yt<=Lt)return String.fromCharCode.apply(String,tr);let Jt="",ir=0;for(;ir<Yt;)Jt+=String.fromCharCode.apply(String,tr.slice(ir,ir+=Lt));return Jt}function gt(tr,Yt,Jt){let ir="";Jt=Math.min(tr.length,Jt);for(let br=Yt;br<Jt;++br)ir+=String.fromCharCode(tr[br]&127);return ir}function Pt(tr,Yt,Jt){let ir="";Jt=Math.min(tr.length,Jt);for(let br=Yt;br<Jt;++br)ir+=String.fromCharCode(tr[br]);return ir}function Bt(tr,Yt,Jt){const ir=tr.length;(!Yt||Yt<0)&&(Yt=0),(!Jt||Jt<0||Jt>ir)&&(Jt=ir);let br="";for(let Jr=Yt;Jr<Jt;++Jr)br+=Hr[tr[Jr]];return br}function Ut(tr,Yt,Jt){const ir=tr.slice(Yt,Jt);let br="";for(let Jr=0;Jr<ir.length-1;Jr+=2)br+=String.fromCharCode(ir[Jr]+ir[Jr+1]*256);return br}ht.prototype.slice=function(Yt,Jt){const ir=this.length;Yt=~~Yt,Jt=Jt===void 0?ir:~~Jt,Yt<0?(Yt+=ir,Yt<0&&(Yt=0)):Yt>ir&&(Yt=ir),Jt<0?(Jt+=ir,Jt<0&&(Jt=0)):Jt>ir&&(Jt=ir),Jt<Yt&&(Jt=Yt);const br=this.subarray(Yt,Jt);return Object.setPrototypeOf(br,ht.prototype),br};function Ht(tr,Yt,Jt){if(tr%1!==0||tr<0)throw new RangeError("offset is not uint");if(tr+Yt>Jt)throw new RangeError("Trying to access beyond buffer length")}ht.prototype.readUintLE=ht.prototype.readUIntLE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=this[Yt],Jr=1,Ar=0;for(;++Ar<Jt&&(Jr*=256);)br+=this[Yt+Ar]*Jr;return br},ht.prototype.readUintBE=ht.prototype.readUIntBE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=this[Yt+--Jt],Jr=1;for(;Jt>0&&(Jr*=256);)br+=this[Yt+--Jt]*Jr;return br},ht.prototype.readUint8=ht.prototype.readUInt8=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,1,this.length),this[Yt]},ht.prototype.readUint16LE=ht.prototype.readUInt16LE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,2,this.length),this[Yt]|this[Yt+1]<<8},ht.prototype.readUint16BE=ht.prototype.readUInt16BE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,2,this.length),this[Yt]<<8|this[Yt+1]},ht.prototype.readUint32LE=ht.prototype.readUInt32LE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),(this[Yt]|this[Yt+1]<<8|this[Yt+2]<<16)+this[Yt+3]*16777216},ht.prototype.readUint32BE=ht.prototype.readUInt32BE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),this[Yt]*16777216+(this[Yt+1]<<16|this[Yt+2]<<8|this[Yt+3])},ht.prototype.readBigUInt64LE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=Jt+this[++Yt]*2**8+this[++Yt]*2**16+this[++Yt]*2**24,Jr=this[++Yt]+this[++Yt]*2**8+this[++Yt]*2**16+ir*2**24;return BigInt(br)+(BigInt(Jr)<<BigInt(32))}),ht.prototype.readBigUInt64BE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=Jt*2**24+this[++Yt]*2**16+this[++Yt]*2**8+this[++Yt],Jr=this[++Yt]*2**24+this[++Yt]*2**16+this[++Yt]*2**8+ir;return(BigInt(br)<<BigInt(32))+BigInt(Jr)}),ht.prototype.readIntLE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=this[Yt],Jr=1,Ar=0;for(;++Ar<Jt&&(Jr*=256);)br+=this[Yt+Ar]*Jr;return Jr*=128,br>=Jr&&(br-=Math.pow(2,8*Jt)),br},ht.prototype.readIntBE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=Jt,Jr=1,Ar=this[Yt+--br];for(;br>0&&(Jr*=256);)Ar+=this[Yt+--br]*Jr;return Jr*=128,Ar>=Jr&&(Ar-=Math.pow(2,8*Jt)),Ar},ht.prototype.readInt8=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,1,this.length),this[Yt]&128?(255-this[Yt]+1)*-1:this[Yt]},ht.prototype.readInt16LE=function(Yt,Jt){Yt=Yt>>>0,Jt||Ht(Yt,2,this.length);const ir=this[Yt]|this[Yt+1]<<8;return ir&32768?ir|4294901760:ir},ht.prototype.readInt16BE=function(Yt,Jt){Yt=Yt>>>0,Jt||Ht(Yt,2,this.length);const ir=this[Yt+1]|this[Yt]<<8;return ir&32768?ir|4294901760:ir},ht.prototype.readInt32LE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),this[Yt]|this[Yt+1]<<8|this[Yt+2]<<16|this[Yt+3]<<24},ht.prototype.readInt32BE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),this[Yt]<<24|this[Yt+1]<<16|this[Yt+2]<<8|this[Yt+3]},ht.prototype.readBigInt64LE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=this[Yt+4]+this[Yt+5]*2**8+this[Yt+6]*2**16+(ir<<24);return(BigInt(br)<<BigInt(32))+BigInt(Jt+this[++Yt]*2**8+this[++Yt]*2**16+this[++Yt]*2**24)}),ht.prototype.readBigInt64BE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=(Jt<<24)+this[++Yt]*2**16+this[++Yt]*2**8+this[++Yt];return(BigInt(br)<<BigInt(32))+BigInt(this[++Yt]*2**24+this[++Yt]*2**16+this[++Yt]*2**8+ir)}),ht.prototype.readFloatLE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),tt.read(this,Yt,!0,23,4)},ht.prototype.readFloatBE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),tt.read(this,Yt,!1,23,4)},ht.prototype.readDoubleLE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,8,this.length),tt.read(this,Yt,!0,52,8)},ht.prototype.readDoubleBE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,8,this.length),tt.read(this,Yt,!1,52,8)};function qt(tr,Yt,Jt,ir,br,Jr){if(!ht.isBuffer(tr))throw new TypeError('"buffer" argument must be a Buffer instance');if(Yt>br||Yt<Jr)throw new RangeError('"value" argument is out of bounds');if(Jt+ir>tr.length)throw new RangeError("Index out of range")}ht.prototype.writeUintLE=ht.prototype.writeUIntLE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,ir=ir>>>0,!br){const Yr=Math.pow(2,8*ir)-1;qt(this,Yt,Jt,ir,Yr,0)}let Jr=1,Ar=0;for(this[Jt]=Yt&255;++Ar<ir&&(Jr*=256);)this[Jt+Ar]=Yt/Jr&255;return Jt+ir},ht.prototype.writeUintBE=ht.prototype.writeUIntBE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,ir=ir>>>0,!br){const Yr=Math.pow(2,8*ir)-1;qt(this,Yt,Jt,ir,Yr,0)}let Jr=ir-1,Ar=1;for(this[Jt+Jr]=Yt&255;--Jr>=0&&(Ar*=256);)this[Jt+Jr]=Yt/Ar&255;return Jt+ir},ht.prototype.writeUint8=ht.prototype.writeUInt8=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,1,255,0),this[Jt]=Yt&255,Jt+1},ht.prototype.writeUint16LE=ht.prototype.writeUInt16LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,65535,0),this[Jt]=Yt&255,this[Jt+1]=Yt>>>8,Jt+2},ht.prototype.writeUint16BE=ht.prototype.writeUInt16BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,65535,0),this[Jt]=Yt>>>8,this[Jt+1]=Yt&255,Jt+2},ht.prototype.writeUint32LE=ht.prototype.writeUInt32LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,4294967295,0),this[Jt+3]=Yt>>>24,this[Jt+2]=Yt>>>16,this[Jt+1]=Yt>>>8,this[Jt]=Yt&255,Jt+4},ht.prototype.writeUint32BE=ht.prototype.writeUInt32BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,4294967295,0),this[Jt]=Yt>>>24,this[Jt+1]=Yt>>>16,this[Jt+2]=Yt>>>8,this[Jt+3]=Yt&255,Jt+4};function Vt(tr,Yt,Jt,ir,br){Sr(Yt,ir,br,tr,Jt,7);let Jr=Number(Yt&BigInt(4294967295));tr[Jt++]=Jr,Jr=Jr>>8,tr[Jt++]=Jr,Jr=Jr>>8,tr[Jt++]=Jr,Jr=Jr>>8,tr[Jt++]=Jr;let Ar=Number(Yt>>BigInt(32)&BigInt(4294967295));return tr[Jt++]=Ar,Ar=Ar>>8,tr[Jt++]=Ar,Ar=Ar>>8,tr[Jt++]=Ar,Ar=Ar>>8,tr[Jt++]=Ar,Jt}function zt(tr,Yt,Jt,ir,br){Sr(Yt,ir,br,tr,Jt,7);let Jr=Number(Yt&BigInt(4294967295));tr[Jt+7]=Jr,Jr=Jr>>8,tr[Jt+6]=Jr,Jr=Jr>>8,tr[Jt+5]=Jr,Jr=Jr>>8,tr[Jt+4]=Jr;let Ar=Number(Yt>>BigInt(32)&BigInt(4294967295));return tr[Jt+3]=Ar,Ar=Ar>>8,tr[Jt+2]=Ar,Ar=Ar>>8,tr[Jt+1]=Ar,Ar=Ar>>8,tr[Jt]=Ar,Jt+8}ht.prototype.writeBigUInt64LE=Qr(function(Yt,Jt=0){return Vt(this,Yt,Jt,BigInt(0),BigInt("0xffffffffffffffff"))}),ht.prototype.writeBigUInt64BE=Qr(function(Yt,Jt=0){return zt(this,Yt,Jt,BigInt(0),BigInt("0xffffffffffffffff"))}),ht.prototype.writeIntLE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,!br){const Kn=Math.pow(2,8*ir-1);qt(this,Yt,Jt,ir,Kn-1,-Kn)}let Jr=0,Ar=1,Yr=0;for(this[Jt]=Yt&255;++Jr<ir&&(Ar*=256);)Yt<0&&Yr===0&&this[Jt+Jr-1]!==0&&(Yr=1),this[Jt+Jr]=(Yt/Ar>>0)-Yr&255;return Jt+ir},ht.prototype.writeIntBE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,!br){const Kn=Math.pow(2,8*ir-1);qt(this,Yt,Jt,ir,Kn-1,-Kn)}let Jr=ir-1,Ar=1,Yr=0;for(this[Jt+Jr]=Yt&255;--Jr>=0&&(Ar*=256);)Yt<0&&Yr===0&&this[Jt+Jr+1]!==0&&(Yr=1),this[Jt+Jr]=(Yt/Ar>>0)-Yr&255;return Jt+ir},ht.prototype.writeInt8=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,1,127,-128),Yt<0&&(Yt=255+Yt+1),this[Jt]=Yt&255,Jt+1},ht.prototype.writeInt16LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,32767,-32768),this[Jt]=Yt&255,this[Jt+1]=Yt>>>8,Jt+2},ht.prototype.writeInt16BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,32767,-32768),this[Jt]=Yt>>>8,this[Jt+1]=Yt&255,Jt+2},ht.prototype.writeInt32LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,2147483647,-2147483648),this[Jt]=Yt&255,this[Jt+1]=Yt>>>8,this[Jt+2]=Yt>>>16,this[Jt+3]=Yt>>>24,Jt+4},ht.prototype.writeInt32BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,2147483647,-2147483648),Yt<0&&(Yt=4294967295+Yt+1),this[Jt]=Yt>>>24,this[Jt+1]=Yt>>>16,this[Jt+2]=Yt>>>8,this[Jt+3]=Yt&255,Jt+4},ht.prototype.writeBigInt64LE=Qr(function(Yt,Jt=0){return Vt(this,Yt,Jt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ht.prototype.writeBigInt64BE=Qr(function(Yt,Jt=0){return zt(this,Yt,Jt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Wt(tr,Yt,Jt,ir,br,Jr){if(Jt+ir>tr.length)throw new RangeError("Index out of range");if(Jt<0)throw new RangeError("Index out of range")}function Xt(tr,Yt,Jt,ir,br){return Yt=+Yt,Jt=Jt>>>0,br||Wt(tr,Yt,Jt,4),tt.write(tr,Yt,Jt,ir,23,4),Jt+4}ht.prototype.writeFloatLE=function(Yt,Jt,ir){return Xt(this,Yt,Jt,!0,ir)},ht.prototype.writeFloatBE=function(Yt,Jt,ir){return Xt(this,Yt,Jt,!1,ir)};function Zt(tr,Yt,Jt,ir,br){return Yt=+Yt,Jt=Jt>>>0,br||Wt(tr,Yt,Jt,8),tt.write(tr,Yt,Jt,ir,52,8),Jt+8}ht.prototype.writeDoubleLE=function(Yt,Jt,ir){return Zt(this,Yt,Jt,!0,ir)},ht.prototype.writeDoubleBE=function(Yt,Jt,ir){return Zt(this,Yt,Jt,!1,ir)},ht.prototype.copy=function(Yt,Jt,ir,br){if(!ht.isBuffer(Yt))throw new TypeError("argument should be a Buffer");if(ir||(ir=0),!br&&br!==0&&(br=this.length),Jt>=Yt.length&&(Jt=Yt.length),Jt||(Jt=0),br>0&&br<ir&&(br=ir),br===ir||Yt.length===0||this.length===0)return 0;if(Jt<0)throw new RangeError("targetStart out of bounds");if(ir<0||ir>=this.length)throw new RangeError("Index out of range");if(br<0)throw new RangeError("sourceEnd out of bounds");br>this.length&&(br=this.length),Yt.length-Jt<br-ir&&(br=Yt.length-Jt+ir);const Jr=br-ir;return this===Yt&&typeof it.prototype.copyWithin=="function"?this.copyWithin(Jt,ir,br):it.prototype.set.call(Yt,this.subarray(ir,br),Jt),Jr},ht.prototype.fill=function(Yt,Jt,ir,br){if(typeof Yt=="string"){if(typeof Jt=="string"?(br=Jt,Jt=0,ir=this.length):typeof ir=="string"&&(br=ir,ir=this.length),br!==void 0&&typeof br!="string")throw new TypeError("encoding must be a string");if(typeof br=="string"&&!ht.isEncoding(br))throw new TypeError("Unknown encoding: "+br);if(Yt.length===1){const Ar=Yt.charCodeAt(0);(br==="utf8"&&Ar<128||br==="latin1")&&(Yt=Ar)}}else typeof Yt=="number"?Yt=Yt&255:typeof Yt=="boolean"&&(Yt=Number(Yt));if(Jt<0||this.length<Jt||this.length<ir)throw new RangeError("Out of range index");if(ir<=Jt)return this;Jt=Jt>>>0,ir=ir===void 0?this.length:ir>>>0,Yt||(Yt=0);let Jr;if(typeof Yt=="number")for(Jr=Jt;Jr<ir;++Jr)this[Jr]=Yt;else{const Ar=ht.isBuffer(Yt)?Yt:ht.from(Yt,br),Yr=Ar.length;if(Yr===0)throw new TypeError('The value "'+Yt+'" is invalid for argument "value"');for(Jr=0;Jr<ir-Jt;++Jr)this[Jr+Jt]=Ar[Jr%Yr]}return this};const Qt={};function Kt(tr,Yt,Jt){Qt[tr]=class extends Jt{constructor(){super(),Object.defineProperty(this,"message",{value:Yt.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${tr}]`,this.stack,delete this.name}get code(){return tr}set code(br){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:br,writable:!0})}toString(){return`${this.name} [${tr}]: ${this.message}`}}}Kt("ERR_BUFFER_OUT_OF_BOUNDS",function(tr){return tr?`${tr} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Kt("ERR_INVALID_ARG_TYPE",function(tr,Yt){return`The "${tr}" argument must be of type number. Received type ${typeof Yt}`},TypeError),Kt("ERR_OUT_OF_RANGE",function(tr,Yt,Jt){let ir=`The value of "${tr}" is out of range.`,br=Jt;return Number.isInteger(Jt)&&Math.abs(Jt)>2**32?br=ar(String(Jt)):typeof Jt=="bigint"&&(br=String(Jt),(Jt>BigInt(2)**BigInt(32)||Jt<-(BigInt(2)**BigInt(32)))&&(br=ar(br)),br+="n"),ir+=` It must be ${Yt}. Received ${br}`,ir},RangeError);function ar(tr){let Yt="",Jt=tr.length;const ir=tr[0]==="-"?1:0;for(;Jt>=ir+4;Jt-=3)Yt=`_${tr.slice(Jt-3,Jt)}${Yt}`;return`${tr.slice(0,Jt)}${Yt}`}function Er(tr,Yt,Jt){gr(Yt,"offset"),(tr[Yt]===void 0||tr[Yt+Jt]===void 0)&&yn(Yt,tr.length-(Jt+1))}function Sr(tr,Yt,Jt,ir,br,Jr){if(tr>Jt||tr<Yt){const Ar=typeof Yt=="bigint"?"n":"";let Yr;throw Jr>3?Yt===0||Yt===BigInt(0)?Yr=`>= 0${Ar} and < 2${Ar} ** ${(Jr+1)*8}${Ar}`:Yr=`>= -(2${Ar} ** ${(Jr+1)*8-1}${Ar}) and < 2 ** ${(Jr+1)*8-1}${Ar}`:Yr=`>= ${Yt}${Ar} and <= ${Jt}${Ar}`,new Qt.ERR_OUT_OF_RANGE("value",Yr,tr)}Er(ir,br,Jr)}function gr(tr,Yt){if(typeof tr!="number")throw new Qt.ERR_INVALID_ARG_TYPE(Yt,"number",tr)}function yn(tr,Yt,Jt){throw Math.floor(tr)!==tr?(gr(tr,Jt),new Qt.ERR_OUT_OF_RANGE(Jt||"offset","an integer",tr)):Yt<0?new Qt.ERR_BUFFER_OUT_OF_BOUNDS:new Qt.ERR_OUT_OF_RANGE(Jt||"offset",`>= ${Jt?1:0} and <= ${Yt}`,tr)}const Nr=/[^+/0-9A-Za-z-_]/g;function xr(tr){if(tr=tr.split("=")[0],tr=tr.trim().replace(Nr,""),tr.length<2)return"";for(;tr.length%4!==0;)tr=tr+"=";return tr}function gn(tr,Yt){Yt=Yt||1/0;let Jt;const ir=tr.length;let br=null;const Jr=[];for(let Ar=0;Ar<ir;++Ar){if(Jt=tr.charCodeAt(Ar),Jt>55295&&Jt<57344){if(!br){if(Jt>56319){(Yt-=3)>-1&&Jr.push(239,191,189);continue}else if(Ar+1===ir){(Yt-=3)>-1&&Jr.push(239,191,189);continue}br=Jt;continue}if(Jt<56320){(Yt-=3)>-1&&Jr.push(239,191,189),br=Jt;continue}Jt=(br-55296<<10|Jt-56320)+65536}else br&&(Yt-=3)>-1&&Jr.push(239,191,189);if(br=null,Jt<128){if((Yt-=1)<0)break;Jr.push(Jt)}else if(Jt<2048){if((Yt-=2)<0)break;Jr.push(Jt>>6|192,Jt&63|128)}else if(Jt<65536){if((Yt-=3)<0)break;Jr.push(Jt>>12|224,Jt>>6&63|128,Jt&63|128)}else if(Jt<1114112){if((Yt-=4)<0)break;Jr.push(Jt>>18|240,Jt>>12&63|128,Jt>>6&63|128,Jt&63|128)}else throw new Error("Invalid code point")}return Jr}function Tr(tr){const Yt=[];for(let Jt=0;Jt<tr.length;++Jt)Yt.push(tr.charCodeAt(Jt)&255);return Yt}function Pr(tr,Yt){let Jt,ir,br;const Jr=[];for(let Ar=0;Ar<tr.length&&!((Yt-=2)<0);++Ar)Jt=tr.charCodeAt(Ar),ir=Jt>>8,br=Jt%256,Jr.push(br),Jr.push(ir);return Jr}function An(tr){return et.toByteArray(xr(tr))}function dr(tr,Yt,Jt,ir){let br;for(br=0;br<ir&&!(br+Jt>=Yt.length||br>=tr.length);++br)Yt[br+Jt]=tr[br];return br}function Br(tr,Yt){return tr instanceof Yt||tr!=null&&tr.constructor!=null&&tr.constructor.name!=null&&tr.constructor.name===Yt.name}function qr(tr){return tr!==tr}const Hr=function(){const tr="0123456789abcdef",Yt=new Array(256);for(let Jt=0;Jt<16;++Jt){const ir=Jt*16;for(let br=0;br<16;++br)Yt[ir+br]=tr[Jt]+tr[br]}return Yt}();function Qr(tr){return typeof BigInt>"u"?Zn:tr}function Zn(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$C=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File$1=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$2=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode,dist$f=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions,Buffer:Buffer$1$1,File:File$1,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob:atob$1,btoa:btoa$1,constants:constants$2,default:Buffer$C,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode},Symbol.toStringTag,{value:"Module"}));var _instanceof={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt={Object,Array,Function,Number,String,Date,RegExp};typeof Buffer$C<"u"&&(tt.Buffer=Buffer$C),typeof Promise<"u"&&(tt.Promise=Promise);const nt=Object.assign(at,{CONSTRUCTORS:tt});function at(){return{keyword:"instanceof",schemaType:["string","array"],compile(ot){if(typeof ot=="string"){const st=it(ot);return ct=>ct instanceof st}if(Array.isArray(ot)){const st=ot.map(it);return ct=>{for(const dt of st)if(ct instanceof dt)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function it(ot){const st=tt[ot];if(st)return st;throw new Error(`invalid "instanceof" keyword value ${ot}`)}et.default=nt,_e.exports=nt})(_instanceof,_instanceof.exports);var _instanceofExports$1=_instanceof.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(_instanceofExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(_instanceof$1,_instanceof$1.exports);var _instanceofExports=_instanceof$1.exports,range$6={exports:{}},range$5={exports:{}},_range$1={};Object.defineProperty(_range$1,"__esModule",{value:!0});function getRangeDef(_e){return()=>({keyword:_e,type:"number",schemaType:"array",macro:function([tt,nt]){return et(tt,nt),_e==="range"?{minimum:tt,maximum:nt}:{exclusiveMinimum:tt,exclusiveMaximum:nt}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function et(tt,nt){if(tt>nt||_e==="exclusiveRange"&&tt===nt)throw new Error("There are no numbers in range")}}_range$1.default=getRangeDef;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_range$1).default)("range");et.default=at,_e.exports=at})(range$5,range$5.exports);var rangeExports$2=range$5.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(rangeExports$2),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(range$6,range$6.exports);var rangeExports$1=range$6.exports,exclusiveRange$1={exports:{}},exclusiveRange={exports:{}};(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_range$1).default)("exclusiveRange");et.default=at,_e.exports=at})(exclusiveRange,exclusiveRange.exports);var exclusiveRangeExports$1=exclusiveRange.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(exclusiveRangeExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(exclusiveRange$1,exclusiveRange$1.exports);var exclusiveRangeExports=exclusiveRange$1.exports,regexp$2={exports:{}},regexp$1={exports:{}},_util$1={};Object.defineProperty(_util$1,"__esModule",{value:!0});_util$1.usePattern=_util$1.metaSchemaRef=void 0;const codegen_1=codegen,META_SCHEMA_ID="http://json-schema.org/schema";function metaSchemaRef({defaultMeta:_e}={}){return _e===!1?{}:{$ref:_e||META_SCHEMA_ID}}_util$1.metaSchemaRef=metaSchemaRef;function usePattern({gen:_e,it:{opts:et}},tt,nt=et.unicodeRegExp?"u":""){const at=new RegExp(tt,nt);return _e.scopeValue("pattern",{key:at.toString(),ref:at,code:(0,codegen_1._)`new RegExp(${tt}, ${nt})`})}_util$1.usePattern=usePattern;(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt=_util$1,at={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},it=/^\/(.*)\/([gimuy]*)$/;function ot(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(st){const{data:ct,schema:dt}=st,ht=pt(dt);st.pass((0,tt._)`${ht}.test(${ct})`);function pt(mt){if(typeof mt=="object")return(0,nt.usePattern)(st,mt.pattern,mt.flags);const vt=it.exec(mt);if(vt)return(0,nt.usePattern)(st,vt[1],vt[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},at]}}}et.default=ot,_e.exports=ot})(regexp$1,regexp$1.exports);var regexpExports$1=regexp$1.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(regexpExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(regexp$2,regexp$2.exports);var regexpExports=regexp$2.exports,transform$1={exports:{}},transform={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt={trimStart:ct=>ct.trimStart(),trimEnd:ct=>ct.trimEnd(),trimLeft:ct=>ct.trimStart(),trimRight:ct=>ct.trimEnd(),trim:ct=>ct.trim(),toLowerCase:ct=>ct.toLowerCase(),toUpperCase:ct=>ct.toUpperCase(),toEnumCase:(ct,dt)=>(dt==null?void 0:dt.hash[st(ct)])||ct},at=Object.assign(it,{transform:nt});function it(){return{keyword:"transform",schemaType:"array",before:"enum",code(ct){const{gen:dt,data:ht,schema:pt,parentSchema:mt,it:vt}=ct,{parentData:bt,parentDataProperty:_t}=vt,wt=pt;if(!wt.length)return;let Et;if(wt.includes("toEnumCase")){const Tt=ot(mt);Et=dt.scopeValue("obj",{ref:Tt,code:(0,tt.stringify)(Tt)})}dt.if((0,tt._)`typeof ${ht} == "string" && ${bt} !== undefined`,()=>{dt.assign(ht,St(wt.slice())),dt.assign((0,tt._)`${bt}[${_t}]`,ht)});function St(Tt){if(!Tt.length)return ht;const Ct=Tt.pop();if(!(Ct in nt))throw new Error(`transform: unknown transformation ${Ct}`);const Nt=dt.scopeValue("func",{ref:nt[Ct],code:(0,tt._)`require("ajv-keywords/dist/definitions/transform").transform${(0,tt.getProperty)(Ct)}`}),Dt=St(Tt);return Et&&Ct==="toEnumCase"?(0,tt._)`${Nt}(${Dt}, ${Et})`:(0,tt._)`${Nt}(${Dt})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(nt)}}}}function ot(ct){const dt={hash:{}};if(!ct.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const ht of ct.enum){if(typeof ht!="string")continue;const pt=st(ht);if(dt.hash[pt])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');dt.hash[pt]=ht}return dt}function st(ct){return ct.toLowerCase()}et.default=at,_e.exports=at})(transform,transform.exports);var transformExports$1=transform.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(transformExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(transform$1,transform$1.exports);var transformExports=transform$1.exports,uniqueItemProperties$1={exports:{}},uniqueItemProperties={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=fastDeepEqual,nt=["number","integer","string","boolean","null"];function at(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(ot,st){const ct=it(ot,st);return dt=>{if(dt.length<=1)return!0;for(let ht=0;ht<ot.length;ht++){const pt=ot[ht];if(ct[ht]){const mt={};for(const vt of dt){if(!vt||typeof vt!="object")continue;let bt=vt[pt];if(!(bt&&typeof bt=="object")){if(typeof bt=="string"&&(bt='"'+bt),mt[bt])return!1;mt[bt]=!0}}}else for(let mt=dt.length;mt--;){const vt=dt[mt];if(!(!vt||typeof vt!="object"))for(let bt=mt;bt--;){const _t=dt[bt];if(_t&&typeof _t=="object"&&tt(vt[pt],_t[pt]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}et.default=at;function it(ot,st){return ot.map(ct=>{var dt,ht,pt;const mt=(pt=(ht=(dt=st.items)===null||dt===void 0?void 0:dt.properties)===null||ht===void 0?void 0:ht[ct])===null||pt===void 0?void 0:pt.type;return Array.isArray(mt)?!mt.includes("object")&&!mt.includes("array"):nt.includes(mt)})}_e.exports=at})(uniqueItemProperties,uniqueItemProperties.exports);var uniqueItemPropertiesExports$1=uniqueItemProperties.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(uniqueItemPropertiesExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(uniqueItemProperties$1,uniqueItemProperties$1.exports);var uniqueItemPropertiesExports=uniqueItemProperties$1.exports,allRequired$1={exports:{}},allRequired={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});function tt(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(nt,at){if(!nt)return!0;const it=Object.keys(at.properties);return it.length===0?!0:{required:it}},dependencies:["properties"]}}et.default=tt,_e.exports=tt})(allRequired,allRequired.exports);var allRequiredExports$1=allRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(allRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(allRequired$1,allRequired$1.exports);var allRequiredExports=allRequired$1.exports,anyRequired$1={exports:{}},anyRequired={exports:{}},_required={};Object.defineProperty(_required,"__esModule",{value:!0});function getRequiredDef(_e){return()=>({keyword:_e,type:"object",schemaType:"array",macro(et){return et.length===0?!0:et.length===1?{required:et}:{[_e==="anyRequired"?"anyOf":"oneOf"]:et.map(nt=>({required:[nt]}))}},metaSchema:{type:"array",items:{type:"string"}}})}_required.default=getRequiredDef;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_required).default)("anyRequired");et.default=at,_e.exports=at})(anyRequired,anyRequired.exports);var anyRequiredExports$1=anyRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(anyRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(anyRequired$1,anyRequired$1.exports);var anyRequiredExports=anyRequired$1.exports,oneRequired$1={exports:{}},oneRequired={exports:{}};(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_required).default)("oneRequired");et.default=at,_e.exports=at})(oneRequired,oneRequired.exports);var oneRequiredExports$1=oneRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(oneRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(oneRequired$1,oneRequired$1.exports);var oneRequiredExports=oneRequired$1.exports,patternRequired$1={exports:{}},patternRequired={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt=_util$1,at={message:({params:{missingPattern:ot}})=>(0,tt.str)`should have property matching pattern '${ot}'`,params:({params:{missingPattern:ot}})=>(0,tt._)`{missingPattern: ${ot}}`};function it(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:at,code(ot){const{gen:st,schema:ct,data:dt}=ot;if(ct.length===0)return;const ht=st.let("valid",!0);for(const mt of ct)pt(mt);function pt(mt){const vt=st.let("matched",!1);st.forIn("key",dt,bt=>{st.assign(vt,(0,tt._)`${(0,nt.usePattern)(ot,mt)}.test(${bt})`),st.if(vt,()=>st.break())}),ot.setParams({missingPattern:mt}),st.assign(ht,(0,tt.and)(ht,vt)),ot.pass(ht)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}et.default=it,_e.exports=it})(patternRequired,patternRequired.exports);var patternRequiredExports$1=patternRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(patternRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(patternRequired$1,patternRequired$1.exports);var patternRequiredExports=patternRequired$1.exports,prohibited$1={exports:{}},prohibited={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});function tt(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(nt){return nt.length===0?!0:nt.length===1?{not:{required:nt}}:{not:{anyOf:nt.map(at=>({required:[at]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}et.default=tt,_e.exports=tt})(prohibited,prohibited.exports);var prohibitedExports$1=prohibited.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(prohibitedExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(prohibited$1,prohibited$1.exports);var prohibitedExports=prohibited$1.exports,deepProperties$1={exports:{}},deepProperties={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=_util$1;function nt(ot){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(st){const ct=[];for(const dt in st)ct.push(at(dt,st[dt]));return{allOf:ct}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,tt.metaSchemaRef)(ot)}}}et.default=nt;function at(ot,st){const ct=ot.split("/"),dt={};let ht=dt;for(let pt=1;pt<ct.length;pt++){let mt=ct[pt];const vt=pt===ct.length-1;mt=it(mt);const bt=ht.properties={};let _t;if(/[0-9]+/.test(mt)){let wt=+mt;for(_t=ht.items=[],ht.type=["object","array"];wt--;)_t.push({})}else ht.type="object";ht=vt?st:{},bt[mt]=ht,_t&&_t.push(ht)}return dt}function it(ot){return ot.replace(/~1/g,"/").replace(/~0/g,"~")}_e.exports=nt})(deepProperties,deepProperties.exports);var deepPropertiesExports$1=deepProperties.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(deepPropertiesExports$1),at=(it,ot)=>it.addKeyword((0,nt.default)(ot));et.default=at,_e.exports=at})(deepProperties$1,deepProperties$1.exports);var deepPropertiesExports=deepProperties$1.exports,deepRequired$1={exports:{}},deepRequired={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen;function nt(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(it){const{schema:ot,data:st}=it,ct=ot.map(ht=>(0,tt._)`(${dt(ht)}) === undefined`);it.fail((0,tt.or)(...ct));function dt(ht){if(ht==="")throw new Error("empty JSON pointer not allowed");const pt=ht.split("/");let mt=st;const vt=pt.map((bt,_t)=>_t?mt=(0,tt._)`${mt}${(0,tt.getProperty)(at(bt))}`:mt);return(0,tt.and)(...vt)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}et.default=nt;function at(it){return it.replace(/~1/g,"/").replace(/~0/g,"~")}_e.exports=nt})(deepRequired,deepRequired.exports);var deepRequiredExports$1=deepRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(deepRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(deepRequired$1,deepRequired$1.exports);var deepRequiredExports=deepRequired$1.exports,dynamicDefaults$1={exports:{}},dynamicDefaults={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt={},nt={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:ht=>{var pt;const mt=(pt=ht==null?void 0:ht.max)!==null&&pt!==void 0?pt:2;return()=>Math.floor(Math.random()*mt)},seq:ht=>{var pt;const mt=(pt=ht==null?void 0:ht.name)!==null&&pt!==void 0?pt:"";return tt[mt]||(tt[mt]=0),()=>tt[mt]++}},at=Object.assign(it,{DEFAULTS:nt});function it(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(ht,pt,mt){if(!mt.opts.useDefaults||mt.compositeRule)return()=>!0;const vt={};for(const _t in ht)vt[_t]=ot(ht[_t]);const bt=mt.opts.useDefaults==="empty";return _t=>{for(const wt in ht)(_t[wt]===void 0||bt&&(_t[wt]===null||_t[wt]===""))&&(_t[wt]=vt[wt]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function ot(ht){return typeof ht=="object"?st(ht):ct(ht)}function st({func:ht,args:pt}){const mt=nt[ht];return dt(ht,mt),mt(pt)}function ct(ht=""){const pt=nt[ht];return dt(ht,pt),pt()}function dt(ht,pt){if(!pt)throw new Error(`invalid "dynamicDefaults" keyword property value: ${ht}`)}et.default=at,_e.exports=at})(dynamicDefaults,dynamicDefaults.exports);var dynamicDefaultsExports$1=dynamicDefaults.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(dynamicDefaultsExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(dynamicDefaults$1,dynamicDefaults$1.exports);var dynamicDefaultsExports=dynamicDefaults$1.exports,select$2={exports:{}},select$1={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt=_util$1,at={message:({params:{schemaProp:ot}})=>ot?(0,tt.str)`should match case "${ot}" schema`:(0,tt.str)`should match default case schema`,params:({params:{schemaProp:ot}})=>ot?(0,tt._)`{failingCase: ${ot}}`:(0,tt._)`{failingDefault: true}`};function it(ot){const st=(0,nt.metaSchemaRef)(ot);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:at,dependencies:["selectCases"],code(ct){const{gen:dt,schemaCode:ht,parentSchema:pt}=ct;ct.block$data(tt.nil,()=>{const mt=dt.let("valid",!0),vt=dt.name("_valid"),bt=dt.const("value",(0,tt._)`${ht} === null ? "null" : ${ht}`);dt.if(!1);for(const _t in pt.selectCases){ct.setParams({schemaProp:_t}),dt.elseIf((0,tt._)`"" + ${bt} == ${_t}`);const wt=ct.subschema({keyword:"selectCases",schemaProp:_t},vt);ct.mergeEvaluated(wt,tt.Name),dt.assign(mt,vt)}if(dt.else(),pt.selectDefault!==void 0){ct.setParams({schemaProp:void 0});const _t=ct.subschema({keyword:"selectDefault"},vt);ct.mergeEvaluated(_t,tt.Name),dt.assign(mt,vt)}dt.endIf(),ct.pass(mt)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:st}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:st}]}et.default=it,_e.exports=it})(select$1,select$1.exports);var selectExports$1=select$1.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(selectExports$1),at=(it,ot)=>((0,nt.default)(ot).forEach(st=>it.addKeyword(st)),it);et.default=at,_e.exports=at})(select$2,select$2.exports);var selectExports=select$2.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(_typeofExports),at=tt(_instanceofExports),it=tt(rangeExports$1),ot=tt(exclusiveRangeExports),st=tt(regexpExports),ct=tt(transformExports),dt=tt(uniqueItemPropertiesExports),ht=tt(allRequiredExports),pt=tt(anyRequiredExports),mt=tt(oneRequiredExports),vt=tt(patternRequiredExports),bt=tt(prohibitedExports),_t=tt(deepPropertiesExports),wt=tt(deepRequiredExports),Et=tt(dynamicDefaultsExports),St=tt(selectExports),Tt={typeof:nt.default,instanceof:at.default,range:it.default,exclusiveRange:ot.default,regexp:st.default,transform:ct.default,uniqueItemProperties:dt.default,allRequired:ht.default,anyRequired:pt.default,oneRequired:mt.default,patternRequired:vt.default,prohibited:bt.default,deepProperties:_t.default,deepRequired:wt.default,dynamicDefaults:Et.default,select:St.default};et.default=Tt,_e.exports=Tt})(keywords$4,keywords$4.exports);var keywordsExports=keywords$4.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(keywordsExports),at=(ot,st)=>{if(Array.isArray(st)){for(const ct of st)it(ct)(ot);return ot}if(st)return it(st)(ot),ot;for(st in nt.default)it(st)(ot);return ot};at.get=it;function it(ot){const st=nt.default[ot];if(!st)throw new Error("Unknown keyword "+ot);return st}et.default=at,_e.exports=at,_e.exports.default=at})(dist$g,dist$g.exports);var distExports$4=dist$g.exports,dist$e={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=ajvExports,nt=codegen,at=code$2,it=validate$2,ot=errors,st=names$2,ct="errorMessage",dt=new tt.Name("emUsed"),ht={required:"missingProperty",dependencies:"property",dependentRequired:"property"},pt=/\$\{[^}]+\}/,mt=/\$\{([^}]+)\}/g,vt=/^""\s*\+\s*|\s*\+\s*""$/g;function bt(wt){return{keyword:ct,schemaType:["string","object"],post:!0,code(Et){const{gen:St,data:Tt,schema:Ct,schemaValue:Nt,it:Dt}=Et;if(Dt.createErrors===!1)return;const kt=Ct,Ft=nt.strConcat(st.default.instancePath,Dt.errorPath);St.if(tt._`${st.default.errors} > 0`,()=>{if(typeof kt=="object"){const[Ut,Ht]=Gt(kt);Ht&&Rt(Ht),Ut&&yt(Ut),$t(jt(kt))}const Bt=typeof kt=="string"?kt:kt._;Bt&&xt(Bt),wt.keepErrors||At()});function jt({properties:Bt,items:Ut}){const Ht={};if(Bt){Ht.props={};for(const qt in Bt)Ht.props[qt]=[]}if(Ut){Ht.items={};for(let qt=0;qt<Ut.length;qt++)Ht.items[qt]=[]}return Ht}function Gt(Bt){let Ut,Ht;for(const qt in Bt){if(qt==="properties"||qt==="items")continue;const Vt=Bt[qt];if(typeof Vt=="object"){Ut||(Ut={});const zt=Ut[qt]={};for(const Wt in Vt)zt[Wt]=[]}else Ht||(Ht={}),Ht[qt]=[]}return[Ut,Ht]}function Rt(Bt){const Ut=St.const("emErrors",tt.stringify(Bt)),Ht=St.const("templates",Ot(Bt,Ct));St.forOf("err",st.default.vErrors,Wt=>St.if(Mt(Wt,Ut),()=>St.code(tt._`${Ut}[${Wt}.keyword].push(${Wt})`).assign(tt._`${Wt}.${dt}`,!0)));const{singleError:qt}=wt;if(qt){const Wt=St.let("message",tt._`""`),Xt=St.let("paramsErrors",tt._`[]`);Vt(Zt=>{St.if(Wt,()=>St.code(tt._`${Wt} += ${typeof qt=="string"?qt:";"}`)),St.code(tt._`${Wt} += ${zt(Zt)}`),St.assign(Xt,tt._`${Xt}.concat(${Ut}[${Zt}])`)}),ot.reportError(Et,{message:Wt,params:tt._`{errors: ${Xt}}`})}else Vt(Wt=>ot.reportError(Et,{message:zt(Wt),params:tt._`{errors: ${Ut}[${Wt}]}`}));function Vt(Wt){St.forIn("key",Ut,Xt=>St.if(tt._`${Ut}[${Xt}].length`,()=>Wt(Xt)))}function zt(Wt){return tt._`${Wt} in ${Ht} ? ${Ht}[${Wt}]() : ${Nt}[${Wt}]`}}function yt(Bt){const Ut=St.const("emErrors",tt.stringify(Bt)),Ht=[];for(const Xt in Bt)Ht.push([Xt,Ot(Bt[Xt],Ct[Xt])]);const qt=St.const("templates",St.object(...Ht)),Vt=St.scopeValue("obj",{ref:ht,code:tt.stringify(ht)}),zt=St.let("emPropParams"),Wt=St.let("emParamsErrors");St.forOf("err",st.default.vErrors,Xt=>St.if(Mt(Xt,Ut),()=>{St.assign(zt,tt._`${Vt}[${Xt}.keyword]`),St.assign(Wt,tt._`${Ut}[${Xt}.keyword][${Xt}.params[${zt}]]`),St.if(Wt,()=>St.code(tt._`${Wt}.push(${Xt})`).assign(tt._`${Xt}.${dt}`,!0))})),St.forIn("key",Ut,Xt=>St.forIn("keyProp",tt._`${Ut}[${Xt}]`,Zt=>{St.assign(Wt,tt._`${Ut}[${Xt}][${Zt}]`),St.if(tt._`${Wt}.length`,()=>{const Qt=St.const("tmpl",tt._`${qt}[${Xt}] && ${qt}[${Xt}][${Zt}]`);ot.reportError(Et,{message:tt._`${Qt} ? ${Qt}() : ${Nt}[${Xt}][${Zt}]`,params:tt._`{errors: ${Wt}}`})})}))}function $t(Bt){const{props:Ut,items:Ht}=Bt;if(!Ut&&!Ht)return;const qt=tt._`typeof ${Tt} == "object"`,Vt=tt._`Array.isArray(${Tt})`,zt=St.let("emErrors");let Wt,Xt;const Zt=St.let("templates");Ut&&Ht?(Wt=St.let("emChildKwd"),St.if(qt),St.if(Vt,()=>{Qt(Ht,Ct.items),St.assign(Wt,tt.str`items`)},()=>{Qt(Ut,Ct.properties),St.assign(Wt,tt.str`properties`)}),Xt=tt._`[${Wt}]`):Ht?(St.if(Vt),Qt(Ht,Ct.items),Xt=tt._`.items`):Ut&&(St.if(nt.and(qt,nt.not(Vt))),Qt(Ut,Ct.properties),Xt=tt._`.properties`),St.forOf("err",st.default.vErrors,Kt=>It(Kt,zt,ar=>St.code(tt._`${zt}[${ar}].push(${Kt})`).assign(tt._`${Kt}.${dt}`,!0))),St.forIn("key",zt,Kt=>St.if(tt._`${zt}[${Kt}].length`,()=>{ot.reportError(Et,{message:tt._`${Kt} in ${Zt} ? ${Zt}[${Kt}]() : ${Nt}${Xt}[${Kt}]`,params:tt._`{errors: ${zt}[${Kt}]}`}),St.assign(tt._`${st.default.vErrors}[${st.default.errors}-1].instancePath`,tt._`${Ft} + "/" + ${Kt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),St.endIf();function Qt(Kt,ar){St.assign(zt,tt.stringify(Kt)),St.assign(Zt,Ot(Kt,ar))}}function xt(Bt){const Ut=St.const("emErrs",tt._`[]`);St.forOf("err",st.default.vErrors,Ht=>St.if(Lt(Ht),()=>St.code(tt._`${Ut}.push(${Ht})`).assign(tt._`${Ht}.${dt}`,!0))),St.if(tt._`${Ut}.length`,()=>ot.reportError(Et,{message:gt(Bt),params:tt._`{errors: ${Ut}}`}))}function At(){const Bt=St.const("emErrs",tt._`[]`);St.forOf("err",st.default.vErrors,Ut=>St.if(tt._`!${Ut}.${dt}`,()=>St.code(tt._`${Bt}.push(${Ut})`))),St.assign(st.default.vErrors,Bt).assign(st.default.errors,tt._`${Bt}.length`)}function Mt(Bt,Ut){return nt.and(tt._`${Bt}.keyword !== ${ct}`,tt._`!${Bt}.${dt}`,tt._`${Bt}.instancePath === ${Ft}`,tt._`${Bt}.keyword in ${Ut}`,tt._`${Bt}.schemaPath.indexOf(${Dt.errSchemaPath}) === 0`,tt._`/^\\/[^\\/]*$/.test(${Bt}.schemaPath.slice(${Dt.errSchemaPath.length}))`)}function It(Bt,Ut,Ht){St.if(nt.and(tt._`${Bt}.keyword !== ${ct}`,tt._`!${Bt}.${dt}`,tt._`${Bt}.instancePath.indexOf(${Ft}) === 0`),()=>{const qt=St.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:tt._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),Vt=St.const("emMatches",tt._`${qt}.exec(${Bt}.instancePath.slice(${Ft}.length))`),zt=St.const("emChild",tt._`${Vt} && ${Vt}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);St.if(tt._`${zt} !== undefined && ${zt} in ${Ut}`,()=>Ht(zt))})}function Lt(Bt){return nt.and(tt._`${Bt}.keyword !== ${ct}`,tt._`!${Bt}.${dt}`,nt.or(tt._`${Bt}.instancePath === ${Ft}`,nt.and(tt._`${Bt}.instancePath.indexOf(${Ft}) === 0`,tt._`${Bt}.instancePath[${Ft}.length] === "/"`)),tt._`${Bt}.schemaPath.indexOf(${Dt.errSchemaPath}) === 0`,tt._`${Bt}.schemaPath[${Dt.errSchemaPath}.length] === "/"`)}function Ot(Bt,Ut){const Ht=[];for(const qt in Bt){const Vt=Ut[qt];pt.test(Vt)&&Ht.push([qt,Pt(Vt)])}return St.object(...Ht)}function gt(Bt){return pt.test(Bt)?new at._Code(at.safeStringify(Bt).replace(mt,(Ut,Ht)=>`" + JSON.stringify(${it.getData(Ht,Dt)}) + "`).replace(vt,"")):tt.stringify(Bt)}function Pt(Bt){return tt._`function(){return ${gt(Bt)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const _t=(wt,Et={})=>{if(!wt.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(wt.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return wt.addKeyword(bt(Et))};et.default=_t,_e.exports=_t,_e.exports.default=_t})(dist$e,dist$e.exports);var distExports$3=dist$e.exports,__importDefault$1I=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(validation$4,"__esModule",{value:!0});validation$4.validateType=validation$4.generateLazyValidator=validation$4.Ajv=void 0;const ajv_1$2=__importDefault$1I(ajvExports);validation$4.Ajv=ajv_1$2.default;const ajv_keywords_1$2=__importDefault$1I(distExports$4),ajv_errors_1$2=__importDefault$1I(distExports$3);function generateLazyValidator$2(_e,et){let tt=null;const nt=(at,it)=>{if(!tt){const ot=new ajv_1$2.default({$data:!0,allErrors:!0});(0,ajv_keywords_1$2.default)(ot),(0,ajv_errors_1$2.default)(ot,{singleError:!0}),et==null||et.forEach(st=>ot.addKeyword(st)),tt=ot.compile(_e),Object.defineProperty(nt,"errors",{get(){return tt==null?void 0:tt.errors}})}return tt(at,it)};return nt}validation$4.generateLazyValidator=generateLazyValidator$2;function validateType$2(_e,et){return _e.validate(et)}validation$4.validateType=validateType$2;(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Network=void 0;const et=validation$4;(function(tt){tt.ETHEREUM="ETHEREUM",tt.MATIC="MATIC",tt.AVALANCHE="AVALANCHE",tt.BSC="BINANCE SMART CHAIN",tt.OPTIMISM="OPTIMISM",tt.ARBITRUM="ARBITRUM",tt.FANTOM="FANTOM"})(_e.Network||(_e.Network={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Network||(_e.Network={}))})(network$3);const isLoadingType=(_e,et)=>_e.some(tt=>tt.type===et),CONNECT_WALLET_REQUEST="[Request] Connect Wallet",CONNECT_WALLET_SUCCESS="[Success] Connect Wallet",CONNECT_WALLET_FAILURE="[Failure] Connect Wallet",connectWalletRequest=()=>action(CONNECT_WALLET_REQUEST),connectWalletSuccess=_e=>action(CONNECT_WALLET_SUCCESS,{wallet:_e}),connectWalletFailure=_e=>action(CONNECT_WALLET_FAILURE,{error:_e}),ENABLE_WALLET_REQUEST="[Request] Enable Wallet",ENABLE_WALLET_SUCCESS="[Success] Enable Wallet",ENABLE_WALLET_FAILURE="[Failure] Enable Wallet",enableWalletRequest=_e=>action(ENABLE_WALLET_REQUEST,{providerType:_e}),enableWalletSuccess=_e=>action(ENABLE_WALLET_SUCCESS,{providerType:_e}),enableWalletFailure=_e=>action(ENABLE_WALLET_FAILURE,{error:_e}),CHANGE_ACCOUNT="Change Account",changeAccount=_e=>action(CHANGE_ACCOUNT,{wallet:_e}),CHANGE_NETWORK$1="Change Network",changeNetwork=_e=>action(CHANGE_NETWORK$1,{wallet:_e}),DISCONNECT_WALLET="Disconnect",disconnectWallet=()=>action(DISCONNECT_WALLET),FETCH_WALLET_REQUEST="[Request] Fetch Wallet",FETCH_WALLET_SUCCESS="[Success] Fetch Wallet",FETCH_WALLET_FAILURE="[Failure] Fetch Wallet",fetchWalletRequest=()=>action(FETCH_WALLET_REQUEST),fetchWalletSuccess=_e=>action(FETCH_WALLET_SUCCESS,{wallet:_e}),fetchWalletFailure=_e=>action(FETCH_WALLET_FAILURE,{error:_e}),SWITCH_NETWORK_REQUEST="[Request] Switch Network",SWITCH_NETWORK_SUCCESS="[Success] Switch Network",SWITCH_NETWORK_FAILURE="[Failure] Switch Network",switchNetworkRequest=(_e,et)=>action(SWITCH_NETWORK_REQUEST,{chainId:_e,fromChainId:et}),switchNetworkSuccess=_e=>action(SWITCH_NETWORK_SUCCESS,{chainId:_e}),switchNetworkFailure=(_e,et)=>action(SWITCH_NETWORK_FAILURE,{chainId:_e,error:et}),SET_APP_CHAIN_ID="Set App ChainId",setAppChainId=_e=>action(SET_APP_CHAIN_ID,{chainId:_e}),getState$4=_e=>_e.wallet,getData$a=_e=>getState$4(_e).data,getLoading$2=_e=>getState$4(_e).loading,getError$1=_e=>getState$4(_e).error,isConnected=_e=>getData$a(_e)!==null,isConnecting=_e=>isLoadingType(getLoading$2(_e),CONNECT_WALLET_REQUEST),isEnabling=_e=>isLoadingType(getLoading$2(_e),ENABLE_WALLET_REQUEST),getAddress$2=_e=>isConnected(_e)?getData$a(_e).address:void 0,getChainId=_e=>isConnected(_e)?getData$a(_e).chainId:void 0,getNetwork$1=_e=>isConnected(_e)?getData$a(_e).network:void 0,getNetworks=_e=>isConnected(_e)?getData$a(_e).networks:void 0,isSwitchingNetwork=_e=>isLoadingType(getLoading$2(_e),SWITCH_NETWORK_REQUEST),getAppChainId=_e=>getState$4(_e).appChainId,getManaBalances=_e=>{if(!isConnected(_e))return;const et={},tt=[network$3.Network.ETHEREUM,network$3.Network.MATIC],nt=getNetworks(_e);for(const at of tt)nt[at]&&(et[at]=nt[at].mana);return et};var chainId$2={},chainName$2={},hasRequiredChainName$2;function requireChainName$2(){return hasRequiredChainName$2||(hasRequiredChainName$2=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.getChainId=_e.ChainName=void 0;const et=validation$4,tt=requireChainId$2();var nt;(function(it){it.ETHEREUM_MAINNET="Ethereum Mainnet",it.ETHEREUM_ROPSTEN="Ropsten",it.ETHEREUM_RINKEBY="Rinkeby",it.ETHEREUM_GOERLI="Goerli",it.ETHEREUM_KOVAN="Kovan",it.ETHEREUM_SEPOLIA="Sepolia",it.MATIC_MAINNET="Polygon",it.MATIC_MUMBAI="Mumbai",it.MATIC_AMOY="Amoy",it.AVALANCHE_MAINNET="Avalanche",it.BINANCE_MAINNET="Binance Smart Chain",it.ARBITRUM_MAINNET="Arbitrum",it.OPTIMISM_MAINNET="Optimism",it.FANTOM_MAINNET="Fantom"})(nt=_e.ChainName||(_e.ChainName={}));function at(it){switch(it){case nt.ETHEREUM_MAINNET:return tt.ChainId.ETHEREUM_MAINNET;case nt.ETHEREUM_ROPSTEN:return tt.ChainId.ETHEREUM_ROPSTEN;case nt.ETHEREUM_RINKEBY:return tt.ChainId.ETHEREUM_RINKEBY;case nt.ETHEREUM_GOERLI:return tt.ChainId.ETHEREUM_GOERLI;case nt.ETHEREUM_KOVAN:return tt.ChainId.ETHEREUM_KOVAN;case nt.ETHEREUM_SEPOLIA:return tt.ChainId.ETHEREUM_SEPOLIA;case nt.MATIC_MAINNET:return tt.ChainId.MATIC_MAINNET;case nt.MATIC_MUMBAI:return tt.ChainId.MATIC_MUMBAI;case nt.MATIC_AMOY:return tt.ChainId.MATIC_AMOY;case nt.AVALANCHE_MAINNET:return tt.ChainId.AVALANCHE_MAINNET;case nt.BINANCE_MAINNET:return tt.ChainId.BSC_MAINNET;case nt.ARBITRUM_MAINNET:return tt.ChainId.ARBITRUM_MAINNET;case nt.OPTIMISM_MAINNET:return tt.ChainId.OPTIMISM_MAINNET;case nt.FANTOM_MAINNET:return tt.ChainId.FANTOM_MAINNET;default:return null}}_e.getChainId=at,function(it){it.schema={type:"string",enum:Object.values(it)},it.validate=(0,et.generateLazyValidator)(it.schema)}(nt=_e.ChainName||(_e.ChainName={}))}(chainName$2)),chainName$2}var hasRequiredChainId$2;function requireChainId$2(){return hasRequiredChainId$2||(hasRequiredChainId$2=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.getNetwork=_e.getNetworkMapping=_e.getURNProtocol=_e.getChainName=_e.ChainId=void 0;const et=validation$4,tt=requireChainName$2(),nt=network$3;var at;(function(dt){dt[dt.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",dt[dt.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",dt[dt.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",dt[dt.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",dt[dt.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",dt[dt.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",dt[dt.MATIC_MAINNET=137]="MATIC_MAINNET",dt[dt.MATIC_MUMBAI=80001]="MATIC_MUMBAI",dt[dt.MATIC_AMOY=80002]="MATIC_AMOY",dt[dt.BSC_MAINNET=56]="BSC_MAINNET",dt[dt.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",dt[dt.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",dt[dt.FANTOM_MAINNET=250]="FANTOM_MAINNET",dt[dt.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(at=_e.ChainId||(_e.ChainId={}));function it(dt){switch(dt){case at.ETHEREUM_MAINNET:return tt.ChainName.ETHEREUM_MAINNET;case at.ETHEREUM_ROPSTEN:return tt.ChainName.ETHEREUM_ROPSTEN;case at.ETHEREUM_RINKEBY:return tt.ChainName.ETHEREUM_RINKEBY;case at.ETHEREUM_GOERLI:return tt.ChainName.ETHEREUM_GOERLI;case at.ETHEREUM_KOVAN:return tt.ChainName.ETHEREUM_KOVAN;case at.ETHEREUM_SEPOLIA:return tt.ChainName.ETHEREUM_SEPOLIA;case at.MATIC_MAINNET:return tt.ChainName.MATIC_MAINNET;case at.MATIC_MUMBAI:return tt.ChainName.MATIC_MUMBAI;case at.MATIC_AMOY:return tt.ChainName.MATIC_AMOY;case at.BSC_MAINNET:return tt.ChainName.BINANCE_MAINNET;case at.ARBITRUM_MAINNET:return tt.ChainName.ARBITRUM_MAINNET;case at.OPTIMISM_MAINNET:return tt.ChainName.OPTIMISM_MAINNET;case at.FANTOM_MAINNET:return tt.ChainName.FANTOM_MAINNET;case at.AVALANCHE_MAINNET:return tt.ChainName.AVALANCHE_MAINNET;default:return null}}_e.getChainName=it;function ot(dt){switch(dt){case at.ETHEREUM_MAINNET:return"ethereum";case at.ETHEREUM_ROPSTEN:return"ropsten";case at.ETHEREUM_RINKEBY:return"rinkeby";case at.ETHEREUM_GOERLI:return"goerli";case at.ETHEREUM_KOVAN:return"kovan";case at.ETHEREUM_SEPOLIA:return"sepolia";case at.MATIC_MAINNET:return"matic";case at.MATIC_MUMBAI:return"mumbai";case at.MATIC_AMOY:return"amoy";default:return""}}_e.getURNProtocol=ot;function st(dt){const ht={[nt.Network.BSC]:at.BSC_MAINNET,[nt.Network.OPTIMISM]:at.OPTIMISM_MAINNET,[nt.Network.ARBITRUM]:at.ARBITRUM_MAINNET,[nt.Network.FANTOM]:at.FANTOM_MAINNET,[nt.Network.AVALANCHE]:at.AVALANCHE_MAINNET};switch(dt){case at.ETHEREUM_MAINNET:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_MAINNET,[nt.Network.MATIC]:at.MATIC_MAINNET},ht);case at.ETHEREUM_ROPSTEN:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_ROPSTEN,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_RINKEBY:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_RINKEBY,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_GOERLI:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_GOERLI,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_KOVAN:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_KOVAN,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_SEPOLIA:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_SEPOLIA,[nt.Network.MATIC]:at.MATIC_AMOY},ht);case at.MATIC_MAINNET:return Object.assign({[nt.Network.ETHEREUM]:at.MATIC_MAINNET,[nt.Network.MATIC]:at.MATIC_MAINNET},ht);case at.MATIC_MUMBAI:return Object.assign({[nt.Network.ETHEREUM]:at.MATIC_MUMBAI,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.MATIC_AMOY:return Object.assign({[nt.Network.ETHEREUM]:at.MATIC_AMOY,[nt.Network.MATIC]:at.MATIC_AMOY},ht);default:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_MAINNET,[nt.Network.MATIC]:at.MATIC_MAINNET},ht)}}_e.getNetworkMapping=st;function ct(dt){switch(dt){case at.ETHEREUM_MAINNET:case at.ETHEREUM_ROPSTEN:case at.ETHEREUM_GOERLI:case at.ETHEREUM_KOVAN:case at.ETHEREUM_RINKEBY:case at.ETHEREUM_SEPOLIA:return nt.Network.ETHEREUM;case at.MATIC_MAINNET:case at.MATIC_MUMBAI:case at.MATIC_AMOY:return nt.Network.MATIC;case at.BSC_MAINNET:return nt.Network.BSC;case at.OPTIMISM_MAINNET:return nt.Network.OPTIMISM;case at.ARBITRUM_MAINNET:return nt.Network.ARBITRUM;case at.FANTOM_MAINNET:return nt.Network.FANTOM;case at.AVALANCHE_MAINNET:return nt.Network.AVALANCHE}}_e.getNetwork=ct,function(dt){dt.schema={type:"number",enum:Object.values(dt)},dt.validate=(0,et.generateLazyValidator)(dt.schema)}(at=_e.ChainId||(_e.ChainId={}))}(chainId$2)),chainId$2}var chainIdExports=requireChainId$2(),providerType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProviderType=void 0;const et=validation$4;(function(tt){tt.INJECTED="injected",tt.MAGIC="magic",tt.FORTMATIC="formatic",tt.NETWORK="network",tt.WALLET_CONNECT="wallet_connect",tt.WALLET_CONNECT_V2="wallet_connect_v2",tt.WALLET_LINK="wallet_link",tt.METAMASK_MOBILE="metamask_mobile",tt.AUTH_SERVER="auth_server"})(_e.ProviderType||(_e.ProviderType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.ProviderType||(_e.ProviderType={}))})(providerType$2);var ConnectorEvent;(function(_e){_e.Update="Web3ReactUpdate",_e.Error="Web3ReactError",_e.Deactivate="Web3ReactDeactivate"})(ConnectorEvent||(ConnectorEvent={}));var events={exports:{}},R$1=typeof Reflect=="object"?Reflect:null,ReflectApply=R$1&&typeof R$1.apply=="function"?R$1.apply:function(et,tt,nt){return Function.prototype.apply.call(et,tt,nt)},ReflectOwnKeys;R$1&&typeof R$1.ownKeys=="function"?ReflectOwnKeys=R$1.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(et){return Object.getOwnPropertyNames(et).concat(Object.getOwnPropertySymbols(et))}:ReflectOwnKeys=function(et){return Object.getOwnPropertyNames(et)};function ProcessEmitWarning(_e){console&&console.warn&&console.warn(_e)}var NumberIsNaN=Number.isNaN||function(et){return et!==et};function EventEmitter$1(){EventEmitter$1.init.call(this)}events.exports=EventEmitter$1;events.exports.once=once$3;EventEmitter$1.EventEmitter=EventEmitter$1;EventEmitter$1.prototype._events=void 0;EventEmitter$1.prototype._eventsCount=0;EventEmitter$1.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(_e){if(typeof _e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _e)}Object.defineProperty(EventEmitter$1,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(_e){if(typeof _e!="number"||_e<0||NumberIsNaN(_e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_e+".");defaultMaxListeners=_e}});EventEmitter$1.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter$1.prototype.setMaxListeners=function(et){if(typeof et!="number"||et<0||NumberIsNaN(et))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+et+".");return this._maxListeners=et,this};function _getMaxListeners(_e){return _e._maxListeners===void 0?EventEmitter$1.defaultMaxListeners:_e._maxListeners}EventEmitter$1.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter$1.prototype.emit=function(et){for(var tt=[],nt=1;nt<arguments.length;nt++)tt.push(arguments[nt]);var at=et==="error",it=this._events;if(it!==void 0)at=at&&it.error===void 0;else if(!at)return!1;if(at){var ot;if(tt.length>0&&(ot=tt[0]),ot instanceof Error)throw ot;var st=new Error("Unhandled error."+(ot?" ("+ot.message+")":""));throw st.context=ot,st}var ct=it[et];if(ct===void 0)return!1;if(typeof ct=="function")ReflectApply(ct,this,tt);else for(var dt=ct.length,ht=arrayClone(ct,dt),nt=0;nt<dt;++nt)ReflectApply(ht[nt],this,tt);return!0};function _addListener(_e,et,tt,nt){var at,it,ot;if(checkListener(tt),it=_e._events,it===void 0?(it=_e._events=Object.create(null),_e._eventsCount=0):(it.newListener!==void 0&&(_e.emit("newListener",et,tt.listener?tt.listener:tt),it=_e._events),ot=it[et]),ot===void 0)ot=it[et]=tt,++_e._eventsCount;else if(typeof ot=="function"?ot=it[et]=nt?[tt,ot]:[ot,tt]:nt?ot.unshift(tt):ot.push(tt),at=_getMaxListeners(_e),at>0&&ot.length>at&&!ot.warned){ot.warned=!0;var st=new Error("Possible EventEmitter memory leak detected. "+ot.length+" "+String(et)+" listeners added. Use emitter.setMaxListeners() to increase limit");st.name="MaxListenersExceededWarning",st.emitter=_e,st.type=et,st.count=ot.length,ProcessEmitWarning(st)}return _e}EventEmitter$1.prototype.addListener=function(et,tt){return _addListener(this,et,tt,!1)};EventEmitter$1.prototype.on=EventEmitter$1.prototype.addListener;EventEmitter$1.prototype.prependListener=function(et,tt){return _addListener(this,et,tt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(_e,et,tt){var nt={fired:!1,wrapFn:void 0,target:_e,type:et,listener:tt},at=onceWrapper.bind(nt);return at.listener=tt,nt.wrapFn=at,at}EventEmitter$1.prototype.once=function(et,tt){return checkListener(tt),this.on(et,_onceWrap(this,et,tt)),this};EventEmitter$1.prototype.prependOnceListener=function(et,tt){return checkListener(tt),this.prependListener(et,_onceWrap(this,et,tt)),this};EventEmitter$1.prototype.removeListener=function(et,tt){var nt,at,it,ot,st;if(checkListener(tt),at=this._events,at===void 0)return this;if(nt=at[et],nt===void 0)return this;if(nt===tt||nt.listener===tt)--this._eventsCount===0?this._events=Object.create(null):(delete at[et],at.removeListener&&this.emit("removeListener",et,nt.listener||tt));else if(typeof nt!="function"){for(it=-1,ot=nt.length-1;ot>=0;ot--)if(nt[ot]===tt||nt[ot].listener===tt){st=nt[ot].listener,it=ot;break}if(it<0)return this;it===0?nt.shift():spliceOne(nt,it),nt.length===1&&(at[et]=nt[0]),at.removeListener!==void 0&&this.emit("removeListener",et,st||tt)}return this};EventEmitter$1.prototype.off=EventEmitter$1.prototype.removeListener;EventEmitter$1.prototype.removeAllListeners=function(et){var tt,nt,at;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[et]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[et]),this;if(arguments.length===0){var it=Object.keys(nt),ot;for(at=0;at<it.length;++at)ot=it[at],ot!=="removeListener"&&this.removeAllListeners(ot);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(tt=nt[et],typeof tt=="function")this.removeListener(et,tt);else if(tt!==void 0)for(at=tt.length-1;at>=0;at--)this.removeListener(et,tt[at]);return this};function _listeners(_e,et,tt){var nt=_e._events;if(nt===void 0)return[];var at=nt[et];return at===void 0?[]:typeof at=="function"?tt?[at.listener||at]:[at]:tt?unwrapListeners(at):arrayClone(at,at.length)}EventEmitter$1.prototype.listeners=function(et){return _listeners(this,et,!0)};EventEmitter$1.prototype.rawListeners=function(et){return _listeners(this,et,!1)};EventEmitter$1.listenerCount=function(_e,et){return typeof _e.listenerCount=="function"?_e.listenerCount(et):listenerCount.call(_e,et)};EventEmitter$1.prototype.listenerCount=listenerCount;function listenerCount(_e){var et=this._events;if(et!==void 0){var tt=et[_e];if(typeof tt=="function")return 1;if(tt!==void 0)return tt.length}return 0}EventEmitter$1.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(_e,et){for(var tt=new Array(et),nt=0;nt<et;++nt)tt[nt]=_e[nt];return tt}function spliceOne(_e,et){for(;et+1<_e.length;et++)_e[et]=_e[et+1];_e.pop()}function unwrapListeners(_e){for(var et=new Array(_e.length),tt=0;tt<et.length;++tt)et[tt]=_e[tt].listener||_e[tt];return et}function once$3(_e,et){return new Promise(function(tt,nt){function at(ot){_e.removeListener(et,it),nt(ot)}function it(){typeof _e.removeListener=="function"&&_e.removeListener("error",at),tt([].slice.call(arguments))}eventTargetAgnosticAddListener(_e,et,it,{once:!0}),et!=="error"&&addErrorHandlerIfEventEmitter(_e,at,{once:!0})})}function addErrorHandlerIfEventEmitter(_e,et,tt){typeof _e.on=="function"&&eventTargetAgnosticAddListener(_e,"error",et,tt)}function eventTargetAgnosticAddListener(_e,et,tt,nt){if(typeof _e.on=="function")nt.once?_e.once(et,tt):_e.on(et,tt);else if(typeof _e.addEventListener=="function")_e.addEventListener(et,function at(it){nt.once&&_e.removeEventListener(et,at),tt(it)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof _e)}var eventsExports=events.exports;const Wg=getDefaultExportFromCjs$1(eventsExports);function _inheritsLoose$6(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_e.__proto__=et}var AbstractConnector=function(_e){_inheritsLoose$6(et,_e);function et(nt){var at,it=nt===void 0?{}:nt,ot=it.supportedChainIds;return at=_e.call(this)||this,at.supportedChainIds=ot,at}var tt=et.prototype;return tt.emitUpdate=function(at){this.emit(ConnectorEvent.Update,at)},tt.emitError=function(at){this.emit(ConnectorEvent.Error,at)},tt.emitDeactivate=function(){this.emit(ConnectorEvent.Deactivate)},et}(eventsExports.EventEmitter);const scriptRel="modulepreload",assetsURL=function(_e){return"https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/"+_e},seen={},__vitePreload=function(et,tt,nt){if(!tt||tt.length===0)return et();const at=document.getElementsByTagName("link");return Promise.all(tt.map(it=>{if(it=assetsURL(it),it in seen)return;seen[it]=!0;const ot=it.endsWith(".css"),st=ot?'[rel="stylesheet"]':"";if(!!nt)for(let ht=at.length-1;ht>=0;ht--){const pt=at[ht];if(pt.href===it&&(!ot||pt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${it}"]${st}`))return;const dt=document.createElement("link");if(dt.rel=ot?"stylesheet":scriptRel,ot||(dt.as="script",dt.crossOrigin=""),dt.href=it,document.head.appendChild(dt),ot)return new Promise((ht,pt)=>{dt.addEventListener("load",ht),dt.addEventListener("error",()=>pt(new Error(`Unable to preload CSS for ${it}`)))})})).then(()=>et()).catch(it=>{const ot=new Event("vite:preloadError",{cancelable:!0});if(ot.payload=it,window.dispatchEvent(ot),!ot.defaultPrevented)throw it})};var dist$d={},sdk$2={},ws$2={},sceneUpdate$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SceneUpdate=_e.SCENE_UPDATE=void 0;const et=validation$4;_e.SCENE_UPDATE="SCENE_UPDATE",function(tt){tt.schema={type:"object",properties:{type:{type:"string",enum:[_e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.SceneUpdate||(_e.SceneUpdate={}))})(sceneUpdate$2);var update$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Update=_e.UPDATE=void 0;const et=validation$4;_e.UPDATE="update",function(tt){tt.schema={type:"object",properties:{type:{type:"string",enum:[_e.UPDATE]}},required:["type"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Update||(_e.Update={}))})(update$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(sceneUpdate$2,_e),tt(update$2,_e)})(ws$2);var project$2={},type$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProjectType=void 0;const et=validation$4;(function(tt){tt.SCENE="scene",tt.SMART_ITEM="smart-item",tt.PORTABLE_EXPERIENCE="portable-experience",tt.LIBRARY="library"})(_e.ProjectType||(_e.ProjectType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.ProjectType||(_e.ProjectType={}))})(type$3);var wearableJson$2={},rarity$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Rarity=void 0;const et=validation$4;(function(tt){tt.UNIQUE="unique",tt.MYTHIC="mythic",tt.EXOTIC="exotic",tt.LEGENDARY="legendary",tt.EPIC="epic",tt.RARE="rare",tt.UNCOMMON="uncommon",tt.COMMON="common"})(_e.Rarity||(_e.Rarity={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema);const nt={[tt.UNIQUE]:1,[tt.MYTHIC]:10,[tt.EXOTIC]:50,[tt.LEGENDARY]:100,[tt.EPIC]:1e3,[tt.RARE]:5e3,[tt.UNCOMMON]:1e4,[tt.COMMON]:1e5},at={[tt.UNIQUE]:"#FFE617",[tt.MYTHIC]:"#FB7DE3",[tt.EXOTIC]:"#E4FFB8",[tt.LEGENDARY]:"#A657ED",[tt.EPIC]:"#6397F2",[tt.RARE]:"#3AD682",[tt.UNCOMMON]:"#FF8563",[tt.COMMON]:"#D4E0E0"},it={[tt.UNIQUE]:"#FFB626",[tt.MYTHIC]:"#FF63E1",[tt.EXOTIC]:"#CAFF73",[tt.LEGENDARY]:"#842DDA",[tt.EPIC]:"#3D85E6",[tt.RARE]:"#36CF75",[tt.UNCOMMON]:"#ED6D4F",[tt.COMMON]:"#ABC1C1"};function ot(ht){return nt[ht]}tt.getMaxSupply=ot;function st(ht){return it[ht]}tt.getColor=st;function ct(){return[tt.UNIQUE,tt.MYTHIC,tt.EXOTIC,tt.LEGENDARY,tt.EPIC,tt.RARE,tt.UNCOMMON,tt.COMMON]}tt.getRarities=ct;function dt(ht){return[at[ht],it[ht]]}tt.getGradient=dt}(_e.Rarity||(_e.Rarity={}))})(rarity$2);var wearableCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WearableCategory=void 0;const et=validation$4;(function(tt){tt.EYEBROWS="eyebrows",tt.EYES="eyes",tt.FACIAL_HAIR="facial_hair",tt.HAIR="hair",tt.BODY_SHAPE="body_shape",tt.MOUTH="mouth",tt.UPPER_BODY="upper_body",tt.LOWER_BODY="lower_body",tt.FEET="feet",tt.EARRING="earring",tt.EYEWEAR="eyewear",tt.HAT="hat",tt.HELMET="helmet",tt.MASK="mask",tt.TIARA="tiara",tt.TOP_HEAD="top_head",tt.SKIN="skin",tt.HANDS_WEAR="hands_wear"})(_e.WearableCategory||(_e.WearableCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.WearableCategory||(_e.WearableCategory={}))})(wearableCategory$2);var representation$2={},bodyShape$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BodyShape=void 0;const et=validation$4;(function(tt){tt.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",tt.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(_e.BodyShape||(_e.BodyShape={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.BodyShape||(_e.BodyShape={}))})(bodyShape$2);var hideableCategory$2={},bodyPartCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BodyPartCategory=void 0;const et=validation$4;(function(tt){tt.HEAD="head",tt.HANDS="hands"})(_e.BodyPartCategory||(_e.BodyPartCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.BodyPartCategory||(_e.BodyPartCategory={}))})(bodyPartCategory$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.HideableWearableCategory=void 0;const et=wearableCategory$2,tt=validation$4,nt=bodyPartCategory$2;(function(at){at.schema={oneOf:[Object.assign({},et.WearableCategory.schema),Object.assign({},nt.BodyPartCategory.schema)]},at.validate=(0,tt.generateLazyValidator)(at.schema)})(_e.HideableWearableCategory||(_e.HideableWearableCategory={}))})(hideableCategory$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WearableRepresentation=void 0;const et=validation$4,tt=bodyShape$2,nt=hideableCategory$2;(function(at){at.schema={type:"object",properties:{bodyShapes:{type:"array",items:tt.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:nt.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:nt.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},at.validate=(0,et.generateLazyValidator)(at.schema)})(_e.WearableRepresentation||(_e.WearableRepresentation={}))})(representation$2);var platform$3={},profile$5={},avatar$2={},misc$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.IPFSv1=_e.IPFSv2=_e.EthAddress=_e.Color3=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const nt=(0,et.generateLazyValidator)(tt.schema);tt.validate=at=>nt(at)})(_e.Color3||(_e.Color3={})),function(tt){tt.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const nt=new RegExp(tt.schema.pattern);tt.validate=at=>nt.test(at)}(_e.EthAddress||(_e.EthAddress={})),function(tt){tt.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const nt=new RegExp(tt.schema.pattern);tt.validate=at=>nt.test(at)}(_e.IPFSv2||(_e.IPFSv2={})),function(tt){tt.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const nt=new RegExp(tt.schema.pattern);tt.validate=at=>nt.test(at)}(_e.IPFSv1||(_e.IPFSv1={}))})(misc$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Avatar=_e.Link=_e.LinkUrl=_e.AvatarInfo=_e.Snapshots=void 0;const et=wearableCategory$2,tt=misc$2,nt=validation$4;var at;(function(ct){ct.schema={type:"object",required:["face256","body"],properties:{face256:tt.IPFSv2.schema,body:tt.IPFSv2.schema}},ct.validate=(0,nt.generateLazyValidator)(ct.schema)})(at=_e.Snapshots||(_e.Snapshots={}));var it;(function(ct){ct.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:et.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:at.schema},additionalProperties:!0},ct.validate=(0,nt.generateLazyValidator)(ct.schema)})(it=_e.AvatarInfo||(_e.AvatarInfo={}));var ot;(function(ct){ct.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const dt=new RegExp(ct.schema.pattern,"i");ct.validate=ht=>dt.test(ht)})(ot=_e.LinkUrl||(_e.LinkUrl={}));var st;(function(ct){ct.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:ot.schema}}})(st=_e.Link||(_e.Link={})),function(ct){ct.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:st.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:tt.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:it.schema},additionalProperties:!0},ct.validate=(0,nt.generateLazyValidator)(ct.schema)}(_e.Avatar||(_e.Avatar={}))})(avatar$2);var profile$4={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Profile=void 0;const et=validation$4,tt=avatar$2;(function(nt){nt.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:tt.Avatar.schema}},additionalProperties:!0},nt.validate=(0,et.generateLazyValidator)(nt.schema)})(_e.Profile||(_e.Profile={}))})(profile$4);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(avatar$2,_e),tt(profile$4,_e)})(profile$5);var scene$5={},featureToggles$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.FeatureToggles=_e.portableExperiencesToggles=_e.toggles=void 0;const et=validation$4;_e.toggles=["enabled","disabled"],_e.portableExperiencesToggles=[..._e.toggles,"hideUi"],function(tt){tt.schema={type:"object",properties:{voiceChat:{type:"string",enum:_e.toggles,nullable:!0},portableExperiences:{type:"string",enum:_e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${_e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${_e.toggles.join(", ")}`,required:[]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.FeatureToggles||(_e.FeatureToggles={}))})(featureToggles$2);var worldConfiguration$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WorldConfiguration=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.WorldConfiguration||(_e.WorldConfiguration={}))})(worldConfiguration$2);var sceneParcels$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SceneParcels=void 0;const et=validation$4;(function(tt){tt.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},tt.schemaValidator=(0,et.generateLazyValidator)(tt.schema),tt.validate=nt=>tt.schemaValidator(nt)&&nt.parcels.includes(nt.base)})(_e.SceneParcels||(_e.SceneParcels={}))})(sceneParcels$2);var scene$4={},displayable$2={};Object.defineProperty(displayable$2,"__esModule",{value:!0});displayable$2.displayableProperties=void 0;displayable$2.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}};var source$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Source=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.Source||(_e.Source={}))})(source$2);var spawnPoint$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SpawnPoint=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.SpawnPoint||(_e.SpawnPoint={}))})(spawnPoint$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Scene=_e.RequiredPermission=void 0;const et=validation$4,tt=displayable$2,nt=featureToggles$2,at=sceneParcels$2,it=source$2,ot=spawnPoint$2,st=worldConfiguration$2;var ct;(function(dt){dt.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",dt.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",dt.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",dt.USE_WEB3_API="USE_WEB3_API",dt.USE_FETCH="USE_FETCH",dt.USE_WEBSOCKET="USE_WEBSOCKET",dt.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(ct=_e.RequiredPermission||(_e.RequiredPermission={})),function(dt){dt.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:at.SceneParcels.schema},tt.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},it.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:ot.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(ct)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},nt.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},st.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:ct.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},dt.validate=(0,et.generateLazyValidator)(dt.schema)}(_e.Scene||(_e.Scene={}))})(scene$4);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SpawnPoint=_e.Source=_e.RequiredPermission=_e.Scene=_e.SceneParcels=_e.WorldConfiguration=_e.FeatureToggles=void 0;var et=featureToggles$2;Object.defineProperty(_e,"FeatureToggles",{enumerable:!0,get:function(){return et.FeatureToggles}});var tt=worldConfiguration$2;Object.defineProperty(_e,"WorldConfiguration",{enumerable:!0,get:function(){return tt.WorldConfiguration}});var nt=sceneParcels$2;Object.defineProperty(_e,"SceneParcels",{enumerable:!0,get:function(){return nt.SceneParcels}});var at=scene$4;Object.defineProperty(_e,"Scene",{enumerable:!0,get:function(){return at.Scene}}),Object.defineProperty(_e,"RequiredPermission",{enumerable:!0,get:function(){return at.RequiredPermission}});var it=source$2;Object.defineProperty(_e,"Source",{enumerable:!0,get:function(){return it.Source}});var ot=spawnPoint$2;Object.defineProperty(_e,"SpawnPoint",{enumerable:!0,get:function(){return ot.SpawnPoint}})})(scene$5);var item$5={},i18n$2={},locale$6={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Locale=void 0;const et=validation$4;(function(tt){tt.EN="en",tt.ES="es"})(_e.Locale||(_e.Locale={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Locale||(_e.Locale={}))})(locale$6);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.I18N=void 0;const et=validation$4,tt=locale$6;(function(nt){nt.schema={type:"object",properties:{code:tt.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},nt.validate=(0,et.generateLazyValidator)(nt.schema)})(_e.I18N||(_e.I18N={}))})(i18n$2);var metrics$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Metrics=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.Metrics||(_e.Metrics={}))})(metrics$2);var standardProps$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.isStandard=_e.standardProperties=void 0;const et=rarity$2,tt=validation$4;_e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:et.Rarity.schema};const nt={type:"object",properties:Object.assign({},_e.standardProperties),required:["collectionAddress","rarity"]},at=(0,tt.generateLazyValidator)(nt);function it(ot){return at(ot)}_e.isStandard=it})(standardProps$2);var thirdPartyProps$2={},merkleProof$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.MerkleProof=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.MerkleProof||(_e.MerkleProof={}))})(merkleProof$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.isThirdParty=_e.thirdPartyProps=void 0;const et=validation$4,tt=merkleProof$2;_e.thirdPartyProps={merkleProof:tt.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const nt={type:"object",properties:Object.assign({},_e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},at={keyword:"_containsHashingKeys",validate:(st,ct)=>{var dt;const ht=ct;return!((dt=ht==null?void 0:ht.merkleProof)===null||dt===void 0)&&dt.hashingKeys?ht.merkleProof.hashingKeys.every(pt=>ht.hasOwnProperty(pt)):!1},errors:!1},it=(0,et.generateLazyValidator)(nt,[at]);function ot(st){return it(st)}_e.isThirdParty=ot})(thirdPartyProps$2);var wearable$5={},wearable$4={},baseItem$2={};Object.defineProperty(baseItem$2,"__esModule",{value:!0});baseItem$2.isBaseEmote=baseItem$2.isBaseAvatar=baseItem$2.requiredBaseItemProps=baseItem$2.baseItemProperties=void 0;const i18n_1$2=i18n$2,metrics_1$2=metrics$2,displayable_1$2=displayable$2;baseItem$2.baseItemProperties=Object.assign(Object.assign({},displayable_1$2.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:i18n_1$2.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},metrics_1$2.Metrics.schema),{nullable:!0})});baseItem$2.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function isBaseAvatar$2(_e){if(!_e||!_e.id)return!1;const et=_e.id.split(":"),tt=et[1]==="decentraland",nt=et[3]==="base-avatars";return et.length===5&&tt&&nt}baseItem$2.isBaseAvatar=isBaseAvatar$2;function isBaseEmote(_e){if(!_e||!_e.id)return!1;const et=_e.id.split(":");return et.length===5&&et[1]==="decentraland"&&et[3]==="base-emotes"}baseItem$2.isBaseEmote=isBaseEmote;(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Wearable=void 0;const et=validation$4,tt=wearableCategory$2,nt=representation$2,at=baseItem$2,it=standardProps$2,ot=thirdPartyProps$2,st=hideableCategory$2;(function(ct){ct.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},at.baseItemProperties),it.standardProperties),ot.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:st.HideableWearableCategory.schema},hides:{type:"array",items:st.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:nt.WearableRepresentation.schema,minItems:1},category:tt.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:st.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...at.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...at.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const dt={keyword:"_isThirdParty",validate:(pt,mt)=>!pt||(0,ot.isThirdParty)(mt),errors:!1},ht={keyword:"_isBaseAvatar",validate:(pt,mt)=>!pt||(0,at.isBaseAvatar)(mt),errors:!1};ct.validate=(0,et.generateLazyValidator)(ct.schema,[dt,ht])})(_e.Wearable||(_e.Wearable={}))})(wearable$4);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.HideableWearableCategory=_e.BodyPartCategory=_e.WearableCategory=_e.Wearable=_e.WearableRepresentation=void 0;var et=representation$2;Object.defineProperty(_e,"WearableRepresentation",{enumerable:!0,get:function(){return et.WearableRepresentation}});var tt=wearable$4;Object.defineProperty(_e,"Wearable",{enumerable:!0,get:function(){return tt.Wearable}});var nt=wearableCategory$2;Object.defineProperty(_e,"WearableCategory",{enumerable:!0,get:function(){return nt.WearableCategory}});var at=bodyPartCategory$2;Object.defineProperty(_e,"BodyPartCategory",{enumerable:!0,get:function(){return at.BodyPartCategory}});var it=hideableCategory$2;Object.defineProperty(_e,"HideableWearableCategory",{enumerable:!0,get:function(){return it.HideableWearableCategory}})})(wearable$5);var emote$5={},emote$4={},emoteDataAdr74$2={},emoteCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmoteCategory=void 0;const et=validation$4;(function(tt){tt.DANCE="dance",tt.STUNT="stunt",tt.GREETINGS="greetings",tt.FUN="fun",tt.POSES="poses",tt.REACTIONS="reactions",tt.HORROR="horror",tt.MISCELLANEOUS="miscellaneous"})(_e.EmoteCategory||(_e.EmoteCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.EmoteCategory||(_e.EmoteCategory={}))})(emoteCategory$2);var representationAdr74$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmoteRepresentationADR74=void 0;const et=validation$4,tt=bodyShape$2;(function(nt){nt.schema={type:"object",properties:{bodyShapes:{type:"array",items:tt.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},nt.validate=(0,et.generateLazyValidator)(nt.schema)})(_e.EmoteRepresentationADR74||(_e.EmoteRepresentationADR74={}))})(representationAdr74$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmoteDataADR74=void 0;const et=emoteCategory$2,tt=validation$4,nt=representationAdr74$2;(function(at){at.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:nt.EmoteRepresentationADR74.schema,minItems:1},category:et.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},at.validate=(0,tt.generateLazyValidator)(at.schema)})(_e.EmoteDataADR74||(_e.EmoteDataADR74={}))})(emoteDataAdr74$2);var hasRequiredEmote$5;function requireEmote$5(){return hasRequiredEmote$5||(hasRequiredEmote$5=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Emote=void 0;const et=requireItem$2(),tt=validation$4,nt=baseItem$2,at=standardProps$2,it=thirdPartyProps$2,ot=emoteDataAdr74$2;(function(st){st.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},nt.baseItemProperties),at.standardProperties),it.thirdPartyProps),{emoteDataADR74:ot.EmoteDataADR74.schema}),additionalProperties:!0,required:[...nt.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const ct={keyword:"_isThirdParty",validate:(ht,pt)=>!ht||(0,et.isThirdParty)(pt),errors:!1},dt={keyword:"_isBaseEmote",validate:(ht,pt)=>!ht||(0,nt.isBaseEmote)(pt),errors:!1};st.validate=(0,tt.generateLazyValidator)(st.schema,[ct,dt])})(_e.Emote||(_e.Emote={}))}(emote$4)),emote$4}var emotePlayMode$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmotePlayMode=void 0;const et=validation$4;(function(tt){tt.SIMPLE="simple",tt.LOOP="loop"})(_e.EmotePlayMode||(_e.EmotePlayMode={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.EmotePlayMode||(_e.EmotePlayMode={}))})(emotePlayMode$2);var hasRequiredEmote$4;function requireEmote$4(){return hasRequiredEmote$4||(hasRequiredEmote$4=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmotePlayMode=_e.EmoteCategory=_e.EmoteDataADR74=_e.EmoteRepresentationADR74=_e.Emote=void 0;var et=requireEmote$5();Object.defineProperty(_e,"Emote",{enumerable:!0,get:function(){return et.Emote}});var tt=representationAdr74$2;Object.defineProperty(_e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return tt.EmoteRepresentationADR74}});var nt=emoteDataAdr74$2;Object.defineProperty(_e,"EmoteDataADR74",{enumerable:!0,get:function(){return nt.EmoteDataADR74}});var at=emoteCategory$2;Object.defineProperty(_e,"EmoteCategory",{enumerable:!0,get:function(){return at.EmoteCategory}});var it=emotePlayMode$2;Object.defineProperty(_e,"EmotePlayMode",{enumerable:!0,get:function(){return it.EmotePlayMode}})}(emote$5)),emote$5}var hasRequiredItem$2;function requireItem$2(){return hasRequiredItem$2||(hasRequiredItem$2=1,function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(dt,ht,pt,mt){mt===void 0&&(mt=pt);var vt=Object.getOwnPropertyDescriptor(ht,pt);(!vt||("get"in vt?!ht.__esModule:vt.writable||vt.configurable))&&(vt={enumerable:!0,get:function(){return ht[pt]}}),Object.defineProperty(dt,mt,vt)}:function(dt,ht,pt,mt){mt===void 0&&(mt=pt),dt[mt]=ht[pt]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(dt,ht){for(var pt in dt)pt!=="default"&&!Object.prototype.hasOwnProperty.call(ht,pt)&&et(ht,dt,pt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.isThirdParty=_e.isStandard=_e.BodyShape=_e.Metrics=_e.Locale=_e.I18N=void 0;var nt=i18n$2;Object.defineProperty(_e,"I18N",{enumerable:!0,get:function(){return nt.I18N}});var at=locale$6;Object.defineProperty(_e,"Locale",{enumerable:!0,get:function(){return at.Locale}});var it=metrics$2;Object.defineProperty(_e,"Metrics",{enumerable:!0,get:function(){return it.Metrics}});var ot=bodyShape$2;Object.defineProperty(_e,"BodyShape",{enumerable:!0,get:function(){return ot.BodyShape}});var st=standardProps$2;Object.defineProperty(_e,"isStandard",{enumerable:!0,get:function(){return st.isStandard}});var ct=thirdPartyProps$2;Object.defineProperty(_e,"isThirdParty",{enumerable:!0,get:function(){return ct.isThirdParty}}),tt(wearable$5,_e),tt(requireEmote$4(),_e)}(item$5)),item$5}var merkleTree$2={};(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(merkleProof$2,_e)})(merkleTree$2);var syncDeployments$2={},authChain$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.AuthChain=_e.AuthLink=_e.AuthLinkType=void 0;const et=validation$4;var tt;(function(at){at.SIGNER="SIGNER",at.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",at.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",at.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",at.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(tt=_e.AuthLinkType||(_e.AuthLinkType={}));var nt;(function(at){at.schema={type:"object",properties:{type:{type:"string",enum:Object.values(tt)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:tt.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},at.validate=(0,et.generateLazyValidator)(at.schema)})(nt=_e.AuthLink||(_e.AuthLink={})),function(at){at.schema={type:"array",items:nt.schema,minItems:1},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.AuthChain||(_e.AuthChain={}))})(authChain$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PointerChangesSyncDeployment=_e.SnapshotSyncDeployment=void 0;const et=misc$2,tt=authChain$2,nt=validation$4;(function(at){at.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:tt.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:et.IPFSv1.schema}},{properties:{entityId:et.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},at.validate=(0,nt.generateLazyValidator)(at.schema)})(_e.SnapshotSyncDeployment||(_e.SnapshotSyncDeployment={})),function(at){at.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:tt.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:et.IPFSv1.schema}},{properties:{entityId:et.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},at.validate=(0,nt.generateLazyValidator)(at.schema)}(_e.PointerChangesSyncDeployment||(_e.PointerChangesSyncDeployment={}))})(syncDeployments$2);var entity$2={},contentMapping$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ContentMapping=void 0;const et=misc$2,tt=validation$4;(function(nt){nt.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[et.IPFSv1.schema,et.IPFSv2.schema]}},required:["file","hash"]},nt.validate=(0,tt.generateLazyValidator)(nt.schema)})(_e.ContentMapping||(_e.ContentMapping={}))})(contentMapping$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Entity=_e.EntityType=void 0;const et=misc$2,tt=contentMapping$2,nt=validation$4;(function(at){at.SCENE="scene",at.PROFILE="profile",at.WEARABLE="wearable",at.STORE="store",at.EMOTE="emote",at.OUTFITS="outfits"})(_e.EntityType||(_e.EntityType={})),function(at){at.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[et.IPFSv1.schema,et.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:tt.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},at.validate=(0,nt.generateLazyValidator)(at.schema)}(_e.Entity||(_e.Entity={}))})(entity$2);var deploymentWithAuthChain$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.DeploymentWithAuthChain=void 0;const et=authChain$2,tt=validation$4;(function(nt){nt.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:et.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},nt.validate=(0,tt.generateLazyValidator)(nt.schema)})(_e.DeploymentWithAuthChain||(_e.DeploymentWithAuthChain={}))})(deploymentWithAuthChain$2);var outfits$5={},outfits$4={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Outfits=_e.Outfit=void 0;const et=wearableCategory$2,tt=misc$2,nt=validation$4;var at;(function(it){it.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:et.WearableCategory.schema}},additionalProperties:!0},it.validate=(0,nt.generateLazyValidator)(it.schema)})(at=_e.Outfit||(_e.Outfit={})),function(it){it.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:at.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},it.validate=(0,nt.generateLazyValidator)(it.schema)}(_e.Outfits||(_e.Outfits={}))})(outfits$4);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(outfits$4,_e)})(outfits$5);var notifications$1={},notifications={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NotificationType=void 0,function(et){et.BID_ACCEPTED="bid_accepted",et.BID_RECEIVED="bid_received",et.EVENTS_STARTED="events_started",et.EVENTS_STARTS_SOON="events_starts_soon",et.GOVERNANCE_ANNOUNCEMENT="governance_announcement",et.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",et.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",et.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",et.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",et.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",et.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",et.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",et.GOVERNANCE_TENDER_PASSED="governance_tender_passed",et.ITEM_SOLD="item_sold",et.LAND_RENTAL_ENDED="rental_ended",et.LAND_RENTED="rental_started",et.REWARD_ASSIGNED="reward_assignment",et.ROYALTIES_EARNED="royalties_earned",et.WORLDS_ACCESS_RESTORED="worlds_access_restored",et.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",et.WORLDS_MISSING_RESOURCES="worlds_missing_resources",et.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",et.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked"}(_e.NotificationType||(_e.NotificationType={}))})(notifications);var subscription={},subscriptionDetails={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SubscriptionDetails=void 0;const et=validation$4,tt=notifications,nt={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},at=Object.values(tt.NotificationType).reduce((it,ot)=>(it[ot]=nt,it),{});(function(it){it.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(tt.NotificationType),additionalProperties:!1,properties:at}}},it.validate=(0,et.generateLazyValidator)(it.schema)})(_e.SubscriptionDetails||(_e.SubscriptionDetails={}))})(subscriptionDetails);var email={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Email=void 0,function(et){et.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const tt=new RegExp(et.schema.pattern);et.validate=nt=>tt.test(nt)}(_e.Email||(_e.Email={}))})(email);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Subscription=void 0;const et=validation$4,tt=subscriptionDetails,nt=misc$2,at=email;(function(it){it.schema={type:"object",required:["address","details"],properties:{address:nt.EthAddress.schema,email:Object.assign(Object.assign({},at.Email.schema),{nullable:!0}),details:tt.SubscriptionDetails.schema}},it.validate=(0,et.generateLazyValidator)(it.schema)})(_e.Subscription||(_e.Subscription={}))})(subscription);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(notifications,_e),tt(subscription,_e),tt(subscriptionDetails,_e)})(notifications$1);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(profile$5,_e),tt(scene$5,_e),tt(requireItem$2(),_e),tt(displayable$2,_e),tt(merkleTree$2,_e),tt(syncDeployments$2,_e),tt(entity$2,_e),tt(deploymentWithAuthChain$2,_e),tt(outfits$5,_e),tt(notifications$1,_e)})(platform$3);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WearableJson=void 0;const et=rarity$2,tt=wearableCategory$2,nt=representation$2,at=validation$4,it=platform$3;(function(ot){ot.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},et.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:tt.WearableCategory.schema},hides:{type:"array",items:tt.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:nt.WearableRepresentation.schema,minItems:1},category:tt.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:it.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},ot.validate=(0,at.generateLazyValidator)(ot.schema)})(_e.WearableJson||(_e.WearableJson={}))})(wearableJson$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(type$3,_e),tt(wearableJson$2,_e)})(project$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(ws$2,_e),tt(project$2,_e)})(sdk$2);var bid$3={},listingStatus$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ListingStatus=void 0;const et=validation$4;(function(tt){tt.OPEN="open",tt.SOLD="sold",tt.CANCELLED="cancelled"})(_e.ListingStatus||(_e.ListingStatus={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.ListingStatus||(_e.ListingStatus={}))})(listingStatus$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Bid=_e.BidSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=listingStatus$2,at=network$3;(function(it){it.RECENTLY_OFFERED="recently_offered",it.RECENTLY_UPDATED="recently_updated",it.MOST_EXPENSIVE="most_expensive"})(_e.BidSortBy||(_e.BidSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:nt.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:at.Network.schema,chainId:tt.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Bid||(_e.Bid={}))})(bid$3);var account$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Account=_e.AccountSortBy=void 0;const et=validation$4;(function(tt){tt.MOST_SALES="most_sales",tt.MOST_PURCHASES="most_purchases",tt.MOST_SPENT="most_spent",tt.MOST_EARNED="most_earned",tt.MOST_ROYALTIES="most_royalties",tt.MOST_COLLECTIONS="most_collections"})(_e.AccountSortBy||(_e.AccountSortBy={})),function(tt){tt.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Account||(_e.Account={}))})(account$2);var collection$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Collection=_e.CollectionSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3;(function(at){at.NEWEST="newest",at.NAME="name",at.RECENTLY_REVIEWED="recently_reviewed",at.RECENTLY_LISTED="recently_listed",at.SIZE="size"})(_e.CollectionSortBy||(_e.CollectionSortBy={})),function(at){at.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:nt.Network.schema,chainId:tt.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.Collection||(_e.Collection={}))})(collection$2);var contract$2={},nftCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NFTCategory=void 0;const et=validation$4;(function(tt){tt.PARCEL="parcel",tt.ESTATE="estate",tt.WEARABLE="wearable",tt.ENS="ens",tt.EMOTE="emote"})(_e.NFTCategory||(_e.NFTCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.NFTCategory||(_e.NFTCategory={}))})(nftCategory$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Contract=_e.ContractSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3,at=nftCategory$2;(function(it){it.NAME="name"})(_e.ContractSortBy||(_e.ContractSortBy={})),function(it){it.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:at.NFTCategory.schema,network:nt.Network.schema,chainId:tt.ChainId.schema},required:["name","address","category","network","chainId"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Contract||(_e.Contract={}))})(contract$2);var item$4={},nft$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NFT=_e.NFTSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=platform$3,at=network$3,it=nftCategory$2,ot=rarity$2,st=wearableCategory$2;(function(ct){ct.NAME="name",ct.NEWEST="newest",ct.RECENTLY_LISTED="recently_listed",ct.RECENTLY_SOLD="recently_sold",ct.CHEAPEST="cheapest",ct.RENTAL_LISTING_DATE="rental_listing_date",ct.RENTAL_DATE="rented_date",ct.MAX_RENTAL_PRICE="max_rental_price",ct.MIN_RENTAL_PRICE="min_rental_price"})(_e.NFTSortBy||(_e.NFTSortBy={})),function(ct){ct.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:nt.BodyShape.schema},category:st.WearableCategory.schema,description:{type:"string"},rarity:ot.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:nt.BodyShape.schema},category:nt.EmoteCategory.schema,description:{type:"string"},rarity:ot.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:it.NFTCategory.schema,network:at.Network.schema,chainId:tt.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},ct.validate=(0,et.generateLazyValidator)(ct.schema)}(_e.NFT||(_e.NFT={}))})(nft$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Item=_e.ItemSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3,at=nft$2,it=nftCategory$2;(function(ot){ot.NAME="name",ot.NEWEST="newest",ot.RECENTLY_REVIEWED="recently_reviewed",ot.RECENTLY_SOLD="recently_sold",ot.RECENTLY_LISTED="recently_listed",ot.CHEAPEST="cheapest"})(_e.ItemSortBy||(_e.ItemSortBy={})),function(ot){ot.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:it.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:at.NFT.schema.properties.data,network:nt.Network.schema,chainId:tt.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},ot.validate=(0,et.generateLazyValidator)(ot.schema)}(_e.Item||(_e.Item={}))})(item$4);var metaTransactions$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.MetaTransaction=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.MetaTransaction||(_e.MetaTransaction={}))})(metaTransactions$2);var mint$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Mint=_e.MintSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3;(function(at){at.RECENTLY_MINTED="recently_minted",at.MOST_EXPENSIVE="most_expensive"})(_e.MintSortBy||(_e.MintSortBy={})),function(at){at.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:nt.Network.schema,chainId:tt.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.Mint||(_e.Mint={}))})(mint$2);var catalog$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.CatalogSortDirection=_e.CatalogSortBy=void 0,function(et){et.NEWEST="newest",et.RECENTLY_SOLD="recently_sold",et.CHEAPEST="cheapest",et.MOST_EXPENSIVE="most_expensive",et.RECENTLY_LISTED="recently_listed"}(_e.CatalogSortBy||(_e.CatalogSortBy={})),function(et){et.ASC="asc",et.DESC="desc"}(_e.CatalogSortDirection||(_e.CatalogSortDirection={}))})(catalog$2);var order$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Order=_e.OrderSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=listingStatus$2,at=network$3;(function(it){it.RECENTLY_LISTED="recently_listed",it.RECENTLY_UPDATED="recently_updated",it.CHEAPEST="cheapest",it.ISSUED_ID_ASC="issued_id_asc",it.ISSUED_ID_DESC="issued_id_desc",it.OLDEST="oldest"})(_e.OrderSortBy||(_e.OrderSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:nt.ListingStatus.schema,network:at.Network.schema,chainId:tt.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Order||(_e.Order={}))})(order$3);var saleType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SaleType=void 0;const et=validation$4;(function(tt){tt.ORDER="order",tt.BID="bid",tt.MINT="mint"})(_e.SaleType||(_e.SaleType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.SaleType||(_e.SaleType={}))})(saleType$2);var sale$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Sale=_e.SaleSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=saleType$2,at=network$3;(function(it){it.RECENTLY_SOLD="recently_sold",it.MOST_EXPENSIVE="most_expensive"})(_e.SaleSortBy||(_e.SaleSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},type:nt.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:at.Network.schema,chainId:tt.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Sale||(_e.Sale={}))})(sale$2);var rentalsListings$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.RentalListingCreation=_e.PeriodCreation=_e.RentalsListingsSortBy=_e.RentalsListingsFilterByCategory=_e.RentalsListingSortDirection=_e.RentalStatus=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3;(function(it){it.OPEN="open",it.CANCELLED="cancelled",it.EXECUTED="executed",it.CLAIMED="claimed"})(_e.RentalStatus||(_e.RentalStatus={})),function(it){it.ASC="asc",it.DESC="desc"}(_e.RentalsListingSortDirection||(_e.RentalsListingSortDirection={})),function(it){it.PARCEL="parcel",it.ESTATE="estate"}(_e.RentalsListingsFilterByCategory||(_e.RentalsListingsFilterByCategory={})),function(it){it.LAND_CREATION_DATE="land_creation_date",it.RENTAL_LISTING_DATE="rental_listing_date",it.RENTAL_DATE="rented_date",it.NAME="name",it.MAX_RENTAL_PRICE="max_rental_price",it.MIN_RENTAL_PRICE="min_rental_price"}(_e.RentalsListingsSortBy||(_e.RentalsListingsSortBy={}));var at;(function(it){it.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},it.validate=(0,et.generateLazyValidator)(it.schema)})(at=_e.PeriodCreation||(_e.PeriodCreation={})),function(it){it.schema={type:"object",properties:{network:nt.Network.schema,chainId:tt.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:at.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.RentalListingCreation||(_e.RentalListingCreation={}))})(rentalsListings$2);var analyticsDayData$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnalyticsDayDataSortBy=void 0,function(et){et.DATE="date",et.MOST_SALES="most_sales"}(_e.AnalyticsDayDataSortBy||(_e.AnalyticsDayDataSortBy={}))})(analyticsDayData$2);var store$4={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Store=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.Store||(_e.Store={}))})(store$4);var wearableGender$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.GenderFilterOption=_e.WearableGender=void 0;const et=validation$4;(function(tt){tt.MALE="male",tt.FEMALE="female"})(_e.WearableGender||(_e.WearableGender={})),function(tt){tt.MALE="male",tt.FEMALE="female",tt.UNISEX="unisex"}(_e.GenderFilterOption||(_e.GenderFilterOption={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.WearableGender||(_e.WearableGender={}))})(wearableGender$2);var world$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.World=_e.isInsideWorldLimits=_e.getWorld=void 0;const et=validation$4;function tt(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}_e.getWorld=tt;function nt(at,it){const ot=tt().validWorldRanges;for(const st of ot)if(at>=st.xMin&&at<=st.xMax&&it>=st.yMin&&it<=st.yMax)return!0;return!1}_e.isInsideWorldLimits=nt,function(at){at.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.World||(_e.World={}))})(world$2);var preview$2={},previewCamera$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewCamera=void 0;const et=validation$4;(function(tt){tt.STATIC="static",tt.INTERACTIVE="interactive"})(_e.PreviewCamera||(_e.PreviewCamera={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewCamera||(_e.PreviewCamera={}))})(previewCamera$2);var previewConfig$2={};Object.defineProperty(previewConfig$2,"__esModule",{value:!0});var previewController$2={};Object.defineProperty(previewController$2,"__esModule",{value:!0});var previewEmoteEventType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewEmoteEventType=void 0;const et=validation$4;(function(tt){tt.ANIMATION_PLAY="animation_play",tt.ANIMATION_PAUSE="animation_pause",tt.ANIMATION_LOOP="animation_loop",tt.ANIMATION_END="animation_end",tt.ANIMATION_PLAYING="animation_playing"})(_e.PreviewEmoteEventType||(_e.PreviewEmoteEventType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewEmoteEventType||(_e.PreviewEmoteEventType={}))})(previewEmoteEventType$2);var previewEmote$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewEmote=void 0;const et=validation$4;(function(tt){tt.IDLE="idle",tt.WALK="walk",tt.RUN="run",tt.JUMP="jump",tt.CLAP="clap",tt.DAB="dab",tt.DANCE="dance",tt.FASHION="fashion",tt.FASHION_2="fashion-2",tt.FASHION_3="fashion-3",tt.FASHION_4="fashion-4",tt.LOVE="love",tt.MONEY="money",tt.FIST_PUMP="fist-pump",tt.HEAD_EXPLODE="head-explode",tt.WAVE="wave"})(_e.PreviewEmote||(_e.PreviewEmote={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewEmote||(_e.PreviewEmote={}))})(previewEmote$2);var previewMessage$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.sendMessage=_e.PreviewMessageType=void 0;const et=validation$4;(function(nt){nt.READY="ready",nt.LOAD="load",nt.ERROR="error",nt.UPDATE="update",nt.CONTROLLER_REQUEST="controller_request",nt.CONTROLLER_RESPONSE="controller_response",nt.EMOTE_EVENT="emote_event"})(_e.PreviewMessageType||(_e.PreviewMessageType={})),function(nt){nt.schema={type:"string",enum:Object.values(nt)},nt.validate=(0,et.generateLazyValidator)(nt.schema)}(_e.PreviewMessageType||(_e.PreviewMessageType={}));const tt=(nt,at,it,ot="*")=>{const st={type:at,payload:it};nt.postMessage(st,ot)};_e.sendMessage=tt})(previewMessage$2);var previewOptions$2={};Object.defineProperty(previewOptions$2,"__esModule",{value:!0});var previewProjection$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewProjection=void 0;const et=validation$4;(function(tt){tt.ORTHOGRAPHIC="orthographic",tt.PERSPECTIVE="perspective"})(_e.PreviewProjection||(_e.PreviewProjection={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewProjection||(_e.PreviewProjection={}))})(previewProjection$2);var previewType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewType=void 0;const et=validation$4;(function(tt){tt.TEXTURE="texture",tt.WEARABLE="wearable",tt.AVATAR="avatar"})(_e.PreviewType||(_e.PreviewType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewType||(_e.PreviewType={}))})(previewType$2);var wearableRepresentationDefinition$2={};Object.defineProperty(wearableRepresentationDefinition$2,"__esModule",{value:!0});var wearableRepresentationWithBlobs$2={};Object.defineProperty(wearableRepresentationWithBlobs$2,"__esModule",{value:!0});var wearableDefinition$2={};Object.defineProperty(wearableDefinition$2,"__esModule",{value:!0});var wearableWithBlobs$2={};Object.defineProperty(wearableWithBlobs$2,"__esModule",{value:!0});var emoteRepresentationDefinition$2={};Object.defineProperty(emoteRepresentationDefinition$2,"__esModule",{value:!0});var emoteRepresentationWithBlobs$2={};Object.defineProperty(emoteRepresentationWithBlobs$2,"__esModule",{value:!0});var emoteDefinition$2={};Object.defineProperty(emoteDefinition$2,"__esModule",{value:!0});var emoteWithBlobs$2={};Object.defineProperty(emoteWithBlobs$2,"__esModule",{value:!0});(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(previewCamera$2,_e),tt(previewConfig$2,_e),tt(previewController$2,_e),tt(previewEmoteEventType$2,_e),tt(previewEmote$2,_e),tt(previewMessage$2,_e),tt(previewOptions$2,_e),tt(previewProjection$2,_e),tt(previewType$2,_e),tt(wearableRepresentationDefinition$2,_e),tt(wearableRepresentationWithBlobs$2,_e),tt(wearableDefinition$2,_e),tt(wearableWithBlobs$2,_e),tt(emoteRepresentationDefinition$2,_e),tt(emoteRepresentationWithBlobs$2,_e),tt(emoteDefinition$2,_e),tt(emoteWithBlobs$2,_e)})(preview$2);var linkerAuthorization$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.LinkerAuthorization=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.LinkerAuthorization||(_e.LinkerAuthorization={}))})(linkerAuthorization$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,At,Mt,It){It===void 0&&(It=Mt);var Lt=Object.getOwnPropertyDescriptor(At,Mt);(!Lt||("get"in Lt?!At.__esModule:Lt.writable||Lt.configurable))&&(Lt={enumerable:!0,get:function(){return At[Mt]}}),Object.defineProperty(xt,It,Lt)}:function(xt,At,Mt,It){It===void 0&&(It=Mt),xt[It]=At[Mt]}),tt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(xt,At){Object.defineProperty(xt,"default",{enumerable:!0,value:At})}:function(xt,At){xt.default=At}),nt=commonjsGlobal&&commonjsGlobal.__importStar||function(xt){if(xt&&xt.__esModule)return xt;var At={};if(xt!=null)for(var Mt in xt)Mt!=="default"&&Object.prototype.hasOwnProperty.call(xt,Mt)&&et(At,xt,Mt);return tt(At,xt),At},at=commonjsGlobal&&commonjsGlobal.__exportStar||function(xt,At){for(var Mt in xt)Mt!=="default"&&!Object.prototype.hasOwnProperty.call(At,Mt)&&et(At,xt,Mt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.sdk=_e.isInsideWorldLimits=_e.getWorld=_e.World=_e.GenderFilterOption=_e.WearableGender=_e.Store=_e.AnalyticsDayDataSortBy=_e.PeriodCreation=_e.RentalListingCreation=_e.RentalsListingsSortBy=_e.RentalsListingsFilterByCategory=_e.RentalsListingSortDirection=_e.RentalStatus=_e.SaleSortBy=_e.Sale=_e.SaleType=_e.Rarity=_e.ProviderType=_e.OrderSortBy=_e.Order=_e.CatalogSortDirection=_e.CatalogSortBy=_e.NFTSortBy=_e.NFT=_e.NFTCategory=_e.Network=_e.MintSortBy=_e.Mint=_e.MetaTransaction=_e.ListingStatus=_e.ItemSortBy=_e.Item=_e.ContractSortBy=_e.Contract=_e.CollectionSortBy=_e.Collection=_e.getChainId=_e.ChainName=_e.getURNProtocol=_e.getChainName=_e.ChainId=_e.AccountSortBy=_e.Account=_e.BidSortBy=_e.Bid=void 0;const it=nt(sdk$2);_e.sdk=it,at(validation$4,_e);var ot=bid$3;Object.defineProperty(_e,"Bid",{enumerable:!0,get:function(){return ot.Bid}}),Object.defineProperty(_e,"BidSortBy",{enumerable:!0,get:function(){return ot.BidSortBy}});var st=account$2;Object.defineProperty(_e,"Account",{enumerable:!0,get:function(){return st.Account}}),Object.defineProperty(_e,"AccountSortBy",{enumerable:!0,get:function(){return st.AccountSortBy}});var ct=requireChainId$2();Object.defineProperty(_e,"ChainId",{enumerable:!0,get:function(){return ct.ChainId}}),Object.defineProperty(_e,"getChainName",{enumerable:!0,get:function(){return ct.getChainName}}),Object.defineProperty(_e,"getURNProtocol",{enumerable:!0,get:function(){return ct.getURNProtocol}});var dt=requireChainName$2();Object.defineProperty(_e,"ChainName",{enumerable:!0,get:function(){return dt.ChainName}}),Object.defineProperty(_e,"getChainId",{enumerable:!0,get:function(){return dt.getChainId}});var ht=collection$2;Object.defineProperty(_e,"Collection",{enumerable:!0,get:function(){return ht.Collection}}),Object.defineProperty(_e,"CollectionSortBy",{enumerable:!0,get:function(){return ht.CollectionSortBy}});var pt=contract$2;Object.defineProperty(_e,"Contract",{enumerable:!0,get:function(){return pt.Contract}}),Object.defineProperty(_e,"ContractSortBy",{enumerable:!0,get:function(){return pt.ContractSortBy}});var mt=item$4;Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return mt.Item}}),Object.defineProperty(_e,"ItemSortBy",{enumerable:!0,get:function(){return mt.ItemSortBy}});var vt=listingStatus$2;Object.defineProperty(_e,"ListingStatus",{enumerable:!0,get:function(){return vt.ListingStatus}});var bt=metaTransactions$2;Object.defineProperty(_e,"MetaTransaction",{enumerable:!0,get:function(){return bt.MetaTransaction}});var _t=mint$2;Object.defineProperty(_e,"Mint",{enumerable:!0,get:function(){return _t.Mint}}),Object.defineProperty(_e,"MintSortBy",{enumerable:!0,get:function(){return _t.MintSortBy}});var wt=network$3;Object.defineProperty(_e,"Network",{enumerable:!0,get:function(){return wt.Network}});var Et=nftCategory$2;Object.defineProperty(_e,"NFTCategory",{enumerable:!0,get:function(){return Et.NFTCategory}});var St=nft$2;Object.defineProperty(_e,"NFT",{enumerable:!0,get:function(){return St.NFT}}),Object.defineProperty(_e,"NFTSortBy",{enumerable:!0,get:function(){return St.NFTSortBy}});var Tt=catalog$2;Object.defineProperty(_e,"CatalogSortBy",{enumerable:!0,get:function(){return Tt.CatalogSortBy}}),Object.defineProperty(_e,"CatalogSortDirection",{enumerable:!0,get:function(){return Tt.CatalogSortDirection}});var Ct=order$3;Object.defineProperty(_e,"Order",{enumerable:!0,get:function(){return Ct.Order}}),Object.defineProperty(_e,"OrderSortBy",{enumerable:!0,get:function(){return Ct.OrderSortBy}});var Nt=providerType$2;Object.defineProperty(_e,"ProviderType",{enumerable:!0,get:function(){return Nt.ProviderType}});var Dt=rarity$2;Object.defineProperty(_e,"Rarity",{enumerable:!0,get:function(){return Dt.Rarity}});var kt=saleType$2;Object.defineProperty(_e,"SaleType",{enumerable:!0,get:function(){return kt.SaleType}});var Ft=sale$2;Object.defineProperty(_e,"Sale",{enumerable:!0,get:function(){return Ft.Sale}}),Object.defineProperty(_e,"SaleSortBy",{enumerable:!0,get:function(){return Ft.SaleSortBy}});var jt=rentalsListings$2;Object.defineProperty(_e,"RentalStatus",{enumerable:!0,get:function(){return jt.RentalStatus}}),Object.defineProperty(_e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return jt.RentalsListingSortDirection}}),Object.defineProperty(_e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return jt.RentalsListingsFilterByCategory}}),Object.defineProperty(_e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return jt.RentalsListingsSortBy}}),Object.defineProperty(_e,"RentalListingCreation",{enumerable:!0,get:function(){return jt.RentalListingCreation}}),Object.defineProperty(_e,"PeriodCreation",{enumerable:!0,get:function(){return jt.PeriodCreation}});var Gt=analyticsDayData$2;Object.defineProperty(_e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return Gt.AnalyticsDayDataSortBy}});var Rt=store$4;Object.defineProperty(_e,"Store",{enumerable:!0,get:function(){return Rt.Store}});var yt=wearableGender$2;Object.defineProperty(_e,"WearableGender",{enumerable:!0,get:function(){return yt.WearableGender}}),Object.defineProperty(_e,"GenderFilterOption",{enumerable:!0,get:function(){return yt.GenderFilterOption}});var $t=world$2;Object.defineProperty(_e,"World",{enumerable:!0,get:function(){return $t.World}}),Object.defineProperty(_e,"getWorld",{enumerable:!0,get:function(){return $t.getWorld}}),Object.defineProperty(_e,"isInsideWorldLimits",{enumerable:!0,get:function(){return $t.isInsideWorldLimits}}),at(preview$2,_e),at(platform$3,_e),at(misc$2,_e),at(linkerAuthorization$2,_e),at(authChain$2,_e),at(contentMapping$2,_e),at(email,_e)})(dist$d);const configuration=Object.freeze({storageKey:"decentraland-connect-storage-key",[providerType$2.ProviderType.INJECTED]:{},[providerType$2.ProviderType.FORTMATIC]:{apiKeys:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[chainIdExports.ChainId.ETHEREUM_ROPSTEN]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_RINKEBY]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_KOVAN]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_GOERLI]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:getRpcUrls(providerType$2.ProviderType.FORTMATIC)},[providerType$2.ProviderType.NETWORK]:{urls:getRpcUrls(providerType$2.ProviderType.NETWORK)},[providerType$2.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:getRpcUrls(providerType$2.ProviderType.WALLET_LINK)},[providerType$2.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:getRpcUrls(providerType$2.ProviderType.WALLET_CONNECT_V2),chains:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:{chains:[chainIdExports.ChainId.ETHEREUM_MAINNET],optionalChains:[chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]},[chainIdExports.ChainId.ETHEREUM_GOERLI]:{chains:[chainIdExports.ChainId.ETHEREUM_GOERLI],optionalChains:[chainIdExports.ChainId.MATIC_MUMBAI,chainIdExports.ChainId.MATIC_AMOY]},[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:{chains:[chainIdExports.ChainId.ETHEREUM_SEPOLIA],optionalChains:[chainIdExports.ChainId.MATIC_MUMBAI,chainIdExports.ChainId.MATIC_AMOY]}}},[providerType$2.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:getRpcUrls(providerType$2.ProviderType.MAGIC),chains:[chainIdExports.ChainId.ETHEREUM_MAINNET,chainIdExports.ChainId.ETHEREUM_GOERLI,chainIdExports.ChainId.ETHEREUM_SEPOLIA,chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.MATIC_MUMBAI,chainIdExports.ChainId.MATIC_AMOY,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]}});function getConfiguration(){return configuration}function getRpcUrls(_e){const et={[chainIdExports.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[chainIdExports.ChainId.ETHEREUM_ROPSTEN]:"https://rpc.decentraland.org/ropsten",[chainIdExports.ChainId.ETHEREUM_RINKEBY]:"https://rpc.decentraland.org/rinkeby",[chainIdExports.ChainId.ETHEREUM_GOERLI]:"https://rpc.decentraland.org/goerli",[chainIdExports.ChainId.ETHEREUM_KOVAN]:"https://rpc.decentraland.org/kovan",[chainIdExports.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[chainIdExports.ChainId.MATIC_MUMBAI]:"https://rpc.decentraland.org/mumbai",[chainIdExports.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[chainIdExports.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[chainIdExports.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[chainIdExports.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[chainIdExports.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[chainIdExports.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let tt="";switch(_e){case providerType$2.ProviderType.WALLET_LINK:tt="walletlink";break;case providerType$2.ProviderType.FORTMATIC:tt="fortmatic";break;case providerType$2.ProviderType.MAGIC:tt="magic";break;case providerType$2.ProviderType.WALLET_CONNECT_V2:tt="walletconnect-v2";break;case providerType$2.ProviderType.AUTH_SERVER:tt="auth-server";break}if(tt)for(const nt in et)et[nt]+=`?project=${tt}`;return et}class FortmaticConnector extends AbstractConnector{constructor(et){const tt=getConfiguration()[dist$d.ProviderType.FORTMATIC],nt=Object.keys(tt.apiKeys).map(at=>Number(at));if(!nt.includes(et))throw new Error(`Invariant error: Unsupported chainId ${et}`);super({supportedChainIds:nt}),this.apiKey=tt.apiKeys[et],this.chainId=et,this.rpcUrl=tt.urls[et]}async activate(){if(!this.fortmatic){const{default:tt}=await __vitePreload(()=>import("./fortmatic-809bce1e.js").then(nt=>nt.f),[]);this.fortmatic=new tt(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const et=await this.fortmatic.getProvider().enable().then(tt=>tt[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:et}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(et=>et[0])}deactivate(){}async close(){await this.fortmatic.user.logout(),this.emitDeactivate()}}function warning$2(_e,et){}function _extends$K(){return _extends$K=Object.assign||function(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et];for(var nt in tt)Object.prototype.hasOwnProperty.call(tt,nt)&&(_e[nt]=tt[nt])}return _e},_extends$K.apply(this,arguments)}function _inheritsLoose$5(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_e.__proto__=et}function _getPrototypeOf$R(_e){return _getPrototypeOf$R=Object.setPrototypeOf?Object.getPrototypeOf:function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$R(_e)}function _setPrototypeOf$T(_e,et){return _setPrototypeOf$T=Object.setPrototypeOf||function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$T(_e,et)}function isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct$1(_e,et,tt){return isNativeReflectConstruct()?_construct$1=Reflect.construct:_construct$1=function(at,it,ot){var st=[null];st.push.apply(st,it);var ct=Function.bind.apply(at,st),dt=new ct;return ot&&_setPrototypeOf$T(dt,ot.prototype),dt},_construct$1.apply(null,arguments)}function _isNativeFunction$1(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper$1(_e){var et=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(nt){if(nt===null||!_isNativeFunction$1(nt))return nt;if(typeof nt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof et<"u"){if(et.has(nt))return et.get(nt);et.set(nt,at)}function at(){return _construct$1(nt,arguments,_getPrototypeOf$R(this).constructor)}return at.prototype=Object.create(nt.prototype,{constructor:{value:at,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$T(at,nt)},_wrapNativeSuper$1(_e)}function _assertThisInitialized$S(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function _catch(_e,et){try{var tt=_e()}catch(nt){return et(nt)}return tt&&tt.then?tt.then(void 0,et):tt}function parseSendReturn(_e){return _e.hasOwnProperty("result")?_e.result:_e}var NoEthereumProviderError=function(_e){_inheritsLoose$5(et,_e);function et(){var tt;return tt=_e.call(this)||this,tt.name=tt.constructor.name,tt.message="No Ethereum provider was found on window.ethereum.",tt}return et}(_wrapNativeSuper$1(Error)),UserRejectedRequestError=function(_e){_inheritsLoose$5(et,_e);function et(){var tt;return tt=_e.call(this)||this,tt.name=tt.constructor.name,tt.message="The user rejected the request.",tt}return et}(_wrapNativeSuper$1(Error)),InjectedConnector$1=function(_e){_inheritsLoose$5(et,_e);function et(nt){var at;return at=_e.call(this,nt)||this,at.handleNetworkChanged=at.handleNetworkChanged.bind(_assertThisInitialized$S(at)),at.handleChainChanged=at.handleChainChanged.bind(_assertThisInitialized$S(at)),at.handleAccountsChanged=at.handleAccountsChanged.bind(_assertThisInitialized$S(at)),at.handleClose=at.handleClose.bind(_assertThisInitialized$S(at)),at}var tt=et.prototype;return tt.handleChainChanged=function(at){this.emitUpdate({chainId:at,provider:window.ethereum})},tt.handleAccountsChanged=function(at){at.length===0?this.emitDeactivate():this.emitUpdate({account:at[0]})},tt.handleClose=function(at,it){this.emitDeactivate()},tt.handleNetworkChanged=function(at){this.emitUpdate({chainId:at,provider:window.ethereum})},tt.activate=function(){try{var at=function(ht){if(it)return ht;function pt(){return _extends$K({provider:window.ethereum},st?{account:st}:{})}var mt=function(){if(!st)return Promise.resolve(window.ethereum.enable().then(function(vt){return vt&&parseSendReturn(vt)[0]})).then(function(vt){st=vt})}();return mt&&mt.then?mt.then(pt):pt(mt)},it=!1,ot=this;if(!window.ethereum)throw new NoEthereumProviderError;window.ethereum.on&&(window.ethereum.on("chainChanged",ot.handleChainChanged),window.ethereum.on("accountsChanged",ot.handleAccountsChanged),window.ethereum.on("close",ot.handleClose),window.ethereum.on("networkChanged",ot.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var st,ct=_catch(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(dt){return parseSendReturn(dt)[0]})).then(function(dt){st=dt})},function(dt){if(dt.code===4001)throw new UserRejectedRequestError});return Promise.resolve(ct&&ct.then?ct.then(at):at(ct))}catch(dt){return Promise.reject(dt)}},tt.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(at){return Promise.reject(at)}},tt.getChainId=function(){try{var at=function(){function ct(){if(!it)try{it=parseSendReturn(window.ethereum.send({method:"net_version"}))}catch{}return it||(window.ethereum.isDapper?it=parseSendReturn(window.ethereum.cachedResults.net_version):it=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),it}var dt=function(){if(!it){var ht=_catch(function(){return Promise.resolve(window.ethereum.send("net_version").then(parseSendReturn)).then(function(pt){it=pt})},function(){});if(ht&&ht.then)return ht.then(function(){})}}();return dt&&dt.then?dt.then(ct):ct(dt)};if(!window.ethereum)throw new NoEthereumProviderError;var it,ot=_catch(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(parseSendReturn)).then(function(st){it=st})},function(){});return Promise.resolve(ot&&ot.then?ot.then(at):at(ot))}catch(st){return Promise.reject(st)}},tt.getAccount=function(){try{var at=function(){function ct(){return it||(it=parseSendReturn(window.ethereum.send({method:"eth_accounts"}))[0]),it}var dt=function(){if(!it){var ht=_catch(function(){return Promise.resolve(window.ethereum.enable().then(function(pt){return parseSendReturn(pt)[0]})).then(function(pt){it=pt})},function(){});if(ht&&ht.then)return ht.then(function(){})}}();return dt&&dt.then?dt.then(ct):ct(dt)};if(!window.ethereum)throw new NoEthereumProviderError;var it,ot=_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(st){return parseSendReturn(st)[0]})).then(function(st){it=st})},function(){});return Promise.resolve(ot&&ot.then?ot.then(at):at(ot))}catch(st){return Promise.reject(st)}},tt.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},tt.isAuthorized=function(){try{return window.ethereum?Promise.resolve(_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(at){return parseSendReturn(at).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(at){return Promise.reject(at)}},et}(AbstractConnector);class InjectedConnector extends InjectedConnector$1{constructor(et){super({supportedChainIds:[et]})}}var prefix="Invariant failed";function invariant(_e,et){if(!_e)throw new Error(prefix)}function _inheritsLoose$4(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_setPrototypeOf$S(_e,et)}function _getPrototypeOf$Q(_e){return _getPrototypeOf$Q=Object.setPrototypeOf?Object.getPrototypeOf:function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$Q(_e)}function _setPrototypeOf$S(_e,et){return _setPrototypeOf$S=Object.setPrototypeOf||function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$S(_e,et)}function _isNativeReflectConstruct$Q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(_e,et,tt){return _isNativeReflectConstruct$Q()?_construct=Reflect.construct:_construct=function(at,it,ot){var st=[null];st.push.apply(st,it);var ct=Function.bind.apply(at,st),dt=new ct;return ot&&_setPrototypeOf$S(dt,ot.prototype),dt},_construct.apply(null,arguments)}function _isNativeFunction(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper(_e){var et=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(nt){if(nt===null||!_isNativeFunction(nt))return nt;if(typeof nt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof et<"u"){if(et.has(nt))return et.get(nt);et.set(nt,at)}function at(){return _construct(nt,arguments,_getPrototypeOf$Q(this).constructor)}return at.prototype=Object.create(nt.prototype,{constructor:{value:at,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$S(at,nt)},_wrapNativeSuper(_e)}var RequestError=function(_e){_inheritsLoose$4(et,_e);function et(tt,nt,at){var it;return it=_e.call(this)||this,it.code=nt,it.data=at,it.name=it.constructor.name,it.message=tt,it}return et}(_wrapNativeSuper(Error)),MiniRpcProvider=function(et,tt){var nt=this,at=this;this.isMetaMask=!1,this.sendAsync=function(ot,st){console.log("sendAsync",ot.method,ot.params),at.request(ot.method,ot.params).then(function(ct){return st(null,{jsonrpc:"2.0",id:ot.id,result:ct})}).catch(function(ct){return st(ct,null)})},this.request=function(ot,st){try{return typeof ot!="string"&&(st=ot.params,ot=ot.method),Promise.resolve(fetch(nt.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:ot,params:st}),headers:{"Content-Type":"application/json"}})).then(function(ct){if(!ct.ok)throw new RequestError(ct.status+": "+ct.statusText,-32e3);return Promise.resolve(ct.json()).then(function(dt){if("error"in dt){var ht,pt,mt;throw new RequestError(dt==null||(ht=dt.error)==null?void 0:ht.message,dt==null||(pt=dt.error)==null?void 0:pt.code,dt==null||(mt=dt.error)==null?void 0:mt.data)}else{if("result"in dt)return dt.result;throw new RequestError("Received unexpected JSON-RPC response to "+ot+" request.",-32e3,dt)}})})}catch(ct){return Promise.reject(ct)}},this.chainId=et,this.url=tt;var it=new URL(tt);this.host=it.host,this.path=it.pathname},NetworkConnector$1=function(_e){_inheritsLoose$4(et,_e);function et(nt){var at,it=nt.urls,ot=nt.defaultChainId;return ot||Object.keys(it).length===1||invariant(!1),at=_e.call(this,{supportedChainIds:Object.keys(it).map(function(st){return Number(st)})})||this,at.currentChainId=ot||Number(Object.keys(it)[0]),at.providers=Object.keys(it).reduce(function(st,ct){return st[Number(ct)]=new MiniRpcProvider(Number(ct),it[Number(ct)]),st},{}),at}var tt=et.prototype;return tt.activate=function(){try{var at=this;return Promise.resolve({provider:at.providers[at.currentChainId],chainId:at.currentChainId,account:null})}catch(it){return Promise.reject(it)}},tt.getProvider=function(){try{var at=this;return Promise.resolve(at.providers[at.currentChainId])}catch(it){return Promise.reject(it)}},tt.getChainId=function(){try{var at=this;return Promise.resolve(at.currentChainId)}catch(it){return Promise.reject(it)}},tt.getAccount=function(){return Promise.resolve(null)},tt.deactivate=function(){},tt.changeChainId=function(at){Object.keys(this.providers).includes(at.toString())||invariant(!1),this.currentChainId=at,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:at})},et}(AbstractConnector);class NetworkConnector extends NetworkConnector$1{constructor(et){super({urls:getConfiguration()[providerType$2.ProviderType.NETWORK].urls,defaultChainId:et})}}function _extends$J(){return _extends$J=Object.assign||function(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et];for(var nt in tt)Object.prototype.hasOwnProperty.call(tt,nt)&&(_e[nt]=tt[nt])}return _e},_extends$J.apply(this,arguments)}function _inheritsLoose$3(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_setPrototypeOf$R(_e,et)}function _setPrototypeOf$R(_e,et){return _setPrototypeOf$R=Object.setPrototypeOf||function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$R(_e,et)}function _assertThisInitialized$R(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}var CHAIN_ID$2=1,WalletLinkConnector$1=function(_e){_inheritsLoose$3(et,_e);function et(nt){var at,it=nt.url,ot=nt.appName,st=nt.appLogoUrl,ct=nt.darkMode,dt=nt.supportedChainIds;return at=_e.call(this,{supportedChainIds:dt})||this,at.url=it,at.appName=ot,at.appLogoUrl=st,at.darkMode=ct||!1,at.handleChainChanged=at.handleChainChanged.bind(_assertThisInitialized$R(at)),at.handleAccountsChanged=at.handleAccountsChanged.bind(_assertThisInitialized$R(at)),at}var tt=et.prototype;return tt.activate=function(){try{var at=this,it=function(){return Promise.resolve(at.provider.request({method:"eth_requestAccounts"})).then(function(ct){var dt=ct[0];return at.provider.on("chainChanged",at.handleChainChanged),at.provider.on("accountsChanged",at.handleAccountsChanged),{provider:at.provider,account:dt}})},ot=function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)at.provider=window.ethereum;else{var st=function(){if(!at.walletLink)return Promise.resolve(__vitePreload(()=>import("./index-a159a892.js").then(ct=>ct.i),[]).then(function(ct){var dt;return(dt=ct==null?void 0:ct.default)!=null?dt:ct})).then(function(ct){at.walletLink=new ct(_extends$J({appName:at.appName,darkMode:at.darkMode},at.appLogoUrl?{appLogoUrl:at.appLogoUrl}:{})),at.provider=at.walletLink.makeWeb3Provider(at.url,CHAIN_ID$2)})}();if(st&&st.then)return st.then(function(){})}}();return Promise.resolve(ot&&ot.then?ot.then(it):it(ot))}catch(st){return Promise.reject(st)}},tt.getProvider=function(){try{var at=this;return Promise.resolve(at.provider)}catch(it){return Promise.reject(it)}},tt.getChainId=function(){try{var at=this;return Promise.resolve(at.provider.chainId)}catch(it){return Promise.reject(it)}},tt.getAccount=function(){try{var at=this;return Promise.resolve(at.provider.request({method:"eth_requestAccounts"})).then(function(it){return it[0]})}catch(it){return Promise.reject(it)}},tt.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},tt.close=function(){try{var at=this;return at.provider.close(),at.emitDeactivate(),Promise.resolve()}catch(it){return Promise.reject(it)}},tt.handleChainChanged=function(at){this.emitUpdate({chainId:at})},tt.handleAccountsChanged=function(at){this.emitUpdate({account:at[0]})},et}(AbstractConnector);class WalletLinkConnector extends WalletLinkConnector$1{constructor(et){const tt=getConfiguration()[dist$d.ProviderType.WALLET_LINK];super({url:tt.urls[et],appName:tt.appName,supportedChainIds:[et]})}}class WalletConnectV2Connector extends AbstractConnector{constructor(et){super({supportedChainIds:(()=>{const{chains:tt,optionalChains:nt}=WalletConnectV2Connector.configuration.chains[et];return[...tt,...nt]})()}),this.desiredChainId=et,this.activate=async()=>{const tt=await __vitePreload(()=>import("./index.es-840d3bdb.js"),[]).then(at=>{const{chains:it,optionalChains:ot}=WalletConnectV2Connector.configuration.chains[this.desiredChainId];return at.default.init({projectId:WalletConnectV2Connector.configuration.projectId,rpcMap:WalletConnectV2Connector.configuration.urls,chains:it,optionalChains:ot,showQrModal:!0,disableProviderPing:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"3000"}},methods:["eth_sendTransaction","personal_sign"],optionalMethods:["eth_accounts","eth_requestAccounts","eth_sign","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain"],events:["chainChanged","accountsChanged"],optionalEvents:["disconnect"]})}),nt=await tt.enable();return tt.on("accountsChanged",this.handleAccountsChanged),tt.on("chainChanged",this.handleChainChanged),tt.on("disconnect",this.handleDisconnect),this.provider=tt,{chainId:tt.chainId,account:nt[0],provider:tt}},this.getProvider=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider},this.getChainId=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.chainId},this.getAccount=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.accounts[0]},this.getWalletName=()=>{var tt,nt;return(nt=(tt=this.provider)==null?void 0:tt.session)==null?void 0:nt.peer.metadata.name},this.deactivate=()=>{this.provider&&(this.emitDeactivate(),this.provider.removeListener("accountsChanged",this.handleAccountsChanged).removeListener("chainChanged",this.handleChainChanged).removeListener("disconnect",this.handleDisconnect).disconnect())},this.handleAccountsChanged=tt=>{this.emitUpdate({account:tt[0]})},this.handleChainChanged=tt=>{this.emitUpdate({chainId:tt})},this.handleDisconnect=()=>{if(!this.provider)throw new Error("Provider is undefined");this.deactivate()}}}WalletConnectV2Connector.configuration=getConfiguration()[dist$d.ProviderType.WALLET_CONNECT_V2];WalletConnectV2Connector.clearStorage=_e=>{_e.removeRegExp(new RegExp("^wc@2:"))};class MagicConnector extends AbstractConnector{constructor(et){super({supportedChainIds:getConfiguration()[dist$d.ProviderType.MAGIC].chains}),this.activate=async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const nt=await this.getProvider(),at=await nt.request({method:"eth_accounts"});return this.account=at[0]??null,{provider:nt,chainId:this.chainId,account:this.account}},this.getProvider=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const tt=await this.magic.wallet.getProvider();return{...tt,request:new Proxy(tt.request,{apply:async(nt,at,it)=>{var ot,st,ct;if(((ot=it[0])==null?void 0:ot.method)==="wallet_switchEthereumChain")try{const dt=parseInt((ct=(st=it[0])==null?void 0:st.params[0])==null?void 0:ct.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(dt)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(dt),this.emitUpdate({chainId:dt}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return nt.bind(tt)(...it)}})}},this.getChainId=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId},this.getAccount=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account},this.deactivate=()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");this.magic.user.logout(),this.emitDeactivate()},this.buildMagicInstance=async tt=>{const{Magic:nt}=await __vitePreload(()=>import("./index-d8755eab.js"),["assets/index-d8755eab.js","assets/index-73f8fcd6.js"]),{OAuthExtension:at}=await __vitePreload(()=>import("./index-9839993e.js"),["assets/index-9839993e.js","assets/index-73f8fcd6.js"]),it=getConfiguration()[dist$d.ProviderType.MAGIC];return new nt(it.apiKey,{extensions:[new at],network:{rpcUrl:it.urls[tt],chainId:tt}})},this.chainId=et,this.account=null}}const version$q="6.11.1";function checkType(_e,et,tt){const nt=et.split("|").map(it=>it.trim());for(let it=0;it<nt.length;it++)switch(et){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof _e===et)return}const at=new Error(`invalid value for type ${et}`);throw at.code="INVALID_ARGUMENT",at.argument=`value.${tt}`,at.value=_e,at}async function resolveProperties$1(_e){const et=Object.keys(_e);return(await Promise.all(et.map(nt=>Promise.resolve(_e[nt])))).reduce((nt,at,it)=>(nt[et[it]]=at,nt),{})}function defineProperties$2(_e,et,tt){for(let nt in et){let at=et[nt];const it=tt?tt[nt]:null;it&&checkType(at,it,nt),Object.defineProperty(_e,nt,{enumerable:!0,value:at,writable:!1})}}function stringify$4(_e){if(_e==null)return"null";if(Array.isArray(_e))return"[ "+_e.map(stringify$4).join(", ")+" ]";if(_e instanceof Uint8Array){const et="0123456789abcdef";let tt="0x";for(let nt=0;nt<_e.length;nt++)tt+=et[_e[nt]>>4],tt+=et[_e[nt]&15];return tt}if(typeof _e=="object"&&typeof _e.toJSON=="function")return stringify$4(_e.toJSON());switch(typeof _e){case"boolean":case"symbol":return _e.toString();case"bigint":return BigInt(_e).toString();case"number":return _e.toString();case"string":return JSON.stringify(_e);case"object":{const et=Object.keys(_e);return et.sort(),"{ "+et.map(tt=>`${stringify$4(tt)}: ${stringify$4(_e[tt])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function isError$3(_e,et){return _e&&_e.code===et}function isCallException(_e){return isError$3(_e,"CALL_EXCEPTION")}function makeError(_e,et,tt){let nt=_e;{const it=[];if(tt){if("message"in tt||"code"in tt||"name"in tt)throw new Error(`value will overwrite populated values: ${stringify$4(tt)}`);for(const ot in tt){if(ot==="shortMessage")continue;const st=tt[ot];it.push(ot+"="+stringify$4(st))}}it.push(`code=${et}`),it.push(`version=${version$q}`),it.length&&(_e+=" ("+it.join(", ")+")")}let at;switch(et){case"INVALID_ARGUMENT":at=new TypeError(_e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":at=new RangeError(_e);break;default:at=new Error(_e)}return defineProperties$2(at,{code:et}),tt&&Object.assign(at,tt),at.shortMessage==null&&defineProperties$2(at,{shortMessage:nt}),at}function assert$y(_e,et,tt,nt){if(!_e)throw makeError(et,tt,nt)}function assertArgument(_e,et,tt,nt){assert$y(_e,et,"INVALID_ARGUMENT",{argument:tt,value:nt})}function assertArgumentCount(_e,et,tt){tt==null&&(tt=""),tt&&(tt=": "+tt),assert$y(_e>=et,"missing arguemnt"+tt,"MISSING_ARGUMENT",{count:_e,expectedCount:et}),assert$y(_e<=et,"too many arguments"+tt,"UNEXPECTED_ARGUMENT",{count:_e,expectedCount:et})}const _normalizeForms=["NFD","NFC","NFKD","NFKC"].reduce((_e,et)=>{try{if("test".normalize(et)!=="test")throw new Error("bad");if(et==="NFD"){const tt=String.fromCharCode(233).normalize("NFD"),nt=String.fromCharCode(101,769);if(tt!==nt)throw new Error("broken")}_e.push(et)}catch{}return _e},[]);function assertNormalize(_e){assert$y(_normalizeForms.indexOf(_e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:_e}})}function assertPrivate(_e,et,tt){if(tt==null&&(tt=""),_e!==et){let nt=tt,at="new";tt&&(nt+=".",at+=" "+tt),assert$y(!1,`private constructor; use ${nt}from* methods`,"UNSUPPORTED_OPERATION",{operation:at})}}function _getBytes(_e,et,tt){if(_e instanceof Uint8Array)return tt?new Uint8Array(_e):_e;if(typeof _e=="string"&&_e.match(/^0x([0-9a-f][0-9a-f])*$/i)){const nt=new Uint8Array((_e.length-2)/2);let at=2;for(let it=0;it<nt.length;it++)nt[it]=parseInt(_e.substring(at,at+2),16),at+=2;return nt}assertArgument(!1,"invalid BytesLike value",et||"value",_e)}function getBytes(_e,et){return _getBytes(_e,et,!1)}function getBytesCopy(_e,et){return _getBytes(_e,et,!0)}function isHexString$1(_e,et){return!(typeof _e!="string"||!_e.match(/^0x[0-9A-Fa-f]*$/)||typeof et=="number"&&_e.length!==2+2*et||et===!0&&_e.length%2!==0)}function isBytesLike$1(_e){return isHexString$1(_e,!0)||_e instanceof Uint8Array}const HexCharacters$1="0123456789abcdef";function hexlify$1(_e){const et=getBytes(_e);let tt="0x";for(let nt=0;nt<et.length;nt++){const at=et[nt];tt+=HexCharacters$1[(at&240)>>4]+HexCharacters$1[at&15]}return tt}function concat$2(_e){return"0x"+_e.map(et=>hexlify$1(et).substring(2)).join("")}function dataLength(_e){return isHexString$1(_e,!0)?(_e.length-2)/2:getBytes(_e).length}function dataSlice(_e,et,tt){const nt=getBytes(_e);return tt!=null&&tt>nt.length&&assert$y(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:nt,length:nt.length,offset:tt}),hexlify$1(nt.slice(et??0,tt??nt.length))}function zeroPad$1(_e,et,tt){const nt=getBytes(_e);assert$y(et>=nt.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(nt),length:et,offset:et+1});const at=new Uint8Array(et);return at.fill(0),tt?at.set(nt,et-nt.length):at.set(nt,0),hexlify$1(at)}function zeroPadValue(_e,et){return zeroPad$1(_e,et,!0)}function zeroPadBytes(_e,et){return zeroPad$1(_e,et,!1)}const BN_0$9=BigInt(0),BN_1$3=BigInt(1),maxValue=9007199254740991;function fromTwos(_e,et){const tt=getUint(_e,"value"),nt=BigInt(getNumber(et,"width"));if(assert$y(tt>>nt===BN_0$9,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:_e}),tt>>nt-BN_1$3){const at=(BN_1$3<<nt)-BN_1$3;return-((~tt&at)+BN_1$3)}return tt}function toTwos(_e,et){let tt=getBigInt(_e,"value");const nt=BigInt(getNumber(et,"width")),at=BN_1$3<<nt-BN_1$3;if(tt<BN_0$9){tt=-tt,assert$y(tt<=at,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:_e});const it=(BN_1$3<<nt)-BN_1$3;return(~tt&it)+BN_1$3}else assert$y(tt<at,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:_e});return tt}function mask(_e,et){const tt=getUint(_e,"value"),nt=BigInt(getNumber(et,"bits"));return tt&(BN_1$3<<nt)-BN_1$3}function getBigInt(_e,et){switch(typeof _e){case"bigint":return _e;case"number":return assertArgument(Number.isInteger(_e),"underflow",et||"value",_e),assertArgument(_e>=-maxValue&&_e<=maxValue,"overflow",et||"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(tt){assertArgument(!1,`invalid BigNumberish string: ${tt.message}`,et||"value",_e)}}assertArgument(!1,"invalid BigNumberish value",et||"value",_e)}function getUint(_e,et){const tt=getBigInt(_e,et);return assert$y(tt>=BN_0$9,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:_e}),tt}const Nibbles$1="0123456789abcdef";function toBigInt(_e){if(_e instanceof Uint8Array){let et="0x0";for(const tt of _e)et+=Nibbles$1[tt>>4],et+=Nibbles$1[tt&15];return BigInt(et)}return getBigInt(_e)}function getNumber(_e,et){switch(typeof _e){case"bigint":return assertArgument(_e>=-maxValue&&_e<=maxValue,"overflow",et||"value",_e),Number(_e);case"number":return assertArgument(Number.isInteger(_e),"underflow",et||"value",_e),assertArgument(_e>=-maxValue&&_e<=maxValue,"overflow",et||"value",_e),_e;case"string":try{if(_e==="")throw new Error("empty string");return getNumber(BigInt(_e),et)}catch(tt){assertArgument(!1,`invalid numeric string: ${tt.message}`,et||"value",_e)}}assertArgument(!1,"invalid numeric value",et||"value",_e)}function toNumber$2(_e){return getNumber(toBigInt(_e))}function toBeHex(_e,et){let nt=getUint(_e,"value").toString(16);if(et==null)nt.length%2&&(nt="0"+nt);else{const at=getNumber(et,"width");for(assert$y(at*2>=nt.length,`value exceeds width (${at} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:_e});nt.length<at*2;)nt="0"+nt}return"0x"+nt}function toBeArray(_e){const et=getUint(_e,"value");if(et===BN_0$9)return new Uint8Array([]);let tt=et.toString(16);tt.length%2&&(tt="0"+tt);const nt=new Uint8Array(tt.length/2);for(let at=0;at<nt.length;at++){const it=at*2;nt[at]=parseInt(tt.substring(it,it+2),16)}return nt}function toQuantity(_e){let et=hexlify$1(isBytesLike$1(_e)?_e:toBeArray(_e)).substring(2);for(;et.startsWith("0");)et=et.substring(1);return et===""&&(et="0"),"0x"+et}const Alphabet="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let Lookup=null;function getAlpha(_e){if(Lookup==null){Lookup={};for(let tt=0;tt<Alphabet.length;tt++)Lookup[Alphabet[tt]]=BigInt(tt)}const et=Lookup[_e];return assertArgument(et!=null,"invalid base58 value","letter",_e),et}const BN_0$8=BigInt(0),BN_58=BigInt(58);function encodeBase58(_e){const et=getBytes(_e);let tt=toBigInt(et),nt="";for(;tt;)nt=Alphabet[Number(tt%BN_58)]+nt,tt/=BN_58;for(let at=0;at<et.length&&!et[at];at++)nt=Alphabet[0]+nt;return nt}function decodeBase58(_e){let et=BN_0$8;for(let tt=0;tt<_e.length;tt++)et*=BN_58,et+=getAlpha(_e[tt]);return et}function decodeBase64(_e){_e=atob(_e);const et=new Uint8Array(_e.length);for(let tt=0;tt<_e.length;tt++)et[tt]=_e.charCodeAt(tt);return getBytes(et)}function encodeBase64$1(_e){const et=getBytes(_e);let tt="";for(let nt=0;nt<et.length;nt++)tt+=String.fromCharCode(et[nt]);return btoa(tt)}var Du;class EventPayload{constructor(et,tt,nt){Zr(this,"filter");Zr(this,"emitter");Rn(this,Du,void 0);Wr(this,Du,tt),defineProperties$2(this,{emitter:et,filter:nt})}async removeListener(){_r(this,Du)!=null&&await this.emitter.off(this.filter,_r(this,Du))}}Du=new WeakMap;function errorFunc$1(_e,et,tt,nt,at){assertArgument(!1,`invalid codepoint at offset ${et}; ${_e}`,"bytes",tt)}function ignoreFunc$1(_e,et,tt,nt,at){if(_e==="BAD_PREFIX"||_e==="UNEXPECTED_CONTINUE"){let it=0;for(let ot=et+1;ot<tt.length&&tt[ot]>>6===2;ot++)it++;return it}return _e==="OVERRUN"?tt.length-et-1:0}function replaceFunc$1(_e,et,tt,nt,at){return _e==="OVERLONG"?(assertArgument(typeof at=="number","invalid bad code point for replacement","badCodepoint",at),nt.push(at),0):(nt.push(65533),ignoreFunc$1(_e,et,tt))}const Utf8ErrorFuncs$1=Object.freeze({error:errorFunc$1,ignore:ignoreFunc$1,replace:replaceFunc$1});function getUtf8CodePoints$1(_e,et){et==null&&(et=Utf8ErrorFuncs$1.error);const tt=getBytes(_e,"bytes"),nt=[];let at=0;for(;at<tt.length;){const it=tt[at++];if(!(it>>7)){nt.push(it);continue}let ot=null,st=null;if((it&224)===192)ot=1,st=127;else if((it&240)===224)ot=2,st=2047;else if((it&248)===240)ot=3,st=65535;else{(it&192)===128?at+=et("UNEXPECTED_CONTINUE",at-1,tt,nt):at+=et("BAD_PREFIX",at-1,tt,nt);continue}if(at-1+ot>=tt.length){at+=et("OVERRUN",at-1,tt,nt);continue}let ct=it&(1<<8-ot-1)-1;for(let dt=0;dt<ot;dt++){let ht=tt[at];if((ht&192)!=128){at+=et("MISSING_CONTINUE",at,tt,nt),ct=null;break}ct=ct<<6|ht&63,at++}if(ct!==null){if(ct>1114111){at+=et("OUT_OF_RANGE",at-1-ot,tt,nt,ct);continue}if(ct>=55296&&ct<=57343){at+=et("UTF16_SURROGATE",at-1-ot,tt,nt,ct);continue}if(ct<=st){at+=et("OVERLONG",at-1-ot,tt,nt,ct);continue}nt.push(ct)}}return nt}function toUtf8Bytes$1(_e,et){assertArgument(typeof _e=="string","invalid string value","str",_e),et!=null&&(assertNormalize(et),_e=_e.normalize(et));let tt=[];for(let nt=0;nt<_e.length;nt++){const at=_e.charCodeAt(nt);if(at<128)tt.push(at);else if(at<2048)tt.push(at>>6|192),tt.push(at&63|128);else if((at&64512)==55296){nt++;const it=_e.charCodeAt(nt);assertArgument(nt<_e.length&&(it&64512)===56320,"invalid surrogate pair","str",_e);const ot=65536+((at&1023)<<10)+(it&1023);tt.push(ot>>18|240),tt.push(ot>>12&63|128),tt.push(ot>>6&63|128),tt.push(ot&63|128)}else tt.push(at>>12|224),tt.push(at>>6&63|128),tt.push(at&63|128)}return new Uint8Array(tt)}function _toUtf8String$1(_e){return _e.map(et=>et<=65535?String.fromCharCode(et):(et-=65536,String.fromCharCode((et>>10&1023)+55296,(et&1023)+56320))).join("")}function toUtf8String$1(_e,et){return _toUtf8String$1(getUtf8CodePoints$1(_e,et))}function createGetUrl(_e){async function et(tt,nt){const at=tt.url.split(":")[0].toLowerCase();assert$y(at==="http"||at==="https",`unsupported protocol ${at}`,"UNSUPPORTED_OPERATION",{info:{protocol:at},operation:"request"}),assert$y(at==="https"||!tt.credentials||tt.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let it;if(nt){const pt=new AbortController;it=pt.signal,nt.addListener(()=>{pt.abort()})}const ot={method:tt.method,headers:new Headers(Array.from(tt)),body:tt.body||void 0,signal:it},st=await fetch(tt.url,ot),ct={};st.headers.forEach((pt,mt)=>{ct[mt.toLowerCase()]=pt});const dt=await st.arrayBuffer(),ht=dt==null?null:new Uint8Array(dt);return{statusCode:st.status,statusMessage:st.statusText,headers:ct,body:ht}}return et}const MAX_ATTEMPTS=12,SLOT_INTERVAL=250;let defaultGetUrlFunc=createGetUrl();const reData=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),reIpfs=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let locked$5=!1;async function dataGatewayFunc(_e,et){try{const tt=_e.match(reData);if(!tt)throw new Error("invalid data");return new FetchResponse(200,"OK",{"content-type":tt[1]||"text/plain"},tt[2]?decodeBase64(tt[3]):unpercent$1(tt[3]))}catch{return new FetchResponse(599,"BAD REQUEST (invalid data: URI)",{},null,new FetchRequest(_e))}}function getIpfsGatewayFunc(_e){async function et(tt,nt){try{const at=tt.match(reIpfs);if(!at)throw new Error("invalid link");return new FetchRequest(`${_e}${at[2]}`)}catch{return new FetchResponse(599,"BAD REQUEST (invalid IPFS URI)",{},null,new FetchRequest(tt))}}return et}const Gateways={data:dataGatewayFunc,ipfs:getIpfsGatewayFunc("https://gateway.ipfs.io/ipfs/")},fetchSignals=new WeakMap;var Jl,Tl;class FetchCancelSignal{constructor(et){Rn(this,Jl,void 0);Rn(this,Tl,void 0);Wr(this,Jl,[]),Wr(this,Tl,!1),fetchSignals.set(et,()=>{if(!_r(this,Tl)){Wr(this,Tl,!0);for(const tt of _r(this,Jl))setTimeout(()=>{tt()},0);Wr(this,Jl,[])}})}addListener(et){assert$y(!_r(this,Tl),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),_r(this,Jl).push(et)}get cancelled(){return _r(this,Tl)}checkSignal(){assert$y(!this.cancelled,"cancelled","CANCELLED",{})}}Jl=new WeakMap,Tl=new WeakMap;function checkSignal(_e){if(_e==null)throw new Error("missing signal; should not happen");return _e.checkSignal(),_e}var Lu,ku,Us,ul,Bu,ju,rs,Ps,cl,eu,tu,ru,zs,fl,Pl,nu,Sp;const Pm=class Pm{constructor(et){Rn(this,nu);Rn(this,Lu,void 0);Rn(this,ku,void 0);Rn(this,Us,void 0);Rn(this,ul,void 0);Rn(this,Bu,void 0);Rn(this,ju,void 0);Rn(this,rs,void 0);Rn(this,Ps,void 0);Rn(this,cl,void 0);Rn(this,eu,void 0);Rn(this,tu,void 0);Rn(this,ru,void 0);Rn(this,zs,void 0);Rn(this,fl,void 0);Rn(this,Pl,void 0);Wr(this,ju,String(et)),Wr(this,Lu,!1),Wr(this,ku,!0),Wr(this,Us,{}),Wr(this,ul,""),Wr(this,Bu,3e5),Wr(this,fl,{slotInterval:SLOT_INTERVAL,maxAttempts:MAX_ATTEMPTS}),Wr(this,Pl,null)}get url(){return _r(this,ju)}set url(et){Wr(this,ju,String(et))}get body(){return _r(this,rs)==null?null:new Uint8Array(_r(this,rs))}set body(et){if(et==null)Wr(this,rs,void 0),Wr(this,Ps,void 0);else if(typeof et=="string")Wr(this,rs,toUtf8Bytes$1(et)),Wr(this,Ps,"text/plain");else if(et instanceof Uint8Array)Wr(this,rs,et),Wr(this,Ps,"application/octet-stream");else if(typeof et=="object")Wr(this,rs,toUtf8Bytes$1(JSON.stringify(et))),Wr(this,Ps,"application/json");else throw new Error("invalid body")}hasBody(){return _r(this,rs)!=null}get method(){return _r(this,ul)?_r(this,ul):this.hasBody()?"POST":"GET"}set method(et){et==null&&(et=""),Wr(this,ul,String(et).toUpperCase())}get headers(){const et=Object.assign({},_r(this,Us));return _r(this,cl)&&(et.authorization=`Basic ${encodeBase64$1(toUtf8Bytes$1(_r(this,cl)))}`),this.allowGzip&&(et["accept-encoding"]="gzip"),et["content-type"]==null&&_r(this,Ps)&&(et["content-type"]=_r(this,Ps)),this.body&&(et["content-length"]=String(this.body.length)),et}getHeader(et){return this.headers[et.toLowerCase()]}setHeader(et,tt){_r(this,Us)[String(et).toLowerCase()]=String(tt)}clearHeaders(){Wr(this,Us,{})}[Symbol.iterator](){const et=this.headers,tt=Object.keys(et);let nt=0;return{next:()=>{if(nt<tt.length){const at=tt[nt++];return{value:[at,et[at]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return _r(this,cl)||null}setCredentials(et,tt){assertArgument(!et.match(/:/),"invalid basic authentication username","username","[REDACTED]"),Wr(this,cl,`${et}:${tt}`)}get allowGzip(){return _r(this,ku)}set allowGzip(et){Wr(this,ku,!!et)}get allowInsecureAuthentication(){return!!_r(this,Lu)}set allowInsecureAuthentication(et){Wr(this,Lu,!!et)}get timeout(){return _r(this,Bu)}set timeout(et){assertArgument(et>=0,"timeout must be non-zero","timeout",et),Wr(this,Bu,et)}get preflightFunc(){return _r(this,eu)||null}set preflightFunc(et){Wr(this,eu,et)}get processFunc(){return _r(this,tu)||null}set processFunc(et){Wr(this,tu,et)}get retryFunc(){return _r(this,ru)||null}set retryFunc(et){Wr(this,ru,et)}get getUrlFunc(){return _r(this,Pl)||defaultGetUrlFunc}set getUrlFunc(et){Wr(this,Pl,et)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${_r(this,rs)?hexlify$1(_r(this,rs)):"null"}>`}setThrottleParams(et){et.slotInterval!=null&&(_r(this,fl).slotInterval=et.slotInterval),et.maxAttempts!=null&&(_r(this,fl).maxAttempts=et.maxAttempts)}send(){return assert$y(_r(this,zs)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),Wr(this,zs,new FetchCancelSignal(this)),va(this,nu,Sp).call(this,0,getTime$3()+this.timeout,0,this,new FetchResponse(0,"",{},null,this))}cancel(){assert$y(_r(this,zs)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const et=fetchSignals.get(this);if(!et)throw new Error("missing signal; should not happen");et()}redirect(et){const tt=this.url.split(":")[0].toLowerCase(),nt=et.split(":")[0].toLowerCase();assert$y(this.method==="GET"&&(tt!=="https"||nt!=="http")&&et.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(et)})`});const at=new Pm(et);return at.method="GET",at.allowGzip=this.allowGzip,at.timeout=this.timeout,Wr(at,Us,Object.assign({},_r(this,Us))),_r(this,rs)&&Wr(at,rs,new Uint8Array(_r(this,rs))),Wr(at,Ps,_r(this,Ps)),at}clone(){const et=new Pm(this.url);return Wr(et,ul,_r(this,ul)),_r(this,rs)&&Wr(et,rs,_r(this,rs)),Wr(et,Ps,_r(this,Ps)),Wr(et,Us,Object.assign({},_r(this,Us))),Wr(et,cl,_r(this,cl)),this.allowGzip&&(et.allowGzip=!0),et.timeout=this.timeout,this.allowInsecureAuthentication&&(et.allowInsecureAuthentication=!0),Wr(et,eu,_r(this,eu)),Wr(et,tu,_r(this,tu)),Wr(et,ru,_r(this,ru)),Wr(et,Pl,_r(this,Pl)),et}static lockConfig(){locked$5=!0}static getGateway(et){return Gateways[et.toLowerCase()]||null}static registerGateway(et,tt){if(et=et.toLowerCase(),et==="http"||et==="https")throw new Error(`cannot intercept ${et}; use registerGetUrl`);if(locked$5)throw new Error("gateways locked");Gateways[et]=tt}static registerGetUrl(et){if(locked$5)throw new Error("gateways locked");defaultGetUrlFunc=et}static createGetUrlFunc(et){return createGetUrl()}static createDataGateway(){return dataGatewayFunc}static createIpfsGatewayFunc(et){return getIpfsGatewayFunc(et)}};Lu=new WeakMap,ku=new WeakMap,Us=new WeakMap,ul=new WeakMap,Bu=new WeakMap,ju=new WeakMap,rs=new WeakMap,Ps=new WeakMap,cl=new WeakMap,eu=new WeakMap,tu=new WeakMap,ru=new WeakMap,zs=new WeakMap,fl=new WeakMap,Pl=new WeakMap,nu=new WeakSet,Sp=async function(et,tt,nt,at,it){var ht,pt,mt;if(et>=_r(this,fl).maxAttempts)return it.makeServerError("exceeded maximum retry limit");assert$y(getTime$3()<=tt,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:at}),nt>0&&await wait$1(nt);let ot=this.clone();const st=(ot.url.split(":")[0]||"").toLowerCase();if(st in Gateways){const vt=await Gateways[st](ot.url,checkSignal(_r(at,zs)));if(vt instanceof FetchResponse){let bt=vt;if(this.processFunc){checkSignal(_r(at,zs));try{bt=await this.processFunc(ot,bt)}catch(_t){(_t.throttle==null||typeof _t.stall!="number")&&bt.makeServerError("error in post-processing function",_t).assertOk()}}return bt}ot=vt}this.preflightFunc&&(ot=await this.preflightFunc(ot));const ct=await this.getUrlFunc(ot,checkSignal(_r(at,zs)));let dt=new FetchResponse(ct.statusCode,ct.statusMessage,ct.headers,ct.body,at);if(dt.statusCode===301||dt.statusCode===302){try{const vt=dt.headers.location||"";return va(ht=ot.redirect(vt),nu,Sp).call(ht,et+1,tt,0,at,dt)}catch{}return dt}else if(dt.statusCode===429&&(this.retryFunc==null||await this.retryFunc(ot,dt,et))){const vt=dt.headers["retry-after"];let bt=_r(this,fl).slotInterval*Math.trunc(Math.random()*Math.pow(2,et));return typeof vt=="string"&&vt.match(/^[1-9][0-9]*$/)&&(bt=parseInt(vt)),va(pt=ot.clone(),nu,Sp).call(pt,et+1,tt,bt,at,dt)}if(this.processFunc){checkSignal(_r(at,zs));try{dt=await this.processFunc(ot,dt)}catch(vt){(vt.throttle==null||typeof vt.stall!="number")&&dt.makeServerError("error in post-processing function",vt).assertOk();let bt=_r(this,fl).slotInterval*Math.trunc(Math.random()*Math.pow(2,et));return vt.stall>=0&&(bt=vt.stall),va(mt=ot.clone(),nu,Sp).call(mt,et+1,tt,bt,at,dt)}}return dt};let FetchRequest=Pm;var Rp,Ip,Np,Ms,Fu,au;const Ym=class Ym{constructor(et,tt,nt,at,it){Rn(this,Rp,void 0);Rn(this,Ip,void 0);Rn(this,Np,void 0);Rn(this,Ms,void 0);Rn(this,Fu,void 0);Rn(this,au,void 0);Wr(this,Rp,et),Wr(this,Ip,tt),Wr(this,Np,Object.keys(nt).reduce((ot,st)=>(ot[st.toLowerCase()]=String(nt[st]),ot),{})),Wr(this,Ms,at==null?null:new Uint8Array(at)),Wr(this,Fu,it||null),Wr(this,au,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${_r(this,Ms)?hexlify$1(_r(this,Ms)):"null"}>`}get statusCode(){return _r(this,Rp)}get statusMessage(){return _r(this,Ip)}get headers(){return Object.assign({},_r(this,Np))}get body(){return _r(this,Ms)==null?null:new Uint8Array(_r(this,Ms))}get bodyText(){try{return _r(this,Ms)==null?"":toUtf8String$1(_r(this,Ms))}catch{assert$y(!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{assert$y(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const et=this.headers,tt=Object.keys(et);let nt=0;return{next:()=>{if(nt<tt.length){const at=tt[nt++];return{value:[at,et[at]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(et,tt){let nt;et?nt=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${et})`:(et=`${this.statusCode} ${this.statusMessage}`,nt=`CLIENT ESCALATED SERVER ERROR (${et})`);const at=new Ym(599,nt,this.headers,this.body,_r(this,Fu)||void 0);return Wr(at,au,{message:et,error:tt}),at}throwThrottleError(et,tt){tt==null?tt=-1:assertArgument(Number.isInteger(tt)&&tt>=0,"invalid stall timeout","stall",tt);const nt=new Error(et||"throttling requests");throw defineProperties$2(nt,{stall:tt,throttle:!0}),nt}getHeader(et){return this.headers[et.toLowerCase()]}hasBody(){return _r(this,Ms)!=null}get request(){return _r(this,Fu)}ok(){return _r(this,au).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:et,error:tt}=_r(this,au);et===""&&(et=`server response ${this.statusCode} ${this.statusMessage}`);let nt=null;this.request&&(nt=this.request.url);let at=null;try{_r(this,Ms)&&(at=toUtf8String$1(_r(this,Ms)))}catch{}assert$y(!1,et,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:tt,info:{requestUrl:nt,responseBody:at,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};Rp=new WeakMap,Ip=new WeakMap,Np=new WeakMap,Ms=new WeakMap,Fu=new WeakMap,au=new WeakMap;let FetchResponse=Ym;function getTime$3(){return new Date().getTime()}function unpercent$1(_e){return toUtf8Bytes$1(_e.replace(/%([0-9a-f][0-9a-f])/gi,(et,tt)=>String.fromCharCode(parseInt(tt,16))))}function wait$1(_e){return new Promise(et=>setTimeout(et,_e))}function hexlifyByte(_e){let et=_e.toString(16);for(;et.length<2;)et="0"+et;return"0x"+et}function unarrayifyInteger$1(_e,et,tt){let nt=0;for(let at=0;at<tt;at++)nt=nt*256+_e[et+at];return nt}function _decodeChildren$1(_e,et,tt,nt){const at=[];for(;tt<et+1+nt;){const it=_decode$1(_e,tt);at.push(it.result),tt+=it.consumed,assert$y(tt<=et+1+nt,"child data too short","BUFFER_OVERRUN",{buffer:_e,length:nt,offset:et})}return{consumed:1+nt,result:at}}function _decode$1(_e,et){assert$y(_e.length!==0,"data too short","BUFFER_OVERRUN",{buffer:_e,length:0,offset:1});const tt=nt=>{assert$y(nt<=_e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:_e,length:_e.length,offset:nt})};if(_e[et]>=248){const nt=_e[et]-247;tt(et+1+nt);const at=unarrayifyInteger$1(_e,et+1,nt);return tt(et+1+nt+at),_decodeChildren$1(_e,et,et+1+nt,nt+at)}else if(_e[et]>=192){const nt=_e[et]-192;return tt(et+1+nt),_decodeChildren$1(_e,et,et+1,nt)}else if(_e[et]>=184){const nt=_e[et]-183;tt(et+1+nt);const at=unarrayifyInteger$1(_e,et+1,nt);tt(et+1+nt+at);const it=hexlify$1(_e.slice(et+1+nt,et+1+nt+at));return{consumed:1+nt+at,result:it}}else if(_e[et]>=128){const nt=_e[et]-128;tt(et+1+nt);const at=hexlify$1(_e.slice(et+1,et+1+nt));return{consumed:1+nt,result:at}}return{consumed:1,result:hexlifyByte(_e[et])}}function decodeRlp(_e){const et=getBytes(_e,"data"),tt=_decode$1(et,0);return assertArgument(tt.consumed===et.length,"unexpected junk after rlp payload","data",_e),tt.result}function arrayifyInteger$1(_e){const et=[];for(;_e;)et.unshift(_e&255),_e>>=8;return et}function _encode$1(_e){if(Array.isArray(_e)){let nt=[];if(_e.forEach(function(it){nt=nt.concat(_encode$1(it))}),nt.length<=55)return nt.unshift(192+nt.length),nt;const at=arrayifyInteger$1(nt.length);return at.unshift(247+at.length),at.concat(nt)}const et=Array.prototype.slice.call(getBytes(_e,"object"));if(et.length===1&&et[0]<=127)return et;if(et.length<=55)return et.unshift(128+et.length),et;const tt=arrayifyInteger$1(et.length);return tt.unshift(183+tt.length),tt.concat(et)}const nibbles="0123456789abcdef";function encodeRlp(_e){let et="0x";for(const tt of _encode$1(_e))et+=nibbles[tt>>4],et+=nibbles[tt&15];return et}function uuidV4(_e){const et=getBytes(_e,"randomBytes");et[6]=et[6]&15|64,et[8]=et[8]&63|128;const tt=hexlify$1(et);return[tt.substring(2,10),tt.substring(10,14),tt.substring(14,18),tt.substring(18,22),tt.substring(22,34)].join("-")}const WordSize=32,Padding=new Uint8Array(WordSize),passProperties$1=["then"],_guard$4={};function throwError$1(_e,et){const tt=new Error(`deferred error during ABI decoding triggered accessing ${_e}`);throw tt.error=et,tt}var Ml;const Op=class Op extends Array{constructor(...tt){const nt=tt[0];let at=tt[1],it=(tt[2]||[]).slice(),ot=!0;nt!==_guard$4&&(at=tt,it=[],ot=!1);super(at.length);Rn(this,Ml,void 0);at.forEach((ct,dt)=>{this[dt]=ct});const st=it.reduce((ct,dt)=>(typeof dt=="string"&&ct.set(dt,(ct.get(dt)||0)+1),ct),new Map);if(Wr(this,Ml,Object.freeze(at.map((ct,dt)=>{const ht=it[dt];return ht!=null&&st.get(ht)===1?ht:null}))),!!ot)return Object.freeze(this),new Proxy(this,{get:(ct,dt,ht)=>{if(typeof dt=="string"){if(dt.match(/^[0-9]+$/)){const mt=getNumber(dt,"%index");if(mt<0||mt>=this.length)throw new RangeError("out of result range");const vt=ct[mt];return vt instanceof Error&&throwError$1(`index ${mt}`,vt),vt}if(passProperties$1.indexOf(dt)>=0)return Reflect.get(ct,dt,ht);const pt=ct[dt];if(pt instanceof Function)return function(...mt){return pt.apply(this===ht?ct:this,mt)};if(!(dt in ct))return ct.getValue.apply(this===ht?ct:this,[dt])}return Reflect.get(ct,dt,ht)}})}toArray(){const tt=[];return this.forEach((nt,at)=>{nt instanceof Error&&throwError$1(`index ${at}`,nt),tt.push(nt)}),tt}toObject(){return _r(this,Ml).reduce((tt,nt,at)=>(assert$y(nt!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),nt in tt||(tt[nt]=this.getValue(nt)),tt),{})}slice(tt,nt){tt==null&&(tt=0),tt<0&&(tt+=this.length,tt<0&&(tt=0)),nt==null&&(nt=this.length),nt<0&&(nt+=this.length,nt<0&&(nt=0)),nt>this.length&&(nt=this.length);const at=[],it=[];for(let ot=tt;ot<nt;ot++)at.push(this[ot]),it.push(_r(this,Ml)[ot]);return new Op(_guard$4,at,it)}filter(tt,nt){const at=[],it=[];for(let ot=0;ot<this.length;ot++){const st=this[ot];st instanceof Error&&throwError$1(`index ${ot}`,st),tt.call(nt,st,ot,this)&&(at.push(st),it.push(_r(this,Ml)[ot]))}return new Op(_guard$4,at,it)}map(tt,nt){const at=[];for(let it=0;it<this.length;it++){const ot=this[it];ot instanceof Error&&throwError$1(`index ${it}`,ot),at.push(tt.call(nt,ot,it,this))}return at}getValue(tt){const nt=_r(this,Ml).indexOf(tt);if(nt===-1)return;const at=this[nt];return at instanceof Error&&throwError$1(`property ${JSON.stringify(tt)}`,at.error),at}static fromItems(tt,nt){return new Op(_guard$4,tt,nt)}};Ml=new WeakMap;let Result=Op;function getValue$7(_e){let et=toBeArray(_e);return assert$y(et.length<=WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:et,length:WordSize,offset:et.length}),et.length!==WordSize&&(et=getBytesCopy(concat$2([Padding.slice(et.length%WordSize),et]))),et}let Coder$1=class{constructor(et,tt,nt,at){Zr(this,"name");Zr(this,"type");Zr(this,"localName");Zr(this,"dynamic");defineProperties$2(this,{name:et,type:tt,localName:nt,dynamic:at},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(et,tt){assertArgument(!1,et,this.localName,tt)}};var dl,iu,Uu,_m,Qm;let Writer$1=(Qm=class{constructor(){Rn(this,Uu);Rn(this,dl,void 0);Rn(this,iu,void 0);Wr(this,dl,[]),Wr(this,iu,0)}get data(){return concat$2(_r(this,dl))}get length(){return _r(this,iu)}appendWriter(et){return va(this,Uu,_m).call(this,getBytesCopy(et.data))}writeBytes(et){let tt=getBytesCopy(et);const nt=tt.length%WordSize;return nt&&(tt=getBytesCopy(concat$2([tt,Padding.slice(nt)]))),va(this,Uu,_m).call(this,tt)}writeValue(et){return va(this,Uu,_m).call(this,getValue$7(et))}writeUpdatableValue(){const et=_r(this,dl).length;return _r(this,dl).push(Padding),Wr(this,iu,_r(this,iu)+WordSize),tt=>{_r(this,dl)[et]=getValue$7(tt)}}},dl=new WeakMap,iu=new WeakMap,Uu=new WeakSet,_m=function(et){return _r(this,dl).push(et),Wr(this,iu,_r(this,iu)+et.length),et.length},Qm);var _s,Cs,ou,su,Cl,Dp,km,Mm,ey,Lp;let Reader$1=(Lp=class{constructor(et,tt,nt){Rn(this,Dp);Rn(this,Mm);Zr(this,"allowLoose");Rn(this,_s,void 0);Rn(this,Cs,void 0);Rn(this,ou,void 0);Rn(this,su,void 0);Rn(this,Cl,void 0);defineProperties$2(this,{allowLoose:!!tt}),Wr(this,_s,getBytesCopy(et)),Wr(this,ou,0),Wr(this,su,null),Wr(this,Cl,nt??1024),Wr(this,Cs,0)}get data(){return hexlify$1(_r(this,_s))}get dataLength(){return _r(this,_s).length}get consumed(){return _r(this,Cs)}get bytes(){return new Uint8Array(_r(this,_s))}subReader(et){const tt=new Lp(_r(this,_s).slice(_r(this,Cs)+et),this.allowLoose,_r(this,Cl));return Wr(tt,su,this),tt}readBytes(et,tt){let nt=va(this,Mm,ey).call(this,0,et,!!tt);return va(this,Dp,km).call(this,et),Wr(this,Cs,_r(this,Cs)+nt.length),nt.slice(0,et)}readValue(){return toBigInt(this.readBytes(WordSize))}readIndex(){return toNumber$2(this.readBytes(WordSize))}},_s=new WeakMap,Cs=new WeakMap,ou=new WeakMap,su=new WeakMap,Cl=new WeakMap,Dp=new WeakSet,km=function(et){var tt;if(_r(this,su))return va(tt=_r(this,su),Dp,km).call(tt,et);Wr(this,ou,_r(this,ou)+et),assert$y(_r(this,Cl)<1||_r(this,ou)<=_r(this,Cl)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${_r(this,Cl)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:getBytesCopy(_r(this,_s)),offset:_r(this,Cs),length:et,info:{bytesRead:_r(this,ou),dataLength:this.dataLength}})},Mm=new WeakSet,ey=function(et,tt,nt){let at=Math.ceil(tt/WordSize)*WordSize;return _r(this,Cs)+at>_r(this,_s).length&&(this.allowLoose&&nt&&_r(this,Cs)+tt<=_r(this,_s).length?at=tt:assert$y(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:getBytesCopy(_r(this,_s)),length:_r(this,_s).length,offset:_r(this,Cs)+at})),_r(this,_s).slice(_r(this,Cs),_r(this,Cs)+at)},Lp);const global$a=globalThis||void 0||self;function number$4(_e){if(!Number.isSafeInteger(_e)||_e<0)throw new Error(`Wrong positive integer: ${_e}`)}function bytes$1(_e,...et){if(!(_e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(et.length>0&&!et.includes(_e.length))throw new Error(`Expected Uint8Array of length ${et}, not of length=${_e.length}`)}function hash$9(_e){if(typeof _e!="function"||typeof _e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$4(_e.outputLen),number$4(_e.blockLen)}function exists$1(_e,et=!0){if(_e.destroyed)throw new Error("Hash instance has been destroyed");if(et&&_e.finished)throw new Error("Hash#digest() has already been called")}function output$2(_e,et){bytes$1(_e);const tt=et.outputLen;if(_e.length<tt)throw new Error(`digestInto() expects output buffer of length at least ${tt}`)}const crypto$5=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u8a$1=_e=>_e instanceof Uint8Array,u32=_e=>new Uint32Array(_e.buffer,_e.byteOffset,Math.floor(_e.byteLength/4)),createView=_e=>new DataView(_e.buffer,_e.byteOffset,_e.byteLength),rotr=(_e,et)=>_e<<32-et|_e>>>et,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE)throw new Error("Non little-endian hardware is not supported");const nextTick$3=async()=>{};async function asyncLoop(_e,et,tt){let nt=Date.now();for(let at=0;at<_e;at++){tt(at);const it=Date.now()-nt;it>=0&&it<et||(await nextTick$3(),nt+=it)}}function utf8ToBytes$1(_e){if(typeof _e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof _e}`);return new Uint8Array(new TextEncoder().encode(_e))}function toBytes(_e){if(typeof _e=="string"&&(_e=utf8ToBytes$1(_e)),!u8a$1(_e))throw new Error(`expected Uint8Array, got ${typeof _e}`);return _e}function concatBytes$1(..._e){const et=new Uint8Array(_e.reduce((nt,at)=>nt+at.length,0));let tt=0;return _e.forEach(nt=>{if(!u8a$1(nt))throw new Error("Uint8Array expected");et.set(nt,tt),tt+=nt.length}),et}let Hash$c=class{clone(){return this._cloneInto()}};const toStr$b={}.toString;function checkOpts(_e,et){if(et!==void 0&&toStr$b.call(et)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(_e,et)}function wrapConstructor$1(_e){const et=nt=>_e().update(toBytes(nt)).digest(),tt=_e();return et.outputLen=tt.outputLen,et.blockLen=tt.blockLen,et.create=()=>_e(),et}function randomBytes$5(_e=32){if(crypto$5&&typeof crypto$5.getRandomValues=="function")return crypto$5.getRandomValues(new Uint8Array(_e));throw new Error("crypto.getRandomValues must be defined")}class HMAC extends Hash$c{constructor(et,tt){super(),this.finished=!1,this.destroyed=!1,hash$9(et);const nt=toBytes(tt);if(this.iHash=et.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const at=this.blockLen,it=new Uint8Array(at);it.set(nt.length>at?et.create().update(nt).digest():nt);for(let ot=0;ot<it.length;ot++)it[ot]^=54;this.iHash.update(it),this.oHash=et.create();for(let ot=0;ot<it.length;ot++)it[ot]^=106;this.oHash.update(it),it.fill(0)}update(et){return exists$1(this),this.iHash.update(et),this}digestInto(et){exists$1(this),bytes$1(et,this.outputLen),this.finished=!0,this.iHash.digestInto(et),this.oHash.update(et),this.oHash.digestInto(et),this.destroy()}digest(){const et=new Uint8Array(this.oHash.outputLen);return this.digestInto(et),et}_cloneInto(et){et||(et=Object.create(Object.getPrototypeOf(this),{}));const{oHash:tt,iHash:nt,finished:at,destroyed:it,blockLen:ot,outputLen:st}=this;return et=et,et.finished=at,et.destroyed=it,et.blockLen=ot,et.outputLen=st,et.oHash=tt._cloneInto(et.oHash),et.iHash=nt._cloneInto(et.iHash),et}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const hmac$2=(_e,et,tt)=>new HMAC(_e,et).update(tt).digest();hmac$2.create=(_e,et)=>new HMAC(_e,et);function pbkdf2Init(_e,et,tt,nt){hash$9(_e);const at=checkOpts({dkLen:32,asyncTick:10},nt),{c:it,dkLen:ot,asyncTick:st}=at;if(number$4(it),number$4(ot),number$4(st),it<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const ct=toBytes(et),dt=toBytes(tt),ht=new Uint8Array(ot),pt=hmac$2.create(_e,ct),mt=pt._cloneInto().update(dt);return{c:it,dkLen:ot,asyncTick:st,DK:ht,PRF:pt,PRFSalt:mt}}function pbkdf2Output(_e,et,tt,nt,at){return _e.destroy(),et.destroy(),nt&&nt.destroy(),at.fill(0),tt}function pbkdf2$2(_e,et,tt,nt){const{c:at,dkLen:it,DK:ot,PRF:st,PRFSalt:ct}=pbkdf2Init(_e,et,tt,nt);let dt;const ht=new Uint8Array(4),pt=createView(ht),mt=new Uint8Array(st.outputLen);for(let vt=1,bt=0;bt<it;vt++,bt+=st.outputLen){const _t=ot.subarray(bt,bt+st.outputLen);pt.setInt32(0,vt,!1),(dt=ct._cloneInto(dt)).update(ht).digestInto(mt),_t.set(mt.subarray(0,_t.length));for(let wt=1;wt<at;wt++){st._cloneInto(dt).update(mt).digestInto(mt);for(let Et=0;Et<_t.length;Et++)_t[Et]^=mt[Et]}}return pbkdf2Output(st,ct,ot,dt,mt)}function setBigUint64$1(_e,et,tt,nt){if(typeof _e.setBigUint64=="function")return _e.setBigUint64(et,tt,nt);const at=BigInt(32),it=BigInt(4294967295),ot=Number(tt>>at&it),st=Number(tt&it),ct=nt?4:0,dt=nt?0:4;_e.setUint32(et+ct,ot,nt),_e.setUint32(et+dt,st,nt)}let SHA2$1=class extends Hash$c{constructor(et,tt,nt,at){super(),this.blockLen=et,this.outputLen=tt,this.padOffset=nt,this.isLE=at,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(et),this.view=createView(this.buffer)}update(et){exists$1(this);const{view:tt,buffer:nt,blockLen:at}=this;et=toBytes(et);const it=et.length;for(let ot=0;ot<it;){const st=Math.min(at-this.pos,it-ot);if(st===at){const ct=createView(et);for(;at<=it-ot;ot+=at)this.process(ct,ot);continue}nt.set(et.subarray(ot,ot+st),this.pos),this.pos+=st,ot+=st,this.pos===at&&(this.process(tt,0),this.pos=0)}return this.length+=et.length,this.roundClean(),this}digestInto(et){exists$1(this),output$2(et,this),this.finished=!0;const{buffer:tt,view:nt,blockLen:at,isLE:it}=this;let{pos:ot}=this;tt[ot++]=128,this.buffer.subarray(ot).fill(0),this.padOffset>at-ot&&(this.process(nt,0),ot=0);for(let pt=ot;pt<at;pt++)tt[pt]=0;setBigUint64$1(nt,at-8,BigInt(this.length*8),it),this.process(nt,0);const st=createView(et),ct=this.outputLen;if(ct%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const dt=ct/4,ht=this.get();if(dt>ht.length)throw new Error("_sha2: outputLen bigger than state");for(let pt=0;pt<dt;pt++)st.setUint32(4*pt,ht[pt],it)}digest(){const{buffer:et,outputLen:tt}=this;this.digestInto(et);const nt=et.slice(0,tt);return this.destroy(),nt}_cloneInto(et){et||(et=new this.constructor),et.set(...this.get());const{blockLen:tt,buffer:nt,length:at,finished:it,destroyed:ot,pos:st}=this;return et.length=at,et.pos=st,et.finished=it,et.destroyed=ot,at%tt&&et.buffer.set(nt),et}};const Chi$1=(_e,et,tt)=>_e&et^~_e&tt,Maj$1=(_e,et,tt)=>_e&et^_e&tt^et&tt,SHA256_K$1=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]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$3=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0,this.F=IV$1[5]|0,this.G=IV$1[6]|0,this.H=IV$1[7]|0}get(){const{A:et,B:tt,C:nt,D:at,E:it,F:ot,G:st,H:ct}=this;return[et,tt,nt,at,it,ot,st,ct]}set(et,tt,nt,at,it,ot,st,ct){this.A=et|0,this.B=tt|0,this.C=nt|0,this.D=at|0,this.E=it|0,this.F=ot|0,this.G=st|0,this.H=ct|0}process(et,tt){for(let pt=0;pt<16;pt++,tt+=4)SHA256_W$1[pt]=et.getUint32(tt,!1);for(let pt=16;pt<64;pt++){const mt=SHA256_W$1[pt-15],vt=SHA256_W$1[pt-2],bt=rotr(mt,7)^rotr(mt,18)^mt>>>3,_t=rotr(vt,17)^rotr(vt,19)^vt>>>10;SHA256_W$1[pt]=_t+SHA256_W$1[pt-7]+bt+SHA256_W$1[pt-16]|0}let{A:nt,B:at,C:it,D:ot,E:st,F:ct,G:dt,H:ht}=this;for(let pt=0;pt<64;pt++){const mt=rotr(st,6)^rotr(st,11)^rotr(st,25),vt=ht+mt+Chi$1(st,ct,dt)+SHA256_K$1[pt]+SHA256_W$1[pt]|0,_t=(rotr(nt,2)^rotr(nt,13)^rotr(nt,22))+Maj$1(nt,at,it)|0;ht=dt,dt=ct,ct=st,st=ot+vt|0,ot=it,it=at,at=nt,nt=vt+_t|0}nt=nt+this.A|0,at=at+this.B|0,it=it+this.C|0,ot=ot+this.D|0,st=st+this.E|0,ct=ct+this.F|0,dt=dt+this.G|0,ht=ht+this.H|0,this.set(nt,at,it,ot,st,ct,dt,ht)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const sha256$5=wrapConstructor$1(()=>new SHA256$3),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(_e,et=!1){return et?{h:Number(_e&U32_MASK64),l:Number(_e>>_32n&U32_MASK64)}:{h:Number(_e>>_32n&U32_MASK64)|0,l:Number(_e&U32_MASK64)|0}}function split$3(_e,et=!1){let tt=new Uint32Array(_e.length),nt=new Uint32Array(_e.length);for(let at=0;at<_e.length;at++){const{h:it,l:ot}=fromBig(_e[at],et);[tt[at],nt[at]]=[it,ot]}return[tt,nt]}const toBig=(_e,et)=>BigInt(_e>>>0)<<_32n|BigInt(et>>>0),shrSH=(_e,et,tt)=>_e>>>tt,shrSL=(_e,et,tt)=>_e<<32-tt|et>>>tt,rotrSH=(_e,et,tt)=>_e>>>tt|et<<32-tt,rotrSL=(_e,et,tt)=>_e<<32-tt|et>>>tt,rotrBH=(_e,et,tt)=>_e<<64-tt|et>>>tt-32,rotrBL=(_e,et,tt)=>_e>>>tt-32|et<<64-tt,rotr32H=(_e,et)=>et,rotr32L=(_e,et)=>_e,rotlSH=(_e,et,tt)=>_e<<tt|et>>>32-tt,rotlSL=(_e,et,tt)=>et<<tt|_e>>>32-tt,rotlBH=(_e,et,tt)=>et<<tt-32|_e>>>64-tt,rotlBL=(_e,et,tt)=>_e<<tt-32|et>>>64-tt;function add$3(_e,et,tt,nt){const at=(et>>>0)+(nt>>>0);return{h:_e+tt+(at/2**32|0)|0,l:at|0}}const add3L=(_e,et,tt)=>(_e>>>0)+(et>>>0)+(tt>>>0),add3H=(_e,et,tt,nt)=>et+tt+nt+(_e/2**32|0)|0,add4L=(_e,et,tt,nt)=>(_e>>>0)+(et>>>0)+(tt>>>0)+(nt>>>0),add4H=(_e,et,tt,nt,at)=>et+tt+nt+at+(_e/2**32|0)|0,add5L=(_e,et,tt,nt,at)=>(_e>>>0)+(et>>>0)+(tt>>>0)+(nt>>>0)+(at>>>0),add5H=(_e,et,tt,nt,at,it)=>et+tt+nt+at+it+(_e/2**32|0)|0,u64={fromBig,split:split$3,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add:add$3,add3L,add3H,add4L,add4H,add5H,add5L},u64$1=u64,[SHA512_Kh,SHA512_Kl]=(()=>u64$1.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","0xf40e35855771202a","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))))(),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);let SHA512$3=class extends SHA2$1{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:et,Al:tt,Bh:nt,Bl:at,Ch:it,Cl:ot,Dh:st,Dl:ct,Eh:dt,El:ht,Fh:pt,Fl:mt,Gh:vt,Gl:bt,Hh:_t,Hl:wt}=this;return[et,tt,nt,at,it,ot,st,ct,dt,ht,pt,mt,vt,bt,_t,wt]}set(et,tt,nt,at,it,ot,st,ct,dt,ht,pt,mt,vt,bt,_t,wt){this.Ah=et|0,this.Al=tt|0,this.Bh=nt|0,this.Bl=at|0,this.Ch=it|0,this.Cl=ot|0,this.Dh=st|0,this.Dl=ct|0,this.Eh=dt|0,this.El=ht|0,this.Fh=pt|0,this.Fl=mt|0,this.Gh=vt|0,this.Gl=bt|0,this.Hh=_t|0,this.Hl=wt|0}process(et,tt){for(let Tt=0;Tt<16;Tt++,tt+=4)SHA512_W_H[Tt]=et.getUint32(tt),SHA512_W_L[Tt]=et.getUint32(tt+=4);for(let Tt=16;Tt<80;Tt++){const Ct=SHA512_W_H[Tt-15]|0,Nt=SHA512_W_L[Tt-15]|0,Dt=u64$1.rotrSH(Ct,Nt,1)^u64$1.rotrSH(Ct,Nt,8)^u64$1.shrSH(Ct,Nt,7),kt=u64$1.rotrSL(Ct,Nt,1)^u64$1.rotrSL(Ct,Nt,8)^u64$1.shrSL(Ct,Nt,7),Ft=SHA512_W_H[Tt-2]|0,jt=SHA512_W_L[Tt-2]|0,Gt=u64$1.rotrSH(Ft,jt,19)^u64$1.rotrBH(Ft,jt,61)^u64$1.shrSH(Ft,jt,6),Rt=u64$1.rotrSL(Ft,jt,19)^u64$1.rotrBL(Ft,jt,61)^u64$1.shrSL(Ft,jt,6),yt=u64$1.add4L(kt,Rt,SHA512_W_L[Tt-7],SHA512_W_L[Tt-16]),$t=u64$1.add4H(yt,Dt,Gt,SHA512_W_H[Tt-7],SHA512_W_H[Tt-16]);SHA512_W_H[Tt]=$t|0,SHA512_W_L[Tt]=yt|0}let{Ah:nt,Al:at,Bh:it,Bl:ot,Ch:st,Cl:ct,Dh:dt,Dl:ht,Eh:pt,El:mt,Fh:vt,Fl:bt,Gh:_t,Gl:wt,Hh:Et,Hl:St}=this;for(let Tt=0;Tt<80;Tt++){const Ct=u64$1.rotrSH(pt,mt,14)^u64$1.rotrSH(pt,mt,18)^u64$1.rotrBH(pt,mt,41),Nt=u64$1.rotrSL(pt,mt,14)^u64$1.rotrSL(pt,mt,18)^u64$1.rotrBL(pt,mt,41),Dt=pt&vt^~pt&_t,kt=mt&bt^~mt&wt,Ft=u64$1.add5L(St,Nt,kt,SHA512_Kl[Tt],SHA512_W_L[Tt]),jt=u64$1.add5H(Ft,Et,Ct,Dt,SHA512_Kh[Tt],SHA512_W_H[Tt]),Gt=Ft|0,Rt=u64$1.rotrSH(nt,at,28)^u64$1.rotrBH(nt,at,34)^u64$1.rotrBH(nt,at,39),yt=u64$1.rotrSL(nt,at,28)^u64$1.rotrBL(nt,at,34)^u64$1.rotrBL(nt,at,39),$t=nt&it^nt&st^it&st,xt=at&ot^at&ct^ot&ct;Et=_t|0,St=wt|0,_t=vt|0,wt=bt|0,vt=pt|0,bt=mt|0,{h:pt,l:mt}=u64$1.add(dt|0,ht|0,jt|0,Gt|0),dt=st|0,ht=ct|0,st=it|0,ct=ot|0,it=nt|0,ot=at|0;const At=u64$1.add3L(Gt,yt,xt);nt=u64$1.add3H(At,jt,Rt,$t),at=At|0}({h:nt,l:at}=u64$1.add(this.Ah|0,this.Al|0,nt|0,at|0)),{h:it,l:ot}=u64$1.add(this.Bh|0,this.Bl|0,it|0,ot|0),{h:st,l:ct}=u64$1.add(this.Ch|0,this.Cl|0,st|0,ct|0),{h:dt,l:ht}=u64$1.add(this.Dh|0,this.Dl|0,dt|0,ht|0),{h:pt,l:mt}=u64$1.add(this.Eh|0,this.El|0,pt|0,mt|0),{h:vt,l:bt}=u64$1.add(this.Fh|0,this.Fl|0,vt|0,bt|0),{h:_t,l:wt}=u64$1.add(this.Gh|0,this.Gl|0,_t|0,wt|0),{h:Et,l:St}=u64$1.add(this.Hh|0,this.Hl|0,Et|0,St|0),this.set(nt,at,it,ot,st,ct,dt,ht,pt,mt,vt,bt,_t,wt,Et,St)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.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 sha512$2=wrapConstructor$1(()=>new SHA512$3);function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global$a<"u")return global$a;throw new Error("unable to locate global object")}const anyGlobal=getGlobal(),crypto$4=anyGlobal.crypto||anyGlobal.msCrypto;function createHash$3(_e){switch(_e){case"sha256":return sha256$5.create();case"sha512":return sha512$2.create()}assertArgument(!1,"invalid hashing algorithm name","algorithm",_e)}function createHmac(_e,et){const tt={sha256:sha256$5,sha512:sha512$2}[_e];return assertArgument(tt!=null,"invalid hmac algorithm","algorithm",_e),hmac$2.create(tt,et)}function pbkdf2Sync(_e,et,tt,nt,at){const it={sha256:sha256$5,sha512:sha512$2}[at];return assertArgument(it!=null,"invalid pbkdf2 algorithm","algorithm",at),pbkdf2$2(it,_e,et,{c:tt,dkLen:nt})}function randomBytes$4(_e){assert$y(crypto$4!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),assertArgument(Number.isInteger(_e)&&_e>0&&_e<=1024,"invalid length","length",_e);const et=new Uint8Array(_e);return crypto$4.getRandomValues(et),et}let locked$4=!1;const _computeHmac=function(_e,et,tt){return createHmac(_e,et).update(tt).digest()};let __computeHmac=_computeHmac;function computeHmac(_e,et,tt){const nt=getBytes(et,"key"),at=getBytes(tt,"data");return hexlify$1(__computeHmac(_e,nt,at))}computeHmac._=_computeHmac;computeHmac.lock=function(){locked$4=!0};computeHmac.register=function(_e){if(locked$4)throw new Error("computeHmac is locked");__computeHmac=_e};Object.freeze(computeHmac);const[SHA3_PI,SHA3_ROTL,_SHA3_IOTA]=[[],[],[]],_0n$4=BigInt(0),_1n$5=BigInt(1),_2n$3=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let _e=0,et=_1n$5,tt=1,nt=0;_e<24;_e++){[tt,nt]=[nt,(2*tt+3*nt)%5],SHA3_PI.push(2*(5*nt+tt)),SHA3_ROTL.push((_e+1)*(_e+2)/2%64);let at=_0n$4;for(let it=0;it<7;it++)et=(et<<_1n$5^(et>>_7n)*_0x71n)%_256n,et&_2n$3&&(at^=_1n$5<<(_1n$5<<BigInt(it))-_1n$5);_SHA3_IOTA.push(at)}const[SHA3_IOTA_H,SHA3_IOTA_L]=split$3(_SHA3_IOTA,!0),rotlH=(_e,et,tt)=>tt>32?rotlBH(_e,et,tt):rotlSH(_e,et,tt),rotlL=(_e,et,tt)=>tt>32?rotlBL(_e,et,tt):rotlSL(_e,et,tt);function keccakP(_e,et=24){const tt=new Uint32Array(10);for(let nt=24-et;nt<24;nt++){for(let ot=0;ot<10;ot++)tt[ot]=_e[ot]^_e[ot+10]^_e[ot+20]^_e[ot+30]^_e[ot+40];for(let ot=0;ot<10;ot+=2){const st=(ot+8)%10,ct=(ot+2)%10,dt=tt[ct],ht=tt[ct+1],pt=rotlH(dt,ht,1)^tt[st],mt=rotlL(dt,ht,1)^tt[st+1];for(let vt=0;vt<50;vt+=10)_e[ot+vt]^=pt,_e[ot+vt+1]^=mt}let at=_e[2],it=_e[3];for(let ot=0;ot<24;ot++){const st=SHA3_ROTL[ot],ct=rotlH(at,it,st),dt=rotlL(at,it,st),ht=SHA3_PI[ot];at=_e[ht],it=_e[ht+1],_e[ht]=ct,_e[ht+1]=dt}for(let ot=0;ot<50;ot+=10){for(let st=0;st<10;st++)tt[st]=_e[ot+st];for(let st=0;st<10;st++)_e[ot+st]^=~tt[(st+2)%10]&tt[(st+4)%10]}_e[0]^=SHA3_IOTA_H[nt],_e[1]^=SHA3_IOTA_L[nt]}tt.fill(0)}class Keccak extends Hash$c{constructor(et,tt,nt,at=!1,it=24){if(super(),this.blockLen=et,this.suffix=tt,this.outputLen=nt,this.enableXOF=at,this.rounds=it,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number$4(nt),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(et){exists$1(this);const{blockLen:tt,state:nt}=this;et=toBytes(et);const at=et.length;for(let it=0;it<at;){const ot=Math.min(tt-this.pos,at-it);for(let st=0;st<ot;st++)nt[this.pos++]^=et[it++];this.pos===tt&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:et,suffix:tt,pos:nt,blockLen:at}=this;et[nt]^=tt,tt&128&&nt===at-1&&this.keccak(),et[at-1]^=128,this.keccak()}writeInto(et){exists$1(this,!1),bytes$1(et),this.finish();const tt=this.state,{blockLen:nt}=this;for(let at=0,it=et.length;at<it;){this.posOut>=nt&&this.keccak();const ot=Math.min(nt-this.posOut,it-at);et.set(tt.subarray(this.posOut,this.posOut+ot),at),this.posOut+=ot,at+=ot}return et}xofInto(et){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(et)}xof(et){return number$4(et),this.xofInto(new Uint8Array(et))}digestInto(et){if(output$2(et,this),this.finished)throw new Error("digest() was already called");return this.writeInto(et),this.destroy(),et}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(et){const{blockLen:tt,suffix:nt,outputLen:at,rounds:it,enableXOF:ot}=this;return et||(et=new Keccak(tt,nt,at,ot,it)),et.state32.set(this.state32),et.pos=this.pos,et.posOut=this.posOut,et.finished=this.finished,et.rounds=it,et.suffix=nt,et.outputLen=at,et.enableXOF=ot,et.destroyed=this.destroyed,et}}const gen=(_e,et,tt)=>wrapConstructor$1(()=>new Keccak(et,_e,tt)),keccak_256=gen(1,136,256/8);let locked$3=!1;const _keccak256=function(_e){return keccak_256(_e)};let __keccak256=_keccak256;function keccak256$1(_e){const et=getBytes(_e,"data");return hexlify$1(__keccak256(et))}keccak256$1._=_keccak256;keccak256$1.lock=function(){locked$3=!0};keccak256$1.register=function(_e){if(locked$3)throw new TypeError("keccak256 is locked");__keccak256=_e};Object.freeze(keccak256$1);const Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=Uint8Array.from({length:16},(_e,et)=>et),Pi=Id.map(_e=>(9*_e+5)%16);let idxL=[Id],idxR=[Pi];for(let _e=0;_e<4;_e++)for(let et of[idxL,idxR])et.push(et[_e].map(tt=>Rho[tt]));const shifts=[[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)),shiftsL=idxL.map((_e,et)=>_e.map(tt=>shifts[et][tt])),shiftsR=idxR.map((_e,et)=>_e.map(tt=>shifts[et][tt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$3=(_e,et)=>_e<<et|_e>>>32-et;function f$3(_e,et,tt,nt){return _e===0?et^tt^nt:_e===1?et&tt|~et&nt:_e===2?(et|~tt)^nt:_e===3?et&nt|tt&~nt:et^(tt|~nt)}const BUF=new Uint32Array(16);let RIPEMD160$5=class extends SHA2$1{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:et,h1:tt,h2:nt,h3:at,h4:it}=this;return[et,tt,nt,at,it]}set(et,tt,nt,at,it){this.h0=et|0,this.h1=tt|0,this.h2=nt|0,this.h3=at|0,this.h4=it|0}process(et,tt){for(let vt=0;vt<16;vt++,tt+=4)BUF[vt]=et.getUint32(tt,!0);let nt=this.h0|0,at=nt,it=this.h1|0,ot=it,st=this.h2|0,ct=st,dt=this.h3|0,ht=dt,pt=this.h4|0,mt=pt;for(let vt=0;vt<5;vt++){const bt=4-vt,_t=Kl[vt],wt=Kr[vt],Et=idxL[vt],St=idxR[vt],Tt=shiftsL[vt],Ct=shiftsR[vt];for(let Nt=0;Nt<16;Nt++){const Dt=rotl$3(nt+f$3(vt,it,st,dt)+BUF[Et[Nt]]+_t,Tt[Nt])+pt|0;nt=pt,pt=dt,dt=rotl$3(st,10)|0,st=it,it=Dt}for(let Nt=0;Nt<16;Nt++){const Dt=rotl$3(at+f$3(bt,ot,ct,ht)+BUF[St[Nt]]+wt,Ct[Nt])+mt|0;at=mt,mt=ht,ht=rotl$3(ct,10)|0,ct=ot,ot=Dt}}this.set(this.h1+st+ht|0,this.h2+dt+mt|0,this.h3+pt+at|0,this.h4+nt+ot|0,this.h0+it+ct|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};const ripemd160$2=wrapConstructor$1(()=>new RIPEMD160$5);let locked$2=!1;const _ripemd160=function(_e){return ripemd160$2(_e)};let __ripemd160=_ripemd160;function ripemd160$1(_e){const et=getBytes(_e,"data");return hexlify$1(__ripemd160(et))}ripemd160$1._=_ripemd160;ripemd160$1.lock=function(){locked$2=!0};ripemd160$1.register=function(_e){if(locked$2)throw new TypeError("ripemd160 is locked");__ripemd160=_e};Object.freeze(ripemd160$1);let locked$1=!1;const _pbkdf2=function(_e,et,tt,nt,at){return pbkdf2Sync(_e,et,tt,nt,at)};let __pbkdf2=_pbkdf2;function pbkdf2$1(_e,et,tt,nt,at){const it=getBytes(_e,"password"),ot=getBytes(et,"salt");return hexlify$1(__pbkdf2(it,ot,tt,nt,at))}pbkdf2$1._=_pbkdf2;pbkdf2$1.lock=function(){locked$1=!0};pbkdf2$1.register=function(_e){if(locked$1)throw new Error("pbkdf2 is locked");__pbkdf2=_e};Object.freeze(pbkdf2$1);let locked=!1;const _randomBytes=function(_e){return new Uint8Array(randomBytes$4(_e))};let __randomBytes=_randomBytes;function randomBytes$3(_e){return __randomBytes(_e)}randomBytes$3._=_randomBytes;randomBytes$3.lock=function(){locked=!0};randomBytes$3.register=function(_e){if(locked)throw new Error("randomBytes is locked");__randomBytes=_e};Object.freeze(randomBytes$3);const rotl$2=(_e,et)=>_e<<et|_e>>>32-et;function XorAndSalsa(_e,et,tt,nt,at,it){let ot=_e[et++]^tt[nt++],st=_e[et++]^tt[nt++],ct=_e[et++]^tt[nt++],dt=_e[et++]^tt[nt++],ht=_e[et++]^tt[nt++],pt=_e[et++]^tt[nt++],mt=_e[et++]^tt[nt++],vt=_e[et++]^tt[nt++],bt=_e[et++]^tt[nt++],_t=_e[et++]^tt[nt++],wt=_e[et++]^tt[nt++],Et=_e[et++]^tt[nt++],St=_e[et++]^tt[nt++],Tt=_e[et++]^tt[nt++],Ct=_e[et++]^tt[nt++],Nt=_e[et++]^tt[nt++],Dt=ot,kt=st,Ft=ct,jt=dt,Gt=ht,Rt=pt,yt=mt,$t=vt,xt=bt,At=_t,Mt=wt,It=Et,Lt=St,Ot=Tt,gt=Ct,Pt=Nt;for(let Bt=0;Bt<8;Bt+=2)Gt^=rotl$2(Dt+Lt|0,7),xt^=rotl$2(Gt+Dt|0,9),Lt^=rotl$2(xt+Gt|0,13),Dt^=rotl$2(Lt+xt|0,18),At^=rotl$2(Rt+kt|0,7),Ot^=rotl$2(At+Rt|0,9),kt^=rotl$2(Ot+At|0,13),Rt^=rotl$2(kt+Ot|0,18),gt^=rotl$2(Mt+yt|0,7),Ft^=rotl$2(gt+Mt|0,9),yt^=rotl$2(Ft+gt|0,13),Mt^=rotl$2(yt+Ft|0,18),jt^=rotl$2(Pt+It|0,7),$t^=rotl$2(jt+Pt|0,9),It^=rotl$2($t+jt|0,13),Pt^=rotl$2(It+$t|0,18),kt^=rotl$2(Dt+jt|0,7),Ft^=rotl$2(kt+Dt|0,9),jt^=rotl$2(Ft+kt|0,13),Dt^=rotl$2(jt+Ft|0,18),yt^=rotl$2(Rt+Gt|0,7),$t^=rotl$2(yt+Rt|0,9),Gt^=rotl$2($t+yt|0,13),Rt^=rotl$2(Gt+$t|0,18),It^=rotl$2(Mt+At|0,7),xt^=rotl$2(It+Mt|0,9),At^=rotl$2(xt+It|0,13),Mt^=rotl$2(At+xt|0,18),Lt^=rotl$2(Pt+gt|0,7),Ot^=rotl$2(Lt+Pt|0,9),gt^=rotl$2(Ot+Lt|0,13),Pt^=rotl$2(gt+Ot|0,18);at[it++]=ot+Dt|0,at[it++]=st+kt|0,at[it++]=ct+Ft|0,at[it++]=dt+jt|0,at[it++]=ht+Gt|0,at[it++]=pt+Rt|0,at[it++]=mt+yt|0,at[it++]=vt+$t|0,at[it++]=bt+xt|0,at[it++]=_t+At|0,at[it++]=wt+Mt|0,at[it++]=Et+It|0,at[it++]=St+Lt|0,at[it++]=Tt+Ot|0,at[it++]=Ct+gt|0,at[it++]=Nt+Pt|0}function BlockMix(_e,et,tt,nt,at){let it=nt+0,ot=nt+16*at;for(let st=0;st<16;st++)tt[ot+st]=_e[et+(2*at-1)*16+st];for(let st=0;st<at;st++,it+=16,et+=16)XorAndSalsa(tt,ot,_e,et,tt,it),st>0&&(ot+=16),XorAndSalsa(tt,it,_e,et+=16,tt,ot)}function scryptInit(_e,et,tt){const nt=checkOpts({dkLen:32,asyncTick:10,maxmem:1073742848},tt),{N:at,r:it,p:ot,dkLen:st,asyncTick:ct,maxmem:dt,onProgress:ht}=nt;if(number$4(at),number$4(it),number$4(ot),number$4(st),number$4(ct),number$4(dt),ht!==void 0&&typeof ht!="function")throw new Error("progressCb should be function");const pt=128*it,mt=pt/4;if(at<=1||at&at-1||at>=2**(pt/8)||at>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(ot<0||ot>(2**32-1)*32/pt)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(st<0||st>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const vt=pt*(at+ot);if(vt>dt)throw new Error(`Scrypt: parameters too large, ${vt} (128 * r * (N + p)) > ${dt} (maxmem)`);const bt=pbkdf2$2(sha256$5,_e,et,{c:1,dkLen:pt*ot}),_t=u32(bt),wt=u32(new Uint8Array(pt*at)),Et=u32(new Uint8Array(pt));let St=()=>{};if(ht){const Tt=2*at*ot,Ct=Math.max(Math.floor(Tt/1e4),1);let Nt=0;St=()=>{Nt++,ht&&(!(Nt%Ct)||Nt===Tt)&&ht(Nt/Tt)}}return{N:at,r:it,p:ot,dkLen:st,blockSize32:mt,V:wt,B32:_t,B:bt,tmp:Et,blockMixCb:St,asyncTick:ct}}function scryptOutput(_e,et,tt,nt,at){const it=pbkdf2$2(sha256$5,_e,tt,{c:1,dkLen:et});return tt.fill(0),nt.fill(0),at.fill(0),it}function scrypt$1(_e,et,tt){const{N:nt,r:at,p:it,dkLen:ot,blockSize32:st,V:ct,B32:dt,B:ht,tmp:pt,blockMixCb:mt}=scryptInit(_e,et,tt);for(let vt=0;vt<it;vt++){const bt=st*vt;for(let _t=0;_t<st;_t++)ct[_t]=dt[bt+_t];for(let _t=0,wt=0;_t<nt-1;_t++)BlockMix(ct,wt,ct,wt+=st,at),mt();BlockMix(ct,(nt-1)*st,dt,bt,at),mt();for(let _t=0;_t<nt;_t++){const wt=dt[bt+st-16]%nt;for(let Et=0;Et<st;Et++)pt[Et]=dt[bt+Et]^ct[wt*st+Et];BlockMix(pt,0,dt,bt,at),mt()}}return scryptOutput(_e,ot,ht,ct,pt)}async function scryptAsync(_e,et,tt){const{N:nt,r:at,p:it,dkLen:ot,blockSize32:st,V:ct,B32:dt,B:ht,tmp:pt,blockMixCb:mt,asyncTick:vt}=scryptInit(_e,et,tt);for(let bt=0;bt<it;bt++){const _t=st*bt;for(let Et=0;Et<st;Et++)ct[Et]=dt[_t+Et];let wt=0;await asyncLoop(nt-1,vt,()=>{BlockMix(ct,wt,ct,wt+=st,at),mt()}),BlockMix(ct,(nt-1)*st,dt,_t,at),mt(),await asyncLoop(nt,vt,()=>{const Et=dt[_t+st-16]%nt;for(let St=0;St<st;St++)pt[St]=dt[_t+St]^ct[Et*st+St];BlockMix(pt,0,dt,_t,at),mt()})}return scryptOutput(_e,ot,ht,ct,pt)}let lockedSync=!1,lockedAsync=!1;const _scryptAsync=async function(_e,et,tt,nt,at,it,ot){return await scryptAsync(_e,et,{N:tt,r:nt,p:at,dkLen:it,onProgress:ot})},_scryptSync=function(_e,et,tt,nt,at,it){return scrypt$1(_e,et,{N:tt,r:nt,p:at,dkLen:it})};let __scryptAsync=_scryptAsync,__scryptSync=_scryptSync;async function scrypt(_e,et,tt,nt,at,it,ot){const st=getBytes(_e,"passwd"),ct=getBytes(et,"salt");return hexlify$1(await __scryptAsync(st,ct,tt,nt,at,it,ot))}scrypt._=_scryptAsync;scrypt.lock=function(){lockedAsync=!0};scrypt.register=function(_e){if(lockedAsync)throw new Error("scrypt is locked");__scryptAsync=_e};Object.freeze(scrypt);function scryptSync(_e,et,tt,nt,at,it){const ot=getBytes(_e,"passwd"),st=getBytes(et,"salt");return hexlify$1(__scryptSync(ot,st,tt,nt,at,it))}scryptSync._=_scryptSync;scryptSync.lock=function(){lockedSync=!0};scryptSync.register=function(_e){if(lockedSync)throw new Error("scryptSync is locked");__scryptSync=_e};Object.freeze(scryptSync);const _sha256=function(_e){return createHash$3("sha256").update(_e).digest()};let __sha256=_sha256,locked256=!1;function sha256$4(_e){const et=getBytes(_e,"data");return hexlify$1(__sha256(et))}sha256$4._=_sha256;sha256$4.lock=function(){locked256=!0};sha256$4.register=function(_e){if(locked256)throw new Error("sha256 is locked");__sha256=_e};Object.freeze(sha256$4);Object.freeze(sha256$4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$3=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a=_e=>_e instanceof Uint8Array,hexes=Array.from({length:256},(_e,et)=>et.toString(16).padStart(2,"0"));function bytesToHex(_e){if(!u8a(_e))throw new Error("Uint8Array expected");let et="";for(let tt=0;tt<_e.length;tt++)et+=hexes[_e[tt]];return et}function numberToHexUnpadded(_e){const et=_e.toString(16);return et.length&1?`0${et}`:et}function hexToNumber$1(_e){if(typeof _e!="string")throw new Error("hex string expected, got "+typeof _e);return BigInt(_e===""?"0":`0x${_e}`)}function hexToBytes(_e){if(typeof _e!="string")throw new Error("hex string expected, got "+typeof _e);const et=_e.length;if(et%2)throw new Error("padded hex string expected, got unpadded hex of length "+et);const tt=new Uint8Array(et/2);for(let nt=0;nt<tt.length;nt++){const at=nt*2,it=_e.slice(at,at+2),ot=Number.parseInt(it,16);if(Number.isNaN(ot)||ot<0)throw new Error("Invalid byte sequence");tt[nt]=ot}return tt}function bytesToNumberBE(_e){return hexToNumber$1(bytesToHex(_e))}function bytesToNumberLE(_e){if(!u8a(_e))throw new Error("Uint8Array expected");return hexToNumber$1(bytesToHex(Uint8Array.from(_e).reverse()))}function numberToBytesBE(_e,et){return hexToBytes(_e.toString(16).padStart(et*2,"0"))}function numberToBytesLE(_e,et){return numberToBytesBE(_e,et).reverse()}function numberToVarBytesBE(_e){return hexToBytes(numberToHexUnpadded(_e))}function ensureBytes(_e,et,tt){let nt;if(typeof et=="string")try{nt=hexToBytes(et)}catch(it){throw new Error(`${_e} must be valid hex string, got "${et}". Cause: ${it}`)}else if(u8a(et))nt=Uint8Array.from(et);else throw new Error(`${_e} must be hex string or Uint8Array`);const at=nt.length;if(typeof tt=="number"&&at!==tt)throw new Error(`${_e} expected ${tt} bytes, got ${at}`);return nt}function concatBytes(..._e){const et=new Uint8Array(_e.reduce((nt,at)=>nt+at.length,0));let tt=0;return _e.forEach(nt=>{if(!u8a(nt))throw new Error("Uint8Array expected");et.set(nt,tt),tt+=nt.length}),et}function equalBytes(_e,et){if(_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}function utf8ToBytes(_e){if(typeof _e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof _e}`);return new Uint8Array(new TextEncoder().encode(_e))}function bitLen(_e){let et;for(et=0;_e>_0n$3;_e>>=_1n$4,et+=1);return et}function bitGet(_e,et){return _e>>BigInt(et)&_1n$4}const bitSet=(_e,et,tt)=>_e|(tt?_1n$4:_0n$3)<<BigInt(et),bitMask=_e=>(_2n$2<<BigInt(_e-1))-_1n$4,u8n=_e=>new Uint8Array(_e),u8fr=_e=>Uint8Array.from(_e);function createHmacDrbg(_e,et,tt){if(typeof _e!="number"||_e<2)throw new Error("hashLen must be a number");if(typeof et!="number"||et<2)throw new Error("qByteLen must be a number");if(typeof tt!="function")throw new Error("hmacFn must be a function");let nt=u8n(_e),at=u8n(_e),it=0;const ot=()=>{nt.fill(1),at.fill(0),it=0},st=(...pt)=>tt(at,nt,...pt),ct=(pt=u8n())=>{at=st(u8fr([0]),pt),nt=st(),pt.length!==0&&(at=st(u8fr([1]),pt),nt=st())},dt=()=>{if(it++>=1e3)throw new Error("drbg: tried 1000 values");let pt=0;const mt=[];for(;pt<et;){nt=st();const vt=nt.slice();mt.push(vt),pt+=nt.length}return concatBytes(...mt)};return(pt,mt)=>{ot(),ct(pt);let vt;for(;!(vt=mt(dt()));)ct();return ot(),vt}}const validatorFns={bigint:_e=>typeof _e=="bigint",function:_e=>typeof _e=="function",boolean:_e=>typeof _e=="boolean",string:_e=>typeof _e=="string",stringOrUint8Array:_e=>typeof _e=="string"||_e instanceof Uint8Array,isSafeInteger:_e=>Number.isSafeInteger(_e),array:_e=>Array.isArray(_e),field:(_e,et)=>et.Fp.isValid(_e),hash:_e=>typeof _e=="function"&&Number.isSafeInteger(_e.outputLen)};function validateObject(_e,et,tt={}){const nt=(at,it,ot)=>{const st=validatorFns[it];if(typeof st!="function")throw new Error(`Invalid validator "${it}", expected function`);const ct=_e[at];if(!(ot&&ct===void 0)&&!st(ct,_e))throw new Error(`Invalid param ${String(at)}=${ct} (${typeof ct}), expected ${it}`)};for(const[at,it]of Object.entries(et))nt(at,it,!1);for(const[at,it]of Object.entries(tt))nt(at,it,!0);return _e}const ut=Object.freeze(Object.defineProperty({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex,bytesToNumberBE,bytesToNumberLE,concatBytes,createHmacDrbg,ensureBytes,equalBytes,hexToBytes,hexToNumber:hexToNumber$1,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes,validateObject},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$2=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);BigInt(9);BigInt(16);function mod$3(_e,et){const tt=_e%et;return tt>=_0n$2?tt:et+tt}function pow$1(_e,et,tt){if(tt<=_0n$2||et<_0n$2)throw new Error("Expected power/modulo > 0");if(tt===_1n$3)return _0n$2;let nt=_1n$3;for(;et>_0n$2;)et&_1n$3&&(nt=nt*_e%tt),_e=_e*_e%tt,et>>=_1n$3;return nt}function pow2(_e,et,tt){let nt=_e;for(;et-- >_0n$2;)nt*=nt,nt%=tt;return nt}function invert$2(_e,et){if(_e===_0n$2||et<=_0n$2)throw new Error(`invert: expected positive integers, got n=${_e} mod=${et}`);let tt=mod$3(_e,et),nt=et,at=_0n$2,it=_1n$3;for(;tt!==_0n$2;){const st=nt/tt,ct=nt%tt,dt=at-it*st;nt=tt,tt=ct,at=it,it=dt}if(nt!==_1n$3)throw new Error("invert: does not exist");return mod$3(at,et)}function tonelliShanks(_e){const et=(_e-_1n$3)/_2n$1;let tt,nt,at;for(tt=_e-_1n$3,nt=0;tt%_2n$1===_0n$2;tt/=_2n$1,nt++);for(at=_2n$1;at<_e&&pow$1(at,et,_e)!==_e-_1n$3;at++);if(nt===1){const ot=(_e+_1n$3)/_4n;return function(ct,dt){const ht=ct.pow(dt,ot);if(!ct.eql(ct.sqr(ht),dt))throw new Error("Cannot find square root");return ht}}const it=(tt+_1n$3)/_2n$1;return function(st,ct){if(st.pow(ct,et)===st.neg(st.ONE))throw new Error("Cannot find square root");let dt=nt,ht=st.pow(st.mul(st.ONE,at),tt),pt=st.pow(ct,it),mt=st.pow(ct,tt);for(;!st.eql(mt,st.ONE);){if(st.eql(mt,st.ZERO))return st.ZERO;let vt=1;for(let _t=st.sqr(mt);vt<dt&&!st.eql(_t,st.ONE);vt++)_t=st.sqr(_t);const bt=st.pow(ht,_1n$3<<BigInt(dt-vt-1));ht=st.sqr(bt),pt=st.mul(pt,bt),mt=st.mul(mt,ht),dt=vt}return pt}}function FpSqrt(_e){if(_e%_4n===_3n$1){const et=(_e+_1n$3)/_4n;return function(nt,at){const it=nt.pow(at,et);if(!nt.eql(nt.sqr(it),at))throw new Error("Cannot find square root");return it}}if(_e%_8n===_5n){const et=(_e-_5n)/_8n;return function(nt,at){const it=nt.mul(at,_2n$1),ot=nt.pow(it,et),st=nt.mul(at,ot),ct=nt.mul(nt.mul(st,_2n$1),ot),dt=nt.mul(st,nt.sub(ct,nt.ONE));if(!nt.eql(nt.sqr(dt),at))throw new Error("Cannot find square root");return dt}}return tonelliShanks(_e)}const FIELD_FIELDS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField(_e){const et={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},tt=FIELD_FIELDS.reduce((nt,at)=>(nt[at]="function",nt),et);return validateObject(_e,tt)}function FpPow(_e,et,tt){if(tt<_0n$2)throw new Error("Expected power > 0");if(tt===_0n$2)return _e.ONE;if(tt===_1n$3)return et;let nt=_e.ONE,at=et;for(;tt>_0n$2;)tt&_1n$3&&(nt=_e.mul(nt,at)),at=_e.sqr(at),tt>>=_1n$3;return nt}function FpInvertBatch(_e,et){const tt=new Array(et.length),nt=et.reduce((it,ot,st)=>_e.is0(ot)?it:(tt[st]=it,_e.mul(it,ot)),_e.ONE),at=_e.inv(nt);return et.reduceRight((it,ot,st)=>_e.is0(ot)?it:(tt[st]=_e.mul(it,tt[st]),_e.mul(it,ot)),at),tt}function nLength(_e,et){const tt=et!==void 0?et:_e.toString(2).length,nt=Math.ceil(tt/8);return{nBitLength:tt,nByteLength:nt}}function Field$3(_e,et,tt=!1,nt={}){if(_e<=_0n$2)throw new Error(`Expected Field ORDER > 0, got ${_e}`);const{nBitLength:at,nByteLength:it}=nLength(_e,et);if(it>2048)throw new Error("Field lengths over 2048 bytes are not supported");const ot=FpSqrt(_e),st=Object.freeze({ORDER:_e,BITS:at,BYTES:it,MASK:bitMask(at),ZERO:_0n$2,ONE:_1n$3,create:ct=>mod$3(ct,_e),isValid:ct=>{if(typeof ct!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof ct}`);return _0n$2<=ct&&ct<_e},is0:ct=>ct===_0n$2,isOdd:ct=>(ct&_1n$3)===_1n$3,neg:ct=>mod$3(-ct,_e),eql:(ct,dt)=>ct===dt,sqr:ct=>mod$3(ct*ct,_e),add:(ct,dt)=>mod$3(ct+dt,_e),sub:(ct,dt)=>mod$3(ct-dt,_e),mul:(ct,dt)=>mod$3(ct*dt,_e),pow:(ct,dt)=>FpPow(st,ct,dt),div:(ct,dt)=>mod$3(ct*invert$2(dt,_e),_e),sqrN:ct=>ct*ct,addN:(ct,dt)=>ct+dt,subN:(ct,dt)=>ct-dt,mulN:(ct,dt)=>ct*dt,inv:ct=>invert$2(ct,_e),sqrt:nt.sqrt||(ct=>ot(st,ct)),invertBatch:ct=>FpInvertBatch(st,ct),cmov:(ct,dt,ht)=>ht?dt:ct,toBytes:ct=>tt?numberToBytesLE(ct,it):numberToBytesBE(ct,it),fromBytes:ct=>{if(ct.length!==it)throw new Error(`Fp.fromBytes: expected ${it}, got ${ct.length}`);return tt?bytesToNumberLE(ct):bytesToNumberBE(ct)}});return Object.freeze(st)}function getFieldBytesLength(_e){if(typeof _e!="bigint")throw new Error("field order must be bigint");const et=_e.toString(2).length;return Math.ceil(et/8)}function getMinHashLength(_e){const et=getFieldBytesLength(_e);return et+Math.ceil(et/2)}function mapHashToField(_e,et,tt=!1){const nt=_e.length,at=getFieldBytesLength(et),it=getMinHashLength(et);if(nt<16||nt<it||nt>1024)throw new Error(`expected ${it}-1024 bytes of input, got ${nt}`);const ot=tt?bytesToNumberBE(_e):bytesToNumberLE(_e),st=mod$3(ot,et-_1n$3)+_1n$3;return tt?numberToBytesLE(st,at):numberToBytesBE(st,at)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$1=BigInt(0),_1n$2=BigInt(1);function wNAF(_e,et){const tt=(at,it)=>{const ot=it.negate();return at?ot:it},nt=at=>{const it=Math.ceil(et/at)+1,ot=2**(at-1);return{windows:it,windowSize:ot}};return{constTimeNegate:tt,unsafeLadder(at,it){let ot=_e.ZERO,st=at;for(;it>_0n$1;)it&_1n$2&&(ot=ot.add(st)),st=st.double(),it>>=_1n$2;return ot},precomputeWindow(at,it){const{windows:ot,windowSize:st}=nt(it),ct=[];let dt=at,ht=dt;for(let pt=0;pt<ot;pt++){ht=dt,ct.push(ht);for(let mt=1;mt<st;mt++)ht=ht.add(dt),ct.push(ht);dt=ht.double()}return ct},wNAF(at,it,ot){const{windows:st,windowSize:ct}=nt(at);let dt=_e.ZERO,ht=_e.BASE;const pt=BigInt(2**at-1),mt=2**at,vt=BigInt(at);for(let bt=0;bt<st;bt++){const _t=bt*ct;let wt=Number(ot&pt);ot>>=vt,wt>ct&&(wt-=mt,ot+=_1n$2);const Et=_t,St=_t+Math.abs(wt)-1,Tt=bt%2!==0,Ct=wt<0;wt===0?ht=ht.add(tt(Tt,it[Et])):dt=dt.add(tt(Ct,it[St]))}return{p:dt,f:ht}},wNAFCached(at,it,ot,st){const ct=at._WINDOW_SIZE||1;let dt=it.get(at);return dt||(dt=this.precomputeWindow(at,ct),ct!==1&&it.set(at,st(dt))),this.wNAF(ct,dt,ot)}}}function validateBasic(_e){return validateField(_e.Fp),validateObject(_e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(_e.n,_e.nBitLength),..._e,p:_e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validatePointOpts(_e){const et=validateBasic(_e);validateObject(et,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:tt,Fp:nt,a:at}=et;if(tt){if(!nt.eql(at,nt.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof tt!="object"||typeof tt.beta!="bigint"||typeof tt.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...et})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(et=""){super(et)}},_parseInt(_e){const{Err:et}=DER;if(_e.length<2||_e[0]!==2)throw new et("Invalid signature integer tag");const tt=_e[1],nt=_e.subarray(2,tt+2);if(!tt||nt.length!==tt)throw new et("Invalid signature integer: wrong length");if(nt[0]&128)throw new et("Invalid signature integer: negative");if(nt[0]===0&&!(nt[1]&128))throw new et("Invalid signature integer: unnecessary leading zero");return{d:b2n(nt),l:_e.subarray(tt+2)}},toSig(_e){const{Err:et}=DER,tt=typeof _e=="string"?h2b(_e):_e;if(!(tt instanceof Uint8Array))throw new Error("ui8a expected");let nt=tt.length;if(nt<2||tt[0]!=48)throw new et("Invalid signature tag");if(tt[1]!==nt-2)throw new et("Invalid signature: incorrect length");const{d:at,l:it}=DER._parseInt(tt.subarray(2)),{d:ot,l:st}=DER._parseInt(it);if(st.length)throw new et("Invalid signature: left bytes after parsing");return{r:at,s:ot}},hexFromSig(_e){const et=dt=>Number.parseInt(dt[0],16)&8?"00"+dt:dt,tt=dt=>{const ht=dt.toString(16);return ht.length&1?`0${ht}`:ht},nt=et(tt(_e.s)),at=et(tt(_e.r)),it=nt.length/2,ot=at.length/2,st=tt(it),ct=tt(ot);return`30${tt(ot+it+4)}02${ct}${at}02${st}${nt}`}},_0n=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);BigInt(4);function weierstrassPoints(_e){const et=validatePointOpts(_e),{Fp:tt}=et,nt=et.toBytes||((bt,_t,wt)=>{const Et=_t.toAffine();return concatBytes(Uint8Array.from([4]),tt.toBytes(Et.x),tt.toBytes(Et.y))}),at=et.fromBytes||(bt=>{const _t=bt.subarray(1),wt=tt.fromBytes(_t.subarray(0,tt.BYTES)),Et=tt.fromBytes(_t.subarray(tt.BYTES,2*tt.BYTES));return{x:wt,y:Et}});function it(bt){const{a:_t,b:wt}=et,Et=tt.sqr(bt),St=tt.mul(Et,bt);return tt.add(tt.add(St,tt.mul(bt,_t)),wt)}if(!tt.eql(tt.sqr(et.Gy),it(et.Gx)))throw new Error("bad generator point: equation left != right");function ot(bt){return typeof bt=="bigint"&&_0n<bt&&bt<et.n}function st(bt){if(!ot(bt))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function ct(bt){const{allowedPrivateKeyLengths:_t,nByteLength:wt,wrapPrivateKey:Et,n:St}=et;if(_t&&typeof bt!="bigint"){if(bt instanceof Uint8Array&&(bt=bytesToHex(bt)),typeof bt!="string"||!_t.includes(bt.length))throw new Error("Invalid key");bt=bt.padStart(wt*2,"0")}let Tt;try{Tt=typeof bt=="bigint"?bt:bytesToNumberBE(ensureBytes("private key",bt,wt))}catch{throw new Error(`private key must be ${wt} bytes, hex or bigint, not ${typeof bt}`)}return Et&&(Tt=mod$3(Tt,St)),st(Tt),Tt}const dt=new Map;function ht(bt){if(!(bt instanceof pt))throw new Error("ProjectivePoint expected")}class pt{constructor(_t,wt,Et){if(this.px=_t,this.py=wt,this.pz=Et,_t==null||!tt.isValid(_t))throw new Error("x required");if(wt==null||!tt.isValid(wt))throw new Error("y required");if(Et==null||!tt.isValid(Et))throw new Error("z required")}static fromAffine(_t){const{x:wt,y:Et}=_t||{};if(!_t||!tt.isValid(wt)||!tt.isValid(Et))throw new Error("invalid affine point");if(_t instanceof pt)throw new Error("projective point not allowed");const St=Tt=>tt.eql(Tt,tt.ZERO);return St(wt)&&St(Et)?pt.ZERO:new pt(wt,Et,tt.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(_t){const wt=tt.invertBatch(_t.map(Et=>Et.pz));return _t.map((Et,St)=>Et.toAffine(wt[St])).map(pt.fromAffine)}static fromHex(_t){const wt=pt.fromAffine(at(ensureBytes("pointHex",_t)));return wt.assertValidity(),wt}static fromPrivateKey(_t){return pt.BASE.multiply(ct(_t))}_setWindowSize(_t){this._WINDOW_SIZE=_t,dt.delete(this)}assertValidity(){if(this.is0()){if(et.allowInfinityPoint&&!tt.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:_t,y:wt}=this.toAffine();if(!tt.isValid(_t)||!tt.isValid(wt))throw new Error("bad point: x or y not FE");const Et=tt.sqr(wt),St=it(_t);if(!tt.eql(Et,St))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:_t}=this.toAffine();if(tt.isOdd)return!tt.isOdd(_t);throw new Error("Field doesn't support isOdd")}equals(_t){ht(_t);const{px:wt,py:Et,pz:St}=this,{px:Tt,py:Ct,pz:Nt}=_t,Dt=tt.eql(tt.mul(wt,Nt),tt.mul(Tt,St)),kt=tt.eql(tt.mul(Et,Nt),tt.mul(Ct,St));return Dt&&kt}negate(){return new pt(this.px,tt.neg(this.py),this.pz)}double(){const{a:_t,b:wt}=et,Et=tt.mul(wt,_3n),{px:St,py:Tt,pz:Ct}=this;let Nt=tt.ZERO,Dt=tt.ZERO,kt=tt.ZERO,Ft=tt.mul(St,St),jt=tt.mul(Tt,Tt),Gt=tt.mul(Ct,Ct),Rt=tt.mul(St,Tt);return Rt=tt.add(Rt,Rt),kt=tt.mul(St,Ct),kt=tt.add(kt,kt),Nt=tt.mul(_t,kt),Dt=tt.mul(Et,Gt),Dt=tt.add(Nt,Dt),Nt=tt.sub(jt,Dt),Dt=tt.add(jt,Dt),Dt=tt.mul(Nt,Dt),Nt=tt.mul(Rt,Nt),kt=tt.mul(Et,kt),Gt=tt.mul(_t,Gt),Rt=tt.sub(Ft,Gt),Rt=tt.mul(_t,Rt),Rt=tt.add(Rt,kt),kt=tt.add(Ft,Ft),Ft=tt.add(kt,Ft),Ft=tt.add(Ft,Gt),Ft=tt.mul(Ft,Rt),Dt=tt.add(Dt,Ft),Gt=tt.mul(Tt,Ct),Gt=tt.add(Gt,Gt),Ft=tt.mul(Gt,Rt),Nt=tt.sub(Nt,Ft),kt=tt.mul(Gt,jt),kt=tt.add(kt,kt),kt=tt.add(kt,kt),new pt(Nt,Dt,kt)}add(_t){ht(_t);const{px:wt,py:Et,pz:St}=this,{px:Tt,py:Ct,pz:Nt}=_t;let Dt=tt.ZERO,kt=tt.ZERO,Ft=tt.ZERO;const jt=et.a,Gt=tt.mul(et.b,_3n);let Rt=tt.mul(wt,Tt),yt=tt.mul(Et,Ct),$t=tt.mul(St,Nt),xt=tt.add(wt,Et),At=tt.add(Tt,Ct);xt=tt.mul(xt,At),At=tt.add(Rt,yt),xt=tt.sub(xt,At),At=tt.add(wt,St);let Mt=tt.add(Tt,Nt);return At=tt.mul(At,Mt),Mt=tt.add(Rt,$t),At=tt.sub(At,Mt),Mt=tt.add(Et,St),Dt=tt.add(Ct,Nt),Mt=tt.mul(Mt,Dt),Dt=tt.add(yt,$t),Mt=tt.sub(Mt,Dt),Ft=tt.mul(jt,At),Dt=tt.mul(Gt,$t),Ft=tt.add(Dt,Ft),Dt=tt.sub(yt,Ft),Ft=tt.add(yt,Ft),kt=tt.mul(Dt,Ft),yt=tt.add(Rt,Rt),yt=tt.add(yt,Rt),$t=tt.mul(jt,$t),At=tt.mul(Gt,At),yt=tt.add(yt,$t),$t=tt.sub(Rt,$t),$t=tt.mul(jt,$t),At=tt.add(At,$t),Rt=tt.mul(yt,At),kt=tt.add(kt,Rt),Rt=tt.mul(Mt,At),Dt=tt.mul(xt,Dt),Dt=tt.sub(Dt,Rt),Rt=tt.mul(xt,yt),Ft=tt.mul(Mt,Ft),Ft=tt.add(Ft,Rt),new pt(Dt,kt,Ft)}subtract(_t){return this.add(_t.negate())}is0(){return this.equals(pt.ZERO)}wNAF(_t){return vt.wNAFCached(this,dt,_t,wt=>{const Et=tt.invertBatch(wt.map(St=>St.pz));return wt.map((St,Tt)=>St.toAffine(Et[Tt])).map(pt.fromAffine)})}multiplyUnsafe(_t){const wt=pt.ZERO;if(_t===_0n)return wt;if(st(_t),_t===_1n$1)return this;const{endo:Et}=et;if(!Et)return vt.unsafeLadder(this,_t);let{k1neg:St,k1:Tt,k2neg:Ct,k2:Nt}=Et.splitScalar(_t),Dt=wt,kt=wt,Ft=this;for(;Tt>_0n||Nt>_0n;)Tt&_1n$1&&(Dt=Dt.add(Ft)),Nt&_1n$1&&(kt=kt.add(Ft)),Ft=Ft.double(),Tt>>=_1n$1,Nt>>=_1n$1;return St&&(Dt=Dt.negate()),Ct&&(kt=kt.negate()),kt=new pt(tt.mul(kt.px,Et.beta),kt.py,kt.pz),Dt.add(kt)}multiply(_t){st(_t);let wt=_t,Et,St;const{endo:Tt}=et;if(Tt){const{k1neg:Ct,k1:Nt,k2neg:Dt,k2:kt}=Tt.splitScalar(wt);let{p:Ft,f:jt}=this.wNAF(Nt),{p:Gt,f:Rt}=this.wNAF(kt);Ft=vt.constTimeNegate(Ct,Ft),Gt=vt.constTimeNegate(Dt,Gt),Gt=new pt(tt.mul(Gt.px,Tt.beta),Gt.py,Gt.pz),Et=Ft.add(Gt),St=jt.add(Rt)}else{const{p:Ct,f:Nt}=this.wNAF(wt);Et=Ct,St=Nt}return pt.normalizeZ([Et,St])[0]}multiplyAndAddUnsafe(_t,wt,Et){const St=pt.BASE,Tt=(Nt,Dt)=>Dt===_0n||Dt===_1n$1||!Nt.equals(St)?Nt.multiplyUnsafe(Dt):Nt.multiply(Dt),Ct=Tt(this,wt).add(Tt(_t,Et));return Ct.is0()?void 0:Ct}toAffine(_t){const{px:wt,py:Et,pz:St}=this,Tt=this.is0();_t==null&&(_t=Tt?tt.ONE:tt.inv(St));const Ct=tt.mul(wt,_t),Nt=tt.mul(Et,_t),Dt=tt.mul(St,_t);if(Tt)return{x:tt.ZERO,y:tt.ZERO};if(!tt.eql(Dt,tt.ONE))throw new Error("invZ was invalid");return{x:Ct,y:Nt}}isTorsionFree(){const{h:_t,isTorsionFree:wt}=et;if(_t===_1n$1)return!0;if(wt)return wt(pt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:_t,clearCofactor:wt}=et;return _t===_1n$1?this:wt?wt(pt,this):this.multiplyUnsafe(et.h)}toRawBytes(_t=!0){return this.assertValidity(),nt(pt,this,_t)}toHex(_t=!0){return bytesToHex(this.toRawBytes(_t))}}pt.BASE=new pt(et.Gx,et.Gy,tt.ONE),pt.ZERO=new pt(tt.ZERO,tt.ONE,tt.ZERO);const mt=et.nBitLength,vt=wNAF(pt,et.endo?Math.ceil(mt/2):mt);return{CURVE:et,ProjectivePoint:pt,normPrivateKeyToScalar:ct,weierstrassEquation:it,isWithinCurveOrder:ot}}function validateOpts(_e){const et=validateBasic(_e);return validateObject(et,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...et})}function weierstrass(_e){const et=validateOpts(_e),{Fp:tt,n:nt}=et,at=tt.BYTES+1,it=2*tt.BYTES+1;function ot(At){return _0n<At&&At<tt.ORDER}function st(At){return mod$3(At,nt)}function ct(At){return invert$2(At,nt)}const{ProjectivePoint:dt,normPrivateKeyToScalar:ht,weierstrassEquation:pt,isWithinCurveOrder:mt}=weierstrassPoints({...et,toBytes(At,Mt,It){const Lt=Mt.toAffine(),Ot=tt.toBytes(Lt.x),gt=concatBytes;return It?gt(Uint8Array.from([Mt.hasEvenY()?2:3]),Ot):gt(Uint8Array.from([4]),Ot,tt.toBytes(Lt.y))},fromBytes(At){const Mt=At.length,It=At[0],Lt=At.subarray(1);if(Mt===at&&(It===2||It===3)){const Ot=bytesToNumberBE(Lt);if(!ot(Ot))throw new Error("Point is not on curve");const gt=pt(Ot);let Pt=tt.sqrt(gt);const Bt=(Pt&_1n$1)===_1n$1;return(It&1)===1!==Bt&&(Pt=tt.neg(Pt)),{x:Ot,y:Pt}}else if(Mt===it&&It===4){const Ot=tt.fromBytes(Lt.subarray(0,tt.BYTES)),gt=tt.fromBytes(Lt.subarray(tt.BYTES,2*tt.BYTES));return{x:Ot,y:gt}}else throw new Error(`Point of length ${Mt} was invalid. Expected ${at} compressed bytes or ${it} uncompressed bytes`)}}),vt=At=>bytesToHex(numberToBytesBE(At,et.nByteLength));function bt(At){const Mt=nt>>_1n$1;return At>Mt}function _t(At){return bt(At)?st(-At):At}const wt=(At,Mt,It)=>bytesToNumberBE(At.slice(Mt,It));class Et{constructor(Mt,It,Lt){this.r=Mt,this.s=It,this.recovery=Lt,this.assertValidity()}static fromCompact(Mt){const It=et.nByteLength;return Mt=ensureBytes("compactSignature",Mt,It*2),new Et(wt(Mt,0,It),wt(Mt,It,2*It))}static fromDER(Mt){const{r:It,s:Lt}=DER.toSig(ensureBytes("DER",Mt));return new Et(It,Lt)}assertValidity(){if(!mt(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!mt(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Mt){return new Et(this.r,this.s,Mt)}recoverPublicKey(Mt){const{r:It,s:Lt,recovery:Ot}=this,gt=kt(ensureBytes("msgHash",Mt));if(Ot==null||![0,1,2,3].includes(Ot))throw new Error("recovery id invalid");const Pt=Ot===2||Ot===3?It+et.n:It;if(Pt>=tt.ORDER)throw new Error("recovery id 2 or 3 invalid");const Bt=Ot&1?"03":"02",Ut=dt.fromHex(Bt+vt(Pt)),Ht=ct(Pt),qt=st(-gt*Ht),Vt=st(Lt*Ht),zt=dt.BASE.multiplyAndAddUnsafe(Ut,qt,Vt);if(!zt)throw new Error("point at infinify");return zt.assertValidity(),zt}hasHighS(){return bt(this.s)}normalizeS(){return this.hasHighS()?new Et(this.r,st(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes(this.toCompactHex())}toCompactHex(){return vt(this.r)+vt(this.s)}}const St={isValidPrivateKey(At){try{return ht(At),!0}catch{return!1}},normPrivateKeyToScalar:ht,randomPrivateKey:()=>{const At=getMinHashLength(et.n);return mapHashToField(et.randomBytes(At),et.n)},precompute(At=8,Mt=dt.BASE){return Mt._setWindowSize(At),Mt.multiply(BigInt(3)),Mt}};function Tt(At,Mt=!0){return dt.fromPrivateKey(At).toRawBytes(Mt)}function Ct(At){const Mt=At instanceof Uint8Array,It=typeof At=="string",Lt=(Mt||It)&&At.length;return Mt?Lt===at||Lt===it:It?Lt===2*at||Lt===2*it:At instanceof dt}function Nt(At,Mt,It=!0){if(Ct(At))throw new Error("first arg must be private key");if(!Ct(Mt))throw new Error("second arg must be public key");return dt.fromHex(Mt).multiply(ht(At)).toRawBytes(It)}const Dt=et.bits2int||function(At){const Mt=bytesToNumberBE(At),It=At.length*8-et.nBitLength;return It>0?Mt>>BigInt(It):Mt},kt=et.bits2int_modN||function(At){return st(Dt(At))},Ft=bitMask(et.nBitLength);function jt(At){if(typeof At!="bigint")throw new Error("bigint expected");if(!(_0n<=At&&At<Ft))throw new Error(`bigint expected < 2^${et.nBitLength}`);return numberToBytesBE(At,et.nByteLength)}function Gt(At,Mt,It=Rt){if(["recovered","canonical"].some(Xt=>Xt in It))throw new Error("sign() legacy options not supported");const{hash:Lt,randomBytes:Ot}=et;let{lowS:gt,prehash:Pt,extraEntropy:Bt}=It;gt==null&&(gt=!0),At=ensureBytes("msgHash",At),Pt&&(At=ensureBytes("prehashed msgHash",Lt(At)));const Ut=kt(At),Ht=ht(Mt),qt=[jt(Ht),jt(Ut)];if(Bt!=null){const Xt=Bt===!0?Ot(tt.BYTES):Bt;qt.push(ensureBytes("extraEntropy",Xt))}const Vt=concatBytes(...qt),zt=Ut;function Wt(Xt){const Zt=Dt(Xt);if(!mt(Zt))return;const Qt=ct(Zt),Kt=dt.BASE.multiply(Zt).toAffine(),ar=st(Kt.x);if(ar===_0n)return;const Er=st(Qt*st(zt+ar*Ht));if(Er===_0n)return;let Sr=(Kt.x===ar?0:2)|Number(Kt.y&_1n$1),gr=Er;return gt&&bt(Er)&&(gr=_t(Er),Sr^=1),new Et(ar,gr,Sr)}return{seed:Vt,k2sig:Wt}}const Rt={lowS:et.lowS,prehash:!1},yt={lowS:et.lowS,prehash:!1};function $t(At,Mt,It=Rt){const{seed:Lt,k2sig:Ot}=Gt(At,Mt,It),gt=et;return createHmacDrbg(gt.hash.outputLen,gt.nByteLength,gt.hmac)(Lt,Ot)}dt.BASE._setWindowSize(8);function xt(At,Mt,It,Lt=yt){var Kt;const Ot=At;if(Mt=ensureBytes("msgHash",Mt),It=ensureBytes("publicKey",It),"strict"in Lt)throw new Error("options.strict was renamed to lowS");const{lowS:gt,prehash:Pt}=Lt;let Bt,Ut;try{if(typeof Ot=="string"||Ot instanceof Uint8Array)try{Bt=Et.fromDER(Ot)}catch(ar){if(!(ar instanceof DER.Err))throw ar;Bt=Et.fromCompact(Ot)}else if(typeof Ot=="object"&&typeof Ot.r=="bigint"&&typeof Ot.s=="bigint"){const{r:ar,s:Er}=Ot;Bt=new Et(ar,Er)}else throw new Error("PARSE");Ut=dt.fromHex(It)}catch(ar){if(ar.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(gt&&Bt.hasHighS())return!1;Pt&&(Mt=et.hash(Mt));const{r:Ht,s:qt}=Bt,Vt=kt(Mt),zt=ct(qt),Wt=st(Vt*zt),Xt=st(Ht*zt),Zt=(Kt=dt.BASE.multiplyAndAddUnsafe(Ut,Wt,Xt))==null?void 0:Kt.toAffine();return Zt?st(Zt.x)===Ht:!1}return{CURVE:et,getPublicKey:Tt,getSharedSecret:Nt,sign:$t,verify:xt,ProjectivePoint:dt,Signature:Et,utils:St}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash(_e){return{hash:_e,hmac:(et,...tt)=>hmac$2(_e,et,concatBytes$1(...tt)),randomBytes:randomBytes$5}}function createCurve(_e,et){const tt=nt=>weierstrass({..._e,...getHash(nt)});return Object.freeze({...tt(et),create:tt})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(_e,et)=>(_e+et/_2n)/et;function sqrtMod(_e){const et=secp256k1P,tt=BigInt(3),nt=BigInt(6),at=BigInt(11),it=BigInt(22),ot=BigInt(23),st=BigInt(44),ct=BigInt(88),dt=_e*_e*_e%et,ht=dt*dt*_e%et,pt=pow2(ht,tt,et)*ht%et,mt=pow2(pt,tt,et)*ht%et,vt=pow2(mt,_2n,et)*dt%et,bt=pow2(vt,at,et)*vt%et,_t=pow2(bt,it,et)*bt%et,wt=pow2(_t,st,et)*_t%et,Et=pow2(wt,ct,et)*wt%et,St=pow2(Et,st,et)*_t%et,Tt=pow2(St,tt,et)*ht%et,Ct=pow2(Tt,ot,et)*bt%et,Nt=pow2(Ct,nt,et)*dt%et,Dt=pow2(Nt,_2n,et);if(!Fp.eql(Fp.sqr(Dt),_e))throw new Error("Cannot find square root");return Dt}const Fp=Field$3(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1$3=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:_e=>{const et=secp256k1N,tt=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),nt=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),at=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),it=tt,ot=BigInt("0x100000000000000000000000000000000"),st=divNearest(it*_e,et),ct=divNearest(-nt*_e,et);let dt=mod$3(_e-st*tt-ct*at,et),ht=mod$3(-st*nt-ct*it,et);const pt=dt>ot,mt=ht>ot;if(pt&&(dt=et-dt),mt&&(ht=et-ht),dt>ot||ht>ot)throw new Error("splitScalar: Endomorphism failed, k="+_e);return{k1neg:pt,k1:dt,k2neg:mt,k2:ht}}}},sha256$5);BigInt(0);secp256k1$3.ProjectivePoint;const ZeroAddress="0x0000000000000000000000000000000000000000",ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000",MessagePrefix=`Ethereum Signed Message:
127
+ */(function(_e){const et=base64Js,tt=ieee754,nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_e.Buffer=ht,_e.SlowBuffer=Nt,_e.INSPECT_MAX_BYTES=50;const at=2147483647;_e.kMaxLength=at;const{Uint8Array:it,ArrayBuffer:ot,SharedArrayBuffer:st}=globalThis;ht.TYPED_ARRAY_SUPPORT=ct(),!ht.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ct(){try{const tr=new it(1),Yt={foo:function(){return 42}};return Object.setPrototypeOf(Yt,it.prototype),Object.setPrototypeOf(tr,Yt),tr.foo()===42}catch{return!1}}Object.defineProperty(ht.prototype,"parent",{enumerable:!0,get:function(){if(ht.isBuffer(this))return this.buffer}}),Object.defineProperty(ht.prototype,"offset",{enumerable:!0,get:function(){if(ht.isBuffer(this))return this.byteOffset}});function dt(tr){if(tr>at)throw new RangeError('The value "'+tr+'" is invalid for option "size"');const Yt=new it(tr);return Object.setPrototypeOf(Yt,ht.prototype),Yt}function ht(tr,Yt,Jt){if(typeof tr=="number"){if(typeof Yt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return bt(tr)}return pt(tr,Yt,Jt)}ht.poolSize=8192;function pt(tr,Yt,Jt){if(typeof tr=="string")return _t(tr,Yt);if(ot.isView(tr))return Et(tr);if(tr==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof tr);if(Br(tr,ot)||tr&&Br(tr.buffer,ot)||typeof st<"u"&&(Br(tr,st)||tr&&Br(tr.buffer,st)))return St(tr,Yt,Jt);if(typeof tr=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ir=tr.valueOf&&tr.valueOf();if(ir!=null&&ir!==tr)return ht.from(ir,Yt,Jt);const br=Tt(tr);if(br)return br;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof tr[Symbol.toPrimitive]=="function")return ht.from(tr[Symbol.toPrimitive]("string"),Yt,Jt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof tr)}ht.from=function(tr,Yt,Jt){return pt(tr,Yt,Jt)},Object.setPrototypeOf(ht.prototype,it.prototype),Object.setPrototypeOf(ht,it);function mt(tr){if(typeof tr!="number")throw new TypeError('"size" argument must be of type number');if(tr<0)throw new RangeError('The value "'+tr+'" is invalid for option "size"')}function vt(tr,Yt,Jt){return mt(tr),tr<=0?dt(tr):Yt!==void 0?typeof Jt=="string"?dt(tr).fill(Yt,Jt):dt(tr).fill(Yt):dt(tr)}ht.alloc=function(tr,Yt,Jt){return vt(tr,Yt,Jt)};function bt(tr){return mt(tr),dt(tr<0?0:Ct(tr)|0)}ht.allocUnsafe=function(tr){return bt(tr)},ht.allocUnsafeSlow=function(tr){return bt(tr)};function _t(tr,Yt){if((typeof Yt!="string"||Yt==="")&&(Yt="utf8"),!ht.isEncoding(Yt))throw new TypeError("Unknown encoding: "+Yt);const Jt=Dt(tr,Yt)|0;let ir=dt(Jt);const br=ir.write(tr,Yt);return br!==Jt&&(ir=ir.slice(0,br)),ir}function wt(tr){const Yt=tr.length<0?0:Ct(tr.length)|0,Jt=dt(Yt);for(let ir=0;ir<Yt;ir+=1)Jt[ir]=tr[ir]&255;return Jt}function Et(tr){if(Br(tr,it)){const Yt=new it(tr);return St(Yt.buffer,Yt.byteOffset,Yt.byteLength)}return wt(tr)}function St(tr,Yt,Jt){if(Yt<0||tr.byteLength<Yt)throw new RangeError('"offset" is outside of buffer bounds');if(tr.byteLength<Yt+(Jt||0))throw new RangeError('"length" is outside of buffer bounds');let ir;return Yt===void 0&&Jt===void 0?ir=new it(tr):Jt===void 0?ir=new it(tr,Yt):ir=new it(tr,Yt,Jt),Object.setPrototypeOf(ir,ht.prototype),ir}function Tt(tr){if(ht.isBuffer(tr)){const Yt=Ct(tr.length)|0,Jt=dt(Yt);return Jt.length===0||tr.copy(Jt,0,0,Yt),Jt}if(tr.length!==void 0)return typeof tr.length!="number"||qr(tr.length)?dt(0):wt(tr);if(tr.type==="Buffer"&&Array.isArray(tr.data))return wt(tr.data)}function Ct(tr){if(tr>=at)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+at.toString(16)+" bytes");return tr|0}function Nt(tr){return+tr!=tr&&(tr=0),ht.alloc(+tr)}ht.isBuffer=function(Yt){return Yt!=null&&Yt._isBuffer===!0&&Yt!==ht.prototype},ht.compare=function(Yt,Jt){if(Br(Yt,it)&&(Yt=ht.from(Yt,Yt.offset,Yt.byteLength)),Br(Jt,it)&&(Jt=ht.from(Jt,Jt.offset,Jt.byteLength)),!ht.isBuffer(Yt)||!ht.isBuffer(Jt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Yt===Jt)return 0;let ir=Yt.length,br=Jt.length;for(let Jr=0,Ar=Math.min(ir,br);Jr<Ar;++Jr)if(Yt[Jr]!==Jt[Jr]){ir=Yt[Jr],br=Jt[Jr];break}return ir<br?-1:br<ir?1:0},ht.isEncoding=function(Yt){switch(String(Yt).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ht.concat=function(Yt,Jt){if(!Array.isArray(Yt))throw new TypeError('"list" argument must be an Array of Buffers');if(Yt.length===0)return ht.alloc(0);let ir;if(Jt===void 0)for(Jt=0,ir=0;ir<Yt.length;++ir)Jt+=Yt[ir].length;const br=ht.allocUnsafe(Jt);let Jr=0;for(ir=0;ir<Yt.length;++ir){let Ar=Yt[ir];if(Br(Ar,it))Jr+Ar.length>br.length?(ht.isBuffer(Ar)||(Ar=ht.from(Ar)),Ar.copy(br,Jr)):it.prototype.set.call(br,Ar,Jr);else if(ht.isBuffer(Ar))Ar.copy(br,Jr);else throw new TypeError('"list" argument must be an Array of Buffers');Jr+=Ar.length}return br};function Dt(tr,Yt){if(ht.isBuffer(tr))return tr.length;if(ot.isView(tr)||Br(tr,ot))return tr.byteLength;if(typeof tr!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof tr);const Jt=tr.length,ir=arguments.length>2&&arguments[2]===!0;if(!ir&&Jt===0)return 0;let br=!1;for(;;)switch(Yt){case"ascii":case"latin1":case"binary":return Jt;case"utf8":case"utf-8":return gn(tr).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jt*2;case"hex":return Jt>>>1;case"base64":return An(tr).length;default:if(br)return ir?-1:gn(tr).length;Yt=(""+Yt).toLowerCase(),br=!0}}ht.byteLength=Dt;function kt(tr,Yt,Jt){let ir=!1;if((Yt===void 0||Yt<0)&&(Yt=0),Yt>this.length||((Jt===void 0||Jt>this.length)&&(Jt=this.length),Jt<=0)||(Jt>>>=0,Yt>>>=0,Jt<=Yt))return"";for(tr||(tr="utf8");;)switch(tr){case"hex":return Bt(this,Yt,Jt);case"utf8":case"utf-8":return It(this,Yt,Jt);case"ascii":return gt(this,Yt,Jt);case"latin1":case"binary":return Pt(this,Yt,Jt);case"base64":return Mt(this,Yt,Jt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,Yt,Jt);default:if(ir)throw new TypeError("Unknown encoding: "+tr);tr=(tr+"").toLowerCase(),ir=!0}}ht.prototype._isBuffer=!0;function Ft(tr,Yt,Jt){const ir=tr[Yt];tr[Yt]=tr[Jt],tr[Jt]=ir}ht.prototype.swap16=function(){const Yt=this.length;if(Yt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Jt=0;Jt<Yt;Jt+=2)Ft(this,Jt,Jt+1);return this},ht.prototype.swap32=function(){const Yt=this.length;if(Yt%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Jt=0;Jt<Yt;Jt+=4)Ft(this,Jt,Jt+3),Ft(this,Jt+1,Jt+2);return this},ht.prototype.swap64=function(){const Yt=this.length;if(Yt%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Jt=0;Jt<Yt;Jt+=8)Ft(this,Jt,Jt+7),Ft(this,Jt+1,Jt+6),Ft(this,Jt+2,Jt+5),Ft(this,Jt+3,Jt+4);return this},ht.prototype.toString=function(){const Yt=this.length;return Yt===0?"":arguments.length===0?It(this,0,Yt):kt.apply(this,arguments)},ht.prototype.toLocaleString=ht.prototype.toString,ht.prototype.equals=function(Yt){if(!ht.isBuffer(Yt))throw new TypeError("Argument must be a Buffer");return this===Yt?!0:ht.compare(this,Yt)===0},ht.prototype.inspect=function(){let Yt="";const Jt=_e.INSPECT_MAX_BYTES;return Yt=this.toString("hex",0,Jt).replace(/(.{2})/g,"$1 ").trim(),this.length>Jt&&(Yt+=" ... "),"<Buffer "+Yt+">"},nt&&(ht.prototype[nt]=ht.prototype.inspect),ht.prototype.compare=function(Yt,Jt,ir,br,Jr){if(Br(Yt,it)&&(Yt=ht.from(Yt,Yt.offset,Yt.byteLength)),!ht.isBuffer(Yt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Yt);if(Jt===void 0&&(Jt=0),ir===void 0&&(ir=Yt?Yt.length:0),br===void 0&&(br=0),Jr===void 0&&(Jr=this.length),Jt<0||ir>Yt.length||br<0||Jr>this.length)throw new RangeError("out of range index");if(br>=Jr&&Jt>=ir)return 0;if(br>=Jr)return-1;if(Jt>=ir)return 1;if(Jt>>>=0,ir>>>=0,br>>>=0,Jr>>>=0,this===Yt)return 0;let Ar=Jr-br,Yr=ir-Jt;const Kn=Math.min(Ar,Yr),sn=this.slice(br,Jr),mn=Yt.slice(Jt,ir);for(let Xn=0;Xn<Kn;++Xn)if(sn[Xn]!==mn[Xn]){Ar=sn[Xn],Yr=mn[Xn];break}return Ar<Yr?-1:Yr<Ar?1:0};function jt(tr,Yt,Jt,ir,br){if(tr.length===0)return-1;if(typeof Jt=="string"?(ir=Jt,Jt=0):Jt>2147483647?Jt=2147483647:Jt<-2147483648&&(Jt=-2147483648),Jt=+Jt,qr(Jt)&&(Jt=br?0:tr.length-1),Jt<0&&(Jt=tr.length+Jt),Jt>=tr.length){if(br)return-1;Jt=tr.length-1}else if(Jt<0)if(br)Jt=0;else return-1;if(typeof Yt=="string"&&(Yt=ht.from(Yt,ir)),ht.isBuffer(Yt))return Yt.length===0?-1:Gt(tr,Yt,Jt,ir,br);if(typeof Yt=="number")return Yt=Yt&255,typeof it.prototype.indexOf=="function"?br?it.prototype.indexOf.call(tr,Yt,Jt):it.prototype.lastIndexOf.call(tr,Yt,Jt):Gt(tr,[Yt],Jt,ir,br);throw new TypeError("val must be string, number or Buffer")}function Gt(tr,Yt,Jt,ir,br){let Jr=1,Ar=tr.length,Yr=Yt.length;if(ir!==void 0&&(ir=String(ir).toLowerCase(),ir==="ucs2"||ir==="ucs-2"||ir==="utf16le"||ir==="utf-16le")){if(tr.length<2||Yt.length<2)return-1;Jr=2,Ar/=2,Yr/=2,Jt/=2}function Kn(mn,Xn){return Jr===1?mn[Xn]:mn.readUInt16BE(Xn*Jr)}let sn;if(br){let mn=-1;for(sn=Jt;sn<Ar;sn++)if(Kn(tr,sn)===Kn(Yt,mn===-1?0:sn-mn)){if(mn===-1&&(mn=sn),sn-mn+1===Yr)return mn*Jr}else mn!==-1&&(sn-=sn-mn),mn=-1}else for(Jt+Yr>Ar&&(Jt=Ar-Yr),sn=Jt;sn>=0;sn--){let mn=!0;for(let Xn=0;Xn<Yr;Xn++)if(Kn(tr,sn+Xn)!==Kn(Yt,Xn)){mn=!1;break}if(mn)return sn}return-1}ht.prototype.includes=function(Yt,Jt,ir){return this.indexOf(Yt,Jt,ir)!==-1},ht.prototype.indexOf=function(Yt,Jt,ir){return jt(this,Yt,Jt,ir,!0)},ht.prototype.lastIndexOf=function(Yt,Jt,ir){return jt(this,Yt,Jt,ir,!1)};function Rt(tr,Yt,Jt,ir){Jt=Number(Jt)||0;const br=tr.length-Jt;ir?(ir=Number(ir),ir>br&&(ir=br)):ir=br;const Jr=Yt.length;ir>Jr/2&&(ir=Jr/2);let Ar;for(Ar=0;Ar<ir;++Ar){const Yr=parseInt(Yt.substr(Ar*2,2),16);if(qr(Yr))return Ar;tr[Jt+Ar]=Yr}return Ar}function yt(tr,Yt,Jt,ir){return dr(gn(Yt,tr.length-Jt),tr,Jt,ir)}function $t(tr,Yt,Jt,ir){return dr(Tr(Yt),tr,Jt,ir)}function xt(tr,Yt,Jt,ir){return dr(An(Yt),tr,Jt,ir)}function At(tr,Yt,Jt,ir){return dr(Pr(Yt,tr.length-Jt),tr,Jt,ir)}ht.prototype.write=function(Yt,Jt,ir,br){if(Jt===void 0)br="utf8",ir=this.length,Jt=0;else if(ir===void 0&&typeof Jt=="string")br=Jt,ir=this.length,Jt=0;else if(isFinite(Jt))Jt=Jt>>>0,isFinite(ir)?(ir=ir>>>0,br===void 0&&(br="utf8")):(br=ir,ir=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Jr=this.length-Jt;if((ir===void 0||ir>Jr)&&(ir=Jr),Yt.length>0&&(ir<0||Jt<0)||Jt>this.length)throw new RangeError("Attempt to write outside buffer bounds");br||(br="utf8");let Ar=!1;for(;;)switch(br){case"hex":return Rt(this,Yt,Jt,ir);case"utf8":case"utf-8":return yt(this,Yt,Jt,ir);case"ascii":case"latin1":case"binary":return $t(this,Yt,Jt,ir);case"base64":return xt(this,Yt,Jt,ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,Yt,Jt,ir);default:if(Ar)throw new TypeError("Unknown encoding: "+br);br=(""+br).toLowerCase(),Ar=!0}},ht.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(tr,Yt,Jt){return Yt===0&&Jt===tr.length?et.fromByteArray(tr):et.fromByteArray(tr.slice(Yt,Jt))}function It(tr,Yt,Jt){Jt=Math.min(tr.length,Jt);const ir=[];let br=Yt;for(;br<Jt;){const Jr=tr[br];let Ar=null,Yr=Jr>239?4:Jr>223?3:Jr>191?2:1;if(br+Yr<=Jt){let Kn,sn,mn,Xn;switch(Yr){case 1:Jr<128&&(Ar=Jr);break;case 2:Kn=tr[br+1],(Kn&192)===128&&(Xn=(Jr&31)<<6|Kn&63,Xn>127&&(Ar=Xn));break;case 3:Kn=tr[br+1],sn=tr[br+2],(Kn&192)===128&&(sn&192)===128&&(Xn=(Jr&15)<<12|(Kn&63)<<6|sn&63,Xn>2047&&(Xn<55296||Xn>57343)&&(Ar=Xn));break;case 4:Kn=tr[br+1],sn=tr[br+2],mn=tr[br+3],(Kn&192)===128&&(sn&192)===128&&(mn&192)===128&&(Xn=(Jr&15)<<18|(Kn&63)<<12|(sn&63)<<6|mn&63,Xn>65535&&Xn<1114112&&(Ar=Xn))}}Ar===null?(Ar=65533,Yr=1):Ar>65535&&(Ar-=65536,ir.push(Ar>>>10&1023|55296),Ar=56320|Ar&1023),ir.push(Ar),br+=Yr}return Ot(ir)}const Lt=4096;function Ot(tr){const Yt=tr.length;if(Yt<=Lt)return String.fromCharCode.apply(String,tr);let Jt="",ir=0;for(;ir<Yt;)Jt+=String.fromCharCode.apply(String,tr.slice(ir,ir+=Lt));return Jt}function gt(tr,Yt,Jt){let ir="";Jt=Math.min(tr.length,Jt);for(let br=Yt;br<Jt;++br)ir+=String.fromCharCode(tr[br]&127);return ir}function Pt(tr,Yt,Jt){let ir="";Jt=Math.min(tr.length,Jt);for(let br=Yt;br<Jt;++br)ir+=String.fromCharCode(tr[br]);return ir}function Bt(tr,Yt,Jt){const ir=tr.length;(!Yt||Yt<0)&&(Yt=0),(!Jt||Jt<0||Jt>ir)&&(Jt=ir);let br="";for(let Jr=Yt;Jr<Jt;++Jr)br+=Hr[tr[Jr]];return br}function Ut(tr,Yt,Jt){const ir=tr.slice(Yt,Jt);let br="";for(let Jr=0;Jr<ir.length-1;Jr+=2)br+=String.fromCharCode(ir[Jr]+ir[Jr+1]*256);return br}ht.prototype.slice=function(Yt,Jt){const ir=this.length;Yt=~~Yt,Jt=Jt===void 0?ir:~~Jt,Yt<0?(Yt+=ir,Yt<0&&(Yt=0)):Yt>ir&&(Yt=ir),Jt<0?(Jt+=ir,Jt<0&&(Jt=0)):Jt>ir&&(Jt=ir),Jt<Yt&&(Jt=Yt);const br=this.subarray(Yt,Jt);return Object.setPrototypeOf(br,ht.prototype),br};function Ht(tr,Yt,Jt){if(tr%1!==0||tr<0)throw new RangeError("offset is not uint");if(tr+Yt>Jt)throw new RangeError("Trying to access beyond buffer length")}ht.prototype.readUintLE=ht.prototype.readUIntLE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=this[Yt],Jr=1,Ar=0;for(;++Ar<Jt&&(Jr*=256);)br+=this[Yt+Ar]*Jr;return br},ht.prototype.readUintBE=ht.prototype.readUIntBE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=this[Yt+--Jt],Jr=1;for(;Jt>0&&(Jr*=256);)br+=this[Yt+--Jt]*Jr;return br},ht.prototype.readUint8=ht.prototype.readUInt8=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,1,this.length),this[Yt]},ht.prototype.readUint16LE=ht.prototype.readUInt16LE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,2,this.length),this[Yt]|this[Yt+1]<<8},ht.prototype.readUint16BE=ht.prototype.readUInt16BE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,2,this.length),this[Yt]<<8|this[Yt+1]},ht.prototype.readUint32LE=ht.prototype.readUInt32LE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),(this[Yt]|this[Yt+1]<<8|this[Yt+2]<<16)+this[Yt+3]*16777216},ht.prototype.readUint32BE=ht.prototype.readUInt32BE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),this[Yt]*16777216+(this[Yt+1]<<16|this[Yt+2]<<8|this[Yt+3])},ht.prototype.readBigUInt64LE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=Jt+this[++Yt]*2**8+this[++Yt]*2**16+this[++Yt]*2**24,Jr=this[++Yt]+this[++Yt]*2**8+this[++Yt]*2**16+ir*2**24;return BigInt(br)+(BigInt(Jr)<<BigInt(32))}),ht.prototype.readBigUInt64BE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=Jt*2**24+this[++Yt]*2**16+this[++Yt]*2**8+this[++Yt],Jr=this[++Yt]*2**24+this[++Yt]*2**16+this[++Yt]*2**8+ir;return(BigInt(br)<<BigInt(32))+BigInt(Jr)}),ht.prototype.readIntLE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=this[Yt],Jr=1,Ar=0;for(;++Ar<Jt&&(Jr*=256);)br+=this[Yt+Ar]*Jr;return Jr*=128,br>=Jr&&(br-=Math.pow(2,8*Jt)),br},ht.prototype.readIntBE=function(Yt,Jt,ir){Yt=Yt>>>0,Jt=Jt>>>0,ir||Ht(Yt,Jt,this.length);let br=Jt,Jr=1,Ar=this[Yt+--br];for(;br>0&&(Jr*=256);)Ar+=this[Yt+--br]*Jr;return Jr*=128,Ar>=Jr&&(Ar-=Math.pow(2,8*Jt)),Ar},ht.prototype.readInt8=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,1,this.length),this[Yt]&128?(255-this[Yt]+1)*-1:this[Yt]},ht.prototype.readInt16LE=function(Yt,Jt){Yt=Yt>>>0,Jt||Ht(Yt,2,this.length);const ir=this[Yt]|this[Yt+1]<<8;return ir&32768?ir|4294901760:ir},ht.prototype.readInt16BE=function(Yt,Jt){Yt=Yt>>>0,Jt||Ht(Yt,2,this.length);const ir=this[Yt+1]|this[Yt]<<8;return ir&32768?ir|4294901760:ir},ht.prototype.readInt32LE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),this[Yt]|this[Yt+1]<<8|this[Yt+2]<<16|this[Yt+3]<<24},ht.prototype.readInt32BE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),this[Yt]<<24|this[Yt+1]<<16|this[Yt+2]<<8|this[Yt+3]},ht.prototype.readBigInt64LE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=this[Yt+4]+this[Yt+5]*2**8+this[Yt+6]*2**16+(ir<<24);return(BigInt(br)<<BigInt(32))+BigInt(Jt+this[++Yt]*2**8+this[++Yt]*2**16+this[++Yt]*2**24)}),ht.prototype.readBigInt64BE=Qr(function(Yt){Yt=Yt>>>0,gr(Yt,"offset");const Jt=this[Yt],ir=this[Yt+7];(Jt===void 0||ir===void 0)&&yn(Yt,this.length-8);const br=(Jt<<24)+this[++Yt]*2**16+this[++Yt]*2**8+this[++Yt];return(BigInt(br)<<BigInt(32))+BigInt(this[++Yt]*2**24+this[++Yt]*2**16+this[++Yt]*2**8+ir)}),ht.prototype.readFloatLE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),tt.read(this,Yt,!0,23,4)},ht.prototype.readFloatBE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,4,this.length),tt.read(this,Yt,!1,23,4)},ht.prototype.readDoubleLE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,8,this.length),tt.read(this,Yt,!0,52,8)},ht.prototype.readDoubleBE=function(Yt,Jt){return Yt=Yt>>>0,Jt||Ht(Yt,8,this.length),tt.read(this,Yt,!1,52,8)};function qt(tr,Yt,Jt,ir,br,Jr){if(!ht.isBuffer(tr))throw new TypeError('"buffer" argument must be a Buffer instance');if(Yt>br||Yt<Jr)throw new RangeError('"value" argument is out of bounds');if(Jt+ir>tr.length)throw new RangeError("Index out of range")}ht.prototype.writeUintLE=ht.prototype.writeUIntLE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,ir=ir>>>0,!br){const Yr=Math.pow(2,8*ir)-1;qt(this,Yt,Jt,ir,Yr,0)}let Jr=1,Ar=0;for(this[Jt]=Yt&255;++Ar<ir&&(Jr*=256);)this[Jt+Ar]=Yt/Jr&255;return Jt+ir},ht.prototype.writeUintBE=ht.prototype.writeUIntBE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,ir=ir>>>0,!br){const Yr=Math.pow(2,8*ir)-1;qt(this,Yt,Jt,ir,Yr,0)}let Jr=ir-1,Ar=1;for(this[Jt+Jr]=Yt&255;--Jr>=0&&(Ar*=256);)this[Jt+Jr]=Yt/Ar&255;return Jt+ir},ht.prototype.writeUint8=ht.prototype.writeUInt8=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,1,255,0),this[Jt]=Yt&255,Jt+1},ht.prototype.writeUint16LE=ht.prototype.writeUInt16LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,65535,0),this[Jt]=Yt&255,this[Jt+1]=Yt>>>8,Jt+2},ht.prototype.writeUint16BE=ht.prototype.writeUInt16BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,65535,0),this[Jt]=Yt>>>8,this[Jt+1]=Yt&255,Jt+2},ht.prototype.writeUint32LE=ht.prototype.writeUInt32LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,4294967295,0),this[Jt+3]=Yt>>>24,this[Jt+2]=Yt>>>16,this[Jt+1]=Yt>>>8,this[Jt]=Yt&255,Jt+4},ht.prototype.writeUint32BE=ht.prototype.writeUInt32BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,4294967295,0),this[Jt]=Yt>>>24,this[Jt+1]=Yt>>>16,this[Jt+2]=Yt>>>8,this[Jt+3]=Yt&255,Jt+4};function Vt(tr,Yt,Jt,ir,br){Sr(Yt,ir,br,tr,Jt,7);let Jr=Number(Yt&BigInt(4294967295));tr[Jt++]=Jr,Jr=Jr>>8,tr[Jt++]=Jr,Jr=Jr>>8,tr[Jt++]=Jr,Jr=Jr>>8,tr[Jt++]=Jr;let Ar=Number(Yt>>BigInt(32)&BigInt(4294967295));return tr[Jt++]=Ar,Ar=Ar>>8,tr[Jt++]=Ar,Ar=Ar>>8,tr[Jt++]=Ar,Ar=Ar>>8,tr[Jt++]=Ar,Jt}function zt(tr,Yt,Jt,ir,br){Sr(Yt,ir,br,tr,Jt,7);let Jr=Number(Yt&BigInt(4294967295));tr[Jt+7]=Jr,Jr=Jr>>8,tr[Jt+6]=Jr,Jr=Jr>>8,tr[Jt+5]=Jr,Jr=Jr>>8,tr[Jt+4]=Jr;let Ar=Number(Yt>>BigInt(32)&BigInt(4294967295));return tr[Jt+3]=Ar,Ar=Ar>>8,tr[Jt+2]=Ar,Ar=Ar>>8,tr[Jt+1]=Ar,Ar=Ar>>8,tr[Jt]=Ar,Jt+8}ht.prototype.writeBigUInt64LE=Qr(function(Yt,Jt=0){return Vt(this,Yt,Jt,BigInt(0),BigInt("0xffffffffffffffff"))}),ht.prototype.writeBigUInt64BE=Qr(function(Yt,Jt=0){return zt(this,Yt,Jt,BigInt(0),BigInt("0xffffffffffffffff"))}),ht.prototype.writeIntLE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,!br){const Kn=Math.pow(2,8*ir-1);qt(this,Yt,Jt,ir,Kn-1,-Kn)}let Jr=0,Ar=1,Yr=0;for(this[Jt]=Yt&255;++Jr<ir&&(Ar*=256);)Yt<0&&Yr===0&&this[Jt+Jr-1]!==0&&(Yr=1),this[Jt+Jr]=(Yt/Ar>>0)-Yr&255;return Jt+ir},ht.prototype.writeIntBE=function(Yt,Jt,ir,br){if(Yt=+Yt,Jt=Jt>>>0,!br){const Kn=Math.pow(2,8*ir-1);qt(this,Yt,Jt,ir,Kn-1,-Kn)}let Jr=ir-1,Ar=1,Yr=0;for(this[Jt+Jr]=Yt&255;--Jr>=0&&(Ar*=256);)Yt<0&&Yr===0&&this[Jt+Jr+1]!==0&&(Yr=1),this[Jt+Jr]=(Yt/Ar>>0)-Yr&255;return Jt+ir},ht.prototype.writeInt8=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,1,127,-128),Yt<0&&(Yt=255+Yt+1),this[Jt]=Yt&255,Jt+1},ht.prototype.writeInt16LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,32767,-32768),this[Jt]=Yt&255,this[Jt+1]=Yt>>>8,Jt+2},ht.prototype.writeInt16BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,2,32767,-32768),this[Jt]=Yt>>>8,this[Jt+1]=Yt&255,Jt+2},ht.prototype.writeInt32LE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,2147483647,-2147483648),this[Jt]=Yt&255,this[Jt+1]=Yt>>>8,this[Jt+2]=Yt>>>16,this[Jt+3]=Yt>>>24,Jt+4},ht.prototype.writeInt32BE=function(Yt,Jt,ir){return Yt=+Yt,Jt=Jt>>>0,ir||qt(this,Yt,Jt,4,2147483647,-2147483648),Yt<0&&(Yt=4294967295+Yt+1),this[Jt]=Yt>>>24,this[Jt+1]=Yt>>>16,this[Jt+2]=Yt>>>8,this[Jt+3]=Yt&255,Jt+4},ht.prototype.writeBigInt64LE=Qr(function(Yt,Jt=0){return Vt(this,Yt,Jt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ht.prototype.writeBigInt64BE=Qr(function(Yt,Jt=0){return zt(this,Yt,Jt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Wt(tr,Yt,Jt,ir,br,Jr){if(Jt+ir>tr.length)throw new RangeError("Index out of range");if(Jt<0)throw new RangeError("Index out of range")}function Xt(tr,Yt,Jt,ir,br){return Yt=+Yt,Jt=Jt>>>0,br||Wt(tr,Yt,Jt,4),tt.write(tr,Yt,Jt,ir,23,4),Jt+4}ht.prototype.writeFloatLE=function(Yt,Jt,ir){return Xt(this,Yt,Jt,!0,ir)},ht.prototype.writeFloatBE=function(Yt,Jt,ir){return Xt(this,Yt,Jt,!1,ir)};function Zt(tr,Yt,Jt,ir,br){return Yt=+Yt,Jt=Jt>>>0,br||Wt(tr,Yt,Jt,8),tt.write(tr,Yt,Jt,ir,52,8),Jt+8}ht.prototype.writeDoubleLE=function(Yt,Jt,ir){return Zt(this,Yt,Jt,!0,ir)},ht.prototype.writeDoubleBE=function(Yt,Jt,ir){return Zt(this,Yt,Jt,!1,ir)},ht.prototype.copy=function(Yt,Jt,ir,br){if(!ht.isBuffer(Yt))throw new TypeError("argument should be a Buffer");if(ir||(ir=0),!br&&br!==0&&(br=this.length),Jt>=Yt.length&&(Jt=Yt.length),Jt||(Jt=0),br>0&&br<ir&&(br=ir),br===ir||Yt.length===0||this.length===0)return 0;if(Jt<0)throw new RangeError("targetStart out of bounds");if(ir<0||ir>=this.length)throw new RangeError("Index out of range");if(br<0)throw new RangeError("sourceEnd out of bounds");br>this.length&&(br=this.length),Yt.length-Jt<br-ir&&(br=Yt.length-Jt+ir);const Jr=br-ir;return this===Yt&&typeof it.prototype.copyWithin=="function"?this.copyWithin(Jt,ir,br):it.prototype.set.call(Yt,this.subarray(ir,br),Jt),Jr},ht.prototype.fill=function(Yt,Jt,ir,br){if(typeof Yt=="string"){if(typeof Jt=="string"?(br=Jt,Jt=0,ir=this.length):typeof ir=="string"&&(br=ir,ir=this.length),br!==void 0&&typeof br!="string")throw new TypeError("encoding must be a string");if(typeof br=="string"&&!ht.isEncoding(br))throw new TypeError("Unknown encoding: "+br);if(Yt.length===1){const Ar=Yt.charCodeAt(0);(br==="utf8"&&Ar<128||br==="latin1")&&(Yt=Ar)}}else typeof Yt=="number"?Yt=Yt&255:typeof Yt=="boolean"&&(Yt=Number(Yt));if(Jt<0||this.length<Jt||this.length<ir)throw new RangeError("Out of range index");if(ir<=Jt)return this;Jt=Jt>>>0,ir=ir===void 0?this.length:ir>>>0,Yt||(Yt=0);let Jr;if(typeof Yt=="number")for(Jr=Jt;Jr<ir;++Jr)this[Jr]=Yt;else{const Ar=ht.isBuffer(Yt)?Yt:ht.from(Yt,br),Yr=Ar.length;if(Yr===0)throw new TypeError('The value "'+Yt+'" is invalid for argument "value"');for(Jr=0;Jr<ir-Jt;++Jr)this[Jr+Jt]=Ar[Jr%Yr]}return this};const Qt={};function Kt(tr,Yt,Jt){Qt[tr]=class extends Jt{constructor(){super(),Object.defineProperty(this,"message",{value:Yt.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${tr}]`,this.stack,delete this.name}get code(){return tr}set code(br){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:br,writable:!0})}toString(){return`${this.name} [${tr}]: ${this.message}`}}}Kt("ERR_BUFFER_OUT_OF_BOUNDS",function(tr){return tr?`${tr} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Kt("ERR_INVALID_ARG_TYPE",function(tr,Yt){return`The "${tr}" argument must be of type number. Received type ${typeof Yt}`},TypeError),Kt("ERR_OUT_OF_RANGE",function(tr,Yt,Jt){let ir=`The value of "${tr}" is out of range.`,br=Jt;return Number.isInteger(Jt)&&Math.abs(Jt)>2**32?br=ar(String(Jt)):typeof Jt=="bigint"&&(br=String(Jt),(Jt>BigInt(2)**BigInt(32)||Jt<-(BigInt(2)**BigInt(32)))&&(br=ar(br)),br+="n"),ir+=` It must be ${Yt}. Received ${br}`,ir},RangeError);function ar(tr){let Yt="",Jt=tr.length;const ir=tr[0]==="-"?1:0;for(;Jt>=ir+4;Jt-=3)Yt=`_${tr.slice(Jt-3,Jt)}${Yt}`;return`${tr.slice(0,Jt)}${Yt}`}function Er(tr,Yt,Jt){gr(Yt,"offset"),(tr[Yt]===void 0||tr[Yt+Jt]===void 0)&&yn(Yt,tr.length-(Jt+1))}function Sr(tr,Yt,Jt,ir,br,Jr){if(tr>Jt||tr<Yt){const Ar=typeof Yt=="bigint"?"n":"";let Yr;throw Jr>3?Yt===0||Yt===BigInt(0)?Yr=`>= 0${Ar} and < 2${Ar} ** ${(Jr+1)*8}${Ar}`:Yr=`>= -(2${Ar} ** ${(Jr+1)*8-1}${Ar}) and < 2 ** ${(Jr+1)*8-1}${Ar}`:Yr=`>= ${Yt}${Ar} and <= ${Jt}${Ar}`,new Qt.ERR_OUT_OF_RANGE("value",Yr,tr)}Er(ir,br,Jr)}function gr(tr,Yt){if(typeof tr!="number")throw new Qt.ERR_INVALID_ARG_TYPE(Yt,"number",tr)}function yn(tr,Yt,Jt){throw Math.floor(tr)!==tr?(gr(tr,Jt),new Qt.ERR_OUT_OF_RANGE(Jt||"offset","an integer",tr)):Yt<0?new Qt.ERR_BUFFER_OUT_OF_BOUNDS:new Qt.ERR_OUT_OF_RANGE(Jt||"offset",`>= ${Jt?1:0} and <= ${Yt}`,tr)}const Nr=/[^+/0-9A-Za-z-_]/g;function xr(tr){if(tr=tr.split("=")[0],tr=tr.trim().replace(Nr,""),tr.length<2)return"";for(;tr.length%4!==0;)tr=tr+"=";return tr}function gn(tr,Yt){Yt=Yt||1/0;let Jt;const ir=tr.length;let br=null;const Jr=[];for(let Ar=0;Ar<ir;++Ar){if(Jt=tr.charCodeAt(Ar),Jt>55295&&Jt<57344){if(!br){if(Jt>56319){(Yt-=3)>-1&&Jr.push(239,191,189);continue}else if(Ar+1===ir){(Yt-=3)>-1&&Jr.push(239,191,189);continue}br=Jt;continue}if(Jt<56320){(Yt-=3)>-1&&Jr.push(239,191,189),br=Jt;continue}Jt=(br-55296<<10|Jt-56320)+65536}else br&&(Yt-=3)>-1&&Jr.push(239,191,189);if(br=null,Jt<128){if((Yt-=1)<0)break;Jr.push(Jt)}else if(Jt<2048){if((Yt-=2)<0)break;Jr.push(Jt>>6|192,Jt&63|128)}else if(Jt<65536){if((Yt-=3)<0)break;Jr.push(Jt>>12|224,Jt>>6&63|128,Jt&63|128)}else if(Jt<1114112){if((Yt-=4)<0)break;Jr.push(Jt>>18|240,Jt>>12&63|128,Jt>>6&63|128,Jt&63|128)}else throw new Error("Invalid code point")}return Jr}function Tr(tr){const Yt=[];for(let Jt=0;Jt<tr.length;++Jt)Yt.push(tr.charCodeAt(Jt)&255);return Yt}function Pr(tr,Yt){let Jt,ir,br;const Jr=[];for(let Ar=0;Ar<tr.length&&!((Yt-=2)<0);++Ar)Jt=tr.charCodeAt(Ar),ir=Jt>>8,br=Jt%256,Jr.push(br),Jr.push(ir);return Jr}function An(tr){return et.toByteArray(xr(tr))}function dr(tr,Yt,Jt,ir){let br;for(br=0;br<ir&&!(br+Jt>=Yt.length||br>=tr.length);++br)Yt[br+Jt]=tr[br];return br}function Br(tr,Yt){return tr instanceof Yt||tr!=null&&tr.constructor!=null&&tr.constructor.name!=null&&tr.constructor.name===Yt.name}function qr(tr){return tr!==tr}const Hr=function(){const tr="0123456789abcdef",Yt=new Array(256);for(let Jt=0;Jt<16;++Jt){const ir=Jt*16;for(let br=0;br<16;++br)Yt[ir+br]=tr[Jt]+tr[br]}return Yt}();function Qr(tr){return typeof BigInt>"u"?Zn:tr}function Zn(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$C=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File$1=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob$1=buffer$1.atob,btoa$1=buffer$1.btoa,constants$2=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode,dist$f=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions,Buffer:Buffer$1$1,File:File$1,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob:atob$1,btoa:btoa$1,constants:constants$2,default:Buffer$C,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode},Symbol.toStringTag,{value:"Module"}));var _instanceof={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt={Object,Array,Function,Number,String,Date,RegExp};typeof Buffer$C<"u"&&(tt.Buffer=Buffer$C),typeof Promise<"u"&&(tt.Promise=Promise);const nt=Object.assign(at,{CONSTRUCTORS:tt});function at(){return{keyword:"instanceof",schemaType:["string","array"],compile(ot){if(typeof ot=="string"){const st=it(ot);return ct=>ct instanceof st}if(Array.isArray(ot)){const st=ot.map(it);return ct=>{for(const dt of st)if(ct instanceof dt)return!0;return!1}}throw new Error("ajv implementation error")},metaSchema:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}function it(ot){const st=tt[ot];if(st)return st;throw new Error(`invalid "instanceof" keyword value ${ot}`)}et.default=nt,_e.exports=nt})(_instanceof,_instanceof.exports);var _instanceofExports$1=_instanceof.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(_instanceofExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(_instanceof$1,_instanceof$1.exports);var _instanceofExports=_instanceof$1.exports,range$6={exports:{}},range$5={exports:{}},_range$1={};Object.defineProperty(_range$1,"__esModule",{value:!0});function getRangeDef(_e){return()=>({keyword:_e,type:"number",schemaType:"array",macro:function([tt,nt]){return et(tt,nt),_e==="range"?{minimum:tt,maximum:nt}:{exclusiveMinimum:tt,exclusiveMaximum:nt}},metaSchema:{type:"array",minItems:2,maxItems:2,items:{type:"number"}}});function et(tt,nt){if(tt>nt||_e==="exclusiveRange"&&tt===nt)throw new Error("There are no numbers in range")}}_range$1.default=getRangeDef;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_range$1).default)("range");et.default=at,_e.exports=at})(range$5,range$5.exports);var rangeExports$2=range$5.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(rangeExports$2),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(range$6,range$6.exports);var rangeExports$1=range$6.exports,exclusiveRange$1={exports:{}},exclusiveRange={exports:{}};(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_range$1).default)("exclusiveRange");et.default=at,_e.exports=at})(exclusiveRange,exclusiveRange.exports);var exclusiveRangeExports$1=exclusiveRange.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(exclusiveRangeExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(exclusiveRange$1,exclusiveRange$1.exports);var exclusiveRangeExports=exclusiveRange$1.exports,regexp$2={exports:{}},regexp$1={exports:{}},_util$1={};Object.defineProperty(_util$1,"__esModule",{value:!0});_util$1.usePattern=_util$1.metaSchemaRef=void 0;const codegen_1=codegen,META_SCHEMA_ID="http://json-schema.org/schema";function metaSchemaRef({defaultMeta:_e}={}){return _e===!1?{}:{$ref:_e||META_SCHEMA_ID}}_util$1.metaSchemaRef=metaSchemaRef;function usePattern({gen:_e,it:{opts:et}},tt,nt=et.unicodeRegExp?"u":""){const at=new RegExp(tt,nt);return _e.scopeValue("pattern",{key:at.toString(),ref:at,code:(0,codegen_1._)`new RegExp(${tt}, ${nt})`})}_util$1.usePattern=usePattern;(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt=_util$1,at={type:"object",properties:{pattern:{type:"string"},flags:{type:"string",nullable:!0}},required:["pattern"],additionalProperties:!1},it=/^\/(.*)\/([gimuy]*)$/;function ot(){return{keyword:"regexp",type:"string",schemaType:["string","object"],code(st){const{data:ct,schema:dt}=st,ht=pt(dt);st.pass((0,tt._)`${ht}.test(${ct})`);function pt(mt){if(typeof mt=="object")return(0,nt.usePattern)(st,mt.pattern,mt.flags);const vt=it.exec(mt);if(vt)return(0,nt.usePattern)(st,vt[1],vt[2]);throw new Error("cannot parse string into RegExp")}},metaSchema:{anyOf:[{type:"string"},at]}}}et.default=ot,_e.exports=ot})(regexp$1,regexp$1.exports);var regexpExports$1=regexp$1.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(regexpExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(regexp$2,regexp$2.exports);var regexpExports=regexp$2.exports,transform$1={exports:{}},transform={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt={trimStart:ct=>ct.trimStart(),trimEnd:ct=>ct.trimEnd(),trimLeft:ct=>ct.trimStart(),trimRight:ct=>ct.trimEnd(),trim:ct=>ct.trim(),toLowerCase:ct=>ct.toLowerCase(),toUpperCase:ct=>ct.toUpperCase(),toEnumCase:(ct,dt)=>(dt==null?void 0:dt.hash[st(ct)])||ct},at=Object.assign(it,{transform:nt});function it(){return{keyword:"transform",schemaType:"array",before:"enum",code(ct){const{gen:dt,data:ht,schema:pt,parentSchema:mt,it:vt}=ct,{parentData:bt,parentDataProperty:_t}=vt,wt=pt;if(!wt.length)return;let Et;if(wt.includes("toEnumCase")){const Tt=ot(mt);Et=dt.scopeValue("obj",{ref:Tt,code:(0,tt.stringify)(Tt)})}dt.if((0,tt._)`typeof ${ht} == "string" && ${bt} !== undefined`,()=>{dt.assign(ht,St(wt.slice())),dt.assign((0,tt._)`${bt}[${_t}]`,ht)});function St(Tt){if(!Tt.length)return ht;const Ct=Tt.pop();if(!(Ct in nt))throw new Error(`transform: unknown transformation ${Ct}`);const Nt=dt.scopeValue("func",{ref:nt[Ct],code:(0,tt._)`require("ajv-keywords/dist/definitions/transform").transform${(0,tt.getProperty)(Ct)}`}),Dt=St(Tt);return Et&&Ct==="toEnumCase"?(0,tt._)`${Nt}(${Dt}, ${Et})`:(0,tt._)`${Nt}(${Dt})`}},metaSchema:{type:"array",items:{type:"string",enum:Object.keys(nt)}}}}function ot(ct){const dt={hash:{}};if(!ct.enum)throw new Error('transform: "toEnumCase" requires "enum"');for(const ht of ct.enum){if(typeof ht!="string")continue;const pt=st(ht);if(dt.hash[pt])throw new Error('transform: "toEnumCase" requires all lowercased "enum" values to be unique');dt.hash[pt]=ht}return dt}function st(ct){return ct.toLowerCase()}et.default=at,_e.exports=at})(transform,transform.exports);var transformExports$1=transform.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(transformExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(transform$1,transform$1.exports);var transformExports=transform$1.exports,uniqueItemProperties$1={exports:{}},uniqueItemProperties={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=fastDeepEqual,nt=["number","integer","string","boolean","null"];function at(){return{keyword:"uniqueItemProperties",type:"array",schemaType:"array",compile(ot,st){const ct=it(ot,st);return dt=>{if(dt.length<=1)return!0;for(let ht=0;ht<ot.length;ht++){const pt=ot[ht];if(ct[ht]){const mt={};for(const vt of dt){if(!vt||typeof vt!="object")continue;let bt=vt[pt];if(!(bt&&typeof bt=="object")){if(typeof bt=="string"&&(bt='"'+bt),mt[bt])return!1;mt[bt]=!0}}}else for(let mt=dt.length;mt--;){const vt=dt[mt];if(!(!vt||typeof vt!="object"))for(let bt=mt;bt--;){const _t=dt[bt];if(_t&&typeof _t=="object"&&tt(vt[pt],_t[pt]))return!1}}}return!0}},metaSchema:{type:"array",items:{type:"string"}}}}et.default=at;function it(ot,st){return ot.map(ct=>{var dt,ht,pt;const mt=(pt=(ht=(dt=st.items)===null||dt===void 0?void 0:dt.properties)===null||ht===void 0?void 0:ht[ct])===null||pt===void 0?void 0:pt.type;return Array.isArray(mt)?!mt.includes("object")&&!mt.includes("array"):nt.includes(mt)})}_e.exports=at})(uniqueItemProperties,uniqueItemProperties.exports);var uniqueItemPropertiesExports$1=uniqueItemProperties.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(uniqueItemPropertiesExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(uniqueItemProperties$1,uniqueItemProperties$1.exports);var uniqueItemPropertiesExports=uniqueItemProperties$1.exports,allRequired$1={exports:{}},allRequired={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});function tt(){return{keyword:"allRequired",type:"object",schemaType:"boolean",macro(nt,at){if(!nt)return!0;const it=Object.keys(at.properties);return it.length===0?!0:{required:it}},dependencies:["properties"]}}et.default=tt,_e.exports=tt})(allRequired,allRequired.exports);var allRequiredExports$1=allRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(allRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(allRequired$1,allRequired$1.exports);var allRequiredExports=allRequired$1.exports,anyRequired$1={exports:{}},anyRequired={exports:{}},_required={};Object.defineProperty(_required,"__esModule",{value:!0});function getRequiredDef(_e){return()=>({keyword:_e,type:"object",schemaType:"array",macro(et){return et.length===0?!0:et.length===1?{required:et}:{[_e==="anyRequired"?"anyOf":"oneOf"]:et.map(nt=>({required:[nt]}))}},metaSchema:{type:"array",items:{type:"string"}}})}_required.default=getRequiredDef;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_required).default)("anyRequired");et.default=at,_e.exports=at})(anyRequired,anyRequired.exports);var anyRequiredExports$1=anyRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(anyRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(anyRequired$1,anyRequired$1.exports);var anyRequiredExports=anyRequired$1.exports,oneRequired$1={exports:{}},oneRequired={exports:{}};(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const at=(0,tt(_required).default)("oneRequired");et.default=at,_e.exports=at})(oneRequired,oneRequired.exports);var oneRequiredExports$1=oneRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(oneRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(oneRequired$1,oneRequired$1.exports);var oneRequiredExports=oneRequired$1.exports,patternRequired$1={exports:{}},patternRequired={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt=_util$1,at={message:({params:{missingPattern:ot}})=>(0,tt.str)`should have property matching pattern '${ot}'`,params:({params:{missingPattern:ot}})=>(0,tt._)`{missingPattern: ${ot}}`};function it(){return{keyword:"patternRequired",type:"object",schemaType:"array",error:at,code(ot){const{gen:st,schema:ct,data:dt}=ot;if(ct.length===0)return;const ht=st.let("valid",!0);for(const mt of ct)pt(mt);function pt(mt){const vt=st.let("matched",!1);st.forIn("key",dt,bt=>{st.assign(vt,(0,tt._)`${(0,nt.usePattern)(ot,mt)}.test(${bt})`),st.if(vt,()=>st.break())}),ot.setParams({missingPattern:mt}),st.assign(ht,(0,tt.and)(ht,vt)),ot.pass(ht)}},metaSchema:{type:"array",items:{type:"string",format:"regex"},uniqueItems:!0}}}et.default=it,_e.exports=it})(patternRequired,patternRequired.exports);var patternRequiredExports$1=patternRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(patternRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(patternRequired$1,patternRequired$1.exports);var patternRequiredExports=patternRequired$1.exports,prohibited$1={exports:{}},prohibited={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});function tt(){return{keyword:"prohibited",type:"object",schemaType:"array",macro:function(nt){return nt.length===0?!0:nt.length===1?{not:{required:nt}}:{not:{anyOf:nt.map(at=>({required:[at]}))}}},metaSchema:{type:"array",items:{type:"string"}}}}et.default=tt,_e.exports=tt})(prohibited,prohibited.exports);var prohibitedExports$1=prohibited.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(prohibitedExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(prohibited$1,prohibited$1.exports);var prohibitedExports=prohibited$1.exports,deepProperties$1={exports:{}},deepProperties={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=_util$1;function nt(ot){return{keyword:"deepProperties",type:"object",schemaType:"object",macro:function(st){const ct=[];for(const dt in st)ct.push(at(dt,st[dt]));return{allOf:ct}},metaSchema:{type:"object",propertyNames:{type:"string",format:"json-pointer"},additionalProperties:(0,tt.metaSchemaRef)(ot)}}}et.default=nt;function at(ot,st){const ct=ot.split("/"),dt={};let ht=dt;for(let pt=1;pt<ct.length;pt++){let mt=ct[pt];const vt=pt===ct.length-1;mt=it(mt);const bt=ht.properties={};let _t;if(/[0-9]+/.test(mt)){let wt=+mt;for(_t=ht.items=[],ht.type=["object","array"];wt--;)_t.push({})}else ht.type="object";ht=vt?st:{},bt[mt]=ht,_t&&_t.push(ht)}return dt}function it(ot){return ot.replace(/~1/g,"/").replace(/~0/g,"~")}_e.exports=nt})(deepProperties,deepProperties.exports);var deepPropertiesExports$1=deepProperties.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(deepPropertiesExports$1),at=(it,ot)=>it.addKeyword((0,nt.default)(ot));et.default=at,_e.exports=at})(deepProperties$1,deepProperties$1.exports);var deepPropertiesExports=deepProperties$1.exports,deepRequired$1={exports:{}},deepRequired={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen;function nt(){return{keyword:"deepRequired",type:"object",schemaType:"array",code(it){const{schema:ot,data:st}=it,ct=ot.map(ht=>(0,tt._)`(${dt(ht)}) === undefined`);it.fail((0,tt.or)(...ct));function dt(ht){if(ht==="")throw new Error("empty JSON pointer not allowed");const pt=ht.split("/");let mt=st;const vt=pt.map((bt,_t)=>_t?mt=(0,tt._)`${mt}${(0,tt.getProperty)(at(bt))}`:mt);return(0,tt.and)(...vt)}},metaSchema:{type:"array",items:{type:"string",format:"json-pointer"}}}}et.default=nt;function at(it){return it.replace(/~1/g,"/").replace(/~0/g,"~")}_e.exports=nt})(deepRequired,deepRequired.exports);var deepRequiredExports$1=deepRequired.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(deepRequiredExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(deepRequired$1,deepRequired$1.exports);var deepRequiredExports=deepRequired$1.exports,dynamicDefaults$1={exports:{}},dynamicDefaults={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt={},nt={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:ht=>{var pt;const mt=(pt=ht==null?void 0:ht.max)!==null&&pt!==void 0?pt:2;return()=>Math.floor(Math.random()*mt)},seq:ht=>{var pt;const mt=(pt=ht==null?void 0:ht.name)!==null&&pt!==void 0?pt:"";return tt[mt]||(tt[mt]=0),()=>tt[mt]++}},at=Object.assign(it,{DEFAULTS:nt});function it(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(ht,pt,mt){if(!mt.opts.useDefaults||mt.compositeRule)return()=>!0;const vt={};for(const _t in ht)vt[_t]=ot(ht[_t]);const bt=mt.opts.useDefaults==="empty";return _t=>{for(const wt in ht)(_t[wt]===void 0||bt&&(_t[wt]===null||_t[wt]===""))&&(_t[wt]=vt[wt]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function ot(ht){return typeof ht=="object"?st(ht):ct(ht)}function st({func:ht,args:pt}){const mt=nt[ht];return dt(ht,mt),mt(pt)}function ct(ht=""){const pt=nt[ht];return dt(ht,pt),pt()}function dt(ht,pt){if(!pt)throw new Error(`invalid "dynamicDefaults" keyword property value: ${ht}`)}et.default=at,_e.exports=at})(dynamicDefaults,dynamicDefaults.exports);var dynamicDefaultsExports$1=dynamicDefaults.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(dynamicDefaultsExports$1),at=it=>it.addKeyword((0,nt.default)());et.default=at,_e.exports=at})(dynamicDefaults$1,dynamicDefaults$1.exports);var dynamicDefaultsExports=dynamicDefaults$1.exports,select$2={exports:{}},select$1={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=codegen,nt=_util$1,at={message:({params:{schemaProp:ot}})=>ot?(0,tt.str)`should match case "${ot}" schema`:(0,tt.str)`should match default case schema`,params:({params:{schemaProp:ot}})=>ot?(0,tt._)`{failingCase: ${ot}}`:(0,tt._)`{failingDefault: true}`};function it(ot){const st=(0,nt.metaSchemaRef)(ot);return[{keyword:"select",schemaType:["string","number","boolean","null"],$data:!0,error:at,dependencies:["selectCases"],code(ct){const{gen:dt,schemaCode:ht,parentSchema:pt}=ct;ct.block$data(tt.nil,()=>{const mt=dt.let("valid",!0),vt=dt.name("_valid"),bt=dt.const("value",(0,tt._)`${ht} === null ? "null" : ${ht}`);dt.if(!1);for(const _t in pt.selectCases){ct.setParams({schemaProp:_t}),dt.elseIf((0,tt._)`"" + ${bt} == ${_t}`);const wt=ct.subschema({keyword:"selectCases",schemaProp:_t},vt);ct.mergeEvaluated(wt,tt.Name),dt.assign(mt,vt)}if(dt.else(),pt.selectDefault!==void 0){ct.setParams({schemaProp:void 0});const _t=ct.subschema({keyword:"selectDefault"},vt);ct.mergeEvaluated(_t,tt.Name),dt.assign(mt,vt)}dt.endIf(),ct.pass(mt)})}},{keyword:"selectCases",dependencies:["select"],metaSchema:{type:"object",additionalProperties:st}},{keyword:"selectDefault",dependencies:["select","selectCases"],metaSchema:st}]}et.default=it,_e.exports=it})(select$1,select$1.exports);var selectExports$1=select$1.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(selectExports$1),at=(it,ot)=>((0,nt.default)(ot).forEach(st=>it.addKeyword(st)),it);et.default=at,_e.exports=at})(select$2,select$2.exports);var selectExports=select$2.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(_typeofExports),at=tt(_instanceofExports),it=tt(rangeExports$1),ot=tt(exclusiveRangeExports),st=tt(regexpExports),ct=tt(transformExports),dt=tt(uniqueItemPropertiesExports),ht=tt(allRequiredExports),pt=tt(anyRequiredExports),mt=tt(oneRequiredExports),vt=tt(patternRequiredExports),bt=tt(prohibitedExports),_t=tt(deepPropertiesExports),wt=tt(deepRequiredExports),Et=tt(dynamicDefaultsExports),St=tt(selectExports),Tt={typeof:nt.default,instanceof:at.default,range:it.default,exclusiveRange:ot.default,regexp:st.default,transform:ct.default,uniqueItemProperties:dt.default,allRequired:ht.default,anyRequired:pt.default,oneRequired:mt.default,patternRequired:vt.default,prohibited:bt.default,deepProperties:_t.default,deepRequired:wt.default,dynamicDefaults:Et.default,select:St.default};et.default=Tt,_e.exports=Tt})(keywords$4,keywords$4.exports);var keywordsExports=keywords$4.exports;(function(_e,et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};Object.defineProperty(et,"__esModule",{value:!0});const nt=tt(keywordsExports),at=(ot,st)=>{if(Array.isArray(st)){for(const ct of st)it(ct)(ot);return ot}if(st)return it(st)(ot),ot;for(st in nt.default)it(st)(ot);return ot};at.get=it;function it(ot){const st=nt.default[ot];if(!st)throw new Error("Unknown keyword "+ot);return st}et.default=at,_e.exports=at,_e.exports.default=at})(dist$g,dist$g.exports);var distExports$4=dist$g.exports,dist$e={exports:{}};(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});const tt=ajvExports,nt=codegen,at=code$2,it=validate$2,ot=errors,st=names$2,ct="errorMessage",dt=new tt.Name("emUsed"),ht={required:"missingProperty",dependencies:"property",dependentRequired:"property"},pt=/\$\{[^}]+\}/,mt=/\$\{([^}]+)\}/g,vt=/^""\s*\+\s*|\s*\+\s*""$/g;function bt(wt){return{keyword:ct,schemaType:["string","object"],post:!0,code(Et){const{gen:St,data:Tt,schema:Ct,schemaValue:Nt,it:Dt}=Et;if(Dt.createErrors===!1)return;const kt=Ct,Ft=nt.strConcat(st.default.instancePath,Dt.errorPath);St.if(tt._`${st.default.errors} > 0`,()=>{if(typeof kt=="object"){const[Ut,Ht]=Gt(kt);Ht&&Rt(Ht),Ut&&yt(Ut),$t(jt(kt))}const Bt=typeof kt=="string"?kt:kt._;Bt&&xt(Bt),wt.keepErrors||At()});function jt({properties:Bt,items:Ut}){const Ht={};if(Bt){Ht.props={};for(const qt in Bt)Ht.props[qt]=[]}if(Ut){Ht.items={};for(let qt=0;qt<Ut.length;qt++)Ht.items[qt]=[]}return Ht}function Gt(Bt){let Ut,Ht;for(const qt in Bt){if(qt==="properties"||qt==="items")continue;const Vt=Bt[qt];if(typeof Vt=="object"){Ut||(Ut={});const zt=Ut[qt]={};for(const Wt in Vt)zt[Wt]=[]}else Ht||(Ht={}),Ht[qt]=[]}return[Ut,Ht]}function Rt(Bt){const Ut=St.const("emErrors",tt.stringify(Bt)),Ht=St.const("templates",Ot(Bt,Ct));St.forOf("err",st.default.vErrors,Wt=>St.if(Mt(Wt,Ut),()=>St.code(tt._`${Ut}[${Wt}.keyword].push(${Wt})`).assign(tt._`${Wt}.${dt}`,!0)));const{singleError:qt}=wt;if(qt){const Wt=St.let("message",tt._`""`),Xt=St.let("paramsErrors",tt._`[]`);Vt(Zt=>{St.if(Wt,()=>St.code(tt._`${Wt} += ${typeof qt=="string"?qt:";"}`)),St.code(tt._`${Wt} += ${zt(Zt)}`),St.assign(Xt,tt._`${Xt}.concat(${Ut}[${Zt}])`)}),ot.reportError(Et,{message:Wt,params:tt._`{errors: ${Xt}}`})}else Vt(Wt=>ot.reportError(Et,{message:zt(Wt),params:tt._`{errors: ${Ut}[${Wt}]}`}));function Vt(Wt){St.forIn("key",Ut,Xt=>St.if(tt._`${Ut}[${Xt}].length`,()=>Wt(Xt)))}function zt(Wt){return tt._`${Wt} in ${Ht} ? ${Ht}[${Wt}]() : ${Nt}[${Wt}]`}}function yt(Bt){const Ut=St.const("emErrors",tt.stringify(Bt)),Ht=[];for(const Xt in Bt)Ht.push([Xt,Ot(Bt[Xt],Ct[Xt])]);const qt=St.const("templates",St.object(...Ht)),Vt=St.scopeValue("obj",{ref:ht,code:tt.stringify(ht)}),zt=St.let("emPropParams"),Wt=St.let("emParamsErrors");St.forOf("err",st.default.vErrors,Xt=>St.if(Mt(Xt,Ut),()=>{St.assign(zt,tt._`${Vt}[${Xt}.keyword]`),St.assign(Wt,tt._`${Ut}[${Xt}.keyword][${Xt}.params[${zt}]]`),St.if(Wt,()=>St.code(tt._`${Wt}.push(${Xt})`).assign(tt._`${Xt}.${dt}`,!0))})),St.forIn("key",Ut,Xt=>St.forIn("keyProp",tt._`${Ut}[${Xt}]`,Zt=>{St.assign(Wt,tt._`${Ut}[${Xt}][${Zt}]`),St.if(tt._`${Wt}.length`,()=>{const Qt=St.const("tmpl",tt._`${qt}[${Xt}] && ${qt}[${Xt}][${Zt}]`);ot.reportError(Et,{message:tt._`${Qt} ? ${Qt}() : ${Nt}[${Xt}][${Zt}]`,params:tt._`{errors: ${Wt}}`})})}))}function $t(Bt){const{props:Ut,items:Ht}=Bt;if(!Ut&&!Ht)return;const qt=tt._`typeof ${Tt} == "object"`,Vt=tt._`Array.isArray(${Tt})`,zt=St.let("emErrors");let Wt,Xt;const Zt=St.let("templates");Ut&&Ht?(Wt=St.let("emChildKwd"),St.if(qt),St.if(Vt,()=>{Qt(Ht,Ct.items),St.assign(Wt,tt.str`items`)},()=>{Qt(Ut,Ct.properties),St.assign(Wt,tt.str`properties`)}),Xt=tt._`[${Wt}]`):Ht?(St.if(Vt),Qt(Ht,Ct.items),Xt=tt._`.items`):Ut&&(St.if(nt.and(qt,nt.not(Vt))),Qt(Ut,Ct.properties),Xt=tt._`.properties`),St.forOf("err",st.default.vErrors,Kt=>It(Kt,zt,ar=>St.code(tt._`${zt}[${ar}].push(${Kt})`).assign(tt._`${Kt}.${dt}`,!0))),St.forIn("key",zt,Kt=>St.if(tt._`${zt}[${Kt}].length`,()=>{ot.reportError(Et,{message:tt._`${Kt} in ${Zt} ? ${Zt}[${Kt}]() : ${Nt}${Xt}[${Kt}]`,params:tt._`{errors: ${zt}[${Kt}]}`}),St.assign(tt._`${st.default.vErrors}[${st.default.errors}-1].instancePath`,tt._`${Ft} + "/" + ${Kt}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),St.endIf();function Qt(Kt,ar){St.assign(zt,tt.stringify(Kt)),St.assign(Zt,Ot(Kt,ar))}}function xt(Bt){const Ut=St.const("emErrs",tt._`[]`);St.forOf("err",st.default.vErrors,Ht=>St.if(Lt(Ht),()=>St.code(tt._`${Ut}.push(${Ht})`).assign(tt._`${Ht}.${dt}`,!0))),St.if(tt._`${Ut}.length`,()=>ot.reportError(Et,{message:gt(Bt),params:tt._`{errors: ${Ut}}`}))}function At(){const Bt=St.const("emErrs",tt._`[]`);St.forOf("err",st.default.vErrors,Ut=>St.if(tt._`!${Ut}.${dt}`,()=>St.code(tt._`${Bt}.push(${Ut})`))),St.assign(st.default.vErrors,Bt).assign(st.default.errors,tt._`${Bt}.length`)}function Mt(Bt,Ut){return nt.and(tt._`${Bt}.keyword !== ${ct}`,tt._`!${Bt}.${dt}`,tt._`${Bt}.instancePath === ${Ft}`,tt._`${Bt}.keyword in ${Ut}`,tt._`${Bt}.schemaPath.indexOf(${Dt.errSchemaPath}) === 0`,tt._`/^\\/[^\\/]*$/.test(${Bt}.schemaPath.slice(${Dt.errSchemaPath.length}))`)}function It(Bt,Ut,Ht){St.if(nt.and(tt._`${Bt}.keyword !== ${ct}`,tt._`!${Bt}.${dt}`,tt._`${Bt}.instancePath.indexOf(${Ft}) === 0`),()=>{const qt=St.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:tt._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),Vt=St.const("emMatches",tt._`${qt}.exec(${Bt}.instancePath.slice(${Ft}.length))`),zt=St.const("emChild",tt._`${Vt} && ${Vt}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);St.if(tt._`${zt} !== undefined && ${zt} in ${Ut}`,()=>Ht(zt))})}function Lt(Bt){return nt.and(tt._`${Bt}.keyword !== ${ct}`,tt._`!${Bt}.${dt}`,nt.or(tt._`${Bt}.instancePath === ${Ft}`,nt.and(tt._`${Bt}.instancePath.indexOf(${Ft}) === 0`,tt._`${Bt}.instancePath[${Ft}.length] === "/"`)),tt._`${Bt}.schemaPath.indexOf(${Dt.errSchemaPath}) === 0`,tt._`${Bt}.schemaPath[${Dt.errSchemaPath}.length] === "/"`)}function Ot(Bt,Ut){const Ht=[];for(const qt in Bt){const Vt=Ut[qt];pt.test(Vt)&&Ht.push([qt,Pt(Vt)])}return St.object(...Ht)}function gt(Bt){return pt.test(Bt)?new at._Code(at.safeStringify(Bt).replace(mt,(Ut,Ht)=>`" + JSON.stringify(${it.getData(Ht,Dt)}) + "`).replace(vt,"")):tt.stringify(Bt)}function Pt(Bt){return tt._`function(){return ${gt(Bt)}}`}},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const _t=(wt,Et={})=>{if(!wt.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(wt.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return wt.addKeyword(bt(Et))};et.default=_t,_e.exports=_t,_e.exports.default=_t})(dist$e,dist$e.exports);var distExports$3=dist$e.exports,__importDefault$1I=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(validation$4,"__esModule",{value:!0});validation$4.validateType=validation$4.generateLazyValidator=validation$4.Ajv=void 0;const ajv_1$2=__importDefault$1I(ajvExports);validation$4.Ajv=ajv_1$2.default;const ajv_keywords_1$2=__importDefault$1I(distExports$4),ajv_errors_1$2=__importDefault$1I(distExports$3);function generateLazyValidator$2(_e,et){let tt=null;const nt=(at,it)=>{if(!tt){const ot=new ajv_1$2.default({$data:!0,allErrors:!0});(0,ajv_keywords_1$2.default)(ot),(0,ajv_errors_1$2.default)(ot,{singleError:!0}),et==null||et.forEach(st=>ot.addKeyword(st)),tt=ot.compile(_e),Object.defineProperty(nt,"errors",{get(){return tt==null?void 0:tt.errors}})}return tt(at,it)};return nt}validation$4.generateLazyValidator=generateLazyValidator$2;function validateType$2(_e,et){return _e.validate(et)}validation$4.validateType=validateType$2;(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Network=void 0;const et=validation$4;(function(tt){tt.ETHEREUM="ETHEREUM",tt.MATIC="MATIC",tt.AVALANCHE="AVALANCHE",tt.BSC="BINANCE SMART CHAIN",tt.OPTIMISM="OPTIMISM",tt.ARBITRUM="ARBITRUM",tt.FANTOM="FANTOM"})(_e.Network||(_e.Network={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Network||(_e.Network={}))})(network$3);const isLoadingType=(_e,et)=>_e.some(tt=>tt.type===et),CONNECT_WALLET_REQUEST="[Request] Connect Wallet",CONNECT_WALLET_SUCCESS="[Success] Connect Wallet",CONNECT_WALLET_FAILURE="[Failure] Connect Wallet",connectWalletRequest=()=>action(CONNECT_WALLET_REQUEST),connectWalletSuccess=_e=>action(CONNECT_WALLET_SUCCESS,{wallet:_e}),connectWalletFailure=_e=>action(CONNECT_WALLET_FAILURE,{error:_e}),ENABLE_WALLET_REQUEST="[Request] Enable Wallet",ENABLE_WALLET_SUCCESS="[Success] Enable Wallet",ENABLE_WALLET_FAILURE="[Failure] Enable Wallet",enableWalletRequest=_e=>action(ENABLE_WALLET_REQUEST,{providerType:_e}),enableWalletSuccess=_e=>action(ENABLE_WALLET_SUCCESS,{providerType:_e}),enableWalletFailure=_e=>action(ENABLE_WALLET_FAILURE,{error:_e}),CHANGE_ACCOUNT="Change Account",changeAccount=_e=>action(CHANGE_ACCOUNT,{wallet:_e}),CHANGE_NETWORK$1="Change Network",changeNetwork=_e=>action(CHANGE_NETWORK$1,{wallet:_e}),DISCONNECT_WALLET="Disconnect",disconnectWallet=()=>action(DISCONNECT_WALLET),FETCH_WALLET_REQUEST="[Request] Fetch Wallet",FETCH_WALLET_SUCCESS="[Success] Fetch Wallet",FETCH_WALLET_FAILURE="[Failure] Fetch Wallet",fetchWalletRequest=()=>action(FETCH_WALLET_REQUEST),fetchWalletSuccess=_e=>action(FETCH_WALLET_SUCCESS,{wallet:_e}),fetchWalletFailure=_e=>action(FETCH_WALLET_FAILURE,{error:_e}),SWITCH_NETWORK_REQUEST="[Request] Switch Network",SWITCH_NETWORK_SUCCESS="[Success] Switch Network",SWITCH_NETWORK_FAILURE="[Failure] Switch Network",switchNetworkRequest=(_e,et)=>action(SWITCH_NETWORK_REQUEST,{chainId:_e,fromChainId:et}),switchNetworkSuccess=_e=>action(SWITCH_NETWORK_SUCCESS,{chainId:_e}),switchNetworkFailure=(_e,et)=>action(SWITCH_NETWORK_FAILURE,{chainId:_e,error:et}),SET_APP_CHAIN_ID="Set App ChainId",setAppChainId=_e=>action(SET_APP_CHAIN_ID,{chainId:_e}),getState$4=_e=>_e.wallet,getData$a=_e=>getState$4(_e).data,getLoading$2=_e=>getState$4(_e).loading,getError$1=_e=>getState$4(_e).error,isConnected=_e=>getData$a(_e)!==null,isConnecting=_e=>isLoadingType(getLoading$2(_e),CONNECT_WALLET_REQUEST),isEnabling=_e=>isLoadingType(getLoading$2(_e),ENABLE_WALLET_REQUEST),getAddress$2=_e=>isConnected(_e)?getData$a(_e).address:void 0,getChainId=_e=>isConnected(_e)?getData$a(_e).chainId:void 0,getNetwork$1=_e=>isConnected(_e)?getData$a(_e).network:void 0,getNetworks=_e=>isConnected(_e)?getData$a(_e).networks:void 0,isSwitchingNetwork=_e=>isLoadingType(getLoading$2(_e),SWITCH_NETWORK_REQUEST),getAppChainId=_e=>getState$4(_e).appChainId,getManaBalances=_e=>{if(!isConnected(_e))return;const et={},tt=[network$3.Network.ETHEREUM,network$3.Network.MATIC],nt=getNetworks(_e);for(const at of tt)nt[at]&&(et[at]=nt[at].mana);return et};var chainId$2={},chainName$2={},hasRequiredChainName$2;function requireChainName$2(){return hasRequiredChainName$2||(hasRequiredChainName$2=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.getChainId=_e.ChainName=void 0;const et=validation$4,tt=requireChainId$2();var nt;(function(it){it.ETHEREUM_MAINNET="Ethereum Mainnet",it.ETHEREUM_ROPSTEN="Ropsten",it.ETHEREUM_RINKEBY="Rinkeby",it.ETHEREUM_GOERLI="Goerli",it.ETHEREUM_KOVAN="Kovan",it.ETHEREUM_SEPOLIA="Sepolia",it.MATIC_MAINNET="Polygon",it.MATIC_MUMBAI="Mumbai",it.MATIC_AMOY="Amoy",it.AVALANCHE_MAINNET="Avalanche",it.BINANCE_MAINNET="Binance Smart Chain",it.ARBITRUM_MAINNET="Arbitrum",it.OPTIMISM_MAINNET="Optimism",it.FANTOM_MAINNET="Fantom"})(nt=_e.ChainName||(_e.ChainName={}));function at(it){switch(it){case nt.ETHEREUM_MAINNET:return tt.ChainId.ETHEREUM_MAINNET;case nt.ETHEREUM_ROPSTEN:return tt.ChainId.ETHEREUM_ROPSTEN;case nt.ETHEREUM_RINKEBY:return tt.ChainId.ETHEREUM_RINKEBY;case nt.ETHEREUM_GOERLI:return tt.ChainId.ETHEREUM_GOERLI;case nt.ETHEREUM_KOVAN:return tt.ChainId.ETHEREUM_KOVAN;case nt.ETHEREUM_SEPOLIA:return tt.ChainId.ETHEREUM_SEPOLIA;case nt.MATIC_MAINNET:return tt.ChainId.MATIC_MAINNET;case nt.MATIC_MUMBAI:return tt.ChainId.MATIC_MUMBAI;case nt.MATIC_AMOY:return tt.ChainId.MATIC_AMOY;case nt.AVALANCHE_MAINNET:return tt.ChainId.AVALANCHE_MAINNET;case nt.BINANCE_MAINNET:return tt.ChainId.BSC_MAINNET;case nt.ARBITRUM_MAINNET:return tt.ChainId.ARBITRUM_MAINNET;case nt.OPTIMISM_MAINNET:return tt.ChainId.OPTIMISM_MAINNET;case nt.FANTOM_MAINNET:return tt.ChainId.FANTOM_MAINNET;default:return null}}_e.getChainId=at,function(it){it.schema={type:"string",enum:Object.values(it)},it.validate=(0,et.generateLazyValidator)(it.schema)}(nt=_e.ChainName||(_e.ChainName={}))}(chainName$2)),chainName$2}var hasRequiredChainId$2;function requireChainId$2(){return hasRequiredChainId$2||(hasRequiredChainId$2=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.getNetwork=_e.getNetworkMapping=_e.getURNProtocol=_e.getChainName=_e.ChainId=void 0;const et=validation$4,tt=requireChainName$2(),nt=network$3;var at;(function(dt){dt[dt.ETHEREUM_MAINNET=1]="ETHEREUM_MAINNET",dt[dt.ETHEREUM_ROPSTEN=3]="ETHEREUM_ROPSTEN",dt[dt.ETHEREUM_RINKEBY=4]="ETHEREUM_RINKEBY",dt[dt.ETHEREUM_GOERLI=5]="ETHEREUM_GOERLI",dt[dt.ETHEREUM_KOVAN=42]="ETHEREUM_KOVAN",dt[dt.ETHEREUM_SEPOLIA=11155111]="ETHEREUM_SEPOLIA",dt[dt.MATIC_MAINNET=137]="MATIC_MAINNET",dt[dt.MATIC_MUMBAI=80001]="MATIC_MUMBAI",dt[dt.MATIC_AMOY=80002]="MATIC_AMOY",dt[dt.BSC_MAINNET=56]="BSC_MAINNET",dt[dt.OPTIMISM_MAINNET=10]="OPTIMISM_MAINNET",dt[dt.ARBITRUM_MAINNET=42161]="ARBITRUM_MAINNET",dt[dt.FANTOM_MAINNET=250]="FANTOM_MAINNET",dt[dt.AVALANCHE_MAINNET=43114]="AVALANCHE_MAINNET"})(at=_e.ChainId||(_e.ChainId={}));function it(dt){switch(dt){case at.ETHEREUM_MAINNET:return tt.ChainName.ETHEREUM_MAINNET;case at.ETHEREUM_ROPSTEN:return tt.ChainName.ETHEREUM_ROPSTEN;case at.ETHEREUM_RINKEBY:return tt.ChainName.ETHEREUM_RINKEBY;case at.ETHEREUM_GOERLI:return tt.ChainName.ETHEREUM_GOERLI;case at.ETHEREUM_KOVAN:return tt.ChainName.ETHEREUM_KOVAN;case at.ETHEREUM_SEPOLIA:return tt.ChainName.ETHEREUM_SEPOLIA;case at.MATIC_MAINNET:return tt.ChainName.MATIC_MAINNET;case at.MATIC_MUMBAI:return tt.ChainName.MATIC_MUMBAI;case at.MATIC_AMOY:return tt.ChainName.MATIC_AMOY;case at.BSC_MAINNET:return tt.ChainName.BINANCE_MAINNET;case at.ARBITRUM_MAINNET:return tt.ChainName.ARBITRUM_MAINNET;case at.OPTIMISM_MAINNET:return tt.ChainName.OPTIMISM_MAINNET;case at.FANTOM_MAINNET:return tt.ChainName.FANTOM_MAINNET;case at.AVALANCHE_MAINNET:return tt.ChainName.AVALANCHE_MAINNET;default:return null}}_e.getChainName=it;function ot(dt){switch(dt){case at.ETHEREUM_MAINNET:return"ethereum";case at.ETHEREUM_ROPSTEN:return"ropsten";case at.ETHEREUM_RINKEBY:return"rinkeby";case at.ETHEREUM_GOERLI:return"goerli";case at.ETHEREUM_KOVAN:return"kovan";case at.ETHEREUM_SEPOLIA:return"sepolia";case at.MATIC_MAINNET:return"matic";case at.MATIC_MUMBAI:return"mumbai";case at.MATIC_AMOY:return"amoy";default:return""}}_e.getURNProtocol=ot;function st(dt){const ht={[nt.Network.BSC]:at.BSC_MAINNET,[nt.Network.OPTIMISM]:at.OPTIMISM_MAINNET,[nt.Network.ARBITRUM]:at.ARBITRUM_MAINNET,[nt.Network.FANTOM]:at.FANTOM_MAINNET,[nt.Network.AVALANCHE]:at.AVALANCHE_MAINNET};switch(dt){case at.ETHEREUM_MAINNET:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_MAINNET,[nt.Network.MATIC]:at.MATIC_MAINNET},ht);case at.ETHEREUM_ROPSTEN:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_ROPSTEN,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_RINKEBY:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_RINKEBY,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_GOERLI:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_GOERLI,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_KOVAN:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_KOVAN,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.ETHEREUM_SEPOLIA:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_SEPOLIA,[nt.Network.MATIC]:at.MATIC_AMOY},ht);case at.MATIC_MAINNET:return Object.assign({[nt.Network.ETHEREUM]:at.MATIC_MAINNET,[nt.Network.MATIC]:at.MATIC_MAINNET},ht);case at.MATIC_MUMBAI:return Object.assign({[nt.Network.ETHEREUM]:at.MATIC_MUMBAI,[nt.Network.MATIC]:at.MATIC_MUMBAI},ht);case at.MATIC_AMOY:return Object.assign({[nt.Network.ETHEREUM]:at.MATIC_AMOY,[nt.Network.MATIC]:at.MATIC_AMOY},ht);default:return Object.assign({[nt.Network.ETHEREUM]:at.ETHEREUM_MAINNET,[nt.Network.MATIC]:at.MATIC_MAINNET},ht)}}_e.getNetworkMapping=st;function ct(dt){switch(dt){case at.ETHEREUM_MAINNET:case at.ETHEREUM_ROPSTEN:case at.ETHEREUM_GOERLI:case at.ETHEREUM_KOVAN:case at.ETHEREUM_RINKEBY:case at.ETHEREUM_SEPOLIA:return nt.Network.ETHEREUM;case at.MATIC_MAINNET:case at.MATIC_MUMBAI:case at.MATIC_AMOY:return nt.Network.MATIC;case at.BSC_MAINNET:return nt.Network.BSC;case at.OPTIMISM_MAINNET:return nt.Network.OPTIMISM;case at.ARBITRUM_MAINNET:return nt.Network.ARBITRUM;case at.FANTOM_MAINNET:return nt.Network.FANTOM;case at.AVALANCHE_MAINNET:return nt.Network.AVALANCHE}}_e.getNetwork=ct,function(dt){dt.schema={type:"number",enum:Object.values(dt)},dt.validate=(0,et.generateLazyValidator)(dt.schema)}(at=_e.ChainId||(_e.ChainId={}))}(chainId$2)),chainId$2}var chainIdExports=requireChainId$2(),providerType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProviderType=void 0;const et=validation$4;(function(tt){tt.INJECTED="injected",tt.MAGIC="magic",tt.FORTMATIC="formatic",tt.NETWORK="network",tt.WALLET_CONNECT="wallet_connect",tt.WALLET_CONNECT_V2="wallet_connect_v2",tt.WALLET_LINK="wallet_link",tt.METAMASK_MOBILE="metamask_mobile",tt.AUTH_SERVER="auth_server"})(_e.ProviderType||(_e.ProviderType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.ProviderType||(_e.ProviderType={}))})(providerType$2);var ConnectorEvent;(function(_e){_e.Update="Web3ReactUpdate",_e.Error="Web3ReactError",_e.Deactivate="Web3ReactDeactivate"})(ConnectorEvent||(ConnectorEvent={}));var events={exports:{}},R$1=typeof Reflect=="object"?Reflect:null,ReflectApply=R$1&&typeof R$1.apply=="function"?R$1.apply:function(et,tt,nt){return Function.prototype.apply.call(et,tt,nt)},ReflectOwnKeys;R$1&&typeof R$1.ownKeys=="function"?ReflectOwnKeys=R$1.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(et){return Object.getOwnPropertyNames(et).concat(Object.getOwnPropertySymbols(et))}:ReflectOwnKeys=function(et){return Object.getOwnPropertyNames(et)};function ProcessEmitWarning(_e){console&&console.warn&&console.warn(_e)}var NumberIsNaN=Number.isNaN||function(et){return et!==et};function EventEmitter$1(){EventEmitter$1.init.call(this)}events.exports=EventEmitter$1;events.exports.once=once$3;EventEmitter$1.EventEmitter=EventEmitter$1;EventEmitter$1.prototype._events=void 0;EventEmitter$1.prototype._eventsCount=0;EventEmitter$1.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(_e){if(typeof _e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _e)}Object.defineProperty(EventEmitter$1,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(_e){if(typeof _e!="number"||_e<0||NumberIsNaN(_e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_e+".");defaultMaxListeners=_e}});EventEmitter$1.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter$1.prototype.setMaxListeners=function(et){if(typeof et!="number"||et<0||NumberIsNaN(et))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+et+".");return this._maxListeners=et,this};function _getMaxListeners(_e){return _e._maxListeners===void 0?EventEmitter$1.defaultMaxListeners:_e._maxListeners}EventEmitter$1.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter$1.prototype.emit=function(et){for(var tt=[],nt=1;nt<arguments.length;nt++)tt.push(arguments[nt]);var at=et==="error",it=this._events;if(it!==void 0)at=at&&it.error===void 0;else if(!at)return!1;if(at){var ot;if(tt.length>0&&(ot=tt[0]),ot instanceof Error)throw ot;var st=new Error("Unhandled error."+(ot?" ("+ot.message+")":""));throw st.context=ot,st}var ct=it[et];if(ct===void 0)return!1;if(typeof ct=="function")ReflectApply(ct,this,tt);else for(var dt=ct.length,ht=arrayClone(ct,dt),nt=0;nt<dt;++nt)ReflectApply(ht[nt],this,tt);return!0};function _addListener(_e,et,tt,nt){var at,it,ot;if(checkListener(tt),it=_e._events,it===void 0?(it=_e._events=Object.create(null),_e._eventsCount=0):(it.newListener!==void 0&&(_e.emit("newListener",et,tt.listener?tt.listener:tt),it=_e._events),ot=it[et]),ot===void 0)ot=it[et]=tt,++_e._eventsCount;else if(typeof ot=="function"?ot=it[et]=nt?[tt,ot]:[ot,tt]:nt?ot.unshift(tt):ot.push(tt),at=_getMaxListeners(_e),at>0&&ot.length>at&&!ot.warned){ot.warned=!0;var st=new Error("Possible EventEmitter memory leak detected. "+ot.length+" "+String(et)+" listeners added. Use emitter.setMaxListeners() to increase limit");st.name="MaxListenersExceededWarning",st.emitter=_e,st.type=et,st.count=ot.length,ProcessEmitWarning(st)}return _e}EventEmitter$1.prototype.addListener=function(et,tt){return _addListener(this,et,tt,!1)};EventEmitter$1.prototype.on=EventEmitter$1.prototype.addListener;EventEmitter$1.prototype.prependListener=function(et,tt){return _addListener(this,et,tt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(_e,et,tt){var nt={fired:!1,wrapFn:void 0,target:_e,type:et,listener:tt},at=onceWrapper.bind(nt);return at.listener=tt,nt.wrapFn=at,at}EventEmitter$1.prototype.once=function(et,tt){return checkListener(tt),this.on(et,_onceWrap(this,et,tt)),this};EventEmitter$1.prototype.prependOnceListener=function(et,tt){return checkListener(tt),this.prependListener(et,_onceWrap(this,et,tt)),this};EventEmitter$1.prototype.removeListener=function(et,tt){var nt,at,it,ot,st;if(checkListener(tt),at=this._events,at===void 0)return this;if(nt=at[et],nt===void 0)return this;if(nt===tt||nt.listener===tt)--this._eventsCount===0?this._events=Object.create(null):(delete at[et],at.removeListener&&this.emit("removeListener",et,nt.listener||tt));else if(typeof nt!="function"){for(it=-1,ot=nt.length-1;ot>=0;ot--)if(nt[ot]===tt||nt[ot].listener===tt){st=nt[ot].listener,it=ot;break}if(it<0)return this;it===0?nt.shift():spliceOne(nt,it),nt.length===1&&(at[et]=nt[0]),at.removeListener!==void 0&&this.emit("removeListener",et,st||tt)}return this};EventEmitter$1.prototype.off=EventEmitter$1.prototype.removeListener;EventEmitter$1.prototype.removeAllListeners=function(et){var tt,nt,at;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[et]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[et]),this;if(arguments.length===0){var it=Object.keys(nt),ot;for(at=0;at<it.length;++at)ot=it[at],ot!=="removeListener"&&this.removeAllListeners(ot);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(tt=nt[et],typeof tt=="function")this.removeListener(et,tt);else if(tt!==void 0)for(at=tt.length-1;at>=0;at--)this.removeListener(et,tt[at]);return this};function _listeners(_e,et,tt){var nt=_e._events;if(nt===void 0)return[];var at=nt[et];return at===void 0?[]:typeof at=="function"?tt?[at.listener||at]:[at]:tt?unwrapListeners(at):arrayClone(at,at.length)}EventEmitter$1.prototype.listeners=function(et){return _listeners(this,et,!0)};EventEmitter$1.prototype.rawListeners=function(et){return _listeners(this,et,!1)};EventEmitter$1.listenerCount=function(_e,et){return typeof _e.listenerCount=="function"?_e.listenerCount(et):listenerCount.call(_e,et)};EventEmitter$1.prototype.listenerCount=listenerCount;function listenerCount(_e){var et=this._events;if(et!==void 0){var tt=et[_e];if(typeof tt=="function")return 1;if(tt!==void 0)return tt.length}return 0}EventEmitter$1.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(_e,et){for(var tt=new Array(et),nt=0;nt<et;++nt)tt[nt]=_e[nt];return tt}function spliceOne(_e,et){for(;et+1<_e.length;et++)_e[et]=_e[et+1];_e.pop()}function unwrapListeners(_e){for(var et=new Array(_e.length),tt=0;tt<et.length;++tt)et[tt]=_e[tt].listener||_e[tt];return et}function once$3(_e,et){return new Promise(function(tt,nt){function at(ot){_e.removeListener(et,it),nt(ot)}function it(){typeof _e.removeListener=="function"&&_e.removeListener("error",at),tt([].slice.call(arguments))}eventTargetAgnosticAddListener(_e,et,it,{once:!0}),et!=="error"&&addErrorHandlerIfEventEmitter(_e,at,{once:!0})})}function addErrorHandlerIfEventEmitter(_e,et,tt){typeof _e.on=="function"&&eventTargetAgnosticAddListener(_e,"error",et,tt)}function eventTargetAgnosticAddListener(_e,et,tt,nt){if(typeof _e.on=="function")nt.once?_e.once(et,tt):_e.on(et,tt);else if(typeof _e.addEventListener=="function")_e.addEventListener(et,function at(it){nt.once&&_e.removeEventListener(et,at),tt(it)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof _e)}var eventsExports=events.exports;const Wg=getDefaultExportFromCjs$1(eventsExports);function _inheritsLoose$6(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_e.__proto__=et}var AbstractConnector=function(_e){_inheritsLoose$6(et,_e);function et(nt){var at,it=nt===void 0?{}:nt,ot=it.supportedChainIds;return at=_e.call(this)||this,at.supportedChainIds=ot,at}var tt=et.prototype;return tt.emitUpdate=function(at){this.emit(ConnectorEvent.Update,at)},tt.emitError=function(at){this.emit(ConnectorEvent.Error,at)},tt.emitDeactivate=function(){this.emit(ConnectorEvent.Deactivate)},et}(eventsExports.EventEmitter);const scriptRel="modulepreload",assetsURL=function(_e){return"https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/"+_e},seen={},__vitePreload=function(et,tt,nt){if(!tt||tt.length===0)return et();const at=document.getElementsByTagName("link");return Promise.all(tt.map(it=>{if(it=assetsURL(it),it in seen)return;seen[it]=!0;const ot=it.endsWith(".css"),st=ot?'[rel="stylesheet"]':"";if(!!nt)for(let ht=at.length-1;ht>=0;ht--){const pt=at[ht];if(pt.href===it&&(!ot||pt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${it}"]${st}`))return;const dt=document.createElement("link");if(dt.rel=ot?"stylesheet":scriptRel,ot||(dt.as="script",dt.crossOrigin=""),dt.href=it,document.head.appendChild(dt),ot)return new Promise((ht,pt)=>{dt.addEventListener("load",ht),dt.addEventListener("error",()=>pt(new Error(`Unable to preload CSS for ${it}`)))})})).then(()=>et()).catch(it=>{const ot=new Event("vite:preloadError",{cancelable:!0});if(ot.payload=it,window.dispatchEvent(ot),!ot.defaultPrevented)throw it})};var dist$d={},sdk$2={},ws$2={},sceneUpdate$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SceneUpdate=_e.SCENE_UPDATE=void 0;const et=validation$4;_e.SCENE_UPDATE="SCENE_UPDATE",function(tt){tt.schema={type:"object",properties:{type:{type:"string",enum:[_e.SCENE_UPDATE]},payload:{type:"object",properties:{sceneId:{type:"string"},sceneType:{type:"string"}},additionalProperties:!1,required:["sceneId","sceneType"]}},required:["payload","type"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.SceneUpdate||(_e.SceneUpdate={}))})(sceneUpdate$2);var update$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Update=_e.UPDATE=void 0;const et=validation$4;_e.UPDATE="update",function(tt){tt.schema={type:"object",properties:{type:{type:"string",enum:[_e.UPDATE]}},required:["type"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Update||(_e.Update={}))})(update$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(sceneUpdate$2,_e),tt(update$2,_e)})(ws$2);var project$2={},type$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ProjectType=void 0;const et=validation$4;(function(tt){tt.SCENE="scene",tt.SMART_ITEM="smart-item",tt.PORTABLE_EXPERIENCE="portable-experience",tt.LIBRARY="library"})(_e.ProjectType||(_e.ProjectType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.ProjectType||(_e.ProjectType={}))})(type$3);var wearableJson$2={},rarity$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Rarity=void 0;const et=validation$4;(function(tt){tt.UNIQUE="unique",tt.MYTHIC="mythic",tt.EXOTIC="exotic",tt.LEGENDARY="legendary",tt.EPIC="epic",tt.RARE="rare",tt.UNCOMMON="uncommon",tt.COMMON="common"})(_e.Rarity||(_e.Rarity={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema);const nt={[tt.UNIQUE]:1,[tt.MYTHIC]:10,[tt.EXOTIC]:50,[tt.LEGENDARY]:100,[tt.EPIC]:1e3,[tt.RARE]:5e3,[tt.UNCOMMON]:1e4,[tt.COMMON]:1e5},at={[tt.UNIQUE]:"#FFE617",[tt.MYTHIC]:"#FB7DE3",[tt.EXOTIC]:"#E4FFB8",[tt.LEGENDARY]:"#A657ED",[tt.EPIC]:"#6397F2",[tt.RARE]:"#3AD682",[tt.UNCOMMON]:"#FF8563",[tt.COMMON]:"#D4E0E0"},it={[tt.UNIQUE]:"#FFB626",[tt.MYTHIC]:"#FF63E1",[tt.EXOTIC]:"#CAFF73",[tt.LEGENDARY]:"#842DDA",[tt.EPIC]:"#3D85E6",[tt.RARE]:"#36CF75",[tt.UNCOMMON]:"#ED6D4F",[tt.COMMON]:"#ABC1C1"};function ot(ht){return nt[ht]}tt.getMaxSupply=ot;function st(ht){return it[ht]}tt.getColor=st;function ct(){return[tt.UNIQUE,tt.MYTHIC,tt.EXOTIC,tt.LEGENDARY,tt.EPIC,tt.RARE,tt.UNCOMMON,tt.COMMON]}tt.getRarities=ct;function dt(ht){return[at[ht],it[ht]]}tt.getGradient=dt}(_e.Rarity||(_e.Rarity={}))})(rarity$2);var wearableCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WearableCategory=void 0;const et=validation$4;(function(tt){tt.EYEBROWS="eyebrows",tt.EYES="eyes",tt.FACIAL_HAIR="facial_hair",tt.HAIR="hair",tt.BODY_SHAPE="body_shape",tt.MOUTH="mouth",tt.UPPER_BODY="upper_body",tt.LOWER_BODY="lower_body",tt.FEET="feet",tt.EARRING="earring",tt.EYEWEAR="eyewear",tt.HAT="hat",tt.HELMET="helmet",tt.MASK="mask",tt.TIARA="tiara",tt.TOP_HEAD="top_head",tt.SKIN="skin",tt.HANDS_WEAR="hands_wear"})(_e.WearableCategory||(_e.WearableCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.WearableCategory||(_e.WearableCategory={}))})(wearableCategory$2);var representation$2={},bodyShape$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BodyShape=void 0;const et=validation$4;(function(tt){tt.MALE="urn:decentraland:off-chain:base-avatars:BaseMale",tt.FEMALE="urn:decentraland:off-chain:base-avatars:BaseFemale"})(_e.BodyShape||(_e.BodyShape={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.BodyShape||(_e.BodyShape={}))})(bodyShape$2);var hideableCategory$2={},bodyPartCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.BodyPartCategory=void 0;const et=validation$4;(function(tt){tt.HEAD="head",tt.HANDS="hands"})(_e.BodyPartCategory||(_e.BodyPartCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.BodyPartCategory||(_e.BodyPartCategory={}))})(bodyPartCategory$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.HideableWearableCategory=void 0;const et=wearableCategory$2,tt=validation$4,nt=bodyPartCategory$2;(function(at){at.schema={oneOf:[Object.assign({},et.WearableCategory.schema),Object.assign({},nt.BodyPartCategory.schema)]},at.validate=(0,tt.generateLazyValidator)(at.schema)})(_e.HideableWearableCategory||(_e.HideableWearableCategory={}))})(hideableCategory$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WearableRepresentation=void 0;const et=validation$4,tt=bodyShape$2,nt=hideableCategory$2;(function(at){at.schema={type:"object",properties:{bodyShapes:{type:"array",items:tt.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}}},overrideHides:{type:"array",items:nt.HideableWearableCategory.schema},overrideReplaces:{type:"array",items:nt.HideableWearableCategory.schema}},required:["bodyShapes","mainFile","contents","overrideHides","overrideReplaces"]},at.validate=(0,et.generateLazyValidator)(at.schema)})(_e.WearableRepresentation||(_e.WearableRepresentation={}))})(representation$2);var platform$3={},profile$5={},avatar$2={},misc$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.IPFSv1=_e.IPFSv2=_e.EthAddress=_e.Color3=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",required:["r","g","b"],properties:{r:{type:"number",minimum:0,maximum:1},g:{type:"number",minimum:0,maximum:1},b:{type:"number",minimum:0,maximum:1}}};const nt=(0,et.generateLazyValidator)(tt.schema);tt.validate=at=>nt(at)})(_e.Color3||(_e.Color3={})),function(tt){tt.schema={type:"string",pattern:"^0x[a-fA-F0-9]{40}$"};const nt=new RegExp(tt.schema.pattern);tt.validate=at=>nt.test(at)}(_e.EthAddress||(_e.EthAddress={})),function(tt){tt.schema={type:"string",pattern:"^(ba)[a-zA-Z0-9]{57}$"};const nt=new RegExp(tt.schema.pattern);tt.validate=at=>nt.test(at)}(_e.IPFSv2||(_e.IPFSv2={})),function(tt){tt.schema={type:"string",pattern:"^(Qm)[a-zA-Z0-9]{44}$"};const nt=new RegExp(tt.schema.pattern);tt.validate=at=>nt.test(at)}(_e.IPFSv1||(_e.IPFSv1={}))})(misc$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Avatar=_e.Link=_e.LinkUrl=_e.AvatarInfo=_e.Snapshots=void 0;const et=wearableCategory$2,tt=misc$2,nt=validation$4;var at;(function(ct){ct.schema={type:"object",required:["face256","body"],properties:{face256:tt.IPFSv2.schema,body:tt.IPFSv2.schema}},ct.validate=(0,nt.generateLazyValidator)(ct.schema)})(at=_e.Snapshots||(_e.Snapshots={}));var it;(function(ct){ct.schema={type:"object",required:["bodyShape","eyes","hair","skin"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:et.WearableCategory.schema},emotes:{type:"array",items:{type:"object",properties:{slot:{type:"number"},urn:{type:"string"}},required:["slot","urn"]},nullable:!0},snapshots:at.schema},additionalProperties:!0},ct.validate=(0,nt.generateLazyValidator)(ct.schema)})(it=_e.AvatarInfo||(_e.AvatarInfo={}));var ot;(function(ct){ct.schema={type:"string",maxLength:2083,pattern:"^(?:https?):\\/\\/[^\\s/$.?#].[^\\s]*$"};const dt=new RegExp(ct.schema.pattern,"i");ct.validate=ht=>dt.test(ht)})(ot=_e.LinkUrl||(_e.LinkUrl={}));var st;(function(ct){ct.schema={type:"object",required:["title","url"],properties:{title:{type:"string"},url:ot.schema}}})(st=_e.Link||(_e.Link={})),function(ct){ct.schema={type:"object",required:["name","description","ethAddress","version","tutorialStep","avatar","hasClaimedName"],properties:{userId:{type:"string"},name:{type:"string"},description:{type:"string"},links:{type:"array",maxItems:5,items:st.schema,nullable:!0},country:{nullable:!0,type:"string"},employmentStatus:{nullable:!0,type:"string"},gender:{nullable:!0,type:"string"},pronouns:{nullable:!0,type:"string"},relationshipStatus:{nullable:!0,type:"string"},sexualOrientation:{nullable:!0,type:"string"},language:{nullable:!0,type:"string"},profession:{nullable:!0,type:"string"},birthdate:{nullable:!0,type:"number"},realName:{nullable:!0,type:"string"},hobbies:{nullable:!0,type:"string"},ethAddress:tt.EthAddress.schema,version:{type:"number"},tutorialStep:{type:"number"},email:{type:"string",nullable:!0},blocked:{type:"array",items:{type:"string"},nullable:!0},muted:{type:"array",items:{type:"string"},nullable:!0},interests:{type:"array",items:{type:"string"},nullable:!0},hasClaimedName:{type:"boolean"},hasConnectedWeb3:{type:"boolean",nullable:!0},avatar:it.schema},additionalProperties:!0},ct.validate=(0,nt.generateLazyValidator)(ct.schema)}(_e.Avatar||(_e.Avatar={}))})(avatar$2);var profile$4={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Profile=void 0;const et=validation$4,tt=avatar$2;(function(nt){nt.schema={type:"object",required:["avatars"],properties:{avatars:{type:"array",items:tt.Avatar.schema}},additionalProperties:!0},nt.validate=(0,et.generateLazyValidator)(nt.schema)})(_e.Profile||(_e.Profile={}))})(profile$4);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(avatar$2,_e),tt(profile$4,_e)})(profile$5);var scene$5={},featureToggles$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.FeatureToggles=_e.portableExperiencesToggles=_e.toggles=void 0;const et=validation$4;_e.toggles=["enabled","disabled"],_e.portableExperiencesToggles=[..._e.toggles,"hideUi"],function(tt){tt.schema={type:"object",properties:{voiceChat:{type:"string",enum:_e.toggles,nullable:!0},portableExperiences:{type:"string",enum:_e.portableExperiencesToggles,nullable:!0,errorMessage:`valid options are ${_e.portableExperiencesToggles.join(", ")}`}},errorMessage:`valid options are ${_e.toggles.join(", ")}`,required:[]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.FeatureToggles||(_e.FeatureToggles={}))})(featureToggles$2);var worldConfiguration$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WorldConfiguration=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{name:{type:"string",nullable:!0},skybox:{type:"number",nullable:!0},minimapVisible:{type:"boolean",nullable:!0},miniMapConfig:{type:"object",nullable:!0,properties:{visible:{type:"boolean",nullable:!0},dataImage:{type:"string",nullable:!0},estateImage:{type:"string",nullable:!0}}},skyboxConfig:{type:"object",nullable:!0,properties:{fixedTime:{type:"number",nullable:!0},textures:{type:"array",nullable:!0,items:{type:"string"},oneOf:[{minItems:0,maxItems:0},{minItems:1,maxItems:1},{minItems:6,maxItems:6}],errorMessage:"customSkybox must be an array of 0, 1 or 6 strings"}}},fixedAdapter:{type:"string",nullable:!0},placesConfig:{type:"object",nullable:!0,properties:{optOut:{type:"boolean",nullable:!0}}}},required:[]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.WorldConfiguration||(_e.WorldConfiguration={}))})(worldConfiguration$2);var sceneParcels$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SceneParcels=void 0;const et=validation$4;(function(tt){tt.schema={description:'Describes a scene, a set of parcels whose content is treated as the same entity. A list of parcels is listed, for which one of them is considered the "base" for positioning purposes.',type:"object",properties:{base:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},parcels:{type:"array",items:{type:"string",pattern:"^-?[0-9]+,-?[0-9]+$"},minItems:1}},additionalProperties:!0,required:["base","parcels"]},tt.schemaValidator=(0,et.generateLazyValidator)(tt.schema),tt.validate=nt=>tt.schemaValidator(nt)&&nt.parcels.includes(nt.base)})(_e.SceneParcels||(_e.SceneParcels={}))})(sceneParcels$2);var scene$4={},displayable$2={};Object.defineProperty(displayable$2,"__esModule",{value:!0});displayable$2.displayableProperties=void 0;displayable$2.displayableProperties={menuBarIcon:{description:"Name of the file used as icon for the MenuBar",type:"string",nullable:!0}};var source$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Source=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{version:{type:"number",nullable:!0},origin:{type:"string"},projectId:{type:"string"},point:{type:"object",properties:{x:{type:"integer"},y:{type:"integer"}},nullable:!0,required:["x","y"]},rotation:{type:"string",enum:["north","east","south","west"],nullable:!0},layout:{type:"object",properties:{rows:{type:"integer"},cols:{type:"integer"}},nullable:!0,required:["rows","cols"]},isEmpty:{type:"boolean",nullable:!0}},additionalProperties:!0,required:["origin","projectId"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.Source||(_e.Source={}))})(source$2);var spawnPoint$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SpawnPoint=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{name:{type:"string",nullable:!0},position:{type:"object",oneOf:[{$ref:"#single-position"},{$ref:"#multi-position"}],required:["x","y","z"]},default:{type:"boolean",nullable:!0},cameraTarget:{type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"],nullable:!0}},required:["position"],definitions:{"single-position":{$id:"#single-position",type:"object",properties:{x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y","z"]},"multi-position":{$id:"#multi-position",type:"object",properties:{x:{type:"array",items:{type:"number"},minItems:1},y:{type:"array",items:{type:"number"},minItems:1},z:{type:"array",items:{type:"number"},minItems:1}},required:["x","y","z"]}}},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.SpawnPoint||(_e.SpawnPoint={}))})(spawnPoint$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Scene=_e.RequiredPermission=void 0;const et=validation$4,tt=displayable$2,nt=featureToggles$2,at=sceneParcels$2,it=source$2,ot=spawnPoint$2,st=worldConfiguration$2;var ct;(function(dt){dt.ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE="ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE",dt.ALLOW_TO_TRIGGER_AVATAR_EMOTE="ALLOW_TO_TRIGGER_AVATAR_EMOTE",dt.ALLOW_MEDIA_HOSTNAMES="ALLOW_MEDIA_HOSTNAMES",dt.USE_WEB3_API="USE_WEB3_API",dt.USE_FETCH="USE_FETCH",dt.USE_WEBSOCKET="USE_WEBSOCKET",dt.OPEN_EXTERNAL_LINK="OPEN_EXTERNAL_LINK"})(ct=_e.RequiredPermission||(_e.RequiredPermission={})),function(dt){dt.schema={type:"object",properties:Object.assign(Object.assign({isPortableExperience:{description:"Define the current scene as a Portable Experience",type:"boolean",nullable:!0},main:{description:"File that contains the entry point of the scene's code",type:"string",minLength:1},scene:at.SceneParcels.schema},tt.displayableProperties),{display:{description:"Information related to how should this land be displayed apart from the normal rendering of the scene",type:"object",properties:{title:{description:"A name so other users can identify what the contents of this land should be",type:"string",nullable:!0},favicon:{description:"DEPRECATED. Allow the land owner to set up a favicon to this land",type:"string",nullable:!0},description:{description:"A description that will be shown on client's nav map when the scene is selected",type:"string",nullable:!0},navmapThumbnail:{type:"string",nullable:!0}},nullable:!0,required:[]},owner:{type:"string",nullable:!0},contact:{description:"Describe different ways of contacting the land owner",type:"object",properties:{name:{type:"string",nullable:!0},email:{type:"string",nullable:!0},im:{type:"string",nullable:!0},url:{type:"string",nullable:!0}},nullable:!0,required:[]},tags:{type:"array",items:{type:"string",minLength:1},nullable:!0},source:Object.assign(Object.assign({},it.Source.schema),{nullable:!0}),spawnPoints:{type:"array",items:ot.SpawnPoint.schema,nullable:!0},requiredPermissions:{type:"array",items:{type:"string",enum:Object.values(ct)},uniqueItems:!0,nullable:!0},featureToggles:Object.assign(Object.assign({},nt.FeatureToggles.schema),{nullable:!0}),worldConfiguration:Object.assign(Object.assign({},st.WorldConfiguration.schema),{nullable:!0}),allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!0}}),additionalProperties:!0,required:["main","scene"],dependencies:{requiredPermissions:{if:{properties:{requiredPermissions:{type:"array",contains:{const:ct.ALLOW_MEDIA_HOSTNAMES}}}},then:{properties:{allowedMediaHostnames:{type:"array",items:{type:"string"},nullable:!1,minItems:1}},required:["allowedMediaHostnames"]},else:{properties:{allowedMediaHostnames:{type:["null","array"],nullable:!0,maxItems:0}}}}}},dt.validate=(0,et.generateLazyValidator)(dt.schema)}(_e.Scene||(_e.Scene={}))})(scene$4);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SpawnPoint=_e.Source=_e.RequiredPermission=_e.Scene=_e.SceneParcels=_e.WorldConfiguration=_e.FeatureToggles=void 0;var et=featureToggles$2;Object.defineProperty(_e,"FeatureToggles",{enumerable:!0,get:function(){return et.FeatureToggles}});var tt=worldConfiguration$2;Object.defineProperty(_e,"WorldConfiguration",{enumerable:!0,get:function(){return tt.WorldConfiguration}});var nt=sceneParcels$2;Object.defineProperty(_e,"SceneParcels",{enumerable:!0,get:function(){return nt.SceneParcels}});var at=scene$4;Object.defineProperty(_e,"Scene",{enumerable:!0,get:function(){return at.Scene}}),Object.defineProperty(_e,"RequiredPermission",{enumerable:!0,get:function(){return at.RequiredPermission}});var it=source$2;Object.defineProperty(_e,"Source",{enumerable:!0,get:function(){return it.Source}});var ot=spawnPoint$2;Object.defineProperty(_e,"SpawnPoint",{enumerable:!0,get:function(){return ot.SpawnPoint}})})(scene$5);var item$5={},i18n$2={},locale$6={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Locale=void 0;const et=validation$4;(function(tt){tt.EN="en",tt.ES="es"})(_e.Locale||(_e.Locale={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Locale||(_e.Locale={}))})(locale$6);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.I18N=void 0;const et=validation$4,tt=locale$6;(function(nt){nt.schema={type:"object",properties:{code:tt.Locale.schema,text:{type:"string"}},additionalProperties:!0,required:["code","text"]},nt.validate=(0,et.generateLazyValidator)(nt.schema)})(_e.I18N||(_e.I18N={}))})(i18n$2);var metrics$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Metrics=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{triangles:{type:"number"},materials:{type:"number"},textures:{type:"number"},meshes:{type:"number"},bodies:{type:"number"},entities:{type:"number"}},required:["triangles","materials","textures","meshes","bodies","entities"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.Metrics||(_e.Metrics={}))})(metrics$2);var standardProps$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.isStandard=_e.standardProperties=void 0;const et=rarity$2,tt=validation$4;_e.standardProperties={collectionAddress:{type:"string",nullable:!1},rarity:et.Rarity.schema};const nt={type:"object",properties:Object.assign({},_e.standardProperties),required:["collectionAddress","rarity"]},at=(0,tt.generateLazyValidator)(nt);function it(ot){return at(ot)}_e.isStandard=it})(standardProps$2);var thirdPartyProps$2={},merkleProof$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.MerkleProof=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{proof:{type:"array",items:{type:"string"}},index:{type:"number"},hashingKeys:{type:"array",items:{type:"string"}},entityHash:{type:"string"}},required:["entityHash","hashingKeys","index","proof"],additionalProperties:!0},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.MerkleProof||(_e.MerkleProof={}))})(merkleProof$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.isThirdParty=_e.thirdPartyProps=void 0;const et=validation$4,tt=merkleProof$2;_e.thirdPartyProps={merkleProof:tt.MerkleProof.schema,content:{type:"object",nullable:!1,additionalProperties:{type:"string"},required:[]}};const nt={type:"object",properties:Object.assign({},_e.thirdPartyProps),required:["merkleProof","content"],_containsHashingKeys:!0},at={keyword:"_containsHashingKeys",validate:(st,ct)=>{var dt;const ht=ct;return!((dt=ht==null?void 0:ht.merkleProof)===null||dt===void 0)&&dt.hashingKeys?ht.merkleProof.hashingKeys.every(pt=>ht.hasOwnProperty(pt)):!1},errors:!1},it=(0,et.generateLazyValidator)(nt,[at]);function ot(st){return it(st)}_e.isThirdParty=ot})(thirdPartyProps$2);var wearable$5={},wearable$4={},baseItem$2={};Object.defineProperty(baseItem$2,"__esModule",{value:!0});baseItem$2.isBaseEmote=baseItem$2.isBaseAvatar=baseItem$2.requiredBaseItemProps=baseItem$2.baseItemProperties=void 0;const i18n_1$2=i18n$2,metrics_1$2=metrics$2,displayable_1$2=displayable$2;baseItem$2.baseItemProperties=Object.assign(Object.assign({},displayable_1$2.displayableProperties),{id:{type:"string"},name:{type:"string"},description:{type:"string"},i18n:{type:"array",items:i18n_1$2.I18N.schema,minItems:1,uniqueItemProperties:["code"],errorMessage:'${0#} array should not have duplicates for "code"'},thumbnail:{type:"string"},image:{type:"string"},metrics:Object.assign(Object.assign({},metrics_1$2.Metrics.schema),{nullable:!0})});baseItem$2.requiredBaseItemProps=["id","name","description","i18n","thumbnail","image"];function isBaseAvatar$2(_e){if(!_e||!_e.id)return!1;const et=_e.id.split(":"),tt=et[1]==="decentraland",nt=et[3]==="base-avatars";return et.length===5&&tt&&nt}baseItem$2.isBaseAvatar=isBaseAvatar$2;function isBaseEmote(_e){if(!_e||!_e.id)return!1;const et=_e.id.split(":");return et.length===5&&et[1]==="decentraland"&&et[3]==="base-emotes"}baseItem$2.isBaseEmote=isBaseEmote;(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Wearable=void 0;const et=validation$4,tt=wearableCategory$2,nt=representation$2,at=baseItem$2,it=standardProps$2,ot=thirdPartyProps$2,st=hideableCategory$2;(function(ct){ct.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},at.baseItemProperties),it.standardProperties),ot.thirdPartyProps),{data:{type:"object",properties:{replaces:{type:"array",items:st.HideableWearableCategory.schema},hides:{type:"array",items:st.HideableWearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:nt.WearableRepresentation.schema,minItems:1},category:tt.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:st.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}}),additionalProperties:!0,required:[],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseAvatar:!0},{required:[...at.requiredBaseItemProps,"data","collectionAddress","rarity"],prohibited:["merkleProof","content"]},{required:[...at.requiredBaseItemProps,"data","merkleProof","content"],prohibited:["collectionAddress","rarity"],_isThirdParty:!0}],errorMessage:{oneOf:"either standard XOR thirdparty properties conditions must be met"}};const dt={keyword:"_isThirdParty",validate:(pt,mt)=>!pt||(0,ot.isThirdParty)(mt),errors:!1},ht={keyword:"_isBaseAvatar",validate:(pt,mt)=>!pt||(0,at.isBaseAvatar)(mt),errors:!1};ct.validate=(0,et.generateLazyValidator)(ct.schema,[dt,ht])})(_e.Wearable||(_e.Wearable={}))})(wearable$4);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.HideableWearableCategory=_e.BodyPartCategory=_e.WearableCategory=_e.Wearable=_e.WearableRepresentation=void 0;var et=representation$2;Object.defineProperty(_e,"WearableRepresentation",{enumerable:!0,get:function(){return et.WearableRepresentation}});var tt=wearable$4;Object.defineProperty(_e,"Wearable",{enumerable:!0,get:function(){return tt.Wearable}});var nt=wearableCategory$2;Object.defineProperty(_e,"WearableCategory",{enumerable:!0,get:function(){return nt.WearableCategory}});var at=bodyPartCategory$2;Object.defineProperty(_e,"BodyPartCategory",{enumerable:!0,get:function(){return at.BodyPartCategory}});var it=hideableCategory$2;Object.defineProperty(_e,"HideableWearableCategory",{enumerable:!0,get:function(){return it.HideableWearableCategory}})})(wearable$5);var emote$5={},emote$4={},emoteDataAdr74$2={},emoteCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmoteCategory=void 0;const et=validation$4;(function(tt){tt.DANCE="dance",tt.STUNT="stunt",tt.GREETINGS="greetings",tt.FUN="fun",tt.POSES="poses",tt.REACTIONS="reactions",tt.HORROR="horror",tt.MISCELLANEOUS="miscellaneous"})(_e.EmoteCategory||(_e.EmoteCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.EmoteCategory||(_e.EmoteCategory={}))})(emoteCategory$2);var representationAdr74$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmoteRepresentationADR74=void 0;const et=validation$4,tt=bodyShape$2;(function(nt){nt.schema={type:"object",properties:{bodyShapes:{type:"array",items:tt.BodyShape.schema,minItems:1,uniqueItems:!0},mainFile:{type:"string",minLength:1},contents:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,contains:{const:{$data:"2/mainFile"}},errorMessage:{contains:"contents should contain mainFile: ${1/mainFile}"}}},required:["bodyShapes","mainFile","contents"]},nt.validate=(0,et.generateLazyValidator)(nt.schema)})(_e.EmoteRepresentationADR74||(_e.EmoteRepresentationADR74={}))})(representationAdr74$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmoteDataADR74=void 0;const et=emoteCategory$2,tt=validation$4,nt=representationAdr74$2;(function(at){at.schema={type:"object",properties:{tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:nt.EmoteRepresentationADR74.schema,minItems:1},category:et.EmoteCategory.schema,loop:{type:"boolean"}},required:["category","tags","representations","loop"],additionalProperties:!0},at.validate=(0,tt.generateLazyValidator)(at.schema)})(_e.EmoteDataADR74||(_e.EmoteDataADR74={}))})(emoteDataAdr74$2);var hasRequiredEmote$5;function requireEmote$5(){return hasRequiredEmote$5||(hasRequiredEmote$5=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Emote=void 0;const et=requireItem$2(),tt=validation$4,nt=baseItem$2,at=standardProps$2,it=thirdPartyProps$2,ot=emoteDataAdr74$2;(function(st){st.schema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({},nt.baseItemProperties),at.standardProperties),it.thirdPartyProps),{emoteDataADR74:ot.EmoteDataADR74.schema}),additionalProperties:!0,required:[...nt.requiredBaseItemProps],oneOf:[{required:["emoteDataADR74"],oneOf:[{required:["id","i18n"],prohibited:["merkleProof","content","collectionAddress","rarity"],_isBaseEmote:!0},{required:["collectionAddress","rarity"],prohibited:["merkleProof","content"],errorMessage:"standard properties conditions are not met"},{required:["merkleProof","content","id","name","description","i18n","image","thumbnail","emoteDataADR74"],_isThirdParty:!0,prohibited:["collectionAddress","rarity"],errorMessage:"thirdparty properties conditions are not met"}],errorMessage:{oneOf:"emote should have either standard or thirdparty properties"}}],errorMessage:{oneOf:'emote should have "emoteDataADR74" and match its schema'}};const ct={keyword:"_isThirdParty",validate:(ht,pt)=>!ht||(0,et.isThirdParty)(pt),errors:!1},dt={keyword:"_isBaseEmote",validate:(ht,pt)=>!ht||(0,nt.isBaseEmote)(pt),errors:!1};st.validate=(0,tt.generateLazyValidator)(st.schema,[ct,dt])})(_e.Emote||(_e.Emote={}))}(emote$4)),emote$4}var emotePlayMode$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmotePlayMode=void 0;const et=validation$4;(function(tt){tt.SIMPLE="simple",tt.LOOP="loop"})(_e.EmotePlayMode||(_e.EmotePlayMode={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.EmotePlayMode||(_e.EmotePlayMode={}))})(emotePlayMode$2);var hasRequiredEmote$4;function requireEmote$4(){return hasRequiredEmote$4||(hasRequiredEmote$4=1,function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.EmotePlayMode=_e.EmoteCategory=_e.EmoteDataADR74=_e.EmoteRepresentationADR74=_e.Emote=void 0;var et=requireEmote$5();Object.defineProperty(_e,"Emote",{enumerable:!0,get:function(){return et.Emote}});var tt=representationAdr74$2;Object.defineProperty(_e,"EmoteRepresentationADR74",{enumerable:!0,get:function(){return tt.EmoteRepresentationADR74}});var nt=emoteDataAdr74$2;Object.defineProperty(_e,"EmoteDataADR74",{enumerable:!0,get:function(){return nt.EmoteDataADR74}});var at=emoteCategory$2;Object.defineProperty(_e,"EmoteCategory",{enumerable:!0,get:function(){return at.EmoteCategory}});var it=emotePlayMode$2;Object.defineProperty(_e,"EmotePlayMode",{enumerable:!0,get:function(){return it.EmotePlayMode}})}(emote$5)),emote$5}var hasRequiredItem$2;function requireItem$2(){return hasRequiredItem$2||(hasRequiredItem$2=1,function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(dt,ht,pt,mt){mt===void 0&&(mt=pt);var vt=Object.getOwnPropertyDescriptor(ht,pt);(!vt||("get"in vt?!ht.__esModule:vt.writable||vt.configurable))&&(vt={enumerable:!0,get:function(){return ht[pt]}}),Object.defineProperty(dt,mt,vt)}:function(dt,ht,pt,mt){mt===void 0&&(mt=pt),dt[mt]=ht[pt]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(dt,ht){for(var pt in dt)pt!=="default"&&!Object.prototype.hasOwnProperty.call(ht,pt)&&et(ht,dt,pt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.isThirdParty=_e.isStandard=_e.BodyShape=_e.Metrics=_e.Locale=_e.I18N=void 0;var nt=i18n$2;Object.defineProperty(_e,"I18N",{enumerable:!0,get:function(){return nt.I18N}});var at=locale$6;Object.defineProperty(_e,"Locale",{enumerable:!0,get:function(){return at.Locale}});var it=metrics$2;Object.defineProperty(_e,"Metrics",{enumerable:!0,get:function(){return it.Metrics}});var ot=bodyShape$2;Object.defineProperty(_e,"BodyShape",{enumerable:!0,get:function(){return ot.BodyShape}});var st=standardProps$2;Object.defineProperty(_e,"isStandard",{enumerable:!0,get:function(){return st.isStandard}});var ct=thirdPartyProps$2;Object.defineProperty(_e,"isThirdParty",{enumerable:!0,get:function(){return ct.isThirdParty}}),tt(wearable$5,_e),tt(requireEmote$4(),_e)}(item$5)),item$5}var merkleTree$2={};(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(merkleProof$2,_e)})(merkleTree$2);var syncDeployments$2={},authChain$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.AuthChain=_e.AuthLink=_e.AuthLinkType=void 0;const et=validation$4;var tt;(function(at){at.SIGNER="SIGNER",at.ECDSA_PERSONAL_EPHEMERAL="ECDSA_EPHEMERAL",at.ECDSA_PERSONAL_SIGNED_ENTITY="ECDSA_SIGNED_ENTITY",at.ECDSA_EIP_1654_EPHEMERAL="ECDSA_EIP_1654_EPHEMERAL",at.ECDSA_EIP_1654_SIGNED_ENTITY="ECDSA_EIP_1654_SIGNED_ENTITY"})(tt=_e.AuthLinkType||(_e.AuthLinkType={}));var nt;(function(at){at.schema={type:"object",properties:{type:{type:"string",enum:Object.values(tt)},payload:{type:"string"},signature:{type:"string",nullable:!0}},required:["payload","type"],if:{properties:{type:{not:{const:tt.SIGNER}}}},then:{required:["signature"]},else:{oneOf:[{properties:{signature:{type:"string",const:""}},required:["signature"]},{properties:{signature:{type:"null"}}}]}},at.validate=(0,et.generateLazyValidator)(at.schema)})(nt=_e.AuthLink||(_e.AuthLink={})),function(at){at.schema={type:"array",items:nt.schema,minItems:1},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.AuthChain||(_e.AuthChain={}))})(authChain$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PointerChangesSyncDeployment=_e.SnapshotSyncDeployment=void 0;const et=misc$2,tt=authChain$2,nt=validation$4;(function(at){at.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:tt.AuthChain.schema,entityTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:et.IPFSv1.schema}},{properties:{entityId:et.IPFSv2.schema}}],required:["entityId","entityType","pointers","entityTimestamp","authChain"]},at.validate=(0,nt.generateLazyValidator)(at.schema)})(_e.SnapshotSyncDeployment||(_e.SnapshotSyncDeployment={})),function(at){at.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},authChain:tt.AuthChain.schema,entityTimestamp:{type:"number",minimum:0},localTimestamp:{type:"number",minimum:0}},oneOf:[{properties:{entityId:et.IPFSv1.schema}},{properties:{entityId:et.IPFSv2.schema}}],required:["entityId","entityType","pointers","localTimestamp","entityTimestamp","authChain"]},at.validate=(0,nt.generateLazyValidator)(at.schema)}(_e.PointerChangesSyncDeployment||(_e.PointerChangesSyncDeployment={}))})(syncDeployments$2);var entity$2={},contentMapping$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ContentMapping=void 0;const et=misc$2,tt=validation$4;(function(nt){nt.schema={type:"object",properties:{file:{type:"string",minLength:1},hash:{type:"string",oneOf:[et.IPFSv1.schema,et.IPFSv2.schema]}},required:["file","hash"]},nt.validate=(0,tt.generateLazyValidator)(nt.schema)})(_e.ContentMapping||(_e.ContentMapping={}))})(contentMapping$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Entity=_e.EntityType=void 0;const et=misc$2,tt=contentMapping$2,nt=validation$4;(function(at){at.SCENE="scene",at.PROFILE="profile",at.WEARABLE="wearable",at.STORE="store",at.EMOTE="emote",at.OUTFITS="outfits"})(_e.EntityType||(_e.EntityType={})),function(at){at.schema={type:"object",properties:{version:{type:"string",enum:["v3"]},id:{type:"string",oneOf:[et.IPFSv1.schema,et.IPFSv2.schema]},type:{type:"string"},pointers:{type:"array",items:{type:"string",minLength:1}},timestamp:{type:"number",minimum:0},content:{type:"array",items:tt.ContentMapping.schema},metadata:{type:"object",nullable:!0}},required:["version","id","type","pointers","timestamp","content"]},at.validate=(0,nt.generateLazyValidator)(at.schema)}(_e.Entity||(_e.Entity={}))})(entity$2);var deploymentWithAuthChain$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.DeploymentWithAuthChain=void 0;const et=authChain$2,tt=validation$4;(function(nt){nt.schema={type:"object",properties:{entityId:{type:"string"},entityType:{type:"string"},pointers:{type:"array",items:{type:"string"},minItems:1},localTimestamp:{type:"number",minimum:0},authChain:et.AuthChain.schema},required:["entityId","entityType","pointers","localTimestamp","authChain"]},nt.validate=(0,tt.generateLazyValidator)(nt.schema)})(_e.DeploymentWithAuthChain||(_e.DeploymentWithAuthChain={}))})(deploymentWithAuthChain$2);var outfits$5={},outfits$4={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Outfits=_e.Outfit=void 0;const et=wearableCategory$2,tt=misc$2,nt=validation$4;var at;(function(it){it.schema={type:"object",required:["bodyShape","eyes","hair","skin","wearables"],properties:{bodyShape:{type:"string"},eyes:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},hair:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},skin:{type:"object",required:["color"],properties:{color:tt.Color3.schema}},wearables:{type:"array",items:{type:"string"}},forceRender:{type:"array",nullable:!0,items:et.WearableCategory.schema}},additionalProperties:!0},it.validate=(0,nt.generateLazyValidator)(it.schema)})(at=_e.Outfit||(_e.Outfit={})),function(it){it.schema={type:"object",required:["outfits","namesForExtraSlots"],properties:{outfits:{type:"array",items:{type:"object",required:["slot","outfit"],properties:{slot:{type:"number"},outfit:at.schema}}},namesForExtraSlots:{type:"array",uniqueItems:!0,items:{type:"string"}}},additionalProperties:!0},it.validate=(0,nt.generateLazyValidator)(it.schema)}(_e.Outfits||(_e.Outfits={}))})(outfits$4);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(outfits$4,_e)})(outfits$5);var notifications$1={},notifications={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NotificationType=void 0,function(et){et.BID_ACCEPTED="bid_accepted",et.BID_RECEIVED="bid_received",et.EVENTS_STARTED="events_started",et.EVENTS_STARTS_SOON="events_starts_soon",et.GOVERNANCE_ANNOUNCEMENT="governance_announcement",et.GOVERNANCE_AUTHORED_PROPOSAL_FINISHED="governance_authored_proposal_finished",et.GOVERNANCE_COAUTHOR_REQUESTED="governance_coauthor_requested",et.GOVERNANCE_NEW_COMMENT_ON_PROJECT_UPDATE="governance_new_comment_on_project_update",et.GOVERNANCE_NEW_COMMENT_ON_PROPOSAL="governance_new_comment_on_proposal",et.GOVERNANCE_PROPOSAL_ENACTED="governance_proposal_enacted",et.GOVERNANCE_VOTING_ENDED_VOTER="governance_voting_ended_voter",et.GOVERNANCE_PITCH_PASSED="governance_pitch_passed",et.GOVERNANCE_TENDER_PASSED="governance_tender_passed",et.ITEM_SOLD="item_sold",et.LAND_RENTAL_ENDED="rental_ended",et.LAND_RENTED="rental_started",et.REWARD_ASSIGNED="reward_assignment",et.ROYALTIES_EARNED="royalties_earned",et.WORLDS_ACCESS_RESTORED="worlds_access_restored",et.WORLDS_ACCESS_RESTRICTED="worlds_access_restricted",et.WORLDS_MISSING_RESOURCES="worlds_missing_resources",et.WORLDS_PERMISSION_GRANTED="worlds_permission_granted",et.WORLDS_PERMISSION_REVOKED="worlds_permission_revoked"}(_e.NotificationType||(_e.NotificationType={}))})(notifications);var subscription={},subscriptionDetails={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SubscriptionDetails=void 0;const et=validation$4,tt=notifications,nt={type:"object",required:["email","in_app"],properties:{email:{type:"boolean"},in_app:{type:"boolean"}}},at=Object.values(tt.NotificationType).reduce((it,ot)=>(it[ot]=nt,it),{});(function(it){it.schema={type:"object",required:["ignore_all_email","ignore_all_in_app","message_type"],properties:{ignore_all_email:{type:"boolean"},ignore_all_in_app:{type:"boolean"},message_type:{type:"object",required:Object.values(tt.NotificationType),additionalProperties:!1,properties:at}}},it.validate=(0,et.generateLazyValidator)(it.schema)})(_e.SubscriptionDetails||(_e.SubscriptionDetails={}))})(subscriptionDetails);var email={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Email=void 0,function(et){et.schema={type:"string",pattern:"^[\\w\\-\\.]+@([\\w-]+\\.)+[\\w-]{2,}$"};const tt=new RegExp(et.schema.pattern);et.validate=nt=>tt.test(nt)}(_e.Email||(_e.Email={}))})(email);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Subscription=void 0;const et=validation$4,tt=subscriptionDetails,nt=misc$2,at=email;(function(it){it.schema={type:"object",required:["address","details"],properties:{address:nt.EthAddress.schema,email:Object.assign(Object.assign({},at.Email.schema),{nullable:!0}),details:tt.SubscriptionDetails.schema}},it.validate=(0,et.generateLazyValidator)(it.schema)})(_e.Subscription||(_e.Subscription={}))})(subscription);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(notifications,_e),tt(subscription,_e),tt(subscriptionDetails,_e)})(notifications$1);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(profile$5,_e),tt(scene$5,_e),tt(requireItem$2(),_e),tt(displayable$2,_e),tt(merkleTree$2,_e),tt(syncDeployments$2,_e),tt(entity$2,_e),tt(deploymentWithAuthChain$2,_e),tt(outfits$5,_e),tt(notifications$1,_e)})(platform$3);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.WearableJson=void 0;const et=rarity$2,tt=wearableCategory$2,nt=representation$2,at=validation$4,it=platform$3;(function(ot){ot.schema={type:"object",properties:{description:{type:"string"},rarity:Object.assign(Object.assign({},et.Rarity.schema),{nullable:!0}),name:{type:"string"},data:{type:"object",properties:{replaces:{type:"array",items:tt.WearableCategory.schema},hides:{type:"array",items:tt.WearableCategory.schema},tags:{type:"array",items:{type:"string",minLength:1}},representations:{type:"array",items:nt.WearableRepresentation.schema,minItems:1},category:tt.WearableCategory.schema,removesDefaultHiding:{type:"array",nullable:!0,items:it.HideableWearableCategory.schema},blockVrmExport:{type:"boolean",nullable:!0}},required:["replaces","hides","tags","representations","category"]}},additionalProperties:!0,required:["description","name","data"]},ot.validate=(0,at.generateLazyValidator)(ot.schema)})(_e.WearableJson||(_e.WearableJson={}))})(wearableJson$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(type$3,_e),tt(wearableJson$2,_e)})(project$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(ws$2,_e),tt(project$2,_e)})(sdk$2);var bid$3={},listingStatus$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.ListingStatus=void 0;const et=validation$4;(function(tt){tt.OPEN="open",tt.SOLD="sold",tt.CANCELLED="cancelled"})(_e.ListingStatus||(_e.ListingStatus={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.ListingStatus||(_e.ListingStatus={}))})(listingStatus$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Bid=_e.BidSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=listingStatus$2,at=network$3;(function(it){it.RECENTLY_OFFERED="recently_offered",it.RECENTLY_UPDATED="recently_updated",it.MOST_EXPENSIVE="most_expensive"})(_e.BidSortBy||(_e.BidSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},bidAddress:{type:"string"},bidder:{type:"string"},seller:{type:"string"},price:{type:"string"},fingerprint:{type:"string"},status:nt.ListingStatus.schema,blockchainId:{type:"string"},blockNumber:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},network:at.Network.schema,chainId:tt.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"}},required:["id","bidAddress","bidder","seller","price","fingerprint","status","blockchainId","blockNumber","contractAddress","tokenId","network","chainId","expiresAt","createdAt","updatedAt"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Bid||(_e.Bid={}))})(bid$3);var account$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Account=_e.AccountSortBy=void 0;const et=validation$4;(function(tt){tt.MOST_SALES="most_sales",tt.MOST_PURCHASES="most_purchases",tt.MOST_SPENT="most_spent",tt.MOST_EARNED="most_earned",tt.MOST_ROYALTIES="most_royalties",tt.MOST_COLLECTIONS="most_collections"})(_e.AccountSortBy||(_e.AccountSortBy={})),function(tt){tt.schema={type:"object",properties:{id:{type:"string"},address:{type:"string"},sales:{type:"integer"},purchases:{type:"integer"},spent:{type:"string"},earned:{type:"string"},royalties:{type:"string"},collections:{type:"number"}},required:["id","address","sales","purchases","spent","earned","royalties","collections"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.Account||(_e.Account={}))})(account$2);var collection$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Collection=_e.CollectionSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3;(function(at){at.NEWEST="newest",at.NAME="name",at.RECENTLY_REVIEWED="recently_reviewed",at.RECENTLY_LISTED="recently_listed",at.SIZE="size"})(_e.CollectionSortBy||(_e.CollectionSortBy={})),function(at){at.schema={type:"object",properties:{urn:{type:"string"},creator:{type:"string"},name:{type:"string"},contractAddress:{type:"string"},size:{type:"integer"},isOnSale:{type:"boolean"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},network:nt.Network.schema,chainId:tt.ChainId.schema,firstListedAt:{type:"integer",nullable:!0}},required:["urn","creator","name","contractAddress","isOnSale","size","createdAt","updatedAt","reviewedAt","network","chainId"]},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.Collection||(_e.Collection={}))})(collection$2);var contract$2={},nftCategory$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NFTCategory=void 0;const et=validation$4;(function(tt){tt.PARCEL="parcel",tt.ESTATE="estate",tt.WEARABLE="wearable",tt.ENS="ens",tt.EMOTE="emote"})(_e.NFTCategory||(_e.NFTCategory={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.NFTCategory||(_e.NFTCategory={}))})(nftCategory$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Contract=_e.ContractSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3,at=nftCategory$2;(function(it){it.NAME="name"})(_e.ContractSortBy||(_e.ContractSortBy={})),function(it){it.schema={type:"object",properties:{name:{type:"string"},address:{type:"string"},category:at.NFTCategory.schema,network:nt.Network.schema,chainId:tt.ChainId.schema},required:["name","address","category","network","chainId"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Contract||(_e.Contract={}))})(contract$2);var item$4={},nft$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.NFT=_e.NFTSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=platform$3,at=network$3,it=nftCategory$2,ot=rarity$2,st=wearableCategory$2;(function(ct){ct.NAME="name",ct.NEWEST="newest",ct.RECENTLY_LISTED="recently_listed",ct.RECENTLY_SOLD="recently_sold",ct.CHEAPEST="cheapest",ct.RENTAL_LISTING_DATE="rental_listing_date",ct.RENTAL_DATE="rented_date",ct.MAX_RENTAL_PRICE="max_rental_price",ct.MIN_RENTAL_PRICE="min_rental_price"})(_e.NFTSortBy||(_e.NFTSortBy={})),function(ct){ct.schema={type:"object",properties:{id:{type:"string"},tokenId:{type:"string"},contractAddress:{type:"string"},activeOrderId:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},openRentalId:{type:"string",nullable:!0},owner:{type:"string"},name:{type:"string"},image:{type:"string"},url:{type:"string"},data:{type:"object",nullable:!1,properties:{parcel:{type:"object",properties:{description:{type:["string"],nullable:!0},x:{type:"string"},y:{type:"string"},estate:{type:"object",properties:{tokenId:{type:"string"},name:{type:"string"}},required:["tokenId","name"],nullable:!0}},required:["description","x","y","estate"],nullable:!0},estate:{type:"object",properties:{description:{type:["string"],nullable:!0},size:{type:"integer"},parcels:{type:"array",items:{type:"object",properties:{x:{type:"number"},y:{type:"number"}},required:["x","y"]}}},required:["description","size","parcels"],nullable:!0},wearable:{type:"object",properties:{bodyShapes:{type:"array",items:nt.BodyShape.schema},category:st.WearableCategory.schema,description:{type:"string"},rarity:ot.Rarity.schema,isSmart:{type:"boolean"}},required:["bodyShapes","category","description","rarity","isSmart"],nullable:!0},ens:{type:"object",properties:{subdomain:{type:"string"}},required:["subdomain"],nullable:!0},emote:{type:"object",properties:{bodyShapes:{type:"array",items:nt.BodyShape.schema},category:nt.EmoteCategory.schema,description:{type:"string"},rarity:ot.Rarity.schema,loop:{type:"boolean"},hasSound:{type:"boolean"},hasGeometry:{type:"boolean"}},required:["bodyShapes","category","description","rarity","loop"],nullable:!0}},required:[]},issuedId:{type:"string",nullable:!0},itemId:{type:"string",nullable:!0},category:it.NFTCategory.schema,network:at.Network.schema,chainId:tt.ChainId.schema,createdAt:{type:"integer"},updatedAt:{type:"integer"},soldAt:{type:"integer"},urn:{type:"string",nullable:!0}},required:["id","tokenId","contractAddress","activeOrderId","openRentalId","owner","name","image","url","data","issuedId","itemId","category","network","chainId","createdAt","updatedAt","soldAt"]},ct.validate=(0,et.generateLazyValidator)(ct.schema)}(_e.NFT||(_e.NFT={}))})(nft$2);(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Item=_e.ItemSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3,at=nft$2,it=nftCategory$2;(function(ot){ot.NAME="name",ot.NEWEST="newest",ot.RECENTLY_REVIEWED="recently_reviewed",ot.RECENTLY_SOLD="recently_sold",ot.RECENTLY_LISTED="recently_listed",ot.CHEAPEST="cheapest"})(_e.ItemSortBy||(_e.ItemSortBy={})),function(ot){ot.schema={type:"object",properties:{id:{type:"string"},name:{type:"string"},thumbnail:{type:"string"},url:{type:"string"},category:it.NFTCategory.schema,contractAddress:{type:"string"},itemId:{type:"string"},rarity:{type:"string"},price:{type:"string"},available:{type:"integer"},isOnSale:{type:"boolean"},creator:{type:"string"},beneficiary:{type:"string",nullable:!0},data:at.NFT.schema.properties.data,network:nt.Network.schema,chainId:tt.ChainId.schema,urn:{type:"string"},createdAt:{type:"integer"},updatedAt:{type:"integer"},reviewedAt:{type:"integer"},soldAt:{type:"integer"},firstListedAt:{type:"integer",nullable:!0},picks:{type:"object",properties:{pickedByUser:{type:"boolean",nullable:!0},count:{type:"integer"}},required:["count"],nullable:!0},minPrice:{type:"string",nullable:!0},utility:{type:"string",nullable:!0},minListingPrice:{type:"string",nullable:!0},maxListingPrice:{type:"string",nullable:!0},listings:{type:"integer",nullable:!0},owners:{type:"integer",nullable:!0}},required:["id","name","thumbnail","url","category","contractAddress","itemId","rarity","price","available","isOnSale","creator","data","network","chainId","createdAt","updatedAt","soldAt"]},ot.validate=(0,et.generateLazyValidator)(ot.schema)}(_e.Item||(_e.Item={}))})(item$4);var metaTransactions$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.MetaTransaction=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{from:{type:"string"},params:{type:"array",items:[{type:"string"},{type:"string"}],additionalItems:!1,minItems:2}},additionalProperties:!1,required:["from","params"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.MetaTransaction||(_e.MetaTransaction={}))})(metaTransactions$2);var mint$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Mint=_e.MintSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3;(function(at){at.RECENTLY_MINTED="recently_minted",at.MOST_EXPENSIVE="most_expensive"})(_e.MintSortBy||(_e.MintSortBy={})),function(at){at.schema={type:"object",properties:{id:{type:"string"},creator:{type:"string"},beneficiary:{type:"string"},minter:{type:"string"},price:{type:"string",nullable:!0},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},issuedId:{type:"string"},timestamp:{type:"integer"},network:nt.Network.schema,chainId:tt.ChainId.schema},required:["id","creator","beneficiary","minter","itemId","tokenId","issuedId","contractAddress","price","timestamp","network","chainId"]},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.Mint||(_e.Mint={}))})(mint$2);var catalog$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.CatalogSortDirection=_e.CatalogSortBy=void 0,function(et){et.NEWEST="newest",et.RECENTLY_SOLD="recently_sold",et.CHEAPEST="cheapest",et.MOST_EXPENSIVE="most_expensive",et.RECENTLY_LISTED="recently_listed"}(_e.CatalogSortBy||(_e.CatalogSortBy={})),function(et){et.ASC="asc",et.DESC="desc"}(_e.CatalogSortDirection||(_e.CatalogSortDirection={}))})(catalog$2);var order$3={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Order=_e.OrderSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=listingStatus$2,at=network$3;(function(it){it.RECENTLY_LISTED="recently_listed",it.RECENTLY_UPDATED="recently_updated",it.CHEAPEST="cheapest",it.ISSUED_ID_ASC="issued_id_asc",it.ISSUED_ID_DESC="issued_id_desc",it.OLDEST="oldest"})(_e.OrderSortBy||(_e.OrderSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},marketplaceAddress:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},owner:{type:"string"},buyer:{type:["string"],nullable:!0},price:{type:"string"},status:nt.ListingStatus.schema,network:at.Network.schema,chainId:tt.ChainId.schema,expiresAt:{type:"integer"},createdAt:{type:"integer"},updatedAt:{type:"integer"},issuedId:{type:"string"}},required:["id","marketplaceAddress","contractAddress","tokenId","owner","buyer","price","status","network","chainId","expiresAt","createdAt","updatedAt"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Order||(_e.Order={}))})(order$3);var saleType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.SaleType=void 0;const et=validation$4;(function(tt){tt.ORDER="order",tt.BID="bid",tt.MINT="mint"})(_e.SaleType||(_e.SaleType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.SaleType||(_e.SaleType={}))})(saleType$2);var sale$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Sale=_e.SaleSortBy=void 0;const et=validation$4,tt=requireChainId$2(),nt=saleType$2,at=network$3;(function(it){it.RECENTLY_SOLD="recently_sold",it.MOST_EXPENSIVE="most_expensive"})(_e.SaleSortBy||(_e.SaleSortBy={})),function(it){it.schema={type:"object",properties:{id:{type:"string"},type:nt.SaleType.schema,buyer:{type:"string"},seller:{type:"string"},price:{type:"string"},contractAddress:{type:"string"},tokenId:{type:"string"},itemId:{type:"string"},txHash:{type:"string"},timestamp:{type:"integer"},network:at.Network.schema,chainId:tt.ChainId.schema},required:["id","buyer","seller","itemId","tokenId","price","contractAddress","timestamp","txHash","network","chainId"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.Sale||(_e.Sale={}))})(sale$2);var rentalsListings$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.RentalListingCreation=_e.PeriodCreation=_e.RentalsListingsSortBy=_e.RentalsListingsFilterByCategory=_e.RentalsListingSortDirection=_e.RentalStatus=void 0;const et=validation$4,tt=requireChainId$2(),nt=network$3;(function(it){it.OPEN="open",it.CANCELLED="cancelled",it.EXECUTED="executed",it.CLAIMED="claimed"})(_e.RentalStatus||(_e.RentalStatus={})),function(it){it.ASC="asc",it.DESC="desc"}(_e.RentalsListingSortDirection||(_e.RentalsListingSortDirection={})),function(it){it.PARCEL="parcel",it.ESTATE="estate"}(_e.RentalsListingsFilterByCategory||(_e.RentalsListingsFilterByCategory={})),function(it){it.LAND_CREATION_DATE="land_creation_date",it.RENTAL_LISTING_DATE="rental_listing_date",it.RENTAL_DATE="rented_date",it.NAME="name",it.MAX_RENTAL_PRICE="max_rental_price",it.MIN_RENTAL_PRICE="min_rental_price"}(_e.RentalsListingsSortBy||(_e.RentalsListingsSortBy={}));var at;(function(it){it.schema={type:"object",properties:{minDays:{type:"integer",minimum:0,maximum:2147483647},maxDays:{type:"integer",minimum:0,maximum:2147483647},pricePerDay:{type:"string",pattern:"^[0-9]+$"}},additionalProperties:!1,required:["minDays","maxDays","pricePerDay"]},it.validate=(0,et.generateLazyValidator)(it.schema)})(at=_e.PeriodCreation||(_e.PeriodCreation={})),function(it){it.schema={type:"object",properties:{network:nt.Network.schema,chainId:tt.ChainId.schema,expiration:{type:"number",minimum:0},signature:{type:"string",minLength:1},tokenId:{type:"string",minLength:1},nonces:{type:"array",minItems:3,maxItems:3,items:{minLength:1,type:"string",pattern:"^[0-9]+$"}},contractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},rentalContractAddress:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"},periods:{type:"array",minItems:1,maxItems:100,uniqueItems:!0,items:at.schema},target:{type:"string",pattern:"^0x[a-fA-F0-9]{40}$"}},additionalProperties:!1,required:["network","chainId","expiration","signature","nonces","tokenId","contractAddress","rentalContractAddress","periods","target"]},it.validate=(0,et.generateLazyValidator)(it.schema)}(_e.RentalListingCreation||(_e.RentalListingCreation={}))})(rentalsListings$2);var analyticsDayData$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.AnalyticsDayDataSortBy=void 0,function(et){et.DATE="date",et.MOST_SALES="most_sales"}(_e.AnalyticsDayDataSortBy||(_e.AnalyticsDayDataSortBy={}))})(analyticsDayData$2);var store$4={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Store=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{id:{type:"string"},version:{type:"number"},owner:{type:"string"},description:{type:"string"},links:{type:"array",items:{type:"object",properties:{name:{type:"string"},url:{type:"string"}},required:["name","url"]}},images:{type:"array",items:{type:"object",properties:{name:{type:"string"},file:{type:"string"}},required:["name","file"]}}},required:["id","version","owner","description","links","images"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.Store||(_e.Store={}))})(store$4);var wearableGender$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.GenderFilterOption=_e.WearableGender=void 0;const et=validation$4;(function(tt){tt.MALE="male",tt.FEMALE="female"})(_e.WearableGender||(_e.WearableGender={})),function(tt){tt.MALE="male",tt.FEMALE="female",tt.UNISEX="unisex"}(_e.GenderFilterOption||(_e.GenderFilterOption={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.WearableGender||(_e.WearableGender={}))})(wearableGender$2);var world$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.World=_e.isInsideWorldLimits=_e.getWorld=void 0;const et=validation$4;function tt(){return{validWorldRanges:[{xMin:-150,yMin:-150,xMax:150,yMax:150},{xMin:62,yMin:151,xMax:162,yMax:158},{xMin:151,yMin:144,xMax:162,yMax:150},{xMin:151,yMin:59,xMax:163,yMax:143}]}}_e.getWorld=tt;function nt(at,it){const ot=tt().validWorldRanges;for(const st of ot)if(at>=st.xMin&&at<=st.xMax&&it>=st.yMin&&it<=st.yMax)return!0;return!1}_e.isInsideWorldLimits=nt,function(at){at.schema={type:"object",required:["validWorldRanges"],properties:{validWorldRanges:{type:"array",default:[{xMin:-150,yMin:-150,xMax:150,yMax:150}],items:{type:"object",required:["xMin","yMin","xMax","yMax"],properties:{xMin:{type:"integer"},yMin:{type:"integer"},xMax:{type:"integer"},yMax:{type:"integer"}}}}},additionalProperties:!1},at.validate=(0,et.generateLazyValidator)(at.schema)}(_e.World||(_e.World={}))})(world$2);var preview$2={},previewCamera$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewCamera=void 0;const et=validation$4;(function(tt){tt.STATIC="static",tt.INTERACTIVE="interactive"})(_e.PreviewCamera||(_e.PreviewCamera={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewCamera||(_e.PreviewCamera={}))})(previewCamera$2);var previewConfig$2={};Object.defineProperty(previewConfig$2,"__esModule",{value:!0});var previewController$2={};Object.defineProperty(previewController$2,"__esModule",{value:!0});var previewEmoteEventType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewEmoteEventType=void 0;const et=validation$4;(function(tt){tt.ANIMATION_PLAY="animation_play",tt.ANIMATION_PAUSE="animation_pause",tt.ANIMATION_LOOP="animation_loop",tt.ANIMATION_END="animation_end",tt.ANIMATION_PLAYING="animation_playing"})(_e.PreviewEmoteEventType||(_e.PreviewEmoteEventType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewEmoteEventType||(_e.PreviewEmoteEventType={}))})(previewEmoteEventType$2);var previewEmote$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewEmote=void 0;const et=validation$4;(function(tt){tt.IDLE="idle",tt.WALK="walk",tt.RUN="run",tt.JUMP="jump",tt.CLAP="clap",tt.DAB="dab",tt.DANCE="dance",tt.FASHION="fashion",tt.FASHION_2="fashion-2",tt.FASHION_3="fashion-3",tt.FASHION_4="fashion-4",tt.LOVE="love",tt.MONEY="money",tt.FIST_PUMP="fist-pump",tt.HEAD_EXPLODE="head-explode",tt.WAVE="wave"})(_e.PreviewEmote||(_e.PreviewEmote={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewEmote||(_e.PreviewEmote={}))})(previewEmote$2);var previewMessage$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.sendMessage=_e.PreviewMessageType=void 0;const et=validation$4;(function(nt){nt.READY="ready",nt.LOAD="load",nt.ERROR="error",nt.UPDATE="update",nt.CONTROLLER_REQUEST="controller_request",nt.CONTROLLER_RESPONSE="controller_response",nt.EMOTE_EVENT="emote_event"})(_e.PreviewMessageType||(_e.PreviewMessageType={})),function(nt){nt.schema={type:"string",enum:Object.values(nt)},nt.validate=(0,et.generateLazyValidator)(nt.schema)}(_e.PreviewMessageType||(_e.PreviewMessageType={}));const tt=(nt,at,it,ot="*")=>{const st={type:at,payload:it};nt.postMessage(st,ot)};_e.sendMessage=tt})(previewMessage$2);var previewOptions$2={};Object.defineProperty(previewOptions$2,"__esModule",{value:!0});var previewProjection$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewProjection=void 0;const et=validation$4;(function(tt){tt.ORTHOGRAPHIC="orthographic",tt.PERSPECTIVE="perspective"})(_e.PreviewProjection||(_e.PreviewProjection={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewProjection||(_e.PreviewProjection={}))})(previewProjection$2);var previewType$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PreviewType=void 0;const et=validation$4;(function(tt){tt.TEXTURE="texture",tt.WEARABLE="wearable",tt.AVATAR="avatar"})(_e.PreviewType||(_e.PreviewType={})),function(tt){tt.schema={type:"string",enum:Object.values(tt)},tt.validate=(0,et.generateLazyValidator)(tt.schema)}(_e.PreviewType||(_e.PreviewType={}))})(previewType$2);var wearableRepresentationDefinition$2={};Object.defineProperty(wearableRepresentationDefinition$2,"__esModule",{value:!0});var wearableRepresentationWithBlobs$2={};Object.defineProperty(wearableRepresentationWithBlobs$2,"__esModule",{value:!0});var wearableDefinition$2={};Object.defineProperty(wearableDefinition$2,"__esModule",{value:!0});var wearableWithBlobs$2={};Object.defineProperty(wearableWithBlobs$2,"__esModule",{value:!0});var emoteRepresentationDefinition$2={};Object.defineProperty(emoteRepresentationDefinition$2,"__esModule",{value:!0});var emoteRepresentationWithBlobs$2={};Object.defineProperty(emoteRepresentationWithBlobs$2,"__esModule",{value:!0});var emoteDefinition$2={};Object.defineProperty(emoteDefinition$2,"__esModule",{value:!0});var emoteWithBlobs$2={};Object.defineProperty(emoteWithBlobs$2,"__esModule",{value:!0});(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,at,it,ot){ot===void 0&&(ot=it);var st=Object.getOwnPropertyDescriptor(at,it);(!st||("get"in st?!at.__esModule:st.writable||st.configurable))&&(st={enumerable:!0,get:function(){return at[it]}}),Object.defineProperty(nt,ot,st)}:function(nt,at,it,ot){ot===void 0&&(ot=it),nt[ot]=at[it]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,at){for(var it in nt)it!=="default"&&!Object.prototype.hasOwnProperty.call(at,it)&&et(at,nt,it)};Object.defineProperty(_e,"__esModule",{value:!0}),tt(previewCamera$2,_e),tt(previewConfig$2,_e),tt(previewController$2,_e),tt(previewEmoteEventType$2,_e),tt(previewEmote$2,_e),tt(previewMessage$2,_e),tt(previewOptions$2,_e),tt(previewProjection$2,_e),tt(previewType$2,_e),tt(wearableRepresentationDefinition$2,_e),tt(wearableRepresentationWithBlobs$2,_e),tt(wearableDefinition$2,_e),tt(wearableWithBlobs$2,_e),tt(emoteRepresentationDefinition$2,_e),tt(emoteRepresentationWithBlobs$2,_e),tt(emoteDefinition$2,_e),tt(emoteWithBlobs$2,_e)})(preview$2);var linkerAuthorization$2={};(function(_e){Object.defineProperty(_e,"__esModule",{value:!0}),_e.LinkerAuthorization=void 0;const et=validation$4;(function(tt){tt.schema={type:"object",properties:{name:{type:"string"},desc:{type:"string"},startDate:{type:"string",nullable:!0},endDate:{type:"string",nullable:!0},contactInfo:{type:"object",properties:{name:{type:"string"}},required:["name"]},addresses:{type:"array",items:{type:"string"},minItems:1},plots:{type:"array",items:{type:"string"},minItems:1}},required:["name","desc","contactInfo","addresses","plots"]},tt.validate=(0,et.generateLazyValidator)(tt.schema)})(_e.LinkerAuthorization||(_e.LinkerAuthorization={}))})(linkerAuthorization$2);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(xt,At,Mt,It){It===void 0&&(It=Mt);var Lt=Object.getOwnPropertyDescriptor(At,Mt);(!Lt||("get"in Lt?!At.__esModule:Lt.writable||Lt.configurable))&&(Lt={enumerable:!0,get:function(){return At[Mt]}}),Object.defineProperty(xt,It,Lt)}:function(xt,At,Mt,It){It===void 0&&(It=Mt),xt[It]=At[Mt]}),tt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(xt,At){Object.defineProperty(xt,"default",{enumerable:!0,value:At})}:function(xt,At){xt.default=At}),nt=commonjsGlobal&&commonjsGlobal.__importStar||function(xt){if(xt&&xt.__esModule)return xt;var At={};if(xt!=null)for(var Mt in xt)Mt!=="default"&&Object.prototype.hasOwnProperty.call(xt,Mt)&&et(At,xt,Mt);return tt(At,xt),At},at=commonjsGlobal&&commonjsGlobal.__exportStar||function(xt,At){for(var Mt in xt)Mt!=="default"&&!Object.prototype.hasOwnProperty.call(At,Mt)&&et(At,xt,Mt)};Object.defineProperty(_e,"__esModule",{value:!0}),_e.sdk=_e.isInsideWorldLimits=_e.getWorld=_e.World=_e.GenderFilterOption=_e.WearableGender=_e.Store=_e.AnalyticsDayDataSortBy=_e.PeriodCreation=_e.RentalListingCreation=_e.RentalsListingsSortBy=_e.RentalsListingsFilterByCategory=_e.RentalsListingSortDirection=_e.RentalStatus=_e.SaleSortBy=_e.Sale=_e.SaleType=_e.Rarity=_e.ProviderType=_e.OrderSortBy=_e.Order=_e.CatalogSortDirection=_e.CatalogSortBy=_e.NFTSortBy=_e.NFT=_e.NFTCategory=_e.Network=_e.MintSortBy=_e.Mint=_e.MetaTransaction=_e.ListingStatus=_e.ItemSortBy=_e.Item=_e.ContractSortBy=_e.Contract=_e.CollectionSortBy=_e.Collection=_e.getChainId=_e.ChainName=_e.getURNProtocol=_e.getChainName=_e.ChainId=_e.AccountSortBy=_e.Account=_e.BidSortBy=_e.Bid=void 0;const it=nt(sdk$2);_e.sdk=it,at(validation$4,_e);var ot=bid$3;Object.defineProperty(_e,"Bid",{enumerable:!0,get:function(){return ot.Bid}}),Object.defineProperty(_e,"BidSortBy",{enumerable:!0,get:function(){return ot.BidSortBy}});var st=account$2;Object.defineProperty(_e,"Account",{enumerable:!0,get:function(){return st.Account}}),Object.defineProperty(_e,"AccountSortBy",{enumerable:!0,get:function(){return st.AccountSortBy}});var ct=requireChainId$2();Object.defineProperty(_e,"ChainId",{enumerable:!0,get:function(){return ct.ChainId}}),Object.defineProperty(_e,"getChainName",{enumerable:!0,get:function(){return ct.getChainName}}),Object.defineProperty(_e,"getURNProtocol",{enumerable:!0,get:function(){return ct.getURNProtocol}});var dt=requireChainName$2();Object.defineProperty(_e,"ChainName",{enumerable:!0,get:function(){return dt.ChainName}}),Object.defineProperty(_e,"getChainId",{enumerable:!0,get:function(){return dt.getChainId}});var ht=collection$2;Object.defineProperty(_e,"Collection",{enumerable:!0,get:function(){return ht.Collection}}),Object.defineProperty(_e,"CollectionSortBy",{enumerable:!0,get:function(){return ht.CollectionSortBy}});var pt=contract$2;Object.defineProperty(_e,"Contract",{enumerable:!0,get:function(){return pt.Contract}}),Object.defineProperty(_e,"ContractSortBy",{enumerable:!0,get:function(){return pt.ContractSortBy}});var mt=item$4;Object.defineProperty(_e,"Item",{enumerable:!0,get:function(){return mt.Item}}),Object.defineProperty(_e,"ItemSortBy",{enumerable:!0,get:function(){return mt.ItemSortBy}});var vt=listingStatus$2;Object.defineProperty(_e,"ListingStatus",{enumerable:!0,get:function(){return vt.ListingStatus}});var bt=metaTransactions$2;Object.defineProperty(_e,"MetaTransaction",{enumerable:!0,get:function(){return bt.MetaTransaction}});var _t=mint$2;Object.defineProperty(_e,"Mint",{enumerable:!0,get:function(){return _t.Mint}}),Object.defineProperty(_e,"MintSortBy",{enumerable:!0,get:function(){return _t.MintSortBy}});var wt=network$3;Object.defineProperty(_e,"Network",{enumerable:!0,get:function(){return wt.Network}});var Et=nftCategory$2;Object.defineProperty(_e,"NFTCategory",{enumerable:!0,get:function(){return Et.NFTCategory}});var St=nft$2;Object.defineProperty(_e,"NFT",{enumerable:!0,get:function(){return St.NFT}}),Object.defineProperty(_e,"NFTSortBy",{enumerable:!0,get:function(){return St.NFTSortBy}});var Tt=catalog$2;Object.defineProperty(_e,"CatalogSortBy",{enumerable:!0,get:function(){return Tt.CatalogSortBy}}),Object.defineProperty(_e,"CatalogSortDirection",{enumerable:!0,get:function(){return Tt.CatalogSortDirection}});var Ct=order$3;Object.defineProperty(_e,"Order",{enumerable:!0,get:function(){return Ct.Order}}),Object.defineProperty(_e,"OrderSortBy",{enumerable:!0,get:function(){return Ct.OrderSortBy}});var Nt=providerType$2;Object.defineProperty(_e,"ProviderType",{enumerable:!0,get:function(){return Nt.ProviderType}});var Dt=rarity$2;Object.defineProperty(_e,"Rarity",{enumerable:!0,get:function(){return Dt.Rarity}});var kt=saleType$2;Object.defineProperty(_e,"SaleType",{enumerable:!0,get:function(){return kt.SaleType}});var Ft=sale$2;Object.defineProperty(_e,"Sale",{enumerable:!0,get:function(){return Ft.Sale}}),Object.defineProperty(_e,"SaleSortBy",{enumerable:!0,get:function(){return Ft.SaleSortBy}});var jt=rentalsListings$2;Object.defineProperty(_e,"RentalStatus",{enumerable:!0,get:function(){return jt.RentalStatus}}),Object.defineProperty(_e,"RentalsListingSortDirection",{enumerable:!0,get:function(){return jt.RentalsListingSortDirection}}),Object.defineProperty(_e,"RentalsListingsFilterByCategory",{enumerable:!0,get:function(){return jt.RentalsListingsFilterByCategory}}),Object.defineProperty(_e,"RentalsListingsSortBy",{enumerable:!0,get:function(){return jt.RentalsListingsSortBy}}),Object.defineProperty(_e,"RentalListingCreation",{enumerable:!0,get:function(){return jt.RentalListingCreation}}),Object.defineProperty(_e,"PeriodCreation",{enumerable:!0,get:function(){return jt.PeriodCreation}});var Gt=analyticsDayData$2;Object.defineProperty(_e,"AnalyticsDayDataSortBy",{enumerable:!0,get:function(){return Gt.AnalyticsDayDataSortBy}});var Rt=store$4;Object.defineProperty(_e,"Store",{enumerable:!0,get:function(){return Rt.Store}});var yt=wearableGender$2;Object.defineProperty(_e,"WearableGender",{enumerable:!0,get:function(){return yt.WearableGender}}),Object.defineProperty(_e,"GenderFilterOption",{enumerable:!0,get:function(){return yt.GenderFilterOption}});var $t=world$2;Object.defineProperty(_e,"World",{enumerable:!0,get:function(){return $t.World}}),Object.defineProperty(_e,"getWorld",{enumerable:!0,get:function(){return $t.getWorld}}),Object.defineProperty(_e,"isInsideWorldLimits",{enumerable:!0,get:function(){return $t.isInsideWorldLimits}}),at(preview$2,_e),at(platform$3,_e),at(misc$2,_e),at(linkerAuthorization$2,_e),at(authChain$2,_e),at(contentMapping$2,_e),at(email,_e)})(dist$d);const configuration=Object.freeze({storageKey:"decentraland-connect-storage-key",[providerType$2.ProviderType.INJECTED]:{},[providerType$2.ProviderType.FORTMATIC]:{apiKeys:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:"pk_live_F8E24DF8DD5BCBC5",[chainIdExports.ChainId.ETHEREUM_ROPSTEN]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_RINKEBY]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_KOVAN]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_GOERLI]:"pk_test_5B728BEFE5C10911",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"pk_test_5B728BEFE5C10911"},urls:getRpcUrls(providerType$2.ProviderType.FORTMATIC)},[providerType$2.ProviderType.NETWORK]:{urls:getRpcUrls(providerType$2.ProviderType.NETWORK)},[providerType$2.ProviderType.WALLET_LINK]:{appName:"Decentraland",urls:getRpcUrls(providerType$2.ProviderType.WALLET_LINK)},[providerType$2.ProviderType.WALLET_CONNECT_V2]:{projectId:"61570c542c2d66c659492e5b24a41522",urls:getRpcUrls(providerType$2.ProviderType.WALLET_CONNECT_V2),chains:{[chainIdExports.ChainId.ETHEREUM_MAINNET]:{chains:[chainIdExports.ChainId.ETHEREUM_MAINNET],optionalChains:[chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]},[chainIdExports.ChainId.ETHEREUM_GOERLI]:{chains:[chainIdExports.ChainId.ETHEREUM_GOERLI],optionalChains:[chainIdExports.ChainId.MATIC_MUMBAI,chainIdExports.ChainId.MATIC_AMOY]},[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:{chains:[chainIdExports.ChainId.ETHEREUM_SEPOLIA],optionalChains:[chainIdExports.ChainId.MATIC_MUMBAI,chainIdExports.ChainId.MATIC_AMOY]}}},[providerType$2.ProviderType.MAGIC]:{apiKey:"pk_live_212568025B158355",urls:getRpcUrls(providerType$2.ProviderType.MAGIC),chains:[chainIdExports.ChainId.ETHEREUM_MAINNET,chainIdExports.ChainId.ETHEREUM_GOERLI,chainIdExports.ChainId.ETHEREUM_SEPOLIA,chainIdExports.ChainId.MATIC_MAINNET,chainIdExports.ChainId.MATIC_MUMBAI,chainIdExports.ChainId.MATIC_AMOY,chainIdExports.ChainId.OPTIMISM_MAINNET,chainIdExports.ChainId.ARBITRUM_MAINNET,chainIdExports.ChainId.AVALANCHE_MAINNET,chainIdExports.ChainId.BSC_MAINNET,chainIdExports.ChainId.FANTOM_MAINNET]}});function getConfiguration(){return configuration}function getRpcUrls(_e){const et={[chainIdExports.ChainId.ETHEREUM_MAINNET]:"https://rpc.decentraland.org/mainnet",[chainIdExports.ChainId.ETHEREUM_SEPOLIA]:"https://rpc.decentraland.org/sepolia",[chainIdExports.ChainId.ETHEREUM_ROPSTEN]:"https://rpc.decentraland.org/ropsten",[chainIdExports.ChainId.ETHEREUM_RINKEBY]:"https://rpc.decentraland.org/rinkeby",[chainIdExports.ChainId.ETHEREUM_GOERLI]:"https://rpc.decentraland.org/goerli",[chainIdExports.ChainId.ETHEREUM_KOVAN]:"https://rpc.decentraland.org/kovan",[chainIdExports.ChainId.MATIC_MAINNET]:"https://rpc.decentraland.org/polygon",[chainIdExports.ChainId.MATIC_MUMBAI]:"https://rpc.decentraland.org/mumbai",[chainIdExports.ChainId.MATIC_AMOY]:"https://rpc.decentraland.org/amoy",[chainIdExports.ChainId.ARBITRUM_MAINNET]:"https://rpc.decentraland.org/arbitrum",[chainIdExports.ChainId.OPTIMISM_MAINNET]:"https://rpc.decentraland.org/optimism",[chainIdExports.ChainId.AVALANCHE_MAINNET]:"https://rpc.decentraland.org/avalanche",[chainIdExports.ChainId.BSC_MAINNET]:"https://rpc.decentraland.org/binance",[chainIdExports.ChainId.FANTOM_MAINNET]:"https://rpc.decentraland.org/fantom"};let tt="";switch(_e){case providerType$2.ProviderType.WALLET_LINK:tt="walletlink";break;case providerType$2.ProviderType.FORTMATIC:tt="fortmatic";break;case providerType$2.ProviderType.MAGIC:tt="magic";break;case providerType$2.ProviderType.WALLET_CONNECT_V2:tt="walletconnect-v2";break;case providerType$2.ProviderType.AUTH_SERVER:tt="auth-server";break}if(tt)for(const nt in et)et[nt]+=`?project=${tt}`;return et}class FortmaticConnector extends AbstractConnector{constructor(et){const tt=getConfiguration()[dist$d.ProviderType.FORTMATIC],nt=Object.keys(tt.apiKeys).map(at=>Number(at));if(!nt.includes(et))throw new Error(`Invariant error: Unsupported chainId ${et}`);super({supportedChainIds:nt}),this.apiKey=tt.apiKeys[et],this.chainId=et,this.rpcUrl=tt.urls[et]}async activate(){if(!this.fortmatic){const{default:tt}=await __vitePreload(()=>import("./fortmatic-7224f275.js").then(nt=>nt.f),[]);this.fortmatic=new tt(this.apiKey,{rpcUrl:this.rpcUrl,chainId:this.chainId})}const et=await this.fortmatic.getProvider().enable().then(tt=>tt[0]);return{provider:this.fortmatic.getProvider(),chainId:this.chainId,account:et}}getApiKey(){return this.apiKey}async getProvider(){return this.fortmatic.getProvider()}async getChainId(){return this.chainId}async getAccount(){return this.fortmatic.getProvider().send("eth_accounts").then(et=>et[0])}deactivate(){}async close(){await this.fortmatic.user.logout(),this.emitDeactivate()}}function warning$2(_e,et){}function _extends$K(){return _extends$K=Object.assign||function(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et];for(var nt in tt)Object.prototype.hasOwnProperty.call(tt,nt)&&(_e[nt]=tt[nt])}return _e},_extends$K.apply(this,arguments)}function _inheritsLoose$5(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_e.__proto__=et}function _getPrototypeOf$R(_e){return _getPrototypeOf$R=Object.setPrototypeOf?Object.getPrototypeOf:function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$R(_e)}function _setPrototypeOf$T(_e,et){return _setPrototypeOf$T=Object.setPrototypeOf||function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$T(_e,et)}function isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct$1(_e,et,tt){return isNativeReflectConstruct()?_construct$1=Reflect.construct:_construct$1=function(at,it,ot){var st=[null];st.push.apply(st,it);var ct=Function.bind.apply(at,st),dt=new ct;return ot&&_setPrototypeOf$T(dt,ot.prototype),dt},_construct$1.apply(null,arguments)}function _isNativeFunction$1(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper$1(_e){var et=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper$1=function(nt){if(nt===null||!_isNativeFunction$1(nt))return nt;if(typeof nt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof et<"u"){if(et.has(nt))return et.get(nt);et.set(nt,at)}function at(){return _construct$1(nt,arguments,_getPrototypeOf$R(this).constructor)}return at.prototype=Object.create(nt.prototype,{constructor:{value:at,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$T(at,nt)},_wrapNativeSuper$1(_e)}function _assertThisInitialized$S(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")));typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));function _catch(_e,et){try{var tt=_e()}catch(nt){return et(nt)}return tt&&tt.then?tt.then(void 0,et):tt}function parseSendReturn(_e){return _e.hasOwnProperty("result")?_e.result:_e}var NoEthereumProviderError=function(_e){_inheritsLoose$5(et,_e);function et(){var tt;return tt=_e.call(this)||this,tt.name=tt.constructor.name,tt.message="No Ethereum provider was found on window.ethereum.",tt}return et}(_wrapNativeSuper$1(Error)),UserRejectedRequestError=function(_e){_inheritsLoose$5(et,_e);function et(){var tt;return tt=_e.call(this)||this,tt.name=tt.constructor.name,tt.message="The user rejected the request.",tt}return et}(_wrapNativeSuper$1(Error)),InjectedConnector$1=function(_e){_inheritsLoose$5(et,_e);function et(nt){var at;return at=_e.call(this,nt)||this,at.handleNetworkChanged=at.handleNetworkChanged.bind(_assertThisInitialized$S(at)),at.handleChainChanged=at.handleChainChanged.bind(_assertThisInitialized$S(at)),at.handleAccountsChanged=at.handleAccountsChanged.bind(_assertThisInitialized$S(at)),at.handleClose=at.handleClose.bind(_assertThisInitialized$S(at)),at}var tt=et.prototype;return tt.handleChainChanged=function(at){this.emitUpdate({chainId:at,provider:window.ethereum})},tt.handleAccountsChanged=function(at){at.length===0?this.emitDeactivate():this.emitUpdate({account:at[0]})},tt.handleClose=function(at,it){this.emitDeactivate()},tt.handleNetworkChanged=function(at){this.emitUpdate({chainId:at,provider:window.ethereum})},tt.activate=function(){try{var at=function(ht){if(it)return ht;function pt(){return _extends$K({provider:window.ethereum},st?{account:st}:{})}var mt=function(){if(!st)return Promise.resolve(window.ethereum.enable().then(function(vt){return vt&&parseSendReturn(vt)[0]})).then(function(vt){st=vt})}();return mt&&mt.then?mt.then(pt):pt(mt)},it=!1,ot=this;if(!window.ethereum)throw new NoEthereumProviderError;window.ethereum.on&&(window.ethereum.on("chainChanged",ot.handleChainChanged),window.ethereum.on("accountsChanged",ot.handleAccountsChanged),window.ethereum.on("close",ot.handleClose),window.ethereum.on("networkChanged",ot.handleNetworkChanged)),window.ethereum.isMetaMask&&(window.ethereum.autoRefreshOnNetworkChange=!1);var st,ct=_catch(function(){return Promise.resolve(window.ethereum.send("eth_requestAccounts").then(function(dt){return parseSendReturn(dt)[0]})).then(function(dt){st=dt})},function(dt){if(dt.code===4001)throw new UserRejectedRequestError});return Promise.resolve(ct&&ct.then?ct.then(at):at(ct))}catch(dt){return Promise.reject(dt)}},tt.getProvider=function(){try{return Promise.resolve(window.ethereum)}catch(at){return Promise.reject(at)}},tt.getChainId=function(){try{var at=function(){function ct(){if(!it)try{it=parseSendReturn(window.ethereum.send({method:"net_version"}))}catch{}return it||(window.ethereum.isDapper?it=parseSendReturn(window.ethereum.cachedResults.net_version):it=window.ethereum.chainId||window.ethereum.netVersion||window.ethereum.networkVersion||window.ethereum._chainId),it}var dt=function(){if(!it){var ht=_catch(function(){return Promise.resolve(window.ethereum.send("net_version").then(parseSendReturn)).then(function(pt){it=pt})},function(){});if(ht&&ht.then)return ht.then(function(){})}}();return dt&&dt.then?dt.then(ct):ct(dt)};if(!window.ethereum)throw new NoEthereumProviderError;var it,ot=_catch(function(){return Promise.resolve(window.ethereum.send("eth_chainId").then(parseSendReturn)).then(function(st){it=st})},function(){});return Promise.resolve(ot&&ot.then?ot.then(at):at(ot))}catch(st){return Promise.reject(st)}},tt.getAccount=function(){try{var at=function(){function ct(){return it||(it=parseSendReturn(window.ethereum.send({method:"eth_accounts"}))[0]),it}var dt=function(){if(!it){var ht=_catch(function(){return Promise.resolve(window.ethereum.enable().then(function(pt){return parseSendReturn(pt)[0]})).then(function(pt){it=pt})},function(){});if(ht&&ht.then)return ht.then(function(){})}}();return dt&&dt.then?dt.then(ct):ct(dt)};if(!window.ethereum)throw new NoEthereumProviderError;var it,ot=_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(st){return parseSendReturn(st)[0]})).then(function(st){it=st})},function(){});return Promise.resolve(ot&&ot.then?ot.then(at):at(ot))}catch(st){return Promise.reject(st)}},tt.deactivate=function(){window.ethereum&&window.ethereum.removeListener&&(window.ethereum.removeListener("chainChanged",this.handleChainChanged),window.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.ethereum.removeListener("close",this.handleClose),window.ethereum.removeListener("networkChanged",this.handleNetworkChanged))},tt.isAuthorized=function(){try{return window.ethereum?Promise.resolve(_catch(function(){return Promise.resolve(window.ethereum.send("eth_accounts").then(function(at){return parseSendReturn(at).length>0}))},function(){return!1})):Promise.resolve(!1)}catch(at){return Promise.reject(at)}},et}(AbstractConnector);class InjectedConnector extends InjectedConnector$1{constructor(et){super({supportedChainIds:[et]})}}var prefix="Invariant failed";function invariant(_e,et){if(!_e)throw new Error(prefix)}function _inheritsLoose$4(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_setPrototypeOf$S(_e,et)}function _getPrototypeOf$Q(_e){return _getPrototypeOf$Q=Object.setPrototypeOf?Object.getPrototypeOf:function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$Q(_e)}function _setPrototypeOf$S(_e,et){return _setPrototypeOf$S=Object.setPrototypeOf||function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$S(_e,et)}function _isNativeReflectConstruct$Q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _construct(_e,et,tt){return _isNativeReflectConstruct$Q()?_construct=Reflect.construct:_construct=function(at,it,ot){var st=[null];st.push.apply(st,it);var ct=Function.bind.apply(at,st),dt=new ct;return ot&&_setPrototypeOf$S(dt,ot.prototype),dt},_construct.apply(null,arguments)}function _isNativeFunction(_e){return Function.toString.call(_e).indexOf("[native code]")!==-1}function _wrapNativeSuper(_e){var et=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(nt){if(nt===null||!_isNativeFunction(nt))return nt;if(typeof nt!="function")throw new TypeError("Super expression must either be null or a function");if(typeof et<"u"){if(et.has(nt))return et.get(nt);et.set(nt,at)}function at(){return _construct(nt,arguments,_getPrototypeOf$Q(this).constructor)}return at.prototype=Object.create(nt.prototype,{constructor:{value:at,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf$S(at,nt)},_wrapNativeSuper(_e)}var RequestError=function(_e){_inheritsLoose$4(et,_e);function et(tt,nt,at){var it;return it=_e.call(this)||this,it.code=nt,it.data=at,it.name=it.constructor.name,it.message=tt,it}return et}(_wrapNativeSuper(Error)),MiniRpcProvider=function(et,tt){var nt=this,at=this;this.isMetaMask=!1,this.sendAsync=function(ot,st){console.log("sendAsync",ot.method,ot.params),at.request(ot.method,ot.params).then(function(ct){return st(null,{jsonrpc:"2.0",id:ot.id,result:ct})}).catch(function(ct){return st(ct,null)})},this.request=function(ot,st){try{return typeof ot!="string"&&(st=ot.params,ot=ot.method),Promise.resolve(fetch(nt.url,{method:"POST",body:JSON.stringify({jsonrpc:"2.0",id:1,method:ot,params:st}),headers:{"Content-Type":"application/json"}})).then(function(ct){if(!ct.ok)throw new RequestError(ct.status+": "+ct.statusText,-32e3);return Promise.resolve(ct.json()).then(function(dt){if("error"in dt){var ht,pt,mt;throw new RequestError(dt==null||(ht=dt.error)==null?void 0:ht.message,dt==null||(pt=dt.error)==null?void 0:pt.code,dt==null||(mt=dt.error)==null?void 0:mt.data)}else{if("result"in dt)return dt.result;throw new RequestError("Received unexpected JSON-RPC response to "+ot+" request.",-32e3,dt)}})})}catch(ct){return Promise.reject(ct)}},this.chainId=et,this.url=tt;var it=new URL(tt);this.host=it.host,this.path=it.pathname},NetworkConnector$1=function(_e){_inheritsLoose$4(et,_e);function et(nt){var at,it=nt.urls,ot=nt.defaultChainId;return ot||Object.keys(it).length===1||invariant(!1),at=_e.call(this,{supportedChainIds:Object.keys(it).map(function(st){return Number(st)})})||this,at.currentChainId=ot||Number(Object.keys(it)[0]),at.providers=Object.keys(it).reduce(function(st,ct){return st[Number(ct)]=new MiniRpcProvider(Number(ct),it[Number(ct)]),st},{}),at}var tt=et.prototype;return tt.activate=function(){try{var at=this;return Promise.resolve({provider:at.providers[at.currentChainId],chainId:at.currentChainId,account:null})}catch(it){return Promise.reject(it)}},tt.getProvider=function(){try{var at=this;return Promise.resolve(at.providers[at.currentChainId])}catch(it){return Promise.reject(it)}},tt.getChainId=function(){try{var at=this;return Promise.resolve(at.currentChainId)}catch(it){return Promise.reject(it)}},tt.getAccount=function(){return Promise.resolve(null)},tt.deactivate=function(){},tt.changeChainId=function(at){Object.keys(this.providers).includes(at.toString())||invariant(!1),this.currentChainId=at,this.emitUpdate({provider:this.providers[this.currentChainId],chainId:at})},et}(AbstractConnector);class NetworkConnector extends NetworkConnector$1{constructor(et){super({urls:getConfiguration()[providerType$2.ProviderType.NETWORK].urls,defaultChainId:et})}}function _extends$J(){return _extends$J=Object.assign||function(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et];for(var nt in tt)Object.prototype.hasOwnProperty.call(tt,nt)&&(_e[nt]=tt[nt])}return _e},_extends$J.apply(this,arguments)}function _inheritsLoose$3(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_setPrototypeOf$R(_e,et)}function _setPrototypeOf$R(_e,et){return _setPrototypeOf$R=Object.setPrototypeOf||function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$R(_e,et)}function _assertThisInitialized$R(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}var CHAIN_ID$2=1,WalletLinkConnector$1=function(_e){_inheritsLoose$3(et,_e);function et(nt){var at,it=nt.url,ot=nt.appName,st=nt.appLogoUrl,ct=nt.darkMode,dt=nt.supportedChainIds;return at=_e.call(this,{supportedChainIds:dt})||this,at.url=it,at.appName=ot,at.appLogoUrl=st,at.darkMode=ct||!1,at.handleChainChanged=at.handleChainChanged.bind(_assertThisInitialized$R(at)),at.handleAccountsChanged=at.handleAccountsChanged.bind(_assertThisInitialized$R(at)),at}var tt=et.prototype;return tt.activate=function(){try{var at=this,it=function(){return Promise.resolve(at.provider.request({method:"eth_requestAccounts"})).then(function(ct){var dt=ct[0];return at.provider.on("chainChanged",at.handleChainChanged),at.provider.on("accountsChanged",at.handleAccountsChanged),{provider:at.provider,account:dt}})},ot=function(){if(window.ethereum&&window.ethereum.isCoinbaseWallet===!0)at.provider=window.ethereum;else{var st=function(){if(!at.walletLink)return Promise.resolve(__vitePreload(()=>import("./index-a9e36808.js").then(ct=>ct.i),[]).then(function(ct){var dt;return(dt=ct==null?void 0:ct.default)!=null?dt:ct})).then(function(ct){at.walletLink=new ct(_extends$J({appName:at.appName,darkMode:at.darkMode},at.appLogoUrl?{appLogoUrl:at.appLogoUrl}:{})),at.provider=at.walletLink.makeWeb3Provider(at.url,CHAIN_ID$2)})}();if(st&&st.then)return st.then(function(){})}}();return Promise.resolve(ot&&ot.then?ot.then(it):it(ot))}catch(st){return Promise.reject(st)}},tt.getProvider=function(){try{var at=this;return Promise.resolve(at.provider)}catch(it){return Promise.reject(it)}},tt.getChainId=function(){try{var at=this;return Promise.resolve(at.provider.chainId)}catch(it){return Promise.reject(it)}},tt.getAccount=function(){try{var at=this;return Promise.resolve(at.provider.request({method:"eth_requestAccounts"})).then(function(it){return it[0]})}catch(it){return Promise.reject(it)}},tt.deactivate=function(){this.provider.removeListener("chainChanged",this.handleChainChanged),this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},tt.close=function(){try{var at=this;return at.provider.close(),at.emitDeactivate(),Promise.resolve()}catch(it){return Promise.reject(it)}},tt.handleChainChanged=function(at){this.emitUpdate({chainId:at})},tt.handleAccountsChanged=function(at){this.emitUpdate({account:at[0]})},et}(AbstractConnector);class WalletLinkConnector extends WalletLinkConnector$1{constructor(et){const tt=getConfiguration()[dist$d.ProviderType.WALLET_LINK];super({url:tt.urls[et],appName:tt.appName,supportedChainIds:[et]})}}class WalletConnectV2Connector extends AbstractConnector{constructor(et){super({supportedChainIds:(()=>{const{chains:tt,optionalChains:nt}=WalletConnectV2Connector.configuration.chains[et];return[...tt,...nt]})()}),this.desiredChainId=et,this.activate=async()=>{const tt=await __vitePreload(()=>import("./index.es-c1fd6bb4.js"),[]).then(at=>{const{chains:it,optionalChains:ot}=WalletConnectV2Connector.configuration.chains[this.desiredChainId];return at.default.init({projectId:WalletConnectV2Connector.configuration.projectId,rpcMap:WalletConnectV2Connector.configuration.urls,chains:it,optionalChains:ot,showQrModal:!0,disableProviderPing:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"3000"}},methods:["eth_sendTransaction","personal_sign"],optionalMethods:["eth_accounts","eth_requestAccounts","eth_sign","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain"],events:["chainChanged","accountsChanged"],optionalEvents:["disconnect"]})}),nt=await tt.enable();return tt.on("accountsChanged",this.handleAccountsChanged),tt.on("chainChanged",this.handleChainChanged),tt.on("disconnect",this.handleDisconnect),this.provider=tt,{chainId:tt.chainId,account:nt[0],provider:tt}},this.getProvider=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider},this.getChainId=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.chainId},this.getAccount=async()=>{if(!this.provider)throw new Error("Provider is undefined");return this.provider.accounts[0]},this.getWalletName=()=>{var tt,nt;return(nt=(tt=this.provider)==null?void 0:tt.session)==null?void 0:nt.peer.metadata.name},this.deactivate=()=>{this.provider&&(this.emitDeactivate(),this.provider.removeListener("accountsChanged",this.handleAccountsChanged).removeListener("chainChanged",this.handleChainChanged).removeListener("disconnect",this.handleDisconnect).disconnect())},this.handleAccountsChanged=tt=>{this.emitUpdate({account:tt[0]})},this.handleChainChanged=tt=>{this.emitUpdate({chainId:tt})},this.handleDisconnect=()=>{if(!this.provider)throw new Error("Provider is undefined");this.deactivate()}}}WalletConnectV2Connector.configuration=getConfiguration()[dist$d.ProviderType.WALLET_CONNECT_V2];WalletConnectV2Connector.clearStorage=_e=>{_e.removeRegExp(new RegExp("^wc@2:"))};class MagicConnector extends AbstractConnector{constructor(et){super({supportedChainIds:getConfiguration()[dist$d.ProviderType.MAGIC].chains}),this.activate=async()=>{if(this.magic=await this.buildMagicInstance(this.chainId),!await this.magic.user.isLoggedIn())throw new Error("Magic: user isn't logged in");const nt=await this.getProvider(),at=await nt.request({method:"eth_accounts"});return this.account=at[0]??null,{provider:nt,chainId:this.chainId,account:this.account}},this.getProvider=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");const tt=await this.magic.wallet.getProvider();return{...tt,request:new Proxy(tt.request,{apply:async(nt,at,it)=>{var ot,st,ct;if(((ot=it[0])==null?void 0:ot.method)==="wallet_switchEthereumChain")try{const dt=parseInt((ct=(st=it[0])==null?void 0:st.params[0])==null?void 0:ct.chainId,16);return this.supportedChainIds&&!this.supportedChainIds.includes(dt)?{code:2020202,message:"Unsupported Magic ChainId"}:(this.magic=await this.buildMagicInstance(dt),this.emitUpdate({chainId:dt}),null)}catch{return{code:2020201,message:"Error changing the Magic ChainId"}}return nt.bind(tt)(...it)}})}},this.getChainId=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.chainId},this.getAccount=async()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");return this.account},this.deactivate=()=>{if(!this.magic)throw new Error("Magic: instance was not initialized");this.magic.user.logout(),this.emitDeactivate()},this.buildMagicInstance=async tt=>{const{Magic:nt}=await __vitePreload(()=>import("./index-7267ad1b.js"),["assets/index-7267ad1b.js","assets/index-22791f26.js"]),{OAuthExtension:at}=await __vitePreload(()=>import("./index-85b6b207.js"),["assets/index-85b6b207.js","assets/index-22791f26.js"]),it=getConfiguration()[dist$d.ProviderType.MAGIC];return new nt(it.apiKey,{extensions:[new at],network:{rpcUrl:it.urls[tt],chainId:tt}})},this.chainId=et,this.account=null}}const version$q="6.11.1";function checkType(_e,et,tt){const nt=et.split("|").map(it=>it.trim());for(let it=0;it<nt.length;it++)switch(et){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof _e===et)return}const at=new Error(`invalid value for type ${et}`);throw at.code="INVALID_ARGUMENT",at.argument=`value.${tt}`,at.value=_e,at}async function resolveProperties$1(_e){const et=Object.keys(_e);return(await Promise.all(et.map(nt=>Promise.resolve(_e[nt])))).reduce((nt,at,it)=>(nt[et[it]]=at,nt),{})}function defineProperties$2(_e,et,tt){for(let nt in et){let at=et[nt];const it=tt?tt[nt]:null;it&&checkType(at,it,nt),Object.defineProperty(_e,nt,{enumerable:!0,value:at,writable:!1})}}function stringify$4(_e){if(_e==null)return"null";if(Array.isArray(_e))return"[ "+_e.map(stringify$4).join(", ")+" ]";if(_e instanceof Uint8Array){const et="0123456789abcdef";let tt="0x";for(let nt=0;nt<_e.length;nt++)tt+=et[_e[nt]>>4],tt+=et[_e[nt]&15];return tt}if(typeof _e=="object"&&typeof _e.toJSON=="function")return stringify$4(_e.toJSON());switch(typeof _e){case"boolean":case"symbol":return _e.toString();case"bigint":return BigInt(_e).toString();case"number":return _e.toString();case"string":return JSON.stringify(_e);case"object":{const et=Object.keys(_e);return et.sort(),"{ "+et.map(tt=>`${stringify$4(tt)}: ${stringify$4(_e[tt])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function isError$3(_e,et){return _e&&_e.code===et}function isCallException(_e){return isError$3(_e,"CALL_EXCEPTION")}function makeError(_e,et,tt){let nt=_e;{const it=[];if(tt){if("message"in tt||"code"in tt||"name"in tt)throw new Error(`value will overwrite populated values: ${stringify$4(tt)}`);for(const ot in tt){if(ot==="shortMessage")continue;const st=tt[ot];it.push(ot+"="+stringify$4(st))}}it.push(`code=${et}`),it.push(`version=${version$q}`),it.length&&(_e+=" ("+it.join(", ")+")")}let at;switch(et){case"INVALID_ARGUMENT":at=new TypeError(_e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":at=new RangeError(_e);break;default:at=new Error(_e)}return defineProperties$2(at,{code:et}),tt&&Object.assign(at,tt),at.shortMessage==null&&defineProperties$2(at,{shortMessage:nt}),at}function assert$y(_e,et,tt,nt){if(!_e)throw makeError(et,tt,nt)}function assertArgument(_e,et,tt,nt){assert$y(_e,et,"INVALID_ARGUMENT",{argument:tt,value:nt})}function assertArgumentCount(_e,et,tt){tt==null&&(tt=""),tt&&(tt=": "+tt),assert$y(_e>=et,"missing arguemnt"+tt,"MISSING_ARGUMENT",{count:_e,expectedCount:et}),assert$y(_e<=et,"too many arguments"+tt,"UNEXPECTED_ARGUMENT",{count:_e,expectedCount:et})}const _normalizeForms=["NFD","NFC","NFKD","NFKC"].reduce((_e,et)=>{try{if("test".normalize(et)!=="test")throw new Error("bad");if(et==="NFD"){const tt=String.fromCharCode(233).normalize("NFD"),nt=String.fromCharCode(101,769);if(tt!==nt)throw new Error("broken")}_e.push(et)}catch{}return _e},[]);function assertNormalize(_e){assert$y(_normalizeForms.indexOf(_e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:_e}})}function assertPrivate(_e,et,tt){if(tt==null&&(tt=""),_e!==et){let nt=tt,at="new";tt&&(nt+=".",at+=" "+tt),assert$y(!1,`private constructor; use ${nt}from* methods`,"UNSUPPORTED_OPERATION",{operation:at})}}function _getBytes(_e,et,tt){if(_e instanceof Uint8Array)return tt?new Uint8Array(_e):_e;if(typeof _e=="string"&&_e.match(/^0x([0-9a-f][0-9a-f])*$/i)){const nt=new Uint8Array((_e.length-2)/2);let at=2;for(let it=0;it<nt.length;it++)nt[it]=parseInt(_e.substring(at,at+2),16),at+=2;return nt}assertArgument(!1,"invalid BytesLike value",et||"value",_e)}function getBytes(_e,et){return _getBytes(_e,et,!1)}function getBytesCopy(_e,et){return _getBytes(_e,et,!0)}function isHexString$1(_e,et){return!(typeof _e!="string"||!_e.match(/^0x[0-9A-Fa-f]*$/)||typeof et=="number"&&_e.length!==2+2*et||et===!0&&_e.length%2!==0)}function isBytesLike$1(_e){return isHexString$1(_e,!0)||_e instanceof Uint8Array}const HexCharacters$1="0123456789abcdef";function hexlify$1(_e){const et=getBytes(_e);let tt="0x";for(let nt=0;nt<et.length;nt++){const at=et[nt];tt+=HexCharacters$1[(at&240)>>4]+HexCharacters$1[at&15]}return tt}function concat$2(_e){return"0x"+_e.map(et=>hexlify$1(et).substring(2)).join("")}function dataLength(_e){return isHexString$1(_e,!0)?(_e.length-2)/2:getBytes(_e).length}function dataSlice(_e,et,tt){const nt=getBytes(_e);return tt!=null&&tt>nt.length&&assert$y(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:nt,length:nt.length,offset:tt}),hexlify$1(nt.slice(et??0,tt??nt.length))}function zeroPad$1(_e,et,tt){const nt=getBytes(_e);assert$y(et>=nt.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(nt),length:et,offset:et+1});const at=new Uint8Array(et);return at.fill(0),tt?at.set(nt,et-nt.length):at.set(nt,0),hexlify$1(at)}function zeroPadValue(_e,et){return zeroPad$1(_e,et,!0)}function zeroPadBytes(_e,et){return zeroPad$1(_e,et,!1)}const BN_0$9=BigInt(0),BN_1$3=BigInt(1),maxValue=9007199254740991;function fromTwos(_e,et){const tt=getUint(_e,"value"),nt=BigInt(getNumber(et,"width"));if(assert$y(tt>>nt===BN_0$9,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:_e}),tt>>nt-BN_1$3){const at=(BN_1$3<<nt)-BN_1$3;return-((~tt&at)+BN_1$3)}return tt}function toTwos(_e,et){let tt=getBigInt(_e,"value");const nt=BigInt(getNumber(et,"width")),at=BN_1$3<<nt-BN_1$3;if(tt<BN_0$9){tt=-tt,assert$y(tt<=at,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:_e});const it=(BN_1$3<<nt)-BN_1$3;return(~tt&it)+BN_1$3}else assert$y(tt<at,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:_e});return tt}function mask(_e,et){const tt=getUint(_e,"value"),nt=BigInt(getNumber(et,"bits"));return tt&(BN_1$3<<nt)-BN_1$3}function getBigInt(_e,et){switch(typeof _e){case"bigint":return _e;case"number":return assertArgument(Number.isInteger(_e),"underflow",et||"value",_e),assertArgument(_e>=-maxValue&&_e<=maxValue,"overflow",et||"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(tt){assertArgument(!1,`invalid BigNumberish string: ${tt.message}`,et||"value",_e)}}assertArgument(!1,"invalid BigNumberish value",et||"value",_e)}function getUint(_e,et){const tt=getBigInt(_e,et);return assert$y(tt>=BN_0$9,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:_e}),tt}const Nibbles$1="0123456789abcdef";function toBigInt(_e){if(_e instanceof Uint8Array){let et="0x0";for(const tt of _e)et+=Nibbles$1[tt>>4],et+=Nibbles$1[tt&15];return BigInt(et)}return getBigInt(_e)}function getNumber(_e,et){switch(typeof _e){case"bigint":return assertArgument(_e>=-maxValue&&_e<=maxValue,"overflow",et||"value",_e),Number(_e);case"number":return assertArgument(Number.isInteger(_e),"underflow",et||"value",_e),assertArgument(_e>=-maxValue&&_e<=maxValue,"overflow",et||"value",_e),_e;case"string":try{if(_e==="")throw new Error("empty string");return getNumber(BigInt(_e),et)}catch(tt){assertArgument(!1,`invalid numeric string: ${tt.message}`,et||"value",_e)}}assertArgument(!1,"invalid numeric value",et||"value",_e)}function toNumber$2(_e){return getNumber(toBigInt(_e))}function toBeHex(_e,et){let nt=getUint(_e,"value").toString(16);if(et==null)nt.length%2&&(nt="0"+nt);else{const at=getNumber(et,"width");for(assert$y(at*2>=nt.length,`value exceeds width (${at} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:_e});nt.length<at*2;)nt="0"+nt}return"0x"+nt}function toBeArray(_e){const et=getUint(_e,"value");if(et===BN_0$9)return new Uint8Array([]);let tt=et.toString(16);tt.length%2&&(tt="0"+tt);const nt=new Uint8Array(tt.length/2);for(let at=0;at<nt.length;at++){const it=at*2;nt[at]=parseInt(tt.substring(it,it+2),16)}return nt}function toQuantity(_e){let et=hexlify$1(isBytesLike$1(_e)?_e:toBeArray(_e)).substring(2);for(;et.startsWith("0");)et=et.substring(1);return et===""&&(et="0"),"0x"+et}const Alphabet="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let Lookup=null;function getAlpha(_e){if(Lookup==null){Lookup={};for(let tt=0;tt<Alphabet.length;tt++)Lookup[Alphabet[tt]]=BigInt(tt)}const et=Lookup[_e];return assertArgument(et!=null,"invalid base58 value","letter",_e),et}const BN_0$8=BigInt(0),BN_58=BigInt(58);function encodeBase58(_e){const et=getBytes(_e);let tt=toBigInt(et),nt="";for(;tt;)nt=Alphabet[Number(tt%BN_58)]+nt,tt/=BN_58;for(let at=0;at<et.length&&!et[at];at++)nt=Alphabet[0]+nt;return nt}function decodeBase58(_e){let et=BN_0$8;for(let tt=0;tt<_e.length;tt++)et*=BN_58,et+=getAlpha(_e[tt]);return et}function decodeBase64(_e){_e=atob(_e);const et=new Uint8Array(_e.length);for(let tt=0;tt<_e.length;tt++)et[tt]=_e.charCodeAt(tt);return getBytes(et)}function encodeBase64$1(_e){const et=getBytes(_e);let tt="";for(let nt=0;nt<et.length;nt++)tt+=String.fromCharCode(et[nt]);return btoa(tt)}var Du;class EventPayload{constructor(et,tt,nt){Zr(this,"filter");Zr(this,"emitter");Rn(this,Du,void 0);Wr(this,Du,tt),defineProperties$2(this,{emitter:et,filter:nt})}async removeListener(){_r(this,Du)!=null&&await this.emitter.off(this.filter,_r(this,Du))}}Du=new WeakMap;function errorFunc$1(_e,et,tt,nt,at){assertArgument(!1,`invalid codepoint at offset ${et}; ${_e}`,"bytes",tt)}function ignoreFunc$1(_e,et,tt,nt,at){if(_e==="BAD_PREFIX"||_e==="UNEXPECTED_CONTINUE"){let it=0;for(let ot=et+1;ot<tt.length&&tt[ot]>>6===2;ot++)it++;return it}return _e==="OVERRUN"?tt.length-et-1:0}function replaceFunc$1(_e,et,tt,nt,at){return _e==="OVERLONG"?(assertArgument(typeof at=="number","invalid bad code point for replacement","badCodepoint",at),nt.push(at),0):(nt.push(65533),ignoreFunc$1(_e,et,tt))}const Utf8ErrorFuncs$1=Object.freeze({error:errorFunc$1,ignore:ignoreFunc$1,replace:replaceFunc$1});function getUtf8CodePoints$1(_e,et){et==null&&(et=Utf8ErrorFuncs$1.error);const tt=getBytes(_e,"bytes"),nt=[];let at=0;for(;at<tt.length;){const it=tt[at++];if(!(it>>7)){nt.push(it);continue}let ot=null,st=null;if((it&224)===192)ot=1,st=127;else if((it&240)===224)ot=2,st=2047;else if((it&248)===240)ot=3,st=65535;else{(it&192)===128?at+=et("UNEXPECTED_CONTINUE",at-1,tt,nt):at+=et("BAD_PREFIX",at-1,tt,nt);continue}if(at-1+ot>=tt.length){at+=et("OVERRUN",at-1,tt,nt);continue}let ct=it&(1<<8-ot-1)-1;for(let dt=0;dt<ot;dt++){let ht=tt[at];if((ht&192)!=128){at+=et("MISSING_CONTINUE",at,tt,nt),ct=null;break}ct=ct<<6|ht&63,at++}if(ct!==null){if(ct>1114111){at+=et("OUT_OF_RANGE",at-1-ot,tt,nt,ct);continue}if(ct>=55296&&ct<=57343){at+=et("UTF16_SURROGATE",at-1-ot,tt,nt,ct);continue}if(ct<=st){at+=et("OVERLONG",at-1-ot,tt,nt,ct);continue}nt.push(ct)}}return nt}function toUtf8Bytes$1(_e,et){assertArgument(typeof _e=="string","invalid string value","str",_e),et!=null&&(assertNormalize(et),_e=_e.normalize(et));let tt=[];for(let nt=0;nt<_e.length;nt++){const at=_e.charCodeAt(nt);if(at<128)tt.push(at);else if(at<2048)tt.push(at>>6|192),tt.push(at&63|128);else if((at&64512)==55296){nt++;const it=_e.charCodeAt(nt);assertArgument(nt<_e.length&&(it&64512)===56320,"invalid surrogate pair","str",_e);const ot=65536+((at&1023)<<10)+(it&1023);tt.push(ot>>18|240),tt.push(ot>>12&63|128),tt.push(ot>>6&63|128),tt.push(ot&63|128)}else tt.push(at>>12|224),tt.push(at>>6&63|128),tt.push(at&63|128)}return new Uint8Array(tt)}function _toUtf8String$1(_e){return _e.map(et=>et<=65535?String.fromCharCode(et):(et-=65536,String.fromCharCode((et>>10&1023)+55296,(et&1023)+56320))).join("")}function toUtf8String$1(_e,et){return _toUtf8String$1(getUtf8CodePoints$1(_e,et))}function createGetUrl(_e){async function et(tt,nt){const at=tt.url.split(":")[0].toLowerCase();assert$y(at==="http"||at==="https",`unsupported protocol ${at}`,"UNSUPPORTED_OPERATION",{info:{protocol:at},operation:"request"}),assert$y(at==="https"||!tt.credentials||tt.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let it;if(nt){const pt=new AbortController;it=pt.signal,nt.addListener(()=>{pt.abort()})}const ot={method:tt.method,headers:new Headers(Array.from(tt)),body:tt.body||void 0,signal:it},st=await fetch(tt.url,ot),ct={};st.headers.forEach((pt,mt)=>{ct[mt.toLowerCase()]=pt});const dt=await st.arrayBuffer(),ht=dt==null?null:new Uint8Array(dt);return{statusCode:st.status,statusMessage:st.statusText,headers:ct,body:ht}}return et}const MAX_ATTEMPTS=12,SLOT_INTERVAL=250;let defaultGetUrlFunc=createGetUrl();const reData=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),reIpfs=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let locked$5=!1;async function dataGatewayFunc(_e,et){try{const tt=_e.match(reData);if(!tt)throw new Error("invalid data");return new FetchResponse(200,"OK",{"content-type":tt[1]||"text/plain"},tt[2]?decodeBase64(tt[3]):unpercent$1(tt[3]))}catch{return new FetchResponse(599,"BAD REQUEST (invalid data: URI)",{},null,new FetchRequest(_e))}}function getIpfsGatewayFunc(_e){async function et(tt,nt){try{const at=tt.match(reIpfs);if(!at)throw new Error("invalid link");return new FetchRequest(`${_e}${at[2]}`)}catch{return new FetchResponse(599,"BAD REQUEST (invalid IPFS URI)",{},null,new FetchRequest(tt))}}return et}const Gateways={data:dataGatewayFunc,ipfs:getIpfsGatewayFunc("https://gateway.ipfs.io/ipfs/")},fetchSignals=new WeakMap;var Jl,Tl;class FetchCancelSignal{constructor(et){Rn(this,Jl,void 0);Rn(this,Tl,void 0);Wr(this,Jl,[]),Wr(this,Tl,!1),fetchSignals.set(et,()=>{if(!_r(this,Tl)){Wr(this,Tl,!0);for(const tt of _r(this,Jl))setTimeout(()=>{tt()},0);Wr(this,Jl,[])}})}addListener(et){assert$y(!_r(this,Tl),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),_r(this,Jl).push(et)}get cancelled(){return _r(this,Tl)}checkSignal(){assert$y(!this.cancelled,"cancelled","CANCELLED",{})}}Jl=new WeakMap,Tl=new WeakMap;function checkSignal(_e){if(_e==null)throw new Error("missing signal; should not happen");return _e.checkSignal(),_e}var Lu,ku,Us,ul,Bu,ju,rs,Ps,cl,eu,tu,ru,zs,fl,Pl,nu,Sp;const Pm=class Pm{constructor(et){Rn(this,nu);Rn(this,Lu,void 0);Rn(this,ku,void 0);Rn(this,Us,void 0);Rn(this,ul,void 0);Rn(this,Bu,void 0);Rn(this,ju,void 0);Rn(this,rs,void 0);Rn(this,Ps,void 0);Rn(this,cl,void 0);Rn(this,eu,void 0);Rn(this,tu,void 0);Rn(this,ru,void 0);Rn(this,zs,void 0);Rn(this,fl,void 0);Rn(this,Pl,void 0);Wr(this,ju,String(et)),Wr(this,Lu,!1),Wr(this,ku,!0),Wr(this,Us,{}),Wr(this,ul,""),Wr(this,Bu,3e5),Wr(this,fl,{slotInterval:SLOT_INTERVAL,maxAttempts:MAX_ATTEMPTS}),Wr(this,Pl,null)}get url(){return _r(this,ju)}set url(et){Wr(this,ju,String(et))}get body(){return _r(this,rs)==null?null:new Uint8Array(_r(this,rs))}set body(et){if(et==null)Wr(this,rs,void 0),Wr(this,Ps,void 0);else if(typeof et=="string")Wr(this,rs,toUtf8Bytes$1(et)),Wr(this,Ps,"text/plain");else if(et instanceof Uint8Array)Wr(this,rs,et),Wr(this,Ps,"application/octet-stream");else if(typeof et=="object")Wr(this,rs,toUtf8Bytes$1(JSON.stringify(et))),Wr(this,Ps,"application/json");else throw new Error("invalid body")}hasBody(){return _r(this,rs)!=null}get method(){return _r(this,ul)?_r(this,ul):this.hasBody()?"POST":"GET"}set method(et){et==null&&(et=""),Wr(this,ul,String(et).toUpperCase())}get headers(){const et=Object.assign({},_r(this,Us));return _r(this,cl)&&(et.authorization=`Basic ${encodeBase64$1(toUtf8Bytes$1(_r(this,cl)))}`),this.allowGzip&&(et["accept-encoding"]="gzip"),et["content-type"]==null&&_r(this,Ps)&&(et["content-type"]=_r(this,Ps)),this.body&&(et["content-length"]=String(this.body.length)),et}getHeader(et){return this.headers[et.toLowerCase()]}setHeader(et,tt){_r(this,Us)[String(et).toLowerCase()]=String(tt)}clearHeaders(){Wr(this,Us,{})}[Symbol.iterator](){const et=this.headers,tt=Object.keys(et);let nt=0;return{next:()=>{if(nt<tt.length){const at=tt[nt++];return{value:[at,et[at]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return _r(this,cl)||null}setCredentials(et,tt){assertArgument(!et.match(/:/),"invalid basic authentication username","username","[REDACTED]"),Wr(this,cl,`${et}:${tt}`)}get allowGzip(){return _r(this,ku)}set allowGzip(et){Wr(this,ku,!!et)}get allowInsecureAuthentication(){return!!_r(this,Lu)}set allowInsecureAuthentication(et){Wr(this,Lu,!!et)}get timeout(){return _r(this,Bu)}set timeout(et){assertArgument(et>=0,"timeout must be non-zero","timeout",et),Wr(this,Bu,et)}get preflightFunc(){return _r(this,eu)||null}set preflightFunc(et){Wr(this,eu,et)}get processFunc(){return _r(this,tu)||null}set processFunc(et){Wr(this,tu,et)}get retryFunc(){return _r(this,ru)||null}set retryFunc(et){Wr(this,ru,et)}get getUrlFunc(){return _r(this,Pl)||defaultGetUrlFunc}set getUrlFunc(et){Wr(this,Pl,et)}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${_r(this,rs)?hexlify$1(_r(this,rs)):"null"}>`}setThrottleParams(et){et.slotInterval!=null&&(_r(this,fl).slotInterval=et.slotInterval),et.maxAttempts!=null&&(_r(this,fl).maxAttempts=et.maxAttempts)}send(){return assert$y(_r(this,zs)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),Wr(this,zs,new FetchCancelSignal(this)),va(this,nu,Sp).call(this,0,getTime$3()+this.timeout,0,this,new FetchResponse(0,"",{},null,this))}cancel(){assert$y(_r(this,zs)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const et=fetchSignals.get(this);if(!et)throw new Error("missing signal; should not happen");et()}redirect(et){const tt=this.url.split(":")[0].toLowerCase(),nt=et.split(":")[0].toLowerCase();assert$y(this.method==="GET"&&(tt!=="https"||nt!=="http")&&et.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(et)})`});const at=new Pm(et);return at.method="GET",at.allowGzip=this.allowGzip,at.timeout=this.timeout,Wr(at,Us,Object.assign({},_r(this,Us))),_r(this,rs)&&Wr(at,rs,new Uint8Array(_r(this,rs))),Wr(at,Ps,_r(this,Ps)),at}clone(){const et=new Pm(this.url);return Wr(et,ul,_r(this,ul)),_r(this,rs)&&Wr(et,rs,_r(this,rs)),Wr(et,Ps,_r(this,Ps)),Wr(et,Us,Object.assign({},_r(this,Us))),Wr(et,cl,_r(this,cl)),this.allowGzip&&(et.allowGzip=!0),et.timeout=this.timeout,this.allowInsecureAuthentication&&(et.allowInsecureAuthentication=!0),Wr(et,eu,_r(this,eu)),Wr(et,tu,_r(this,tu)),Wr(et,ru,_r(this,ru)),Wr(et,Pl,_r(this,Pl)),et}static lockConfig(){locked$5=!0}static getGateway(et){return Gateways[et.toLowerCase()]||null}static registerGateway(et,tt){if(et=et.toLowerCase(),et==="http"||et==="https")throw new Error(`cannot intercept ${et}; use registerGetUrl`);if(locked$5)throw new Error("gateways locked");Gateways[et]=tt}static registerGetUrl(et){if(locked$5)throw new Error("gateways locked");defaultGetUrlFunc=et}static createGetUrlFunc(et){return createGetUrl()}static createDataGateway(){return dataGatewayFunc}static createIpfsGatewayFunc(et){return getIpfsGatewayFunc(et)}};Lu=new WeakMap,ku=new WeakMap,Us=new WeakMap,ul=new WeakMap,Bu=new WeakMap,ju=new WeakMap,rs=new WeakMap,Ps=new WeakMap,cl=new WeakMap,eu=new WeakMap,tu=new WeakMap,ru=new WeakMap,zs=new WeakMap,fl=new WeakMap,Pl=new WeakMap,nu=new WeakSet,Sp=async function(et,tt,nt,at,it){var ht,pt,mt;if(et>=_r(this,fl).maxAttempts)return it.makeServerError("exceeded maximum retry limit");assert$y(getTime$3()<=tt,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:at}),nt>0&&await wait$1(nt);let ot=this.clone();const st=(ot.url.split(":")[0]||"").toLowerCase();if(st in Gateways){const vt=await Gateways[st](ot.url,checkSignal(_r(at,zs)));if(vt instanceof FetchResponse){let bt=vt;if(this.processFunc){checkSignal(_r(at,zs));try{bt=await this.processFunc(ot,bt)}catch(_t){(_t.throttle==null||typeof _t.stall!="number")&&bt.makeServerError("error in post-processing function",_t).assertOk()}}return bt}ot=vt}this.preflightFunc&&(ot=await this.preflightFunc(ot));const ct=await this.getUrlFunc(ot,checkSignal(_r(at,zs)));let dt=new FetchResponse(ct.statusCode,ct.statusMessage,ct.headers,ct.body,at);if(dt.statusCode===301||dt.statusCode===302){try{const vt=dt.headers.location||"";return va(ht=ot.redirect(vt),nu,Sp).call(ht,et+1,tt,0,at,dt)}catch{}return dt}else if(dt.statusCode===429&&(this.retryFunc==null||await this.retryFunc(ot,dt,et))){const vt=dt.headers["retry-after"];let bt=_r(this,fl).slotInterval*Math.trunc(Math.random()*Math.pow(2,et));return typeof vt=="string"&&vt.match(/^[1-9][0-9]*$/)&&(bt=parseInt(vt)),va(pt=ot.clone(),nu,Sp).call(pt,et+1,tt,bt,at,dt)}if(this.processFunc){checkSignal(_r(at,zs));try{dt=await this.processFunc(ot,dt)}catch(vt){(vt.throttle==null||typeof vt.stall!="number")&&dt.makeServerError("error in post-processing function",vt).assertOk();let bt=_r(this,fl).slotInterval*Math.trunc(Math.random()*Math.pow(2,et));return vt.stall>=0&&(bt=vt.stall),va(mt=ot.clone(),nu,Sp).call(mt,et+1,tt,bt,at,dt)}}return dt};let FetchRequest=Pm;var Rp,Ip,Np,Ms,Fu,au;const Ym=class Ym{constructor(et,tt,nt,at,it){Rn(this,Rp,void 0);Rn(this,Ip,void 0);Rn(this,Np,void 0);Rn(this,Ms,void 0);Rn(this,Fu,void 0);Rn(this,au,void 0);Wr(this,Rp,et),Wr(this,Ip,tt),Wr(this,Np,Object.keys(nt).reduce((ot,st)=>(ot[st.toLowerCase()]=String(nt[st]),ot),{})),Wr(this,Ms,at==null?null:new Uint8Array(at)),Wr(this,Fu,it||null),Wr(this,au,{message:""})}toString(){return`<FetchResponse status=${this.statusCode} body=${_r(this,Ms)?hexlify$1(_r(this,Ms)):"null"}>`}get statusCode(){return _r(this,Rp)}get statusMessage(){return _r(this,Ip)}get headers(){return Object.assign({},_r(this,Np))}get body(){return _r(this,Ms)==null?null:new Uint8Array(_r(this,Ms))}get bodyText(){try{return _r(this,Ms)==null?"":toUtf8String$1(_r(this,Ms))}catch{assert$y(!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{assert$y(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const et=this.headers,tt=Object.keys(et);let nt=0;return{next:()=>{if(nt<tt.length){const at=tt[nt++];return{value:[at,et[at]],done:!1}}return{value:void 0,done:!0}}}}makeServerError(et,tt){let nt;et?nt=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${et})`:(et=`${this.statusCode} ${this.statusMessage}`,nt=`CLIENT ESCALATED SERVER ERROR (${et})`);const at=new Ym(599,nt,this.headers,this.body,_r(this,Fu)||void 0);return Wr(at,au,{message:et,error:tt}),at}throwThrottleError(et,tt){tt==null?tt=-1:assertArgument(Number.isInteger(tt)&&tt>=0,"invalid stall timeout","stall",tt);const nt=new Error(et||"throttling requests");throw defineProperties$2(nt,{stall:tt,throttle:!0}),nt}getHeader(et){return this.headers[et.toLowerCase()]}hasBody(){return _r(this,Ms)!=null}get request(){return _r(this,Fu)}ok(){return _r(this,au).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:et,error:tt}=_r(this,au);et===""&&(et=`server response ${this.statusCode} ${this.statusMessage}`);let nt=null;this.request&&(nt=this.request.url);let at=null;try{_r(this,Ms)&&(at=toUtf8String$1(_r(this,Ms)))}catch{}assert$y(!1,et,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:tt,info:{requestUrl:nt,responseBody:at,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};Rp=new WeakMap,Ip=new WeakMap,Np=new WeakMap,Ms=new WeakMap,Fu=new WeakMap,au=new WeakMap;let FetchResponse=Ym;function getTime$3(){return new Date().getTime()}function unpercent$1(_e){return toUtf8Bytes$1(_e.replace(/%([0-9a-f][0-9a-f])/gi,(et,tt)=>String.fromCharCode(parseInt(tt,16))))}function wait$1(_e){return new Promise(et=>setTimeout(et,_e))}function hexlifyByte(_e){let et=_e.toString(16);for(;et.length<2;)et="0"+et;return"0x"+et}function unarrayifyInteger$1(_e,et,tt){let nt=0;for(let at=0;at<tt;at++)nt=nt*256+_e[et+at];return nt}function _decodeChildren$1(_e,et,tt,nt){const at=[];for(;tt<et+1+nt;){const it=_decode$1(_e,tt);at.push(it.result),tt+=it.consumed,assert$y(tt<=et+1+nt,"child data too short","BUFFER_OVERRUN",{buffer:_e,length:nt,offset:et})}return{consumed:1+nt,result:at}}function _decode$1(_e,et){assert$y(_e.length!==0,"data too short","BUFFER_OVERRUN",{buffer:_e,length:0,offset:1});const tt=nt=>{assert$y(nt<=_e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:_e,length:_e.length,offset:nt})};if(_e[et]>=248){const nt=_e[et]-247;tt(et+1+nt);const at=unarrayifyInteger$1(_e,et+1,nt);return tt(et+1+nt+at),_decodeChildren$1(_e,et,et+1+nt,nt+at)}else if(_e[et]>=192){const nt=_e[et]-192;return tt(et+1+nt),_decodeChildren$1(_e,et,et+1,nt)}else if(_e[et]>=184){const nt=_e[et]-183;tt(et+1+nt);const at=unarrayifyInteger$1(_e,et+1,nt);tt(et+1+nt+at);const it=hexlify$1(_e.slice(et+1+nt,et+1+nt+at));return{consumed:1+nt+at,result:it}}else if(_e[et]>=128){const nt=_e[et]-128;tt(et+1+nt);const at=hexlify$1(_e.slice(et+1,et+1+nt));return{consumed:1+nt,result:at}}return{consumed:1,result:hexlifyByte(_e[et])}}function decodeRlp(_e){const et=getBytes(_e,"data"),tt=_decode$1(et,0);return assertArgument(tt.consumed===et.length,"unexpected junk after rlp payload","data",_e),tt.result}function arrayifyInteger$1(_e){const et=[];for(;_e;)et.unshift(_e&255),_e>>=8;return et}function _encode$1(_e){if(Array.isArray(_e)){let nt=[];if(_e.forEach(function(it){nt=nt.concat(_encode$1(it))}),nt.length<=55)return nt.unshift(192+nt.length),nt;const at=arrayifyInteger$1(nt.length);return at.unshift(247+at.length),at.concat(nt)}const et=Array.prototype.slice.call(getBytes(_e,"object"));if(et.length===1&&et[0]<=127)return et;if(et.length<=55)return et.unshift(128+et.length),et;const tt=arrayifyInteger$1(et.length);return tt.unshift(183+tt.length),tt.concat(et)}const nibbles="0123456789abcdef";function encodeRlp(_e){let et="0x";for(const tt of _encode$1(_e))et+=nibbles[tt>>4],et+=nibbles[tt&15];return et}function uuidV4(_e){const et=getBytes(_e,"randomBytes");et[6]=et[6]&15|64,et[8]=et[8]&63|128;const tt=hexlify$1(et);return[tt.substring(2,10),tt.substring(10,14),tt.substring(14,18),tt.substring(18,22),tt.substring(22,34)].join("-")}const WordSize=32,Padding=new Uint8Array(WordSize),passProperties$1=["then"],_guard$4={};function throwError$1(_e,et){const tt=new Error(`deferred error during ABI decoding triggered accessing ${_e}`);throw tt.error=et,tt}var Ml;const Op=class Op extends Array{constructor(...tt){const nt=tt[0];let at=tt[1],it=(tt[2]||[]).slice(),ot=!0;nt!==_guard$4&&(at=tt,it=[],ot=!1);super(at.length);Rn(this,Ml,void 0);at.forEach((ct,dt)=>{this[dt]=ct});const st=it.reduce((ct,dt)=>(typeof dt=="string"&&ct.set(dt,(ct.get(dt)||0)+1),ct),new Map);if(Wr(this,Ml,Object.freeze(at.map((ct,dt)=>{const ht=it[dt];return ht!=null&&st.get(ht)===1?ht:null}))),!!ot)return Object.freeze(this),new Proxy(this,{get:(ct,dt,ht)=>{if(typeof dt=="string"){if(dt.match(/^[0-9]+$/)){const mt=getNumber(dt,"%index");if(mt<0||mt>=this.length)throw new RangeError("out of result range");const vt=ct[mt];return vt instanceof Error&&throwError$1(`index ${mt}`,vt),vt}if(passProperties$1.indexOf(dt)>=0)return Reflect.get(ct,dt,ht);const pt=ct[dt];if(pt instanceof Function)return function(...mt){return pt.apply(this===ht?ct:this,mt)};if(!(dt in ct))return ct.getValue.apply(this===ht?ct:this,[dt])}return Reflect.get(ct,dt,ht)}})}toArray(){const tt=[];return this.forEach((nt,at)=>{nt instanceof Error&&throwError$1(`index ${at}`,nt),tt.push(nt)}),tt}toObject(){return _r(this,Ml).reduce((tt,nt,at)=>(assert$y(nt!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),nt in tt||(tt[nt]=this.getValue(nt)),tt),{})}slice(tt,nt){tt==null&&(tt=0),tt<0&&(tt+=this.length,tt<0&&(tt=0)),nt==null&&(nt=this.length),nt<0&&(nt+=this.length,nt<0&&(nt=0)),nt>this.length&&(nt=this.length);const at=[],it=[];for(let ot=tt;ot<nt;ot++)at.push(this[ot]),it.push(_r(this,Ml)[ot]);return new Op(_guard$4,at,it)}filter(tt,nt){const at=[],it=[];for(let ot=0;ot<this.length;ot++){const st=this[ot];st instanceof Error&&throwError$1(`index ${ot}`,st),tt.call(nt,st,ot,this)&&(at.push(st),it.push(_r(this,Ml)[ot]))}return new Op(_guard$4,at,it)}map(tt,nt){const at=[];for(let it=0;it<this.length;it++){const ot=this[it];ot instanceof Error&&throwError$1(`index ${it}`,ot),at.push(tt.call(nt,ot,it,this))}return at}getValue(tt){const nt=_r(this,Ml).indexOf(tt);if(nt===-1)return;const at=this[nt];return at instanceof Error&&throwError$1(`property ${JSON.stringify(tt)}`,at.error),at}static fromItems(tt,nt){return new Op(_guard$4,tt,nt)}};Ml=new WeakMap;let Result=Op;function getValue$7(_e){let et=toBeArray(_e);return assert$y(et.length<=WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:et,length:WordSize,offset:et.length}),et.length!==WordSize&&(et=getBytesCopy(concat$2([Padding.slice(et.length%WordSize),et]))),et}let Coder$1=class{constructor(et,tt,nt,at){Zr(this,"name");Zr(this,"type");Zr(this,"localName");Zr(this,"dynamic");defineProperties$2(this,{name:et,type:tt,localName:nt,dynamic:at},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(et,tt){assertArgument(!1,et,this.localName,tt)}};var dl,iu,Uu,_m,Qm;let Writer$1=(Qm=class{constructor(){Rn(this,Uu);Rn(this,dl,void 0);Rn(this,iu,void 0);Wr(this,dl,[]),Wr(this,iu,0)}get data(){return concat$2(_r(this,dl))}get length(){return _r(this,iu)}appendWriter(et){return va(this,Uu,_m).call(this,getBytesCopy(et.data))}writeBytes(et){let tt=getBytesCopy(et);const nt=tt.length%WordSize;return nt&&(tt=getBytesCopy(concat$2([tt,Padding.slice(nt)]))),va(this,Uu,_m).call(this,tt)}writeValue(et){return va(this,Uu,_m).call(this,getValue$7(et))}writeUpdatableValue(){const et=_r(this,dl).length;return _r(this,dl).push(Padding),Wr(this,iu,_r(this,iu)+WordSize),tt=>{_r(this,dl)[et]=getValue$7(tt)}}},dl=new WeakMap,iu=new WeakMap,Uu=new WeakSet,_m=function(et){return _r(this,dl).push(et),Wr(this,iu,_r(this,iu)+et.length),et.length},Qm);var _s,Cs,ou,su,Cl,Dp,km,Mm,ey,Lp;let Reader$1=(Lp=class{constructor(et,tt,nt){Rn(this,Dp);Rn(this,Mm);Zr(this,"allowLoose");Rn(this,_s,void 0);Rn(this,Cs,void 0);Rn(this,ou,void 0);Rn(this,su,void 0);Rn(this,Cl,void 0);defineProperties$2(this,{allowLoose:!!tt}),Wr(this,_s,getBytesCopy(et)),Wr(this,ou,0),Wr(this,su,null),Wr(this,Cl,nt??1024),Wr(this,Cs,0)}get data(){return hexlify$1(_r(this,_s))}get dataLength(){return _r(this,_s).length}get consumed(){return _r(this,Cs)}get bytes(){return new Uint8Array(_r(this,_s))}subReader(et){const tt=new Lp(_r(this,_s).slice(_r(this,Cs)+et),this.allowLoose,_r(this,Cl));return Wr(tt,su,this),tt}readBytes(et,tt){let nt=va(this,Mm,ey).call(this,0,et,!!tt);return va(this,Dp,km).call(this,et),Wr(this,Cs,_r(this,Cs)+nt.length),nt.slice(0,et)}readValue(){return toBigInt(this.readBytes(WordSize))}readIndex(){return toNumber$2(this.readBytes(WordSize))}},_s=new WeakMap,Cs=new WeakMap,ou=new WeakMap,su=new WeakMap,Cl=new WeakMap,Dp=new WeakSet,km=function(et){var tt;if(_r(this,su))return va(tt=_r(this,su),Dp,km).call(tt,et);Wr(this,ou,_r(this,ou)+et),assert$y(_r(this,Cl)<1||_r(this,ou)<=_r(this,Cl)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${_r(this,Cl)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:getBytesCopy(_r(this,_s)),offset:_r(this,Cs),length:et,info:{bytesRead:_r(this,ou),dataLength:this.dataLength}})},Mm=new WeakSet,ey=function(et,tt,nt){let at=Math.ceil(tt/WordSize)*WordSize;return _r(this,Cs)+at>_r(this,_s).length&&(this.allowLoose&&nt&&_r(this,Cs)+tt<=_r(this,_s).length?at=tt:assert$y(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:getBytesCopy(_r(this,_s)),length:_r(this,_s).length,offset:_r(this,Cs)+at})),_r(this,_s).slice(_r(this,Cs),_r(this,Cs)+at)},Lp);const global$a=globalThis||void 0||self;function number$4(_e){if(!Number.isSafeInteger(_e)||_e<0)throw new Error(`Wrong positive integer: ${_e}`)}function bytes$1(_e,...et){if(!(_e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(et.length>0&&!et.includes(_e.length))throw new Error(`Expected Uint8Array of length ${et}, not of length=${_e.length}`)}function hash$9(_e){if(typeof _e!="function"||typeof _e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number$4(_e.outputLen),number$4(_e.blockLen)}function exists$1(_e,et=!0){if(_e.destroyed)throw new Error("Hash instance has been destroyed");if(et&&_e.finished)throw new Error("Hash#digest() has already been called")}function output$2(_e,et){bytes$1(_e);const tt=et.outputLen;if(_e.length<tt)throw new Error(`digestInto() expects output buffer of length at least ${tt}`)}const crypto$5=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u8a$1=_e=>_e instanceof Uint8Array,u32=_e=>new Uint32Array(_e.buffer,_e.byteOffset,Math.floor(_e.byteLength/4)),createView=_e=>new DataView(_e.buffer,_e.byteOffset,_e.byteLength),rotr=(_e,et)=>_e<<32-et|_e>>>et,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE)throw new Error("Non little-endian hardware is not supported");const nextTick$3=async()=>{};async function asyncLoop(_e,et,tt){let nt=Date.now();for(let at=0;at<_e;at++){tt(at);const it=Date.now()-nt;it>=0&&it<et||(await nextTick$3(),nt+=it)}}function utf8ToBytes$1(_e){if(typeof _e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof _e}`);return new Uint8Array(new TextEncoder().encode(_e))}function toBytes(_e){if(typeof _e=="string"&&(_e=utf8ToBytes$1(_e)),!u8a$1(_e))throw new Error(`expected Uint8Array, got ${typeof _e}`);return _e}function concatBytes$1(..._e){const et=new Uint8Array(_e.reduce((nt,at)=>nt+at.length,0));let tt=0;return _e.forEach(nt=>{if(!u8a$1(nt))throw new Error("Uint8Array expected");et.set(nt,tt),tt+=nt.length}),et}let Hash$c=class{clone(){return this._cloneInto()}};const toStr$b={}.toString;function checkOpts(_e,et){if(et!==void 0&&toStr$b.call(et)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(_e,et)}function wrapConstructor$1(_e){const et=nt=>_e().update(toBytes(nt)).digest(),tt=_e();return et.outputLen=tt.outputLen,et.blockLen=tt.blockLen,et.create=()=>_e(),et}function randomBytes$5(_e=32){if(crypto$5&&typeof crypto$5.getRandomValues=="function")return crypto$5.getRandomValues(new Uint8Array(_e));throw new Error("crypto.getRandomValues must be defined")}class HMAC extends Hash$c{constructor(et,tt){super(),this.finished=!1,this.destroyed=!1,hash$9(et);const nt=toBytes(tt);if(this.iHash=et.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const at=this.blockLen,it=new Uint8Array(at);it.set(nt.length>at?et.create().update(nt).digest():nt);for(let ot=0;ot<it.length;ot++)it[ot]^=54;this.iHash.update(it),this.oHash=et.create();for(let ot=0;ot<it.length;ot++)it[ot]^=106;this.oHash.update(it),it.fill(0)}update(et){return exists$1(this),this.iHash.update(et),this}digestInto(et){exists$1(this),bytes$1(et,this.outputLen),this.finished=!0,this.iHash.digestInto(et),this.oHash.update(et),this.oHash.digestInto(et),this.destroy()}digest(){const et=new Uint8Array(this.oHash.outputLen);return this.digestInto(et),et}_cloneInto(et){et||(et=Object.create(Object.getPrototypeOf(this),{}));const{oHash:tt,iHash:nt,finished:at,destroyed:it,blockLen:ot,outputLen:st}=this;return et=et,et.finished=at,et.destroyed=it,et.blockLen=ot,et.outputLen=st,et.oHash=tt._cloneInto(et.oHash),et.iHash=nt._cloneInto(et.iHash),et}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const hmac$2=(_e,et,tt)=>new HMAC(_e,et).update(tt).digest();hmac$2.create=(_e,et)=>new HMAC(_e,et);function pbkdf2Init(_e,et,tt,nt){hash$9(_e);const at=checkOpts({dkLen:32,asyncTick:10},nt),{c:it,dkLen:ot,asyncTick:st}=at;if(number$4(it),number$4(ot),number$4(st),it<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const ct=toBytes(et),dt=toBytes(tt),ht=new Uint8Array(ot),pt=hmac$2.create(_e,ct),mt=pt._cloneInto().update(dt);return{c:it,dkLen:ot,asyncTick:st,DK:ht,PRF:pt,PRFSalt:mt}}function pbkdf2Output(_e,et,tt,nt,at){return _e.destroy(),et.destroy(),nt&&nt.destroy(),at.fill(0),tt}function pbkdf2$2(_e,et,tt,nt){const{c:at,dkLen:it,DK:ot,PRF:st,PRFSalt:ct}=pbkdf2Init(_e,et,tt,nt);let dt;const ht=new Uint8Array(4),pt=createView(ht),mt=new Uint8Array(st.outputLen);for(let vt=1,bt=0;bt<it;vt++,bt+=st.outputLen){const _t=ot.subarray(bt,bt+st.outputLen);pt.setInt32(0,vt,!1),(dt=ct._cloneInto(dt)).update(ht).digestInto(mt),_t.set(mt.subarray(0,_t.length));for(let wt=1;wt<at;wt++){st._cloneInto(dt).update(mt).digestInto(mt);for(let Et=0;Et<_t.length;Et++)_t[Et]^=mt[Et]}}return pbkdf2Output(st,ct,ot,dt,mt)}function setBigUint64$1(_e,et,tt,nt){if(typeof _e.setBigUint64=="function")return _e.setBigUint64(et,tt,nt);const at=BigInt(32),it=BigInt(4294967295),ot=Number(tt>>at&it),st=Number(tt&it),ct=nt?4:0,dt=nt?0:4;_e.setUint32(et+ct,ot,nt),_e.setUint32(et+dt,st,nt)}let SHA2$1=class extends Hash$c{constructor(et,tt,nt,at){super(),this.blockLen=et,this.outputLen=tt,this.padOffset=nt,this.isLE=at,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(et),this.view=createView(this.buffer)}update(et){exists$1(this);const{view:tt,buffer:nt,blockLen:at}=this;et=toBytes(et);const it=et.length;for(let ot=0;ot<it;){const st=Math.min(at-this.pos,it-ot);if(st===at){const ct=createView(et);for(;at<=it-ot;ot+=at)this.process(ct,ot);continue}nt.set(et.subarray(ot,ot+st),this.pos),this.pos+=st,ot+=st,this.pos===at&&(this.process(tt,0),this.pos=0)}return this.length+=et.length,this.roundClean(),this}digestInto(et){exists$1(this),output$2(et,this),this.finished=!0;const{buffer:tt,view:nt,blockLen:at,isLE:it}=this;let{pos:ot}=this;tt[ot++]=128,this.buffer.subarray(ot).fill(0),this.padOffset>at-ot&&(this.process(nt,0),ot=0);for(let pt=ot;pt<at;pt++)tt[pt]=0;setBigUint64$1(nt,at-8,BigInt(this.length*8),it),this.process(nt,0);const st=createView(et),ct=this.outputLen;if(ct%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const dt=ct/4,ht=this.get();if(dt>ht.length)throw new Error("_sha2: outputLen bigger than state");for(let pt=0;pt<dt;pt++)st.setUint32(4*pt,ht[pt],it)}digest(){const{buffer:et,outputLen:tt}=this;this.digestInto(et);const nt=et.slice(0,tt);return this.destroy(),nt}_cloneInto(et){et||(et=new this.constructor),et.set(...this.get());const{blockLen:tt,buffer:nt,length:at,finished:it,destroyed:ot,pos:st}=this;return et.length=at,et.pos=st,et.finished=it,et.destroyed=ot,at%tt&&et.buffer.set(nt),et}};const Chi$1=(_e,et,tt)=>_e&et^~_e&tt,Maj$1=(_e,et,tt)=>_e&et^_e&tt^et&tt,SHA256_K$1=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]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$3=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0,this.F=IV$1[5]|0,this.G=IV$1[6]|0,this.H=IV$1[7]|0}get(){const{A:et,B:tt,C:nt,D:at,E:it,F:ot,G:st,H:ct}=this;return[et,tt,nt,at,it,ot,st,ct]}set(et,tt,nt,at,it,ot,st,ct){this.A=et|0,this.B=tt|0,this.C=nt|0,this.D=at|0,this.E=it|0,this.F=ot|0,this.G=st|0,this.H=ct|0}process(et,tt){for(let pt=0;pt<16;pt++,tt+=4)SHA256_W$1[pt]=et.getUint32(tt,!1);for(let pt=16;pt<64;pt++){const mt=SHA256_W$1[pt-15],vt=SHA256_W$1[pt-2],bt=rotr(mt,7)^rotr(mt,18)^mt>>>3,_t=rotr(vt,17)^rotr(vt,19)^vt>>>10;SHA256_W$1[pt]=_t+SHA256_W$1[pt-7]+bt+SHA256_W$1[pt-16]|0}let{A:nt,B:at,C:it,D:ot,E:st,F:ct,G:dt,H:ht}=this;for(let pt=0;pt<64;pt++){const mt=rotr(st,6)^rotr(st,11)^rotr(st,25),vt=ht+mt+Chi$1(st,ct,dt)+SHA256_K$1[pt]+SHA256_W$1[pt]|0,_t=(rotr(nt,2)^rotr(nt,13)^rotr(nt,22))+Maj$1(nt,at,it)|0;ht=dt,dt=ct,ct=st,st=ot+vt|0,ot=it,it=at,at=nt,nt=vt+_t|0}nt=nt+this.A|0,at=at+this.B|0,it=it+this.C|0,ot=ot+this.D|0,st=st+this.E|0,ct=ct+this.F|0,dt=dt+this.G|0,ht=ht+this.H|0,this.set(nt,at,it,ot,st,ct,dt,ht)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const sha256$5=wrapConstructor$1(()=>new SHA256$3),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(_e,et=!1){return et?{h:Number(_e&U32_MASK64),l:Number(_e>>_32n&U32_MASK64)}:{h:Number(_e>>_32n&U32_MASK64)|0,l:Number(_e&U32_MASK64)|0}}function split$3(_e,et=!1){let tt=new Uint32Array(_e.length),nt=new Uint32Array(_e.length);for(let at=0;at<_e.length;at++){const{h:it,l:ot}=fromBig(_e[at],et);[tt[at],nt[at]]=[it,ot]}return[tt,nt]}const toBig=(_e,et)=>BigInt(_e>>>0)<<_32n|BigInt(et>>>0),shrSH=(_e,et,tt)=>_e>>>tt,shrSL=(_e,et,tt)=>_e<<32-tt|et>>>tt,rotrSH=(_e,et,tt)=>_e>>>tt|et<<32-tt,rotrSL=(_e,et,tt)=>_e<<32-tt|et>>>tt,rotrBH=(_e,et,tt)=>_e<<64-tt|et>>>tt-32,rotrBL=(_e,et,tt)=>_e>>>tt-32|et<<64-tt,rotr32H=(_e,et)=>et,rotr32L=(_e,et)=>_e,rotlSH=(_e,et,tt)=>_e<<tt|et>>>32-tt,rotlSL=(_e,et,tt)=>et<<tt|_e>>>32-tt,rotlBH=(_e,et,tt)=>et<<tt-32|_e>>>64-tt,rotlBL=(_e,et,tt)=>_e<<tt-32|et>>>64-tt;function add$3(_e,et,tt,nt){const at=(et>>>0)+(nt>>>0);return{h:_e+tt+(at/2**32|0)|0,l:at|0}}const add3L=(_e,et,tt)=>(_e>>>0)+(et>>>0)+(tt>>>0),add3H=(_e,et,tt,nt)=>et+tt+nt+(_e/2**32|0)|0,add4L=(_e,et,tt,nt)=>(_e>>>0)+(et>>>0)+(tt>>>0)+(nt>>>0),add4H=(_e,et,tt,nt,at)=>et+tt+nt+at+(_e/2**32|0)|0,add5L=(_e,et,tt,nt,at)=>(_e>>>0)+(et>>>0)+(tt>>>0)+(nt>>>0)+(at>>>0),add5H=(_e,et,tt,nt,at,it)=>et+tt+nt+at+it+(_e/2**32|0)|0,u64={fromBig,split:split$3,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add:add$3,add3L,add3H,add4L,add4H,add5H,add5L},u64$1=u64,[SHA512_Kh,SHA512_Kl]=(()=>u64$1.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","0xf40e35855771202a","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))))(),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);let SHA512$3=class extends SHA2$1{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:et,Al:tt,Bh:nt,Bl:at,Ch:it,Cl:ot,Dh:st,Dl:ct,Eh:dt,El:ht,Fh:pt,Fl:mt,Gh:vt,Gl:bt,Hh:_t,Hl:wt}=this;return[et,tt,nt,at,it,ot,st,ct,dt,ht,pt,mt,vt,bt,_t,wt]}set(et,tt,nt,at,it,ot,st,ct,dt,ht,pt,mt,vt,bt,_t,wt){this.Ah=et|0,this.Al=tt|0,this.Bh=nt|0,this.Bl=at|0,this.Ch=it|0,this.Cl=ot|0,this.Dh=st|0,this.Dl=ct|0,this.Eh=dt|0,this.El=ht|0,this.Fh=pt|0,this.Fl=mt|0,this.Gh=vt|0,this.Gl=bt|0,this.Hh=_t|0,this.Hl=wt|0}process(et,tt){for(let Tt=0;Tt<16;Tt++,tt+=4)SHA512_W_H[Tt]=et.getUint32(tt),SHA512_W_L[Tt]=et.getUint32(tt+=4);for(let Tt=16;Tt<80;Tt++){const Ct=SHA512_W_H[Tt-15]|0,Nt=SHA512_W_L[Tt-15]|0,Dt=u64$1.rotrSH(Ct,Nt,1)^u64$1.rotrSH(Ct,Nt,8)^u64$1.shrSH(Ct,Nt,7),kt=u64$1.rotrSL(Ct,Nt,1)^u64$1.rotrSL(Ct,Nt,8)^u64$1.shrSL(Ct,Nt,7),Ft=SHA512_W_H[Tt-2]|0,jt=SHA512_W_L[Tt-2]|0,Gt=u64$1.rotrSH(Ft,jt,19)^u64$1.rotrBH(Ft,jt,61)^u64$1.shrSH(Ft,jt,6),Rt=u64$1.rotrSL(Ft,jt,19)^u64$1.rotrBL(Ft,jt,61)^u64$1.shrSL(Ft,jt,6),yt=u64$1.add4L(kt,Rt,SHA512_W_L[Tt-7],SHA512_W_L[Tt-16]),$t=u64$1.add4H(yt,Dt,Gt,SHA512_W_H[Tt-7],SHA512_W_H[Tt-16]);SHA512_W_H[Tt]=$t|0,SHA512_W_L[Tt]=yt|0}let{Ah:nt,Al:at,Bh:it,Bl:ot,Ch:st,Cl:ct,Dh:dt,Dl:ht,Eh:pt,El:mt,Fh:vt,Fl:bt,Gh:_t,Gl:wt,Hh:Et,Hl:St}=this;for(let Tt=0;Tt<80;Tt++){const Ct=u64$1.rotrSH(pt,mt,14)^u64$1.rotrSH(pt,mt,18)^u64$1.rotrBH(pt,mt,41),Nt=u64$1.rotrSL(pt,mt,14)^u64$1.rotrSL(pt,mt,18)^u64$1.rotrBL(pt,mt,41),Dt=pt&vt^~pt&_t,kt=mt&bt^~mt&wt,Ft=u64$1.add5L(St,Nt,kt,SHA512_Kl[Tt],SHA512_W_L[Tt]),jt=u64$1.add5H(Ft,Et,Ct,Dt,SHA512_Kh[Tt],SHA512_W_H[Tt]),Gt=Ft|0,Rt=u64$1.rotrSH(nt,at,28)^u64$1.rotrBH(nt,at,34)^u64$1.rotrBH(nt,at,39),yt=u64$1.rotrSL(nt,at,28)^u64$1.rotrBL(nt,at,34)^u64$1.rotrBL(nt,at,39),$t=nt&it^nt&st^it&st,xt=at&ot^at&ct^ot&ct;Et=_t|0,St=wt|0,_t=vt|0,wt=bt|0,vt=pt|0,bt=mt|0,{h:pt,l:mt}=u64$1.add(dt|0,ht|0,jt|0,Gt|0),dt=st|0,ht=ct|0,st=it|0,ct=ot|0,it=nt|0,ot=at|0;const At=u64$1.add3L(Gt,yt,xt);nt=u64$1.add3H(At,jt,Rt,$t),at=At|0}({h:nt,l:at}=u64$1.add(this.Ah|0,this.Al|0,nt|0,at|0)),{h:it,l:ot}=u64$1.add(this.Bh|0,this.Bl|0,it|0,ot|0),{h:st,l:ct}=u64$1.add(this.Ch|0,this.Cl|0,st|0,ct|0),{h:dt,l:ht}=u64$1.add(this.Dh|0,this.Dl|0,dt|0,ht|0),{h:pt,l:mt}=u64$1.add(this.Eh|0,this.El|0,pt|0,mt|0),{h:vt,l:bt}=u64$1.add(this.Fh|0,this.Fl|0,vt|0,bt|0),{h:_t,l:wt}=u64$1.add(this.Gh|0,this.Gl|0,_t|0,wt|0),{h:Et,l:St}=u64$1.add(this.Hh|0,this.Hl|0,Et|0,St|0),this.set(nt,at,it,ot,st,ct,dt,ht,pt,mt,vt,bt,_t,wt,Et,St)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.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 sha512$2=wrapConstructor$1(()=>new SHA512$3);function getGlobal(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global$a<"u")return global$a;throw new Error("unable to locate global object")}const anyGlobal=getGlobal(),crypto$4=anyGlobal.crypto||anyGlobal.msCrypto;function createHash$3(_e){switch(_e){case"sha256":return sha256$5.create();case"sha512":return sha512$2.create()}assertArgument(!1,"invalid hashing algorithm name","algorithm",_e)}function createHmac(_e,et){const tt={sha256:sha256$5,sha512:sha512$2}[_e];return assertArgument(tt!=null,"invalid hmac algorithm","algorithm",_e),hmac$2.create(tt,et)}function pbkdf2Sync(_e,et,tt,nt,at){const it={sha256:sha256$5,sha512:sha512$2}[at];return assertArgument(it!=null,"invalid pbkdf2 algorithm","algorithm",at),pbkdf2$2(it,_e,et,{c:tt,dkLen:nt})}function randomBytes$4(_e){assert$y(crypto$4!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),assertArgument(Number.isInteger(_e)&&_e>0&&_e<=1024,"invalid length","length",_e);const et=new Uint8Array(_e);return crypto$4.getRandomValues(et),et}let locked$4=!1;const _computeHmac=function(_e,et,tt){return createHmac(_e,et).update(tt).digest()};let __computeHmac=_computeHmac;function computeHmac(_e,et,tt){const nt=getBytes(et,"key"),at=getBytes(tt,"data");return hexlify$1(__computeHmac(_e,nt,at))}computeHmac._=_computeHmac;computeHmac.lock=function(){locked$4=!0};computeHmac.register=function(_e){if(locked$4)throw new Error("computeHmac is locked");__computeHmac=_e};Object.freeze(computeHmac);const[SHA3_PI,SHA3_ROTL,_SHA3_IOTA]=[[],[],[]],_0n$4=BigInt(0),_1n$5=BigInt(1),_2n$3=BigInt(2),_7n=BigInt(7),_256n=BigInt(256),_0x71n=BigInt(113);for(let _e=0,et=_1n$5,tt=1,nt=0;_e<24;_e++){[tt,nt]=[nt,(2*tt+3*nt)%5],SHA3_PI.push(2*(5*nt+tt)),SHA3_ROTL.push((_e+1)*(_e+2)/2%64);let at=_0n$4;for(let it=0;it<7;it++)et=(et<<_1n$5^(et>>_7n)*_0x71n)%_256n,et&_2n$3&&(at^=_1n$5<<(_1n$5<<BigInt(it))-_1n$5);_SHA3_IOTA.push(at)}const[SHA3_IOTA_H,SHA3_IOTA_L]=split$3(_SHA3_IOTA,!0),rotlH=(_e,et,tt)=>tt>32?rotlBH(_e,et,tt):rotlSH(_e,et,tt),rotlL=(_e,et,tt)=>tt>32?rotlBL(_e,et,tt):rotlSL(_e,et,tt);function keccakP(_e,et=24){const tt=new Uint32Array(10);for(let nt=24-et;nt<24;nt++){for(let ot=0;ot<10;ot++)tt[ot]=_e[ot]^_e[ot+10]^_e[ot+20]^_e[ot+30]^_e[ot+40];for(let ot=0;ot<10;ot+=2){const st=(ot+8)%10,ct=(ot+2)%10,dt=tt[ct],ht=tt[ct+1],pt=rotlH(dt,ht,1)^tt[st],mt=rotlL(dt,ht,1)^tt[st+1];for(let vt=0;vt<50;vt+=10)_e[ot+vt]^=pt,_e[ot+vt+1]^=mt}let at=_e[2],it=_e[3];for(let ot=0;ot<24;ot++){const st=SHA3_ROTL[ot],ct=rotlH(at,it,st),dt=rotlL(at,it,st),ht=SHA3_PI[ot];at=_e[ht],it=_e[ht+1],_e[ht]=ct,_e[ht+1]=dt}for(let ot=0;ot<50;ot+=10){for(let st=0;st<10;st++)tt[st]=_e[ot+st];for(let st=0;st<10;st++)_e[ot+st]^=~tt[(st+2)%10]&tt[(st+4)%10]}_e[0]^=SHA3_IOTA_H[nt],_e[1]^=SHA3_IOTA_L[nt]}tt.fill(0)}class Keccak extends Hash$c{constructor(et,tt,nt,at=!1,it=24){if(super(),this.blockLen=et,this.suffix=tt,this.outputLen=nt,this.enableXOF=at,this.rounds=it,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,number$4(nt),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=u32(this.state)}keccak(){keccakP(this.state32,this.rounds),this.posOut=0,this.pos=0}update(et){exists$1(this);const{blockLen:tt,state:nt}=this;et=toBytes(et);const at=et.length;for(let it=0;it<at;){const ot=Math.min(tt-this.pos,at-it);for(let st=0;st<ot;st++)nt[this.pos++]^=et[it++];this.pos===tt&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:et,suffix:tt,pos:nt,blockLen:at}=this;et[nt]^=tt,tt&128&&nt===at-1&&this.keccak(),et[at-1]^=128,this.keccak()}writeInto(et){exists$1(this,!1),bytes$1(et),this.finish();const tt=this.state,{blockLen:nt}=this;for(let at=0,it=et.length;at<it;){this.posOut>=nt&&this.keccak();const ot=Math.min(nt-this.posOut,it-at);et.set(tt.subarray(this.posOut,this.posOut+ot),at),this.posOut+=ot,at+=ot}return et}xofInto(et){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(et)}xof(et){return number$4(et),this.xofInto(new Uint8Array(et))}digestInto(et){if(output$2(et,this),this.finished)throw new Error("digest() was already called");return this.writeInto(et),this.destroy(),et}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(et){const{blockLen:tt,suffix:nt,outputLen:at,rounds:it,enableXOF:ot}=this;return et||(et=new Keccak(tt,nt,at,ot,it)),et.state32.set(this.state32),et.pos=this.pos,et.posOut=this.posOut,et.finished=this.finished,et.rounds=it,et.suffix=nt,et.outputLen=at,et.enableXOF=ot,et.destroyed=this.destroyed,et}}const gen=(_e,et,tt)=>wrapConstructor$1(()=>new Keccak(et,_e,tt)),keccak_256=gen(1,136,256/8);let locked$3=!1;const _keccak256=function(_e){return keccak_256(_e)};let __keccak256=_keccak256;function keccak256$1(_e){const et=getBytes(_e,"data");return hexlify$1(__keccak256(et))}keccak256$1._=_keccak256;keccak256$1.lock=function(){locked$3=!0};keccak256$1.register=function(_e){if(locked$3)throw new TypeError("keccak256 is locked");__keccak256=_e};Object.freeze(keccak256$1);const Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=Uint8Array.from({length:16},(_e,et)=>et),Pi=Id.map(_e=>(9*_e+5)%16);let idxL=[Id],idxR=[Pi];for(let _e=0;_e<4;_e++)for(let et of[idxL,idxR])et.push(et[_e].map(tt=>Rho[tt]));const shifts=[[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)),shiftsL=idxL.map((_e,et)=>_e.map(tt=>shifts[et][tt])),shiftsR=idxR.map((_e,et)=>_e.map(tt=>shifts[et][tt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$3=(_e,et)=>_e<<et|_e>>>32-et;function f$3(_e,et,tt,nt){return _e===0?et^tt^nt:_e===1?et&tt|~et&nt:_e===2?(et|~tt)^nt:_e===3?et&nt|tt&~nt:et^(tt|~nt)}const BUF=new Uint32Array(16);let RIPEMD160$5=class extends SHA2$1{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:et,h1:tt,h2:nt,h3:at,h4:it}=this;return[et,tt,nt,at,it]}set(et,tt,nt,at,it){this.h0=et|0,this.h1=tt|0,this.h2=nt|0,this.h3=at|0,this.h4=it|0}process(et,tt){for(let vt=0;vt<16;vt++,tt+=4)BUF[vt]=et.getUint32(tt,!0);let nt=this.h0|0,at=nt,it=this.h1|0,ot=it,st=this.h2|0,ct=st,dt=this.h3|0,ht=dt,pt=this.h4|0,mt=pt;for(let vt=0;vt<5;vt++){const bt=4-vt,_t=Kl[vt],wt=Kr[vt],Et=idxL[vt],St=idxR[vt],Tt=shiftsL[vt],Ct=shiftsR[vt];for(let Nt=0;Nt<16;Nt++){const Dt=rotl$3(nt+f$3(vt,it,st,dt)+BUF[Et[Nt]]+_t,Tt[Nt])+pt|0;nt=pt,pt=dt,dt=rotl$3(st,10)|0,st=it,it=Dt}for(let Nt=0;Nt<16;Nt++){const Dt=rotl$3(at+f$3(bt,ot,ct,ht)+BUF[St[Nt]]+wt,Ct[Nt])+mt|0;at=mt,mt=ht,ht=rotl$3(ct,10)|0,ct=ot,ot=Dt}}this.set(this.h1+st+ht|0,this.h2+dt+mt|0,this.h3+pt+at|0,this.h4+nt+ot|0,this.h0+it+ct|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};const ripemd160$2=wrapConstructor$1(()=>new RIPEMD160$5);let locked$2=!1;const _ripemd160=function(_e){return ripemd160$2(_e)};let __ripemd160=_ripemd160;function ripemd160$1(_e){const et=getBytes(_e,"data");return hexlify$1(__ripemd160(et))}ripemd160$1._=_ripemd160;ripemd160$1.lock=function(){locked$2=!0};ripemd160$1.register=function(_e){if(locked$2)throw new TypeError("ripemd160 is locked");__ripemd160=_e};Object.freeze(ripemd160$1);let locked$1=!1;const _pbkdf2=function(_e,et,tt,nt,at){return pbkdf2Sync(_e,et,tt,nt,at)};let __pbkdf2=_pbkdf2;function pbkdf2$1(_e,et,tt,nt,at){const it=getBytes(_e,"password"),ot=getBytes(et,"salt");return hexlify$1(__pbkdf2(it,ot,tt,nt,at))}pbkdf2$1._=_pbkdf2;pbkdf2$1.lock=function(){locked$1=!0};pbkdf2$1.register=function(_e){if(locked$1)throw new Error("pbkdf2 is locked");__pbkdf2=_e};Object.freeze(pbkdf2$1);let locked=!1;const _randomBytes=function(_e){return new Uint8Array(randomBytes$4(_e))};let __randomBytes=_randomBytes;function randomBytes$3(_e){return __randomBytes(_e)}randomBytes$3._=_randomBytes;randomBytes$3.lock=function(){locked=!0};randomBytes$3.register=function(_e){if(locked)throw new Error("randomBytes is locked");__randomBytes=_e};Object.freeze(randomBytes$3);const rotl$2=(_e,et)=>_e<<et|_e>>>32-et;function XorAndSalsa(_e,et,tt,nt,at,it){let ot=_e[et++]^tt[nt++],st=_e[et++]^tt[nt++],ct=_e[et++]^tt[nt++],dt=_e[et++]^tt[nt++],ht=_e[et++]^tt[nt++],pt=_e[et++]^tt[nt++],mt=_e[et++]^tt[nt++],vt=_e[et++]^tt[nt++],bt=_e[et++]^tt[nt++],_t=_e[et++]^tt[nt++],wt=_e[et++]^tt[nt++],Et=_e[et++]^tt[nt++],St=_e[et++]^tt[nt++],Tt=_e[et++]^tt[nt++],Ct=_e[et++]^tt[nt++],Nt=_e[et++]^tt[nt++],Dt=ot,kt=st,Ft=ct,jt=dt,Gt=ht,Rt=pt,yt=mt,$t=vt,xt=bt,At=_t,Mt=wt,It=Et,Lt=St,Ot=Tt,gt=Ct,Pt=Nt;for(let Bt=0;Bt<8;Bt+=2)Gt^=rotl$2(Dt+Lt|0,7),xt^=rotl$2(Gt+Dt|0,9),Lt^=rotl$2(xt+Gt|0,13),Dt^=rotl$2(Lt+xt|0,18),At^=rotl$2(Rt+kt|0,7),Ot^=rotl$2(At+Rt|0,9),kt^=rotl$2(Ot+At|0,13),Rt^=rotl$2(kt+Ot|0,18),gt^=rotl$2(Mt+yt|0,7),Ft^=rotl$2(gt+Mt|0,9),yt^=rotl$2(Ft+gt|0,13),Mt^=rotl$2(yt+Ft|0,18),jt^=rotl$2(Pt+It|0,7),$t^=rotl$2(jt+Pt|0,9),It^=rotl$2($t+jt|0,13),Pt^=rotl$2(It+$t|0,18),kt^=rotl$2(Dt+jt|0,7),Ft^=rotl$2(kt+Dt|0,9),jt^=rotl$2(Ft+kt|0,13),Dt^=rotl$2(jt+Ft|0,18),yt^=rotl$2(Rt+Gt|0,7),$t^=rotl$2(yt+Rt|0,9),Gt^=rotl$2($t+yt|0,13),Rt^=rotl$2(Gt+$t|0,18),It^=rotl$2(Mt+At|0,7),xt^=rotl$2(It+Mt|0,9),At^=rotl$2(xt+It|0,13),Mt^=rotl$2(At+xt|0,18),Lt^=rotl$2(Pt+gt|0,7),Ot^=rotl$2(Lt+Pt|0,9),gt^=rotl$2(Ot+Lt|0,13),Pt^=rotl$2(gt+Ot|0,18);at[it++]=ot+Dt|0,at[it++]=st+kt|0,at[it++]=ct+Ft|0,at[it++]=dt+jt|0,at[it++]=ht+Gt|0,at[it++]=pt+Rt|0,at[it++]=mt+yt|0,at[it++]=vt+$t|0,at[it++]=bt+xt|0,at[it++]=_t+At|0,at[it++]=wt+Mt|0,at[it++]=Et+It|0,at[it++]=St+Lt|0,at[it++]=Tt+Ot|0,at[it++]=Ct+gt|0,at[it++]=Nt+Pt|0}function BlockMix(_e,et,tt,nt,at){let it=nt+0,ot=nt+16*at;for(let st=0;st<16;st++)tt[ot+st]=_e[et+(2*at-1)*16+st];for(let st=0;st<at;st++,it+=16,et+=16)XorAndSalsa(tt,ot,_e,et,tt,it),st>0&&(ot+=16),XorAndSalsa(tt,it,_e,et+=16,tt,ot)}function scryptInit(_e,et,tt){const nt=checkOpts({dkLen:32,asyncTick:10,maxmem:1073742848},tt),{N:at,r:it,p:ot,dkLen:st,asyncTick:ct,maxmem:dt,onProgress:ht}=nt;if(number$4(at),number$4(it),number$4(ot),number$4(st),number$4(ct),number$4(dt),ht!==void 0&&typeof ht!="function")throw new Error("progressCb should be function");const pt=128*it,mt=pt/4;if(at<=1||at&at-1||at>=2**(pt/8)||at>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(ot<0||ot>(2**32-1)*32/pt)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(st<0||st>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const vt=pt*(at+ot);if(vt>dt)throw new Error(`Scrypt: parameters too large, ${vt} (128 * r * (N + p)) > ${dt} (maxmem)`);const bt=pbkdf2$2(sha256$5,_e,et,{c:1,dkLen:pt*ot}),_t=u32(bt),wt=u32(new Uint8Array(pt*at)),Et=u32(new Uint8Array(pt));let St=()=>{};if(ht){const Tt=2*at*ot,Ct=Math.max(Math.floor(Tt/1e4),1);let Nt=0;St=()=>{Nt++,ht&&(!(Nt%Ct)||Nt===Tt)&&ht(Nt/Tt)}}return{N:at,r:it,p:ot,dkLen:st,blockSize32:mt,V:wt,B32:_t,B:bt,tmp:Et,blockMixCb:St,asyncTick:ct}}function scryptOutput(_e,et,tt,nt,at){const it=pbkdf2$2(sha256$5,_e,tt,{c:1,dkLen:et});return tt.fill(0),nt.fill(0),at.fill(0),it}function scrypt$1(_e,et,tt){const{N:nt,r:at,p:it,dkLen:ot,blockSize32:st,V:ct,B32:dt,B:ht,tmp:pt,blockMixCb:mt}=scryptInit(_e,et,tt);for(let vt=0;vt<it;vt++){const bt=st*vt;for(let _t=0;_t<st;_t++)ct[_t]=dt[bt+_t];for(let _t=0,wt=0;_t<nt-1;_t++)BlockMix(ct,wt,ct,wt+=st,at),mt();BlockMix(ct,(nt-1)*st,dt,bt,at),mt();for(let _t=0;_t<nt;_t++){const wt=dt[bt+st-16]%nt;for(let Et=0;Et<st;Et++)pt[Et]=dt[bt+Et]^ct[wt*st+Et];BlockMix(pt,0,dt,bt,at),mt()}}return scryptOutput(_e,ot,ht,ct,pt)}async function scryptAsync(_e,et,tt){const{N:nt,r:at,p:it,dkLen:ot,blockSize32:st,V:ct,B32:dt,B:ht,tmp:pt,blockMixCb:mt,asyncTick:vt}=scryptInit(_e,et,tt);for(let bt=0;bt<it;bt++){const _t=st*bt;for(let Et=0;Et<st;Et++)ct[Et]=dt[_t+Et];let wt=0;await asyncLoop(nt-1,vt,()=>{BlockMix(ct,wt,ct,wt+=st,at),mt()}),BlockMix(ct,(nt-1)*st,dt,_t,at),mt(),await asyncLoop(nt,vt,()=>{const Et=dt[_t+st-16]%nt;for(let St=0;St<st;St++)pt[St]=dt[_t+St]^ct[Et*st+St];BlockMix(pt,0,dt,_t,at),mt()})}return scryptOutput(_e,ot,ht,ct,pt)}let lockedSync=!1,lockedAsync=!1;const _scryptAsync=async function(_e,et,tt,nt,at,it,ot){return await scryptAsync(_e,et,{N:tt,r:nt,p:at,dkLen:it,onProgress:ot})},_scryptSync=function(_e,et,tt,nt,at,it){return scrypt$1(_e,et,{N:tt,r:nt,p:at,dkLen:it})};let __scryptAsync=_scryptAsync,__scryptSync=_scryptSync;async function scrypt(_e,et,tt,nt,at,it,ot){const st=getBytes(_e,"passwd"),ct=getBytes(et,"salt");return hexlify$1(await __scryptAsync(st,ct,tt,nt,at,it,ot))}scrypt._=_scryptAsync;scrypt.lock=function(){lockedAsync=!0};scrypt.register=function(_e){if(lockedAsync)throw new Error("scrypt is locked");__scryptAsync=_e};Object.freeze(scrypt);function scryptSync(_e,et,tt,nt,at,it){const ot=getBytes(_e,"passwd"),st=getBytes(et,"salt");return hexlify$1(__scryptSync(ot,st,tt,nt,at,it))}scryptSync._=_scryptSync;scryptSync.lock=function(){lockedSync=!0};scryptSync.register=function(_e){if(lockedSync)throw new Error("scryptSync is locked");__scryptSync=_e};Object.freeze(scryptSync);const _sha256=function(_e){return createHash$3("sha256").update(_e).digest()};let __sha256=_sha256,locked256=!1;function sha256$4(_e){const et=getBytes(_e,"data");return hexlify$1(__sha256(et))}sha256$4._=_sha256;sha256$4.lock=function(){locked256=!0};sha256$4.register=function(_e){if(locked256)throw new Error("sha256 is locked");__sha256=_e};Object.freeze(sha256$4);Object.freeze(sha256$4);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$3=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a=_e=>_e instanceof Uint8Array,hexes=Array.from({length:256},(_e,et)=>et.toString(16).padStart(2,"0"));function bytesToHex(_e){if(!u8a(_e))throw new Error("Uint8Array expected");let et="";for(let tt=0;tt<_e.length;tt++)et+=hexes[_e[tt]];return et}function numberToHexUnpadded(_e){const et=_e.toString(16);return et.length&1?`0${et}`:et}function hexToNumber$1(_e){if(typeof _e!="string")throw new Error("hex string expected, got "+typeof _e);return BigInt(_e===""?"0":`0x${_e}`)}function hexToBytes(_e){if(typeof _e!="string")throw new Error("hex string expected, got "+typeof _e);const et=_e.length;if(et%2)throw new Error("padded hex string expected, got unpadded hex of length "+et);const tt=new Uint8Array(et/2);for(let nt=0;nt<tt.length;nt++){const at=nt*2,it=_e.slice(at,at+2),ot=Number.parseInt(it,16);if(Number.isNaN(ot)||ot<0)throw new Error("Invalid byte sequence");tt[nt]=ot}return tt}function bytesToNumberBE(_e){return hexToNumber$1(bytesToHex(_e))}function bytesToNumberLE(_e){if(!u8a(_e))throw new Error("Uint8Array expected");return hexToNumber$1(bytesToHex(Uint8Array.from(_e).reverse()))}function numberToBytesBE(_e,et){return hexToBytes(_e.toString(16).padStart(et*2,"0"))}function numberToBytesLE(_e,et){return numberToBytesBE(_e,et).reverse()}function numberToVarBytesBE(_e){return hexToBytes(numberToHexUnpadded(_e))}function ensureBytes(_e,et,tt){let nt;if(typeof et=="string")try{nt=hexToBytes(et)}catch(it){throw new Error(`${_e} must be valid hex string, got "${et}". Cause: ${it}`)}else if(u8a(et))nt=Uint8Array.from(et);else throw new Error(`${_e} must be hex string or Uint8Array`);const at=nt.length;if(typeof tt=="number"&&at!==tt)throw new Error(`${_e} expected ${tt} bytes, got ${at}`);return nt}function concatBytes(..._e){const et=new Uint8Array(_e.reduce((nt,at)=>nt+at.length,0));let tt=0;return _e.forEach(nt=>{if(!u8a(nt))throw new Error("Uint8Array expected");et.set(nt,tt),tt+=nt.length}),et}function equalBytes(_e,et){if(_e.length!==et.length)return!1;for(let tt=0;tt<_e.length;tt++)if(_e[tt]!==et[tt])return!1;return!0}function utf8ToBytes(_e){if(typeof _e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof _e}`);return new Uint8Array(new TextEncoder().encode(_e))}function bitLen(_e){let et;for(et=0;_e>_0n$3;_e>>=_1n$4,et+=1);return et}function bitGet(_e,et){return _e>>BigInt(et)&_1n$4}const bitSet=(_e,et,tt)=>_e|(tt?_1n$4:_0n$3)<<BigInt(et),bitMask=_e=>(_2n$2<<BigInt(_e-1))-_1n$4,u8n=_e=>new Uint8Array(_e),u8fr=_e=>Uint8Array.from(_e);function createHmacDrbg(_e,et,tt){if(typeof _e!="number"||_e<2)throw new Error("hashLen must be a number");if(typeof et!="number"||et<2)throw new Error("qByteLen must be a number");if(typeof tt!="function")throw new Error("hmacFn must be a function");let nt=u8n(_e),at=u8n(_e),it=0;const ot=()=>{nt.fill(1),at.fill(0),it=0},st=(...pt)=>tt(at,nt,...pt),ct=(pt=u8n())=>{at=st(u8fr([0]),pt),nt=st(),pt.length!==0&&(at=st(u8fr([1]),pt),nt=st())},dt=()=>{if(it++>=1e3)throw new Error("drbg: tried 1000 values");let pt=0;const mt=[];for(;pt<et;){nt=st();const vt=nt.slice();mt.push(vt),pt+=nt.length}return concatBytes(...mt)};return(pt,mt)=>{ot(),ct(pt);let vt;for(;!(vt=mt(dt()));)ct();return ot(),vt}}const validatorFns={bigint:_e=>typeof _e=="bigint",function:_e=>typeof _e=="function",boolean:_e=>typeof _e=="boolean",string:_e=>typeof _e=="string",stringOrUint8Array:_e=>typeof _e=="string"||_e instanceof Uint8Array,isSafeInteger:_e=>Number.isSafeInteger(_e),array:_e=>Array.isArray(_e),field:(_e,et)=>et.Fp.isValid(_e),hash:_e=>typeof _e=="function"&&Number.isSafeInteger(_e.outputLen)};function validateObject(_e,et,tt={}){const nt=(at,it,ot)=>{const st=validatorFns[it];if(typeof st!="function")throw new Error(`Invalid validator "${it}", expected function`);const ct=_e[at];if(!(ot&&ct===void 0)&&!st(ct,_e))throw new Error(`Invalid param ${String(at)}=${ct} (${typeof ct}), expected ${it}`)};for(const[at,it]of Object.entries(et))nt(at,it,!1);for(const[at,it]of Object.entries(tt))nt(at,it,!0);return _e}const ut=Object.freeze(Object.defineProperty({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex,bytesToNumberBE,bytesToNumberLE,concatBytes,createHmacDrbg,ensureBytes,equalBytes,hexToBytes,hexToNumber:hexToNumber$1,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes,validateObject},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$2=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);BigInt(9);BigInt(16);function mod$3(_e,et){const tt=_e%et;return tt>=_0n$2?tt:et+tt}function pow$1(_e,et,tt){if(tt<=_0n$2||et<_0n$2)throw new Error("Expected power/modulo > 0");if(tt===_1n$3)return _0n$2;let nt=_1n$3;for(;et>_0n$2;)et&_1n$3&&(nt=nt*_e%tt),_e=_e*_e%tt,et>>=_1n$3;return nt}function pow2(_e,et,tt){let nt=_e;for(;et-- >_0n$2;)nt*=nt,nt%=tt;return nt}function invert$2(_e,et){if(_e===_0n$2||et<=_0n$2)throw new Error(`invert: expected positive integers, got n=${_e} mod=${et}`);let tt=mod$3(_e,et),nt=et,at=_0n$2,it=_1n$3;for(;tt!==_0n$2;){const st=nt/tt,ct=nt%tt,dt=at-it*st;nt=tt,tt=ct,at=it,it=dt}if(nt!==_1n$3)throw new Error("invert: does not exist");return mod$3(at,et)}function tonelliShanks(_e){const et=(_e-_1n$3)/_2n$1;let tt,nt,at;for(tt=_e-_1n$3,nt=0;tt%_2n$1===_0n$2;tt/=_2n$1,nt++);for(at=_2n$1;at<_e&&pow$1(at,et,_e)!==_e-_1n$3;at++);if(nt===1){const ot=(_e+_1n$3)/_4n;return function(ct,dt){const ht=ct.pow(dt,ot);if(!ct.eql(ct.sqr(ht),dt))throw new Error("Cannot find square root");return ht}}const it=(tt+_1n$3)/_2n$1;return function(st,ct){if(st.pow(ct,et)===st.neg(st.ONE))throw new Error("Cannot find square root");let dt=nt,ht=st.pow(st.mul(st.ONE,at),tt),pt=st.pow(ct,it),mt=st.pow(ct,tt);for(;!st.eql(mt,st.ONE);){if(st.eql(mt,st.ZERO))return st.ZERO;let vt=1;for(let _t=st.sqr(mt);vt<dt&&!st.eql(_t,st.ONE);vt++)_t=st.sqr(_t);const bt=st.pow(ht,_1n$3<<BigInt(dt-vt-1));ht=st.sqr(bt),pt=st.mul(pt,bt),mt=st.mul(mt,ht),dt=vt}return pt}}function FpSqrt(_e){if(_e%_4n===_3n$1){const et=(_e+_1n$3)/_4n;return function(nt,at){const it=nt.pow(at,et);if(!nt.eql(nt.sqr(it),at))throw new Error("Cannot find square root");return it}}if(_e%_8n===_5n){const et=(_e-_5n)/_8n;return function(nt,at){const it=nt.mul(at,_2n$1),ot=nt.pow(it,et),st=nt.mul(at,ot),ct=nt.mul(nt.mul(st,_2n$1),ot),dt=nt.mul(st,nt.sub(ct,nt.ONE));if(!nt.eql(nt.sqr(dt),at))throw new Error("Cannot find square root");return dt}}return tonelliShanks(_e)}const FIELD_FIELDS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function validateField(_e){const et={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},tt=FIELD_FIELDS.reduce((nt,at)=>(nt[at]="function",nt),et);return validateObject(_e,tt)}function FpPow(_e,et,tt){if(tt<_0n$2)throw new Error("Expected power > 0");if(tt===_0n$2)return _e.ONE;if(tt===_1n$3)return et;let nt=_e.ONE,at=et;for(;tt>_0n$2;)tt&_1n$3&&(nt=_e.mul(nt,at)),at=_e.sqr(at),tt>>=_1n$3;return nt}function FpInvertBatch(_e,et){const tt=new Array(et.length),nt=et.reduce((it,ot,st)=>_e.is0(ot)?it:(tt[st]=it,_e.mul(it,ot)),_e.ONE),at=_e.inv(nt);return et.reduceRight((it,ot,st)=>_e.is0(ot)?it:(tt[st]=_e.mul(it,tt[st]),_e.mul(it,ot)),at),tt}function nLength(_e,et){const tt=et!==void 0?et:_e.toString(2).length,nt=Math.ceil(tt/8);return{nBitLength:tt,nByteLength:nt}}function Field$3(_e,et,tt=!1,nt={}){if(_e<=_0n$2)throw new Error(`Expected Field ORDER > 0, got ${_e}`);const{nBitLength:at,nByteLength:it}=nLength(_e,et);if(it>2048)throw new Error("Field lengths over 2048 bytes are not supported");const ot=FpSqrt(_e),st=Object.freeze({ORDER:_e,BITS:at,BYTES:it,MASK:bitMask(at),ZERO:_0n$2,ONE:_1n$3,create:ct=>mod$3(ct,_e),isValid:ct=>{if(typeof ct!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof ct}`);return _0n$2<=ct&&ct<_e},is0:ct=>ct===_0n$2,isOdd:ct=>(ct&_1n$3)===_1n$3,neg:ct=>mod$3(-ct,_e),eql:(ct,dt)=>ct===dt,sqr:ct=>mod$3(ct*ct,_e),add:(ct,dt)=>mod$3(ct+dt,_e),sub:(ct,dt)=>mod$3(ct-dt,_e),mul:(ct,dt)=>mod$3(ct*dt,_e),pow:(ct,dt)=>FpPow(st,ct,dt),div:(ct,dt)=>mod$3(ct*invert$2(dt,_e),_e),sqrN:ct=>ct*ct,addN:(ct,dt)=>ct+dt,subN:(ct,dt)=>ct-dt,mulN:(ct,dt)=>ct*dt,inv:ct=>invert$2(ct,_e),sqrt:nt.sqrt||(ct=>ot(st,ct)),invertBatch:ct=>FpInvertBatch(st,ct),cmov:(ct,dt,ht)=>ht?dt:ct,toBytes:ct=>tt?numberToBytesLE(ct,it):numberToBytesBE(ct,it),fromBytes:ct=>{if(ct.length!==it)throw new Error(`Fp.fromBytes: expected ${it}, got ${ct.length}`);return tt?bytesToNumberLE(ct):bytesToNumberBE(ct)}});return Object.freeze(st)}function getFieldBytesLength(_e){if(typeof _e!="bigint")throw new Error("field order must be bigint");const et=_e.toString(2).length;return Math.ceil(et/8)}function getMinHashLength(_e){const et=getFieldBytesLength(_e);return et+Math.ceil(et/2)}function mapHashToField(_e,et,tt=!1){const nt=_e.length,at=getFieldBytesLength(et),it=getMinHashLength(et);if(nt<16||nt<it||nt>1024)throw new Error(`expected ${it}-1024 bytes of input, got ${nt}`);const ot=tt?bytesToNumberBE(_e):bytesToNumberLE(_e),st=mod$3(ot,et-_1n$3)+_1n$3;return tt?numberToBytesLE(st,at):numberToBytesBE(st,at)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const _0n$1=BigInt(0),_1n$2=BigInt(1);function wNAF(_e,et){const tt=(at,it)=>{const ot=it.negate();return at?ot:it},nt=at=>{const it=Math.ceil(et/at)+1,ot=2**(at-1);return{windows:it,windowSize:ot}};return{constTimeNegate:tt,unsafeLadder(at,it){let ot=_e.ZERO,st=at;for(;it>_0n$1;)it&_1n$2&&(ot=ot.add(st)),st=st.double(),it>>=_1n$2;return ot},precomputeWindow(at,it){const{windows:ot,windowSize:st}=nt(it),ct=[];let dt=at,ht=dt;for(let pt=0;pt<ot;pt++){ht=dt,ct.push(ht);for(let mt=1;mt<st;mt++)ht=ht.add(dt),ct.push(ht);dt=ht.double()}return ct},wNAF(at,it,ot){const{windows:st,windowSize:ct}=nt(at);let dt=_e.ZERO,ht=_e.BASE;const pt=BigInt(2**at-1),mt=2**at,vt=BigInt(at);for(let bt=0;bt<st;bt++){const _t=bt*ct;let wt=Number(ot&pt);ot>>=vt,wt>ct&&(wt-=mt,ot+=_1n$2);const Et=_t,St=_t+Math.abs(wt)-1,Tt=bt%2!==0,Ct=wt<0;wt===0?ht=ht.add(tt(Tt,it[Et])):dt=dt.add(tt(Ct,it[St]))}return{p:dt,f:ht}},wNAFCached(at,it,ot,st){const ct=at._WINDOW_SIZE||1;let dt=it.get(at);return dt||(dt=this.precomputeWindow(at,ct),ct!==1&&it.set(at,st(dt))),this.wNAF(ct,dt,ot)}}}function validateBasic(_e){return validateField(_e.Fp),validateObject(_e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(_e.n,_e.nBitLength),..._e,p:_e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function validatePointOpts(_e){const et=validateBasic(_e);validateObject(et,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:tt,Fp:nt,a:at}=et;if(tt){if(!nt.eql(at,nt.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof tt!="object"||typeof tt.beta!="bigint"||typeof tt.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...et})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(et=""){super(et)}},_parseInt(_e){const{Err:et}=DER;if(_e.length<2||_e[0]!==2)throw new et("Invalid signature integer tag");const tt=_e[1],nt=_e.subarray(2,tt+2);if(!tt||nt.length!==tt)throw new et("Invalid signature integer: wrong length");if(nt[0]&128)throw new et("Invalid signature integer: negative");if(nt[0]===0&&!(nt[1]&128))throw new et("Invalid signature integer: unnecessary leading zero");return{d:b2n(nt),l:_e.subarray(tt+2)}},toSig(_e){const{Err:et}=DER,tt=typeof _e=="string"?h2b(_e):_e;if(!(tt instanceof Uint8Array))throw new Error("ui8a expected");let nt=tt.length;if(nt<2||tt[0]!=48)throw new et("Invalid signature tag");if(tt[1]!==nt-2)throw new et("Invalid signature: incorrect length");const{d:at,l:it}=DER._parseInt(tt.subarray(2)),{d:ot,l:st}=DER._parseInt(it);if(st.length)throw new et("Invalid signature: left bytes after parsing");return{r:at,s:ot}},hexFromSig(_e){const et=dt=>Number.parseInt(dt[0],16)&8?"00"+dt:dt,tt=dt=>{const ht=dt.toString(16);return ht.length&1?`0${ht}`:ht},nt=et(tt(_e.s)),at=et(tt(_e.r)),it=nt.length/2,ot=at.length/2,st=tt(it),ct=tt(ot);return`30${tt(ot+it+4)}02${ct}${at}02${st}${nt}`}},_0n=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);BigInt(4);function weierstrassPoints(_e){const et=validatePointOpts(_e),{Fp:tt}=et,nt=et.toBytes||((bt,_t,wt)=>{const Et=_t.toAffine();return concatBytes(Uint8Array.from([4]),tt.toBytes(Et.x),tt.toBytes(Et.y))}),at=et.fromBytes||(bt=>{const _t=bt.subarray(1),wt=tt.fromBytes(_t.subarray(0,tt.BYTES)),Et=tt.fromBytes(_t.subarray(tt.BYTES,2*tt.BYTES));return{x:wt,y:Et}});function it(bt){const{a:_t,b:wt}=et,Et=tt.sqr(bt),St=tt.mul(Et,bt);return tt.add(tt.add(St,tt.mul(bt,_t)),wt)}if(!tt.eql(tt.sqr(et.Gy),it(et.Gx)))throw new Error("bad generator point: equation left != right");function ot(bt){return typeof bt=="bigint"&&_0n<bt&&bt<et.n}function st(bt){if(!ot(bt))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function ct(bt){const{allowedPrivateKeyLengths:_t,nByteLength:wt,wrapPrivateKey:Et,n:St}=et;if(_t&&typeof bt!="bigint"){if(bt instanceof Uint8Array&&(bt=bytesToHex(bt)),typeof bt!="string"||!_t.includes(bt.length))throw new Error("Invalid key");bt=bt.padStart(wt*2,"0")}let Tt;try{Tt=typeof bt=="bigint"?bt:bytesToNumberBE(ensureBytes("private key",bt,wt))}catch{throw new Error(`private key must be ${wt} bytes, hex or bigint, not ${typeof bt}`)}return Et&&(Tt=mod$3(Tt,St)),st(Tt),Tt}const dt=new Map;function ht(bt){if(!(bt instanceof pt))throw new Error("ProjectivePoint expected")}class pt{constructor(_t,wt,Et){if(this.px=_t,this.py=wt,this.pz=Et,_t==null||!tt.isValid(_t))throw new Error("x required");if(wt==null||!tt.isValid(wt))throw new Error("y required");if(Et==null||!tt.isValid(Et))throw new Error("z required")}static fromAffine(_t){const{x:wt,y:Et}=_t||{};if(!_t||!tt.isValid(wt)||!tt.isValid(Et))throw new Error("invalid affine point");if(_t instanceof pt)throw new Error("projective point not allowed");const St=Tt=>tt.eql(Tt,tt.ZERO);return St(wt)&&St(Et)?pt.ZERO:new pt(wt,Et,tt.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(_t){const wt=tt.invertBatch(_t.map(Et=>Et.pz));return _t.map((Et,St)=>Et.toAffine(wt[St])).map(pt.fromAffine)}static fromHex(_t){const wt=pt.fromAffine(at(ensureBytes("pointHex",_t)));return wt.assertValidity(),wt}static fromPrivateKey(_t){return pt.BASE.multiply(ct(_t))}_setWindowSize(_t){this._WINDOW_SIZE=_t,dt.delete(this)}assertValidity(){if(this.is0()){if(et.allowInfinityPoint&&!tt.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:_t,y:wt}=this.toAffine();if(!tt.isValid(_t)||!tt.isValid(wt))throw new Error("bad point: x or y not FE");const Et=tt.sqr(wt),St=it(_t);if(!tt.eql(Et,St))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:_t}=this.toAffine();if(tt.isOdd)return!tt.isOdd(_t);throw new Error("Field doesn't support isOdd")}equals(_t){ht(_t);const{px:wt,py:Et,pz:St}=this,{px:Tt,py:Ct,pz:Nt}=_t,Dt=tt.eql(tt.mul(wt,Nt),tt.mul(Tt,St)),kt=tt.eql(tt.mul(Et,Nt),tt.mul(Ct,St));return Dt&&kt}negate(){return new pt(this.px,tt.neg(this.py),this.pz)}double(){const{a:_t,b:wt}=et,Et=tt.mul(wt,_3n),{px:St,py:Tt,pz:Ct}=this;let Nt=tt.ZERO,Dt=tt.ZERO,kt=tt.ZERO,Ft=tt.mul(St,St),jt=tt.mul(Tt,Tt),Gt=tt.mul(Ct,Ct),Rt=tt.mul(St,Tt);return Rt=tt.add(Rt,Rt),kt=tt.mul(St,Ct),kt=tt.add(kt,kt),Nt=tt.mul(_t,kt),Dt=tt.mul(Et,Gt),Dt=tt.add(Nt,Dt),Nt=tt.sub(jt,Dt),Dt=tt.add(jt,Dt),Dt=tt.mul(Nt,Dt),Nt=tt.mul(Rt,Nt),kt=tt.mul(Et,kt),Gt=tt.mul(_t,Gt),Rt=tt.sub(Ft,Gt),Rt=tt.mul(_t,Rt),Rt=tt.add(Rt,kt),kt=tt.add(Ft,Ft),Ft=tt.add(kt,Ft),Ft=tt.add(Ft,Gt),Ft=tt.mul(Ft,Rt),Dt=tt.add(Dt,Ft),Gt=tt.mul(Tt,Ct),Gt=tt.add(Gt,Gt),Ft=tt.mul(Gt,Rt),Nt=tt.sub(Nt,Ft),kt=tt.mul(Gt,jt),kt=tt.add(kt,kt),kt=tt.add(kt,kt),new pt(Nt,Dt,kt)}add(_t){ht(_t);const{px:wt,py:Et,pz:St}=this,{px:Tt,py:Ct,pz:Nt}=_t;let Dt=tt.ZERO,kt=tt.ZERO,Ft=tt.ZERO;const jt=et.a,Gt=tt.mul(et.b,_3n);let Rt=tt.mul(wt,Tt),yt=tt.mul(Et,Ct),$t=tt.mul(St,Nt),xt=tt.add(wt,Et),At=tt.add(Tt,Ct);xt=tt.mul(xt,At),At=tt.add(Rt,yt),xt=tt.sub(xt,At),At=tt.add(wt,St);let Mt=tt.add(Tt,Nt);return At=tt.mul(At,Mt),Mt=tt.add(Rt,$t),At=tt.sub(At,Mt),Mt=tt.add(Et,St),Dt=tt.add(Ct,Nt),Mt=tt.mul(Mt,Dt),Dt=tt.add(yt,$t),Mt=tt.sub(Mt,Dt),Ft=tt.mul(jt,At),Dt=tt.mul(Gt,$t),Ft=tt.add(Dt,Ft),Dt=tt.sub(yt,Ft),Ft=tt.add(yt,Ft),kt=tt.mul(Dt,Ft),yt=tt.add(Rt,Rt),yt=tt.add(yt,Rt),$t=tt.mul(jt,$t),At=tt.mul(Gt,At),yt=tt.add(yt,$t),$t=tt.sub(Rt,$t),$t=tt.mul(jt,$t),At=tt.add(At,$t),Rt=tt.mul(yt,At),kt=tt.add(kt,Rt),Rt=tt.mul(Mt,At),Dt=tt.mul(xt,Dt),Dt=tt.sub(Dt,Rt),Rt=tt.mul(xt,yt),Ft=tt.mul(Mt,Ft),Ft=tt.add(Ft,Rt),new pt(Dt,kt,Ft)}subtract(_t){return this.add(_t.negate())}is0(){return this.equals(pt.ZERO)}wNAF(_t){return vt.wNAFCached(this,dt,_t,wt=>{const Et=tt.invertBatch(wt.map(St=>St.pz));return wt.map((St,Tt)=>St.toAffine(Et[Tt])).map(pt.fromAffine)})}multiplyUnsafe(_t){const wt=pt.ZERO;if(_t===_0n)return wt;if(st(_t),_t===_1n$1)return this;const{endo:Et}=et;if(!Et)return vt.unsafeLadder(this,_t);let{k1neg:St,k1:Tt,k2neg:Ct,k2:Nt}=Et.splitScalar(_t),Dt=wt,kt=wt,Ft=this;for(;Tt>_0n||Nt>_0n;)Tt&_1n$1&&(Dt=Dt.add(Ft)),Nt&_1n$1&&(kt=kt.add(Ft)),Ft=Ft.double(),Tt>>=_1n$1,Nt>>=_1n$1;return St&&(Dt=Dt.negate()),Ct&&(kt=kt.negate()),kt=new pt(tt.mul(kt.px,Et.beta),kt.py,kt.pz),Dt.add(kt)}multiply(_t){st(_t);let wt=_t,Et,St;const{endo:Tt}=et;if(Tt){const{k1neg:Ct,k1:Nt,k2neg:Dt,k2:kt}=Tt.splitScalar(wt);let{p:Ft,f:jt}=this.wNAF(Nt),{p:Gt,f:Rt}=this.wNAF(kt);Ft=vt.constTimeNegate(Ct,Ft),Gt=vt.constTimeNegate(Dt,Gt),Gt=new pt(tt.mul(Gt.px,Tt.beta),Gt.py,Gt.pz),Et=Ft.add(Gt),St=jt.add(Rt)}else{const{p:Ct,f:Nt}=this.wNAF(wt);Et=Ct,St=Nt}return pt.normalizeZ([Et,St])[0]}multiplyAndAddUnsafe(_t,wt,Et){const St=pt.BASE,Tt=(Nt,Dt)=>Dt===_0n||Dt===_1n$1||!Nt.equals(St)?Nt.multiplyUnsafe(Dt):Nt.multiply(Dt),Ct=Tt(this,wt).add(Tt(_t,Et));return Ct.is0()?void 0:Ct}toAffine(_t){const{px:wt,py:Et,pz:St}=this,Tt=this.is0();_t==null&&(_t=Tt?tt.ONE:tt.inv(St));const Ct=tt.mul(wt,_t),Nt=tt.mul(Et,_t),Dt=tt.mul(St,_t);if(Tt)return{x:tt.ZERO,y:tt.ZERO};if(!tt.eql(Dt,tt.ONE))throw new Error("invZ was invalid");return{x:Ct,y:Nt}}isTorsionFree(){const{h:_t,isTorsionFree:wt}=et;if(_t===_1n$1)return!0;if(wt)return wt(pt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:_t,clearCofactor:wt}=et;return _t===_1n$1?this:wt?wt(pt,this):this.multiplyUnsafe(et.h)}toRawBytes(_t=!0){return this.assertValidity(),nt(pt,this,_t)}toHex(_t=!0){return bytesToHex(this.toRawBytes(_t))}}pt.BASE=new pt(et.Gx,et.Gy,tt.ONE),pt.ZERO=new pt(tt.ZERO,tt.ONE,tt.ZERO);const mt=et.nBitLength,vt=wNAF(pt,et.endo?Math.ceil(mt/2):mt);return{CURVE:et,ProjectivePoint:pt,normPrivateKeyToScalar:ct,weierstrassEquation:it,isWithinCurveOrder:ot}}function validateOpts(_e){const et=validateBasic(_e);return validateObject(et,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...et})}function weierstrass(_e){const et=validateOpts(_e),{Fp:tt,n:nt}=et,at=tt.BYTES+1,it=2*tt.BYTES+1;function ot(At){return _0n<At&&At<tt.ORDER}function st(At){return mod$3(At,nt)}function ct(At){return invert$2(At,nt)}const{ProjectivePoint:dt,normPrivateKeyToScalar:ht,weierstrassEquation:pt,isWithinCurveOrder:mt}=weierstrassPoints({...et,toBytes(At,Mt,It){const Lt=Mt.toAffine(),Ot=tt.toBytes(Lt.x),gt=concatBytes;return It?gt(Uint8Array.from([Mt.hasEvenY()?2:3]),Ot):gt(Uint8Array.from([4]),Ot,tt.toBytes(Lt.y))},fromBytes(At){const Mt=At.length,It=At[0],Lt=At.subarray(1);if(Mt===at&&(It===2||It===3)){const Ot=bytesToNumberBE(Lt);if(!ot(Ot))throw new Error("Point is not on curve");const gt=pt(Ot);let Pt=tt.sqrt(gt);const Bt=(Pt&_1n$1)===_1n$1;return(It&1)===1!==Bt&&(Pt=tt.neg(Pt)),{x:Ot,y:Pt}}else if(Mt===it&&It===4){const Ot=tt.fromBytes(Lt.subarray(0,tt.BYTES)),gt=tt.fromBytes(Lt.subarray(tt.BYTES,2*tt.BYTES));return{x:Ot,y:gt}}else throw new Error(`Point of length ${Mt} was invalid. Expected ${at} compressed bytes or ${it} uncompressed bytes`)}}),vt=At=>bytesToHex(numberToBytesBE(At,et.nByteLength));function bt(At){const Mt=nt>>_1n$1;return At>Mt}function _t(At){return bt(At)?st(-At):At}const wt=(At,Mt,It)=>bytesToNumberBE(At.slice(Mt,It));class Et{constructor(Mt,It,Lt){this.r=Mt,this.s=It,this.recovery=Lt,this.assertValidity()}static fromCompact(Mt){const It=et.nByteLength;return Mt=ensureBytes("compactSignature",Mt,It*2),new Et(wt(Mt,0,It),wt(Mt,It,2*It))}static fromDER(Mt){const{r:It,s:Lt}=DER.toSig(ensureBytes("DER",Mt));return new Et(It,Lt)}assertValidity(){if(!mt(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!mt(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Mt){return new Et(this.r,this.s,Mt)}recoverPublicKey(Mt){const{r:It,s:Lt,recovery:Ot}=this,gt=kt(ensureBytes("msgHash",Mt));if(Ot==null||![0,1,2,3].includes(Ot))throw new Error("recovery id invalid");const Pt=Ot===2||Ot===3?It+et.n:It;if(Pt>=tt.ORDER)throw new Error("recovery id 2 or 3 invalid");const Bt=Ot&1?"03":"02",Ut=dt.fromHex(Bt+vt(Pt)),Ht=ct(Pt),qt=st(-gt*Ht),Vt=st(Lt*Ht),zt=dt.BASE.multiplyAndAddUnsafe(Ut,qt,Vt);if(!zt)throw new Error("point at infinify");return zt.assertValidity(),zt}hasHighS(){return bt(this.s)}normalizeS(){return this.hasHighS()?new Et(this.r,st(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes(this.toCompactHex())}toCompactHex(){return vt(this.r)+vt(this.s)}}const St={isValidPrivateKey(At){try{return ht(At),!0}catch{return!1}},normPrivateKeyToScalar:ht,randomPrivateKey:()=>{const At=getMinHashLength(et.n);return mapHashToField(et.randomBytes(At),et.n)},precompute(At=8,Mt=dt.BASE){return Mt._setWindowSize(At),Mt.multiply(BigInt(3)),Mt}};function Tt(At,Mt=!0){return dt.fromPrivateKey(At).toRawBytes(Mt)}function Ct(At){const Mt=At instanceof Uint8Array,It=typeof At=="string",Lt=(Mt||It)&&At.length;return Mt?Lt===at||Lt===it:It?Lt===2*at||Lt===2*it:At instanceof dt}function Nt(At,Mt,It=!0){if(Ct(At))throw new Error("first arg must be private key");if(!Ct(Mt))throw new Error("second arg must be public key");return dt.fromHex(Mt).multiply(ht(At)).toRawBytes(It)}const Dt=et.bits2int||function(At){const Mt=bytesToNumberBE(At),It=At.length*8-et.nBitLength;return It>0?Mt>>BigInt(It):Mt},kt=et.bits2int_modN||function(At){return st(Dt(At))},Ft=bitMask(et.nBitLength);function jt(At){if(typeof At!="bigint")throw new Error("bigint expected");if(!(_0n<=At&&At<Ft))throw new Error(`bigint expected < 2^${et.nBitLength}`);return numberToBytesBE(At,et.nByteLength)}function Gt(At,Mt,It=Rt){if(["recovered","canonical"].some(Xt=>Xt in It))throw new Error("sign() legacy options not supported");const{hash:Lt,randomBytes:Ot}=et;let{lowS:gt,prehash:Pt,extraEntropy:Bt}=It;gt==null&&(gt=!0),At=ensureBytes("msgHash",At),Pt&&(At=ensureBytes("prehashed msgHash",Lt(At)));const Ut=kt(At),Ht=ht(Mt),qt=[jt(Ht),jt(Ut)];if(Bt!=null){const Xt=Bt===!0?Ot(tt.BYTES):Bt;qt.push(ensureBytes("extraEntropy",Xt))}const Vt=concatBytes(...qt),zt=Ut;function Wt(Xt){const Zt=Dt(Xt);if(!mt(Zt))return;const Qt=ct(Zt),Kt=dt.BASE.multiply(Zt).toAffine(),ar=st(Kt.x);if(ar===_0n)return;const Er=st(Qt*st(zt+ar*Ht));if(Er===_0n)return;let Sr=(Kt.x===ar?0:2)|Number(Kt.y&_1n$1),gr=Er;return gt&&bt(Er)&&(gr=_t(Er),Sr^=1),new Et(ar,gr,Sr)}return{seed:Vt,k2sig:Wt}}const Rt={lowS:et.lowS,prehash:!1},yt={lowS:et.lowS,prehash:!1};function $t(At,Mt,It=Rt){const{seed:Lt,k2sig:Ot}=Gt(At,Mt,It),gt=et;return createHmacDrbg(gt.hash.outputLen,gt.nByteLength,gt.hmac)(Lt,Ot)}dt.BASE._setWindowSize(8);function xt(At,Mt,It,Lt=yt){var Kt;const Ot=At;if(Mt=ensureBytes("msgHash",Mt),It=ensureBytes("publicKey",It),"strict"in Lt)throw new Error("options.strict was renamed to lowS");const{lowS:gt,prehash:Pt}=Lt;let Bt,Ut;try{if(typeof Ot=="string"||Ot instanceof Uint8Array)try{Bt=Et.fromDER(Ot)}catch(ar){if(!(ar instanceof DER.Err))throw ar;Bt=Et.fromCompact(Ot)}else if(typeof Ot=="object"&&typeof Ot.r=="bigint"&&typeof Ot.s=="bigint"){const{r:ar,s:Er}=Ot;Bt=new Et(ar,Er)}else throw new Error("PARSE");Ut=dt.fromHex(It)}catch(ar){if(ar.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(gt&&Bt.hasHighS())return!1;Pt&&(Mt=et.hash(Mt));const{r:Ht,s:qt}=Bt,Vt=kt(Mt),zt=ct(qt),Wt=st(Vt*zt),Xt=st(Ht*zt),Zt=(Kt=dt.BASE.multiplyAndAddUnsafe(Ut,Wt,Xt))==null?void 0:Kt.toAffine();return Zt?st(Zt.x)===Ht:!1}return{CURVE:et,getPublicKey:Tt,getSharedSecret:Nt,sign:$t,verify:xt,ProjectivePoint:dt,Signature:Et,utils:St}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function getHash(_e){return{hash:_e,hmac:(et,...tt)=>hmac$2(_e,et,concatBytes$1(...tt)),randomBytes:randomBytes$5}}function createCurve(_e,et){const tt=nt=>weierstrass({..._e,...getHash(nt)});return Object.freeze({...tt(et),create:tt})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(_e,et)=>(_e+et/_2n)/et;function sqrtMod(_e){const et=secp256k1P,tt=BigInt(3),nt=BigInt(6),at=BigInt(11),it=BigInt(22),ot=BigInt(23),st=BigInt(44),ct=BigInt(88),dt=_e*_e*_e%et,ht=dt*dt*_e%et,pt=pow2(ht,tt,et)*ht%et,mt=pow2(pt,tt,et)*ht%et,vt=pow2(mt,_2n,et)*dt%et,bt=pow2(vt,at,et)*vt%et,_t=pow2(bt,it,et)*bt%et,wt=pow2(_t,st,et)*_t%et,Et=pow2(wt,ct,et)*wt%et,St=pow2(Et,st,et)*_t%et,Tt=pow2(St,tt,et)*ht%et,Ct=pow2(Tt,ot,et)*bt%et,Nt=pow2(Ct,nt,et)*dt%et,Dt=pow2(Nt,_2n,et);if(!Fp.eql(Fp.sqr(Dt),_e))throw new Error("Cannot find square root");return Dt}const Fp=Field$3(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1$3=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:_e=>{const et=secp256k1N,tt=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),nt=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),at=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),it=tt,ot=BigInt("0x100000000000000000000000000000000"),st=divNearest(it*_e,et),ct=divNearest(-nt*_e,et);let dt=mod$3(_e-st*tt-ct*at,et),ht=mod$3(-st*nt-ct*it,et);const pt=dt>ot,mt=ht>ot;if(pt&&(dt=et-dt),mt&&(ht=et-ht),dt>ot||ht>ot)throw new Error("splitScalar: Endomorphism failed, k="+_e);return{k1neg:pt,k1:dt,k2neg:mt,k2:ht}}}},sha256$5);BigInt(0);secp256k1$3.ProjectivePoint;const ZeroAddress="0x0000000000000000000000000000000000000000",ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000",MessagePrefix=`Ethereum Signed Message:
128
128
  `,BN_0$7=BigInt(0),BN_1$2=BigInt(1),BN_2$2=BigInt(2),BN_27$1=BigInt(27),BN_28$1=BigInt(28),BN_35$1=BigInt(35),_guard$3={};function toUint256(_e){return zeroPadValue(toBeArray(_e),32)}var qu,Hu,Gu,lu,Rs;let Signature$7=(Rs=class{constructor(et,tt,nt,at){Rn(this,qu,void 0);Rn(this,Hu,void 0);Rn(this,Gu,void 0);Rn(this,lu,void 0);assertPrivate(et,_guard$3,"Signature"),Wr(this,qu,tt),Wr(this,Hu,nt),Wr(this,Gu,at),Wr(this,lu,null)}get r(){return _r(this,qu)}set r(et){assertArgument(dataLength(et)===32,"invalid r","value",et),Wr(this,qu,hexlify$1(et))}get s(){return _r(this,Hu)}set s(et){assertArgument(dataLength(et)===32,"invalid s","value",et);const tt=hexlify$1(et);assertArgument(parseInt(tt.substring(0,3))<8,"non-canonical s","value",tt),Wr(this,Hu,tt)}get v(){return _r(this,Gu)}set v(et){const tt=getNumber(et,"value");assertArgument(tt===27||tt===28,"invalid v","v",et),Wr(this,Gu,tt)}get networkV(){return _r(this,lu)}get legacyChainId(){const et=this.networkV;return et==null?null:Rs.getChainId(et)}get yParity(){return this.v===27?0:1}get yParityAndS(){const et=getBytes(this.s);return this.yParity&&(et[0]|=128),hexlify$1(et)}get compactSerialized(){return concat$2([this.r,this.yParityAndS])}get serialized(){return concat$2([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const et=new Rs(_guard$3,this.r,this.s,this.v);return this.networkV&&Wr(et,lu,this.networkV),et}toJSON(){const et=this.networkV;return{_type:"signature",networkV:et!=null?et.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(et){const tt=getBigInt(et,"v");return tt==BN_27$1||tt==BN_28$1?BN_0$7:(assertArgument(tt>=BN_35$1,"invalid EIP-155 v","v",et),(tt-BN_35$1)/BN_2$2)}static getChainIdV(et,tt){return getBigInt(et)*BN_2$2+BigInt(35+tt-27)}static getNormalizedV(et){const tt=getBigInt(et);return tt===BN_0$7||tt===BN_27$1?27:tt===BN_1$2||tt===BN_28$1?28:(assertArgument(tt>=BN_35$1,"invalid v","v",et),tt&BN_1$2?27:28)}static from(et){function tt(dt,ht){assertArgument(dt,ht,"signature",et)}if(et==null)return new Rs(_guard$3,ZeroHash,ZeroHash,27);if(typeof et=="string"){const dt=getBytes(et,"signature");if(dt.length===64){const ht=hexlify$1(dt.slice(0,32)),pt=dt.slice(32,64),mt=pt[0]&128?28:27;return pt[0]&=127,new Rs(_guard$3,ht,hexlify$1(pt),mt)}if(dt.length===65){const ht=hexlify$1(dt.slice(0,32)),pt=dt.slice(32,64);tt((pt[0]&128)===0,"non-canonical s");const mt=Rs.getNormalizedV(dt[64]);return new Rs(_guard$3,ht,hexlify$1(pt),mt)}tt(!1,"invalid raw signature length")}if(et instanceof Rs)return et.clone();const nt=et.r;tt(nt!=null,"missing r");const at=toUint256(nt),it=function(dt,ht){if(dt!=null)return toUint256(dt);if(ht!=null){tt(isHexString$1(ht,32),"invalid yParityAndS");const pt=getBytes(ht);return pt[0]&=127,hexlify$1(pt)}tt(!1,"missing s")}(et.s,et.yParityAndS);tt((getBytes(it)[0]&128)==0,"non-canonical s");const{networkV:ot,v:st}=function(dt,ht,pt){if(dt!=null){const mt=getBigInt(dt);return{networkV:mt>=BN_35$1?mt:void 0,v:Rs.getNormalizedV(mt)}}if(ht!=null)return tt(isHexString$1(ht,32),"invalid yParityAndS"),{v:getBytes(ht)[0]&128?28:27};if(pt!=null){switch(getNumber(pt,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}tt(!1,"invalid yParity")}tt(!1,"missing v")}(et.v,et.yParityAndS,et.yParity),ct=new Rs(_guard$3,at,it,st);return ot&&Wr(ct,lu,ot),tt(et.yParity==null||getNumber(et.yParity,"sig.yParity")===ct.yParity,"yParity mismatch"),tt(et.yParityAndS==null||et.yParityAndS===ct.yParityAndS,"yParityAndS mismatch"),ct}},qu=new WeakMap,Hu=new WeakMap,Gu=new WeakMap,lu=new WeakMap,Rs);var pl,wl;let SigningKey$1=(wl=class{constructor(et){Rn(this,pl,void 0);assertArgument(dataLength(et)===32,"invalid private key","privateKey","[REDACTED]"),Wr(this,pl,hexlify$1(et))}get privateKey(){return _r(this,pl)}get publicKey(){return wl.computePublicKey(_r(this,pl))}get compressedPublicKey(){return wl.computePublicKey(_r(this,pl),!0)}sign(et){assertArgument(dataLength(et)===32,"invalid digest length","digest",et);const tt=secp256k1$3.sign(getBytesCopy(et),getBytesCopy(_r(this,pl)),{lowS:!0});return Signature$7.from({r:toBeHex(tt.r,32),s:toBeHex(tt.s,32),v:tt.recovery?28:27})}computeSharedSecret(et){const tt=wl.computePublicKey(et);return hexlify$1(secp256k1$3.getSharedSecret(getBytesCopy(_r(this,pl)),getBytes(tt),!1))}static computePublicKey(et,tt){let nt=getBytes(et,"key");if(nt.length===32){const it=secp256k1$3.getPublicKey(nt,!!tt);return hexlify$1(it)}if(nt.length===64){const it=new Uint8Array(65);it[0]=4,it.set(nt,1),nt=it}const at=secp256k1$3.ProjectivePoint.fromHex(nt);return hexlify$1(at.toRawBytes(tt))}static recoverPublicKey(et,tt){assertArgument(dataLength(et)===32,"invalid digest length","digest",et);const nt=Signature$7.from(tt);let at=secp256k1$3.Signature.fromCompact(getBytesCopy(concat$2([nt.r,nt.s])));at=at.addRecoveryBit(nt.yParity);const it=at.recoverPublicKey(getBytesCopy(et));return assertArgument(it!=null,"invalid signautre for digest","signature",tt),"0x"+it.toHex(!1)}static addPoints(et,tt,nt){const at=secp256k1$3.ProjectivePoint.fromHex(wl.computePublicKey(et).substring(2)),it=secp256k1$3.ProjectivePoint.fromHex(wl.computePublicKey(tt).substring(2));return"0x"+at.add(it).toHex(!!nt)}},pl=new WeakMap,wl);const BN_0$6=BigInt(0),BN_36=BigInt(36);function getChecksumAddress$1(_e){_e=_e.toLowerCase();const et=_e.substring(2).split(""),tt=new Uint8Array(40);for(let at=0;at<40;at++)tt[at]=et[at].charCodeAt(0);const nt=getBytes(keccak256$1(tt));for(let at=0;at<40;at+=2)nt[at>>1]>>4>=8&&(et[at]=et[at].toUpperCase()),(nt[at>>1]&15)>=8&&(et[at+1]=et[at+1].toUpperCase());return"0x"+et.join("")}const ibanLookup$1={};for(let _e=0;_e<10;_e++)ibanLookup$1[String(_e)]=String(_e);for(let _e=0;_e<26;_e++)ibanLookup$1[String.fromCharCode(65+_e)]=String(10+_e);const safeDigits$1=15;function ibanChecksum$1(_e){_e=_e.toUpperCase(),_e=_e.substring(4)+_e.substring(0,2)+"00";let et=_e.split("").map(nt=>ibanLookup$1[nt]).join("");for(;et.length>=safeDigits$1;){let nt=et.substring(0,safeDigits$1);et=parseInt(nt,10)%97+et.substring(nt.length)}let tt=String(98-parseInt(et,10)%97);for(;tt.length<2;)tt="0"+tt;return tt}const Base36=function(){const _e={};for(let et=0;et<36;et++){const tt="0123456789abcdefghijklmnopqrstuvwxyz"[et];_e[tt]=BigInt(et)}return _e}();function fromBase36(_e){_e=_e.toLowerCase();let et=BN_0$6;for(let tt=0;tt<_e.length;tt++)et=et*BN_36+Base36[_e[tt]];return et}function getAddress$1(_e){if(assertArgument(typeof _e=="string","invalid address","address",_e),_e.match(/^(0x)?[0-9a-fA-F]{40}$/)){_e.startsWith("0x")||(_e="0x"+_e);const et=getChecksumAddress$1(_e);return assertArgument(!_e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||et===_e,"bad address checksum","address",_e),et}if(_e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){assertArgument(_e.substring(2,4)===ibanChecksum$1(_e),"bad icap checksum","address",_e);let et=fromBase36(_e.substring(4)).toString(16);for(;et.length<40;)et="0"+et;return getChecksumAddress$1("0x"+et)}assertArgument(!1,"invalid address","address",_e)}function getCreateAddress(_e){const et=getAddress$1(_e.from);let nt=getBigInt(_e.nonce,"tx.nonce").toString(16);return nt==="0"?nt="0x":nt.length%2?nt="0x0"+nt:nt="0x"+nt,getAddress$1(dataSlice(keccak256$1(encodeRlp([et,nt])),12))}function isAddressable(_e){return _e&&typeof _e.getAddress=="function"}async function checkAddress(_e,et){const tt=await et;return(tt==null||tt==="0x0000000000000000000000000000000000000000")&&(assert$y(typeof _e!="string","unconfigured name","UNCONFIGURED_NAME",{value:_e}),assertArgument(!1,"invalid AddressLike value; did not resolve to a value address","target",_e)),getAddress$1(tt)}function resolveAddress(_e,et){if(typeof _e=="string")return _e.match(/^0x[0-9a-f]{40}$/i)?getAddress$1(_e):(assert$y(et!=null,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),checkAddress(_e,et.resolveName(_e)));if(isAddressable(_e))return checkAddress(_e,_e.getAddress());if(_e&&typeof _e.then=="function")return checkAddress(_e,_e);assertArgument(!1,"unsupported addressable value","target",_e)}const _gaurd={};function n$3(_e,et){let tt=!1;return et<0&&(tt=!0,et*=-1),new Typed(_gaurd,`${tt?"":"u"}int${et}`,_e,{signed:tt,width:et})}function b$1(_e,et){return new Typed(_gaurd,`bytes${et||""}`,_e,{size:et})}const _typedSymbol=Symbol.for("_ethers_typed");var uu;const ol=class ol{constructor(et,tt,nt,at){Zr(this,"type");Zr(this,"value");Rn(this,uu,void 0);Zr(this,"_typedSymbol");at==null&&(at=null),assertPrivate(_gaurd,et,"Typed"),defineProperties$2(this,{_typedSymbol,type:tt,value:nt}),Wr(this,uu,at),this.format()}format(){if(this.type==="array")throw new Error("");if(this.type==="dynamicArray")throw new Error("");return this.type==="tuple"?`tuple(${this.value.map(et=>et.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 this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return _r(this,uu)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return _r(this,uu)===!0?-1:_r(this,uu)===!1?this.value.length:null}static from(et,tt){return new ol(_gaurd,et,tt)}static uint8(et){return n$3(et,8)}static uint16(et){return n$3(et,16)}static uint24(et){return n$3(et,24)}static uint32(et){return n$3(et,32)}static uint40(et){return n$3(et,40)}static uint48(et){return n$3(et,48)}static uint56(et){return n$3(et,56)}static uint64(et){return n$3(et,64)}static uint72(et){return n$3(et,72)}static uint80(et){return n$3(et,80)}static uint88(et){return n$3(et,88)}static uint96(et){return n$3(et,96)}static uint104(et){return n$3(et,104)}static uint112(et){return n$3(et,112)}static uint120(et){return n$3(et,120)}static uint128(et){return n$3(et,128)}static uint136(et){return n$3(et,136)}static uint144(et){return n$3(et,144)}static uint152(et){return n$3(et,152)}static uint160(et){return n$3(et,160)}static uint168(et){return n$3(et,168)}static uint176(et){return n$3(et,176)}static uint184(et){return n$3(et,184)}static uint192(et){return n$3(et,192)}static uint200(et){return n$3(et,200)}static uint208(et){return n$3(et,208)}static uint216(et){return n$3(et,216)}static uint224(et){return n$3(et,224)}static uint232(et){return n$3(et,232)}static uint240(et){return n$3(et,240)}static uint248(et){return n$3(et,248)}static uint256(et){return n$3(et,256)}static uint(et){return n$3(et,256)}static int8(et){return n$3(et,-8)}static int16(et){return n$3(et,-16)}static int24(et){return n$3(et,-24)}static int32(et){return n$3(et,-32)}static int40(et){return n$3(et,-40)}static int48(et){return n$3(et,-48)}static int56(et){return n$3(et,-56)}static int64(et){return n$3(et,-64)}static int72(et){return n$3(et,-72)}static int80(et){return n$3(et,-80)}static int88(et){return n$3(et,-88)}static int96(et){return n$3(et,-96)}static int104(et){return n$3(et,-104)}static int112(et){return n$3(et,-112)}static int120(et){return n$3(et,-120)}static int128(et){return n$3(et,-128)}static int136(et){return n$3(et,-136)}static int144(et){return n$3(et,-144)}static int152(et){return n$3(et,-152)}static int160(et){return n$3(et,-160)}static int168(et){return n$3(et,-168)}static int176(et){return n$3(et,-176)}static int184(et){return n$3(et,-184)}static int192(et){return n$3(et,-192)}static int200(et){return n$3(et,-200)}static int208(et){return n$3(et,-208)}static int216(et){return n$3(et,-216)}static int224(et){return n$3(et,-224)}static int232(et){return n$3(et,-232)}static int240(et){return n$3(et,-240)}static int248(et){return n$3(et,-248)}static int256(et){return n$3(et,-256)}static int(et){return n$3(et,-256)}static bytes1(et){return b$1(et,1)}static bytes2(et){return b$1(et,2)}static bytes3(et){return b$1(et,3)}static bytes4(et){return b$1(et,4)}static bytes5(et){return b$1(et,5)}static bytes6(et){return b$1(et,6)}static bytes7(et){return b$1(et,7)}static bytes8(et){return b$1(et,8)}static bytes9(et){return b$1(et,9)}static bytes10(et){return b$1(et,10)}static bytes11(et){return b$1(et,11)}static bytes12(et){return b$1(et,12)}static bytes13(et){return b$1(et,13)}static bytes14(et){return b$1(et,14)}static bytes15(et){return b$1(et,15)}static bytes16(et){return b$1(et,16)}static bytes17(et){return b$1(et,17)}static bytes18(et){return b$1(et,18)}static bytes19(et){return b$1(et,19)}static bytes20(et){return b$1(et,20)}static bytes21(et){return b$1(et,21)}static bytes22(et){return b$1(et,22)}static bytes23(et){return b$1(et,23)}static bytes24(et){return b$1(et,24)}static bytes25(et){return b$1(et,25)}static bytes26(et){return b$1(et,26)}static bytes27(et){return b$1(et,27)}static bytes28(et){return b$1(et,28)}static bytes29(et){return b$1(et,29)}static bytes30(et){return b$1(et,30)}static bytes31(et){return b$1(et,31)}static bytes32(et){return b$1(et,32)}static address(et){return new ol(_gaurd,"address",et)}static bool(et){return new ol(_gaurd,"bool",!!et)}static bytes(et){return new ol(_gaurd,"bytes",et)}static string(et){return new ol(_gaurd,"string",et)}static array(et,tt){throw new Error("not implemented yet")}static tuple(et,tt){throw new Error("not implemented yet")}static overrides(et){return new ol(_gaurd,"overrides",Object.assign({},et))}static isTyped(et){return et&&typeof et=="object"&&"_typedSymbol"in et&&et._typedSymbol===_typedSymbol}static dereference(et,tt){if(ol.isTyped(et)){if(et.type!==tt)throw new Error(`invalid type: expecetd ${tt}, got ${et.type}`);return et.value}return et}};uu=new WeakMap;let Typed=ol,AddressCoder$1=class extends Coder$1{constructor(et){super("address","address",et,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(et,tt){let nt=Typed.dereference(tt,"string");try{nt=getAddress$1(nt)}catch(at){return this._throwError(at.message,tt)}return et.writeValue(nt)}decode(et){return getAddress$1(toBeHex(et.readValue(),20))}},AnonymousCoder$1=class extends Coder$1{constructor(tt){super(tt.name,tt.type,"_",tt.dynamic);Zr(this,"coder");this.coder=tt}defaultValue(){return this.coder.defaultValue()}encode(tt,nt){return this.coder.encode(tt,nt)}decode(tt){return this.coder.decode(tt)}};function pack$1(_e,et,tt){let nt=[];if(Array.isArray(tt))nt=tt;else if(tt&&typeof tt=="object"){let ct={};nt=et.map(dt=>{const ht=dt.localName;return assert$y(ht,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:dt},value:tt}),assert$y(!ct[ht],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:dt},value:tt}),ct[ht]=!0,tt[ht]})}else assertArgument(!1,"invalid tuple value","tuple",tt);assertArgument(et.length===nt.length,"types/value length mismatch","tuple",tt);let at=new Writer$1,it=new Writer$1,ot=[];et.forEach((ct,dt)=>{let ht=nt[dt];if(ct.dynamic){let pt=it.length;ct.encode(it,ht);let mt=at.writeUpdatableValue();ot.push(vt=>{mt(vt+pt)})}else ct.encode(at,ht)}),ot.forEach(ct=>{ct(at.length)});let st=_e.appendWriter(at);return st+=_e.appendWriter(it),st}function unpack$1(_e,et){let tt=[],nt=[],at=_e.subReader(0);return et.forEach(it=>{let ot=null;if(it.dynamic){let st=_e.readIndex(),ct=at.subReader(st);try{ot=it.decode(ct)}catch(dt){if(isError$3(dt,"BUFFER_OVERRUN"))throw dt;ot=dt,ot.baseType=it.name,ot.name=it.localName,ot.type=it.type}}else try{ot=it.decode(_e)}catch(st){if(isError$3(st,"BUFFER_OVERRUN"))throw st;ot=st,ot.baseType=it.name,ot.name=it.localName,ot.type=it.type}if(ot==null)throw new Error("investigate");tt.push(ot),nt.push(it.localName||null)}),Result.fromItems(tt,nt)}let ArrayCoder$1=class extends Coder$1{constructor(tt,nt,at){const it=tt.type+"["+(nt>=0?nt:"")+"]",ot=nt===-1||tt.dynamic;super("array",it,at,ot);Zr(this,"coder");Zr(this,"length");defineProperties$2(this,{coder:tt,length:nt})}defaultValue(){const tt=this.coder.defaultValue(),nt=[];for(let at=0;at<this.length;at++)nt.push(tt);return nt}encode(tt,nt){const at=Typed.dereference(nt,"array");Array.isArray(at)||this._throwError("expected array value",at);let it=this.length;it===-1&&(it=at.length,tt.writeValue(at.length)),assertArgumentCount(at.length,it,"coder array"+(this.localName?" "+this.localName:""));let ot=[];for(let st=0;st<at.length;st++)ot.push(this.coder);return pack$1(tt,ot,at)}decode(tt){let nt=this.length;nt===-1&&(nt=tt.readIndex(),assert$y(nt*WordSize<=tt.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:tt.bytes,offset:nt*WordSize,length:tt.dataLength}));let at=[];for(let it=0;it<nt;it++)at.push(new AnonymousCoder$1(this.coder));return unpack$1(tt,at)}},BooleanCoder$1=class extends Coder$1{constructor(et){super("bool","bool",et,!1)}defaultValue(){return!1}encode(et,tt){const nt=Typed.dereference(tt,"bool");return et.writeValue(nt?1:0)}decode(et){return!!et.readValue()}},DynamicBytesCoder$1=class extends Coder$1{constructor(et,tt){super(et,et,tt,!0)}defaultValue(){return"0x"}encode(et,tt){tt=getBytesCopy(tt);let nt=et.writeValue(tt.length);return nt+=et.writeBytes(tt),nt}decode(et){return et.readBytes(et.readIndex(),!0)}},BytesCoder$1=class extends DynamicBytesCoder$1{constructor(et){super("bytes",et)}decode(et){return hexlify$1(super.decode(et))}},FixedBytesCoder$1=class extends Coder$1{constructor(tt,nt){let at="bytes"+String(tt);super(at,at,nt,!1);Zr(this,"size");defineProperties$2(this,{size:tt},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(tt,nt){let at=getBytesCopy(Typed.dereference(nt,this.type));return at.length!==this.size&&this._throwError("incorrect data length",nt),tt.writeBytes(at)}decode(tt){return hexlify$1(tt.readBytes(this.size))}};const Empty$3=new Uint8Array([]);let NullCoder$1=class extends Coder$1{constructor(et){super("null","",et,!1)}defaultValue(){return null}encode(et,tt){return tt!=null&&this._throwError("not null",tt),et.writeBytes(Empty$3)}decode(et){return et.readBytes(0),null}};const BN_0$5=BigInt(0),BN_1$1=BigInt(1),BN_MAX_UINT256$1=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");let NumberCoder$1=class extends Coder$1{constructor(tt,nt,at){const it=(nt?"int":"uint")+tt*8;super(it,it,at,!1);Zr(this,"size");Zr(this,"signed");defineProperties$2(this,{size:tt,signed:nt},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(tt,nt){let at=getBigInt(Typed.dereference(nt,this.type)),it=mask(BN_MAX_UINT256$1,WordSize*8);if(this.signed){let ot=mask(it,this.size*8-1);(at>ot||at<-(ot+BN_1$1))&&this._throwError("value out-of-bounds",nt),at=toTwos(at,8*WordSize)}else(at<BN_0$5||at>mask(it,this.size*8))&&this._throwError("value out-of-bounds",nt);return tt.writeValue(at)}decode(tt){let nt=mask(tt.readValue(),this.size*8);return this.signed&&(nt=fromTwos(nt,this.size*8)),nt}},StringCoder$1=class extends DynamicBytesCoder$1{constructor(et){super("string",et)}defaultValue(){return""}encode(et,tt){return super.encode(et,toUtf8Bytes$1(Typed.dereference(tt,"string")))}decode(et){return toUtf8String$1(super.decode(et))}},TupleCoder$1=class extends Coder$1{constructor(tt,nt){let at=!1;const it=[];tt.forEach(st=>{st.dynamic&&(at=!0),it.push(st.type)});const ot="tuple("+it.join(",")+")";super("tuple",ot,nt,at);Zr(this,"coders");defineProperties$2(this,{coders:Object.freeze(tt.slice())})}defaultValue(){const tt=[];this.coders.forEach(at=>{tt.push(at.defaultValue())});const nt=this.coders.reduce((at,it)=>{const ot=it.localName;return ot&&(at[ot]||(at[ot]=0),at[ot]++),at},{});return this.coders.forEach((at,it)=>{let ot=at.localName;!ot||nt[ot]!==1||(ot==="length"&&(ot="_length"),tt[ot]==null&&(tt[ot]=tt[it]))}),Object.freeze(tt)}encode(tt,nt){const at=Typed.dereference(nt,"tuple");return pack$1(tt,this.coders,at)}decode(tt){return unpack$1(tt,this.coders)}};function id$2(_e){return keccak256$1(toUtf8Bytes$1(_e))}var COMPRESSED$1="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const FENCED=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),NSM_MAX=4;function decode_arithmetic$1(_e){let et=0;function tt(){return _e[et++]<<8|_e[et++]}let nt=tt(),at=1,it=[0,1];for(let Nt=1;Nt<nt;Nt++)it.push(at+=tt());let ot=tt(),st=et;et+=ot;let ct=0,dt=0;function ht(){return ct==0&&(dt=dt<<8|_e[et++],ct=8),dt>>--ct&1}const pt=31,mt=2**pt,vt=mt>>>1,bt=vt>>1,_t=mt-1;let wt=0;for(let Nt=0;Nt<pt;Nt++)wt=wt<<1|ht();let Et=[],St=0,Tt=mt;for(;;){let Nt=Math.floor(((wt-St+1)*at-1)/Tt),Dt=0,kt=nt;for(;kt-Dt>1;){let Gt=Dt+kt>>>1;Nt<it[Gt]?kt=Gt:Dt=Gt}if(Dt==0)break;Et.push(Dt);let Ft=St+Math.floor(Tt*it[Dt]/at),jt=St+Math.floor(Tt*it[Dt+1]/at)-1;for(;!((Ft^jt)&vt);)wt=wt<<1&_t|ht(),Ft=Ft<<1&_t,jt=jt<<1&_t|1;for(;Ft&~jt&bt;)wt=wt&vt|wt<<1&_t>>>1|ht(),Ft=Ft<<1^vt,jt=(jt^vt)<<1|vt|1;St=Ft,Tt=1+jt-Ft}let Ct=nt-4;return Et.map(Nt=>{switch(Nt-Ct){case 3:return Ct+65792+(_e[st++]<<16|_e[st++]<<8|_e[st++]);case 2:return Ct+256+(_e[st++]<<8|_e[st++]);case 1:return Ct+_e[st++];default:return Nt-1}})}function read_payload$1(_e){let et=0;return()=>_e[et++]}function read_compressed_payload$1(_e){return read_payload$1(decode_arithmetic$1(unsafe_atob(_e)))}function unsafe_atob(_e){let et=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((at,it)=>et[at.charCodeAt(0)]=it);let tt=_e.length,nt=new Uint8Array(6*tt>>3);for(let at=0,it=0,ot=0,st=0;at<tt;at++)st=st<<6|et[_e.charCodeAt(at)],ot+=6,ot>=8&&(nt[it++]=st>>(ot-=8));return nt}function signed$1(_e){return _e&1?~_e>>1:_e>>1}function read_deltas$1(_e,et){let tt=Array(_e);for(let nt=0,at=0;nt<_e;nt++)tt[nt]=at+=signed$1(et());return tt}function read_sorted(_e,et=0){let tt=[];for(;;){let nt=_e(),at=_e();if(!at)break;et+=nt;for(let it=0;it<at;it++)tt.push(et+it);et+=at+1}return tt}function read_sorted_arrays(_e){return read_array_while(()=>{let et=read_sorted(_e);if(et.length)return et})}function read_mapped(_e){let et=[];for(;;){let tt=_e();if(tt==0)break;et.push(read_linear_table$1(tt,_e))}for(;;){let tt=_e()-1;if(tt<0)break;et.push(read_replacement_table$1(tt,_e))}return et.flat()}function read_array_while(_e){let et=[];for(;;){let tt=_e(et.length);if(!tt)break;et.push(tt)}return et}function read_transposed$1(_e,et,tt){let nt=Array(_e).fill().map(()=>[]);for(let at=0;at<et;at++)read_deltas$1(_e,tt).forEach((it,ot)=>nt[ot].push(it));return nt}function read_linear_table$1(_e,et){let tt=1+et(),nt=et(),at=read_array_while(et);return read_transposed$1(at.length,1+_e,et).flatMap((ot,st)=>{let[ct,...dt]=ot;return Array(at[st]).fill().map((ht,pt)=>{let mt=pt*nt;return[ct+pt*tt,dt.map(vt=>vt+mt)]})})}function read_replacement_table$1(_e,et){let tt=1+et();return read_transposed$1(tt,1+_e,et).map(at=>[at[0],at.slice(1)])}function read_trie(_e){let et=[],tt=read_sorted(_e);return at(nt([]),[]),et;function nt(it){let ot=_e(),st=read_array_while(()=>{let ct=read_sorted(_e).map(dt=>tt[dt]);if(ct.length)return nt(ct)});return{S:ot,B:st,Q:it}}function at({S:it,B:ot},st,ct){if(!(it&4&&ct===st[st.length-1])){it&2&&(ct=st[st.length-1]),it&1&&et.push(st);for(let dt of ot)for(let ht of dt.Q)at(dt,[...st,ht],ct)}}}function hex_cp(_e){return _e.toString(16).toUpperCase().padStart(2,"0")}function quote_cp(_e){return`{${hex_cp(_e)}}`}function explode_cp$1(_e){let et=[];for(let tt=0,nt=_e.length;tt<nt;){let at=_e.codePointAt(tt);tt+=at<65536?1:2,et.push(at)}return et}function str_from_cps(_e){let tt=_e.length;if(tt<4096)return String.fromCodePoint(..._e);let nt=[];for(let at=0;at<tt;)nt.push(String.fromCodePoint(..._e.slice(at,at+=4096)));return nt.join("")}function compare_arrays(_e,et){let tt=_e.length,nt=tt-et.length;for(let at=0;nt==0&&at<tt;at++)nt=_e[at]-et[at];return nt}var COMPRESSED="AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g";const S0=44032,L0=4352,V0=4449,T0=4519,L_COUNT=19,V_COUNT=21,T_COUNT=28,N_COUNT=V_COUNT*T_COUNT,S_COUNT=L_COUNT*N_COUNT,S1=S0+S_COUNT,L1=L0+L_COUNT,V1=V0+V_COUNT,T1$1=T0+T_COUNT;function unpack_cc(_e){return _e>>24&255}function unpack_cp(_e){return _e&16777215}let SHIFTED_RANK,EXCLUSIONS,DECOMP,RECOMP;function init$1$1(){let _e=read_compressed_payload$1(COMPRESSED);SHIFTED_RANK=new Map(read_sorted_arrays(_e).flatMap((et,tt)=>et.map(nt=>[nt,tt+1<<24]))),EXCLUSIONS=new Set(read_sorted(_e)),DECOMP=new Map,RECOMP=new Map;for(let[et,tt]of read_mapped(_e)){if(!EXCLUSIONS.has(et)&&tt.length==2){let[nt,at]=tt,it=RECOMP.get(nt);it||(it=new Map,RECOMP.set(nt,it)),it.set(at,et)}DECOMP.set(et,tt.reverse())}}function is_hangul(_e){return _e>=S0&&_e<S1}function compose_pair(_e,et){if(_e>=L0&&_e<L1&&et>=V0&&et<V1)return S0+(_e-L0)*N_COUNT+(et-V0)*T_COUNT;if(is_hangul(_e)&&et>T0&&et<T1$1&&(_e-S0)%T_COUNT==0)return _e+(et-T0);{let tt=RECOMP.get(_e);return tt&&(tt=tt.get(et),tt)?tt:-1}}function decomposed(_e){SHIFTED_RANK||init$1$1();let et=[],tt=[],nt=!1;function at(it){let ot=SHIFTED_RANK.get(it);ot&&(nt=!0,it|=ot),et.push(it)}for(let it of _e)for(;;){if(it<128)et.push(it);else if(is_hangul(it)){let ot=it-S0,st=ot/N_COUNT|0,ct=ot%N_COUNT/T_COUNT|0,dt=ot%T_COUNT;at(L0+st),at(V0+ct),dt>0&&at(T0+dt)}else{let ot=DECOMP.get(it);ot?tt.push(...ot):at(it)}if(!tt.length)break;it=tt.pop()}if(nt&&et.length>1){let it=unpack_cc(et[0]);for(let ot=1;ot<et.length;ot++){let st=unpack_cc(et[ot]);if(st==0||it<=st){it=st;continue}let ct=ot-1;for(;;){let dt=et[ct+1];if(et[ct+1]=et[ct],et[ct]=dt,!ct||(it=unpack_cc(et[--ct]),it<=st))break}it=unpack_cc(et[ot])}}return et}function composed_from_decomposed(_e){let et=[],tt=[],nt=-1,at=0;for(let it of _e){let ot=unpack_cc(it),st=unpack_cp(it);if(nt==-1)ot==0?nt=st:et.push(st);else if(at>0&&at>=ot)ot==0?(et.push(nt,...tt),tt.length=0,nt=st):tt.push(st),at=ot;else{let ct=compose_pair(nt,st);ct>=0?nt=ct:at==0&&ot==0?(et.push(nt),nt=st):(tt.push(st),at=ot)}}return nt>=0&&et.push(nt,...tt),et}function nfd(_e){return decomposed(_e).map(unpack_cp)}function nfc$1(_e){return composed_from_decomposed(decomposed(_e))}const HYPHEN$1=45,STOP_CH=".",FE0F=65039,UNIQUE_PH=1,Array_from=_e=>Array.from(_e);function group_has_cp(_e,et){return _e.P.has(et)||_e.Q.has(et)}class Emoji extends Array{get is_emoji(){return!0}}let MAPPED$1,IGNORED$1,CM,NSM,ESCAPE,GROUPS,WHOLE_VALID,WHOLE_MAP,VALID$1,EMOJI_LIST,EMOJI_ROOT$1;function init$3(){if(MAPPED$1)return;let _e=read_compressed_payload$1(COMPRESSED$1);const et=()=>read_sorted(_e),tt=()=>new Set(et()),nt=(ht,pt)=>pt.forEach(mt=>ht.add(mt));MAPPED$1=new Map(read_mapped(_e)),IGNORED$1=tt(),CM=et(),NSM=new Set(et().map(ht=>CM[ht])),CM=new Set(CM),ESCAPE=tt(),tt();let at=read_sorted_arrays(_e),it=_e();const ot=()=>{let ht=new Set;return et().forEach(pt=>nt(ht,at[pt])),nt(ht,et()),ht};GROUPS=read_array_while(ht=>{let pt=read_array_while(_e).map(mt=>mt+96);if(pt.length){let mt=ht>=it;pt[0]-=32,pt=str_from_cps(pt),mt&&(pt=`Restricted[${pt}]`);let vt=ot(),bt=ot(),_t=!_e();return{N:pt,P:vt,Q:bt,M:_t,R:mt}}}),WHOLE_VALID=tt(),WHOLE_MAP=new Map;let st=et().concat(Array_from(WHOLE_VALID)).sort((ht,pt)=>ht-pt);st.forEach((ht,pt)=>{let mt=_e(),vt=st[pt]=mt?st[pt-mt]:{V:[],M:new Map};vt.V.push(ht),WHOLE_VALID.has(ht)||WHOLE_MAP.set(ht,vt)});for(let{V:ht,M:pt}of new Set(WHOLE_MAP.values())){let mt=[];for(let bt of ht){let _t=GROUPS.filter(Et=>group_has_cp(Et,bt)),wt=mt.find(({G:Et})=>_t.some(St=>Et.has(St)));wt||(wt={G:new Set,V:[]},mt.push(wt)),wt.V.push(bt),nt(wt.G,_t)}let vt=mt.flatMap(bt=>Array_from(bt.G));for(let{G:bt,V:_t}of mt){let wt=new Set(vt.filter(Et=>!bt.has(Et)));for(let Et of _t)pt.set(Et,wt)}}VALID$1=new Set;let ct=new Set;const dt=ht=>VALID$1.has(ht)?ct.add(ht):VALID$1.add(ht);for(let ht of GROUPS){for(let pt of ht.P)dt(pt);for(let pt of ht.Q)dt(pt)}for(let ht of VALID$1)!WHOLE_MAP.has(ht)&&!ct.has(ht)&&WHOLE_MAP.set(ht,UNIQUE_PH);nt(VALID$1,nfd(VALID$1)),EMOJI_LIST=read_trie(_e).map(ht=>Emoji.from(ht)).sort(compare_arrays),EMOJI_ROOT$1=new Map;for(let ht of EMOJI_LIST){let pt=[EMOJI_ROOT$1];for(let mt of ht){let vt=pt.map(bt=>{let _t=bt.get(mt);return _t||(_t=new Map,bt.set(mt,_t)),_t});mt===FE0F?pt.push(...vt):pt=vt}for(let mt of pt)mt.V=ht}}function quoted_cp(_e){return(should_escape(_e)?"":`${bidi_qq(safe_str_from_cps([_e]))} `)+quote_cp(_e)}function bidi_qq(_e){return`"${_e}"‎`}function check_label_extension(_e){if(_e.length>=4&&_e[2]==HYPHEN$1&&_e[3]==HYPHEN$1)throw new Error(`invalid label extension: "${str_from_cps(_e.slice(0,4))}"`)}function check_leading_underscore(_e){for(let tt=_e.lastIndexOf(95);tt>0;)if(_e[--tt]!==95)throw new Error("underscore allowed only at start")}function check_fenced(_e){let et=_e[0],tt=FENCED.get(et);if(tt)throw error_placement(`leading ${tt}`);let nt=_e.length,at=-1;for(let it=1;it<nt;it++){et=_e[it];let ot=FENCED.get(et);if(ot){if(at==it)throw error_placement(`${tt} + ${ot}`);at=it+1,tt=ot}}if(at==nt)throw error_placement(`trailing ${tt}`)}function safe_str_from_cps(_e,et=1/0,tt=quote_cp){let nt=[];is_combining_mark(_e[0])&&nt.push("◌"),_e.length>et&&(et>>=1,_e=[..._e.slice(0,et),8230,..._e.slice(-et)]);let at=0,it=_e.length;for(let ot=0;ot<it;ot++){let st=_e[ot];should_escape(st)&&(nt.push(str_from_cps(_e.slice(at,ot))),nt.push(tt(st)),at=ot+1)}return nt.push(str_from_cps(_e.slice(at,it))),nt.join("")}function is_combining_mark(_e){return init$3(),CM.has(_e)}function should_escape(_e){return init$3(),ESCAPE.has(_e)}function ens_normalize$1(_e){return flatten$3(split$2(_e,nfc$1,filter_fe0f$1))}function split$2(_e,et,tt){if(!_e)return[];init$3();let nt=0;return _e.split(STOP_CH).map(at=>{let it=explode_cp$1(at),ot={input:it,offset:nt};nt+=it.length+1;try{let st=ot.tokens=tokens_from_str(it,et,tt),ct=st.length,dt;if(!ct)throw new Error("empty label");let ht=ot.output=st.flat();if(check_leading_underscore(ht),!(ot.emoji=ct>1||st[0].is_emoji)&&ht.every(mt=>mt<128))check_label_extension(ht),dt="ASCII";else{let mt=st.flatMap(vt=>vt.is_emoji?[]:vt);if(!mt.length)dt="Emoji";else{if(CM.has(ht[0]))throw error_placement("leading combining mark");for(let _t=1;_t<ct;_t++){let wt=st[_t];if(!wt.is_emoji&&CM.has(wt[0]))throw error_placement(`emoji + combining mark: "${str_from_cps(st[_t-1])} + ${safe_str_from_cps([wt[0]])}"`)}check_fenced(ht);let vt=Array_from(new Set(mt)),[bt]=determine_group(vt);check_group(bt,mt),check_whole(bt,vt),dt=bt.N}}ot.type=dt}catch(st){ot.error=st}return ot})}function check_whole(_e,et){let tt,nt=[];for(let at of et){let it=WHOLE_MAP.get(at);if(it===UNIQUE_PH)return;if(it){let ot=it.M.get(at);if(tt=tt?tt.filter(st=>ot.has(st)):Array_from(ot),!tt.length)return}else nt.push(at)}if(tt){for(let at of tt)if(nt.every(it=>group_has_cp(at,it)))throw new Error(`whole-script confusable: ${_e.N}/${at.N}`)}}function determine_group(_e){let et=GROUPS;for(let tt of _e){let nt=et.filter(at=>group_has_cp(at,tt));if(!nt.length)throw GROUPS.some(at=>group_has_cp(at,tt))?error_group_member(et[0],tt):error_disallowed(tt);if(et=nt,nt.length==1)break}return et}function flatten$3(_e){return _e.map(({input:et,error:tt,output:nt})=>{if(tt){let at=tt.message;throw new Error(_e.length==1?at:`Invalid label ${bidi_qq(safe_str_from_cps(et,63))}: ${at}`)}return str_from_cps(nt)}).join(STOP_CH)}function error_disallowed(_e){return new Error(`disallowed character: ${quoted_cp(_e)}`)}function error_group_member(_e,et){let tt=quoted_cp(et),nt=GROUPS.find(at=>at.P.has(et));return nt&&(tt=`${nt.N} ${tt}`),new Error(`illegal mixture: ${_e.N} + ${tt}`)}function error_placement(_e){return new Error(`illegal placement: ${_e}`)}function check_group(_e,et){for(let tt of et)if(!group_has_cp(_e,tt))throw error_group_member(_e,tt);if(_e.M){let tt=nfd(et);for(let nt=1,at=tt.length;nt<at;nt++)if(NSM.has(tt[nt])){let it=nt+1;for(let ot;it<at&&NSM.has(ot=tt[it]);it++)for(let st=nt;st<it;st++)if(tt[st]==ot)throw new Error(`duplicate non-spacing marks: ${quoted_cp(ot)}`);if(it-nt>NSM_MAX)throw new Error(`excessive non-spacing marks: ${bidi_qq(safe_str_from_cps(tt.slice(nt-1,it)))} (${it-nt}/${NSM_MAX})`);nt=it}}}function tokens_from_str(_e,et,tt){let nt=[],at=[];for(_e=_e.slice().reverse();_e.length;){let it=consume_emoji_reversed$1(_e);if(it)at.length&&(nt.push(et(at)),at=[]),nt.push(tt(it));else{let ot=_e.pop();if(VALID$1.has(ot))at.push(ot);else{let st=MAPPED$1.get(ot);if(st)at.push(...st);else if(!IGNORED$1.has(ot))throw error_disallowed(ot)}}}return at.length&&nt.push(et(at)),nt}function filter_fe0f$1(_e){return _e.filter(et=>et!=FE0F)}function consume_emoji_reversed$1(_e,et){let tt=EMOJI_ROOT$1,nt,at=_e.length;for(;at&&(tt=tt.get(_e[--at]),!!tt);){let{V:it}=tt;it&&(nt=it,et&&et.push(..._e.slice(at).reverse()),_e.length=at)}return nt}const Zeros$1=new Uint8Array(32);Zeros$1.fill(0);function checkComponent$1(_e){return assertArgument(_e.length!==0,"invalid ENS name; empty component","comp",_e),_e}function ensNameSplit$1(_e){const et=toUtf8Bytes$1(ensNormalize(_e)),tt=[];if(_e.length===0)return tt;let nt=0;for(let at=0;at<et.length;at++)et[at]===46&&(tt.push(checkComponent$1(et.slice(nt,at))),nt=at+1);return assertArgument(nt<et.length,"invalid ENS name; empty component","name",_e),tt.push(checkComponent$1(et.slice(nt))),tt}function ensNormalize(_e){try{if(_e.length===0)throw new Error("empty label");return ens_normalize$1(_e)}catch(et){assertArgument(!1,`invalid ENS name (${et.message})`,"name",_e)}}function namehash$1(_e){assertArgument(typeof _e=="string","invalid ENS name; not a string","name",_e),assertArgument(_e.length,"invalid ENS name (empty label)","name",_e);let et=Zeros$1;const tt=ensNameSplit$1(_e);for(;tt.length;)et=keccak256$1(concat$2([et,keccak256$1(tt.pop())]));return hexlify$1(et)}function dnsEncode$1(_e,et){const tt=et??63;return assertArgument(tt<=255,"DNS encoded label cannot exceed 255","length",tt),hexlify$1(concat$2(ensNameSplit$1(_e).map(nt=>{assertArgument(nt.length<=tt,`label ${JSON.stringify(_e)} exceeds ${tt} bytes`,"name",_e);const at=new Uint8Array(nt.length+1);return at.set(nt,1),at[0]=at.length-1,at})))+"00"}function accessSetify$1(_e,et){return{address:getAddress$1(_e),storageKeys:et.map((tt,nt)=>(assertArgument(isHexString$1(tt,32),"invalid slot",`storageKeys[${nt}]`,tt),tt.toLowerCase()))}}function accessListify$1(_e){if(Array.isArray(_e))return _e.map((tt,nt)=>Array.isArray(tt)?(assertArgument(tt.length===2,"invalid slot set",`value[${nt}]`,tt),accessSetify$1(tt[0],tt[1])):(assertArgument(tt!=null&&typeof tt=="object","invalid address-slot set","value",_e),accessSetify$1(tt.address,tt.storageKeys)));assertArgument(_e!=null&&typeof _e=="object","invalid access list","value",_e);const et=Object.keys(_e).map(tt=>{const nt=_e[tt].reduce((at,it)=>(at[it]=!0,at),{});return accessSetify$1(tt,Object.keys(nt).sort())});return et.sort((tt,nt)=>tt.address.localeCompare(nt.address)),et}function computeAddress$2(_e){let et;return typeof _e=="string"?et=SigningKey$1.computePublicKey(_e,!1):et=_e.publicKey,getAddress$1(keccak256$1("0x"+et.substring(4)).substring(26))}function recoverAddress$1(_e,et){return computeAddress$2(SigningKey$1.recoverPublicKey(_e,et))}const BN_0$4=BigInt(0),BN_2$1=BigInt(2),BN_27=BigInt(27),BN_28=BigInt(28),BN_35=BigInt(35),BN_MAX_UINT=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function handleAddress$1(_e){return _e==="0x"?null:getAddress$1(_e)}function handleAccessList(_e,et){try{return accessListify$1(_e)}catch(tt){assertArgument(!1,tt.message,et,_e)}}function handleNumber$1(_e,et){return _e==="0x"?0:getNumber(_e,et)}function handleUint(_e,et){if(_e==="0x")return BN_0$4;const tt=getBigInt(_e,et);return assertArgument(tt<=BN_MAX_UINT,"value exceeds uint size",et,tt),tt}function formatNumber$2(_e,et){const tt=getBigInt(_e,"value"),nt=toBeArray(tt);return assertArgument(nt.length<=32,"value too large",`tx.${et}`,tt),nt}function formatAccessList$1(_e){return accessListify$1(_e).map(et=>[et.address,et.storageKeys])}function formatHashes(_e,et){assertArgument(Array.isArray(_e),`invalid ${et}`,"value",_e);for(let tt=0;tt<_e.length;tt++)assertArgument(isHexString$1(_e[tt],32),"invalid ${ param } hash",`value[${tt}]`,_e[tt]);return _e}function _parseLegacy(_e){const et=decodeRlp(_e);assertArgument(Array.isArray(et)&&(et.length===9||et.length===6),"invalid field count for legacy transaction","data",_e);const tt={type:0,nonce:handleNumber$1(et[0],"nonce"),gasPrice:handleUint(et[1],"gasPrice"),gasLimit:handleUint(et[2],"gasLimit"),to:handleAddress$1(et[3]),value:handleUint(et[4],"value"),data:hexlify$1(et[5]),chainId:BN_0$4};if(et.length===6)return tt;const nt=handleUint(et[6],"v"),at=handleUint(et[7],"r"),it=handleUint(et[8],"s");if(at===BN_0$4&&it===BN_0$4)tt.chainId=nt;else{let ot=(nt-BN_35)/BN_2$1;ot<BN_0$4&&(ot=BN_0$4),tt.chainId=ot,assertArgument(ot!==BN_0$4||nt===BN_27||nt===BN_28,"non-canonical legacy v","v",et[6]),tt.signature=Signature$7.from({r:zeroPadValue(et[7],32),s:zeroPadValue(et[8],32),v:nt}),tt.hash=keccak256$1(_e)}return tt}function _serializeLegacy(_e,et){const tt=[formatNumber$2(_e.nonce,"nonce"),formatNumber$2(_e.gasPrice||0,"gasPrice"),formatNumber$2(_e.gasLimit,"gasLimit"),_e.to||"0x",formatNumber$2(_e.value,"value"),_e.data];let nt=BN_0$4;if(_e.chainId!=BN_0$4)nt=getBigInt(_e.chainId,"tx.chainId"),assertArgument(!et||et.networkV==null||et.legacyChainId===nt,"tx.chainId/sig.v mismatch","sig",et);else if(_e.signature){const it=_e.signature.legacyChainId;it!=null&&(nt=it)}if(!et)return nt!==BN_0$4&&(tt.push(toBeArray(nt)),tt.push("0x"),tt.push("0x")),encodeRlp(tt);let at=BigInt(27+et.yParity);return nt!==BN_0$4?at=Signature$7.getChainIdV(nt,et.v):BigInt(et.v)!==at&&assertArgument(!1,"tx.chainId/sig.v mismatch","sig",et),tt.push(toBeArray(at)),tt.push(toBeArray(et.r)),tt.push(toBeArray(et.s)),encodeRlp(tt)}function _parseEipSignature$1(_e,et){let tt;try{if(tt=handleNumber$1(et[0],"yParity"),tt!==0&&tt!==1)throw new Error("bad yParity")}catch{assertArgument(!1,"invalid yParity","yParity",et[0])}const nt=zeroPadValue(et[1],32),at=zeroPadValue(et[2],32),it=Signature$7.from({r:nt,s:at,yParity:tt});_e.signature=it}function _parseEip1559$1(_e){const et=decodeRlp(getBytes(_e).slice(1));assertArgument(Array.isArray(et)&&(et.length===9||et.length===12),"invalid field count for transaction type: 2","data",hexlify$1(_e));const tt={type:2,chainId:handleUint(et[0],"chainId"),nonce:handleNumber$1(et[1],"nonce"),maxPriorityFeePerGas:handleUint(et[2],"maxPriorityFeePerGas"),maxFeePerGas:handleUint(et[3],"maxFeePerGas"),gasPrice:null,gasLimit:handleUint(et[4],"gasLimit"),to:handleAddress$1(et[5]),value:handleUint(et[6],"value"),data:hexlify$1(et[7]),accessList:handleAccessList(et[8],"accessList")};return et.length===9||(tt.hash=keccak256$1(_e),_parseEipSignature$1(tt,et.slice(9))),tt}function _serializeEip1559$1(_e,et){const tt=[formatNumber$2(_e.chainId,"chainId"),formatNumber$2(_e.nonce,"nonce"),formatNumber$2(_e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),formatNumber$2(_e.maxFeePerGas||0,"maxFeePerGas"),formatNumber$2(_e.gasLimit,"gasLimit"),_e.to||"0x",formatNumber$2(_e.value,"value"),_e.data,formatAccessList$1(_e.accessList||[])];return et&&(tt.push(formatNumber$2(et.yParity,"yParity")),tt.push(toBeArray(et.r)),tt.push(toBeArray(et.s))),concat$2(["0x02",encodeRlp(tt)])}function _parseEip2930$1(_e){const et=decodeRlp(getBytes(_e).slice(1));assertArgument(Array.isArray(et)&&(et.length===8||et.length===11),"invalid field count for transaction type: 1","data",hexlify$1(_e));const tt={type:1,chainId:handleUint(et[0],"chainId"),nonce:handleNumber$1(et[1],"nonce"),gasPrice:handleUint(et[2],"gasPrice"),gasLimit:handleUint(et[3],"gasLimit"),to:handleAddress$1(et[4]),value:handleUint(et[5],"value"),data:hexlify$1(et[6]),accessList:handleAccessList(et[7],"accessList")};return et.length===8||(tt.hash=keccak256$1(_e),_parseEipSignature$1(tt,et.slice(8))),tt}function _serializeEip2930$1(_e,et){const tt=[formatNumber$2(_e.chainId,"chainId"),formatNumber$2(_e.nonce,"nonce"),formatNumber$2(_e.gasPrice||0,"gasPrice"),formatNumber$2(_e.gasLimit,"gasLimit"),_e.to||"0x",formatNumber$2(_e.value,"value"),_e.data,formatAccessList$1(_e.accessList||[])];return et&&(tt.push(formatNumber$2(et.yParity,"recoveryParam")),tt.push(toBeArray(et.r)),tt.push(toBeArray(et.s))),concat$2(["0x01",encodeRlp(tt)])}function _parseEip4844(_e){const et=decodeRlp(getBytes(_e).slice(1));assertArgument(Array.isArray(et)&&(et.length===11||et.length===14),"invalid field count for transaction type: 3","data",hexlify$1(_e));const tt={type:3,chainId:handleUint(et[0],"chainId"),nonce:handleNumber$1(et[1],"nonce"),maxPriorityFeePerGas:handleUint(et[2],"maxPriorityFeePerGas"),maxFeePerGas:handleUint(et[3],"maxFeePerGas"),gasPrice:null,gasLimit:handleUint(et[4],"gasLimit"),to:handleAddress$1(et[5]),value:handleUint(et[6],"value"),data:hexlify$1(et[7]),accessList:handleAccessList(et[8],"accessList"),maxFeePerBlobGas:handleUint(et[9],"maxFeePerBlobGas"),blobVersionedHashes:et[10]};assertArgument(tt.to!=null,"invalid address for transaction type: 3","data",_e),assertArgument(Array.isArray(tt.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",_e);for(let nt=0;nt<tt.blobVersionedHashes.length;nt++)assertArgument(isHexString$1(tt.blobVersionedHashes[nt],32),`invalid blobVersionedHash at index ${nt}: must be length 32`,"data",_e);return et.length===11||(tt.hash=keccak256$1(_e),_parseEipSignature$1(tt,et.slice(11))),tt}function _serializeEip4844(_e,et){const tt=[formatNumber$2(_e.chainId,"chainId"),formatNumber$2(_e.nonce,"nonce"),formatNumber$2(_e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),formatNumber$2(_e.maxFeePerGas||0,"maxFeePerGas"),formatNumber$2(_e.gasLimit,"gasLimit"),_e.to||ZeroAddress,formatNumber$2(_e.value,"value"),_e.data,formatAccessList$1(_e.accessList||[]),formatNumber$2(_e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),formatHashes(_e.blobVersionedHashes||[],"blobVersionedHashes")];return et&&(tt.push(formatNumber$2(et.yParity,"yParity")),tt.push(toBeArray(et.r)),tt.push(toBeArray(et.s))),concat$2(["0x03",encodeRlp(tt)])}var Vs,zu,Vu,Wu,Ku,Yu,Xu,Zu,Qu,Ju,_f,_d,cu,fu;const ll=class ll{constructor(){Rn(this,Vs,void 0);Rn(this,zu,void 0);Rn(this,Vu,void 0);Rn(this,Wu,void 0);Rn(this,Ku,void 0);Rn(this,Yu,void 0);Rn(this,Xu,void 0);Rn(this,Zu,void 0);Rn(this,Qu,void 0);Rn(this,Ju,void 0);Rn(this,_f,void 0);Rn(this,_d,void 0);Rn(this,cu,void 0);Rn(this,fu,void 0);Wr(this,Vs,null),Wr(this,zu,null),Wr(this,Wu,0),Wr(this,Ku,BN_0$4),Wr(this,Yu,null),Wr(this,Xu,null),Wr(this,Zu,null),Wr(this,Vu,"0x"),Wr(this,Qu,BN_0$4),Wr(this,Ju,BN_0$4),Wr(this,_f,null),Wr(this,_d,null),Wr(this,cu,null),Wr(this,fu,null)}get type(){return _r(this,Vs)}set type(et){switch(et){case null:Wr(this,Vs,null);break;case 0:case"legacy":Wr(this,Vs,0);break;case 1:case"berlin":case"eip-2930":Wr(this,Vs,1);break;case 2:case"london":case"eip-1559":Wr(this,Vs,2);break;case 3:case"cancun":case"eip-4844":Wr(this,Vs,3);break;default:assertArgument(!1,"unsupported transaction type","type",et)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const et=_r(this,zu);return et==null&&this.type===3?ZeroAddress:et}set to(et){Wr(this,zu,et==null?null:getAddress$1(et))}get nonce(){return _r(this,Wu)}set nonce(et){Wr(this,Wu,getNumber(et,"value"))}get gasLimit(){return _r(this,Ku)}set gasLimit(et){Wr(this,Ku,getBigInt(et))}get gasPrice(){const et=_r(this,Yu);return et==null&&(this.type===0||this.type===1)?BN_0$4:et}set gasPrice(et){Wr(this,Yu,et==null?null:getBigInt(et,"gasPrice"))}get maxPriorityFeePerGas(){const et=_r(this,Xu);return et??(this.type===2||this.type===3?BN_0$4:null)}set maxPriorityFeePerGas(et){Wr(this,Xu,et==null?null:getBigInt(et,"maxPriorityFeePerGas"))}get maxFeePerGas(){const et=_r(this,Zu);return et??(this.type===2||this.type===3?BN_0$4:null)}set maxFeePerGas(et){Wr(this,Zu,et==null?null:getBigInt(et,"maxFeePerGas"))}get data(){return _r(this,Vu)}set data(et){Wr(this,Vu,hexlify$1(et))}get value(){return _r(this,Qu)}set value(et){Wr(this,Qu,getBigInt(et,"value"))}get chainId(){return _r(this,Ju)}set chainId(et){Wr(this,Ju,getBigInt(et))}get signature(){return _r(this,_f)||null}set signature(et){Wr(this,_f,et==null?null:Signature$7.from(et))}get accessList(){const et=_r(this,_d)||null;return et??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(et){Wr(this,_d,et==null?null:accessListify$1(et))}get maxFeePerBlobGas(){const et=_r(this,cu);return et==null&&this.type===3?BN_0$4:et}set maxFeePerBlobGas(et){Wr(this,cu,et==null?null:getBigInt(et,"maxFeePerBlobGas"))}get blobVersionedHashes(){let et=_r(this,fu);return et==null&&this.type===3?[]:et}set blobVersionedHashes(et){if(et!=null){assertArgument(Array.isArray(et),"blobVersionedHashes must be an Array","value",et),et=et.slice();for(let tt=0;tt<et.length;tt++)assertArgument(isHexString$1(et[tt],32),"invalid blobVersionedHash",`value[${tt}]`,et[tt])}Wr(this,fu,et)}get hash(){return this.signature==null?null:keccak256$1(this.serialized)}get unsignedHash(){return keccak256$1(this.unsignedSerialized)}get from(){return this.signature==null?null:recoverAddress$1(this.unsignedHash,this.signature)}get fromPublicKey(){return this.signature==null?null:SigningKey$1.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return this.signature!=null}get serialized(){switch(assert$y(this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"}),this.inferType()){case 0:return _serializeLegacy(this,this.signature);case 1:return _serializeEip2930$1(this,this.signature);case 2:return _serializeEip1559$1(this,this.signature);case 3:return _serializeEip4844(this,this.signature)}assert$y(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get unsignedSerialized(){switch(this.inferType()){case 0:return _serializeLegacy(this);case 1:return _serializeEip2930$1(this);case 2:return _serializeEip1559$1(this);case 3:return _serializeEip4844(this)}assert$y(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".unsignedSerialized"})}inferType(){const et=this.inferTypes();return et.indexOf(2)>=0?2:et.pop()}inferTypes(){const et=this.gasPrice!=null,tt=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,nt=this.accessList!=null,at=_r(this,cu)!=null||_r(this,fu);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&assert$y(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),assert$y(!tt||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),assert$y(this.type!==0||!nt,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const it=[];return this.type!=null?it.push(this.type):tt?it.push(2):et?(it.push(1),nt||it.push(0)):nt?(it.push(1),it.push(2)):(at&&this.to||(it.push(0),it.push(1),it.push(2)),it.push(3)),it.sort(),it}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return ll.from(this)}toJSON(){const et=tt=>tt==null?null:tt.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:et(this.gasLimit),gasPrice:et(this.gasPrice),maxPriorityFeePerGas:et(this.maxPriorityFeePerGas),maxFeePerGas:et(this.maxFeePerGas),value:et(this.value),chainId:et(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(et){if(et==null)return new ll;if(typeof et=="string"){const nt=getBytes(et);if(nt[0]>=127)return ll.from(_parseLegacy(nt));switch(nt[0]){case 1:return ll.from(_parseEip2930$1(nt));case 2:return ll.from(_parseEip1559$1(nt));case 3:return ll.from(_parseEip4844(nt))}assert$y(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const tt=new ll;return et.type!=null&&(tt.type=et.type),et.to!=null&&(tt.to=et.to),et.nonce!=null&&(tt.nonce=et.nonce),et.gasLimit!=null&&(tt.gasLimit=et.gasLimit),et.gasPrice!=null&&(tt.gasPrice=et.gasPrice),et.maxPriorityFeePerGas!=null&&(tt.maxPriorityFeePerGas=et.maxPriorityFeePerGas),et.maxFeePerGas!=null&&(tt.maxFeePerGas=et.maxFeePerGas),et.maxFeePerBlobGas!=null&&(tt.maxFeePerBlobGas=et.maxFeePerBlobGas),et.data!=null&&(tt.data=et.data),et.value!=null&&(tt.value=et.value),et.chainId!=null&&(tt.chainId=et.chainId),et.signature!=null&&(tt.signature=Signature$7.from(et.signature)),et.accessList!=null&&(tt.accessList=et.accessList),et.blobVersionedHashes!=null&&(tt.blobVersionedHashes=et.blobVersionedHashes),et.hash!=null&&(assertArgument(tt.isSigned(),"unsigned transaction cannot define hash","tx",et),assertArgument(tt.hash===et.hash,"hash mismatch","tx",et)),et.from!=null&&(assertArgument(tt.isSigned(),"unsigned transaction cannot define from","tx",et),assertArgument(tt.from.toLowerCase()===(et.from||"").toLowerCase(),"from mismatch","tx",et)),tt}};Vs=new WeakMap,zu=new WeakMap,Vu=new WeakMap,Wu=new WeakMap,Ku=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,Qu=new WeakMap,Ju=new WeakMap,_f=new WeakMap,_d=new WeakMap,cu=new WeakMap,fu=new WeakMap;let Transaction=ll;function hashMessage(_e){return typeof _e=="string"&&(_e=toUtf8Bytes$1(_e)),keccak256$1(concat$2([toUtf8Bytes$1(MessagePrefix),toUtf8Bytes$1(String(_e.length)),_e]))}const padding$1=new Uint8Array(32);padding$1.fill(0);const BN__1=BigInt(-1),BN_0$3=BigInt(0),BN_1=BigInt(1),BN_MAX_UINT256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hexPadRight$1(_e){const et=getBytes(_e),tt=et.length%32;return tt?concat$2([et,padding$1.slice(tt)]):hexlify$1(et)}const hexTrue$1=toBeHex(BN_1,32),hexFalse$1=toBeHex(BN_0$3,32),domainFieldTypes$1={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},domainFieldNames$1=["name","version","chainId","verifyingContract","salt"];function checkString$1(_e){return function(et){return assertArgument(typeof et=="string",`invalid domain value for ${JSON.stringify(_e)}`,`domain.${_e}`,et),et}}const domainChecks$1={name:checkString$1("name"),version:checkString$1("version"),chainId:function(_e){const et=getBigInt(_e,"domain.chainId");return assertArgument(et>=0,"invalid chain ID","domain.chainId",_e),Number.isSafeInteger(et)?Number(et):toQuantity(et)},verifyingContract:function(_e){try{return getAddress$1(_e).toLowerCase()}catch{}assertArgument(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",_e)},salt:function(_e){const et=getBytes(_e,"domain.salt");return assertArgument(et.length===32,'invalid domain value "salt"',"domain.salt",_e),hexlify$1(et)}};function getBaseEncoder$1(_e){{const et=_e.match(/^(u?)int(\d+)$/);if(et){const tt=et[1]==="",nt=parseInt(et[2]);assertArgument(nt%8===0&&nt!==0&&nt<=256&&et[2]===String(nt),"invalid numeric width","type",_e);const at=mask(BN_MAX_UINT256,tt?nt-1:nt),it=tt?(at+BN_1)*BN__1:BN_0$3;return function(ot){const st=getBigInt(ot,"value");return assertArgument(st>=it&&st<=at,`value out-of-bounds for ${_e}`,"value",st),toBeHex(tt?toTwos(st,256):st,32)}}}{const et=_e.match(/^bytes(\d+)$/);if(et){const tt=parseInt(et[1]);return assertArgument(tt!==0&&tt<=32&&et[1]===String(tt),"invalid bytes width","type",_e),function(nt){const at=getBytes(nt);return assertArgument(at.length===tt,`invalid length for ${_e}`,"value",nt),hexPadRight$1(nt)}}}switch(_e){case"address":return function(et){return zeroPadValue(getAddress$1(et),32)};case"bool":return function(et){return et?hexTrue$1:hexFalse$1};case"bytes":return function(et){return keccak256$1(et)};case"string":return function(et){return id$2(et)}}return null}function encodeType$1(_e,et){return`${_e}(${et.map(({name:tt,type:nt})=>nt+" "+tt).join(",")})`}function splitArray(_e){const et=_e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return et?{base:et[1],index:et[2]+et[4],array:{base:et[1],prefix:et[1]+et[2],count:et[5]?parseInt(et[5]):-1}}:{base:_e}}var kp,ml,_h,Cm,ty,xs;let TypedDataEncoder$1=(xs=class{constructor(et){Rn(this,Cm);Zr(this,"primaryType");Rn(this,kp,void 0);Rn(this,ml,void 0);Rn(this,_h,void 0);Wr(this,ml,new Map),Wr(this,_h,new Map);const tt=new Map,nt=new Map,at=new Map,it={};Object.keys(et).forEach(ct=>{it[ct]=et[ct].map(({name:dt,type:ht})=>{let{base:pt,index:mt}=splitArray(ht);return pt==="int"&&!et.int&&(pt="int256"),pt==="uint"&&!et.uint&&(pt="uint256"),{name:dt,type:pt+(mt||"")}}),tt.set(ct,new Set),nt.set(ct,[]),at.set(ct,new Set)}),Wr(this,kp,JSON.stringify(it));for(const ct in it){const dt=new Set;for(const ht of it[ct]){assertArgument(!dt.has(ht.name),`duplicate variable name ${JSON.stringify(ht.name)} in ${JSON.stringify(ct)}`,"types",et),dt.add(ht.name);const pt=splitArray(ht.type).base;assertArgument(pt!==ct,`circular type reference to ${JSON.stringify(pt)}`,"types",et),!getBaseEncoder$1(pt)&&(assertArgument(nt.has(pt),`unknown type ${JSON.stringify(pt)}`,"types",et),nt.get(pt).push(ct),tt.get(ct).add(pt))}}const ot=Array.from(nt.keys()).filter(ct=>nt.get(ct).length===0);assertArgument(ot.length!==0,"missing primary type","types",et),assertArgument(ot.length===1,`ambiguous primary types or unused types: ${ot.map(ct=>JSON.stringify(ct)).join(", ")}`,"types",et),defineProperties$2(this,{primaryType:ot[0]});function st(ct,dt){assertArgument(!dt.has(ct),`circular type reference to ${JSON.stringify(ct)}`,"types",et),dt.add(ct);for(const ht of tt.get(ct))if(nt.has(ht)){st(ht,dt);for(const pt of dt)at.get(pt).add(ht)}dt.delete(ct)}st(this.primaryType,new Set);for(const[ct,dt]of at){const ht=Array.from(dt);ht.sort(),_r(this,ml).set(ct,encodeType$1(ct,it[ct])+ht.map(pt=>encodeType$1(pt,it[pt])).join(""))}}get types(){return JSON.parse(_r(this,kp))}getEncoder(et){let tt=_r(this,_h).get(et);return tt||(tt=va(this,Cm,ty).call(this,et),_r(this,_h).set(et,tt)),tt}encodeType(et){const tt=_r(this,ml).get(et);return assertArgument(tt,`unknown type: ${JSON.stringify(et)}`,"name",et),tt}encodeData(et,tt){return this.getEncoder(et)(tt)}hashStruct(et,tt){return keccak256$1(this.encodeData(et,tt))}encode(et){return this.encodeData(this.primaryType,et)}hash(et){return this.hashStruct(this.primaryType,et)}_visit(et,tt,nt){if(getBaseEncoder$1(et))return nt(et,tt);const at=splitArray(et).array;if(at)return assertArgument(at.count===-1||at.count===tt.length,`array length mismatch; expected length ${at.count}`,"value",tt),tt.map(ot=>this._visit(at.prefix,ot,nt));const it=this.types[et];if(it)return it.reduce((ot,{name:st,type:ct})=>(ot[st]=this._visit(ct,tt[st],nt),ot),{});assertArgument(!1,`unknown type: ${et}`,"type",et)}visit(et,tt){return this._visit(this.primaryType,et,tt)}static from(et){return new xs(et)}static getPrimaryType(et){return xs.from(et).primaryType}static hashStruct(et,tt,nt){return xs.from(tt).hashStruct(et,nt)}static hashDomain(et){const tt=[];for(const nt in et){if(et[nt]==null)continue;const at=domainFieldTypes$1[nt];assertArgument(at,`invalid typed-data domain key: ${JSON.stringify(nt)}`,"domain",et),tt.push({name:nt,type:at})}return tt.sort((nt,at)=>domainFieldNames$1.indexOf(nt.name)-domainFieldNames$1.indexOf(at.name)),xs.hashStruct("EIP712Domain",{EIP712Domain:tt},et)}static encode(et,tt,nt){return concat$2(["0x1901",xs.hashDomain(et),xs.from(tt).hash(nt)])}static hash(et,tt,nt){return keccak256$1(xs.encode(et,tt,nt))}static async resolveNames(et,tt,nt,at){et=Object.assign({},et);for(const st in et)et[st]==null&&delete et[st];const it={};et.verifyingContract&&!isHexString$1(et.verifyingContract,20)&&(it[et.verifyingContract]="0x");const ot=xs.from(tt);ot.visit(nt,(st,ct)=>(st==="address"&&!isHexString$1(ct,20)&&(it[ct]="0x"),ct));for(const st in it)it[st]=await at(st);return et.verifyingContract&&it[et.verifyingContract]&&(et.verifyingContract=it[et.verifyingContract]),nt=ot.visit(nt,(st,ct)=>st==="address"&&it[ct]?it[ct]:ct),{domain:et,value:nt}}static getPayload(et,tt,nt){xs.hashDomain(et);const at={},it=[];domainFieldNames$1.forEach(ct=>{const dt=et[ct];dt!=null&&(at[ct]=domainChecks$1[ct](dt),it.push({name:ct,type:domainFieldTypes$1[ct]}))});const ot=xs.from(tt);tt=ot.types;const st=Object.assign({},tt);return assertArgument(st.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",tt),st.EIP712Domain=it,ot.encode(nt),{types:st,domain:at,primaryType:ot.primaryType,message:ot.visit(nt,(ct,dt)=>{if(ct.match(/^bytes(\d*)/))return hexlify$1(getBytes(dt));if(ct.match(/^u?int/))return getBigInt(dt).toString();switch(ct){case"address":return dt.toLowerCase();case"bool":return!!dt;case"string":return assertArgument(typeof dt=="string","invalid string","value",dt),dt}assertArgument(!1,"unsupported type","type",ct)})}}},kp=new WeakMap,ml=new WeakMap,_h=new WeakMap,Cm=new WeakSet,ty=function(et){{const at=getBaseEncoder$1(et);if(at)return at}const tt=splitArray(et).array;if(tt){const at=tt.prefix,it=this.getEncoder(at);return ot=>{assertArgument(tt.count===-1||tt.count===ot.length,`array length mismatch; expected length ${tt.count}`,"value",ot);let st=ot.map(it);return _r(this,ml).has(at)&&(st=st.map(keccak256$1)),keccak256$1(concat$2(st))}}const nt=this.types[et];if(nt){const at=id$2(_r(this,ml).get(et));return it=>{const ot=nt.map(({name:st,type:ct})=>{const dt=this.getEncoder(ct)(it[st]);return _r(this,ml).has(ct)?keccak256$1(dt):dt});return ot.unshift(at),concat$2(ot)}}assertArgument(!1,`unknown type: ${et}`,"type",et)},xs);function setify(_e){const et=new Set;return _e.forEach(tt=>et.add(tt)),Object.freeze(et)}const _kwVisibDeploy="external public payable override",KwVisibDeploy=setify(_kwVisibDeploy.split(" ")),_kwVisib="constant external internal payable private public pure view override",KwVisib=setify(_kwVisib.split(" ")),_kwTypes="constructor error event fallback function receive struct",KwTypes=setify(_kwTypes.split(" ")),_kwModifiers="calldata memory storage payable indexed",KwModifiers=setify(_kwModifiers.split(" ")),_kwOther="tuple returns",_keywords=[_kwTypes,_kwModifiers,_kwOther,_kwVisib].join(" "),Keywords=setify(_keywords.split(" ")),SimpleTokens={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},regexWhitespacePrefix=new RegExp("^(\\s*)"),regexNumberPrefix=new RegExp("^([0-9]+)"),regexIdPrefix=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),regexId=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),regexType=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var ss,qs,Bp,Bm;const Om=class Om{constructor(et){Rn(this,Bp);Rn(this,ss,void 0);Rn(this,qs,void 0);Wr(this,ss,0),Wr(this,qs,et.slice())}get offset(){return _r(this,ss)}get length(){return _r(this,qs).length-_r(this,ss)}clone(){return new Om(_r(this,qs))}reset(){Wr(this,ss,0)}popKeyword(et){const tt=this.peek();if(tt.type!=="KEYWORD"||!et.has(tt.text))throw new Error(`expected keyword ${tt.text}`);return this.pop().text}popType(et){if(this.peek().type!==et){const tt=this.peek();throw new Error(`expected ${et}; got ${tt.type} ${JSON.stringify(tt.text)}`)}return this.pop().text}popParen(){const et=this.peek();if(et.type!=="OPEN_PAREN")throw new Error("bad start");const tt=va(this,Bp,Bm).call(this,_r(this,ss)+1,et.match+1);return Wr(this,ss,et.match+1),tt}popParams(){const et=this.peek();if(et.type!=="OPEN_PAREN")throw new Error("bad start");const tt=[];for(;_r(this,ss)<et.match-1;){const nt=this.peek().linkNext;tt.push(va(this,Bp,Bm).call(this,_r(this,ss)+1,nt)),Wr(this,ss,nt)}return Wr(this,ss,et.match+1),tt}peek(){if(_r(this,ss)>=_r(this,qs).length)throw new Error("out-of-bounds");return _r(this,qs)[_r(this,ss)]}peekKeyword(et){const tt=this.peekType("KEYWORD");return tt!=null&&et.has(tt)?tt:null}peekType(et){if(this.length===0)return null;const tt=this.peek();return tt.type===et?tt.text:null}pop(){const et=this.peek();return xp(this,ss)._++,et}toString(){const et=[];for(let tt=_r(this,ss);tt<_r(this,qs).length;tt++){const nt=_r(this,qs)[tt];et.push(`${nt.type}:${nt.text}`)}return`<TokenString ${et.join(" ")}>`}};ss=new WeakMap,qs=new WeakMap,Bp=new WeakSet,Bm=function(et=0,tt=0){return new Om(_r(this,qs).slice(et,tt).map(nt=>Object.freeze(Object.assign({},nt,{match:nt.match-et,linkBack:nt.linkBack-et,linkNext:nt.linkNext-et}))))};let TokenString=Om;function lex(_e){const et=[],tt=ot=>{const st=it<_e.length?JSON.stringify(_e[it]):"$EOI";throw new Error(`invalid token ${st} at ${it}: ${ot}`)};let nt=[],at=[],it=0;for(;it<_e.length;){let ot=_e.substring(it),st=ot.match(regexWhitespacePrefix);st&&(it+=st[1].length,ot=_e.substring(it));const ct={depth:nt.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:it,value:-1};et.push(ct);let dt=SimpleTokens[ot[0]]||"";if(dt){if(ct.type=dt,ct.text=ot[0],it++,dt==="OPEN_PAREN")nt.push(et.length-1),at.push(et.length-1);else if(dt=="CLOSE_PAREN")nt.length===0&&tt("no matching open bracket"),ct.match=nt.pop(),et[ct.match].match=et.length-1,ct.depth--,ct.linkBack=at.pop(),et[ct.linkBack].linkNext=et.length-1;else if(dt==="COMMA")ct.linkBack=at.pop(),et[ct.linkBack].linkNext=et.length-1,at.push(et.length-1);else if(dt==="OPEN_BRACKET")ct.type="BRACKET";else if(dt==="CLOSE_BRACKET"){let ht=et.pop().text;if(et.length>0&&et[et.length-1].type==="NUMBER"){const pt=et.pop().text;ht=pt+ht,et[et.length-1].value=getNumber(pt)}if(et.length===0||et[et.length-1].type!=="BRACKET")throw new Error("missing opening bracket");et[et.length-1].text+=ht}continue}if(st=ot.match(regexIdPrefix),st){if(ct.text=st[1],it+=ct.text.length,Keywords.has(ct.text)){ct.type="KEYWORD";continue}if(ct.text.match(regexType)){ct.type="TYPE";continue}ct.type="ID";continue}if(st=ot.match(regexNumberPrefix),st){ct.text=st[1],ct.type="NUMBER",it+=ct.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(ot[0])} at position ${it}`)}return new TokenString(et.map(ot=>Object.freeze(ot)))}function allowSingle(_e,et){let tt=[];for(const nt in et.keys())_e.has(nt)&&tt.push(nt);if(tt.length>1)throw new Error(`conflicting types: ${tt.join(", ")}`)}function consumeName(_e,et){if(et.peekKeyword(KwTypes)){const tt=et.pop().text;if(tt!==_e)throw new Error(`expected ${_e}, got ${tt}`)}return et.popType("ID")}function consumeKeywords(_e,et){const tt=new Set;for(;;){const nt=_e.peekType("KEYWORD");if(nt==null||et&&!et.has(nt))break;if(_e.pop(),tt.has(nt))throw new Error(`duplicate keywords: ${JSON.stringify(nt)}`);tt.add(nt)}return Object.freeze(tt)}function consumeMutability(_e){let et=consumeKeywords(_e,KwVisib);return allowSingle(et,setify("constant payable nonpayable".split(" "))),allowSingle(et,setify("pure view payable nonpayable".split(" "))),et.has("view")?"view":et.has("pure")?"pure":et.has("payable")?"payable":et.has("nonpayable")?"nonpayable":et.has("constant")?"view":"nonpayable"}function consumeParams(_e,et){return _e.popParams().map(tt=>ParamType$1.from(tt,et))}function consumeGas(_e){if(_e.peekType("AT")){if(_e.pop(),_e.peekType("NUMBER"))return getBigInt(_e.pop().text);throw new Error("invalid gas")}return null}function consumeEoi(_e){if(_e.length)throw new Error(`unexpected tokens at offset ${_e.offset}: ${_e.toString()}`)}const regexArrayType=new RegExp(/^(.*)\[([0-9]*)\]$/);function verifyBasicType(_e){const et=_e.match(regexType);if(assertArgument(et,"invalid type","type",_e),_e==="uint")return"uint256";if(_e==="int")return"int256";if(et[2]){const tt=parseInt(et[2]);assertArgument(tt!==0&&tt<=32,"invalid bytes length","type",_e)}else if(et[3]){const tt=parseInt(et[3]);assertArgument(tt!==0&&tt<=256&&tt%8===0,"invalid numeric width","type",_e)}return _e}const _guard$2={},internal$1=Symbol.for("_ethers_internal"),ParamTypeInternal="_ParamTypeInternal",ErrorFragmentInternal="_ErrorInternal",EventFragmentInternal="_EventInternal",ConstructorFragmentInternal="_ConstructorInternal",FallbackFragmentInternal="_FallbackInternal",FunctionFragmentInternal="_FunctionInternal",StructFragmentInternal="_StructInternal";var ep,$m,Ss;let ParamType$1=(Ss=class{constructor(et,tt,nt,at,it,ot,st,ct){Rn(this,ep);Zr(this,"name");Zr(this,"type");Zr(this,"baseType");Zr(this,"indexed");Zr(this,"components");Zr(this,"arrayLength");Zr(this,"arrayChildren");if(assertPrivate(et,_guard$2,"ParamType"),Object.defineProperty(this,internal$1,{value:ParamTypeInternal}),ot&&(ot=Object.freeze(ot.slice())),at==="array"){if(st==null||ct==null)throw new Error("")}else if(st!=null||ct!=null)throw new Error("");if(at==="tuple"){if(ot==null)throw new Error("")}else if(ot!=null)throw new Error("");defineProperties$2(this,{name:tt,type:nt,baseType:at,indexed:it,components:ot,arrayLength:st,arrayChildren:ct})}format(et){if(et==null&&(et="sighash"),et==="json"){const nt=this.name||"";if(this.isArray()){const it=JSON.parse(this.arrayChildren.format("json"));return it.name=nt,it.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(it)}const at={type:this.baseType==="tuple"?"tuple":this.type,name:nt};return typeof this.indexed=="boolean"&&(at.indexed=this.indexed),this.isTuple()&&(at.components=this.components.map(it=>JSON.parse(it.format(et)))),JSON.stringify(at)}let tt="";return this.isArray()?(tt+=this.arrayChildren.format(et),tt+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?tt+="("+this.components.map(nt=>nt.format(et)).join(et==="full"?", ":",")+")":tt+=this.type,et!=="sighash"&&(this.indexed===!0&&(tt+=" indexed"),et==="full"&&this.name&&(tt+=" "+this.name)),tt}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(et,tt){if(this.isArray()){if(!Array.isArray(et))throw new Error("invalid array value");if(this.arrayLength!==-1&&et.length!==this.arrayLength)throw new Error("array is wrong length");const nt=this;return et.map(at=>nt.arrayChildren.walk(at,tt))}if(this.isTuple()){if(!Array.isArray(et))throw new Error("invalid tuple value");if(et.length!==this.components.length)throw new Error("array is wrong length");const nt=this;return et.map((at,it)=>nt.components[it].walk(at,tt))}return tt(this.type,et)}async walkAsync(et,tt){const nt=[],at=[et];return va(this,ep,$m).call(this,nt,et,tt,it=>{at[0]=it}),nt.length&&await Promise.all(nt),at[0]}static from(et,tt){if(Ss.isParamType(et))return et;if(typeof et=="string")try{return Ss.from(lex(et),tt)}catch{assertArgument(!1,"invalid param type","obj",et)}else if(et instanceof TokenString){let st="",ct="",dt=null;consumeKeywords(et,setify(["tuple"])).has("tuple")||et.peekType("OPEN_PAREN")?(ct="tuple",dt=et.popParams().map(_t=>Ss.from(_t)),st=`tuple(${dt.map(_t=>_t.format()).join(",")})`):(st=verifyBasicType(et.popType("TYPE")),ct=st);let ht=null,pt=null;for(;et.length&&et.peekType("BRACKET");){const _t=et.pop();ht=new Ss(_guard$2,"",st,ct,null,dt,pt,ht),pt=_t.value,st+=_t.text,ct="array",dt=null}let mt=null;if(consumeKeywords(et,KwModifiers).has("indexed")){if(!tt)throw new Error("");mt=!0}const bt=et.peekType("ID")?et.pop().text:"";if(et.length)throw new Error("leftover tokens");return new Ss(_guard$2,bt,st,ct,mt,dt,pt,ht)}const nt=et.name;assertArgument(!nt||typeof nt=="string"&&nt.match(regexId),"invalid name","obj.name",nt);let at=et.indexed;at!=null&&(assertArgument(tt,"parameter cannot be indexed","obj.indexed",et.indexed),at=!!at);let it=et.type,ot=it.match(regexArrayType);if(ot){const st=parseInt(ot[2]||"-1"),ct=Ss.from({type:ot[1],components:et.components});return new Ss(_guard$2,nt||"",it,"array",at,null,st,ct)}if(it==="tuple"||it.startsWith("tuple(")||it.startsWith("(")){const st=et.components!=null?et.components.map(dt=>Ss.from(dt)):null;return new Ss(_guard$2,nt||"",it,"tuple",at,st,null,null)}return it=verifyBasicType(et.type),new Ss(_guard$2,nt||"",it,it,at,null,null,null)}static isParamType(et){return et&&et[internal$1]===ParamTypeInternal}},ep=new WeakSet,$m=function(et,tt,nt,at){if(this.isArray()){if(!Array.isArray(tt))throw new Error("invalid array value");if(this.arrayLength!==-1&&tt.length!==this.arrayLength)throw new Error("array is wrong length");const ot=this.arrayChildren,st=tt.slice();st.forEach((ct,dt)=>{var ht;va(ht=ot,ep,$m).call(ht,et,ct,nt,pt=>{st[dt]=pt})}),at(st);return}if(this.isTuple()){const ot=this.components;let st;if(Array.isArray(tt))st=tt.slice();else{if(tt==null||typeof tt!="object")throw new Error("invalid tuple value");st=ot.map(ct=>{if(!ct.name)throw new Error("cannot use object value with unnamed components");if(!(ct.name in tt))throw new Error(`missing value for component ${ct.name}`);return tt[ct.name]})}if(st.length!==this.components.length)throw new Error("array is wrong length");st.forEach((ct,dt)=>{var ht;va(ht=ot[dt],ep,$m).call(ht,et,ct,nt,pt=>{st[dt]=pt})}),at(st);return}const it=nt(this.type,tt);it.then?et.push(async function(){at(await it)}()):at(it)},Ss),Fragment$1=class jm{constructor(et,tt,nt){Zr(this,"type");Zr(this,"inputs");assertPrivate(et,_guard$2,"Fragment"),nt=Object.freeze(nt.slice()),defineProperties$2(this,{type:tt,inputs:nt})}static from(et){if(typeof et=="string"){try{jm.from(JSON.parse(et))}catch{}return jm.from(lex(et))}if(et instanceof TokenString)switch(et.peekKeyword(KwTypes)){case"constructor":return ConstructorFragment$1.from(et);case"error":return ErrorFragment$1.from(et);case"event":return EventFragment$1.from(et);case"fallback":case"receive":return FallbackFragment.from(et);case"function":return FunctionFragment$1.from(et);case"struct":return StructFragment.from(et)}else if(typeof et=="object"){switch(et.type){case"constructor":return ConstructorFragment$1.from(et);case"error":return ErrorFragment$1.from(et);case"event":return EventFragment$1.from(et);case"fallback":case"receive":return FallbackFragment.from(et);case"function":return FunctionFragment$1.from(et);case"struct":return StructFragment.from(et)}assert$y(!1,`unsupported type: ${et.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}assertArgument(!1,"unsupported frgament object","obj",et)}static isConstructor(et){return ConstructorFragment$1.isFragment(et)}static isError(et){return ErrorFragment$1.isFragment(et)}static isEvent(et){return EventFragment$1.isFragment(et)}static isFunction(et){return FunctionFragment$1.isFragment(et)}static isStruct(et){return StructFragment.isFragment(et)}};class NamedFragment extends Fragment$1{constructor(tt,nt,at,it){super(tt,nt,it);Zr(this,"name");assertArgument(typeof at=="string"&&at.match(regexId),"invalid identifier","name",at),it=Object.freeze(it.slice()),defineProperties$2(this,{name:at})}}function joinParams(_e,et){return"("+et.map(tt=>tt.format(_e)).join(_e==="full"?", ":",")+")"}let ErrorFragment$1=class Ap extends NamedFragment{constructor(et,tt,nt){super(et,"error",tt,nt),Object.defineProperty(this,internal$1,{value:ErrorFragmentInternal})}get selector(){return id$2(this.format("sighash")).substring(0,10)}format(et){if(et==null&&(et="sighash"),et==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(nt=>JSON.parse(nt.format(et)))});const tt=[];return et!=="sighash"&&tt.push("error"),tt.push(this.name+joinParams(et,this.inputs)),tt.join(" ")}static from(et){if(Ap.isFragment(et))return et;if(typeof et=="string")return Ap.from(lex(et));if(et instanceof TokenString){const tt=consumeName("error",et),nt=consumeParams(et);return consumeEoi(et),new Ap(_guard$2,tt,nt)}return new Ap(_guard$2,et.name,et.inputs?et.inputs.map(ParamType$1.from):[])}static isFragment(et){return et&&et[internal$1]===ErrorFragmentInternal}},EventFragment$1=class Mu extends NamedFragment{constructor(tt,nt,at,it){super(tt,"event",nt,at);Zr(this,"anonymous");Object.defineProperty(this,internal$1,{value:EventFragmentInternal}),defineProperties$2(this,{anonymous:it})}get topicHash(){return id$2(this.format("sighash"))}format(tt){if(tt==null&&(tt="sighash"),tt==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(at=>JSON.parse(at.format(tt)))});const nt=[];return tt!=="sighash"&&nt.push("event"),nt.push(this.name+joinParams(tt,this.inputs)),tt!=="sighash"&&this.anonymous&&nt.push("anonymous"),nt.join(" ")}static getTopicHash(tt,nt){return nt=(nt||[]).map(it=>ParamType$1.from(it)),new Mu(_guard$2,tt,nt,!1).topicHash}static from(tt){if(Mu.isFragment(tt))return tt;if(typeof tt=="string")try{return Mu.from(lex(tt))}catch{assertArgument(!1,"invalid event fragment","obj",tt)}else if(tt instanceof TokenString){const nt=consumeName("event",tt),at=consumeParams(tt,!0),it=!!consumeKeywords(tt,setify(["anonymous"])).has("anonymous");return consumeEoi(tt),new Mu(_guard$2,nt,at,it)}return new Mu(_guard$2,tt.name,tt.inputs?tt.inputs.map(nt=>ParamType$1.from(nt,!0)):[],!!tt.anonymous)}static isFragment(tt){return tt&&tt[internal$1]===EventFragmentInternal}},ConstructorFragment$1=class Tp extends Fragment$1{constructor(tt,nt,at,it,ot){super(tt,nt,at);Zr(this,"payable");Zr(this,"gas");Object.defineProperty(this,internal$1,{value:ConstructorFragmentInternal}),defineProperties$2(this,{payable:it,gas:ot})}format(tt){if(assert$y(tt!=null&&tt!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),tt==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(at=>JSON.parse(at.format(tt)))});const nt=[`constructor${joinParams(tt,this.inputs)}`];return this.payable&&nt.push("payable"),this.gas!=null&&nt.push(`@${this.gas.toString()}`),nt.join(" ")}static from(tt){if(Tp.isFragment(tt))return tt;if(typeof tt=="string")try{return Tp.from(lex(tt))}catch{assertArgument(!1,"invalid constuctor fragment","obj",tt)}else if(tt instanceof TokenString){consumeKeywords(tt,setify(["constructor"]));const nt=consumeParams(tt),at=!!consumeKeywords(tt,KwVisibDeploy).has("payable"),it=consumeGas(tt);return consumeEoi(tt),new Tp(_guard$2,"constructor",nt,at,it)}return new Tp(_guard$2,"constructor",tt.inputs?tt.inputs.map(ParamType$1.from):[],!!tt.payable,tt.gas!=null?tt.gas:null)}static isFragment(tt){return tt&&tt[internal$1]===ConstructorFragmentInternal}};class FallbackFragment extends Fragment$1{constructor(tt,nt,at){super(tt,"fallback",nt);Zr(this,"payable");Object.defineProperty(this,internal$1,{value:FallbackFragmentInternal}),defineProperties$2(this,{payable:at})}format(tt){const nt=this.inputs.length===0?"receive":"fallback";if(tt==="json"){const at=this.payable?"payable":"nonpayable";return JSON.stringify({type:nt,stateMutability:at})}return`${nt}()${this.payable?" payable":""}`}static from(tt){if(FallbackFragment.isFragment(tt))return tt;if(typeof tt=="string")try{return FallbackFragment.from(lex(tt))}catch{assertArgument(!1,"invalid fallback fragment","obj",tt)}else if(tt instanceof TokenString){const nt=tt.toString(),at=tt.peekKeyword(setify(["fallback","receive"]));if(assertArgument(at,"type must be fallback or receive","obj",nt),tt.popKeyword(setify(["fallback","receive"]))==="receive"){const ct=consumeParams(tt);return assertArgument(ct.length===0,"receive cannot have arguments","obj.inputs",ct),consumeKeywords(tt,setify(["payable"])),consumeEoi(tt),new FallbackFragment(_guard$2,[],!0)}let ot=consumeParams(tt);ot.length?assertArgument(ot.length===1&&ot[0].type==="bytes","invalid fallback inputs","obj.inputs",ot.map(ct=>ct.format("minimal")).join(", ")):ot=[ParamType$1.from("bytes")];const st=consumeMutability(tt);if(assertArgument(st==="nonpayable"||st==="payable","fallback cannot be constants","obj.stateMutability",st),consumeKeywords(tt,setify(["returns"])).has("returns")){const ct=consumeParams(tt);assertArgument(ct.length===1&&ct[0].type==="bytes","invalid fallback outputs","obj.outputs",ct.map(dt=>dt.format("minimal")).join(", "))}return consumeEoi(tt),new FallbackFragment(_guard$2,ot,st==="payable")}if(tt.type==="receive")return new FallbackFragment(_guard$2,[],!0);if(tt.type==="fallback"){const nt=[ParamType$1.from("bytes")],at=tt.stateMutability==="payable";return new FallbackFragment(_guard$2,nt,at)}assertArgument(!1,"invalid fallback description","obj",tt)}static isFragment(tt){return tt&&tt[internal$1]===FallbackFragmentInternal}}let FunctionFragment$1=class Cu extends NamedFragment{constructor(tt,nt,at,it,ot,st){super(tt,"function",nt,it);Zr(this,"constant");Zr(this,"outputs");Zr(this,"stateMutability");Zr(this,"payable");Zr(this,"gas");Object.defineProperty(this,internal$1,{value:FunctionFragmentInternal}),ot=Object.freeze(ot.slice()),defineProperties$2(this,{constant:at==="view"||at==="pure",gas:st,outputs:ot,payable:at==="payable",stateMutability:at})}get selector(){return id$2(this.format("sighash")).substring(0,10)}format(tt){if(tt==null&&(tt="sighash"),tt==="json")return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(at=>JSON.parse(at.format(tt))),outputs:this.outputs.map(at=>JSON.parse(at.format(tt)))});const nt=[];return tt!=="sighash"&&nt.push("function"),nt.push(this.name+joinParams(tt,this.inputs)),tt!=="sighash"&&(this.stateMutability!=="nonpayable"&&nt.push(this.stateMutability),this.outputs&&this.outputs.length&&(nt.push("returns"),nt.push(joinParams(tt,this.outputs))),this.gas!=null&&nt.push(`@${this.gas.toString()}`)),nt.join(" ")}static getSelector(tt,nt){return nt=(nt||[]).map(it=>ParamType$1.from(it)),new Cu(_guard$2,tt,"view",nt,[],null).selector}static from(tt){if(Cu.isFragment(tt))return tt;if(typeof tt=="string")try{return Cu.from(lex(tt))}catch{assertArgument(!1,"invalid function fragment","obj",tt)}else if(tt instanceof TokenString){const at=consumeName("function",tt),it=consumeParams(tt),ot=consumeMutability(tt);let st=[];consumeKeywords(tt,setify(["returns"])).has("returns")&&(st=consumeParams(tt));const ct=consumeGas(tt);return consumeEoi(tt),new Cu(_guard$2,at,ot,it,st,ct)}let nt=tt.stateMutability;return nt==null&&(nt="payable",typeof tt.constant=="boolean"?(nt="view",tt.constant||(nt="payable",typeof tt.payable=="boolean"&&!tt.payable&&(nt="nonpayable"))):typeof tt.payable=="boolean"&&!tt.payable&&(nt="nonpayable")),new Cu(_guard$2,tt.name,nt,tt.inputs?tt.inputs.map(ParamType$1.from):[],tt.outputs?tt.outputs.map(ParamType$1.from):[],tt.gas!=null?tt.gas:null)}static isFragment(tt){return tt&&tt[internal$1]===FunctionFragmentInternal}};class StructFragment extends NamedFragment{constructor(et,tt,nt){super(et,"struct",tt,nt),Object.defineProperty(this,internal$1,{value:StructFragmentInternal})}format(){throw new Error("@TODO")}static from(et){if(typeof et=="string")try{return StructFragment.from(lex(et))}catch{assertArgument(!1,"invalid struct fragment","obj",et)}else if(et instanceof TokenString){const tt=consumeName("struct",et),nt=consumeParams(et);return consumeEoi(et),new StructFragment(_guard$2,tt,nt)}return new StructFragment(_guard$2,et.name,et.inputs?et.inputs.map(ParamType$1.from):[])}static isFragment(et){return et&&et[internal$1]===StructFragmentInternal}}const PanicReasons$1=new Map;PanicReasons$1.set(0,"GENERIC_PANIC");PanicReasons$1.set(1,"ASSERT_FALSE");PanicReasons$1.set(17,"OVERFLOW");PanicReasons$1.set(18,"DIVIDE_BY_ZERO");PanicReasons$1.set(33,"ENUM_RANGE_ERROR");PanicReasons$1.set(34,"BAD_STORAGE_DATA");PanicReasons$1.set(49,"STACK_UNDERFLOW");PanicReasons$1.set(50,"ARRAY_RANGE_ERROR");PanicReasons$1.set(65,"OUT_OF_MEMORY");PanicReasons$1.set(81,"UNINITIALIZED_FUNCTION_CALL");const paramTypeBytes$1=new RegExp(/^bytes([0-9]*)$/),paramTypeNumber$1=new RegExp(/^(u?int)([0-9]*)$/);let defaultCoder=null,defaultMaxInflation=1024;function getBuiltinCallException(_e,et,tt,nt){let at="missing revert data",it=null;const ot=null;let st=null;if(tt){at="execution reverted";const dt=getBytes(tt);if(tt=hexlify$1(tt),dt.length===0)at+=" (no data present; likely require(false) occurred",it="require(false)";else if(dt.length%32!==4)at+=" (could not decode reason; invalid data length)";else if(hexlify$1(dt.slice(0,4))==="0x08c379a0")try{it=nt.decode(["string"],dt.slice(4))[0],st={signature:"Error(string)",name:"Error",args:[it]},at+=`: ${JSON.stringify(it)}`}catch{at+=" (could not decode reason; invalid string data)"}else if(hexlify$1(dt.slice(0,4))==="0x4e487b71")try{const ht=Number(nt.decode(["uint256"],dt.slice(4))[0]);st={signature:"Panic(uint256)",name:"Panic",args:[ht]},it=`Panic due to ${PanicReasons$1.get(ht)||"UNKNOWN"}(${ht})`,at+=`: ${it}`}catch{at+=" (could not decode panic code)"}else at+=" (unknown custom error)"}const ct={to:et.to?getAddress$1(et.to):null,data:et.data||"0x"};return et.from&&(ct.from=getAddress$1(et.from)),makeError(at,"CALL_EXCEPTION",{action:_e,data:tt,reason:it,transaction:ct,invocation:ot,revert:st})}var Ol,Ou,wp;let AbiCoder$1=(wp=class{constructor(){Rn(this,Ol)}getDefaultValue(et){const tt=et.map(at=>va(this,Ol,Ou).call(this,ParamType$1.from(at)));return new TupleCoder$1(tt,"_").defaultValue()}encode(et,tt){assertArgumentCount(tt.length,et.length,"types/values length mismatch");const nt=et.map(ot=>va(this,Ol,Ou).call(this,ParamType$1.from(ot))),at=new TupleCoder$1(nt,"_"),it=new Writer$1;return at.encode(it,tt),it.data}decode(et,tt,nt){const at=et.map(ot=>va(this,Ol,Ou).call(this,ParamType$1.from(ot)));return new TupleCoder$1(at,"_").decode(new Reader$1(tt,nt,defaultMaxInflation))}static _setDefaultMaxInflation(et){assertArgument(typeof et=="number"&&Number.isInteger(et),"invalid defaultMaxInflation factor","value",et),defaultMaxInflation=et}static defaultAbiCoder(){return defaultCoder==null&&(defaultCoder=new wp),defaultCoder}static getBuiltinCallException(et,tt,nt){return getBuiltinCallException(et,tt,nt,wp.defaultAbiCoder())}},Ol=new WeakSet,Ou=function(et){if(et.isArray())return new ArrayCoder$1(va(this,Ol,Ou).call(this,et.arrayChildren),et.arrayLength,et.name);if(et.isTuple())return new TupleCoder$1(et.components.map(nt=>va(this,Ol,Ou).call(this,nt)),et.name);switch(et.baseType){case"address":return new AddressCoder$1(et.name);case"bool":return new BooleanCoder$1(et.name);case"string":return new StringCoder$1(et.name);case"bytes":return new BytesCoder$1(et.name);case"":return new NullCoder$1(et.name)}let tt=et.type.match(paramTypeNumber$1);if(tt){let nt=parseInt(tt[2]||"256");return assertArgument(nt!==0&&nt<=256&&nt%8===0,"invalid "+tt[1]+" bit length","param",et),new NumberCoder$1(nt/8,tt[1]==="int",et.name)}if(tt=et.type.match(paramTypeBytes$1),tt){let nt=parseInt(tt[1]);return assertArgument(nt!==0&&nt<=32,"invalid bytes length","param",et),new FixedBytesCoder$1(nt,et.name)}assertArgument(!1,"invalid type","type",et.type)},wp),LogDescription$1=class{constructor(et,tt,nt){Zr(this,"fragment");Zr(this,"name");Zr(this,"signature");Zr(this,"topic");Zr(this,"args");const at=et.name,it=et.format();defineProperties$2(this,{fragment:et,name:at,signature:it,topic:tt,args:nt})}},TransactionDescription$1=class{constructor(et,tt,nt,at){Zr(this,"fragment");Zr(this,"name");Zr(this,"args");Zr(this,"signature");Zr(this,"selector");Zr(this,"value");const it=et.name,ot=et.format();defineProperties$2(this,{fragment:et,name:it,args:nt,signature:ot,selector:tt,value:at})}},ErrorDescription$1=class{constructor(et,tt,nt){Zr(this,"fragment");Zr(this,"name");Zr(this,"args");Zr(this,"signature");Zr(this,"selector");const at=et.name,it=et.format();defineProperties$2(this,{fragment:et,name:at,args:nt,signature:it,selector:tt})}},Indexed$1=class{constructor(et){Zr(this,"hash");Zr(this,"_isIndexed");defineProperties$2(this,{hash:et,_isIndexed:!0})}static isIndexed(et){return!!(et&&et._isIndexed)}};const PanicReasons={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"},BuiltinErrors$1={"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 et="unknown panic code";return _e>=0&&_e<=255&&PanicReasons[_e.toString()]&&(et=PanicReasons[_e.toString()]),`reverted with panic code 0x${_e.toString(16)} (${et})`}}};var Ws,Ks,Ys,fs,tp,wm,rp,Em,Hl;let Interface$1=(Hl=class{constructor(et){Rn(this,tp);Rn(this,rp);Zr(this,"fragments");Zr(this,"deploy");Zr(this,"fallback");Zr(this,"receive");Rn(this,Ws,void 0);Rn(this,Ks,void 0);Rn(this,Ys,void 0);Rn(this,fs,void 0);let tt=[];typeof et=="string"?tt=JSON.parse(et):tt=et,Wr(this,Ys,new Map),Wr(this,Ws,new Map),Wr(this,Ks,new Map);const nt=[];for(const ot of tt)try{nt.push(Fragment$1.from(ot))}catch(st){console.log(`[Warning] Invalid Fragment ${JSON.stringify(ot)}:`,st.message)}defineProperties$2(this,{fragments:Object.freeze(nt)});let at=null,it=!1;Wr(this,fs,this.getAbiCoder()),this.fragments.forEach((ot,st)=>{let ct;switch(ot.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}defineProperties$2(this,{deploy:ot});return;case"fallback":ot.inputs.length===0?it=!0:(assertArgument(!at||ot.payable!==at.payable,"conflicting fallback fragments",`fragments[${st}]`,ot),at=ot,it=at.payable);return;case"function":ct=_r(this,Ys);break;case"event":ct=_r(this,Ks);break;case"error":ct=_r(this,Ws);break;default:return}const dt=ot.format();ct.has(dt)||ct.set(dt,ot)}),this.deploy||defineProperties$2(this,{deploy:ConstructorFragment$1.from("constructor()")}),defineProperties$2(this,{fallback:at,receive:it})}format(et){const tt=et?"minimal":"full";return this.fragments.map(at=>at.format(tt))}formatJson(){const et=this.fragments.map(tt=>tt.format("json"));return JSON.stringify(et.map(tt=>JSON.parse(tt)))}getAbiCoder(){return AbiCoder$1.defaultAbiCoder()}getFunctionName(et){const tt=va(this,tp,wm).call(this,et,null,!1);return assertArgument(tt,"no matching function","key",et),tt.name}hasFunction(et){return!!va(this,tp,wm).call(this,et,null,!1)}getFunction(et,tt){return va(this,tp,wm).call(this,et,tt||null,!0)}forEachFunction(et){const tt=Array.from(_r(this,Ys).keys());tt.sort((nt,at)=>nt.localeCompare(at));for(let nt=0;nt<tt.length;nt++){const at=tt[nt];et(_r(this,Ys).get(at),nt)}}getEventName(et){const tt=va(this,rp,Em).call(this,et,null,!1);return assertArgument(tt,"no matching event","key",et),tt.name}hasEvent(et){return!!va(this,rp,Em).call(this,et,null,!1)}getEvent(et,tt){return va(this,rp,Em).call(this,et,tt||null,!0)}forEachEvent(et){const tt=Array.from(_r(this,Ks).keys());tt.sort((nt,at)=>nt.localeCompare(at));for(let nt=0;nt<tt.length;nt++){const at=tt[nt];et(_r(this,Ks).get(at),nt)}}getError(et,tt){if(isHexString$1(et)){const at=et.toLowerCase();if(BuiltinErrors$1[at])return ErrorFragment$1.from(BuiltinErrors$1[at].signature);for(const it of _r(this,Ws).values())if(at===it.selector)return it;return null}if(et.indexOf("(")===-1){const at=[];for(const[it,ot]of _r(this,Ws))it.split("(")[0]===et&&at.push(ot);if(at.length===0)return et==="Error"?ErrorFragment$1.from("error Error(string)"):et==="Panic"?ErrorFragment$1.from("error Panic(uint256)"):null;if(at.length>1){const it=at.map(ot=>JSON.stringify(ot.format())).join(", ");assertArgument(!1,`ambiguous error description (i.e. ${it})`,"name",et)}return at[0]}if(et=ErrorFragment$1.from(et).format(),et==="Error(string)")return ErrorFragment$1.from("error Error(string)");if(et==="Panic(uint256)")return ErrorFragment$1.from("error Panic(uint256)");const nt=_r(this,Ws).get(et);return nt||null}forEachError(et){const tt=Array.from(_r(this,Ws).keys());tt.sort((nt,at)=>nt.localeCompare(at));for(let nt=0;nt<tt.length;nt++){const at=tt[nt];et(_r(this,Ws).get(at),nt)}}_decodeParams(et,tt){return _r(this,fs).decode(et,tt)}_encodeParams(et,tt){return _r(this,fs).encode(et,tt)}encodeDeploy(et){return this._encodeParams(this.deploy.inputs,et||[])}decodeErrorResult(et,tt){if(typeof et=="string"){const nt=this.getError(et);assertArgument(nt,"unknown error","fragment",et),et=nt}return assertArgument(dataSlice(tt,0,4)===et.selector,`data signature does not match error ${et.name}.`,"data",tt),this._decodeParams(et.inputs,dataSlice(tt,4))}encodeErrorResult(et,tt){if(typeof et=="string"){const nt=this.getError(et);assertArgument(nt,"unknown error","fragment",et),et=nt}return concat$2([et.selector,this._encodeParams(et.inputs,tt||[])])}decodeFunctionData(et,tt){if(typeof et=="string"){const nt=this.getFunction(et);assertArgument(nt,"unknown function","fragment",et),et=nt}return assertArgument(dataSlice(tt,0,4)===et.selector,`data signature does not match function ${et.name}.`,"data",tt),this._decodeParams(et.inputs,dataSlice(tt,4))}encodeFunctionData(et,tt){if(typeof et=="string"){const nt=this.getFunction(et);assertArgument(nt,"unknown function","fragment",et),et=nt}return concat$2([et.selector,this._encodeParams(et.inputs,tt||[])])}decodeFunctionResult(et,tt){if(typeof et=="string"){const it=this.getFunction(et);assertArgument(it,"unknown function","fragment",et),et=it}let nt="invalid length for result data";const at=getBytesCopy(tt);if(at.length%32===0)try{return _r(this,fs).decode(et.outputs,at)}catch{nt="could not decode result data"}assert$y(!1,nt,"BAD_DATA",{value:hexlify$1(at),info:{method:et.name,signature:et.format()}})}makeError(et,tt){const nt=getBytes(et,"data"),at=AbiCoder$1.getBuiltinCallException("call",tt,nt),it="execution reverted (unknown custom error)";if(at.message.startsWith(it)){const st=hexlify$1(nt.slice(0,4)),ct=this.getError(st);if(ct)try{const dt=_r(this,fs).decode(ct.inputs,nt.slice(4));at.revert={name:ct.name,signature:ct.format(),args:dt},at.reason=at.revert.signature,at.message=`execution reverted: ${at.reason}`}catch{at.message="execution reverted (coult not decode custom error)"}}const ot=this.parseTransaction(tt);return ot&&(at.invocation={method:ot.name,signature:ot.signature,args:ot.args}),at}encodeFunctionResult(et,tt){if(typeof et=="string"){const nt=this.getFunction(et);assertArgument(nt,"unknown function","fragment",et),et=nt}return hexlify$1(_r(this,fs).encode(et.outputs,tt||[]))}encodeFilterTopics(et,tt){if(typeof et=="string"){const it=this.getEvent(et);assertArgument(it,"unknown event","eventFragment",et),et=it}assert$y(tt.length<=et.inputs.length,`too many arguments for ${et.format()}`,"UNEXPECTED_ARGUMENT",{count:tt.length,expectedCount:et.inputs.length});const nt=[];et.anonymous||nt.push(et.topicHash);const at=(it,ot)=>it.type==="string"?id$2(ot):it.type==="bytes"?keccak256$1(hexlify$1(ot)):(it.type==="bool"&&typeof ot=="boolean"?ot=ot?"0x01":"0x00":it.type.match(/^u?int/)?ot=toBeHex(ot):it.type.match(/^bytes/)?ot=zeroPadBytes(ot,32):it.type==="address"&&_r(this,fs).encode(["address"],[ot]),zeroPadValue(hexlify$1(ot),32));for(tt.forEach((it,ot)=>{const st=et.inputs[ot];if(!st.indexed){assertArgument(it==null,"cannot filter non-indexed parameters; must be null","contract."+st.name,it);return}it==null?nt.push(null):st.baseType==="array"||st.baseType==="tuple"?assertArgument(!1,"filtering with tuples or arrays not supported","contract."+st.name,it):Array.isArray(it)?nt.push(it.map(ct=>at(st,ct))):nt.push(at(st,it))});nt.length&&nt[nt.length-1]===null;)nt.pop();return nt}encodeEventLog(et,tt){if(typeof et=="string"){const ot=this.getEvent(et);assertArgument(ot,"unknown event","eventFragment",et),et=ot}const nt=[],at=[],it=[];return et.anonymous||nt.push(et.topicHash),assertArgument(tt.length===et.inputs.length,"event arguments/values mismatch","values",tt),et.inputs.forEach((ot,st)=>{const ct=tt[st];if(ot.indexed)if(ot.type==="string")nt.push(id$2(ct));else if(ot.type==="bytes")nt.push(keccak256$1(ct));else{if(ot.baseType==="tuple"||ot.baseType==="array")throw new Error("not implemented");nt.push(_r(this,fs).encode([ot.type],[ct]))}else at.push(ot),it.push(ct)}),{data:_r(this,fs).encode(at,it),topics:nt}}decodeEventLog(et,tt,nt){if(typeof et=="string"){const vt=this.getEvent(et);assertArgument(vt,"unknown event","eventFragment",et),et=vt}if(nt!=null&&!et.anonymous){const vt=et.topicHash;assertArgument(isHexString$1(nt[0],32)&&nt[0].toLowerCase()===vt,"fragment/topic mismatch","topics[0]",nt[0]),nt=nt.slice(1)}const at=[],it=[],ot=[];et.inputs.forEach((vt,bt)=>{vt.indexed?vt.type==="string"||vt.type==="bytes"||vt.baseType==="tuple"||vt.baseType==="array"?(at.push(ParamType$1.from({type:"bytes32",name:vt.name})),ot.push(!0)):(at.push(vt),ot.push(!1)):(it.push(vt),ot.push(!1))});const st=nt!=null?_r(this,fs).decode(at,concat$2(nt)):null,ct=_r(this,fs).decode(it,tt,!0),dt=[],ht=[];let pt=0,mt=0;return et.inputs.forEach((vt,bt)=>{let _t=null;if(vt.indexed)if(st==null)_t=new Indexed$1(null);else if(ot[bt])_t=new Indexed$1(st[mt++]);else try{_t=st[mt++]}catch(wt){_t=wt}else try{_t=ct[pt++]}catch(wt){_t=wt}dt.push(_t),ht.push(vt.name||null)}),Result.fromItems(dt,ht)}parseTransaction(et){const tt=getBytes(et.data,"tx.data"),nt=getBigInt(et.value!=null?et.value:0,"tx.value"),at=this.getFunction(hexlify$1(tt.slice(0,4)));if(!at)return null;const it=_r(this,fs).decode(at.inputs,tt.slice(4));return new TransactionDescription$1(at,at.selector,it,nt)}parseCallResult(et){throw new Error("@TODO")}parseLog(et){const tt=this.getEvent(et.topics[0]);return!tt||tt.anonymous?null:new LogDescription$1(tt,tt.topicHash,this.decodeEventLog(tt,et.data,et.topics))}parseError(et){const tt=hexlify$1(et),nt=this.getError(dataSlice(tt,0,4));if(!nt)return null;const at=_r(this,fs).decode(nt.inputs,dataSlice(tt,4));return new ErrorDescription$1(nt,nt.selector,at)}static from(et){return et instanceof Hl?et:typeof et=="string"?new Hl(JSON.parse(et)):typeof et.format=="function"?new Hl(et.format("json")):new Hl(et)}},Ws=new WeakMap,Ks=new WeakMap,Ys=new WeakMap,fs=new WeakMap,tp=new WeakSet,wm=function(et,tt,nt){if(isHexString$1(et)){const it=et.toLowerCase();for(const ot of _r(this,Ys).values())if(it===ot.selector)return ot;return null}if(et.indexOf("(")===-1){const it=[];for(const[ot,st]of _r(this,Ys))ot.split("(")[0]===et&&it.push(st);if(tt){const ot=tt.length>0?tt[tt.length-1]:null;let st=tt.length,ct=!0;Typed.isTyped(ot)&&ot.type==="overrides"&&(ct=!1,st--);for(let dt=it.length-1;dt>=0;dt--){const ht=it[dt].inputs.length;ht!==st&&(!ct||ht!==st-1)&&it.splice(dt,1)}for(let dt=it.length-1;dt>=0;dt--){const ht=it[dt].inputs;for(let pt=0;pt<tt.length;pt++)if(Typed.isTyped(tt[pt])){if(pt>=ht.length){if(tt[pt].type==="overrides")continue;it.splice(dt,1);break}if(tt[pt].type!==ht[pt].baseType){it.splice(dt,1);break}}}}if(it.length===1&&tt&&tt.length!==it[0].inputs.length){const ot=tt[tt.length-1];(ot==null||Array.isArray(ot)||typeof ot!="object")&&it.splice(0,1)}if(it.length===0)return null;if(it.length>1&&nt){const ot=it.map(st=>JSON.stringify(st.format())).join(", ");assertArgument(!1,`ambiguous function description (i.e. matches ${ot})`,"key",et)}return it[0]}const at=_r(this,Ys).get(FunctionFragment$1.from(et).format());return at||null},rp=new WeakSet,Em=function(et,tt,nt){if(isHexString$1(et)){const it=et.toLowerCase();for(const ot of _r(this,Ks).values())if(it===ot.topicHash)return ot;return null}if(et.indexOf("(")===-1){const it=[];for(const[ot,st]of _r(this,Ks))ot.split("(")[0]===et&&it.push(st);if(tt){for(let ot=it.length-1;ot>=0;ot--)it[ot].inputs.length<tt.length&&it.splice(ot,1);for(let ot=it.length-1;ot>=0;ot--){const st=it[ot].inputs;for(let ct=0;ct<tt.length;ct++)if(Typed.isTyped(tt[ct])&&tt[ct].type!==st[ct].baseType){it.splice(ot,1);break}}}if(it.length===0)return null;if(it.length>1&&nt){const ot=it.map(st=>JSON.stringify(st.format())).join(", ");assertArgument(!1,`ambiguous event description (i.e. matches ${ot})`,"key",et)}return it[0]}const at=_r(this,Ks).get(EventFragment$1.from(et).format());return at||null},Hl);const BN_0$2=BigInt(0);function getValue$6(_e){return _e??null}function toJson(_e){return _e==null?null:_e.toString()}class FeeData{constructor(et,tt,nt){Zr(this,"gasPrice");Zr(this,"maxFeePerGas");Zr(this,"maxPriorityFeePerGas");defineProperties$2(this,{gasPrice:getValue$6(et),maxFeePerGas:getValue$6(tt),maxPriorityFeePerGas:getValue$6(nt)})}toJSON(){const{gasPrice:et,maxFeePerGas:tt,maxPriorityFeePerGas:nt}=this;return{_type:"FeeData",gasPrice:toJson(et),maxFeePerGas:toJson(tt),maxPriorityFeePerGas:toJson(nt)}}}function copyRequest(_e){const et={};_e.to&&(et.to=_e.to),_e.from&&(et.from=_e.from),_e.data&&(et.data=hexlify$1(_e.data));const tt="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const at of tt)!(at in _e)||_e[at]==null||(et[at]=getBigInt(_e[at],`request.${at}`));const nt="type,nonce".split(/,/);for(const at of nt)!(at in _e)||_e[at]==null||(et[at]=getNumber(_e[at],`request.${at}`));return _e.accessList&&(et.accessList=accessListify$1(_e.accessList)),"blockTag"in _e&&(et.blockTag=_e.blockTag),"enableCcipRead"in _e&&(et.enableCcipRead=!!_e.enableCcipRead),"customData"in _e&&(et.customData=_e.customData),et}var yl;class Block{constructor(et,tt){Zr(this,"provider");Zr(this,"number");Zr(this,"hash");Zr(this,"timestamp");Zr(this,"parentHash");Zr(this,"parentBeaconBlockRoot");Zr(this,"nonce");Zr(this,"difficulty");Zr(this,"gasLimit");Zr(this,"gasUsed");Zr(this,"stateRoot");Zr(this,"receiptsRoot");Zr(this,"blobGasUsed");Zr(this,"excessBlobGas");Zr(this,"miner");Zr(this,"extraData");Zr(this,"baseFeePerGas");Rn(this,yl,void 0);Wr(this,yl,et.transactions.map(nt=>typeof nt!="string"?new TransactionResponse(nt,tt):nt)),defineProperties$2(this,{provider:tt,hash:getValue$6(et.hash),number:et.number,timestamp:et.timestamp,parentHash:et.parentHash,parentBeaconBlockRoot:et.parentBeaconBlockRoot,nonce:et.nonce,difficulty:et.difficulty,gasLimit:et.gasLimit,gasUsed:et.gasUsed,blobGasUsed:et.blobGasUsed,excessBlobGas:et.excessBlobGas,miner:et.miner,extraData:et.extraData,baseFeePerGas:getValue$6(et.baseFeePerGas),stateRoot:et.stateRoot,receiptsRoot:et.receiptsRoot})}get transactions(){return _r(this,yl).map(et=>typeof et=="string"?et:et.hash)}get prefetchedTransactions(){const et=_r(this,yl).slice();return et.length===0?[]:(assert$y(typeof et[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),et)}toJSON(){const{baseFeePerGas:et,difficulty:tt,extraData:nt,gasLimit:at,gasUsed:it,hash:ot,miner:st,nonce:ct,number:dt,parentHash:ht,parentBeaconBlockRoot:pt,stateRoot:mt,receiptsRoot:vt,timestamp:bt,transactions:_t}=this;return{_type:"Block",baseFeePerGas:toJson(et),difficulty:toJson(tt),extraData:nt,gasLimit:toJson(at),gasUsed:toJson(it),blobGasUsed:toJson(this.blobGasUsed),excessBlobGas:toJson(this.excessBlobGas),hash:ot,miner:st,nonce:ct,number:dt,parentHash:ht,timestamp:bt,parentBeaconBlockRoot:pt,stateRoot:mt,receiptsRoot:vt,transactions:_t}}[Symbol.iterator](){let et=0;const tt=this.transactions;return{next:()=>et<this.length?{value:tt[et++],done:!1}:{value:void 0,done:!0}}}get length(){return _r(this,yl).length}get date(){return this.timestamp==null?null:new Date(this.timestamp*1e3)}async getTransaction(et){let tt;if(typeof et=="number")tt=_r(this,yl)[et];else{const nt=et.toLowerCase();for(const at of _r(this,yl))if(typeof at=="string"){if(at!==nt)continue;tt=at;break}else{if(at.hash===nt)continue;tt=at;break}}if(tt==null)throw new Error("no such tx");return typeof tt=="string"?await this.provider.getTransaction(tt):tt}getPrefetchedTransaction(et){const tt=this.prefetchedTransactions;if(typeof et=="number")return tt[et];et=et.toLowerCase();for(const nt of tt)if(nt.hash===et)return nt;assertArgument(!1,"no matching transaction","indexOrHash",et)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return createOrphanedBlockFilter(this)}}yl=new WeakMap;class Log{constructor(et,tt){Zr(this,"provider");Zr(this,"transactionHash");Zr(this,"blockHash");Zr(this,"blockNumber");Zr(this,"removed");Zr(this,"address");Zr(this,"data");Zr(this,"topics");Zr(this,"index");Zr(this,"transactionIndex");this.provider=tt;const nt=Object.freeze(et.topics.slice());defineProperties$2(this,{transactionHash:et.transactionHash,blockHash:et.blockHash,blockNumber:et.blockNumber,removed:et.removed,address:et.address,data:et.data,topics:nt,index:et.index,transactionIndex:et.transactionIndex})}toJSON(){const{address:et,blockHash:tt,blockNumber:nt,data:at,index:it,removed:ot,topics:st,transactionHash:ct,transactionIndex:dt}=this;return{_type:"log",address:et,blockHash:tt,blockNumber:nt,data:at,index:it,removed:ot,topics:st,transactionHash:ct,transactionIndex:dt}}async getBlock(){const et=await this.provider.getBlock(this.blockHash);return assert$y(!!et,"failed to find transaction","UNKNOWN_ERROR",{}),et}async getTransaction(){const et=await this.provider.getTransaction(this.transactionHash);return assert$y(!!et,"failed to find transaction","UNKNOWN_ERROR",{}),et}async getTransactionReceipt(){const et=await this.provider.getTransactionReceipt(this.transactionHash);return assert$y(!!et,"failed to find transaction receipt","UNKNOWN_ERROR",{}),et}removedEvent(){return createRemovedLogFilter(this)}}var jp;class TransactionReceipt{constructor(et,tt){Zr(this,"provider");Zr(this,"to");Zr(this,"from");Zr(this,"contractAddress");Zr(this,"hash");Zr(this,"index");Zr(this,"blockHash");Zr(this,"blockNumber");Zr(this,"logsBloom");Zr(this,"gasUsed");Zr(this,"blobGasUsed");Zr(this,"cumulativeGasUsed");Zr(this,"gasPrice");Zr(this,"blobGasPrice");Zr(this,"type");Zr(this,"status");Zr(this,"root");Rn(this,jp,void 0);Wr(this,jp,Object.freeze(et.logs.map(at=>new Log(at,tt))));let nt=BN_0$2;et.effectiveGasPrice!=null?nt=et.effectiveGasPrice:et.gasPrice!=null&&(nt=et.gasPrice),defineProperties$2(this,{provider:tt,to:et.to,from:et.from,contractAddress:et.contractAddress,hash:et.hash,index:et.index,blockHash:et.blockHash,blockNumber:et.blockNumber,logsBloom:et.logsBloom,gasUsed:et.gasUsed,cumulativeGasUsed:et.cumulativeGasUsed,blobGasUsed:et.blobGasUsed,gasPrice:nt,blobGasPrice:et.blobGasPrice,type:et.type,status:et.status,root:et.root})}get logs(){return _r(this,jp)}toJSON(){const{to:et,from:tt,contractAddress:nt,hash:at,index:it,blockHash:ot,blockNumber:st,logsBloom:ct,logs:dt,status:ht,root:pt}=this;return{_type:"TransactionReceipt",blockHash:ot,blockNumber:st,contractAddress:nt,cumulativeGasUsed:toJson(this.cumulativeGasUsed),from:tt,gasPrice:toJson(this.gasPrice),blobGasUsed:toJson(this.blobGasUsed),blobGasPrice:toJson(this.blobGasPrice),gasUsed:toJson(this.gasUsed),hash:at,index:it,logs:dt,logsBloom:ct,root:pt,status:ht,to:et}}get length(){return this.logs.length}[Symbol.iterator](){let et=0;return{next:()=>et<this.length?{value:this.logs[et++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const et=await this.provider.getBlock(this.blockHash);if(et==null)throw new Error("TODO");return et}async getTransaction(){const et=await this.provider.getTransaction(this.hash);if(et==null)throw new Error("TODO");return et}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return createRemovedTransactionFilter(this)}reorderedEvent(et){return assert$y(!et||et.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),createReorderedTransactionFilter(this,et)}}jp=new WeakMap;var Rl;const Xm=class Xm{constructor(et,tt){Zr(this,"provider");Zr(this,"blockNumber");Zr(this,"blockHash");Zr(this,"index");Zr(this,"hash");Zr(this,"type");Zr(this,"to");Zr(this,"from");Zr(this,"nonce");Zr(this,"gasLimit");Zr(this,"gasPrice");Zr(this,"maxPriorityFeePerGas");Zr(this,"maxFeePerGas");Zr(this,"maxFeePerBlobGas");Zr(this,"data");Zr(this,"value");Zr(this,"chainId");Zr(this,"signature");Zr(this,"accessList");Zr(this,"blobVersionedHashes");Rn(this,Rl,void 0);this.provider=tt,this.blockNumber=et.blockNumber!=null?et.blockNumber:null,this.blockHash=et.blockHash!=null?et.blockHash:null,this.hash=et.hash,this.index=et.index,this.type=et.type,this.from=et.from,this.to=et.to||null,this.gasLimit=et.gasLimit,this.nonce=et.nonce,this.data=et.data,this.value=et.value,this.gasPrice=et.gasPrice,this.maxPriorityFeePerGas=et.maxPriorityFeePerGas!=null?et.maxPriorityFeePerGas:null,this.maxFeePerGas=et.maxFeePerGas!=null?et.maxFeePerGas:null,this.maxFeePerBlobGas=et.maxFeePerBlobGas!=null?et.maxFeePerBlobGas:null,this.chainId=et.chainId,this.signature=et.signature,this.accessList=et.accessList!=null?et.accessList:null,this.blobVersionedHashes=et.blobVersionedHashes!=null?et.blobVersionedHashes:null,Wr(this,Rl,-1)}toJSON(){const{blockNumber:et,blockHash:tt,index:nt,hash:at,type:it,to:ot,from:st,nonce:ct,data:dt,signature:ht,accessList:pt,blobVersionedHashes:mt}=this;return{_type:"TransactionResponse",accessList:pt,blockNumber:et,blockHash:tt,blobVersionedHashes:mt,chainId:toJson(this.chainId),data:dt,from:st,gasLimit:toJson(this.gasLimit),gasPrice:toJson(this.gasPrice),hash:at,maxFeePerGas:toJson(this.maxFeePerGas),maxPriorityFeePerGas:toJson(this.maxPriorityFeePerGas),maxFeePerBlobGas:toJson(this.maxFeePerBlobGas),nonce:ct,signature:ht,to:ot,index:nt,type:it,value:toJson(this.value)}}async getBlock(){let et=this.blockNumber;if(et==null){const nt=await this.getTransaction();nt&&(et=nt.blockNumber)}if(et==null)return null;const tt=this.provider.getBlock(et);if(tt==null)throw new Error("TODO");return tt}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(this.blockNumber==null){const{tx:tt,blockNumber:nt}=await resolveProperties$1({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return tt==null||tt.blockNumber==null?0:nt-tt.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(et,tt){const nt=et??1,at=tt??0;let it=_r(this,Rl),ot=-1,st=it===-1;const ct=async()=>{if(st)return null;const{blockNumber:mt,nonce:vt}=await resolveProperties$1({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(vt<this.nonce){it=mt;return}if(st)return null;const bt=await this.getTransaction();if(!(bt&&bt.blockNumber!=null))for(ot===-1&&(ot=it-3,ot<_r(this,Rl)&&(ot=_r(this,Rl)));ot<=mt;){if(st)return null;const _t=await this.provider.getBlock(ot,!0);if(_t==null)return;for(const wt of _t)if(wt===this.hash)return;for(let wt=0;wt<_t.length;wt++){const Et=await _t.getTransaction(wt);if(Et.from===this.from&&Et.nonce===this.nonce){if(st)return null;const St=await this.provider.getTransactionReceipt(Et.hash);if(St==null||mt-St.blockNumber+1<nt)return;let Tt="replaced";Et.data===this.data&&Et.to===this.to&&Et.value===this.value?Tt="repriced":Et.data==="0x"&&Et.from===Et.to&&Et.value===BN_0$2&&(Tt="cancelled"),assert$y(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:Tt==="replaced"||Tt==="cancelled",reason:Tt,replacement:Et.replaceableTransaction(it),hash:Et.hash,receipt:St})}}ot++}},dt=mt=>{if(mt==null||mt.status!==0)return mt;assert$y(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:mt.to,from:mt.from,data:""},receipt:mt})},ht=await this.provider.getTransactionReceipt(this.hash);if(nt===0)return dt(ht);if(ht){if(await ht.confirmations()>=nt)return dt(ht)}else if(await ct(),nt===0)return null;return await new Promise((mt,vt)=>{const bt=[],_t=()=>{bt.forEach(Et=>Et())};if(bt.push(()=>{st=!0}),at>0){const Et=setTimeout(()=>{_t(),vt(makeError("wait for transaction timeout","TIMEOUT"))},at);bt.push(()=>{clearTimeout(Et)})}const wt=async Et=>{if(await Et.confirmations()>=nt){_t();try{mt(dt(Et))}catch(St){vt(St)}}};if(bt.push(()=>{this.provider.off(this.hash,wt)}),this.provider.on(this.hash,wt),it>=0){const Et=async()=>{try{await ct()}catch(St){if(isError$3(St,"TRANSACTION_REPLACED")){_t(),vt(St);return}}st||this.provider.once("block",Et)};bt.push(()=>{this.provider.off("block",Et)}),this.provider.once("block",Et)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return assert$y(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),createRemovedTransactionFilter(this)}reorderedEvent(et){return assert$y(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),assert$y(!et||et.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),createReorderedTransactionFilter(this,et)}replaceableTransaction(et){assertArgument(Number.isInteger(et)&&et>=0,"invalid startBlock","startBlock",et);const tt=new Xm(this,this.provider);return Wr(tt,Rl,et),tt}};Rl=new WeakMap;let TransactionResponse=Xm;function createOrphanedBlockFilter(_e){return{orphan:"drop-block",hash:_e.hash,number:_e.number}}function createReorderedTransactionFilter(_e,et){return{orphan:"reorder-transaction",tx:_e,other:et}}function createRemovedTransactionFilter(_e){return{orphan:"drop-transaction",tx:_e}}function createRemovedLogFilter(_e){return{orphan:"drop-log",log:{transactionHash:_e.transactionHash,blockHash:_e.blockHash,blockNumber:_e.blockNumber,address:_e.address,data:_e.data,topics:Object.freeze(_e.topics.slice()),index:_e.index}}}class EventLog extends Log{constructor(tt,nt,at){super(tt,tt.provider);Zr(this,"interface");Zr(this,"fragment");Zr(this,"args");const it=nt.decodeEventLog(at,tt.data,tt.topics);defineProperties$2(this,{args:it,fragment:at,interface:nt})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class UndecodedEventLog extends Log{constructor(tt,nt){super(tt,tt.provider);Zr(this,"error");defineProperties$2(this,{error:nt})}}var np;class ContractTransactionReceipt extends TransactionReceipt{constructor(tt,nt,at){super(at,nt);Rn(this,np,void 0);Wr(this,np,tt)}get logs(){return super.logs.map(tt=>{const nt=tt.topics.length?_r(this,np).getEvent(tt.topics[0]):null;if(nt)try{return new EventLog(tt,_r(this,np),nt)}catch(at){return new UndecodedEventLog(tt,at)}return tt})}}np=new WeakMap;var Up;class ContractTransactionResponse extends TransactionResponse{constructor(tt,nt,at){super(at,nt);Rn(this,Up,void 0);Wr(this,Up,tt)}async wait(tt,nt){const at=await super.wait(tt,nt);return at==null?null:new ContractTransactionReceipt(_r(this,Up),this.provider,at)}}Up=new WeakMap;class ContractUnknownEventPayload extends EventPayload{constructor(tt,nt,at,it){super(tt,nt,at);Zr(this,"log");defineProperties$2(this,{log:it})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class ContractEventPayload extends ContractUnknownEventPayload{constructor(et,tt,nt,at,it){super(et,tt,nt,new EventLog(it,et.interface,at));const ot=et.interface.decodeEventLog(at,this.log.data,this.log.topics);defineProperties$2(this,{args:ot,fragment:at})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const BN_0$1=BigInt(0);function canCall(_e){return _e&&typeof _e.call=="function"}function canEstimate(_e){return _e&&typeof _e.estimateGas=="function"}function canResolve(_e){return _e&&typeof _e.resolveName=="function"}function canSend(_e){return _e&&typeof _e.sendTransaction=="function"}function getResolver(_e){if(_e!=null){if(canResolve(_e))return _e;if(_e.provider)return _e.provider}}var qp;class PreparedTopicFilter{constructor(et,tt,nt){Rn(this,qp,void 0);Zr(this,"fragment");if(defineProperties$2(this,{fragment:tt}),tt.inputs.length<nt.length)throw new Error("too many arguments");const at=getRunner(et.runner,"resolveName"),it=canResolve(at)?at:null;Wr(this,qp,async function(){const ot=await Promise.all(tt.inputs.map((st,ct)=>nt[ct]==null?null:st.walkAsync(nt[ct],(ht,pt)=>ht==="address"?Array.isArray(pt)?Promise.all(pt.map(mt=>resolveAddress(mt,it))):resolveAddress(pt,it):pt)));return et.interface.encodeFilterTopics(tt,ot)}())}getTopicFilter(){return _r(this,qp)}}qp=new WeakMap;function getRunner(_e,et){return _e==null?null:typeof _e[et]=="function"?_e:_e.provider&&typeof _e.provider[et]=="function"?_e.provider:null}function getProvider(_e){return _e==null?null:_e.provider||null}async function copyOverrides(_e,et){const tt=Typed.dereference(_e,"overrides");assertArgument(typeof tt=="object","invalid overrides parameter","overrides",_e);const nt=copyRequest(tt);return assertArgument(nt.to==null||(et||[]).indexOf("to")>=0,"cannot override to","overrides.to",nt.to),assertArgument(nt.data==null||(et||[]).indexOf("data")>=0,"cannot override data","overrides.data",nt.data),nt.from&&(nt.from=nt.from),nt}async function resolveArgs(_e,et,tt){const nt=getRunner(_e,"resolveName"),at=canResolve(nt)?nt:null;return await Promise.all(et.map((it,ot)=>it.walkAsync(tt[ot],(st,ct)=>(ct=Typed.dereference(ct,st),st==="address"?resolveAddress(ct,at):ct))))}function buildWrappedFallback(_e){const et=async function(ot){const st=await copyOverrides(ot,["data"]);st.to=await _e.getAddress(),st.from&&(st.from=await resolveAddress(st.from,getResolver(_e.runner)));const ct=_e.interface,dt=getBigInt(st.value||BN_0$1,"overrides.value")===BN_0$1,ht=(st.data||"0x")==="0x";ct.fallback&&!ct.fallback.payable&&ct.receive&&!ht&&!dt&&assertArgument(!1,"cannot send data to receive or send value to non-payable fallback","overrides",ot),assertArgument(ct.fallback||ht,"cannot send data to receive-only contract","overrides.data",st.data);const pt=ct.receive||ct.fallback&&ct.fallback.payable;return assertArgument(pt||dt,"cannot send value to non-payable fallback","overrides.value",st.value),assertArgument(ct.fallback||ht,"cannot send data to receive-only contract","overrides.data",st.data),st},tt=async function(ot){const st=getRunner(_e.runner,"call");assert$y(canCall(st),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const ct=await et(ot);try{return await st.call(ct)}catch(dt){throw isCallException(dt)&&dt.data?_e.interface.makeError(dt.data,ct):dt}},nt=async function(ot){const st=_e.runner;assert$y(canSend(st),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const ct=await st.sendTransaction(await et(ot)),dt=getProvider(_e.runner);return new ContractTransactionResponse(_e.interface,dt,ct)},at=async function(ot){const st=getRunner(_e.runner,"estimateGas");return assert$y(canEstimate(st),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await st.estimateGas(await et(ot))},it=async ot=>await nt(ot);return defineProperties$2(it,{_contract:_e,estimateGas:at,populateTransaction:et,send:nt,staticCall:tt}),it}function buildWrappedMethod(_e,et){const tt=function(...dt){const ht=_e.interface.getFunction(et,dt);return assert$y(ht,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:et,args:dt}}),ht},nt=async function(...dt){const ht=tt(...dt);let pt={};if(ht.inputs.length+1===dt.length&&(pt=await copyOverrides(dt.pop()),pt.from&&(pt.from=await resolveAddress(pt.from,getResolver(_e.runner)))),ht.inputs.length!==dt.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const mt=await resolveArgs(_e.runner,ht.inputs,dt);return Object.assign({},pt,await resolveProperties$1({to:_e.getAddress(),data:_e.interface.encodeFunctionData(ht,mt)}))},at=async function(...dt){const ht=await st(...dt);return ht.length===1?ht[0]:ht},it=async function(...dt){const ht=_e.runner;assert$y(canSend(ht),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const pt=await ht.sendTransaction(await nt(...dt)),mt=getProvider(_e.runner);return new ContractTransactionResponse(_e.interface,mt,pt)},ot=async function(...dt){const ht=getRunner(_e.runner,"estimateGas");return assert$y(canEstimate(ht),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await ht.estimateGas(await nt(...dt))},st=async function(...dt){const ht=getRunner(_e.runner,"call");assert$y(canCall(ht),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const pt=await nt(...dt);let mt="0x";try{mt=await ht.call(pt)}catch(bt){throw isCallException(bt)&&bt.data?_e.interface.makeError(bt.data,pt):bt}const vt=tt(...dt);return _e.interface.decodeFunctionResult(vt,mt)},ct=async(...dt)=>tt(...dt).constant?await at(...dt):await it(...dt);return defineProperties$2(ct,{name:_e.interface.getFunctionName(et),_contract:_e,_key:et,getFragment:tt,estimateGas:ot,populateTransaction:nt,send:it,staticCall:at,staticCallResult:st}),Object.defineProperty(ct,"fragment",{configurable:!1,enumerable:!0,get:()=>{const dt=_e.interface.getFunction(et);return assert$y(dt,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:et}}),dt}}),ct}function buildWrappedEvent(_e,et){const tt=function(...at){const it=_e.interface.getEvent(et,at);return assert$y(it,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:et,args:at}}),it},nt=function(...at){return new PreparedTopicFilter(_e,tt(...at),at)};return defineProperties$2(nt,{name:_e.interface.getEventName(et),_contract:_e,_key:et,getFragment:tt}),Object.defineProperty(nt,"fragment",{configurable:!1,enumerable:!0,get:()=>{const at=_e.interface.getEvent(et);return assert$y(at,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:et}}),at}}),nt}const internal=Symbol.for("_ethersInternal_contract"),internalValues=new WeakMap;function setInternal(_e,et){internalValues.set(_e[internal],et)}function getInternal(_e){return internalValues.get(_e[internal])}function isDeferred(_e){return _e&&typeof _e=="object"&&"getTopicFilter"in _e&&typeof _e.getTopicFilter=="function"&&_e.fragment}async function getSubInfo(_e,et){let tt,nt=null;if(Array.isArray(et)){const it=function(ot){if(isHexString$1(ot,32))return ot;const st=_e.interface.getEvent(ot);return assertArgument(st,"unknown fragment","name",ot),st.topicHash};tt=et.map(ot=>ot==null?null:Array.isArray(ot)?ot.map(it):it(ot))}else et==="*"?tt=[null]:typeof et=="string"?isHexString$1(et,32)?tt=[et]:(nt=_e.interface.getEvent(et),assertArgument(nt,"unknown fragment","event",et),tt=[nt.topicHash]):isDeferred(et)?tt=await et.getTopicFilter():"fragment"in et?(nt=et.fragment,tt=[nt.topicHash]):assertArgument(!1,"unknown event name","event",et);tt=tt.map(it=>{if(it==null)return null;if(Array.isArray(it)){const ot=Array.from(new Set(it.map(st=>st.toLowerCase())).values());return ot.length===1?ot[0]:(ot.sort(),ot)}return it.toLowerCase()});const at=tt.map(it=>it==null?"null":Array.isArray(it)?it.join("|"):it).join("&");return{fragment:nt,tag:at,topics:tt}}async function hasSub(_e,et){const{subs:tt}=getInternal(_e);return tt.get((await getSubInfo(_e,et)).tag)||null}async function getSub(_e,et,tt){const nt=getProvider(_e.runner);assert$y(nt,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:et});const{fragment:at,tag:it,topics:ot}=await getSubInfo(_e,tt),{addr:st,subs:ct}=getInternal(_e);let dt=ct.get(it);if(!dt){const pt={address:st||_e,topics:ot},mt=wt=>{let Et=at;if(Et==null)try{Et=_e.interface.getEvent(wt.topics[0])}catch{}if(Et){const St=Et,Tt=at?_e.interface.decodeEventLog(at,wt.data,wt.topics):[];emit(_e,tt,Tt,Ct=>new ContractEventPayload(_e,Ct,tt,St,wt))}else emit(_e,tt,[],St=>new ContractUnknownEventPayload(_e,St,tt,wt))};let vt=[];dt={tag:it,listeners:[],start:()=>{vt.length||vt.push(nt.on(pt,mt))},stop:async()=>{if(vt.length==0)return;let wt=vt;vt=[],await Promise.all(wt),nt.off(pt,mt)}},ct.set(it,dt)}return dt}let lastEmit=Promise.resolve();async function _emit(_e,et,tt,nt){await lastEmit;const at=await hasSub(_e,et);if(!at)return!1;const it=at.listeners.length;return at.listeners=at.listeners.filter(({listener:ot,once:st})=>{const ct=Array.from(tt);nt&&ct.push(nt(st?null:ot));try{ot.call(_e,...ct)}catch{}return!st}),at.listeners.length===0&&(at.stop(),getInternal(_e).subs.delete(at.tag)),it>0}async function emit(_e,et,tt,nt){try{await lastEmit}catch{}const at=_emit(_e,et,tt,nt);return lastEmit=at,await at}const passProperties=["then"];var cy,xu;let BaseContract$1=(xu=class{constructor(et,tt,nt,at){Zr(this,"target");Zr(this,"interface");Zr(this,"runner");Zr(this,"filters");Zr(this,cy);Zr(this,"fallback");assertArgument(typeof et=="string"||isAddressable(et),"invalid value for Contract target","target",et),nt==null&&(nt=null);const it=Interface$1.from(tt);defineProperties$2(this,{target:et,runner:nt,interface:it}),Object.defineProperty(this,internal,{value:{}});let ot,st=null,ct=null;if(at){const pt=getProvider(nt);ct=new ContractTransactionResponse(this.interface,pt,at)}let dt=new Map;if(typeof et=="string")if(isHexString$1(et))st=et,ot=Promise.resolve(et);else{const pt=getRunner(nt,"resolveName");if(!canResolve(pt))throw makeError("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});ot=pt.resolveName(et).then(mt=>{if(mt==null)throw makeError("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:et});return getInternal(this).addr=mt,mt})}else ot=et.getAddress().then(pt=>{if(pt==null)throw new Error("TODO");return getInternal(this).addr=pt,pt});setInternal(this,{addrPromise:ot,addr:st,deployTx:ct,subs:dt});const ht=new Proxy({},{get:(pt,mt,vt)=>{if(typeof mt=="symbol"||passProperties.indexOf(mt)>=0)return Reflect.get(pt,mt,vt);try{return this.getEvent(mt)}catch(bt){if(!isError$3(bt,"INVALID_ARGUMENT")||bt.argument!=="key")throw bt}},has:(pt,mt)=>passProperties.indexOf(mt)>=0?Reflect.has(pt,mt):Reflect.has(pt,mt)||this.interface.hasEvent(String(mt))});return defineProperties$2(this,{filters:ht}),defineProperties$2(this,{fallback:it.receive||it.fallback?buildWrappedFallback(this):null}),new Proxy(this,{get:(pt,mt,vt)=>{if(typeof mt=="symbol"||mt in pt||passProperties.indexOf(mt)>=0)return Reflect.get(pt,mt,vt);try{return pt.getFunction(mt)}catch(bt){if(!isError$3(bt,"INVALID_ARGUMENT")||bt.argument!=="key")throw bt}},has:(pt,mt)=>typeof mt=="symbol"||mt in pt||passProperties.indexOf(mt)>=0?Reflect.has(pt,mt):pt.interface.hasFunction(mt)})}connect(et){return new xu(this.target,this.interface,et)}attach(et){return new xu(et,this.interface,this.runner)}async getAddress(){return await getInternal(this).addrPromise}async getDeployedCode(){const et=getProvider(this.runner);assert$y(et,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const tt=await et.getCode(await this.getAddress());return tt==="0x"?null:tt}async waitForDeployment(){const et=this.deploymentTransaction();if(et)return await et.wait(),this;if(await this.getDeployedCode()!=null)return this;const nt=getProvider(this.runner);return assert$y(nt!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((at,it)=>{const ot=async()=>{try{if(await this.getDeployedCode()!=null)return at(this);nt.once("block",ot)}catch(st){it(st)}};ot()})}deploymentTransaction(){return getInternal(this).deployTx}getFunction(et){return typeof et!="string"&&(et=et.format()),buildWrappedMethod(this,et)}getEvent(et){return typeof et!="string"&&(et=et.format()),buildWrappedEvent(this,et)}async queryTransaction(et){throw new Error("@TODO")}async queryFilter(et,tt,nt){tt==null&&(tt=0),nt==null&&(nt="latest");const{addr:at,addrPromise:it}=getInternal(this),ot=at||await it,{fragment:st,topics:ct}=await getSubInfo(this,et),dt={address:ot,topics:ct,fromBlock:tt,toBlock:nt},ht=getProvider(this.runner);return assert$y(ht,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await ht.getLogs(dt)).map(pt=>{let mt=st;if(mt==null)try{mt=this.interface.getEvent(pt.topics[0])}catch{}if(mt)try{return new EventLog(pt,this.interface,mt)}catch(vt){return new UndecodedEventLog(pt,vt)}return new Log(pt,ht)})}async on(et,tt){const nt=await getSub(this,"on",et);return nt.listeners.push({listener:tt,once:!1}),nt.start(),this}async once(et,tt){const nt=await getSub(this,"once",et);return nt.listeners.push({listener:tt,once:!0}),nt.start(),this}async emit(et,...tt){return await emit(this,et,tt,null)}async listenerCount(et){if(et){const at=await hasSub(this,et);return at?at.listeners.length:0}const{subs:tt}=getInternal(this);let nt=0;for(const{listeners:at}of tt.values())nt+=at.length;return nt}async listeners(et){if(et){const at=await hasSub(this,et);return at?at.listeners.map(({listener:it})=>it):[]}const{subs:tt}=getInternal(this);let nt=[];for(const{listeners:at}of tt.values())nt=nt.concat(at.map(({listener:it})=>it));return nt}async off(et,tt){const nt=await hasSub(this,et);if(!nt)return this;if(tt){const at=nt.listeners.map(({listener:it})=>it).indexOf(tt);at>=0&&nt.listeners.splice(at,1)}return(tt==null||nt.listeners.length===0)&&(nt.stop(),getInternal(this).subs.delete(nt.tag)),this}async removeAllListeners(et){if(et){const tt=await hasSub(this,et);if(!tt)return this;tt.stop(),getInternal(this).subs.delete(tt.tag)}else{const{subs:tt}=getInternal(this);for(const{tag:nt,stop:at}of tt.values())at(),tt.delete(nt)}return this}async addListener(et,tt){return await this.on(et,tt)}async removeListener(et,tt){return await this.off(et,tt)}static buildClass(et){class tt extends xu{constructor(at,it=null){super(at,et,it)}}return tt}static from(et,tt,nt){return nt==null&&(nt=null),new this(et,tt,nt)}},cy=internal,xu);function _ContractBase(){return BaseContract$1}let Contract$1=class extends _ContractBase(){};function getIpfsLink$1(_e){return _e.match(/^ipfs:\/\/ipfs\//i)?_e=_e.substring(12):_e.match(/^ipfs:\/\//i)?_e=_e.substring(7):assertArgument(!1,"unsupported IPFS format","link",_e),`https://gateway.ipfs.io/ipfs/${_e}`}class MulticoinProviderPlugin{constructor(et){Zr(this,"name");defineProperties$2(this,{name:et})}connect(et){return this}supportsCoinType(et){return!1}async encodeAddress(et,tt){throw new Error("unsupported coin")}async decodeAddress(et,tt){throw new Error("unsupported coin")}}const matcherIpfs$1=new RegExp("^(ipfs)://(.*)$","i"),matchers$1=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),matcherIpfs$1,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Il,du,Nl,Ru,Rm,ry;const Nu=class Nu{constructor(et,tt,nt){Rn(this,Nl);Zr(this,"provider");Zr(this,"address");Zr(this,"name");Rn(this,Il,void 0);Rn(this,du,void 0);defineProperties$2(this,{provider:et,address:tt,name:nt}),Wr(this,Il,null),Wr(this,du,new Contract$1(tt,["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)"],et))}async supportsWildcard(){return _r(this,Il)==null&&Wr(this,Il,(async()=>{try{return await _r(this,du).supportsInterface("0x9061b923")}catch(et){if(isError$3(et,"CALL_EXCEPTION"))return!1;throw Wr(this,Il,null),et}})()),await _r(this,Il)}async getAddress(et){if(et==null&&(et=60),et===60)try{const it=await va(this,Nl,Ru).call(this,"addr(bytes32)");return it==null||it===ZeroAddress?null:it}catch(it){if(isError$3(it,"CALL_EXCEPTION"))return null;throw it}if(et>=0&&et<2147483648){let it=et+2147483648;const ot=await va(this,Nl,Ru).call(this,"addr(bytes32,uint)",[it]);if(isHexString$1(ot,20))return getAddress$1(ot)}let tt=null;for(const it of this.provider.plugins)if(it instanceof MulticoinProviderPlugin&&it.supportsCoinType(et)){tt=it;break}if(tt==null)return null;const nt=await va(this,Nl,Ru).call(this,"addr(bytes32,uint)",[et]);if(nt==null||nt==="0x")return null;const at=await tt.decodeAddress(et,nt);if(at!=null)return at;assert$y(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${et})`,info:{coinType:et,data:nt}})}async getText(et){const tt=await va(this,Nl,Ru).call(this,"text(bytes32,string)",[et]);return tt==null||tt==="0x"?null:tt}async getContentHash(){const et=await va(this,Nl,Ru).call(this,"contenthash(bytes32)");if(et==null||et==="0x")return null;const tt=et.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(tt){const at=tt[1]==="e3010170"?"ipfs":"ipns",it=parseInt(tt[4],16);if(tt[5].length===it*2)return`${at}://${encodeBase58("0x"+tt[2])}`}const nt=et.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(nt&&nt[1].length===64)return`bzz://${nt[1]}`;assert$y(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:et}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const et=[{type:"name",value:this.name}];try{const tt=await this.getText("avatar");if(tt==null)return et.push({type:"!avatar",value:""}),{url:null,linkage:et};et.push({type:"avatar",value:tt});for(let nt=0;nt<matchers$1.length;nt++){const at=tt.match(matchers$1[nt]);if(at==null)continue;const it=at[1].toLowerCase();switch(it){case"https":case"data":return et.push({type:"url",value:tt}),{linkage:et,url:tt};case"ipfs":{const ot=getIpfsLink$1(tt);return et.push({type:"ipfs",value:tt}),et.push({type:"url",value:ot}),{linkage:et,url:ot}}case"erc721":case"erc1155":{const ot=it==="erc721"?"tokenURI(uint256)":"uri(uint256)";et.push({type:it,value:tt});const st=await this.getAddress();if(st==null)return et.push({type:"!owner",value:""}),{url:null,linkage:et};const ct=(at[2]||"").split("/");if(ct.length!==2)return et.push({type:`!${it}caip`,value:at[2]||""}),{url:null,linkage:et};const dt=ct[1],ht=new Contract$1(ct[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(it==="erc721"){const _t=await ht.ownerOf(dt);if(st!==_t)return et.push({type:"!owner",value:_t}),{url:null,linkage:et};et.push({type:"owner",value:_t})}else if(it==="erc1155"){const _t=await ht.balanceOf(st,dt);if(!_t)return et.push({type:"!balance",value:"0"}),{url:null,linkage:et};et.push({type:"balance",value:_t.toString()})}let pt=await ht[ot](dt);if(pt==null||pt==="0x")return et.push({type:"!metadata-url",value:""}),{url:null,linkage:et};et.push({type:"metadata-url-base",value:pt}),it==="erc1155"&&(pt=pt.replace("{id}",toBeHex(dt,32).substring(2)),et.push({type:"metadata-url-expanded",value:pt})),pt.match(/^ipfs:/i)&&(pt=getIpfsLink$1(pt)),et.push({type:"metadata-url",value:pt});let mt={};const vt=await new FetchRequest(pt).send();vt.assertOk();try{mt=vt.bodyJson}catch{try{et.push({type:"!metadata",value:vt.bodyText})}catch{const Et=vt.body;return Et&&et.push({type:"!metadata",value:hexlify$1(Et)}),{url:null,linkage:et}}return{url:null,linkage:et}}if(!mt)return et.push({type:"!metadata",value:""}),{url:null,linkage:et};et.push({type:"metadata",value:JSON.stringify(mt)});let bt=mt.image;if(typeof bt!="string")return et.push({type:"!imageUrl",value:""}),{url:null,linkage:et};if(!bt.match(/^(https:\/\/|data:)/i)){if(bt.match(matcherIpfs$1)==null)return et.push({type:"!imageUrl-ipfs",value:bt}),{url:null,linkage:et};et.push({type:"imageUrl-ipfs",value:bt}),bt=getIpfsLink$1(bt)}return et.push({type:"url",value:bt}),{linkage:et,url:bt}}}}}catch{}return{linkage:et,url:null}}static async getEnsAddress(et){const tt=await et.getNetwork(),nt=tt.getPlugin("org.ethers.plugins.network.Ens");return assert$y(nt,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:tt}}),nt.address}static async fromName(et,tt){var at;let nt=tt;for(;;){if(nt===""||nt==="."||tt!=="eth"&&nt==="eth")return null;const it=await va(at=Nu,Rm,ry).call(at,et,nt);if(it!=null){const ot=new Nu(et,it,tt);return nt!==tt&&!await ot.supportsWildcard()?null:ot}nt=nt.split(".").slice(1).join(".")}}};Il=new WeakMap,du=new WeakMap,Nl=new WeakSet,Ru=async function(et,tt){tt=(tt||[]).slice();const nt=_r(this,du).interface;tt.unshift(namehash$1(this.name));let at=null;await this.supportsWildcard()&&(at=nt.getFunction(et),assert$y(at,"missing fragment","UNKNOWN_ERROR",{info:{funcName:et}}),tt=[dnsEncode$1(this.name,255),nt.encodeFunctionData(at,tt)],et="resolve(bytes,bytes)"),tt.push({enableCcipRead:!0});try{const it=await _r(this,du)[et](...tt);return at?nt.decodeFunctionResult(at,it)[0]:it}catch(it){if(!isError$3(it,"CALL_EXCEPTION"))throw it}return null},Rm=new WeakSet,ry=async function(et,tt){const nt=await Nu.getEnsAddress(et);try{const it=await new Contract$1(nt,["function resolver(bytes32) view returns (address)"],et).resolver(namehash$1(tt),{enableCcipRead:!0});return it===ZeroAddress?null:it}catch(at){throw at}return null},Rn(Nu,Rm);let EnsResolver=Nu;const BN_0=BigInt(0);function allowNull(_e,et){return function(tt){return tt==null?et:_e(tt)}}function arrayOf(_e,et){return tt=>{if(et&&tt==null)return null;if(!Array.isArray(tt))throw new Error("not an array");return tt.map(nt=>_e(nt))}}function object$1(_e,et){return tt=>{const nt={};for(const at in _e){let it=at;if(et&&at in et&&!(it in tt)){for(const ot of et[at])if(ot in tt){it=ot;break}}try{const ot=_e[at](tt[it]);ot!==void 0&&(nt[at]=ot)}catch(ot){const st=ot instanceof Error?ot.message:"not-an-error";assert$y(!1,`invalid value for value.${at} (${st})`,"BAD_DATA",{value:tt})}}return nt}}function formatBoolean(_e){switch(_e){case!0:case"true":return!0;case!1:case"false":return!1}assertArgument(!1,`invalid boolean; ${JSON.stringify(_e)}`,"value",_e)}function formatData(_e){return assertArgument(isHexString$1(_e,!0),"invalid data","value",_e),_e}function formatHash(_e){return assertArgument(isHexString$1(_e,32),"invalid hash","value",_e),_e}const _formatLog=object$1({address:getAddress$1,blockHash:formatHash,blockNumber:getNumber,data:formatData,index:getNumber,removed:allowNull(formatBoolean,!1),topics:arrayOf(formatHash),transactionHash:formatHash,transactionIndex:getNumber},{index:["logIndex"]});function formatLog(_e){return _formatLog(_e)}const _formatBlock=object$1({hash:allowNull(formatHash),parentHash:formatHash,parentBeaconBlockRoot:allowNull(formatHash,null),number:getNumber,timestamp:getNumber,nonce:allowNull(formatData),difficulty:getBigInt,gasLimit:getBigInt,gasUsed:getBigInt,stateRoot:allowNull(formatHash,null),receiptsRoot:allowNull(formatHash,null),blobGasUsed:allowNull(getBigInt,null),excessBlobGas:allowNull(getBigInt,null),miner:allowNull(getAddress$1),extraData:formatData,baseFeePerGas:allowNull(getBigInt)});function formatBlock(_e){const et=_formatBlock(_e);return et.transactions=_e.transactions.map(tt=>typeof tt=="string"?tt:formatTransactionResponse(tt)),et}const _formatReceiptLog=object$1({transactionIndex:getNumber,blockNumber:getNumber,transactionHash:formatHash,address:getAddress$1,topics:arrayOf(formatHash),data:formatData,index:getNumber,blockHash:formatHash},{index:["logIndex"]});function formatReceiptLog(_e){return _formatReceiptLog(_e)}const _formatTransactionReceipt=object$1({to:allowNull(getAddress$1,null),from:allowNull(getAddress$1,null),contractAddress:allowNull(getAddress$1,null),index:getNumber,root:allowNull(hexlify$1),gasUsed:getBigInt,blobGasUsed:allowNull(getBigInt,null),logsBloom:allowNull(formatData),blockHash:formatHash,hash:formatHash,logs:arrayOf(formatReceiptLog),blockNumber:getNumber,cumulativeGasUsed:getBigInt,effectiveGasPrice:allowNull(getBigInt),blobGasPrice:allowNull(getBigInt,null),status:allowNull(getNumber),type:allowNull(getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function formatTransactionReceipt(_e){return _formatTransactionReceipt(_e)}function formatTransactionResponse(_e){_e.to&&getBigInt(_e.to)===BN_0&&(_e.to="0x0000000000000000000000000000000000000000");const et=object$1({hash:formatHash,index:allowNull(getNumber,void 0),type:tt=>tt==="0x"||tt==null?0:getNumber(tt),accessList:allowNull(accessListify$1,null),blobVersionedHashes:allowNull(arrayOf(formatHash,!0),null),blockHash:allowNull(formatHash,null),blockNumber:allowNull(getNumber,null),transactionIndex:allowNull(getNumber,null),from:getAddress$1,gasPrice:allowNull(getBigInt),maxPriorityFeePerGas:allowNull(getBigInt),maxFeePerGas:allowNull(getBigInt),maxFeePerBlobGas:allowNull(getBigInt,null),gasLimit:getBigInt,to:allowNull(getAddress$1,null),value:getBigInt,nonce:getNumber,data:formatData,creates:allowNull(getAddress$1,null),chainId:allowNull(getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(_e);if(et.to==null&&et.creates==null&&(et.creates=getCreateAddress(et)),(_e.type===1||_e.type===2)&&_e.accessList==null&&(et.accessList=[]),_e.signature?et.signature=Signature$7.from(_e.signature):et.signature=Signature$7.from(_e),et.chainId==null){const tt=et.signature.legacyChainId;tt!=null&&(et.chainId=tt)}return et.blockHash&&getBigInt(et.blockHash)===BN_0&&(et.blockHash=null),et}const EnsAddress="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class NetworkPlugin{constructor(et){Zr(this,"name");defineProperties$2(this,{name:et})}clone(){return new NetworkPlugin(this.name)}}class GasCostPlugin extends NetworkPlugin{constructor(tt,nt){tt==null&&(tt=0);super(`org.ethers.network.plugins.GasCost#${tt||0}`);Zr(this,"effectiveBlock");Zr(this,"txBase");Zr(this,"txCreate");Zr(this,"txDataZero");Zr(this,"txDataNonzero");Zr(this,"txAccessListStorageKey");Zr(this,"txAccessListAddress");const at={effectiveBlock:tt};function it(ot,st){let ct=(nt||{})[ot];ct==null&&(ct=st),assertArgument(typeof ct=="number",`invalud value for ${ot}`,"costs",nt),at[ot]=ct}it("txBase",21e3),it("txCreate",32e3),it("txDataZero",4),it("txDataNonzero",16),it("txAccessListStorageKey",1900),it("txAccessListAddress",2400),defineProperties$2(this,at)}clone(){return new GasCostPlugin(this.effectiveBlock,this)}}class EnsPlugin extends NetworkPlugin{constructor(tt,nt){super("org.ethers.plugins.network.Ens");Zr(this,"address");Zr(this,"targetNetwork");defineProperties$2(this,{address:tt||EnsAddress,targetNetwork:nt??1})}clone(){return new EnsPlugin(this.address,this.targetNetwork)}}var Hp,Gp;class FetchUrlFeeDataNetworkPlugin extends NetworkPlugin{constructor(tt,nt){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");Rn(this,Hp,void 0);Rn(this,Gp,void 0);Wr(this,Hp,tt),Wr(this,Gp,nt)}get url(){return _r(this,Hp)}get processFunc(){return _r(this,Gp)}clone(){return this}}Hp=new WeakMap,Gp=new WeakMap;const Networks=new Map;var ap,ip,Dl,Gl;let Network$2=(Gl=class{constructor(et,tt){Rn(this,ap,void 0);Rn(this,ip,void 0);Rn(this,Dl,void 0);Wr(this,ap,et),Wr(this,ip,getBigInt(tt)),Wr(this,Dl,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return _r(this,ap)}set name(et){Wr(this,ap,et)}get chainId(){return _r(this,ip)}set chainId(et){Wr(this,ip,getBigInt(et,"chainId"))}matches(et){if(et==null)return!1;if(typeof et=="string"){try{return this.chainId===getBigInt(et)}catch{}return this.name===et}if(typeof et=="number"||typeof et=="bigint"){try{return this.chainId===getBigInt(et)}catch{}return!1}if(typeof et=="object"){if(et.chainId!=null){try{return this.chainId===getBigInt(et.chainId)}catch{}return!1}return et.name!=null?this.name===et.name:!1}return!1}get plugins(){return Array.from(_r(this,Dl).values())}attachPlugin(et){if(_r(this,Dl).get(et.name))throw new Error(`cannot replace existing plugin: ${et.name} `);return _r(this,Dl).set(et.name,et.clone()),this}getPlugin(et){return _r(this,Dl).get(et)||null}getPlugins(et){return this.plugins.filter(tt=>tt.name.split("#")[0]===et)}clone(){const et=new Gl(this.name,this.chainId);return this.plugins.forEach(tt=>{et.attachPlugin(tt.clone())}),et}computeIntrinsicGas(et){const tt=this.getPlugin("org.ethers.plugins.network.GasCost")||new GasCostPlugin;let nt=tt.txBase;if(et.to==null&&(nt+=tt.txCreate),et.data)for(let at=2;at<et.data.length;at+=2)et.data.substring(at,at+2)==="00"?nt+=tt.txDataZero:nt+=tt.txDataNonzero;if(et.accessList){const at=accessListify$1(et.accessList);for(const it in at)nt+=tt.txAccessListAddress+tt.txAccessListStorageKey*at[it].storageKeys.length}return nt}static from(et){if(injectCommonNetworks(),et==null)return Gl.from("mainnet");if(typeof et=="number"&&(et=BigInt(et)),typeof et=="string"||typeof et=="bigint"){const tt=Networks.get(et);if(tt)return tt();if(typeof et=="bigint")return new Gl("unknown",et);assertArgument(!1,"unknown network","network",et)}if(typeof et.clone=="function")return et.clone();if(typeof et=="object"){assertArgument(typeof et.name=="string"&&typeof et.chainId=="number","invalid network object name or chainId","network",et);const tt=new Gl(et.name,et.chainId);return(et.ensAddress||et.ensNetwork!=null)&&tt.attachPlugin(new EnsPlugin(et.ensAddress,et.ensNetwork)),tt}assertArgument(!1,"invalid network","network",et)}static register(et,tt){typeof et=="number"&&(et=BigInt(et));const nt=Networks.get(et);nt&&assertArgument(!1,`conflicting network for ${JSON.stringify(nt.name)}`,"nameOrChainId",et),Networks.set(et,tt)}},ap=new WeakMap,ip=new WeakMap,Dl=new WeakMap,Gl);function parseUnits$1(_e,et){const tt=String(_e);if(!tt.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${_e}`);const nt=tt.split(".");if(nt.length===1&&nt.push(""),nt.length!==2)throw new Error(`invalid gwei value: ${_e}`);for(;nt[1].length<et;)nt[1]+="0";if(nt[1].length>9){let at=BigInt(nt[1].substring(0,9));nt[1].substring(9).match(/^0+$/)||at++,nt[1]=at.toString()}return BigInt(nt[0]+nt[1])}function getGasStationPlugin(_e){return new FetchUrlFeeDataNetworkPlugin(_e,async(et,tt,nt)=>{nt.setHeader("User-Agent","ethers");let at;try{const[it,ot]=await Promise.all([nt.send(),et()]);at=it;const st=at.bodyJson.standard;return{gasPrice:ot.gasPrice,maxFeePerGas:parseUnits$1(st.maxFee,9),maxPriorityFeePerGas:parseUnits$1(st.maxPriorityFee,9)}}catch(it){assert$y(!1,`error encountered with polygon gas station (${JSON.stringify(nt.url)})`,"SERVER_ERROR",{request:nt,response:at,error:it})}})}let injected=!1;function injectCommonNetworks(){if(injected)return;injected=!0;function _e(et,tt,nt){const at=function(){const it=new Network$2(et,tt);return nt.ensNetwork!=null&&it.attachPlugin(new EnsPlugin(null,nt.ensNetwork)),it.attachPlugin(new GasCostPlugin),(nt.plugins||[]).forEach(ot=>{it.attachPlugin(ot)}),it};Network$2.register(et,at),Network$2.register(tt,at),nt.altNames&&nt.altNames.forEach(it=>{Network$2.register(it,at)})}_e("mainnet",1,{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,{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("linea",59144,{ensNetwork:1}),_e("linea-goerli",59140,{}),_e("matic",137,{ensNetwork:1,plugins:[getGasStationPlugin("https://gasstation.polygon.technology/v2")]}),_e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[getGasStationPlugin("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})}function copy$5(_e){return JSON.parse(JSON.stringify(_e))}var vl,Ds,Ll,Xs,op,xm;class PollingBlockSubscriber{constructor(et){Rn(this,op);Rn(this,vl,void 0);Rn(this,Ds,void 0);Rn(this,Ll,void 0);Rn(this,Xs,void 0);Wr(this,vl,et),Wr(this,Ds,null),Wr(this,Ll,4e3),Wr(this,Xs,-2)}get pollingInterval(){return _r(this,Ll)}set pollingInterval(et){Wr(this,Ll,et)}start(){_r(this,Ds)||(Wr(this,Ds,_r(this,vl)._setTimeout(va(this,op,xm).bind(this),_r(this,Ll))),va(this,op,xm).call(this))}stop(){_r(this,Ds)&&(_r(this,vl)._clearTimeout(_r(this,Ds)),Wr(this,Ds,null))}pause(et){this.stop(),et&&Wr(this,Xs,-2)}resume(){this.start()}}vl=new WeakMap,Ds=new WeakMap,Ll=new WeakMap,Xs=new WeakMap,op=new WeakSet,xm=async function(){try{const et=await _r(this,vl).getBlockNumber();if(_r(this,Xs)===-2){Wr(this,Xs,et);return}if(et!==_r(this,Xs)){for(let tt=_r(this,Xs)+1;tt<=et;tt++){if(_r(this,Ds)==null)return;await _r(this,vl).emit("block",tt)}Wr(this,Xs,et)}}catch{}_r(this,Ds)!=null&&Wr(this,Ds,_r(this,vl)._setTimeout(va(this,op,xm).bind(this),_r(this,Ll)))};var hu,pu,kl;class OnBlockSubscriber{constructor(et){Rn(this,hu,void 0);Rn(this,pu,void 0);Rn(this,kl,void 0);Wr(this,hu,et),Wr(this,kl,!1),Wr(this,pu,tt=>{this._poll(tt,_r(this,hu))})}async _poll(et,tt){throw new Error("sub-classes must override this")}start(){_r(this,kl)||(Wr(this,kl,!0),_r(this,pu).call(this,-2),_r(this,hu).on("block",_r(this,pu)))}stop(){_r(this,kl)&&(Wr(this,kl,!1),_r(this,hu).off("block",_r(this,pu)))}pause(et){this.stop()}resume(){this.start()}}hu=new WeakMap,pu=new WeakMap,kl=new WeakMap;var sp,gl;class PollingBlockTagSubscriber extends OnBlockSubscriber{constructor(tt,nt){super(tt);Rn(this,sp,void 0);Rn(this,gl,void 0);Wr(this,sp,nt),Wr(this,gl,-2)}pause(tt){tt&&Wr(this,gl,-2),super.pause(tt)}async _poll(tt,nt){const at=await nt.getBlock(_r(this,sp));at!=null&&(_r(this,gl)===-2?Wr(this,gl,at.number):at.number>_r(this,gl)&&(nt.emit(_r(this,sp),at.number),Wr(this,gl,at.number)))}}sp=new WeakMap,gl=new WeakMap;var Im;class PollingOrphanSubscriber extends OnBlockSubscriber{constructor(tt,nt){super(tt);Rn(this,Im,void 0);Wr(this,Im,copy$5(nt))}async _poll(tt,nt){throw new Error("@TODO")}}Im=new WeakMap;var lp;class PollingTransactionSubscriber extends OnBlockSubscriber{constructor(tt,nt){super(tt);Rn(this,lp,void 0);Wr(this,lp,nt)}async _poll(tt,nt){const at=await nt.getTransactionReceipt(_r(this,lp));at&&nt.emit(_r(this,lp),at)}}lp=new WeakMap;var bl,up,cp,Bl,Ls,Nm,ny;class PollingEventSubscriber{constructor(et,tt){Rn(this,Nm);Rn(this,bl,void 0);Rn(this,up,void 0);Rn(this,cp,void 0);Rn(this,Bl,void 0);Rn(this,Ls,void 0);Wr(this,bl,et),Wr(this,up,copy$5(tt)),Wr(this,cp,va(this,Nm,ny).bind(this)),Wr(this,Bl,!1),Wr(this,Ls,-2)}start(){_r(this,Bl)||(Wr(this,Bl,!0),_r(this,Ls)===-2&&_r(this,bl).getBlockNumber().then(et=>{Wr(this,Ls,et)}),_r(this,bl).on("block",_r(this,cp)))}stop(){_r(this,Bl)&&(Wr(this,Bl,!1),_r(this,bl).off("block",_r(this,cp)))}pause(et){this.stop(),et&&Wr(this,Ls,-2)}resume(){this.start()}}bl=new WeakMap,up=new WeakMap,cp=new WeakMap,Bl=new WeakMap,Ls=new WeakMap,Nm=new WeakSet,ny=async function(et){if(_r(this,Ls)===-2)return;const tt=copy$5(_r(this,up));tt.fromBlock=_r(this,Ls)+1,tt.toBlock=et;const nt=await _r(this,bl).getLogs(tt);if(nt.length===0){_r(this,Ls)<et-60&&Wr(this,Ls,et-60);return}for(const at of nt)_r(this,bl).emit(_r(this,up),at),Wr(this,Ls,at.blockNumber)};const BN_2=BigInt(2),MAX_CCIP_REDIRECTS$1=10;function isPromise(_e){return _e&&typeof _e.then=="function"}function getTag$7(_e,et){return _e+":"+JSON.stringify(et,(tt,nt)=>{if(nt==null)return"null";if(typeof nt=="bigint")return`bigint:${nt.toString()}`;if(typeof nt=="string")return nt.toLowerCase();if(typeof nt=="object"&&!Array.isArray(nt)){const at=Object.keys(nt);return at.sort(),at.reduce((it,ot)=>(it[ot]=nt[ot],it),{})}return nt})}class UnmanagedSubscriber{constructor(et){Zr(this,"name");defineProperties$2(this,{name:et})}start(){}stop(){}pause(et){}resume(){}}function copy$4(_e){return JSON.parse(JSON.stringify(_e))}function concisify(_e){return _e=Array.from(new Set(_e).values()),_e.sort(),_e}async function getSubscription(_e,et){if(_e==null)throw new Error("invalid event");if(Array.isArray(_e)&&(_e={topics:_e}),typeof _e=="string")switch(_e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:_e,tag:_e}}if(isHexString$1(_e,32)){const tt=_e.toLowerCase();return{type:"transaction",tag:getTag$7("tx",{hash:tt}),hash:tt}}if(_e.orphan){const tt=_e;return{type:"orphan",tag:getTag$7("orphan",tt),filter:copy$4(tt)}}if(_e.address||_e.topics){const tt=_e,nt={topics:(tt.topics||[]).map(at=>at==null?null:Array.isArray(at)?concisify(at.map(it=>it.toLowerCase())):at.toLowerCase())};if(tt.address){const at=[],it=[],ot=st=>{isHexString$1(st)?at.push(st):it.push((async()=>{at.push(await resolveAddress(st,et))})())};Array.isArray(tt.address)?tt.address.forEach(ot):ot(tt.address),it.length&&await Promise.all(it),nt.address=concisify(at.map(st=>st.toLowerCase()))}return{filter:nt,tag:getTag$7("event",nt),type:"event"}}assertArgument(!1,"unknown ProviderEvent","event",_e)}function getTime$2(){return new Date().getTime()}const defaultOptions$3={cacheTimeout:250,pollingInterval:4e3};var ds,jl,hs,fp,Os,mu,Fl,_l,zp,ks,dp,hp,ys,Ts,Vp,Fm,Wp,Um,yu,Pp,Kp,qm,vu,Mp,pp,Sm;class AbstractProvider{constructor(et,tt){Rn(this,ys);Rn(this,Vp);Rn(this,Wp);Rn(this,yu);Rn(this,Kp);Rn(this,vu);Rn(this,pp);Rn(this,ds,void 0);Rn(this,jl,void 0);Rn(this,hs,void 0);Rn(this,fp,void 0);Rn(this,Os,void 0);Rn(this,mu,void 0);Rn(this,Fl,void 0);Rn(this,_l,void 0);Rn(this,zp,void 0);Rn(this,ks,void 0);Rn(this,dp,void 0);Rn(this,hp,void 0);if(Wr(this,hp,Object.assign({},defaultOptions$3,tt||{})),et==="any")Wr(this,mu,!0),Wr(this,Os,null);else if(et){const nt=Network$2.from(et);Wr(this,mu,!1),Wr(this,Os,Promise.resolve(nt)),setTimeout(()=>{this.emit("network",nt,null)},0)}else Wr(this,mu,!1),Wr(this,Os,null);Wr(this,_l,-1),Wr(this,Fl,new Map),Wr(this,ds,new Map),Wr(this,jl,new Map),Wr(this,hs,null),Wr(this,fp,!1),Wr(this,zp,1),Wr(this,ks,new Map),Wr(this,dp,!1)}get pollingInterval(){return _r(this,hp).pollingInterval}get provider(){return this}get plugins(){return Array.from(_r(this,jl).values())}attachPlugin(et){if(_r(this,jl).get(et.name))throw new Error(`cannot replace existing plugin: ${et.name} `);return _r(this,jl).set(et.name,et.connect(this)),this}getPlugin(et){return _r(this,jl).get(et)||null}get disableCcipRead(){return _r(this,dp)}set disableCcipRead(et){Wr(this,dp,!!et)}async ccipReadFetch(et,tt,nt){if(this.disableCcipRead||nt.length===0||et.to==null)return null;const at=et.to.toLowerCase(),it=tt.toLowerCase(),ot=[];for(let st=0;st<nt.length;st++){const ct=nt[st],dt=ct.replace("{sender}",at).replace("{data}",it),ht=new FetchRequest(dt);ct.indexOf("{data}")===-1&&(ht.body={data:it,sender:at}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:ht,index:st,urls:nt});let pt="unknown error";const mt=await ht.send();try{const vt=mt.bodyJson;if(vt.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:ht,result:vt}),vt.data;vt.message&&(pt=vt.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:ht,result:vt})}catch{}assert$y(mt.statusCode<400||mt.statusCode>=500,`response not found during CCIP fetch: ${pt}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:et,info:{url:ct,errorMessage:pt}}),ot.push(pt)}assert$y(!1,`error encountered during CCIP fetch: ${ot.map(st=>JSON.stringify(st)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:et,info:{urls:nt,errorMessages:ot}})}_wrapBlock(et,tt){return new Block(formatBlock(et),this)}_wrapLog(et,tt){return new Log(formatLog(et),this)}_wrapTransactionReceipt(et,tt){return new TransactionReceipt(formatTransactionReceipt(et),this)}_wrapTransactionResponse(et,tt){return new TransactionResponse(formatTransactionResponse(et),this)}_detectNetwork(){assert$y(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(et){assert$y(!1,`unsupported method: ${et.method}`,"UNSUPPORTED_OPERATION",{operation:et.method,info:et})}async getBlockNumber(){const et=getNumber(await va(this,ys,Ts).call(this,{method:"getBlockNumber"}),"%response");return _r(this,_l)>=0&&Wr(this,_l,et),et}_getAddress(et){return resolveAddress(et,this)}_getBlockTag(et){if(et==null)return"latest";switch(et){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return et}if(isHexString$1(et))return isHexString$1(et,32)?et:toQuantity(et);if(typeof et=="bigint"&&(et=getNumber(et,"blockTag")),typeof et=="number")return et>=0?toQuantity(et):_r(this,_l)>=0?toQuantity(_r(this,_l)+et):this.getBlockNumber().then(tt=>toQuantity(tt+et));assertArgument(!1,"invalid blockTag","blockTag",et)}_getFilter(et){const tt=(et.topics||[]).map(ct=>ct==null?null:Array.isArray(ct)?concisify(ct.map(dt=>dt.toLowerCase())):ct.toLowerCase()),nt="blockHash"in et?et.blockHash:void 0,at=(ct,dt,ht)=>{let pt;switch(ct.length){case 0:break;case 1:pt=ct[0];break;default:ct.sort(),pt=ct}if(nt&&(dt!=null||ht!=null))throw new Error("invalid filter");const mt={};return pt&&(mt.address=pt),tt.length&&(mt.topics=tt),dt&&(mt.fromBlock=dt),ht&&(mt.toBlock=ht),nt&&(mt.blockHash=nt),mt};let it=[];if(et.address)if(Array.isArray(et.address))for(const ct of et.address)it.push(this._getAddress(ct));else it.push(this._getAddress(et.address));let ot;"fromBlock"in et&&(ot=this._getBlockTag(et.fromBlock));let st;return"toBlock"in et&&(st=this._getBlockTag(et.toBlock)),it.filter(ct=>typeof ct!="string").length||ot!=null&&typeof ot!="string"||st!=null&&typeof st!="string"?Promise.all([Promise.all(it),ot,st]).then(ct=>at(ct[0],ct[1],ct[2])):at(it,ot,st)}_getTransactionRequest(et){const tt=copyRequest(et),nt=[];if(["to","from"].forEach(at=>{if(tt[at]==null)return;const it=resolveAddress(tt[at],this);isPromise(it)?nt.push(async function(){tt[at]=await it}()):tt[at]=it}),tt.blockTag!=null){const at=this._getBlockTag(tt.blockTag);isPromise(at)?nt.push(async function(){tt.blockTag=await at}()):tt.blockTag=at}return nt.length?async function(){return await Promise.all(nt),tt}():tt}async getNetwork(){if(_r(this,Os)==null){const at=(async()=>{try{const it=await this._detectNetwork();return this.emit("network",it,null),it}catch(it){throw _r(this,Os)===at&&Wr(this,Os,null),it}})();return Wr(this,Os,at),(await at).clone()}const et=_r(this,Os),[tt,nt]=await Promise.all([et,this._detectNetwork()]);return tt.chainId!==nt.chainId&&(_r(this,mu)?(this.emit("network",nt,tt),_r(this,Os)===et&&Wr(this,Os,Promise.resolve(nt))):assert$y(!1,`network changed: ${tt.chainId} => ${nt.chainId} `,"NETWORK_ERROR",{event:"changed"})),tt.clone()}async getFeeData(){const et=await this.getNetwork(),tt=async()=>{const{_block:at,gasPrice:it,priorityFee:ot}=await resolveProperties$1({_block:va(this,Kp,qm).call(this,"latest",!1),gasPrice:(async()=>{try{const ht=await va(this,ys,Ts).call(this,{method:"getGasPrice"});return getBigInt(ht,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const ht=await va(this,ys,Ts).call(this,{method:"getPriorityFee"});return getBigInt(ht,"%response")}catch{}return null})()});let st=null,ct=null;const dt=this._wrapBlock(at,et);return dt&&dt.baseFeePerGas&&(ct=ot??BigInt("1000000000"),st=dt.baseFeePerGas*BN_2+ct),new FeeData(it,st,ct)},nt=et.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(nt){const at=new FetchRequest(nt.url),it=await nt.processFunc(tt,this,at);return new FeeData(it.gasPrice,it.maxFeePerGas,it.maxPriorityFeePerGas)}return await tt()}async estimateGas(et){let tt=this._getTransactionRequest(et);return isPromise(tt)&&(tt=await tt),getBigInt(await va(this,ys,Ts).call(this,{method:"estimateGas",transaction:tt}),"%response")}async call(et){const{tx:tt,blockTag:nt}=await resolveProperties$1({tx:this._getTransactionRequest(et),blockTag:this._getBlockTag(et.blockTag)});return await va(this,Wp,Um).call(this,va(this,Vp,Fm).call(this,tt,nt,et.enableCcipRead?0:-1))}async getBalance(et,tt){return getBigInt(await va(this,yu,Pp).call(this,{method:"getBalance"},et,tt),"%response")}async getTransactionCount(et,tt){return getNumber(await va(this,yu,Pp).call(this,{method:"getTransactionCount"},et,tt),"%response")}async getCode(et,tt){return hexlify$1(await va(this,yu,Pp).call(this,{method:"getCode"},et,tt))}async getStorage(et,tt,nt){const at=getBigInt(tt,"position");return hexlify$1(await va(this,yu,Pp).call(this,{method:"getStorage",position:at},et,nt))}async broadcastTransaction(et){const{blockNumber:tt,hash:nt,network:at}=await resolveProperties$1({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:et}),network:this.getNetwork()}),it=Transaction.from(et);if(it.hash!==nt)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(it,at).replaceableTransaction(tt)}async getBlock(et,tt){const{network:nt,params:at}=await resolveProperties$1({network:this.getNetwork(),params:va(this,Kp,qm).call(this,et,!!tt)});return at==null?null:this._wrapBlock(at,nt)}async getTransaction(et){const{network:tt,params:nt}=await resolveProperties$1({network:this.getNetwork(),params:va(this,ys,Ts).call(this,{method:"getTransaction",hash:et})});return nt==null?null:this._wrapTransactionResponse(nt,tt)}async getTransactionReceipt(et){const{network:tt,params:nt}=await resolveProperties$1({network:this.getNetwork(),params:va(this,ys,Ts).call(this,{method:"getTransactionReceipt",hash:et})});if(nt==null)return null;if(nt.gasPrice==null&&nt.effectiveGasPrice==null){const at=await va(this,ys,Ts).call(this,{method:"getTransaction",hash:et});if(at==null)throw new Error("report this; could not find tx or effectiveGasPrice");nt.effectiveGasPrice=at.gasPrice}return this._wrapTransactionReceipt(nt,tt)}async getTransactionResult(et){const{result:tt}=await resolveProperties$1({network:this.getNetwork(),result:va(this,ys,Ts).call(this,{method:"getTransactionResult",hash:et})});return tt==null?null:hexlify$1(tt)}async getLogs(et){let tt=this._getFilter(et);isPromise(tt)&&(tt=await tt);const{network:nt,params:at}=await resolveProperties$1({network:this.getNetwork(),params:va(this,ys,Ts).call(this,{method:"getLogs",filter:tt})});return at.map(it=>this._wrapLog(it,nt))}_getProvider(et){assert$y(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(et){return await EnsResolver.fromName(this,et)}async getAvatar(et){const tt=await this.getResolver(et);return tt?await tt.getAvatar():null}async resolveName(et){const tt=await this.getResolver(et);return tt?await tt.getAddress():null}async lookupAddress(et){et=getAddress$1(et);const tt=namehash$1(et.substring(2).toLowerCase()+".addr.reverse");try{const nt=await EnsResolver.getEnsAddress(this),it=await new Contract$1(nt,["function resolver(bytes32) view returns (address)"],this).resolver(tt);if(it==null||it===ZeroAddress)return null;const st=await new Contract$1(it,["function name(bytes32) view returns (string)"],this).name(tt);return await this.resolveName(st)!==et?null:st}catch(nt){if(isError$3(nt,"BAD_DATA")&&nt.value==="0x"||isError$3(nt,"CALL_EXCEPTION"))return null;throw nt}return null}async waitForTransaction(et,tt,nt){const at=tt??1;return at===0?this.getTransactionReceipt(et):new Promise(async(it,ot)=>{let st=null;const ct=async dt=>{try{const ht=await this.getTransactionReceipt(et);if(ht!=null&&dt-ht.blockNumber+1>=at){it(ht),st&&(clearTimeout(st),st=null);return}}catch(ht){console.log("EEE",ht)}this.once("block",ct)};nt!=null&&(st=setTimeout(()=>{st!=null&&(st=null,this.off("block",ct),ot(makeError("timeout","TIMEOUT",{reason:"timeout"})))},nt)),ct(await this.getBlockNumber())})}async waitForBlock(et){assert$y(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(et){const tt=_r(this,ks).get(et);tt&&(tt.timer&&clearTimeout(tt.timer),_r(this,ks).delete(et))}_setTimeout(et,tt){tt==null&&(tt=0);const nt=xp(this,zp)._++,at=()=>{_r(this,ks).delete(nt),et()};if(this.paused)_r(this,ks).set(nt,{timer:null,func:at,time:tt});else{const it=setTimeout(at,tt);_r(this,ks).set(nt,{timer:it,func:at,time:getTime$2()})}return nt}_forEachSubscriber(et){for(const tt of _r(this,ds).values())et(tt.subscriber)}_getSubscriber(et){switch(et.type){case"debug":case"error":case"network":return new UnmanagedSubscriber(et.type);case"block":{const tt=new PollingBlockSubscriber(this);return tt.pollingInterval=this.pollingInterval,tt}case"safe":case"finalized":return new PollingBlockTagSubscriber(this,et.type);case"event":return new PollingEventSubscriber(this,et.filter);case"transaction":return new PollingTransactionSubscriber(this,et.hash);case"orphan":return new PollingOrphanSubscriber(this,et.filter)}throw new Error(`unsupported event: ${et.type}`)}_recoverSubscriber(et,tt){for(const nt of _r(this,ds).values())if(nt.subscriber===et){nt.started&&nt.subscriber.stop(),nt.subscriber=tt,nt.started&&tt.start(),_r(this,hs)!=null&&tt.pause(_r(this,hs));break}}async on(et,tt){const nt=await va(this,pp,Sm).call(this,et);return nt.listeners.push({listener:tt,once:!1}),nt.started||(nt.subscriber.start(),nt.started=!0,_r(this,hs)!=null&&nt.subscriber.pause(_r(this,hs))),this}async once(et,tt){const nt=await va(this,pp,Sm).call(this,et);return nt.listeners.push({listener:tt,once:!0}),nt.started||(nt.subscriber.start(),nt.started=!0,_r(this,hs)!=null&&nt.subscriber.pause(_r(this,hs))),this}async emit(et,...tt){const nt=await va(this,vu,Mp).call(this,et,tt);if(!nt||nt.listeners.length===0)return!1;const at=nt.listeners.length;return nt.listeners=nt.listeners.filter(({listener:it,once:ot})=>{const st=new EventPayload(this,ot?null:it,et);try{it.call(this,...tt,st)}catch{}return!ot}),nt.listeners.length===0&&(nt.started&&nt.subscriber.stop(),_r(this,ds).delete(nt.tag)),at>0}async listenerCount(et){if(et){const nt=await va(this,vu,Mp).call(this,et);return nt?nt.listeners.length:0}let tt=0;for(const{listeners:nt}of _r(this,ds).values())tt+=nt.length;return tt}async listeners(et){if(et){const nt=await va(this,vu,Mp).call(this,et);return nt?nt.listeners.map(({listener:at})=>at):[]}let tt=[];for(const{listeners:nt}of _r(this,ds).values())tt=tt.concat(nt.map(({listener:at})=>at));return tt}async off(et,tt){const nt=await va(this,vu,Mp).call(this,et);if(!nt)return this;if(tt){const at=nt.listeners.map(({listener:it})=>it).indexOf(tt);at>=0&&nt.listeners.splice(at,1)}return(!tt||nt.listeners.length===0)&&(nt.started&&nt.subscriber.stop(),_r(this,ds).delete(nt.tag)),this}async removeAllListeners(et){if(et){const{tag:tt,started:nt,subscriber:at}=await va(this,pp,Sm).call(this,et);nt&&at.stop(),_r(this,ds).delete(tt)}else for(const[tt,{started:nt,subscriber:at}]of _r(this,ds))nt&&at.stop(),_r(this,ds).delete(tt);return this}async addListener(et,tt){return await this.on(et,tt)}async removeListener(et,tt){return this.off(et,tt)}get destroyed(){return _r(this,fp)}destroy(){this.removeAllListeners();for(const et of _r(this,ks).keys())this._clearTimeout(et);Wr(this,fp,!0)}get paused(){return _r(this,hs)!=null}set paused(et){!!et!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(et){if(Wr(this,_l,-1),_r(this,hs)!=null){if(_r(this,hs)==!!et)return;assert$y(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(tt=>tt.pause(et)),Wr(this,hs,!!et);for(const tt of _r(this,ks).values())tt.timer&&clearTimeout(tt.timer),tt.time=getTime$2()-tt.time}resume(){if(_r(this,hs)!=null){this._forEachSubscriber(et=>et.resume()),Wr(this,hs,null);for(const et of _r(this,ks).values()){let tt=et.time;tt<0&&(tt=0),et.time=getTime$2(),setTimeout(et.func,tt)}}}}ds=new WeakMap,jl=new WeakMap,hs=new WeakMap,fp=new WeakMap,Os=new WeakMap,mu=new WeakMap,Fl=new WeakMap,_l=new WeakMap,zp=new WeakMap,ks=new WeakMap,dp=new WeakMap,hp=new WeakMap,ys=new WeakSet,Ts=async function(et){const tt=_r(this,hp).cacheTimeout;if(tt<0)return await this._perform(et);const nt=getTag$7(et.method,et);let at=_r(this,Fl).get(nt);return at||(at=this._perform(et),_r(this,Fl).set(nt,at),setTimeout(()=>{_r(this,Fl).get(nt)===at&&_r(this,Fl).delete(nt)},tt)),await at},Vp=new WeakSet,Fm=async function(et,tt,nt){assert$y(nt<MAX_CCIP_REDIRECTS$1,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},et,{blockTag:tt,enableCcipRead:!0})});const at=copyRequest(et);try{return hexlify$1(await this._perform({method:"call",transaction:at,blockTag:tt}))}catch(it){if(!this.disableCcipRead&&isCallException(it)&&it.data&&nt>=0&&tt==="latest"&&at.to!=null&&dataSlice(it.data,0,4)==="0x556f1830"){const ot=it.data,st=await resolveAddress(at.to,this);let ct;try{ct=parseOffchainLookup(dataSlice(it.data,4))}catch(pt){assert$y(!1,pt.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:at,info:{data:ot}})}assert$y(ct.sender.toLowerCase()===st.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:ot,reason:"OffchainLookup",transaction:at,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:ct.errorArgs}});const dt=await this.ccipReadFetch(at,ct.calldata,ct.urls);assert$y(dt!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:at,info:{data:it.data,errorArgs:ct.errorArgs}});const ht={to:st,data:concat$2([ct.selector,encodeBytes$1([dt,ct.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:ht});try{const pt=await va(this,Vp,Fm).call(this,ht,tt,nt+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},ht),result:pt}),pt}catch(pt){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},ht),error:pt}),pt}}throw it}},Wp=new WeakSet,Um=async function(et){const{value:tt}=await resolveProperties$1({network:this.getNetwork(),value:et});return tt},yu=new WeakSet,Pp=async function(et,tt,nt){let at=this._getAddress(tt),it=this._getBlockTag(nt);return(typeof at!="string"||typeof it!="string")&&([at,it]=await Promise.all([at,it])),await va(this,Wp,Um).call(this,va(this,ys,Ts).call(this,Object.assign(et,{address:at,blockTag:it})))},Kp=new WeakSet,qm=async function(et,tt){if(isHexString$1(et,32))return await va(this,ys,Ts).call(this,{method:"getBlock",blockHash:et,includeTransactions:tt});let nt=this._getBlockTag(et);return typeof nt!="string"&&(nt=await nt),await va(this,ys,Ts).call(this,{method:"getBlock",blockTag:nt,includeTransactions:tt})},vu=new WeakSet,Mp=async function(et,tt){let nt=await getSubscription(et,this);return nt.type==="event"&&tt&&tt.length>0&&tt[0].removed===!0&&(nt=await getSubscription({orphan:"drop-log",log:tt[0]},this)),_r(this,ds).get(nt.tag)||null},pp=new WeakSet,Sm=async function(et){const tt=await getSubscription(et,this),nt=tt.tag;let at=_r(this,ds).get(nt);return at||(at={subscriber:this._getSubscriber(tt),tag:nt,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},_r(this,ds).set(nt,at)),at};function _parseString$1(_e,et){try{const tt=_parseBytes$1(_e,et);if(tt)return toUtf8String$1(tt)}catch{}return null}function _parseBytes$1(_e,et){if(_e==="0x")return null;try{const tt=getNumber(dataSlice(_e,et,et+32)),nt=getNumber(dataSlice(_e,tt,tt+32));return dataSlice(_e,tt+32,tt+32+nt)}catch{}return null}function numPad$1(_e){const et=toBeArray(_e);if(et.length>32)throw new Error("internal; should not happen");const tt=new Uint8Array(32);return tt.set(et,32-et.length),tt}function bytesPad$1(_e){if(_e.length%32===0)return _e;const et=new Uint8Array(Math.ceil(_e.length/32)*32);return et.set(_e),et}const empty$1=new Uint8Array([]);function encodeBytes$1(_e){const et=[];let tt=0;for(let nt=0;nt<_e.length;nt++)et.push(empty$1),tt+=32;for(let nt=0;nt<_e.length;nt++){const at=getBytes(_e[nt]);et[nt]=numPad$1(tt),et.push(numPad$1(at.length)),et.push(bytesPad$1(at)),tt+=32+Math.ceil(at.length/32)*32}return concat$2(et)}const zeros$1="0x0000000000000000000000000000000000000000000000000000000000000000";function parseOffchainLookup(_e){const et={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};assert$y(dataLength(_e)>=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const tt=dataSlice(_e,0,32);assert$y(dataSlice(tt,0,12)===dataSlice(zeros$1,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),et.sender=dataSlice(tt,12);try{const nt=[],at=getNumber(dataSlice(_e,32,64)),it=getNumber(dataSlice(_e,at,at+32)),ot=dataSlice(_e,at+32);for(let st=0;st<it;st++){const ct=_parseString$1(ot,st*32);if(ct==null)throw new Error("abort");nt.push(ct)}et.urls=nt}catch{assert$y(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const nt=_parseBytes$1(_e,64);if(nt==null)throw new Error("abort");et.calldata=nt}catch{assert$y(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}assert$y(dataSlice(_e,100,128)===dataSlice(zeros$1,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),et.selector=dataSlice(_e,96,100);try{const nt=_parseBytes$1(_e,128);if(nt==null)throw new Error("abort");et.extraData=nt}catch{assert$y(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return et.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map(nt=>et[nt]),et}function checkProvider(_e,et){if(_e.provider)return _e.provider;assert$y(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:et})}async function populate$1(_e,et){let tt=copyRequest(et);if(tt.to!=null&&(tt.to=resolveAddress(tt.to,_e)),tt.from!=null){const nt=tt.from;tt.from=Promise.all([_e.getAddress(),resolveAddress(nt,_e)]).then(([at,it])=>(assertArgument(at.toLowerCase()===it.toLowerCase(),"transaction from mismatch","tx.from",it),at))}else tt.from=_e.getAddress();return await resolveProperties$1(tt)}class AbstractSigner{constructor(et){Zr(this,"provider");defineProperties$2(this,{provider:et||null})}async getNonce(et){return checkProvider(this,"getTransactionCount").getTransactionCount(await this.getAddress(),et)}async populateCall(et){return await populate$1(this,et)}async populateTransaction(et){const tt=checkProvider(this,"populateTransaction"),nt=await populate$1(this,et);nt.nonce==null&&(nt.nonce=await this.getNonce("pending")),nt.gasLimit==null&&(nt.gasLimit=await this.estimateGas(nt));const at=await this.provider.getNetwork();if(nt.chainId!=null){const ot=getBigInt(nt.chainId);assertArgument(ot===at.chainId,"transaction chainId mismatch","tx.chainId",et.chainId)}else nt.chainId=at.chainId;const it=nt.maxFeePerGas!=null||nt.maxPriorityFeePerGas!=null;if(nt.gasPrice!=null&&(nt.type===2||it)?assertArgument(!1,"eip-1559 transaction do not support gasPrice","tx",et):(nt.type===0||nt.type===1)&&it&&assertArgument(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",et),(nt.type===2||nt.type==null)&&nt.maxFeePerGas!=null&&nt.maxPriorityFeePerGas!=null)nt.type=2;else if(nt.type===0||nt.type===1){const ot=await tt.getFeeData();assert$y(ot.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),nt.gasPrice==null&&(nt.gasPrice=ot.gasPrice)}else{const ot=await tt.getFeeData();if(nt.type==null)if(ot.maxFeePerGas!=null&&ot.maxPriorityFeePerGas!=null)if(nt.type=2,nt.gasPrice!=null){const st=nt.gasPrice;delete nt.gasPrice,nt.maxFeePerGas=st,nt.maxPriorityFeePerGas=st}else nt.maxFeePerGas==null&&(nt.maxFeePerGas=ot.maxFeePerGas),nt.maxPriorityFeePerGas==null&&(nt.maxPriorityFeePerGas=ot.maxPriorityFeePerGas);else ot.gasPrice!=null?(assert$y(!it,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),nt.gasPrice==null&&(nt.gasPrice=ot.gasPrice),nt.type=0):assert$y(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else nt.type===2&&(nt.maxFeePerGas==null&&(nt.maxFeePerGas=ot.maxFeePerGas),nt.maxPriorityFeePerGas==null&&(nt.maxPriorityFeePerGas=ot.maxPriorityFeePerGas))}return await resolveProperties$1(nt)}async estimateGas(et){return checkProvider(this,"estimateGas").estimateGas(await this.populateCall(et))}async call(et){return checkProvider(this,"call").call(await this.populateCall(et))}async resolveName(et){return await checkProvider(this,"resolveName").resolveName(et)}async sendTransaction(et){const tt=checkProvider(this,"sendTransaction"),nt=await this.populateTransaction(et);delete nt.from;const at=Transaction.from(nt);return await tt.broadcastTransaction(await this.signTransaction(at))}}var mp,Am,Yp;let VoidSigner$1=(Yp=class extends AbstractSigner{constructor(tt,nt){super(nt);Rn(this,mp);Zr(this,"address");defineProperties$2(this,{address:tt})}async getAddress(){return this.address}connect(tt){return new Yp(this.address,tt)}async signTransaction(tt){va(this,mp,Am).call(this,"transactions","signTransaction")}async signMessage(tt){va(this,mp,Am).call(this,"messages","signMessage")}async signTypedData(tt,nt,at){va(this,mp,Am).call(this,"typed-data","signTypedData")}},mp=new WeakSet,Am=function(tt,nt){assert$y(!1,`VoidSigner cannot sign ${tt}`,"UNSUPPORTED_OPERATION",{operation:nt})},Yp);function copy$3(_e){return JSON.parse(JSON.stringify(_e))}var $s,Zs,gu,Ul,bu,yp,Xp,Hm,Zp,Gm;class FilterIdSubscriber{constructor(et){Rn(this,Xp);Rn(this,Zp);Rn(this,$s,void 0);Rn(this,Zs,void 0);Rn(this,gu,void 0);Rn(this,Ul,void 0);Rn(this,bu,void 0);Rn(this,yp,void 0);Wr(this,$s,et),Wr(this,Zs,null),Wr(this,gu,va(this,Xp,Hm).bind(this)),Wr(this,Ul,!1),Wr(this,bu,null),Wr(this,yp,!1)}_subscribe(et){throw new Error("subclasses must override this")}_emitResults(et,tt){throw new Error("subclasses must override this")}_recover(et){throw new Error("subclasses must override this")}start(){_r(this,Ul)||(Wr(this,Ul,!0),va(this,Xp,Hm).call(this,-2))}stop(){_r(this,Ul)&&(Wr(this,Ul,!1),Wr(this,yp,!0),va(this,Zp,Gm).call(this),_r(this,$s).off("block",_r(this,gu)))}pause(et){et&&va(this,Zp,Gm).call(this),_r(this,$s).off("block",_r(this,gu))}resume(){this.start()}}$s=new WeakMap,Zs=new WeakMap,gu=new WeakMap,Ul=new WeakMap,bu=new WeakMap,yp=new WeakMap,Xp=new WeakSet,Hm=async function(et){try{_r(this,Zs)==null&&Wr(this,Zs,this._subscribe(_r(this,$s)));let tt=null;try{tt=await _r(this,Zs)}catch(it){if(!isError$3(it,"UNSUPPORTED_OPERATION")||it.operation!=="eth_newFilter")throw it}if(tt==null){Wr(this,Zs,null),_r(this,$s)._recoverSubscriber(this,this._recover(_r(this,$s)));return}const nt=await _r(this,$s).getNetwork();if(_r(this,bu)||Wr(this,bu,nt),_r(this,bu).chainId!==nt.chainId)throw new Error("chaid changed");if(_r(this,yp))return;const at=await _r(this,$s).send("eth_getFilterChanges",[tt]);await this._emitResults(_r(this,$s),at)}catch(tt){console.log("@TODO",tt)}_r(this,$s).once("block",_r(this,gu))},Zp=new WeakSet,Gm=function(){const et=_r(this,Zs);et&&(Wr(this,Zs,null),et.then(tt=>{_r(this,$s).send("eth_uninstallFilter",[tt])}))};var _u;class FilterIdEventSubscriber extends FilterIdSubscriber{constructor(tt,nt){super(tt);Rn(this,_u,void 0);Wr(this,_u,copy$3(nt))}_recover(tt){return new PollingEventSubscriber(tt,_r(this,_u))}async _subscribe(tt){return await tt.send("eth_newFilter",[_r(this,_u)])}async _emitResults(tt,nt){for(const at of nt)tt.emit(_r(this,_u),tt._wrapLog(at,tt._network))}}_u=new WeakMap;class FilterIdPendingSubscriber extends FilterIdSubscriber{async _subscribe(et){return await et.send("eth_newPendingTransactionFilter",[])}async _emitResults(et,tt){for(const nt of tt)et.emit("pending",nt)}}const Primitive="bigint,boolean,function,number,string,symbol".split(/,/g);function deepCopy$1(_e){if(_e==null||Primitive.indexOf(typeof _e)>=0||typeof _e.getAddress=="function")return _e;if(Array.isArray(_e))return _e.map(deepCopy$1);if(typeof _e=="object")return Object.keys(_e).reduce((et,tt)=>(et[tt]=_e[tt],et),{});throw new Error(`should not happen: ${_e} (${typeof _e})`)}function stall$3(_e){return new Promise(et=>{setTimeout(et,_e)})}function getLowerCase$1(_e){return _e&&_e.toLowerCase()}function isPollable(_e){return _e&&typeof _e.pollingInterval=="number"}const defaultOptions$2={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};let JsonRpcSigner$1=class extends AbstractSigner{constructor(tt,nt){super(tt);Zr(this,"address");nt=getAddress$1(nt),defineProperties$2(this,{address:nt})}connect(tt){assert$y(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(tt){return await this.populateCall(tt)}async sendUncheckedTransaction(tt){const nt=deepCopy$1(tt),at=[];if(nt.from){const ot=nt.from;at.push((async()=>{const st=await resolveAddress(ot,this.provider);assertArgument(st!=null&&st.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",tt),nt.from=st})())}else nt.from=this.address;if(nt.gasLimit==null&&at.push((async()=>{nt.gasLimit=await this.provider.estimateGas({...nt,from:this.address})})()),nt.to!=null){const ot=nt.to;at.push((async()=>{nt.to=await resolveAddress(ot,this.provider)})())}at.length&&await Promise.all(at);const it=this.provider.getRpcTransaction(nt);return this.provider.send("eth_sendTransaction",[it])}async sendTransaction(tt){const nt=await this.provider.getBlockNumber(),at=await this.sendUncheckedTransaction(tt);return await new Promise((it,ot)=>{const st=[1e3,100];let ct=0;const dt=async()=>{try{const ht=await this.provider.getTransaction(at);if(ht!=null){it(ht.replaceableTransaction(nt));return}}catch(ht){if(isError$3(ht,"CANCELLED")||isError$3(ht,"BAD_DATA")||isError$3(ht,"NETWORK_ERROR")){ht.info==null&&(ht.info={}),ht.info.sendTransactionHash=at,ot(ht);return}if(isError$3(ht,"INVALID_ARGUMENT")&&(ct++,ht.info==null&&(ht.info={}),ht.info.sendTransactionHash=at,ct>10)){ot(ht);return}this.provider.emit("error",makeError("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:ht}))}this.provider._setTimeout(()=>{dt()},st.pop()||4e3)};dt()})}async signTransaction(tt){const nt=deepCopy$1(tt);if(nt.from){const it=await resolveAddress(nt.from,this.provider);assertArgument(it!=null&&it.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",tt),nt.from=it}else nt.from=this.address;const at=this.provider.getRpcTransaction(nt);return await this.provider.send("eth_signTransaction",[at])}async signMessage(tt){const nt=typeof tt=="string"?toUtf8Bytes$1(tt):tt;return await this.provider.send("personal_sign",[hexlify$1(nt),this.address.toLowerCase()])}async signTypedData(tt,nt,at){const it=deepCopy$1(at),ot=await TypedDataEncoder$1.resolveNames(tt,nt,it,async st=>{const ct=await resolveAddress(st);return assertArgument(ct!=null,"TypedData does not support null address","value",st),ct});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(TypedDataEncoder$1.getPayload(ot.domain,nt,ot.value))])}async unlock(tt){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),tt,null])}async _legacySignMessage(tt){const nt=typeof tt=="string"?toUtf8Bytes$1(tt):tt;return await this.provider.send("eth_sign",[this.address.toLowerCase(),hexlify$1(nt)])}};var $u,vp,$l,Qs,Hs,Bs,Es,Qp,zm;class JsonRpcApiProvider extends AbstractProvider{constructor(tt,nt){super(tt,nt);Rn(this,Qp);Rn(this,$u,void 0);Rn(this,vp,void 0);Rn(this,$l,void 0);Rn(this,Qs,void 0);Rn(this,Hs,void 0);Rn(this,Bs,void 0);Rn(this,Es,void 0);Wr(this,vp,1),Wr(this,$u,Object.assign({},defaultOptions$2,nt||{})),Wr(this,$l,[]),Wr(this,Qs,null),Wr(this,Bs,null),Wr(this,Es,null);{let it=null;const ot=new Promise(st=>{it=st});Wr(this,Hs,{promise:ot,resolve:it})}const at=this._getOption("staticNetwork");typeof at=="boolean"?(assertArgument(!at||tt!=="any","staticNetwork cannot be used on special network 'any'","options",nt),at&&tt!=null&&Wr(this,Bs,Network$2.from(tt))):at&&(assertArgument(tt==null||at.matches(tt),"staticNetwork MUST match network object","options",nt),Wr(this,Bs,at))}_getOption(tt){return _r(this,$u)[tt]}get _network(){return assert$y(_r(this,Bs),"network is not available yet","NETWORK_ERROR"),_r(this,Bs)}async _perform(tt){if(tt.method==="call"||tt.method==="estimateGas"){let at=tt.transaction;if(at&&at.type!=null&&getBigInt(at.type)&&at.maxFeePerGas==null&&at.maxPriorityFeePerGas==null){const it=await this.getFeeData();it.maxFeePerGas==null&&it.maxPriorityFeePerGas==null&&(tt=Object.assign({},tt,{transaction:Object.assign({},at,{type:void 0})}))}}const nt=this.getRpcRequest(tt);return nt!=null?await this.send(nt.method,nt.args):super._perform(tt)}async _detectNetwork(){const tt=this._getOption("staticNetwork");if(tt)if(tt===!0){if(_r(this,Bs))return _r(this,Bs)}else return tt;return _r(this,Es)?await _r(this,Es):this.ready?(Wr(this,Es,(async()=>{try{const nt=Network$2.from(getBigInt(await this.send("eth_chainId",[])));return Wr(this,Es,null),nt}catch(nt){throw Wr(this,Es,null),nt}})()),await _r(this,Es)):(Wr(this,Es,(async()=>{const nt={id:xp(this,vp)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:nt});let at;try{at=(await this._send(nt))[0],Wr(this,Es,null)}catch(it){throw Wr(this,Es,null),this.emit("debug",{action:"receiveRpcError",error:it}),it}if(this.emit("debug",{action:"receiveRpcResult",result:at}),"result"in at)return Network$2.from(getBigInt(at.result));throw this.getRpcError(nt,at)})()),await _r(this,Es))}_start(){_r(this,Hs)==null||_r(this,Hs).resolve==null||(_r(this,Hs).resolve(),Wr(this,Hs,null),(async()=>{for(;_r(this,Bs)==null&&!this.destroyed;)try{Wr(this,Bs,await this._detectNetwork())}catch(tt){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",makeError("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:tt}})),await stall$3(1e3)}va(this,Qp,zm).call(this)})())}async _waitUntilReady(){if(_r(this,Hs)!=null)return await _r(this,Hs).promise}_getSubscriber(tt){return tt.type==="pending"?new FilterIdPendingSubscriber(this):tt.type==="event"?this._getOption("polling")?new PollingEventSubscriber(this,tt.filter):new FilterIdEventSubscriber(this,tt.filter):tt.type==="orphan"&&tt.filter.orphan==="drop-log"?new UnmanagedSubscriber("orphan"):super._getSubscriber(tt)}get ready(){return _r(this,Hs)==null}getRpcTransaction(tt){const nt={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(at=>{if(tt[at]==null)return;let it=at;at==="gasLimit"&&(it="gas"),nt[it]=toQuantity(getBigInt(tt[at],`tx.${at}`))}),["from","to","data"].forEach(at=>{tt[at]!=null&&(nt[at]=hexlify$1(tt[at]))}),tt.accessList&&(nt.accessList=accessListify$1(tt.accessList)),nt}getRpcRequest(tt){switch(tt.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:[getLowerCase$1(tt.address),tt.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[getLowerCase$1(tt.address),tt.blockTag]};case"getCode":return{method:"eth_getCode",args:[getLowerCase$1(tt.address),tt.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[getLowerCase$1(tt.address),"0x"+tt.position.toString(16),tt.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[tt.signedTransaction]};case"getBlock":if("blockTag"in tt)return{method:"eth_getBlockByNumber",args:[tt.blockTag,!!tt.includeTransactions]};if("blockHash"in tt)return{method:"eth_getBlockByHash",args:[tt.blockHash,!!tt.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[tt.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[tt.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(tt.transaction),tt.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(tt.transaction)]};case"getLogs":return tt.filter&&tt.filter.address!=null&&(Array.isArray(tt.filter.address)?tt.filter.address=tt.filter.address.map(getLowerCase$1):tt.filter.address=getLowerCase$1(tt.filter.address)),{method:"eth_getLogs",args:[tt.filter]}}return null}getRpcError(tt,nt){const{method:at}=tt,{error:it}=nt;if(at==="eth_estimateGas"&&it.message){const ct=it.message;if(!ct.match(/revert/i)&&ct.match(/insufficient funds/i))return makeError("insufficient funds","INSUFFICIENT_FUNDS",{transaction:tt.params[0],info:{payload:tt,error:it}})}if(at==="eth_call"||at==="eth_estimateGas"){const ct=spelunkData(it),dt=AbiCoder$1.getBuiltinCallException(at==="eth_call"?"call":"estimateGas",tt.params[0],ct?ct.data:null);return dt.info={error:it,payload:tt},dt}const ot=JSON.stringify(spelunkMessage(it));if(typeof it.message=="string"&&it.message.match(/user denied|ethers-user-denied/i))return makeError("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"}[at]||"unknown",reason:"rejected",info:{payload:tt,error:it}});if(at==="eth_sendRawTransaction"||at==="eth_sendTransaction"){const ct=tt.params[0];if(ot.match(/insufficient funds|base fee exceeds gas limit/i))return makeError("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:ct,info:{error:it}});if(ot.match(/nonce/i)&&ot.match(/too low/i))return makeError("nonce has already been used","NONCE_EXPIRED",{transaction:ct,info:{error:it}});if(ot.match(/replacement transaction/i)&&ot.match(/underpriced/i))return makeError("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:ct,info:{error:it}});if(ot.match(/only replay-protected/i))return makeError("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:at,info:{transaction:ct,info:{error:it}}})}let st=!!ot.match(/the method .* does not exist/i);return st||it&&it.details&&it.details.startsWith("Unauthorized method:")&&(st=!0),st?makeError("unsupported operation","UNSUPPORTED_OPERATION",{operation:tt.method,info:{error:it,payload:tt}}):makeError("could not coalesce error","UNKNOWN_ERROR",{error:it,payload:tt})}send(tt,nt){if(this.destroyed)return Promise.reject(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:tt}));const at=xp(this,vp)._++,it=new Promise((ot,st)=>{_r(this,$l).push({resolve:ot,reject:st,payload:{method:tt,params:nt,id:at,jsonrpc:"2.0"}})});return va(this,Qp,zm).call(this),it}async getSigner(tt){tt==null&&(tt=0);const nt=this.send("eth_accounts",[]);if(typeof tt=="number"){const it=await nt;if(tt>=it.length)throw new Error("no such account");return new JsonRpcSigner$1(this,it[tt])}const{accounts:at}=await resolveProperties$1({network:this.getNetwork(),accounts:nt});tt=getAddress$1(tt);for(const it of at)if(getAddress$1(it)===tt)return new JsonRpcSigner$1(this,tt);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(nt=>new JsonRpcSigner$1(this,nt))}destroy(){_r(this,Qs)&&(clearTimeout(_r(this,Qs)),Wr(this,Qs,null));for(const{payload:tt,reject:nt}of _r(this,$l))nt(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:tt.method}));Wr(this,$l,[]),super.destroy()}}$u=new WeakMap,vp=new WeakMap,$l=new WeakMap,Qs=new WeakMap,Hs=new WeakMap,Bs=new WeakMap,Es=new WeakMap,Qp=new WeakSet,zm=function(){if(_r(this,Qs))return;const tt=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");Wr(this,Qs,setTimeout(()=>{Wr(this,Qs,null);const nt=_r(this,$l);for(Wr(this,$l,[]);nt.length;){const at=[nt.shift()];for(;nt.length&&at.length!==_r(this,$u).batchMaxCount;)if(at.push(nt.shift()),JSON.stringify(at.map(ot=>ot.payload)).length>_r(this,$u).batchMaxSize){nt.unshift(at.pop());break}(async()=>{const it=at.length===1?at[0].payload:at.map(ot=>ot.payload);this.emit("debug",{action:"sendRpcPayload",payload:it});try{const ot=await this._send(it);this.emit("debug",{action:"receiveRpcResult",result:ot});for(const{resolve:st,reject:ct,payload:dt}of at){if(this.destroyed){ct(makeError("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:dt.method}));continue}const ht=ot.filter(pt=>pt.id===dt.id)[0];if(ht==null){const pt=makeError("missing response for request","BAD_DATA",{value:ot,info:{payload:dt}});this.emit("error",pt),ct(pt);continue}if("error"in ht){ct(this.getRpcError(dt,ht));continue}st(ht.result)}}catch(ot){this.emit("debug",{action:"receiveRpcError",error:ot});for(const{reject:st}of at)st(ot)}})()}},tt))};var ql;class JsonRpcApiPollingProvider extends JsonRpcApiProvider{constructor(tt,nt){super(tt,nt);Rn(this,ql,void 0);Wr(this,ql,4e3)}_getSubscriber(tt){const nt=super._getSubscriber(tt);return isPollable(nt)&&(nt.pollingInterval=_r(this,ql)),nt}get pollingInterval(){return _r(this,ql)}set pollingInterval(tt){if(!Number.isInteger(tt)||tt<0)throw new Error("invalid interval");Wr(this,ql,tt),this._forEachSubscriber(nt=>{isPollable(nt)&&(nt.pollingInterval=_r(this,ql))})}}ql=new WeakMap;var gp,Jm;let JsonRpcProvider$1=(Jm=class extends JsonRpcApiPollingProvider{constructor(tt,nt,at){tt==null&&(tt="http://localhost:8545");super(nt,at);Rn(this,gp,void 0);typeof tt=="string"?Wr(this,gp,new FetchRequest(tt)):Wr(this,gp,tt.clone())}_getConnection(){return _r(this,gp).clone()}async send(tt,nt){return await this._start(),await super.send(tt,nt)}async _send(tt){const nt=this._getConnection();nt.body=JSON.stringify(tt),nt.setHeader("content-type","application/json");const at=await nt.send();at.assertOk();let it=at.bodyJson;return Array.isArray(it)||(it=[it]),it}},gp=new WeakMap,Jm);function spelunkData(_e){if(_e==null)return null;if(typeof _e.message=="string"&&_e.message.match(/revert/i)&&isHexString$1(_e.data))return{message:_e.message,data:_e.data};if(typeof _e=="object"){for(const et in _e){const tt=spelunkData(_e[et]);if(tt)return tt}return null}if(typeof _e=="string")try{return spelunkData(JSON.parse(_e))}catch{}return null}function _spelunkMessage(_e,et){if(_e!=null){if(typeof _e.message=="string"&&et.push(_e.message),typeof _e=="object")for(const tt in _e)_spelunkMessage(_e[tt],et);if(typeof _e=="string")try{return _spelunkMessage(JSON.parse(_e),et)}catch{}}}function spelunkMessage(_e){const et=[];return _spelunkMessage(_e,et),et}var bp;class BrowserProvider extends JsonRpcApiPollingProvider{constructor(tt,nt){assertArgument(tt&&tt.request,"invalid EIP-1193 provider","ethereum",tt);super(nt,{batchMaxCount:1});Rn(this,bp,void 0);Wr(this,bp,async(at,it)=>{const ot={method:at,params:it};this.emit("debug",{action:"sendEip1193Request",payload:ot});try{const st=await tt.request(ot);return this.emit("debug",{action:"receiveEip1193Result",result:st}),st}catch(st){const ct=new Error(st.message);throw ct.code=st.code,ct.data=st.data,ct.payload=ot,this.emit("debug",{action:"receiveEip1193Error",error:ct}),ct}})}async send(tt,nt){return await this._start(),await super.send(tt,nt)}async _send(tt){assertArgument(!Array.isArray(tt),"EIP-1193 does not support batch request","payload",tt);try{const nt=await _r(this,bp).call(this,tt.method,tt.params||[]);return[{id:tt.id,result:nt}]}catch(nt){return[{id:tt.id,error:{code:nt.code,data:nt.data,message:nt.message}}]}}getRpcError(tt,nt){switch(nt=JSON.parse(JSON.stringify(nt)),nt.error.code||-1){case 4001:nt.error.message=`ethers-user-denied: ${nt.error.message}`;break;case 4200:nt.error.message=`ethers-unsupported: ${nt.error.message}`;break}return super.getRpcError(tt,nt)}async hasSigner(tt){tt==null&&(tt=0);const nt=await this.send("eth_accounts",[]);return typeof tt=="number"?nt.length>tt:(tt=tt.toLowerCase(),nt.filter(at=>at.toLowerCase()===tt).length!==0)}async getSigner(tt){if(tt==null&&(tt=0),!await this.hasSigner(tt))try{await _r(this,bp).call(this,"eth_requestAccounts",[])}catch(nt){const at=nt.payload;throw this.getRpcError(at,{id:at.id,error:nt})}return await super.getSigner(tt)}}bp=new WeakMap;var _p;const Zm=class Zm extends AbstractSigner{constructor(tt,nt){super(nt);Zr(this,"address");Rn(this,_p,void 0);assertArgument(tt&&typeof tt.sign=="function","invalid private key","privateKey","[ REDACTED ]"),Wr(this,_p,tt);const at=computeAddress$2(this.signingKey.publicKey);defineProperties$2(this,{address:at})}get signingKey(){return _r(this,_p)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(tt){return new Zm(_r(this,_p),tt)}async signTransaction(tt){const{to:nt,from:at}=await resolveProperties$1({to:tt.to?resolveAddress(tt.to,this.provider):void 0,from:tt.from?resolveAddress(tt.from,this.provider):void 0});nt!=null&&(tt.to=nt),at!=null&&(tt.from=at),tt.from!=null&&(assertArgument(getAddress$1(tt.from)===this.address,"transaction from address mismatch","tx.from",tt.from),delete tt.from);const it=Transaction.from(tt);return it.signature=this.signingKey.sign(it.unsignedHash),it.serialized}async signMessage(tt){return this.signMessageSync(tt)}signMessageSync(tt){return this.signingKey.sign(hashMessage(tt)).serialized}async signTypedData(tt,nt,at){const it=await TypedDataEncoder$1.resolveNames(tt,nt,at,async ot=>{assert$y(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:ot}});const st=await this.provider.resolveName(ot);return assert$y(st!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:ot}),st});return this.signingKey.sign(TypedDataEncoder$1.hash(it.domain,nt,it.value)).serialized}};_p=new WeakMap;let BaseWallet=Zm;const subsChrs=" !#$%&'()*+,-./<=>?@[]^_`{|}~",Word=/^[a-z]*$/i;function unfold(_e,et){let tt=97;return _e.reduce((nt,at)=>(at===et?tt++:at.match(Word)?nt.push(String.fromCharCode(tt)+at):(tt=97,nt.push(at)),nt),[])}function decode$6(_e,et){for(let at=subsChrs.length-1;at>=0;at--)_e=_e.split(subsChrs[at]).join(et.substring(2*at,2*at+2));const tt=[],nt=_e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(at,it,ot,st)=>{if(ot)for(let ct=parseInt(ot);ct>=0;ct--)tt.push(";");else tt.push(it.toLowerCase());return""});if(nt)throw new Error(`leftovers: ${JSON.stringify(nt)}`);return unfold(unfold(tt,";"),":")}function decodeOwl(_e){return assertArgument(_e[0]==="0","unsupported auwl data","data",_e),decode$6(_e.substring(1+2*subsChrs.length),_e.substring(1,1+2*subsChrs.length))}class Wordlist{constructor(et){Zr(this,"locale");defineProperties$2(this,{locale:et})}split(et){return et.toLowerCase().split(/\s+/g)}join(et){return et.join(" ")}}var $p,Jp,wu,em,Vm;class WordlistOwl extends Wordlist{constructor(tt,nt,at){super(tt);Rn(this,em);Rn(this,$p,void 0);Rn(this,Jp,void 0);Rn(this,wu,void 0);Wr(this,$p,nt),Wr(this,Jp,at),Wr(this,wu,null)}get _data(){return _r(this,$p)}_decodeWords(){return decodeOwl(_r(this,$p))}getWord(tt){const nt=va(this,em,Vm).call(this);return assertArgument(tt>=0&&tt<nt.length,`invalid word index: ${tt}`,"index",tt),nt[tt]}getWordIndex(tt){return va(this,em,Vm).call(this).indexOf(tt)}}$p=new WeakMap,Jp=new WeakMap,wu=new WeakMap,em=new WeakSet,Vm=function(){if(_r(this,wu)==null){const tt=this._decodeWords();if(id$2(tt.join(`
129
129
  `)+`
130
130
  `)!==_r(this,Jp))throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);Wr(this,wu,tt)}return _r(this,wu)};const words$1="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 Rfe@Rm.Rs#T2O}OtoRa'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|UffUmb!Y!0Bje@Bm.BwayC)[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",checksum="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60";let wordlist=null;class LangEn extends WordlistOwl{constructor(){super("en",words$1,checksum)}static wordlist(){return wordlist==null&&(wordlist=new LangEn),wordlist}}function getUpperMask(_e){return(1<<_e)-1<<8-_e&255}function getLowerMask(_e){return(1<<_e)-1&255}function mnemonicToEntropy(_e,et){assertNormalize("NFKD"),et==null&&(et=LangEn.wordlist());const tt=et.split(_e);assertArgument(tt.length%3===0&&tt.length>=12&&tt.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const nt=new Uint8Array(Math.ceil(11*tt.length/8));let at=0;for(let dt=0;dt<tt.length;dt++){let ht=et.getWordIndex(tt[dt].normalize("NFKD"));assertArgument(ht>=0,`invalid mnemonic word at index ${dt}`,"mnemonic","[ REDACTED ]");for(let pt=0;pt<11;pt++)ht&1<<10-pt&&(nt[at>>3]|=1<<7-at%8),at++}const it=32*tt.length/3,ot=tt.length/3,st=getUpperMask(ot),ct=getBytes(sha256$4(nt.slice(0,it/8)))[0]&st;return assertArgument(ct===(nt[nt.length-1]&st),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),hexlify$1(nt.slice(0,it/8))}function entropyToMnemonic(_e,et){assertArgument(_e.length%4===0&&_e.length>=16&&_e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),et==null&&(et=LangEn.wordlist());const tt=[0];let nt=11;for(let ot=0;ot<_e.length;ot++)nt>8?(tt[tt.length-1]<<=8,tt[tt.length-1]|=_e[ot],nt-=8):(tt[tt.length-1]<<=nt,tt[tt.length-1]|=_e[ot]>>8-nt,tt.push(_e[ot]&getLowerMask(8-nt)),nt+=3);const at=_e.length/4,it=parseInt(sha256$4(_e).substring(2,4),16)&getUpperMask(at);return tt[tt.length-1]<<=at,tt[tt.length-1]|=it>>8-at,et.join(tt.map(ot=>et.getWord(ot)))}const _guard$1={};class Mnemonic{constructor(et,tt,nt,at,it){Zr(this,"phrase");Zr(this,"password");Zr(this,"wordlist");Zr(this,"entropy");at==null&&(at=""),it==null&&(it=LangEn.wordlist()),assertPrivate(et,_guard$1,"Mnemonic"),defineProperties$2(this,{phrase:nt,password:at,wordlist:it,entropy:tt})}computeSeed(){const et=toUtf8Bytes$1("mnemonic"+this.password,"NFKD");return pbkdf2$1(toUtf8Bytes$1(this.phrase,"NFKD"),et,2048,64,"sha512")}static fromPhrase(et,tt,nt){const at=mnemonicToEntropy(et,nt);return et=entropyToMnemonic(getBytes(at),nt),new Mnemonic(_guard$1,at,et,tt,nt)}static fromEntropy(et,tt,nt){const at=getBytes(et,"entropy"),it=entropyToMnemonic(at,nt);return new Mnemonic(_guard$1,hexlify$1(at),it,tt,nt)}static entropyToPhrase(et,tt){const nt=getBytes(et,"entropy");return entropyToMnemonic(nt,tt)}static phraseToEntropy(et,tt){return mnemonicToEntropy(et,tt)}static isValidMnemonic(et,tt){try{return mnemonicToEntropy(et,tt),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */var __classPrivateFieldGet$2=globalThis&&globalThis.__classPrivateFieldGet||function(_e,et,tt,nt){if(tt==="a"&&!nt)throw new TypeError("Private accessor was defined without a getter");if(typeof et=="function"?_e!==et||!nt:!et.has(_e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return tt==="m"?nt:tt==="a"?nt.call(_e):nt?nt.value:et.get(_e)},__classPrivateFieldSet$2=globalThis&&globalThis.__classPrivateFieldSet||function(_e,et,tt,nt,at){if(nt==="m")throw new TypeError("Private method is not writable");if(nt==="a"&&!at)throw new TypeError("Private accessor was defined without a setter");if(typeof et=="function"?_e!==et||!at:!et.has(_e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return nt==="a"?at.call(_e,tt):at?at.value=tt:et.set(_e,tt),tt},_AES_key,_AES_Kd,_AES_Ke;const numberOfRounds={16:10,24:12,32:14},rcon=[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],S$1=[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],Si=[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],T1=[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,3025820398,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],T2=[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,1115438654,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],T3=[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],T4=[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,4025428677,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],T5=[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],T6=[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,1862534868,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],T7=[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],T8=[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,645401037,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],U1=[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],U2=[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,1201765386,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],U3=[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],U4=[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,4002861748,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 convertToInt32(_e){const et=[];for(let tt=0;tt<_e.length;tt+=4)et.push(_e[tt]<<24|_e[tt+1]<<16|_e[tt+2]<<8|_e[tt+3]);return et}let AES$1=class ay{get key(){return __classPrivateFieldGet$2(this,_AES_key,"f").slice()}constructor(et){if(_AES_key.set(this,void 0),_AES_Kd.set(this,void 0),_AES_Ke.set(this,void 0),!(this instanceof ay))throw Error("AES must be instanitated with `new`");__classPrivateFieldSet$2(this,_AES_key,new Uint8Array(et),"f");const tt=numberOfRounds[this.key.length];if(tt==null)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");__classPrivateFieldSet$2(this,_AES_Ke,[],"f"),__classPrivateFieldSet$2(this,_AES_Kd,[],"f");for(let ht=0;ht<=tt;ht++)__classPrivateFieldGet$2(this,_AES_Ke,"f").push([0,0,0,0]),__classPrivateFieldGet$2(this,_AES_Kd,"f").push([0,0,0,0]);const nt=(tt+1)*4,at=this.key.length/4,it=convertToInt32(this.key);let ot;for(let ht=0;ht<at;ht++)ot=ht>>2,__classPrivateFieldGet$2(this,_AES_Ke,"f")[ot][ht%4]=it[ht],__classPrivateFieldGet$2(this,_AES_Kd,"f")[tt-ot][ht%4]=it[ht];let st=0,ct=at,dt;for(;ct<nt;){if(dt=it[at-1],it[0]^=S$1[dt>>16&255]<<24^S$1[dt>>8&255]<<16^S$1[dt&255]<<8^S$1[dt>>24&255]^rcon[st]<<24,st+=1,at!=8)for(let vt=1;vt<at;vt++)it[vt]^=it[vt-1];else{for(let vt=1;vt<at/2;vt++)it[vt]^=it[vt-1];dt=it[at/2-1],it[at/2]^=S$1[dt&255]^S$1[dt>>8&255]<<8^S$1[dt>>16&255]<<16^S$1[dt>>24&255]<<24;for(let vt=at/2+1;vt<at;vt++)it[vt]^=it[vt-1]}let ht=0,pt,mt;for(;ht<at&&ct<nt;)pt=ct>>2,mt=ct%4,__classPrivateFieldGet$2(this,_AES_Ke,"f")[pt][mt]=it[ht],__classPrivateFieldGet$2(this,_AES_Kd,"f")[tt-pt][mt]=it[ht++],ct++}for(let ht=1;ht<tt;ht++)for(let pt=0;pt<4;pt++)dt=__classPrivateFieldGet$2(this,_AES_Kd,"f")[ht][pt],__classPrivateFieldGet$2(this,_AES_Kd,"f")[ht][pt]=U1[dt>>24&255]^U2[dt>>16&255]^U3[dt>>8&255]^U4[dt&255]}encrypt(et){if(et.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const tt=__classPrivateFieldGet$2(this,_AES_Ke,"f").length-1,nt=[0,0,0,0];let at=convertToInt32(et);for(let st=0;st<4;st++)at[st]^=__classPrivateFieldGet$2(this,_AES_Ke,"f")[0][st];for(let st=1;st<tt;st++){for(let ct=0;ct<4;ct++)nt[ct]=T1[at[ct]>>24&255]^T2[at[(ct+1)%4]>>16&255]^T3[at[(ct+2)%4]>>8&255]^T4[at[(ct+3)%4]&255]^__classPrivateFieldGet$2(this,_AES_Ke,"f")[st][ct];at=nt.slice()}const it=new Uint8Array(16);let ot=0;for(let st=0;st<4;st++)ot=__classPrivateFieldGet$2(this,_AES_Ke,"f")[tt][st],it[4*st]=(S$1[at[st]>>24&255]^ot>>24)&255,it[4*st+1]=(S$1[at[(st+1)%4]>>16&255]^ot>>16)&255,it[4*st+2]=(S$1[at[(st+2)%4]>>8&255]^ot>>8)&255,it[4*st+3]=(S$1[at[(st+3)%4]&255]^ot)&255;return it}decrypt(et){if(et.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const tt=__classPrivateFieldGet$2(this,_AES_Kd,"f").length-1,nt=[0,0,0,0];let at=convertToInt32(et);for(let st=0;st<4;st++)at[st]^=__classPrivateFieldGet$2(this,_AES_Kd,"f")[0][st];for(let st=1;st<tt;st++){for(let ct=0;ct<4;ct++)nt[ct]=T5[at[ct]>>24&255]^T6[at[(ct+3)%4]>>16&255]^T7[at[(ct+2)%4]>>8&255]^T8[at[(ct+1)%4]&255]^__classPrivateFieldGet$2(this,_AES_Kd,"f")[st][ct];at=nt.slice()}const it=new Uint8Array(16);let ot=0;for(let st=0;st<4;st++)ot=__classPrivateFieldGet$2(this,_AES_Kd,"f")[tt][st],it[4*st]=(Si[at[st]>>24&255]^ot>>24)&255,it[4*st+1]=(Si[at[(st+3)%4]>>16&255]^ot>>16)&255,it[4*st+2]=(Si[at[(st+2)%4]>>8&255]^ot>>8)&255,it[4*st+3]=(Si[at[(st+1)%4]&255]^ot)&255;return it}};_AES_key=new WeakMap,_AES_Kd=new WeakMap,_AES_Ke=new WeakMap;class ModeOfOperation{constructor(et,tt,nt){if(nt&&!(this instanceof nt))throw new Error(`${et} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new AES$1(tt)},name:{enumerable:!0,value:et}})}}var __classPrivateFieldSet$1=globalThis&&globalThis.__classPrivateFieldSet||function(_e,et,tt,nt,at){if(nt==="m")throw new TypeError("Private method is not writable");if(nt==="a"&&!at)throw new TypeError("Private accessor was defined without a setter");if(typeof et=="function"?_e!==et||!at:!et.has(_e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return nt==="a"?at.call(_e,tt):at?at.value=tt:et.set(_e,tt),tt},__classPrivateFieldGet$1=globalThis&&globalThis.__classPrivateFieldGet||function(_e,et,tt,nt){if(tt==="a"&&!nt)throw new TypeError("Private accessor was defined without a getter");if(typeof et=="function"?_e!==et||!nt:!et.has(_e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return tt==="m"?nt:tt==="a"?nt.call(_e):nt?nt.value:et.get(_e)},_CBC_iv,_CBC_lastBlock;class CBC extends ModeOfOperation{constructor(et,tt){if(super("ECC",et,CBC),_CBC_iv.set(this,void 0),_CBC_lastBlock.set(this,void 0),tt){if(tt.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");__classPrivateFieldSet$1(this,_CBC_iv,new Uint8Array(tt),"f")}else __classPrivateFieldSet$1(this,_CBC_iv,new Uint8Array(16),"f");__classPrivateFieldSet$1(this,_CBC_lastBlock,this.iv,"f")}get iv(){return new Uint8Array(__classPrivateFieldGet$1(this,_CBC_iv,"f"))}encrypt(et){if(et.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const tt=new Uint8Array(et.length);for(let nt=0;nt<et.length;nt+=16){for(let at=0;at<16;at++)__classPrivateFieldGet$1(this,_CBC_lastBlock,"f")[at]^=et[nt+at];__classPrivateFieldSet$1(this,_CBC_lastBlock,this.aes.encrypt(__classPrivateFieldGet$1(this,_CBC_lastBlock,"f")),"f"),tt.set(__classPrivateFieldGet$1(this,_CBC_lastBlock,"f"),nt)}return tt}decrypt(et){if(et.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const tt=new Uint8Array(et.length);for(let nt=0;nt<et.length;nt+=16){const at=this.aes.decrypt(et.subarray(nt,nt+16));for(let it=0;it<16;it++)tt[nt+it]=at[it]^__classPrivateFieldGet$1(this,_CBC_lastBlock,"f")[it],__classPrivateFieldGet$1(this,_CBC_lastBlock,"f")[it]=et[nt+it]}return tt}}_CBC_iv=new WeakMap,_CBC_lastBlock=new WeakMap;var __classPrivateFieldSet=globalThis&&globalThis.__classPrivateFieldSet||function(_e,et,tt,nt,at){if(nt==="m")throw new TypeError("Private method is not writable");if(nt==="a"&&!at)throw new TypeError("Private accessor was defined without a setter");if(typeof et=="function"?_e!==et||!at:!et.has(_e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return nt==="a"?at.call(_e,tt):at?at.value=tt:et.set(_e,tt),tt},__classPrivateFieldGet=globalThis&&globalThis.__classPrivateFieldGet||function(_e,et,tt,nt){if(tt==="a"&&!nt)throw new TypeError("Private accessor was defined without a getter");if(typeof et=="function"?_e!==et||!nt:!et.has(_e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return tt==="m"?nt:tt==="a"?nt.call(_e):nt?nt.value:et.get(_e)},_CTR_remaining,_CTR_remainingIndex,_CTR_counter;class CTR extends ModeOfOperation{constructor(et,tt){super("CTR",et,CTR),_CTR_remaining.set(this,void 0),_CTR_remainingIndex.set(this,void 0),_CTR_counter.set(this,void 0),__classPrivateFieldSet(this,_CTR_counter,new Uint8Array(16),"f"),__classPrivateFieldGet(this,_CTR_counter,"f").fill(0),__classPrivateFieldSet(this,_CTR_remaining,__classPrivateFieldGet(this,_CTR_counter,"f"),"f"),__classPrivateFieldSet(this,_CTR_remainingIndex,16,"f"),tt==null&&(tt=1),typeof tt=="number"?this.setCounterValue(tt):this.setCounterBytes(tt)}get counter(){return new Uint8Array(__classPrivateFieldGet(this,_CTR_counter,"f"))}setCounterValue(et){if(!Number.isInteger(et)||et<0||et>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let tt=15;tt>=0;--tt)__classPrivateFieldGet(this,_CTR_counter,"f")[tt]=et%256,et=Math.floor(et/256)}setCounterBytes(et){if(et.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");__classPrivateFieldGet(this,_CTR_counter,"f").set(et)}increment(){for(let et=15;et>=0;et--)if(__classPrivateFieldGet(this,_CTR_counter,"f")[et]===255)__classPrivateFieldGet(this,_CTR_counter,"f")[et]=0;else{__classPrivateFieldGet(this,_CTR_counter,"f")[et]++;break}}encrypt(et){var tt,nt;const at=new Uint8Array(et);for(let it=0;it<at.length;it++)__classPrivateFieldGet(this,_CTR_remainingIndex,"f")===16&&(__classPrivateFieldSet(this,_CTR_remaining,this.aes.encrypt(__classPrivateFieldGet(this,_CTR_counter,"f")),"f"),__classPrivateFieldSet(this,_CTR_remainingIndex,0,"f"),this.increment()),at[it]^=__classPrivateFieldGet(this,_CTR_remaining,"f")[__classPrivateFieldSet(this,_CTR_remainingIndex,(nt=__classPrivateFieldGet(this,_CTR_remainingIndex,"f"),tt=nt++,nt),"f"),tt];return at}decrypt(et){return this.encrypt(et)}}_CTR_remaining=new WeakMap,_CTR_remainingIndex=new WeakMap,_CTR_counter=new WeakMap;function pkcs7Strip(_e){if(_e.length<16)throw new TypeError("PKCS#7 invalid length");const et=_e[_e.length-1];if(et>16)throw new TypeError("PKCS#7 padding byte out of range");const tt=_e.length-et;for(let nt=0;nt<et;nt++)if(_e[tt+nt]!==et)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(_e.subarray(0,tt))}function looseArrayify(_e){return typeof _e=="string"&&!_e.startsWith("0x")&&(_e="0x"+_e),getBytesCopy(_e)}function zpad$1(_e,et){for(_e=String(_e);_e.length<et;)_e="0"+_e;return _e}function getPassword(_e){return typeof _e=="string"?toUtf8Bytes$1(_e,"NFKC"):getBytesCopy(_e)}function spelunk$1(_e,et){const tt=et.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);assertArgument(tt!=null,"invalid path","path",et);const nt=tt[1],at=tt[3],it=tt[4]==="!";let ot=_e;for(const st of nt.toLowerCase().split(".")){if(Array.isArray(ot)){if(!st.match(/^[0-9]+$/))break;ot=ot[parseInt(st)]}else if(typeof ot=="object"){let ct=null;for(const dt in ot)if(dt.toLowerCase()===st){ct=ot[dt];break}ot=ct}else ot=null;if(ot==null)break}if(assertArgument(!it||ot!=null,"missing required value","path",nt),at&&ot!=null){if(at==="int"){if(typeof ot=="string"&&ot.match(/^-?[0-9]+$/))return parseInt(ot);if(Number.isSafeInteger(ot))return ot}if(at==="number"&&typeof ot=="string"&&ot.match(/^-?[0-9.]*$/))return parseFloat(ot);if(at==="data"&&typeof ot=="string")return looseArrayify(ot);if(at==="array"&&Array.isArray(ot)||at===typeof ot)return ot;assertArgument(!1,`wrong type found for ${at} `,"path",nt)}return ot}const defaultPath$1="m/44'/60'/0'/0/0";function isKeystoreJson(_e){try{const et=JSON.parse(_e);if((et.version!=null?parseInt(et.version):0)===3)return!0}catch{}return!1}function decrypt$1(_e,et,tt){if(spelunk$1(_e,"crypto.cipher:string")==="aes-128-ctr"){const at=spelunk$1(_e,"crypto.cipherparams.iv:data!"),it=new CTR(et,at);return hexlify$1(it.decrypt(tt))}assert$y(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}function getAccount$1(_e,et){const tt=getBytes(et),nt=spelunk$1(_e,"crypto.ciphertext:data!"),at=hexlify$1(keccak256$1(concat$2([tt.slice(16,32),nt]))).substring(2);assertArgument(at===spelunk$1(_e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const it=decrypt$1(_e,tt.slice(0,16),nt),ot=computeAddress$2(it);if(_e.address){let dt=_e.address.toLowerCase();dt.startsWith("0x")||(dt="0x"+dt),assertArgument(getAddress$1(dt)===ot,"keystore address/privateKey mismatch","address",_e.address)}const st={address:ot,privateKey:it};if(spelunk$1(_e,"x-ethers.version:string")==="0.1"){const dt=tt.slice(32,64),ht=spelunk$1(_e,"x-ethers.mnemonicCiphertext:data!"),pt=spelunk$1(_e,"x-ethers.mnemonicCounter:data!"),mt=new CTR(dt,pt);st.mnemonic={path:spelunk$1(_e,"x-ethers.path:string")||defaultPath$1,locale:spelunk$1(_e,"x-ethers.locale:string")||"en",entropy:hexlify$1(getBytes(mt.decrypt(ht)))}}return st}function getDecryptKdfParams(_e){const et=spelunk$1(_e,"crypto.kdf:string");if(et&&typeof et=="string"){if(et.toLowerCase()==="scrypt"){const tt=spelunk$1(_e,"crypto.kdfparams.salt:data!"),nt=spelunk$1(_e,"crypto.kdfparams.n:int!"),at=spelunk$1(_e,"crypto.kdfparams.r:int!"),it=spelunk$1(_e,"crypto.kdfparams.p:int!");assertArgument(nt>0&&(nt&nt-1)===0,"invalid kdf.N","kdf.N",nt),assertArgument(at>0&&it>0,"invalid kdf","kdf",et);const ot=spelunk$1(_e,"crypto.kdfparams.dklen:int!");return assertArgument(ot===32,"invalid kdf.dklen","kdf.dflen",ot),{name:"scrypt",salt:tt,N:nt,r:at,p:it,dkLen:64}}else if(et.toLowerCase()==="pbkdf2"){const tt=spelunk$1(_e,"crypto.kdfparams.salt:data!"),nt=spelunk$1(_e,"crypto.kdfparams.prf:string!"),at=nt.split("-").pop();assertArgument(at==="sha256"||at==="sha512","invalid kdf.pdf","kdf.pdf",nt);const it=spelunk$1(_e,"crypto.kdfparams.c:int!"),ot=spelunk$1(_e,"crypto.kdfparams.dklen:int!");return assertArgument(ot===32,"invalid kdf.dklen","kdf.dklen",ot),{name:"pbkdf2",salt:tt,count:it,dkLen:ot,algorithm:at}}}assertArgument(!1,"unsupported key-derivation function","kdf",et)}function decryptKeystoreJsonSync(_e,et){const tt=JSON.parse(_e),nt=getPassword(et),at=getDecryptKdfParams(tt);if(at.name==="pbkdf2"){const{salt:pt,count:mt,dkLen:vt,algorithm:bt}=at,_t=pbkdf2$1(nt,pt,mt,vt,bt);return getAccount$1(tt,_t)}assert$y(at.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:at});const{salt:it,N:ot,r:st,p:ct,dkLen:dt}=at,ht=scryptSync(nt,it,ot,st,ct,dt);return getAccount$1(tt,ht)}function stall$2(_e){return new Promise(et=>{setTimeout(()=>{et()},_e)})}async function decryptKeystoreJson(_e,et,tt){const nt=JSON.parse(_e),at=getPassword(et),it=getDecryptKdfParams(nt);if(it.name==="pbkdf2"){tt&&(tt(0),await stall$2(0));const{salt:mt,count:vt,dkLen:bt,algorithm:_t}=it,wt=pbkdf2$1(at,mt,vt,bt,_t);return tt&&(tt(1),await stall$2(0)),getAccount$1(nt,wt)}assert$y(it.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:it});const{salt:ot,N:st,r:ct,p:dt,dkLen:ht}=it,pt=await scrypt(at,ot,st,ct,dt,ht,tt);return getAccount$1(nt,pt)}function getEncryptKdfParams(_e){const et=_e.salt!=null?getBytes(_e.salt,"options.salt"):randomBytes$3(32);let tt=1<<17,nt=8,at=1;return _e.scrypt&&(_e.scrypt.N&&(tt=_e.scrypt.N),_e.scrypt.r&&(nt=_e.scrypt.r),_e.scrypt.p&&(at=_e.scrypt.p)),assertArgument(typeof tt=="number"&&tt>0&&Number.isSafeInteger(tt)&&(BigInt(tt)&BigInt(tt-1))===BigInt(0),"invalid scrypt N parameter","options.N",tt),assertArgument(typeof nt=="number"&&nt>0&&Number.isSafeInteger(nt),"invalid scrypt r parameter","options.r",nt),assertArgument(typeof at=="number"&&at>0&&Number.isSafeInteger(at),"invalid scrypt p parameter","options.p",at),{name:"scrypt",dkLen:32,salt:et,N:tt,r:nt,p:at}}function _encryptKeystore(_e,et,tt,nt){const at=getBytes(tt.privateKey,"privateKey"),it=nt.iv!=null?getBytes(nt.iv,"options.iv"):randomBytes$3(16);assertArgument(it.length===16,"invalid options.iv length","options.iv",nt.iv);const ot=nt.uuid!=null?getBytes(nt.uuid,"options.uuid"):randomBytes$3(16);assertArgument(ot.length===16,"invalid options.uuid length","options.uuid",nt.iv);const st=_e.slice(0,16),ct=_e.slice(16,32),dt=new CTR(st,it),ht=getBytes(dt.encrypt(at)),pt=keccak256$1(concat$2([ct,ht])),mt={address:tt.address.substring(2).toLowerCase(),id:uuidV4(ot),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:hexlify$1(it).substring(2)},ciphertext:hexlify$1(ht).substring(2),kdf:"scrypt",kdfparams:{salt:hexlify$1(et.salt).substring(2),n:et.N,dklen:32,p:et.p,r:et.r},mac:pt.substring(2)}};if(tt.mnemonic){const vt=nt.client!=null?nt.client:`ethers/${version$q}`,bt=tt.mnemonic.path||defaultPath$1,_t=tt.mnemonic.locale||"en",wt=_e.slice(32,64),Et=getBytes(tt.mnemonic.entropy,"account.mnemonic.entropy"),St=randomBytes$3(16),Tt=new CTR(wt,St),Ct=getBytes(Tt.encrypt(Et)),Nt=new Date,kt="UTC--"+(Nt.getUTCFullYear()+"-"+zpad$1(Nt.getUTCMonth()+1,2)+"-"+zpad$1(Nt.getUTCDate(),2)+"T"+zpad$1(Nt.getUTCHours(),2)+"-"+zpad$1(Nt.getUTCMinutes(),2)+"-"+zpad$1(Nt.getUTCSeconds(),2)+".0Z")+"--"+mt.address;mt["x-ethers"]={client:vt,gethFilename:kt,path:bt,locale:_t,mnemonicCounter:hexlify$1(St).substring(2),mnemonicCiphertext:hexlify$1(Ct).substring(2),version:"0.1"}}return JSON.stringify(mt)}function encryptKeystoreJsonSync(_e,et,tt){tt==null&&(tt={});const nt=getPassword(et),at=getEncryptKdfParams(tt),it=scryptSync(nt,at.salt,at.N,at.r,at.p,64);return _encryptKeystore(getBytes(it),at,_e,tt)}async function encryptKeystoreJson(_e,et,tt){tt==null&&(tt={});const nt=getPassword(et),at=getEncryptKdfParams(tt),it=await scrypt(nt,at.salt,at.N,at.r,at.p,64,tt.progressCallback);return _encryptKeystore(getBytes(it),at,_e,tt)}const defaultPath="m/44'/60'/0'/0/0",MasterSecret=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),HardenedBit=2147483648,N$1=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Nibbles="0123456789abcdef";function zpad(_e,et){let tt="";for(;_e;)tt=Nibbles[_e%16]+tt,_e=Math.trunc(_e/16);for(;tt.length<et*2;)tt="0"+tt;return"0x"+tt}function encodeBase58Check(_e){const et=getBytes(_e),tt=dataSlice(sha256$4(sha256$4(et)),0,4),nt=concat$2([et,tt]);return encodeBase58(nt)}const _guard={};function ser_I(_e,et,tt,nt){const at=new Uint8Array(37);_e&HardenedBit?(assert$y(nt!=null,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),at.set(getBytes(nt),1)):at.set(getBytes(tt));for(let ot=24;ot>=0;ot-=8)at[33+(ot>>3)]=_e>>24-ot&255;const it=getBytes(computeHmac("sha512",et,at));return{IL:it.slice(0,32),IR:it.slice(32)}}function derivePath(_e,et){const tt=et.split("/");assertArgument(tt.length>0,"invalid path","path",et),tt[0]==="m"&&(assertArgument(_e.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${_e.depth}`,"path",et),tt.shift());let nt=_e;for(let at=0;at<tt.length;at++){const it=tt[at];if(it.match(/^[0-9]+'$/)){const ot=parseInt(it.substring(0,it.length-1));assertArgument(ot<HardenedBit,"invalid path index",`path[${at}]`,it),nt=nt.deriveChild(HardenedBit+ot)}else if(it.match(/^[0-9]+$/)){const ot=parseInt(it);assertArgument(ot<HardenedBit,"invalid path index",`path[${at}]`,it),nt=nt.deriveChild(ot)}else assertArgument(!1,"invalid path component",`path[${at}]`,it)}return nt}var tm,Wm,Eu,Cp;const Fs=class Fs extends BaseWallet{constructor(tt,nt,at,it,ot,st,ct,dt,ht){super(nt,ht);Rn(this,tm);Zr(this,"publicKey");Zr(this,"fingerprint");Zr(this,"parentFingerprint");Zr(this,"mnemonic");Zr(this,"chainCode");Zr(this,"path");Zr(this,"index");Zr(this,"depth");assertPrivate(tt,_guard,"HDNodeWallet"),defineProperties$2(this,{publicKey:nt.compressedPublicKey});const pt=dataSlice(ripemd160$1(sha256$4(this.publicKey)),0,4);defineProperties$2(this,{parentFingerprint:at,fingerprint:pt,chainCode:it,path:ot,index:st,depth:ct}),defineProperties$2(this,{mnemonic:dt})}connect(tt){return new Fs(_guard,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,tt)}async encrypt(tt,nt){return await encryptKeystoreJson(va(this,tm,Wm).call(this),tt,{progressCallback:nt})}encryptSync(tt){return encryptKeystoreJsonSync(va(this,tm,Wm).call(this),tt)}get extendedKey(){return assert$y(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),encodeBase58Check(concat$2(["0x0488ADE4",zpad(this.depth,1),this.parentFingerprint,zpad(this.index,4),this.chainCode,concat$2(["0x00",this.privateKey])]))}hasPath(){return this.path!=null}neuter(){return new HDNodeVoidWallet(_guard,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(tt){const nt=getNumber(tt,"index");assertArgument(nt<=4294967295,"invalid index","index",nt);let at=this.path;at&&(at+="/"+(nt&~HardenedBit),nt&HardenedBit&&(at+="'"));const{IR:it,IL:ot}=ser_I(nt,this.chainCode,this.publicKey,this.privateKey),st=new SigningKey$1(toBeHex((toBigInt(ot)+BigInt(this.privateKey))%N$1,32));return new Fs(_guard,st,this.fingerprint,hexlify$1(it),at,nt,this.depth+1,this.mnemonic,this.provider)}derivePath(tt){return derivePath(this,tt)}static fromExtendedKey(tt){const nt=toBeArray(decodeBase58(tt));assertArgument(nt.length===82||encodeBase58Check(nt.slice(0,78))===tt,"invalid extended key","extendedKey","[ REDACTED ]");const at=nt[4],it=hexlify$1(nt.slice(5,9)),ot=parseInt(hexlify$1(nt.slice(9,13)).substring(2),16),st=hexlify$1(nt.slice(13,45)),ct=nt.slice(45,78);switch(hexlify$1(nt.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const dt=hexlify$1(ct);return new HDNodeVoidWallet(_guard,computeAddress$2(dt),dt,it,st,null,ot,at,null)}case"0x0488ade4":case"0x04358394 ":if(ct[0]!==0)break;return new Fs(_guard,new SigningKey$1(ct.slice(1)),it,st,null,ot,at,null,null)}assertArgument(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(tt,nt,at){var ot;tt==null&&(tt=""),nt==null&&(nt=defaultPath),at==null&&(at=LangEn.wordlist());const it=Mnemonic.fromEntropy(randomBytes$3(16),tt,at);return va(ot=Fs,Eu,Cp).call(ot,it.computeSeed(),it).derivePath(nt)}static fromMnemonic(tt,nt){var at;return nt||(nt=defaultPath),va(at=Fs,Eu,Cp).call(at,tt.computeSeed(),tt).derivePath(nt)}static fromPhrase(tt,nt,at,it){var st;nt==null&&(nt=""),at==null&&(at=defaultPath),it==null&&(it=LangEn.wordlist());const ot=Mnemonic.fromPhrase(tt,nt,it);return va(st=Fs,Eu,Cp).call(st,ot.computeSeed(),ot).derivePath(at)}static fromSeed(tt){var nt;return va(nt=Fs,Eu,Cp).call(nt,tt,null)}};tm=new WeakSet,Wm=function(){const tt={address:this.address,privateKey:this.privateKey},nt=this.mnemonic;return this.path&&nt&&nt.wordlist.locale==="en"&&nt.password===""&&(tt.mnemonic={path:this.path,locale:"en",entropy:nt.entropy}),tt},Eu=new WeakSet,Cp=function(tt,nt){assertArgument(isBytesLike$1(tt),"invalid seed","seed","[REDACTED]");const at=getBytes(tt,"seed");assertArgument(at.length>=16&&at.length<=64,"invalid seed","seed","[REDACTED]");const it=getBytes(computeHmac("sha512",MasterSecret,at)),ot=new SigningKey$1(hexlify$1(it.slice(0,32)));return new Fs(_guard,ot,"0x00000000",hexlify$1(it.slice(32)),"m",0,0,nt,null)},Rn(Fs,Eu);let HDNodeWallet=Fs;class HDNodeVoidWallet extends VoidSigner$1{constructor(tt,nt,at,it,ot,st,ct,dt,ht){super(nt,ht);Zr(this,"publicKey");Zr(this,"fingerprint");Zr(this,"parentFingerprint");Zr(this,"chainCode");Zr(this,"path");Zr(this,"index");Zr(this,"depth");assertPrivate(tt,_guard,"HDNodeVoidWallet"),defineProperties$2(this,{publicKey:at});const pt=dataSlice(ripemd160$1(sha256$4(at)),0,4);defineProperties$2(this,{publicKey:at,fingerprint:pt,parentFingerprint:it,chainCode:ot,path:st,index:ct,depth:dt})}connect(tt){return new HDNodeVoidWallet(_guard,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,tt)}get extendedKey(){return assert$y(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),encodeBase58Check(concat$2(["0x0488B21E",zpad(this.depth,1),this.parentFingerprint,zpad(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(tt){const nt=getNumber(tt,"index");assertArgument(nt<=4294967295,"invalid index","index",nt);let at=this.path;at&&(at+="/"+(nt&~HardenedBit),nt&HardenedBit&&(at+="'"));const{IR:it,IL:ot}=ser_I(nt,this.chainCode,this.publicKey,null),st=SigningKey$1.addPoints(ot,this.publicKey,!0),ct=computeAddress$2(st);return new HDNodeVoidWallet(_guard,ct,st,this.fingerprint,hexlify$1(it),at,nt,this.depth+1,this.provider)}derivePath(tt){return derivePath(this,tt)}}function isCrowdsaleJson(_e){try{if(JSON.parse(_e).encseed)return!0}catch{}return!1}function decryptCrowdsaleJson(_e,et){const tt=JSON.parse(_e),nt=getPassword(et),at=getAddress$1(spelunk$1(tt,"ethaddr:string!")),it=looseArrayify(spelunk$1(tt,"encseed:string!"));assertArgument(it&&it.length%16===0,"invalid encseed","json",_e);const ot=getBytes(pbkdf2$1(nt,nt,2e3,32,"sha256")).slice(0,16),st=it.slice(0,16),ct=it.slice(16),dt=new CBC(ot,st),ht=pkcs7Strip(getBytes(dt.decrypt(ct)));let pt="";for(let mt=0;mt<ht.length;mt++)pt+=String.fromCharCode(ht[mt]);return{address:at,privateKey:id$2(pt)}}function stall$1(_e){return new Promise(et=>{setTimeout(()=>{et()},_e)})}var rm,Km;const Ql=class Ql extends BaseWallet{constructor(et,tt){typeof et=="string"&&!et.startsWith("0x")&&(et="0x"+et);let nt=typeof et=="string"?new SigningKey$1(et):et;super(nt,tt)}connect(et){return new Ql(this.signingKey,et)}async encrypt(et,tt){const nt={address:this.address,privateKey:this.privateKey};return await encryptKeystoreJson(nt,et,{progressCallback:tt})}encryptSync(et){const tt={address:this.address,privateKey:this.privateKey};return encryptKeystoreJsonSync(tt,et)}static async fromEncryptedJson(et,tt,nt){var it;let at=null;return isKeystoreJson(et)?at=await decryptKeystoreJson(et,tt,nt):isCrowdsaleJson(et)&&(nt&&(nt(0),await stall$1(0)),at=decryptCrowdsaleJson(et,tt),nt&&(nt(1),await stall$1(0))),va(it=Ql,rm,Km).call(it,at)}static fromEncryptedJsonSync(et,tt){var at;let nt=null;return isKeystoreJson(et)?nt=decryptKeystoreJsonSync(et,tt):isCrowdsaleJson(et)?nt=decryptCrowdsaleJson(et,tt):assertArgument(!1,"invalid JSON wallet","json","[ REDACTED ]"),va(at=Ql,rm,Km).call(at,nt)}static createRandom(et){const tt=HDNodeWallet.createRandom();return et?tt.connect(et):tt}static fromPhrase(et,tt){const nt=HDNodeWallet.fromPhrase(et);return tt?nt.connect(tt):nt}};rm=new WeakSet,Km=function(et){if(assertArgument(et,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in et&&et.mnemonic&&et.mnemonic.locale==="en"){const nt=Mnemonic.fromEntropy(et.mnemonic.entropy),at=HDNodeWallet.fromMnemonic(nt,et.mnemonic.path);if(at.address===et.address&&at.privateKey===et.privateKey)return at;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const tt=new Ql(et.privateKey);return assertArgument(tt.address===et.address,"address/privateKey mismatch","json","[ REDACTED ]"),tt},Rn(Ql,rm);let Wallet=Ql;const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(_e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_e]]=_e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=_e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e&&_e.buffer instanceof ArrayBuffer,encodePacket=({type:_e,data:et},tt,nt)=>withNativeBlob$1&&et instanceof Blob?tt?nt(et):encodeBlobAsBase64(et,nt):withNativeArrayBuffer$2&&(et instanceof ArrayBuffer||isView$1(et))?tt?nt(et):encodeBlobAsBase64(new Blob([et]),nt):nt(PACKET_TYPES[_e]+(et||"")),encodeBlobAsBase64=(_e,et)=>{const tt=new FileReader;return tt.onload=function(){const nt=tt.result.split(",")[1];et("b"+(nt||""))},tt.readAsDataURL(_e)};function toArray$4(_e){return _e instanceof Uint8Array?_e:_e instanceof ArrayBuffer?new Uint8Array(_e):new Uint8Array(_e.buffer,_e.byteOffset,_e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(_e,et){if(withNativeBlob$1&&_e.data instanceof Blob)return _e.data.arrayBuffer().then(toArray$4).then(et);if(withNativeArrayBuffer$2&&(_e.data instanceof ArrayBuffer||isView$1(_e.data)))return et(toArray$4(_e.data));encodePacket(_e,!1,tt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),et(TEXT_ENCODER.encode(tt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let _e=0;_e<chars.length;_e++)lookup$1[chars.charCodeAt(_e)]=_e;const decode$5=_e=>{let et=_e.length*.75,tt=_e.length,nt,at=0,it,ot,st,ct;_e[_e.length-1]==="="&&(et--,_e[_e.length-2]==="="&&et--);const dt=new ArrayBuffer(et),ht=new Uint8Array(dt);for(nt=0;nt<tt;nt+=4)it=lookup$1[_e.charCodeAt(nt)],ot=lookup$1[_e.charCodeAt(nt+1)],st=lookup$1[_e.charCodeAt(nt+2)],ct=lookup$1[_e.charCodeAt(nt+3)],ht[at++]=it<<2|ot>>4,ht[at++]=(ot&15)<<4|st>>2,ht[at++]=(st&3)<<6|ct&63;return dt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(_e,et)=>{if(typeof _e!="string")return{type:"message",data:mapBinary(_e,et)};const tt=_e.charAt(0);return tt==="b"?{type:"message",data:decodeBase64Packet(_e.substring(1),et)}:PACKET_TYPES_REVERSE[tt]?_e.length>1?{type:PACKET_TYPES_REVERSE[tt],data:_e.substring(1)}:{type:PACKET_TYPES_REVERSE[tt]}:ERROR_PACKET},decodeBase64Packet=(_e,et)=>{if(withNativeArrayBuffer$1){const tt=decode$5(_e);return mapBinary(tt,et)}else return{base64:!0,data:_e}},mapBinary=(_e,et)=>{switch(et){case"blob":return _e instanceof Blob?_e:new Blob([_e]);case"arraybuffer":default:return _e instanceof ArrayBuffer?_e:_e.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(_e,et)=>{const tt=_e.length,nt=new Array(tt);let at=0;_e.forEach((it,ot)=>{encodePacket(it,!1,st=>{nt[ot]=st,++at===tt&&et(nt.join(SEPARATOR))})})},decodePayload=(_e,et)=>{const tt=_e.split(SEPARATOR),nt=[];for(let at=0;at<tt.length;at++){const it=decodePacket(tt[at],et);if(nt.push(it),it.type==="error")break}return nt};function createPacketEncoderStream(){return new TransformStream({transform(_e,et){encodePacketToBinary(_e,tt=>{const nt=tt.length;let at;if(nt<126)at=new Uint8Array(1),new DataView(at.buffer).setUint8(0,nt);else if(nt<65536){at=new Uint8Array(3);const it=new DataView(at.buffer);it.setUint8(0,126),it.setUint16(1,nt)}else{at=new Uint8Array(9);const it=new DataView(at.buffer);it.setUint8(0,127),it.setBigUint64(1,BigInt(nt))}_e.data&&typeof _e.data!="string"&&(at[0]|=128),et.enqueue(at),et.enqueue(tt)})}})}let TEXT_DECODER;function totalLength(_e){return _e.reduce((et,tt)=>et+tt.length,0)}function concatChunks(_e,et){if(_e[0].length===et)return _e.shift();const tt=new Uint8Array(et);let nt=0;for(let at=0;at<et;at++)tt[at]=_e[0][nt++],nt===_e[0].length&&(_e.shift(),nt=0);return _e.length&&nt<_e[0].length&&(_e[0]=_e[0].slice(nt)),tt}function createPacketDecoderStream(_e,et){TEXT_DECODER||(TEXT_DECODER=new TextDecoder);const tt=[];let nt=0,at=-1,it=!1;return new TransformStream({transform(ot,st){for(tt.push(ot);;){if(nt===0){if(totalLength(tt)<1)break;const ct=concatChunks(tt,1);it=(ct[0]&128)===128,at=ct[0]&127,at<126?nt=3:at===126?nt=1:nt=2}else if(nt===1){if(totalLength(tt)<2)break;const ct=concatChunks(tt,2);at=new DataView(ct.buffer,ct.byteOffset,ct.length).getUint16(0),nt=3}else if(nt===2){if(totalLength(tt)<8)break;const ct=concatChunks(tt,8),dt=new DataView(ct.buffer,ct.byteOffset,ct.length),ht=dt.getUint32(0);if(ht>Math.pow(2,53-32)-1){st.enqueue(ERROR_PACKET);break}at=ht*Math.pow(2,32)+dt.getUint32(4),nt=3}else{if(totalLength(tt)<at)break;const ct=concatChunks(tt,at);st.enqueue(decodePacket(it?ct:TEXT_DECODER.decode(ct),et)),nt=0}if(at===0||at>_e){st.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(_e){if(_e)return mixin$1(_e)}function mixin$1(_e){for(var et in Emitter.prototype)_e[et]=Emitter.prototype[et];return _e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(_e,et){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_e]=this._callbacks["$"+_e]||[]).push(et),this};Emitter.prototype.once=function(_e,et){function tt(){this.off(_e,tt),et.apply(this,arguments)}return tt.fn=et,this.on(_e,tt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(_e,et){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var tt=this._callbacks["$"+_e];if(!tt)return this;if(arguments.length==1)return delete this._callbacks["$"+_e],this;for(var nt,at=0;at<tt.length;at++)if(nt=tt[at],nt===et||nt.fn===et){tt.splice(at,1);break}return tt.length===0&&delete this._callbacks["$"+_e],this};Emitter.prototype.emit=function(_e){this._callbacks=this._callbacks||{};for(var et=new Array(arguments.length-1),tt=this._callbacks["$"+_e],nt=1;nt<arguments.length;nt++)et[nt-1]=arguments[nt];if(tt){tt=tt.slice(0);for(var nt=0,at=tt.length;nt<at;++nt)tt[nt].apply(this,et)}return this};Emitter.prototype.emitReserved=Emitter.prototype.emit;Emitter.prototype.listeners=function(_e){return this._callbacks=this._callbacks||{},this._callbacks["$"+_e]||[]};Emitter.prototype.hasListeners=function(_e){return!!this.listeners(_e).length};const globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick$2(_e,...et){return et.reduce((tt,nt)=>(_e.hasOwnProperty(nt)&&(tt[nt]=_e[nt]),tt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(_e,et){et.useNativeTimers?(_e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),_e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(_e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),_e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength$1(_e){return typeof _e=="string"?utf8Length(_e):Math.ceil((_e.byteLength||_e.size)*BASE64_OVERHEAD)}function utf8Length(_e){let et=0,tt=0;for(let nt=0,at=_e.length;nt<at;nt++)et=_e.charCodeAt(nt),et<128?tt+=1:et<2048?tt+=2:et<55296||et>=57344?tt+=3:(nt++,tt+=4);return tt}function encode$6(_e){let et="";for(let tt in _e)_e.hasOwnProperty(tt)&&(et.length&&(et+="&"),et+=encodeURIComponent(tt)+"="+encodeURIComponent(_e[tt]));return et}function decode$4(_e){let et={},tt=_e.split("&");for(let nt=0,at=tt.length;nt<at;nt++){let it=tt[nt].split("=");et[decodeURIComponent(it[0])]=decodeURIComponent(it[1])}return et}class TransportError extends Error{constructor(et,tt,nt){super(et),this.description=tt,this.context=nt,this.type="TransportError"}}class Transport extends Emitter{constructor(et){super(),this.writable=!1,installTimerFunctions(this,et),this.opts=et,this.query=et.query,this.socket=et.socket}onError(et,tt,nt){return super.emitReserved("error",new TransportError(et,tt,nt)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(et){this.readyState==="open"&&this.write(et)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(et){const tt=decodePacket(et,this.socket.binaryType);this.onPacket(tt)}onPacket(et){super.emitReserved("packet",et)}onClose(et){this.readyState="closed",super.emitReserved("close",et)}pause(et){}createUri(et,tt={}){return et+"://"+this._hostname()+this._port()+this.opts.path+this._query(tt)}_hostname(){const et=this.opts.hostname;return et.indexOf(":")===-1?et:"["+et+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(et){const tt=encode$6(et);return tt.length?"?"+tt:""}}const alphabet="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),length=64,map$8={};let seed=0,i$2=0,prev;function encode$5(_e){let et="";do et=alphabet[_e%length]+et,_e=Math.floor(_e/length);while(_e>0);return et}function yeast(){const _e=encode$5(+new Date);return _e!==prev?(seed=0,prev=_e):_e+"."+encode$5(seed++)}for(;i$2<length;i$2++)map$8[alphabet[i$2]]=i$2;let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const hasCORS=value;function XHR(_e){const et=_e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!et||hasCORS))return new XMLHttpRequest}catch{}if(!et)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function createCookieJar(){}function empty(){}const hasXHR2=function(){return new XHR({xdomain:!1}).responseType!=null}();class Polling extends Transport{constructor(et){if(super(et),this.polling=!1,typeof location<"u"){const nt=location.protocol==="https:";let at=location.port;at||(at=nt?"443":"80"),this.xd=typeof location<"u"&&et.hostname!==location.hostname||at!==et.port}const tt=et&&et.forceBase64;this.supportsBinary=hasXHR2&&!tt,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(et){this.readyState="pausing";const tt=()=>{this.readyState="paused",et()};if(this.polling||!this.writable){let nt=0;this.polling&&(nt++,this.once("pollComplete",function(){--nt||tt()})),this.writable||(nt++,this.once("drain",function(){--nt||tt()}))}else tt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(et){const tt=nt=>{if(this.readyState==="opening"&&nt.type==="open"&&this.onOpen(),nt.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(nt)};decodePayload(et,this.socket.binaryType).forEach(tt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const et=()=>{this.write([{type:"close"}])};this.readyState==="open"?et():this.once("open",et)}write(et){this.writable=!1,encodePayload(et,tt=>{this.doWrite(tt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const et=this.opts.secure?"https":"http",tt=this.query||{};return this.opts.timestampRequests!==!1&&(tt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!tt.sid&&(tt.b64=1),this.createUri(et,tt)}request(et={}){return Object.assign(et,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),et)}doWrite(et,tt){const nt=this.request({method:"POST",data:et});nt.on("success",tt),nt.on("error",(at,it)=>{this.onError("xhr post error",at,it)})}doPoll(){const et=this.request();et.on("data",this.onData.bind(this)),et.on("error",(tt,nt)=>{this.onError("xhr poll error",tt,nt)}),this.pollXhr=et}}class Request extends Emitter{constructor(et,tt){super(),installTimerFunctions(this,tt),this.opts=tt,this.method=tt.method||"GET",this.uri=et,this.data=tt.data!==void 0?tt.data:null,this.create()}create(){var et;const tt=pick$2(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");tt.xdomain=!!this.opts.xd;const nt=this.xhr=new XHR(tt);try{nt.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){nt.setDisableHeaderCheck&&nt.setDisableHeaderCheck(!0);for(let at in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(at)&&nt.setRequestHeader(at,this.opts.extraHeaders[at])}}catch{}if(this.method==="POST")try{nt.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{nt.setRequestHeader("Accept","*/*")}catch{}(et=this.opts.cookieJar)===null||et===void 0||et.addCookies(nt),"withCredentials"in nt&&(nt.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(nt.timeout=this.opts.requestTimeout),nt.onreadystatechange=()=>{var at;nt.readyState===3&&((at=this.opts.cookieJar)===null||at===void 0||at.parseCookies(nt)),nt.readyState===4&&(nt.status===200||nt.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof nt.status=="number"?nt.status:0)},0))},nt.send(this.data)}catch(at){this.setTimeoutFn(()=>{this.onError(at)},0);return}typeof document<"u"&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(et){this.emitReserved("error",et,this.xhr),this.cleanup(!0)}cleanup(et){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,et)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const et=this.xhr.responseText;et!==null&&(this.emitReserved("data",et),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const _e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(_e,unloadHandler,!1)}}function unloadHandler(){for(let _e in Request.requests)Request.requests.hasOwnProperty(_e)&&Request.requests[_e].abort()}const nextTick$2=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?et=>Promise.resolve().then(et):(et,tt)=>tt(et,0))(),WebSocket$1=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(et){super(et),this.supportsBinary=!et.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const et=this.uri(),tt=this.opts.protocols,nt=isReactNative?{}:pick$2(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(nt.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?tt?new WebSocket$1(et,tt):new WebSocket$1(et):new WebSocket$1(et,tt,nt)}catch(at){return this.emitReserved("error",at)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=et=>this.onClose({description:"websocket connection closed",context:et}),this.ws.onmessage=et=>this.onData(et.data),this.ws.onerror=et=>this.onError("websocket error",et)}write(et){this.writable=!1;for(let tt=0;tt<et.length;tt++){const nt=et[tt],at=tt===et.length-1;encodePacket(nt,this.supportsBinary,it=>{const ot={};try{usingBrowserWebSocket&&this.ws.send(it)}catch{}at&&nextTick$2(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const et=this.opts.secure?"wss":"ws",tt=this.query||{};return this.opts.timestampRequests&&(tt[this.opts.timestampParam]=yeast()),this.supportsBinary||(tt.b64=1),this.createUri(et,tt)}check(){return!!WebSocket$1}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(et=>{this.onError("webtransport error",et)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(et=>{const tt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),nt=et.readable.pipeThrough(tt).getReader(),at=createPacketEncoderStream();at.readable.pipeTo(et.writable),this.writer=at.writable.getWriter();const it=()=>{nt.read().then(({done:st,value:ct})=>{st||(this.onPacket(ct),it())}).catch(st=>{})};it();const ot={type:"open"};this.query.sid&&(ot.data=`{"sid":"${this.query.sid}"}`),this.writer.write(ot).then(()=>this.onOpen())})}))}write(et){this.writable=!1;for(let tt=0;tt<et.length;tt++){const nt=et[tt],at=tt===et.length-1;this.writer.write(nt).then(()=>{at&&nextTick$2(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var et;(et=this.transport)===null||et===void 0||et.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re$1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse$e(_e){if(_e.length>2e3)throw"URI too long";const et=_e,tt=_e.indexOf("["),nt=_e.indexOf("]");tt!=-1&&nt!=-1&&(_e=_e.substring(0,tt)+_e.substring(tt,nt).replace(/:/g,";")+_e.substring(nt,_e.length));let at=re$1.exec(_e||""),it={},ot=14;for(;ot--;)it[parts[ot]]=at[ot]||"";return tt!=-1&&nt!=-1&&(it.source=et,it.host=it.host.substring(1,it.host.length-1).replace(/;/g,":"),it.authority=it.authority.replace("[","").replace("]","").replace(/;/g,":"),it.ipv6uri=!0),it.pathNames=pathNames(it,it.path),it.queryKey=queryKey(it,it.query),it}function pathNames(_e,et){const tt=/\/{2,9}/g,nt=et.replace(tt,"/").split("/");return(et.slice(0,1)=="/"||et.length===0)&&nt.splice(0,1),et.slice(-1)=="/"&&nt.splice(nt.length-1,1),nt}function queryKey(_e,et){const tt={};return et.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(nt,at,it){at&&(tt[at]=it)}),tt}let Socket$1=class Iu extends Emitter{constructor(et,tt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],et&&typeof et=="object"&&(tt=et,et=null),et?(et=parse$e(et),tt.hostname=et.host,tt.secure=et.protocol==="https"||et.protocol==="wss",tt.port=et.port,et.query&&(tt.query=et.query)):tt.host&&(tt.hostname=parse$e(tt.host).host),installTimerFunctions(this,tt),this.secure=tt.secure!=null?tt.secure:typeof location<"u"&&location.protocol==="https:",tt.hostname&&!tt.port&&(tt.port=this.secure?"443":"80"),this.hostname=tt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=tt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=tt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},tt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode$4(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(et){const tt=Object.assign({},this.opts.query);tt.EIO=protocol$1,tt.transport=et,this.id&&(tt.sid=this.id);const nt=Object.assign({},this.opts,{query:tt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[et]);return new transports[et](nt)}open(){let et;if(this.opts.rememberUpgrade&&Iu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)et="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else et=this.transports[0];this.readyState="opening";try{et=this.createTransport(et)}catch{this.transports.shift(),this.open();return}et.open(),this.setTransport(et)}setTransport(et){this.transport&&this.transport.removeAllListeners(),this.transport=et,et.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",tt=>this.onClose("transport close",tt))}probe(et){let tt=this.createTransport(et),nt=!1;Iu.priorWebsocketSuccess=!1;const at=()=>{nt||(tt.send([{type:"ping",data:"probe"}]),tt.once("packet",pt=>{if(!nt)if(pt.type==="pong"&&pt.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",tt),!tt)return;Iu.priorWebsocketSuccess=tt.name==="websocket",this.transport.pause(()=>{nt||this.readyState!=="closed"&&(ht(),this.setTransport(tt),tt.send([{type:"upgrade"}]),this.emitReserved("upgrade",tt),tt=null,this.upgrading=!1,this.flush())})}else{const mt=new Error("probe error");mt.transport=tt.name,this.emitReserved("upgradeError",mt)}}))};function it(){nt||(nt=!0,ht(),tt.close(),tt=null)}const ot=pt=>{const mt=new Error("probe error: "+pt);mt.transport=tt.name,it(),this.emitReserved("upgradeError",mt)};function st(){ot("transport closed")}function ct(){ot("socket closed")}function dt(pt){tt&&pt.name!==tt.name&&it()}const ht=()=>{tt.removeListener("open",at),tt.removeListener("error",ot),tt.removeListener("close",st),this.off("close",ct),this.off("upgrading",dt)};tt.once("open",at),tt.once("error",ot),tt.once("close",st),this.once("close",ct),this.once("upgrading",dt),this.upgrades.indexOf("webtransport")!==-1&&et!=="webtransport"?this.setTimeoutFn(()=>{nt||tt.open()},200):tt.open()}onOpen(){if(this.readyState="open",Iu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let et=0;const tt=this.upgrades.length;for(;et<tt;et++)this.probe(this.upgrades[et])}}onPacket(et){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",et),this.emitReserved("heartbeat"),this.resetPingTimeout(),et.type){case"open":this.onHandshake(JSON.parse(et.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const tt=new Error("server error");tt.code=et.data,this.onError(tt);break;case"message":this.emitReserved("data",et.data),this.emitReserved("message",et.data);break}}onHandshake(et){this.emitReserved("handshake",et),this.id=et.sid,this.transport.query.sid=et.sid,this.upgrades=this.filterUpgrades(et.upgrades),this.pingInterval=et.pingInterval,this.pingTimeout=et.pingTimeout,this.maxPayload=et.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const et=this.getWritablePackets();this.transport.send(et),this.prevBufferLen=et.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let tt=1;for(let nt=0;nt<this.writeBuffer.length;nt++){const at=this.writeBuffer[nt].data;if(at&&(tt+=byteLength$1(at)),nt>0&&tt>this.maxPayload)return this.writeBuffer.slice(0,nt);tt+=2}return this.writeBuffer}write(et,tt,nt){return this.sendPacket("message",et,tt,nt),this}send(et,tt,nt){return this.sendPacket("message",et,tt,nt),this}sendPacket(et,tt,nt,at){if(typeof tt=="function"&&(at=tt,tt=void 0),typeof nt=="function"&&(at=nt,nt=null),this.readyState==="closing"||this.readyState==="closed")return;nt=nt||{},nt.compress=nt.compress!==!1;const it={type:et,data:tt,options:nt};this.emitReserved("packetCreate",it),this.writeBuffer.push(it),at&&this.once("flush",at),this.flush()}close(){const et=()=>{this.onClose("forced close"),this.transport.close()},tt=()=>{this.off("upgrade",tt),this.off("upgradeError",tt),et()},nt=()=>{this.once("upgrade",tt),this.once("upgradeError",tt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?nt():et()}):this.upgrading?nt():et()),this}onError(et){Iu.priorWebsocketSuccess=!1,this.emitReserved("error",et),this.onClose("transport error",et)}onClose(et,tt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",et,tt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(et){const tt=[];let nt=0;const at=et.length;for(;nt<at;nt++)~this.transports.indexOf(et[nt])&&tt.push(et[nt]);return tt}};Socket$1.protocol=protocol$1;function url$1(_e,et="",tt){let nt=_e;tt=tt||typeof location<"u"&&location,_e==null&&(_e=tt.protocol+"//"+tt.host),typeof _e=="string"&&(_e.charAt(0)==="/"&&(_e.charAt(1)==="/"?_e=tt.protocol+_e:_e=tt.host+_e),/^(https?|wss?):\/\//.test(_e)||(typeof tt<"u"?_e=tt.protocol+"//"+_e:_e="https://"+_e),nt=parse$e(_e)),nt.port||(/^(http|ws)$/.test(nt.protocol)?nt.port="80":/^(http|ws)s$/.test(nt.protocol)&&(nt.port="443")),nt.path=nt.path||"/";const it=nt.host.indexOf(":")!==-1?"["+nt.host+"]":nt.host;return nt.id=nt.protocol+"://"+it+":"+nt.port+et,nt.href=nt.protocol+"://"+it+(tt&&tt.port===nt.port?"":":"+nt.port),nt}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=_e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(_e):_e.buffer instanceof ArrayBuffer,toString$f=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString$f.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString$f.call(File)==="[object FileConstructor]";function isBinary(_e){return withNativeArrayBuffer&&(_e instanceof ArrayBuffer||isView(_e))||withNativeBlob&&_e instanceof Blob||withNativeFile&&_e instanceof File}function hasBinary(_e,et){if(!_e||typeof _e!="object")return!1;if(Array.isArray(_e)){for(let tt=0,nt=_e.length;tt<nt;tt++)if(hasBinary(_e[tt]))return!0;return!1}if(isBinary(_e))return!0;if(_e.toJSON&&typeof _e.toJSON=="function"&&arguments.length===1)return hasBinary(_e.toJSON(),!0);for(const tt in _e)if(Object.prototype.hasOwnProperty.call(_e,tt)&&hasBinary(_e[tt]))return!0;return!1}function deconstructPacket(_e){const et=[],tt=_e.data,nt=_e;return nt.data=_deconstructPacket(tt,et),nt.attachments=et.length,{packet:nt,buffers:et}}function _deconstructPacket(_e,et){if(!_e)return _e;if(isBinary(_e)){const tt={_placeholder:!0,num:et.length};return et.push(_e),tt}else if(Array.isArray(_e)){const tt=new Array(_e.length);for(let nt=0;nt<_e.length;nt++)tt[nt]=_deconstructPacket(_e[nt],et);return tt}else if(typeof _e=="object"&&!(_e instanceof Date)){const tt={};for(const nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&(tt[nt]=_deconstructPacket(_e[nt],et));return tt}return _e}function reconstructPacket(_e,et){return _e.data=_reconstructPacket(_e.data,et),delete _e.attachments,_e}function _reconstructPacket(_e,et){if(!_e)return _e;if(_e&&_e._placeholder===!0){if(typeof _e.num=="number"&&_e.num>=0&&_e.num<et.length)return et[_e.num];throw new Error("illegal attachments")}else if(Array.isArray(_e))for(let tt=0;tt<_e.length;tt++)_e[tt]=_reconstructPacket(_e[tt],et);else if(typeof _e=="object")for(const tt in _e)Object.prototype.hasOwnProperty.call(_e,tt)&&(_e[tt]=_reconstructPacket(_e[tt],et));return _e}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function(_e){_e[_e.CONNECT=0]="CONNECT",_e[_e.DISCONNECT=1]="DISCONNECT",_e[_e.EVENT=2]="EVENT",_e[_e.ACK=3]="ACK",_e[_e.CONNECT_ERROR=4]="CONNECT_ERROR",_e[_e.BINARY_EVENT=5]="BINARY_EVENT",_e[_e.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(et){this.replacer=et}encode(et){return(et.type===PacketType.EVENT||et.type===PacketType.ACK)&&hasBinary(et)?this.encodeAsBinary({type:et.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:et.nsp,data:et.data,id:et.id}):[this.encodeAsString(et)]}encodeAsString(et){let tt=""+et.type;return(et.type===PacketType.BINARY_EVENT||et.type===PacketType.BINARY_ACK)&&(tt+=et.attachments+"-"),et.nsp&&et.nsp!=="/"&&(tt+=et.nsp+","),et.id!=null&&(tt+=et.id),et.data!=null&&(tt+=JSON.stringify(et.data,this.replacer)),tt}encodeAsBinary(et){const tt=deconstructPacket(et),nt=this.encodeAsString(tt.packet),at=tt.buffers;return at.unshift(nt),at}}function isObject$q(_e){return Object.prototype.toString.call(_e)==="[object Object]"}class Decoder extends Emitter{constructor(et){super(),this.reviver=et}add(et){let tt;if(typeof et=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");tt=this.decodeString(et);const nt=tt.type===PacketType.BINARY_EVENT;nt||tt.type===PacketType.BINARY_ACK?(tt.type=nt?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(tt),tt.attachments===0&&super.emitReserved("decoded",tt)):super.emitReserved("decoded",tt)}else if(isBinary(et)||et.base64)if(this.reconstructor)tt=this.reconstructor.takeBinaryData(et),tt&&(this.reconstructor=null,super.emitReserved("decoded",tt));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+et)}decodeString(et){let tt=0;const nt={type:Number(et.charAt(0))};if(PacketType[nt.type]===void 0)throw new Error("unknown packet type "+nt.type);if(nt.type===PacketType.BINARY_EVENT||nt.type===PacketType.BINARY_ACK){const it=tt+1;for(;et.charAt(++tt)!=="-"&&tt!=et.length;);const ot=et.substring(it,tt);if(ot!=Number(ot)||et.charAt(tt)!=="-")throw new Error("Illegal attachments");nt.attachments=Number(ot)}if(et.charAt(tt+1)==="/"){const it=tt+1;for(;++tt&&!(et.charAt(tt)===","||tt===et.length););nt.nsp=et.substring(it,tt)}else nt.nsp="/";const at=et.charAt(tt+1);if(at!==""&&Number(at)==at){const it=tt+1;for(;++tt;){const ot=et.charAt(tt);if(ot==null||Number(ot)!=ot){--tt;break}if(tt===et.length)break}nt.id=Number(et.substring(it,tt+1))}if(et.charAt(++tt)){const it=this.tryParse(et.substr(tt));if(Decoder.isPayloadValid(nt.type,it))nt.data=it;else throw new Error("invalid payload")}return nt}tryParse(et){try{return JSON.parse(et,this.reviver)}catch{return!1}}static isPayloadValid(et,tt){switch(et){case PacketType.CONNECT:return isObject$q(tt);case PacketType.DISCONNECT:return tt===void 0;case PacketType.CONNECT_ERROR:return typeof tt=="string"||isObject$q(tt);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(tt)&&(typeof tt[0]=="number"||typeof tt[0]=="string"&&RESERVED_EVENTS$1.indexOf(tt[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(tt)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(et){this.packet=et,this.buffers=[],this.reconPack=et}takeBinaryData(et){if(this.buffers.push(et),this.buffers.length===this.reconPack.attachments){const tt=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),tt}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},protocol},Symbol.toStringTag,{value:"Module"}));function on$1(_e,et,tt){return _e.on(et,tt),function(){_e.off(et,tt)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(et,tt,nt){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=et,this.nsp=tt,nt&&nt.auth&&(this.auth=nt.auth),this._opts=Object.assign({},nt),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const et=this.io;this.subs=[on$1(et,"open",this.onopen.bind(this)),on$1(et,"packet",this.onpacket.bind(this)),on$1(et,"error",this.onerror.bind(this)),on$1(et,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...et){return et.unshift("message"),this.emit.apply(this,et),this}emit(et,...tt){if(RESERVED_EVENTS.hasOwnProperty(et))throw new Error('"'+et.toString()+'" is a reserved event name');if(tt.unshift(et),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(tt),this;const nt={type:PacketType.EVENT,data:tt};if(nt.options={},nt.options.compress=this.flags.compress!==!1,typeof tt[tt.length-1]=="function"){const ot=this.ids++,st=tt.pop();this._registerAckCallback(ot,st),nt.id=ot}const at=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!at||!this.connected)||(this.connected?(this.notifyOutgoingListeners(nt),this.packet(nt)):this.sendBuffer.push(nt)),this.flags={},this}_registerAckCallback(et,tt){var nt;const at=(nt=this.flags.timeout)!==null&&nt!==void 0?nt:this._opts.ackTimeout;if(at===void 0){this.acks[et]=tt;return}const it=this.io.setTimeoutFn(()=>{delete this.acks[et];for(let st=0;st<this.sendBuffer.length;st++)this.sendBuffer[st].id===et&&this.sendBuffer.splice(st,1);tt.call(this,new Error("operation has timed out"))},at),ot=(...st)=>{this.io.clearTimeoutFn(it),tt.apply(this,st)};ot.withError=!0,this.acks[et]=ot}emitWithAck(et,...tt){return new Promise((nt,at)=>{const it=(ot,st)=>ot?at(ot):nt(st);it.withError=!0,tt.push(it),this.emit(et,...tt)})}_addToQueue(et){let tt;typeof et[et.length-1]=="function"&&(tt=et.pop());const nt={id:this._queueSeq++,tryCount:0,pending:!1,args:et,flags:Object.assign({fromQueue:!0},this.flags)};et.push((at,...it)=>nt!==this._queue[0]?void 0:(at!==null?nt.tryCount>this._opts.retries&&(this._queue.shift(),tt&&tt(at)):(this._queue.shift(),tt&&tt(null,...it)),nt.pending=!1,this._drainQueue())),this._queue.push(nt),this._drainQueue()}_drainQueue(et=!1){if(!this.connected||this._queue.length===0)return;const tt=this._queue[0];tt.pending&&!et||(tt.pending=!0,tt.tryCount++,this.flags=tt.flags,this.emit.apply(this,tt.args))}packet(et){et.nsp=this.nsp,this.io._packet(et)}onopen(){typeof this.auth=="function"?this.auth(et=>{this._sendConnectPacket(et)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(et){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},et):et})}onerror(et){this.connected||this.emitReserved("connect_error",et)}onclose(et,tt){this.connected=!1,delete this.id,this.emitReserved("disconnect",et,tt),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(et=>{if(!this.sendBuffer.some(nt=>String(nt.id)===et)){const nt=this.acks[et];delete this.acks[et],nt.withError&&nt.call(this,new Error("socket has been disconnected"))}})}onpacket(et){if(et.nsp===this.nsp)switch(et.type){case PacketType.CONNECT:et.data&&et.data.sid?this.onconnect(et.data.sid,et.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(et);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(et);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const nt=new Error(et.data.message);nt.data=et.data.data,this.emitReserved("connect_error",nt);break}}onevent(et){const tt=et.data||[];et.id!=null&&tt.push(this.ack(et.id)),this.connected?this.emitEvent(tt):this.receiveBuffer.push(Object.freeze(tt))}emitEvent(et){if(this._anyListeners&&this._anyListeners.length){const tt=this._anyListeners.slice();for(const nt of tt)nt.apply(this,et)}super.emit.apply(this,et),this._pid&&et.length&&typeof et[et.length-1]=="string"&&(this._lastOffset=et[et.length-1])}ack(et){const tt=this;let nt=!1;return function(...at){nt||(nt=!0,tt.packet({type:PacketType.ACK,id:et,data:at}))}}onack(et){const tt=this.acks[et.id];typeof tt=="function"&&(delete this.acks[et.id],tt.withError&&et.data.unshift(null),tt.apply(this,et.data))}onconnect(et,tt){this.id=et,this.recovered=tt&&this._pid===tt,this._pid=tt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(et=>this.emitEvent(et)),this.receiveBuffer=[],this.sendBuffer.forEach(et=>{this.notifyOutgoingListeners(et),this.packet(et)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(et=>et()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(et){return this.flags.compress=et,this}get volatile(){return this.flags.volatile=!0,this}timeout(et){return this.flags.timeout=et,this}onAny(et){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(et),this}prependAny(et){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(et),this}offAny(et){if(!this._anyListeners)return this;if(et){const tt=this._anyListeners;for(let nt=0;nt<tt.length;nt++)if(et===tt[nt])return tt.splice(nt,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(et){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(et),this}prependAnyOutgoing(et){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(et),this}offAnyOutgoing(et){if(!this._anyOutgoingListeners)return this;if(et){const tt=this._anyOutgoingListeners;for(let nt=0;nt<tt.length;nt++)if(et===tt[nt])return tt.splice(nt,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(et){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const tt=this._anyOutgoingListeners.slice();for(const nt of tt)nt.apply(this,et.data)}}}function Backoff(_e){_e=_e||{},this.ms=_e.min||100,this.max=_e.max||1e4,this.factor=_e.factor||2,this.jitter=_e.jitter>0&&_e.jitter<=1?_e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var _e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var et=Math.random(),tt=Math.floor(et*this.jitter*_e);_e=Math.floor(et*10)&1?_e+tt:_e-tt}return Math.min(_e,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(_e){this.ms=_e};Backoff.prototype.setMax=function(_e){this.max=_e};Backoff.prototype.setJitter=function(_e){this.jitter=_e};let Manager$1=class extends Emitter{constructor(et,tt){var nt;super(),this.nsps={},this.subs=[],et&&typeof et=="object"&&(tt=et,et=void 0),tt=tt||{},tt.path=tt.path||"/socket.io",this.opts=tt,installTimerFunctions(this,tt),this.reconnection(tt.reconnection!==!1),this.reconnectionAttempts(tt.reconnectionAttempts||1/0),this.reconnectionDelay(tt.reconnectionDelay||1e3),this.reconnectionDelayMax(tt.reconnectionDelayMax||5e3),this.randomizationFactor((nt=tt.randomizationFactor)!==null&&nt!==void 0?nt:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(tt.timeout==null?2e4:tt.timeout),this._readyState="closed",this.uri=et;const at=tt.parser||parser;this.encoder=new at.Encoder,this.decoder=new at.Decoder,this._autoConnect=tt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(et){return arguments.length?(this._reconnection=!!et,this):this._reconnection}reconnectionAttempts(et){return et===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=et,this)}reconnectionDelay(et){var tt;return et===void 0?this._reconnectionDelay:(this._reconnectionDelay=et,(tt=this.backoff)===null||tt===void 0||tt.setMin(et),this)}randomizationFactor(et){var tt;return et===void 0?this._randomizationFactor:(this._randomizationFactor=et,(tt=this.backoff)===null||tt===void 0||tt.setJitter(et),this)}reconnectionDelayMax(et){var tt;return et===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=et,(tt=this.backoff)===null||tt===void 0||tt.setMax(et),this)}timeout(et){return arguments.length?(this._timeout=et,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(et){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const tt=this.engine,nt=this;this._readyState="opening",this.skipReconnect=!1;const at=on$1(tt,"open",function(){nt.onopen(),et&&et()}),it=st=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",st),et?et(st):this.maybeReconnectOnOpen()},ot=on$1(tt,"error",it);if(this._timeout!==!1){const st=this._timeout,ct=this.setTimeoutFn(()=>{at(),it(new Error("timeout")),tt.close()},st);this.opts.autoUnref&&ct.unref(),this.subs.push(()=>{this.clearTimeoutFn(ct)})}return this.subs.push(at),this.subs.push(ot),this}connect(et){return this.open(et)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const et=this.engine;this.subs.push(on$1(et,"ping",this.onping.bind(this)),on$1(et,"data",this.ondata.bind(this)),on$1(et,"error",this.onerror.bind(this)),on$1(et,"close",this.onclose.bind(this)),on$1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(et){try{this.decoder.add(et)}catch(tt){this.onclose("parse error",tt)}}ondecoded(et){nextTick$2(()=>{this.emitReserved("packet",et)},this.setTimeoutFn)}onerror(et){this.emitReserved("error",et)}socket(et,tt){let nt=this.nsps[et];return nt?this._autoConnect&&!nt.active&&nt.connect():(nt=new Socket(this,et,tt),this.nsps[et]=nt),nt}_destroy(et){const tt=Object.keys(this.nsps);for(const nt of tt)if(this.nsps[nt].active)return;this._close()}_packet(et){const tt=this.encoder.encode(et);for(let nt=0;nt<tt.length;nt++)this.engine.write(tt[nt],et.options)}cleanup(){this.subs.forEach(et=>et()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(et,tt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",et,tt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const et=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const tt=this.backoff.duration();this._reconnecting=!0;const nt=this.setTimeoutFn(()=>{et.skipReconnect||(this.emitReserved("reconnect_attempt",et.backoff.attempts),!et.skipReconnect&&et.open(at=>{at?(et._reconnecting=!1,et.reconnect(),this.emitReserved("reconnect_error",at)):et.onreconnect()}))},tt);this.opts.autoUnref&&nt.unref(),this.subs.push(()=>{this.clearTimeoutFn(nt)})}}onreconnect(){const et=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",et)}};const cache$1={};function lookup(_e,et){typeof _e=="object"&&(et=_e,_e=void 0),et=et||{};const tt=url$1(_e,et.path||"/socket.io"),nt=tt.source,at=tt.id,it=tt.path,ot=cache$1[at]&&it in cache$1[at].nsps,st=et.forceNew||et["force new connection"]||et.multiplex===!1||ot;let ct;return st?ct=new Manager$1(nt,et):(cache$1[at]||(cache$1[at]=new Manager$1(nt,et)),ct=cache$1[at]),tt.query&&!et.query&&(et.query=tt.queryKey),ct.socket(tt.path,et)}Object.assign(lookup,{Manager:Manager$1,Socket,io:lookup,connect:lookup});var dist$c={},Authenticator={},ethConnect={exports:{}};/*! eth-connect {
@@ -241,7 +241,7 @@ Valid keys: `+JSON.stringify(Object.keys(Zt),null," "));var Pr=Tr(yn,gn,Er,Sr,g
241
241
  A`).concat(ot,",").concat(ot,",0,1,1,").concat(2*st,",").concat(it,`
242
242
  H`).concat(SIZE,"M").concat(2*st,",").concat(it,`
243
243
  A`).concat(ot,",").concat(ot,",0,1,1,").concat(st,",").concat(it),className:"recharts-legend-icon"});if(nt.type==="rect")return React$L.createElement("path",{stroke:"none",fill:ct,d:"M0,".concat(SIZE/8,"h").concat(SIZE,"v").concat(SIZE*3/4,"h").concat(-SIZE,"z"),className:"recharts-legend-icon"});if(React$L.isValidElement(nt.legendIcon)){var dt=_objectSpread$L({},nt);return delete dt.legendIcon,React$L.cloneElement(nt.legendIcon,dt)}return React$L.createElement(Symbols,{fill:ct,cx:it,cy:it,size:SIZE,sizeType:"diameter",type:nt.type})}},{key:"renderItems",value:function(){var nt=this,at=this.props,it=at.payload,ot=at.iconSize,st=at.layout,ct=at.formatter,dt=at.inactiveColor,ht={x:0,y:0,width:SIZE,height:SIZE},pt={display:st==="horizontal"?"inline-block":"block",marginRight:10},mt={display:"inline-block",verticalAlign:"middle",marginRight:4};return it.map(function(vt,bt){var _t=vt.formatter||ct,wt=clsx(_defineProperty$O(_defineProperty$O({"recharts-legend-item":!0},"legend-item-".concat(bt),!0),"inactive",vt.inactive));if(vt.type==="none")return null;var Et=isFunction$3(vt.value)?null:vt.value;warn$3(!isFunction$3(vt.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var St=vt.inactive?dt:vt.color;return React$L.createElement("li",_extends$D({className:wt,style:pt,key:"legend-item-".concat(bt)},adaptEventsOfChild(nt.props,vt,bt)),React$L.createElement(Surface,{width:ot,height:ot,viewBox:ht,style:mt},nt.renderIcon(vt)),React$L.createElement("span",{className:"recharts-legend-item-text",style:{color:St}},_t?_t(Et,vt,bt):Et))})}},{key:"render",value:function(){var nt=this.props,at=nt.payload,it=nt.layout,ot=nt.align;if(!at||!at.length)return null;var st={padding:0,margin:0,textAlign:it==="horizontal"?ot:"left"};return React$L.createElement("ul",{className:"recharts-default-legend",style:st},this.renderItems())}}]),et}(reactExports.PureComponent);_defineProperty$O(DefaultLegendContent,"displayName","Legend");_defineProperty$O(DefaultLegendContent,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var baseIteratee$4=_baseIteratee,baseUniq=require_baseUniq();function uniqBy(_e,et){return _e&&_e.length?baseUniq(_e,baseIteratee$4(et)):[]}var uniqBy_1=uniqBy;const uniqBy$1=getDefaultExportFromCjs$1(uniqBy_1);function getUniqPayload(_e,et,tt){return et===!0?uniqBy$1(_e,tt):isFunction$3(et)?uniqBy$1(_e,et):_e}function _typeof$Q(_e){"@babel/helpers - typeof";return _typeof$Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$Q(_e)}var _excluded$m=["ref"];function ownKeys$K(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$K(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$K(Object(tt),!0).forEach(function(nt){_defineProperty$N(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$K(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _classCallCheck$l(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$l(_e,et){for(var tt=0;tt<et.length;tt++){var nt=et[tt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(_e,_toPropertyKey$N(nt.key),nt)}}function _createClass$l(_e,et,tt){return et&&_defineProperties$l(_e.prototype,et),tt&&_defineProperties$l(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}function _callSuper$h(_e,et,tt){return et=_getPrototypeOf$i(et),_possibleConstructorReturn$i(_e,_isNativeReflectConstruct$i()?Reflect.construct(et,tt||[],_getPrototypeOf$i(_e).constructor):et.apply(_e,tt))}function _possibleConstructorReturn$i(_e,et){if(et&&(_typeof$Q(et)==="object"||typeof et=="function"))return et;if(et!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$i(_e)}function _isNativeReflectConstruct$i(){try{var _e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$i=function(){return!!_e})()}function _getPrototypeOf$i(_e){return _getPrototypeOf$i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$i(_e)}function _assertThisInitialized$i(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}function _inherits$i(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function");_e.prototype=Object.create(et&&et.prototype,{constructor:{value:_e,writable:!0,configurable:!0}}),Object.defineProperty(_e,"prototype",{writable:!1}),et&&_setPrototypeOf$i(_e,et)}function _setPrototypeOf$i(_e,et){return _setPrototypeOf$i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$i(_e,et)}function _defineProperty$N(_e,et,tt){return et=_toPropertyKey$N(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$N(_e){var et=_toPrimitive$N(_e,"string");return _typeof$Q(et)=="symbol"?et:String(et)}function _toPrimitive$N(_e,et){if(_typeof$Q(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$Q(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function _objectWithoutProperties$m(_e,et){if(_e==null)return{};var tt=_objectWithoutPropertiesLoose$m(_e,et),nt,at;if(Object.getOwnPropertySymbols){var it=Object.getOwnPropertySymbols(_e);for(at=0;at<it.length;at++)nt=it[at],!(et.indexOf(nt)>=0)&&Object.prototype.propertyIsEnumerable.call(_e,nt)&&(tt[nt]=_e[nt])}return tt}function _objectWithoutPropertiesLoose$m(_e,et){if(_e==null)return{};var tt={},nt=Object.keys(_e),at,it;for(it=0;it<nt.length;it++)at=nt[it],!(et.indexOf(at)>=0)&&(tt[at]=_e[at]);return tt}function defaultUniqBy$1(_e){return _e.value}function renderContent$1(_e,et){if(React$L.isValidElement(_e))return React$L.cloneElement(_e,et);if(typeof _e=="function")return React$L.createElement(_e,et);et.ref;var tt=_objectWithoutProperties$m(et,_excluded$m);return React$L.createElement(DefaultLegendContent,tt)}var EPS$1=1,Legend=function(_e){_inherits$i(et,_e);function et(){var tt;_classCallCheck$l(this,et);for(var nt=arguments.length,at=new Array(nt),it=0;it<nt;it++)at[it]=arguments[it];return tt=_callSuper$h(this,et,[].concat(at)),_defineProperty$N(_assertThisInitialized$i(tt),"lastBoundingBox",{width:-1,height:-1}),tt}return _createClass$l(et,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var nt=this.wrapperNode.getBoundingClientRect();return nt.height=this.wrapperNode.offsetHeight,nt.width=this.wrapperNode.offsetWidth,nt}return null}},{key:"updateBBox",value:function(){var nt=this.props.onBBoxUpdate,at=this.getBBox();at?(Math.abs(at.width-this.lastBoundingBox.width)>EPS$1||Math.abs(at.height-this.lastBoundingBox.height)>EPS$1)&&(this.lastBoundingBox.width=at.width,this.lastBoundingBox.height=at.height,nt&&nt(at)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,nt&&nt(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_objectSpread$K({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(nt){var at=this.props,it=at.layout,ot=at.align,st=at.verticalAlign,ct=at.margin,dt=at.chartWidth,ht=at.chartHeight,pt,mt;if(!nt||(nt.left===void 0||nt.left===null)&&(nt.right===void 0||nt.right===null))if(ot==="center"&&it==="vertical"){var vt=this.getBBoxSnapshot();pt={left:((dt||0)-vt.width)/2}}else pt=ot==="right"?{right:ct&&ct.right||0}:{left:ct&&ct.left||0};if(!nt||(nt.top===void 0||nt.top===null)&&(nt.bottom===void 0||nt.bottom===null))if(st==="middle"){var bt=this.getBBoxSnapshot();mt={top:((ht||0)-bt.height)/2}}else mt=st==="bottom"?{bottom:ct&&ct.bottom||0}:{top:ct&&ct.top||0};return _objectSpread$K(_objectSpread$K({},pt),mt)}},{key:"render",value:function(){var nt=this,at=this.props,it=at.content,ot=at.width,st=at.height,ct=at.wrapperStyle,dt=at.payloadUniqBy,ht=at.payload,pt=_objectSpread$K(_objectSpread$K({position:"absolute",width:ot||"auto",height:st||"auto"},this.getDefaultPosition(ct)),ct);return React$L.createElement("div",{className:"recharts-legend-wrapper",style:pt,ref:function(vt){nt.wrapperNode=vt}},renderContent$1(it,_objectSpread$K(_objectSpread$K({},this.props),{},{payload:getUniqPayload(ht,dt,defaultUniqBy$1)})))}}],[{key:"getWithHeight",value:function(nt,at){var it=nt.props.layout;return it==="vertical"&&isNumber$3(nt.props.height)?{height:nt.props.height}:it==="horizontal"?{width:nt.props.width||at}:null}}]),et}(reactExports.PureComponent);_defineProperty$N(Legend,"displayName","Legend");_defineProperty$N(Legend,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var sortByExports=requireSortBy();const sortBy=getDefaultExportFromCjs$1(sortByExports);function _typeof$P(_e){"@babel/helpers - typeof";return _typeof$P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$P(_e)}function _extends$C(){return _extends$C=Object.assign?Object.assign.bind():function(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et];for(var nt in tt)Object.prototype.hasOwnProperty.call(tt,nt)&&(_e[nt]=tt[nt])}return _e},_extends$C.apply(this,arguments)}function _slicedToArray$e(_e,et){return _arrayWithHoles$f(_e)||_iterableToArrayLimit$e(_e,et)||_unsupportedIterableToArray$n(_e,et)||_nonIterableRest$f()}function _nonIterableRest$f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
244
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$n(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray$n(_e,et);var tt=Object.prototype.toString.call(_e).slice(8,-1);if(tt==="Object"&&_e.constructor&&(tt=_e.constructor.name),tt==="Map"||tt==="Set")return Array.from(_e);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return _arrayLikeToArray$n(_e,et)}}function _arrayLikeToArray$n(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var tt=0,nt=new Array(et);tt<et;tt++)nt[tt]=_e[tt];return nt}function _iterableToArrayLimit$e(_e,et){var tt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(tt!=null){var nt,at,it,ot,st=[],ct=!0,dt=!1;try{if(it=(tt=tt.call(_e)).next,et===0){if(Object(tt)!==tt)return;ct=!1}else for(;!(ct=(nt=it.call(tt)).done)&&(st.push(nt.value),st.length!==et);ct=!0);}catch(ht){dt=!0,at=ht}finally{try{if(!ct&&tt.return!=null&&(ot=tt.return(),Object(ot)!==ot))return}finally{if(dt)throw at}}return st}}function _arrayWithHoles$f(_e){if(Array.isArray(_e))return _e}function ownKeys$J(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$J(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$J(Object(tt),!0).forEach(function(nt){_defineProperty$M(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$J(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _defineProperty$M(_e,et,tt){return et=_toPropertyKey$M(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$M(_e){var et=_toPrimitive$M(_e,"string");return _typeof$P(et)=="symbol"?et:String(et)}function _toPrimitive$M(_e,et){if(_typeof$P(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$P(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function defaultFormatter(_e){return Array.isArray(_e)&&isNumOrStr(_e[0])&&isNumOrStr(_e[1])?_e.join(" ~ "):_e}var DefaultTooltipContent=function _e(et){var tt=et.separator,nt=tt===void 0?" : ":tt,at=et.contentStyle,it=at===void 0?{}:at,ot=et.itemStyle,st=ot===void 0?{}:ot,ct=et.labelStyle,dt=ct===void 0?{}:ct,ht=et.payload,pt=et.formatter,mt=et.itemSorter,vt=et.wrapperClassName,bt=et.labelClassName,_t=et.label,wt=et.labelFormatter,Et=et.accessibilityLayer,St=Et===void 0?!1:Et,Tt=function(){if(ht&&ht.length){var yt={padding:0,margin:0},$t=(mt?sortBy(ht,mt):ht).map(function(xt,At){if(xt.type==="none")return null;var Mt=_objectSpread$J({display:"block",paddingTop:4,paddingBottom:4,color:xt.color||"#000"},st),It=xt.formatter||pt||defaultFormatter,Lt=xt.value,Ot=xt.name,gt=Lt,Pt=Ot;if(It&&gt!=null&&Pt!=null){var Bt=It(Lt,Ot,xt,At,ht);if(Array.isArray(Bt)){var Ut=_slicedToArray$e(Bt,2);gt=Ut[0],Pt=Ut[1]}else gt=Bt}return React$L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(At),style:Mt},isNumOrStr(Pt)?React$L.createElement("span",{className:"recharts-tooltip-item-name"},Pt):null,isNumOrStr(Pt)?React$L.createElement("span",{className:"recharts-tooltip-item-separator"},nt):null,React$L.createElement("span",{className:"recharts-tooltip-item-value"},gt),React$L.createElement("span",{className:"recharts-tooltip-item-unit"},xt.unit||""))});return React$L.createElement("ul",{className:"recharts-tooltip-item-list",style:yt},$t)}return null},Ct=_objectSpread$J({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},it),Nt=_objectSpread$J({margin:0},dt),Dt=!isNil(_t),kt=Dt?_t:"",Ft=clsx("recharts-default-tooltip",vt),jt=clsx("recharts-tooltip-label",bt);Dt&&wt&&ht!==void 0&&ht!==null&&(kt=wt(_t,ht));var Gt=St?{role:"status","aria-live":"assertive"}:{};return React$L.createElement("div",_extends$C({className:Ft,style:Ct},Gt),React$L.createElement("p",{className:jt,style:Nt},React$L.isValidElement(kt)?kt:"".concat(kt)),Tt())};function _typeof$O(_e){"@babel/helpers - typeof";return _typeof$O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$O(_e)}function _defineProperty$L(_e,et,tt){return et=_toPropertyKey$L(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$L(_e){var et=_toPrimitive$L(_e,"string");return _typeof$O(et)=="symbol"?et:String(et)}function _toPrimitive$L(_e,et){if(_typeof$O(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$O(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}var CSS_CLASS_PREFIX="recharts-tooltip-wrapper",TOOLTIP_HIDDEN={visibility:"hidden"};function getTooltipCSSClassName(_e){var et=_e.coordinate,tt=_e.translateX,nt=_e.translateY;return clsx(CSS_CLASS_PREFIX,_defineProperty$L(_defineProperty$L(_defineProperty$L(_defineProperty$L({},"".concat(CSS_CLASS_PREFIX,"-right"),isNumber$3(tt)&&et&&isNumber$3(et.x)&&tt>=et.x),"".concat(CSS_CLASS_PREFIX,"-left"),isNumber$3(tt)&&et&&isNumber$3(et.x)&&tt<et.x),"".concat(CSS_CLASS_PREFIX,"-bottom"),isNumber$3(nt)&&et&&isNumber$3(et.y)&&nt>=et.y),"".concat(CSS_CLASS_PREFIX,"-top"),isNumber$3(nt)&&et&&isNumber$3(et.y)&&nt<et.y))}function getTooltipTranslateXY(_e){var et=_e.allowEscapeViewBox,tt=_e.coordinate,nt=_e.key,at=_e.offsetTopLeft,it=_e.position,ot=_e.reverseDirection,st=_e.tooltipDimension,ct=_e.viewBox,dt=_e.viewBoxDimension;if(it&&isNumber$3(it[nt]))return it[nt];var ht=tt[nt]-st-at,pt=tt[nt]+at;if(et[nt])return ot[nt]?ht:pt;if(ot[nt]){var mt=ht,vt=ct[nt];return mt<vt?Math.max(pt,ct[nt]):Math.max(ht,ct[nt])}var bt=pt+st,_t=ct[nt]+dt;return bt>_t?Math.max(ht,ct[nt]):Math.max(pt,ct[nt])}function getTransformStyle(_e){var et=_e.translateX,tt=_e.translateY,nt=_e.useTranslate3d;return{transform:nt?"translate3d(".concat(et,"px, ").concat(tt,"px, 0)"):"translate(".concat(et,"px, ").concat(tt,"px)")}}function getTooltipTranslate(_e){var et=_e.allowEscapeViewBox,tt=_e.coordinate,nt=_e.offsetTopLeft,at=_e.position,it=_e.reverseDirection,ot=_e.tooltipBox,st=_e.useTranslate3d,ct=_e.viewBox,dt,ht,pt;return ot.height>0&&ot.width>0&&tt?(ht=getTooltipTranslateXY({allowEscapeViewBox:et,coordinate:tt,key:"x",offsetTopLeft:nt,position:at,reverseDirection:it,tooltipDimension:ot.width,viewBox:ct,viewBoxDimension:ct.width}),pt=getTooltipTranslateXY({allowEscapeViewBox:et,coordinate:tt,key:"y",offsetTopLeft:nt,position:at,reverseDirection:it,tooltipDimension:ot.height,viewBox:ct,viewBoxDimension:ct.height}),dt=getTransformStyle({translateX:ht,translateY:pt,useTranslate3d:st})):dt=TOOLTIP_HIDDEN,{cssProperties:dt,cssClasses:getTooltipCSSClassName({translateX:ht,translateY:pt,coordinate:tt})}}function _typeof$N(_e){"@babel/helpers - typeof";return _typeof$N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$N(_e)}function ownKeys$I(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$I(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$I(Object(tt),!0).forEach(function(nt){_defineProperty$K(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$I(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _classCallCheck$k(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$k(_e,et){for(var tt=0;tt<et.length;tt++){var nt=et[tt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(_e,_toPropertyKey$K(nt.key),nt)}}function _createClass$k(_e,et,tt){return et&&_defineProperties$k(_e.prototype,et),tt&&_defineProperties$k(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}function _callSuper$g(_e,et,tt){return et=_getPrototypeOf$h(et),_possibleConstructorReturn$h(_e,_isNativeReflectConstruct$h()?Reflect.construct(et,tt||[],_getPrototypeOf$h(_e).constructor):et.apply(_e,tt))}function _possibleConstructorReturn$h(_e,et){if(et&&(_typeof$N(et)==="object"||typeof et=="function"))return et;if(et!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$h(_e)}function _isNativeReflectConstruct$h(){try{var _e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$h=function(){return!!_e})()}function _getPrototypeOf$h(_e){return _getPrototypeOf$h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$h(_e)}function _assertThisInitialized$h(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}function _inherits$h(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function");_e.prototype=Object.create(et&&et.prototype,{constructor:{value:_e,writable:!0,configurable:!0}}),Object.defineProperty(_e,"prototype",{writable:!1}),et&&_setPrototypeOf$h(_e,et)}function _setPrototypeOf$h(_e,et){return _setPrototypeOf$h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$h(_e,et)}function _defineProperty$K(_e,et,tt){return et=_toPropertyKey$K(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$K(_e){var et=_toPrimitive$K(_e,"string");return _typeof$N(et)=="symbol"?et:String(et)}function _toPrimitive$K(_e,et){if(_typeof$N(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$N(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}var EPSILON$4=1,TooltipBoundingBox=function(_e){_inherits$h(et,_e);function et(){var tt;_classCallCheck$k(this,et);for(var nt=arguments.length,at=new Array(nt),it=0;it<nt;it++)at[it]=arguments[it];return tt=_callSuper$g(this,et,[].concat(at)),_defineProperty$K(_assertThisInitialized$h(tt),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),_defineProperty$K(_assertThisInitialized$h(tt),"lastBoundingBox",{width:-1,height:-1}),_defineProperty$K(_assertThisInitialized$h(tt),"handleKeyDown",function(ot){if(ot.key==="Escape"){var st,ct,dt,ht;tt.setState({dismissed:!0,dismissedAtCoordinate:{x:(st=(ct=tt.props.coordinate)===null||ct===void 0?void 0:ct.x)!==null&&st!==void 0?st:0,y:(dt=(ht=tt.props.coordinate)===null||ht===void 0?void 0:ht.y)!==null&&dt!==void 0?dt:0}})}}),tt}return _createClass$k(et,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var nt=this.wrapperNode.getBoundingClientRect();(Math.abs(nt.width-this.lastBoundingBox.width)>EPSILON$4||Math.abs(nt.height-this.lastBoundingBox.height)>EPSILON$4)&&(this.lastBoundingBox.width=nt.width,this.lastBoundingBox.height=nt.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var nt,at;this.props.active&&this.updateBBox(),this.state.dismissed&&(((nt=this.props.coordinate)===null||nt===void 0?void 0:nt.x)!==this.state.dismissedAtCoordinate.x||((at=this.props.coordinate)===null||at===void 0?void 0:at.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var nt=this,at=this.props,it=at.active,ot=at.allowEscapeViewBox,st=at.animationDuration,ct=at.animationEasing,dt=at.children,ht=at.coordinate,pt=at.hasPayload,mt=at.isAnimationActive,vt=at.offset,bt=at.position,_t=at.reverseDirection,wt=at.useTranslate3d,Et=at.viewBox,St=at.wrapperStyle,Tt=getTooltipTranslate({allowEscapeViewBox:ot,coordinate:ht,offsetTopLeft:vt,position:bt,reverseDirection:_t,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:wt,viewBox:Et}),Ct=Tt.cssClasses,Nt=Tt.cssProperties,Dt=_objectSpread$I(_objectSpread$I({transition:mt&&it?"transform ".concat(st,"ms ").concat(ct):void 0},Nt),{},{pointerEvents:"none",visibility:!this.state.dismissed&&it&&pt?"visible":"hidden",position:"absolute",top:0,left:0},St);return React$L.createElement("div",{tabIndex:-1,className:Ct,style:Dt,ref:function(Ft){nt.wrapperNode=Ft}},dt)}}]),et}(reactExports.PureComponent),parseIsSsrByDefault=function _e(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Global={isSsr:parseIsSsrByDefault(),get:function _e(et){return Global[et]},set:function _e(et,tt){if(typeof et=="string")Global[et]=tt;else{var nt=Object.keys(et);nt&&nt.length&&nt.forEach(function(at){Global[at]=et[at]})}}};function _typeof$M(_e){"@babel/helpers - typeof";return _typeof$M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$M(_e)}function ownKeys$H(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$H(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$H(Object(tt),!0).forEach(function(nt){_defineProperty$J(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$H(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _classCallCheck$j(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$j(_e,et){for(var tt=0;tt<et.length;tt++){var nt=et[tt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(_e,_toPropertyKey$J(nt.key),nt)}}function _createClass$j(_e,et,tt){return et&&_defineProperties$j(_e.prototype,et),tt&&_defineProperties$j(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}function _callSuper$f(_e,et,tt){return et=_getPrototypeOf$g(et),_possibleConstructorReturn$g(_e,_isNativeReflectConstruct$g()?Reflect.construct(et,tt||[],_getPrototypeOf$g(_e).constructor):et.apply(_e,tt))}function _possibleConstructorReturn$g(_e,et){if(et&&(_typeof$M(et)==="object"||typeof et=="function"))return et;if(et!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$g(_e)}function _assertThisInitialized$g(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}function _isNativeReflectConstruct$g(){try{var _e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$g=function(){return!!_e})()}function _getPrototypeOf$g(_e){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$g(_e)}function _inherits$g(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function");_e.prototype=Object.create(et&&et.prototype,{constructor:{value:_e,writable:!0,configurable:!0}}),Object.defineProperty(_e,"prototype",{writable:!1}),et&&_setPrototypeOf$g(_e,et)}function _setPrototypeOf$g(_e,et){return _setPrototypeOf$g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$g(_e,et)}function _defineProperty$J(_e,et,tt){return et=_toPropertyKey$J(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$J(_e){var et=_toPrimitive$J(_e,"string");return _typeof$M(et)=="symbol"?et:String(et)}function _toPrimitive$J(_e,et){if(_typeof$M(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$M(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function defaultUniqBy(_e){return _e.dataKey}function renderContent(_e,et){return React$L.isValidElement(_e)?React$L.cloneElement(_e,et):typeof _e=="function"?React$L.createElement(_e,et):React$L.createElement(DefaultTooltipContent,et)}var Tooltip=function(_e){_inherits$g(et,_e);function et(){return _classCallCheck$j(this,et),_callSuper$f(this,et,arguments)}return _createClass$j(et,[{key:"render",value:function(){var nt=this,at=this.props,it=at.active,ot=at.allowEscapeViewBox,st=at.animationDuration,ct=at.animationEasing,dt=at.content,ht=at.coordinate,pt=at.filterNull,mt=at.isAnimationActive,vt=at.offset,bt=at.payload,_t=at.payloadUniqBy,wt=at.position,Et=at.reverseDirection,St=at.useTranslate3d,Tt=at.viewBox,Ct=at.wrapperStyle,Nt=bt??[];pt&&Nt.length&&(Nt=getUniqPayload(bt.filter(function(kt){return kt.value!=null&&(kt.hide!==!0||nt.props.includeHidden)}),_t,defaultUniqBy));var Dt=Nt.length>0;return React$L.createElement(TooltipBoundingBox,{allowEscapeViewBox:ot,animationDuration:st,animationEasing:ct,isAnimationActive:mt,active:it,coordinate:ht,hasPayload:Dt,offset:vt,position:wt,reverseDirection:Et,useTranslate3d:St,viewBox:Tt,wrapperStyle:Ct},renderContent(dt,_objectSpread$H(_objectSpread$H({},this.props),{},{payload:Nt})))}}]),et}(reactExports.PureComponent);_defineProperty$J(Tooltip,"displayName","Tooltip");_defineProperty$J(Tooltip,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Global.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var root=require_root(),now$2=function(){return root.Date.now()},now_1=now$2,isObject$c=requireIsObject(),now$1=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce$1(_e,et,tt){var nt,at,it,ot,st,ct,dt=0,ht=!1,pt=!1,mt=!0;if(typeof _e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);et=toNumber(et)||0,isObject$c(tt)&&(ht=!!tt.leading,pt="maxWait"in tt,it=pt?nativeMax(toNumber(tt.maxWait)||0,et):it,mt="trailing"in tt?!!tt.trailing:mt);function vt(Dt){var kt=nt,Ft=at;return nt=at=void 0,dt=Dt,ot=_e.apply(Ft,kt),ot}function bt(Dt){return dt=Dt,st=setTimeout(Et,et),ht?vt(Dt):ot}function _t(Dt){var kt=Dt-ct,Ft=Dt-dt,jt=et-kt;return pt?nativeMin(jt,it-Ft):jt}function wt(Dt){var kt=Dt-ct,Ft=Dt-dt;return ct===void 0||kt>=et||kt<0||pt&&Ft>=it}function Et(){var Dt=now$1();if(wt(Dt))return St(Dt);st=setTimeout(Et,_t(Dt))}function St(Dt){return st=void 0,mt&&nt?vt(Dt):(nt=at=void 0,ot)}function Tt(){st!==void 0&&clearTimeout(st),dt=0,nt=ct=at=st=void 0}function Ct(){return st===void 0?ot:St(now$1())}function Nt(){var Dt=now$1(),kt=wt(Dt);if(nt=arguments,at=this,ct=Dt,kt){if(st===void 0)return bt(ct);if(pt)return clearTimeout(st),st=setTimeout(Et,et),vt(ct)}return st===void 0&&(st=setTimeout(Et,et)),ot}return Nt.cancel=Tt,Nt.flush=Ct,Nt}var debounce_1=debounce$1,debounce=debounce_1,isObject$b=requireIsObject(),FUNC_ERROR_TEXT="Expected a function";function throttle$1(_e,et,tt){var nt=!0,at=!0;if(typeof _e!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$b(tt)&&(nt="leading"in tt?!!tt.leading:nt,at="trailing"in tt?!!tt.trailing:at),debounce(_e,et,{leading:nt,maxWait:et,trailing:at})}var throttle_1=throttle$1;const throttle$2=getDefaultExportFromCjs$1(throttle_1);function _typeof$L(_e){"@babel/helpers - typeof";return _typeof$L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$L(_e)}function ownKeys$G(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$G(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$G(Object(tt),!0).forEach(function(nt){_defineProperty$I(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$G(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _defineProperty$I(_e,et,tt){return et=_toPropertyKey$I(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$I(_e){var et=_toPrimitive$I(_e,"string");return _typeof$L(et)=="symbol"?et:String(et)}function _toPrimitive$I(_e,et){if(_typeof$L(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$L(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function _slicedToArray$d(_e,et){return _arrayWithHoles$e(_e)||_iterableToArrayLimit$d(_e,et)||_unsupportedIterableToArray$m(_e,et)||_nonIterableRest$e()}function _nonIterableRest$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
244
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$n(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray$n(_e,et);var tt=Object.prototype.toString.call(_e).slice(8,-1);if(tt==="Object"&&_e.constructor&&(tt=_e.constructor.name),tt==="Map"||tt==="Set")return Array.from(_e);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return _arrayLikeToArray$n(_e,et)}}function _arrayLikeToArray$n(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var tt=0,nt=new Array(et);tt<et;tt++)nt[tt]=_e[tt];return nt}function _iterableToArrayLimit$e(_e,et){var tt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(tt!=null){var nt,at,it,ot,st=[],ct=!0,dt=!1;try{if(it=(tt=tt.call(_e)).next,et===0){if(Object(tt)!==tt)return;ct=!1}else for(;!(ct=(nt=it.call(tt)).done)&&(st.push(nt.value),st.length!==et);ct=!0);}catch(ht){dt=!0,at=ht}finally{try{if(!ct&&tt.return!=null&&(ot=tt.return(),Object(ot)!==ot))return}finally{if(dt)throw at}}return st}}function _arrayWithHoles$f(_e){if(Array.isArray(_e))return _e}function ownKeys$J(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$J(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$J(Object(tt),!0).forEach(function(nt){_defineProperty$M(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$J(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _defineProperty$M(_e,et,tt){return et=_toPropertyKey$M(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$M(_e){var et=_toPrimitive$M(_e,"string");return _typeof$P(et)=="symbol"?et:String(et)}function _toPrimitive$M(_e,et){if(_typeof$P(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$P(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function defaultFormatter(_e){return Array.isArray(_e)&&isNumOrStr(_e[0])&&isNumOrStr(_e[1])?_e.join(" ~ "):_e}var DefaultTooltipContent=function _e(et){var tt=et.separator,nt=tt===void 0?" : ":tt,at=et.contentStyle,it=at===void 0?{}:at,ot=et.itemStyle,st=ot===void 0?{}:ot,ct=et.labelStyle,dt=ct===void 0?{}:ct,ht=et.payload,pt=et.formatter,mt=et.itemSorter,vt=et.wrapperClassName,bt=et.labelClassName,_t=et.label,wt=et.labelFormatter,Et=et.accessibilityLayer,St=Et===void 0?!1:Et,Tt=function(){if(ht&&ht.length){var yt={padding:0,margin:0},$t=(mt?sortBy(ht,mt):ht).map(function(xt,At){if(xt.type==="none")return null;var Mt=_objectSpread$J({display:"block",paddingTop:4,paddingBottom:4,color:xt.color||"#000"},st),It=xt.formatter||pt||defaultFormatter,Lt=xt.value,Ot=xt.name,gt=Lt,Pt=Ot;if(It&&gt!=null&&Pt!=null){var Bt=It(Lt,Ot,xt,At,ht);if(Array.isArray(Bt)){var Ut=_slicedToArray$e(Bt,2);gt=Ut[0],Pt=Ut[1]}else gt=Bt}return React$L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(At),style:Mt},isNumOrStr(Pt)?React$L.createElement("span",{className:"recharts-tooltip-item-name"},Pt):null,isNumOrStr(Pt)?React$L.createElement("span",{className:"recharts-tooltip-item-separator"},nt):null,React$L.createElement("span",{className:"recharts-tooltip-item-value"},gt),React$L.createElement("span",{className:"recharts-tooltip-item-unit"},xt.unit||""))});return React$L.createElement("ul",{className:"recharts-tooltip-item-list",style:yt},$t)}return null},Ct=_objectSpread$J({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},it),Nt=_objectSpread$J({margin:0},dt),Dt=!isNil(_t),kt=Dt?_t:"",Ft=clsx("recharts-default-tooltip",vt),jt=clsx("recharts-tooltip-label",bt);Dt&&wt&&ht!==void 0&&ht!==null&&(kt=wt(_t,ht));var Gt=St?{role:"status","aria-live":"assertive"}:{};return React$L.createElement("div",_extends$C({className:Ft,style:Ct},Gt),React$L.createElement("p",{className:jt,style:Nt},React$L.isValidElement(kt)?kt:"".concat(kt)),Tt())};function _typeof$O(_e){"@babel/helpers - typeof";return _typeof$O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$O(_e)}function _defineProperty$L(_e,et,tt){return et=_toPropertyKey$L(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$L(_e){var et=_toPrimitive$L(_e,"string");return _typeof$O(et)=="symbol"?et:String(et)}function _toPrimitive$L(_e,et){if(_typeof$O(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$O(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}var CSS_CLASS_PREFIX="recharts-tooltip-wrapper",TOOLTIP_HIDDEN={visibility:"hidden"};function getTooltipCSSClassName(_e){var et=_e.coordinate,tt=_e.translateX,nt=_e.translateY;return clsx(CSS_CLASS_PREFIX,_defineProperty$L(_defineProperty$L(_defineProperty$L(_defineProperty$L({},"".concat(CSS_CLASS_PREFIX,"-right"),isNumber$3(tt)&&et&&isNumber$3(et.x)&&tt>=et.x),"".concat(CSS_CLASS_PREFIX,"-left"),isNumber$3(tt)&&et&&isNumber$3(et.x)&&tt<et.x),"".concat(CSS_CLASS_PREFIX,"-bottom"),isNumber$3(nt)&&et&&isNumber$3(et.y)&&nt>=et.y),"".concat(CSS_CLASS_PREFIX,"-top"),isNumber$3(nt)&&et&&isNumber$3(et.y)&&nt<et.y))}function getTooltipTranslateXY(_e){var et=_e.allowEscapeViewBox,tt=_e.coordinate,nt=_e.key,at=_e.offsetTopLeft,it=_e.position,ot=_e.reverseDirection,st=_e.tooltipDimension,ct=_e.viewBox,dt=_e.viewBoxDimension;if(it&&isNumber$3(it[nt]))return it[nt];var ht=tt[nt]-st-at,pt=tt[nt]+at;if(et[nt])return ot[nt]?ht:pt;if(ot[nt]){var mt=ht,vt=ct[nt];return mt<vt?Math.max(pt,ct[nt]):Math.max(ht,ct[nt])}var bt=pt+st,_t=ct[nt]+dt;return bt>_t?Math.max(ht,ct[nt]):Math.max(pt,ct[nt])}function getTransformStyle(_e){var et=_e.translateX,tt=_e.translateY,nt=_e.useTranslate3d;return{transform:nt?"translate3d(".concat(et,"px, ").concat(tt,"px, 0)"):"translate(".concat(et,"px, ").concat(tt,"px)")}}function getTooltipTranslate(_e){var et=_e.allowEscapeViewBox,tt=_e.coordinate,nt=_e.offsetTopLeft,at=_e.position,it=_e.reverseDirection,ot=_e.tooltipBox,st=_e.useTranslate3d,ct=_e.viewBox,dt,ht,pt;return ot.height>0&&ot.width>0&&tt?(ht=getTooltipTranslateXY({allowEscapeViewBox:et,coordinate:tt,key:"x",offsetTopLeft:nt,position:at,reverseDirection:it,tooltipDimension:ot.width,viewBox:ct,viewBoxDimension:ct.width}),pt=getTooltipTranslateXY({allowEscapeViewBox:et,coordinate:tt,key:"y",offsetTopLeft:nt,position:at,reverseDirection:it,tooltipDimension:ot.height,viewBox:ct,viewBoxDimension:ct.height}),dt=getTransformStyle({translateX:ht,translateY:pt,useTranslate3d:st})):dt=TOOLTIP_HIDDEN,{cssProperties:dt,cssClasses:getTooltipCSSClassName({translateX:ht,translateY:pt,coordinate:tt})}}function _typeof$N(_e){"@babel/helpers - typeof";return _typeof$N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$N(_e)}function ownKeys$I(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$I(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$I(Object(tt),!0).forEach(function(nt){_defineProperty$K(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$I(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _classCallCheck$k(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$k(_e,et){for(var tt=0;tt<et.length;tt++){var nt=et[tt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(_e,_toPropertyKey$K(nt.key),nt)}}function _createClass$k(_e,et,tt){return et&&_defineProperties$k(_e.prototype,et),tt&&_defineProperties$k(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}function _callSuper$g(_e,et,tt){return et=_getPrototypeOf$h(et),_possibleConstructorReturn$h(_e,_isNativeReflectConstruct$h()?Reflect.construct(et,tt||[],_getPrototypeOf$h(_e).constructor):et.apply(_e,tt))}function _possibleConstructorReturn$h(_e,et){if(et&&(_typeof$N(et)==="object"||typeof et=="function"))return et;if(et!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$h(_e)}function _isNativeReflectConstruct$h(){try{var _e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$h=function(){return!!_e})()}function _getPrototypeOf$h(_e){return _getPrototypeOf$h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$h(_e)}function _assertThisInitialized$h(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}function _inherits$h(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function");_e.prototype=Object.create(et&&et.prototype,{constructor:{value:_e,writable:!0,configurable:!0}}),Object.defineProperty(_e,"prototype",{writable:!1}),et&&_setPrototypeOf$h(_e,et)}function _setPrototypeOf$h(_e,et){return _setPrototypeOf$h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$h(_e,et)}function _defineProperty$K(_e,et,tt){return et=_toPropertyKey$K(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$K(_e){var et=_toPrimitive$K(_e,"string");return _typeof$N(et)=="symbol"?et:String(et)}function _toPrimitive$K(_e,et){if(_typeof$N(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$N(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}var EPSILON$4=1,TooltipBoundingBox=function(_e){_inherits$h(et,_e);function et(){var tt;_classCallCheck$k(this,et);for(var nt=arguments.length,at=new Array(nt),it=0;it<nt;it++)at[it]=arguments[it];return tt=_callSuper$g(this,et,[].concat(at)),_defineProperty$K(_assertThisInitialized$h(tt),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),_defineProperty$K(_assertThisInitialized$h(tt),"lastBoundingBox",{width:-1,height:-1}),_defineProperty$K(_assertThisInitialized$h(tt),"handleKeyDown",function(ot){if(ot.key==="Escape"){var st,ct,dt,ht;tt.setState({dismissed:!0,dismissedAtCoordinate:{x:(st=(ct=tt.props.coordinate)===null||ct===void 0?void 0:ct.x)!==null&&st!==void 0?st:0,y:(dt=(ht=tt.props.coordinate)===null||ht===void 0?void 0:ht.y)!==null&&dt!==void 0?dt:0}})}}),tt}return _createClass$k(et,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var nt=this.wrapperNode.getBoundingClientRect();(Math.abs(nt.width-this.lastBoundingBox.width)>EPSILON$4||Math.abs(nt.height-this.lastBoundingBox.height)>EPSILON$4)&&(this.lastBoundingBox.width=nt.width,this.lastBoundingBox.height=nt.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var nt,at;this.props.active&&this.updateBBox(),this.state.dismissed&&(((nt=this.props.coordinate)===null||nt===void 0?void 0:nt.x)!==this.state.dismissedAtCoordinate.x||((at=this.props.coordinate)===null||at===void 0?void 0:at.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var nt=this,at=this.props,it=at.active,ot=at.allowEscapeViewBox,st=at.animationDuration,ct=at.animationEasing,dt=at.children,ht=at.coordinate,pt=at.hasPayload,mt=at.isAnimationActive,vt=at.offset,bt=at.position,_t=at.reverseDirection,wt=at.useTranslate3d,Et=at.viewBox,St=at.wrapperStyle,Tt=getTooltipTranslate({allowEscapeViewBox:ot,coordinate:ht,offsetTopLeft:vt,position:bt,reverseDirection:_t,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:wt,viewBox:Et}),Ct=Tt.cssClasses,Nt=Tt.cssProperties,Dt=_objectSpread$I(_objectSpread$I({transition:mt&&it?"transform ".concat(st,"ms ").concat(ct):void 0},Nt),{},{pointerEvents:"none",visibility:!this.state.dismissed&&it&&pt?"visible":"hidden",position:"absolute",top:0,left:0},St);return React$L.createElement("div",{tabIndex:-1,className:Ct,style:Dt,ref:function(Ft){nt.wrapperNode=Ft}},dt)}}]),et}(reactExports.PureComponent),parseIsSsrByDefault=function _e(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Global={isSsr:parseIsSsrByDefault(),get:function _e(et){return Global[et]},set:function _e(et,tt){if(typeof et=="string")Global[et]=tt;else{var nt=Object.keys(et);nt&&nt.length&&nt.forEach(function(at){Global[at]=et[at]})}}};function _typeof$M(_e){"@babel/helpers - typeof";return _typeof$M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$M(_e)}function ownKeys$H(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$H(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$H(Object(tt),!0).forEach(function(nt){_defineProperty$J(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$H(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _classCallCheck$j(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$j(_e,et){for(var tt=0;tt<et.length;tt++){var nt=et[tt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(_e,_toPropertyKey$J(nt.key),nt)}}function _createClass$j(_e,et,tt){return et&&_defineProperties$j(_e.prototype,et),tt&&_defineProperties$j(_e,tt),Object.defineProperty(_e,"prototype",{writable:!1}),_e}function _callSuper$f(_e,et,tt){return et=_getPrototypeOf$g(et),_possibleConstructorReturn$g(_e,_isNativeReflectConstruct$g()?Reflect.construct(et,tt||[],_getPrototypeOf$g(_e).constructor):et.apply(_e,tt))}function _possibleConstructorReturn$g(_e,et){if(et&&(_typeof$M(et)==="object"||typeof et=="function"))return et;if(et!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$g(_e)}function _assertThisInitialized$g(_e){if(_e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}function _isNativeReflectConstruct$g(){try{var _e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$g=function(){return!!_e})()}function _getPrototypeOf$g(_e){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(tt){return tt.__proto__||Object.getPrototypeOf(tt)},_getPrototypeOf$g(_e)}function _inherits$g(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function");_e.prototype=Object.create(et&&et.prototype,{constructor:{value:_e,writable:!0,configurable:!0}}),Object.defineProperty(_e,"prototype",{writable:!1}),et&&_setPrototypeOf$g(_e,et)}function _setPrototypeOf$g(_e,et){return _setPrototypeOf$g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(nt,at){return nt.__proto__=at,nt},_setPrototypeOf$g(_e,et)}function _defineProperty$J(_e,et,tt){return et=_toPropertyKey$J(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$J(_e){var et=_toPrimitive$J(_e,"string");return _typeof$M(et)=="symbol"?et:String(et)}function _toPrimitive$J(_e,et){if(_typeof$M(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$M(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function defaultUniqBy(_e){return _e.dataKey}function renderContent(_e,et){return React$L.isValidElement(_e)?React$L.cloneElement(_e,et):typeof _e=="function"?React$L.createElement(_e,et):React$L.createElement(DefaultTooltipContent,et)}var Tooltip=function(_e){_inherits$g(et,_e);function et(){return _classCallCheck$j(this,et),_callSuper$f(this,et,arguments)}return _createClass$j(et,[{key:"render",value:function(){var nt=this,at=this.props,it=at.active,ot=at.allowEscapeViewBox,st=at.animationDuration,ct=at.animationEasing,dt=at.content,ht=at.coordinate,pt=at.filterNull,mt=at.isAnimationActive,vt=at.offset,bt=at.payload,_t=at.payloadUniqBy,wt=at.position,Et=at.reverseDirection,St=at.useTranslate3d,Tt=at.viewBox,Ct=at.wrapperStyle,Nt=bt??[];pt&&Nt.length&&(Nt=getUniqPayload(bt.filter(function(kt){return kt.value!=null&&(kt.hide!==!0||nt.props.includeHidden)}),_t,defaultUniqBy));var Dt=Nt.length>0;return React$L.createElement(TooltipBoundingBox,{allowEscapeViewBox:ot,animationDuration:st,animationEasing:ct,isAnimationActive:mt,active:it,coordinate:ht,hasPayload:Dt,offset:vt,position:wt,reverseDirection:Et,useTranslate3d:St,viewBox:Tt,wrapperStyle:Ct},renderContent(dt,_objectSpread$H(_objectSpread$H({},this.props),{},{payload:Nt})))}}]),et}(reactExports.PureComponent);_defineProperty$J(Tooltip,"displayName","Tooltip");_defineProperty$J(Tooltip,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Global.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var root=require_root(),now$2=function(){return root.Date.now()},now_1=now$2,isObject$c=requireIsObject(),now$1=now_1,toNumber=requireToNumber(),FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce$1(_e,et,tt){var nt,at,it,ot,st,ct,dt=0,ht=!1,pt=!1,mt=!0;if(typeof _e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);et=toNumber(et)||0,isObject$c(tt)&&(ht=!!tt.leading,pt="maxWait"in tt,it=pt?nativeMax(toNumber(tt.maxWait)||0,et):it,mt="trailing"in tt?!!tt.trailing:mt);function vt(Dt){var kt=nt,Ft=at;return nt=at=void 0,dt=Dt,ot=_e.apply(Ft,kt),ot}function bt(Dt){return dt=Dt,st=setTimeout(Et,et),ht?vt(Dt):ot}function _t(Dt){var kt=Dt-ct,Ft=Dt-dt,jt=et-kt;return pt?nativeMin(jt,it-Ft):jt}function wt(Dt){var kt=Dt-ct,Ft=Dt-dt;return ct===void 0||kt>=et||kt<0||pt&&Ft>=it}function Et(){var Dt=now$1();if(wt(Dt))return St(Dt);st=setTimeout(Et,_t(Dt))}function St(Dt){return st=void 0,mt&&nt?vt(Dt):(nt=at=void 0,ot)}function Tt(){st!==void 0&&clearTimeout(st),dt=0,nt=ct=at=st=void 0}function Ct(){return st===void 0?ot:St(now$1())}function Nt(){var Dt=now$1(),kt=wt(Dt);if(nt=arguments,at=this,ct=Dt,kt){if(st===void 0)return bt(ct);if(pt)return clearTimeout(st),st=setTimeout(Et,et),vt(ct)}return st===void 0&&(st=setTimeout(Et,et)),ot}return Nt.cancel=Tt,Nt.flush=Ct,Nt}var debounce_1=debounce$1,debounce=debounce_1,isObject$b=requireIsObject(),FUNC_ERROR_TEXT="Expected a function";function throttle$1(_e,et,tt){var nt=!0,at=!0;if(typeof _e!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$b(tt)&&(nt="leading"in tt?!!tt.leading:nt,at="trailing"in tt?!!tt.trailing:at),debounce(_e,et,{leading:nt,maxWait:et,trailing:at})}var throttle_1=throttle$1;const throttle$2=getDefaultExportFromCjs$1(throttle_1);function _typeof$L(_e){"@babel/helpers - typeof";return _typeof$L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(et){return typeof et}:function(et){return et&&typeof Symbol=="function"&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},_typeof$L(_e)}function ownKeys$G(_e,et){var tt=Object.keys(_e);if(Object.getOwnPropertySymbols){var nt=Object.getOwnPropertySymbols(_e);et&&(nt=nt.filter(function(at){return Object.getOwnPropertyDescriptor(_e,at).enumerable})),tt.push.apply(tt,nt)}return tt}function _objectSpread$G(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et]!=null?arguments[et]:{};et%2?ownKeys$G(Object(tt),!0).forEach(function(nt){_defineProperty$I(_e,nt,tt[nt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(tt)):ownKeys$G(Object(tt)).forEach(function(nt){Object.defineProperty(_e,nt,Object.getOwnPropertyDescriptor(tt,nt))})}return _e}function _defineProperty$I(_e,et,tt){return et=_toPropertyKey$I(et),et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _toPropertyKey$I(_e){var et=_toPrimitive$I(_e,"string");return _typeof$L(et)=="symbol"?et:String(et)}function _toPrimitive$I(_e,et){if(_typeof$L(_e)!="object"||!_e)return _e;var tt=_e[Symbol.toPrimitive];if(tt!==void 0){var nt=tt.call(_e,et||"default");if(_typeof$L(nt)!="object")return nt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(et==="string"?String:Number)(_e)}function _slicedToArray$d(_e,et){return _arrayWithHoles$e(_e)||_iterableToArrayLimit$d(_e,et)||_unsupportedIterableToArray$m(_e,et)||_nonIterableRest$e()}function _nonIterableRest$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
245
245
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$m(_e,et){if(_e){if(typeof _e=="string")return _arrayLikeToArray$m(_e,et);var tt=Object.prototype.toString.call(_e).slice(8,-1);if(tt==="Object"&&_e.constructor&&(tt=_e.constructor.name),tt==="Map"||tt==="Set")return Array.from(_e);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return _arrayLikeToArray$m(_e,et)}}function _arrayLikeToArray$m(_e,et){(et==null||et>_e.length)&&(et=_e.length);for(var tt=0,nt=new Array(et);tt<et;tt++)nt[tt]=_e[tt];return nt}function _iterableToArrayLimit$d(_e,et){var tt=_e==null?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(tt!=null){var nt,at,it,ot,st=[],ct=!0,dt=!1;try{if(it=(tt=tt.call(_e)).next,et===0){if(Object(tt)!==tt)return;ct=!1}else for(;!(ct=(nt=it.call(tt)).done)&&(st.push(nt.value),st.length!==et);ct=!0);}catch(ht){dt=!0,at=ht}finally{try{if(!ct&&tt.return!=null&&(ot=tt.return(),Object(ot)!==ot))return}finally{if(dt)throw at}}return st}}function _arrayWithHoles$e(_e){if(Array.isArray(_e))return _e}var ResponsiveContainer=reactExports.forwardRef(function(_e,et){var tt=_e.aspect,nt=_e.initialDimension,at=nt===void 0?{width:-1,height:-1}:nt,it=_e.width,ot=it===void 0?"100%":it,st=_e.height,ct=st===void 0?"100%":st,dt=_e.minWidth,ht=dt===void 0?0:dt,pt=_e.minHeight,mt=_e.maxHeight,vt=_e.children,bt=_e.debounce,_t=bt===void 0?0:bt,wt=_e.id,Et=_e.className,St=_e.onResize,Tt=_e.style,Ct=Tt===void 0?{}:Tt,Nt=reactExports.useRef(null),Dt=reactExports.useRef();Dt.current=St,reactExports.useImperativeHandle(et,function(){return Object.defineProperty(Nt.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),Nt.current},configurable:!0})});var kt=reactExports.useState({containerWidth:at.width,containerHeight:at.height}),Ft=_slicedToArray$d(kt,2),jt=Ft[0],Gt=Ft[1],Rt=reactExports.useCallback(function($t,xt){Gt(function(At){var Mt=Math.round($t),It=Math.round(xt);return At.containerWidth===Mt&&At.containerHeight===It?At:{containerWidth:Mt,containerHeight:It}})},[]);reactExports.useEffect(function(){var $t=function(Ot){var gt,Pt=Ot[0].contentRect,Bt=Pt.width,Ut=Pt.height;Rt(Bt,Ut),(gt=Dt.current)===null||gt===void 0||gt.call(Dt,Bt,Ut)};_t>0&&($t=throttle$2($t,_t,{trailing:!0,leading:!1}));var xt=new ResizeObserver($t),At=Nt.current.getBoundingClientRect(),Mt=At.width,It=At.height;return Rt(Mt,It),xt.observe(Nt.current),function(){xt.disconnect()}},[Rt,_t]);var yt=reactExports.useMemo(function(){var $t=jt.containerWidth,xt=jt.containerHeight;if($t<0||xt<0)return null;warn$3(isPercent(ot)||isPercent(ct),`The width(%s) and height(%s) are both fixed numbers,
246
246
  maybe you don't need to use a ResponsiveContainer.`,ot,ct),warn$3(!tt||tt>0,"The aspect(%s) must be greater than zero.",tt);var At=isPercent(ot)?$t:ot,Mt=isPercent(ct)?xt:ct;tt&&tt>0&&(At?Mt=At/tt:Mt&&(At=Mt*tt),mt&&Mt>mt&&(Mt=mt)),warn$3(At>0||Mt>0,`The width(%s) and height(%s) of chart should be greater than 0,
247
247
  please check the style of container, or the props width(%s) and height(%s),
@@ -316,7 +316,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
316
316
  `+((it=schemas_1$2.Entity.validate.errors)===null||it===void 0?void 0:it.map(ht=>ht.message).join(`
317
317
  `)));return{entity:dt,entityFile:st}}DeploymentBuilder.buildEntityAndFile=buildEntityAndFile;async function buildEntity({type:_e,pointers:et,files:tt,metadata:nt,timestamp:at}){const it=Array.from(tt||[]).map(([dt,ht])=>({key:dt,content:ht})),ot=await Promise.all(it.map(async({key:dt,content:ht})=>({key:dt,content:ht,hash:await(0,hashing_1.hashV1)(ht)}))),st=new Map(ot.map(({hash:dt,key:ht})=>[ht,dt])),ct=new Map(ot.map(({hash:dt,content:ht})=>[dt,ht]));return buildEntityInternal(_e,et,{hashesByKey:st,filesByHash:ct,metadata:nt,timestamp:at})}DeploymentBuilder.buildEntity=buildEntity;async function buildEntityWithoutNewFiles(_e,{contentUrl:et,type:tt,pointers:nt,hashesByKey:at,metadata:it,timestamp:ot}){const st=at??it?getHashesByKey(it):void 0;if(st&&isObsoleteProfile(tt,st)){const ct=await downloadAllFiles(_e,et,st),dt=await updateMetadata(ct,it);return buildEntity({type:tt,pointers:nt,files:ct,metadata:dt,timestamp:ot})}return buildEntityInternal(tt,nt,{hashesByKey:at,metadata:it,timestamp:ot})}buildEntityWithoutNewFiles_1=DeploymentBuilder.buildEntityWithoutNewFiles=buildEntityWithoutNewFiles;async function buildEntityInternal(_e,et,tt){if(et.length===0)throw new Error("All entities must have at least one pointer.");const nt=tt!=null&&tt.hashesByKey?tt==null?void 0:tt.hashesByKey:new Map,at=Array.from(nt.entries()).map(([dt,ht])=>({file:dt,hash:ht})),it=tt!=null&&tt.timestamp?tt==null?void 0:tt.timestamp:Date.now(),{entity:ot,entityFile:st}=await buildEntityAndFile({type:_e,pointers:et,timestamp:it,content:at,metadata:tt==null?void 0:tt.metadata}),ct=tt!=null&&tt.filesByHash?tt.filesByHash:new Map;return ct.set(ot.id,st),{files:ct,entityId:ot.id}}function isObsoleteProfile(_e,et){return _e===schemas_1$2.EntityType.PROFILE&&Array.from(et).some(([,tt])=>tt.toLowerCase().startsWith("qm"))}async function fetchArrayBuffer(_e,et){const nt=await(await _e.fetch(et)).arrayBuffer();return new Uint8Array(nt)}async function downloadAllFiles(_e,et,tt){const nt=tt.get("body.png"),at=tt.get("face256.png"),it=new URL(`${et}/contents/${nt}`).toString(),ot=new URL(`${et}/contents/${at}`).toString(),[st,ct]=await Promise.all([fetchArrayBuffer(_e,it),fetchArrayBuffer(_e,ot)]);return new Map([["body.png",st],["face256.png",ct]])}async function updateMetadata(_e,et){return et&&(et.avatars=await Promise.all(et.avatars.map(async tt=>{const nt={face256:"",body:""},at=_e.get("face256.png");at&&(nt.face256=await(0,hashing_1.hashV1)(at));const it=_e.get("body.png");return it&&(nt.body=await(0,hashing_1.hashV1)(it)),tt.avatar.snapshots=nt,tt})),et)}function getHashesByKey(_e){const et=_e.avatars[0];return new Map([["body.png",et.avatar.snapshots.body],["face256.png",et.avatar.snapshots.face256]])}class EntitiesOperator{constructor(et,tt){Zr(this,"peerUrl");Zr(this,"peerWithNoGbCollectorUrl");Zr(this,"catalystContentClient");Zr(this,"catalystContentClientWithoutGbCollector");Zr(this,"peerAPI");this.peerUrl=et,this.peerWithNoGbCollectorUrl=tt,this.catalystContentClient=createContentClient_1({url:`${et}/content`,fetcher:dist$4.createFetchComponent()}),this.catalystContentClientWithoutGbCollector=tt?createContentClient_1({url:`${et}/content`,fetcher:dist$4.createFetchComponent()}):null,this.peerAPI=new PeerAPI(et)}async getProfileEntity(et){const tt=await this.catalystContentClient.fetchEntitiesByPointers([et.toLowerCase()]);return tt.length>0?tt[0]:this.peerAPI.getDefaultProfileEntity()}async deployEntityWithoutNewFiles(et,tt,nt,at,it){const ot={type:nt,pointers:[at],metadata:et,hashesByKey:tt,timestamp:Date.now()},st=this.catalystContentClientWithoutGbCollector??this.catalystContentClient,ct=this.peerWithNoGbCollectorUrl??this.peerUrl,dt=await buildEntityWithoutNewFiles_1(dist$4.createFetchComponent(),{contentUrl:`${ct}/content`,...ot}),ht=dist$c.Authenticator.signPayload(it,dt.entityId);return st.deploy({...dt,authChain:ht})}}const lambdaProfileToContentProfile=_e=>({..._e,avatars:_e.avatars.map(et=>({...et,avatar:{...et.avatar,snapshots:Object.entries(et.avatar.snapshots).map(([tt,nt])=>({[tt]:nt.replace(/.*\//,"")})).reduce((tt,nt)=>({...tt,...nt}),{})}}))}),getHashesByKeyMap=_e=>{const et=new Map;return Object.entries(_e.avatar.snapshots).forEach(([tt,nt])=>{et.set(`${tt}.png`,nt)}),et},NO_IDENTITY_FOUND_ERROR_MESSAGE="No identity found";function createProfileSaga({getIdentity:_e,peerUrl:et,peerWithNoGbCollectorUrl:tt}){const nt=new PeerAPI(et),at=new EntitiesOperator(et,tt);function*it(){yield takeEvery$1(LOAD_PROFILE_REQUEST,ot),yield takeEvery$1(LOAD_PROFILES_REQUEST,st),yield takeEvery$1(SET_PROFILE_AVATAR_DESCRIPTION_REQUEST,ht),yield takeEvery$1(SET_PROFILE_AVATAR_ALIAS_REQUEST,dt),yield takeLatest$1(CONNECT_WALLET_SUCCESS,ct),yield takeLatest$1(CHANGE_ACCOUNT,ct)}function*ot(mt){const{address:vt}=mt.payload;try{const bt=yield call$6([nt,"fetchProfile"],vt);yield put(loadProfileSuccess(vt,bt))}catch(bt){yield put(loadProfileFailure(vt,bt.message))}}function*st(mt){const{addresses:vt}=mt.payload;try{const bt=yield call$6([nt,"fetchProfiles"],vt);yield put(loadProfilesSuccess(bt))}catch(bt){yield put(loadProfilesFailure(bt.message))}}function*ct(mt){yield put(loadProfileRequest(mt.payload.wallet.address))}function*dt(mt){const{address:vt,alias:bt}=mt.payload;try{const _t=yield pt(vt,{hasClaimedName:!0,name:bt});yield put(setProfileAvatarAliasSuccess(vt,bt,_t.version))}catch(_t){yield put(setProfileAvatarAliasFailure(vt,_t.message))}}function*ht(mt){try{const{address:vt,description:bt}=mt.payload,_t=yield pt(vt,{description:bt});yield put(setProfileAvatarDescriptionSuccess(mt.payload.address,_t.description,_t.version))}catch(vt){yield put(setProfileAvatarDescriptionFailure(mt.payload.address,vt.message))}}function*pt(mt,vt){const bt=yield call$6([nt,"fetchProfile"],mt,{useCache:!1}),_t=lambdaProfileToContentProfile(bt),wt={..._t.avatars[0],...vt,version:_t.avatars[0].version+1},Et={avatars:[wt,..._t.avatars.slice(1)]},St=_e();if(St)yield call$6([at,"deployEntityWithoutNewFiles"],Et,getHashesByKeyMap(wt),entity$2.EntityType.PROFILE,mt,St);else throw new Error(NO_IDENTITY_FOUND_ERROR_MESSAGE);return wt}return it}const analyticsSaga=createAnalyticsSaga(),translationSaga=createTranslationSaga({translations}),profileSaga=()=>createProfileSaga({getIdentity:()=>{},peerUrl:config.get("PEER_URL")});function*rootSaga(){yield all([analyticsSaga(),createWalletSaga({CHAIN_ID:Number(config.get("CHAIN_ID")),POLL_INTERVAL:0,TRANSACTIONS_API_URL:"https://transactions-api.decentraland.org/v1"})(),identitySaga(),profileSaga(),translationSaga(),transactionSaga()])}function initStore(){const _e=sagaMiddlewareFactory(),et=config.is(dist$9.Env.DEVELOPMENT),tt=reduxLoggerExports.createLogger({collapsed:()=>!0,predicate:(ot,st)=>et||st.type.includes("Failure")}),{storageMiddleware:nt,loadStorageMiddleware:at}=createStorageMiddleware({storageKey:"dcl-vesting-dashboard",paths:[],actions:[],migrations:{}}),it=createRootReducer([_e,tt,nt]);if(et){const ot=window;ot.getState=it.getState}return _e.run(rootSaga),at(it),it}let ChainProvider$1=class extends React$L.PureComponent{render(){const{children:et,...tt}=this.props;return et(tt)}};const mapState$a=_e=>{const et=getChainId(_e)||null,tt=et?chainIdExports.getChainName(et):null,nt=et&&getChainConfiguration(et).network,at=getAppChainId(_e),it=getChainConfiguration(at),ot=chainIdExports.getChainName(at),st=it.network,ct=!!et&&!!it,dt=ct&&Object.values(it.networkMapping).includes(et);return{chainId:et,chainName:tt,network:nt,appChainId:at,appChainName:ot,appNetwork:st,isConnected:ct,isSupported:dt,isUnsupported:ct&&!dt}},mapDispatch$7=_e=>({}),ChainProvider=connect(mapState$a,mapDispatch$7)(ChainProvider$1);class ChainCheck extends React$L.PureComponent{render(){const{chainId:et,children:tt}=this.props;return React$L.createElement(ChainProvider,null,nt=>{const at=nt.isSupported||nt.chainId===et;return React$L.createElement(Popup$4.Popup,{disabled:at,position:"top center",content:React$L.createElement(T,{id:"@dapps.button.network_not_supported",values:{expectedChainName:React$L.createElement("b",null,nt.appChainName)}}),trigger:tt(at)})})}}const disabledStyle$1={opacity:.5,cursor:"not-allowed",transform:"none"};class ChainButton extends React$L.PureComponent{render(){const{chainId:et,onClick:tt,...nt}=this.props;return React$L.createElement(ChainCheck,{chainId:et},at=>{const it=at?{onClick:tt}:{style:disabledStyle$1};return React$L.createElement(Button$2.Button,{...nt,...it})})}}let Footer$2=class extends reactExports.PureComponent{constructor(){super(...arguments);Zr(this,"getTranslations",()=>{if(this.props.hasTranslations)return{dropdown:{en:reactExports.createElement(T,{id:"@dapps.footer.dropdown.en"}),es:reactExports.createElement(T,{id:"@dapps.footer.dropdown.es"}),fr:reactExports.createElement(T,{id:"@dapps.footer.dropdown.fr"}),ja:reactExports.createElement(T,{id:"@dapps.footer.dropdown.ja"}),zh:reactExports.createElement(T,{id:"@dapps.footer.dropdown.zh"}),ko:reactExports.createElement(T,{id:"@dapps.footer.dropdown.ko"})},links:{home:reactExports.createElement(T,{id:"@dapps.footer.links.home"}),privacy:reactExports.createElement(T,{id:"@dapps.footer.links.privacy"}),terms:reactExports.createElement(T,{id:"@dapps.footer.links.terms"}),content:reactExports.createElement(T,{id:"@dapps.footer.links.content"}),ethics:reactExports.createElement(T,{id:"@dapps.footer.links.ethics"}),feature:reactExports.createElement(T,{id:"@dapps.footer.links.feature"})}}});Zr(this,"handleChange",(tt,{value:nt})=>{const{locale:at,onChange:it}=this.props;nt&&nt!==at&&it&&it(tt,{value:nt})})}render(){return reactExports.createElement(Footer_2,{...this.props,onChange:this.handleChange,i18n:this.getTranslations()})}};const mapState$9=_e=>({locale:getLocale$1(_e),hasTranslations:isEnabled(_e)}),mapDispatch$6=_e=>({onChange:(et,{value:tt})=>_e(changeLocale(tt))}),mergeProps$4=(_e,et,tt)=>({..._e,...et,...tt});connect(mapState$9,mapDispatch$6,mergeProps$4)(Footer$2);const{METAMASK,DAPPER,SAMSUNG,FORTMATIC,COINBASE,WALLET_CONNECT,WALLET_LINK,METAMASK_MOBILE}=LoginModal$2.LoginModalOptionType;function toModalOptionType(_e){switch(_e){case providerType$2.ProviderType.METAMASK_MOBILE:return METAMASK_MOBILE;case providerType$2.ProviderType.INJECTED:return isCucumberProvider()?SAMSUNG:isCoinbaseProvider()?COINBASE:isDapperProvider()?DAPPER:METAMASK;case providerType$2.ProviderType.FORTMATIC:return FORTMATIC;case providerType$2.ProviderType.WALLET_CONNECT:return WALLET_CONNECT;case providerType$2.ProviderType.WALLET_LINK:return WALLET_LINK;default:console.warn(`Invalid provider type ${_e}`);return}}function toProviderType(_e){switch(_e){case METAMASK_MOBILE:return providerType$2.ProviderType.WALLET_CONNECT;case METAMASK:case COINBASE:case DAPPER:case SAMSUNG:return providerType$2.ProviderType.INJECTED;case FORTMATIC:return providerType$2.ProviderType.FORTMATIC;case WALLET_CONNECT:return providerType$2.ProviderType.WALLET_CONNECT;case WALLET_LINK:return providerType$2.ProviderType.WALLET_LINK;default:throw new Error(`Invalid login type ${_e}`)}}class LoginModal extends reactExports.PureComponent{constructor(tt){super(tt);Zr(this,"handleOnConnect",tt=>{var it;const nt=((it=this.props.metadata)==null?void 0:it.onConnect)??this.props.onConnect,at=toProviderType(tt);nt(at)});Zr(this,"getModalTranslations",()=>{if(this.props.hasTranslations)return{title:reactExports.createElement(T,{id:"@dapps.login.modal.title"}),subtitle:reactExports.createElement(T,{id:"@dapps.login.modal.subtitle"}),error:reactExports.createElement(T,{id:"@dapps.login.modal.error"})}});Zr(this,"getOptionTranslations",()=>{if(this.props.hasTranslations)return{browser_extension:reactExports.createElement(T,{id:"@dapps.login.option.browser_extension"}),email:reactExports.createElement(T,{id:"@dapps.login.option.email"}),mobile:reactExports.createElement(T,{id:"@dapps.login.option.mobile"}),mobile_and_browser:reactExports.createElement(T,{id:"@dapps.login.option.mobile_and_browser"}),metamask_mobile:reactExports.createElement(T,{id:"@dapps.login.option.metamask_mobile"})}});Zr(this,"renderLoginModalOption",tt=>{const nt=toModalOptionType(tt);return nt?reactExports.createElement(LoginModal$2.LoginModal.Option,{key:nt,type:nt,i18n:this.getOptionTranslations(),onClick:()=>this.handleOnConnect(nt)}):null});this.state={hasError:!1}}componentDidUpdate(tt){!tt.hasError&&this.props.hasError?this.setState({hasError:!0}):tt.hasError&&!this.props.hasError&&this.setState({hasError:!1})}render(){const{className:tt,isLoading:nt,onClose:at}=this.props,{hasError:it}=this.state;return reactExports.createElement(LoginModal$2.LoginModal,{open:!0,className:tt,i18n:this.getModalTranslations(),message:reactExports.createElement(T,{id:"@dapps.login.modal.supported_wallets",values:{br:reactExports.createElement("br",null),trezor_link:reactExports.createElement("a",{href:"https://github.com/trezor/trezor-firmware/pull/1568",target:"_blank",rel:"noopener noreferrer"},t$2("@dapps.login.modal.trezor_link"))}}),loading:nt,hasError:it,onClose:at},connection.getAvailableProviders().map(this.renderLoginModalOption))}}Zr(LoginModal,"defaultProps",{isLoading:!1});const mapState$8=_e=>({hasError:!!getError$1(_e),isLoading:isEnabling(_e)||isConnecting(_e),hasTranslations:isEnabled(_e)}),mapDispatch$5=_e=>({onConnect:et=>_e(enableWalletRequest(et))}),mergeProps$3=(_e,et,tt)=>({..._e,...et,...tt});connect(mapState$8,mapDispatch$5,mergeProps$3)(LoginModal);let Modal$1=class extends reactExports.PureComponent{constructor(){super(...arguments);Zr(this,"handleClose",()=>{const{name:tt,onCloseModal:nt}=this.props;nt(tt)})}render(){const{name:tt,onCloseModal:nt,...at}=this.props;return reactExports.createElement(Modal$6.Modal,{open:!0,className:tt,size:"small",onClose:this.handleClose,...at})}};const getModalActions=()=>({openModal:function(_e,et=null){return action(OPEN_MODAL,{name:_e,metadata:et})},closeModal:function(_e){return action(CLOSE_MODAL,{name:_e})},toggleModal:function(_e){return action(TOGGLE_MODAL,{name:_e})}}),{openModal,closeModal,toggleModal}=getModalActions(),OPEN_MODAL="Open modal",CLOSE_MODAL="Close modal",TOGGLE_MODAL="Toggle modal",mapState$7=_e=>({}),mapDispatch$4=_e=>({onCloseModal:et=>_e(closeModal(et))}),mergeProps$2=(_e,et,tt)=>({..._e,...et,...tt}),BaseModal=connect(mapState$7,mapDispatch$4,mergeProps$2)(Modal$1),Modal=BaseModal;Modal.Actions=Modal$6.Modal.Actions;Modal.Content=Modal$6.Modal.Content;Modal.Description=Modal$6.Modal.Description;Modal.Header=Modal$6.Modal.Header;const getState$2=_e=>_e.profile,getData$2=_e=>getState$2(_e).data,UnsupportedNetworkModal=({chainName:_e,expectedChainName:et,isSwitchingNetwork:tt,onSwitchNetwork:nt})=>React$L.createElement(Modal,{open:!0,size:"tiny"},React$L.createElement(ModalNavigation_2,{title:React$L.createElement(T,{id:"@dapps.navbar.wrong_network.header"})}),React$L.createElement(Modal.Content,null,_e?React$L.createElement(T,{id:"@dapps.navbar.wrong_network.message",values:{currentChainName:React$L.createElement("b",null,_e),expectedChainName:React$L.createElement("b",null,et)}}):React$L.createElement(T,{id:"@dapps.navbar.wrong_network.message_unknown_network",values:{expectedChainName:React$L.createElement("b",null,et)}})),React$L.createElement(Modal.Actions,null,React$L.createElement(Button$2.Button,{primary:!0,disabled:tt,loading:tt,onClick:nt},React$L.createElement(T,{id:"@dapps.navbar.wrong_network.switch_button",values:{chainName:React$L.createElement("b",null,et)}}))));var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var factory={},signedFetchFactory$1={},signedHeaderFactory$1={},utils$2={},check=function(_e){return _e&&_e.Math===Math&&_e},global$9=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),fails$7=function(_e){try{return!!_e()}catch{return!0}},fails$6=fails$7,functionBindNative=!fails$6(function(){var _e=(function(){}).bind();return typeof _e!="function"||_e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,FunctionPrototype$1=Function.prototype,apply$1=FunctionPrototype$1.apply,call$5=FunctionPrototype$1.call,functionApply=typeof Reflect=="object"&&Reflect.apply||(NATIVE_BIND$3?call$5.bind(apply$1):function(){return call$5.apply(apply$1,arguments)}),NATIVE_BIND$2=functionBindNative,FunctionPrototype=Function.prototype,call$4=FunctionPrototype.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype.bind.bind(call$4,call$4),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(_e){return function(){return call$4.apply(_e,arguments)}},uncurryThis$7=functionUncurryThis,toString$3=uncurryThis$7({}.toString),stringSlice=uncurryThis$7("".slice),classofRaw$1=function(_e){return stringSlice(toString$3(_e),8,-1)},classofRaw=classofRaw$1,uncurryThis$6=functionUncurryThis,functionUncurryThisClause=function(_e){if(classofRaw(_e)==="Function")return uncurryThis$6(_e)},documentAll=typeof document=="object"&&document.all,isCallable$7=typeof documentAll>"u"&&documentAll!==void 0?function(_e){return typeof _e=="function"||_e===documentAll}:function(_e){return typeof _e=="function"},objectGetOwnPropertyDescriptor={},fails$5=fails$7,descriptors=!fails$5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),NATIVE_BIND$1=functionBindNative,call$3=Function.prototype.call,functionCall=NATIVE_BIND$1?call$3.bind(call$3):function(){return call$3.apply(call$3,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1);objectPropertyIsEnumerable.f=NASHORN_BUG?function _e(et){var tt=getOwnPropertyDescriptor$1(this,et);return!!tt&&tt.enumerable}:$propertyIsEnumerable;var createPropertyDescriptor$2=function(_e,et){return{enumerable:!(_e&1),configurable:!(_e&2),writable:!(_e&4),value:et}},uncurryThis$5=functionUncurryThis,fails$4=fails$7,classof=classofRaw$1,$Object$2=Object,split$1=uncurryThis$5("".split),indexedObject=fails$4(function(){return!$Object$2("z").propertyIsEnumerable(0)})?function(_e){return classof(_e)==="String"?split$1(_e,""):$Object$2(_e)}:$Object$2,isNullOrUndefined$2=function(_e){return _e==null},isNullOrUndefined$1=isNullOrUndefined$2,$TypeError$5=TypeError,requireObjectCoercible$2=function(_e){if(isNullOrUndefined$1(_e))throw new $TypeError$5("Can't call method on "+_e);return _e},IndexedObject=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$1=function(_e){return IndexedObject(requireObjectCoercible$1(_e))},isCallable$6=isCallable$7,isObject$9=function(_e){return typeof _e=="object"?_e!==null:isCallable$6(_e)},path$2={},path$1=path$2,global$8=global$9,isCallable$5=isCallable$7,aFunction=function(_e){return isCallable$5(_e)?_e:void 0},getBuiltIn$1=function(_e,et){return arguments.length<2?aFunction(path$1[_e])||aFunction(global$8[_e]):path$1[_e]&&path$1[_e][et]||global$8[_e]&&global$8[_e][et]},uncurryThis$4=functionUncurryThis,objectIsPrototypeOf=uncurryThis$4({}.isPrototypeOf),engineUserAgent=typeof navigator<"u"&&String(navigator.userAgent)||"",global$7=global$9,userAgent=engineUserAgent,process=global$7.process,Deno=global$7.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8,match,version;v8&&(match=v8.split("."),version=match[0]>0&&match[0]<4?1:+(match[0]+match[1]));!version&&userAgent&&(match=userAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=userAgent.match(/Chrome\/(\d+)/),match&&(version=+match[1])));var engineV8Version=version,V8_VERSION=engineV8Version,fails$3=fails$7,global$6=global$9,$String$2=global$6.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$3(function(){var _e=Symbol("symbol detection");return!$String$2(_e)||!(Object(_e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=NATIVE_SYMBOL$1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",getBuiltIn=getBuiltIn$1,isCallable$4=isCallable$7,isPrototypeOf=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$1=Object,isSymbol$2=USE_SYMBOL_AS_UID$1?function(_e){return typeof _e=="symbol"}:function(_e){var et=getBuiltIn("Symbol");return isCallable$4(et)&&isPrototypeOf(et.prototype,$Object$1(_e))},$String$1=String,tryToString$1=function(_e){try{return $String$1(_e)}catch{return"Object"}},isCallable$3=isCallable$7,tryToString=tryToString$1,$TypeError$4=TypeError,aCallable$2=function(_e){if(isCallable$3(_e))return _e;throw new $TypeError$4(tryToString(_e)+" is not a function")},aCallable$1=aCallable$2,isNullOrUndefined=isNullOrUndefined$2,getMethod$1=function(_e,et){var tt=_e[et];return isNullOrUndefined(tt)?void 0:aCallable$1(tt)},call$2=functionCall,isCallable$2=isCallable$7,isObject$8=isObject$9,$TypeError$3=TypeError,ordinaryToPrimitive$1=function(_e,et){var tt,nt;if(et==="string"&&isCallable$2(tt=_e.toString)&&!isObject$8(nt=call$2(tt,_e))||isCallable$2(tt=_e.valueOf)&&!isObject$8(nt=call$2(tt,_e))||et!=="string"&&isCallable$2(tt=_e.toString)&&!isObject$8(nt=call$2(tt,_e)))return nt;throw new $TypeError$3("Can't convert object to primitive value")},sharedStore={exports:{}},global$5=global$9,defineProperty=Object.defineProperty,defineGlobalProperty$1=function(_e,et){try{defineProperty(global$5,_e,{value:et,configurable:!0,writable:!0})}catch{global$5[_e]=et}return et},globalThis$3=global$9,defineGlobalProperty=defineGlobalProperty$1,SHARED="__core-js_shared__",store$1=sharedStore.exports=globalThis$3[SHARED]||defineGlobalProperty(SHARED,{});(store$1.versions||(store$1.versions=[])).push({version:"3.36.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"});var sharedStoreExports=sharedStore.exports,store=sharedStoreExports,shared$1=function(_e,et){return store[_e]||(store[_e]=et||{})},requireObjectCoercible=requireObjectCoercible$2,$Object=Object,toObject$2=function(_e){return $Object(requireObjectCoercible(_e))},uncurryThis$3=functionUncurryThis,toObject$1=toObject$2,hasOwnProperty$1=uncurryThis$3({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function _e(et,tt){return hasOwnProperty$1(toObject$1(et),tt)},uncurryThis$2=functionUncurryThis,id=0,postfix=Math.random(),toString$2=uncurryThis$2(1 .toString),uid$1=function(_e){return"Symbol("+(_e===void 0?"":_e)+")_"+toString$2(++id+postfix,36)},global$4=global$9,shared=shared$1,hasOwn$3=hasOwnProperty_1,uid=uid$1,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$4.Symbol,WellKnownSymbolsStore=shared("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid,wellKnownSymbol$1=function(_e){return hasOwn$3(WellKnownSymbolsStore,_e)||(WellKnownSymbolsStore[_e]=NATIVE_SYMBOL&&hasOwn$3(Symbol$2,_e)?Symbol$2[_e]:createWellKnownSymbol("Symbol."+_e)),WellKnownSymbolsStore[_e]},call$1=functionCall,isObject$7=isObject$9,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol=wellKnownSymbol$1,$TypeError$2=TypeError,TO_PRIMITIVE=wellKnownSymbol("toPrimitive"),toPrimitive$1=function(_e,et){if(!isObject$7(_e)||isSymbol$1(_e))return _e;var tt=getMethod(_e,TO_PRIMITIVE),nt;if(tt){if(et===void 0&&(et="default"),nt=call$1(tt,_e,et),!isObject$7(nt)||isSymbol$1(nt))return nt;throw new $TypeError$2("Can't convert object to primitive value")}return et===void 0&&(et="number"),ordinaryToPrimitive(_e,et)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(_e){var et=toPrimitive(_e,"string");return isSymbol(et)?et:et+""},global$3=global$9,isObject$6=isObject$9,document$1=global$3.document,EXISTS=isObject$6(document$1)&&isObject$6(document$1.createElement),documentCreateElement=function(_e){return EXISTS?document$1.createElement(_e):{}},DESCRIPTORS$4=descriptors,fails$2=fails$7,createElement$1=documentCreateElement,ie8DomDefine=!DESCRIPTORS$4&&!fails$2(function(){return Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a!==7}),DESCRIPTORS$3=descriptors,call=functionCall,propertyIsEnumerableModule=objectPropertyIsEnumerable,createPropertyDescriptor$1=createPropertyDescriptor$2,toIndexedObject=toIndexedObject$1,toPropertyKey$1=toPropertyKey$2,hasOwn$2=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor;objectGetOwnPropertyDescriptor.f=DESCRIPTORS$3?$getOwnPropertyDescriptor$1:function _e(et,tt){if(et=toIndexedObject(et),tt=toPropertyKey$1(tt),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(et,tt)}catch{}if(hasOwn$2(et,tt))return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f,et,tt),et[tt])};var fails$1=fails$7,isCallable$1=isCallable$7,replacement=/#|\.prototype\./,isForced$1=function(_e,et){var tt=data[normalize$2(_e)];return tt===POLYFILL?!0:tt===NATIVE?!1:isCallable$1(et)?fails$1(et):!!et},normalize$2=isForced$1.normalize=function(_e){return String(_e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,uncurryThis$1=functionUncurryThisClause,aCallable=aCallable$2,NATIVE_BIND=functionBindNative,bind$3=uncurryThis$1(uncurryThis$1.bind),functionBindContext=function(_e,et){return aCallable(_e),et===void 0?_e:NATIVE_BIND?bind$3(_e,et):function(){return _e.apply(et,arguments)}},objectDefineProperty={},DESCRIPTORS$2=descriptors,fails=fails$7,v8PrototypeDefineBug=DESCRIPTORS$2&&fails(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),isObject$5=isObject$9,$String=String,$TypeError$1=TypeError,anObject$1=function(_e){if(isObject$5(_e))return _e;throw new $TypeError$1($String(_e)+" is not an object")},DESCRIPTORS$1=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,anObject=anObject$1,toPropertyKey=toPropertyKey$2,$TypeError=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE="configurable",WRITABLE="writable";objectDefineProperty.f=DESCRIPTORS$1?V8_PROTOTYPE_DEFINE_BUG?function _e(et,tt,nt){if(anObject(et),tt=toPropertyKey(tt),anObject(nt),typeof et=="function"&&tt==="prototype"&&"value"in nt&&WRITABLE in nt&&!nt[WRITABLE]){var at=$getOwnPropertyDescriptor(et,tt);at&&at[WRITABLE]&&(et[tt]=nt.value,nt={configurable:CONFIGURABLE in nt?nt[CONFIGURABLE]:at[CONFIGURABLE],enumerable:ENUMERABLE in nt?nt[ENUMERABLE]:at[ENUMERABLE],writable:!1})}return $defineProperty(et,tt,nt)}:$defineProperty:function _e(et,tt,nt){if(anObject(et),tt=toPropertyKey(tt),anObject(nt),IE8_DOM_DEFINE)try{return $defineProperty(et,tt,nt)}catch{}if("get"in nt||"set"in nt)throw new $TypeError("Accessors not supported");return"value"in nt&&(et[tt]=nt.value),et};var DESCRIPTORS=descriptors,definePropertyModule=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$2,createNonEnumerableProperty$1=DESCRIPTORS?function(_e,et,tt){return definePropertyModule.f(_e,et,createPropertyDescriptor(1,tt))}:function(_e,et,tt){return _e[et]=tt,_e},global$2=global$9,apply=functionApply,uncurryThis=functionUncurryThisClause,isCallable=isCallable$7,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,isForced=isForced_1,path=path$2,bind$2=functionBindContext,createNonEnumerableProperty=createNonEnumerableProperty$1,hasOwn$1=hasOwnProperty_1,wrapConstructor=function(_e){var et=function(tt,nt,at){if(this instanceof et){switch(arguments.length){case 0:return new _e;case 1:return new _e(tt);case 2:return new _e(tt,nt)}return new _e(tt,nt,at)}return apply(_e,this,arguments)};return et.prototype=_e.prototype,et},_export=function(_e,et){var tt=_e.target,nt=_e.global,at=_e.stat,it=_e.proto,ot=nt?global$2:at?global$2[tt]:global$2[tt]&&global$2[tt].prototype,st=nt?path:path[tt]||createNonEnumerableProperty(path,tt,{})[tt],ct=st.prototype,dt,ht,pt,mt,vt,bt,_t,wt,Et;for(mt in et)dt=isForced(nt?mt:tt+(at?".":"#")+mt,_e.forced),ht=!dt&&ot&&hasOwn$1(ot,mt),bt=st[mt],ht&&(_e.dontCallGetSet?(Et=getOwnPropertyDescriptor(ot,mt),_t=Et&&Et.value):_t=ot[mt]),vt=ht&&_t?_t:et[mt],!(!dt&&!it&&typeof bt==typeof vt)&&(_e.bind&&ht?wt=bind$2(vt,global$2):_e.wrap&&ht?wt=wrapConstructor(vt):it&&isCallable(vt)?wt=uncurryThis(vt):wt=vt,(_e.sham||vt&&vt.sham||bt&&bt.sham)&&createNonEnumerableProperty(wt,"sham",!0),createNonEnumerableProperty(st,mt,wt),it&&(pt=tt+"Prototype",hasOwn$1(path,pt)||createNonEnumerableProperty(path,pt,{}),createNonEnumerableProperty(path[pt],mt,vt),_e.real&&ct&&(dt||!ct[mt])&&createNonEnumerableProperty(ct,mt,vt)))},$=_export,global$1=global$9;$({global:!0,forced:global$1.globalThis!==global$1},{globalThis:global$1});var globalThis$2=global$9,parent=globalThis$2,globalThis$1=parent,__importDefault$4=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(utils$2,"__esModule",{value:!0});utils$2.getImplementation=void 0;var global_this_1=__importDefault$4(globalThis$1);function getImplementation(_e,et){var tt,nt=(tt=_e[et])!==null&&tt!==void 0?tt:global_this_1.default[et];if(!nt)throw new ReferenceError('"'+et+'" is not defined');return nt}utils$2.getImplementation=getImplementation;var __values=commonjsGlobal&&commonjsGlobal.__values||function(_e){var et=typeof Symbol=="function"&&Symbol.iterator,tt=et&&_e[et],nt=0;if(tt)return tt.call(_e);if(_e&&typeof _e.length=="number")return{next:function(){return _e&&nt>=_e.length&&(_e=void 0),{value:_e&&_e[nt++],done:!_e}}};throw new TypeError(et?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(signedHeaderFactory$1,"__esModule",{value:!0});var Authenticator_1=Authenticator,utils_1$2=utils$2,AUTH_CHAIN_HEADER_PREFIX="x-identity-auth-chain-",AUTH_TIMESTAMP_HEADER="x-identity-timestamp",AUTH_METADATA_HEADER="x-identity-metadata";function signedHeaderFactory(_e){_e===void 0&&(_e={});var et=(0,utils_1$2.getImplementation)(_e,"Headers");return function(nt,at,it,ot,st){var ct,dt,ht=new et(st),pt=String(Date.now()),mt=JSON.stringify(ot),vt=[at,it,pt,mt].join(":").toLowerCase(),bt=0,_t=Authenticator_1.Authenticator.signPayload(nt,vt);try{for(var wt=__values(_t),Et=wt.next();!Et.done;Et=wt.next()){var St=Et.value;ht.set(AUTH_CHAIN_HEADER_PREFIX+bt,JSON.stringify(St)),bt++}}catch(Tt){ct={error:Tt}}finally{try{Et&&!Et.done&&(dt=wt.return)&&dt.call(wt)}finally{if(ct)throw ct.error}}return ht.set(AUTH_TIMESTAMP_HEADER,pt),ht.set(AUTH_METADATA_HEADER,mt),ht}}signedHeaderFactory$1.default=signedHeaderFactory;var __assign=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign=Object.assign||function(_e){for(var et,tt=1,nt=arguments.length;tt<nt;tt++){et=arguments[tt];for(var at in et)Object.prototype.hasOwnProperty.call(et,at)&&(_e[at]=et[at])}return _e},__assign.apply(this,arguments)},__rest=commonjsGlobal&&commonjsGlobal.__rest||function(_e,et){var tt={};for(var nt in _e)Object.prototype.hasOwnProperty.call(_e,nt)&&et.indexOf(nt)<0&&(tt[nt]=_e[nt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,nt=Object.getOwnPropertySymbols(_e);at<nt.length;at++)et.indexOf(nt[at])<0&&Object.prototype.propertyIsEnumerable.call(_e,nt[at])&&(tt[nt[at]]=_e[nt[at]]);return tt},__importDefault$3=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(signedFetchFactory$1,"__esModule",{value:!0});var signedHeaderFactory_1=__importDefault$3(signedHeaderFactory$1),utils_1$1=utils$2;function signedFetchFactory(_e){_e===void 0&&(_e={});var et=(0,signedHeaderFactory_1.default)(_e),tt=(0,utils_1$1.getImplementation)(_e,"URL"),nt=(0,utils_1$1.getImplementation)(_e,"Request"),at=(0,utils_1$1.getImplementation)(_e,"fetch");return function(ot,st){if(st&&st.identity){var ct=st.identity,dt=st.metadata,ht=__rest(st,["identity","metadata"]);if(typeof ot=="string"||ot instanceof tt||globalThis.URL&&ot instanceof globalThis.URL){var pt=typeof ot=="string"?new tt(ot):ot,mt=new nt(pt.toString(),__assign(__assign({},ht),{headers:et(ct,st.method||"GET",pt.pathname,dt||{},ht==null?void 0:ht.headers)}));return at(mt)}var vt=new tt(ot.url),bt=new nt(ot),_t=et(ct,ot.method||"GET",vt.pathname,dt||{});return _t.forEach(function(wt,Et){bt.headers.set(Et,wt)}),at(bt)}return at(ot,st)}}signedFetchFactory$1.default=signedFetchFactory;(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ot,st,ct,dt){dt===void 0&&(dt=ct),Object.defineProperty(ot,dt,{enumerable:!0,get:function(){return st[ct]}})}:function(ot,st,ct,dt){dt===void 0&&(dt=ct),ot[dt]=st[ct]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(ot,st){for(var ct in ot)ct!=="default"&&!Object.prototype.hasOwnProperty.call(st,ct)&&et(st,ot,ct)},nt=commonjsGlobal&&commonjsGlobal.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.signedHeaderFactory=_e.signedFetchFactory=void 0,tt(types,_e);var at=signedFetchFactory$1;Object.defineProperty(_e,"signedFetchFactory",{enumerable:!0,get:function(){return nt(at).default}});var it=signedHeaderFactory$1;Object.defineProperty(_e,"signedHeaderFactory",{enumerable:!0,get:function(){return nt(it).default}})})(factory);(function(_e){var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(it,ot,st,ct){ct===void 0&&(ct=st),Object.defineProperty(it,ct,{enumerable:!0,get:function(){return ot[st]}})}:function(it,ot,st,ct){ct===void 0&&(ct=st),it[ct]=ot[st]}),tt=commonjsGlobal&&commonjsGlobal.__exportStar||function(it,ot){for(var st in it)st!=="default"&&!Object.prototype.hasOwnProperty.call(ot,st)&&et(ot,it,st)},nt=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}};Object.defineProperty(_e,"__esModule",{value:!0}),tt(types,_e),tt(factory,_e);var at=nt(signedFetchFactory$1);_e.default=(0,at.default)()})(lib$1);var url={exports:{}},punycode={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode.exports;(function(_e,et){(function(tt){var nt=et&&!et.nodeType&&et,at=_e&&!_e.nodeType&&_e,it=typeof commonjsGlobal=="object"&&commonjsGlobal;(it.global===it||it.window===it||it.self===it)&&(tt=it);var ot,st=2147483647,ct=36,dt=1,ht=26,pt=38,mt=700,vt=72,bt=128,_t="-",wt=/^xn--/,Et=/[^\x20-\x7E]/,St=/[\x2E\u3002\uFF0E\uFF61]/g,Tt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ct=ct-dt,Nt=Math.floor,Dt=String.fromCharCode,kt;function Ft(gt){throw new RangeError(Tt[gt])}function jt(gt,Pt){for(var Bt=gt.length,Ut=[];Bt--;)Ut[Bt]=Pt(gt[Bt]);return Ut}function Gt(gt,Pt){var Bt=gt.split("@"),Ut="";Bt.length>1&&(Ut=Bt[0]+"@",gt=Bt[1]),gt=gt.replace(St,".");var Ht=gt.split("."),qt=jt(Ht,Pt).join(".");return Ut+qt}function Rt(gt){for(var Pt=[],Bt=0,Ut=gt.length,Ht,qt;Bt<Ut;)Ht=gt.charCodeAt(Bt++),Ht>=55296&&Ht<=56319&&Bt<Ut?(qt=gt.charCodeAt(Bt++),(qt&64512)==56320?Pt.push(((Ht&1023)<<10)+(qt&1023)+65536):(Pt.push(Ht),Bt--)):Pt.push(Ht);return Pt}function yt(gt){return jt(gt,function(Pt){var Bt="";return Pt>65535&&(Pt-=65536,Bt+=Dt(Pt>>>10&1023|55296),Pt=56320|Pt&1023),Bt+=Dt(Pt),Bt}).join("")}function $t(gt){return gt-48<10?gt-22:gt-65<26?gt-65:gt-97<26?gt-97:ct}function xt(gt,Pt){return gt+22+75*(gt<26)-((Pt!=0)<<5)}function At(gt,Pt,Bt){var Ut=0;for(gt=Bt?Nt(gt/mt):gt>>1,gt+=Nt(gt/Pt);gt>Ct*ht>>1;Ut+=ct)gt=Nt(gt/Ct);return Nt(Ut+(Ct+1)*gt/(gt+pt))}function Mt(gt){var Pt=[],Bt=gt.length,Ut,Ht=0,qt=bt,Vt=vt,zt,Wt,Xt,Zt,Qt,Kt,ar,Er,Sr;for(zt=gt.lastIndexOf(_t),zt<0&&(zt=0),Wt=0;Wt<zt;++Wt)gt.charCodeAt(Wt)>=128&&Ft("not-basic"),Pt.push(gt.charCodeAt(Wt));for(Xt=zt>0?zt+1:0;Xt<Bt;){for(Zt=Ht,Qt=1,Kt=ct;Xt>=Bt&&Ft("invalid-input"),ar=$t(gt.charCodeAt(Xt++)),(ar>=ct||ar>Nt((st-Ht)/Qt))&&Ft("overflow"),Ht+=ar*Qt,Er=Kt<=Vt?dt:Kt>=Vt+ht?ht:Kt-Vt,!(ar<Er);Kt+=ct)Sr=ct-Er,Qt>Nt(st/Sr)&&Ft("overflow"),Qt*=Sr;Ut=Pt.length+1,Vt=At(Ht-Zt,Ut,Zt==0),Nt(Ht/Ut)>st-qt&&Ft("overflow"),qt+=Nt(Ht/Ut),Ht%=Ut,Pt.splice(Ht++,0,qt)}return yt(Pt)}function It(gt){var Pt,Bt,Ut,Ht,qt,Vt,zt,Wt,Xt,Zt,Qt,Kt=[],ar,Er,Sr,gr;for(gt=Rt(gt),ar=gt.length,Pt=bt,Bt=0,qt=vt,Vt=0;Vt<ar;++Vt)Qt=gt[Vt],Qt<128&&Kt.push(Dt(Qt));for(Ut=Ht=Kt.length,Ht&&Kt.push(_t);Ut<ar;){for(zt=st,Vt=0;Vt<ar;++Vt)Qt=gt[Vt],Qt>=Pt&&Qt<zt&&(zt=Qt);for(Er=Ut+1,zt-Pt>Nt((st-Bt)/Er)&&Ft("overflow"),Bt+=(zt-Pt)*Er,Pt=zt,Vt=0;Vt<ar;++Vt)if(Qt=gt[Vt],Qt<Pt&&++Bt>st&&Ft("overflow"),Qt==Pt){for(Wt=Bt,Xt=ct;Zt=Xt<=qt?dt:Xt>=qt+ht?ht:Xt-qt,!(Wt<Zt);Xt+=ct)gr=Wt-Zt,Sr=ct-Zt,Kt.push(Dt(xt(Zt+gr%Sr,0))),Wt=Nt(gr/Sr);Kt.push(Dt(xt(Wt,0))),qt=At(Bt,Er,Ut==Ht),Bt=0,++Ut}++Bt,++Pt}return Kt.join("")}function Lt(gt){return Gt(gt,function(Pt){return wt.test(Pt)?Mt(Pt.slice(4).toLowerCase()):Pt})}function Ot(gt){return Gt(gt,function(Pt){return Et.test(Pt)?"xn--"+It(Pt):Pt})}if(ot={version:"1.4.1",ucs2:{decode:Rt,encode:yt},decode:Mt,encode:It,toASCII:Ot,toUnicode:Lt},nt&&at)if(_e.exports==nt)at.exports=ot;else for(kt in ot)ot.hasOwnProperty(kt)&&(nt[kt]=ot[kt]);else tt.punycode=ot})(commonjsGlobal)})(punycode,punycode.exports);var punycodeExports=punycode.exports,querystring={exports:{}},querystringEs3={};function hasOwnProperty(_e,et){return Object.prototype.hasOwnProperty.call(_e,et)}var decode=function(_e,et,tt,nt){et=et||"&",tt=tt||"=";var at={};if(typeof _e!="string"||_e.length===0)return at;var it=/\+/g;_e=_e.split(et);var ot=1e3;nt&&typeof nt.maxKeys=="number"&&(ot=nt.maxKeys);var st=_e.length;ot>0&&st>ot&&(st=ot);for(var ct=0;ct<st;++ct){var dt=_e[ct].replace(it,"%20"),ht=dt.indexOf(tt),pt,mt,vt,bt;ht>=0?(pt=dt.substr(0,ht),mt=dt.substr(ht+1)):(pt=dt,mt=""),vt=decodeURIComponent(pt),bt=decodeURIComponent(mt),hasOwnProperty(at,vt)?isArray$4(at[vt])?at[vt].push(bt):at[vt]=[at[vt],bt]:at[vt]=bt}return at},isArray$4=Array.isArray||function(_e){return Object.prototype.toString.call(_e)==="[object Array]"},stringifyPrimitive=function(_e){switch(typeof _e){case"string":return _e;case"boolean":return _e?"true":"false";case"number":return isFinite(_e)?_e:"";default:return""}},encode=function(_e,et,tt,nt){return et=et||"&",tt=tt||"=",_e===null&&(_e=void 0),typeof _e=="object"?map$3(objectKeys(_e),function(at){var it=encodeURIComponent(stringifyPrimitive(at))+tt;return isArray$3(_e[at])?map$3(_e[at],function(ot){return it+encodeURIComponent(stringifyPrimitive(ot))}).join(et):it+encodeURIComponent(stringifyPrimitive(_e[at]))}).join(et):nt?encodeURIComponent(stringifyPrimitive(nt))+tt+encodeURIComponent(stringifyPrimitive(_e)):""},isArray$3=Array.isArray||function(_e){return Object.prototype.toString.call(_e)==="[object Array]"};function map$3(_e,et){if(_e.map)return _e.map(et);for(var tt=[],nt=0;nt<_e.length;nt++)tt.push(et(_e[nt],nt));return tt}var objectKeys=Object.keys||function(_e){var et=[];for(var tt in _e)Object.prototype.hasOwnProperty.call(_e,tt)&&et.push(tt);return et};querystringEs3.decode=querystringEs3.parse=decode;querystringEs3.encode=querystringEs3.stringify=encode;(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});var tt=querystringEs3;function nt(ot){return encodeURIComponent(ot)}function at(ot){return decodeURIComponent(ot)}var it={decode:tt.decode,encode:tt.encode,parse:tt.parse,stringify:tt.stringify,escape:nt,unescape:at};Object.defineProperty(et,"decode",{enumerable:!0,get:function(){return tt.decode}}),Object.defineProperty(et,"encode",{enumerable:!0,get:function(){return tt.encode}}),Object.defineProperty(et,"parse",{enumerable:!0,get:function(){return tt.parse}}),Object.defineProperty(et,"stringify",{enumerable:!0,get:function(){return tt.stringify}}),et.default=it,et.escape=nt,et.unescape=at,et=_e.exports=it})(querystring,querystring.exports);var querystringExports=querystring.exports;(function(_e,et){Object.defineProperty(et,"__esModule",{value:!0});var tt=punycodeExports,nt=querystringExports;function at(dr){return dr&&typeof dr=="object"&&"default"in dr?dr:{default:dr}}var it=at(tt),ot=at(nt),st={isString:function(dr){return typeof dr=="string"},isObject:function(dr){return typeof dr=="object"&&dr!==null},isNull:function(dr){return dr===null},isNullOrUndefined:function(dr){return dr==null}},ct=it.default,dt=st,ht=At,pt=It,mt=Lt,vt=Mt,bt=_t;function _t(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var wt=/^([a-z0-9.+-]+:)/i,Et=/:[0-9]*$/,St=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Tt=["<",">",'"',"`"," ","\r",`
318
318
  `," "],Ct=["{","}","|","\\","^","`"].concat(Tt),Nt=["'"].concat(Ct),Dt=["%","/","?",";","#"].concat(Nt),kt=["/","?","#"],Ft=255,jt=/^[+a-z0-9A-Z_-]{0,63}$/,Gt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Rt={javascript:!0,"javascript:":!0},yt={javascript:!0,"javascript:":!0},$t={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},xt=ot.default;function At(dr,Br,qr){if(dr&&dt.isObject(dr)&&dr instanceof _t)return dr;var Hr=new _t;return Hr.parse(dr,Br,qr),Hr}_t.prototype.parse=function(dr,Br,qr){if(!dt.isString(dr))throw new TypeError("Parameter 'url' must be a string, not "+typeof dr);var Hr=dr.indexOf("?"),Qr=Hr!==-1&&Hr<dr.indexOf("#")?"?":"#",Zn=dr.split(Qr),tr=/\\/g;Zn[0]=Zn[0].replace(tr,"/"),dr=Zn.join(Qr);var Yt=dr;if(Yt=Yt.trim(),!qr&&dr.split("#").length===1){var Jt=St.exec(Yt);if(Jt)return this.path=Yt,this.href=Yt,this.pathname=Jt[1],Jt[2]?(this.search=Jt[2],Br?this.query=xt.parse(this.search.substr(1)):this.query=this.search.substr(1)):Br&&(this.search="",this.query={}),this}var ir=wt.exec(Yt);if(ir){ir=ir[0];var br=ir.toLowerCase();this.protocol=br,Yt=Yt.substr(ir.length)}if(qr||ir||Yt.match(/^\/\/[^@\/]+@[^@\/]+/)){var Jr=Yt.substr(0,2)==="//";Jr&&!(ir&&yt[ir])&&(Yt=Yt.substr(2),this.slashes=!0)}if(!yt[ir]&&(Jr||ir&&!$t[ir])){for(var Ar=-1,Yr=0;Yr<kt.length;Yr++){var Kn=Yt.indexOf(kt[Yr]);Kn!==-1&&(Ar===-1||Kn<Ar)&&(Ar=Kn)}var sn,mn;Ar===-1?mn=Yt.lastIndexOf("@"):mn=Yt.lastIndexOf("@",Ar),mn!==-1&&(sn=Yt.slice(0,mn),Yt=Yt.slice(mn+1),this.auth=decodeURIComponent(sn)),Ar=-1;for(var Yr=0;Yr<Dt.length;Yr++){var Kn=Yt.indexOf(Dt[Yr]);Kn!==-1&&(Ar===-1||Kn<Ar)&&(Ar=Kn)}Ar===-1&&(Ar=Yt.length),this.host=Yt.slice(0,Ar),Yt=Yt.slice(Ar),this.parseHost(),this.hostname=this.hostname||"";var Xn=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Xn)for(var Vr=this.hostname.split(/\./),Yr=0,$n=Vr.length;Yr<$n;Yr++){var Jn=Vr[Yr];if(Jn&&!Jn.match(jt)){for(var ur="",rr=0,Dr=Jn.length;rr<Dr;rr++)Jn.charCodeAt(rr)>127?ur+="x":ur+=Jn[rr];if(!ur.match(jt)){var vr=Vr.slice(0,Yr),Mr=Vr.slice(Yr+1),Sn=Jn.match(Gt);Sn&&(vr.push(Sn[1]),Mr.unshift(Sn[2])),Mr.length&&(Yt="/"+Mr.join(".")+Yt),this.hostname=vr.join(".");break}}}this.hostname.length>Ft?this.hostname="":this.hostname=this.hostname.toLowerCase(),Xn||(this.hostname=ct.toASCII(this.hostname));var Fr=this.port?":"+this.port:"",Xr=this.hostname||"";this.host=Xr+Fr,this.href+=this.host,Xn&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Yt[0]!=="/"&&(Yt="/"+Yt))}if(!Rt[br])for(var Yr=0,$n=Nt.length;Yr<$n;Yr++){var qn=Nt[Yr];if(Yt.indexOf(qn)!==-1){var cr=encodeURIComponent(qn);cr===qn&&(cr=escape(qn)),Yt=Yt.split(qn).join(cr)}}var lr=Yt.indexOf("#");lr!==-1&&(this.hash=Yt.substr(lr),Yt=Yt.slice(0,lr));var Rr=Yt.indexOf("?");if(Rr!==-1?(this.search=Yt.substr(Rr),this.query=Yt.substr(Rr+1),Br&&(this.query=xt.parse(this.query)),Yt=Yt.slice(0,Rr)):Br&&(this.search="",this.query={}),Yt&&(this.pathname=Yt),$t[br]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Fr=this.pathname||"",$r=this.search||"";this.path=Fr+$r}return this.href=this.format(),this};function Mt(dr){return dt.isString(dr)&&(dr=At(dr)),dr instanceof _t?dr.format():_t.prototype.format.call(dr)}_t.prototype.format=function(){var dr=this.auth||"";dr&&(dr=encodeURIComponent(dr),dr=dr.replace(/%3A/i,":"),dr+="@");var Br=this.protocol||"",qr=this.pathname||"",Hr=this.hash||"",Qr=!1,Zn="";this.host?Qr=dr+this.host:this.hostname&&(Qr=dr+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Qr+=":"+this.port)),this.query&&dt.isObject(this.query)&&Object.keys(this.query).length&&(Zn=xt.stringify(this.query));var tr=this.search||Zn&&"?"+Zn||"";return Br&&Br.substr(-1)!==":"&&(Br+=":"),this.slashes||(!Br||$t[Br])&&Qr!==!1?(Qr="//"+(Qr||""),qr&&qr.charAt(0)!=="/"&&(qr="/"+qr)):Qr||(Qr=""),Hr&&Hr.charAt(0)!=="#"&&(Hr="#"+Hr),tr&&tr.charAt(0)!=="?"&&(tr="?"+tr),qr=qr.replace(/[?#]/g,function(Yt){return encodeURIComponent(Yt)}),tr=tr.replace("#","%23"),Br+Qr+qr+tr+Hr};function It(dr,Br){return At(dr,!1,!0).resolve(Br)}_t.prototype.resolve=function(dr){return this.resolveObject(At(dr,!1,!0)).format()};function Lt(dr,Br){return dr?At(dr,!1,!0).resolveObject(Br):Br}_t.prototype.resolveObject=function(dr){if(dt.isString(dr)){var Br=new _t;Br.parse(dr,!1,!0),dr=Br}for(var qr=new _t,Hr=Object.keys(this),Qr=0;Qr<Hr.length;Qr++){var Zn=Hr[Qr];qr[Zn]=this[Zn]}if(qr.hash=dr.hash,dr.href==="")return qr.href=qr.format(),qr;if(dr.slashes&&!dr.protocol){for(var tr=Object.keys(dr),Yt=0;Yt<tr.length;Yt++){var Jt=tr[Yt];Jt!=="protocol"&&(qr[Jt]=dr[Jt])}return $t[qr.protocol]&&qr.hostname&&!qr.pathname&&(qr.path=qr.pathname="/"),qr.href=qr.format(),qr}if(dr.protocol&&dr.protocol!==qr.protocol){if(!$t[dr.protocol]){for(var ir=Object.keys(dr),br=0;br<ir.length;br++){var Jr=ir[br];qr[Jr]=dr[Jr]}return qr.href=qr.format(),qr}if(qr.protocol=dr.protocol,!dr.host&&!yt[dr.protocol]){for(var $n=(dr.pathname||"").split("/");$n.length&&!(dr.host=$n.shift()););dr.host||(dr.host=""),dr.hostname||(dr.hostname=""),$n[0]!==""&&$n.unshift(""),$n.length<2&&$n.unshift(""),qr.pathname=$n.join("/")}else qr.pathname=dr.pathname;if(qr.search=dr.search,qr.query=dr.query,qr.host=dr.host||"",qr.auth=dr.auth,qr.hostname=dr.hostname||dr.host,qr.port=dr.port,qr.pathname||qr.search){var Ar=qr.pathname||"",Yr=qr.search||"";qr.path=Ar+Yr}return qr.slashes=qr.slashes||dr.slashes,qr.href=qr.format(),qr}var Kn=qr.pathname&&qr.pathname.charAt(0)==="/",sn=dr.host||dr.pathname&&dr.pathname.charAt(0)==="/",mn=sn||Kn||qr.host&&dr.pathname,Xn=mn,Vr=qr.pathname&&qr.pathname.split("/")||[],$n=dr.pathname&&dr.pathname.split("/")||[],Jn=qr.protocol&&!$t[qr.protocol];if(Jn&&(qr.hostname="",qr.port=null,qr.host&&(Vr[0]===""?Vr[0]=qr.host:Vr.unshift(qr.host)),qr.host="",dr.protocol&&(dr.hostname=null,dr.port=null,dr.host&&($n[0]===""?$n[0]=dr.host:$n.unshift(dr.host)),dr.host=null),mn=mn&&($n[0]===""||Vr[0]==="")),sn)qr.host=dr.host||dr.host===""?dr.host:qr.host,qr.hostname=dr.hostname||dr.hostname===""?dr.hostname:qr.hostname,qr.search=dr.search,qr.query=dr.query,Vr=$n;else if($n.length)Vr||(Vr=[]),Vr.pop(),Vr=Vr.concat($n),qr.search=dr.search,qr.query=dr.query;else if(!dt.isNullOrUndefined(dr.search)){if(Jn){qr.hostname=qr.host=Vr.shift();var ur=qr.host&&qr.host.indexOf("@")>0?qr.host.split("@"):!1;ur&&(qr.auth=ur.shift(),qr.host=qr.hostname=ur.shift())}return qr.search=dr.search,qr.query=dr.query,(!dt.isNull(qr.pathname)||!dt.isNull(qr.search))&&(qr.path=(qr.pathname?qr.pathname:"")+(qr.search?qr.search:"")),qr.href=qr.format(),qr}if(!Vr.length)return qr.pathname=null,qr.search?qr.path="/"+qr.search:qr.path=null,qr.href=qr.format(),qr;for(var rr=Vr.slice(-1)[0],Dr=(qr.host||dr.host||Vr.length>1)&&(rr==="."||rr==="..")||rr==="",vr=0,Mr=Vr.length;Mr>=0;Mr--)rr=Vr[Mr],rr==="."?Vr.splice(Mr,1):rr===".."?(Vr.splice(Mr,1),vr++):vr&&(Vr.splice(Mr,1),vr--);if(!mn&&!Xn)for(;vr--;vr)Vr.unshift("..");mn&&Vr[0]!==""&&(!Vr[0]||Vr[0].charAt(0)!=="/")&&Vr.unshift(""),Dr&&Vr.join("/").substr(-1)!=="/"&&Vr.push("");var Sn=Vr[0]===""||Vr[0]&&Vr[0].charAt(0)==="/";if(Jn){qr.hostname=qr.host=Sn?"":Vr.length?Vr.shift():"";var ur=qr.host&&qr.host.indexOf("@")>0?qr.host.split("@"):!1;ur&&(qr.auth=ur.shift(),qr.host=qr.hostname=ur.shift())}return mn=mn||qr.host&&Vr.length,mn&&!Sn&&Vr.unshift(""),Vr.length?qr.pathname=Vr.join("/"):(qr.pathname=null,qr.path=null),(!dt.isNull(qr.pathname)||!dt.isNull(qr.search))&&(qr.path=(qr.pathname?qr.pathname:"")+(qr.search?qr.search:"")),qr.auth=dr.auth||qr.auth,qr.slashes=qr.slashes||dr.slashes,qr.href=qr.format(),qr},_t.prototype.parseHost=function(){var dr=this.host,Br=Et.exec(dr);Br&&(Br=Br[0],Br!==":"&&(this.port=Br.substr(1)),dr=dr.substr(0,dr.length-Br.length)),dr&&(this.hostname=dr)};function Ot(dr,Br){for(var qr=0,Hr=dr.length-1;Hr>=0;Hr--){var Qr=dr[Hr];Qr==="."?dr.splice(Hr,1):Qr===".."?(dr.splice(Hr,1),qr++):qr&&(dr.splice(Hr,1),qr--)}if(Br)for(;qr--;qr)dr.unshift("..");return dr}function gt(){for(var dr="",Br=!1,qr=arguments.length-1;qr>=-1&&!Br;qr--){var Hr=qr>=0?arguments[qr]:"/";if(typeof Hr!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!Hr)continue;dr=Hr+"/"+dr,Br=Hr.charAt(0)==="/"}return dr=Ot(Pt(dr.split("/"),function(Qr){return!!Qr}),!Br).join("/"),(Br?"/":"")+dr||"."}function Pt(dr,Br){if(dr.filter)return dr.filter(Br);for(var qr=[],Hr=0;Hr<dr.length;Hr++)Br(dr[Hr],Hr,dr)&&qr.push(dr[Hr]);return qr}var Bt=function(dr){function Br(){var Hr=this||self;return delete dr.prototype.__magic__,Hr}if(typeof globalThis=="object")return globalThis;if(this)return Br();dr.defineProperty(dr.prototype,"__magic__",{configurable:!0,get:Br});var qr=__magic__;return qr}(Object),Ut=vt,Ht=ht,qt=pt,Vt=bt,zt=Bt.URL,Wt=Bt.URLSearchParams,Xt=/%/g,Zt=/\\/g,Qt=/\n/g,Kt=/\r/g,ar=/\t/g,Er=47;function Sr(dr){var Br=dr??null;return!!(Br!==null&&(Br!=null&&Br.href)&&(Br!=null&&Br.origin))}function gr(dr){if(dr.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var Br=dr.pathname,qr=0;qr<Br.length;qr++)if(Br[qr]==="%"){var Hr=Br.codePointAt(qr+2)|32;if(Br[qr+1]==="2"&&Hr===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(Br)}function yn(dr){return dr.includes("%")&&(dr=dr.replace(Xt,"%25")),dr.includes("\\")&&(dr=dr.replace(Zt,"%5C")),dr.includes(`
319
- `)&&(dr=dr.replace(Qt,"%0A")),dr.includes("\r")&&(dr=dr.replace(Kt,"%0D")),dr.includes(" ")&&(dr=dr.replace(ar,"%09")),dr}var Nr=function(Br){if(typeof Br>"u")throw new TypeError('The "domain" argument must be specified');return new zt("http://"+Br).hostname},xr=function(Br){if(typeof Br>"u")throw new TypeError('The "domain" argument must be specified');return new zt("http://"+Br).hostname},gn=function(Br){var qr=new zt("file://"),Hr=gt(Br),Qr=Br.charCodeAt(Br.length-1);return Qr===Er&&Hr[Hr.length-1]!=="/"&&(Hr+="/"),qr.pathname=yn(Hr),qr},Tr=function(Br){if(!Sr(Br)&&typeof Br!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof Br+" ("+Br+")");var qr=new zt(Br);if(qr.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return gr(qr)},Pr=function(Br,qr){var Hr,Qr,Zn;if(qr===void 0&&(qr={}),!(Br instanceof zt))return Ut(Br);if(typeof qr!="object"||qr===null)throw new TypeError('The "options" argument must be of type object.');var tr=(Hr=qr.auth)!=null?Hr:!0,Yt=(Qr=qr.fragment)!=null?Qr:!0,Jt=(Zn=qr.search)!=null?Zn:!0,ir=new zt(Br.toString());return tr||(ir.username="",ir.password=""),Yt||(ir.hash=""),Jt||(ir.search=""),ir.toString()},An={format:Pr,parse:Ht,resolve:qt,resolveObject:mt,Url:Vt,URL:zt,URLSearchParams:Wt,domainToASCII:Nr,domainToUnicode:xr,pathToFileURL:gn,fileURLToPath:Tr};et.URL=zt,et.URLSearchParams=Wt,et.Url=Vt,et.default=An,et.domainToASCII=Nr,et.domainToUnicode=xr,et.fileURLToPath=Tr,et.format=Pr,et.parse=Ht,et.pathToFileURL=gn,et.resolve=qt,et.resolveObject=mt,et=_e.exports=An})(url,url.exports);var urlExports=url.exports;const nodeURL=getDefaultExportFromCjs$1(urlExports);class ClientError extends Error{constructor(tt,nt,at){super(tt);Zr(this,"status");Zr(this,"data");this.status=nt,this.data=at}}const DEFAULT_RETRIES=3,DEFAULT_RETRY_DELAY=1e3,DEFAULT_NON_RETRYABLE_STATUSES=[400,401,403,404,409,422],URL$1=(globalThis==null?void 0:globalThis.URL)??nodeURL.URL;class BaseClient{constructor(et,tt){Zr(this,"baseUrl");Zr(this,"retries");Zr(this,"retryDelay");Zr(this,"nonRetryableStatuses");Zr(this,"identity");Zr(this,"sleep",et=>new Promise(tt=>{setTimeout(tt,et)}));Zr(this,"getIdentity",()=>this.identity instanceof Function?this.identity():this.identity);Zr(this,"rawFetch",(et,tt)=>{const nt=new URL$1(et,this.baseUrl),at=(tt==null?void 0:tt.identity)??this.getIdentity();return lib$1.signedFetchFactory()(nt.toString(),{...tt,identity:at})});Zr(this,"fetch",async(et,tt)=>{for(let nt=0;nt<=this.retries;nt++)try{let at,it;try{at=await this.rawFetch(et,tt);const ot=await at.text();ot.length===0?it={ok:!0,data:null}:it=JSON.parse(ot)}catch(ot){throw new ClientError(ot.message,void 0,null)}if(!at.ok||it.ok===!1){const ot=it.message??it.error;throw new ClientError(ot??`Request failed with status code ${at.status}`,at.status,it.data)}return it.ok===!0?it.data:it}catch(at){if(console.error(`[API] HTTP request failed: ${at.message||""}`,at),this.retries===nt||at.status&&this.nonRetryableStatuses.includes(at.status))throw at;await this.sleep(this.retryDelay)}throw new Error("Unreachable code")});this.baseUrl=et,this.identity=tt==null?void 0:tt.identity,this.retries=(tt==null?void 0:tt.retries)??DEFAULT_RETRIES,this.retryDelay=(tt==null?void 0:tt.retryDelay)??DEFAULT_RETRY_DELAY,this.nonRetryableStatuses=(tt==null?void 0:tt.nonRetryableStatuses)??DEFAULT_NON_RETRYABLE_STATUSES}}const NAVBAR_CLICK_EVENT="Click on Navbar",NOTIFICATIONS_QUERY_INTERVAL=6e4,DROPDOWN_MENU_ITEM_CLICK_EVENT="Unified Dropdown Menu Item Click",DROPDOWN_MENU_DISPLAY_EVENT="Unified Dropdown Menu Display",DROPDOWN_MENU_BALANCE_CLICK_EVENT="Unified Dropdown Menu Balance Click",DROPDOWN_MENU_SIGN_OUT_EVENT="Unified Dropdown Menu Sign Out",CHANGE_NETWORK="Change Network",NOTIFICATIONS_LIMIT=50;class NotificationsAPI extends BaseClient{constructor(et){const tt=dist$9.getEnv()===dist$9.Env.DEVELOPMENT?"https://notifications.decentraland.zone":"https://notifications.decentraland.org";super(tt,et)}async getNotifications(et=NOTIFICATIONS_LIMIT,tt){const nt=new URLSearchParams;et&&nt.append("limit",`${et}`),tt&&nt.append("from",`${tt}`);const{notifications:at}=await this.fetch(`/notifications${nt.toString().length?`?${nt.toString()}`:""}`);return at.map(parseNotification)}async markNotificationsAsRead(et){await this.fetch("/notifications/read",{method:"PUT",body:JSON.stringify({notificationIds:et}),metadata:{notificationIds:et},headers:{"Content-Type":"application/json"}})}async getSubscription(){return this.fetch("/subscription")}async putSubscription(et){return this.fetch("/subscription",{method:"PUT",body:JSON.stringify(et),headers:{"Content-Type":"application/json"}})}async putEmail(et){return this.fetch("/set-email",{method:"PUT",body:JSON.stringify({email:et}),headers:{"Content-Type":"application/json"}})}async postEmailConfirmationCode(et){return this.fetch("/confirm-email",{method:"PUT",body:JSON.stringify(et),headers:{"Content-Type":"application/json"}})}}const ONBOARDING_KEY="dcl_notifications_onboarding",checkIsOnboarding=()=>{if(typeof window<"u"){const _e=localStorage.getItem(ONBOARDING_KEY);return _e?JSON.parse(_e):(localStorage.setItem(ONBOARDING_KEY,"true"),!0)}},setOnboardingDone=()=>{typeof window<"u"&&localStorage.setItem(ONBOARDING_KEY,"false")},parseNotification=_e=>({..._e,timestamp:Number(_e.timestamp)});var utilsExports=requireUtils();const Profile=function(_e){const{address:et,debounce:tt,inline:nt=!0}=_e,at=useSelector(getData$2),it=useDispatch(),ot=reactExports.useRef(),st=reactExports.useMemo(()=>{const dt=at[et];return dt?dt.avatars[0]:null},[et,at]),ct=reactExports.useCallback(dt=>it(loadProfileRequest(dt)),[et]);return reactExports.useEffect(()=>(st||(tt?(ot.current&&clearTimeout(ot.current),ot.current=window.setTimeout(()=>ct(et),tt)):ct(et)),()=>{ot.current&&window.clearTimeout(ot.current)}),[et]),React$L.createElement(Profile_2,{..._e,avatar:st,inline:nt})},useNotifications=(_e,et)=>{const[{isLoading:tt,notifications:nt},at]=reactExports.useState({isLoading:!1,notifications:[]}),[{activeTab:it,isOnboarding:ot,isOpen:st},ct]=reactExports.useState({activeTab:types$1.NotificationActiveTab.NEWEST,isOnboarding:checkIsOnboarding(),isOpen:!1}),dt=reactExports.useMemo(()=>_e?new NotificationsAPI({identity:_e}):null,[_e]),ht=()=>{setOnboardingDone(),ct(_t=>({..._t,isOnboarding:!1}))},pt=async()=>{const _t=st;if(ct(wt=>({...wt,isOpen:!wt.isOpen})),_t){const wt=nt.map(Et=>Et.read?Et:{...Et,read:!0});at({isLoading:tt,notifications:wt})}else{const wt=nt.filter(Et=>!Et.read).map(({id:Et})=>Et);wt.length&&await(dt==null?void 0:dt.markNotificationsAsRead(wt))}},mt=_t=>ct(wt=>({...wt,activeTab:_t})),vt=()=>{at({notifications:[],isLoading:!0}),dt==null||dt.getNotifications().then(_t=>{at({isLoading:!1,notifications:_t.filter(wt=>utilsExports.CURRENT_AVAILABLE_NOTIFICATIONS.includes(wt.type))})})},bt=reactExports.useCallback(_t=>React$L.createElement(Profile,{address:_t,as:"a",href:`${getBaseUrl()}/profile/accounts/${_t}`,style:{fontWeight:500,color:"white",textDecoration:"none"},target:"_blank"}),[]);return reactExports.useEffect(()=>{if(_e&&et){vt();const _t=setInterval(()=>{vt()},NOTIFICATIONS_QUERY_INTERVAL);return()=>{clearInterval(_t)}}return()=>{}},[_e]),{notificationsClient:dt,notifications:nt,isLoading:tt,isModalOpen:st,modalActiveTab:it,isNotificationsOnboarding:ot,handleOnBegin:ht,handleNotificationsOpen:pt,handleOnChangeModalTab:mt,handleRenderProfile:bt}},BASE_URL=getBaseUrl(),Navbar$3=({appChainId:_e,isSwitchingNetwork:et,withNotifications:tt,withChainSelector:nt,identity:at,docsUrl:it="https://docs.decentraland.org",enablePartialSupportAlert:ot=!0,walletError:st,...ct})=>{const dt=chainIdExports.getChainName(_e),ht=getAnalytics(),{isModalOpen:pt,isNotificationsOnboarding:mt,modalActiveTab:vt,isLoading:bt,notifications:_t,handleNotificationsOpen:wt,handleOnBegin:Et,handleOnChangeModalTab:St,handleRenderProfile:Tt}=useNotifications(at,tt||!1),Ct=reactExports.useCallback(()=>{ct.onSwitchNetwork(_e)},[]),[Nt,Dt]=reactExports.useState(void 0);reactExports.useEffect(()=>{st&&Nt&&nt&&Dt(void 0)},[st,Nt,nt]);const kt=reactExports.useCallback(xt=>{Dt(xt),ct.onSwitchNetwork(xt,ct.chainId),ht.track(CHANGE_NETWORK,{from_chain_id:ct.chainId,to_chain_id:xt})},[ht]),Ft=reactExports.useCallback((xt,At)=>{xt.preventDefault(),ht.track(DROPDOWN_MENU_BALANCE_CLICK_EVENT,{network:At}),setTimeout(()=>{window.open(`${BASE_URL}/account`,"_blank","noopener")},300)},[ht]),jt=reactExports.useCallback((xt,At)=>{ht.track(NAVBAR_CLICK_EVENT,At)},[ht]),Gt=reactExports.useCallback((xt,At)=>{ht.track(DROPDOWN_MENU_ITEM_CLICK_EVENT,At)},[ht]),Rt=reactExports.useCallback((xt,At)=>{ht.track(DROPDOWN_MENU_DISPLAY_EVENT,{track_uuid:At})},[ht]),yt=reactExports.useCallback(xt=>{ct.onSignIn()},[ht]),$t=reactExports.useCallback((xt,At)=>{ht.track(DROPDOWN_MENU_SIGN_OUT_EVENT,{track_uuid:At}),setTimeout(()=>{ct.onSignOut()},300)},[ht]);return React$L.createElement(React$L.Fragment,null,React$L.createElement(ChainProvider,null,({chainId:xt,isUnsupported:At})=>React$L.createElement(React$L.Fragment,null,React$L.createElement(Navbar_1,{...ct,notifications:tt?{locale:ct.locale,isLoading:bt,isOnboarding:mt,isOpen:pt,items:_t,activeTab:vt,onClick:wt,onClose:wt,onBegin:Et,onChangeTab:(Mt,It)=>St(It),renderProfile:Tt}:void 0,onClickBalance:Ft,onClickNavbarItem:jt,onClickUserMenuItem:Gt,onClickOpen:Rt,onClickSignIn:yt,onClickSignOut:$t,...nt&&{chains:getAvailableChains(),selectedChain:xt??void 0,chainBeingConfirmed:Nt!==xt?Nt:void 0,onSelectChain:kt,i18nChainSelector:{title:t$2("@dapps.chain_selector.title"),connected:t$2("@dapps.chain_selector.connected"),confirmInWallet:getConnectedProviderType()===dist$d.ProviderType.INJECTED?t$2("@dapps.chain_selector.confirm_in_wallet"):t$2("@dapps.chain_selector.switching")}}}),At?React$L.createElement(UnsupportedNetworkModal,{chainName:chainIdExports.getChainName(xt),expectedChainName:dt,isSwitchingNetwork:et,onSwitchNetwork:Ct}):null)))},Navbar$4=React$L.memo(Navbar$3),mapState$6=_e=>{const et=getAddress$2(_e),tt=et?getData$2(_e)[et]:void 0;return{avatar:tt?tt.avatars[0]:void 0,chainId:getChainId(_e),manaBalances:getManaBalances(_e),address:getAddress$2(_e),locale:getLocale$1(_e),isSignedIn:isConnected(_e),isSigningIn:isConnecting(_e),appChainId:getAppChainId(_e),isSwitchingNetwork:isSwitchingNetwork(_e),walletError:getError$1(_e)}},mapDispatch$3=_e=>({onSwitchNetwork:(et,tt)=>_e(switchNetworkRequest(et,tt)),onSignOut:()=>_e(disconnectWallet())}),mergeProps$1=(_e,et,tt)=>({..._e,...et,...tt}),Navbar$2=connect(mapState$6,mapDispatch$3,mergeProps$1)(Navbar$4);class NetworkCheck extends React$L.PureComponent{constructor(){super(...arguments);Zr(this,"getChainId",()=>{const{network:tt}=this.props;try{return getChainIdByNetwork(tt)}catch{return null}})}render(){const{children:tt}=this.props;return React$L.createElement(ChainProvider,null,nt=>{const at=nt.isSupported||nt.chainId===this.getChainId();return React$L.createElement(Popup$4.Popup,{disabled:at,position:"top center",content:React$L.createElement(T,{id:"@dapps.button.network_not_supported",values:{expectedChainName:React$L.createElement("b",null,nt.appChainName)}}),trigger:tt(at)})})}}const disabledStyle={opacity:.5,cursor:"not-allowed",transform:"none"};class NetworkButton extends React$L.PureComponent{render(){const{network:et,onClick:tt,...nt}=this.props;return React$L.createElement(NetworkCheck,{network:et},at=>{const it=at?{onClick:tt}:{style:disabledStyle};return React$L.createElement(Button$2.Button,{...nt,...it})})}}class SignInPage extends reactExports.PureComponent{constructor(tt){super(tt);Zr(this,"getTranslations",()=>{const{hasTranslations:tt,isConnected:nt}=this.props;if(tt)return{header:reactExports.createElement(T,{id:"@dapps.sign_in.get_started"}),error:reactExports.createElement(T,{id:"@dapps.sign_in.error"}),connect:reactExports.createElement(T,{id:"@dapps.sign_in.connect"}),connecting:reactExports.createElement(T,{id:"@dapps.sign_in.connecting"}),connected:reactExports.createElement(T,{id:"@dapps.sign_in.connected"}),message:nt?reactExports.createElement(T,{id:"@dapps.sign_in.options.connected"}):isCucumberProvider()?reactExports.createElement(T,{id:"@dapps.sign_in.options.samsung",values:{samsung_link:reactExports.createElement("a",{href:"https://www.samsung.com/global/galaxy/apps/samsung-blockchain/",target:"_blank",rel:"noopener noreferrer"},"Samsung Blockchain Wallet")}}):isMobile()?reactExports.createElement(T,{id:"@dapps.sign_in.options.mobile",values:{metamask_link:reactExports.createElement("a",{href:"https://metamask.io",target:"_blank",rel:"noopener noreferrer"},"MetaMask"),coinbase_link:reactExports.createElement("a",{href:"https://wallet.coinbase.com",target:"_blank",rel:"noopener noreferrer"},"Coinbase Wallet"),imtoken_link:reactExports.createElement("a",{href:"https://token.im",target:"_blank",rel:"noopener noreferrer"},"imToken")}}):reactExports.createElement(T,{id:"@dapps.sign_in.options.desktop",values:{metamask_link:reactExports.createElement("a",{href:"https://metamask.io",target:"_blank",rel:"noopener noreferrer"},"MetaMask"),ledger_nano_link:reactExports.createElement("a",{href:"https://www.ledger.com/",target:"_blank",rel:"noopener noreferrer"},"Ledger Nano S")}})}})}render(){const{center:tt,isConnected:nt,isConnecting:at,hasError:it,onConnect:ot}=this.props;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(SignIn_2,{center:tt,isConnected:nt,isConnecting:at,hasError:it,onConnect:ot,i18n:this.getTranslations()}))}}const mapState$5=_e=>({isConnecting:isConnecting(_e),isConnected:isConnected(_e),hasError:!!getError$1(_e),hasTranslations:isEnabled(_e)}),mapDispatch$2=(_e,et)=>({onConnect:et.onConnect?et.onConnect:()=>_e(openModal("LoginModal",{onConnect:et.handleLoginConnect}))}),mergeProps=(_e,et,tt)=>({..._e,...et,...tt});connect(mapState$5,mapDispatch$2,mergeProps)(SignInPage);var Lm;let TransactionLink$1=(Lm=class extends reactExports.PureComponent{render(){const{address:et,txHash:tt}=this.props;if(!et&&!tt)return console.warn("Tried to render an TransactionLink without either an address or tx hash. Please supply one of those"),null;const{chainId:nt,className:at,target:it,text:ot,children:st}=this.props,ct=getTransactionHref({address:et,txHash:tt},nt);return reactExports.createElement("a",{className:at,href:ct,target:it},st||ot||ct)}},Zr(Lm,"defaultProps",{className:"etherscan-link",target:"_blank",text:""}),Lm);const mapState$4=(_e,et)=>({chainId:et.chainId||getChainId(_e)}),mapDispatch$1=_e=>({}),TransactionLink=connect(mapState$4,mapDispatch$1)(TransactionLink$1);var AuthorizationType;(function(_e){_e.ALLOWANCE="allowance",_e.APPROVAL="approval"})(AuthorizationType||(AuthorizationType={}));var AuthorizationAction;(function(_e){_e.GRANT="grant",_e.REVOKE="revoke"})(AuthorizationAction||(AuthorizationAction={}));var AuthorizationError;(function(_e){_e.REVOKE_FAILED="revoke-failed-error",_e.GRANT_FAILED="grant-failed-error",_e.INSUFFICIENT_ALLOWANCE="insufficient-allowance",_e.FETCH_AUTHORIZATIONS_FAILURE="fetch-authorizations-failure"})(AuthorizationError||(AuthorizationError={}));function hasAuthorization(_e,et){return _e.some(tt=>areEqual(tt,et))}function hasAuthorizationAndEnoughAllowance(_e,et,tt){const nt=_e.find(st=>areEqual(st,et));if(!nt)return!1;if(et.type!==AuthorizationType.ALLOWANCE)return!0;const{allowance:at}=nt;if(!at)return!1;const it=parseEther(tt),ot=parseEther(at);return it.lte(ot)}function areEqual(_e,et){return _e.type===et.type&&_e.authorizedAddress.toLowerCase()===et.authorizedAddress.toLowerCase()&&_e.contractAddress.toLowerCase()===et.contractAddress.toLowerCase()&&_e.chainId===et.chainId&&_e.address.toLowerCase()===et.address.toLowerCase()}const FETCH_AUTHORIZATIONS_REQUEST="[Request] Fetch Authorizations",fetchAuthorizationsRequest=_e=>action(FETCH_AUTHORIZATIONS_REQUEST,{authorizations:_e}),GRANT_TOKEN_REQUEST="[Request] Grant Token",REVOKE_TOKEN_REQUEST="[Request] Revoke Token",AUTHORIZATION_FLOW_REQUEST="[Request] Authorization Flow",authorizationFlowRequest=(_e,et,tt,nt)=>action(AUTHORIZATION_FLOW_REQUEST,{authorization:_e,authorizationAction:et,allowance:tt,traceId:nt}),getState$1=_e=>_e.authorization,getData$1=_e=>getState$1(_e).data,getLoading$1=_e=>getState$1(_e).loading,getError=_e=>getState$1(_e).error,getAuthorizationFlowError=_e=>getState$1(_e).authorizationFlowError;let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let _e=0;_e<256;++_e)byteToHex.push((_e+256).toString(16).slice(1));function unsafeStringify(_e,et=0){return byteToHex[_e[et+0]]+byteToHex[_e[et+1]]+byteToHex[_e[et+2]]+byteToHex[_e[et+3]]+"-"+byteToHex[_e[et+4]]+byteToHex[_e[et+5]]+"-"+byteToHex[_e[et+6]]+byteToHex[_e[et+7]]+"-"+byteToHex[_e[et+8]]+byteToHex[_e[et+9]]+"-"+byteToHex[_e[et+10]]+byteToHex[_e[et+11]]+byteToHex[_e[et+12]]+byteToHex[_e[et+13]]+byteToHex[_e[et+14]]+byteToHex[_e[et+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(_e,et,tt){if(native.randomUUID&&!et&&!_e)return native.randomUUID();_e=_e||{};const nt=_e.random||(_e.rng||rng)();if(nt[6]=nt[6]&15|64,nt[8]=nt[8]&63|128,et){tt=tt||0;for(let at=0;at<16;++at)et[tt+at]=nt[at];return et}return unsafeStringify(nt)}var AuthorizedAction;(function(_e){_e.BID="bid",_e.BUY="buy",_e.MINT="mint",_e.RENT="rent",_e.CLAIM_NAME="claim_name",_e.SWAP_MANA="swap_mana",_e.SELL="sell",_e.PUBLISH_COLLECTION="publish_collection"})(AuthorizedAction||(AuthorizedAction={}));var AuthorizationStepStatus;(function(_e){_e.LOADING_INFO="loading_info",_e.PENDING="pending",_e.WAITING="waiting",_e.PROCESSING="processing",_e.ALLOWANCE_AMOUNT_ERROR="allowance_amount_error",_e.ERROR="error",_e.DONE="done"})(AuthorizationStepStatus||(AuthorizationStepStatus={}));var AuthorizationStepAction;(function(_e){_e.REVOKE="revoke",_e.GRANT="grant",_e.CONFIRM="confirm"})(AuthorizationStepAction||(AuthorizationStepAction={}));const MAX_ERROR_LENGTH=150;function safeGet(_e,et){const nt=et.split(".").reduce((at,it)=>{if(at!==void 0)return at[it]},_e);return typeof nt!="string"?void 0:nt}function getTranslation(_e,et,tt){return t_cond(safeGet(_e,et),`@dapps.authorization_modal.${et}`,tt)}function getStepStatus(_e,et,tt,nt){const at=et===AuthorizationAction.REVOKE?REVOKE_TOKEN_REQUEST:GRANT_TOKEN_REQUEST;if(isLoadingType(getLoading$1(_e),at))return AuthorizationStepStatus.WAITING;if(getTransactions(_e,tt.address).filter(dt=>isPending(dt.status)&&getType({type:at})===getType({type:dt.actionType})&&areEqual(dt.payload.authorization,tt)).length)return AuthorizationStepStatus.PROCESSING;const ot=getAuthorizationFlowError(_e);if(ot===AuthorizationError.INSUFFICIENT_ALLOWANCE)return AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR;if(ot||getError(_e))return AuthorizationStepStatus.ERROR;let st=!1;const ct=getData$1(_e);return tt.type===AuthorizationType.ALLOWANCE?nt?st=hasAuthorizationAndEnoughAllowance(ct,tt,nt.toString()):st=!hasAuthorization(ct,tt):st=hasAuthorization(ct,tt),st?AuthorizationStepStatus.DONE:isLoadingType(getLoading$1(_e),AUTHORIZATION_FLOW_REQUEST)&&getLoading$1(_e).find(dt=>{var ht;return((ht=dt.payload)==null?void 0:ht.authorizationAction)===et})?AuthorizationStepStatus.LOADING_INFO:AuthorizationStepStatus.PENDING}function getStepError(_e,et,tt){if(_e)return et===AuthorizationStepAction.REVOKE?getTranslation(tt,"revoke_cap_error"):_e.length>MAX_ERROR_LENGTH?getTranslation(tt,"generic_error"):_e}function getStepMessage(_e,et,tt,nt,at,it,ot){if(_e>nt)return"";if(_e<nt)return getTranslation(ot,"done");switch(et){case AuthorizationStepStatus.WAITING:return getTranslation(ot,"waiting_wallet");case AuthorizationStepStatus.PROCESSING:return getTranslation(ot,"waiting_confirmation");case AuthorizationStepStatus.ERROR:return React$L.createElement("div",{className:"authorization-error"},getStepError(tt,it,ot));case AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR:return React$L.createElement("div",{className:"authorization-error"},getTranslation(ot,"spending_cap_error",{price:at}));case AuthorizationStepStatus.DONE:return getTranslation(ot,"done");default:return}}function getPriceInMana(_e){if(!_e)return"";const et=Number.parseFloat(formatEther(_e));return(Math.ceil(et*100)/100).toString().replace(/\.0+$/,"")}function getSteps({authorization:_e,authorizationType:et,network:tt,requiredAllowance:nt,authorizedContractLabel:at,targetContractLabel:it,currentAllowance:ot,translationKeys:st}){const ct=getPriceInMana(nt);return(!ot||!ot.isZero())&&et===AuthorizationType.ALLOWANCE&&tt===dist$d.Network.ETHEREUM?[{title:getTranslation(st,"revoke_cap.title"),description:getTranslation(st,"revoke_cap.description",{price:ct}),actionType:AuthorizationStepAction.REVOKE},{title:getTranslation(st,"set_cap.title"),description:getTranslation(st,"set_cap.description",{price:ct}),actionType:AuthorizationStepAction.GRANT}]:et===AuthorizationType.ALLOWANCE?[{title:getTranslation(st,"authorize_mana.title",{contract:()=>React$L.createElement(TransactionLink,{address:_e.authorizedAddress||"",chainId:_e.chainId,txHash:""},at||_e.authorizedAddress)}),description:getTranslation(st,"authorize_mana.description",{price:ct}),actionType:AuthorizationStepAction.GRANT}]:[{title:getTranslation(st,"authorize_nft.title",{contract:()=>React$L.createElement(TransactionLink,{address:_e.authorizedAddress||"",chainId:_e.chainId,txHash:""},at||_e.authorizedAddress),targetContract:()=>React$L.createElement(TransactionLink,{address:_e.contractAddress||"",chainId:_e.chainId,txHash:""},it||_e.contractAddress)}),actionType:AuthorizationStepAction.GRANT}]}const LOADING_STATUS=[AuthorizationStepStatus.LOADING_INFO,AuthorizationStepStatus.PROCESSING,AuthorizationStepStatus.WAITING];function AuthorizationModal({authorization:_e,requiredAllowance:et,currentAllowance:tt,action:nt,authorizationType:at,revokeStatus:it,grantStatus:ot,confirmationStatus:st,error:ct,confirmationError:dt,network:ht,authorizedContractLabel:pt,targetContractLabel:mt,translationKeys:vt,onClose:bt,onRevoke:_t,onGrant:wt,onAuthorized:Et,onFetchAuthorizations:St}){const Tt=getAnalytics(),[Ct]=reactExports.useState(v4()),[Nt,Dt]=reactExports.useState(0),[kt,Ft]=reactExports.useState(),[jt,Gt]=reactExports.useState(!1),Rt=getPriceInMana(et);reactExports.useEffect(()=>{Tt.track("[Authorization Flow] Modal Opened",{action:nt,requiredAllowance:et,traceId:Ct})},[]),reactExports.useEffect(()=>{St()},[St]);const yt=reactExports.useCallback(()=>{_t(Ct),Tt.track("[Authorization Flow] Authorize Revoke Click",{action:nt,traceId:Ct}),Ft(AuthorizationStepAction.REVOKE)},[_t]),$t=reactExports.useCallback(()=>{wt(Ct),Tt.track("[Authorization Flow] Authorize Grant Click",{action:nt,traceId:Ct}),Ft(AuthorizationStepAction.GRANT)},[wt]),xt=reactExports.useCallback(()=>{Et(),Tt.track("[Authorization Flow] Confirm Transaction Click",{action:nt,traceId:Ct}),Ft(AuthorizationStepAction.CONFIRM)},[Et]),At=reactExports.useMemo(()=>[...getSteps({authorizationType:at,network:ht,requiredAllowance:et,currentAllowance:tt,authorization:_e,authorizedContractLabel:pt,translationKeys:vt,targetContractLabel:mt}),{title:getTranslation(vt,"confirm_transaction.title",{action:getTranslation(vt,"action")}),action:getTranslation(vt,"confirm_transaction.action"),status:st,actionType:AuthorizationStepAction.CONFIRM,error:dt,onActionClick:xt}].map(It=>It.actionType===AuthorizationStepAction.GRANT?jt||ot===AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR&&ht===dist$d.Network.ETHEREUM?{...It,error:getTranslation(vt,"insufficient_amount_error.message",{price:Rt}),action:"Revoke",status:it,message:LOADING_STATUS.includes(it)?void 0:React$L.createElement("div",{className:"authorization-error"},getTranslation(vt,"insufficient_amount_error.message",{price:Rt})),actionType:AuthorizationStepAction.REVOKE,testId:"reauthorize-step",onActionClick:yt}:{...It,action:ot===AuthorizationStepStatus.DONE?void 0:getTranslation(vt,"set_cap.action"),error:ct,status:ot,onActionClick:$t}:It.actionType===AuthorizationStepAction.REVOKE?{...It,action:it===AuthorizationStepStatus.DONE?void 0:getTranslation(vt,"revoke_cap.action"),error:ct,status:it,onActionClick:yt}:It).map((It,Lt)=>({...It,isLoading:Lt===Nt&&LOADING_STATUS.includes(It.status),message:"message"in It&&It.message?It.message:getStepMessage(Lt,It.status,It.error,Nt,Rt,It.actionType,vt),testId:"testId"in It?It.testId:`${It.actionType}-step`})),[ot,it,at,et,tt,ht,nt,st,dt,pt,jt,Nt,ct,$t,yt,xt]);return reactExports.useEffect(()=>{const Mt=At[Nt];Mt.status===AuthorizationStepStatus.DONE&&Mt.actionType===kt&&(jt?Gt(!1):(Dt(Nt+1),Ft(void 0)))},[At[Nt].status]),reactExports.useEffect(()=>{ot===AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR&&ht===dist$d.Network.ETHEREUM&&Gt(!0)},[ot,ht,Gt]),React$L.createElement(distExports$1.AuthorizationModal,{onClose:bt,currentStep:Nt,steps:At,header:getTranslation(vt,"title",{action:getTranslation(vt,"title_action")})})}const mapState$3=(_e,et)=>{const{authorization:tt,requiredAllowance:nt,getConfirmationStatus:at,getConfirmationError:it}=et;return{revokeStatus:getStepStatus(_e,AuthorizationAction.REVOKE,tt,void 0),grantStatus:getStepStatus(_e,AuthorizationAction.GRANT,tt,nt),confirmationStatus:at?at(_e):AuthorizationStepStatus.PENDING,confirmationError:it?it(_e):null,error:getAuthorizationFlowError(_e)||getError(_e)||""}},mapDispatch=(_e,et)=>({onRevoke:tt=>_e(authorizationFlowRequest(et.authorization,AuthorizationAction.REVOKE,"",tt)),onGrant:tt=>{var nt;return _e(authorizationFlowRequest(et.authorization,AuthorizationAction.GRANT,((nt=et.requiredAllowance)==null?void 0:nt.toString())||"",tt))},onFetchAuthorizations:()=>_e(fetchAuthorizationsRequest([et.authorization]))});connect(mapState$3,mapDispatch)(AuthorizationModal);var NFTCard$1={},NFTImage$3={},NFTImage$2={};const NFTImage$1="";var utils$1={};Object.defineProperty(utils$1,"__esModule",{value:!0});utils$1.getEstateCenter=void 0;var getEstateCenter=function(_e){var et=Array.from(new Set(_e.map(function(it){return it.x}).sort())),tt=Array.from(new Set(_e.map(function(it){return it.y}).sort())),nt=et[et.length/2|0],at=tt[tt.length/2|0];return[nt,at]};utils$1.getEstateCenter=getEstateCenter;var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var at=Object.getOwnPropertyDescriptor(et,tt);(!at||("get"in at?!et.__esModule:at.writable||at.configurable))&&(at={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,at)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,et){Object.defineProperty(_e,"default",{enumerable:!0,value:et})}:function(_e,et){_e.default=et}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var et={};if(_e!=null)for(var tt in _e)tt!=="default"&&Object.prototype.hasOwnProperty.call(_e,tt)&&__createBinding(et,_e,tt);return __setModuleDefault(et,_e),et},__importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(NFTImage$2,"__esModule",{value:!0});var react_1$1=__importStar(reactExports),classnames_1=__importDefault$2(classnamesExports$1),schemas_1$1=dist$d,Atlas_1=Atlas$2,utils_1=utils$1;function NFTImage(_e){var et=_e.nft,tt=_e.className;if(et.category===schemas_1$1.NFTCategory.WEARABLE||et.category===schemas_1$1.NFTCategory.EMOTE){var nt=et.category===schemas_1$1.NFTCategory.EMOTE?et.data.emote.rarity:et.data.wearable.rarity,at=schemas_1$1.Rarity.getGradient(nt),it=at[0],ot=at[1];return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image",tt),style:{backgroundImage:"radial-gradient(".concat(it,", ").concat(ot,")")}},react_1$1.default.createElement("img",{className:"dui-nft-image__image",src:et.image,alt:et.name}))}if(et.category===schemas_1$1.NFTCategory.ENS)return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image--ens",tt)},react_1$1.default.createElement("span",{className:".dui-nft-image__subdomain"},et.data.ens.subdomain));if(et.category===schemas_1$1.NFTCategory.ESTATE){var st=et.data.estate.parcels,ct=(0,react_1$1.useMemo)(function(){return(0,utils_1.getEstateCenter)(st)},[st]),dt=ct[0],ht=ct[1],pt=(0,react_1$1.useCallback)(function(Et,St){return st.some(function(Tt){var Ct=Tt.x,Nt=Tt.y;return Et===Ct&&Nt===St})?{color:"#ff0044",scale:1.4}:null},[st]),mt=(0,react_1$1.useCallback)(function(Et,St){return st.some(function(Tt){var Ct=Tt.x,Nt=Tt.y;return Et===Ct&&Nt===St})?{color:"#ff9990",scale:1.2}:null},[st]);return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image--atlas",tt)},react_1$1.default.createElement(Atlas_1.Atlas,{className:tt,x:dt,y:ht,isDraggable:!1,layers:[pt,mt]}))}if(et.category===schemas_1$1.NFTCategory.PARCEL){var vt=Number(et.data.parcel.x),bt=Number(et.data.parcel.y),_t=(0,react_1$1.useCallback)(function(Et,St){return vt===Et&&bt===St?{color:"#ff0044",scale:1.4}:null},[vt,bt]),wt=(0,react_1$1.useCallback)(function(Et,St){return vt===Et&&bt===St?{color:"#ff9990",scale:1.2}:null},[vt,bt]);return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image--atlas",tt)},react_1$1.default.createElement(Atlas_1.Atlas,{className:tt,x:vt,y:bt,isDraggable:!1,layers:[_t,wt]}))}return null}NFTImage$2.default=react_1$1.default.memo(NFTImage);var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(NFTImage$3,"__esModule",{value:!0});NFTImage$3.NFTImage=void 0;var NFTImage_1=__importDefault$1(NFTImage$2);NFTImage$3.NFTImage=NFTImage_1.default;var utils={},__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(_e,et,tt){if(tt||arguments.length===2)for(var nt=0,at=et.length,it;nt<at;nt++)(it||!(nt in et))&&(it||(it=Array.prototype.slice.call(et,0,nt)),it[nt]=et[nt]);return _e.concat(it||Array.prototype.slice.call(et))},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(utils,"__esModule",{value:!0});utils.getSubtitle=utils.getBadges=void 0;var react_1=__importDefault(reactExports),schemas_1=dist$d,colors_1=colors$1,Profile_1=Profile$3,DEFAULT_BADGE_COLOR="#37333d";function _getEmoteBadges(_e,et){var tt=schemas_1.Rarity.getGradient(_e.rarity),nt=tt[0],at=tt[1],it=(0,colors_1.hex2rgb)(at);return __spreadArray([{color:"rgb(".concat(it.r," ").concat(it.g," ").concat(it.b," / 20%)"),label:_e.rarity,textColor:nt},{color:DEFAULT_BADGE_COLOR,label:_e.loop?et.playMode.loop:et.playMode.once,icon:_e.loop?"dui-nft-card__badge-icon--loop":"dui-nft-card__badge-icon--once",hideLabel:!0}],_e.hasSound?[{color:DEFAULT_BADGE_COLOR,label:et.withSound,icon:"dui-nft-card__badge-icon--sound",hideLabel:!0}]:[],!0)}function _getWearableBadges(_e,et){var tt=_e.bodyShapes.length===2?"unisex":_e.bodyShapes[0]===schemas_1.BodyShape.MALE?"male":"female",nt=schemas_1.Rarity.getGradient(_e.rarity),at=nt[0],it=nt[1],ot=(0,colors_1.hex2rgb)(it);return __spreadArray([{color:"rgb(".concat(ot.r," ").concat(ot.g," ").concat(ot.b," / 20%)"),label:_e.rarity,textColor:at},{color:DEFAULT_BADGE_COLOR,label:et.category[_e.category],icon:"dui-nft-card__badge-icon--".concat(_e.category),hideLabel:!0},{color:DEFAULT_BADGE_COLOR,label:et.bodyShape[tt],icon:"dui-nft-card__badge-icon--".concat(tt),hideLabel:!0}],_e.isSmart?[{color:DEFAULT_BADGE_COLOR,label:et.smart,icon:"dui-nft-card__badge-icon--smart",hideLabel:!0}]:[],!0)}function _getEstateBadges(_e){return[{color:DEFAULT_BADGE_COLOR,label:"".concat(_e.parcels.length," LAND")}]}function _getParcelBadges(_e){return[{color:DEFAULT_BADGE_COLOR,label:"".concat(_e.x,",").concat(_e.y),icon:"dui-nft-card__badge-icon--parcel"}]}function getBadges(_e,et){switch(_e.category){case schemas_1.NFTCategory.EMOTE:return _getEmoteBadges(_e.data.emote,et);case schemas_1.NFTCategory.WEARABLE:return _getWearableBadges(_e.data.wearable,et);case schemas_1.NFTCategory.ESTATE:return _getEstateBadges(_e.data.estate);case schemas_1.NFTCategory.PARCEL:return _getParcelBadges(_e.data.parcel);case schemas_1.NFTCategory.ENS:return[]}}utils.getBadges=getBadges;function getSubtitle(_e,et){switch(_e.category){case schemas_1.NFTCategory.EMOTE:case schemas_1.NFTCategory.WEARABLE:return react_1.default.createElement(Profile_1.Profile,{address:_e.owner,textOnly:!0});case schemas_1.NFTCategory.ENS:case schemas_1.NFTCategory.ESTATE:case schemas_1.NFTCategory.PARCEL:return et.network["".concat(_e.network.toLowerCase())]}}utils.getSubtitle=getSubtitle;const NFTCard="";(function(_e){var et=commonjsGlobal&&commonjsGlobal.__assign||function(){return et=Object.assign||function(wt){for(var Et,St=1,Tt=arguments.length;St<Tt;St++){Et=arguments[St];for(var Ct in Et)Object.prototype.hasOwnProperty.call(Et,Ct)&&(wt[Ct]=Et[Ct])}return wt},et.apply(this,arguments)},tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Et,St,Tt){Tt===void 0&&(Tt=St);var Ct=Object.getOwnPropertyDescriptor(Et,St);(!Ct||("get"in Ct?!Et.__esModule:Ct.writable||Ct.configurable))&&(Ct={enumerable:!0,get:function(){return Et[St]}}),Object.defineProperty(wt,Tt,Ct)}:function(wt,Et,St,Tt){Tt===void 0&&(Tt=St),wt[Tt]=Et[St]}),nt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Et){Object.defineProperty(wt,"default",{enumerable:!0,value:Et})}:function(wt,Et){wt.default=Et}),at=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Et={};if(wt!=null)for(var St in wt)St!=="default"&&Object.prototype.hasOwnProperty.call(wt,St)&&tt(Et,wt,St);return nt(Et,wt),Et},it=commonjsGlobal&&commonjsGlobal.__rest||function(wt,Et){var St={};for(var Tt in wt)Object.prototype.hasOwnProperty.call(wt,Tt)&&Et.indexOf(Tt)<0&&(St[Tt]=wt[Tt]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Tt=Object.getOwnPropertySymbols(wt);Ct<Tt.length;Ct++)Et.indexOf(Tt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(wt,Tt[Ct])&&(St[Tt[Ct]]=wt[Tt[Ct]]);return St},ot=commonjsGlobal&&commonjsGlobal.__importDefault||function(wt){return wt&&wt.__esModule?wt:{default:wt}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.NFTCard=void 0;var st=at(reactExports),ct=ot(classnamesExports$1),dt=Card$2,ht=Popup$4,pt=Mana$2,mt=NFTImage$3,vt=utils,bt=function(wt){var Et,St,Tt=wt.badge;return Tt.icon&&Tt.hideLabel?st.default.createElement(ht.Popup,{key:Tt.label,content:Tt.label,trigger:st.default.createElement("span",{className:"dui-nft-card__badge--only-icon",style:{background:Tt.color,color:(Et=Tt.textColor)!==null&&Et!==void 0?Et:"var(--text)"}},st.default.createElement("i",{className:(0,ct.default)("dui-nft-card__badge-icon",Tt.icon),"aria-label":Tt.label}))}):st.default.createElement("span",{className:"dui-nft-card__badge",style:{background:Tt.color,color:(St=Tt.textColor)!==null&&St!==void 0?St:"var(--text)"},key:Tt.label},Tt.icon&&st.default.createElement("i",{className:(0,ct.default)("dui-nft-card__badge-icon",Tt.icon)}),Tt.label)},_t=function(wt){var Et=wt.nft,St=wt.i18n,Tt=wt.header,Ct=wt.subtitle,Nt=wt.badges,Dt=wt.price,kt=wt.className,Ft=it(wt,["nft","i18n","header","subtitle","badges","price","className"]),jt=(0,st.useCallback)(function(){return!Tt||typeof Tt=="string"?st.default.createElement("div",{className:"dui-nft-card__header"},st.default.createElement("span",{className:"dui-nft-card__title"},Tt||Et.name),Dt&&st.default.createElement(pt.Mana,{network:Et.network,inline:!0,className:"dui-nft-card__price"},Dt)):Tt},[Tt]),Gt=(0,st.useCallback)(function(){return!Ct||typeof Ct=="string"?st.default.createElement("span",{className:"dui-nft-card__subtitle"},Ct||(0,vt.getSubtitle)(Et,St)):Ct},[Ct]),Rt=(0,st.useCallback)(function(){if(Nt)return Nt;var yt=(0,vt.getBadges)(Et,St);return yt?st.default.createElement("div",{className:"dui-nft-card__badges"},yt.map(function($t){return st.default.createElement(bt,{key:$t.label,badge:$t})})):null},[]);return st.default.createElement(dt.Card,et({className:(0,ct.default)(kt,"dui-nft-card"),link:!0,id:Et.id},Ft),st.default.createElement(mt.NFTImage,{nft:Et,className:"dui-nft-card__image"}),st.default.createElement(dt.Card.Content,{className:"dui-nft-card__information"},jt(),Gt(),Rt()))};_e.NFTCard=_t,_e.NFTCard.defaultProps={i18n:{network:{ethereum:"Ethereum",matic:"Matic"},bodyShape:{male:"Male",female:"Female",unisex:"Unisex"},playMode:{loop:"Loop",once:"Once"},category:{body_shape:"Body Shape",earring:"Earring",eyebrows:"Eyebrows",eyes:"Eyes",eyewear:"Eyewear",facial_hair:"Facial Hair",feet:"Feet",head:"Head",hair:"Hair",hat:"Hat",helmet:"Helmet",lower_body:"Lower Body",mask:"Mask",mouth:"Mouth",tiara:"Tiara",top_head:"Top Head",upper_body:"Upper Body",skin:"Skin",hands_wear:"Handwear"},withSound:"With sound",smart:"Smart"}}})(NFTCard$1);const RarityBadge=_e=>{const et={rarities:{[dist$d.Rarity.COMMON]:t$2("@dapps.rarities.common"),[dist$d.Rarity.UNCOMMON]:t$2("@dapps.rarities.uncommon"),[dist$d.Rarity.EXOTIC]:t$2("@dapps.rarities.exotic"),[dist$d.Rarity.RARE]:t$2("@dapps.rarities.rare"),[dist$d.Rarity.EPIC]:t$2("@dapps.rarities.epic"),[dist$d.Rarity.LEGENDARY]:t$2("@dapps.rarities.legendary"),[dist$d.Rarity.MYTHIC]:t$2("@dapps.rarities.mythic"),[dist$d.Rarity.UNIQUE]:t$2("@dapps.rarities.unique")},rarities_description:{[dist$d.Rarity.COMMON]:t$2("@dapps.rarities_description.common"),[dist$d.Rarity.UNCOMMON]:t$2("@dapps.rarities_description.uncommon"),[dist$d.Rarity.EXOTIC]:t$2("@dapps.rarities_description.exotic"),[dist$d.Rarity.RARE]:t$2("@dapps.rarities_description.rare"),[dist$d.Rarity.EPIC]:t$2("@dapps.rarities_description.epic"),[dist$d.Rarity.LEGENDARY]:t$2("@dapps.rarities_description.legendary"),[dist$d.Rarity.MYTHIC]:t$2("@dapps.rarities_description.mythic"),[dist$d.Rarity.UNIQUE]:t$2("@dapps.rarities_description.unique")}};return React$L.createElement(RarityBadge$4.RarityBadge,{..._e,i18n:et})};React$L.memo(RarityBadge);const Navbar$1="",AUTH_URL=config.get("AUTH_URL");function Navbar(_e){const et=reactExports.useCallback(()=>{window.location.replace(`${AUTH_URL}?redirectTo=${window.location.href}`)},[]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Navbar$2,{..._e,onSignIn:et,withNotifications:!1})})}function isValid$3(_e){return Date.now()<+new Date(_e.expiration)}const getState=_e=>_e.identity,getData=_e=>getState(_e).data,getLoading=_e=>getState(_e).loading;createSelector([getLoading],_e=>isLoadingType(_e,loginRequest.type));const getCurrentIdentity=createSelector([getAddress$2,getData],(_e,et)=>{if(_e){const tt=et[_e];if(et[_e]&&isValid$3(tt))return tt}return null});createSelector([getCurrentIdentity],_e=>!!_e);const mapState$2=_e=>{const et=getAddress$2(_e);return{hasActivity:et?getPendingTransactions(_e,et).length>0:!1,isConnected:isConnected(_e),identity:getCurrentIdentity(_e)||void 0}},Header=connect(mapState$2)(Navbar),Dashboard$2="",Bar$1="";function Bar(_e){const{vested:et,released:tt}=_e;return jsxRuntimeExports.jsxs("div",{className:"bar__container",children:[jsxRuntimeExports.jsx("div",{className:"bar vested",style:{width:`${et}%`}}),jsxRuntimeExports.jsx("div",{className:"bar released",style:{width:`${tt}%`}})]})}const InfoSVG="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/info-0fd81e87.svg";function Info(_e){const{message:et,position:tt}=_e;return jsxRuntimeExports.jsx("span",{className:"info",style:{padding:"5px"},children:jsxRuntimeExports.jsx(distExports$1.Popup,{content:et,position:tt,trigger:jsxRuntimeExports.jsx("img",{src:InfoSVG,alt:""}),on:"hover",style:{height:"100%"},basic:!0})})}const Progress$1="";function Progress(_e){const{contract:et}=_e,{revoked:tt}=et,nt=Math.round(et.vestedAmount/et.total*100),at=Math.round(et.released/et.total*100);return jsxRuntimeExports.jsxs("div",{id:"progress",children:[jsxRuntimeExports.jsxs(Grid$2,{children:[jsxRuntimeExports.jsxs(Grid$2.Column,{floated:"left",children:[jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[t$2(tt?"chart.vested":"progress.vested"),jsxRuntimeExports.jsx(Info,{message:t$2("helper.vesting_so_far"),position:"right center"})]}),jsxRuntimeExports.jsxs("div",{className:"amount",children:[jsxRuntimeExports.jsxs(distExports$1.Header,{style:{display:"inline-block"},children:[formatNumber(Math.round(et.vestedAmount),0)," ",et.symbol]}),jsxRuntimeExports.jsxs("span",{className:"percentage vested",children:[nt,"%"]})]})]}),jsxRuntimeExports.jsxs(Grid$2.Column,{floated:"right",textAlign:"right",children:[jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[jsxRuntimeExports.jsx(Info,{message:t$2("helper.total_vesting"),position:"left center"}),t$2("progress.total")]}),jsxRuntimeExports.jsxs(distExports$1.Header,{style:{display:"inline-block"},children:[formatNumber(Math.round(et.total),0)," ",et.symbol]})]})]}),jsxRuntimeExports.jsx(Bar,{vested:nt,released:at}),jsxRuntimeExports.jsxs("div",{children:[t$2("progress.released",{b:it=>jsxRuntimeExports.jsx("b",{children:it}),amount:formatNumber(Math.round(et.released),0),token:et.symbol}),jsxRuntimeExports.jsxs("span",{className:"percentage released",children:[at,"%"]})]})]})}//! moment.js
319
+ `)&&(dr=dr.replace(Qt,"%0A")),dr.includes("\r")&&(dr=dr.replace(Kt,"%0D")),dr.includes(" ")&&(dr=dr.replace(ar,"%09")),dr}var Nr=function(Br){if(typeof Br>"u")throw new TypeError('The "domain" argument must be specified');return new zt("http://"+Br).hostname},xr=function(Br){if(typeof Br>"u")throw new TypeError('The "domain" argument must be specified');return new zt("http://"+Br).hostname},gn=function(Br){var qr=new zt("file://"),Hr=gt(Br),Qr=Br.charCodeAt(Br.length-1);return Qr===Er&&Hr[Hr.length-1]!=="/"&&(Hr+="/"),qr.pathname=yn(Hr),qr},Tr=function(Br){if(!Sr(Br)&&typeof Br!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof Br+" ("+Br+")");var qr=new zt(Br);if(qr.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return gr(qr)},Pr=function(Br,qr){var Hr,Qr,Zn;if(qr===void 0&&(qr={}),!(Br instanceof zt))return Ut(Br);if(typeof qr!="object"||qr===null)throw new TypeError('The "options" argument must be of type object.');var tr=(Hr=qr.auth)!=null?Hr:!0,Yt=(Qr=qr.fragment)!=null?Qr:!0,Jt=(Zn=qr.search)!=null?Zn:!0,ir=new zt(Br.toString());return tr||(ir.username="",ir.password=""),Yt||(ir.hash=""),Jt||(ir.search=""),ir.toString()},An={format:Pr,parse:Ht,resolve:qt,resolveObject:mt,Url:Vt,URL:zt,URLSearchParams:Wt,domainToASCII:Nr,domainToUnicode:xr,pathToFileURL:gn,fileURLToPath:Tr};et.URL=zt,et.URLSearchParams=Wt,et.Url=Vt,et.default=An,et.domainToASCII=Nr,et.domainToUnicode=xr,et.fileURLToPath=Tr,et.format=Pr,et.parse=Ht,et.pathToFileURL=gn,et.resolve=qt,et.resolveObject=mt,et=_e.exports=An})(url,url.exports);var urlExports=url.exports;const nodeURL=getDefaultExportFromCjs$1(urlExports);class ClientError extends Error{constructor(tt,nt,at){super(tt);Zr(this,"status");Zr(this,"data");this.status=nt,this.data=at}}const DEFAULT_RETRIES=3,DEFAULT_RETRY_DELAY=1e3,DEFAULT_NON_RETRYABLE_STATUSES=[400,401,403,404,409,422],URL$1=(globalThis==null?void 0:globalThis.URL)??nodeURL.URL;class BaseClient{constructor(et,tt){Zr(this,"baseUrl");Zr(this,"retries");Zr(this,"retryDelay");Zr(this,"nonRetryableStatuses");Zr(this,"identity");Zr(this,"sleep",et=>new Promise(tt=>{setTimeout(tt,et)}));Zr(this,"getIdentity",()=>this.identity instanceof Function?this.identity():this.identity);Zr(this,"rawFetch",(et,tt)=>{const nt=new URL$1(et,this.baseUrl),at=(tt==null?void 0:tt.identity)??this.getIdentity();return lib$1.signedFetchFactory()(nt.toString(),{...tt,identity:at})});Zr(this,"fetch",async(et,tt)=>{for(let nt=0;nt<=this.retries;nt++)try{let at,it;try{at=await this.rawFetch(et,tt);const ot=await at.text();ot.length===0?it={ok:!0,data:null}:it=JSON.parse(ot)}catch(ot){throw new ClientError(ot.message,void 0,null)}if(!at.ok||it.ok===!1){const ot=it.message??it.error;throw new ClientError(ot??`Request failed with status code ${at.status}`,at.status,it.data)}return it.ok===!0?it.data:it}catch(at){if(console.error(`[API] HTTP request failed: ${at.message||""}`,at),this.retries===nt||at.status&&this.nonRetryableStatuses.includes(at.status))throw at;await this.sleep(this.retryDelay)}throw new Error("Unreachable code")});this.baseUrl=et,this.identity=tt==null?void 0:tt.identity,this.retries=(tt==null?void 0:tt.retries)??DEFAULT_RETRIES,this.retryDelay=(tt==null?void 0:tt.retryDelay)??DEFAULT_RETRY_DELAY,this.nonRetryableStatuses=(tt==null?void 0:tt.nonRetryableStatuses)??DEFAULT_NON_RETRYABLE_STATUSES}}const NAVBAR_CLICK_EVENT="Click on Navbar",NOTIFICATIONS_QUERY_INTERVAL=6e4,DROPDOWN_MENU_ITEM_CLICK_EVENT="Unified Dropdown Menu Item Click",DROPDOWN_MENU_DISPLAY_EVENT="Unified Dropdown Menu Display",DROPDOWN_MENU_BALANCE_CLICK_EVENT="Unified Dropdown Menu Balance Click",DROPDOWN_MENU_SIGN_OUT_EVENT="Unified Dropdown Menu Sign Out",CHANGE_NETWORK="Change Network",NOTIFICATIONS_LIMIT=50;class NotificationsAPI extends BaseClient{constructor(et){const tt=dist$9.getEnv()===dist$9.Env.DEVELOPMENT?"https://notifications.decentraland.zone":"https://notifications.decentraland.org";super(tt,et)}async getNotifications(et=NOTIFICATIONS_LIMIT,tt){const nt=new URLSearchParams;et&&nt.append("limit",`${et}`),tt&&nt.append("from",`${tt}`);const{notifications:at}=await this.fetch(`/notifications${nt.toString().length?`?${nt.toString()}`:""}`);return at.map(parseNotification)}async markNotificationsAsRead(et){await this.fetch("/notifications/read",{method:"PUT",body:JSON.stringify({notificationIds:et}),metadata:{notificationIds:et},headers:{"Content-Type":"application/json"}})}async getSubscription(){return this.fetch("/subscription")}async putSubscription(et){return this.fetch("/subscription",{method:"PUT",body:JSON.stringify(et),headers:{"Content-Type":"application/json"}})}async putEmail(et){return this.fetch("/set-email",{method:"PUT",body:JSON.stringify({email:et}),headers:{"Content-Type":"application/json"}})}async postEmailConfirmationCode(et){return this.fetch("/confirm-email",{method:"PUT",body:JSON.stringify(et),headers:{"Content-Type":"application/json"}})}}const ONBOARDING_KEY="dcl_notifications_onboarding",checkIsOnboarding=()=>{if(typeof window<"u"){const _e=localStorage.getItem(ONBOARDING_KEY);return _e?JSON.parse(_e):(localStorage.setItem(ONBOARDING_KEY,"true"),!0)}},setOnboardingDone=()=>{typeof window<"u"&&localStorage.setItem(ONBOARDING_KEY,"false")},parseNotification=_e=>({..._e,timestamp:Number(_e.timestamp)});var utilsExports=requireUtils();const Profile=function(_e){const{address:et,debounce:tt,inline:nt=!0}=_e,at=useSelector(getData$2),it=useDispatch(),ot=reactExports.useRef(),st=reactExports.useMemo(()=>{const dt=at[et];return dt?dt.avatars[0]:null},[et,at]),ct=reactExports.useCallback(dt=>it(loadProfileRequest(dt)),[et]);return reactExports.useEffect(()=>(st||(tt?(ot.current&&clearTimeout(ot.current),ot.current=window.setTimeout(()=>ct(et),tt)):ct(et)),()=>{ot.current&&window.clearTimeout(ot.current)}),[et]),React$L.createElement(Profile_2,{..._e,avatar:st,inline:nt})},useNotifications=(_e,et)=>{const[{isLoading:tt,notifications:nt},at]=reactExports.useState({isLoading:!1,notifications:[]}),[{activeTab:it,isOnboarding:ot,isOpen:st},ct]=reactExports.useState({activeTab:types$1.NotificationActiveTab.NEWEST,isOnboarding:checkIsOnboarding(),isOpen:!1}),dt=reactExports.useMemo(()=>_e?new NotificationsAPI({identity:_e}):null,[_e]),ht=()=>{setOnboardingDone(),ct(_t=>({..._t,isOnboarding:!1}))},pt=async()=>{const _t=st;if(ct(wt=>({...wt,isOpen:!wt.isOpen})),_t){const wt=nt.map(Et=>Et.read?Et:{...Et,read:!0});at({isLoading:tt,notifications:wt})}else{const wt=nt.filter(Et=>!Et.read).map(({id:Et})=>Et);wt.length&&await(dt==null?void 0:dt.markNotificationsAsRead(wt))}},mt=_t=>ct(wt=>({...wt,activeTab:_t})),vt=()=>{at({notifications:[],isLoading:!0}),dt==null||dt.getNotifications().then(_t=>{at({isLoading:!1,notifications:_t.filter(wt=>utilsExports.CURRENT_AVAILABLE_NOTIFICATIONS.includes(wt.type))})})},bt=reactExports.useCallback(_t=>React$L.createElement(Profile,{address:_t,as:"a",href:`${getBaseUrl()}/profile/accounts/${_t}`,style:{fontWeight:500,color:"white",textDecoration:"none"},target:"_blank"}),[]);return reactExports.useEffect(()=>{if(_e&&et){vt();const _t=setInterval(()=>{vt()},NOTIFICATIONS_QUERY_INTERVAL);return()=>{clearInterval(_t)}}return()=>{}},[_e]),{notificationsClient:dt,notifications:nt,isLoading:tt,isModalOpen:st,modalActiveTab:it,isNotificationsOnboarding:ot,handleOnBegin:ht,handleNotificationsOpen:pt,handleOnChangeModalTab:mt,handleRenderProfile:bt}},BASE_URL=getBaseUrl(),Navbar$3=({appChainId:_e,isSwitchingNetwork:et,withNotifications:tt,withChainSelector:nt,identity:at,docsUrl:it="https://docs.decentraland.org",enablePartialSupportAlert:ot=!0,walletError:st,...ct})=>{const dt=chainIdExports.getChainName(_e),ht=getAnalytics(),{isModalOpen:pt,isNotificationsOnboarding:mt,modalActiveTab:vt,isLoading:bt,notifications:_t,handleNotificationsOpen:wt,handleOnBegin:Et,handleOnChangeModalTab:St,handleRenderProfile:Tt}=useNotifications(at,tt||!1),Ct=reactExports.useCallback(()=>{ct.onSwitchNetwork(_e)},[]),[Nt,Dt]=reactExports.useState(void 0);reactExports.useEffect(()=>{st&&Nt&&nt&&Dt(void 0)},[st,Nt,nt]);const kt=reactExports.useCallback(xt=>{Dt(xt),ct.onSwitchNetwork(xt,ct.chainId),ht.track(CHANGE_NETWORK,{from_chain_id:ct.chainId,to_chain_id:xt})},[ht]),Ft=reactExports.useCallback((xt,At)=>{xt.preventDefault(),ht.track(DROPDOWN_MENU_BALANCE_CLICK_EVENT,{network:At}),setTimeout(()=>{window.open(`${BASE_URL}/account`,"_blank","noopener")},300)},[ht]),jt=reactExports.useCallback((xt,At)=>{ht.track(NAVBAR_CLICK_EVENT,At)},[ht]),Gt=reactExports.useCallback((xt,At)=>{ht.track(DROPDOWN_MENU_ITEM_CLICK_EVENT,At)},[ht]),Rt=reactExports.useCallback((xt,At)=>{ht.track(DROPDOWN_MENU_DISPLAY_EVENT,{track_uuid:At})},[ht]),yt=reactExports.useCallback(xt=>{ct.onSignIn()},[ht]),$t=reactExports.useCallback((xt,At)=>{ht.track(DROPDOWN_MENU_SIGN_OUT_EVENT,{track_uuid:At}),setTimeout(()=>{ct.onSignOut()},300)},[ht]);return React$L.createElement(React$L.Fragment,null,React$L.createElement(ChainProvider,null,({chainId:xt,isUnsupported:At})=>React$L.createElement(React$L.Fragment,null,React$L.createElement(Navbar_1,{...ct,notifications:tt?{locale:ct.locale,isLoading:bt,isOnboarding:mt,isOpen:pt,items:_t,activeTab:vt,onClick:wt,onClose:wt,onBegin:Et,onChangeTab:(Mt,It)=>St(It),renderProfile:Tt}:void 0,onClickBalance:Ft,onClickNavbarItem:jt,onClickUserMenuItem:Gt,onClickOpen:Rt,onClickSignIn:yt,onClickSignOut:$t,...nt&&{chains:getAvailableChains(),selectedChain:xt??void 0,chainBeingConfirmed:Nt!==xt?Nt:void 0,onSelectChain:kt,i18nChainSelector:{title:t$2("@dapps.chain_selector.title"),connected:t$2("@dapps.chain_selector.connected"),confirmInWallet:getConnectedProviderType()===dist$d.ProviderType.INJECTED?t$2("@dapps.chain_selector.confirm_in_wallet"):t$2("@dapps.chain_selector.switching")}}}),At?React$L.createElement(UnsupportedNetworkModal,{chainName:chainIdExports.getChainName(xt),expectedChainName:dt,isSwitchingNetwork:et,onSwitchNetwork:Ct}):null)))},Navbar$4=React$L.memo(Navbar$3),mapState$6=_e=>{const et=getAddress$2(_e),tt=et?getData$2(_e)[et]:void 0;return{avatar:tt?tt.avatars[0]:void 0,chainId:getChainId(_e),manaBalances:getManaBalances(_e),address:getAddress$2(_e),locale:getLocale$1(_e),isSignedIn:isConnected(_e),isSigningIn:isConnecting(_e),appChainId:getAppChainId(_e),isSwitchingNetwork:isSwitchingNetwork(_e),walletError:getError$1(_e)}},mapDispatch$3=_e=>({onSwitchNetwork:(et,tt)=>_e(switchNetworkRequest(et,tt)),onSignOut:()=>_e(disconnectWallet())}),mergeProps$1=(_e,et,tt)=>({..._e,...et,...tt}),Navbar$2=connect(mapState$6,mapDispatch$3,mergeProps$1)(Navbar$4);class NetworkCheck extends React$L.PureComponent{constructor(){super(...arguments);Zr(this,"getChainId",()=>{const{network:tt}=this.props;try{return getChainIdByNetwork(tt)}catch{return null}})}render(){const{children:tt}=this.props;return React$L.createElement(ChainProvider,null,nt=>{const at=nt.isSupported||nt.chainId===this.getChainId();return React$L.createElement(Popup$4.Popup,{disabled:at,position:"top center",content:React$L.createElement(T,{id:"@dapps.button.network_not_supported",values:{expectedChainName:React$L.createElement("b",null,nt.appChainName)}}),trigger:tt(at)})})}}const disabledStyle={opacity:.5,cursor:"not-allowed",transform:"none"};class NetworkButton extends React$L.PureComponent{render(){const{network:et,onClick:tt,...nt}=this.props;return React$L.createElement(NetworkCheck,{network:et},at=>{const it=at?{onClick:tt}:{style:disabledStyle};return React$L.createElement(Button$2.Button,{...nt,...it})})}}class SignInPage extends reactExports.PureComponent{constructor(tt){super(tt);Zr(this,"getTranslations",()=>{const{hasTranslations:tt,isConnected:nt}=this.props;if(tt)return{header:reactExports.createElement(T,{id:"@dapps.sign_in.get_started"}),error:reactExports.createElement(T,{id:"@dapps.sign_in.error"}),connect:reactExports.createElement(T,{id:"@dapps.sign_in.connect"}),connecting:reactExports.createElement(T,{id:"@dapps.sign_in.connecting"}),connected:reactExports.createElement(T,{id:"@dapps.sign_in.connected"}),message:nt?reactExports.createElement(T,{id:"@dapps.sign_in.options.connected"}):isCucumberProvider()?reactExports.createElement(T,{id:"@dapps.sign_in.options.samsung",values:{samsung_link:reactExports.createElement("a",{href:"https://www.samsung.com/global/galaxy/apps/samsung-blockchain/",target:"_blank",rel:"noopener noreferrer"},"Samsung Blockchain Wallet")}}):isMobile()?reactExports.createElement(T,{id:"@dapps.sign_in.options.mobile",values:{metamask_link:reactExports.createElement("a",{href:"https://metamask.io",target:"_blank",rel:"noopener noreferrer"},"MetaMask"),coinbase_link:reactExports.createElement("a",{href:"https://wallet.coinbase.com",target:"_blank",rel:"noopener noreferrer"},"Coinbase Wallet"),imtoken_link:reactExports.createElement("a",{href:"https://token.im",target:"_blank",rel:"noopener noreferrer"},"imToken")}}):reactExports.createElement(T,{id:"@dapps.sign_in.options.desktop",values:{metamask_link:reactExports.createElement("a",{href:"https://metamask.io",target:"_blank",rel:"noopener noreferrer"},"MetaMask"),ledger_nano_link:reactExports.createElement("a",{href:"https://www.ledger.com/",target:"_blank",rel:"noopener noreferrer"},"Ledger Nano S")}})}})}render(){const{center:tt,isConnected:nt,isConnecting:at,hasError:it,onConnect:ot}=this.props;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(SignIn_2,{center:tt,isConnected:nt,isConnecting:at,hasError:it,onConnect:ot,i18n:this.getTranslations()}))}}const mapState$5=_e=>({isConnecting:isConnecting(_e),isConnected:isConnected(_e),hasError:!!getError$1(_e),hasTranslations:isEnabled(_e)}),mapDispatch$2=(_e,et)=>({onConnect:et.onConnect?et.onConnect:()=>_e(openModal("LoginModal",{onConnect:et.handleLoginConnect}))}),mergeProps=(_e,et,tt)=>({..._e,...et,...tt});connect(mapState$5,mapDispatch$2,mergeProps)(SignInPage);var Lm;let TransactionLink$1=(Lm=class extends reactExports.PureComponent{render(){const{address:et,txHash:tt}=this.props;if(!et&&!tt)return console.warn("Tried to render an TransactionLink without either an address or tx hash. Please supply one of those"),null;const{chainId:nt,className:at,target:it,text:ot,children:st}=this.props,ct=getTransactionHref({address:et,txHash:tt},nt);return reactExports.createElement("a",{className:at,href:ct,target:it},st||ot||ct)}},Zr(Lm,"defaultProps",{className:"etherscan-link",target:"_blank",text:""}),Lm);const mapState$4=(_e,et)=>({chainId:et.chainId||getChainId(_e)}),mapDispatch$1=_e=>({}),TransactionLink=connect(mapState$4,mapDispatch$1)(TransactionLink$1);var AuthorizationType;(function(_e){_e.ALLOWANCE="allowance",_e.APPROVAL="approval"})(AuthorizationType||(AuthorizationType={}));var AuthorizationAction;(function(_e){_e.GRANT="grant",_e.REVOKE="revoke"})(AuthorizationAction||(AuthorizationAction={}));var AuthorizationError;(function(_e){_e.REVOKE_FAILED="revoke-failed-error",_e.GRANT_FAILED="grant-failed-error",_e.INSUFFICIENT_ALLOWANCE="insufficient-allowance",_e.FETCH_AUTHORIZATIONS_FAILURE="fetch-authorizations-failure"})(AuthorizationError||(AuthorizationError={}));function hasAuthorization(_e,et){return _e.some(tt=>areEqual(tt,et))}function hasAuthorizationAndEnoughAllowance(_e,et,tt){const nt=_e.find(st=>areEqual(st,et));if(!nt)return!1;if(et.type!==AuthorizationType.ALLOWANCE)return!0;const{allowance:at}=nt;if(!at)return!1;const it=parseEther(tt),ot=parseEther(at);return it.lte(ot)}function areEqual(_e,et){return _e.type===et.type&&_e.authorizedAddress.toLowerCase()===et.authorizedAddress.toLowerCase()&&_e.contractAddress.toLowerCase()===et.contractAddress.toLowerCase()&&_e.chainId===et.chainId&&_e.address.toLowerCase()===et.address.toLowerCase()}const FETCH_AUTHORIZATIONS_REQUEST="[Request] Fetch Authorizations",fetchAuthorizationsRequest=_e=>action(FETCH_AUTHORIZATIONS_REQUEST,{authorizations:_e}),GRANT_TOKEN_REQUEST="[Request] Grant Token",REVOKE_TOKEN_REQUEST="[Request] Revoke Token",AUTHORIZATION_FLOW_REQUEST="[Request] Authorization Flow",authorizationFlowRequest=(_e,et,tt,nt)=>action(AUTHORIZATION_FLOW_REQUEST,{authorization:_e,authorizationAction:et,allowance:tt,traceId:nt}),getState$1=_e=>_e.authorization,getData$1=_e=>getState$1(_e).data,getLoading$1=_e=>getState$1(_e).loading,getError=_e=>getState$1(_e).error,getAuthorizationFlowError=_e=>getState$1(_e).authorizationFlowError;let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let _e=0;_e<256;++_e)byteToHex.push((_e+256).toString(16).slice(1));function unsafeStringify(_e,et=0){return byteToHex[_e[et+0]]+byteToHex[_e[et+1]]+byteToHex[_e[et+2]]+byteToHex[_e[et+3]]+"-"+byteToHex[_e[et+4]]+byteToHex[_e[et+5]]+"-"+byteToHex[_e[et+6]]+byteToHex[_e[et+7]]+"-"+byteToHex[_e[et+8]]+byteToHex[_e[et+9]]+"-"+byteToHex[_e[et+10]]+byteToHex[_e[et+11]]+byteToHex[_e[et+12]]+byteToHex[_e[et+13]]+byteToHex[_e[et+14]]+byteToHex[_e[et+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(_e,et,tt){if(native.randomUUID&&!et&&!_e)return native.randomUUID();_e=_e||{};const nt=_e.random||(_e.rng||rng)();if(nt[6]=nt[6]&15|64,nt[8]=nt[8]&63|128,et){tt=tt||0;for(let at=0;at<16;++at)et[tt+at]=nt[at];return et}return unsafeStringify(nt)}var AuthorizedAction;(function(_e){_e.BID="bid",_e.BUY="buy",_e.MINT="mint",_e.RENT="rent",_e.CLAIM_NAME="claim_name",_e.SWAP_MANA="swap_mana",_e.SELL="sell",_e.PUBLISH_COLLECTION="publish_collection"})(AuthorizedAction||(AuthorizedAction={}));var AuthorizationStepStatus;(function(_e){_e.LOADING_INFO="loading_info",_e.PENDING="pending",_e.WAITING="waiting",_e.PROCESSING="processing",_e.ALLOWANCE_AMOUNT_ERROR="allowance_amount_error",_e.ERROR="error",_e.DONE="done"})(AuthorizationStepStatus||(AuthorizationStepStatus={}));var AuthorizationStepAction;(function(_e){_e.REVOKE="revoke",_e.GRANT="grant",_e.CONFIRM="confirm"})(AuthorizationStepAction||(AuthorizationStepAction={}));const MAX_ERROR_LENGTH=150;function safeGet(_e,et){const nt=et.split(".").reduce((at,it)=>{if(at!==void 0)return at[it]},_e);return typeof nt!="string"?void 0:nt}function getTranslation(_e,et,tt){return t_cond(safeGet(_e,et),`@dapps.authorization_modal.${et}`,tt)}function getStepStatus(_e,et,tt,nt){const at=et===AuthorizationAction.REVOKE?REVOKE_TOKEN_REQUEST:GRANT_TOKEN_REQUEST;if(isLoadingType(getLoading$1(_e),at))return AuthorizationStepStatus.WAITING;if(getTransactions(_e,tt.address).filter(dt=>isPending(dt.status)&&getType({type:at})===getType({type:dt.actionType})&&areEqual(dt.payload.authorization,tt)).length)return AuthorizationStepStatus.PROCESSING;const ot=getAuthorizationFlowError(_e);if(ot===AuthorizationError.INSUFFICIENT_ALLOWANCE)return AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR;if(ot||getError(_e))return AuthorizationStepStatus.ERROR;let st=!1;const ct=getData$1(_e);return tt.type===AuthorizationType.ALLOWANCE?nt?st=hasAuthorizationAndEnoughAllowance(ct,tt,nt.toString()):st=!hasAuthorization(ct,tt):st=hasAuthorization(ct,tt),st?AuthorizationStepStatus.DONE:isLoadingType(getLoading$1(_e),AUTHORIZATION_FLOW_REQUEST)&&getLoading$1(_e).find(dt=>{var ht;return((ht=dt.payload)==null?void 0:ht.authorizationAction)===et})?AuthorizationStepStatus.LOADING_INFO:AuthorizationStepStatus.PENDING}function getStepError(_e,et,tt){if(_e)return et===AuthorizationStepAction.REVOKE?getTranslation(tt,"revoke_cap_error"):_e.length>MAX_ERROR_LENGTH?getTranslation(tt,"generic_error"):_e}function getStepMessage(_e,et,tt,nt,at,it,ot){if(_e>nt)return"";if(_e<nt)return getTranslation(ot,"done");switch(et){case AuthorizationStepStatus.WAITING:return getTranslation(ot,"waiting_wallet");case AuthorizationStepStatus.PROCESSING:return getTranslation(ot,"waiting_confirmation");case AuthorizationStepStatus.ERROR:return React$L.createElement("div",{className:"authorization-error"},getStepError(tt,it,ot));case AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR:return React$L.createElement("div",{className:"authorization-error"},getTranslation(ot,"spending_cap_error",{price:at}));case AuthorizationStepStatus.DONE:return getTranslation(ot,"done");default:return}}function getPriceInMana(_e){if(!_e)return"";const et=Number.parseFloat(formatEther(_e));return(Math.ceil(et*100)/100).toString().replace(/\.0+$/,"")}function getSteps({authorization:_e,authorizationType:et,network:tt,requiredAllowance:nt,authorizedContractLabel:at,targetContractLabel:it,currentAllowance:ot,translationKeys:st}){const ct=getPriceInMana(nt);return(!ot||!ot.isZero())&&et===AuthorizationType.ALLOWANCE&&tt===dist$d.Network.ETHEREUM?[{title:getTranslation(st,"revoke_cap.title"),description:getTranslation(st,"revoke_cap.description",{price:ct}),actionType:AuthorizationStepAction.REVOKE},{title:getTranslation(st,"set_cap.title"),description:getTranslation(st,"set_cap.description",{price:ct}),actionType:AuthorizationStepAction.GRANT}]:et===AuthorizationType.ALLOWANCE?[{title:getTranslation(st,"authorize_mana.title",{contract:()=>React$L.createElement(TransactionLink,{address:_e.authorizedAddress||"",chainId:_e.chainId,txHash:""},at||_e.authorizedAddress)}),description:getTranslation(st,"authorize_mana.description",{price:ct}),actionType:AuthorizationStepAction.GRANT}]:[{title:getTranslation(st,"authorize_nft.title",{contract:()=>React$L.createElement(TransactionLink,{address:_e.authorizedAddress||"",chainId:_e.chainId,txHash:""},at||_e.authorizedAddress),targetContract:()=>React$L.createElement(TransactionLink,{address:_e.contractAddress||"",chainId:_e.chainId,txHash:""},it||_e.contractAddress)}),actionType:AuthorizationStepAction.GRANT}]}const LOADING_STATUS=[AuthorizationStepStatus.LOADING_INFO,AuthorizationStepStatus.PROCESSING,AuthorizationStepStatus.WAITING];function AuthorizationModal({authorization:_e,requiredAllowance:et,currentAllowance:tt,action:nt,authorizationType:at,revokeStatus:it,grantStatus:ot,confirmationStatus:st,error:ct,confirmationError:dt,network:ht,authorizedContractLabel:pt,targetContractLabel:mt,translationKeys:vt,onClose:bt,onRevoke:_t,onGrant:wt,onAuthorized:Et,onFetchAuthorizations:St}){const Tt=getAnalytics(),[Ct]=reactExports.useState(v4()),[Nt,Dt]=reactExports.useState(0),[kt,Ft]=reactExports.useState(),[jt,Gt]=reactExports.useState(!1),Rt=getPriceInMana(et);reactExports.useEffect(()=>{Tt.track("[Authorization Flow] Modal Opened",{action:nt,requiredAllowance:et,traceId:Ct})},[]),reactExports.useEffect(()=>{St()},[St]);const yt=reactExports.useCallback(()=>{_t(Ct),Tt.track("[Authorization Flow] Authorize Revoke Click",{action:nt,traceId:Ct}),Ft(AuthorizationStepAction.REVOKE)},[_t]),$t=reactExports.useCallback(()=>{wt(Ct),Tt.track("[Authorization Flow] Authorize Grant Click",{action:nt,traceId:Ct}),Ft(AuthorizationStepAction.GRANT)},[wt]),xt=reactExports.useCallback(()=>{Et(),Tt.track("[Authorization Flow] Confirm Transaction Click",{action:nt,traceId:Ct}),Ft(AuthorizationStepAction.CONFIRM)},[Et]),At=reactExports.useMemo(()=>[...getSteps({authorizationType:at,network:ht,requiredAllowance:et,currentAllowance:tt,authorization:_e,authorizedContractLabel:pt,translationKeys:vt,targetContractLabel:mt}),{title:getTranslation(vt,"confirm_transaction.title",{action:getTranslation(vt,"action")}),action:getTranslation(vt,"confirm_transaction.action"),status:st,actionType:AuthorizationStepAction.CONFIRM,error:dt,onActionClick:xt}].map(It=>It.actionType===AuthorizationStepAction.GRANT?jt||ot===AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR&&ht===dist$d.Network.ETHEREUM?{...It,error:getTranslation(vt,"insufficient_amount_error.message",{price:Rt}),action:"Revoke",status:it,message:LOADING_STATUS.includes(it)?void 0:React$L.createElement("div",{className:"authorization-error"},getTranslation(vt,"insufficient_amount_error.message",{price:Rt})),actionType:AuthorizationStepAction.REVOKE,testId:"reauthorize-step",onActionClick:yt}:{...It,action:ot===AuthorizationStepStatus.DONE?void 0:getTranslation(vt,"set_cap.action"),error:ct,status:ot,onActionClick:$t}:It.actionType===AuthorizationStepAction.REVOKE?{...It,action:it===AuthorizationStepStatus.DONE?void 0:getTranslation(vt,"revoke_cap.action"),error:ct,status:it,onActionClick:yt}:It).map((It,Lt)=>({...It,isLoading:Lt===Nt&&LOADING_STATUS.includes(It.status),message:"message"in It&&It.message?It.message:getStepMessage(Lt,It.status,It.error,Nt,Rt,It.actionType,vt),testId:"testId"in It?It.testId:`${It.actionType}-step`})),[ot,it,at,et,tt,ht,nt,st,dt,pt,jt,Nt,ct,$t,yt,xt]);return reactExports.useEffect(()=>{const Mt=At[Nt];Mt.status===AuthorizationStepStatus.DONE&&Mt.actionType===kt&&(jt?Gt(!1):(Dt(Nt+1),Ft(void 0)))},[At[Nt].status]),reactExports.useEffect(()=>{ot===AuthorizationStepStatus.ALLOWANCE_AMOUNT_ERROR&&ht===dist$d.Network.ETHEREUM&&Gt(!0)},[ot,ht,Gt]),React$L.createElement(distExports$1.AuthorizationModal,{onClose:bt,currentStep:Nt,steps:At,header:getTranslation(vt,"title",{action:getTranslation(vt,"title_action")})})}const mapState$3=(_e,et)=>{const{authorization:tt,requiredAllowance:nt,getConfirmationStatus:at,getConfirmationError:it}=et;return{revokeStatus:getStepStatus(_e,AuthorizationAction.REVOKE,tt,void 0),grantStatus:getStepStatus(_e,AuthorizationAction.GRANT,tt,nt),confirmationStatus:at?at(_e):AuthorizationStepStatus.PENDING,confirmationError:it?it(_e):null,error:getAuthorizationFlowError(_e)||getError(_e)||""}},mapDispatch=(_e,et)=>({onRevoke:tt=>_e(authorizationFlowRequest(et.authorization,AuthorizationAction.REVOKE,"",tt)),onGrant:tt=>{var nt;return _e(authorizationFlowRequest(et.authorization,AuthorizationAction.GRANT,((nt=et.requiredAllowance)==null?void 0:nt.toString())||"",tt))},onFetchAuthorizations:()=>_e(fetchAuthorizationsRequest([et.authorization]))});connect(mapState$3,mapDispatch)(AuthorizationModal);var NFTCard$1={},NFTImage$3={},NFTImage$2={};const NFTImage$1="";var utils$1={};Object.defineProperty(utils$1,"__esModule",{value:!0});utils$1.getEstateCenter=void 0;var getEstateCenter=function(_e){var et=Array.from(new Set(_e.map(function(it){return it.x}).sort())),tt=Array.from(new Set(_e.map(function(it){return it.y}).sort())),nt=et[et.length/2|0],at=tt[tt.length/2|0];return[nt,at]};utils$1.getEstateCenter=getEstateCenter;var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(_e,et,tt,nt){nt===void 0&&(nt=tt);var at=Object.getOwnPropertyDescriptor(et,tt);(!at||("get"in at?!et.__esModule:at.writable||at.configurable))&&(at={enumerable:!0,get:function(){return et[tt]}}),Object.defineProperty(_e,nt,at)}:function(_e,et,tt,nt){nt===void 0&&(nt=tt),_e[nt]=et[tt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(_e,et){Object.defineProperty(_e,"default",{enumerable:!0,value:et})}:function(_e,et){_e.default=et}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(_e){if(_e&&_e.__esModule)return _e;var et={};if(_e!=null)for(var tt in _e)tt!=="default"&&Object.prototype.hasOwnProperty.call(_e,tt)&&__createBinding(et,_e,tt);return __setModuleDefault(et,_e),et},__importDefault$2=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(NFTImage$2,"__esModule",{value:!0});var react_1$1=__importStar(reactExports),classnames_1=__importDefault$2(classnamesExports$1),schemas_1$1=dist$d,Atlas_1=Atlas$2,utils_1=utils$1;function NFTImage(_e){var et=_e.nft,tt=_e.className;if(et.category===schemas_1$1.NFTCategory.WEARABLE||et.category===schemas_1$1.NFTCategory.EMOTE){var nt=et.category===schemas_1$1.NFTCategory.EMOTE?et.data.emote.rarity:et.data.wearable.rarity,at=schemas_1$1.Rarity.getGradient(nt),it=at[0],ot=at[1];return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image",tt),style:{backgroundImage:"radial-gradient(".concat(it,", ").concat(ot,")")}},react_1$1.default.createElement("img",{className:"dui-nft-image__image",src:et.image,alt:et.name}))}if(et.category===schemas_1$1.NFTCategory.ENS)return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image--ens",tt)},react_1$1.default.createElement("span",{className:".dui-nft-image__subdomain"},et.data.ens.subdomain));if(et.category===schemas_1$1.NFTCategory.ESTATE){var st=et.data.estate.parcels,ct=(0,react_1$1.useMemo)(function(){return(0,utils_1.getEstateCenter)(st)},[st]),dt=ct[0],ht=ct[1],pt=(0,react_1$1.useCallback)(function(Et,St){return st.some(function(Tt){var Ct=Tt.x,Nt=Tt.y;return Et===Ct&&Nt===St})?{color:"#ff0044",scale:1.4}:null},[st]),mt=(0,react_1$1.useCallback)(function(Et,St){return st.some(function(Tt){var Ct=Tt.x,Nt=Tt.y;return Et===Ct&&Nt===St})?{color:"#ff9990",scale:1.2}:null},[st]);return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image--atlas",tt)},react_1$1.default.createElement(Atlas_1.Atlas,{className:tt,x:dt,y:ht,isDraggable:!1,layers:[pt,mt]}))}if(et.category===schemas_1$1.NFTCategory.PARCEL){var vt=Number(et.data.parcel.x),bt=Number(et.data.parcel.y),_t=(0,react_1$1.useCallback)(function(Et,St){return vt===Et&&bt===St?{color:"#ff0044",scale:1.4}:null},[vt,bt]),wt=(0,react_1$1.useCallback)(function(Et,St){return vt===Et&&bt===St?{color:"#ff9990",scale:1.2}:null},[vt,bt]);return react_1$1.default.createElement("div",{className:(0,classnames_1.default)("dui-nft-image--atlas",tt)},react_1$1.default.createElement(Atlas_1.Atlas,{className:tt,x:vt,y:bt,isDraggable:!1,layers:[_t,wt]}))}return null}NFTImage$2.default=react_1$1.default.memo(NFTImage);var __importDefault$1=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(NFTImage$3,"__esModule",{value:!0});NFTImage$3.NFTImage=void 0;var NFTImage_1=__importDefault$1(NFTImage$2);NFTImage$3.NFTImage=NFTImage_1.default;var utils={},__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(_e,et,tt){if(tt||arguments.length===2)for(var nt=0,at=et.length,it;nt<at;nt++)(it||!(nt in et))&&(it||(it=Array.prototype.slice.call(et,0,nt)),it[nt]=et[nt]);return _e.concat(it||Array.prototype.slice.call(et))},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(_e){return _e&&_e.__esModule?_e:{default:_e}};Object.defineProperty(utils,"__esModule",{value:!0});utils.getSubtitle=utils.getBadges=void 0;var react_1=__importDefault(reactExports),schemas_1=dist$d,colors_1=colors$1,Profile_1=Profile$3,DEFAULT_BADGE_COLOR="#37333d";function _getEmoteBadges(_e,et){var tt=schemas_1.Rarity.getGradient(_e.rarity),nt=tt[0],at=tt[1],it=(0,colors_1.hex2rgb)(at);return __spreadArray([{color:"rgb(".concat(it.r," ").concat(it.g," ").concat(it.b," / 20%)"),label:_e.rarity,textColor:nt},{color:DEFAULT_BADGE_COLOR,label:_e.loop?et.playMode.loop:et.playMode.once,icon:_e.loop?"dui-nft-card__badge-icon--loop":"dui-nft-card__badge-icon--once",hideLabel:!0}],_e.hasSound?[{color:DEFAULT_BADGE_COLOR,label:et.withSound,icon:"dui-nft-card__badge-icon--sound",hideLabel:!0}]:[],!0)}function _getWearableBadges(_e,et){var tt=_e.bodyShapes.length===2?"unisex":_e.bodyShapes[0]===schemas_1.BodyShape.MALE?"male":"female",nt=schemas_1.Rarity.getGradient(_e.rarity),at=nt[0],it=nt[1],ot=(0,colors_1.hex2rgb)(it);return __spreadArray([{color:"rgb(".concat(ot.r," ").concat(ot.g," ").concat(ot.b," / 20%)"),label:_e.rarity,textColor:at},{color:DEFAULT_BADGE_COLOR,label:et.category[_e.category],icon:"dui-nft-card__badge-icon--".concat(_e.category),hideLabel:!0},{color:DEFAULT_BADGE_COLOR,label:et.bodyShape[tt],icon:"dui-nft-card__badge-icon--".concat(tt),hideLabel:!0}],_e.isSmart?[{color:DEFAULT_BADGE_COLOR,label:et.smart,icon:"dui-nft-card__badge-icon--smart",hideLabel:!0}]:[],!0)}function _getEstateBadges(_e){return[{color:DEFAULT_BADGE_COLOR,label:"".concat(_e.parcels.length," LAND")}]}function _getParcelBadges(_e){return[{color:DEFAULT_BADGE_COLOR,label:"".concat(_e.x,",").concat(_e.y),icon:"dui-nft-card__badge-icon--parcel"}]}function getBadges(_e,et){switch(_e.category){case schemas_1.NFTCategory.EMOTE:return _getEmoteBadges(_e.data.emote,et);case schemas_1.NFTCategory.WEARABLE:return _getWearableBadges(_e.data.wearable,et);case schemas_1.NFTCategory.ESTATE:return _getEstateBadges(_e.data.estate);case schemas_1.NFTCategory.PARCEL:return _getParcelBadges(_e.data.parcel);case schemas_1.NFTCategory.ENS:return[]}}utils.getBadges=getBadges;function getSubtitle(_e,et){switch(_e.category){case schemas_1.NFTCategory.EMOTE:case schemas_1.NFTCategory.WEARABLE:return react_1.default.createElement(Profile_1.Profile,{address:_e.owner,textOnly:!0});case schemas_1.NFTCategory.ENS:case schemas_1.NFTCategory.ESTATE:case schemas_1.NFTCategory.PARCEL:return et.network["".concat(_e.network.toLowerCase())]}}utils.getSubtitle=getSubtitle;const NFTCard="";(function(_e){var et=commonjsGlobal&&commonjsGlobal.__assign||function(){return et=Object.assign||function(wt){for(var Et,St=1,Tt=arguments.length;St<Tt;St++){Et=arguments[St];for(var Ct in Et)Object.prototype.hasOwnProperty.call(Et,Ct)&&(wt[Ct]=Et[Ct])}return wt},et.apply(this,arguments)},tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(wt,Et,St,Tt){Tt===void 0&&(Tt=St);var Ct=Object.getOwnPropertyDescriptor(Et,St);(!Ct||("get"in Ct?!Et.__esModule:Ct.writable||Ct.configurable))&&(Ct={enumerable:!0,get:function(){return Et[St]}}),Object.defineProperty(wt,Tt,Ct)}:function(wt,Et,St,Tt){Tt===void 0&&(Tt=St),wt[Tt]=Et[St]}),nt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(wt,Et){Object.defineProperty(wt,"default",{enumerable:!0,value:Et})}:function(wt,Et){wt.default=Et}),at=commonjsGlobal&&commonjsGlobal.__importStar||function(wt){if(wt&&wt.__esModule)return wt;var Et={};if(wt!=null)for(var St in wt)St!=="default"&&Object.prototype.hasOwnProperty.call(wt,St)&&tt(Et,wt,St);return nt(Et,wt),Et},it=commonjsGlobal&&commonjsGlobal.__rest||function(wt,Et){var St={};for(var Tt in wt)Object.prototype.hasOwnProperty.call(wt,Tt)&&Et.indexOf(Tt)<0&&(St[Tt]=wt[Tt]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Tt=Object.getOwnPropertySymbols(wt);Ct<Tt.length;Ct++)Et.indexOf(Tt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(wt,Tt[Ct])&&(St[Tt[Ct]]=wt[Tt[Ct]]);return St},ot=commonjsGlobal&&commonjsGlobal.__importDefault||function(wt){return wt&&wt.__esModule?wt:{default:wt}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.NFTCard=void 0;var st=at(reactExports),ct=ot(classnamesExports$1),dt=Card$2,ht=Popup$4,pt=Mana$2,mt=NFTImage$3,vt=utils,bt=function(wt){var Et,St,Tt=wt.badge;return Tt.icon&&Tt.hideLabel?st.default.createElement(ht.Popup,{key:Tt.label,content:Tt.label,trigger:st.default.createElement("span",{className:"dui-nft-card__badge--only-icon",style:{background:Tt.color,color:(Et=Tt.textColor)!==null&&Et!==void 0?Et:"var(--text)"}},st.default.createElement("i",{className:(0,ct.default)("dui-nft-card__badge-icon",Tt.icon),"aria-label":Tt.label}))}):st.default.createElement("span",{className:"dui-nft-card__badge",style:{background:Tt.color,color:(St=Tt.textColor)!==null&&St!==void 0?St:"var(--text)"},key:Tt.label},Tt.icon&&st.default.createElement("i",{className:(0,ct.default)("dui-nft-card__badge-icon",Tt.icon)}),Tt.label)},_t=function(wt){var Et=wt.nft,St=wt.i18n,Tt=wt.header,Ct=wt.subtitle,Nt=wt.badges,Dt=wt.price,kt=wt.className,Ft=it(wt,["nft","i18n","header","subtitle","badges","price","className"]),jt=(0,st.useCallback)(function(){return!Tt||typeof Tt=="string"?st.default.createElement("div",{className:"dui-nft-card__header"},st.default.createElement("span",{className:"dui-nft-card__title"},Tt||Et.name),Dt&&st.default.createElement(pt.Mana,{network:Et.network,inline:!0,className:"dui-nft-card__price"},Dt)):Tt},[Tt]),Gt=(0,st.useCallback)(function(){return!Ct||typeof Ct=="string"?st.default.createElement("span",{className:"dui-nft-card__subtitle"},Ct||(0,vt.getSubtitle)(Et,St)):Ct},[Ct]),Rt=(0,st.useCallback)(function(){if(Nt)return Nt;var yt=(0,vt.getBadges)(Et,St);return yt?st.default.createElement("div",{className:"dui-nft-card__badges"},yt.map(function($t){return st.default.createElement(bt,{key:$t.label,badge:$t})})):null},[]);return st.default.createElement(dt.Card,et({className:(0,ct.default)(kt,"dui-nft-card"),link:!0,id:Et.id},Ft),st.default.createElement(mt.NFTImage,{nft:Et,className:"dui-nft-card__image"}),st.default.createElement(dt.Card.Content,{className:"dui-nft-card__information"},jt(),Gt(),Rt()))};_e.NFTCard=_t,_e.NFTCard.defaultProps={i18n:{network:{ethereum:"Ethereum",matic:"Matic"},bodyShape:{male:"Male",female:"Female",unisex:"Unisex"},playMode:{loop:"Loop",once:"Once"},category:{body_shape:"Body Shape",earring:"Earring",eyebrows:"Eyebrows",eyes:"Eyes",eyewear:"Eyewear",facial_hair:"Facial Hair",feet:"Feet",head:"Head",hair:"Hair",hat:"Hat",helmet:"Helmet",lower_body:"Lower Body",mask:"Mask",mouth:"Mouth",tiara:"Tiara",top_head:"Top Head",upper_body:"Upper Body",skin:"Skin",hands_wear:"Handwear"},withSound:"With sound",smart:"Smart"}}})(NFTCard$1);const RarityBadge=_e=>{const et={rarities:{[dist$d.Rarity.COMMON]:t$2("@dapps.rarities.common"),[dist$d.Rarity.UNCOMMON]:t$2("@dapps.rarities.uncommon"),[dist$d.Rarity.EXOTIC]:t$2("@dapps.rarities.exotic"),[dist$d.Rarity.RARE]:t$2("@dapps.rarities.rare"),[dist$d.Rarity.EPIC]:t$2("@dapps.rarities.epic"),[dist$d.Rarity.LEGENDARY]:t$2("@dapps.rarities.legendary"),[dist$d.Rarity.MYTHIC]:t$2("@dapps.rarities.mythic"),[dist$d.Rarity.UNIQUE]:t$2("@dapps.rarities.unique")},rarities_description:{[dist$d.Rarity.COMMON]:t$2("@dapps.rarities_description.common"),[dist$d.Rarity.UNCOMMON]:t$2("@dapps.rarities_description.uncommon"),[dist$d.Rarity.EXOTIC]:t$2("@dapps.rarities_description.exotic"),[dist$d.Rarity.RARE]:t$2("@dapps.rarities_description.rare"),[dist$d.Rarity.EPIC]:t$2("@dapps.rarities_description.epic"),[dist$d.Rarity.LEGENDARY]:t$2("@dapps.rarities_description.legendary"),[dist$d.Rarity.MYTHIC]:t$2("@dapps.rarities_description.mythic"),[dist$d.Rarity.UNIQUE]:t$2("@dapps.rarities_description.unique")}};return React$L.createElement(RarityBadge$4.RarityBadge,{..._e,i18n:et})};React$L.memo(RarityBadge);const Navbar$1="",AUTH_URL=config.get("AUTH_URL");function Navbar(_e){const et=reactExports.useCallback(()=>{window.location.replace(`${AUTH_URL}?redirectTo=${window.location.href}`)},[]);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Navbar$2,{..._e,onSignIn:et,withNotifications:!1})})}function isValid$3(_e){return Date.now()<+new Date(_e.expiration)}const getState=_e=>_e.identity,getData=_e=>getState(_e).data,getLoading=_e=>getState(_e).loading;createSelector([getLoading],_e=>isLoadingType(_e,loginRequest.type));const getCurrentIdentity=createSelector([getAddress$2,getData],(_e,et)=>{if(_e){const tt=et[_e];if(et[_e]&&isValid$3(tt))return tt}return null});createSelector([getCurrentIdentity],_e=>!!_e);const mapState$2=_e=>{const et=getAddress$2(_e);return{hasActivity:et?getPendingTransactions(_e,et).length>0:!1,isConnected:isConnected(_e),identity:getCurrentIdentity(_e)||void 0}},Header=connect(mapState$2)(Navbar),Dashboard$2="",Bar$1="";function Bar(_e){const{vested:et,released:tt}=_e;return jsxRuntimeExports.jsxs("div",{className:"bar__container",children:[jsxRuntimeExports.jsx("div",{className:"bar vested",style:{width:`${et}%`}}),jsxRuntimeExports.jsx("div",{className:"bar released",style:{width:`${tt}%`}})]})}const InfoSVG="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/info-0fd81e87.svg";function Info(_e){const{message:et,position:tt}=_e;return jsxRuntimeExports.jsx("span",{className:"info",style:{padding:"5px"},children:jsxRuntimeExports.jsx(distExports$1.Popup,{content:et,position:tt,trigger:jsxRuntimeExports.jsx("img",{src:InfoSVG,alt:""}),on:"hover",style:{height:"100%"},basic:!0})})}const Progress$1="";function Progress(_e){const{contract:et}=_e,{revoked:tt}=et,nt=Math.round(et.vestedAmount/et.total*100),at=Math.round(et.released/et.total*100);return jsxRuntimeExports.jsxs("div",{id:"progress",children:[jsxRuntimeExports.jsxs(Grid$2,{children:[jsxRuntimeExports.jsxs(Grid$2.Column,{floated:"left",children:[jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[t$2(tt?"chart.vested":"progress.vested"),jsxRuntimeExports.jsx(Info,{message:t$2("helper.vesting_so_far"),position:"right center"})]}),jsxRuntimeExports.jsxs("div",{className:"amount",children:[jsxRuntimeExports.jsxs(distExports$1.Header,{style:{display:"inline-block"},children:[formatNumber(Math.round(et.vestedAmount),0)," ",et.symbol]}),jsxRuntimeExports.jsxs("span",{className:"percentage vested",children:[nt,"%"]})]})]}),jsxRuntimeExports.jsxs(Grid$2.Column,{floated:"right",textAlign:"right",children:[jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[jsxRuntimeExports.jsx(Info,{message:t$2("helper.total_vesting"),position:"left center"}),t$2("progress.total")]}),jsxRuntimeExports.jsxs(distExports$1.Header,{style:{display:"inline-block"},children:[formatNumber(Math.round(et.total),0)," ",et.symbol]})]})]}),jsxRuntimeExports.jsx(Bar,{vested:nt,released:at}),jsxRuntimeExports.jsxs("div",{children:[t$2("progress.released",{b:it=>jsxRuntimeExports.jsx("b",{children:it}),amount:formatNumber(Math.round(et.released),0),token:et.symbol}),jsxRuntimeExports.jsxs("span",{className:"percentage released",children:[at,"%"]})]})]})}//! moment.js
320
320
  //! version : 2.29.4
321
321
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
322
322
  //! license : MIT
@@ -325,7 +325,7 @@ var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}func
325
325
  [`+it+"] ";for(ot in arguments[0])hasOwnProp(arguments[0],ot)&&(at+=ot+": "+arguments[0][ot]+", ");at=at.slice(0,-2)}else at=arguments[it];nt.push(at)}warn$2(_e+`
326
326
  Arguments: `+Array.prototype.slice.call(nt).join("")+`
327
327
  `+new Error().stack),tt=!1}return et.apply(this,arguments)},et)}var deprecations={};function deprecateSimple(_e,et){hooks.deprecationHandler!=null&&hooks.deprecationHandler(_e,et),deprecations[_e]||(warn$2(et),deprecations[_e]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction$1(_e){return typeof Function<"u"&&_e instanceof Function||Object.prototype.toString.call(_e)==="[object Function]"}function set$1(_e){var et,tt;for(tt in _e)hasOwnProp(_e,tt)&&(et=_e[tt],isFunction$1(et)?this[tt]=et:this["_"+tt]=et);this._config=_e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(_e,et){var tt=extend$1({},_e),nt;for(nt in et)hasOwnProp(et,nt)&&(isObject$4(_e[nt])&&isObject$4(et[nt])?(tt[nt]={},extend$1(tt[nt],_e[nt]),extend$1(tt[nt],et[nt])):et[nt]!=null?tt[nt]=et[nt]:delete tt[nt]);for(nt in _e)hasOwnProp(_e,nt)&&!hasOwnProp(et,nt)&&isObject$4(_e[nt])&&(tt[nt]=extend$1({},tt[nt]));return tt}function Locale(_e){_e!=null&&this.set(_e)}var keys$1;Object.keys?keys$1=Object.keys:keys$1=function(_e){var et,tt=[];for(et in _e)hasOwnProp(_e,et)&&tt.push(et);return tt};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(_e,et,tt){var nt=this._calendar[_e]||this._calendar.sameElse;return isFunction$1(nt)?nt.call(et,tt):nt}function zeroFill(_e,et,tt){var nt=""+Math.abs(_e),at=et-nt.length,it=_e>=0;return(it?tt?"+":"":"-")+Math.pow(10,Math.max(0,at)).toString().substr(1)+nt}var formattingTokens=/(\[[^\[]*\])|(\\)?([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,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(_e,et,tt,nt){var at=nt;typeof nt=="string"&&(at=function(){return this[nt]()}),_e&&(formatTokenFunctions[_e]=at),et&&(formatTokenFunctions[et[0]]=function(){return zeroFill(at.apply(this,arguments),et[1],et[2])}),tt&&(formatTokenFunctions[tt]=function(){return this.localeData().ordinal(at.apply(this,arguments),_e)})}function removeFormattingTokens(_e){return _e.match(/\[[\s\S]/)?_e.replace(/^\[|\]$/g,""):_e.replace(/\\/g,"")}function makeFormatFunction(_e){var et=_e.match(formattingTokens),tt,nt;for(tt=0,nt=et.length;tt<nt;tt++)formatTokenFunctions[et[tt]]?et[tt]=formatTokenFunctions[et[tt]]:et[tt]=removeFormattingTokens(et[tt]);return function(at){var it="",ot;for(ot=0;ot<nt;ot++)it+=isFunction$1(et[ot])?et[ot].call(at,_e):et[ot];return it}}function formatMoment(_e,et){return _e.isValid()?(et=expandFormat(et,_e.localeData()),formatFunctions[et]=formatFunctions[et]||makeFormatFunction(et),formatFunctions[et](_e)):_e.localeData().invalidDate()}function expandFormat(_e,et){var tt=5;function nt(at){return et.longDateFormat(at)||at}for(localFormattingTokens.lastIndex=0;tt>=0&&localFormattingTokens.test(_e);)_e=_e.replace(localFormattingTokens,nt),localFormattingTokens.lastIndex=0,tt-=1;return _e}var defaultLongDateFormat={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 longDateFormat(_e){var et=this._longDateFormat[_e],tt=this._longDateFormat[_e.toUpperCase()];return et||!tt?et:(this._longDateFormat[_e]=tt.match(formattingTokens).map(function(nt){return nt==="MMMM"||nt==="MM"||nt==="DD"||nt==="dddd"?nt.slice(1):nt}).join(""),this._longDateFormat[_e])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(_e){return this._ordinal.replace("%d",_e)}var defaultRelativeTime={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 relativeTime(_e,et,tt,nt){var at=this._relativeTime[tt];return isFunction$1(at)?at(_e,et,tt,nt):at.replace(/%d/i,_e)}function pastFuture(_e,et){var tt=this._relativeTime[_e>0?"future":"past"];return isFunction$1(tt)?tt(et):tt.replace(/%s/i,et)}var aliases={};function addUnitAlias(_e,et){var tt=_e.toLowerCase();aliases[tt]=aliases[tt+"s"]=aliases[et]=_e}function normalizeUnits(_e){return typeof _e=="string"?aliases[_e]||aliases[_e.toLowerCase()]:void 0}function normalizeObjectUnits(_e){var et={},tt,nt;for(nt in _e)hasOwnProp(_e,nt)&&(tt=normalizeUnits(nt),tt&&(et[tt]=_e[nt]));return et}var priorities={};function addUnitPriority(_e,et){priorities[_e]=et}function getPrioritizedUnits(_e){var et=[],tt;for(tt in _e)hasOwnProp(_e,tt)&&et.push({unit:tt,priority:priorities[tt]});return et.sort(function(nt,at){return nt.priority-at.priority}),et}function isLeapYear(_e){return _e%4===0&&_e%100!==0||_e%400===0}function absFloor(_e){return _e<0?Math.ceil(_e)||0:Math.floor(_e)}function toInt(_e){var et=+_e,tt=0;return et!==0&&isFinite(et)&&(tt=absFloor(et)),tt}function makeGetSet(_e,et){return function(tt){return tt!=null?(set$1$1(this,_e,tt),hooks.updateOffset(this,et),this):get$1(this,_e)}}function get$1(_e,et){return _e.isValid()?_e._d["get"+(_e._isUTC?"UTC":"")+et]():NaN}function set$1$1(_e,et,tt){_e.isValid()&&!isNaN(tt)&&(et==="FullYear"&&isLeapYear(_e.year())&&_e.month()===1&&_e.date()===29?(tt=toInt(tt),_e._d["set"+(_e._isUTC?"UTC":"")+et](tt,_e.month(),daysInMonth(tt,_e.month()))):_e._d["set"+(_e._isUTC?"UTC":"")+et](tt))}function stringGet(_e){return _e=normalizeUnits(_e),isFunction$1(this[_e])?this[_e]():this}function stringSet(_e,et){if(typeof _e=="object"){_e=normalizeObjectUnits(_e);var tt=getPrioritizedUnits(_e),nt,at=tt.length;for(nt=0;nt<at;nt++)this[tt[nt].unit](_e[tt[nt].unit])}else if(_e=normalizeUnits(_e),isFunction$1(this[_e]))return this[_e](et);return this}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[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,regexes;regexes={};function addRegexToken(_e,et,tt){regexes[_e]=isFunction$1(et)?et:function(nt,at){return nt&&tt?tt:et}}function getParseRegexForToken(_e,et){return hasOwnProp(regexes,_e)?regexes[_e](et._strict,et._locale):new RegExp(unescapeFormat(_e))}function unescapeFormat(_e){return regexEscape(_e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(et,tt,nt,at,it){return tt||nt||at||it}))}function regexEscape(_e){return _e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(_e,et){var tt,nt=et,at;for(typeof _e=="string"&&(_e=[_e]),isNumber$1(et)&&(nt=function(it,ot){ot[et]=toInt(it)}),at=_e.length,tt=0;tt<at;tt++)tokens[_e[tt]]=nt}function addWeekParseToken(_e,et){addParseToken(_e,function(tt,nt,at,it){at._w=at._w||{},et(tt,at._w,at,it)})}function addTimeToArrayFromToken(_e,et,tt){et!=null&&hasOwnProp(tokens,_e)&&tokens[_e](et,tt._a,tt,_e)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function mod(_e,et){return(_e%et+et)%et}var indexOf$1;Array.prototype.indexOf?indexOf$1=Array.prototype.indexOf:indexOf$1=function(_e){var et;for(et=0;et<this.length;++et)if(this[et]===_e)return et;return-1};function daysInMonth(_e,et){if(isNaN(_e)||isNaN(et))return NaN;var tt=mod(et,12);return _e+=(et-tt)/12,tt===1?isLeapYear(_e)?29:28:31-tt%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(_e){return this.localeData().monthsShort(this,_e)});addFormatToken("MMMM",0,0,function(_e){return this.localeData().months(this,_e)});addUnitAlias("month","M");addUnitPriority("month",8);addRegexToken("M",match1to2);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(_e,et){return et.monthsShortRegex(_e)});addRegexToken("MMMM",function(_e,et){return et.monthsRegex(_e)});addParseToken(["M","MM"],function(_e,et){et[MONTH]=toInt(_e)-1});addParseToken(["MMM","MMMM"],function(_e,et,tt,nt){var at=tt._locale.monthsParse(_e,nt,tt._strict);at!=null?et[MONTH]=at:getParsingFlags(tt).invalidMonth=_e});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(_e,et){return _e?isArray$2(this._months)?this._months[_e.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(et)?"format":"standalone"][_e.month()]:isArray$2(this._months)?this._months:this._months.standalone}function localeMonthsShort(_e,et){return _e?isArray$2(this._monthsShort)?this._monthsShort[_e.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(et)?"format":"standalone"][_e.month()]:isArray$2(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(_e,et,tt){var nt,at,it,ot=_e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],nt=0;nt<12;++nt)it=createUTC([2e3,nt]),this._shortMonthsParse[nt]=this.monthsShort(it,"").toLocaleLowerCase(),this._longMonthsParse[nt]=this.months(it,"").toLocaleLowerCase();return tt?et==="MMM"?(at=indexOf$1.call(this._shortMonthsParse,ot),at!==-1?at:null):(at=indexOf$1.call(this._longMonthsParse,ot),at!==-1?at:null):et==="MMM"?(at=indexOf$1.call(this._shortMonthsParse,ot),at!==-1?at:(at=indexOf$1.call(this._longMonthsParse,ot),at!==-1?at:null)):(at=indexOf$1.call(this._longMonthsParse,ot),at!==-1?at:(at=indexOf$1.call(this._shortMonthsParse,ot),at!==-1?at:null))}function localeMonthsParse(_e,et,tt){var nt,at,it;if(this._monthsParseExact)return handleStrictParse.call(this,_e,et,tt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),nt=0;nt<12;nt++){if(at=createUTC([2e3,nt]),tt&&!this._longMonthsParse[nt]&&(this._longMonthsParse[nt]=new RegExp("^"+this.months(at,"").replace(".","")+"$","i"),this._shortMonthsParse[nt]=new RegExp("^"+this.monthsShort(at,"").replace(".","")+"$","i")),!tt&&!this._monthsParse[nt]&&(it="^"+this.months(at,"")+"|^"+this.monthsShort(at,""),this._monthsParse[nt]=new RegExp(it.replace(".",""),"i")),tt&&et==="MMMM"&&this._longMonthsParse[nt].test(_e))return nt;if(tt&&et==="MMM"&&this._shortMonthsParse[nt].test(_e))return nt;if(!tt&&this._monthsParse[nt].test(_e))return nt}}function setMonth(_e,et){var tt;if(!_e.isValid())return _e;if(typeof et=="string"){if(/^\d+$/.test(et))et=toInt(et);else if(et=_e.localeData().monthsParse(et),!isNumber$1(et))return _e}return tt=Math.min(_e.date(),daysInMonth(_e.year(),et)),_e._d["set"+(_e._isUTC?"UTC":"")+"Month"](et,tt),_e}function getSetMonth(_e){return _e!=null?(setMonth(this,_e),hooks.updateOffset(this,!0),this):get$1(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(_e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),_e?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&_e?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(_e){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),_e?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&_e?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function _e(ot,st){return st.length-ot.length}var et=[],tt=[],nt=[],at,it;for(at=0;at<12;at++)it=createUTC([2e3,at]),et.push(this.monthsShort(it,"")),tt.push(this.months(it,"")),nt.push(this.months(it,"")),nt.push(this.monthsShort(it,""));for(et.sort(_e),tt.sort(_e),nt.sort(_e),at=0;at<12;at++)et[at]=regexEscape(et[at]),tt[at]=regexEscape(tt[at]);for(at=0;at<24;at++)nt[at]=regexEscape(nt[at]);this._monthsRegex=new RegExp("^("+nt.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+tt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+et.join("|")+")","i")}addFormatToken("Y",0,0,function(){var _e=this.year();return _e<=9999?zeroFill(_e,4):"+"+_e});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,!0],0,"year");addUnitAlias("year","y");addUnitPriority("year",1);addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(_e,et){et[YEAR]=_e.length===2?hooks.parseTwoDigitYear(_e):toInt(_e)});addParseToken("YY",function(_e,et){et[YEAR]=hooks.parseTwoDigitYear(_e)});addParseToken("Y",function(_e,et){et[YEAR]=parseInt(_e,10)});function daysInYear(_e){return isLeapYear(_e)?366:365}hooks.parseTwoDigitYear=function(_e){return toInt(_e)+(toInt(_e)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function createDate(_e,et,tt,nt,at,it,ot){var st;return _e<100&&_e>=0?(st=new Date(_e+400,et,tt,nt,at,it,ot),isFinite(st.getFullYear())&&st.setFullYear(_e)):st=new Date(_e,et,tt,nt,at,it,ot),st}function createUTCDate(_e){var et,tt;return _e<100&&_e>=0?(tt=Array.prototype.slice.call(arguments),tt[0]=_e+400,et=new Date(Date.UTC.apply(null,tt)),isFinite(et.getUTCFullYear())&&et.setUTCFullYear(_e)):et=new Date(Date.UTC.apply(null,arguments)),et}function firstWeekOffset(_e,et,tt){var nt=7+et-tt,at=(7+createUTCDate(_e,0,nt).getUTCDay()-et)%7;return-at+nt-1}function dayOfYearFromWeeks(_e,et,tt,nt,at){var it=(7+tt-nt)%7,ot=firstWeekOffset(_e,nt,at),st=1+7*(et-1)+it+ot,ct,dt;return st<=0?(ct=_e-1,dt=daysInYear(ct)+st):st>daysInYear(_e)?(ct=_e+1,dt=st-daysInYear(_e)):(ct=_e,dt=st),{year:ct,dayOfYear:dt}}function weekOfYear(_e,et,tt){var nt=firstWeekOffset(_e.year(),et,tt),at=Math.floor((_e.dayOfYear()-nt-1)/7)+1,it,ot;return at<1?(ot=_e.year()-1,it=at+weeksInYear(ot,et,tt)):at>weeksInYear(_e.year(),et,tt)?(it=at-weeksInYear(_e.year(),et,tt),ot=_e.year()+1):(ot=_e.year(),it=at),{week:it,year:ot}}function weeksInYear(_e,et,tt){var nt=firstWeekOffset(_e,et,tt),at=firstWeekOffset(_e+1,et,tt);return(daysInYear(_e)-nt+at)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addUnitAlias("week","w");addUnitAlias("isoWeek","W");addUnitPriority("week",5);addUnitPriority("isoWeek",5);addRegexToken("w",match1to2);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(_e,et,tt,nt){et[nt.substr(0,1)]=toInt(_e)});function localeWeek(_e){return weekOfYear(_e,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(_e){var et=this.localeData().week(this);return _e==null?et:this.add((_e-et)*7,"d")}function getSetISOWeek(_e){var et=weekOfYear(this,1,4).week;return _e==null?et:this.add((_e-et)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(_e){return this.localeData().weekdaysMin(this,_e)});addFormatToken("ddd",0,0,function(_e){return this.localeData().weekdaysShort(this,_e)});addFormatToken("dddd",0,0,function(_e){return this.localeData().weekdays(this,_e)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addUnitAlias("day","d");addUnitAlias("weekday","e");addUnitAlias("isoWeekday","E");addUnitPriority("day",11);addUnitPriority("weekday",11);addUnitPriority("isoWeekday",11);addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(_e,et){return et.weekdaysMinRegex(_e)});addRegexToken("ddd",function(_e,et){return et.weekdaysShortRegex(_e)});addRegexToken("dddd",function(_e,et){return et.weekdaysRegex(_e)});addWeekParseToken(["dd","ddd","dddd"],function(_e,et,tt,nt){var at=tt._locale.weekdaysParse(_e,nt,tt._strict);at!=null?et.d=at:getParsingFlags(tt).invalidWeekday=_e});addWeekParseToken(["d","e","E"],function(_e,et,tt,nt){et[nt]=toInt(_e)});function parseWeekday(_e,et){return typeof _e!="string"?_e:isNaN(_e)?(_e=et.weekdaysParse(_e),typeof _e=="number"?_e:null):parseInt(_e,10)}function parseIsoWeekday(_e,et){return typeof _e=="string"?et.weekdaysParse(_e)%7||7:isNaN(_e)?null:_e}function shiftWeekdays(_e,et){return _e.slice(et,7).concat(_e.slice(0,et))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(_e,et){var tt=isArray$2(this._weekdays)?this._weekdays:this._weekdays[_e&&_e!==!0&&this._weekdays.isFormat.test(et)?"format":"standalone"];return _e===!0?shiftWeekdays(tt,this._week.dow):_e?tt[_e.day()]:tt}function localeWeekdaysShort(_e){return _e===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):_e?this._weekdaysShort[_e.day()]:this._weekdaysShort}function localeWeekdaysMin(_e){return _e===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):_e?this._weekdaysMin[_e.day()]:this._weekdaysMin}function handleStrictParse$1(_e,et,tt){var nt,at,it,ot=_e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],nt=0;nt<7;++nt)it=createUTC([2e3,1]).day(nt),this._minWeekdaysParse[nt]=this.weekdaysMin(it,"").toLocaleLowerCase(),this._shortWeekdaysParse[nt]=this.weekdaysShort(it,"").toLocaleLowerCase(),this._weekdaysParse[nt]=this.weekdays(it,"").toLocaleLowerCase();return tt?et==="dddd"?(at=indexOf$1.call(this._weekdaysParse,ot),at!==-1?at:null):et==="ddd"?(at=indexOf$1.call(this._shortWeekdaysParse,ot),at!==-1?at:null):(at=indexOf$1.call(this._minWeekdaysParse,ot),at!==-1?at:null):et==="dddd"?(at=indexOf$1.call(this._weekdaysParse,ot),at!==-1||(at=indexOf$1.call(this._shortWeekdaysParse,ot),at!==-1)?at:(at=indexOf$1.call(this._minWeekdaysParse,ot),at!==-1?at:null)):et==="ddd"?(at=indexOf$1.call(this._shortWeekdaysParse,ot),at!==-1||(at=indexOf$1.call(this._weekdaysParse,ot),at!==-1)?at:(at=indexOf$1.call(this._minWeekdaysParse,ot),at!==-1?at:null)):(at=indexOf$1.call(this._minWeekdaysParse,ot),at!==-1||(at=indexOf$1.call(this._weekdaysParse,ot),at!==-1)?at:(at=indexOf$1.call(this._shortWeekdaysParse,ot),at!==-1?at:null))}function localeWeekdaysParse(_e,et,tt){var nt,at,it;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,_e,et,tt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),nt=0;nt<7;nt++){if(at=createUTC([2e3,1]).day(nt),tt&&!this._fullWeekdaysParse[nt]&&(this._fullWeekdaysParse[nt]=new RegExp("^"+this.weekdays(at,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[nt]=new RegExp("^"+this.weekdaysShort(at,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[nt]=new RegExp("^"+this.weekdaysMin(at,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[nt]||(it="^"+this.weekdays(at,"")+"|^"+this.weekdaysShort(at,"")+"|^"+this.weekdaysMin(at,""),this._weekdaysParse[nt]=new RegExp(it.replace(".",""),"i")),tt&&et==="dddd"&&this._fullWeekdaysParse[nt].test(_e))return nt;if(tt&&et==="ddd"&&this._shortWeekdaysParse[nt].test(_e))return nt;if(tt&&et==="dd"&&this._minWeekdaysParse[nt].test(_e))return nt;if(!tt&&this._weekdaysParse[nt].test(_e))return nt}}function getSetDayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;var et=this._isUTC?this._d.getUTCDay():this._d.getDay();return _e!=null?(_e=parseWeekday(_e,this.localeData()),this.add(_e-et,"d")):et}function getSetLocaleDayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;var et=(this.day()+7-this.localeData()._week.dow)%7;return _e==null?et:this.add(_e-et,"d")}function getSetISODayOfWeek(_e){if(!this.isValid())return _e!=null?this:NaN;if(_e!=null){var et=parseIsoWeekday(_e,this.localeData());return this.day(this.day()%7?et:et-7)}else return this.day()||7}function weekdaysRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&_e?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&_e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(_e){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),_e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&_e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function _e(ht,pt){return pt.length-ht.length}var et=[],tt=[],nt=[],at=[],it,ot,st,ct,dt;for(it=0;it<7;it++)ot=createUTC([2e3,1]).day(it),st=regexEscape(this.weekdaysMin(ot,"")),ct=regexEscape(this.weekdaysShort(ot,"")),dt=regexEscape(this.weekdays(ot,"")),et.push(st),tt.push(ct),nt.push(dt),at.push(st),at.push(ct),at.push(dt);et.sort(_e),tt.sort(_e),nt.sort(_e),at.sort(_e),this._weekdaysRegex=new RegExp("^("+at.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+tt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+et.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(_e,et){addFormatToken(_e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),et)})}meridiem("a",!0);meridiem("A",!1);addUnitAlias("hour","h");addUnitPriority("hour",13);function matchMeridiem(_e,et){return et._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2);addRegexToken("h",match1to2);addRegexToken("k",match1to2);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(_e,et,tt){var nt=toInt(_e);et[HOUR]=nt===24?0:nt});addParseToken(["a","A"],function(_e,et,tt){tt._isPm=tt._locale.isPM(_e),tt._meridiem=_e});addParseToken(["h","hh"],function(_e,et,tt){et[HOUR]=toInt(_e),getParsingFlags(tt).bigHour=!0});addParseToken("hmm",function(_e,et,tt){var nt=_e.length-2;et[HOUR]=toInt(_e.substr(0,nt)),et[MINUTE]=toInt(_e.substr(nt)),getParsingFlags(tt).bigHour=!0});addParseToken("hmmss",function(_e,et,tt){var nt=_e.length-4,at=_e.length-2;et[HOUR]=toInt(_e.substr(0,nt)),et[MINUTE]=toInt(_e.substr(nt,2)),et[SECOND]=toInt(_e.substr(at)),getParsingFlags(tt).bigHour=!0});addParseToken("Hmm",function(_e,et,tt){var nt=_e.length-2;et[HOUR]=toInt(_e.substr(0,nt)),et[MINUTE]=toInt(_e.substr(nt))});addParseToken("Hmmss",function(_e,et,tt){var nt=_e.length-4,at=_e.length-2;et[HOUR]=toInt(_e.substr(0,nt)),et[MINUTE]=toInt(_e.substr(nt,2)),et[SECOND]=toInt(_e.substr(at))});function localeIsPM(_e){return(_e+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(_e,et,tt){return _e>11?tt?"pm":"PM":tt?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(_e,et){var tt,nt=Math.min(_e.length,et.length);for(tt=0;tt<nt;tt+=1)if(_e[tt]!==et[tt])return tt;return nt}function normalizeLocale(_e){return _e&&_e.toLowerCase().replace("_","-")}function chooseLocale(_e){for(var et=0,tt,nt,at,it;et<_e.length;){for(it=normalizeLocale(_e[et]).split("-"),tt=it.length,nt=normalizeLocale(_e[et+1]),nt=nt?nt.split("-"):null;tt>0;){if(at=loadLocale(it.slice(0,tt).join("-")),at)return at;if(nt&&nt.length>=tt&&commonPrefix(it,nt)>=tt-1)break;tt--}et++}return globalLocale}function isLocaleNameSane(_e){return _e.match("^[^/\\\\]*$")!=null}function loadLocale(_e){var et=null,tt;if(locales[_e]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(_e))try{et=globalLocale._abbr,tt=require,tt("./locale/"+_e),getSetGlobalLocale(et)}catch{locales[_e]=null}return locales[_e]}function getSetGlobalLocale(_e,et){var tt;return _e&&(isUndefined(et)?tt=getLocale(_e):tt=defineLocale(_e,et),tt?globalLocale=tt:typeof console<"u"&&console.warn&&console.warn("Locale "+_e+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(_e,et){if(et!==null){var tt,nt=baseConfig;if(et.abbr=_e,locales[_e]!=null)deprecateSimple("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."),nt=locales[_e]._config;else if(et.parentLocale!=null)if(locales[et.parentLocale]!=null)nt=locales[et.parentLocale]._config;else if(tt=loadLocale(et.parentLocale),tt!=null)nt=tt._config;else return localeFamilies[et.parentLocale]||(localeFamilies[et.parentLocale]=[]),localeFamilies[et.parentLocale].push({name:_e,config:et}),null;return locales[_e]=new Locale(mergeConfigs(nt,et)),localeFamilies[_e]&&localeFamilies[_e].forEach(function(at){defineLocale(at.name,at.config)}),getSetGlobalLocale(_e),locales[_e]}else return delete locales[_e],null}function updateLocale(_e,et){if(et!=null){var tt,nt,at=baseConfig;locales[_e]!=null&&locales[_e].parentLocale!=null?locales[_e].set(mergeConfigs(locales[_e]._config,et)):(nt=loadLocale(_e),nt!=null&&(at=nt._config),et=mergeConfigs(at,et),nt==null&&(et.abbr=_e),tt=new Locale(et),tt.parentLocale=locales[_e],locales[_e]=tt),getSetGlobalLocale(_e)}else locales[_e]!=null&&(locales[_e].parentLocale!=null?(locales[_e]=locales[_e].parentLocale,_e===getSetGlobalLocale()&&getSetGlobalLocale(_e)):locales[_e]!=null&&delete locales[_e]);return locales[_e]}function getLocale(_e){var et;if(_e&&_e._locale&&_e._locale._abbr&&(_e=_e._locale._abbr),!_e)return globalLocale;if(!isArray$2(_e)){if(et=loadLocale(_e),et)return et;_e=[_e]}return chooseLocale(_e)}function listLocales(){return keys$1(locales)}function checkOverflow(_e){var et,tt=_e._a;return tt&&getParsingFlags(_e).overflow===-2&&(et=tt[MONTH]<0||tt[MONTH]>11?MONTH:tt[DATE]<1||tt[DATE]>daysInMonth(tt[YEAR],tt[MONTH])?DATE:tt[HOUR]<0||tt[HOUR]>24||tt[HOUR]===24&&(tt[MINUTE]!==0||tt[SECOND]!==0||tt[MILLISECOND]!==0)?HOUR:tt[MINUTE]<0||tt[MINUTE]>59?MINUTE:tt[SECOND]<0||tt[SECOND]>59?SECOND:tt[MILLISECOND]<0||tt[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(_e)._overflowDayOfYear&&(et<YEAR||et>DATE)&&(et=DATE),getParsingFlags(_e)._overflowWeeks&&et===-1&&(et=WEEK),getParsingFlags(_e)._overflowWeekday&&et===-1&&(et=WEEKDAY),getParsingFlags(_e).overflow=et),_e}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(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}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(_e){var et,tt,nt=_e._i,at=extendedIsoRegex.exec(nt)||basicIsoRegex.exec(nt),it,ot,st,ct,dt=isoDates.length,ht=isoTimes.length;if(at){for(getParsingFlags(_e).iso=!0,et=0,tt=dt;et<tt;et++)if(isoDates[et][1].exec(at[1])){ot=isoDates[et][0],it=isoDates[et][2]!==!1;break}if(ot==null){_e._isValid=!1;return}if(at[3]){for(et=0,tt=ht;et<tt;et++)if(isoTimes[et][1].exec(at[3])){st=(at[2]||" ")+isoTimes[et][0];break}if(st==null){_e._isValid=!1;return}}if(!it&&st!=null){_e._isValid=!1;return}if(at[4])if(tzRegex.exec(at[4]))ct="Z";else{_e._isValid=!1;return}_e._f=ot+(st||"")+(ct||""),configFromStringAndFormat(_e)}else _e._isValid=!1}function extractFromRFC2822Strings(_e,et,tt,nt,at,it){var ot=[untruncateYear(_e),defaultLocaleMonthsShort.indexOf(et),parseInt(tt,10),parseInt(nt,10),parseInt(at,10)];return it&&ot.push(parseInt(it,10)),ot}function untruncateYear(_e){var et=parseInt(_e,10);return et<=49?2e3+et:et<=999?1900+et:et}function preprocessRFC2822(_e){return _e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(_e,et,tt){if(_e){var nt=defaultLocaleWeekdaysShort.indexOf(_e),at=new Date(et[0],et[1],et[2]).getDay();if(nt!==at)return getParsingFlags(tt).weekdayMismatch=!0,tt._isValid=!1,!1}return!0}function calculateOffset(_e,et,tt){if(_e)return obsOffsets[_e];if(et)return 0;var nt=parseInt(tt,10),at=nt%100,it=(nt-at)/100;return it*60+at}function configFromRFC2822(_e){var et=rfc2822.exec(preprocessRFC2822(_e._i)),tt;if(et){if(tt=extractFromRFC2822Strings(et[4],et[3],et[2],et[5],et[6],et[7]),!checkWeekday(et[1],tt,_e))return;_e._a=tt,_e._tzm=calculateOffset(et[8],et[9],et[10]),_e._d=createUTCDate.apply(null,_e._a),_e._d.setUTCMinutes(_e._d.getUTCMinutes()-_e._tzm),getParsingFlags(_e).rfc2822=!0}else _e._isValid=!1}function configFromString(_e){var et=aspNetJsonRegex.exec(_e._i);if(et!==null){_e._d=new Date(+et[1]);return}if(configFromISO(_e),_e._isValid===!1)delete _e._isValid;else return;if(configFromRFC2822(_e),_e._isValid===!1)delete _e._isValid;else return;_e._strict?_e._isValid=!1:hooks.createFromInputFallback(_e)}hooks.createFromInputFallback=deprecate("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":""))});function defaults$1(_e,et,tt){return _e??et??tt}function currentDateArray(_e){var et=new Date(hooks.now());return _e._useUTC?[et.getUTCFullYear(),et.getUTCMonth(),et.getUTCDate()]:[et.getFullYear(),et.getMonth(),et.getDate()]}function configFromArray(_e){var et,tt,nt=[],at,it,ot;if(!_e._d){for(at=currentDateArray(_e),_e._w&&_e._a[DATE]==null&&_e._a[MONTH]==null&&dayOfYearFromWeekInfo(_e),_e._dayOfYear!=null&&(ot=defaults$1(_e._a[YEAR],at[YEAR]),(_e._dayOfYear>daysInYear(ot)||_e._dayOfYear===0)&&(getParsingFlags(_e)._overflowDayOfYear=!0),tt=createUTCDate(ot,0,_e._dayOfYear),_e._a[MONTH]=tt.getUTCMonth(),_e._a[DATE]=tt.getUTCDate()),et=0;et<3&&_e._a[et]==null;++et)_e._a[et]=nt[et]=at[et];for(;et<7;et++)_e._a[et]=nt[et]=_e._a[et]==null?et===2?1:0:_e._a[et];_e._a[HOUR]===24&&_e._a[MINUTE]===0&&_e._a[SECOND]===0&&_e._a[MILLISECOND]===0&&(_e._nextDay=!0,_e._a[HOUR]=0),_e._d=(_e._useUTC?createUTCDate:createDate).apply(null,nt),it=_e._useUTC?_e._d.getUTCDay():_e._d.getDay(),_e._tzm!=null&&_e._d.setUTCMinutes(_e._d.getUTCMinutes()-_e._tzm),_e._nextDay&&(_e._a[HOUR]=24),_e._w&&typeof _e._w.d<"u"&&_e._w.d!==it&&(getParsingFlags(_e).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(_e){var et,tt,nt,at,it,ot,st,ct,dt;et=_e._w,et.GG!=null||et.W!=null||et.E!=null?(it=1,ot=4,tt=defaults$1(et.GG,_e._a[YEAR],weekOfYear(createLocal(),1,4).year),nt=defaults$1(et.W,1),at=defaults$1(et.E,1),(at<1||at>7)&&(ct=!0)):(it=_e._locale._week.dow,ot=_e._locale._week.doy,dt=weekOfYear(createLocal(),it,ot),tt=defaults$1(et.gg,_e._a[YEAR],dt.year),nt=defaults$1(et.w,dt.week),et.d!=null?(at=et.d,(at<0||at>6)&&(ct=!0)):et.e!=null?(at=et.e+it,(et.e<0||et.e>6)&&(ct=!0)):at=it),nt<1||nt>weeksInYear(tt,it,ot)?getParsingFlags(_e)._overflowWeeks=!0:ct!=null?getParsingFlags(_e)._overflowWeekday=!0:(st=dayOfYearFromWeeks(tt,nt,at,it,ot),_e._a[YEAR]=st.year,_e._dayOfYear=st.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(_e){if(_e._f===hooks.ISO_8601){configFromISO(_e);return}if(_e._f===hooks.RFC_2822){configFromRFC2822(_e);return}_e._a=[],getParsingFlags(_e).empty=!0;var et=""+_e._i,tt,nt,at,it,ot,st=et.length,ct=0,dt,ht;for(at=expandFormat(_e._f,_e._locale).match(formattingTokens)||[],ht=at.length,tt=0;tt<ht;tt++)it=at[tt],nt=(et.match(getParseRegexForToken(it,_e))||[])[0],nt&&(ot=et.substr(0,et.indexOf(nt)),ot.length>0&&getParsingFlags(_e).unusedInput.push(ot),et=et.slice(et.indexOf(nt)+nt.length),ct+=nt.length),formatTokenFunctions[it]?(nt?getParsingFlags(_e).empty=!1:getParsingFlags(_e).unusedTokens.push(it),addTimeToArrayFromToken(it,nt,_e)):_e._strict&&!nt&&getParsingFlags(_e).unusedTokens.push(it);getParsingFlags(_e).charsLeftOver=st-ct,et.length>0&&getParsingFlags(_e).unusedInput.push(et),_e._a[HOUR]<=12&&getParsingFlags(_e).bigHour===!0&&_e._a[HOUR]>0&&(getParsingFlags(_e).bigHour=void 0),getParsingFlags(_e).parsedDateParts=_e._a.slice(0),getParsingFlags(_e).meridiem=_e._meridiem,_e._a[HOUR]=meridiemFixWrap(_e._locale,_e._a[HOUR],_e._meridiem),dt=getParsingFlags(_e).era,dt!==null&&(_e._a[YEAR]=_e._locale.erasConvertYear(dt,_e._a[YEAR])),configFromArray(_e),checkOverflow(_e)}function meridiemFixWrap(_e,et,tt){var nt;return tt==null?et:_e.meridiemHour!=null?_e.meridiemHour(et,tt):(_e.isPM!=null&&(nt=_e.isPM(tt),nt&&et<12&&(et+=12),!nt&&et===12&&(et=0)),et)}function configFromStringAndArray(_e){var et,tt,nt,at,it,ot,st=!1,ct=_e._f.length;if(ct===0){getParsingFlags(_e).invalidFormat=!0,_e._d=new Date(NaN);return}for(at=0;at<ct;at++)it=0,ot=!1,et=copyConfig({},_e),_e._useUTC!=null&&(et._useUTC=_e._useUTC),et._f=_e._f[at],configFromStringAndFormat(et),isValid(et)&&(ot=!0),it+=getParsingFlags(et).charsLeftOver,it+=getParsingFlags(et).unusedTokens.length*10,getParsingFlags(et).score=it,st?it<nt&&(nt=it,tt=et):(nt==null||it<nt||ot)&&(nt=it,tt=et,ot&&(st=!0));extend$1(_e,tt||et)}function configFromObject(_e){if(!_e._d){var et=normalizeObjectUnits(_e._i),tt=et.day===void 0?et.date:et.day;_e._a=map$2([et.year,et.month,tt,et.hour,et.minute,et.second,et.millisecond],function(nt){return nt&&parseInt(nt,10)}),configFromArray(_e)}}function createFromConfig(_e){var et=new Moment(checkOverflow(prepareConfig(_e)));return et._nextDay&&(et.add(1,"d"),et._nextDay=void 0),et}function prepareConfig(_e){var et=_e._i,tt=_e._f;return _e._locale=_e._locale||getLocale(_e._l),et===null||tt===void 0&&et===""?createInvalid({nullInput:!0}):(typeof et=="string"&&(_e._i=et=_e._locale.preparse(et)),isMoment(et)?new Moment(checkOverflow(et)):(isDate(et)?_e._d=et:isArray$2(tt)?configFromStringAndArray(_e):tt?configFromStringAndFormat(_e):configFromInput(_e),isValid(_e)||(_e._d=null),_e))}function configFromInput(_e){var et=_e._i;isUndefined(et)?_e._d=new Date(hooks.now()):isDate(et)?_e._d=new Date(et.valueOf()):typeof et=="string"?configFromString(_e):isArray$2(et)?(_e._a=map$2(et.slice(0),function(tt){return parseInt(tt,10)}),configFromArray(_e)):isObject$4(et)?configFromObject(_e):isNumber$1(et)?_e._d=new Date(et):hooks.createFromInputFallback(_e)}function createLocalOrUTC(_e,et,tt,nt,at){var it={};return(et===!0||et===!1)&&(nt=et,et=void 0),(tt===!0||tt===!1)&&(nt=tt,tt=void 0),(isObject$4(_e)&&isObjectEmpty(_e)||isArray$2(_e)&&_e.length===0)&&(_e=void 0),it._isAMomentObject=!0,it._useUTC=it._isUTC=at,it._l=tt,it._i=_e,it._f=et,it._strict=nt,createFromConfig(it)}function createLocal(_e,et,tt,nt){return createLocalOrUTC(_e,et,tt,nt,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var _e=createLocal.apply(null,arguments);return this.isValid()&&_e.isValid()?_e<this?this:_e:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var _e=createLocal.apply(null,arguments);return this.isValid()&&_e.isValid()?_e>this?this:_e:createInvalid()});function pickBy(_e,et){var tt,nt;if(et.length===1&&isArray$2(et[0])&&(et=et[0]),!et.length)return createLocal();for(tt=et[0],nt=1;nt<et.length;++nt)(!et[nt].isValid()||et[nt][_e](tt))&&(tt=et[nt]);return tt}function min$2(){var _e=[].slice.call(arguments,0);return pickBy("isBefore",_e)}function max$2(){var _e=[].slice.call(arguments,0);return pickBy("isAfter",_e)}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(_e){var et,tt=!1,nt,at=ordering.length;for(et in _e)if(hasOwnProp(_e,et)&&!(indexOf$1.call(ordering,et)!==-1&&(_e[et]==null||!isNaN(_e[et]))))return!1;for(nt=0;nt<at;++nt)if(_e[ordering[nt]]){if(tt)return!1;parseFloat(_e[ordering[nt]])!==toInt(_e[ordering[nt]])&&(tt=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(_e){var et=normalizeObjectUnits(_e),tt=et.year||0,nt=et.quarter||0,at=et.month||0,it=et.week||et.isoWeek||0,ot=et.day||0,st=et.hour||0,ct=et.minute||0,dt=et.second||0,ht=et.millisecond||0;this._isValid=isDurationValid(et),this._milliseconds=+ht+dt*1e3+ct*6e4+st*1e3*60*60,this._days=+ot+it*7,this._months=+at+nt*3+tt*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(_e){return _e instanceof Duration}function absRound(_e){return _e<0?Math.round(-1*_e)*-1:Math.round(_e)}function compareArrays(_e,et,tt){var nt=Math.min(_e.length,et.length),at=Math.abs(_e.length-et.length),it=0,ot;for(ot=0;ot<nt;ot++)(tt&&_e[ot]!==et[ot]||!tt&&toInt(_e[ot])!==toInt(et[ot]))&&it++;return it+at}function offset(_e,et){addFormatToken(_e,0,0,function(){var tt=this.utcOffset(),nt="+";return tt<0&&(tt=-tt,nt="-"),nt+zeroFill(~~(tt/60),2)+et+zeroFill(~~tt%60,2)})}offset("Z",":");offset("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(_e,et,tt){tt._useUTC=!0,tt._tzm=offsetFromString(matchShortOffset,_e)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(_e,et){var tt=(et||"").match(_e),nt,at,it;return tt===null?null:(nt=tt[tt.length-1]||[],at=(nt+"").match(chunkOffset)||["-",0,0],it=+(at[1]*60)+toInt(at[2]),it===0?0:at[0]==="+"?it:-it)}function cloneWithOffset(_e,et){var tt,nt;return et._isUTC?(tt=et.clone(),nt=(isMoment(_e)||isDate(_e)?_e.valueOf():createLocal(_e).valueOf())-tt.valueOf(),tt._d.setTime(tt._d.valueOf()+nt),hooks.updateOffset(tt,!1),tt):createLocal(_e).local()}function getDateOffset(_e){return-Math.round(_e._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(_e,et,tt){var nt=this._offset||0,at;if(!this.isValid())return _e!=null?this:NaN;if(_e!=null){if(typeof _e=="string"){if(_e=offsetFromString(matchShortOffset,_e),_e===null)return this}else Math.abs(_e)<16&&!tt&&(_e=_e*60);return!this._isUTC&&et&&(at=getDateOffset(this)),this._offset=_e,this._isUTC=!0,at!=null&&this.add(at,"m"),nt!==_e&&(!et||this._changeInProgress?addSubtract(this,createDuration(_e-nt,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?nt:getDateOffset(this)}function getSetZone(_e,et){return _e!=null?(typeof _e!="string"&&(_e=-_e),this.utcOffset(_e,et),this):-this.utcOffset()}function setOffsetToUTC(_e){return this.utcOffset(0,_e)}function setOffsetToLocal(_e){return this._isUTC&&(this.utcOffset(0,_e),this._isUTC=!1,_e&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var _e=offsetFromString(matchOffset,this._i);_e!=null?this.utcOffset(_e):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(_e){return this.isValid()?(_e=_e?createLocal(_e).utcOffset():0,(this.utcOffset()-_e)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var _e={},et;return copyConfig(_e,this),_e=prepareConfig(_e),_e._a?(et=_e._isUTC?createUTC(_e._a):createLocal(_e._a),this._isDSTShifted=this.isValid()&&compareArrays(_e._a,et.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(_e,et){var tt=_e,nt=null,at,it,ot;return isDuration(_e)?tt={ms:_e._milliseconds,d:_e._days,M:_e._months}:isNumber$1(_e)||!isNaN(+_e)?(tt={},et?tt[et]=+_e:tt.milliseconds=+_e):(nt=aspNetRegex.exec(_e))?(at=nt[1]==="-"?-1:1,tt={y:0,d:toInt(nt[DATE])*at,h:toInt(nt[HOUR])*at,m:toInt(nt[MINUTE])*at,s:toInt(nt[SECOND])*at,ms:toInt(absRound(nt[MILLISECOND]*1e3))*at}):(nt=isoRegex.exec(_e))?(at=nt[1]==="-"?-1:1,tt={y:parseIso(nt[2],at),M:parseIso(nt[3],at),w:parseIso(nt[4],at),d:parseIso(nt[5],at),h:parseIso(nt[6],at),m:parseIso(nt[7],at),s:parseIso(nt[8],at)}):tt==null?tt={}:typeof tt=="object"&&("from"in tt||"to"in tt)&&(ot=momentsDifference(createLocal(tt.from),createLocal(tt.to)),tt={},tt.ms=ot.milliseconds,tt.M=ot.months),it=new Duration(tt),isDuration(_e)&&hasOwnProp(_e,"_locale")&&(it._locale=_e._locale),isDuration(_e)&&hasOwnProp(_e,"_isValid")&&(it._isValid=_e._isValid),it}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(_e,et){var tt=_e&&parseFloat(_e.replace(",","."));return(isNaN(tt)?0:tt)*et}function positiveMomentsDifference(_e,et){var tt={};return tt.months=et.month()-_e.month()+(et.year()-_e.year())*12,_e.clone().add(tt.months,"M").isAfter(et)&&--tt.months,tt.milliseconds=+et-+_e.clone().add(tt.months,"M"),tt}function momentsDifference(_e,et){var tt;return _e.isValid()&&et.isValid()?(et=cloneWithOffset(et,_e),_e.isBefore(et)?tt=positiveMomentsDifference(_e,et):(tt=positiveMomentsDifference(et,_e),tt.milliseconds=-tt.milliseconds,tt.months=-tt.months),tt):{milliseconds:0,months:0}}function createAdder(_e,et){return function(tt,nt){var at,it;return nt!==null&&!isNaN(+nt)&&(deprecateSimple(et,"moment()."+et+"(period, number) is deprecated. Please use moment()."+et+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),it=tt,tt=nt,nt=it),at=createDuration(tt,nt),addSubtract(this,at,_e),this}}function addSubtract(_e,et,tt,nt){var at=et._milliseconds,it=absRound(et._days),ot=absRound(et._months);_e.isValid()&&(nt=nt??!0,ot&&setMonth(_e,get$1(_e,"Month")+ot*tt),it&&set$1$1(_e,"Date",get$1(_e,"Date")+it*tt),at&&_e._d.setTime(_e._d.valueOf()+at*tt),nt&&hooks.updateOffset(_e,it||ot))}var add$1=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString$1(_e){return typeof _e=="string"||_e instanceof String}function isMomentInput(_e){return isMoment(_e)||isDate(_e)||isString$1(_e)||isNumber$1(_e)||isNumberOrStringArray(_e)||isMomentInputObject(_e)||_e===null||_e===void 0}function isMomentInputObject(_e){var et=isObject$4(_e)&&!isObjectEmpty(_e),tt=!1,nt=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],at,it,ot=nt.length;for(at=0;at<ot;at+=1)it=nt[at],tt=tt||hasOwnProp(_e,it);return et&&tt}function isNumberOrStringArray(_e){var et=isArray$2(_e),tt=!1;return et&&(tt=_e.filter(function(nt){return!isNumber$1(nt)&&isString$1(_e)}).length===0),et&&tt}function isCalendarSpec(_e){var et=isObject$4(_e)&&!isObjectEmpty(_e),tt=!1,nt=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],at,it;for(at=0;at<nt.length;at+=1)it=nt[at],tt=tt||hasOwnProp(_e,it);return et&&tt}function getCalendarFormat(_e,et){var tt=_e.diff(et,"days",!0);return tt<-6?"sameElse":tt<-1?"lastWeek":tt<0?"lastDay":tt<1?"sameDay":tt<2?"nextDay":tt<7?"nextWeek":"sameElse"}function calendar$1(_e,et){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(_e=arguments[0],et=void 0):isCalendarSpec(arguments[0])&&(et=arguments[0],_e=void 0):(_e=void 0,et=void 0));var tt=_e||createLocal(),nt=cloneWithOffset(tt,this).startOf("day"),at=hooks.calendarFormat(this,nt)||"sameElse",it=et&&(isFunction$1(et[at])?et[at].call(this,tt):et[at]);return this.format(it||this.localeData().calendar(at,this,createLocal(tt)))}function clone$4(){return new Moment(this)}function isAfter(_e,et){var tt=isMoment(_e)?_e:createLocal(_e);return this.isValid()&&tt.isValid()?(et=normalizeUnits(et)||"millisecond",et==="millisecond"?this.valueOf()>tt.valueOf():tt.valueOf()<this.clone().startOf(et).valueOf()):!1}function isBefore(_e,et){var tt=isMoment(_e)?_e:createLocal(_e);return this.isValid()&&tt.isValid()?(et=normalizeUnits(et)||"millisecond",et==="millisecond"?this.valueOf()<tt.valueOf():this.clone().endOf(et).valueOf()<tt.valueOf()):!1}function isBetween(_e,et,tt,nt){var at=isMoment(_e)?_e:createLocal(_e),it=isMoment(et)?et:createLocal(et);return this.isValid()&&at.isValid()&&it.isValid()?(nt=nt||"()",(nt[0]==="("?this.isAfter(at,tt):!this.isBefore(at,tt))&&(nt[1]===")"?this.isBefore(it,tt):!this.isAfter(it,tt))):!1}function isSame(_e,et){var tt=isMoment(_e)?_e:createLocal(_e),nt;return this.isValid()&&tt.isValid()?(et=normalizeUnits(et)||"millisecond",et==="millisecond"?this.valueOf()===tt.valueOf():(nt=tt.valueOf(),this.clone().startOf(et).valueOf()<=nt&&nt<=this.clone().endOf(et).valueOf())):!1}function isSameOrAfter(_e,et){return this.isSame(_e,et)||this.isAfter(_e,et)}function isSameOrBefore(_e,et){return this.isSame(_e,et)||this.isBefore(_e,et)}function diff(_e,et,tt){var nt,at,it;if(!this.isValid())return NaN;if(nt=cloneWithOffset(_e,this),!nt.isValid())return NaN;switch(at=(nt.utcOffset()-this.utcOffset())*6e4,et=normalizeUnits(et),et){case"year":it=monthDiff(this,nt)/12;break;case"month":it=monthDiff(this,nt);break;case"quarter":it=monthDiff(this,nt)/3;break;case"second":it=(this-nt)/1e3;break;case"minute":it=(this-nt)/6e4;break;case"hour":it=(this-nt)/36e5;break;case"day":it=(this-nt-at)/864e5;break;case"week":it=(this-nt-at)/6048e5;break;default:it=this-nt}return tt?it:absFloor(it)}function monthDiff(_e,et){if(_e.date()<et.date())return-monthDiff(et,_e);var tt=(et.year()-_e.year())*12+(et.month()-_e.month()),nt=_e.clone().add(tt,"months"),at,it;return et-nt<0?(at=_e.clone().add(tt-1,"months"),it=(et-nt)/(nt-at)):(at=_e.clone().add(tt+1,"months"),it=(et-nt)/(at-nt)),-(tt+it)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString$1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(_e){if(!this.isValid())return null;var et=_e!==!0,tt=et?this.clone().utc():this;return tt.year()<0||tt.year()>9999?formatMoment(tt,et?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$1(Date.prototype.toISOString)?et?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(tt,"Z")):formatMoment(tt,et?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var _e="moment",et="",tt,nt,at,it;return this.isLocal()||(_e=this.utcOffset()===0?"moment.utc":"moment.parseZone",et="Z"),tt="["+_e+'("]',nt=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",at="-MM-DD[T]HH:mm:ss.SSS",it=et+'[")]',this.format(tt+nt+at+it)}function format$1(_e){_e||(_e=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var et=formatMoment(this,_e);return this.localeData().postformat(et)}function from(_e,et){return this.isValid()&&(isMoment(_e)&&_e.isValid()||createLocal(_e).isValid())?createDuration({to:this,from:_e}).locale(this.locale()).humanize(!et):this.localeData().invalidDate()}function fromNow(_e){return this.from(createLocal(),_e)}function to(_e,et){return this.isValid()&&(isMoment(_e)&&_e.isValid()||createLocal(_e).isValid())?createDuration({from:this,to:_e}).locale(this.locale()).humanize(!et):this.localeData().invalidDate()}function toNow(_e){return this.to(createLocal(),_e)}function locale(_e){var et;return _e===void 0?this._locale._abbr:(et=getLocale(_e),et!=null&&(this._locale=et),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(_e){return _e===void 0?this.localeData():this.locale(_e)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(_e,et){return(_e%et+et)%et}function localStartOfDate(_e,et,tt){return _e<100&&_e>=0?new Date(_e+400,et,tt)-MS_PER_400_YEARS:new Date(_e,et,tt).valueOf()}function utcStartOfDate(_e,et,tt){return _e<100&&_e>=0?Date.UTC(_e+400,et,tt)-MS_PER_400_YEARS:Date.UTC(_e,et,tt)}function startOf(_e){var et,tt;if(_e=normalizeUnits(_e),_e===void 0||_e==="millisecond"||!this.isValid())return this;switch(tt=this._isUTC?utcStartOfDate:localStartOfDate,_e){case"year":et=tt(this.year(),0,1);break;case"quarter":et=tt(this.year(),this.month()-this.month()%3,1);break;case"month":et=tt(this.year(),this.month(),1);break;case"week":et=tt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":et=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":et=tt(this.year(),this.month(),this.date());break;case"hour":et=this._d.valueOf(),et-=mod$1(et+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":et=this._d.valueOf(),et-=mod$1(et,MS_PER_MINUTE);break;case"second":et=this._d.valueOf(),et-=mod$1(et,MS_PER_SECOND);break}return this._d.setTime(et),hooks.updateOffset(this,!0),this}function endOf(_e){var et,tt;if(_e=normalizeUnits(_e),_e===void 0||_e==="millisecond"||!this.isValid())return this;switch(tt=this._isUTC?utcStartOfDate:localStartOfDate,_e){case"year":et=tt(this.year()+1,0,1)-1;break;case"quarter":et=tt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":et=tt(this.year(),this.month()+1,1)-1;break;case"week":et=tt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":et=tt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":et=tt(this.year(),this.month(),this.date()+1)-1;break;case"hour":et=this._d.valueOf(),et+=MS_PER_HOUR-mod$1(et+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":et=this._d.valueOf(),et+=MS_PER_MINUTE-mod$1(et,MS_PER_MINUTE)-1;break;case"second":et=this._d.valueOf(),et+=MS_PER_SECOND-mod$1(et,MS_PER_SECOND)-1;break}return this._d.setTime(et),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var _e=this;return[_e.year(),_e.month(),_e.date(),_e.hour(),_e.minute(),_e.second(),_e.millisecond()]}function toObject(){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 toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend$1({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(_e,et,tt,nt){var at=tt._locale.erasParse(_e,nt,tt._strict);at?getParsingFlags(tt).era=at:getParsingFlags(tt).invalidEra=_e});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(_e,et,tt,nt){var at;tt._locale._eraYearOrdinalRegex&&(at=_e.match(tt._locale._eraYearOrdinalRegex)),tt._locale.eraYearOrdinalParse?et[YEAR]=tt._locale.eraYearOrdinalParse(_e,at):et[YEAR]=parseInt(_e,10)});function localeEras(_e,et){var tt,nt,at,it=this._eras||getLocale("en")._eras;for(tt=0,nt=it.length;tt<nt;++tt){switch(typeof it[tt].since){case"string":at=hooks(it[tt].since).startOf("day"),it[tt].since=at.valueOf();break}switch(typeof it[tt].until){case"undefined":it[tt].until=1/0;break;case"string":at=hooks(it[tt].until).startOf("day").valueOf(),it[tt].until=at.valueOf();break}}return it}function localeErasParse(_e,et,tt){var nt,at,it=this.eras(),ot,st,ct;for(_e=_e.toUpperCase(),nt=0,at=it.length;nt<at;++nt)if(ot=it[nt].name.toUpperCase(),st=it[nt].abbr.toUpperCase(),ct=it[nt].narrow.toUpperCase(),tt)switch(et){case"N":case"NN":case"NNN":if(st===_e)return it[nt];break;case"NNNN":if(ot===_e)return it[nt];break;case"NNNNN":if(ct===_e)return it[nt];break}else if([ot,st,ct].indexOf(_e)>=0)return it[nt]}function localeErasConvertYear(_e,et){var tt=_e.since<=_e.until?1:-1;return et===void 0?hooks(_e.since).year():hooks(_e.since).year()+(et-_e.offset)*tt}function getEraName(){var _e,et,tt,nt=this.localeData().eras();for(_e=0,et=nt.length;_e<et;++_e)if(tt=this.clone().startOf("day").valueOf(),nt[_e].since<=tt&&tt<=nt[_e].until||nt[_e].until<=tt&&tt<=nt[_e].since)return nt[_e].name;return""}function getEraNarrow(){var _e,et,tt,nt=this.localeData().eras();for(_e=0,et=nt.length;_e<et;++_e)if(tt=this.clone().startOf("day").valueOf(),nt[_e].since<=tt&&tt<=nt[_e].until||nt[_e].until<=tt&&tt<=nt[_e].since)return nt[_e].narrow;return""}function getEraAbbr(){var _e,et,tt,nt=this.localeData().eras();for(_e=0,et=nt.length;_e<et;++_e)if(tt=this.clone().startOf("day").valueOf(),nt[_e].since<=tt&&tt<=nt[_e].until||nt[_e].until<=tt&&tt<=nt[_e].since)return nt[_e].abbr;return""}function getEraYear(){var _e,et,tt,nt,at=this.localeData().eras();for(_e=0,et=at.length;_e<et;++_e)if(tt=at[_e].since<=at[_e].until?1:-1,nt=this.clone().startOf("day").valueOf(),at[_e].since<=nt&&nt<=at[_e].until||at[_e].until<=nt&&nt<=at[_e].since)return(this.year()-hooks(at[_e].since).year())*tt+at[_e].offset;return this.year()}function erasNameRegex(_e){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),_e?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(_e){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),_e?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(_e){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),_e?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(_e,et){return et.erasAbbrRegex(_e)}function matchEraName(_e,et){return et.erasNameRegex(_e)}function matchEraNarrow(_e,et){return et.erasNarrowRegex(_e)}function matchEraYearOrdinal(_e,et){return et._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var _e=[],et=[],tt=[],nt=[],at,it,ot=this.eras();for(at=0,it=ot.length;at<it;++at)et.push(regexEscape(ot[at].name)),_e.push(regexEscape(ot[at].abbr)),tt.push(regexEscape(ot[at].narrow)),nt.push(regexEscape(ot[at].name)),nt.push(regexEscape(ot[at].abbr)),nt.push(regexEscape(ot[at].narrow));this._erasRegex=new RegExp("^("+nt.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+et.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+_e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+tt.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(_e,et){addFormatToken(0,[_e,_e.length],0,et)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addUnitAlias("weekYear","gg");addUnitAlias("isoWeekYear","GG");addUnitPriority("weekYear",1);addUnitPriority("isoWeekYear",1);addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(_e,et,tt,nt){et[nt.substr(0,2)]=toInt(_e)});addWeekParseToken(["gg","GG"],function(_e,et,tt,nt){et[nt]=hooks.parseTwoDigitYear(_e)});function getSetWeekYear(_e){return getSetWeekYearHelper.call(this,_e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(_e){return getSetWeekYearHelper.call(this,_e,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var _e=this.localeData()._week;return weeksInYear(this.year(),_e.dow,_e.doy)}function getWeeksInWeekYear(){var _e=this.localeData()._week;return weeksInYear(this.weekYear(),_e.dow,_e.doy)}function getSetWeekYearHelper(_e,et,tt,nt,at){var it;return _e==null?weekOfYear(this,nt,at).year:(it=weeksInYear(_e,nt,at),et>it&&(et=it),setWeekAll.call(this,_e,et,tt,nt,at))}function setWeekAll(_e,et,tt,nt,at){var it=dayOfYearFromWeeks(_e,et,tt,nt,at),ot=createUTCDate(it.year,0,it.dayOfYear);return this.year(ot.getUTCFullYear()),this.month(ot.getUTCMonth()),this.date(ot.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addUnitAlias("quarter","Q");addUnitPriority("quarter",7);addRegexToken("Q",match1);addParseToken("Q",function(_e,et){et[MONTH]=(toInt(_e)-1)*3});function getSetQuarter(_e){return _e==null?Math.ceil((this.month()+1)/3):this.month((_e-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addUnitAlias("date","D");addUnitPriority("date",9);addRegexToken("D",match1to2);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(_e,et){return _e?et._dayOfMonthOrdinalParse||et._ordinalParse:et._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(_e,et){et[DATE]=toInt(_e.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addUnitAlias("dayOfYear","DDD");addUnitPriority("dayOfYear",4);addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(_e,et,tt){tt._dayOfYear=toInt(_e)});function getSetDayOfYear(_e){var et=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return _e==null?et:this.add(_e-et,"d")}addFormatToken("m",["mm",2],0,"minute");addUnitAlias("minute","m");addUnitPriority("minute",14);addRegexToken("m",match1to2);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addUnitAlias("second","s");addUnitPriority("second",15);addRegexToken("s",match1to2);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addUnitAlias("millisecond","ms");addUnitPriority("millisecond",16);addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(_e,et){et[MILLISECOND]=toInt(("0."+_e)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto$1=Moment.prototype;proto$1.add=add$1;proto$1.calendar=calendar$1;proto$1.clone=clone$4;proto$1.diff=diff;proto$1.endOf=endOf;proto$1.format=format$1;proto$1.from=from;proto$1.fromNow=fromNow;proto$1.to=to;proto$1.toNow=toNow;proto$1.get=stringGet;proto$1.invalidAt=invalidAt;proto$1.isAfter=isAfter;proto$1.isBefore=isBefore;proto$1.isBetween=isBetween;proto$1.isSame=isSame;proto$1.isSameOrAfter=isSameOrAfter;proto$1.isSameOrBefore=isSameOrBefore;proto$1.isValid=isValid$2;proto$1.lang=lang;proto$1.locale=locale;proto$1.localeData=localeData;proto$1.max=prototypeMax;proto$1.min=prototypeMin;proto$1.parsingFlags=parsingFlags;proto$1.set=stringSet;proto$1.startOf=startOf;proto$1.subtract=subtract;proto$1.toArray=toArray;proto$1.toObject=toObject;proto$1.toDate=toDate;proto$1.toISOString=toISOString;proto$1.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto$1[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto$1.toJSON=toJSON;proto$1.toString=toString$1;proto$1.unix=unix;proto$1.valueOf=valueOf;proto$1.creationData=creationData;proto$1.eraName=getEraName;proto$1.eraNarrow=getEraNarrow;proto$1.eraAbbr=getEraAbbr;proto$1.eraYear=getEraYear;proto$1.year=getSetYear;proto$1.isLeapYear=getIsLeapYear;proto$1.weekYear=getSetWeekYear;proto$1.isoWeekYear=getSetISOWeekYear;proto$1.quarter=proto$1.quarters=getSetQuarter;proto$1.month=getSetMonth;proto$1.daysInMonth=getDaysInMonth;proto$1.week=proto$1.weeks=getSetWeek;proto$1.isoWeek=proto$1.isoWeeks=getSetISOWeek;proto$1.weeksInYear=getWeeksInYear;proto$1.weeksInWeekYear=getWeeksInWeekYear;proto$1.isoWeeksInYear=getISOWeeksInYear;proto$1.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto$1.date=getSetDayOfMonth;proto$1.day=proto$1.days=getSetDayOfWeek;proto$1.weekday=getSetLocaleDayOfWeek;proto$1.isoWeekday=getSetISODayOfWeek;proto$1.dayOfYear=getSetDayOfYear;proto$1.hour=proto$1.hours=getSetHour;proto$1.minute=proto$1.minutes=getSetMinute;proto$1.second=proto$1.seconds=getSetSecond;proto$1.millisecond=proto$1.milliseconds=getSetMillisecond;proto$1.utcOffset=getSetOffset;proto$1.utc=setOffsetToUTC;proto$1.local=setOffsetToLocal;proto$1.parseZone=setOffsetToParsedOffset;proto$1.hasAlignedHourOffset=hasAlignedHourOffset;proto$1.isDST=isDaylightSavingTime;proto$1.isLocal=isLocal;proto$1.isUtcOffset=isUtcOffset;proto$1.isUtc=isUtc;proto$1.isUTC=isUtc;proto$1.zoneAbbr=getZoneAbbr;proto$1.zoneName=getZoneName;proto$1.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto$1.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto$1.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto$1.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto$1.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(_e){return createLocal(_e*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(_e){return _e}var proto$1$1=Locale.prototype;proto$1$1.calendar=calendar;proto$1$1.longDateFormat=longDateFormat;proto$1$1.invalidDate=invalidDate;proto$1$1.ordinal=ordinal;proto$1$1.preparse=preParsePostFormat;proto$1$1.postformat=preParsePostFormat;proto$1$1.relativeTime=relativeTime;proto$1$1.pastFuture=pastFuture;proto$1$1.set=set$1;proto$1$1.eras=localeEras;proto$1$1.erasParse=localeErasParse;proto$1$1.erasConvertYear=localeErasConvertYear;proto$1$1.erasAbbrRegex=erasAbbrRegex;proto$1$1.erasNameRegex=erasNameRegex;proto$1$1.erasNarrowRegex=erasNarrowRegex;proto$1$1.months=localeMonths;proto$1$1.monthsShort=localeMonthsShort;proto$1$1.monthsParse=localeMonthsParse;proto$1$1.monthsRegex=monthsRegex;proto$1$1.monthsShortRegex=monthsShortRegex;proto$1$1.week=localeWeek;proto$1$1.firstDayOfYear=localeFirstDayOfYear;proto$1$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1$1.weekdays=localeWeekdays;proto$1$1.weekdaysMin=localeWeekdaysMin;proto$1$1.weekdaysShort=localeWeekdaysShort;proto$1$1.weekdaysParse=localeWeekdaysParse;proto$1$1.weekdaysRegex=weekdaysRegex;proto$1$1.weekdaysShortRegex=weekdaysShortRegex;proto$1$1.weekdaysMinRegex=weekdaysMinRegex;proto$1$1.isPM=localeIsPM;proto$1$1.meridiem=localeMeridiem;function get$1$1(_e,et,tt,nt){var at=getLocale(),it=createUTC().set(nt,et);return at[tt](it,_e)}function listMonthsImpl(_e,et,tt){if(isNumber$1(_e)&&(et=_e,_e=void 0),_e=_e||"",et!=null)return get$1$1(_e,et,tt,"month");var nt,at=[];for(nt=0;nt<12;nt++)at[nt]=get$1$1(_e,nt,tt,"month");return at}function listWeekdaysImpl(_e,et,tt,nt){typeof _e=="boolean"?(isNumber$1(et)&&(tt=et,et=void 0),et=et||""):(et=_e,tt=et,_e=!1,isNumber$1(et)&&(tt=et,et=void 0),et=et||"");var at=getLocale(),it=_e?at._week.dow:0,ot,st=[];if(tt!=null)return get$1$1(et,(tt+it)%7,nt,"day");for(ot=0;ot<7;ot++)st[ot]=get$1$1(et,(ot+it)%7,nt,"day");return st}function listMonths(_e,et){return listMonthsImpl(_e,et,"months")}function listMonthsShort(_e,et){return listMonthsImpl(_e,et,"monthsShort")}function listWeekdays(_e,et,tt){return listWeekdaysImpl(_e,et,tt,"weekdays")}function listWeekdaysShort(_e,et,tt){return listWeekdaysImpl(_e,et,tt,"weekdaysShort")}function listWeekdaysMin(_e,et,tt){return listWeekdaysImpl(_e,et,tt,"weekdaysMin")}getSetGlobalLocale("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 et=_e%10,tt=toInt(_e%100/10)===1?"th":et===1?"st":et===2?"nd":et===3?"rd":"th";return _e+tt}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs$2=Math.abs;function abs$1(){var _e=this._data;return this._milliseconds=mathAbs$2(this._milliseconds),this._days=mathAbs$2(this._days),this._months=mathAbs$2(this._months),_e.milliseconds=mathAbs$2(_e.milliseconds),_e.seconds=mathAbs$2(_e.seconds),_e.minutes=mathAbs$2(_e.minutes),_e.hours=mathAbs$2(_e.hours),_e.months=mathAbs$2(_e.months),_e.years=mathAbs$2(_e.years),this}function addSubtract$1(_e,et,tt,nt){var at=createDuration(et,tt);return _e._milliseconds+=nt*at._milliseconds,_e._days+=nt*at._days,_e._months+=nt*at._months,_e._bubble()}function add$1$1(_e,et){return addSubtract$1(this,_e,et,1)}function subtract$1(_e,et){return addSubtract$1(this,_e,et,-1)}function absCeil(_e){return _e<0?Math.floor(_e):Math.ceil(_e)}function bubble(){var _e=this._milliseconds,et=this._days,tt=this._months,nt=this._data,at,it,ot,st,ct;return _e>=0&&et>=0&&tt>=0||_e<=0&&et<=0&&tt<=0||(_e+=absCeil(monthsToDays(tt)+et)*864e5,et=0,tt=0),nt.milliseconds=_e%1e3,at=absFloor(_e/1e3),nt.seconds=at%60,it=absFloor(at/60),nt.minutes=it%60,ot=absFloor(it/60),nt.hours=ot%24,et+=absFloor(ot/24),ct=absFloor(daysToMonths(et)),tt+=ct,et-=absCeil(monthsToDays(ct)),st=absFloor(tt/12),tt%=12,nt.days=et,nt.months=tt,nt.years=st,this}function daysToMonths(_e){return _e*4800/146097}function monthsToDays(_e){return _e*146097/4800}function as(_e){if(!this.isValid())return NaN;var et,tt,nt=this._milliseconds;if(_e=normalizeUnits(_e),_e==="month"||_e==="quarter"||_e==="year")switch(et=this._days+nt/864e5,tt=this._months+daysToMonths(et),_e){case"month":return tt;case"quarter":return tt/3;case"year":return tt/12}else switch(et=this._days+Math.round(monthsToDays(this._months)),_e){case"week":return et/7+nt/6048e5;case"day":return et+nt/864e5;case"hour":return et*24+nt/36e5;case"minute":return et*1440+nt/6e4;case"second":return et*86400+nt/1e3;case"millisecond":return Math.floor(et*864e5)+nt;default:throw new Error("Unknown unit "+_e)}}function valueOf$1(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6:NaN}function makeAs(_e){return function(){return this.as(_e)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function clone$1$1(){return createDuration(this)}function get$2(_e){return _e=normalizeUnits(_e),this.isValid()?this[_e+"s"]():NaN}function makeGetter(_e){return function(){return this.isValid()?this._data[_e]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round$4=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(_e,et,tt,nt,at){return at.relativeTime(et||1,!!tt,_e,nt)}function relativeTime$1(_e,et,tt,nt){var at=createDuration(_e).abs(),it=round$4(at.as("s")),ot=round$4(at.as("m")),st=round$4(at.as("h")),ct=round$4(at.as("d")),dt=round$4(at.as("M")),ht=round$4(at.as("w")),pt=round$4(at.as("y")),mt=it<=tt.ss&&["s",it]||it<tt.s&&["ss",it]||ot<=1&&["m"]||ot<tt.m&&["mm",ot]||st<=1&&["h"]||st<tt.h&&["hh",st]||ct<=1&&["d"]||ct<tt.d&&["dd",ct];return tt.w!=null&&(mt=mt||ht<=1&&["w"]||ht<tt.w&&["ww",ht]),mt=mt||dt<=1&&["M"]||dt<tt.M&&["MM",dt]||pt<=1&&["y"]||["yy",pt],mt[2]=et,mt[3]=+_e>0,mt[4]=nt,substituteTimeAgo.apply(null,mt)}function getSetRelativeTimeRounding(_e){return _e===void 0?round$4:typeof _e=="function"?(round$4=_e,!0):!1}function getSetRelativeTimeThreshold(_e,et){return thresholds[_e]===void 0?!1:et===void 0?thresholds[_e]:(thresholds[_e]=et,_e==="s"&&(thresholds.ss=et-1),!0)}function humanize(_e,et){if(!this.isValid())return this.localeData().invalidDate();var tt=!1,nt=thresholds,at,it;return typeof _e=="object"&&(et=_e,_e=!1),typeof _e=="boolean"&&(tt=_e),typeof et=="object"&&(nt=Object.assign({},thresholds,et),et.s!=null&&et.ss==null&&(nt.ss=et.s-1)),at=this.localeData(),it=relativeTime$1(this,!tt,nt,at),tt&&(it=at.pastFuture(+this,it)),at.postformat(it)}var abs$1$1=Math.abs;function sign(_e){return(_e>0)-(_e<0)||+_e}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var _e=abs$1$1(this._milliseconds)/1e3,et=abs$1$1(this._days),tt=abs$1$1(this._months),nt,at,it,ot,st=this.asSeconds(),ct,dt,ht,pt;return st?(nt=absFloor(_e/60),at=absFloor(nt/60),_e%=60,nt%=60,it=absFloor(tt/12),tt%=12,ot=_e?_e.toFixed(3).replace(/\.?0+$/,""):"",ct=st<0?"-":"",dt=sign(this._months)!==sign(st)?"-":"",ht=sign(this._days)!==sign(st)?"-":"",pt=sign(this._milliseconds)!==sign(st)?"-":"",ct+"P"+(it?dt+it+"Y":"")+(tt?dt+tt+"M":"")+(et?ht+et+"D":"")+(at||nt||_e?"T":"")+(at?pt+at+"H":"")+(nt?pt+nt+"M":"")+(_e?pt+ot+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs$1;proto$2.add=add$1$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(_e,et,tt){tt._d=new Date(parseFloat(_e)*1e3)});addParseToken("x",function(_e,et,tt){tt._d=new Date(toInt(_e))});//! moment.js
328
- hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min$2;hooks.max=max$2;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.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"};if(typeof moment>"u"&&typeof require=="function")var moment=require("moment");function momentPreciseRangePlugin(_e){var et={nodiff:"",year:"year",years:"years",month:"month",months:"months",day:"day",days:"days",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds",delimiter:" "};function tt(it,ot){return it+" "+et[ot+(it===1?"":"s")]}function nt(it,ot,st,ct,dt,ht){var pt=[];return it&&pt.push(tt(it,"year")),ot&&pt.push(tt(ot,"month")),st&&pt.push(tt(st,"day")),ct&&pt.push(tt(ct,"hour")),dt&&pt.push(tt(dt,"minute")),ht&&pt.push(tt(ht,"second")),pt.join(et.delimiter)}function at(it,ot,st,ct,dt,ht,pt){return{years:it,months:ot,days:st,hours:ct,minutes:dt,seconds:ht,firstDateWasLater:pt}}_e.fn.preciseDiff=function(it,ot){return _e.preciseDiff(this,it,ot)},_e.preciseDiff=function(it,ot,st){var ct=_e(it),dt=_e(ot),ht;if(ct.add(dt.utcOffset()-ct.utcOffset(),"minutes"),ct.isSame(dt))return st?at(0,0,0,0,0,0,!1):et.nodiff;if(ct.isAfter(dt)){var pt=ct;ct=dt,dt=pt,ht=!0}else ht=!1;var mt=dt.year()-ct.year(),vt=dt.month()-ct.month(),bt=dt.date()-ct.date(),_t=dt.hour()-ct.hour(),wt=dt.minute()-ct.minute(),Et=dt.second()-ct.second();if(Et<0&&(Et=60+Et,wt--),wt<0&&(wt=60+wt,_t--),_t<0&&(_t=24+_t,bt--),bt<0){var St=_e(dt.year()+"-"+(dt.month()+1),"YYYY-MM").subtract(1,"M").daysInMonth();St<ct.date()?bt=St+bt+(ct.date()-St):bt=St+bt,vt--}return vt<0&&(vt=12+vt,mt--),st?at(mt,vt,bt,_t,wt,Et,ht):nt(mt,vt,bt,_t,wt,Et)}}momentPreciseRangePlugin(hooks);const DATE_FORMAT_LONG="MMMM D, YYYY",DATE_FORMAT_SHORT="MMM D, YYYY";function isValidAddress(_e){return/^(0x)?[0-9a-f]{40}$/i.test(_e)}function getPreciseDiff(_e,et){const tt=hooks.preciseDiff(hooks(_e*1e3),hooks(et*1e3),!0);return{months:tt.years*12+tt.months,days:tt.days}}function openInNewTab(_e,et=null){window.open(_e,"_blank").focus(),et&&et.preventDefault()}function copyToClipboard(_e){return navigator&&navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(_e):Promise.reject("The Clipboard API is not available.")}const AddressIcon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/address_icon-f840b960.svg",onlyMobileMaxWidth=767;let CURRENT_WIDTH=onlyMobileMaxWidth;function useResponsive(){const[_e,et]=reactExports.useState(CURRENT_WIDTH);return reactExports.useEffect(()=>{function tt(){const nt=window.innerWidth;CURRENT_WIDTH!==nt&&(CURRENT_WIDTH=nt),_e!==nt&&et(nt)}return tt(),window.addEventListener("resize",tt),()=>{window.removeEventListener("resize",tt)}},[_e]),reactExports.useCallback(function(nt={}){return!(nt.minWidth!==void 0&&_e<nt.minWidth||nt.maxWidth!==void 0&&_e>nt.maxWidth)},[_e])}const ChangeBeneficiaryModal$1="";var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME="[big.js] ",INVALID=NAME+"Invalid ",INVALID_DP=INVALID+"decimal places",INVALID_RM=INVALID+"rounding mode",DIV_BY_ZERO=NAME+"Division by zero",P={},UNDEFINED$1=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function _e(et){var tt=this;if(!(tt instanceof _e))return et===UNDEFINED$1?_Big_():new _e(et);if(et instanceof _e)tt.s=et.s,tt.e=et.e,tt.c=et.c.slice();else{if(typeof et!="string"){if(_e.strict===!0&&typeof et!="bigint")throw TypeError(INVALID+"value");et=et===0&&1/et<0?"-0":String(et)}parse$1(tt,et)}tt.constructor=_e}return _e.prototype=P,_e.DP=DP,_e.RM=RM,_e.NE=NE,_e.PE=PE,_e.strict=STRICT,_e.roundDown=0,_e.roundHalfUp=1,_e.roundHalfEven=2,_e.roundUp=3,_e}function parse$1(_e,et){var tt,nt,at;if(!NUMERIC.test(et))throw Error(INVALID+"number");for(_e.s=et.charAt(0)=="-"?(et=et.slice(1),-1):1,(tt=et.indexOf("."))>-1&&(et=et.replace(".","")),(nt=et.search(/e/i))>0?(tt<0&&(tt=nt),tt+=+et.slice(nt+1),et=et.substring(0,nt)):tt<0&&(tt=et.length),at=et.length,nt=0;nt<at&&et.charAt(nt)=="0";)++nt;if(nt==at)_e.c=[_e.e=0];else{for(;at>0&&et.charAt(--at)=="0";);for(_e.e=tt-nt-1,_e.c=[],tt=0;nt<=at;)_e.c[tt++]=+et.charAt(nt++)}return _e}function round$3(_e,et,tt,nt){var at=_e.c;if(tt===UNDEFINED$1&&(tt=_e.constructor.RM),tt!==0&&tt!==1&&tt!==2&&tt!==3)throw Error(INVALID_RM);if(et<1)nt=tt===3&&(nt||!!at[0])||et===0&&(tt===1&&at[0]>=5||tt===2&&(at[0]>5||at[0]===5&&(nt||at[1]!==UNDEFINED$1))),at.length=1,nt?(_e.e=_e.e-et+1,at[0]=1):at[0]=_e.e=0;else if(et<at.length){if(nt=tt===1&&at[et]>=5||tt===2&&(at[et]>5||at[et]===5&&(nt||at[et+1]!==UNDEFINED$1||at[et-1]&1))||tt===3&&(nt||!!at[0]),at.length=et,nt){for(;++at[--et]>9;)if(at[et]=0,et===0){++_e.e,at.unshift(1);break}}for(et=at.length;!at[--et];)at.pop()}return _e}function stringify$1(_e,et,tt){var nt=_e.e,at=_e.c.join(""),it=at.length;if(et)at=at.charAt(0)+(it>1?"."+at.slice(1):"")+(nt<0?"e":"e+")+nt;else if(nt<0){for(;++nt;)at="0"+at;at="0."+at}else if(nt>0)if(++nt>it)for(nt-=it;nt--;)at+="0";else nt<it&&(at=at.slice(0,nt)+"."+at.slice(nt));else it>1&&(at=at.charAt(0)+"."+at.slice(1));return _e.s<0&&tt?"-"+at:at}P.abs=function(){var _e=new this.constructor(this);return _e.s=1,_e};P.cmp=function(_e){var et,tt=this,nt=tt.c,at=(_e=new tt.constructor(_e)).c,it=tt.s,ot=_e.s,st=tt.e,ct=_e.e;if(!nt[0]||!at[0])return nt[0]?it:at[0]?-ot:0;if(it!=ot)return it;if(et=it<0,st!=ct)return st>ct^et?1:-1;for(ot=(st=nt.length)<(ct=at.length)?st:ct,it=-1;++it<ot;)if(nt[it]!=at[it])return nt[it]>at[it]^et?1:-1;return st==ct?0:st>ct^et?1:-1};P.div=function(_e){var et=this,tt=et.constructor,nt=et.c,at=(_e=new tt(_e)).c,it=et.s==_e.s?1:-1,ot=tt.DP;if(ot!==~~ot||ot<0||ot>MAX_DP)throw Error(INVALID_DP);if(!at[0])throw Error(DIV_BY_ZERO);if(!nt[0])return _e.s=it,_e.c=[_e.e=0],_e;var st,ct,dt,ht,pt,mt=at.slice(),vt=st=at.length,bt=nt.length,_t=nt.slice(0,st),wt=_t.length,Et=_e,St=Et.c=[],Tt=0,Ct=ot+(Et.e=et.e-_e.e)+1;for(Et.s=it,it=Ct<0?0:Ct,mt.unshift(0);wt++<st;)_t.push(0);do{for(dt=0;dt<10;dt++){if(st!=(wt=_t.length))ht=st>wt?1:-1;else for(pt=-1,ht=0;++pt<st;)if(at[pt]!=_t[pt]){ht=at[pt]>_t[pt]?1:-1;break}if(ht<0){for(ct=wt==st?at:mt;wt;){if(_t[--wt]<ct[wt]){for(pt=wt;pt&&!_t[--pt];)_t[pt]=9;--_t[pt],_t[wt]+=10}_t[wt]-=ct[wt]}for(;!_t[0];)_t.shift()}else break}St[Tt++]=ht?dt:++dt,_t[0]&&ht?_t[wt]=nt[vt]||0:_t=[nt[vt]]}while((vt++<bt||_t[0]!==UNDEFINED$1)&&it--);return!St[0]&&Tt!=1&&(St.shift(),Et.e--,Ct--),Tt>Ct&&round$3(Et,Ct,tt.RM,_t[0]!==UNDEFINED$1),Et};P.eq=function(_e){return this.cmp(_e)===0};P.gt=function(_e){return this.cmp(_e)>0};P.gte=function(_e){return this.cmp(_e)>-1};P.lt=function(_e){return this.cmp(_e)<0};P.lte=function(_e){return this.cmp(_e)<1};P.minus=P.sub=function(_e){var et,tt,nt,at,it=this,ot=it.constructor,st=it.s,ct=(_e=new ot(_e)).s;if(st!=ct)return _e.s=-ct,it.plus(_e);var dt=it.c.slice(),ht=it.e,pt=_e.c,mt=_e.e;if(!dt[0]||!pt[0])return pt[0]?_e.s=-ct:dt[0]?_e=new ot(it):_e.s=1,_e;if(st=ht-mt){for((at=st<0)?(st=-st,nt=dt):(mt=ht,nt=pt),nt.reverse(),ct=st;ct--;)nt.push(0);nt.reverse()}else for(tt=((at=dt.length<pt.length)?dt:pt).length,st=ct=0;ct<tt;ct++)if(dt[ct]!=pt[ct]){at=dt[ct]<pt[ct];break}if(at&&(nt=dt,dt=pt,pt=nt,_e.s=-_e.s),(ct=(tt=pt.length)-(et=dt.length))>0)for(;ct--;)dt[et++]=0;for(ct=et;tt>st;){if(dt[--tt]<pt[tt]){for(et=tt;et&&!dt[--et];)dt[et]=9;--dt[et],dt[tt]+=10}dt[tt]-=pt[tt]}for(;dt[--ct]===0;)dt.pop();for(;dt[0]===0;)dt.shift(),--mt;return dt[0]||(_e.s=1,dt=[mt=0]),_e.c=dt,_e.e=mt,_e};P.mod=function(_e){var et,tt=this,nt=tt.constructor,at=tt.s,it=(_e=new nt(_e)).s;if(!_e.c[0])throw Error(DIV_BY_ZERO);return tt.s=_e.s=1,et=_e.cmp(tt)==1,tt.s=at,_e.s=it,et?new nt(tt):(at=nt.DP,it=nt.RM,nt.DP=nt.RM=0,tt=tt.div(_e),nt.DP=at,nt.RM=it,this.minus(tt.times(_e)))};P.neg=function(){var _e=new this.constructor(this);return _e.s=-_e.s,_e};P.plus=P.add=function(_e){var et,tt,nt,at=this,it=at.constructor;if(_e=new it(_e),at.s!=_e.s)return _e.s=-_e.s,at.minus(_e);var ot=at.e,st=at.c,ct=_e.e,dt=_e.c;if(!st[0]||!dt[0])return dt[0]||(st[0]?_e=new it(at):_e.s=at.s),_e;if(st=st.slice(),et=ot-ct){for(et>0?(ct=ot,nt=dt):(et=-et,nt=st),nt.reverse();et--;)nt.push(0);nt.reverse()}for(st.length-dt.length<0&&(nt=dt,dt=st,st=nt),et=dt.length,tt=0;et;st[et]%=10)tt=(st[--et]=st[et]+dt[et]+tt)/10|0;for(tt&&(st.unshift(tt),++ct),et=st.length;st[--et]===0;)st.pop();return _e.c=st,_e.e=ct,_e};P.pow=function(_e){var et=this,tt=new et.constructor("1"),nt=tt,at=_e<0;if(_e!==~~_e||_e<-MAX_POWER||_e>MAX_POWER)throw Error(INVALID+"exponent");for(at&&(_e=-_e);_e&1&&(nt=nt.times(et)),_e>>=1,!!_e;)et=et.times(et);return at?tt.div(nt):nt};P.prec=function(_e,et){if(_e!==~~_e||_e<1||_e>MAX_DP)throw Error(INVALID+"precision");return round$3(new this.constructor(this),_e,et)};P.round=function(_e,et){if(_e===UNDEFINED$1)_e=0;else if(_e!==~~_e||_e<-MAX_DP||_e>MAX_DP)throw Error(INVALID_DP);return round$3(new this.constructor(this),_e+this.e+1,et)};P.sqrt=function(){var _e,et,tt,nt=this,at=nt.constructor,it=nt.s,ot=nt.e,st=new at("0.5");if(!nt.c[0])return new at(nt);if(it<0)throw Error(NAME+"No square root");it=Math.sqrt(nt+""),it===0||it===1/0?(et=nt.c.join(""),et.length+ot&1||(et+="0"),it=Math.sqrt(et),ot=((ot+1)/2|0)-(ot<0||ot&1),_e=new at((it==1/0?"5e":(it=it.toExponential()).slice(0,it.indexOf("e")+1))+ot)):_e=new at(it+""),ot=_e.e+(at.DP+=4);do tt=_e,_e=st.times(tt.plus(nt.div(tt)));while(tt.c.slice(0,ot).join("")!==_e.c.slice(0,ot).join(""));return round$3(_e,(at.DP-=4)+_e.e+1,at.RM)};P.times=P.mul=function(_e){var et,tt=this,nt=tt.constructor,at=tt.c,it=(_e=new nt(_e)).c,ot=at.length,st=it.length,ct=tt.e,dt=_e.e;if(_e.s=tt.s==_e.s?1:-1,!at[0]||!it[0])return _e.c=[_e.e=0],_e;for(_e.e=ct+dt,ot<st&&(et=at,at=it,it=et,dt=ot,ot=st,st=dt),et=new Array(dt=ot+st);dt--;)et[dt]=0;for(ct=st;ct--;){for(st=0,dt=ot+ct;dt>ct;)st=et[dt]+it[ct]*at[dt-ct-1]+st,et[dt--]=st%10,st=st/10|0;et[dt]=st}for(st?++_e.e:et.shift(),ct=et.length;!et[--ct];)et.pop();return _e.c=et,_e};P.toExponential=function(_e,et){var tt=this,nt=tt.c[0];if(_e!==UNDEFINED$1){if(_e!==~~_e||_e<0||_e>MAX_DP)throw Error(INVALID_DP);for(tt=round$3(new tt.constructor(tt),++_e,et);tt.c.length<_e;)tt.c.push(0)}return stringify$1(tt,!0,!!nt)};P.toFixed=function(_e,et){var tt=this,nt=tt.c[0];if(_e!==UNDEFINED$1){if(_e!==~~_e||_e<0||_e>MAX_DP)throw Error(INVALID_DP);for(tt=round$3(new tt.constructor(tt),_e+tt.e+1,et),_e=_e+tt.e+1;tt.c.length<_e;)tt.c.push(0)}return stringify$1(tt,!1,!!nt)};P[Symbol.for("nodejs.util.inspect.custom")]=P.toJSON=P.toString=function(){var _e=this,et=_e.constructor;return stringify$1(_e,_e.e<=et.NE||_e.e>=et.PE,!!_e.c[0])};P.toNumber=function(){var _e=Number(stringify$1(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(_e.toString()))throw Error(NAME+"Imprecise conversion");return _e};P.toPrecision=function(_e,et){var tt=this,nt=tt.constructor,at=tt.c[0];if(_e!==UNDEFINED$1){if(_e!==~~_e||_e<1||_e>MAX_DP)throw Error(INVALID+"precision");for(tt=round$3(new nt(tt),_e,et);tt.c.length<_e;)tt.c.push(0)}return stringify$1(tt,_e<=tt.e||tt.e<=nt.NE||tt.e>=nt.PE,!!at)};P.valueOf=function(){var _e=this,et=_e.constructor;if(et.strict===!0)throw Error(NAME+"valueOf disallowed");return stringify$1(_e,_e.e<=et.NE||_e.e>=et.PE,!0)};var Big=_Big_();const manaAbi=[{constant:!0,inputs:[],name:"mintingFinished",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_amount",type:"uint256"}],name:"mint",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_value",type:"uint256"}],name:"burn",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,type:"function"},{constant:!1,inputs:[],name:"finishMinting",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"remaining",type:"uint256"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[],name:"MintFinished",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"burner",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],daiAbi=[{inputs:[{internalType:"uint256",name:"chainId_",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"src",type:"address"},{indexed:!0,internalType:"address",name:"guy",type:"address"},{indexed:!1,internalType:"uint256",name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!0,inputs:[{indexed:!0,internalType:"bytes4",name:"sig",type:"bytes4"},{indexed:!0,internalType:"address",name:"usr",type:"address"},{indexed:!0,internalType:"bytes32",name:"arg1",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"arg2",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"}],name:"LogNote",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"src",type:"address"},{indexed:!0,internalType:"address",name:"dst",type:"address"},{indexed:!1,internalType:"uint256",name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"burn",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"guy",type:"address"}],name:"deny",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"mint",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"src",type:"address"},{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"move",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"holder",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"bool",name:"allowed",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"pull",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"push",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"guy",type:"address"}],name:"rely",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"src",type:"address"},{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"wards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],usdtAbi=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_upgradedAddress",type:"address"}],name:"deprecate",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"deprecated",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_evilUser",type:"address"}],name:"addBlackList",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"upgradedAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balances",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"maximumFee",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"_totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_maker",type:"address"}],name:"getBlackListStatus",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowed",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"who",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getOwner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newBasisPoints",type:"uint256"},{name:"newMaxFee",type:"uint256"}],name:"setParams",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint256"}],name:"issue",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint256"}],name:"redeem",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"remaining",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"basisPointsRate",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"isBlackListed",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_clearedUser",type:"address"}],name:"removeBlackList",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"MAX_UINT",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_blackListedUser",type:"address"}],name:"destroyBlackFunds",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"_initialSupply",type:"uint256"},{name:"_name",type:"string"},{name:"_symbol",type:"string"},{name:"_decimals",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"Issue",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"Redeem",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newAddress",type:"address"}],name:"Deprecate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"feeBasisPoints",type:"uint256"},{indexed:!1,name:"maxFee",type:"uint256"}],name:"Params",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"_blackListedUser",type:"address"},{indexed:!1,name:"_balance",type:"uint256"}],name:"DestroyedBlackFunds",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"_user",type:"address"}],name:"AddedBlackList",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"_user",type:"address"}],name:"RemovedBlackList",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"}],usdcAbi=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationUsed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"Blacklisted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newBlacklister",type:"address"}],name:"BlacklisterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"burner",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newMasterMinter",type:"address"}],name:"MasterMinterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!1,internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"MinterConfigured",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldMinter",type:"address"}],name:"MinterRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"PauserChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRescuer",type:"address"}],name:"RescuerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"UnBlacklisted",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{inputs:[],name:"CANCEL_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"RECEIVE_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TRANSFER_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"authorizationState",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"blacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"blacklister",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"cancelAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"},{internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"configureMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"currency",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"decrement",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"increment",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"tokenName",type:"string"},{internalType:"string",name:"tokenSymbol",type:"string"},{internalType:"string",name:"tokenCurrency",type:"string"},{internalType:"uint8",name:"tokenDecimals",type:"uint8"},{internalType:"address",name:"newMasterMinter",type:"address"},{internalType:"address",name:"newPauser",type:"address"},{internalType:"address",name:"newBlacklister",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newName",type:"string"}],name:"initializeV2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"lostAndFound",type:"address"}],name:"initializeV2_1",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"isBlacklisted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"masterMinter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"minterAllowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauser",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"receiveWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"removeMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenContract",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"rescueERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rescuer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"transferWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"unBlacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newBlacklister",type:"address"}],name:"updateBlacklister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newMasterMinter",type:"address"}],name:"updateMasterMinter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newPauser",type:"address"}],name:"updatePauser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newRescuer",type:"address"}],name:"updateRescuer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],vestingAbi=[{constant:!0,inputs:[],name:"duration",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"cliff",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"beneficiary",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"terraformReserve",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"returnVesting",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"vestedAmount",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"releasableAmount",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"revoked",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"release",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"revocable",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"released",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"},{name:"amount",type:"uint256"}],name:"releaseForeignToken",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"revoke",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"start",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint256"}],name:"lockMana",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"target",type:"address"}],name:"releaseTo",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"target",type:"address"}],name:"changeBeneficiary",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"token",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[{name:"_beneficiary",type:"address"},{name:"_start",type:"uint256"},{name:"_cliff",type:"uint256"},{name:"_duration",type:"uint256"},{name:"_revocable",type:"bool"},{name:"_token",type:"address"},{name:"_returnVesting",type:"address"},{name:"_terraformReserve",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"LockedMANA",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"Released",type:"event"},{anonymous:!1,inputs:[],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"},{indexed:!0,name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"}],periodicTokenVestingAbi=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_newBeneficiary",type:"address"}],name:"BeneficiaryUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"_amount",type:"uint256"}],name:"Released",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_receiver",type:"address"},{indexed:!0,internalType:"contract IERC20",name:"_token",type:"address"},{indexed:!1,internalType:"uint256",name:"_amount",type:"uint256"}],name:"ReleasedForeign",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"_amount",type:"uint256"}],name:"ReleasedSurplus",type:"event"},{anonymous:!1,inputs:[],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"getBeneficiary",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCliff",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsLinear",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsPausable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsRevocable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsRevoked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReleasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStart",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStop",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getToken",outputs:[{internalType:"contract IERC20",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTotal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVested",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVestedPerPeriod",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_beneficiary",type:"address"},{internalType:"address",name:"_token",type:"address"},{internalType:"bool",name:"_isRevocable",type:"bool"},{internalType:"bool",name:"_isPausable",type:"bool"},{internalType:"bool",name:"_isLinear",type:"bool"},{internalType:"uint256",name:"_start",type:"uint256"},{internalType:"uint256",name:"_period",type:"uint256"},{internalType:"uint256",name:"_cliff",type:"uint256"},{internalType:"uint256[]",name:"_vestedPerPeriod",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"_token",type:"address"},{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"releaseForeignToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"releaseSurplus",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revoke",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newBeneficiary",type:"address"}],name:"setBeneficiary",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"}],TokenAddressByChainId={1:{MANA:"0x0f5d2fb29fb7d3cfee444a200298f468908cc942",DAI:"0x6b175474e89094c44da98b954eedeac495271d0f",USDT:"0xdac17f958d2ee523a2206206994597c13d831ec7",USDC:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"},11155111:{MANA:"0xfa04d2e2ba9aec166c93dfeeba7427b2303befa9",DAI:"0x0000000000000000000000000000000000000000",USDT:"0x0000000000000000000000000000000000000000",USDC:"0x0000000000000000000000000000000000000000"}},ContractVersion={V1:"v1",V2:"v2"},TopicByVersion={[ContractVersion.V1]:{RELEASE:"0xfb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c565",REVOKE:"0x44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee6",TRANSFER_OWNERSHIP:"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",PAUSED:"0x0000000000000000000000000000000000000000000000000000000000000000",UNPAUSED:"0x0000000000000000000000000000000000000000000000000000000000000000"},[ContractVersion.V2]:{RELEASE:"0xb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e",REVOKE:"0x44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee6",TRANSFER_OWNERSHIP:"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",PAUSED:"0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258",UNPAUSED:"0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa"}},DAY_IN_SECONDS=86400;function getDurationInDays(_e){return Math.ceil(_e/DAY_IN_SECONDS)+1}function getCliffEndDay(_e,et){return Math.floor((et-_e)/DAY_IN_SECONDS)}function getDaysFromStart(_e){return Math.ceil((new Date-new Date(_e*1e3))/(DAY_IN_SECONDS*1e3))}function getDaysFromRevoke(_e,et){return Math.floor((_e-et)/DAY_IN_SECONDS)+1}function toDataArray(_e,et){return Array.from(new Array(_e>=0?_e:0),et)}function emptyDataArray(_e){return toDataArray(_e,()=>"-")}async function fetchTicker(_e="decentraland"){try{const tt=await(await fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${_e}&vs_currencies=usd`,{mode:"cors"})).json(),{usd:nt}=tt[_e];return nt}catch{return 0}}function getEth(){return new JsonRpcProvider$1("https://rpc.decentraland.org/mainnet")}async function fetchTokenContracts(_e=1){if(_e!==1)throw new Error(`Unsupported chain id ${_e}`);const et=getEth(),tt=TokenAddressByChainId[_e];return{[tt.MANA]:new Contract$1(tt.MANA,manaAbi,et),[tt.DAI]:new Contract$1(tt.DAI,daiAbi,et),[tt.USDT]:new Contract$1(tt.USDT,usdtAbi,et),[tt.USDC]:new Contract$1(tt.USDC,usdcAbi,et)}}async function fetchContract(_e,et){const tt=getEth();let nt,at;try{at=new Contract$1(_e,periodicTokenVestingAbi,tt),await at.getIsLinear(),nt=ContractVersion.V2}catch{at=new Contract$1(_e,vestingAbi,tt),nt=ContractVersion.V1}let it;if(nt===ContractVersion.V1?it=await at.token():it=await at.getToken(),it=it.toLowerCase(),!(it in et))throw new Error("Token not supported");const ot=await et[it].decimals(),st={v1:{duration:()=>at.duration(),cliff:()=>at.cliff(),beneficiary:()=>at.beneficiary(),vestedAmount:()=>at.vestedAmount(),releasableAmount:()=>at.releasableAmount(),revoked:()=>at.revoked(),revocable:()=>at.revocable(),released:()=>at.released(),start:()=>at.start(),periodDuration:()=>Promise.resolve("0"),vestedPerPeriod:()=>Promise.resolve([]),paused:()=>Promise.resolve(!1),pausable:()=>Promise.resolve(!1),stop:()=>Promise.resolve("0"),linear:()=>Promise.resolve(!0)},v2:{duration:()=>Promise.resolve("0"),cliff:()=>at.getCliff(),beneficiary:()=>at.getBeneficiary(),vestedAmount:()=>at.getVested(),releasableAmount:()=>at.getReleasable(),revoked:()=>at.getIsRevoked(),revocable:()=>at.getIsRevocable(),released:()=>at.getReleased(),start:()=>at.getStart(),periodDuration:()=>at.getPeriod(),vestedPerPeriod:()=>at.getVestedPerPeriod(),paused:()=>at.paused(),pausable:()=>at.getIsPausable(),stop:()=>at.getStop(),linear:()=>at.getIsLinear()}},[ct,dt,ht,pt,mt,vt,bt,_t,wt,Et,St,Tt,Ct,Nt,Dt,kt,Ft,jt,Gt]=await Promise.all([et[it].symbol(),et[it].balanceOf(_e),getLogs(_e,ot,nt),at.owner(),st[nt].duration(),st[nt].cliff(),st[nt].beneficiary(),st[nt].vestedAmount(),st[nt].releasableAmount(),st[nt].revoked(),st[nt].revocable(),st[nt].released(),st[nt].start(),st[nt].periodDuration(),st[nt].vestedPerPeriod(),st[nt].paused(),st[nt].pausable(),st[nt].stop(),st[nt].linear()]),Rt=Number(ot),yt={version:nt,symbol:ct,address:_e,balance:Number(dt)/10**Rt,duration:nt===ContractVersion.V1?parseInt(mt,10):Dt.length*parseInt(Nt,10),cliff:nt===ContractVersion.V1?parseInt(vt,10):parseInt(vt,10)+parseInt(Ct,10),beneficiary:bt,vestedAmount:Number(_t)/10**Rt,releasableAmount:Number(wt)/10**Rt,revoked:Et,revocable:St,owner:pt,released:Number(Tt)/10**Rt,start:parseInt(Ct,10),logs:ht,periodDuration:Nt,vestedPerPeriod:Dt.map(xt=>parseInt(xt,10)/10**Rt),paused:kt,pausable:Ft,stop:parseInt(jt,10),linear:Gt,total:void 0},$t=()=>{if(nt===ContractVersion.V1){if(yt.revoked){const xt=yt.logs.find(Ot=>Ot.topic===TopicByVersion[nt].REVOKE),{timestamp:At}=xt.data,Mt=getDaysFromRevoke(At,yt.start),It=getDurationInDays(yt.duration),Lt=yt.vestedAmount/Mt*It;return Math.floor(Lt/100)*100}return yt.balance+yt.released}return yt.vestedPerPeriod.reduce((xt,At)=>xt+At,0)};return yt.total=Number($t()),yt}async function getLogs(_e,et,tt){const nt=getEth(),at=await nt.getLogs({address:_e,fromBlock:0,toBlock:"latest"}),it=await Promise.all(at.map(dt=>nt.getBlock(dt.blockNumber))),ot=[];let st=0;const ct=TopicByVersion[tt];for(const dt in at)switch(at[dt].topics[0]){case ct.TRANSFER_OWNERSHIP:ot.push(getTransferOwnershipLog([...at[dt].topics],it[dt].timestamp,ct));break;case ct.RELEASE:const ht=getReleaseLog(et,at[dt].data,st,it[dt].timestamp,tt,ct);ot.push(ht),st=Big(ht.data.acum).mul(Big(10)**Big(et)).toNumber();break;case ct.REVOKE:ot.push(getRevokeLog(it[dt].timestamp,ct));break;case ct.PAUSED:ot.push(getPausedLog(it[dt].timestamp,ct));break;case ct.UNPAUSED:ot.push(getUnpausedLog(it[dt].timestamp,ct));break}return ot}function getTransferOwnershipLog(_e,et,tt){return{topic:tt.TRANSFER_OWNERSHIP,data:{previousOwner:_e[1].slice(0,2)+_e[1].slice(26),newOwner:_e[2].slice(0,2)+_e[2].slice(26),timestamp:et}}}function getReleaseLog(_e,et,tt,nt,at,it){const ot=Big(Number(tt)||0).div(Big(10)**Big(_e));let st,ct;return at===ContractVersion.V1?(st=Big(Number(et)||0).div(Big(10)**Big(_e)),ct=st.minus(ot)):(ct=Big(Number(et)||0).div(Big(10)**Big(_e)),st=Big(Number(tt)||0).div(Big(10)**Big(_e)).add(ct)),{topic:it.RELEASE,data:{amount:ct.toNumber(),acum:st.toNumber(),timestamp:nt}}}function getRevokeLog(_e,et){return{topic:et.REVOKE,data:{timestamp:_e}}}function getPausedLog(_e,et){return{topic:et.PAUSED,data:{timestamp:_e}}}function getUnpausedLog(_e,et){return{topic:et.UNPAUSED,data:{timestamp:_e}}}async function release(_e,et,tt){const nt=await tt.getSigner();if(et.version===ContractVersion.V1)return await new Contract$1(et.address,vestingAbi,nt).release();const at=new Contract$1(et.address,periodicTokenVestingAbi,nt),it=await at.getReleasable();return await at.release(_e,it)}async function changeBeneficiary(_e,et,tt){const nt=await tt.getSigner();return et.version===ContractVersion.V1?new Contract$1(et.address,vestingAbi,nt).changeBeneficiary(_e):new Contract$1(et.address,periodicTokenVestingAbi,nt).setBeneficiary(_e)}function isSameAddress(_e,et){return _e&&et&&_e.toLowerCase()===et.toLowerCase()}async function getEthProvider(){const _e=await getConnectedProvider();if(!_e)throw new Error("Could not get a valid connected Wallet");return new BrowserProvider(_e)}function ChangeBeneficiaryModal({open:_e,onClose:et,contract:tt}){const[nt,at]=reactExports.useState({address:"",error:!1,errorMessage:"",loading:!1,successMessage:""}),it=ht=>at(pt=>({...pt,address:ht})),ot=(ht,pt="")=>at(mt=>({...mt,error:ht,errorMessage:pt})),st=ht=>at(pt=>({...pt,loading:ht})),ct=(ht="")=>at(pt=>({...pt,successMessage:ht})),dt=async()=>{if(isValidAddress(nt.address)){st(!0),ot(!1);try{const ht=await getEthProvider();await changeBeneficiary(nt.address,tt,ht),st(!1),ct(t$2("modal.success",{address:nt.address,br:jsxRuntimeExports.jsx("br",{})}))}catch(ht){st(!1),ot(!0,ht.message)}}else ot(!0,t$2("modal.error"))};return jsxRuntimeExports.jsxs(distExports$1.Modal,{className:"changeBeneficiaryModal",size:"small",open:_e,onClose:et,closeIcon:jsxRuntimeExports.jsx(distExports$1.Close,{}),children:[jsxRuntimeExports.jsx(distExports$1.Modal.Header,{children:t$2("modal.title")}),jsxRuntimeExports.jsxs(distExports$1.Modal.Content,{children:[jsxRuntimeExports.jsx("p",{children:t$2("modal.warning")}),jsxRuntimeExports.jsx(distExports$1.Field,{onChange:(ht,pt)=>{it(pt.value),ot(!1)},label:t$2("modal.label"),placeholder:"0x...",error:nt.error,message:nt.errorMessage,loading:nt.loading,disabled:nt.loading})]}),jsxRuntimeExports.jsx(distExports$1.Modal.Actions,{children:jsxRuntimeExports.jsx(distExports$1.Button,{primary:!0,onClick:dt,disabled:nt.loading,children:t$2("modal.button")})}),jsxRuntimeExports.jsx(distExports$1.Modal.Content,{children:jsxRuntimeExports.jsx("p",{className:"success",children:nt.successMessage})})]})}const Details$2="";function addressShortener(_e){return _e.substring(0,6)+"..."+_e.substring(38,42)}function getBeneficiary(_e){return jsxRuntimeExports.jsxs("div",{className:"item beneficiary",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.beneficiary")}),jsxRuntimeExports.jsxs(distExports$1.Header,{onClick:()=>copyToClipboard(_e),style:{cursor:"pointer"},children:[jsxRuntimeExports.jsx("img",{src:AddressIcon,alt:""}),jsxRuntimeExports.jsx(distExports$1.Popup,{content:t$2("global.copied"),position:"bottom center",trigger:jsxRuntimeExports.jsx("span",{children:addressShortener(_e)}),on:"click"}),jsxRuntimeExports.jsx(Info,{message:t$2("helper.beneficiary"),position:"left center"})]})]})}function getDate(_e,et){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2(_e)}),jsxRuntimeExports.jsx(distExports$1.Header,{children:formatDate$1(new Date(et*1e3).getTime(),DATE_FORMAT_LONG)})]})}function getCliffPeriod(_e){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.cliff_period")}),jsxRuntimeExports.jsxs(distExports$1.Header,{children:[t$2("cliff.duration",{months:_e.months,days:_e.days}),jsxRuntimeExports.jsx(Info,{message:t$2("helper.cliff_period"),position:"left center"})]})]})}function getAmount(_e,et,tt,nt){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2(_e)}),jsxRuntimeExports.jsxs(distExports$1.Header,{children:[formatNumber(et,0)," ",tt,jsxRuntimeExports.jsx(Info,{message:t$2(nt),position:"left center"})]})]})}function getRevocable(_e){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.revocable")}),jsxRuntimeExports.jsx(distExports$1.Header,{children:t$2(_e?"global.yes":"global.no")})]})}function getPausable(_e){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.pausable")}),jsxRuntimeExports.jsx(distExports$1.Header,{children:t$2(_e?"global.yes":"global.no")})]})}function getActionButton(_e,et){return jsxRuntimeExports.jsx(distExports$1.Button,{basic:!0,className:"action",onClick:et,children:_e})}function Details({contract:_e,address:et}){const{version:tt,symbol:nt,released:at,start:it,cliff:ot,duration:st,releasableAmount:ct,revocable:dt,pausable:ht,total:pt,beneficiary:mt}=_e,vt=async()=>{const Nt=await getEthProvider();await release(et,_e,Nt)},bt=isSameAddress(et,mt),_t=getPreciseDiff(it,ot),Et=useResponsive()({maxWidth:onlyMobileMaxWidth}),[St,Tt]=reactExports.useState(!1),Ct=()=>Tt(!1);return jsxRuntimeExports.jsxs("div",{id:"details",className:Et&&"mobile"||"",children:[jsxRuntimeExports.jsxs("div",{className:"divToStyle",children:[getBeneficiary(mt),!Et&&bt&&getActionButton(t$2("details.change_beneficiary"),()=>Tt(!0)),jsxRuntimeExports.jsxs("div",{className:"dates",children:[getDate("details.start",it),getDate("details.end",it+st)]})]}),getCliffPeriod(_t),getAmount("details.total_vesting",pt,nt,"helper.total_vesting"),getAmount("details.released",at,nt,"helper.released"),getAmount("details.releasable",ct,nt,"helper.releasable"),!Et&&bt&&ct>0&&getActionButton(t$2("details.release_funds"),vt),getRevocable(dt),tt===ContractVersion.V2&&getPausable(ht),jsxRuntimeExports.jsx(ChangeBeneficiaryModal,{open:St,onClose:Ct,contract:_e})]})}const Details$1=React$L.memo(Details);function _interopDefault(_e){return _e&&typeof _e=="object"&&"default"in _e?_e.default:_e}var React=reactExports,React__default=_interopDefault(React);function _defineProperty(_e,et,tt){return et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _inheritsLoose(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_e.__proto__=et}var canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement);function withSideEffect(_e,et,tt){if(typeof _e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof et!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof tt<"u"&&typeof tt!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function nt(at){return at.displayName||at.name||"Component"}return function(it){if(typeof it!="function")throw new Error("Expected WrappedComponent to be a React component.");var ot=[],st;function ct(){st=_e(ot.map(function(ht){return ht.props})),dt.canUseDOM?et(st):tt&&(st=tt(st))}var dt=function(ht){_inheritsLoose(pt,ht);function pt(){return ht.apply(this,arguments)||this}pt.peek=function(){return st},pt.rewind=function(){if(pt.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var bt=st;return st=void 0,ot=[],bt};var mt=pt.prototype;return mt.UNSAFE_componentWillMount=function(){ot.push(this),ct()},mt.componentDidUpdate=function(){ct()},mt.componentWillUnmount=function(){var bt=ot.indexOf(this);ot.splice(bt,1),ct()},mt.render=function(){return React__default.createElement(it,this.props)},pt}(React.PureComponent);return _defineProperty(dt,"displayName","SideEffect("+nt(it)+")"),_defineProperty(dt,"canUseDOM",canUseDOM),dt}}var lib=withSideEffect;const withSideEffect$1=getDefaultExportFromCjs$1(lib);var ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(TAG_NAMES).map(function(_e){return TAG_NAMES[_e]});var TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},HTML_TAG_MAP=Object.keys(REACT_TAG_MAP).reduce(function(_e,et){return _e[REACT_TAG_MAP[et]]=et,_e},{}),SELF_CLOSING_TAGS=[TAG_NAMES.NOSCRIPT,TAG_NAMES.SCRIPT,TAG_NAMES.STYLE],HELMET_ATTRIBUTE="data-react-helmet",_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},classCallCheck=function(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")},createClass=function(){function _e(et,tt){for(var nt=0;nt<tt.length;nt++){var at=tt[nt];at.enumerable=at.enumerable||!1,at.configurable=!0,"value"in at&&(at.writable=!0),Object.defineProperty(et,at.key,at)}}return function(et,tt,nt){return tt&&_e(et.prototype,tt),nt&&_e(et,nt),et}}(),_extends=Object.assign||function(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et];for(var nt in tt)Object.prototype.hasOwnProperty.call(tt,nt)&&(_e[nt]=tt[nt])}return _e},inherits$1=function(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);_e.prototype=Object.create(et&&et.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,et):_e.__proto__=et)},objectWithoutProperties=function(_e,et){var tt={};for(var nt in _e)et.indexOf(nt)>=0||Object.prototype.hasOwnProperty.call(_e,nt)&&(tt[nt]=_e[nt]);return tt},possibleConstructorReturn=function(_e,et){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:_e},encodeSpecialCharacters=function _e(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return tt===!1?String(et):String(et).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},getTitleFromPropsList=function _e(et){var tt=getInnermostProperty(et,TAG_NAMES.TITLE),nt=getInnermostProperty(et,HELMET_PROPS.TITLE_TEMPLATE);if(nt&&tt)return nt.replace(/%s/g,function(){return Array.isArray(tt)?tt.join(""):tt});var at=getInnermostProperty(et,HELMET_PROPS.DEFAULT_TITLE);return tt||at||void 0},getOnChangeClientState=function _e(et){return getInnermostProperty(et,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},getAttributesFromPropsList=function _e(et,tt){return tt.filter(function(nt){return typeof nt[et]<"u"}).map(function(nt){return nt[et]}).reduce(function(nt,at){return _extends({},nt,at)},{})},getBaseTagFromPropsList=function _e(et,tt){return tt.filter(function(nt){return typeof nt[TAG_NAMES.BASE]<"u"}).map(function(nt){return nt[TAG_NAMES.BASE]}).reverse().reduce(function(nt,at){if(!nt.length)for(var it=Object.keys(at),ot=0;ot<it.length;ot++){var st=it[ot],ct=st.toLowerCase();if(et.indexOf(ct)!==-1&&at[ct])return nt.concat(at)}return nt},[])},getTagsFromPropsList=function _e(et,tt,nt){var at={};return nt.filter(function(it){return Array.isArray(it[et])?!0:(typeof it[et]<"u"&&warn$1("Helmet: "+et+' should be of type "Array". Instead found type "'+_typeof(it[et])+'"'),!1)}).map(function(it){return it[et]}).reverse().reduce(function(it,ot){var st={};ot.filter(function(mt){for(var vt=void 0,bt=Object.keys(mt),_t=0;_t<bt.length;_t++){var wt=bt[_t],Et=wt.toLowerCase();tt.indexOf(Et)!==-1&&!(vt===TAG_PROPERTIES.REL&&mt[vt].toLowerCase()==="canonical")&&!(Et===TAG_PROPERTIES.REL&&mt[Et].toLowerCase()==="stylesheet")&&(vt=Et),tt.indexOf(wt)!==-1&&(wt===TAG_PROPERTIES.INNER_HTML||wt===TAG_PROPERTIES.CSS_TEXT||wt===TAG_PROPERTIES.ITEM_PROP)&&(vt=wt)}if(!vt||!mt[vt])return!1;var St=mt[vt].toLowerCase();return at[vt]||(at[vt]={}),st[vt]||(st[vt]={}),at[vt][St]?!1:(st[vt][St]=!0,!0)}).reverse().forEach(function(mt){return it.push(mt)});for(var ct=Object.keys(st),dt=0;dt<ct.length;dt++){var ht=ct[dt],pt=objectAssign$1({},at[ht],st[ht]);at[ht]=pt}return it},[]).reverse()},getInnermostProperty=function _e(et,tt){for(var nt=et.length-1;nt>=0;nt--){var at=et[nt];if(at.hasOwnProperty(tt))return at[tt]}return null},reducePropsToState=function _e(et){return{baseTag:getBaseTagFromPropsList([TAG_PROPERTIES.HREF,TAG_PROPERTIES.TARGET],et),bodyAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY,et),defer:getInnermostProperty(et,HELMET_PROPS.DEFER),encode:getInnermostProperty(et,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML,et),linkTags:getTagsFromPropsList(TAG_NAMES.LINK,[TAG_PROPERTIES.REL,TAG_PROPERTIES.HREF],et),metaTags:getTagsFromPropsList(TAG_NAMES.META,[TAG_PROPERTIES.NAME,TAG_PROPERTIES.CHARSET,TAG_PROPERTIES.HTTPEQUIV,TAG_PROPERTIES.PROPERTY,TAG_PROPERTIES.ITEM_PROP],et),noscriptTags:getTagsFromPropsList(TAG_NAMES.NOSCRIPT,[TAG_PROPERTIES.INNER_HTML],et),onChangeClientState:getOnChangeClientState(et),scriptTags:getTagsFromPropsList(TAG_NAMES.SCRIPT,[TAG_PROPERTIES.SRC,TAG_PROPERTIES.INNER_HTML],et),styleTags:getTagsFromPropsList(TAG_NAMES.STYLE,[TAG_PROPERTIES.CSS_TEXT],et),title:getTitleFromPropsList(et),titleAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE,et)}},rafPolyfill=function(){var _e=Date.now();return function(et){var tt=Date.now();tt-_e>16?(_e=tt,et(tt)):setTimeout(function(){rafPolyfill(et)},0)}}(),cafPolyfill=function _e(et){return clearTimeout(et)},requestAnimationFrame$3=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||rafPolyfill:global$a.requestAnimationFrame||rafPolyfill,cancelAnimationFrame$1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||cafPolyfill:global$a.cancelAnimationFrame||cafPolyfill,warn$1=function _e(et){return console&&typeof console.warn=="function"&&console.warn(et)},_helmetCallback=null,handleClientStateChange=function _e(et){_helmetCallback&&cancelAnimationFrame$1(_helmetCallback),et.defer?_helmetCallback=requestAnimationFrame$3(function(){commitTagChanges(et,function(){_helmetCallback=null})}):(commitTagChanges(et),_helmetCallback=null)},commitTagChanges=function _e(et,tt){var nt=et.baseTag,at=et.bodyAttributes,it=et.htmlAttributes,ot=et.linkTags,st=et.metaTags,ct=et.noscriptTags,dt=et.onChangeClientState,ht=et.scriptTags,pt=et.styleTags,mt=et.title,vt=et.titleAttributes;updateAttributes(TAG_NAMES.BODY,at),updateAttributes(TAG_NAMES.HTML,it),updateTitle(mt,vt);var bt={baseTag:updateTags(TAG_NAMES.BASE,nt),linkTags:updateTags(TAG_NAMES.LINK,ot),metaTags:updateTags(TAG_NAMES.META,st),noscriptTags:updateTags(TAG_NAMES.NOSCRIPT,ct),scriptTags:updateTags(TAG_NAMES.SCRIPT,ht),styleTags:updateTags(TAG_NAMES.STYLE,pt)},_t={},wt={};Object.keys(bt).forEach(function(Et){var St=bt[Et],Tt=St.newTags,Ct=St.oldTags;Tt.length&&(_t[Et]=Tt),Ct.length&&(wt[Et]=bt[Et].oldTags)}),tt&&tt(),dt(et,_t,wt)},flattenArray=function _e(et){return Array.isArray(et)?et.join(""):et},updateTitle=function _e(et,tt){typeof et<"u"&&document.title!==et&&(document.title=flattenArray(et)),updateAttributes(TAG_NAMES.TITLE,tt)},updateAttributes=function _e(et,tt){var nt=document.getElementsByTagName(et)[0];if(nt){for(var at=nt.getAttribute(HELMET_ATTRIBUTE),it=at?at.split(","):[],ot=[].concat(it),st=Object.keys(tt),ct=0;ct<st.length;ct++){var dt=st[ct],ht=tt[dt]||"";nt.getAttribute(dt)!==ht&&nt.setAttribute(dt,ht),it.indexOf(dt)===-1&&it.push(dt);var pt=ot.indexOf(dt);pt!==-1&&ot.splice(pt,1)}for(var mt=ot.length-1;mt>=0;mt--)nt.removeAttribute(ot[mt]);it.length===ot.length?nt.removeAttribute(HELMET_ATTRIBUTE):nt.getAttribute(HELMET_ATTRIBUTE)!==st.join(",")&&nt.setAttribute(HELMET_ATTRIBUTE,st.join(","))}},updateTags=function _e(et,tt){var nt=document.head||document.querySelector(TAG_NAMES.HEAD),at=nt.querySelectorAll(et+"["+HELMET_ATTRIBUTE+"]"),it=Array.prototype.slice.call(at),ot=[],st=void 0;return tt&&tt.length&&tt.forEach(function(ct){var dt=document.createElement(et);for(var ht in ct)if(ct.hasOwnProperty(ht))if(ht===TAG_PROPERTIES.INNER_HTML)dt.innerHTML=ct.innerHTML;else if(ht===TAG_PROPERTIES.CSS_TEXT)dt.styleSheet?dt.styleSheet.cssText=ct.cssText:dt.appendChild(document.createTextNode(ct.cssText));else{var pt=typeof ct[ht]>"u"?"":ct[ht];dt.setAttribute(ht,pt)}dt.setAttribute(HELMET_ATTRIBUTE,"true"),it.some(function(mt,vt){return st=vt,dt.isEqualNode(mt)})?it.splice(st,1):ot.push(dt)}),it.forEach(function(ct){return ct.parentNode.removeChild(ct)}),ot.forEach(function(ct){return nt.appendChild(ct)}),{oldTags:it,newTags:ot}},generateElementAttributesAsString=function _e(et){return Object.keys(et).reduce(function(tt,nt){var at=typeof et[nt]<"u"?nt+'="'+et[nt]+'"':""+nt;return tt?tt+" "+at:at},"")},generateTitleAsString=function _e(et,tt,nt,at){var it=generateElementAttributesAsString(nt),ot=flattenArray(tt);return it?"<"+et+" "+HELMET_ATTRIBUTE+'="true" '+it+">"+encodeSpecialCharacters(ot,at)+"</"+et+">":"<"+et+" "+HELMET_ATTRIBUTE+'="true">'+encodeSpecialCharacters(ot,at)+"</"+et+">"},generateTagsAsString=function _e(et,tt,nt){return tt.reduce(function(at,it){var ot=Object.keys(it).filter(function(dt){return!(dt===TAG_PROPERTIES.INNER_HTML||dt===TAG_PROPERTIES.CSS_TEXT)}).reduce(function(dt,ht){var pt=typeof it[ht]>"u"?ht:ht+'="'+encodeSpecialCharacters(it[ht],nt)+'"';return dt?dt+" "+pt:pt},""),st=it.innerHTML||it.cssText||"",ct=SELF_CLOSING_TAGS.indexOf(et)===-1;return at+"<"+et+" "+HELMET_ATTRIBUTE+'="true" '+ot+(ct?"/>":">"+st+"</"+et+">")},"")},convertElementAttributestoReactProps=function _e(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(et).reduce(function(nt,at){return nt[REACT_TAG_MAP[at]||at]=et[at],nt},tt)},convertReactPropstoHtmlAttributes=function _e(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(et).reduce(function(nt,at){return nt[HTML_TAG_MAP[at]||at]=et[at],nt},tt)},generateTitleAsReactComponent=function _e(et,tt,nt){var at,it=(at={key:tt},at[HELMET_ATTRIBUTE]=!0,at),ot=convertElementAttributestoReactProps(nt,it);return[React$L.createElement(TAG_NAMES.TITLE,ot,tt)]},generateTagsAsReactComponent=function _e(et,tt){return tt.map(function(nt,at){var it,ot=(it={key:at},it[HELMET_ATTRIBUTE]=!0,it);return Object.keys(nt).forEach(function(st){var ct=REACT_TAG_MAP[st]||st;if(ct===TAG_PROPERTIES.INNER_HTML||ct===TAG_PROPERTIES.CSS_TEXT){var dt=nt.innerHTML||nt.cssText;ot.dangerouslySetInnerHTML={__html:dt}}else ot[ct]=nt[st]}),React$L.createElement(et,ot)})},getMethodsForTag=function _e(et,tt,nt){switch(et){case TAG_NAMES.TITLE:return{toComponent:function(){return generateTitleAsReactComponent(et,tt.title,tt.titleAttributes)},toString:function(){return generateTitleAsString(et,tt.title,tt.titleAttributes,nt)}};case ATTRIBUTE_NAMES.BODY:case ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return convertElementAttributestoReactProps(tt)},toString:function(){return generateElementAttributesAsString(tt)}};default:return{toComponent:function(){return generateTagsAsReactComponent(et,tt)},toString:function(){return generateTagsAsString(et,tt,nt)}}}},mapStateOnServer=function _e(et){var tt=et.baseTag,nt=et.bodyAttributes,at=et.encode,it=et.htmlAttributes,ot=et.linkTags,st=et.metaTags,ct=et.noscriptTags,dt=et.scriptTags,ht=et.styleTags,pt=et.title,mt=pt===void 0?"":pt,vt=et.titleAttributes;return{base:getMethodsForTag(TAG_NAMES.BASE,tt,at),bodyAttributes:getMethodsForTag(ATTRIBUTE_NAMES.BODY,nt,at),htmlAttributes:getMethodsForTag(ATTRIBUTE_NAMES.HTML,it,at),link:getMethodsForTag(TAG_NAMES.LINK,ot,at),meta:getMethodsForTag(TAG_NAMES.META,st,at),noscript:getMethodsForTag(TAG_NAMES.NOSCRIPT,ct,at),script:getMethodsForTag(TAG_NAMES.SCRIPT,dt,at),style:getMethodsForTag(TAG_NAMES.STYLE,ht,at),title:getMethodsForTag(TAG_NAMES.TITLE,{title:mt,titleAttributes:vt},at)}},Helmet=function _e(et){var tt,nt;return nt=tt=function(at){inherits$1(it,at);function it(){return classCallCheck(this,it),possibleConstructorReturn(this,at.apply(this,arguments))}return it.prototype.shouldComponentUpdate=function(st){return!isEqual$3(this.props,st)},it.prototype.mapNestedChildrenToProps=function(st,ct){if(!ct)return null;switch(st.type){case TAG_NAMES.SCRIPT:case TAG_NAMES.NOSCRIPT:return{innerHTML:ct};case TAG_NAMES.STYLE:return{cssText:ct}}throw new Error("<"+st.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},it.prototype.flattenArrayTypeChildren=function(st){var ct,dt=st.child,ht=st.arrayTypeChildren,pt=st.newChildProps,mt=st.nestedChildren;return _extends({},ht,(ct={},ct[dt.type]=[].concat(ht[dt.type]||[],[_extends({},pt,this.mapNestedChildrenToProps(dt,mt))]),ct))},it.prototype.mapObjectTypeChildren=function(st){var ct,dt,ht=st.child,pt=st.newProps,mt=st.newChildProps,vt=st.nestedChildren;switch(ht.type){case TAG_NAMES.TITLE:return _extends({},pt,(ct={},ct[ht.type]=vt,ct.titleAttributes=_extends({},mt),ct));case TAG_NAMES.BODY:return _extends({},pt,{bodyAttributes:_extends({},mt)});case TAG_NAMES.HTML:return _extends({},pt,{htmlAttributes:_extends({},mt)})}return _extends({},pt,(dt={},dt[ht.type]=_extends({},mt),dt))},it.prototype.mapArrayTypeChildrenToProps=function(st,ct){var dt=_extends({},ct);return Object.keys(st).forEach(function(ht){var pt;dt=_extends({},dt,(pt={},pt[ht]=st[ht],pt))}),dt},it.prototype.warnOnInvalidChildren=function(st,ct){return!0},it.prototype.mapChildrenToProps=function(st,ct){var dt=this,ht={};return React$L.Children.forEach(st,function(pt){if(!(!pt||!pt.props)){var mt=pt.props,vt=mt.children,bt=objectWithoutProperties(mt,["children"]),_t=convertReactPropstoHtmlAttributes(bt);switch(dt.warnOnInvalidChildren(pt,vt),pt.type){case TAG_NAMES.LINK:case TAG_NAMES.META:case TAG_NAMES.NOSCRIPT:case TAG_NAMES.SCRIPT:case TAG_NAMES.STYLE:ht=dt.flattenArrayTypeChildren({child:pt,arrayTypeChildren:ht,newChildProps:_t,nestedChildren:vt});break;default:ct=dt.mapObjectTypeChildren({child:pt,newProps:ct,newChildProps:_t,nestedChildren:vt});break}}}),ct=this.mapArrayTypeChildrenToProps(ht,ct),ct},it.prototype.render=function(){var st=this.props,ct=st.children,dt=objectWithoutProperties(st,["children"]),ht=_extends({},dt);return ct&&(ht=this.mapChildrenToProps(ct,ht)),React$L.createElement(et,ht)},createClass(it,null,[{key:"canUseDOM",set:function(st){et.canUseDOM=st}}]),it}(React$L.Component),tt.propTypes={base:PropTypes.object,bodyAttributes:PropTypes.object,children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),defaultTitle:PropTypes.string,defer:PropTypes.bool,encodeSpecialCharacters:PropTypes.bool,htmlAttributes:PropTypes.object,link:PropTypes.arrayOf(PropTypes.object),meta:PropTypes.arrayOf(PropTypes.object),noscript:PropTypes.arrayOf(PropTypes.object),onChangeClientState:PropTypes.func,script:PropTypes.arrayOf(PropTypes.object),style:PropTypes.arrayOf(PropTypes.object),title:PropTypes.string,titleAttributes:PropTypes.object,titleTemplate:PropTypes.string},tt.defaultProps={defer:!0,encodeSpecialCharacters:!0},tt.peek=et.peek,tt.rewind=function(){var at=et.rewind();return at||(at=mapStateOnServer({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),at},nt},NullComponent=function _e(){return null},HelmetSideEffects=withSideEffect$1(reducePropsToState,handleClientStateChange,mapStateOnServer)(NullComponent),HelmetExport=Helmet(HelmetSideEffects);HelmetExport.renderStatic=HelmetExport.rewind;function ManaWidget(){const _e="https://crypto.com/price/static/widget/index.js",et=reactExports.useRef(null);return reactExports.useEffect(()=>{(()=>{et.current=document.createElement("script"),et.current.src=_e,document.body.appendChild(et.current)})();const nt=()=>{document.body.removeChild(et.current)};return()=>nt()},[]),jsxRuntimeExports.jsx("div",{id:"crypto-widget-CoinList","data-design":"classic","data-coins":"decentraland",style:{width:"100%"}})}const Copy="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/copy-aaa77b43.svg",Link="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/link-2c78ddb8.svg",DaiLogo="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/dai_logo-b5489c4a.svg",UsdtLogo="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/usdt_logo-4ed36654.svg",UsdcLogo="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/usdc_logo-913adf09.svg",Overview$1="";function useReviewUrl(_e){const et=`${config.get("REVIEW_CONTRACT_URL")}${_e}`;return{reviewUrl:et,onReviewUrlClick:nt=>openInNewTab(et,nt)}}const logo={DAI:DaiLogo,USDT:UsdtLogo,USDC:UsdcLogo};function Overview(_e){const{address:et,contract:tt}=_e,{symbol:nt,start:at,cliff:it,duration:ot,total:st}=tt,ct=getPreciseDiff(at,at+ot),dt=getPreciseDiff(at,it),{reviewUrl:ht,onReviewUrlClick:pt}=useReviewUrl(et),vt=useResponsive()({maxWidth:onlyMobileMaxWidth}),bt=dt.months+dt.days;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetExport,{children:jsxRuntimeExports.jsx("title",{children:t$2("global.title",{token:nt})})}),jsxRuntimeExports.jsx(Grid$2,{columns:nt==="MANA"&&!vt?2:1,className:"overview",children:jsxRuntimeExports.jsxs(Grid$2.Row,{children:[jsxRuntimeExports.jsxs(Grid$2.Column,{floated:"left",style:{padding:0},children:[jsxRuntimeExports.jsxs(Grid$2,{className:"contract",style:{width:"100%"},children:[nt!=="MANA"?jsxRuntimeExports.jsx(Grid$2.Column,{className:"TokenLogo",children:jsxRuntimeExports.jsx("img",{src:logo[nt],style:{width:vt?"48px":"72px"},alt:""})}):vt&&jsxRuntimeExports.jsx(Grid$2.Column,{className:"TokenLogo",children:jsxRuntimeExports.jsx(distExports$1.Logo,{})}),jsxRuntimeExports.jsxs(Grid$2.Column,{className:"Info",children:[jsxRuntimeExports.jsx(distExports$1.Header,{size:"large",className:`TokenContract ${nt}`,children:t$2("overview.title",{token:nt})}),jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[et," ",jsxRuntimeExports.jsx("a",{href:ht,onClick:pt,children:jsxRuntimeExports.jsx("img",{src:Link,alt:""})}),jsxRuntimeExports.jsx(distExports$1.Popup,{content:t$2("global.copied"),position:"bottom center",trigger:jsxRuntimeExports.jsx("img",{src:Copy,alt:"",onClick:()=>copyToClipboard(et)}),on:"click"})]})]})]}),jsxRuntimeExports.jsx(distExports$1.Header,{style:nt==="MANA"&&!vt&&{maxWidth:"500px"}||{},children:t$2("overview.details",{amount:formatNumber(Math.round(st),0),token:nt,months:t$2("global.amount.months",{amount:ct.months}),days:ct.days&&t$2("global.amount.days",{amount:ct.days}),cliff:t$2("overview.details.cliff",{months:dt.months,days:dt.days}),showCliff:bt})})]}),nt==="MANA"&&!vt&&jsxRuntimeExports.jsx(Grid$2.Column,{floated:"right",children:jsxRuntimeExports.jsx(ManaWidget,{})})]})})]})}const Icon$2="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/grant_icon-fe328b80.svg",ButtonIcon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/proposal_button_icon-2936cda4.svg",DaoInitiativeButton$1="";function DaoInitiativeButton({proposalUrl:_e}){const tt=useResponsive()({maxWidth:onlyMobileMaxWidth});return jsxRuntimeExports.jsxs(distExports$1.Button,{primary:!0,onClick:nt=>openInNewTab(_e,nt),href:_e,className:"daoProposal__button",children:[t$2(tt?"beneficiary.button.mobile":"beneficiary.button"),jsxRuntimeExports.jsx("img",{src:ButtonIcon,alt:""})]})}const Banner$1="";function Banner(_e){const{icon:et,title:tt,subtitle:nt,action:at,className:it}=_e;return jsxRuntimeExports.jsxs("div",{className:`banner ${it||""}`,children:[jsxRuntimeExports.jsxs("div",{className:"bannerContainer",children:[jsxRuntimeExports.jsx("div",{style:{width:"fit-content"},children:et&&jsxRuntimeExports.jsx("img",{src:et,alt:"",style:{marginTop:"5px"}})}),jsxRuntimeExports.jsxs("div",{className:"bannerText",children:[jsxRuntimeExports.jsx(distExports$1.Header,{children:tt}),jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:nt})]})]}),jsxRuntimeExports.jsx("div",{className:"bannerAction",children:at})]})}const Beneficiary$1="";function Beneficiary({address:_e}){const[et,tt]=reactExports.useState();return reactExports.useEffect(()=>{(async()=>{const at=await(await fetch(config.get("VESTINGS_API_URL"))).json();if(at){let it=at.filter(ot=>isSameAddress(ot.vesting_address,_e));if(it.length===1){it=it[0];const ot=new URL(config.get("PROPOSALS_URL"));ot.searchParams.append("id",it.proposal_id),tt(ot)}else console.error(t$2("error.dao_proposal_url"))}})()},[_e,tt]),!!et&&jsxRuntimeExports.jsx(Banner,{className:"beneficiary",icon:Icon$2,title:t$2("beneficiary.title"),subtitle:t$2("beneficiary.subtitle"),action:jsxRuntimeExports.jsx(DaoInitiativeButton,{proposalUrl:et})})}const Schedule$2="",FutureIcon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/future_events_icon-d66bd0d4.svg";function ScheduleEvent(_e){const{message:et,timestamp:tt=0,future:nt=!1}=_e;return jsxRuntimeExports.jsx("li",{className:`${nt?"future":""}`,children:jsxRuntimeExports.jsxs("div",{className:"timeline__event",children:[!nt&&jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,style:{textTransform:"none",margin:0},children:formatDate$1(new Date(tt*1e3).getTime(),DATE_FORMAT_LONG)}),jsxRuntimeExports.jsx(distExports$1.Header,{style:{fontSize:"15px",margin:0},children:et})]})})}const ScheduleEvent$1=React$L.memo(ScheduleEvent);function ShowMore(_e){const{onClick:et}=_e;return jsxRuntimeExports.jsx("li",{className:"more",style:{cursor:"pointer"},onClick:et,children:jsxRuntimeExports.jsx("div",{className:"timeline__event",children:jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,style:{fontSize:"11px"},children:t$2("schedule.show_more")})})})}const ShowMore$1=React$L.memo(ShowMore);function addReleasedEvent(_e,et,tt,nt){const at={timestamp:nt,key:nt};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.released",{amount:formatNumber(Math.round(et),0),token:tt}),...at}))}function addFulfilledEvent(_e,et,tt=!1){const nt={timestamp:et,future:tt,key:"fulfilled"};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.fulfilled"),...nt}))}function addRevokedEvent(_e,et){const tt={timestamp:et,key:"revoked"};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.revoked"),...tt}))}function addPausedEvent(_e,et){const tt={timestamp:et,key:`paused-${et}`};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.paused"),...tt}))}function addUnpausedEvent(_e,et){const tt={timestamp:et,key:`unpaused-${et}`};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.unpaused"),...tt}))}function Schedule(_e){const{contract:et}=_e,{symbol:tt,start:nt,cliff:at,duration:it,logs:ot,version:st,paused:ct,revoked:dt}=et,ht=getPreciseDiff(nt,at),pt=reactExports.useMemo(()=>ot.filter(Tt=>Tt.topic!==TopicByVersion[st].TRANSFER_OWNERSHIP),[ot,st]),[mt,vt]=reactExports.useState([]),bt=dt||ct,_t=TopicByVersion[st],wt=(Tt=!1)=>{const Ct=[];Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.contract_started"),timestamp:nt},"contract_started")),Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.cliff_started",{cliff:t$2("cliff.duration",{months:ht.months,days:ht.days})}),timestamp:nt},"cliff_started")),new Date(at*1e3)<new Date&&(Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.cliff_ended"),timestamp:at},"cliff_ended")),Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.vesting_begins"),timestamp:at},"vesting_begins")));const Nt=nt+it,Dt=new Date(Nt*1e3);let kt=!1;const Ft=jt=>{const Gt=jt.data;switch(jt.topic){case _t.RELEASE:addReleasedEvent(Ct,Gt.amount,tt,Gt.timestamp);break;case _t.REVOKE:addRevokedEvent(Ct,Gt.timestamp);break;case _t.PAUSED:addPausedEvent(Ct,Gt.timestamp);break;case _t.UNPAUSED:addUnpausedEvent(Ct,Gt.timestamp);break}};if(pt.length>0)if(pt.length>1&&!Tt){Ct.push(jsxRuntimeExports.jsx(ShowMore$1,{onClick:()=>wt(!0)},"showMore"));const jt=pt[pt.length-1],{timestamp:Gt}=jt.data;new Date(Gt*1e3)>Dt&&(kt=!0),Ft(jt)}else for(const jt of pt){const{timestamp:Gt}=jt.data;!kt&&new Date(Gt*1e3)>Dt&&(kt=!0,addFulfilledEvent(Ct,Nt)),Ft(jt)}bt||kt||(new Date>=new Date(Nt*1e3)?addFulfilledEvent(Ct,Nt):(Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:jsxRuntimeExports.jsx("img",{src:FutureIcon,className:"Future__Icon",alt:""}),future:!0},"Future__Icon")),addFulfilledEvent(Ct,0,!0))),vt(Ct)};reactExports.useEffect(()=>{wt()},[bt]);const St=useResponsive()({maxWidth:onlyMobileMaxWidth});return jsxRuntimeExports.jsxs("div",{className:`timeline ${dt?"revoked":ct?"paused":""}`,children:[jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[t$2("schedule.title"),jsxRuntimeExports.jsx(Info,{message:t$2("helper.vesting_schedule"),position:`${St?"right":"top"} center`})]}),jsxRuntimeExports.jsx("ul",{children:mt})]})}const Schedule$1=React$L.memo(Schedule),Chart$2="";/*! *****************************************************************************
328
+ hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=min$2;hooks.max=max$2;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto$1;hooks.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"};if(typeof moment>"u"&&typeof require=="function")var moment=require("moment");function momentPreciseRangePlugin(_e){var et={nodiff:"",year:"year",years:"years",month:"month",months:"months",day:"day",days:"days",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds",delimiter:" "};function tt(it,ot){return it+" "+et[ot+(it===1?"":"s")]}function nt(it,ot,st,ct,dt,ht){var pt=[];return it&&pt.push(tt(it,"year")),ot&&pt.push(tt(ot,"month")),st&&pt.push(tt(st,"day")),ct&&pt.push(tt(ct,"hour")),dt&&pt.push(tt(dt,"minute")),ht&&pt.push(tt(ht,"second")),pt.join(et.delimiter)}function at(it,ot,st,ct,dt,ht,pt){return{years:it,months:ot,days:st,hours:ct,minutes:dt,seconds:ht,firstDateWasLater:pt}}_e.fn.preciseDiff=function(it,ot){return _e.preciseDiff(this,it,ot)},_e.preciseDiff=function(it,ot,st){var ct=_e(it),dt=_e(ot),ht;if(ct.add(dt.utcOffset()-ct.utcOffset(),"minutes"),ct.isSame(dt))return st?at(0,0,0,0,0,0,!1):et.nodiff;if(ct.isAfter(dt)){var pt=ct;ct=dt,dt=pt,ht=!0}else ht=!1;var mt=dt.year()-ct.year(),vt=dt.month()-ct.month(),bt=dt.date()-ct.date(),_t=dt.hour()-ct.hour(),wt=dt.minute()-ct.minute(),Et=dt.second()-ct.second();if(Et<0&&(Et=60+Et,wt--),wt<0&&(wt=60+wt,_t--),_t<0&&(_t=24+_t,bt--),bt<0){var St=_e(dt.year()+"-"+(dt.month()+1),"YYYY-MM").subtract(1,"M").daysInMonth();St<ct.date()?bt=St+bt+(ct.date()-St):bt=St+bt,vt--}return vt<0&&(vt=12+vt,mt--),st?at(mt,vt,bt,_t,wt,Et,ht):nt(mt,vt,bt,_t,wt,Et)}}momentPreciseRangePlugin(hooks);const DATE_FORMAT_LONG="MMMM D, YYYY",DATE_FORMAT_SHORT="MMM D, YYYY";function isValidAddress(_e){return/^(0x)?[0-9a-f]{40}$/i.test(_e)}function getPreciseDiff(_e,et){const tt=hooks.preciseDiff(hooks(_e*1e3),hooks(et*1e3),!0);return{months:tt.years*12+tt.months,days:tt.days}}function openInNewTab(_e,et=null){window.open(_e,"_blank").focus(),et&&et.preventDefault()}function copyToClipboard(_e){return navigator&&navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(_e):Promise.reject("The Clipboard API is not available.")}const AddressIcon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/address_icon-f840b960.svg",onlyMobileMaxWidth=767;let CURRENT_WIDTH=onlyMobileMaxWidth;function useResponsive(){const[_e,et]=reactExports.useState(CURRENT_WIDTH);return reactExports.useEffect(()=>{function tt(){const nt=window.innerWidth;CURRENT_WIDTH!==nt&&(CURRENT_WIDTH=nt),_e!==nt&&et(nt)}return tt(),window.addEventListener("resize",tt),()=>{window.removeEventListener("resize",tt)}},[_e]),reactExports.useCallback(function(nt={}){return!(nt.minWidth!==void 0&&_e<nt.minWidth||nt.maxWidth!==void 0&&_e>nt.maxWidth)},[_e])}const ChangeBeneficiaryModal$1="";var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,STRICT=!1,NAME="[big.js] ",INVALID=NAME+"Invalid ",INVALID_DP=INVALID+"decimal places",INVALID_RM=INVALID+"rounding mode",DIV_BY_ZERO=NAME+"Division by zero",P={},UNDEFINED$1=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function _e(et){var tt=this;if(!(tt instanceof _e))return et===UNDEFINED$1?_Big_():new _e(et);if(et instanceof _e)tt.s=et.s,tt.e=et.e,tt.c=et.c.slice();else{if(typeof et!="string"){if(_e.strict===!0&&typeof et!="bigint")throw TypeError(INVALID+"value");et=et===0&&1/et<0?"-0":String(et)}parse$1(tt,et)}tt.constructor=_e}return _e.prototype=P,_e.DP=DP,_e.RM=RM,_e.NE=NE,_e.PE=PE,_e.strict=STRICT,_e.roundDown=0,_e.roundHalfUp=1,_e.roundHalfEven=2,_e.roundUp=3,_e}function parse$1(_e,et){var tt,nt,at;if(!NUMERIC.test(et))throw Error(INVALID+"number");for(_e.s=et.charAt(0)=="-"?(et=et.slice(1),-1):1,(tt=et.indexOf("."))>-1&&(et=et.replace(".","")),(nt=et.search(/e/i))>0?(tt<0&&(tt=nt),tt+=+et.slice(nt+1),et=et.substring(0,nt)):tt<0&&(tt=et.length),at=et.length,nt=0;nt<at&&et.charAt(nt)=="0";)++nt;if(nt==at)_e.c=[_e.e=0];else{for(;at>0&&et.charAt(--at)=="0";);for(_e.e=tt-nt-1,_e.c=[],tt=0;nt<=at;)_e.c[tt++]=+et.charAt(nt++)}return _e}function round$3(_e,et,tt,nt){var at=_e.c;if(tt===UNDEFINED$1&&(tt=_e.constructor.RM),tt!==0&&tt!==1&&tt!==2&&tt!==3)throw Error(INVALID_RM);if(et<1)nt=tt===3&&(nt||!!at[0])||et===0&&(tt===1&&at[0]>=5||tt===2&&(at[0]>5||at[0]===5&&(nt||at[1]!==UNDEFINED$1))),at.length=1,nt?(_e.e=_e.e-et+1,at[0]=1):at[0]=_e.e=0;else if(et<at.length){if(nt=tt===1&&at[et]>=5||tt===2&&(at[et]>5||at[et]===5&&(nt||at[et+1]!==UNDEFINED$1||at[et-1]&1))||tt===3&&(nt||!!at[0]),at.length=et,nt){for(;++at[--et]>9;)if(at[et]=0,et===0){++_e.e,at.unshift(1);break}}for(et=at.length;!at[--et];)at.pop()}return _e}function stringify$1(_e,et,tt){var nt=_e.e,at=_e.c.join(""),it=at.length;if(et)at=at.charAt(0)+(it>1?"."+at.slice(1):"")+(nt<0?"e":"e+")+nt;else if(nt<0){for(;++nt;)at="0"+at;at="0."+at}else if(nt>0)if(++nt>it)for(nt-=it;nt--;)at+="0";else nt<it&&(at=at.slice(0,nt)+"."+at.slice(nt));else it>1&&(at=at.charAt(0)+"."+at.slice(1));return _e.s<0&&tt?"-"+at:at}P.abs=function(){var _e=new this.constructor(this);return _e.s=1,_e};P.cmp=function(_e){var et,tt=this,nt=tt.c,at=(_e=new tt.constructor(_e)).c,it=tt.s,ot=_e.s,st=tt.e,ct=_e.e;if(!nt[0]||!at[0])return nt[0]?it:at[0]?-ot:0;if(it!=ot)return it;if(et=it<0,st!=ct)return st>ct^et?1:-1;for(ot=(st=nt.length)<(ct=at.length)?st:ct,it=-1;++it<ot;)if(nt[it]!=at[it])return nt[it]>at[it]^et?1:-1;return st==ct?0:st>ct^et?1:-1};P.div=function(_e){var et=this,tt=et.constructor,nt=et.c,at=(_e=new tt(_e)).c,it=et.s==_e.s?1:-1,ot=tt.DP;if(ot!==~~ot||ot<0||ot>MAX_DP)throw Error(INVALID_DP);if(!at[0])throw Error(DIV_BY_ZERO);if(!nt[0])return _e.s=it,_e.c=[_e.e=0],_e;var st,ct,dt,ht,pt,mt=at.slice(),vt=st=at.length,bt=nt.length,_t=nt.slice(0,st),wt=_t.length,Et=_e,St=Et.c=[],Tt=0,Ct=ot+(Et.e=et.e-_e.e)+1;for(Et.s=it,it=Ct<0?0:Ct,mt.unshift(0);wt++<st;)_t.push(0);do{for(dt=0;dt<10;dt++){if(st!=(wt=_t.length))ht=st>wt?1:-1;else for(pt=-1,ht=0;++pt<st;)if(at[pt]!=_t[pt]){ht=at[pt]>_t[pt]?1:-1;break}if(ht<0){for(ct=wt==st?at:mt;wt;){if(_t[--wt]<ct[wt]){for(pt=wt;pt&&!_t[--pt];)_t[pt]=9;--_t[pt],_t[wt]+=10}_t[wt]-=ct[wt]}for(;!_t[0];)_t.shift()}else break}St[Tt++]=ht?dt:++dt,_t[0]&&ht?_t[wt]=nt[vt]||0:_t=[nt[vt]]}while((vt++<bt||_t[0]!==UNDEFINED$1)&&it--);return!St[0]&&Tt!=1&&(St.shift(),Et.e--,Ct--),Tt>Ct&&round$3(Et,Ct,tt.RM,_t[0]!==UNDEFINED$1),Et};P.eq=function(_e){return this.cmp(_e)===0};P.gt=function(_e){return this.cmp(_e)>0};P.gte=function(_e){return this.cmp(_e)>-1};P.lt=function(_e){return this.cmp(_e)<0};P.lte=function(_e){return this.cmp(_e)<1};P.minus=P.sub=function(_e){var et,tt,nt,at,it=this,ot=it.constructor,st=it.s,ct=(_e=new ot(_e)).s;if(st!=ct)return _e.s=-ct,it.plus(_e);var dt=it.c.slice(),ht=it.e,pt=_e.c,mt=_e.e;if(!dt[0]||!pt[0])return pt[0]?_e.s=-ct:dt[0]?_e=new ot(it):_e.s=1,_e;if(st=ht-mt){for((at=st<0)?(st=-st,nt=dt):(mt=ht,nt=pt),nt.reverse(),ct=st;ct--;)nt.push(0);nt.reverse()}else for(tt=((at=dt.length<pt.length)?dt:pt).length,st=ct=0;ct<tt;ct++)if(dt[ct]!=pt[ct]){at=dt[ct]<pt[ct];break}if(at&&(nt=dt,dt=pt,pt=nt,_e.s=-_e.s),(ct=(tt=pt.length)-(et=dt.length))>0)for(;ct--;)dt[et++]=0;for(ct=et;tt>st;){if(dt[--tt]<pt[tt]){for(et=tt;et&&!dt[--et];)dt[et]=9;--dt[et],dt[tt]+=10}dt[tt]-=pt[tt]}for(;dt[--ct]===0;)dt.pop();for(;dt[0]===0;)dt.shift(),--mt;return dt[0]||(_e.s=1,dt=[mt=0]),_e.c=dt,_e.e=mt,_e};P.mod=function(_e){var et,tt=this,nt=tt.constructor,at=tt.s,it=(_e=new nt(_e)).s;if(!_e.c[0])throw Error(DIV_BY_ZERO);return tt.s=_e.s=1,et=_e.cmp(tt)==1,tt.s=at,_e.s=it,et?new nt(tt):(at=nt.DP,it=nt.RM,nt.DP=nt.RM=0,tt=tt.div(_e),nt.DP=at,nt.RM=it,this.minus(tt.times(_e)))};P.neg=function(){var _e=new this.constructor(this);return _e.s=-_e.s,_e};P.plus=P.add=function(_e){var et,tt,nt,at=this,it=at.constructor;if(_e=new it(_e),at.s!=_e.s)return _e.s=-_e.s,at.minus(_e);var ot=at.e,st=at.c,ct=_e.e,dt=_e.c;if(!st[0]||!dt[0])return dt[0]||(st[0]?_e=new it(at):_e.s=at.s),_e;if(st=st.slice(),et=ot-ct){for(et>0?(ct=ot,nt=dt):(et=-et,nt=st),nt.reverse();et--;)nt.push(0);nt.reverse()}for(st.length-dt.length<0&&(nt=dt,dt=st,st=nt),et=dt.length,tt=0;et;st[et]%=10)tt=(st[--et]=st[et]+dt[et]+tt)/10|0;for(tt&&(st.unshift(tt),++ct),et=st.length;st[--et]===0;)st.pop();return _e.c=st,_e.e=ct,_e};P.pow=function(_e){var et=this,tt=new et.constructor("1"),nt=tt,at=_e<0;if(_e!==~~_e||_e<-MAX_POWER||_e>MAX_POWER)throw Error(INVALID+"exponent");for(at&&(_e=-_e);_e&1&&(nt=nt.times(et)),_e>>=1,!!_e;)et=et.times(et);return at?tt.div(nt):nt};P.prec=function(_e,et){if(_e!==~~_e||_e<1||_e>MAX_DP)throw Error(INVALID+"precision");return round$3(new this.constructor(this),_e,et)};P.round=function(_e,et){if(_e===UNDEFINED$1)_e=0;else if(_e!==~~_e||_e<-MAX_DP||_e>MAX_DP)throw Error(INVALID_DP);return round$3(new this.constructor(this),_e+this.e+1,et)};P.sqrt=function(){var _e,et,tt,nt=this,at=nt.constructor,it=nt.s,ot=nt.e,st=new at("0.5");if(!nt.c[0])return new at(nt);if(it<0)throw Error(NAME+"No square root");it=Math.sqrt(nt+""),it===0||it===1/0?(et=nt.c.join(""),et.length+ot&1||(et+="0"),it=Math.sqrt(et),ot=((ot+1)/2|0)-(ot<0||ot&1),_e=new at((it==1/0?"5e":(it=it.toExponential()).slice(0,it.indexOf("e")+1))+ot)):_e=new at(it+""),ot=_e.e+(at.DP+=4);do tt=_e,_e=st.times(tt.plus(nt.div(tt)));while(tt.c.slice(0,ot).join("")!==_e.c.slice(0,ot).join(""));return round$3(_e,(at.DP-=4)+_e.e+1,at.RM)};P.times=P.mul=function(_e){var et,tt=this,nt=tt.constructor,at=tt.c,it=(_e=new nt(_e)).c,ot=at.length,st=it.length,ct=tt.e,dt=_e.e;if(_e.s=tt.s==_e.s?1:-1,!at[0]||!it[0])return _e.c=[_e.e=0],_e;for(_e.e=ct+dt,ot<st&&(et=at,at=it,it=et,dt=ot,ot=st,st=dt),et=new Array(dt=ot+st);dt--;)et[dt]=0;for(ct=st;ct--;){for(st=0,dt=ot+ct;dt>ct;)st=et[dt]+it[ct]*at[dt-ct-1]+st,et[dt--]=st%10,st=st/10|0;et[dt]=st}for(st?++_e.e:et.shift(),ct=et.length;!et[--ct];)et.pop();return _e.c=et,_e};P.toExponential=function(_e,et){var tt=this,nt=tt.c[0];if(_e!==UNDEFINED$1){if(_e!==~~_e||_e<0||_e>MAX_DP)throw Error(INVALID_DP);for(tt=round$3(new tt.constructor(tt),++_e,et);tt.c.length<_e;)tt.c.push(0)}return stringify$1(tt,!0,!!nt)};P.toFixed=function(_e,et){var tt=this,nt=tt.c[0];if(_e!==UNDEFINED$1){if(_e!==~~_e||_e<0||_e>MAX_DP)throw Error(INVALID_DP);for(tt=round$3(new tt.constructor(tt),_e+tt.e+1,et),_e=_e+tt.e+1;tt.c.length<_e;)tt.c.push(0)}return stringify$1(tt,!1,!!nt)};P[Symbol.for("nodejs.util.inspect.custom")]=P.toJSON=P.toString=function(){var _e=this,et=_e.constructor;return stringify$1(_e,_e.e<=et.NE||_e.e>=et.PE,!!_e.c[0])};P.toNumber=function(){var _e=Number(stringify$1(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(_e.toString()))throw Error(NAME+"Imprecise conversion");return _e};P.toPrecision=function(_e,et){var tt=this,nt=tt.constructor,at=tt.c[0];if(_e!==UNDEFINED$1){if(_e!==~~_e||_e<1||_e>MAX_DP)throw Error(INVALID+"precision");for(tt=round$3(new nt(tt),_e,et);tt.c.length<_e;)tt.c.push(0)}return stringify$1(tt,_e<=tt.e||tt.e<=nt.NE||tt.e>=nt.PE,!!at)};P.valueOf=function(){var _e=this,et=_e.constructor;if(et.strict===!0)throw Error(NAME+"valueOf disallowed");return stringify$1(_e,_e.e<=et.NE||_e.e>=et.PE,!0)};var Big=_Big_();const manaAbi=[{constant:!0,inputs:[],name:"mintingFinished",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_amount",type:"uint256"}],name:"mint",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_value",type:"uint256"}],name:"burn",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,type:"function"},{constant:!1,inputs:[],name:"finishMinting",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"remaining",type:"uint256"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[],name:"MintFinished",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"burner",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],daiAbi=[{inputs:[{internalType:"uint256",name:"chainId_",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"src",type:"address"},{indexed:!0,internalType:"address",name:"guy",type:"address"},{indexed:!1,internalType:"uint256",name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!0,inputs:[{indexed:!0,internalType:"bytes4",name:"sig",type:"bytes4"},{indexed:!0,internalType:"address",name:"usr",type:"address"},{indexed:!0,internalType:"bytes32",name:"arg1",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"arg2",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"}],name:"LogNote",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"src",type:"address"},{indexed:!0,internalType:"address",name:"dst",type:"address"},{indexed:!1,internalType:"uint256",name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"burn",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"guy",type:"address"}],name:"deny",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"mint",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"src",type:"address"},{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"move",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"holder",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"bool",name:"allowed",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"pull",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"usr",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"push",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"guy",type:"address"}],name:"rely",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"src",type:"address"},{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"wards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],usdtAbi=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_upgradedAddress",type:"address"}],name:"deprecate",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"deprecated",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_evilUser",type:"address"}],name:"addBlackList",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"upgradedAddress",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balances",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"maximumFee",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"_totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_maker",type:"address"}],name:"getBlackListStatus",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowed",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"who",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getOwner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newBasisPoints",type:"uint256"},{name:"newMaxFee",type:"uint256"}],name:"setParams",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint256"}],name:"issue",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint256"}],name:"redeem",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"remaining",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"basisPointsRate",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"isBlackListed",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_clearedUser",type:"address"}],name:"removeBlackList",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"MAX_UINT",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_blackListedUser",type:"address"}],name:"destroyBlackFunds",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"_initialSupply",type:"uint256"},{name:"_name",type:"string"},{name:"_symbol",type:"string"},{name:"_decimals",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"Issue",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"Redeem",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newAddress",type:"address"}],name:"Deprecate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"feeBasisPoints",type:"uint256"},{indexed:!1,name:"maxFee",type:"uint256"}],name:"Params",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"_blackListedUser",type:"address"},{indexed:!1,name:"_balance",type:"uint256"}],name:"DestroyedBlackFunds",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"_user",type:"address"}],name:"AddedBlackList",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"_user",type:"address"}],name:"RemovedBlackList",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"}],usdcAbi=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"authorizer",type:"address"},{indexed:!0,internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"AuthorizationUsed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"Blacklisted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newBlacklister",type:"address"}],name:"BlacklisterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"burner",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newMasterMinter",type:"address"}],name:"MasterMinterChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"minter",type:"address"},{indexed:!1,internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"MinterConfigured",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldMinter",type:"address"}],name:"MinterRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousOwner",type:"address"},{indexed:!1,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[],name:"Pause",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newAddress",type:"address"}],name:"PauserChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRescuer",type:"address"}],name:"RescuerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_account",type:"address"}],name:"UnBlacklisted",type:"event"},{anonymous:!1,inputs:[],name:"Unpause",type:"event"},{inputs:[],name:"CANCEL_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"RECEIVE_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"TRANSFER_WITH_AUTHORIZATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"}],name:"authorizationState",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"blacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"blacklister",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"authorizer",type:"address"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"cancelAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"},{internalType:"uint256",name:"minterAllowedAmount",type:"uint256"}],name:"configureMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"currency",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"decrement",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"increment",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"tokenName",type:"string"},{internalType:"string",name:"tokenSymbol",type:"string"},{internalType:"string",name:"tokenCurrency",type:"string"},{internalType:"uint8",name:"tokenDecimals",type:"uint8"},{internalType:"address",name:"newMasterMinter",type:"address"},{internalType:"address",name:"newPauser",type:"address"},{internalType:"address",name:"newBlacklister",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newName",type:"string"}],name:"initializeV2",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"lostAndFound",type:"address"}],name:"initializeV2_1",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"isBlacklisted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"masterMinter",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"minterAllowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauser",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"receiveWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"minter",type:"address"}],name:"removeMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenContract",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"rescueERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rescuer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"validAfter",type:"uint256"},{internalType:"uint256",name:"validBefore",type:"uint256"},{internalType:"bytes32",name:"nonce",type:"bytes32"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"transferWithAuthorization",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_account",type:"address"}],name:"unBlacklist",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newBlacklister",type:"address"}],name:"updateBlacklister",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newMasterMinter",type:"address"}],name:"updateMasterMinter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newPauser",type:"address"}],name:"updatePauser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newRescuer",type:"address"}],name:"updateRescuer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],vestingAbi=[{constant:!0,inputs:[],name:"duration",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"cliff",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"beneficiary",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"terraformReserve",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"returnVesting",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"vestedAmount",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"releasableAmount",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"revoked",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"release",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"revocable",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"released",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_token",type:"address"},{name:"amount",type:"uint256"}],name:"releaseForeignToken",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"revoke",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"start",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"amount",type:"uint256"}],name:"lockMana",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"target",type:"address"}],name:"releaseTo",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"target",type:"address"}],name:"changeBeneficiary",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"token",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[{name:"_beneficiary",type:"address"},{name:"_start",type:"uint256"},{name:"_cliff",type:"uint256"},{name:"_duration",type:"uint256"},{name:"_revocable",type:"bool"},{name:"_token",type:"address"},{name:"_returnVesting",type:"address"},{name:"_terraformReserve",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"LockedMANA",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"amount",type:"uint256"}],name:"Released",type:"event"},{anonymous:!1,inputs:[],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"previousOwner",type:"address"},{indexed:!0,name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"}],periodicTokenVestingAbi=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_newBeneficiary",type:"address"}],name:"BeneficiaryUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"_amount",type:"uint256"}],name:"Released",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_receiver",type:"address"},{indexed:!0,internalType:"contract IERC20",name:"_token",type:"address"},{indexed:!1,internalType:"uint256",name:"_amount",type:"uint256"}],name:"ReleasedForeign",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"_amount",type:"uint256"}],name:"ReleasedSurplus",type:"event"},{anonymous:!1,inputs:[],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{inputs:[],name:"getBeneficiary",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCliff",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsLinear",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsPausable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsRevocable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getIsRevoked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReleasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStart",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStop",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getToken",outputs:[{internalType:"contract IERC20",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTotal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVested",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVestedPerPeriod",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_beneficiary",type:"address"},{internalType:"address",name:"_token",type:"address"},{internalType:"bool",name:"_isRevocable",type:"bool"},{internalType:"bool",name:"_isPausable",type:"bool"},{internalType:"bool",name:"_isLinear",type:"bool"},{internalType:"uint256",name:"_start",type:"uint256"},{internalType:"uint256",name:"_period",type:"uint256"},{internalType:"uint256",name:"_cliff",type:"uint256"},{internalType:"uint256[]",name:"_vestedPerPeriod",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"_token",type:"address"},{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"releaseForeignToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"releaseSurplus",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revoke",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newBeneficiary",type:"address"}],name:"setBeneficiary",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unpause",outputs:[],stateMutability:"nonpayable",type:"function"}],TokenAddressByChainId={1:{MANA:"0x0f5d2fb29fb7d3cfee444a200298f468908cc942",DAI:"0x6b175474e89094c44da98b954eedeac495271d0f",USDT:"0xdac17f958d2ee523a2206206994597c13d831ec7",USDC:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"},11155111:{MANA:"0xfa04d2e2ba9aec166c93dfeeba7427b2303befa9",DAI:"0x0000000000000000000000000000000000000000",USDT:"0x0000000000000000000000000000000000000000",USDC:"0x0000000000000000000000000000000000000000"}},ContractVersion={V1:"v1",V2:"v2"},TopicByVersion={[ContractVersion.V1]:{RELEASE:"0xfb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c565",REVOKE:"0x44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee6",TRANSFER_OWNERSHIP:"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",PAUSED:"0x0000000000000000000000000000000000000000000000000000000000000000",UNPAUSED:"0x0000000000000000000000000000000000000000000000000000000000000000"},[ContractVersion.V2]:{RELEASE:"0xb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e",REVOKE:"0x44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee6",TRANSFER_OWNERSHIP:"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",PAUSED:"0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258",UNPAUSED:"0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa"}},DAY_IN_SECONDS=86400;function getDurationInDays(_e){return Math.ceil(_e/DAY_IN_SECONDS)+1}function getCliffEndDay(_e,et){return Math.floor((et-_e)/DAY_IN_SECONDS)}function getDaysFromStart(_e){return Math.ceil((new Date-new Date(_e*1e3))/(DAY_IN_SECONDS*1e3))}function getDaysFromRevoke(_e,et){return Math.floor((_e-et)/DAY_IN_SECONDS)+1}function toDataArray(_e,et){return Array.from(new Array(_e>=0?_e:0),et)}function emptyDataArray(_e){return toDataArray(_e,()=>"-")}async function fetchTicker(_e="decentraland"){try{const tt=await(await fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${_e}&vs_currencies=usd`,{mode:"cors"})).json(),{usd:nt}=tt[_e];return nt}catch{return 0}}function getEth(){return new JsonRpcProvider$1("https://rpc.decentraland.org/mainnet")}async function fetchTokenContracts(_e=1){if(_e!==1)throw new Error(`Unsupported chain id ${_e}`);const et=getEth(),tt=TokenAddressByChainId[_e];return{[tt.MANA]:new Contract$1(tt.MANA,manaAbi,et),[tt.DAI]:new Contract$1(tt.DAI,daiAbi,et),[tt.USDT]:new Contract$1(tt.USDT,usdtAbi,et),[tt.USDC]:new Contract$1(tt.USDC,usdcAbi,et)}}async function fetchContract(_e,et){const tt=getEth();let nt,at;try{at=new Contract$1(_e,periodicTokenVestingAbi,tt),await at.getIsLinear(),nt=ContractVersion.V2}catch{at=new Contract$1(_e,vestingAbi,tt),nt=ContractVersion.V1}let it;if(nt===ContractVersion.V1?it=await at.token():it=await at.getToken(),it=it.toLowerCase(),!(it in et))throw new Error("Token not supported");const ot=await et[it].decimals(),st={v1:{duration:()=>at.duration(),cliff:()=>at.cliff(),beneficiary:()=>at.beneficiary(),vestedAmount:()=>at.vestedAmount(),releasableAmount:()=>at.releasableAmount(),revoked:()=>at.revoked(),revocable:()=>at.revocable(),released:()=>at.released(),start:()=>at.start(),periodDuration:()=>Promise.resolve("0"),vestedPerPeriod:()=>Promise.resolve([]),paused:()=>Promise.resolve(!1),pausable:()=>Promise.resolve(!1),stop:()=>Promise.resolve("0"),linear:()=>Promise.resolve(!0)},v2:{duration:()=>Promise.resolve("0"),cliff:()=>at.getCliff(),beneficiary:()=>at.getBeneficiary(),vestedAmount:()=>at.getVested(),releasableAmount:()=>at.getReleasable(),revoked:()=>at.getIsRevoked(),revocable:()=>at.getIsRevocable(),released:()=>at.getReleased(),start:()=>at.getStart(),periodDuration:()=>at.getPeriod(),vestedPerPeriod:()=>at.getVestedPerPeriod(),paused:()=>at.paused(),pausable:()=>at.getIsPausable(),stop:()=>at.getStop(),linear:()=>at.getIsLinear()}},[ct,dt,ht,pt,mt,vt,bt,_t,wt,Et,St,Tt,Ct,Nt,Dt,kt,Ft,jt,Gt]=await Promise.all([et[it].symbol(),et[it].balanceOf(_e),getLogs(_e,ot,nt),at.owner(),st[nt].duration(),st[nt].cliff(),st[nt].beneficiary(),st[nt].vestedAmount(),st[nt].releasableAmount(),st[nt].revoked(),st[nt].revocable(),st[nt].released(),st[nt].start(),st[nt].periodDuration(),st[nt].vestedPerPeriod(),st[nt].paused(),st[nt].pausable(),st[nt].stop(),st[nt].linear()]),Rt=Number(ot),yt={version:nt,symbol:ct,address:_e,balance:Number(dt)/10**Rt,duration:nt===ContractVersion.V1?parseInt(mt,10):Dt.length*parseInt(Nt,10),cliff:nt===ContractVersion.V1?parseInt(vt,10):parseInt(vt,10)+parseInt(Ct,10),beneficiary:bt,vestedAmount:Number(_t)/10**Rt,releasableAmount:Number(wt)/10**Rt,revoked:Et,revocable:St,owner:pt,released:Number(Tt)/10**Rt,start:parseInt(Ct,10),logs:ht,periodDuration:Nt,vestedPerPeriod:Dt.map(xt=>parseInt(xt,10)/10**Rt),paused:kt,pausable:Ft,stop:parseInt(jt,10),linear:Gt,total:void 0},$t=()=>{if(nt===ContractVersion.V1){if(yt.revoked){const xt=yt.logs.find(Ot=>Ot.topic===TopicByVersion[nt].REVOKE),{timestamp:At}=xt.data,Mt=getDaysFromRevoke(At,yt.start),It=getDurationInDays(yt.duration),Lt=yt.vestedAmount/Mt*It;return Math.floor(Lt/100)*100}return yt.balance+yt.released}return yt.vestedPerPeriod.reduce((xt,At)=>xt+At,0)};return yt.total=Number($t()),yt}async function getLogs(_e,et,tt){const nt=getEth(),at=await nt.getLogs({address:_e,fromBlock:0,toBlock:"latest"}),it=await Promise.all(at.map(dt=>nt.getBlock(dt.blockNumber))),ot=[];let st=0;const ct=TopicByVersion[tt];for(const dt in at)switch(at[dt].topics[0]){case ct.TRANSFER_OWNERSHIP:ot.push(getTransferOwnershipLog([...at[dt].topics],it[dt].timestamp,ct));break;case ct.RELEASE:const ht=getReleaseLog(et,at[dt].data,st,it[dt].timestamp,tt,ct);ot.push(ht),st=Big(ht.data.acum).mul(Big(10)**Big(et)).toNumber();break;case ct.REVOKE:ot.push(getRevokeLog(it[dt].timestamp,ct));break;case ct.PAUSED:ot.push(getPausedLog(it[dt].timestamp,ct));break;case ct.UNPAUSED:ot.push(getUnpausedLog(it[dt].timestamp,ct));break}return ot}function getTransferOwnershipLog(_e,et,tt){return{topic:tt.TRANSFER_OWNERSHIP,data:{previousOwner:_e[1].slice(0,2)+_e[1].slice(26),newOwner:_e[2].slice(0,2)+_e[2].slice(26),timestamp:et}}}function getReleaseLog(_e,et,tt,nt,at,it){const ot=Big(Number(tt)||0).div(Big(10)**Big(_e));let st,ct;return at===ContractVersion.V1?(st=Big(Number(et)||0).div(Big(10)**Big(_e)),ct=st.minus(ot)):(ct=Big(Number(et)||0).div(Big(10)**Big(_e)),st=Big(Number(tt)||0).div(Big(10)**Big(_e)).add(ct)),{topic:it.RELEASE,data:{amount:ct.toNumber(),acum:st.toNumber(),timestamp:nt}}}function getRevokeLog(_e,et){return{topic:et.REVOKE,data:{timestamp:_e}}}function getPausedLog(_e,et){return{topic:et.PAUSED,data:{timestamp:_e}}}function getUnpausedLog(_e,et){return{topic:et.UNPAUSED,data:{timestamp:_e}}}async function release(_e,et,tt){const nt=await tt.getSigner();if(et.version===ContractVersion.V1)return await new Contract$1(et.address,vestingAbi,nt).release();const at=new Contract$1(et.address,periodicTokenVestingAbi,nt),it=await at.getReleasable();return await at.release(_e,it)}async function changeBeneficiary(_e,et,tt){const nt=await tt.getSigner();return et.version===ContractVersion.V1?new Contract$1(et.address,vestingAbi,nt).changeBeneficiary(_e):new Contract$1(et.address,periodicTokenVestingAbi,nt).setBeneficiary(_e)}function isSameAddress(_e,et){return _e&&et&&_e.toLowerCase()===et.toLowerCase()}async function getEthProvider(){const _e=await getConnectedProvider();if(!_e)throw new Error("Could not get a valid connected Wallet");return new BrowserProvider(_e)}function ChangeBeneficiaryModal({open:_e,onClose:et,contract:tt}){const[nt,at]=reactExports.useState({address:"",error:!1,errorMessage:"",loading:!1,successMessage:""}),it=ht=>at(pt=>({...pt,address:ht})),ot=(ht,pt="")=>at(mt=>({...mt,error:ht,errorMessage:pt})),st=ht=>at(pt=>({...pt,loading:ht})),ct=(ht="")=>at(pt=>({...pt,successMessage:ht})),dt=async()=>{if(isValidAddress(nt.address)){st(!0),ot(!1);try{const ht=await getEthProvider();await changeBeneficiary(nt.address,tt,ht),st(!1),ct(t$2("modal.success",{address:nt.address,br:jsxRuntimeExports.jsx("br",{})}))}catch(ht){st(!1),ot(!0,ht.message)}}else ot(!0,t$2("modal.error"))};return jsxRuntimeExports.jsxs(distExports$1.Modal,{className:"changeBeneficiaryModal",size:"small",open:_e,onClose:et,closeIcon:jsxRuntimeExports.jsx(distExports$1.Close,{}),children:[jsxRuntimeExports.jsx(distExports$1.Modal.Header,{children:t$2("modal.title")}),jsxRuntimeExports.jsxs(distExports$1.Modal.Content,{children:[jsxRuntimeExports.jsx("p",{children:t$2("modal.warning")}),jsxRuntimeExports.jsx(distExports$1.Field,{onChange:(ht,pt)=>{it(pt.value),ot(!1)},label:t$2("modal.label"),placeholder:"0x...",error:nt.error,message:nt.errorMessage,loading:nt.loading,disabled:nt.loading})]}),jsxRuntimeExports.jsx(distExports$1.Modal.Actions,{children:jsxRuntimeExports.jsx(distExports$1.Button,{primary:!0,onClick:dt,disabled:nt.loading,children:t$2("modal.button")})}),jsxRuntimeExports.jsx(distExports$1.Modal.Content,{children:jsxRuntimeExports.jsx("p",{className:"success",children:nt.successMessage})})]})}const Details$2="";function addressShortener(_e){return _e.substring(0,6)+"..."+_e.substring(38,42)}function getBeneficiary(_e){return jsxRuntimeExports.jsxs("div",{className:"item beneficiary",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.beneficiary")}),jsxRuntimeExports.jsxs(distExports$1.Header,{onClick:()=>copyToClipboard(_e),style:{cursor:"pointer"},children:[jsxRuntimeExports.jsx("img",{src:AddressIcon,alt:""}),jsxRuntimeExports.jsx(distExports$1.Popup,{content:t$2("global.copied"),position:"bottom center",trigger:jsxRuntimeExports.jsx("span",{children:addressShortener(_e)}),on:"click"}),jsxRuntimeExports.jsx(Info,{message:t$2("helper.beneficiary"),position:"left center"})]})]})}function getDate(_e,et){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2(_e)}),jsxRuntimeExports.jsx(distExports$1.Header,{children:formatDate$1(new Date(et*1e3).getTime(),DATE_FORMAT_LONG)})]})}function getCliffPeriod(_e){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.cliff_period")}),jsxRuntimeExports.jsxs(distExports$1.Header,{children:[t$2("cliff.duration",{months:_e.months,days:_e.days}),jsxRuntimeExports.jsx(Info,{message:t$2("helper.cliff_period"),position:"left center"})]})]})}function getAmount(_e,et,tt,nt){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2(_e)}),jsxRuntimeExports.jsxs(distExports$1.Header,{children:[formatNumber(et,0)," ",tt,jsxRuntimeExports.jsx(Info,{message:t$2(nt),position:"left center"})]})]})}function getRevocable(_e){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.revocable")}),jsxRuntimeExports.jsx(distExports$1.Header,{children:t$2(_e?"global.yes":"global.no")})]})}function getPausable(_e){return jsxRuntimeExports.jsxs("div",{className:"item",children:[jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:t$2("details.pausable")}),jsxRuntimeExports.jsx(distExports$1.Header,{children:t$2(_e?"global.yes":"global.no")})]})}function getActionButton(_e,et){return jsxRuntimeExports.jsx(distExports$1.Button,{basic:!0,className:"action",onClick:et,children:_e})}function Details({contract:_e,address:et}){const{version:tt,symbol:nt,released:at,start:it,cliff:ot,duration:st,releasableAmount:ct,revocable:dt,pausable:ht,total:pt,beneficiary:mt}=_e,vt=async()=>{const Nt=await getEthProvider();await release(et,_e,Nt)},bt=isSameAddress(et,mt),_t=getPreciseDiff(it,ot),Et=useResponsive()({maxWidth:onlyMobileMaxWidth}),[St,Tt]=reactExports.useState(!1),Ct=()=>Tt(!1);return jsxRuntimeExports.jsxs("div",{id:"details",className:Et&&"mobile"||"",children:[jsxRuntimeExports.jsxs("div",{className:"divToStyle",children:[getBeneficiary(mt),!Et&&bt&&getActionButton(t$2("details.change_beneficiary"),()=>Tt(!0)),jsxRuntimeExports.jsxs("div",{className:"dates",children:[getDate("details.start",it),getDate("details.end",it+st)]})]}),getCliffPeriod(_t),getAmount("details.total_vesting",pt,nt,"helper.total_vesting"),getAmount("details.released",at,nt,"helper.released"),getAmount("details.releasable",ct,nt,"helper.releasable"),!Et&&bt&&ct>0&&getActionButton(t$2("details.release_funds"),vt),getRevocable(dt),tt===ContractVersion.V2&&getPausable(ht),jsxRuntimeExports.jsx(ChangeBeneficiaryModal,{open:St,onClose:Ct,contract:_e})]})}const Details$1=React$L.memo(Details);function _interopDefault(_e){return _e&&typeof _e=="object"&&"default"in _e?_e.default:_e}var React=reactExports,React__default=_interopDefault(React);function _defineProperty(_e,et,tt){return et in _e?Object.defineProperty(_e,et,{value:tt,enumerable:!0,configurable:!0,writable:!0}):_e[et]=tt,_e}function _inheritsLoose(_e,et){_e.prototype=Object.create(et.prototype),_e.prototype.constructor=_e,_e.__proto__=et}var canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement);function withSideEffect(_e,et,tt){if(typeof _e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof et!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof tt<"u"&&typeof tt!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function nt(at){return at.displayName||at.name||"Component"}return function(it){if(typeof it!="function")throw new Error("Expected WrappedComponent to be a React component.");var ot=[],st;function ct(){st=_e(ot.map(function(ht){return ht.props})),dt.canUseDOM?et(st):tt&&(st=tt(st))}var dt=function(ht){_inheritsLoose(pt,ht);function pt(){return ht.apply(this,arguments)||this}pt.peek=function(){return st},pt.rewind=function(){if(pt.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var bt=st;return st=void 0,ot=[],bt};var mt=pt.prototype;return mt.UNSAFE_componentWillMount=function(){ot.push(this),ct()},mt.componentDidUpdate=function(){ct()},mt.componentWillUnmount=function(){var bt=ot.indexOf(this);ot.splice(bt,1),ct()},mt.render=function(){return React__default.createElement(it,this.props)},pt}(React.PureComponent);return _defineProperty(dt,"displayName","SideEffect("+nt(it)+")"),_defineProperty(dt,"canUseDOM",canUseDOM),dt}}var lib=withSideEffect;const withSideEffect$1=getDefaultExportFromCjs$1(lib);var ATTRIBUTE_NAMES={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},TAG_NAMES={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(TAG_NAMES).map(function(_e){return TAG_NAMES[_e]});var TAG_PROPERTIES={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},HTML_TAG_MAP=Object.keys(REACT_TAG_MAP).reduce(function(_e,et){return _e[REACT_TAG_MAP[et]]=et,_e},{}),SELF_CLOSING_TAGS=[TAG_NAMES.NOSCRIPT,TAG_NAMES.SCRIPT,TAG_NAMES.STYLE],HELMET_ATTRIBUTE="data-react-helmet",_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},classCallCheck=function(_e,et){if(!(_e instanceof et))throw new TypeError("Cannot call a class as a function")},createClass=function(){function _e(et,tt){for(var nt=0;nt<tt.length;nt++){var at=tt[nt];at.enumerable=at.enumerable||!1,at.configurable=!0,"value"in at&&(at.writable=!0),Object.defineProperty(et,at.key,at)}}return function(et,tt,nt){return tt&&_e(et.prototype,tt),nt&&_e(et,nt),et}}(),_extends=Object.assign||function(_e){for(var et=1;et<arguments.length;et++){var tt=arguments[et];for(var nt in tt)Object.prototype.hasOwnProperty.call(tt,nt)&&(_e[nt]=tt[nt])}return _e},inherits$1=function(_e,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);_e.prototype=Object.create(et&&et.prototype,{constructor:{value:_e,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(_e,et):_e.__proto__=et)},objectWithoutProperties=function(_e,et){var tt={};for(var nt in _e)et.indexOf(nt)>=0||Object.prototype.hasOwnProperty.call(_e,nt)&&(tt[nt]=_e[nt]);return tt},possibleConstructorReturn=function(_e,et){if(!_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:_e},encodeSpecialCharacters=function _e(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return tt===!1?String(et):String(et).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},getTitleFromPropsList=function _e(et){var tt=getInnermostProperty(et,TAG_NAMES.TITLE),nt=getInnermostProperty(et,HELMET_PROPS.TITLE_TEMPLATE);if(nt&&tt)return nt.replace(/%s/g,function(){return Array.isArray(tt)?tt.join(""):tt});var at=getInnermostProperty(et,HELMET_PROPS.DEFAULT_TITLE);return tt||at||void 0},getOnChangeClientState=function _e(et){return getInnermostProperty(et,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||function(){}},getAttributesFromPropsList=function _e(et,tt){return tt.filter(function(nt){return typeof nt[et]<"u"}).map(function(nt){return nt[et]}).reduce(function(nt,at){return _extends({},nt,at)},{})},getBaseTagFromPropsList=function _e(et,tt){return tt.filter(function(nt){return typeof nt[TAG_NAMES.BASE]<"u"}).map(function(nt){return nt[TAG_NAMES.BASE]}).reverse().reduce(function(nt,at){if(!nt.length)for(var it=Object.keys(at),ot=0;ot<it.length;ot++){var st=it[ot],ct=st.toLowerCase();if(et.indexOf(ct)!==-1&&at[ct])return nt.concat(at)}return nt},[])},getTagsFromPropsList=function _e(et,tt,nt){var at={};return nt.filter(function(it){return Array.isArray(it[et])?!0:(typeof it[et]<"u"&&warn$1("Helmet: "+et+' should be of type "Array". Instead found type "'+_typeof(it[et])+'"'),!1)}).map(function(it){return it[et]}).reverse().reduce(function(it,ot){var st={};ot.filter(function(mt){for(var vt=void 0,bt=Object.keys(mt),_t=0;_t<bt.length;_t++){var wt=bt[_t],Et=wt.toLowerCase();tt.indexOf(Et)!==-1&&!(vt===TAG_PROPERTIES.REL&&mt[vt].toLowerCase()==="canonical")&&!(Et===TAG_PROPERTIES.REL&&mt[Et].toLowerCase()==="stylesheet")&&(vt=Et),tt.indexOf(wt)!==-1&&(wt===TAG_PROPERTIES.INNER_HTML||wt===TAG_PROPERTIES.CSS_TEXT||wt===TAG_PROPERTIES.ITEM_PROP)&&(vt=wt)}if(!vt||!mt[vt])return!1;var St=mt[vt].toLowerCase();return at[vt]||(at[vt]={}),st[vt]||(st[vt]={}),at[vt][St]?!1:(st[vt][St]=!0,!0)}).reverse().forEach(function(mt){return it.push(mt)});for(var ct=Object.keys(st),dt=0;dt<ct.length;dt++){var ht=ct[dt],pt=objectAssign$1({},at[ht],st[ht]);at[ht]=pt}return it},[]).reverse()},getInnermostProperty=function _e(et,tt){for(var nt=et.length-1;nt>=0;nt--){var at=et[nt];if(at.hasOwnProperty(tt))return at[tt]}return null},reducePropsToState=function _e(et){return{baseTag:getBaseTagFromPropsList([TAG_PROPERTIES.HREF,TAG_PROPERTIES.TARGET],et),bodyAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.BODY,et),defer:getInnermostProperty(et,HELMET_PROPS.DEFER),encode:getInnermostProperty(et,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.HTML,et),linkTags:getTagsFromPropsList(TAG_NAMES.LINK,[TAG_PROPERTIES.REL,TAG_PROPERTIES.HREF],et),metaTags:getTagsFromPropsList(TAG_NAMES.META,[TAG_PROPERTIES.NAME,TAG_PROPERTIES.CHARSET,TAG_PROPERTIES.HTTPEQUIV,TAG_PROPERTIES.PROPERTY,TAG_PROPERTIES.ITEM_PROP],et),noscriptTags:getTagsFromPropsList(TAG_NAMES.NOSCRIPT,[TAG_PROPERTIES.INNER_HTML],et),onChangeClientState:getOnChangeClientState(et),scriptTags:getTagsFromPropsList(TAG_NAMES.SCRIPT,[TAG_PROPERTIES.SRC,TAG_PROPERTIES.INNER_HTML],et),styleTags:getTagsFromPropsList(TAG_NAMES.STYLE,[TAG_PROPERTIES.CSS_TEXT],et),title:getTitleFromPropsList(et),titleAttributes:getAttributesFromPropsList(ATTRIBUTE_NAMES.TITLE,et)}},rafPolyfill=function(){var _e=Date.now();return function(et){var tt=Date.now();tt-_e>16?(_e=tt,et(tt)):setTimeout(function(){rafPolyfill(et)},0)}}(),cafPolyfill=function _e(et){return clearTimeout(et)},requestAnimationFrame$3=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||rafPolyfill:global$a.requestAnimationFrame||rafPolyfill,cancelAnimationFrame$1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||cafPolyfill:global$a.cancelAnimationFrame||cafPolyfill,warn$1=function _e(et){return console&&typeof console.warn=="function"&&console.warn(et)},_helmetCallback=null,handleClientStateChange=function _e(et){_helmetCallback&&cancelAnimationFrame$1(_helmetCallback),et.defer?_helmetCallback=requestAnimationFrame$3(function(){commitTagChanges(et,function(){_helmetCallback=null})}):(commitTagChanges(et),_helmetCallback=null)},commitTagChanges=function _e(et,tt){var nt=et.baseTag,at=et.bodyAttributes,it=et.htmlAttributes,ot=et.linkTags,st=et.metaTags,ct=et.noscriptTags,dt=et.onChangeClientState,ht=et.scriptTags,pt=et.styleTags,mt=et.title,vt=et.titleAttributes;updateAttributes(TAG_NAMES.BODY,at),updateAttributes(TAG_NAMES.HTML,it),updateTitle(mt,vt);var bt={baseTag:updateTags(TAG_NAMES.BASE,nt),linkTags:updateTags(TAG_NAMES.LINK,ot),metaTags:updateTags(TAG_NAMES.META,st),noscriptTags:updateTags(TAG_NAMES.NOSCRIPT,ct),scriptTags:updateTags(TAG_NAMES.SCRIPT,ht),styleTags:updateTags(TAG_NAMES.STYLE,pt)},_t={},wt={};Object.keys(bt).forEach(function(Et){var St=bt[Et],Tt=St.newTags,Ct=St.oldTags;Tt.length&&(_t[Et]=Tt),Ct.length&&(wt[Et]=bt[Et].oldTags)}),tt&&tt(),dt(et,_t,wt)},flattenArray=function _e(et){return Array.isArray(et)?et.join(""):et},updateTitle=function _e(et,tt){typeof et<"u"&&document.title!==et&&(document.title=flattenArray(et)),updateAttributes(TAG_NAMES.TITLE,tt)},updateAttributes=function _e(et,tt){var nt=document.getElementsByTagName(et)[0];if(nt){for(var at=nt.getAttribute(HELMET_ATTRIBUTE),it=at?at.split(","):[],ot=[].concat(it),st=Object.keys(tt),ct=0;ct<st.length;ct++){var dt=st[ct],ht=tt[dt]||"";nt.getAttribute(dt)!==ht&&nt.setAttribute(dt,ht),it.indexOf(dt)===-1&&it.push(dt);var pt=ot.indexOf(dt);pt!==-1&&ot.splice(pt,1)}for(var mt=ot.length-1;mt>=0;mt--)nt.removeAttribute(ot[mt]);it.length===ot.length?nt.removeAttribute(HELMET_ATTRIBUTE):nt.getAttribute(HELMET_ATTRIBUTE)!==st.join(",")&&nt.setAttribute(HELMET_ATTRIBUTE,st.join(","))}},updateTags=function _e(et,tt){var nt=document.head||document.querySelector(TAG_NAMES.HEAD),at=nt.querySelectorAll(et+"["+HELMET_ATTRIBUTE+"]"),it=Array.prototype.slice.call(at),ot=[],st=void 0;return tt&&tt.length&&tt.forEach(function(ct){var dt=document.createElement(et);for(var ht in ct)if(ct.hasOwnProperty(ht))if(ht===TAG_PROPERTIES.INNER_HTML)dt.innerHTML=ct.innerHTML;else if(ht===TAG_PROPERTIES.CSS_TEXT)dt.styleSheet?dt.styleSheet.cssText=ct.cssText:dt.appendChild(document.createTextNode(ct.cssText));else{var pt=typeof ct[ht]>"u"?"":ct[ht];dt.setAttribute(ht,pt)}dt.setAttribute(HELMET_ATTRIBUTE,"true"),it.some(function(mt,vt){return st=vt,dt.isEqualNode(mt)})?it.splice(st,1):ot.push(dt)}),it.forEach(function(ct){return ct.parentNode.removeChild(ct)}),ot.forEach(function(ct){return nt.appendChild(ct)}),{oldTags:it,newTags:ot}},generateElementAttributesAsString=function _e(et){return Object.keys(et).reduce(function(tt,nt){var at=typeof et[nt]<"u"?nt+'="'+et[nt]+'"':""+nt;return tt?tt+" "+at:at},"")},generateTitleAsString=function _e(et,tt,nt,at){var it=generateElementAttributesAsString(nt),ot=flattenArray(tt);return it?"<"+et+" "+HELMET_ATTRIBUTE+'="true" '+it+">"+encodeSpecialCharacters(ot,at)+"</"+et+">":"<"+et+" "+HELMET_ATTRIBUTE+'="true">'+encodeSpecialCharacters(ot,at)+"</"+et+">"},generateTagsAsString=function _e(et,tt,nt){return tt.reduce(function(at,it){var ot=Object.keys(it).filter(function(dt){return!(dt===TAG_PROPERTIES.INNER_HTML||dt===TAG_PROPERTIES.CSS_TEXT)}).reduce(function(dt,ht){var pt=typeof it[ht]>"u"?ht:ht+'="'+encodeSpecialCharacters(it[ht],nt)+'"';return dt?dt+" "+pt:pt},""),st=it.innerHTML||it.cssText||"",ct=SELF_CLOSING_TAGS.indexOf(et)===-1;return at+"<"+et+" "+HELMET_ATTRIBUTE+'="true" '+ot+(ct?"/>":">"+st+"</"+et+">")},"")},convertElementAttributestoReactProps=function _e(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(et).reduce(function(nt,at){return nt[REACT_TAG_MAP[at]||at]=et[at],nt},tt)},convertReactPropstoHtmlAttributes=function _e(et){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(et).reduce(function(nt,at){return nt[HTML_TAG_MAP[at]||at]=et[at],nt},tt)},generateTitleAsReactComponent=function _e(et,tt,nt){var at,it=(at={key:tt},at[HELMET_ATTRIBUTE]=!0,at),ot=convertElementAttributestoReactProps(nt,it);return[React$L.createElement(TAG_NAMES.TITLE,ot,tt)]},generateTagsAsReactComponent=function _e(et,tt){return tt.map(function(nt,at){var it,ot=(it={key:at},it[HELMET_ATTRIBUTE]=!0,it);return Object.keys(nt).forEach(function(st){var ct=REACT_TAG_MAP[st]||st;if(ct===TAG_PROPERTIES.INNER_HTML||ct===TAG_PROPERTIES.CSS_TEXT){var dt=nt.innerHTML||nt.cssText;ot.dangerouslySetInnerHTML={__html:dt}}else ot[ct]=nt[st]}),React$L.createElement(et,ot)})},getMethodsForTag=function _e(et,tt,nt){switch(et){case TAG_NAMES.TITLE:return{toComponent:function(){return generateTitleAsReactComponent(et,tt.title,tt.titleAttributes)},toString:function(){return generateTitleAsString(et,tt.title,tt.titleAttributes,nt)}};case ATTRIBUTE_NAMES.BODY:case ATTRIBUTE_NAMES.HTML:return{toComponent:function(){return convertElementAttributestoReactProps(tt)},toString:function(){return generateElementAttributesAsString(tt)}};default:return{toComponent:function(){return generateTagsAsReactComponent(et,tt)},toString:function(){return generateTagsAsString(et,tt,nt)}}}},mapStateOnServer=function _e(et){var tt=et.baseTag,nt=et.bodyAttributes,at=et.encode,it=et.htmlAttributes,ot=et.linkTags,st=et.metaTags,ct=et.noscriptTags,dt=et.scriptTags,ht=et.styleTags,pt=et.title,mt=pt===void 0?"":pt,vt=et.titleAttributes;return{base:getMethodsForTag(TAG_NAMES.BASE,tt,at),bodyAttributes:getMethodsForTag(ATTRIBUTE_NAMES.BODY,nt,at),htmlAttributes:getMethodsForTag(ATTRIBUTE_NAMES.HTML,it,at),link:getMethodsForTag(TAG_NAMES.LINK,ot,at),meta:getMethodsForTag(TAG_NAMES.META,st,at),noscript:getMethodsForTag(TAG_NAMES.NOSCRIPT,ct,at),script:getMethodsForTag(TAG_NAMES.SCRIPT,dt,at),style:getMethodsForTag(TAG_NAMES.STYLE,ht,at),title:getMethodsForTag(TAG_NAMES.TITLE,{title:mt,titleAttributes:vt},at)}},Helmet=function _e(et){var tt,nt;return nt=tt=function(at){inherits$1(it,at);function it(){return classCallCheck(this,it),possibleConstructorReturn(this,at.apply(this,arguments))}return it.prototype.shouldComponentUpdate=function(st){return!isEqual$3(this.props,st)},it.prototype.mapNestedChildrenToProps=function(st,ct){if(!ct)return null;switch(st.type){case TAG_NAMES.SCRIPT:case TAG_NAMES.NOSCRIPT:return{innerHTML:ct};case TAG_NAMES.STYLE:return{cssText:ct}}throw new Error("<"+st.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},it.prototype.flattenArrayTypeChildren=function(st){var ct,dt=st.child,ht=st.arrayTypeChildren,pt=st.newChildProps,mt=st.nestedChildren;return _extends({},ht,(ct={},ct[dt.type]=[].concat(ht[dt.type]||[],[_extends({},pt,this.mapNestedChildrenToProps(dt,mt))]),ct))},it.prototype.mapObjectTypeChildren=function(st){var ct,dt,ht=st.child,pt=st.newProps,mt=st.newChildProps,vt=st.nestedChildren;switch(ht.type){case TAG_NAMES.TITLE:return _extends({},pt,(ct={},ct[ht.type]=vt,ct.titleAttributes=_extends({},mt),ct));case TAG_NAMES.BODY:return _extends({},pt,{bodyAttributes:_extends({},mt)});case TAG_NAMES.HTML:return _extends({},pt,{htmlAttributes:_extends({},mt)})}return _extends({},pt,(dt={},dt[ht.type]=_extends({},mt),dt))},it.prototype.mapArrayTypeChildrenToProps=function(st,ct){var dt=_extends({},ct);return Object.keys(st).forEach(function(ht){var pt;dt=_extends({},dt,(pt={},pt[ht]=st[ht],pt))}),dt},it.prototype.warnOnInvalidChildren=function(st,ct){return!0},it.prototype.mapChildrenToProps=function(st,ct){var dt=this,ht={};return React$L.Children.forEach(st,function(pt){if(!(!pt||!pt.props)){var mt=pt.props,vt=mt.children,bt=objectWithoutProperties(mt,["children"]),_t=convertReactPropstoHtmlAttributes(bt);switch(dt.warnOnInvalidChildren(pt,vt),pt.type){case TAG_NAMES.LINK:case TAG_NAMES.META:case TAG_NAMES.NOSCRIPT:case TAG_NAMES.SCRIPT:case TAG_NAMES.STYLE:ht=dt.flattenArrayTypeChildren({child:pt,arrayTypeChildren:ht,newChildProps:_t,nestedChildren:vt});break;default:ct=dt.mapObjectTypeChildren({child:pt,newProps:ct,newChildProps:_t,nestedChildren:vt});break}}}),ct=this.mapArrayTypeChildrenToProps(ht,ct),ct},it.prototype.render=function(){var st=this.props,ct=st.children,dt=objectWithoutProperties(st,["children"]),ht=_extends({},dt);return ct&&(ht=this.mapChildrenToProps(ct,ht)),React$L.createElement(et,ht)},createClass(it,null,[{key:"canUseDOM",set:function(st){et.canUseDOM=st}}]),it}(React$L.Component),tt.propTypes={base:PropTypes.object,bodyAttributes:PropTypes.object,children:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node),PropTypes.node]),defaultTitle:PropTypes.string,defer:PropTypes.bool,encodeSpecialCharacters:PropTypes.bool,htmlAttributes:PropTypes.object,link:PropTypes.arrayOf(PropTypes.object),meta:PropTypes.arrayOf(PropTypes.object),noscript:PropTypes.arrayOf(PropTypes.object),onChangeClientState:PropTypes.func,script:PropTypes.arrayOf(PropTypes.object),style:PropTypes.arrayOf(PropTypes.object),title:PropTypes.string,titleAttributes:PropTypes.object,titleTemplate:PropTypes.string},tt.defaultProps={defer:!0,encodeSpecialCharacters:!0},tt.peek=et.peek,tt.rewind=function(){var at=et.rewind();return at||(at=mapStateOnServer({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),at},nt},NullComponent=function _e(){return null},HelmetSideEffects=withSideEffect$1(reducePropsToState,handleClientStateChange,mapStateOnServer)(NullComponent),HelmetExport=Helmet(HelmetSideEffects);HelmetExport.renderStatic=HelmetExport.rewind;function ManaWidget(){const _e="https://crypto.com/price/static/widget/index.js",et=reactExports.useRef(null);return reactExports.useEffect(()=>{(()=>{et.current=document.createElement("script"),et.current.src=_e,document.body.appendChild(et.current)})();const nt=()=>{document.body.removeChild(et.current)};return()=>nt()},[]),jsxRuntimeExports.jsx("div",{id:"crypto-widget-CoinList","data-design":"classic","data-coins":"decentraland",style:{width:"100%"}})}const Copy="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/copy-aaa77b43.svg",Link="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/link-2c78ddb8.svg",DaiLogo="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/dai_logo-b5489c4a.svg",UsdtLogo="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/usdt_logo-4ed36654.svg",UsdcLogo="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/usdc_logo-913adf09.svg",Overview$1="";function useReviewUrl(_e){const et=`${config.get("REVIEW_CONTRACT_URL")}${_e}`;return{reviewUrl:et,onReviewUrlClick:nt=>openInNewTab(et,nt)}}const logo={DAI:DaiLogo,USDT:UsdtLogo,USDC:UsdcLogo};function Overview(_e){const{address:et,contract:tt}=_e,{symbol:nt,start:at,cliff:it,duration:ot,total:st}=tt,ct=getPreciseDiff(at,at+ot),dt=getPreciseDiff(at,it),{reviewUrl:ht,onReviewUrlClick:pt}=useReviewUrl(et),vt=useResponsive()({maxWidth:onlyMobileMaxWidth}),bt=dt.months+dt.days;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HelmetExport,{children:jsxRuntimeExports.jsx("title",{children:t$2("global.title",{token:nt})})}),jsxRuntimeExports.jsx(Grid$2,{columns:nt==="MANA"&&!vt?2:1,className:"overview",children:jsxRuntimeExports.jsxs(Grid$2.Row,{children:[jsxRuntimeExports.jsxs(Grid$2.Column,{floated:"left",style:{padding:0},children:[jsxRuntimeExports.jsxs(Grid$2,{className:"contract",style:{width:"100%"},children:[nt!=="MANA"?jsxRuntimeExports.jsx(Grid$2.Column,{className:"TokenLogo",children:jsxRuntimeExports.jsx("img",{src:logo[nt],style:{width:vt?"48px":"72px"},alt:""})}):vt&&jsxRuntimeExports.jsx(Grid$2.Column,{className:"TokenLogo",children:jsxRuntimeExports.jsx(distExports$1.Logo,{})}),jsxRuntimeExports.jsxs(Grid$2.Column,{className:"Info",children:[jsxRuntimeExports.jsx(distExports$1.Header,{size:"large",className:`TokenContract ${nt}`,children:t$2("overview.title",{token:nt})}),jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[et," ",jsxRuntimeExports.jsx("a",{href:ht,onClick:pt,children:jsxRuntimeExports.jsx("img",{src:Link,alt:""})}),jsxRuntimeExports.jsx(distExports$1.Popup,{content:t$2("global.copied"),position:"bottom center",trigger:jsxRuntimeExports.jsx("img",{src:Copy,alt:"",onClick:()=>copyToClipboard(et)}),on:"click"})]})]})]}),jsxRuntimeExports.jsx(distExports$1.Header,{style:nt==="MANA"&&!vt&&{maxWidth:"500px"}||{},children:t$2("overview.details",{amount:formatNumber(Math.round(st),0),token:nt,months:t$2("global.amount.months",{amount:ct.months}),days:ct.days&&t$2("global.amount.days",{amount:ct.days}),cliff:t$2("overview.details.cliff",{months:dt.months,days:dt.days}),showCliff:bt})})]}),nt==="MANA"&&!vt&&jsxRuntimeExports.jsx(Grid$2.Column,{floated:"right",children:jsxRuntimeExports.jsx(ManaWidget,{})})]})})]})}const Icon$2="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/grant_icon-fe328b80.svg",ButtonIcon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/proposal_button_icon-2936cda4.svg",DaoInitiativeButton$1="";function DaoInitiativeButton({proposalUrl:_e}){const tt=useResponsive()({maxWidth:onlyMobileMaxWidth});return jsxRuntimeExports.jsxs(distExports$1.Button,{primary:!0,onClick:nt=>openInNewTab(_e,nt),href:_e,className:"daoProposal__button",children:[t$2(tt?"beneficiary.button.mobile":"beneficiary.button"),jsxRuntimeExports.jsx("img",{src:ButtonIcon,alt:""})]})}const Banner$1="";function Banner(_e){const{icon:et,title:tt,subtitle:nt,action:at,className:it}=_e;return jsxRuntimeExports.jsxs("div",{className:`banner ${it||""}`,children:[jsxRuntimeExports.jsxs("div",{className:"bannerContainer",children:[jsxRuntimeExports.jsx("div",{style:{width:"fit-content"},children:et&&jsxRuntimeExports.jsx("img",{src:et,alt:"",style:{marginTop:"5px"}})}),jsxRuntimeExports.jsxs("div",{className:"bannerText",children:[jsxRuntimeExports.jsx(distExports$1.Header,{children:tt}),jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,children:nt})]})]}),jsxRuntimeExports.jsx("div",{className:"bannerAction",children:at})]})}const Beneficiary$1="";function Beneficiary({address:_e}){const[et,tt]=reactExports.useState();return reactExports.useEffect(()=>{(async()=>{const at=await(await fetch(config.get("VESTINGS_API_URL"))).json();if(at){let it=at.filter(ot=>isSameAddress(ot.vesting_address,_e));if(it.length===1){it=it[0];const ot=new URL(config.get("PROPOSALS_URL"));ot.searchParams.append("id",it.proposal_id),tt(ot)}else console.error(t$2("error.dao_proposal_url"))}})()},[_e,tt]),!!et&&jsxRuntimeExports.jsx(Banner,{className:"beneficiary",icon:Icon$2,title:t$2("beneficiary.title"),subtitle:t$2("beneficiary.subtitle"),action:jsxRuntimeExports.jsx(DaoInitiativeButton,{proposalUrl:et})})}const Schedule$2="",FutureIcon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/future_events_icon-d66bd0d4.svg";function ScheduleEvent(_e){const{message:et,timestamp:tt=0,future:nt=!1}=_e;return jsxRuntimeExports.jsx("li",{className:`${nt?"future":""}`,children:jsxRuntimeExports.jsxs("div",{className:"timeline__event",children:[!nt&&jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,style:{textTransform:"none",margin:0},children:formatDate$1(new Date(tt*1e3).getTime(),DATE_FORMAT_LONG)}),jsxRuntimeExports.jsx(distExports$1.Header,{style:{fontSize:"15px",margin:0},children:et})]})})}const ScheduleEvent$1=React$L.memo(ScheduleEvent);function ShowMore(_e){const{onClick:et}=_e;return jsxRuntimeExports.jsx("li",{className:"more",style:{cursor:"pointer"},onClick:et,children:jsxRuntimeExports.jsx("div",{className:"timeline__event",children:jsxRuntimeExports.jsx(distExports$1.Header,{sub:!0,style:{fontSize:"11px"},children:t$2("schedule.show_more")})})})}const ShowMore$1=React$L.memo(ShowMore);function addReleasedEvent(_e,et,tt,nt){const at={timestamp:nt,key:nt};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.released",{amount:formatNumber(Math.round(et),0),token:tt}),...at}))}function addFulfilledEvent(_e,et,tt=!1){const nt={timestamp:et,future:tt,key:"fulfilled"};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.fulfilled"),...nt}))}function addRevokedEvent(_e,et){const tt={timestamp:et,key:"revoked"};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.revoked"),...tt}))}function addPausedEvent(_e,et){const tt={timestamp:et,key:`paused-${et}`};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.paused"),...tt}))}function addUnpausedEvent(_e,et){const tt={timestamp:et,key:`unpaused-${et}`};_e.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.unpaused"),...tt}))}function Schedule(_e){const{contract:et}=_e,{symbol:tt,start:nt,cliff:at,duration:it,logs:ot,version:st,paused:ct,revoked:dt}=et,ht=getPreciseDiff(nt,at),pt=reactExports.useMemo(()=>ot.filter(Tt=>Tt.topic!==TopicByVersion[st].TRANSFER_OWNERSHIP),[ot,st]),[mt,vt]=reactExports.useState([]),bt=dt||ct,_t=TopicByVersion[st],wt=(Tt=!1)=>{const Ct=[];Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.contract_started"),timestamp:nt},"contract_started")),Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.cliff_started",{cliff:t$2("cliff.duration",{months:ht.months,days:ht.days})}),timestamp:nt},"cliff_started")),new Date(at*1e3)<new Date&&(Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.cliff_ended"),timestamp:at},"cliff_ended")),Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:t$2("schedule.vesting_begins"),timestamp:at},"vesting_begins")));const Nt=nt+it,Dt=new Date(Nt*1e3);let kt=!1;const Ft=jt=>{const Gt=jt.data;switch(jt.topic){case _t.RELEASE:addReleasedEvent(Ct,Gt.amount,tt,Gt.timestamp);break;case _t.REVOKE:addRevokedEvent(Ct,Gt.timestamp);break;case _t.PAUSED:addPausedEvent(Ct,Gt.timestamp);break;case _t.UNPAUSED:addUnpausedEvent(Ct,Gt.timestamp);break}};if(pt.length>0)if(pt.length>1&&!Tt){Ct.push(jsxRuntimeExports.jsx(ShowMore$1,{onClick:()=>wt(!0)},"showMore"));const jt=pt[pt.length-1],{timestamp:Gt}=jt.data;new Date(Gt*1e3)>Dt&&(kt=!0),Ft(jt)}else for(const jt of pt){const{timestamp:Gt}=jt.data;!kt&&new Date(Gt*1e3)>Dt&&(kt=!0,addFulfilledEvent(Ct,Nt)),Ft(jt)}bt||kt||(new Date>=new Date(Nt*1e3)?addFulfilledEvent(Ct,Nt):(Ct.push(jsxRuntimeExports.jsx(ScheduleEvent$1,{message:jsxRuntimeExports.jsx("img",{src:FutureIcon,className:"Future__Icon",alt:""}),future:!0},"Future__Icon")),addFulfilledEvent(Ct,0,!0))),vt(Ct)};reactExports.useEffect(()=>{wt()},[bt]);const St=useResponsive()({maxWidth:onlyMobileMaxWidth});return jsxRuntimeExports.jsxs("div",{className:`timeline ${dt?"revoked":ct?"paused":""}`,children:[jsxRuntimeExports.jsxs(distExports$1.Header,{sub:!0,children:[t$2("schedule.title"),jsxRuntimeExports.jsx(Info,{message:t$2("helper.vesting_schedule"),position:`${St?"right":"top"} center`})]}),jsxRuntimeExports.jsx("ul",{children:mt})]})}const Schedule$1=React$L.memo(Schedule),Chart$2="";/*! *****************************************************************************
329
329
  Copyright (c) Microsoft Corporation.
330
330
 
331
331
  Permission to use, copy, modify, and/or distribute this software for any
@@ -390,5 +390,5 @@ PERFORMANCE OF THIS SOFTWARE.
390
390
  </div>
391
391
  </td>
392
392
  </tr>
393
- `}),it+"</table></div>"}function resizeHandler(_e){_e&&_e.resize()}function getFormatterFn(_e,et,tt){return nt=>getTooltipFormatter(_e+1,t$2("chart.to_be_vested"),nt,et,et==="MANA"?tt:0)}function Chart({contract:_e,ticker:et}){const{version:tt,symbol:nt,start:at,cliff:it,duration:ot,logs:st,vestedPerPeriod:ct,periodDuration:dt,linear:ht,paused:pt,revoked:mt,stop:vt,total:bt}=_e,_t=Math.floor(new Date().getTime()/1e3),wt=at>_t?0:getDaysFromStart(at),Et=TopicByVersion[tt],St=st.filter(At=>At.topic===Et.RELEASE).map(At=>At.data),Tt=st.filter(At=>At.topic===Et.REVOKE);let Ct,Nt,Dt=!1;tt===ContractVersion.V1?[Ct,Nt]=getRevokedData(Tt,at):[Ct,Nt,Dt]=getPausedAndRevokedData(at,pt,mt,vt);const kt=Ct||Dt,jt=useResponsive()({maxWidth:onlyMobileMaxWidth}),Gt=Ct||Dt?Nt:wt,Rt=()=>mt?"var(--revoked-color)":pt?"var(--paused-color)":"var(--today-color)",yt={title:{text:t$2("chart.title"),textStyle:{fontSize:"13px"}},color:["#44B600","#FF7439"],tooltip:{trigger:"axis",formatter:At=>getTooltipFormatter(Gt+1,t$2("chart.to_be_vested"),At,nt,nt==="MANA"?et:0)},legend:{data:[t$2("chart.vested"),t$2("chart.released")]},grid:{left:"0",right:"0",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:getXAxisData(at,ot),axisLabel:{align:"left",lineHeight:30,color:"#B0AFB1",interval:getLabelInterval(ot,jt)},axisTick:{show:!1}},yAxis:{type:"value",axisLabel:{formatter:At=>{if(!jt)return`${formatNumber(At,0)} ${nt}`;const Mt=[{magnitude:1,abv:""},{magnitude:1e3,abv:"k"},{magnitude:1e6,abv:"M"},{magnitude:1e9,abv:"G"},{magnitude:1e12,abv:"T"},{magnitude:1e15,abv:"P"},{magnitude:1e18,abv:"E"}],It=Mt.map(Bt=>Bt.magnitude),Lt=10**Math.floor(Math.log10(At)),Ot=It.map(Bt=>Math.abs(Lt-Bt)),gt=Math.min(...Ot),Pt=Ot.findIndex(Bt=>Bt===gt);return`${formatNumber(At/Mt[Pt].magnitude,0)}${Mt[Pt].abv} ${nt}`},inside:!1,margin:0,verticalAlign:"bottom",showMinLabel:!1,lineHeight:30}},series:[{name:t$2("chart.vested"),type:"line",data:tt===ContractVersion.V1?getVestingData(at,it,ot,bt,Ct,Nt):getVestingDataV2(at,it,ot,dt,ct,ht,Ct,Nt),symbol:"none",markLine:{symbol:"none",data:[{name:`${t$2(Ct?"chart.revoked":Dt?"chart.paused":"chart.today")}`,xAxis:Ct||Dt?Nt:getDaysFromStart(at),label:{formatter:"{b}",show:!0,color:"white",backgroundColor:Rt(),padding:[3,6],borderRadius:5},lineStyle:{type:"solid",color:Rt()}}]}},{name:t$2("chart.released"),type:"line",data:getReleaseData(at,it,St,kt,Nt),symbol:"none"}],visualMap:{type:"piecewise",seriesIndex:0,show:!1,dimension:0,pieces:[{lte:Ct||Dt?Nt:wt,gt:-1e3,color:"#44B600"},{gt:Ct||Dt?Nt:wt,color:"rgba(115, 110, 125, 0.3)"}]}},[$t,xt]=reactExports.useState(null);return reactExports.useEffect(()=>{use([install$8,install$9,install$a,install$4,install$d,install,installUniversalTransition,install$1,install$7]);const At=document.getElementById("chart");xt(init(At))},[]),reactExports.useEffect(()=>{window.onresize=()=>resizeHandler($t)}),reactExports.useEffect(()=>{$t&&(jt?(yt.legend.top="bottom",yt.grid.bottom="10%"):(yt.legend.top="top",yt.grid.bottom="3%"),yt.tooltip.formatter=getFormatterFn(Gt,nt,et),$t.setOption(yt,!0))},[jt,$t,et]),jsxRuntimeExports.jsx("div",{id:"chart"})}const Chart$1=React$L.memo(Chart),Summary$2="";function Summary({address:_e,contract:et,ticker:tt}){const{symbol:nt,released:at,start:it,cliff:ot,vestedAmount:st,total:ct,linear:dt}=et;let ht=Math.round(at/st*100);isNaN(ht)&&(ht=0);const pt=getPreciseDiff(it,ot),{reviewUrl:mt,onReviewUrlClick:vt}=useReviewUrl(_e);return jsxRuntimeExports.jsxs("div",{id:"summary",style:{textAlign:"justify"},children:[t$2("summary.text",{b:bt=>jsxRuntimeExports.jsx("b",{children:bt}),br:jsxRuntimeExports.jsx("br",{}),cliff:t$2("cliff.duration",{months:pt.months,days:pt.days}),cliffEnd:formatDate$1(new Date(ot*1e3).getTime(),DATE_FORMAT_LONG),nearly:ht>0?`, ${t$2("summary.nearly")} `:" ",percentage:formatNumber(ht,0),amount:formatNumber(nt==="MANA"?ct*tt:ct,0),version_description:t$2(dt?"summary.linear_version_description":"summary.periodic_version_description",{b:bt=>jsxRuntimeExports.jsx("b",{children:bt})})}),jsxRuntimeExports.jsx("a",{href:mt,onClick:vt,children:t$2("summary.review_contract")})]})}const Summary$1=React$L.memo(Summary);function PendingFunds(_e){const{contract:et}=_e;if(!et||et.version!==ContractVersion.V2)return null;const{symbol:tt,balance:nt,released:at,total:it,vestedAmount:ot,revoked:st}=et,dt=(st?ot:it)-(nt+at);if(-1<dt&&dt<1)return null;const ht=dt>0?"pending_funds.requires_more_funding":"pending_funds.over_funded";return jsxRuntimeExports.jsx(distExports$1.Segment,{children:jsxRuntimeExports.jsx("p",{children:t$2(ht,{pending:jsxRuntimeExports.jsx("b",{children:formatNumber(Math.abs(dt),0)}),token:jsxRuntimeExports.jsx("b",{children:tt})})})})}const Icon$1="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/revoke_icon-40494e1a.svg",RevokedBanner$1="";function RevokedBanner(){return jsxRuntimeExports.jsx(Banner,{className:"revoked",icon:Icon$1,title:t$2("revoked_banner.title"),subtitle:t$2("revoked_banner.subtitle")})}const Icon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.0.6-9213391407.commit-101c1e4/assets/pause_icon-b9ff4d26.svg",PausedBanner$1="";function PausedBanner(){return jsxRuntimeExports.jsx(Banner,{className:"paused",icon:Icon,title:t$2("paused_banner.title"),subtitle:t$2("paused_banner.subtitle")})}function useTokenContracts(){const{data:_e}=useQuery({queryKey:["tokenContracts"],queryFn:()=>fetchTokenContracts()});return{tokenContracts:_e}}function useContract(_e){const{tokenContracts:et}=useTokenContracts(),[tt,nt]=reactExports.useState(""),at=useLocation();reactExports.useEffect(()=>{if(at){const ht=at.hash.split("#/")[1];isValidAddress(ht)&&nt(ht)}},[at]);const it=tt||_e,{data:ot,isLoading:st,error:ct,fetchStatus:dt}=useQuery({queryKey:[`contract-${it}`],queryFn:()=>fetchContract(it,et),enabled:!!it&&!!et});return{contract:ot,isLoading:st&&dt==="fetching",error:ct}}function useTicker(){const{data:_e,isLoading:et,error:tt}=useQuery({queryKey:["ticker"],queryFn:()=>fetchTicker("decentraland")});return{ticker:_e,isLoading:et,error:tt}}function Dashboard$1({address:_e,contractAddress:et}){const{contract:tt}=useContract(et),{paused:nt,revoked:at}=tt,ot=useResponsive()({maxWidth:onlyMobileMaxWidth}),{ticker:st}=useTicker();return jsxRuntimeExports.jsxs(Container,{className:"dashboard",children:[jsxRuntimeExports.jsx(Overview,{address:tt==null?void 0:tt.address,contract:tt}),jsxRuntimeExports.jsx(Beneficiary,{address:tt==null?void 0:tt.address}),at&&jsxRuntimeExports.jsx(RevokedBanner,{}),nt&&jsxRuntimeExports.jsx(PausedBanner,{}),jsxRuntimeExports.jsxs(Grid$2,{stackable:!0,columns:2,padded:!0,style:{width:"100%"},children:[jsxRuntimeExports.jsxs(Grid$2.Column,{width:12,style:{paddingLeft:0},children:[jsxRuntimeExports.jsx(PendingFunds,{contract:tt}),jsxRuntimeExports.jsx(Progress,{contract:tt}),jsxRuntimeExports.jsx(Chart$1,{contract:tt,ticker:st}),jsxRuntimeExports.jsx(Summary$1,{address:tt.address,contract:tt,ticker:st})]}),jsxRuntimeExports.jsx(Grid$2.Column,{width:4,style:{paddingRight:0,paddingLeft:"41px"},children:ot?jsxRuntimeExports.jsx(Grid$2,{children:jsxRuntimeExports.jsxs(Grid$2.Row,{columns:1,children:[jsxRuntimeExports.jsx(Grid$2.Column,{children:jsxRuntimeExports.jsx(Schedule$1,{contract:tt})}),jsxRuntimeExports.jsx(Grid$2.Column,{className:"detailsMobile",children:jsxRuntimeExports.jsx(Details$1,{address:_e,contract:tt})})]})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Schedule$1,{contract:tt}),jsxRuntimeExports.jsx(Details$1,{address:_e,contract:tt})]})})]})]})}const mapState$1=_e=>({address:getAddress$2(_e)}),Dashboard=connect(mapState$1)(Dashboard$1),Footer$1="";class Footer extends reactExports.Component{render(){return jsxRuntimeExports.jsxs("div",{className:"footer",children:[jsxRuntimeExports.jsxs("div",{className:"footer-top",children:[jsxRuntimeExports.jsx("div",{className:"footer-foundation"}),jsxRuntimeExports.jsx("div",{className:"footer-links"}),jsxRuntimeExports.jsx("div",{className:"footer-icons"})]}),jsxRuntimeExports.jsx("div",{className:"footer-bottom",children:jsxRuntimeExports.jsxs("span",{className:"footer-copyright",children:["© ",new Date().getFullYear()," Decentraland"]})})]})}}const Input="";function LandingPage(_e){const{stateAddress:et,isNotFound:tt,address:nt,network:at,onAddressChange:it}=_e;let ot=t$2("helper.landing_page.continue");return et?isValidAddress(et)?tt&&et===nt&&(ot=t$2("helper.landing_page.no_contract")+(at&&at.name!=="mainnet"&&`
393
+ `}),it+"</table></div>"}function resizeHandler(_e){_e&&_e.resize()}function getFormatterFn(_e,et,tt){return nt=>getTooltipFormatter(_e+1,t$2("chart.to_be_vested"),nt,et,et==="MANA"?tt:0)}function Chart({contract:_e,ticker:et}){const{version:tt,symbol:nt,start:at,cliff:it,duration:ot,logs:st,vestedPerPeriod:ct,periodDuration:dt,linear:ht,paused:pt,revoked:mt,stop:vt,total:bt}=_e,_t=Math.floor(new Date().getTime()/1e3),wt=at>_t?0:getDaysFromStart(at),Et=TopicByVersion[tt],St=st.filter(At=>At.topic===Et.RELEASE).map(At=>At.data),Tt=st.filter(At=>At.topic===Et.REVOKE);let Ct,Nt,Dt=!1;tt===ContractVersion.V1?[Ct,Nt]=getRevokedData(Tt,at):[Ct,Nt,Dt]=getPausedAndRevokedData(at,pt,mt,vt);const kt=Ct||Dt,jt=useResponsive()({maxWidth:onlyMobileMaxWidth}),Gt=Ct||Dt?Nt:wt,Rt=()=>mt?"var(--revoked-color)":pt?"var(--paused-color)":"var(--today-color)",yt={title:{text:t$2("chart.title"),textStyle:{fontSize:"13px"}},color:["#44B600","#FF7439"],tooltip:{trigger:"axis",formatter:At=>getTooltipFormatter(Gt+1,t$2("chart.to_be_vested"),At,nt,nt==="MANA"?et:0)},legend:{data:[t$2("chart.vested"),t$2("chart.released")]},grid:{left:"0",right:"0",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:getXAxisData(at,ot),axisLabel:{align:"left",lineHeight:30,color:"#B0AFB1",interval:getLabelInterval(ot,jt)},axisTick:{show:!1}},yAxis:{type:"value",axisLabel:{formatter:At=>{if(!jt)return`${formatNumber(At,0)} ${nt}`;const Mt=[{magnitude:1,abv:""},{magnitude:1e3,abv:"k"},{magnitude:1e6,abv:"M"},{magnitude:1e9,abv:"G"},{magnitude:1e12,abv:"T"},{magnitude:1e15,abv:"P"},{magnitude:1e18,abv:"E"}],It=Mt.map(Bt=>Bt.magnitude),Lt=10**Math.floor(Math.log10(At)),Ot=It.map(Bt=>Math.abs(Lt-Bt)),gt=Math.min(...Ot),Pt=Ot.findIndex(Bt=>Bt===gt);return`${formatNumber(At/Mt[Pt].magnitude,0)}${Mt[Pt].abv} ${nt}`},inside:!1,margin:0,verticalAlign:"bottom",showMinLabel:!1,lineHeight:30}},series:[{name:t$2("chart.vested"),type:"line",data:tt===ContractVersion.V1?getVestingData(at,it,ot,bt,Ct,Nt):getVestingDataV2(at,it,ot,dt,ct,ht,Ct,Nt),symbol:"none",markLine:{symbol:"none",data:[{name:`${t$2(Ct?"chart.revoked":Dt?"chart.paused":"chart.today")}`,xAxis:Ct||Dt?Nt:getDaysFromStart(at),label:{formatter:"{b}",show:!0,color:"white",backgroundColor:Rt(),padding:[3,6],borderRadius:5},lineStyle:{type:"solid",color:Rt()}}]}},{name:t$2("chart.released"),type:"line",data:getReleaseData(at,it,St,kt,Nt),symbol:"none"}],visualMap:{type:"piecewise",seriesIndex:0,show:!1,dimension:0,pieces:[{lte:Ct||Dt?Nt:wt,gt:-1e3,color:"#44B600"},{gt:Ct||Dt?Nt:wt,color:"rgba(115, 110, 125, 0.3)"}]}},[$t,xt]=reactExports.useState(null);return reactExports.useEffect(()=>{use([install$8,install$9,install$a,install$4,install$d,install,installUniversalTransition,install$1,install$7]);const At=document.getElementById("chart");xt(init(At))},[]),reactExports.useEffect(()=>{window.onresize=()=>resizeHandler($t)}),reactExports.useEffect(()=>{$t&&(jt?(yt.legend.top="bottom",yt.grid.bottom="10%"):(yt.legend.top="top",yt.grid.bottom="3%"),yt.tooltip.formatter=getFormatterFn(Gt,nt,et),$t.setOption(yt,!0))},[jt,$t,et]),jsxRuntimeExports.jsx("div",{id:"chart"})}const Chart$1=React$L.memo(Chart),Summary$2="";function Summary({address:_e,contract:et,ticker:tt}){const{symbol:nt,released:at,start:it,cliff:ot,vestedAmount:st,total:ct,linear:dt}=et;let ht=Math.round(at/st*100);isNaN(ht)&&(ht=0);const pt=getPreciseDiff(it,ot),{reviewUrl:mt,onReviewUrlClick:vt}=useReviewUrl(_e);return jsxRuntimeExports.jsxs("div",{id:"summary",style:{textAlign:"justify"},children:[t$2("summary.text",{b:bt=>jsxRuntimeExports.jsx("b",{children:bt}),br:jsxRuntimeExports.jsx("br",{}),cliff:t$2("cliff.duration",{months:pt.months,days:pt.days}),cliffEnd:formatDate$1(new Date(ot*1e3).getTime(),DATE_FORMAT_LONG),nearly:ht>0?`, ${t$2("summary.nearly")} `:" ",percentage:formatNumber(ht,0),amount:formatNumber(nt==="MANA"?ct*tt:ct,0),version_description:t$2(dt?"summary.linear_version_description":"summary.periodic_version_description",{b:bt=>jsxRuntimeExports.jsx("b",{children:bt})})}),jsxRuntimeExports.jsx("a",{href:mt,onClick:vt,children:t$2("summary.review_contract")})]})}const Summary$1=React$L.memo(Summary);function PendingFunds(_e){const{contract:et}=_e;if(!et||et.version!==ContractVersion.V2)return null;const{symbol:tt,balance:nt,released:at,total:it,vestedAmount:ot,revoked:st}=et,dt=(st?ot:it)-(nt+at);if(-1<dt&&dt<1)return null;const ht=dt>0?"pending_funds.requires_more_funding":"pending_funds.over_funded";return jsxRuntimeExports.jsx(distExports$1.Segment,{children:jsxRuntimeExports.jsx("p",{children:t$2(ht,{pending:jsxRuntimeExports.jsx("b",{children:formatNumber(Math.abs(dt),0)}),token:jsxRuntimeExports.jsx("b",{children:tt})})})})}const Icon$1="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/revoke_icon-40494e1a.svg",RevokedBanner$1="";function RevokedBanner(){return jsxRuntimeExports.jsx(Banner,{className:"revoked",icon:Icon$1,title:t$2("revoked_banner.title"),subtitle:t$2("revoked_banner.subtitle")})}const Icon="https://cdn.decentraland.org/@dcl/vesting-dashboard/3.1.0/assets/pause_icon-b9ff4d26.svg",PausedBanner$1="";function PausedBanner(){return jsxRuntimeExports.jsx(Banner,{className:"paused",icon:Icon,title:t$2("paused_banner.title"),subtitle:t$2("paused_banner.subtitle")})}function useTokenContracts(){const{data:_e}=useQuery({queryKey:["tokenContracts"],queryFn:()=>fetchTokenContracts()});return{tokenContracts:_e}}function useContract(_e){const{tokenContracts:et}=useTokenContracts(),[tt,nt]=reactExports.useState(""),at=useLocation();reactExports.useEffect(()=>{if(at){const ht=at.hash.split("#/")[1];isValidAddress(ht)&&nt(ht)}},[at]);const it=tt||_e,{data:ot,isLoading:st,error:ct,fetchStatus:dt}=useQuery({queryKey:[`contract-${it}`],queryFn:()=>fetchContract(it,et),enabled:!!it&&!!et});return{contract:ot,isLoading:st&&dt==="fetching",error:ct}}function useTicker(){const{data:_e,isLoading:et,error:tt}=useQuery({queryKey:["ticker"],queryFn:()=>fetchTicker("decentraland")});return{ticker:_e,isLoading:et,error:tt}}function Dashboard$1({address:_e,contractAddress:et}){const{contract:tt}=useContract(et),{paused:nt,revoked:at}=tt,ot=useResponsive()({maxWidth:onlyMobileMaxWidth}),{ticker:st}=useTicker();return jsxRuntimeExports.jsxs(Container,{className:"dashboard",children:[jsxRuntimeExports.jsx(Overview,{address:tt==null?void 0:tt.address,contract:tt}),jsxRuntimeExports.jsx(Beneficiary,{address:tt==null?void 0:tt.address}),at&&jsxRuntimeExports.jsx(RevokedBanner,{}),nt&&jsxRuntimeExports.jsx(PausedBanner,{}),jsxRuntimeExports.jsxs(Grid$2,{stackable:!0,columns:2,padded:!0,style:{width:"100%"},children:[jsxRuntimeExports.jsxs(Grid$2.Column,{width:12,style:{paddingLeft:0},children:[jsxRuntimeExports.jsx(PendingFunds,{contract:tt}),jsxRuntimeExports.jsx(Progress,{contract:tt}),jsxRuntimeExports.jsx(Chart$1,{contract:tt,ticker:st}),jsxRuntimeExports.jsx(Summary$1,{address:tt.address,contract:tt,ticker:st})]}),jsxRuntimeExports.jsx(Grid$2.Column,{width:4,style:{paddingRight:0,paddingLeft:"41px"},children:ot?jsxRuntimeExports.jsx(Grid$2,{children:jsxRuntimeExports.jsxs(Grid$2.Row,{columns:1,children:[jsxRuntimeExports.jsx(Grid$2.Column,{children:jsxRuntimeExports.jsx(Schedule$1,{contract:tt})}),jsxRuntimeExports.jsx(Grid$2.Column,{className:"detailsMobile",children:jsxRuntimeExports.jsx(Details$1,{address:_e,contract:tt})})]})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Schedule$1,{contract:tt}),jsxRuntimeExports.jsx(Details$1,{address:_e,contract:tt})]})})]})]})}const mapState$1=_e=>({address:getAddress$2(_e)}),Dashboard=connect(mapState$1)(Dashboard$1),Footer$1="";class Footer extends reactExports.Component{render(){return jsxRuntimeExports.jsxs("div",{className:"footer",children:[jsxRuntimeExports.jsxs("div",{className:"footer-top",children:[jsxRuntimeExports.jsx("div",{className:"footer-foundation"}),jsxRuntimeExports.jsx("div",{className:"footer-links"}),jsxRuntimeExports.jsx("div",{className:"footer-icons"})]}),jsxRuntimeExports.jsx("div",{className:"footer-bottom",children:jsxRuntimeExports.jsxs("span",{className:"footer-copyright",children:["© ",new Date().getFullYear()," Decentraland"]})})]})}}const Input="";function LandingPage(_e){const{stateAddress:et,isNotFound:tt,address:nt,network:at,onAddressChange:it}=_e;let ot=t$2("helper.landing_page.continue");return et?isValidAddress(et)?tt&&et===nt&&(ot=t$2("helper.landing_page.no_contract")+(at&&at.name!=="mainnet"&&`
394
394
  ${t$2("helper.landing_page.network",{network:at.name})}`)):ot=t$2("helper.landing_page.address_not_valid"):ot=t$2("helper.landing_page.provide_contract"),jsxRuntimeExports.jsxs(Container,{className:"Landing",children:[jsxRuntimeExports.jsx(distExports$1.Logo,{}),jsxRuntimeExports.jsx("h3",{children:t$2("landing_page.title")}),jsxRuntimeExports.jsx("input",{className:"Input",value:et,placeholder:"0x...",onChange:it}),jsxRuntimeExports.jsx("p",{className:"help",children:ot})]})}const LandingPage$1=React$L.memo(LandingPage);function ErrorPage({connectionError:_e}){return jsxRuntimeExports.jsxs(Container,{className:"Error",children:[jsxRuntimeExports.jsx(distExports$1.Logo,{}),jsxRuntimeExports.jsx("h3",{children:t$2("helper.error_page.message")}),jsxRuntimeExports.jsx("p",{children:_e})]})}const ErrorPage$1=React$L.memo(ErrorPage);function LoadingPage(_e){const{msg:et}=_e;return jsxRuntimeExports.jsxs(Container,{className:"Loading",children:[jsxRuntimeExports.jsx(distExports$1.Logo,{}),jsxRuntimeExports.jsx("p",{className:"loading-message",children:et})]})}const LoadingPage$1=React$L.memo(LoadingPage),App$2="";function App$1({network:_e,isConnecting:et}){const[tt,nt]=reactExports.useState(),{contract:at,error:it,isLoading:ot}=useContract(tt),st=useNavigate(),ct=dt=>{const ht=dt.target.value.trim();isValidAddress(ht)&&(nt(ht),st(`/#/${ht}`))};return et||ot?jsxRuntimeExports.jsx("div",{className:"app start",children:jsxRuntimeExports.jsx(LoadingPage$1,{msg:et?"Loading...":"Loading data..."})}):it?jsxRuntimeExports.jsx("div",{className:"app start",children:jsxRuntimeExports.jsx(ErrorPage$1,{connectionError:`${it}`})}):at?jsxRuntimeExports.jsxs("div",{className:"app",children:[jsxRuntimeExports.jsx(Header,{}),jsxRuntimeExports.jsx(Dashboard,{contractAddress:at.address}),jsxRuntimeExports.jsx(Footer,{})]}):jsxRuntimeExports.jsx("div",{className:"app start",children:jsxRuntimeExports.jsx(LandingPage$1,{stateAddress:tt,address:tt,network:_e,onAddressChange:dt=>ct(dt)})})}const mapState=_e=>{const et=getNetwork$1(_e),tt=getChainId(_e);return{network:et,chainId:tt,isConnecting:isConnecting(_e)}},App=connect(mapState)(App$1),index="",styles="",queryClient=new QueryClient,basename=/^decentraland.(zone|org|today)$/.test(window.location.host)?"/vesting":"/";ReactDOM.render(jsxRuntimeExports.jsx(React$L.StrictMode,{children:jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsx(BrowserRouter,{basename,children:jsxRuntimeExports.jsx(Provider$2,{store:initStore(),children:jsxRuntimeExports.jsx(WalletProvider,{children:jsxRuntimeExports.jsx(TranslationProvider,{locales:["en"],children:jsxRuntimeExports.jsx(Routes,{children:jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(App,{})})})})})})})})}),document.getElementById("root"));export{Buffer$C as B,Wg as W,__vitePreload as _,global$a as a,getDefaultExportFromCjs$1 as b,commonjsRequire$1 as c,commonjsGlobal as d,eventsExports as e,bnExports$5 as f,getAugmentedNamespace as g,require$$0$6 as h,readableBrowserExports$1 as i,o,process$1$1 as p,requireCryptoBrowserify as r,sha_jsExports as s};